#💽Programming Chat v2
1 messages · Page 56 of 1
ignore the people
and I need to properly add group banning endpoints
become benevolent dictator for life
rahhh
write a haiku about guard guy
ok done and changed default password
ooh I see a root account logged in
would be a shame if somebody...rm -rf /'d
im jk
yeah I use root
do you guys have a bread user
The OS kernel I was hacking on for class had a bread function
what did it do
sounds dumb
Quite useful actually
LRU cache of popular disk blocks to avoid having to re-fetch them
Oh atp I have an idea for you
P2P file transfer with no port forwarding and ability to resume downloads
Hypertext Transfer Protocol Secure (HTTPS) is an extension of the Hypertext Transfer Protocol (HTTP). It uses encryption for secure communication over a computer network, and is widely used on the Internet. In HTTPS, the communication protocol is encrypted using Transport Layer Security (TLS) or, formerly, Secure Sockets Layer (SSL). The protoco...
ok but that’s not really what I described though
Universal Plug and Play (UPnP) is a set of networking protocols on the Internet Protocol (IP) that permits networked devices, such as personal computers, printers, Internet gateways, Wi-Fi access points and mobile devices, to seamlessly discover each other's presence on the network and establish functional network services. UPnP is intended prim...
Insecure and I bet most routers have it off lol
i have it on :<
why does it have an image of HTTP 😭
is the first image on the page (part of a section of HTTP)
thats just SHTTP
yea ok nerd
I have it on lmfao
games still require it
Welcome to growing up
The military is coming for you
i dont wannnnnnnaaaaaaaa
ill get a remote job programming and continue doing what im doing for 50 years
👍
then die by heart disease from soda overuse
shrunk it down from 271 bytes
BEG-HIBF
DEFINE LOAF i1 16 00
DEFINE DATATYPE i1 16 01
DEFINE MIN i1 16 02
DEFINE MAX i1 16 03
DEFINE WIDTH i1 16 04
DEFINE X86 i1 16 05
DEFINE INSTRUCTION i1 16 06
DEFINE ACCEPT i1 16 07
DEFINE OPCODE i1 16 08
DEFINE VALUE i1 16 09
DEFINE ENTRY i1 16 0a
DEFINE CRUMB i1 16 0b
DEFINE BODY i1 16 0c
DEFINE CALL i1 16 0d
DEFINE OVER i1 16 0e
DEFINE IN i1 16 0f
DEFINE WITH i1 16 10
DEFINE AS i1 16 11
LOAF "Example Program"
DATATYPE "Integer8"
MIN 0
MAX 255
WIDTH 8
DATATYPE "Address"
MIN 0
MAX 18446744073709551615
WIDTH 64
DATATYPE "ASCII Visible"
MIN 48
MAX 91
WIDTH 8
X86
INSTRUCTION "Interrupt"
ACCEPT "Index" DATATYPE "Integer8"
OPCODE "Integer8" VALUE 205
ENTRY "Main Crumb" "Entry Point"
CRUMB "System Interface"
BODY "Write To File Descriptor"
ACCEPT "File Descriptor" DATATYPE "Integer8"
ACCEPT "Buffer Address" DATATYPE "Address"
CRUMB "Main Crumb"
BODY "Entry Point"
OVER "ASCII Visible" IN "Index"
CALL "Write To File Descriptor"
WITH "file Descriptor" AS "Index"
just so i dont accidentally overwrite this again
why do you have to define all the keywords
Wdym
Also trying to sleep what
Human Interchangeable Binary Format (HIBF)
it doesn’t encode any specific language, it just gives humans (me) a way to write in a specific binary format (HIBF)
Correct, that is when I got the inspiration for this format
fair
In the future I might add an INCLUDE as crumbs will get hard to combine fast
then the binary format is passed to a compiler I have yet to write
so when you publish this are you just gonna say like
"all of these DEFINEs are an example and you don't have to use them but you do have to define stuff for what you're gonna use"
well rn it’s just a way to write this language, in the future I just wanna have it done be through GUI
I’ll probably just have like
To write BCM code textually, create a .HIBF file with a header of BEG-HIBF and the following line:
INCLUDE BCM.HIBF
then, refer to the included HIBF file for language syntax
file format can support strings, DEFINEd values, and both ULongs and Longs
they’re encoded as short as possible, so if something is negative but fits in a byte, it gets (tag: 7, value: -72), or (tag: 3, value: 25)
and strings only exist once and are backreferenced using a string buffer
1.2 kb -> 248 b. like a class file
Theoretically this could be extended to other languages
like C or Rust
But it’d need to be flagged to the compiler and you’d need to write using the DEFINEd values
DATATYPE "Integer32" BODY "MAIN"
RETURN VALUE 0
so n na ni …
neato
should describe
DEFINE <name> <replacement type> <radix> <value>
the defining stage ends whenever it encounters a keyword that is not define, e.g.
LOAF
if no definition exists it will error (with an exception to strings which are replaced by backreferences, or numbers which are tagged and shortened)
AUGH
A FRRIEND ASKED ME TO TRANSLATE JAPANESE FOR THEM
:crosS:
ロングキャスター!
ro n gu (long) k(-ya) su ta- (caster) !
餌付けはいかん!
e zu ke wa [ha] i ka n !
e zu ke = artifical feeding of animals (from humans)
wa [ha] = sentence topic
i ka n ! = do not!
ホーレ
ho- re (here)
わんちゃん
wa n ch(-a) n
thankfully it was relatively simple
and now youre playing scpsl
well
i couldnt sleep..
and the stupid bayachao song is stuck in my friend
the same frriend who asked me to translate spells bayachao as "baynachao"
need to install freebsd on thinkpad
STUCK IN YM HEAD
why bsd
why not
okay but why bsd
bsd is neat
is there any reason
i dont have anything against bsd but i dont have anything for it either
ive just known it as "unix like linux like"
well bsd, unlike linux, is a descendent of unix
i know that
apt? yeah ubuntu is good
👎
ubuntu is so bloated, could never run on this thinkpad
also gemini advanced free for students for a whole year

it's useful as an advanced search engine and for summarizing and redigesting information
you're an ai.
アーカイブが残らない作業配信中に起きた出来事を手描き切り抜き動画にしました
ーーーーーーーーーーーーーーーーーーーーーーーー
低頭身デフォルメマスコットコーギーの迷犬こと「こぎのきゐ」です!
普段は描いた絵をTwitterに投稿したり手描き動画...
mkmmmewfnfj
what was i doign again
おまえは「ばやちゃお」ごとき鳴る
え?そう?
Yay!!!
Booooo
It's ok u got 1 more year
Before everyone looks at u funny
Are you sick of clicking 'back to top' buttons on websites, and being lifted to the top without a real elevator experience? Elevator.js is here to help.
😁
This is peak
@spare quartz the irc rfc has so many typos ._.
What software are you using for your cdn thing
“ShareX/file upload server”
passkeys
oh ig it’s not storing them
just using them for login
keep in mind I'm running an old ver
@spare quartz when will partial content work with your server
cause I could just use that to serve files
uh good question
git pull & db migrate every morning at 2 am over Cron?
maybe
there would be issued if breaking changes exist but uh
it doesn't really matter this is a school project anyhow
a project I've decided to do even though I could've done something so much simpler
the choices were
- do only a theoretical bit on some topic - like gears or some shit, 20 pages of pdf at max
- some practical work, like connecting an Arduino and ultrasonic sensor, and having 10 pages of documentation pdf
- make a fully pledged system with frontend and backend while acquiring funding and then having to document it all and resulting in 40 pages pdf
guess which I chose
99.9% of people would chose 1 or 2 but oh well I do love torturing myself
oh and I forgot to mention it has to look good & work on every single platform imaginable, including smart boards and tvs
🔥
Already does
Haven’t thoroughly tested it though
as long as videos over like a second can play
why dont you upload that one bayachao video of like some kind of opera performance or whatever
and test
Well I need to add a configuration to let the server know to not prompt the user to download a file
Cause that’s what it does rn

Let me wake up …
wakeup()
okay time to write a repo of mime types
いあんあ
this should be sufficient
i added more
there
@timid quartz https://javart.zip/joe.mp4/
test
hmm
don't believe range works since a webm caused an issue... need to figure that out
works so far
the only suggestion I have is that
you send the full length
so the time isn't constantly updating
mmm yes it is because other video files dont' do that lmfao
please identify the issue and tell me what it is, then
idk what the issue is!!
I gave you the description of the side effect as best I could
webm works fine
then i cant fix it dummy
how am I, the end user, expected to know what the issue is
in your code
whatever you did for the webm worked so
because the server does not, in fact, give me any extra information
in http its all about the operation
you have a browser
GOOGLE WHAT
wdym chrome does not work
it does not
OK ATP
HOW am I supposed to figure out why your stupid web server isn't streaming stupid videos right
I get that my description of the bug isn't very full other than "it doesn't work"
BUT THAT
IS THE MOST I CAN GIVE
I can't see the http requests getting sent in real time because browsers don't SHOW that
fix
hold on im trying to fix it........
howsit going
idk what's wrong either
oh seems that safari can't play mp4
and maybe not webm
bad browser fr
somehow webm broke on safari
@spare quartz whatever you did to your server broke like all video playback lol
not my fault
yes it is
i tihink you caused it..
(i dont know whats wrong hnesly)
I don't either bruh
like in curl it works fine
@timid quartz okay so
i think its honestly just
a video codec issue
i downloaded a full video and not even the windows app wuold let me seek
in safari I think so, but chrome?
oh weird
lemme see if I can find an example mp4 hosted elsewhere
this works fine
I think it's a server issue
virus
OHH
its probably this
im sending a full 200
hold on gotta write my first ever question to a japanese person
日本人ですか?
はい
that is a wi
not a wu mb
@orchid wadi you can observe the insanity for yourself if you like
mayhaps even engage in it
oh is that their cdn
yes
cdns 🤢
i have the spongebob movie as an mp4
i would use that for testing but it'd take forever to copy tot he server
you're welcome in this channel any time you want
i need a side project to work on again
ive been too busy doing life bullshit
i want to have an excuse to open an ide
i would give my advice but my advice is destructive
fucking EMPLOYMENT smh
stupid job...
well I suppose start by asking yourself what kinds of things do you like to program
atp not everyone likes implementing protocols
unreal
idk the first thing anyone ever asks me is "do u like making video games??" when i describe my interests and im like "no."
"i like making utility software that makes peoples daily lives easier."
(in Kotlin so I can run it on the JVM on terry's Sun SPARCStation, because making a gcc cross compiler is actually painful)
like wtf kind of hobby description is that
kotlin irc goes hard
gah
I mean tbh
try the videos
this is a big market
i dont know why it just doesnt wanna embed!!!!!!
the video aint videoing
goes hard
i can watch the webm
what
in firefox if that matters
maybe
i can scrub around it and everything
the mp4 just like
Firefox mobile fetches the video 5s by 5s
originally shows length as 6 seconds and then increases
i tried it on chrome and it loaded the full length but it conversely dosed me with range requests
if I had to guess there's some max on response size
pain
what are either of those
googl
you might also uh
<body>
<video id="videoPlayer" width="50%" controls muted="muted" autoplay>
<source src="/video" type="video/mp4" />
</video>
</body>
have to serve something like this?
not possible
not sure why you'd do that in the first place
are we sure the webm itself isn't fucked
that slow?
okay yeah it would make sense
but I'm half expecting it to only play after whole vid is relieved
recieved
that's the behaviour I've seen that's most common
but its a lame market ... file formats are so much cooler ...
@spare quartz what does your content-length header look like
like how are you sending it
a number
how odd
looks correct
what happens if a client sends a request with Range: bytes=...
I think both of your servers just suck
fym both
Ada HTTP server (which also had same issue) and now Kotlin one
i fixed the ada one
oh? show
the kotlin one is just due to bad network speed and codec issues
spin it up
send the link?
yes
guess ada broke
factoiro
link?
something involving a white nine-tailed fox
how does 7777 relate
lame
no u
ok.
I should probably expect it to be super fast
but
(since it's on localhost)
but
it works in rust
what crates are you using
actix-web and tokio
premade web server:
mm not really
use actix_web::{web, App, HttpServer, Responder, HttpRequest, HttpResponse, Result};
use std::fs::File;
use std::io::{BufReader, SeekFrom, Read, Seek};
async fn stream_video(req: HttpRequest) -> Result<impl Responder> {
let file_path = "videos/sample.mp4";
let file = File::open(file_path)?;
let metadata = file.metadata()?;
let total_size = metadata.len();
let range_header = req.headers().get("Range").map(|h| h.to_str().ok()).flatten();
let (start, end) = if let Some(range) = range_header {
let parts: Vec<&str> = range.trim_start_matches("bytes=").split('-').collect();
let start = parts[0].parse::<u64>().unwrap_or(0);
let end = parts.get(1).and_then(|&s| s.parse::<u64>().ok()).unwrap_or(total_size - 1);
(start, end)
} else {
(0, total_size - 1)
};
let mut reader = BufReader::new(file);
reader.seek(SeekFrom::Start(start))?;
let mut buffer = Vec::new();
let length = (end - start + 1) as usize;
reader.take(length as u64).read_to_end(&mut buffer)?;
Ok(HttpResponse::PartialContent()
.content_type("video/mp4")
.append_header(("Content-Range", format!("bytes {}-{}/{}", start, end, total_size)))
.body(buffer))
}
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.route("/stream", web::get().to(stream_video))
})
.bind("127.0.0.1:8080")?
.run()
.await
}
YES REALLY
okay but thats small
core*
there are no tcp streams in core
exactly
just like there are no sockets in Ada if you don't with GNAT.Sockets; or with Ada.Sockets;
nice
@spare quartz when you get the initial request for a video, what Content-Range should you send back
cause I'm assuming there's no range header...
none
with only a chunk?
?
like
> GET /yourstupidvideo.mp4 HTTP/1.1 {headers}
< HTTP/1.1 200 OK {headers} {the entire damn video?}
??
yes thats how it works
if a range isN'T specified the entire object is sent
this does not mean that the server will always get a chance to send it all though
a client could stop receiving midway through
you dont need to send the status name by the way
lmao gg
im like
observing how the """premade""" http server does it
it actually does reply with a 206 the first time
peculiar
@spare quartz here u go
yucky
this is the first request
so no Range header here
yet the server responds with a 206
now what is mine doing differently
technically not compliant
technically it works
:X:
I literally don't see a difference in how mine is doing it
how I feel looking at these damn wireshark captures
huh weird why is the pipe breaking
@spare quartz dawg idk what you're doing but it's working as expected for me
???
yep
No I already said what was going on
I have a spongebob episode Im streaming over it
I fixed the range
we have poor network upload which causes delays when seeking
We’re fine
ok right but
what your server does
is causes my client to buffer the entire file
before playback
whereas this thing I've thrown together over the past few hours doesn't
Bad client
bad server
bad user
bad lang
bad
seeking works too
which is neat
though my cobbled-together server also appears to send things in larger chunks
like smaller videos load in larger pieces compared to the """premade""" one
@spare quartz webm still broke on chrome for me
hold on
and mp4 has auto playing inhibited somehow?
I’m eating my cake
what are you? Australian??
maybe
yeah your thing is doing something odd
meow.mp4 took a solid 10 seconds before it gave me the ability to play
now let's download for myself and see
instant playback
granted it is directly over localhost
yes that grants you an automatic 1000x speed boost
lemme see if I can plop this on my server
ugh gotta edit like 2 firewalls thanks hetzner
ewww hoster
kys
idk its so weird
on firefox webms have a changing time
on chrome webms have their times loaded with seeking
sorry mp4*
but webms seek well too?
you mean 206?
206 yes
hmm thats odd
our DNS server isnt responding on TCP
the TCP probably crashed... time to investigate
huh
no
i dont know what happened exactly
nothing should be able to kill the TCP thread under normal conditions
whatever happened...
its back
ok what the heck
I installed this stupid zipline thing or whatever that teo uses
onto my server
video instantly plays
what is a ziplnie
stupid "cdn" software
i wonder..
okay
im slightly convinced the discord embed bot has to either use http 2 or 3
unfortunately the two are orders of magnitude harder to implement than 1.1
so i have to decide... physics or http...
ok so im reading something
mp4 "moov" (metadata stuff) might be at the END of the file
its not
causing mp4 to not start playing immediately
mmm it could be
and the http traffic I'm observing is kinda consistent with that
mp4 is a container format, it can appear anywhere, but most of the files ive read have the vendor and stuff at the start (in a parent/child way)
though i suppose it could be possible for the video/audio data to come before some other identifier...
it doesnt make sense though
why does firefox not read the length immediately for the same file
but chrome does
its not like one loads faster than the other
ok.
im confused and i give up
your stupid
meow.mp4
also takes ages in zipline
fr.
?
it's the moov atom
I did fucking
ffmpeg -i meow.mp4 -movflags faststart meow-fixed.mp4
on your stupid video
and now boom
instant
well NEAR instant
the joy of having a "cdn" right now is that I can send you this
lmao it embeds but doesnt play
I wonder why
the discord embedder sucks
factual
i feel like it has something to do with the http version
but evertyhing else ive tried doesnt have an effect
let me just scp this video

the discord video player is so silly
like HOW just HOW does it buffer so slowly
it's actually unbearable. 😭
well like katsumi
it's not even playing the video here
or any that atp sends
blame apple and the UN
i didnt do anything!
dsfpsdjkfuiewjrw34f
one day i will prevent the router output from corrupting
oh is it your router that's messing the webm up?
no
router does the following
- reads external http request
- figures out the port its going to
- opens a socket to that port
- resends the external http request thru that opened socket
- plugs both sockets together
the router doesnt send anything back itself, and since it plugs both sockets together, data is unimpeded
this output corruption just happens as a side effect of clients attempting to send binary data as an http message
terminals do not like control characters
404
HTTP/2 
?
nothing
OK, nerd..
now all that's left....
is to migrate away from Zipline (TypeScript 🤢) to something else that's written in Rust....
kotlin*
Kotlin is an acceptable compromise if that's not possible
but only if
Though I must admit that Zipline's web interface is quite nice
i wonder what sharex does to upload files
wonder if its compatible with the maven line of servers
possible but zipline et al. do advertise themselves as "sharex" servers
idk if that means there's a specific sharex protocol, or if they're just similar to sharex
id assume all you need is to be able to PUT...
gay
eww
fix webm displaying first lol
?
i dont know how to tell you this
webms have been working for the last ... 5 hours
and ive said that at least 3 times now
not on chromium
it works on chromium too
mm nope
.......it works on edge what
and i cant help you
you're written in ts
no
you're built like the v8 engine
autogenerated
why
I agree it's written in TS
idk default setting
bad server
does discord not embed webms or something
try .exe!
virus.exe
die
WHAT
cant you get attached to normal anime girls
what does this mea n..
well when I tried to explain what it means I got muted so take with that what you wish
i suck at remembering howt o write jpanese so hard
but HIM
i can nver forget him
HAHAHAH I FOUND IT IM CRYING
Quoting Megs!!🍉🔻 II x BFDI Meetup @ Houston 5pm (@Megs_needsrest)
︀
Y’all where’s the video of the pope slapping president trumps hand please it’s so funny
GOOD MORNING .
KEEP WORKING.
this is all you need
idiot what do you think a message is
thats a BNF
you use it as the syntax for everything
you built like a BNF
you'll get there when you get there
focus on parsing the message first
thats all that matters
throw an error if you get something you're not* expecting
Gonna focus on parsing you into a Rust user
you're SO dumb!!!!!
average rust fan..*
so rude..
ITS RAINING A
You have plenty
no
LOL
Wouldn't u like to know weather boy
i think he's developing late stage autism..
Who
who
who
I bet he would have used Rust
NO
My Pope 🙏
No he rusted internally that's his cause of death
Rust killed him
yeah see
rust is poisonous to those closest to god
it is a language for satan...
ugh so sleepy
i need tof uigure out how to turn off my comptuer at the right time
BUT I ALREADY DO?
Good job :3
Man it’s gonna be so weird when you go off to the military
who is gonna talk in this chat
me!!!!!
nope
yes!!!
you’re gonna be busy doing military all day and not have time for us
okay but that doesnt mean i wont be able to access the internet...
besides this is all I need fr
You’re gonna show up on TikTok one day with “nahhh wtf my sergeant watching” with Bayachao on the screen
Lmfao
you’ll have access to internet but you won’t use it cause you’ll be so busy
by watching bayachao!!
she’s so cute!!! 🥺
busy serving corporate interests and not the people of the nation
ada,,,
And then you’ll be sent off to fight the land invasion of China
all the old schizo veterans I know are saying it’s gonna happen so it must be real
as long as they don’t nuke japan again
otherwise we’ll get like
mega schizophrenic bayachao..
that’s bad..
no,,,
now that you’re 17
you didn’t pre-enlist?
no…
I’m some lane???
well you gotta go outside first
that’s scary..
and….stop drinking soda
then you’ll never lose weight
Honestly, if you actually went outside and exercised and cut carbs (especially from soda) you would probably lose weight even if you continued to eat meat
well I kinda just eat whatever’s given to me
so like. I’ve kinda gone … months… without vegetables…
dude i really hope to god a mod doesn’t see that and flag it as nsfw now 😭
Rin-sans devilun!!! not!! whatever google translate says!
I know a guy who is doing the carnivore diet where you basically eat no carbs and he’s lost weight
Granted he also exercises
So you know you need to do that too
mmmmg
you see I would exercise but like
I have a really really bad temperature regulation problem
and although that doesn’t stop me from doing it it makes it so freaking annoying I have to drink multiple gallons or else I sweat it all out from the most minor thing
mf tryna be the eye of sauron
IDK WHAT THAT IS
???
is that the thing furmark or whatever used to benchmark gpus??
yo that’s me fr
you wish
just give it blindness, a lazy eye and astigmatism
connie my beloved
ughh why can’t I sleep..
mf gonna fail the medical exam at basic
no…!!!
they’ll fix my eyes… I think
I kinda want new frames anyways
I blame bayachao..
Have fun with the peanut butter shot too
I can deal with that
I’ve had so many nurses and doctors take blood and inject me with crap I don’t mind
just takes me a second to brace
some of the tricks phlebotomists* do are kinda crazy
A what
Then sleep
A programmer had a problem. He thought — "I know, I'll use async!"
has problems Now . two he
341
lmaoo
bro @pallid loom how tf do you rename files in zipline
whatever the latest tag for docker is
4.0.2
also where is @spare quartz
should be up by now
Yeah it should be where you click into an image and then edit file details
ok but
that renames it when you download it
you're talking this
I want it renamed on the actual panel
terrible
I think there’s a setting to preserve the original name when you upload
there is
I think atp died
just a nap
long ass nap
Hi ,,
😭