#🪅-progaming

1 messages · Page 58 of 1

lavish frigate
#

It’s like 2bt2

hazy pine
#

make it so rm cant do recursively so if you wanna remove stuff you gotta do every single one

#

one by one

hazy pine
#

someone will prob find a way to run a minecraft server on there

lavish frigate
#

I’d be down to open it up to the internet

#

As in so you can install packages and stuff

hazy pine
#

this is such a cool idea

hoary sluice
#

i will just make a binary that zeroes the drive

hazy pine
#

and then you'll have to constantly patch new things that people find

hazy pine
#

cant run shit now can you

hoary sluice
#

run it in the shell directly

hazy pine
#

make no executable available to the user with write access

hoary sluice
#

run it in the shell directly

lavish frigate
#

okay what distro

hoary sluice
#

nixos

#

are u fr gonna do that

#

put arch

lavish frigate
spark tiger
#

ffs i thought it said 2hollis at first isob

jade stone
#

Do destructive commands really matter if you still can truncate files with redirection and :

royal nymph
#

it's like impossible to make it secure

#

unless you use something like docker with extremely limited permissions but even then 0 days exist

hazy pine
#

trial and error

#

you just constantly patch up the infinite holes

spark tiger
#

omg thank god

#

fuckkk it breaks any colors

formal belfry
#

win toes

fallen nebula
#

Try to enable the virtual terminal features and maybe colors will work

fallen nebula
#

No

spark tiger
fallen nebula
#

Do it for the process only

#

Gimme a sec

royal nymph
spark tiger
formal belfry
#

gnu/windows

fallen nebula
#

You need to do this

//add missing defines in GCC
#ifndef ENABLE_VIRTUAL_TERMINAL_INPUT
#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
#endif
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
main () {
        DWORD dwMode;
        HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
        GetConsoleMode(hConsole, &dwMode);
        dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
        SetConsoleMode(hConsole, dwMode);
} 
spark tiger
fallen nebula
#

even the windows cmd support virtual terminal processing

#

But you need to enable it

spark tiger
#

yeah but uh how

spark tiger
fallen nebula
#

Well yes but no

formal belfry
#

chat gpt

fallen nebula
#

It will force it on

#

It will break shit

formal belfry
#

i thought that was a wiki or something

fallen nebula
#

Because Windows is coded with the ass

#

And each new Windows version is just one more layer of coating

formal belfry
#

time to just switch to linux

spark tiger
#

never

#

well not never

#

maybe one time

fallen nebula
#

Basically you need to patch the app

#

Or you just do like everyone and use git bash

#

And boom you got the basic linux stuff on Windows

#

And you use WSL if you need more (not the command more, but like features not existing in git bash)

hoary sluice
spark tiger
#

so i decided to use ripgrep on windows

hoary sluice
#

@valid jetty nix is so awesome it has working suspend to disk

hoary sluice
formal belfry
#

nix chan

jade stone
dawn ledge
#

pretty much every nvim stuff you'll find online will be geared towards the lua api, its not a matter of whether you have a config or not

dawn ledge
lean shard
#

that might not be a lua problem tho just an neovim one

dawn ledge
#

i sense skill issues

#

my configs have never broken other than due to user error

lean shard
lavish frigate
#

Guys

#

They made a working calculator in rust

dawn ledge
#

ONG HISTORICAL MOMENT

lean shard
#

people still use rust? I thought the hype trained moved to zig

lavish frigate
#

This is the most advanced calculator ever built in Rust! Using electricity, logic circuits, and some creative engineering, it can handle addition, subtraction, multiplication, and division—even with five-digit numbers. But how does it work? From binary arithmetic to wiring tricks, I’ll break down the magic behind it. Whether you're into Rust...

▶ Play video
lean shard
#

it appears i've been misinformed

lavish frigate
lavish frigate
dawn ledge
#

zig is nice

#

i care about it

#

but its too primitive

lavish frigate
#

You are the second person

dawn ledge
#

they're trynna be c in the age where people unironically use j*vascript on the backend

lavish frigate
#

But it does say a lot that the zig project everyone knows is bun 😭😭

lavish frigate
#

But I’m not sure if we need current day C

lavish frigate
dawn ledge
#

refer to the failure of carbon lang
appeared for like 2 days and never heard from it again

nimble bone
#

but many times i can't be bothered to and i already have an existing backend in js

dawn ledge
lavish frigate
nimble bone
#

fun fact: at some point my watch script was so broken that i had to fully rebuild the app with tsc and rerun

took 8 seconds every time i wanted to test a change

#

now i just use tsx

nimble bone
dawn ledge
#

my condolences

formal belfry
#

I love C

#

zig is just c on steroids 🥰

nimble bone
#

i'll make react frontend and maybe swift backend around summer

lavish frigate
dawn ledge
nimble bone
#

chloe works for DOGE

formal belfry
dawn ledge
#

atp i will take c style macros in zig if rust style isnt possible

lavish frigate
#

doge is moving away from cobol to java…

dawn ledge
#

comptime is clearly not enough for me

lavish frigate
#

I know because I’m lead cobol to Java ai prompter

#

But no this is actually real they are planning to use an IBM made LLM to convert cobol to Java code

dawn ledge
#

i hate zig community for being like
"hey guy can we have mac—" "USE COMPTIME"
you think i havent tried?

dawn ledge
dawn ledge
#

horrible

lavish frigate
#

I don’t know how zig exactly works

dawn ledge
#

you use a comptime block and everything in it will be ran at compile time

#

athough it provides no way for ast generation or manipulation
the most they have is type introspection and generating types

lavish frigate
#

😭

#

Insane

dawn ledge
#

if you want to "generate"/"modify" zig ast you'll have to do it in the build script by parsing in the input files to get the ast or hald rolling it
and zig's ast module is fucking trash

#

also doing it in the build script means you'll generate a copy of the project unless youre doing inplace edits and that leads to degraded dx

runic sundial
lean shard
eternal wigeon
#

i've never hated a website more in my life

#

why is it so hard to get s3 bucket credentials jesus christ

lean shard
#

just aws doing aws things

#

a few years back I worked in devops part time and I now have a lifelong hate of aws

valid jetty
#

husk i forgot to turn off password auth for my ssh

#

im glad i tested that, that couldve been bad

eternal wigeon
#

i sadly cant use cloudflare R2 in this case so i need to try aws s3

valid jetty
#

ssh into thinkpad -> ssh into phone from thinkpad

#

all passwordless now

winged mantle
#

why does this work without error blobcatcozy

#

has TypeError: t.charAt is not a function at runtime

#

as operator not used, just implicit casting

delicate groveBOT
leaden crater
#

@valid jetty

hoary sluice
#

@valid jetty i jusn realized the nix logo is 6 lambdas arranged in a snowflake

deep mulch
supple whale
#

thank you brave for being useless

#

brave fucking broke something, and if you have 2 nested transitions, the top-most one of which has a transform, all hell breaks loose

#

svgs and images just flat out have strokes

#

sometimes the image will stretch sideways x3 width for a single frame for no reason

#

like how do you break SKIA this badly?

#

wtf?

#

took me a solid 30 minutes to figure out its a brave bug, not a skill issue

lavish frigate
#

brave AND docker user?? pick a struggle...

supple whale
#

stfu and go back to ur browser only useful for reading static text

#

might as well just use notepad

#

that's about as useful as firefox is

lavish frigate
#

i dont use firefox

supple whale
#

idfk what else than chromium you can use then

valid jetty
#

yayyyy i can ssh into my thinkpad at home from my macbook at school

supple whale
#

do your phone next

#

unironically possible

dawn ledge
#

they did that already

supple whale
#

based.

#

i'm struggling with copying files to/from my phone

dawn ledge
#

ftp

supple whale
#

then again not every1 is copying 10000 files, 120GB in size every few days onto their phone, so it's kinda an unique problem

dawn ledge
#

nothing beats plain old ftp

dawn ledge
supple whale
#

....considered that

#

problem is, stream interruption

supple whale
#

like all solutions i tried have the same problem, after X hours of copying data, android will interrupt some process required in copying the data, and some file will be partially copied

#

and re-scanning the files takes as much as just copying them again

dawn ledge
#

state file
after every transfer write the number of bytes to it
and resume from there

#

:^)

supple whale
#

yeah

#

but at that point i might as well just use a bittorrent client tbf

dawn ledge
#

true

supple whale
#

which... i considered, just the process of creating torrent files sucks, because most clients have SOME problem with it

#

bittorrent performs unnecessary rescans, and doesnt implement webrtc properly, webtorrent creates massive chunks and has no UI for it

valid jetty
supple whale
#

and google's quick share app requires bluetooth

#

💀

dawn ledge
#

write your own client!

supple whale
#

webtorrent!

dawn ledge
#

fork libtorrent

#

xd

supple whale
deep mulch
leaden crater
supple whale
#

it's a torrent client library

#

for c

#

xd

#

it's only the biggest torrent library in the world, accounting for roughly about 80% of users worldwide

#

excluding china I guess

leaden crater
#

i use qbit and I'm still waiting Years for torrents

supple whale
supple whale
leaden crater
#

very real book website

formal belfry
#

python

tmp2 = [ "", f"{dt[4]} messages? You're new, aren't you...? Consider yourself lucky to see this.", f"{dt[4]} messages? This string actually depends on how much messages you've posted with Escuba on it...", f"{dt[4]} messages? Seems like you've been using Escuba quite a bit.", f"{dt[4]} messages? That's over a thousand. And that's plenty enough for me.", f"{dt[4]} messages? That's..... quite a lot of messages you have there, {find_un(msg.author)}...." ]

tmp = tmp2(len(dt[4]))

goodbye

fleet cedar
#

Just split that to multiple lines and it's fine

leaden crater
#

yea it's not bad

formal belfry
hazy pine
#

for the love of god

tmp2 = [
    "",
    f"{dt[4]} messages? You're new, aren't you...? Consider yourself lucky to see this.",
    f"{dt[4]} messages? This string actually depends on how much messages you've posted with Escuba on it...",
    f"{dt[4]} messages? Seems like you've been using Escuba quite a bit.",
    f"{dt[4]} messages? That's over a thousand. And that's plenty enough for me.",
    f"{dt[4]} messages? That's..... quite a lot of messages you have there, {find_un(msg.author)}...."
]

tmp = tmp2(len(dt[4]))
fleet cedar
#

Oneliners do not mean "delete all newlines"

formal belfry
#

it's like my 2nd week of python i still dont know jack shit

fleet cedar
#

That code also has a couple of bugs

ornate quiver
#

you delete all new lines when golfing

fleet cedar
#

Like it'll throw if you have 100k messages

leaden crater
fleet cedar
#

And it should be tmp2[n], not tmp2(n)

formal belfry
simple sapphire
#

gaming

#

brawl stars

formal belfry
fleet cedar
#

And it says 1000 is over a thousand which is blatantly false

hazy pine
#

pro gaming

simple sapphire
#

well yeah this is the pro gaming channel

leaden crater
simple sapphire
#

of course im gonna post gaming

formal belfry
simple sapphire
formal belfry
#

dt[4] + 1 real?

fleet cedar
hazy pine
#

also you should really use more descriptive variable names its not that hard 😭

fleet cedar
formal belfry
#

i actually have no idea what to optimize currently in my code

leaden crater
#

play debian

formal belfry
simple sapphire
#

im kinda tired of starcraft

#

so i wanna play something more live service

fleet cedar
leaden crater
leaden crater
simple sapphire
#

anyways im gonna call my friends on skype

formal belfry
#
        dt = await update_settings(msg.author.id, "u")
        try:
            int(args[0])
            addInfo = " "
        except:
            args[0] = 6
            addInfo = "\n-# The die had an incomprehensible amount of sides, so it defaulted to 6."
            
        if int(args[0]) <= 0:
            em = Embed(title=f"{find_un(msg.author)} rolls a dice:", description=f"* But the die never existed.", color=errc)
        else:
            tmp = random.randrange(0, int(args[0])) + 1
            em = Embed(title=f"{find_un(msg.author)} rolls a dice:", description=f"* It rolled a {tmp}. The die had {int(args[0])} sides.{addInfo}", color=int(dt[3], 16))

retrofitted with advice y'all gave me of "stop using tmp for everything"

leaden crater
formal belfry
simple sapphire
#

youre kidding

#

am i gonna lose all my skype credits,,

lavish frigate
#

always give your variables good names else you will get confused once you need to edit the code

#

why husk

formal belfry
#

ok 142 tmp instances gotta replace all of them aughughuhg

formal belfry
nimble bone
#

what was the point of this again

lavish frigate
#

crazy

dawn ledge
formal belfry
#

i pretty much forgot all my javascript (my ass used it on html)

leaden crater
fleet cedar
# nimble bone you shiver at this

Is this shit not just ```js
const PERMS = Permissions.BLAH | Permissions.BLAH2;
let canContinue = ((requestPerms & ~userPerms) & PERMS) != 0;

nimble bone
#

true

dawn ledge
#

weak

nimble bone
formal belfry
leaden crater
dawn ledge
#

@lavish frigate apparently you can stitch idents together in normal macros????

leaden crater
#

actually forget about variables
"0x01" = 1

fleet cedar
formal belfry
#

one stupid question

#

how much do i have to worry about file size

fleet cedar
#

Not really

lavish frigate
#

file size of what

#

of your source files?

formal belfry
#

i notice my python code taking up 80kb and then my ass optimizes it

dawn ledge
#

nvm false flag the macro i read was using paste crate

fleet cedar
#

80kb of python code is a sizeable amount

lavish frigate
#

you dont have to care about file size of your code

#

how many lines is that though

formal belfry
#

1161

lavish frigate
#

why do you have everything in 1 file

#

id worry about that

formal belfry
lavish frigate
#

☹️

fleet cedar
#

Python is one of those languages where single file is much simpler than multi

lavish frigate
fleet cedar
#

The module system is kinda bad

lavish frigate
#

for me it becomes unreadable after 300 lines

fleet cedar
#

I'd probably start reconsidering around 700

formal belfry
#

there's a function class that has 744 lines in my code

#

maybe that's the file that should get seperated

fleet cedar
#

Yeah definitely fix that

#

Functions over like 50 is fairly uncommon

formal belfry
#

does being a class still count as a function

lavish frigate
#

i have 1 file per command

fleet cedar
#

No, classes are not functions

#

Classes get as big as they need to be

formal belfry
lavish frigate
#

no

#

what does that class do

fleet cedar
#

700 isn't rare, but it's still on the big side

formal belfry
dawn ledge
dawn ledge
fleet cedar
formal belfry
dawn ledge
lavish frigate
#

who needs docs when you can have descriptive class and function names Clueless

dawn ledge
#

i write docs for personal/private projects too cause i know my retarded ass is not gonna remember anything the next time i look at my code

formal belfry
lavish frigate
formal belfry
#

i basically just do a quick mention of what a func does

#

and put the strings in a SEPERATE func

#

i forgot the vencord users have the vencord plugin which logs the messages in the vencord server smh my head

#

why tf was i deciding to hide the fact that i'm trying to make a discord bot as my third python project

#

what is wrong with me

lavish frigate
#

docs are

def get_random_number():
  """
  This function returns a random, predetermined number chosen by the developer of the function.
  """
  return 5
fleet cedar
#

Wrong number though

lavish frigate
lavish frigate
#

no

formal belfry
fleet cedar
lavish frigate
#

your first line of documentation is a good function name

formal belfry
lavish frigate
#

for example

valid jetty
#

in rust its ///

#

lsps use it to give you that over hover

#

for documented elements

#

i assume py does the same thing

fleet cedar
#

And cargo doc uses it to make docs

valid jetty
#

yea

lavish frigate
#

the difference with py doc comments is that python types are fake

#

so you can also set them via doc comments

lavish frigate
#

no error no warning no nothing

fleet cedar
#

You can run a third party type checker over it

#

Which is such a dumb idea

lavish frigate
#

yeah

valid jetty
#

doesn't pypy3 check types

lavish frigate
#

/run

rugged berryBOT
#

Update: Discord changed their client to prevent sending messages
that are preceeded by a slash (/)
To run code you can use "./run" or " /run" until further notice

Here are my supported languages:
awk, bash, basic, basic.net, befunge93, bqn, brachylog, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, samarium, scala, smalltalk, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig

You can run code like this:
./run <language>
command line parameters (optional) - 1 per line
```
your code
```
standard input (optional)

Provided by the Engineer Man Discord Server - visit:
https://emkc.org/run to get it in your own server
https://discord.gg/engineerman for more info

formal belfry
#

how do i make python not insta quit on me when i make a syntax error forget a comma

lavish frigate
#

you fix the syntax error

fleet cedar
#

Very few languages allow running with syntax errors

#

Those that do are universally loathed

lavish frigate
formal belfry
#

wait

#

uhh

lavish frigate
#

why do you want to run with syntax errors

#

your code editor tells you when you have a syntax error

valid jetty
formal belfry
lavish frigate
fleet cedar
#

Vscode is way too ai bloated these days

#

Used to be pretty okay

formal belfry
lavish frigate
#

its still the most used code editor

#

and the most extendible one

formal belfry
#

what if i run visual studio (insert early ass version) instead of visual studio 2024

fleet cedar
#

Visual studio is crap though

#

Completely unrelated to vscode

lavish frigate
#

yep

formal belfry
#

will i be able to get rid of ai from my code editor

lavish frigate
#

why would you do that

#

you can just disable it

formal belfry
#

VERY unrelated but i have message logger disabled due to other servers

#

anyway gotta shower i actually did that 12 hours ago

valid jetty
#

or use nvim

lavish frigate
#

do not use nvim unless you want to spend more time configuring your code editor than actually coding

valid jetty
#

just use a preset like nvchad

hoary sluice
valid jetty
#

eagely

#

do you know how to get gui windows to open over ssh

#

i need to setup a window server on my macos system

#

but wayland is stupid and only has local connections

#

so i have to use xquartz and use x11 legacy to open the windows

#

which means its not gpu accelerated and takes ages to render a basic window

#

i tried xpra but i couldnt figure out how its meant to work

#

for context, my class for cs is doing event driven programming but theyre using windows forms and i only have macos and linux

#

so im trying to use avalonia

#

which works fine on macos but i wanna do it on linux via ssh

#

this quality is atrocious too :3

#

least pixelated image

#

looks like this on macos

hoary sluice
valid jetty
#

yeah i needed to clarify

hazy pine
#

it will reach perfection one day

#

then thats when the real productivity starts

valid jetty
#

im currently doing x11 passthrough in my ssh

#

with -X

#

but its slow and ugly

hoary sluice
#

use vnc

valid jetty
#

i tried

#

its like suuuuuuper slow

royal nymph
valid jetty
#

takes like 10 seconds to click something

#

well maybe i was using the wrong vnc

#

i installed tigervnc and setup a server then connected from macos

#

is that not how ur meant to do it

ionic lake
#

are you doing just remote dev

valid jetty
#

i guess so

hoary sluice
#

remind me again why you need a remote desktop

valid jetty
#

im doing dotnet stuff on linux which is already not a good idea

ionic lake
#

why not the ssh extension

valid jetty
#

im already carrying my macbook and ipad

#

its too much

hoary sluice
#

why do u need a macbook and ipad if u have a thinkpad

valid jetty
#

.

ionic lake
#

her preferences?

valid jetty
#

all my notes are on my ipad

#

also the thinkpad lasts barely any time

#

and im not always around a socket

leaden crater
hoary sluice
valid jetty
#

linux

hoary sluice
#

put nixos on it

formal belfry
#

calculator

valid jetty
#

"event driven programming"

#

i would rather NOT do this

leaden crater
#

@valid jetty you should try this app named qalculate, its pretty good for almost any calculations

valid jetty
#

it can do functions, solve integrals, simplify expressions, complete the square, and various other things

#

solve systems of equations

#

give you closed form solutions for non-elementary function integrals

#

etc etc

#

?remind 7h DO THE FUCKING SIMPLEX TABLEAU SOLVER (and reply to the set theory question

delicate groveBOT
#

Alright @valid jetty, in 7 hours: DO THE FUCKING SIMPLEX TABLEAU SOLVER (and reply to the set theory question

leaden crater
supple whale
#

could some1 smarter than me tell me why these dont function the same?

fleet cedar
#

The left one continues the inner loop, not outer

supple whale
#

thank you person smarter than me

#

i'm actually idiotic

#

i dont know how i didnt see this

#

i'd need a label in front of the for-of to continue into

#

my brain is fucked after looking at this code so much

#

i hate working on this lib, its so fucking complex its unfunny

blazing haven
#

what lib

supple whale
#

and its fucking callback based JS ;-;

supple whale
#

casual 280k LOC library

#

wait nah that cant be right

blazing haven
#

oh that one

royal nymph
blazing haven
#

i used to use rtorrent

#

and

supple whale
#

its 120k loc with 20k loc of C

blazing haven
#

i forgot the name

#

to have the webui

#

for rtorrent

supple whale
#

this lib is better, because it supports streaming

#

and is way easier to extend

blazing haven
#

was it jsut rutorrent?

supple whale
#

hm?

blazing haven
#

yeah

#

thats what i used

#

rutorrent was the web front-end for rtorrent

#

thats the only thing i ever used xd

supple whale
#

i've been torrenting for....

#

shit almost 2 decades now

#

so i used it all XD

blazing haven
#

yeah i'm not that old

#

i started young but not that young xd

supple whale
#

i was taught well at a young age

#

:^)

blazing haven
#

same but i'm not 30 😭

supple whale
#

i was 7yo and my dad already taught me torrenting

#

XD

blazing haven
#

xd

#

same

#

i even inherited his private tracker accounts

#

LOL

supple whale
#

ah we never used PTs

#

i still dont use PTs to this day

#

no need to

#

europe doesnt give that much fuck about torrenting

#

well except germany and france ig

blazing haven
#

it's less abt security (although for games and software PTs it's definitely a plus) and more about convenience and the huge content they have

supple whale
#

yeah availability never was a problem for me tbf, almost everything was public, or public signup

blazing haven
#

i can prolly find any obscure show/movie/game, if it exists or ever existed somewhere on the internet it'll be on one of them xd

#

well if it's newer stuff it's true

supple whale
#

nowdays, getting max quality blu-rays is hard, so i "borrow" NNTP/NZB accounts to download

blazing haven
#

for that u can use public stuff

#

but old stuff can be hard to find sometimes

#

yeah

#

and that

#

if u care abt actual quality torrents esp if u r an archivist

#

for those PTs are also good

supple whale
#

yeah for western movies

#

and korean/chineese dramas

#

PTs are a must

#

for anime, games, software public trackers work flawlessly

blazing haven
#

yeah i'd never install games or software from a public tracker xd

supple whale
#

well, software i only rly get from generation2

#

he's been around for ages

#

and games i only get from DODI or fitgirl

#

tho i dont play much pirated games anymore

#

and if i do, its on my phone via proton, so it doesnt matter if its virused to shit, its proton

#

but for software, nowdays u can simply download official installers, and patch the license servers to crack them

#

so not much downloading needed

supple whale
#

so importing promisify can get problematic

#

since its extra bundle size

#

and it doesnt help, that almost 100k loc are already written in callback based JS

#

since the lib and its deps were written before promises and classes were a thing

#

so VERY old node

#

so there's a LOT of legacy code

#

i've already modernised an unhealthy amount of it, which is why i'm like the #3 or #4 top maintainer for the package

#

#3, neat

#

#2 kinda cheated cuz he used to push build files ages ago

#

god, i dont want to remember how i migrated the entire dependency tree in that project from node-buffer to ecma-uint8

royal nymph
supple whale
#

might as well migrate the entire codebase to asnyc/await at that point

valid jetty
#

??? it’s a 1 liner

supple whale
#

instead of using callbacks

valid jetty
#

oh you mean

#

ok

lavish frigate
#

i think you should use docker to fix your problem here

supple whale
royal nymph
#

I didnt mean edit the library I meant when you consume the library just wrap their functions in promisify

supple whale
#

the library i'd consume is just another library that is written by me

#

there are few dependencies that arent part of the project in the library

royal nymph
supple whale
#

if you converted the LOC into tokens you'd run out of tokens per session

#

let alone when using actual tokens

lavish frigate
hoary sluice
supple whale
#

and rutorrent is just pointed from ur pc, at some remote url

#

also rtorrent is lightweight

#

limited, but lightweight

blazing haven
blazing haven
#

i'm running multiple instances of it as well xd

#

cuz torrent clients no likey lots of torrents

blazing haven
pearl stagBOT
blazing haven
#

xd

hoary sluice
#

@valid jetty someone forgot a (

blazing haven
valid jetty
blazing haven
#

xd

glad aurora
supple whale
#

i dislike how accurate it is

#

XD

glad aurora
#

there’s no solution for php 😭

royal nymph
glad aurora
lavish frigate
# blazing haven
C: Problem -> Program received signal SIGSEGV, Segmentation fault.
Py: Problem -> 
Php: Problem -> <div>Solution Warning: include(Solution.php) No such file or directory</div>
C++: Problem -> The thread 'solution' has exited with code 0. WARNING: Detected memory leaks
Rust: Problem -> Cannot borrow `solution` as mutable more than once at a time
JS: Problem -> Give up -> Solution.ts -> Type 'solution' is not assignable to type 'booleanish'

...

Solution.py
#

bias-less

formal belfry
#

code to the vibes

jade stone
fleet cedar
#

Out of memory

dense sand
#

still waiting for gradle build to finish

lavish frigate
#

The gc ate all the ram ☹️

dense sand
#

just call the other gc /s

fleet cedar
#

And the AbstractManagerFactorySuppliers

dense sand
#

welcome to the spring ecosystem

#

im seriously unhappy with the state of backend frameworks in java, everything is either too complex or too intuitive

lavish frigate
#

Then why still use Java

#

Not like you need a server to run everywhere

dense sand
#

because i find it highly interesting

lavish frigate
#

😭😭

dense sand
#

my teacher wants me to use laravel

fleet cedar
#

Java isn't an interesting language

dense sand
leaden crater
#

java is very bad

fleet cedar
#

The jvm is interesting yeah

lavish frigate
#

Im gonna make a web server in wasm

#

The true run everywhere

dense sand
#

everything can run everywhere as long as you have an interpreter

lavish frigate
#

You don’t have an interpreter for all systems though and that’s why most things don’t run everywhere

fleet cedar
#

I don't run everywhere

#

I usually take the bus

leaden crater
#

+esoteric ones

lavish frigate
formal belfry
visual shellBOT
#
Unable to generate audio file.
lavish frigate
#

☹️

visual shellBOT
#
Text too long (must be 100 or shorter).
lavish frigate
#

stupid ass bot

dense sand
#

finally i think i have found a good solution for nullness

fleet cedar
#

Again?

lavish frigate
#

(its options and results)

lavish frigate
#

ill make a typescript compiler that just ignores all types they arent real anyway

visual shellBOT
lavish frigate
#

😭

formal belfry
#

chat

#

nyx using nixos?

#

soon 🙏

#

its time i switch off of arch

lavish frigate
#

dont

formal belfry
#

ohh arch how you have served me so well

#

ohhhh

blazing haven
#

its a trap

#

arch is peak linux

#

everyone saying otherwise is just a hater

fleet cedar
#

I wish there was an arch like with just slightly more out of the box

#

Needing to muck around for wifi, bt, mic, printer, etc isn't fun

blazing haven
#

cuz it pulls in all those dependencies

fleet cedar
#

Yeah but then you get all the kde bloat too

blazing haven
#

other than that just install network-manager. bluez + bluez-utils, cups

#

systemctl enable networkmanager
systemctl enable bluetooth
systemctl enable cups

#

done

#

lol

formal belfry
#

i mean it comes down to a skill issue

#

install faster 😡

blazing haven
#

install or download

formal belfry
#

same thing ig

#

i probably shouldnt be doing this while my wifi is shitting itself

winged mantle
#

I think everyone should learn java

delicate groveBOT
#

@valid jetty, <t:1743764426:R>: DO THE FUCKING SIMPLEX TABLEAU SOLVER (and reply to the set theory question

balmy lintel
hoary sluice
#

@valid jetty kill me

#

i put my homedir backup on my server where i only have ssh auth and then wiped my drive

#

GUESS WHERE I PUT THE SSH KEY

#

now i have to go to the basement and connect a monitor to it

#

and a live usb

#

cause i forgot the password

valid jetty
#

LMAO

hoary sluice
#

vn

#

vns

elder yarrowBOT
fleet cedar
#

The rare self-vns

hoary sluice
#

@jade stone how to swaybg

#

no docs

#

do i just have to guess???

jade stone
hoary sluice
jade stone
deep mulch
#

nixos so bad

hoary sluice
#
  1. should i link the absolute path of an image in my home dir / dotfiles or put the image in nix store?
  2. how do i find out if i can configure swaybg with hm
royal nymph
#

going to the nix store, yall want anything?

jade stone
placid cape
hoary sluice
jade stone
#

man home-configuration.nix or man configuration.nix

#

you can also search nixos options here

jade stone
pearl stagBOT
#

kitty.nix: Lines 3-17

home = {
  packages = with pkgs; [
    kitty
  ];
  file = {
    kitty = {
      recursive = true;
      source = ../../../../dotfiles/kitty;
      target = "./.config/kitty";
    };
  };
  shellAliases = {
    "icat" = "kitten icat";
  };
};
jade stone
#

something to watch out for while doing this is that those files are immutable and can't be written to

jade stone
#

to make a dotfile that you can write to, you need to use lib.mkOutOfStoreSymlink

i use this for neovim so lazy.nvim works properly and i dont have to switch configurations to work on it

hoary sluice
#

i need a wallpaper

#

png

#

not a dotfile

jade stone
#

you can use that to write your wallpaper as a png to a location

#

and use the config file to set the location

hoary sluice
#

what config file

#

huh

jade stone
hoary sluice
#

i never used sway before

#

but thats just a command u run

jade stone
#

i've never used sway

hoary sluice
#

in nix u can do output."*".bg = "/home/eagely/dotfiles/wallpapers/wallpaper.png fill";

#

from what ican tell

#

now where do i put the file

#

do i put it in nix store

#

or keep it in dotfiles

#

00:00:00.106 [sway/commands/output/background.c:121] Unable to access background file '/home/eagely/dotfiles/wallpapers/wallpaper.png': No such file or directory

agely@nixos:~/dotfiles/modules/ > stat /home/eagely/dotfiles/wallpapers/wallpaper.png
File: /home/eagely/dotfiles/wallpapers/wallpaper.png
Size: 50996 Blocks: 104 IO Block: 4096 regul

jade stone
#

@hoary sluice try this

programs.sway.extraSessionCommands = ''
swaybg -i ${./image.png} -m fill
'';
hoary sluice
jade stone
#

replace image.png with the path of your image RELATIVE TO THE NIX FILE THAT'S IN

#

and make sure to add it to git

#

as if a flake root is in a git repo, it will only include files added to git

pearl stagBOT
hoary sluice
#

how do i make it not do that

#

so i can test the config

#

actually the wallpaper is in git

jade stone
# hoary sluice oh

you only have to add the file, it doesnt have to have anything staged or comitted

#

if you dont want it to do that, dont use git

hoary sluice
#

warning: Git tree '/home/eagely/dotfiles' is dirty what does this mean

jade stone
hoary sluice
#

when it exists

#

and i specified absolute path

jade stone
jade stone
#

you should be able to do this

#
window.windowManager.sway.config.output."*".bg = "${./myImage.png} fill";
#

in nix, whenever you interpolate a string in a file, it adds the file to the store and the string becomes the store path of it

hoary sluice
#

hold on i changed nothing and it worked

#

it no longer works

jade stone
#

i cant help you any more without seeing your setup/config files

hoary sluice
#

why is the wiki useless

formal belfry
#

u gotta read it for it to be helpful

hoary sluice
#

youre about as helpful as it saying that

winged mantle
#

better example of weird behaviour i had: Example 1
.... how does typescript implicitly cast to an incompatible type?
without generics it does not work: Example 2

leaden crater
#

@valid jetty set...

deep mulch
#

@leaden crater hii

leaden crater
#

@deep mulch hiii

valid jetty
#

your question is vague, any set can be well-ordered but not all sets can be explicitly well ordered naturally (see: the axiom of choice, which guarantees that a well-ordering exists even if we cant define it)

you could say like, due to the fact that the distinct imaginary units i,j,k,l, ... cannot be trivially computed its relatively difficult to well order the set due to a lack of total ordering (and doing arithmetic with these numbers is hard because theyre not commutative, which complicates things more with them being totally ordered)

you didnt clarify what set the coefficients of the imaginary units belong to, because if they are real numbers and include irrational numbers then H is uncountably infinite because the coefficients are uncountably infinite, which means a natural well ordering cant be found

if the coefficients are integers, its plausible that H could be naturally well ordered, but only if you restrict the coefficients such that they become a countable or finite set, at which point you can do lexicographic ordering

TL/DR: all sets can be well-ordered as per the axiom of choice, H cant be well ordered naturally unless the coefficients of the imaginary units belong to a countable set (and you also add extra restrictions like making them bounded); even then finding the well-ordering is hard because of the non-trivial behavior under multiplication of the imaginary terms

formal belfry
#

so many words

valid jetty
#

hope that answers your question but im not sure i got this fully right

leaden crater
#

like

#

infinitely dimensional set?

valid jetty
#

im not sure what you meant by "can be well ordered" because every set can be well ordered

leaden crater
#

yea but i cant wrap my head around AC in this set

valid jetty
#

i took a guess that you meant specifically a trivial/natural well ordering which we can define but idk if thats what you meant

leaden crater
#

i wanted a bit of explanation on how its possible, but i guess its just "axiom, possible"

valid jetty
#

the axiom basically just says a well ordering exists, even if we cant explicitly define what it is

valid jetty
leaden crater
#

i'll have to exclude axiom of choice from my thinking process

deep mulch
#

did oyu use ai

valid jetty
#

i could be very wrong

#

no

deep mulch
#

i think you are an ai

leaden crater
#

very much ambiguity, most go back to the roots

leaden crater
deep mulch
#

how

valid jetty
#

i mean if you go back to the roots the fact that the set is uncountable is enough to say it doesnt have a well ordering

deep mulch
#

@valid jetty hii

valid jetty
#

but your definition of the set wasnt explicit enough

valid jetty
leaden crater
# deep mulch how

factor 3929293991930284900031301179371721737482843020001939384817274818489492993587

deep mulch
#

that is a big number

valid jetty
#
3929293991930284900031301179371721737482843020001939384817274818489492993587
    |> zoot.factor
    |> map explode
    |> print
deep mulch
#

nop

valid jetty
#

btw where did you get this from lol is it inspired by that new veritasium video

leaden crater
#

im trying to phrase it in a well calculated sentence

#

did you watch the video?

valid jetty
#

ya

leaden crater
#

:3

#

veritasium so good

#

vsauce, 3b1b, bprp, veritasium top tier

valid jetty
hoary sluice
#

@jade stone output."*".bg = "${config.home.file."wallpaper.png".source} fill";

#

nothing else worked

leaden crater
# valid jetty btw where did you get this from lol is it inspired by that new veritasium video

soso
Let C = {a + bi} be the standard complex numbers.
We define H = {a + bi + cj + dk + ...}, extending C with infinitely many imaginary units i, j, k, ..., uncountable many on R+(but which dont stop at infinity, go after omega). Each nₖ-th term in H is an iterative combination of the previous n₍ₖ₋₁₎ terms, like 1 + 2i + 3j + 4k + ... + 10⁸eᵧ + ..., with uncountably many infinite combinations.
Example 1 + 2i + (1 + 2i)j + (1 + 2i + 3j)k or 1 + (1)i + (1 + i)j + (1 + i + (1 + i)j)k
Can this be well ordered
explain H like example, any valid combination is allowed

hoary sluice
#

sway probably loads before the file loads

#

gn

deep mulch
#

gn

leaden crater
jade stone
hoary sluice
jade stone
#

i know

#

but i cant tell you why that worked

#

i have no clue

hoary sluice
valid jetty
# leaden crater soso Let C = {a + bi} be the standard complex numbers. We define H = {a + bi + ...

specifying that each term is an iterative combination of the previous term actually allows it to be well ordered

if i define a well ordering for i_a where a E ordinals (a well ordered index for the imaginary units), each i_a is defined as a function of the previous i_b | b < a (where b E ordinals too)

that basically gives you a transfinite tree of imaginary units (also known as a dependency chain), which can be well ordered

specifically the fact that the dependency chain exists makes it trivial to well order

imagine like, youre building up in minecraft

each block depends on the block under it, but you can never place a block which requires a block above it; with these rules you can build forever, as long as you stack upwards, and each block is well-ordered

although in this case its the position of the imaginary units instead of the block

#

if i understand that correctly

leaden crater
#

this is still so complicated

valid jetty
#

well

#

youre in the depths of set theory

#

what do you expect

leaden crater
#

im gonna think of it one day

#

until AC doesnt apply anymore

valid jetty
#

idk i think i know what you mean

#

it becomes trivial to well order a set when you introduce a dependency chain lol

#

that wasnt part of your original question thoo,,,,

leaden crater
deep mulch
#

insanity

leaden crater
#

@deep mulch

deep mulch
winged mantle
#

why is google so useless for working out typescript problems

#

can we have a typescript search enigne

deep mulch
#

I see x times r raised to the infinity power

deep mulch
leaden crater
winged mantle
#

can't even find what type should be used for "anything other than null"

#

but i found a post before

deep mulch
winged mantle
#

wait is it literally just NonNullable<unknown>

#

oh it's literally juts {}

#

i thought it was i just wanted to double check

dawn ledge
ornate quiver
#

sailing the seas since the sun hit your eyes

runic sundial
#

If your favorite language requires the LLVM framework to compile I regret to inform you that it will soon cease to function.

This is because I am very upset at LLVM, so much so that within the next 3-5 business days I expect the bad vibes I'm sending towards it to rot every bit that mentions it.

ornate quiver
#

nooo

runic sundial
#

Thankfully, it is the weekend

#

So you have plenty of time to switch to using self-hosted compiler which do not rely on this demented framework.

fleet cedar
#

What's wrong with llvm

runic sundial
#

It annoyed me

valid jetty
#

If your favorite language requires the LLVM framework to compile I regret to inform you that it will soon cease to function.

This is because I am very upset at LLVM, so much so that within the next 3-5 business days I expect the bad vibes I'm sending towards it to rot every bit that mentions it.

fleet cedar
#

That is a good copypasta ngl

valid jetty
#

i did this in possibly the worst way ever

lavish frigate
#

If your favorite language requires the LLVM framework to compile I regret to inform you that it will soon cease to function.

This is because I am very upset at LLVM, so much so that within the next 3-5 business days I expect the bad vibes I'm sending towards it to rot every bit that mentions it.

valid jetty
#

this little abstraction becomes useful EVERY TIME i work with react

type StyleSheet = Record<string, React.CSSProperties>;

export const mergeStyles = (...styles: React.CSSProperties[]) => styles.reduce((pre, cur) => ({ ...pre, ...cur }), {});
export const createStyleSheet = <T extends StyleSheet>(sheet: T) => ({
    styles: sheet,
    merge: (callback: (sheet: T) => React.CSSProperties[]) => mergeStyles(...callback(sheet))
});
#

im so glad i made this

valid jetty
#

@hoary sluice love?

hoary sluice
#

is this ai generated

valid jetty
#

what no

hoary sluice
#

this is the type of stuff you ai generate

valid jetty
#

.

nimble bone
#

eageler vibecoded his software

#

everything

hoary sluice
#

lmao i changed the mewmod license from the unlicense to gpl v3 im not sure if im allowed to do that

#

ig the old version in public domain

royal nymph
#

if it's someone else's code then yes too because it is public domain lol

#

either way you won't be able to enforce it because you can't revoke the license so the old version will always be public domain

#

but a lot of countries don't legally support public domain so the situation might be different

hoary sluice
#

all the code i copied was from a public domain license and after i changed to gpl

#

iirc

#

ok well the template isnt

#

actually no the template is also under the Unlicense

#

idk why so many minecraft mods have the unlicense

#

not even cc0

royal nymph
hoary sluice
#

dont think you can get sued in germany for copying something under cc0

royal nymph
#

so if the author is in those countries, they can't Unlicense their code

hoary sluice
#

cc0 is super long to make sure its as unlicensed as possible

royal nymph
hoary sluice
#

which makes it effectively public domain

#

as in everyone can use it and you cant sue them for it

royal nymph
#

you'll still have to credit the author but yes besides that

hoary sluice
#

will you tho

#

is that a law

royal nymph
#

Moral rights are rights of creators of copyrighted works generally recognized in civil law jurisdictions and, to a lesser extent, in some common law jurisdictions.
The moral rights include the right of attribution, the right to have a work published anonymously or pseudonymously, and the right to the integrity of the work. The preserving of the ...

hoary sluice
#

can i sue you if you dont credit me in a CC0 copied project

royal nymph
#

depends where you live

hoary sluice
#

if we both live in germany

#

cause you can just argue that i gave you the express permission to use it without credit

royal nymph
# royal nymph https://en.wikipedia.org/wiki/Moral_rights

you automatically have moral rights to your works which include the right to be attributed

in some countries it's not possible to give up these rights. even if you make a written statement that you give them up, you can't

so yes if you are not attributed, it violates your moral rights and you can sue

hoary sluice
#

has a judge ever ruled in favor of the plaintiff in such a case tho

#

"i explicitly stated that he does not need to credit me and he didnt credit me i want 50000$"

royal nymph
#

"I explicitly stated that he may kill me and he killed me"

#

that's not how legal works

#

:P

#

probably still no tho because the author would have to sue

and who would publish their work into the public domain (or at least try to) and then sue people for using it

hoary sluice
#

pretty sure that in germany the judge can override the law

#

so he has the right to find you not guilty

hoary sluice
#

someone who has a differing political view and would like to sue you just to harm you

royal nymph
#

well

worst case scenario it would be a small fine and a "agree to stop doing this" unless you're like a big corporation

but big corporations have legal teams to prevent stuff like this

#

but yes this is personally why I wouldn't use something that is Unlicense

#

and I have opened issues on repos before asking them to relicense to CC0 :P

hoary sluice
#

doesnt mit license also say you dont need to credit

#

or at least not say that you need to credit

royal nymph
#

well actually the Unlicense does have this clause which does give you all permissions you should need

maybe I was thinking of a different public domain license

either way CC0 is still better

hoary sluice
#

well the license but not credit

valid jetty
#

@royal nymph do you know how to faithfully have a Set<number[][]>

royal nymph
#

the credit is in the very first line of the license

valid jetty
#

the decimal places make it count as a unique entry
[0,0,2.3999999999999995,0,1,-1.1999999999999995,-0.19999999999999996,0.19999999999999996,0.8,0.8],[0,0,-1.4,1,0,2.1999999999999997,0.19999999999999998,-0.19999999999999998,0.19999999999999993,0.19999999999999993]],[[1,0,1.7999999999999996,0,0,1.6000000000000008,0.6,0.4,6.6,1.5999999999999996],[0,1,1.7999999999999996,0,0,1.6000000000000008,0.6,0.4,6.6,6.6],[0,0,2.3999999999999995,0,1,-1.1999999999999995,-0.19999999999999996,0.19999999999999996,0.8,0.8],[0,0,-1.4,1,0,2.1999999999999997,0.19999999999999998,-0.19999999999999998,0.19999999999999993,0.19999999999999993]]]

#

for some reason

royal nymph
valid jetty
#

actually idk

#

probably not tbh

royal nymph
#

you should probably only do identity and leave deep equal impl to the user

valid jetty
#

probably

hoary sluice
#

i never knew you had to include that i thought you just had to use the MIT license

royal nymph
hoary sluice
#

@valid jetty what jp font do i use

hoary sluice
#

thats a full time job for at least 10 people

hazy pine
#

a whole lot of babel

valid jetty
hoary sluice
#

im using noto-fonts-cjk-sans rn

#

npc font

leaden crater
#

@valid jetty

#

wanna see the font i wanted to show you

valid jetty
#

suree

leaden crater
hoary sluice
#

@valid jetty im currently arguing with someone in kuudra gang about whether "skyblock os" means a nix config packaged in an iso or LFS set up with skyblock mods

dense sand
#

whos using spotify cracked here

#

should i use revanced patches or xmanager

#

i know that xmanager is based on revanced now

serene elk
#

your choice

#

if you have the patience to patch yourself then do

#

else just use xManager

dense sand
#

ill just use revanced as they are more open

serene elk
#

xManager is using ReVanced patches but they are still signing their app

#

however both teams already exchanged knowledge regarding the patches either way

valid jetty
valid jetty
valid jetty
valid jetty
valid jetty
#

so much bloat..

#

those web devs smh

sage smelt
#

how do i open a channel using its id? ThinkingHmm

sage smelt
elder scaffold
#

pretty sure you do transitionToGuild and transitionTo or smth

balmy lintel
#

yop NavigationRouter.transitionTo("/channels/(guildid)/(channelId)") iirc

elder scaffold
balmy lintel
#

doesnt transitionTo only take a path? dont know if that changed

elder scaffold
#

I tested and it takes a channel id

#

seems like a path works fine too tho

hoary sluice
valid jetty
hoary sluice
placid cape
dense sand
#

If elle compiles to wasm...

hoary sluice
#

@placid cape @dense sand hop on amogus

dense sand
#

I dont play

placid cape
#

Is it possible to run it on Linux?

hoary sluice
#

yes

placid cape
#

Okay perfect

#

I'll use heroic launcher

hoary sluice
#

use geproton

#

heroic prob works too

placid cape
#

I have it on epicgames

valid jetty
#

WHY IS IT SO HARD TO STYLE A STUPID DIV

#

i have a container that centers the whole thing, but then the whole matrix is centered on the page

#

when the content overflows horizontally, the browser still has to center it

#

so it gets cutoff to the left

median root
#

centering a div. the hardest coding challenge. leetcode hard

placid cape
valid jetty
#

but theres no trivial way to get it to always be centered and

#

I CAN JUST

#

OMG

#

i can just set a relative percentage width on the container of the matrix inside the root container

placid cape
#

display: flex
align-items: center
justify-content: center

#

to center

#

i think

median root
#

is there anything quicker than spotDL which doesent spam me with 50billion rate limits as i try to download a stupid song?

hoary sluice
valid jetty
#

but the problem i have is more complex

#

or well

#

had

placid cape
#

professuional minecraft bedrock player on linux (microsoft doesnt like that)

valid jetty
hoary sluice
valid jetty
#

anyway centered!!

median root
valid jetty
#

if it becomes bigger than 80% of the screen width it overflows with a scrollbar

#

this is all i wanted

dense sand
valid jetty
#

😭

placid cape
#

it's something like sober for roblox if you know what im talking about

placid cape