#🪅-progaming
1 messages · Page 93 of 1
you know for 300k lines
id expect firefox to set your entire house on fire
what the hell are you doing
thats why its fire
missed a ! before a console.log
it's fine I only have a checks notes macbook without a fan
macbook airs are truely black magic no fan and my m3 one still manages to keep cool most of the time and even when its hot i dont notice a performance decrease unless im doing some very heavy work
jesus fucking christ how the fuck are you supposed to review somewhat big PRs on this fuckass site
in the terminal like a real linux user
(/s)
i'll just use rider- TF IS THAT
iaint even pressed anything it just starts doing it by itself
me when ai slop
@grok explain this PR
well at least it does not freeze when i open changed files
unlike on github dot com
eh
I couldn't find a good way to get the first arg of a function ($1 is e,n,t,b or whatever) so this is my jank solution
Often arguments[0] does the trick
that's what I did
No it looks like you defined a custom args
I'm talking about the arguments keyword, not a cheap knockoff
oh wait that exists
certified discord moment™:
I log two things every time discord does a permission check
I left the app on idle for 15 minutes
278,899 logs
im looking through old public presentations rn (cuz i have to make one myself) what the hell is this dude 😭 and here i thought SQL was the worst option
ur just better pooks
@valid jetty can zed do this
idk probably not
fuzzyfind is not useful in 99% of cases lol just search normally
unless youre searching files in which case sure
That's the lsp's doing, not the editor, no?
hmm idk actually
this is completion
im not searching
im typing code
youre searching for an autocomplete option that matches your fuzzyfind query
its still fuzzyfinding
if your files are called TokenValue::String i think theres something wrong
lmao
it is much easier to type tokenvaluestring than TokenValue::String()
idk i just got used to typing full syntax
I just write String, lsp fills in the rest
that too yea
helps when i need to work in a new environment where i dont have all my shortcuts
i dont need to remember the syntax if i just always type the syntax
idk what kinda lsp u have but i want it
well im pretty sure im not gonna forget TokenValue::String()
lmao whatever
what is this supposed to mean tho
you can still search normally even if its fuzzy
except its much easier to fuzzy find
yea but i meant like, fzf is more of a gimmick for cases like this
sorry im in my ragebaiting era today
fzf snippets is not a gimmick
unless you love the shift key for some reason
(are you secretly microsoft???)
my shift key is caps lock ❤️
(my shift key is broken, i remapped caps lock to lshift)
it breaks various things lmaooooo
my shift key is uhm uhh uhh
like for example i cant type " or + using lshift i have to use rshift
i have to hold enter to type +
and i cant do shift + down arrow to go down a bit of a document in code editors i need to scroll lmaooo
press , while holding enter
or well, use vim shortcuts
hjkl???
no i mean half of the screen at once
to go down far quickly
its a macos thing i got accustomed to
well specifically to select
i have arrow keys mapped to the home row on the number layer (when holding space (left thumb key on the right half))
cmd + arrows goes to start and end, opt + arrows goes back and forth 1 word
shift + arrows selects at the same time
its kinda annoying to have to hold a layer toggle but if not id have to either use hjkl in weird spots cause not qwerty or map d to h, e to j, a to k, and i to l and remember that
cmd+shift+down arrow selects everything until the bottom of the file, this was super convenient before but my lshift key doesnt work anymore so i manually need to select the text with my mouse like a peasant or become fast enough at vim shortcuts that i dont rely on my mouse for that kind of thing anymore
are you insane
ctrl d ctrl u??
nop
if anyone wants to use your setup to code youre done for
well yea thats not really a goal i have
control is in a really awkward position
at my last internship nobody used vim
im not gonna stop myself from using vim just so someone can use my computer

get a better keyboard
some of them unironically used the home/pgup/pgdown/end keys on a 100% keyboard
i literally got used to doing everything without an external keyboard or mouse
you dont have to use it
no i do
i dont want to bring bloat everywhere with me
i can just bring a single laptop and do everything i need
your macbook keyboard doesnt magically disappear when you get a different keyboard
but you will end up preferring to carry the other stuff with you
lol obviously but i dont wanna have to carry anything else with me
thats both my keyboard halves and my wallet in 1 pocket
you can make them wireless with a battery so its literally like pulling out your phone
phone still fits and theres still more space
i dont think you quite get how optimized i made this setup
my macbook is on life support right now
cant be as optimized as mine
and mine isnt even optimized
and definitely not even close as comfortable
i just put this light thin laptop in my backpack and take it out and do whatever and thats literally all i have to bring
ive spent years getting used to this laptop keyboard and the trackpad on apple devices has always been really good historically
it would be more of an inconvenience to bring an external keyboard and mouse than not to
i dont even need a laptop bag
it goes straight into my bag
i generally dont carry my laptop anywhere more than twice a day so its not a problem but if i for example have to go to another room its not like my laptop keyboard just despawned
lmao i guess
i bring it with me to school and stuff
you can imagine how nice it is to be able to sit down, pull out just a single light laptop and start doing stuff instantly
it would be much less of an inconvenience to carry two really small halves of a keyboard and be able to type comfortably, almost not moving your fingers at all
i mean thats only because you learnt that specialized layout
im alright with qwerty lol
youve never tried fully learning a different layout so you cant know how it feels
idk lol but i understand why people bring external peripherals
on most laptops, the keyboard and trackpad are straight ass
on macbooks the keyboard is good enough and the trackpad is great, so i have no need to
macbook keyboard might have nice switches but its a row staggered keyboard
and it most definitely does not have the best switches / whatever membrane it uses
yea no its not the nicest keyboard ive ever used
but imo the fact that the travel time is so low is a benefit
though i do agree, my thinkpad keyboard is better
but the trackpad doesnt compare
the thinkpad trackpad is absolutely horrible compared to the macbook one
when i had to use it i genuinely understood for the first time why people bring external mice
now the thinkpad just lives at my house and i connect via ssh with my macbook 
partly because the battery isnt good enough to bring it with me, partly because its so bulky and heavy
look at second 33
what is this 😭
dropped to 36 wpm
😭
i misspelled know, typed another word and then for some reason went back to fix it
youre concerned about switch travel time but not about finger travel time?
have you ever tried 10-20gf switches
me neither but theyre probably awesome
im not big on keyboards lol
the most ive tried are brown blue and red switches
i still have a brown switch 75% somewhere in my room
colors dont say anything about switches if youre comparing different types
no i know
youre not gonna get low travel time on mx switches
i just meant, i dont even know brands
you need kailh choc or gateron low profile
i just know the difference between tactile and clicky and whatever
like the bare minimum
these are super lightweight and completely silent https://shop.beekeeb.com/product/kailh-silent-switch-linear-nocturnal/
The Ambients line of silent choc key switches created by LowproKB & Kailh Key Switch Type: Ambients Silent Nocturnal - Silent Linear - Operation force: 20g Some compatible choc low profile keyboards: - Crkbd v2.1.0 corne-chocolate - Crkbd v3 Choc - Sofle v2.1 RGB Choc - 3W6HS - Ferris Sweep v2.2 - Cantor / Cantor Remix / Piantor Pro - Hillside
you would probably hear more on a laptop keyboard
interesting
cause you seem to like low travel time
im prob gonna buy this soon https://www.zsa.io/voyager
The Iris CE (Compact Edition) is a low-profile Choc V1 variant of the popular Iris keyboard! Reprogrammable to any keymap layout you'd like with QMK/VIA! We've worked up case parts for the Iris CE PCB that offer a more premium feel than other ergo split keyboard offerings. The spacing of the keys is more compact than a
i mean yeah its kinda great
long travel time messes with my fingers and lowers my accuracy heavily
theyre made by companies so they have all of the nice qol like a bottom plate/case, a carrying case, and rgb lights
i have to press way harder just to get a word accurately
and then i lose all my stamina
which macbook model do u have
if you want purely low travel time (which i dont think u do) you want optical or hall effect switches
i have an m1 2020 air
kailh choc red has lower travel time than urs
love
so travel time is not an excuse
lol yeah obviously
my excuse is not travel time its that its an inconvenience to have an external keyboard with me at all
how long does it take you to pull ur phone out of ur pocket
like 1 second but thats not the point
thats how long itd take u to take out the keyboard
its not the time taken to pull it out
its the extra space taken up that doesnt need to be taken up
its the fact i need to charge it
i can understand if you dont want to carry a charger, keyboard, mouse, mouse dongle, headset, headset dongle
its the fact i need to have extra space on my desk for a keyboard, and i sometimes wont have that space
you need to charge it once every 6 months
you can put it on top of your macbook keyboard
this too tho ^^
my bag is full asf with folders and stuff
it would be a nightmare to fit a keyboard in there
you can handle the extra 2 iphone se's worth of space
lol ok ill look into it
or at least try a different layout
at least like colemak-dh
pretty similar to qwerty but optimizes a lot of keys
esp home row
i do NOT have enough free time to learn a different layout
you will see any permutation of "srtnei" on the homerow on almost every layout
qwerty is good enough 
i switched to it on my phone and learned it that way
youre barely any slower after like a day on ur phone and after a few weeks u can use it on a keyboard
it is not even close to good enough
doesnt matter if its not ergonomic
good enough for it to be usable
DIE
NO EXPLODE
AI EVERYWHERE
nop 
the ai assistant text in the background is making that screenshot so much more infuriating
let the ai stuff die holy shit
ai in my printer next
ai in my toaster
ai in my microwave
ai in my makeup
ai in my jewellery
java but dumber
what kind of homework is this
its annoying cause it doesnt count french chars
thats not how dynamic arrays work
wtf is this
try it
on 15s
its easier for me cause half the words are german
ipv6 mode
probably worse for me cause numbers are on a diff layer
how tf do i type accents
you dont

I’ve bought a corne choc with 35g pro reds, very excited
I’m probably not gonna bring it with me anywhere though
Especially since macbook keyboards are so good
nice
????
is corne wireless idr
you got a really hard one
what’s idr
i dont remember
I did get a wireless one
now do polyglot on read ahead hard
depends on the controller you get
i am not doing this with more than 10 words
did yuo get corne v2 or v4
with oled or with 2 extra keys?
cornix, apparently
I hope it actually ships 😭
oh it has more keys than corne
Yes it’s got the extra 3 on the bottom left
i should've probably gotten a corne v2
I’m used to pressing space with my index finger so i might be cooked
whatever im buying a prebuilt voyager / iris ce soon anyway
nah ull be fine
Are you tenting it rn
nah
i have a ferris sweep and it has builtin holes for the splitkb tenting puck but i never bought them
where are you getting polyglot on your test type
@woven mesa this is diabolical
oh man codegen is getting really complicated, really fast
I have to pass so much stuff everywhere
why is the thumb key a picture of an old Chinese coin
really good sign it’s time to refactor
whar that
@valid jetty why is there such a bandwagon about hating duolingo for going ai first
duolingo is literally the only app that has the right to use llms extensively
no they don’t
the ceo said teachers should be replaced by ai and i completely agree
i would rather have less content made by professional translators than more content made by slop
teaching language can be done much better by llms than by humans, especially in an app
ever since this ai thing in duolingo every lesson has become so soulless it’s kinda funny
please find me a single professional translator for kazakh
i wholeheartedly disagree
well for less popular languages sure
if they go ai first they can finally support smaller languages
but for example the audio stories are literally the most boring thing you’ve ever heard in your life
theres no way for them to properly support anythin other than english, spanish, french, italian, and yappanese
like they use the words from the chapter! but that’s about it
none of the languages im learning even have that as a feature
well then that’s a skill issue i guess lol
you can have your opinions but i have noticed significant quality loss since all of this ai first shit came to duolingo
wanting to learn non mainstream languages is a skill issue 😦
ive noticed a lot of improvement
on polish, romanian, and arabic
idk it lost all its soul imo
Typical result of ai slop
i would pay for max if they added kazakh
(i already have it cause of hyroms apk but that doesn't count)
@supple whale knowing you have knowledge in kubernetes, i want to tinker with it a bit and maybe setup a cluster for a scalable deployement server ~ some sort of schema for school deployements. my current plan is following:
- Teams for the users - would be represented as namespaces
- Deployement as a project
- Pods for the individual project deploys
what i dont know how would i design is the user system, should this be something backend logic is handling or should i be using something like RBAC?
the problem i see with RBAC is that each indivudual entry requires some sort of config which can be a bit annoying
the only reason is ever do anything k8s is if I was paid thousands
fuck that I ain't touching it
💀💀💀 okay
i simply dont know much about it, i didnt fuck with permissions that much, everything we had was giga custom, and a lot of it was handwritten in go, because k8s didnt support a lot of the things we needed
just Grok it @dense sand
TLDR we had permissions based on your vpn connection, using some custom encryption schema
because german privacy laws
and based on your permissions from the vpn tunnel aka priv/pub key shit, you got perms in k8s
so realistically your vpn connection was ur auth
fml i just did my school math exam and i did everything except the last geometry one 😭💔
other than that, we didnt do scaling, because it didnt matter, we had <100k users, so we never even hit 10% cpu on our servers, except for when internal staff which sometimes ran AI on it
i just wanted to try out k8s to somewhat organize potentially a lot of containers into some hierarchy
oh yeah thats aint k8s
k8s is just for mass pumping images you have no clue if are secure, with automatic network configs, scaling and recovery
Yea the thing is that the containers there would be potentially my schools students
like if you're just running it on a server with a single network port, for like 1k users
just stick to docker
you wont have those kind of resources
but you do you
no way in fuck your school will give u a server powerful enough to run 300 concurrent containers
Well our sysadmin basically denied the use of docker even now
He said some shit about persistent storage as counter arguments
Yea
Like it didnt make a bunch of sense
yeah i remember my sys admin in highschool didnt let me open a website on our school wifi, because i didnt have the legal permissions
TLDR we had a school radio played during breaks, and i wanted to make a website where u could submit and vote on the next song that will be played
Our schools has some weird ass system for deploying apps, meaning we cant use port forwarding to sub domains
I want to try to get permission to get docker working during summer
but he said no, so it stayed on spotify shuffle...
Like give us docker cmon, i dont want to use xampp anymore
😂
yeah i was hired by my school uni to build a languagae learning app for ukraine students
built it in 2 days
was ghosted for 4 months
then they said "too late" and never paid me
so i'm never doing anything for schools ever again
i tried like 3 times, never again
Did you have a contract
and aint no way i'm going to sue the uni that i'm actively going to
just so i can get kicked out lmao
they never even looked at it
so its gg
ok so
if I have a nodejs script
I use a library that writes something to a file but let's say my environment doesn't let me write or read anything from the fs
is there a way to trick it / have a virtual fs on memory so it can write there and not to an actual fs
monkeypatch the fs.write* methods i guess?
thought of that but what if the library uses a native module
then you mount the script in a vm
you can't patch system DLLs like that
was trying to see how i can debug ios webapp on windows then found the creator of inspect.dev suggesting it. decided to check the pricing and im sorry fifteen fucking minutes a day??????
ig ill just use something like that then https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter
that mf just abandoned the open source app and made it a paid proprietary app 
Abandon opensource app and make paid proprietary app🤡
@placid cape matura done!
congrats
!!
is there any types for html elements? like react ones but without an actual react
In just plain TS?
Yes
yes
yeah TSLIB DOM
{
"compilerOptions": {
"lib": [
"esnext",
"DOM",
"DOM.Iterable"
]
}
}
in tsconfig
they.... arent perfect
dont support a lot of newer shit
but they get the job done for the most part
we got typescript for golang
What if you wanted to view the post
But reddit said Internal Server Error
Oh
Gauntlet so good
I had to just reload page (reddit is known to give 500 when id is invalid for me)
this is kinda disgusting like feels like the creator fundamentally disagrees with the design principles of go (and then why not use another lang...)
this is funny
for let is kinda weird
at this point change it to fn to save another character. even better what about just making it f!!
and this should be changed to a warning not removed entirely
and if they cared so much about typing stuff out they wouldve used stuff like pub instead of export
or like what the hell is this
Go func yourself
ive never understood why people want piping in their programming languages
also love this js proposal would instantly make js 100000x worse
Just use let my fellow human being
like bro you can already do this just without fucking pipes 😭
const tokenize = (v) => {
return v.filter(v => v.indexOf("=") > -1).map(v => v.split("="));
}
console.log(tokenize(readLines(test_data)))
its literally awesome
omg im just not allowed to talk??
this is the coldest take ever and its ragebait
pipes make it a lot more readable and reduce the amount of parens
its not more readable when my brain actively has to follow up the trail of "^" to see what actually happens + the example here ^ perfectly showed off that they love using arrows < > ^ v and there is so much visual noise that i want to kill myself
they used hack pipes which are the worst
there was an much more understandable f# version
doesnt work with you cuz i know you are rolling in your chair rn lil bro
im looking at f# code and it looks the same (apart from the f# syntax of course)
proper pipes would make this js const tokenize = v indexOf "=" > -1 $ v filter $ map (v split "=") or something similar, depending on how the parser is implemented
that looks ugly as shit
its probably more readable to pass the argument of filter directly tho
im not your lil bro
you are the lil bro of this entire channel
this looks ugly as shit
its an opinion
its not ragebait and you dont need to attack me for it
my problem with this is i have trouble differentiating what is what i had to scroll up to check if for example "=" is a function argument or whatever + without parenthesis its not clear what exactly gets passed as an argument and im pretty sure you messed up yourself with that implementation unless the indexOf "=" > -1 is also passed to the next function which again is not clear at all
this is ugly sure but at least everyone has absolutely 0 trouble understanding what is going on exactly
what gets passed where and when and where the result goes
depends if the parser can differentiate it, id like to read something like
filter v (indexOf "=" > -1) $ map (split "=")
if you omit the parens after the map you can still parse the part after the $ --- if you parse an entire expression as the argument to map once you see that map only takes 1 more arg (the first arg comes from the pipe, the 2nd arg is whats after map, a good parser will figure that out)
another option, if you like infix functions more:
v filter (indexOf "=" > -1) $ map (split "=")
yeah it doesn't really have a reason to exist when other langs exist
perhaps to interface with go modules when the constraints are fixed
I hate golang anyways so it's great
since js isnt functional you have to add . and ()
v.filter(indexOf("=") > -1) $ map(split("="))
actually so real i agree with you on that id love for it to be a superset though instead of... whatever it is now
he said he changed func to fun to make it different
which is stupid
how would the interpreter differentiate between
you want to pass indexOf("=") > -1 as a pipe to filter and
you want to pass the result of indexOf("=") compared with > -1 to the first argument of filter
no wait
see
im getting confused by this syntax immediately
there are parens because of this
where is this ambiguous
indexOf("=") > -1 is fully inside parens
no again im right
you want to filter by (indexOf("=") > -1) clearly
i dont get what the problem is
sure but you can very much see indexOf("=") > -1 as an expression that needs to be evaluated and then passed into filter because both are functions
then you can add ( v => but that has nothing to do with pipes
the point is that if you have many chained .map .filter .whatever calls then youll end up in ((((()((())))))) hell in the current system
this is why .then() for promises was invented
its basically a pipe
.then() was invented because it is very useful to be able to chain promises
A while later async/await was added
Non-async calls can already be chained without such fuss
if your filter or map argument is very long it gets unreadable, take a look at my aoc code for proof
if only there was a solution for that!
like... putting the function outside of the argument and assigning it to a variable..
And how exactly would pipes help with that
for an imperative language that is the better choice either way, but then again, 20 chained filter map calls would require 20 new variables or ugly () nesting
You can write noisy code with any sugar
are there sugar-free language options available
because apparently the () is the issue and not the code inside of them... or the clarity of anything surrounding them
Yes but they contain vitamin C
use pipes instead of nesting, put each step on a separate line, and the code i sent suddenly becomes readable
use method chaining instead of nesting, put each call on a separate line, and the code suddently becomes readable
its already chained
but separating onto multiple lines isnt an option because its nested too deep
it is an option but wont help
idk bro maybe if you didnt in-line your if statements or whatever the hell this is
thats so dumb
i get trying to make it more like another language (kotlin) but changing it just for the sake of it is dumb

the compiler should come out of your screen and shoot you if you put an entire if statement into a single line
Look how readable it gets if you put in some newlines ```kt
val paths = ((if (dx < 0) "^".repeat(-dx) else "v".repeat(dx)) + if (dy < 0) "<".repeat(-dy) else ">".repeat(dy))
.permutations()
.filter { path ->
path.asSequence()
.runningFold(pos) { pos, dir -> pos + Direction.of(dir) }
.all { it in keypad.values }
}
.map { "$it@" }
.ifEmpty { listOf("@") }
the first 4 lines is where a pipe would make it better
pipe operate on my ass
its not like anyones forcing you to use pipes but theyre certainly more readable as long as theyre not purposefully used improperly
Pipes are a new complicated syntax to learn which people can use instead of writing sensible code
your entire argument ^ here hinges on the fact that you purposefully formatted your code in a shit way dont give us the "more readable as long as theyre not purposefully used improperly"
look at 98's snippet
everything past line 5 is readable
line 5 itsell could use a pipe
youd turn a layer of nesting into a sequenced operation
same thing as turning nested promises into a .then chain
at the end of the day i dont really care what js does, ill be adding pipes to my language and happily using them
Which line 5, path.asSequence()?
im on mobile
remove the parens around the first if, put a pipe before .permutations
Oh you mean ```kt
val vert = if (dx < 0) "^".repeat(-dx) else "v".repeat(dx)
val hori = if (dy < 0) "<".repeat(-dy) else ">".repeat(dy)
val paths = (vert + hori)
.permutations()
Yeah that's much better
i dont like that
i tried to write something like that but i realised i do not know kt syntax at all
love
(if (dx < 0) "^".repeat(-dx) else "v".repeat(dx)) + if (dy < 0) "<".repeat(-dy) else ">".repeat(dy)
$.permutations()
this reads to me as "compute these two if expressions, then take the entire lhs of the $ and apply permutations to it"
...
which i would love for kotlin aoc
It reads to me like "I copypasted random codes until it compiled"
it reads to me as you just complained about the entire line, added a single symbol to the next line and now its apparently perfect for you
the point is to remove a layer of nesting and to allow me to keep writing more chained functions instead of having to manually go back and find the right place to put parentheses
whatever idc dont use pipes if u dont want to im going to sleep now
before vs after
im trying to ask you what the hell are you saying 😭
yey congrats
.
not in aoc
if im writirg readable code its gonna have almost no chained function calls anywhere
so theres no point in discussing pipes there
like enterprise code
if theres like 3 chained function calls they complain and say split it up
have you worked on enterprise code before
enterprise code 🥀
were you working at a company or what?
this code is just so unreadable
the sky is blue
where does someone write enterprise code while not working at a company
For reference, here's my solution https://github.com/Kyuuhachi/advent-of-code/blob/master/24/21.py
I don't know if it's more or less readable
i think it needs some pipes
from my experience with enterprise code (ive been working on enterprise code for the past 3 years) youd get beaten up if you even just thought about using pipes
its new syntax that people would have to learn and that gets heavily avoided
reason why we werent allowed to use ternaries, single line if statements (without curly braces), etc. even new lines were heavily monitored and we could only put new lines on very specific places
all more syntax that doesnt really help but make code less readable for some reason
Enterprise sounds like an utter pain
sadly but it does pay well
the companies/ppl ive worked with were never that strict, they dont want chained function calls or some obscure kotlin stdlib function without explanation (runningFold, associateWith, etc.), but they very much allow functional code, inline ifs, etc
its just meant for ppl to who know the language to be able to read it
if the language happened to have pipes, theyd probably be able to read it, these people have decades of experience with single languages
wtf
associatewith isn't even obscure
cant wait for firefox to implement this in 5 years
dw Firefox will implement it with some rce vuln, just like they did with animation timeline
Hey firefox has temporal though, before chrome
isn't it weird how different companies prioritize different things
all we need to do is bundle a random unsigned dll (technically .so but whatever) and say “totally not malware trust me bro”
(obligatory /s)
whar
war?
Step 1/23 : FROM oven/bun:latest
---> ee28f2e1b708
Step 2/23 : FROM base AS deps
pull access denied for base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
whaaa
https://swiftcrossui.dev/ @young flicker
no transparency on windows & linux 😔
This is fire
js
So close yet so far
npm i malware
@valid jetty have you seen the imitation game
I can agree on boost
watch it
I watched this in a CS class lol
𝓑𝓻𝓸𝓽𝓱𝓮𝓻 𝓘 𝓻𝓮𝓬𝓮𝓲𝓿𝓮𝓭 𝔂𝓸𝓾𝓻 𝓶𝓮𝓼𝓼𝓪𝓰𝓮 𝔀𝓮𝓵𝓵. 𝓘𝓽 𝓮𝔁𝓬𝓲𝓽𝓮𝓼 𝓶𝓮 𝓽𝓸 𝓲𝓷𝓯𝓸𝓻𝓶 𝔂𝓸𝓾 𝓪𝓫𝓸𝓾𝓽 𝓪 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝓻𝓮𝓼𝓮𝓻𝓿𝓮, 𝓯𝓻𝓮𝓽 𝓷𝓸𝓽, 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝔀𝓲𝓵𝓵 𝓫𝓮 𝓼𝓮𝓷𝓽 𝔂𝓸𝓾𝓻 𝔀𝓪𝔂 𝓼𝓸𝓸𝓷.
ve "𝓑𝓻𝓸𝓽𝓱𝓮𝓻 𝓘 𝓻𝓮𝓬𝓮𝓲𝓿𝓮𝓭 𝔂𝓸𝓾𝓻 𝓶𝓮𝓼𝓼𝓪𝓰𝓮 𝔀𝓮𝓵𝓵. 𝓘𝓽 𝓮𝔁𝓬𝓲𝓽𝓮𝓼 𝓶𝓮 𝓽𝓸 𝓲𝓷𝓯𝓸𝓻𝓶 𝔂𝓸𝓾 𝓪𝓫𝓸𝓾𝓽 𝓪 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝓻𝓮𝓼𝓮𝓻𝓿𝓮, 𝓯𝓻𝓮𝓽 𝓷𝓸𝓽, 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝔀𝓲𝓵𝓵 𝓫𝓮 𝓼𝓮𝓷𝓽 𝔂𝓸𝓾𝓻 𝔀𝓪𝔂 𝓼𝓸𝓸𝓷.".normalize("NFKC")
'Brother I received your message well. It excites me to inform you about a JavaScript reserve, fret not, JavaScript will be sent your way soon.'```
in client.rs
use std::{
io::Write,
net::{TcpStream},
};
fn main() -> () {
let mut client_connect: TcpStream =
TcpStream::connect("0.0.0.0:5600").expect("Couldn't connect to port 5600");
client_connect
.write(b"hello")
.expect("Couldn't write to server");
}
@lavish frigate
can you print out the exact output on the server? is the "hello" somewhere in there orr do you only get null bytes
here is the
server output
Server is now online.
Ctrl-C to terminate server...
From TcpStream { addr: 127.0.0.1:5600, peer: 127.0.0.1:33108, fd: 4 }
Message "hello\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
the response of .read is how much was written to the buffer so the actual code shouldve been:
let buffer = [0; 125];
let res = tcpstream.read(&mut buffer).expect("Couldnt read from client");
let string = str::from_utf8(&buffer[..res]).expect("Buffer is not a valid utf8 string");
println!("{string}");
rust strings dont terminate using null bytes
welcome to sane language
wait wha
only CStrings terminate with null bytes in rust 😊
bruh
i did notice res giving out usize
i was too dumb to realize it was the amount it read
oh my god this line is so weird
println!("Message: {{incoming_msg:?}}",);
like i want to \ those {'s so bad
@nimble bone could u help me with something webdev related
yeah send if i have time i'll help
basically i cant figure out how to add an inline image to a contenteditable div that acts like a single character, similar to a discord emoji. i have tried surrounding it in a span, no dice, i tried surrounding in zero width spaces, but that makes it so i need to click three times to move the caret past it, and without any of that it does this (b4 and after clicking left key)
.inline-emoji {
max-width: 1.6rem;
max-height: 1.6rem;
vertical-align: middle;
display: inline-block;
}
.input-area {
flex: 1;
outline: none;
color: #ccc;
min-height: 24px;
max-height: calc(35vh - 20px);
line-height: 1.6rem;
overflow-y: auto;
overflow-x: hidden;
word-break: break-word;
padding: 1px;
scrollbar-width: none;
-ms-overflow-style: none;
position: relative;
}
content editable is text only
it wont work for images
emojis might work as they are just unicode
and you change how they look with a custom font
you do need a font that supports emojis tho
tweemoji is most popular one that's license free
i implemented a word editor in js, and its pain
if possible avoid all non-text
issue: that removes the possibility of using custom emojis
yes
so either implement contenteditable yourself in js from scratch
or no custom emojis
pick ur poison
so i cant do that Lol, im not sure what else i could possibly do other than contenteditable div
textarea wouldnt work i dont think right
o right
so again, unicode emojis only
listen to keydown events, read selection regions, etc
guh
maybe i should like
save emojis and markdown for later for now
i really need a roadmap
but im too lazy
LOL
i guess prosemirror could help you?
but its still unreal amts of work
again i implemented a wysiwyg editor myself once
and i never want to do it again
i dont think it'll be that difficult more so just repetitive
haha
you're clueless
you're forgetting that whatever you're doing with custom emojis needs to be serialized and deserialzied
to be sent as text
that alone is fun
so... people dont just do <script>go fuck yourself</script>....?
okay those r easy tho
again, clueless
... text sent via messages are cleansed way before that would ever be possible
the text the user sees themselves typing is a preview
..on both
<script>go fuck yourself</script> wouldnt just turn into an element because you typed it yk
it would need to if you didnt do serialization, because otherwise your <img src='emoji'> wont work
im just gonna make everything the user types within a span and everything within the span stringified, then make a new span after emojis etc etc
which fixes all the issues yu just came up with
cuz this is standard text messaging sanitisations
yop
would you look at that
serialization
...wait is that what that is
dude u were talking about it like it's some text wizardry that's very simple js
😭
yes converting a data structure into something that be exchanged with a protocol
is serialization
because you probably half assed it
and extending it will be pain
i didnt half ass shit bc the code doesnt exist yet
welp enjoy then
serialization in your definition in this situation is. extremely simple
Lol
it's just gonna take a while cuz i need to build the rest of the application before i add that cuz recreating contenteditable will take. like. a week.
Lol
it'll be even easier if i just represent everything as a js array
:p
@supple whale what do you think should be my next course of action, this is what i have right now (emoji button is obv not gonna work yet)
the emoji button does to the cool thing where it changes faces when you hover it tho
so that's cool
@hoary sluice https://youtu.be/0me3guauqOU?si=DE0iIgZWVFrLhpM6
Visit https://brilliant.org/Reducible/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
Chapters:
00:00 Introducing JPEG and RGB Representation
2:15 Lossy Compression
3:41 What information can we get rid of?
4:36 Introducing YCbCr
6:10 Chroma subsampling/downsampling
8:10 Image...
omg swift site is so pretty now https://x.com/swiftlang/status/1930327416813302182
This is an extremely good video
something IIRC he does not go over is a similar transform, wavelets that came later
there was a lot of hype around it till people even eventually realized they werent as effective in energy compaction as the DCT
is this Kate?
my demon app still works good
demons in my iPhone???
who can help me with a problem in a plugin
its the big file upload plugin
it aint working
whats a foundation
when yall have conflicts in lockfiles, do you just delete it and generate it new?
sure
idk what they do so I just delete them and hope it fixes itself
im never using js/typescript again
ts*
this*
go to the plugin thread.
SOLID is a truly amazing principle. I was coding my little project like, bip boup boup, bip and I came to the conclusion that the feature I was developing requires an Event Broker to dynamically update values from multiple isolated Fragment ( Fragment here refer to View for a single component like a Selector, a Toggle Button, etc... )
However, on one of the Fragment, this Coordinator did basically the same things as the Fragment's Controller, so since this code respect the Liskov Substitution principle, I could just swap the Controller for the Coordinator no overhead or over-engineering.
Sorry, for the chunk of text, but I needed to tell someone about it, because I was so happy to find this out
SOLID feels kind of outdated to me
My design principles are essential does it work, is it fast, is it pretty
my design principles are make it work, make it correct, make it fast, make it clean, make it pretty
working != correct
If your code says 2+2=5 then your code isn't working
Unless Bertrand Russell is running it, in that case everything is fine.
Wait 2+2 doesn’t equal 5?
@hoary sluice @placid cape how do i make page numbering skip the title and contents pages???
in typst
figured it out
thats kinda funny honestly
fuck i just realized
its ambiguous when you do
const foo = fn() -> i32[];
const foo = fn() -> i32 [1];
wjndkjabwa
this is kinda cool tho
const QbeType::display = fn(QbeType self) -> string self;
fn QbeType::__hash(QbeType self, u64 capacity) {
return self.display().__hash__(capacity);
}
fn QbeType::__fmt__(QbeType self, i32 nesting) {
return HashMap::with_entries(
$(QbeType::Int, "w"),
$(QbeType::Long, "l"),
$(QbeType::Byte, "b")
)[self];
}
someone commented about my friend's site and im struggling to understand what they actually meant by that. can someone help me decipher it?
your site is so easy
it's so easy to inject (???) and find data about owners
if you didnt private it with cloudflare
next time find a better coder
tbh idk what kinda data u can find, i just know some site vulnerabilities
ip of registration
but that is if you do it yourself and not privating with a service
and if the accounts are linked cuz all i seen was some contacts and all that stuff
but dw i think everything is fine
am i dumb or are they saying complete bs??
like this doesnt even make sense
fuck are they trynna say
Send the site
the thing is the only functionality that site has is subscribing to mailing list. that's it
what kind of fucking injection are they even talking about
idgi
no one here is gonna be able to tell you without looking into the site
😭
or do you want us to guess
i'd guess sql injection lol then
i mean theyr talking about some privating with cloudflare??
like what does it even mean
i mean ik what cloudflare is
cloudflare by default tries to prevent a bunch of attacks
guessing thats what they mean
(such as sql injection)
ight can i dm you the site?
sure
hey so uh does any of what they said make sense
whelp its definitely not sql injection
i stg mf just watched like one cybersec vid on yt and decided to trashtalk the coder 
yea probably
is that ai generated 😭
Definitely
oh yeah defo
real
wtf i just copied an image from twitter 😭
there we go
no ai 😊
:3
we love piss filter
the type of ReadonlyArray#includes in typescript is so stupid
const array = [1, 2, 3] as const; // readonly [1, 2, 3]
const x: number = 4;
array.includes(x) // argument of type number is not assignable to parameter of type 1 | 2 | 3
they should type it as something like this instead, it would be so fire
includes(element: unknown, fromIndex?: number): element is T;
=>
const array = [1, 2, 3] as const; // readonly [1, 2, 3]
const x: number = 4;
if (array.includes(x)) {
// x is now typed as 1 | 2 | 3
}
trueee
What torrent clients for android
dont care about the else
i have a file just with oceanic channel type guards
libretorrent
?remind 4pm try to repro https://gitlab.gnome.org/GNOME/glibmm/-/issues/93
Alright @jade stone, in 2 hours, 56 minutes and 46 seconds: try to repro GNOME/glibmm#93
?remind @jade stone in 2h please explode
Time is either in an inappropriate location, which must be either at the end or beginning of your input, or I just flat out did not understand what you meant. Sorry.
reminder that 1n << 0 throws a typeerror in javascript (no TS required)
does anyone know much about how browser extensions are built for both chrome and firefox?
I'm making a chrome -> firefox extension converter and it's a little more ambitious than I initally thought it would be
@jade stone, <t:1749229394:R>: try to repro GNOME/glibmm#93
its a lot more ambitious since the extension apis differ a lot
I've discovered that that hard way
they also have permission differences
I thought it might just converting the manifest at first
and firefox doesnt support all the apis
yep
I got a dictionary for converting manifest from chrome to firefox values
and it will also move the importScripts values into it cus firefox doesn't have that
problem is tho with some of the more complex plugins the panel won't even display anything and seems to have serious trouble running the JS
just ship the extension to Grok and ask to convert
I unironically did that with chatgpt for the manifest early on
is grok able to look over a set of a files though?
yes because the apis function differently
not that I plan to do it because that's what my thing is for
iirc firefox api is promise based while js is callback based
firefox also renames a ton of functions
apparently firefox does support chrome.* so that's good
maybe there's a js compat layer I can find
luckily mozilla has this documentation: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Chrome_incompatibilities
arent there chrome extension wrappers for firefox
possibly
mozilla has one for going from firefox to chrome but idk about the other way around
til firefox is more picky about type safety
progress, this actually has buttons now they're just invisible. I plan to put this project up on github this weekend as it does at least work for more simple extensions (which I think are less likely to be cross-plat anyway). it's written in C# and people smarter than me can do a PR
soon I'll be able to block double the amount of ads I'm already blocking using 2 versions of ublock origin
also usable pasting the link as a cli parameter, might have --file and --url in the future
Hey folks, how can I turn off/hide the server tags locally with QuickCSS?
use inspect element to find the class for the tag then just display: none;
really a question for #🎨-theme-development but you can use Ctrl+Shift+I to inspect element anything you want to get rid of, look at the html and if you were to see something like <div class="server-tags"> or something you'd do div.server-tags { display:none; } or [class="server-tags"] { display: none; }. if you want only the start of the class name for instances like <div class="server-tags_abc123"> you can do [class^="server-tags_"] { display: none; }, also works for other elements, such as aria-label which would be like [aria-label="cool tag"] { display: none; } or something like that
my man has the typing indicators plugin
i do but its unrelated to the events
if not aware already, do of course be careful with starts with thing because other elements might start with the same class name
cool :3
reminds me of https://developer.apple.com/documentation/safariservices/converting-a-web-extension-for-safari
cool stuff. it would be nice if all the browser devs had their own implementation or preferably even an agreed upon API
safari extensions are just chrome/firefox extensions, supports both but needs them to be a .app
the converter just does that
rare apple W
though the outputted project is quite shit honestly and is only meant for functionality
I actually took it upon myself to just remake the project the best I can without sacrificing anything https://github.com/Vencord/Vencord-Safari-Extension
truly wonders, 99 lines of swift code
I need to make a compile script for arch to keep the arch users happy
all I have a .deb file right now
don't have an arch machine for testing tho
done. no fuckin clue if it actually works
@valid jetty my github contribution graph is about to look like the nigerian flag
0 commits in june
i was doing 1 commit a day in order to actually complete my diploma thesis
now i graduated and am on vacation
it worked tho, the supervisor said its the best thesis hes ever seen
i cannot find motivation to code tbf
posting one piece of anti crab propaganda a day to slowly get it into people's heads
venthing
NOT memory safe
NOT blazingly fast
NOT configurable
wrtitten in typescript
only 705 dependencies
is that vencord lmao
ah
it's all dev dependencies
only like 10 dependencies actually end up in the production bundle
but yeah source code folder is crazy big like 500mb lmao
your 10000k million dependency js project will never compare to my 0 dependency performance eating shitcode!
(electron downloading an entire chromium binary to it doesn't help)
happy 'missed another opportunity to create generational wealth' day to those who celebrate :)
Quoting Cursor (@cursor_ai)
︀
We've raised $900 million in Series C funding from Thrive, Accel, Andreessen Horowitz, and DST.
︀︀
︀︀We're happy to share that Cursor has grown to over $500 million in ARR and is used by more than half of the Fortune 500, including NVIDIA, Uber, and Adobe.
︀︀
︀︀This scale will help us push the frontier of AI coding research.
INSANE
OpenBSD
NOT memory safe
blazingly fast
configurable
written in c, the only actual programming language
the only dependency to build a base system is llvm toolchain
too many deps
llvm is uber bloat
llvm isnt that bad
compared to chromium..
llvm is pretty good actually
chromium is just a fancy javascript interpreter now
why the fuck would you compare llvm to chromium
those 2 are completely different
both are C++ projects that deserve to die
so id say they are about equal
least schizo vencord member
Filething
MEMORY SAFE
blazingly fast
Configurable
Written in python
Only 3 deps (aiohttp, attrs, yarl)
>python
>fast
Get the fuck out

Cython, numba and nuitka:
okay so this tells me that python is full of dumbass idiots that would rather make a tool to convert their garbage script into an actual good language than learn the actual good langauge
holy shit the python ecosystem is fucked
even more so than the js one
Um no, we do not have ton of indirect is-x dependencies
who gaf about is-x dependencies when you have to write your dependencies in c to make your shit run fast 😭
i have 924 commit streak xddd
on gh
i need to be active again tbh because i only have like 1 commit per day
but i started cycling and it's amazing :D
I have incredible problems with procrastination, burning out and not feeling like doing anything
And i dont know what to do about it
Like i have 0 motivation to do anything
been like that for about a month
my mental health was really bad
but i jus started cycling and i think... its way better
Good idea to start some outdoor activity
Follow me on Instagram and strava
@nimble bone install https://theos.dev/
syntax highlighting moment
why's it so fail
you are frail
did they really name it BUN_BE_BUN??? https://x.com/bunjavascript/status/1931554079198822770
I think there's been some confusion here. "Arch btw" isn't a version of Arch. I guess you could call it a bit of a meme. When people say "I use Arch btw," the "btw" actually means "iron man mode."
This might sound like complete nonsense, but bear with me. The phrasing comes from a game called Runescape. Although it's well-known for being a massively multiplayer online roleplaying game, accounts may be created in "iron man mode," imposing various restrictions upon the account intended to force the player to rely upon themselves and largely turning the game into a single-player experience. Due to stereotypes surrounding iron man players - specifically, their compulsive urge to share the fact that they're an "iron man btw" - the term "btw" is playfully used as a synonym for "iron man." Due to a 100% overlap between Arch users and Runescape players (don't ask me why - I can't even begin to imagine), the term "btw" was used to refer to an analogous "iron man" challenge conceived by Arch users.
As far as what that challenge entails, there's a bit of debate there.
Originally, it meant no internet access. This forces users to craft their own software or obtain it via physical media rather than the package manager. This might sound strange or even horrifying, but many feel it recreates a certain era in Linux's history.
As the Arch btw challenge grew more popular, however, some began to argue that the magic wasn't in having zero internet access but more about eliminating the package manager in particular. They reason that the package manager did away with countless precious interactions between users and developers, making Arch less of a social distro. Such individuals argue the essential restriction of Arch btw is not using the package manager and began referring to the zero internet version of Arch btw as "hardcore Arch btw."
Others have gone the opposite direction and imposed even more restrictions upon themselves, such as not using non-volatile storage, having their computer detonate on losing power, or not using systemd.
There's much, much more to cover, but hopefully I've said enough to clear things up!
btw I use Arch btw, by the way
edit: And to be clear, I mean hardcore Arch btw. I coded my own networking software and hand-made a cable that I plugged into my neighbor's router while he wasn't looking, so I haven't broken any restrictions.
what?
Time to make arch btw version with pre installed hyprland and kde
This is just why
car
3 mbps
this is weird
does any icon library provide minecraft-like icons?
basically only blocks
in format similar to this from lucide
does anyone know if its possible to bypass fortinet shield? like i had a headscale server setup but i cant access it because my domain is too new so fortinet blocks it
i tried ssh proxy but still cant join voice chat on discord in browser
atleasting being able to ping my server would be cool
...
is it just dns or does it do more
i believe it does deep packet inspection whatever that means
all standard vpns are blocked
nordvpn, protonvpn etc. dont work
normal tailscale wouldnt work either, i had to setup custom headscale server
oh i thought u just misspelled fortnite 
😭
has any1 here ever had a problem where eslint failed, but only on github actions? https://github.com/ThaUnknown/miru/actions/runs/15519997525/job/43694827072
this shit straight up passes locally
and i have no clue why
it's the first time i've ever seen this
its not that it doesnt lint the files locally, since it does print all the warnings in the files if i remove quiet
even the ones that error in CI
i'm honestly at such as loss its unfunny
our game's tests keep failing and oddly enough it only happens on github actions too :/
gh actions funi
wait ten days
then newly registered domain is gone
doesn't for me
you get the same errors locally?
r u on windows or linux?
Yes
mac, notably if I run it with act i get different errors
how the fuck is this so inconsistent
im fucking using a package lock
no, i use a pnpm lock
so i used pnpm i --frozen-lockfile
i did
Lol i get 41 errors with act, but 21 locally
i despise how js doesn't have Iterator.join()
function * join(iterators) {
for (const iterator of iterators) yield * iterator
}
yw
please
userSet.values().filter(fn).join(", ");
also works for async iterables
no i mean like joinToString
this
you have to do
userSet.values().filter(fn).toArray().join(", ");
i hate it
that's just [...it].join(", ")
yes but that's ugly lol
what you want is probably it.reduce()
no
i'm actually going insane
XDDDDD
WTFFFF
array.stream().map(...).collect(Collectors.joining(", "));
is there a good way to type the return of catch
i just do
try {} catch (e: any) {}
ts doesnt like this for some reason
Catch clause variable type annotation must be 'any' or 'unknown' if specified
try {} catch (e: Error) {}
im not that experienced with types 
ts doesn't allow typing as Error cause it doesn't have to be
try {
throw "balls";
} catch (e: Error) {
// oops
}
try {
throw "balls";
} catch (e: unknown) {
if (e instanceof Error) {
...
} else {
// what the fuck are u throwing man
}
}
oh
didnt think about that
thank you
i would still prefer if catch (e: Error) worked though lol
OH MY GOD
THANK YOU MR RUBBER DUCK
I LOVE YOU
yeah but thats also meh :/
what was it
lc.transcribe
Thats why I use python/C++/Rust nowadays 
they feel actually more sane
@pearl dawn will fix pissbot
i am busy fixing gramophone critical error
ripple doesnt activate if you hover outside ofd this area
very serious problem
oh my god that is so dumb



