#Programming & Computers

1 messages · Page 5 of 1

native berry
#

nice

sick storm
#

this is why i have everything in git

native berry
#

also have most (not rly) of it in git but something is always failing

#

mostly human error though like forgetting to backup stuff. i will just call it a security feature at this point

sick storm
#

lmfao

sick storm
#

yeah happens a lot..

#

so many merge commits

native berry
#

never thought i would say this but i kinda want the unchecked nature of C rn rust lifetimes are a bit frustrating atm

sick storm
#

Lifetimes... still don't understand wtf is going on with them

#

but thankfully you rarely need to understand them

sick storm
#

mess with what exactly

#

it just works, windows arrange themselves

#

yea fair

#

take a weekend to config it and you have nice system

#

and then proceed to add more config every day for a year when you're missing some functionality

native berry
native berry
#

one syntax sugar i am still waiting for in almost every lang is val1 == val2 == val3 instead of val1 == val2 && val2 == val3

worthy lintel
#

quite proud of this one

native berry
#

are the drawings done by the members?

worthy lintel
#

not sure tbh

native berry
#

still waiting for my free nfts. tbh i have a feeling that there will simply be no update

worthy lintel
#

the artms ones?

#

the deadline for pre-reg only ended on sunday

#

they might be out this week if the tripleS ones were anything to go by

native berry
#

thanks for the info

native berry
#

the only thing ik which uses wayland is sway

#

so wayland is a lot less niche than i thought

#

sometimes its better to not get into the why

native berry
sick storm
#

@ivory ginkgo because anything that draws graphics that's written for x11 is inherently incompatible with wayland and must be rewritten

#

there are Wayland alternatives for a lot of them but it's a whole another codebase

#

there's one really nice tiling window manager for wayland called hyprland

native berry
#

powerpoint was listed as possible tool for uml diagrams today

native berry
#

i think the uml lectures have been the most boring lectures so far i had to sit through

#

i will have to find some book and work through it can recall nothing from the lecture

#

just skip forwards to design pattern or stuff like that rly anything else

native berry
#

lecture finished pain ended

sick storm
#

how did it break

#

what the fuck

#

it's like you have multiple versions of packages at the same time

#

or something

raven mist
native berry
#

thats how config files work for the most part xD

#

they are frankensteinische creatures pieced together from other peoples work

native berry
#

looks good

sick storm
#

tokyo night is awesome

#

i used it for the longest time until like a week ago

orchid minnow
#

OH MY GOD I'd heard about Windows 11 calling a zip file a 'postcode file' in UK English because of really lazy translating but it's ACTUALLY HERE ON MY PC like not even in beta this is actually happening right now in publicly available Windows

Likes

4424

Retweets

1094

native berry
#

this amuses me much more than it should

undone thorn
#

I prefer it 🫡
I say we accept as new official terminology

lean river
#

Hah?

#

Wait

#

Why-

#

Why again?

#

We were completely fine with ZIP files

#

or is this an error?

worthy lintel
#

what do you mean again

#

in the UK, post codes are commonly called zip codes

#

in that image, windows' lang files seemingly got postcode and ZIP mixed up

orchid minnow
worthy lintel
#

i like svelte

#

nice and simple, not a lot of boilerplate

#

not sure how much of that is simply down to vite making the dx actually usable compared to nextjs using webpack

#

next just feels like overkill for something with a handful of pages at most and react is ass compared to vue/svelte

sick storm
#

i've been meaning to give svelte a try everyone says it's so good

orchid minnow
#

I noticed you did a lot to the site I figured something switched

worthy lintel
#

yeah i remade the objekts site in sveltekit

#

added member filtering and user searching from the app api

#

my issue with using non-react frameworks is just the ecosystems are so bad

#

react has ariakit and radix (and shadcn by extension) which are so damn good

#

then in vue you just have opinionated bootstrap tier shit

#

someones working on a shadcn/radix port to svelte which im using and is quite nice

#

but then if you wanted to use something like solid, you're probably SOL

native berry
#

that you are already at the point of tiling wm are cool instead of frustrating in that short amount of time is pretty impressive. i think it took me like 1-2weeks to get used to it the first time

#

what do you configure it in?

#

yh looking at them atm. is screensharing working now?

#

my wallpaper is grey so i think you got me beaten xD

#

i only have a laptop and would dislike having to change the background every time i go out in public xD

sick storm
#

i have a script to download a random wallpaper on every boot

#

because i couldnt decide

#

so i get something new every day

native berry
#

setWallpaper = spawn $ "feh --randomize --bg-fill " ++ wallpaperDir
i have that in my config gives me a random wallpaper but the directory is empty so it defaults to some nameless grey

sick storm
#

yeah that works if you have folder of wallpapers

native berry
#

i am currently trying to learn some ruby rust is a bit over the top for simpler stuff and i like the ruby syntax, not sure yet?

#

i think i use cmus

#

scratchpads = [
NS "kittysp" (myTerminal ++ " --class kittysp") (className =? "kittysp") termFloating,
NS "cmussp" (myTerminal ++ " --class cmussp -e cmus") (className =? "cmussp") cmusFloating
]

its in the config but not installed

#

firefox beste

#

brave is just weird in general like this bat stuff

sick storm
#

yea im not a fan of brave

worthy lintel
#

i hate firefox

#

always does something wonky when it comes to css

#

compared to chrome

hot pawn
#

just photoshop her screen to be geektyper or something

sick storm
#

genius

sick storm
#

maybe transparency is cool after all

#

dont use ranger

#

it's written in python so it's pretty slow and doesnt have many features out of the box

#

i use lf

#

but it also doesnt have anything out of the box lol

#

you need some extensive config

#

still better than ranger

#

it looks the same

#

but it's faster

#

(just copy luke smith's config)

#

there's probably a ranger clone written in rust i should try...

#

but lf has been working perfectly for me for the past year

sick storm
#

did you install all the programs that actually show the preview

#

and run lf with the wrapper script

#

oh wait

#

you're on waylan

#

ueberzug doesnt support wayland 💀

#

it should start working with this just replace every ueberzug with ueberzugpp

#

or maybe you could try making some wrapper

#

nvm you dont even have to it replaces the other one

#

whenever stuff just doesnt work even though it should, you can almost always blame it on wayland

#

i keep forgetting you use that

#

ok well one last hope, did you try the lf config in that ueberzugpp repo

#

you'd think that would work

#

oh btw

worthy lintel
#

never understood the appeal of all this linux tinkering

sick storm
#

its fun

worthy lintel
#

the fact that youre having to cycle through a bunch of different repos to get something working doesnt sound fun

worthy lintel
#

too true

sick storm
#

wayland moment

#

how did you set up ncmpcpp

#

yeah i was gonna say

#

move it to .config lol

#

well it says right at the top

## This is an example configuration file. Copy it to        ##
## $XDG_CONFIG_HOME/ncmpcpp/config or $HOME/.ncmpcpp/config ##
#

so yes you can move it to .config

#

lmao

#

ok there is no more errors

#

but

#

there are also no songs

#

oh

#

4

#

...

#

oo

sick storm
#

fm np

shell garnetBOT
#
joinemm > Now Playing
**Metallica — *To Live Is to Die* **

:cd: …and Justice for All

39 plays

sick storm
#

oh shit it works

#

rip

#

i kinda want to just try using local for a while

#

download everything in flac

#

but it seems like so much effort

sick storm
#

ok this is pretty cool

ivory ginkgo
#

bc it uses ueberzug again

sick storm
#

yea

native berry
#

might be a bit ambitious but overestimating the own skill and underestimating the project is the first rule of programming

sick storm
#

actually i found several of them already

native berry
#

no no dont tell me

#

always when there is something i want to program it already exists and i dont end up programming anything bc of this xD (and of other reasons but we will just pretend they dont exist)

#

lie to me

sick storm
#

sorry, it doesn't exist

#

brand new idea!

native berry
#

yes rewriting things in rust for sure doesnt already have an almost meme status

#

bat and exa and all the other are just figments of my dreamworld

near shuttle
#

@sick storm it finally happened

#

Orbot twitter access is no more

#

😂

#

took them long enough to place me under the Free tier

#

any alternate solutions? I know web scraping is one but I really cba

#

@worthy lintel as well

worthy lintel
#

probably gonna have to rely on one of those scraping services

near shuttle
#

like selenium playwright?

#

or

#

smth else

#

cuz im not familiar with the scraping scene

worthy lintel
#

theres saas services that can scrape for you

#

either over rest or its like a remote playwright/puppeteer instance you connect to

#

not actually sure what i'd do when needing to scrape at the scale you might

#

im usually only doing stuff like scraping a store for something i want which usually can be done with just fetch and html parsing

near shuttle
#

I see

#

I think it's fine to scale mine back then

#

Originally i was using the streams

#

but i doubt there will ever be a viable non-costly option for streaming

#

Or something that is not an extreme pain in the ass to implement

#

was wondering - how is scraping with instagram?

#

has anyone tried that before?

worthy lintel
#

next to impossible

near shuttle
#

💀

#

why though?

worthy lintel
#

aggressive rate limits

#

join uses one of those saas that scrape for you

near shuttle
#

hmmm alright i'll wait for him to provide the deets

#

it's a paid thing right, the saas scrapers?

near shuttle
#

depending on how frequent the members post on their personal accounts

worthy lintel
#

yeah but youre not just fetching 5-10 posts

#

you're checking every x minutes for new posts

near shuttle
#

oh nono i think i will remove the streaming bit

#

so it will only check when i call the function

#

through a command

sick storm
worthy lintel
#

sure but how often are you calling that

near shuttle
#

whenever the CMs use a /create post <url> function

worthy lintel
#

hm

#

you might get away with it then

near shuttle
#

hmm. okay lilyNoted

near shuttle
worthy lintel
#

i had a scraper running once every 15 min and my acc got blocked in like 36 hours

near shuttle
#

how are u circumventing the problem now?

sick storm
#

im not

near shuttle
worthy lintel
#

no main

#

but you just relogin

near shuttle
#

oh so it doesnt like ban ur account

worthy lintel
#

it can tho

#

if you keep doing it

near shuttle
#

ahhjh i see

#

gotcha

sick storm
#

twt 1666774323028463617

shell garnetBOT
#
Forbidden: 403 Forbidden
When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.```
near shuttle
#

yep...

#

pack it up

sick storm
#

ill let you know if i get something working

#

i have some potential solutions

#

not for streaming tho

sick storm
#

even with rotating proxies

sick storm
#

ez

native berry
#

big brain move xD

#

like frame around applications to indicate state?

#

ahh ok

#

what are you using?

#

no the launcher

#

i will be looking forward to your changed dotfiles

sick storm
#

rofi theming is kinda painful

native berry
#

have the basic theme always worked for me wasnt even aware that you could do icons (or maybe you can only do that on wofi) i have most of it on shortcuts anyway i only use rofi for less used stuff

sick storm
#

you can make rofi look basically like anything

native berry
#

i only know rofi-theme-selector that you could do your own is to be expected

sick storm
#

just look at all these

sick storm
#

drun being for .desktop files (which includes icon)

native berry
#

dont have any .desktop files

#

unless there are some outside of .local/share/applications could remember it wrong though

sick storm
#

most are in /usr/share/applications

native berry
#

yeah that makes more sense

sick storm
#

for the stuff you've installed system wide

native berry
#

rly should take a second look at the linux file system layout

sick storm
#

.local is for your own

#

for example i made a desktop file for transmission-daemon that automatically starts downloading the torrent when i open a magnet link and shows me a notification

native berry
#

that much ik (pretty self explanatory also) but i would be unable to tell you what /usr/share is used for

#

so i also learned about magnet links today thanks

#

(had to google them)

sick storm
#

lmao

#

i guess you don't use torrents much

native berry
#

i dont

sick storm
#

the structure doesn't make much sense

#

maybe it made sense 20 years ago but it certainly doesn't make sense now

native berry
#

problem with a lot of historically grown stuff but backwards compatibility is important so changing stuff and streamlining it is not easy to do ...

#

rly would like to see some further development in the os market for example but software is useless without users and for an os to become a usable piece of software takes decades

sick storm
#

oh yeah there's no changing it now lol

native berry
#

looks good

sick storm
lean river
#

"linux" not capitalized

#

Literally unreadable

#

0/10

sick storm
#

ah shit

sick storm
#

yeah lmao it's tokyo night

sick storm
native berry
#

i most certainly do not use transparency in vim just because it enables me to see my vim cheatsheet wallpaper

sick storm
#

LOL

#

incredible

native berry
#

i am trying to introduce a couple of new things every week for this week i am introducing: f,tF,T and ; , to me if i try to do more i dont think i could integrate them into my workflow

native berry
#

if you jump forwards to s for example with fs then ; repeats that motion without you having to type fs again , does the same but backwards

sick storm
#

oh cool

native berry
#

you gave me the very good idea of maybe using similar note taking software currently taking a look now

#

trying zettlr now

native berry
#

think zettlr will work for now migrating must be horrible

sick storm
#

just take notes in vim

native berry
#

did that before with a entr + pandoc workflow but i like the zettelkasten system even though i am sure i would find a vim plugin for it if i would look for one

#

but if i use zettlr i might be able to share my notes or receive them the vim plugin will be so niche that there will be no chance at that

#

convention over configuration

sick storm
#

i guess if you need those extra features

native berry
#

the links are important yeah cant do without them

#

but ik emacs has a zettelkasten mode so vim has one fore sure as well

sick storm
#

wtf is zettelkasten

native berry
#

its a system of organizing notes
each note has an (unique) id and a different note can link that id the id is basically an url. this results of a graph structure that is a reasonable method for me of organizing notes

sick storm
native berry
#

prof just talked 10min about the adapter pattern i cant take enough coffeeine to stay awake

#

cant have all your config stuff then but better than a normal text editor

#

yh thats more than fair

#

have you found something better system than zettelkasten to organize notes?

sick storm
#

i never take notes so i dont have a system

native berry
#

yeah note taking is only really necessary for non practical learning imo. where you learn to use something at a later time with practical learning taking notes is less necessary if something is important then you will do it often enough that it will stick eventually

sick storm
#

my brain doesnt do non practical learning

#

which is why i struggled so much in uni

native berry
#

think everyone can do it but its the more painful thing to do for sure

native berry
#

and painful and learning seldom mix well

native berry
#

same i just back it up to a private github repo that works for me

#

seems like a bit of an overkill for this scenario

#

yeah ik just never do an email server pain in the ass

#

and you cant simply stop running it bc you might receive smth important on it depending on how you have used it

worthy lintel
#

yeah fuck running a mail server

#

its a nightmare maintaining a good rating and gmail just nukes you anyway

native berry
sick storm
#

i need to build a home server too

#

but im stuck on the hardware idk what's good for server

native berry
#

also have no clue only home server i ever ran was an old pi with nextcloud

worthy lintel
#

i wanna do that too since i have an sff pc and cant load it up with drives

sick storm
#

yea

#

nas/media streaming/home automation

worthy lintel
#

atm i have a 500gb boot ssd, 1tb storage ssd and a 5tb usb drive thats permanently plugged in

#

and the 5tb is almost full

native berry
#

think i will be fine for a while

sick storm
#

ive got a pi but that's not good enough for what i want my server to do

#

media streaming and the pi is just gonna die

native berry
#

no dying pie

worthy lintel
#

pis have gigabit lan now dont they?

#

when i had one, it was 100mbit and the bandwidth was shared with the usb controller

native berry
worthy lintel
#

as long as your media server doesnt need to do any encoding, it'd probably be fine then

worthy lintel
#

holy fuck why is it such a nightmare to install php in wsl

sick storm
#

lol our production build server at work is down. why? someone forgot to renew the domain name...

native berry
#

you didnt

waxen arrow
#

f

native berry
#

got some more background info?

#

like some student not wanting to write exams type of scenario?

#

obligatory be careful with sharing stuff like uni got hacked because its rather easy to find out your uni from that. if you do not want people to know which uni you go to

native berry
#

whats the best language for configurations in your opinion? given that it would need to be a pretty universal one

worthy lintel
#

ive always liked yaml

native berry
#

given the choice between xml, json, and yaml yaml also seems the best for me json doesnt have support for comments and its annoying to write it makes sense as a data exchange lang but not sure as config lang. and xml just isnt for humans

#

but idk what langs are else common for configurations sure just shell scrips and the .conf stuff but the .conf stuff has no standard or at least i couldnt find one

worthy lintel
#

yeah i dont like using json for config cause it doesnt map 1:1 with javascript objects

#

valid json, valid js object

{
  "key": "value"
}

invalid json, valid js object

{
  key: "value"
}
sick storm
#

yaml my beloved

native berry
sick storm
#

json is so annoying to write

#

quotes everywhere

worthy lintel
#

valid json requires keys to be wrapped in double quotes

#

whereas js objects dont need quotes at all

#

and when youre writing objects, you typically dont key with quotes unless you have things like dashes or spaces in your keys

native berry
#

quite like json tbh as long as i dont have to write it

#

used a .json file as a db for a while bc it was good enough

#

(and idk shit about sql and so on)

sick storm
#

yeah i mean i wouldnt use yaml for data that you generate/read

#

thats what json for

#

but yaml good for config

native berry
#

yeah my statement was removed from the config context

deft shadow
#

our professor wants us, for our project, to make a "Simple Flet-Based Reddit Client"

#

you know, while reddit is

#

gestures

#

like that

sick storm
#

LOL

#

guess he didnt get the memo

worthy lintel
#

@sick storm @near shuttle guess what the genuises at twitter did now

#

disabled 1.1 without adding the corresponding media upload endpoint into v2

#

so now you cant upload media on the free plan

sick storm
#

are you surprised

worthy lintel
#

in a way kind of, people have been asking for media upload in v2 for literally years at this point

sick storm
#

the free plan is basically unusable

#

oh

worthy lintel
#

the docs still refer you to 1.1 for media uploads in v2

#

community discussions going back to like 2020 say to just use 1.1

near shuttle
#

LMFAOOOOO

#

Gotta love Twitter

#

Such a shit storm it's crazy

native berry
#

tried installing solargraph but it isnt working while rust-analyzer worked right out of the box will take another look at it tomorrow

#

or today after i slept

near shuttle
#

@worthy lintel ur web scraper bot is not used in discord right?

#

thinking of ways that I can run the web scraper periodically, might have to run it in a separate thread because if i run it in the main discord execution thread it will crash (probably)

sick storm
#

make a scraper microservice that sends new tweets to a queue for the discord process to consume

worthy lintel
#

So it’s all jank in one file, not something that’s setup properly like your bots

near shuttle
near shuttle
#

Can't use webhooks for mine unfortunately pain

worthy lintel
#

Queues like rabbitmq

#

Or just redis

sick storm
#

yeah that

near shuttle
#

Okays thanks

#

I'll look into it

sick storm
#

wayland moment

worthy lintel
#

discord has been such a shitshow lately

#

gotta be a memory leak or something, its been crashing and lagging bad

sick storm
#

yeah on mobile too it's lagging so bad

soft fox
#

Yo I passed the C paper with A grade :D

#

I still don't know how to recursive functions but that's ok

native berry
#

congrats

#

recursive functions are nothing special just call your function in the function body

soft fox
#

I understand the working of it

#

but I haven't quit gotten around how to apply it

native berry
#

if you see some examples you will understand it quickly common examples are: fibonacci, binary search, quicksort, recursive descent parser and so on

soft fox
#

hmm I shall do that

native berry
#

or tower of hanoi

soft fox
#

interesting names

#

I have never come across these

native berry
#

not sure what your teacher is doing then

soft fox
#

My teacher was shit

#

the entire curriculum is shit

native berry
#

i mean they could have used different examples for recursion but they rly are quite common

#

uni or school?

soft fox
#

we had one class for recursion, then he skipped to structures

#

uni

#

I mean it's just a 1st year syllabus

#

it's common for all students regardless of their branch

native berry
soft fox
#

I see

native berry
#

shouldnt you have an intuition for recursion about math then if you are in university?

soft fox
#

wdym

#

My math has admittedly become terrible after the pandemic

native berry
#

math makes heavy use of recursion and I assumed you study cs (because you have C in the first semester)

soft fox
#

i uhhhh

#

I'm a mechanical engineer, nice to meet ya :)

native berry
#

also sounds math heavy

soft fox
#

I will get screwed in thermodynamics and fluid dynamics if I don't prepare yep

native berry
#

have fun i am also going to get screwed over by math xD (not getting screwed over its fair not putting in the necessary time is my fault)

soft fox
#

:(

deft shadow
#

trying to merge a fuckton of jsons in one folder how are we doing

#

i have found stuff in the internet but like i do not know how to implement it

native berry
#

could you upload some sample files? and a description of your desired output

deft shadow
#

wait hold on

#

what im trying to do might not even work

#

realizing right now that merging the JSONs of geographic data doesnt work and i might have to manually convert each json to a shp

worthy lintel
#

why cant you just read the json in code, merge, write to new file

deft shadow
#

wat

#

(the repo does not exist)

#

sends ya to a 404 page

sick storm
worthy lintel
#

your uni?

#

whats the extent of it?

#

oof

native berry
#

what data got acquired?

#

doesnt sound like your exams are going to happen

hot pawn
#

welp

#

i have this too now

#

fun

deft shadow
#

what

sick storm
#

gg

#

could have visited me

#

which uni is it

#

i see

native berry
#

love it

waxen arrow
#

love it

deft shadow
#

love it

sick storm
#

miso bot hit 100 stars on github :D huge achievement

deft shadow
#

do you ever just have a project due in one week whose guidelines are incomplete

#

thanks for nothing prof

deft shadow
#

mfw python doesnt do multiline comments

waxen arrow
#

That's for strings iirc

native berry
#

no multiline comments were considered for rust until a blind dev said that oneline comments are annoying to read

sick storm
#

i never do multiline comments even when the language allows it because i think it looks weird

native berry
#

i prefer muiltiline most of the time they look nicer imo

#

they have that bracket structure

hot pawn
#
"""Docstrings are great what's the issue here?"""
sick storm
#

its not really a comment

hot pawn
#

yeah true

#

i think its cause of the whole pep8 "your code should be self documenting" thing

#

guido says you shouldnt need to write more than line of comment gowonkek

deft shadow
#

no but like

#

this is for debugging where i just wanna turn off(?) bits of code for a but

worthy lintel
#

highlight block of text -> ctrl+/ -> block is commented out

#

highlight block of commented text -> ctrl+/ -> block is uncommented

hot pawn
#

yeah

#

a long line of red #s is also quite visually appealing

waxen arrow
#

Meanwhile comments in C 😩

#

Actually pretty convenient

#

/* deez */

native berry
#

thats the comment structure i try out first in every lang

native berry
#

so got the point deduction for missing javadoc

#

and had to do the next assignment too bc of 0.5 points

worthy lintel
#

self documenting code makes sense but it also ignores the role ides have

hot pawn
#

your mistake was assuming java is ever legible

worthy lintel
#

you cant read self documenting code when hovering a function

#

but you can read its comments

#

sure you can just cmd-click into it but then youre context switching

native berry
#

thankfully i didnt get a point deduction for that

native berry
#

way to go

#

shame upon him

native berry
native berry
sick storm
#

yea

raven mist
#

damn

hot pawn
#

i hope I never have to use RStudio ever again in my life

#

ftfy

native berry
#

name of the domain?

sick storm
#

make website

native berry
#

guitar covers?

sick storm
#

idk blog/portfolio

native berry
#

your username is black is it your birthday?

#

never noticed that before i aint the brightest

sick storm
#

lol i gave myself the black role when i was a m*d

sick storm
#

@ivory ginkgo boy do I have the perfect video for you https://m.youtube.com/watch?v=OWAqilIVNgE

Pls don't hack me even though I gave you my root password!

https://www.epik.com/?affid=we2ro7sa6 Get a cheap and reliable domain name with Epik.
https://www.vultr.com/?ref=8384069-6G Get a VPS with Vultr and host a website or server for anything else.

In a series of based slightly-off ffmpeg video cuts, I set up a website with all the essentia...

▶ Play video
#

(or just use vercel for easy route but you should learn the basics manually)

native berry
#

his website is called unaboomer <insert pepe emoji i dont have>

worthy lintel
#

Vercel very cool

#

Remember to use nuxt or sveltekit so you don’t develop react brain 🫡

native berry
sick storm
sick storm
orchid minnow
#

TIL who bhaskara is

arctic lava
#

the mathematician?

sick storm
#

you know you're in for a bad time when you see this message

#

i still dont really understand the merge conflict syntax

worthy lintel
#

whats confusing about it

sick storm
#

which is what and what goes where

worthy lintel
#

this is your current branch/working state

#

anything between these two is whats being attempted to merge in

#

but in this case there's been changes to that one line in both branches and it can't figure out what is what

#

actually i have no idea whats going on on line 15

#

never seen | | | | |

sick storm
#

ok i think i get it after staring at it for 10 minutes lol

#

we did it bois

#

crisis averted

#

i still dont think this whole process is very intuitive

worthy lintel
#

yeah merge conflicts arent great

native berry
#

so you are free now? have fun with your website

#

nothing better than some practical learning

#

if you pass you wont have to worry about anything for the break

native berry
#

uff

worthy lintel
#

cpp vividisgust

native berry
#

cout << "i dont think this syntax is that horrible";

sick storm
#

<< endl;

native berry
#

yh right cout was buffered

#

i forgot

sick storm
hot pawn
#

beautiful

sick storm
native berry
#

sounds good

worthy lintel
#

i always get a few days into those and get bored

sick storm
#

last year i got to day 10

#

then the problems werent so easy anymore

native berry
#

you need to work on smth to get experience and if you dont have a project an alternative is good

sick storm
#

but also i was using rust so that added some difficulty

worthy lintel
#

i think for me i just get bored of these challenge kinda things since they rarely have any relevance to day to day work

sick storm
#

true

worthy lintel
#

but that might just be because im a web dev code monkey

#

rather than doing something actually difficult

sick storm
#

LMAO

#

yeah the motivation just isnt there when the aoc questions are like

Figure out which monkeys to chase by counting how many items they inspect over 20 rounds. What is the level of monkey business after 20 rounds of stuff-slinging simian shenanigans?

#

(real question from last year)

#

i spent more time on my CI pipeline for benchmarking my solutions that actualyl writing them

native berry
#

thats worse than my assignments

#

with doctor recursion

sick storm
#

maybe that's why im devops

native berry
#

whats the difference between CI and CD btw?

worthy lintel
#

ci would be running your tests and shit on push

#

cd would be deploying to a server

sick storm
#

cd is deployment

#

yeah

worthy lintel
#

people use them interchangably tho

native berry
#

but dont both just automate testing and formaater and stuff?

worthy lintel
#

ci = continuous integration
cd = continuous deployment

#

thats ci

#

cd would deploy your code on push

#

cd is usually dependent on ci passing

#

for example

native berry
#

so CD is more automated than CI with deployment happening automatically?

sick storm
#

well both would happen automatically

worthy lintel
#

well theyre both automated but i suppose cd is more "magic" to those that dont really understand cicd

native berry
worthy lintel
#

yeah no using ci/cd interchangably on an exam is not good

#

but in the field people will just know what you mean

#

and yeah there's subtle differences between each of those

sick storm
#

people just say CICD

#

meaning everything that happens automatically

worthy lintel
#

yea its just kind of a catchall name for automated tooling

sick storm
#

yea

native berry
#

CICD is fortunately only a sidetopic on the exam

sick storm
#

for an exam you'd want to find some textbook answer

native berry
#

so far i read to 2 textbooks one covering testing and one more general which gave an overview over software engineering

worthy lintel
#

testing is a whole black hole to get into

native berry
#

project management is prob the topic i am the weakest at

native berry
native berry
worthy lintel
#

component testing as in web component (react etc)?

native berry
#

idk module tests would be an alternate name idk react

#

like you test single classes and so on the smallest parts of a software that can be reasonable tested

worthy lintel
#

never heard of module tests

#

sounds like unit tests tho

native berry
#

yes that was another name for it

#

too many names feelsyeojin i also have to remember the german ones its funny but ...

sick storm
#

unit test is the one people usually use

worthy lintel
#

unit refers to testing a piece of code in isolation, like a single function

native berry
worthy lintel
#

integration tests are usually the whole flow, like a whole http endpoint

#

then you have stuff like mutation testing, browser testing etc

native berry
#

browser would likely equal system and mutation idk

sick storm
#

end-to-end testing
black box testing

native berry
#

blackbox is a testing strategy

worthy lintel
#

mutation is kind of the inverse of blackbox in that you change how the code works and you make sure it fails

native berry
#

but we covered 4 different kinds of whitebox and 3 differend kinds of blackbox

native berry
#

and then ofc some static methods also

sick storm
#

i know bunch of these things but I've never actully had to write a test myself

worthy lintel
#

i have a love/hate relationship with testing

#

i hate writing them but it is very nice to see if ive broken something accidentally

#

but i rarely ever write them for my own projects, only work stuff

native berry
#

thats why i like static analyzers

worthy lintel
#

static analysis isnt a replacement for tests though

#

thats more of a linter

native berry
#

unfortunately no but they can take some work of you

worthy lintel
#

kind of

#

they're great for dynamic languages so you can enforce consistent typings

#

and if you want to enforce arbitrary rules in your code

#

but they can't check your inputs/outputs, which is what tests are for

#

its more of an IDE tool while you're writing

native berry
#

we had them for mostly design like checking your architecture for violations bc thats one if the research topic of the prof

#

talking about sofware engineering made me realize how much idk i am fucked

#

the head first books are good mostly because they arent as sleep inducing

worthy lintel
#

that would make sense if the gravity tab was built to be modular but it probably isnt

#

they probably have a list of poll types they can use

#

maybe, probably depends on how they built the fandom name vote

#

that one seems like it'd be reusable for this

#

only thing i can think of would be if for the fandom name one, they didnt need the extra field since its just a single string for the name

#

whereas the artms one has the city and the country in another field

#

unfortunate short term planning if its something like that

sick storm
sick storm
#

bro wtf do you mean

wraith python
sick storm
#

my website

worthy lintel
#

typescript can’t infer like that, you need to set observer.current to a variable first

sick storm
#

oh

worthy lintel
#

or just do observer.current?.observe

sick storm
#

well i fixed it with ?

#

yeah that

#

i thought it could figure it out from something this obvious

worthy lintel
#

nah there’s lots of cases where it can’t narrow types properly

#

the worst imo is in loops like [1, 2, undefined].filter(Boolean)

#

The output type is still number | undefined

#

Cause ts isn’t smart enough to know you’re filtering out falsy values

raven mist
#

that was fast

#

took one day

#

LMAO

sick storm
#

might even get day2 done by then

sick storm
native berry
#

i could see ruby doing it from the desgin philosopy behind it but yh ruby aint going to change the syntax for its property accessor

lean river
#

My little sister is learning C++ in her O level

#

PopOS good?

hushed nova
#

O level

#

Got C++???

lean river
#

iunno she said she gonn learn C++

#

Or wait

hushed nova
#

Damn

#

Okay maybe I old alr

lean river
#

is "matrik" O level?

hushed nova
#

Idk eh HAHAHA

#

Never use PopOs before so idk man

lean river
#

Have you heard such thing? Caus I know diploma and degree

native berry
#

what is matrik?

lean river
#

it's

#

...ah shit I need Nicki for this

#

We have like another class of like diploma

#

It's not called diploma, because it's not too specified like a diploma

native berry
#

i only know like bachelor and master

lean river
#

In my language it's called "Matrik"

#

if she graduates, she can skip diploma and go straight to degree

#

and the term is like a year and a half or somehting

native berry
#

thats nice

#

thats really short

lean river
#

as opposed to 2 and a half in diploma

hushed nova
#

Damn

#

Aku tak tau HAHAHA

#

I tried google

#

Isit the 1 year one

native berry
#

does she study computer science?

lean river
#

"Matrik" is like higher-than-higher school

#

Matrikulasi merujuk kepada proses kemasukan rasmi ke universiti, ataupun proses kelayakan untuk masuk ke universiti.
Program matrikulasi merupakan satu program persediaan pra-universiti bagi lepasan SPM (90% Bumiputera) untuk melanjutkan pelajaran sebelum ke peringkat Ijazah Pertama di universiti ataupun kolej universiti.
Program pra-universiti ...

lean river
hushed nova
#

Ah yea

#

I was reading that

lean river
#

Matriculation, if that makes sense

#

Anyway

#

it;'s like high school, you learn all the things school syllabus taught you but another level

hushed nova
#

idk if we have anything similar ah

lean river
#

That means language, math etc

hushed nova
#

Closest is A levels ig

#

But As r 2 years and I think much higher level then the matrik

lean river
#

but my sister has extra course and it is CS

#

So like

#

Programming

native berry
lean river
#

And actually before I was considering a laptop to her, I was suggesting for like a decent android tablet

#

because I was like "oh she's only going to do word processing"

hushed nova
#

oo

lean river
#

Then she said "I am gonna take a programming thing" and I was like

#

"yo no, forget tablets"

#

"You absolutely need Windows for that"

hushed nova
#

yea

lean river
#

I mean the laptop was already sent to her

#

Just that

#

If she's gonna learn the languages that usually a very new CS students' gonna learn

#

What distro that is like, not scary enough for new users, just for the sake if her Windows installation goes south

worthy lintel
#

pop os is gaming oriented

lean river
#

(though I doubt it'll happen, last time I checked the Windows installation was very standard)

sick storm
#

ubuntu

native berry
#

i favor Manjaro for that situation either KDE or Xfce

#

arch repo is nice to have

lean river
#

wait that's also PopOS

sick storm
#

yeah it's just anything arch is going to be more difficult for noobs

#

and manjaro is not good

lean river
#

VS Code is just gonna work right

native berry
#

the installer manjaro uses is good and kde/xfce are close to the windows ui

lean river
#

(I am assuming that's what she gonn use)

#

I don't want her to follow my steps and use vim

native berry
#

please

sick storm
#

instead of manjaro look into endeavourOS or opensuse

#

yeah

native berry
#

yes and with that debian

#

maybe it might be reasonable to install whatever distro you decide on as a dualboot instead of installing it when windows fucks up. an install isnt that difficult but the barrier exists for many people and especially when it comes to partitions they can be a bit scary

sick storm
#

for basic usage anything will work

#

just get rid of windows

#

yeah mood

#

on windows i have the fancyzones thing

native berry
#

the hate is strong i love it
down with proprietary software

sick storm
#

for pseudo wm-like layout

#

every time i have to boot into windows I can just feel the lag and unresponsiveness

#

and i instantly get notifications for windows update

native berry
#

all the intuition of the shortcuts gone

#

and with that all resemblance of a workflow lost

sick storm
#

i dont do any real work on windows

#

it's just steam and lightroom os

worthy lintel
#

whats your specs, windows isnt that bad unless your install is bloated as shit

sick storm
#

good enough

worthy lintel
#

weird

#

i can usually keep all my work containers and stuff open and play games at the same time without any perf loss

#

only thing thats slow is file indexing/searching because i have a slow hdd plugged in

sick storm
#

like say i click something on the taskbar to open it, it takes multiple seconds to open

worthy lintel
#

yeah definitely not normal

#

might be time for a reinstall

sick storm
#

it's especially bad right after booting

#

if I reinstall it I'm going back to windows 10

worthy lintel
#

fair

#

i only went to 11 cause directstorage was exclusive to it

#

but then they ported it to 10

#

zzz

sick storm
#

there are few games i would like to play that just crash constantly on w11 (hitman 3)

worthy lintel
#

nothing should really crash on 11 and work on 10

#

11 is literally just 10 with a web view shell

sick storm
#

tell that to the IO Interactive devs

worthy lintel
#

pepegas

sick storm
#

IO interactive have confirmed to me that they do not support Windows 11 and are aware of the crashes Win11 users are having. I asked why there is no warning before buying this if they are aware, and was told: 'On the game's store page (on any platform), the listed operating system for both Minimum and Recommended specs is Windows 10. This is the operating system we recommend, require for the game, and can guarantee that the game will function and perform well on'

worthy lintel
#

???

#

minimum and recommended do not mean required

sick storm
#

yeah you'd think

#

and on linux through proton the game runs at like 10fps

#

so fsdeshrug

#

often when it crashes it takes the whole OS with it, rebooting my system

left aurora
#

huh my hitmanwoa no crashes eh

sick storm
#

some combination of w11 and AMD gpu causes hardware errors

#

but only when i play that specific game

#

and it didnt happen on w10

raven mist
#

also easy to setup

#

for previous windows users

hot pawn
#

(just use wsl)

#

very simple

worthy lintel
#

wsl v good

sick storm
#

yeah but then you'd have to use windows

sick storm
sick storm
sick storm
#

so i ran a docker system prune -a and

#

that's where all my disk space went

native berry
#

does agile and iterative differ in the sense that agile is a superset of iterative models? as in agile requires active product owner involvement as well as some other shit? (idk any other shit but active user involvement so pls also help me out there)

worthy lintel
#

does agile and iterative differ in the sense that agile is a superset of iterative models? as in agile requires active product owner involvement as well as some other shit ? (idk any other shit but active user involvement so pls also help me out there)

native berry
#

thanks that is on a level where i can remember it

sick storm
#

i have no clue bro

#

but my company does agile

native berry
#

i asked on the discord server of my uni now i am just confused

#

but it wont be asked on monday so all good chuupray

sick storm
hot pawn
#

wth is it december aleady

sick storm
#

well i wasnt gonna save this meme to send it in december so have it now

waxen arrow
#

2nd to last one is one of my firends irl

#

also an internatioinal student as well 💀

sick storm
#

big update for my website, I got incremental static regeneration working. Meaning whenever I update the content in my headless CMS, vercel will rebuild only the page that uses that data, thanks to some webhook magic. This way I get all the speed benefit of SSR and static pages, but it updates in basically real time if I edit or add some content.

worthy lintel
#

doesnt next have that just built in

sick storm
#

well kinda but you have to make it work

worthy lintel
#

are you on pages or app router?

sick storm
#

the old one

worthy lintel
#

right

#

might be app router that requires server actions to do it

#

or its something to do with the page options export

sick storm
#

app router really seems more trouble than it's worth

worthy lintel
#

having played around with it, i do like the idea

#

i come from a php background which is probably why the concept isnt so foreign

#

but the dev server performance is complete dogshit

#

and there's some things like forced caching that is having issues

sick storm
#

i would almost have to rewrite my whole site to migrate

worthy lintel
#

afaik its mostly just moving whats in getServerSideProps into the component and making the function async

#

does isr revalidate upon deploy to vercel? apparently sveltekit supports it but its opt-in

#

might try switching it over to edge runtime too

sick storm
#

deploy just rebuilds the whole thing

worthy lintel
#

ah you cant use isr with edge

#

makes sense

#

last time i tried to use edge stuff with next the bundle size was over 1mb so it wouldnt work

#

alchemy package uses axios which doesnt work on edge, ok then

worthy lintel
#

that's better

#

alchemy using a year+ old version of axios chuufist

worthy lintel
sick storm
#

how the fuck

deft shadow
#

excel users

how do i make condition formatting apply to an entire row

e.g. if cell C2 is so and so then the entire second row will be formatted like red or whatever

hot pawn
#

C2:J2 (or the end of your table)

#

ah i just reread it ignore that

#

you want $C2>10

#

and apply it to the whole table

sick storm
native berry
#

looking down on emacs sure jinsoulrly

sick storm
#

bro i keep asking people at work events what distro they use and everyone says ubuntu. I say I use arch (btw) and they say never heard of it

#

this is so sad

native berry
#

at least you are one up in the flexing game

#

but if they dont know how would they know about your superiority chuukek

sick storm
#

yeah exactly

#

if they don't know what arch is then it's not really a flex

worthy lintel
#

svelte and tailwind is the way

waxen arrow
#

anyone know how to integrate an sql database into a discord bot? im trying to make one rn

worthy lintel
#

uh

#

you have to write the integration yourself

#

i dont think there's any discord bot frameworks that would offer a direct database connection

sick storm
#

yeah same way as any other application, the fact that it's a discord bot doesnt change anything

#

except you'll just have to make sure your I/O is async or the bot will drop the gateway connection to discord

waxen arrow
#

hmm ok ill see what i can do

sick storm
#

now you just need to create some more files

worthy lintel
#

liveserver?

#

idk what that is but i assume it just serves the local dir

sick storm
#

it's just for dev environment

worthy lintel
#

youll have to take vite from my cold dead hands

sick storm
#

vite is obviously better

#

just maybe overkill for one index.html

worthy lintel
#

every time i open vsc to work on my nextjs project i end up deciding not to because nextjs fucking sucks to work with

#

because vercel refuses to use vite

raven mist
#

explain like im 5

#

im too rusty for this

#

wouldnt like most databases be async as most are their own program next to the discord bot running

native berry
raven mist
#

not in that way

native berry
raven mist
#

in what way does the database cuse the bot to drop the gateway connection

#

cause*

worthy lintel
#

a process can only do one thing at a time

raven mist
#

hmm

worthy lintel
#

you have to maintain a persistent connection to discord to listen to events

raven mist
#

is sqlite not async

#

ooooooooh

worthy lintel
#

thats not a database limitation but a language limitation

raven mist
#

ah

#

java should be able to handle it right?

worthy lintel
#

i assume it has async io so yeah

raven mist
#

ive just noticed my javabot keeps crashing but i juts thought it was amemory issue caused by my code

#

happens like after a month or so

#

its using sqlite

#

but its probably not the cause

worthy lintel
#

should probably have some logging and look at the stacktrace when it crashes

raven mist
#

yeah i saw some socket errors but i didnt dive deeper into it

#

its juts a tiny ass bot i made for some friends in their little sevrer

worthy lintel
#

if you dont have connection retries then network errors could cause it to crash

raven mist
#

hmmm

#

i think JDA does have it built in

#

(Java Discord API)

#

A fatal error has been detected by the Java Runtime Environment:

Native memory allocation (mprotect) failed to protect 16384 bytes for memory to guard stack pages

An error report file with more information is saved as:

#

ooops

#

didnt meant to do that

#

i should probably google that

#

instead of typing it in here

#

oh well Shrug

#

thanks tho kairu joesmokesalute

sick storm
sick storm
#

without async the bot would halt all execution of code while the data is being written or read from the database

#

and just wait

#

i had to deal with this problem a lot in 2019/20

raven mist
#

Do you know If the jdbc library Does things in async?

#

Would this cause a disconnect all the time or would it just like make it appear as If the bot is lagging?

#

Maybe i found the cause of the lag

sick storm
#

i have never touched java in my life so no

waxen arrow
#

wait so i get async lets the bot do stuff on its own, but only when its online, how would you keep it permanently online for commands instead of having to run it every time you use it?

worthy lintel
#

you keep the bot running on a server

waxen arrow
#

Yeah but every time I want to run my bot I have to use either cmd line or run it from the ide

#

I want to know how it stays online permanently

#

In multiple servers at once

worthy lintel
#

you upload the code to a server like on aws, digitalocean etc

#

run it

#

and it stays running when you log out of the server

waxen arrow
#

So you just have a PC that's perma online logged into the server? 🤔

#

I'm assuming it costs money

worthy lintel
#

thats how the internet works yes

waxen arrow
#

I see

worthy lintel
#

aws has a free tier

#

for 12 months

#

otherwise you can get vps instances for $5 from many different platforms

#

digitalocean, linode for example

#

wait wtf why is linode rebranding to akamai

sick storm
#

server as in a cloud server not a discord server lol

sick storm
#

I hacked my router to gain root access just so i can run pfetch on it

native berry
#

cant you just reset it even if you forgot the password?

sick storm
#

there is an exploit to escape the zyxel cli with traceroute ";sh"

#

you're talking about the admin user

native berry
#

ok sry just understood now

sick storm
#

the "admin" user actually has barely any permissions

#

there are two other users, root and supervisor

#

which you arent supposed to be able to access as a consumer

native berry
sick storm
#

idk why I did this I have no use for it but it was fun

native berry
#

fun is a good justification

sick storm
#

I should be working but yeah

raven mist
#

4 arm cores

#

and 24gb ram

sick storm
#

permanent free tier?

#

what's the catch

raven mist
#

uh

#

good question

#

i dont know yet

native berry
#

arm i guess?

raven mist
#

theyll probably discontinue it

#

well

#

its 4 arm cores or 1 (shared?)x64 core i think

#

** 1 OCPU on x86 CPU Architecture (AMD and Intel) = 2 vCPUs; 1 OCPU on Arm CPU Architecture (Ampere) = 1 vCPU

#

damn

#

they changed it wtf

#

it didnt use to say 3000 OCPU hours and 18000 GB hours

sick storm
#

but yeah it looks really good

#

these are small issues considering it's free

raven mist
#

i have it running the loona minecraft server and a random bot rn

#

no one plays really so its not too laggy

#

if more than a few players are on at the same time tho

#

💀

native berry
#

thats some good info thanks rob

raven mist
#

hey wtf

sick storm
#

1 core minecraft server

#

not surprised

raven mist
#

no its 4 arm cores

native berry
#

not even .edu email required

raven mist
#

nope

sick storm
#

oh

#

not very powerful cores

raven mist
#

nope not the most powerful

#

i think its decent tho

sick storm
raven mist
#

yep

#

💀

#

ERP HUH

raven mist
#

its great if you wanna just experiment with creating one

sick storm
#

ye

raven mist
#

or any small solution really

#

maybe oracle is spying on you and stealing all your data but idk

sick storm
#

i wouldnt be surprised

native berry
#

industry standard

sick storm
#

no i use the catpuccin one

#

you have to do like webcord --add-css-theme ... or something

#

ngl I'm getting slightly annoyed with the limitations of webcord

#

especially the shitty right click menu

#

no hardware acceleration (-> 1 fps stream)

#

cant raise volume to >100%

sick storm
#

none of them are as good

sick storm
native berry
#

I think i should switch to intellij and not use vim when I have an assignment in java and I have no clue of java

worthy lintel
#

jetbrains ides are good