#programming

1 messages · Page 23 of 1

hoary lion
#

should #programming execute you for committing such monstrosity

#

or should we praise you

tender river
#

what a nice commit hash though

rigid snow
#

compiling on a laptop neuroThisIsFine
it burns help

stark needle
rigid snow
stark needle
tender river
#

alright the new shellcode is [0x48, 0x8b, 0x44, 0x24, 0xf0, 0x53, 0x48, 0x8b, 0x58, 0x08, 0x48, 0x8b, 0x00, 0x48, 0x01, 0xd8, 0x5b, 0xff, 0x64, 0x24, 0xd8] and the new stack offset in run_shellcode is + 4 rather than + 3

stark needle
hoary lion
#

ill just uhh

#

1.58-ify myself

stark needle
trim valve
#

konii how fast is hblang bogosort

tender river
#

the arguments are much closer in stack which means theres less stack pollution (0x10 rather than 0x30), but because of the increased register usage the function now has to push one more register leading to +1 in return address

hoary lion
trim valve
#

glueless hblang compiler will see bogosort and emit perfect asm

stark needle
tender river
trim valve
#

oh yeah I was gonna simd this at some point

tender river
trim valve
#

oops

tender river
#

its supposed to do sub rsp, 8 instead of sub rsp, 0x10

stark needle
#

@hoary lion its actually learning more than full finetuning

trim valve
#

neuroPogHD avx512 bogosort

real sierra
#

neuroPogHD chills

trim valve
real sierra
#

konii it no work Sadgi

#

did i port it wrong?

hoary lion
#

cause we love bf16

#

WRONG EMOJI 😡

stark needle
tender river
real sierra
#

i thought i fixed the bug tho

#

its failing catastrophically too

trim valve
#

neuroPogHD catting urandom may have been a mistake

real sierra
#

so its probably my fault?

tender river
trim valve
real sierra
#

yeah i think this is what i did

#

turned into this

#
function toggle_pixel 4;
    push_value 64;
    push_arg 1;
    sub;
    pop_d;
    if_else_d JGE toggle_pixel_break toggle_pixel_test_y;
    @ toggle_pixel_test_y
        push_value 64;
        push_arg 2;
        sub;
        pop_d;
        if_else_d JGE toggle_pixel_break toggle_pixel_go;
    @ toggle_pixel_break
        push_value 0;
        return;
    @ toggle_pixel_go
    push_arg 2;
    push_value 64;
    call math_mult;
    push_retval;
    push_arg 1;
    add;
    pop_d;
    push_d;
    push_d;
    push_value 16;
    call math_div;
    push_retval;
    push_arg 0;
    push_arg 3;
    call toggle_pixel_inner;
    push_value 0;
    return;
        
# toggle_pixel_inner(idx, word_idx, buf, on)
function toggle_pixel_inner 4;
    push_arg 2;
    push_arg 1;
    add;
    pop_d;
    push_d;
    push_d;
    push_memory;
    push_value 0b0000000000000001;
    push_arg 0;
    push_value 15;
    and;
    push_value 15;
    sub;
    call math_shln;
    push_retval;
    push_arg 3;
    pop_d;
    if_else_d JEQ toggle_pixel_inner_off toggle_pixel_inner_on;
    @ toggle_pixel_inner_off
        not;
        and;
        pop_memory;
        push_value 0;
        return;
    @ toggle_pixel_inner_on
        or;
        pop_memory;
        push_value 0;
        return;
#

shiroMODS chayleaf prettify it

tender river
#

do i translate it into pseudocode again

#

sure

real sierra
#

its blowing up the call stack

#

so i must've done something wrong

#

but idk what

#

probably forgot a semicolon

olive sable
hoary lion
#

bro istg

#

fuck adobe

real sierra
#

i miss the poghd sticker...

stark needle
trim valve
#

ok you made me check how fast urandom actually is ```sh
$ dd if=/dev/urandom of=/dev/null bs=8M count=3000
3000+0 records in
3000+0 records out
25165824000 bytes (25 GB, 23 GiB) copied, 34.0017 s, 740 MB/s

#

suprisingly not that bad

#
  • that's writing to /dev/null which probably adds some overhead somewhere
real sierra
stark needle
#

wait what did people actually use it that much since you introduced it here

tender river
#

monochrome bu

real sierra
#

banger

hoary lion
rigid snow
#

damn the virus really is spreading huh

tender river
#

you mean this month?

#

check just 89 too

#

168

real sierra
#

oh question

tender river
#

i didnt set the upper bound

real sierra
#

why do u guys never report it when scammers send links here and stuff

#

do you just start pentesting them or something

trim valve
#

mods scary

real sierra
#

like every other channel pings staff almost instantly

#

except you guys neurOMEGALUL

trim valve
#

I like octuple checking I'm not about to ping the mods over a kid who sent a message that I read wrong

real sierra
#

but half the time they're just ppl making 2 cents an hour to send scams from prewritten scripts

#

instead of bots

trim valve
#

and by the time I'm on my 7th check I give up

#

and do something else

real sierra
#

you can tell because they leave the quotes on the messages they copy paste to you

trim valve
#

shiro just ban quotation marks ezpz

#

who uses them anyways

rigid snow
inner pike
#

bro those people coming here with ai generated chat messages talking about using ai to make ai are appearing more and more often

tender river
real sierra
stark needle
#

shiro should ban #programming completely for the greater good

real sierra
#

push_memory assumes there is a memory address on top of the stack, pops it, fetches its contents, and pushes that back onto the stack

#

pop_memory assumes the top of the stack is a value and just below it is a memory address, pops both and stores the value at the address

tender river
real sierra
#

yeah

#

it effectively dereferences the top of the stack

trim valve
#

oh damn we got the version with my crossing out in it

#

I expect royalties konii

stark needle
#

something something turing something sounds like vanor

hoary lion
#

when are we going to have super rare vedal appearance

tender river
real sierra
#

exceedingly rare

hoary lion
inner pike
#

"Vibe Coding", and "I want to make Neuro" should be on the same space considering how often they are done by the same person neurOMEGALUL

stark needle
#

there are ways to make vedal spawnNeuroBounce

real sierra
#

even pinging him doesnt work

hoary lion
#

with great power

#

ahh

stark needle
real sierra
#

ive tried before

#

and he just reported my message in staff bot and went back to his business

inner pike
#

neurOMEGALUL Every time

hoary lion
#

"in c" yeah it's done for neurOMEGALUL

inner pike
stark needle
#

what are the odds that to prove shiro wrong he will spawn right now

real sierra
#

zero

trim valve
#

real

#

discord is such a goated app I meant to reply to that totally

inner pike
#

Classic

#

accidently replying to the wrong message

real sierra
#

my wallet weeps

inner pike
#

or accidently pinging the wrong person

trim valve
#

when I use compact theme I commonly react my own messages

inner pike
#

if i had a nickel for everytime somebody accidently Camila instead of me, i would have two nickels, which isnt a lot but its weird that it happened twice

trim valve
#

which is kinda funny but 😭

stark needle
#

only this exists

tender river
# real sierra ```ps function toggle_pixel 4; push_value 64; push_arg 1; sub; p...
toggle_pixel(a, b, c, d) {
    if 64 - args[1] >= 0 {
        return 0;
    } else if 64 - args[2] >= 0 {
        return 0;
    }
    a = math_mult(args[2], 64) + args[1];
    toggle_pixel_inner(a, a / 16, 0, 3);
    return 0;
}

toggle_pixel_inner(a, b, c, d) {
    a = args[2] + args[1];
    b = *a;
    c = math_shln(1, (args[0] & 15) - 15);

    if args[3] == 0 {
        c = ~c & b;
    } else {
        c |= b;
    }
    *a = c;
    return 0;
}
real sierra
stark needle
#

ok chat i was thinking

#

would a diffusion transformer be a good or bad speculative draft model

#

for an autoregressive one

hoary lion
#

it would serve okay

real sierra
#

it looks right hmm

#

so why is it crashing hmm

rough bloom
olive sable
#

its been 6 months ye. catdespair

#

at this point idk if he even wants to return

real sierra
#

i didnt specify to chayleaf but the subtrahend forsub is the second-topmost value on the stack, not the topmost

#

so they decompiled the subtraction backwards YES

rigid snow
#

konii using neuroPog not HD neuroNOWAYING

real sierra
#

why would you settle for such low res

#

i accept nothing less than HD

trim valve
real sierra
#

ok i give up for today, this will just remain broken

#

im happy enough with all the math functions

#

ill get the display working eventually Copege

#

then i can graph things happie

#

immediately after saying that, my PC bricked itself

#

restart and pray

cobalt vessel
rigid snow
#

that's so interesting, deepseek started a code block in its reasoning, didn't finish writing the code and continued reasoning in comments, even doing other code blocks all prefixed by //

tender river
real sierra
#

i asked where the original was

#

mito found it

#

enjoy

fast pagoda
cobalt vessel
fast pagoda
tender river
#

i think that compiling is faster than interpreting the bytecode mhm

#

anyway your code will probably benefit from cache line optimization more now

stark needle
tender river
#

but also you probably need to measure a noop program in fakern and subtract it from the right time

#

well either way it will be faster

fast pagoda
#

even if there's no chance it's currently running

gleaming harness
#

My new OS has dispatched

tender river
#

0.8ms vs 27ms is still a great improvement neuroPogHD

stark needle
#

omg

#

😭 😭 😭

#

this is insane

#

ai company was underpaid staff all along

olive sable
#

just like amazon

stark needle
#

does anyone wanna join my "ai" companyglueless

#

we provide many benefits like

#

no pay — we are looking for individuals who put learning before earning first, and will appreciate the experience of working more, which reinforces their human side by showcasing empathy and willingness of democratizing technology for everyone to use

hoary lion
#

tldr; work for free

tender river
#

actually that sounds like an interesting optimization problem, working in a company that has paid leave but doesnt pay you while you're working, so you have to keep a balance between paid leaves to get paid and working to not get fired

fast pagoda
#

lol

fast pagoda
#

the thing i'm working on has a cute mascot agent am i hired

olive sable
tender river
#

any examples?

queen ginkgo
tender river
#

until there are actual files on ableos, dont bother tbh

gleaming harness
tender river
#

when there are you can come up with a concrete solution, abstractions without knowing what they abstract over are kinda pointless

#

also epoll and io uring are useful, but if they do get introduced by ableos they will be a bit of a pain to deal with and if they dont then everything is easier but also less modern

#

are buffers a way of sending data or a way of sharing data?

#

so "udp pipes"?

#

there are no udp pipes i meant that they arent for streaming data

#

are there capabilities?

#

or will there be

gritty dust
olive sable
frozen igloo
#

I think I broke ChatGPT.
It has been doing this for the last few minutes

#

It’s still going

stark needle
#

Bros just wanna get out data and create a monopoly

#

😭😭

hoary lion
#

dead arch

olive sable
#

im sure that will happen NeuroClueless

queen ginkgo
#

Dude we can barely maintain international laws in regard to War crimes, Meta really thinks AI training data will be able to fall under international law?

fast pagoda
#

they'll just pirate it anyways

#

(it's fine if you have a gazillion dollars)

#

but if i were to do the same thing it's off to debtor's prison for me

hoary lion
#

well

#

they still suck even with those pirated data

fast pagoda
#

behemoth is great but the only person that gets to use it is zucc for his personal waifu ai

autumn ore
#

I’m gonna make neuros xp

olive sable
#

Would it be acceptable to have mobile render in 720p?

#

Would give a lot of extra frames

fast pagoda
#

the human eye cannot see beyond 480p and 24 fps after all

opaque sigil
#

720p at 6.8 inches is 216 PPI, do with that information what you will

#

actually, realistically it's higher

#

720x1544 would be 250 PPI at 6.8"

gritty dust
opaque sigil
#

tldr: more than enough

rigid snow
#

216 PPI mhm

opaque sigil
fast pagoda
#

original retina was ~320 ppi or whatever

#

on the good ol iphone 4

opaque sigil
#

i think the pro display is around 230 or so

#

not the big boy one

rigid snow
#

original retina is still all we need tbh it looks great even now

fast pagoda
#

the larger retinas are under yeah

prime ridge
#

Ah shit it's gunna take 8 more hours @olive sable. Ay at least it's better than like 5 more days tho 😭

fast pagoda
#

in the 200s

amber fractal
olive sable
fast pagoda
#

pro display XDR is 218 ppi apparently

#

damn

#

so basically the same

#

just market it as "same ppi as pro display XDR"

opaque sigil
#

i do wish companies would use ppi more than resolution to advertise their products sometimes

olive sable
#

Retina is bullshit anyways

#

I'm pretty sure my tablet from 2015 qualifies

amber fractal
rigid snow
#

ui scaling on macbooks is super weird, it’s like it’s downscaling a higher res with some weird ass algorithm. but i actually really like how it looks? it almost tricks your brain into thinking the pixel density is much higher or some shit idk

#

the text is sharper

opaque sigil
#

hey if it works it works

olive sable
opaque sigil
#

yes

#

pixels per inch

rigid snow
#

it’s not by area though?

fast pagoda
#

imo

opaque sigil
#

look too close and anything will look like ass tbf

fast pagoda
#

jony ive personally wouldn't let the interns go home until the text made him go "OH YEAH"

opaque sigil
#

windows is weird, there are ways to work around it (mactype my beloved) but yeah

olive sable
#

i think i should make tablets keep 1080p tho

fast pagoda
#

pic related, it's jony and one of the interns he held hostage until OSX text rendering was perfect

amber fractal
#

240ppi for example is a 4k 16 by 9 display

opaque sigil
#

24"?

amber fractal
#

16 inch, slightly larger than what I have but I cba to remember correct math

opaque sigil
#

oh yeah true i'm dumb

#

27 would be 160 or so, suppose that makes sense then

amber fractal
#

Mentally my mind was at 15.6 inch 4k touchscreen

olive sable
#

my desktop has 108.79ppi
tablet is 273.36ppi
and my phone is 404.89ppi

#

if i did the math right

#

out of those my tablet has the highest res at 2944*1840

rigid snow
opaque sigil
#

interesting

#

more contrast is nice i guess

rigid snow
#

of course super exaggerated because phone pic it's almost unnoticeable in person

real sierra
#

shouldnt some of you be sleeping by now

opaque sigil
#

maybe

rigid snow
#

perhaps

real sierra
#

Classic just one more bug fix

amber fractal
#

Actual math is 219.51ppi

rigid snow
#

add more precision

scarlet arch
amber fractal
#

results were allergic to giving me screen dimension

scarlet arch
#

Shiro nyasSnuggle

real sierra
#

ive been so hard at work writing code

olive sable
#

it may or may not be 2.47am

scarlet arch
olive sable
amber fractal
#

I've had to take short rests twice today neuroBwaa

scarlet arch
#

My last week has basically been one continuous rest lol

#

I have absolutely no energy to program anything

olive sable
#

would it be possible to acces something like localhost from another device on the same network?
im getting tired from waiting 5 min each time to build it on github

real sierra
#

i cant take naps dejj

opaque sigil
#

access the local ip of the device

scarlet arch
rigid snow
amber fractal
olive sable
#

its localhost 8000

scarlet arch
#

Yeah that's not available externally

real sierra
#

localhost is just an alias for 127.0.0.1 is it not

scarlet arch
#

Yes

real sierra
#

they both point to the loopback

olive sable
rigid snow
#

rule of thumb to make your stuff externally accessible you have to bind to 0.0.0.0

amber fractal
#

127.0.0.1 / localhost can't be accessed from other machines normally. But you can forward requests to it

olive sable
#

nort my program so neuro7

rigid snow
#

networking pisses me off

scarlet arch
rigid snow
#

yeah bind address should be configurable

scarlet arch
#

Also, pretty sure you can use nc to redirect private ports to public ones

olive sable
#

maybe

unreal coral
#

Hi guys ^^

opaque sigil
#

first thing would be trying if it maybe just works already as is

scarlet arch
unreal coral
#

I have a question i wanted to ask before i forgot it again

opaque sigil
#

can run ipconfig (on windows) to get the ipv4 ip for the relevant network adapter and just access that ip from the other device

unreal coral
#

About possibly simulating emotions with ai

scarlet arch
#

Someone post the thing

rigid snow
#

don't forget to turn your firewall off btw

amber fractal
unreal coral
#

Disclaimer i started getting into coding as hobby a few months ago so im still really bad >.>

amber fractal
#

Searching for konii msg brb

opaque sigil
#

if your firewall completely blocks port 8000 by default i'd be confused

unreal coral
#

But basically
Couldn't you basically make the AI evaluate words or sentences and sort of give points to different categories?

amber fractal
rigid snow
#

i assume windows it's just easier to turn it off there

scarlet arch
unreal coral
#

And then mix them together like RGB to get an emotion?

olive sable
#

why does ipconfig not open?
it imeadiatly closes when trying to run it bwaadow

scarlet arch
rigid snow
#

what platform

olive sable
#

win11

unreal coral
#

Oh so this already exists?

scarlet arch
#

Just look up sentiment analysis and see if it's what you want

opaque sigil
#

huh it should display stuff, does ipconfig /all show nothing either?

unreal coral
#

( i only know json so far)

#

Oh no im far far away from making my own ai sadly >.>

#

I barely know 1 language ;-;

olive sable
amber fractal
unreal coral
#

Just thought i'd ask in case this was some 500iq move .-.

opaque sigil
#

yeah you want the wall of text

scarlet arch
opaque sigil
#

you look for the IPv4 Address entry

rigid snow
#

100 html "programmers" vs 1 chad json programmer who would win

opaque sigil
#

in realistically the first adapter probably

amber fractal
opaque sigil
#

oh wait

unreal coral
tight tinsel
#

Oh yeah that one was the ai generated product statement

unreal coral
#

Or are ya talking about me? :0

olive sable
opaque sigil
#

run the command in a terminal

olive sable
#

its cuz i was using win+R

opaque sigil
#

yeah

scarlet arch
olive sable
#

try not to be mean to non-programmer challenge

#

impossible edition

scarlet arch
# unreal coral Or are ya talking about me? :0

Nothing personal. Lots of people come here and ask questions, but because they're new they don't know that we answered those a thousand times. So at some point we came up with a bingo for it haha

amber fractal
olive sable
#

look guys its my ip adress welpsagiri

#

192.168.129.4

#

192.168.129.4

#

192.168.129.4

amber fractal
scarlet arch
#

I'm in

rigid snow
tight tinsel
#

mine is 127.0.0.1

unreal coral
#

Both ig

scarlet arch
unreal coral
#

Cuz i did say i only know json :0

#

So far atleast

scarlet arch
#

Json isn't really a language btw. It's a format.

prime ridge
scarlet arch
#

Unless my definition is off?

scarlet arch
unreal coral
#

Oh right

olive sable
#

nah my subnet mask is 255.255.254.0

prime ridge
#

neither JSON or HTML are programming languages because they don't instruct the computer

unreal coral
#

But then again it kinda is if your using an API no?

prime ridge
#

mine is 255.255.255.0

unreal coral
#

Since i'm teaching myself by modding a game

prime ridge
#

my ip is 192.168.1.136 😎

scarlet arch
#

Why do you guys have such weird subnet masks

scarlet arch
#

Or, rather, unconventional

prime ridge
#

Literally the most normal subnet mask lmfao

unreal coral
#

I genuinely came up with smth that works and is used by professionals

prime ridge
#

"The most common subnet mask is 255.255.255.0, often used for Class C networks."

opaque sigil
unreal coral
#

Or atleast in a nutshell

prime ridge
#

literally the most common subnet lol

scarlet arch
#

Oh my god I'm an idiot. Of course. neurOMEGALUL listen it's 3 in the morning

olive sable
#

turned of the firewall PANIC

#

ye nothing is happening

scarlet arch
#

I should change my answer to 255.0.0.0 then

rigid snow
unreal coral
#

Also if i posted stuff related to the mod i'm making for a game

#

Does it go in the game channel or here?

viral oasis
#

Hi

olive sable
#

he's probably asleep ngl

#

shadow has a way better sleepchedule than me

viral oasis
#

Figures that femboy is eepy rn

scarlet arch
#

Why's he light now and not a shadow

olive sable
viral oasis
olive sable
#

nah, sleep is for the week

amber fractal
#

Hi operator neuroWave

olive sable
#

but its sunday

scarlet arch
olive sable
#

oh fuck its monday actually

viral oasis
olive sable
#

nah he actually doesnt like that either lol

viral oasis
scarlet arch
#

Yeah. nyaShy if you wanna call someone a femboy you can have a go at me no problem belly

fast pagoda
rigid snow
olive sable
#

neurOMEGALUL byter is basicly pleading to be called a femboy now

opaque sigil
fast pagoda
#

noooo 👉 👈 dont call me a femboy ~~~~

scarlet arch
rigid snow
#

bro what the fuck is going on

viral oasis
amber fractal
#

new chatter :real:

opaque sigil
#

a reverse proxy that takes requests on port 8080 and forwards them to the local port 8000

tight tinsel
amber fractal
rigid snow
scarlet arch
fast pagoda
scarlet arch
viral oasis
#

You make it sounds like thats not normal tho CELESTEWHY

scarlet arch
#

Think I'm gonna go to bed. You guys actually helped me get rid of the headache love

olive sable
#

even having a single 3090 is more than most people can say

amber fractal
rigid snow
scarlet arch
viral oasis
olive sable
#

depends on where you live

#

most peole ive seen here say that for thm its between 800 and 1K

amber fractal
#

I'm willing to have sam ship over 3090 if I need it

olive sable
#

here they are 600-700 tho

amber fractal
#

prices are insane here

olive sable
#

i got mine for 675, but they've gotten cheaper i guess

scarlet arch
rigid snow
olive sable
#

they want me to learn rust, which is he same as trying to indoctrenate me int femboyism i guess

viral oasis
#

4090 best investment for my case, i just put anything i want 2x, fast by default on it, then use optimizations that only work on the 4000 series or above

olive sable
#

ye you mentioned something like that in vrc

#

i cant afford it tho so

viral oasis
#

I got lucky

olive sable
viral oasis
#

I grabbed it whilst cheap and community helped me pay remainder

#

Basically i sniped it

opaque sigil
olive sable
#

i cant tell if that better or worse

amber fractal
#

I hear that has a lesbian infection

olive sable
#

thats the lang konii uses no?

#

im getting tuerned into a lesbian now

opaque sigil
#

it is

olive sable
#

ah yes, my name is sam and im a 17 y/o male lesbian

viral oasis
olive sable
#

well this is interesting, if i dont use localhost but instead 127.0.0.1 ity does WWWWWWWWWWWWWWW

viral oasis
#

Wwwwwwwwww

olive sable
#

im so confused

amber fractal
#

my keyboard when I move in video games

opaque sigil
#

huh

olive sable
#

it doesnt even seem to be doing the file downloading

opaque sigil
#

they should be pointing to the exact identical spot

olive sable
#

it just broke

opaque sigil
#

actually

#

i guess localhost has some special stuff around it in browsers

rigid snow
opaque sigil
#

check the console

viral oasis
# olive sable well this is interesting, if i dont use localhost but instead 127.0.0.1 ity does...

I found a way to turn Portal 2 into a web server.

Thank you for watching!
This project is available on GitHub: https://github.com/p2r3/HTTPortal
Join our Discord server! https://p2r3.com/discord

All music used is from the Portal 2 OST in this order:

  • Robot Waiting Room 6
  • There She Is
  • You Are Not Part Of The Control Group
  • Halls Of Science 4
â–¶ Play video
amber fractal
olive sable
rigid snow
opaque sigil
#

nono the browser console

olive sable
#

python only shows this

#

how do i acces the web console?

#

ussualy i do right click inspect

#

but i cant right click

opaque sigil
#

ctrl shift i

rigid snow
#

f12

opaque sigil
#

or that

#

watch it be cors

rigid snow
#

it shouldn't be

opaque sigil
#

well if the program uses localhost and you suddenly use 127.0.0.1 then it'd make sense if it starts complaining

rigid snow
#

it shouldn't start making cross origin requests

olive sable
#

had to do some quick debugging on the python side

rigid snow
#

LMAO

opaque sigil
#

i was right neurOMEGALUL

rigid snow
#

what's the actual hostname

olive sable
rigid snow
fast pagoda
#

every time

olive sable
#

8000 has been working fine for me as localhost

#

its just 127.0.0.1 giving me this

fast pagoda
#

last time i had a super nightmare with localhost it was because docker fucked my entire network stack 6 ways from sunday

#

btw i fucking HATE docker

rigid snow
#

i guess if you fetch stuff from python you can't do fetch("/this_would_work_regardless")

fast pagoda
#

classic CORS

olive sable
#

idk what cors is but sure

fast pagoda
#

cross origin resource sharing

#

the bane of my existence half the time

olive sable
#
                   [--no_opt] [--archive] [--icon ICON] [--cdn CDN] [--template TEMPLATE] [--ssl SSL] [--port [PORT]]```
i guess the port arg should work?
fast pagoda
#

it's what makes me hate websocket more than i should

rigid snow
# olive sable idk what cors is but sure

basically makes it so fetching stuff from a website from another website has to be explicitly allowed, so you don't have money taken away by requests to your bank by visiting a random web page

opaque sigil
#

you need to set --bind 127.0.0.1

olive sable
#

werent we trying to set it to 0.0.0.0?

fast pagoda
#

that's out port

#

like if u want to be public accessible

olive sable
#

yes

#

i need to test mobile build

opaque sigil
#

actually

#

looking at pygbag

#

i think it actually is just hardcoded

fast pagoda
fast pagoda
#

shit like that is why port 8000 is a trap

#

stuff just sits on it

rigid snow
#

3000 is superior

fast pagoda
#

3001 and 8001 for me

olive sable
#

i kinda dont care

#

how do i put it on 0.0.0.0?

opaque sigil
#

--bind 0.0.0.0 so it listens on all adapters

olive sable
#

okay

opaque sigil
#

that way it should hopefully also be accessible within the same network

fast pagoda
#

as long as it doesnt get blocked by some other policy

opaque sigil
#

yea

fast pagoda
olive sable
#

do i need to turn of firewall for that aswell?

opaque sigil
#

try with it on first

rigid snow
#

on windows probably

olive sable
#

This site can’t be reached
The webpage at http://0.0.0.0:8000/ might be temporarily down or it may have moved permanently to a new web address.
ERR_ADDRESS_INVALID

fast pagoda
#

if it doesnt work u might need to allow it thru firewall

#

heh

#

id check your firewall

opaque sigil
#

0.0.0.0 is not an ip you access

rigid snow
opaque sigil
#

you need the local ip within the network

fast pagoda
#

but also yeah you can't access it thru the browser like that

#

you have to use your pc's ip

#

you can access 0.0.0.0 from localhost tho

hoary lion
#

you should be using

olive sable
#

ooooooooooooooh

hoary lion
#

127.0.0.1?

opaque sigil
#

or i guess localhost/127.0.0.1 on the same pc

olive sable
#

no

hoary lion
#

or directly localhost:8000?

olive sable
#

wait

fast pagoda
#

do ipconfig and get ur pc's local ip and use that :8000

hoary lion
#

never heard of one using 0.0.0.0 for localhost or seen success

#

i failed with 0.0.0.0

fast pagoda
#

i have accessed 0.0.0.0 locally at least a few times when doing some bullshit

olive sable
#

ok ye its probably working

opaque sigil
#

the whole point of 0.0.0.0 is that it's inaccessible

fast pagoda
#

it redirects to 127.0.0.1

#

for me

olive sable
#

ok nevermind

fast pagoda
#

so that's probably why it works lol

opaque sigil
olive sable
#

The page requested an origin-keyed agent cluster HUH

fast pagoda
hard shale
fast pagoda
rigid snow
opaque sigil
#

0.0.0.0 is the current host so i guess it's reasonable that the browser would just redirect

olive sable
#

guys my ip adress is a multiple of 1

fast pagoda
hard shale
fast pagoda
#

firefox

hard shale
#

Oh, okay then. The browser is making you a favor

fast pagoda
#

yeah chrome doesn't do it

olive sable
fast pagoda
#

depends on what's doing it, it looks like it's literally the browser config is too strict to allow it

#

try a different browser

#

turn off your ad blocker

olive sable
#

firefox also hates it

fast pagoda
#

that's the CORS i know and love in FF at least

#

basically

#

the scripts are being loaded from somewhere other than the actual URL of the page origin

#

and it hates that

olive sable
#

ah

#

so im guessing it just wont work

#

no fixing possible about it

rigid snow
fast pagoda
#

it tried GET /archives/0.9/pythons.js from 0.0.0.0:8000 and that failed in some way

rigid snow
#

aaaaahhhhh evilDeadge

fast pagoda
#

it looks like it's literally just serving no CORS header whatsoever

rigid snow
#

you use location.host in js or just omit the hostname entirely

fast pagoda
#

you can try making the script load from a relative path

#

so it's not trying to access both 0.0.0.0:8000 AND the script's path

opaque sigil
#

time to fork pygbag? neuroHypers

olive sable
#

i already forked and merged zengl

#

cant be botheree witht his shit at 4am man

fast pagoda
#

add Access-Control-Allow-Origin: * to literally every response LULE

opaque sigil
#

also speaking of browsers

olive sable
#

why does opera have so many browsers?

fast pagoda
#

another opera version neuroHypers

rigid snow
fast pagoda
#

but yea it might not even be reachable

olive sable
#

Opera Browser, Opera GX, and Opera Mini, opera Neon

rigid snow
#

it's not

#

opera 15 pro max

fast pagoda
#

serve the script from relative path to the host would be the move for me

#

because rn it's accessing some other place

rigid snow
#

but not actually relative don't do ./ kids

fast pagoda
#

plz no lol

#

i see . in front of anything and i start shitting and farting

olive sable
#

gotta lova chatgpt code

# Heuristic: check for tablet-like resolution
is_tablet = max(width, height) > 1280 and min(width, height) > 720
``` is your device more than 720p? tablet spotted
fast pagoda
#

but like if your page is localhost:8000
then have your module at src="/archives/0.9/browserfs.min.js" or something

hard shale
#

But you can't rely on such thing

fast pagoda
#

i just let react scale things and ignore it unless the boundaries are too thicc for the resolution i want to use

olive sable
#

i mean, ye it would work. but ill have mainly desktop users so not really a good idea

#

thos mf have 4K and stuff

rigid snow
fast pagoda
#

honestly mobile might be higher resolution on average than desktop rn but scaled in the dumbest ass way

#

most people on pc probably rolling that phatty 1080p

#

but it's not scaled to make it look like it's 480p like a phone is

olive sable
#

rn i have this mobile check working
if hasattr(platform, "window") and platform.window.mobile_check()
but it already breaks if you put the mobile browser in desktop mode

hard shale
olive sable
#

yes

olive sable
#

which is my problem

hard shale
#

How about you judge the platform from a keyboard-like input-type?

olive sable
#

what?

#

oh

#

like a keyboard is connecte

hard shale
#

Mobile rely on touch screen

#

So you could possibly. Detect if any input is of touch-screen type for example

rigid snow
#

actually just rely on screen width & height to determine type of device

#

you don't need anything else

#

if python code does account for scaling do it in js

#

depends on what you want to do with that, for example draw touch controls when there is a touch input detected not when the res is right

opaque wharf
#

Why do you need to detect the device?

rigid snow
#

but generally media queries is how responsive websites work

olive sable
#

desktop does

rigid snow
#

oh then don't do res, scratch that lmao

#

i mean you can but i'd use it as a last resort

opaque sigil
#

clearly you should default to shadowmapping and change it if it's too slow mhm (don't do that)

opaque wharf
#

Then try to do some computation using WebGL or WebGPU or whatever you need to do. If the result of the benchmark is not good, then do your logic

#

A mini-benchmark can be placed on after page load but before you perform other heavy computation

olive sable
#

you want to play my game? lets first mine a bitcoin and we'll see how many setting you shall get

opaque wharf
#

Yeah, not ideal but that's the state of the web

rigid snow
#

there has to be a better way tho

opaque wharf
#

Yes, but it is only heuristic at best. Screen device is one, user agent is another

rigid snow
#

surely just catching the error works?

#

or is there no error

opaque wharf
olive sable
#

not an error, just 2fps

#

not ideal

fast pagoda
#

if fps <2
device = iphone 3gs

olive sable
rigid snow
opaque wharf
olive sable
#

rn im trying some shit like

if hasattr(platform, "window") and hasattr(platform.window, "touch"):
    DYNAMIC_SHADOWS = 0
    HEIGHT, WIDTH = 720, 1280
else:
    DYNAMIC_SHADOWS = 2
    HEIGHT, WIDTH = 1080, 1920

but even desktop has touch so idk

#

maybe its a bool

fast pagoda
#

yea i mean agent can be spoofed but for the purposes of detecting general device it should be fine

rigid snow
olive sable
#

it stands forr shit

fast pagoda
#

i phone 3g stinky

opaque wharf
fast pagoda
#

yea but u detect that cuz they tell u they're a oneplus 5

rigid snow
#

they don't no

olive sable
#

ye its a bool

#

i think it works now

#
if hasattr(platform, "window") and platform.window.touch:
    DYNAMIC_SHADOWS = 0
    HEIGHT, WIDTH = 720, 1280
else:
    DYNAMIC_SHADOWS = 2
    HEIGHT, WIDTH = 1080, 1920

glorious code

rigid snow
#

what if i connect a smartboard to my 5090 pc

#

and try to play your game

olive sable
#

then you can go fuck yourself without shadowmapping

#

it will just have more ps and less graphics lol

#

if it even detects it as touch

rigid snow
#

it will

opaque wharf
#

Welcome to the web development ma dude

fast pagoda
#

the one(1) piece of window scaling i have in the current project
and then tailwind does tailwind stuff

opaque sigil
olive sable
fast pagoda
#

oh hey it's that

#

lol

olive sable
#

im building on git for tesing it on tablet rn

opaque sigil
#

guess they handle this automatically then, nice

olive sable
#

workflows are so slow EvilDIESOFCRINGE

opaque wharf
rigid snow
opaque sigil
#

yeah that's why i was curious

olive sable
fast pagoda
#

you could detect like device pixel ratio changes from them zooming the page ever

#

at least you can in react

#

i think you can also query the dpr in css

#

and just apply different rules based on what it is

olive sable
#

i forgot to gitpush aquacry

rigid snow
#

oh my god you ran it manually

olive sable
#

this deployement pipeline is so cumbersome

fast pagoda
#

that's why half my commits have "i hate git" in them

olive sable
#

are you not supposed to?

opaque wharf
olive sable
#

i didnt even now you could do it not msnually

rigid snow
#

you're "supposed" to have it trigger on push but you're actually not supposed to do anything and people used to deploy remote desktop tools onto windows workflow runners and have a free vm for a few hours

fast pagoda
#

if you feel liek it you can make a whole pipeline that has the build go as soon as you push

rigid snow
olive sable
#

tbh i dont even know what a workflow does, it jsut has the code stuff for my gh pages

fast pagoda
#

it can do about anything really

#

lint

#

run tests

#

run build

#

whatever

opaque wharf
#

For reference, running it automatically on event just takes a few line

on:
  push:
    branches: [ main ]

jobs:
  build:
.
.
.
fast pagoda
#

it can also send you a bill at the end of the month

#

if u push too much

rigid snow
#

not if the repo is public

olive sable
#

i dont only change the buyild. so might try to only trigger it when that folder changes maybe

#

eventually

#

not now

fast pagoda
#

public repo
that would require me to be able to handle people looking at anything i do

rigid snow
#

bold of you to assume anyone cares

fast pagoda
#

they dont

#

but i do

olive sable
#

mods im joking i know promo isnt allowed

#

its relevant to the topic

fast pagoda
olive sable
#

Goddamnit

fast pagoda
#

oh god look out tutle

#

he's gonna fall

real sierra
#

hi programmers

olive sable
#

hi

real sierra
#

reminder that you are more efficient when fed and watered

fast pagoda
olive sable
#

im also more efficient when it isnt 4.30am

real sierra
#

thats also true

#

consider sleeping

olive sable
#

i shall consider it

unkempt citrus
#

I am also more efficient when I have no other responsibilities

#

but I have responsibilities

rigid snow
#

is watering oneself referring to drinking water or taking a shower

real sierra
#

yes

unkempt citrus
#

You don't need to smell good to program

fast pagoda
#

i find i'm most efficient when i have other responsibilities and im ignoring them to do whatever it is

unkempt citrus
#

Others might need you to smell good though

olive sable
#

nahhh

real sierra
olive sable
#

i havent bathed in months

rigid snow
#

holy

olive sable
#

i showered 2 days ago tho

rigid snow
#

ho

fast pagoda
#

run markdownlint
2k problems
classic

amber fractal
#

I could see if I have something for improving sam's pipeline, considering I download firefox during my github actions

real sierra
#

im sitting here wondering if its even worth opening my code

#

im either going to spend another hour trying to debug it and probably fail

#

or im going to bed

fast pagoda
olive sable
#

bed seems nice

unkempt citrus
#

I have had the same bug for 6 months

olive sable
#

just one more testbuild

unkempt citrus
#

admittedly I've also been busy to do work to fix it

#

but I also have no clue how to fix it, seems like a package issue

fast pagoda
#

delete venv and hope for the best

#

surely that'll do it and surely you even have a venv

unkempt citrus
#

its rust

fast pagoda
#

everything is python

real sierra
#

pip install --upgrade pip

#

works everytime

unkempt citrus
#

It works on linux but not windows

#

so am very baffled

opaque sigil
unkempt citrus
#

I'll need a USB sniffer to actually debug properly

fast pagoda
amber fractal
real sierra
#

pip is a shitty tool i dont care

opaque sigil
#

i can't wait for the astral folks to replace pylance

fast pagoda
#

pip install cringe
uv pip install FingerGuns

amber fractal
#

uv is fast for what I've seen

fast pagoda
#

it's soooo mnuch faster than pip

#

but works with it and poetry and everything

opaque sigil
#

it's fast, correct and comes with qol features, what more can you ask for neuroHypers

amber fractal
#

It could be written in rust ReallyInnocent

fast pagoda
#

it is

opaque sigil
#

it is

fast pagoda
#

that's the whole point

amber fractal
#

Yeah I knew that already

fast pagoda
#

all i know is spinny square go brrr

olive sable
#

pip uninstall pip

fast pagoda
opaque sigil
fast pagoda
#

i havent had a reason to use it over ruff yet though i have installed it

opaque sigil
#

they're 2 completely different programs

fast pagoda
#

yeah but like

opaque sigil
#

ruff is a linter/formatter and ty a type checker

amber fractal
#

We love taking a million years

olive sable
opaque sigil
#

imagine if git had a feature specifically for bigger files

fast pagoda
#

see that's what i guess i dont care about nearly enough probably

opaque sigil
fast pagoda
#

i have type checking straight up off half the time neurOMEGALUL

olive sable
#

i kinda do have a couple hundred numpy files there

#

vertexdata

#

and such

fast pagoda
#

i turn it on if i want my problems thing to light up like a christmas tree and piss me off while i go fixing all the shitty decisions i made

#

and then turn it off again

#

and pretend ruff is just catching everything even tho it's definitely not

#

obviously

#

because it's not a type checker

amber fractal
fast pagoda
#

i think i just hate pylance

opaque sigil
#

the funny thing about pylance is that it's still by far the best language server

amber fractal
#

At least for local the nix env I built still has no issues

olive sable
#

thats good

fast pagoda
#

i feel like pylance just loves to absolutely explode

olive sable
#

its not supposed to have issues

#

-sam 2025

fast pagoda
#

gigabrain quote

opaque sigil
#

i usually have the strict type checking off cause why would i use python when i can just use literally anything else

#

i think they use mypy for that?

olive sable
#

normal vscode: problems 0
type checking strict: 746 problems

amber fractal
#

You have type checking off because you hate it being typed, I have it tuened off because I don't know how to express complex types, we are not the same

olive sable
#

i have it off cuz i dont want to be told what to do

gritty dust
#

Question SamVan what time is it for you?

olive sable
#

bout 5am

gritty dust
#

Bro... So you didn't sleep

olive sable
#

not yet

gritty dust
#

damn

olive sable
#

ill be sleeping from in 5 min till 8.30

gritty dust
#

ah

amber fractal
gritty dust
#

well lads what do you think my vision AI text reader that works 10% of the time will get grade wise

opaque sigil
#

this guy

gritty dust
#

wait sam don't you have school??

patent compass
olive sable
#

so ye chatgpt has absolutly no clue what its doing i guess

fast pagoda
gritty dust
#

I love yours too

olive sable
#

current gh pages built is broken now, dont care, need sleep

fast pagoda
amber fractal
#

NOOOOOOOOOOOO

fast pagoda
olive sable
gritty dust
gritty dust
amber fractal
gritty dust
#

It's 600 lines of madness

fast pagoda
gritty dust
amber fractal
gritty dust
#

and it does and average y value across a full word to determine the line at which it's on, etc

gritty dust
#

I'm so so so cooked

fast pagoda
#

i mean that's some cutting edge shit if i ever heard

gritty dust
#

I had a small dataset of 2k images tho

amber fractal
fast pagoda
#

i have to say if someone said "OCR" i would not hop to "yolov5" at any point

#

MAYBE to detect where text is

gritty dust
#

It's ocr but if a crackhead decided to make it

olive sable
#

how do i make the old one active?

opaque sigil
#

was yolo the one where it creates a crapton of boxes and then refines the ones that are relevant

fast pagoda
gritty dust
fast pagoda
#

ultralytics

opaque sigil
#

i mean yeah

olive sable
#

cv2 catdespair

#

fuck cv2

fast pagoda
#

F E A T U R E E X T R A C T I O N

gritty dust
olive sable
#

i dont use that spo nah

gritty dust
#

Sadness

#

Welp my teacher is going to bully me on how I made an ocr lol

#

he's going to say "you should've used an ocr library"

amber fractal
#

I'm bullying the teacher back

gritty dust
#

But trust bro yolo is based

fast pagoda
#

just hook it into mistral ocr real quick on the sneaky

fast pagoda
#

fuck you i feature extracted the features of the text and it said " F U C k Y 0 U"

gritty dust
#

Brings a tear to my eye

#

I wish I could post that on github

fast pagoda
#

make that your entire README

gritty dust
amber fractal
#

A very good reason for markdown readme files, images

fast pagoda
#

ye because i need to embed useless source diagrams and shitty header images

#

they make me feel safe

gritty dust
#

Does anyone know how tf to code or are we all just guessing until it works lol

fast pagoda
#

isn't that how you

#

do it

#

or whatveer

#

whatever

gritty dust
#

True I guess until I stop getting 2000 errors

fast pagoda
#

i have a concept of a plan

amber fractal
#

I guess until I understand

gritty dust
#

I told my teacher I'd just make something to read text or sm that was my entire plan

fast pagoda
#

just throw poop at the wall till it sticks

gritty dust
#

Guys am I cooked

fast pagoda
#

answer: daily double

opaque sigil
#

i wish my phone's battery lasted that long neuro7

gritty dust
olive sable
#

fuck it

#

goodnight

gritty dust
olive sable
#

current version is just borked

gritty dust
fast pagoda
#

sometimes it do be liek that

#

the next thing i'm meant to do rn is integrate fuking monaco into this thing

#

and i REALLY dont want to

opaque sigil
#

i should go sleep too probably

gritty dust
opaque sigil
#

05:13

fast pagoda
#

pm right

gritty dust
#

What time zone is that?

fast pagoda
#

right

opaque sigil
#

CEST, eu time

fast pagoda
#

c'est la vie

gritty dust
gritty dust
opaque sigil
#

i don't go to the lecture either way so i can just sleep until noon neuroHypers

fast pagoda
#

no my references are just outta control

olive sable
#

I cant be bothered to make a 2nd repo for demo builds or use itch

fast pagoda
#

make new branch

olive sable
#

Nah

knotty current
#

morbing

amber fractal
unkempt citrus
#

It was the timer I wsa using to block the loop causing a desync on windows (but not linux???) so it wouldn't read the USB polling at the right time