#🪅-progaming

1 messages · Page 93 of 1

meager bobcat
#

help chrome is struggling with my 300,000 line console output

#

(don't ask)

dense sand
#

yea well the issue is that you use chrome

#

/jk

meager bobcat
#

am only using it for testing

#

i actually use zen

lavish frigate
#

you know for 300k lines

#

id expect firefox to set your entire house on fire

#

what the hell are you doing

dense sand
meager bobcat
meager bobcat
lavish frigate
#

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

spark tiger
#

jesus fucking christ how the fuck are you supposed to review somewhat big PRs on this fuckass site

meager bobcat
#

(/s)

spark tiger
#

i'll just use rider- TF IS THAT

#

iaint even pressed anything it just starts doing it by itself

dense sand
meager bobcat
spark tiger
#

unlike on github dot com

meager bobcat
#

try github.dev

#

it's just a web vscode instance

spark tiger
#

eh

meager bobcat
#

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

fleet cedar
#

Often arguments[0] does the trick

meager bobcat
#

that's what I did

fleet cedar
#

No it looks like you defined a custom args

#

I'm talking about the arguments keyword, not a cheap knockoff

meager bobcat
#

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

lucid trail
#

Ok that makes sense

#

I’ll do unsigned ints then

lavish frigate
#

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

hoary sluice
#

@valid jetty can zed do this

valid jetty
#

idk probably not

#

fuzzyfind is not useful in 99% of cases lol just search normally

#

unless youre searching files in which case sure

fleet cedar
#

That's the lsp's doing, not the editor, no?

valid jetty
#

hmm idk actually

hoary sluice
#

im not searching

#

im typing code

valid jetty
#

youre searching for an autocomplete option that matches your fuzzyfind query

#

its still fuzzyfinding

hoary sluice
#

if your files are called TokenValue::String i think theres something wrong

valid jetty
#

lmao

hoary sluice
valid jetty
#

idk i just got used to typing full syntax

fleet cedar
#

I just write String, lsp fills in the rest

valid jetty
#

that too yea

valid jetty
#

i dont need to remember the syntax if i just always type the syntax

hoary sluice
hoary sluice
valid jetty
#

lmao whatever

hoary sluice
#

you can still search normally even if its fuzzy

#

except its much easier to fuzzy find

valid jetty
#

yea but i meant like, fzf is more of a gimmick for cases like this

#

sorry im in my ragebaiting era today

hoary sluice
#

fzf snippets is not a gimmick

#

unless you love the shift key for some reason

#

(are you secretly microsoft???)

valid jetty
#

my shift key is caps lock ❤️

#

(my shift key is broken, i remapped caps lock to lshift)

#

it breaks various things lmaooooo

hoary sluice
#

my shift key is uhm uhh uhh

valid jetty
#

like for example i cant type " or + using lshift i have to use rshift

hoary sluice
valid jetty
#

and i cant do shift + down arrow to go down a bit of a document in code editors i need to scroll lmaooo

hoary sluice
#

press , while holding enter

valid jetty
#

or well, use vim shortcuts

valid jetty
#

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

hoary sluice
#

i have arrow keys mapped to the home row on the number layer (when holding space (left thumb key on the right half))

valid jetty
#

cmd + arrows goes to start and end, opt + arrows goes back and forth 1 word

#

shift + arrows selects at the same time

hoary sluice
#

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

valid jetty
#

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

hoary sluice
hoary sluice
valid jetty
#

if anyone wants to use your setup to code youre done for

hoary sluice
#

well yea thats not really a goal i have

valid jetty
hoary sluice
#

at my last internship nobody used vim

#

im not gonna stop myself from using vim just so someone can use my computer

valid jetty
hoary sluice
valid jetty
#

..?

#

this is my macbook keyboard

hoary sluice
valid jetty
#

i literally got used to doing everything without an external keyboard or mouse

hoary sluice
valid jetty
#

no i do

#

i dont want to bring bloat everywhere with me

#

i can just bring a single laptop and do everything i need

hoary sluice
#

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

valid jetty
#

lol obviously but i dont wanna have to carry anything else with me

hoary sluice
#

you can make them wireless with a battery so its literally like pulling out your phone

hoary sluice
valid jetty
#

my macbook is on life support right now

hoary sluice
#

and mine isnt even optimized

#

and definitely not even close as comfortable

valid jetty
#

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

hoary sluice
#

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

valid jetty
#

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

hoary sluice
valid jetty
#

i mean thats only because you learnt that specialized layout

#

im alright with qwerty lol

hoary sluice
valid jetty
#

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

hoary sluice
#

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

valid jetty
#

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 blobcatcozystars

hoary sluice
#

60s pb yay

#

i messed it up so bad

valid jetty
#

partly because the battery isnt good enough to bring it with me, partly because its so bulky and heavy

hoary sluice
#

look at second 33

valid jetty
#

what is this 😭

hoary sluice
#

dropped to 36 wpm

valid jetty
#

😭

hoary sluice
#

i misspelled know, typed another word and then for some reason went back to fix it

hoary sluice
#

have you ever tried 10-20gf switches

#

me neither but theyre probably awesome

valid jetty
#

im not big on keyboards lol

hoary sluice
#

if you like low travel time

#

mine are 60gf and theyre more or less normal weight

valid jetty
#

the most ive tried are brown blue and red switches

#

i still have a brown switch 75% somewhere in my room

hoary sluice
#

colors dont say anything about switches if youre comparing different types

valid jetty
#

no i know

hoary sluice
#

youre not gonna get low travel time on mx switches

valid jetty
#

i just meant, i dont even know brands

hoary sluice
#

you need kailh choc or gateron low profile

valid jetty
#

i just know the difference between tactile and clicky and whatever

#

like the bare minimum

hoary sluice
#

these are super lightweight and completely silent https://shop.beekeeb.com/product/kailh-silent-switch-linear-nocturnal/

jt

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

valid jetty
#

interesting

hoary sluice
#

cause you seem to like low travel time

valid jetty
#

long travel time messes with my fingers and lowers my accuracy heavily

hoary sluice
#

theyre made by companies so they have all of the nice qol like a bottom plate/case, a carrying case, and rgb lights

valid jetty
#

i have to press way harder just to get a word accurately

#

and then i lose all my stamina

hoary sluice
#

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

valid jetty
#

i have an m1 2020 air

hoary sluice
#

kailh choc red has lower travel time than urs

valid jetty
#

love

hoary sluice
#

so travel time is not an excuse

valid jetty
#

lol yeah obviously

#

my excuse is not travel time its that its an inconvenience to have an external keyboard with me at all

hoary sluice
#

how long does it take you to pull ur phone out of ur pocket

valid jetty
#

like 1 second but thats not the point

hoary sluice
#

thats how long itd take u to take out the keyboard

valid jetty
#

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

hoary sluice
#

i can understand if you dont want to carry a charger, keyboard, mouse, mouse dongle, headset, headset dongle

valid jetty
#

its the fact i need to have extra space on my desk for a keyboard, and i sometimes wont have that space

hoary sluice
hoary sluice
valid jetty
#

my bag is full asf with folders and stuff

#

it would be a nightmare to fit a keyboard in there

hoary sluice
#

you can handle the extra 2 iphone se's worth of space

valid jetty
#

lol ok ill look into it

hoary sluice
#

at least like colemak-dh

#

pretty similar to qwerty but optimizes a lot of keys

#

esp home row

valid jetty
#

i do NOT have enough free time to learn a different layout

hoary sluice
#

you will see any permutation of "srtnei" on the homerow on almost every layout

valid jetty
#

qwerty is good enough blobcatcozystars

hoary sluice
#

youre barely any slower after like a day on ur phone and after a few weeks u can use it on a keyboard

hoary sluice
valid jetty
#

doesnt matter if its not ergonomic

#

good enough for it to be usable

#

NO EXPLODE

#

AI EVERYWHERE

hoary sluice
valid jetty
#

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

hoary sluice
#

@valid jetty try polyglot mode on monkeytype

#

"ir elle" REFERENCE???

valid jetty
#

what kind of homework is this

hoary sluice
#

its annoying cause it doesnt count french chars

valid jetty
#

thats not how dynamic arrays work

valid jetty
hoary sluice
#

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

valid jetty
#

how tf do i type accents

hoary sluice
#

you dont

valid jetty
lucid trail
#

I’m probably not gonna bring it with me anywhere though

#

Especially since macbook keyboards are so good

valid jetty
hoary sluice
hoary sluice
lucid trail
valid jetty
#

i dont remember

lucid trail
#

I did get a wireless one

hoary sluice
#

now do polyglot on read ahead hard

lucid trail
#

depends on the controller you get

valid jetty
#

nty

#

ok ill try it

#

how the fuck

hoary sluice
#

i am not doing this with more than 10 words

#

did yuo get corne v2 or v4

#

with oled or with 2 extra keys?

lucid trail
#

I hope it actually ships 😭

hoary sluice
lucid trail
#

Yes it’s got the extra 3 on the bottom left

hoary sluice
#

i should've probably gotten a corne v2

lucid trail
#

I’m used to pressing space with my index finger so i might be cooked

hoary sluice
#

whatever im buying a prebuilt voyager / iris ce soon anyway

lucid trail
#

Are you tenting it rn

hoary sluice
#

nah

#

i have a ferris sweep and it has builtin holes for the splitkb tenting puck but i never bought them

lucid trail
hoary sluice
#

press esc and type polyglot

lucid trail
#

I'm very much used to english sequences

whole cove
#

you guys know what's worse than YAML templating/pseudo-scripting?

#

rainmeter skins

solemn ravine
#

@woven mesa this is diabolical

lucid trail
#

oh man codegen is getting really complicated, really fast

#

I have to pass so much stuff everywhere

plush hollow
valid jetty
woven mesa
hoary sluice
#

@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

valid jetty
#

no they don’t

hoary sluice
#

the ceo said teachers should be replaced by ai and i completely agree

valid jetty
#

i would rather have less content made by professional translators than more content made by slop

hoary sluice
#

teaching language can be done much better by llms than by humans, especially in an app

valid jetty
#

ever since this ai thing in duolingo every lesson has become so soulless it’s kinda funny

hoary sluice
valid jetty
hoary sluice
#

if they go ai first they can finally support smaller languages

valid jetty
#

but for example the audio stories are literally the most boring thing you’ve ever heard in your life

hoary sluice
#

theres no way for them to properly support anythin other than english, spanish, french, italian, and yappanese

valid jetty
#

like they use the words from the chapter! but that’s about it

hoary sluice
valid jetty
#

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

hoary sluice
#

wanting to learn non mainstream languages is a skill issue 😦

hoary sluice
#

on polish, romanian, and arabic

valid jetty
#

idk it lost all its soul imo

fleet cedar
#

Typical result of ai slop

hoary sluice
#

i would pay for max if they added kazakh

#

(i already have it cause of hyroms apk but that doesn't count)

dense sand
#

@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

supple whale
#

fuck that I ain't touching it

dense sand
#

💀💀💀 okay

supple whale
# dense sand 💀💀💀 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

nimble bone
#

just Grok it @dense sand

supple whale
#

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

spark tiger
#

fml i just did my school math exam and i did everything except the last geometry one 😭💔

supple whale
#

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

dense sand
#

i just wanted to try out k8s to somewhat organize potentially a lot of containers into some hierarchy

supple whale
#

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

dense sand
#

Yea the thing is that the containers there would be potentially my schools students

supple whale
#

like if you're just running it on a server with a single network port, for like 1k users

#

just stick to docker

supple whale
#

but you do you

#

no way in fuck your school will give u a server powerful enough to run 300 concurrent containers

dense sand
supple whale
#

mmm

#

when he learns k8s is just docker with permissions

dense sand
#

He said some shit about persistent storage as counter arguments

supple whale
#

...simply mounted volumes

#

???

dense sand
#

Yea

supple whale
dense sand
#

Like it didnt make a bunch of sense

supple whale
#

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

dense sand
#

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

supple whale
#

but he said no, so it stayed on spotify shuffle...

dense sand
#

Like give us docker cmon, i dont want to use xampp anymore

supple whale
#

😂

#

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

dense sand
#

Did you have a contract

supple whale
#

i'd have to wait a year for that shit lol

#

its a uni

dense sand
#

Well

#

Better put some backdoor later no

supple whale
#

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

supple whale
#

so its gg

solid gazelle
#

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

nimble bone
feral tendon
solid gazelle
supple whale
#

you can't patch system DLLs like that

spark tiger
#

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??????

#

that mf just abandoned the open source app and made it a paid proprietary app isob

shrewd canopy
#

Abandon opensource app and make paid proprietary app🤡

hoary sluice
#

@placid cape matura done!

dense sand
#

!!

#

is there any types for html elements? like react ones but without an actual react

dense sand
#

Yes

jade stone
#

AFAIK HTMLDivElement

#

They are all named like thar

dense sand
#

yes

supple whale
#
{
    "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

valid jetty
#

@hoary sluice zozin stream

#

well hes taking a break right now

#

but it was

ornate quiver
#

we got typescript for golang

shrewd canopy
#

Oh

#

Gauntlet so good

#

I had to just reload page (reddit is known to give 500 when id is invalid for me)

lavish frigate
#

this is funny

#

for let is kinda weird

timid sluice
lavish frigate
#

and this should be changed to a warning not removed entirely

lavish frigate
#

or like what the hell is this

lavish frigate
#

ive never understood why people want piping in their programming languages

#

also love this js proposal would instantly make js 100000x worse

fleet cedar
#

Just use let my fellow human being

lavish frigate
hoary sluice
#

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

lavish frigate
ionic lake
#

they used hack pipes which are the worst

#

there was an much more understandable f# version

lavish frigate
#

doesnt work with you cuz i know you are rolling in your chair rn lil bro

lavish frigate
hoary sluice
lavish frigate
#

that looks ugly as shit

hoary sluice
#

its probably more readable to pass the argument of filter directly tho

lavish frigate
#

you are the lil bro of this entire channel

hoary sluice
#

its an opinion

#

its not ragebait and you dont need to attack me for it

lavish frigate
lavish frigate
#

what gets passed where and when and where the result goes

hoary sluice
# lavish frigate my problem with this is i have trouble differentiating what is what i had to scr...

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 "=")
ornate quiver
hoary sluice
lavish frigate
hoary sluice
#

which is stupid

lavish frigate
#

no wait

#

see

#

im getting confused by this syntax immediately

hoary sluice
#

where is this ambiguous

#

indexOf("=") > -1 is fully inside parens

lavish frigate
hoary sluice
#

i dont get what the problem is

lavish frigate
hoary sluice
#

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

fleet cedar
#

.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

hoary sluice
lavish frigate
#

if only there was a solution for that!

#

like... putting the function outside of the argument and assigning it to a variable..

hoary sluice
fleet cedar
#

And how exactly would pipes help with that

hoary sluice
fleet cedar
#

You can write noisy code with any sugar

worldly sigil
#

are there sugar-free language options available

lavish frigate
fleet cedar
hoary sluice
lavish frigate
#

use method chaining instead of nesting, put each call on a separate line, and the code suddently becomes readable

hoary sluice
#

but separating onto multiple lines isnt an option because its nested too deep

#

it is an option but wont help

lavish frigate
#

idk bro maybe if you didnt in-line your if statements or whatever the hell this is

ornate quiver
lavish frigate
fleet cedar
#

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("@") }

hoary sluice
ionic lake
#

pipe operate on my ass

hoary sluice
#

its not like anyones forcing you to use pipes but theyre certainly more readable as long as theyre not purposefully used improperly

fleet cedar
#

Pipes are a new complicated syntax to learn which people can use instead of writing sensible code

lavish frigate
hoary sluice
#

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

fleet cedar
#

Which line 5, path.asSequence()?

hoary sluice
#

im on mobile

#

remove the parens around the first if, put a pipe before .permutations

fleet cedar
#

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

hoary sluice
#

i dont like that

lavish frigate
#

i tried to write something like that but i realised i do not know kt syntax at all

hoary sluice
#
    (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"

lavish frigate
#

...

hoary sluice
#

which i would love for kotlin aoc

fleet cedar
#

It reads to me like "I copypasted random codes until it compiled"

lavish frigate
#

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

hoary sluice
#

whatever idc dont use pipes if u dont want to im going to sleep now

hoary sluice
#

you didnt read what i said

lavish frigate
#

im trying to ask you what the hell are you saying 😭

placid cape
fleet cedar
#

Chaining is not a virtue

#

Readable code is

hoary sluice
#

if im writirg readable code its gonna have almost no chained function calls anywhere

#

so theres no point in discussing pipes there

hoary sluice
#

if theres like 3 chained function calls they complain and say split it up

lavish frigate
#

have you worked on enterprise code before

ionic lake
#

enterprise code 🥀

hoary sluice
#

🥀

lavish frigate
#

were you working at a company or what?

valid jetty
hoary sluice
hoary sluice
fleet cedar
#

I don't know if it's more or less readable

lavish frigate
# lavish frigate were you working at a company or what?

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

fleet cedar
#

Enterprise sounds like an utter pain

lavish frigate
hoary sluice
#

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

ornate quiver
lavish frigate
#

cant wait for firefox to implement this in 5 years

supple whale
#

dw Firefox will implement it with some rce vuln, just like they did with animation timeline

lucid trail
royal nymph
#

they're ahead quite often

#

but then also takes ages to implement other cool stuff

frosty obsidian
#

isn't it weird how different companies prioritize different things

royal nymph
meager bobcat
#

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)

ornate quiver
#

whar

austere idol
dense sand
#
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

dense sand
#

Oh wait im stupid

#

Its not about bun

#

I forgot as base

native spruce
spark tiger
shrewd canopy
valid jetty
lavish frigate
native spruce
#

So close yet so far

frail turtle
#

npm i malware

lavish frigate
hoary sluice
#

@valid jetty have you seen the imitation game

valid jetty
#

maybe

#

it sounds familiar

ionic lake
hoary sluice
lucid trail
fleet cedar
#

I've never used boost tbh

#

Can't be worse than stdlib

valid jetty
#

𝓑𝓻𝓸𝓽𝓱𝓮𝓻 𝓘 𝓻𝓮𝓬𝓮𝓲𝓿𝓮𝓭 𝔂𝓸𝓾𝓻 𝓶𝓮𝓼𝓼𝓪𝓰𝓮 𝔀𝓮𝓵𝓵. 𝓘𝓽 𝓮𝔁𝓬𝓲𝓽𝓮𝓼 𝓶𝓮 𝓽𝓸 𝓲𝓷𝓯𝓸𝓻𝓶 𝔂𝓸𝓾 𝓪𝓫𝓸𝓾𝓽 𝓪 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝓻𝓮𝓼𝓮𝓻𝓿𝓮, 𝓯𝓻𝓮𝓽 𝓷𝓸𝓽, 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝔀𝓲𝓵𝓵 𝓫𝓮 𝓼𝓮𝓷𝓽 𝔂𝓸𝓾𝓻 𝔀𝓪𝔂 𝓼𝓸𝓸𝓷.

royal nymph
#

ve "𝓑𝓻𝓸𝓽𝓱𝓮𝓻 𝓘 𝓻𝓮𝓬𝓮𝓲𝓿𝓮𝓭 𝔂𝓸𝓾𝓻 𝓶𝓮𝓼𝓼𝓪𝓰𝓮 𝔀𝓮𝓵𝓵. 𝓘𝓽 𝓮𝔁𝓬𝓲𝓽𝓮𝓼 𝓶𝓮 𝓽𝓸 𝓲𝓷𝓯𝓸𝓻𝓶 𝔂𝓸𝓾 𝓪𝓫𝓸𝓾𝓽 𝓪 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝓻𝓮𝓼𝓮𝓻𝓿𝓮, 𝓯𝓻𝓮𝓽 𝓷𝓸𝓽, 𝓙𝓪𝓿𝓪𝓢𝓬𝓻𝓲𝓹𝓽 𝔀𝓲𝓵𝓵 𝓫𝓮 𝓼𝓮𝓷𝓽 𝔂𝓸𝓾𝓻 𝔀𝓪𝔂 𝓼𝓸𝓸𝓷.".normalize("NFKC")

elder yarrowBOT
strange matrix
#

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

lavish frigate
strange matrix
#

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"
lavish frigate
#

ah

#

okay yeah that was me being stupid

strange matrix
#

should i

#

WAIT

#

should i do write(b"hello" + 0x0) ?

#

or something like that

lavish frigate
#

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}");
lavish frigate
#

welcome to sane language

strange matrix
#

wait wha

lavish frigate
#

only CStrings terminate with null bytes in rust 😊

strange matrix
#

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

gray heron
#

@nimble bone could u help me with something webdev related

nimble bone
#

yeah send if i have time i'll help

gray heron
# nimble bone 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;
      }
supple whale
#

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

gray heron
#

issue: that removes the possibility of using custom emojis

supple whale
#

yes

#

so either implement contenteditable yourself in js from scratch

#

or no custom emojis

#

pick ur poison

gray heron
#

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

supple whale
#

textarea is... text area

#

not div area

gray heron
#

o right

supple whale
#

so again, unicode emojis only

gray heron
#

fuck

#

how do i make a god damn discord text bar 😭

gray heron
#

how would i even do that

#

i'd literally have to recreate how carets works and shit

supple whale
#

listen to keydown events, read selection regions, etc

gray heron
#

maybe i should like

#

save emojis and markdown for later for now

#

i really need a roadmap

#

but im too lazy

#

LOL

supple whale
#

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

gray heron
#

i dont think it'll be that difficult more so just repetitive

supple whale
#

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

gray heron
#

serialized

#

what

#

why would i need to do that

supple whale
#

then shit like keybinds

#

history

#

selections

supple whale
gray heron
#

okay those r easy tho

supple whale
gray heron
supple whale
#

sure on your client

#

not on the network

gray heron
#

the text the user sees themselves typing is a preview

gray heron
#

<script>go fuck yourself</script> wouldnt just turn into an element because you typed it yk

supple whale
#

it would need to if you didnt do serialization, because otherwise your <img src='emoji'> wont work

gray heron
#

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

supple whale
#

not came up with

#

but mentioned

gray heron
#

came up with doesnt mean it's fake lol

#

it just

#

came to ur mind

supple whale
#

cuz this is standard text messaging sanitisations

gray heron
#

yop

supple whale
#

serialization

gray heron
#

...wait is that what that is

#

dude u were talking about it like it's some text wizardry that's very simple js

#

😭

supple whale
#

yes converting a data structure into something that be exchanged with a protocol

#

is serialization

supple whale
#

and extending it will be pain

gray heron
#

i didnt half ass shit bc the code doesnt exist yet

supple whale
#

welp enjoy then

gray heron
#

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

valid jetty
#

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...

▶ Play video
spark tiger
ivory heath
#

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

solemn ravine
frigid summit
gaunt badge
#

They’re so true

solemn ravine
#

my demon app still works good

nimble bone
crude skiff
#

who can help me with a problem in a plugin

#

its the big file upload plugin

#

it aint working

solemn ravine
#

whats a foundation

dense sand
#

when yall have conflicts in lockfiles, do you just delete it and generate it new?

ionic lake
#

sure

frail turtle
#

idk what they do so I just delete them and hope it fixes itself

dense sand
#

lmao

#

never using copilot again

#

im never using drizzle again

shrewd canopy
#

im never using js/typescript again

spark tiger
lavish frigate
nimble bone
unkempt ember
#

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

fleet cedar
#

SOLID feels kind of outdated to me

#

My design principles are essential does it work, is it fast, is it pretty

valid jetty
#

my design principles are make it work, make it correct, make it fast, make it clean, make it pretty

#

working != correct

fleet cedar
#

If your code says 2+2=5 then your code isn't working

unkempt ember
#

Unless Bertrand Russell is running it, in that case everything is fine.

lavish frigate
valid jetty
#

@hoary sluice @placid cape how do i make page numbering skip the title and contents pages???

#

in typst

#

figured it out

valid jetty
#

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];
}
spark tiger
#

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

lavish frigate
#

Send the site

spark tiger
#

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

lavish frigate
#

no one here is gonna be able to tell you without looking into the site

#

😭

#

or do you want us to guess

shrewd canopy
spark tiger
#

i mean theyr talking about some privating with cloudflare??

#

like what does it even mean

#

i mean ik what cloudflare is

lavish frigate
#

cloudflare by default tries to prevent a bunch of attacks

#

guessing thats what they mean

lavish frigate
spark tiger
#

ight can i dm you the site?

lavish frigate
#

sure

spark tiger
lavish frigate
#

whelp its definitely not sql injection

spark tiger
#

i stg mf just watched like one cybersec vid on yt and decided to trashtalk the coder isob

lavish frigate
#

yea probably

spark tiger
#

and like "you better find a better coder" who tf are you???

#

anyways thanks

royal nymph
#

is that ai generated 😭

fleet cedar
#

Definitely

royal nymph
#

oh yeah defo

placid cape
#

real

lavish frigate
#

there we go

#

no ai 😊

placid cape
#

goat

#

🔥

lavish frigate
#

:3

valid jetty
balmy lintel
royal nymph
#

we love piss filter

royal nymph
#

the type of ReadonlyArray#includes in typescript is so stupid

royal nymph
#

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
}
dense sand
#

What torrent clients for android

spark tiger
royal nymph
#

dont care about the else

winged mantle
royal nymph
supple whale
jade stone
delicate groveBOT
#

Alright @jade stone, in 2 hours, 56 minutes and 46 seconds: try to repro GNOME/glibmm#93

royal nymph
#

?remind @jade stone in 2h please explode

delicate groveBOT
#

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.

royal nymph
#

guhhh

#

bot needs to add support for creating reminders for other users

meager bobcat
#

reminder that 1n << 0 throws a typeerror in javascript (no TS required)

royal nymph
#

ya

#

cause mixing bigint and normal int

calm terrace
#

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

delicate groveBOT
#

@jade stone, <t:1749229394:R>: try to repro GNOME/glibmm#93

lavish frigate
calm terrace
#

I've discovered that that hard way

lavish frigate
#

they also have permission differences

calm terrace
#

I thought it might just converting the manifest at first

lavish frigate
#

and firefox doesnt support all the apis

calm terrace
#

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

nimble bone
#

just ship the extension to Grok and ask to convert

calm terrace
#

I unironically did that with chatgpt for the manifest early on

#

is grok able to look over a set of a files though?

lavish frigate
calm terrace
#

not that I plan to do it because that's what my thing is for

lavish frigate
#

iirc firefox api is promise based while js is callback based

#

firefox also renames a ton of functions

calm terrace
#

apparently firefox does support chrome.* so that's good

#

maybe there's a js compat layer I can find

hoary sluice
#

arent there chrome extension wrappers for firefox

calm terrace
#

possibly

#

mozilla has one for going from firefox to chrome but idk about the other way around

calm terrace
#

til firefox is more picky about type safety

calm terrace
#

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

icy geode
#

Hey folks, how can I turn off/hide the server tags locally with QuickCSS?

frosty obsidian
#

use inspect element to find the class for the tag then just display: none;

calm terrace
# icy geode Hey folks, how can I turn off/hide the server tags locally with QuickCSS?

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

calm terrace
frosty obsidian
#

i do but its unrelated to the events

calm terrace
#

if not aware already, do of course be careful with starts with thing because other elements might start with the same class name

calm terrace
ionic lake
#

cool :3

solemn ravine
calm terrace
#

cool stuff. it would be nice if all the browser devs had their own implementation or preferably even an agreed upon API

solemn ravine
#

safari extensions are just chrome/firefox extensions, supports both but needs them to be a .app

#

the converter just does that

calm terrace
#

rare apple W

solemn ravine
#

truly wonders, 99 lines of swift code

calm terrace
#

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

calm terrace
#

done. no fuckin clue if it actually works

hoary sluice
#

@valid jetty my github contribution graph is about to look like the nigerian flag

#

0 commits in june

pulsar elk
#

i fell off so hard

hoary sluice
#

now i graduated and am on vacation

#

it worked tho, the supervisor said its the best thesis hes ever seen

dense sand
#

i cannot find motivation to code tbf

royal nymph
#

posting one piece of anti crab propaganda a day to slowly get it into people's heads

lavish frigate
#

venthing
NOT memory safe
NOT blazingly fast
NOT configurable
wrtitten in typescript
only 705 dependencies

royal nymph
#

is that vencord lmao

lavish frigate
#

vesktop

#

😭

royal nymph
#

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

lavish frigate
#

your 10000k million dependency js project will never compare to my 0 dependency performance eating shitcode!

royal nymph
royal nymph
# lavish frigate your 10000k million dependency js project will never compare to my 0 dependency ...

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.

**💬 20 🔁 13 ❤️ 1.6K 👁️ 101.5K **

lavish frigate
#

INSANE

austere idol
lavish frigate
#

too many deps

royal nymph
#

llvm is uber bloat

celest lodge
#

llvm isnt that bad

#

compared to chromium..

#

llvm is pretty good actually

#

chromium is just a fancy javascript interpreter now

lavish frigate
#

those 2 are completely different

celest lodge
#

so id say they are about equal

lavish frigate
#

least schizo vencord member

shrewd canopy
lavish frigate
still jolt
shrewd canopy
lavish frigate
#

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

shrewd canopy
lavish frigate
#

who gaf about is-x dependencies when you have to write your dependencies in c to make your shit run fast 😭

ionic lake
#

you don't have to though

#

most of the time its negligible or none

placid cape
#

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

dense sand
#

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

placid cape
#

been like that for about a month

#

my mental health was really bad

#

but i jus started cycling and i think... its way better

dense sand
placid cape
dense sand
#

Recently my back has started to hurt too

#

I need to fix my life

solemn ravine
native spruce
#

syntax highlighting moment

royal nymph
#

why's it so fail

hoary sluice
#

@valid jetty no discord in turkey

ornate quiver
spark tiger
lavish frigate
#

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.

ionic lake
#

what?

lavish frigate
ionic lake
#

There's no btw version yes

#

it's a meme

shrewd canopy
hoary sluice
#

@valid jetty @placid cape love me some SLOWER THAN DIAL UP desert mobile data

dense sand
#

car

dense sand
#

does any icon library provide minecraft-like icons?

#

basically only blocks

#

in format similar to this from lucide

lavish frigate
#

well thats extremely specific

#

i dont think so

dense sand
#

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

still jolt
#

is it just dns or does it do more

dense sand
#

all standard vpns are blocked

#

nordvpn, protonvpn etc. dont work

#

normal tailscale wouldnt work either, i had to setup custom headscale server

spark tiger
dense sand
#

😭

supple whale
#

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

spark tiger
#

gh actions funi

nimble bone
#

then newly registered domain is gone

dense sand
#

wow

#

i guess

#

its the way

lucid trail
supple whale
#

you get the same errors locally?

supple whale
lucid trail
#

Yes

supple whale
#

. why isnt this failing for me

lucid trail
supple whale
#

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

lucid trail
#

Lol i get 41 errors with act, but 21 locally

supple whale
#

right?

#

wtf is happening here

lucid trail
#

still can't get it to fail locally?

#

what if you do it on a new worktree

royal nymph
#

i despise how js doesn't have Iterator.join()

supple whale
#

yw

royal nymph
#

please

userSet.values().filter(fn).join(", ");
supple whale
#

also works for async iterables

royal nymph
#

you have to do

userSet.values().filter(fn).toArray().join(", ");
#

i hate it

supple whale
royal nymph
#

yes but that's ugly lol

supple whale
#

what you want is probably it.reduce()

royal nymph
#

and creates useless array

#

even java has support for this

supple whale
#

i'm actually going insane

#

XDDDDD

#

WTFFFF

royal nymph
balmy lintel
#

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 blobcatcozy

royal nymph
balmy lintel
#

oh

#

so using any/unknown in that case is fine?

royal nymph
#
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
    }
}
balmy lintel
#

oh

#

didnt think about that

#

thank you

#

i would still prefer if catch (e: Error) worked though lol

supple whale
#

THANK YOU MR RUBBER DUCK

#

I LOVE YOU

balmy lintel
#

yeah but thats also meh :/

lucid trail
supple whale
balmy lintel
shrewd canopy
#

Thats why I use python/C++/Rust nowadays blobcatcozy
they feel actually more sane

visual shellBOT
balmy lintel
pearl dawn
#

i am busy fixing gramophone critical error

#

ripple doesnt activate if you hover outside ofd this area

#

very serious problem

lucid trail