#ot1-perplexing-regexing
1 messages ยท Page 116 of 1
what happened here?
I went to check mine but then realised it's just midnight so I have a total screen time of only 2 minutes today!
๐ช
๐ญ๐
Aight imma go sleep
does anyone know anything about object oriented databases?
I'm not trying to do anything with them
I just think their cool
what about them?
they're interesting
I wanna know if there is some theory that explains the wide range of db's we have today
they exist?
This is offensive /j
KV, graph, object oriented, ob-relational
sql
I wanna know if there is something that makes each different rather than just being vibes
You model data differently
I don't like oop but I like databases
random OOC diagram from mongo docs
I'm aware mongo dB realm is one of the very few new OODBMS
There is way more written on sane data modelling in RDBMS than in OODBMS
Just in general IG
Fewer publications, books, blog Posts, Tutorials, articles, ..
that is treu, which is precisely why I find them interesting
document db's and OO db's are different things

at least afaik
Document databases are similar but not the same thing as object-oriented databases.
oh mb 
as I understand it so far, the primary distinguishing feature of oopdbms is that they store objects as one big chunk rather than over multiple tables, basically highly denormalized
another thing I read in multiple places is that they lack query flexibility due to how they store things as big chunks kind of like a blob store
what is vivek doin
he wants your kidneys
Twitter โ (@Ayase_0404) https://twitter.com/Ayase_0404
Instagram โ (@ayase_0404) http://instagram.com/ayase_0404
INST โ https://piapro.jp/Ayase_0404
NICONICO โ https://www.nicovideo.jp/mylist/64177300
Ayase 1st. EPใๅนฝ้ๆฑไบฌใ2019.11.17 RELEASE๏ผ
Official XFD โ (https://youtu.be/2Idh4ILwE8o)
้
ไฟก ใฏใใกใโ
https://linkco.re/aexrrVnX
CDใ่ณผๅ
ฅใฏใใกใโ
https://ay...
song dump
fire song
not my kidneys
why
My ears
what's an algorithm I can use to safely verify that I (the server) wrote this text?
something like a signature but idk how to go about it
https://en.wikipedia.org/wiki/Digital_signature you're right on the money
A digital signature is a mathematical scheme for verifying the authenticity of digital messages or documents. A valid digital signature on a message gives a recipient confidence that the message came from a sender known to the recipient.
Digital signatures are a standard element of most cryptographic protocol suites, and are commonly used for so...
what's the best Python library for this?
or any specific algorithm
seems like cryptography is your best bet, HS256 is what jwt uses, but can't find an impl that's not jwt
but maybe you do in fact want jwt
sorta? i'm trying to implement an admin system with one-time keys
oh i just realized i don't need signatures
oh i do need signatures
Is pistachio ice cream good?
yes
now i want some
many people dont know this but as an adult you can just buy ice cream whenever you want
๐คฏ
I have never had pistachio ice cream
ok hear me out
dang that looks tuff
why did society decide to expand burgers in the vertical direction
instead of the horizontal
bro it was korean fried chicken
so u get a taste of everything
horizontal would make it a sub
hmm i was thinking more of a pizza sandwich
idk wth that is
thats because i made it up rn
i forget u americans call non beef burgers sandwiches
this is a chicken sandwich to u yea?
im not american ๐
my mistake your passion for cake confused me
diabeto roll back to kitchen
me
Just had idea- flavor the ice cream with only salt
Or pepper
yuck
Non-dessert ice cream
savory ice cream
small question; I've got a static site generator that I've built, and a server that I intend to deploy the site it generates on. To do this, I've got two options:
- I can have an instance of the SSG running on the server, use a github action that SSHes into the server when new content is pushed to my blog, and runs
git cloneto clone the new stuff, and then rerun the SSG to build everything (with caching and whatnot, so only the new stuff is built). - Or, I can have my SSG just run on github actions when new content is pushed, and then use rsync or something to push the generated website files to the server.
I'm not sure which one to go for/what would be more idiomatic.
I'll be pushing to github whenever I write new content.
you can turn vertical burgers into horizontal burgers by simply rotating it
holy shit
no u fucking cannot because gravity
im about to smash this see u boys on the other side
do not the candy
its actually just not as good as regular kitkat
what are the files exactly? Just static content to serve? usually, there is a "build step" that creates a "build" (artifacts or docker image) and then that build gets transferred elsewhere
unless you are building something that needs to be built on the same platform, it's always better to use a single machine for builds and then transfer the build files elsewhere
this has a number of benefits
like, if you have a compute heavy build, you only need to do it once
it also simplifies the deployment logic because you just have to pull the build and run it
AFAIK CI is responsible for building and testing while CD is for deployment
like, the companies I've seen mostly use Jenkins CI to build and test which produces a docker image and then argo CD and k8s handle the deploy, the builds r completely centralised
this is my opinion as a guy with about couple years of exp, more informed opinions welcome 
do you build your docs for your code
not really, most of the time we use confluence or swagger ui
In my opinion, it doesn't sound like you're ready for a relationship. You're being crazy and y'all haven't even gone on a date.
wah-

sez u
yeah, just static content.
that shouldn't really be a problem, my ssg does incremental builds; stuff that's already been built is ignored.
so build times are usually just like, milliseconds
what do you mean build? Like, write the documentation? Generate it?
Swagger is a tool for generating API documentation.
it's ok man move on

i vote for #2
why?
or well, it's kind of moot now since I've decided against both
use a github action that SSHes into the server when new content is pushed to my blog
scary
i wont unless i ask her out
SSH is safe
for the most part
sure, but i dont want an GHA SSH'ing into my server
you can lock keys down with command limitations in authorized_keys, you can restrict user privileges so CI can literally just copy files, you can run everything on a Tailscale network that you join in the deploy stage so you don't even have to have SSH exposed outside of a VPN (see https://github.com/jb3/blog)
but the big thing is: rsync is just SSH lol
so whichever way it works it's going to be some sort of SSH into a server, rrsync is a pretty nice tool for locking down what an SSH connection can do https://download.samba.org/pub/rsync/rrsync.1
# ~/.ssh/authorized_keys
command="rrsync /usr/share/nginx/site" ssh-ed25519 .....
this would allow that SSH key to only change files in /usr/share/nginx/site on connect
cool nicer radio options on forms have been deployed
๐ based
hell yeah
How cold?

sameeeeeee
but only if low humid
It's hot asf and humid here
~~skill issue ~~
hmm, then ig u r free to pick either 
frieren anylsis bc biredome
arguably, the demons can represent nature itself. you can see the hero party as analogous to the advancement in technology, human knowledge and the collective wisdom of society, like in frieren being a thousand years old, representative of the culmination of knowledge, and the defeat of the demon lord being the ultimate triumph of society against nature.
frieren w
???
I think you should tell her that you like her. If she feels the same way, that's awesome. If she doesn't, that's unfortunate. But then leave her alone. That's all.
If you disagree with this, or don't want to do this, then that's your decision. I'm not gonna try to convince you anymore.
You should eat dictionary first
I require under 30 to survive
bold of yall to not specify units
yall can have either 29 or 31 Kelvin, per requests
let me grab a blanket
not sure it'll help much
can I become a superconductor?
you are already super
you're saying I need to become a conductor
i have an abstraction for connections, connection handlers, and connection listeners
i just now realized i have to redesign this thing to support UDP
...since it doesn't have a concept of connections.
there is an option tho: after 1 call to ReadLine on a UDP "Connection", I'll just close the "connection"
yeah that seems like a valid choice
premature abstraction claims another life
this is why i dont abstract until i rewrite the same logic the 3rd time

and now things are getting shoehorned into the wrong abstraction
the correct abstraction is probably a Session or something
and the communication can be beneath that abstraction
or I guess any way to have some external API that doesn't vary between TCP/UDP
the real way is to not care about udp and realize the mild speed gains are not worth
It's really easy to forget that it's tornado siren test day and get very confused
The US where they build their straw houses right where tornados form
Not the smartest idea
Found a new wordle variant:
Flagle #848 - 5/6 ๐
๐ฉ๐จโฌโฌโฌ
๐ฉ๐ฉโฌโฌโฌ
๐ฉ๐ฉ๐จโฌโฌ
๐ฉ๐ฉโฌโฌโฌ
๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ
Guess the hidden country flag in a daily game of Flagle.
lol this is almost trivial without hard mode
Semantle is my favorite
how darest all of ye disrespect worldle
worldle ๐ ๐
why are you telling me this?||I have the opposite problem ||
Sure bud
You wish
I have the power of basic offense spell
Zoltraak
any human is a mimic if their jaw opens up enough
dislocated jawophobic, are we?
Dislocated jawophobicophobic, are we?
Structuring a couple of github hosted git repos
Repo A: Main project
Repo B: fork of the project. No changes compared to repo A. Only adds some extra files/changes config
Any idea i could version control those extra files/config?
what is the point of having 2 repos
repo A is public
repo B has private, potentially sensitive config files added
config should not be part of code
use env vars
it isnt particularly sensitive, more like data that should be version control + is in a private org repo
config is alr a sep env file
don't check in the .env with version control
need to version control added template files and certain, non .env config
you shouldn't be having 2 almost identical repos just for config
1 repo is a generic project
second one is using that repo with added data/files
except that id like the added data + template files to be version controlled
Juggling keeping both repos in check with each other will be a nightmare. You'd be better off having the code repo public and building a private repo which installs the code repo instead of being a fork or clone.
For the configs, if it is sensitive data that would could as secrets then keep it in a secrets vault. Don't commit it.
You could consider having the private repo contain a sub module of the public repo. Slightly less nightmare keeping them sync'ed with a few tradeoffs of sub module complexity.
Opposite like?
U want to get rid of girl
has anyone played once human?
do you need the config and whatever to be on github?
or is it fine to just have it locally version controlled
if it's fine then you can use one repo with a separate branch for that stuff, that you then rebase on top of the main branch
I gotta play sometimes human, 5 days a week from 9 to 5:30
one day i'll be a real human
what the skibidi
@timid latch Going here not to interrupt that other conversation.
I've taken up hobby circuitry and was interested in making a bunch of flip flops, to make a sort of ram. Had me wondering how they handle read and write, since how does memory know which bits to focus on?
Bunch of transistors?
The basic way is just a big chain of and gates to select the right memory address which is then usually hooked into the enable pins of whatever storage it is
Wow.
That must be a lot of gates.
Cartoonish.
We scold developers for using big if condition blocks for dialogue options, but that's essentially what this is lmao
Idk how well it shows up on this picture, but the ram tower here is just that. Left and right and write and read, and the center is the address selection. (Brainfuck interpreter I made in a game) https://cdn.discordapp.com/attachments/856679049576579092/1254597858066174046/image.png?ex=66907c4e&is=668f2ace&hm=811600a5f8357dd0bf0515e3feb3c9e87b80ce942f19f45da4692e0b41c971f9&
Logic world
Ah
Impressive.
Let's see... I suppose for every gate, you could cut the possible addresses in half, right?
Bit by bit?
"If the first bit is 1, then all addresses starting 0 are not important"
I think that's sane enough.
I'd probably need a bigger breadboard though.
Yhe you can often do that
There certainly are, this is the simple naive way, I am sure the hardware gods have some crazy things up their sleeves
For example, when reading from a CD the process is completely different
Because there you physical have to move the disk/read-head
Yes, physical memory.
Oh!
What if, circuit wise, you had a carousel pointer or something?
And you you just waited for it to be the address you asked for?
And then you took that data?
What if you simulated what the cd does, but solid state?
You would basically have a very very large shift register
Actually I'm not sure if there's any benefits to it, now that I think about it.
I have many ideas for more "aimless" paradigms.
Ones where there is no clear point of reference.
They are fun to reason about
Implementing the stack in hardware was the hardest part of this
It's basically a shift register with a bunch of transistors to swap the direction
Like, what if, instead of addressing, you had a carousel, and you selected your address by waiting?
Prediction?
You could write at an unknown address, and then use that as a flagpole for sync.
Or something like that.
Uhuh. I totally understand.
I was trying not to toast a transistor while attempting to make it do a signal inversion.
Well luckily this is all stimulated so no hardware damage
If there's no burnt toast smell, it's no simulator of mine
I do want to do more irl circuits, but I don't really have the space
Oh, I have teeny tiny breadboards. I just use small wires and pliers.
I pull apart small electronics with the hopes of being able to use LCD screens, processors and memory but the protocols are complicated.
Did you know that some 7 segment displays can't display more than one digit at a time, and it just flashes it fast enough for you to not notice?
Like the multi digit displays?
I didn't know that, but I guess it makes sense
I guess the converters from binary to segments is an expensive component or something
So how does the input work on those? Does it take the digits in pulses?
I think it's because the total pins required for every segment would be staggering.
Fair
Oh, I think it's in individual bits.
At least in the ones I looked up.
A pin corresponds with a segment.
So the external circuit does the conversion, makes sense
In multidigit displays, apparently it has select pins for the focus digit, then it has the usual pins for digit segments.
Yeah, I was annoyed when I realized I couldn't use these unless I had a controller of some kind.
Well you could likely get a chip/rom to convert from binary to segments, and also another to convert to decimal encoded binary
Yeah, I don't really have those. Technically I could unsolder some but I can't really understand the pins.
I have mystery circuit boards bought for a steal.
The logical step is to build upwards from twigs and stones.
It's a tech tree, I'll level up.
Bwahh

Morning viv!
"morning"!
guys
Lol it's midnight for me
i need a help
Barely passed
more like a reply
But the midnight tummy rumbles :<
We can...
Me too
No the inappropriate and cringe one
๐ฟ
not that
๐ one
oh shit
im sry
For context for mods
I think it's technically a activity, not a status
pls dont
Lol I was too lazy thanks nicky
ok now i've removed it, now i can feel free
Lol
I saw a castle today
Maybe
average frieren
You still asked people here to look at your status that was highly inappropriate. Could be considered molestation as well, since you tricked them into viewing sexual texts
MOLESTATION????
I'm underage
i'll delete them all
1000 years young
calling cops 
tryna strike a chord...
im sry
-# /hj
ghost ops convicted of molestation and sexual assault in the Python Discord server...
-# /j obviously
If someone tells you they're beating meat while you write with them, it is. Being femme online and having femme friends on instagram, this is just one step behind actually sending pics of that :x (although in that case it's usually guys literally saying they're beating meat to the photos of those femmes, which is more disgusting than just random talk like here)
Oh bruh
Wtf am I reading
Castle!
that sky looks simulated
idk how to describe it
ai generated
I've also gotten threats online ๐คท but that was because I'm openly queer
No ...
Lol
btw, whats the filter for that sky bro?
oh i see you haven't escaped the simulation yet
Skyfilter grimoire
I actually touched grass, okay
grass.. more like ARTIFICIAL GRASS!
(you touched more grass than I ever will in my lifetime)
You think I went thru the effort of faking a picture of a castle xD
I would have just found one online if I wanted to do that
Where is tthe castle
All i see is like a parliamentary building
There are chicks on my grass
That's behind me
Preordering the Nando's by a couple of years
buy or nah?
Your salary is $1,000, you can afford this house.#airbnb#tinyhouse#prefabhouse#house #camping #mobile #rv #outdoors #vacation #modular #travel Prefabricated modular homes manufacturer E-mail: koyan0801@gmail.com WeChat: 18842361998 WhatsApp๏ผ+86 18842361998
4916
Oslo is so pretty, if you go up there at night you can see how beautiful Norway is at night fr
Customer has a timed order for 11:30AM.
Comes in before the order even drops at like 11:10
Complains it's taking so long when we make it early
Leaves the store at 11:22 unsatisfied that her 11:30 order took that long
๐ซ
what kinda food was it
to compell someone to be 20min early
@frozen radish pizza.
fuck why did i do that now i need pizza
honestly shit like this makes me want to stick in tech despite how much of a shit show the job market is
Meanwhile I'm trying SO hard to escape TO tech
tech is better where I live cuz it's one of the few jobs that actually pay 
what do u work in
based customer
the most annoying thing ever when listening to music on youtube
meh
not really snnoying
i use mobile data and this saves me and those who binges inut
in yt
wow
Easy peelers goated
tru
just get spotify
they're good with other stuff
and generally something to eat if super hungry
Same goes for rice but at least it doesnt taste ass
..what kind of boiled egg made u say this
every single one of them
yogurt makes for a good potassium sauce ๐
joe Gurt + tahini is a good sauce imo, but it's served cold
you can add garlic to it if you like garlic
quick question, did python ever have seperate types for int8, u_int8 and stuff like that or has it always been just the int?
i'm not talking about numpy btw
afaik python 3 has always had just int
python 2 had plain ints which were C longs and long ints which were arbitrarily large
Python 4 when
am i misreading this or is this book actually suggesting that there is int8, int16, int32, int64, uint8, uint16, etc
Sounds like a rust/python crossover book ๐
it does say, The following table describes the range of values for different types of int data types (classes) in Python
there are a number of things suspicious with it, it even suggests that charector data is stored in a char type in python
it also has a table for complex types, being complex64, complex128 and complex_
the book isnt refering to numpy
its refering to python itself
it doesnt even mention numpy
guess thats another one to add to my list of Wrong Stuff in this book
If the book is talking about implementation details like this and doesn't explain that the size of int is deduced automatically, then something is a little off there.
the book says that there is a seperate class for stuff like int16
which i dont think there is
This answer
this is my list of stuff which i found to be wrong in the book
so there is a seperate python class for stuff like uint32?
"Artificial Intelligence" by Prof. Ashok Arora
it has a entire unit for teaching python
and it was also my school book
lol
doesnt seem to the case, i checked the builtin types and functions section but couldnt find any mention of them
lol, guess the books wrong on yet another thing as well
since it says that the table is for classes in python
maybe the author assumed people would be only be using numpy
there isnt even a mention of numpy in the enitre book
neither has the author even taught what importing is
this is a book for beginners btw, so i dont think this is implied
In the previous parts of this series we studied the core of the CPython interpreter and saw how the most fundamental aspects of Python are...
I'm reading this but idk if it's a reputable source
Integer in python can be of any length up to the amount of memory you have
Cross referenced sources for that
thats an internal representation detail tho
the book specifically says that there are specific classes in python for int8, int16, int32, int64, uint8, uint16, etc
I didn't see those in builtins.py .
i checked the docs as well, they arent there
what i'm trying to say is that the book is probably wrong
it has been wrong about stuff like this before as well
You can find int32/64 and uint32/64 typedefs in longintrepr.h
Which is kind of cool imo
arent they native c typedefs?
yea no, i kinda misread the pic ๐
Bunch of implementation details going on like changing size of digit based on platform
Now I'm confused why a digit would be 32 bits if it only represents base 10 ๐
those feel like valid np types
someone copy pasted from the wrong docs ๐ญ
๐
even worse considering its a school book
the one students are required to buy ๐ญ
I guess it's storing huge numbers as "digits"
yeah it stores ints as an array of digits
just not base 10 digits
base 2^30 or whatever digits
We r learning 
mm
doesn't AI use numpy? Isn't the book about AI?
it doesnt mention numpy anywhere on that page
Will we still need numpy/vectorization when we get JIT'd
Probably
Making a JIT identify vectorization opportunities in Python is still going to be difficult
I doubt that the JIT will be doing enough analysis to vectorize code
They're trying to keep it fast
it literally doesnt mention numpy anywhere in the book
and since its for beginners, i dont think it's implied without explicitely being told
w3books
I see what you did there
how do you split a string into words and then store them into a vector in c++?
i'm currently using stringstream but i'm not sure if it is optimal
how do you breathe?
by using my cybernatic suit?
what kind of question is that? what do you use, 2 fleshy balloons named "lungs"?
weirdo /j
You be fair splitting a string to words is more of a Google question
The answer depends if you're using String objects or char* []
i'm using std::string
i dont wanna deal with c-strings ๐
C strings are pretty easy, anyway, there's your Google query then.
?
huh
what do you know
that actually worked
Crazy
impossible
i dont recall C++ having a split function, you would probably have to either figure it out using STL/algorithms library or ranges
or just impl it on your own
yeh, i'm currently just constructing a stringstream from the string and calling the getline func on it to iterate over words, which i push_back in to a vector
hmmmm probably sub optimal but maybe the compiler takes care of it
thats what i was wondering
the C++ compiler is smart enough to optimize the hell out of this probably
not that this matters but you can check compiler explorer for that
i dont mean to sound dumb but.... whats a compiler explorer ๐
very based website
ty
no, streams will optimize pretty poorly
it would be nice to get some basic string operations into the stdlib
I know absl has some good ones, but pulling in absl is a bit much in many cases
this is just slightly terrible
std::vector<std::string_view> words(std::string_view str) {
std::vector<std::string_view> result;
auto start = str.begin();
while (start != str.end()) {
start =
std::find_if(start, str.end(), [](char c) { return !std::isspace(c); });
auto end =
std::find_if(start, str.end(), [](char c) { return std::isspace(c); });
if (start != end) {
result.push_back(std::string_view(start, end));
}
start = end;
}
return result;
}
i see you already noticed it, @fading fable, but congratulations on making the besiege dev's attention https://steamcommunity.com/games/346010/announcements/detail/4237406000210417108
Hey Everyone! We're thrilled to present the very first edition of our Community Highlights. This series is dedicated to celebrating the incredible talent, creativity, and passion within our amazing community. From breathtaking builds to stunning artwork and ingenious mods, we're here to showcase the best of what our players have to offer every m...
Huh what happened, that game looks interesting
Oh nice
Terrible
its p fun
i have like 2k hours in it
Is that the game where you build contraptions to yeet and destroy various things?
I've borrowed it from someone's libary, I can't even make a proper plane
It barely flies
it takes some effort
ye
ive been having fun trying to push the game to its limits
or doing weird shit in it
Cool stuff
like this i did yesterday
It was a hassle to get working and its super laggy for any reasonable resolution/color count but it works
what the...
its an animation player using level editor logic
Oooh
It has enough events to crash/freeze the game if you look at them ingame lol
lmao
Are there any alternatives which i could use as a mentor? Anyone familiar with these? I was hoping to use it to schedule studies and summarize textbooks so i can prep a little before the day's classes
I think gemini also allows you to upload an image
also it does say that your 4o limit resets after that time, so just wait a bit then you can continue
obviously if you don't want to wait, you need to pay a sub
Was wondering if there was an alternate, though this is fine just wanted to get some stuff done before tomorrow
Yes Gemini allow PDF, image, video and audio file
Gemini, in theory have a larger context window, so you can upload larger file
there are so many c/c++ students with superiority complexes on programming social media
someone said python was unreadable gahahaha
there are just people with superiority complexes
there are just people
fairly certain rust has the same issue ๐
some
well im so cooked because im fairly sure im gonna get ratioed for defending python in the comments
Arguing with nerds was your first mistake
im also a nerd
Your second mistake
just a diff breed
Well, I agree that python is not unreadable. But I write unreadable python code ๐คท
I guess I'm the problem
/j
Joke aside, I do think languages like rust and golang promote cleaner code, compared to python
But a large portion is a skill issue on my part
Huh that's weird
we all are
Personally I found golang easier to learn than rust
defo a nerd here too
say sike rn
https://youtu.be/Dwzk-XZxZ4k?list=RD1Xfdjqa5dfY man i love kali uchis
Escucha el nuevo disco โSin Miedo (del amor y otros demonios) โ' de Kali Uchis aquรญ: https://smarturl.it/KaliUchisSinMiedo
Follow/Seguir Kali Uchis:
Website: http://kaliuchis.com/
Instagram: https://www.instagram.com/kaliuchis/
Twitter: https://www.twitter.com/KALIUCHIS
Facebook: https://www.facebook.com/KaliUchis
SoundCloud: https://soundclo...
wYES
oh
that's you
lmao
sorry man
i probably had something else to do
i believe there is no such thing as mastery in coding
you are constantly developing/refining
but can u touch binary tho
can you touch 1s and os
huh
lost the game!!!
poor @tight granite , lost all his money gambling
how are they going to afford microsoft products now ๐ญ
the doctors have been giving me pain meds and it feels so good
i just did the most niche optimization ever
oh man
shrank a 48-byte struct-union into a 16-byte one
cpython dev strikes again
do i really need this much optimization when parsing midi files >->
yez
now that i think about it this is an extreme level of optimization
too extreme mayhaps
dont matter if the code is readable :3
typedef union {
struct {
uint8_t *msg;
uint32_t delta:28;
uint32_t :4;
uint8_t :8;
uint8_t type:4;
uint8_t chno:4;
uint8_t b0:8;
uint8_t b1:7;
bool is_meta:1;
};
struct {
union {
struct {
uint8_t *data;
uint64_t :28;
uint64_t len:28;
uint64_t mtype:7;
uint64_t :1;
};
struct {
uint8_t channel;
};
struct {
uint32_t tempo;
};
struct {
uint8_t hour;
uint8_t min;
uint8_t sec;
uint8_t frame;
uint8_t frac;
};
struct {
uint8_t num;
uint8_t den_pow2;
uint8_t click_clock;
uint8_t bb;
};
struct {
int8_t accidental;
bool is_minor;
};
};
};
} MEvent;
wall!!
anyway.
YEOUCHHH!
what the hell man
is_minor
why need that info anyway
ive managed to go my whole life without ever using a c union
felt like sharing
also nested unions is wild
ive never seen that before
i'm just gonna put a comment to distinguish ig-
do c unions support rtti in c++?
done
turned c typedef union { struct { ... }; struct { union { ... }; }; } MEvent; into ```c
typedef union {
/* no-meta (sys-exclusive and MIDI) event struct */
struct { ... };
/* meta event structs */
...
} MEvent;
ah shouldnt you have an rtti attribute?
run time type information
/* no-meta (sys-exclusive and MIDI) event struct */
struct {
...
uint8_t type:4; // <--- here
uint8_t chno:4; // <--- here as well
...
bool is_meta:1; // <--- here too
};
/* meta event structs */
struct {
...
uint64_t mtype:7; // <--- here (for meta structs)
uint64_t :1;
};
...
just strange to put it in the union types
there's a problem if one of the structs' data in a certain type can overwrite these type info fields so i built it in a way so that it doesn't
this is hard to explain i^i
so like
type and chno can be overwritten (by len) if is_meta is false
mtype can be overwritten (by b1) if is_meta is true
oh god
is_meta cannot be overwritten
so type, chno, and mtype are type-specific type info fields
do you have getters and setters for this?
i will maybe
a few assert()s here and there to make sure it works properly :>
if only c/c++ had properties
guess what
idk if its possible for them to add them to the c++ standard
wait are they in the standard
no way
actually
which standard
Any method can be a getter and setter if you try hard enough
okay now where do i start.
?
good luck
Rust struct?
actually i'm not finished with another one
just sprinkle another union in there and i'm done :>
imposter struct
but also rust structs are pretty nice I have to admit
and im not the biggest fan of rust so good on them.
god ```c
typedef struct {
union {
struct {
uint16_t fmt;
uint16_t ntrks;
bool use_smpte;
union {
uint16_t ticks;
union {
uint8_t fmt;
uint8_t ticks;
} smpte;
};
};
MEvent *events;
};
uint32_t length;
bool is_header;
} MChunk;
what am i doing..
I feel like this is definitely the kind of thing c++ was invented for lol.
just let classes and std::variants do the annoying unsafe parts for you.
oops! miscalculated
now everything is useless :>
Provided to YouTube by Reprise
Brain Stew ยท Green Day
Insomniac
โ 1995 Reprise Records
Unknown: Bernd Burgdorf
Guitar: Billie Joe Armstrong
Producer: Billie Joe Armstrong
Lead Vocals: Billie Joe Armstrong
Unknown: Jerry Finn
Engineer: Kevin Army
Bass Guitar: Mike Dirnt
Producer: Mike Dirnt
Background Vocals: Mike Dirnt
Unknown: Richard Hu...
My stereo has been blasting shit out loud all night and it's 4am ๐ my stereo is my favorite earthly possession
bro's talking to himself
now i just have to check the output :D
ya i do that like a lot of the time
do u have a private server for u alone?
7 straight hours :p
nu
well-
depends-
i have private servers where i test discord features n stuff
have one just for urself, and add some bots in it
imagine having multiple ai girlfriends in a single server
craving for ur existense
ok i might have to go outside and touch some grass
meh.
be happy with your, whatever you are suffering from
ai doesn't feel real >->
but an ai girlfriend will accept however u are
it doesn't check standards on u
wtf
weirdo
Get a girlfriend. Level hard (it's a very difficult problem on Leetcode)
utopia?
nice joke ^^
i've accepted the world as it is now.
well, guess what?
im just joking
we know its a joke throught this whole time
im not a weirdo
cool
what it does?
read a MIDI file
send me the link
whats that?
Well what did you expect
so, you made a code to read a music file?
ya i think-
i forgot what those terms even mean
cool
but whats the point?
did u try to reinvent the bicycle to learn smth new as a practice?
or its just u forgetting to do a google search?
pls tell its the 1st option
1st option
๐
also i need to interface this with python n i don't know how to do that with other midi file readers .^.
no i didn't.
the-
why does the data change inbetween function calls ;-;
.
good point
C is confusing :D
why does the address change :D
use zig
oh.
i figured it out.
it's realloc() acting strange
:p
.
FINALLY
oki i sleep now.
bai
did you re-use the original pointer? 
no, it gives u an another pointer in exchange of the old one
I know
I'm confused how realloc would be acting strange
the
why does the data change inbetween function calls ;-;
sounds like re-using an invalid pointer or something
hey guys, does any of you worked with LDplayer before? its an android emulator
do they ban forever for mention spamming once on discord.py's discord server?
because I got banned for that like 3 years ago or something and am still banned on all of my accounts
Using different accounts is ban evasion and is usually a reason by itself to ban an account.
Usually on Discord, bans are permanent.
yeah, understandable, do you know whether they unban under certain circumstances or not?
would u date a girl who is dating another girl
depends on if its exclusive
some people are ok with that and have talked it over already
p o l y a m o r y
"About 0โ100 years, but it's harder for such short amounts because nuclear testing increased the amount of ยนโดC in the atmosphere."
not trying to derail the question but in that situation I think most people would worry more about whether or not SHE would date you 
I downloaded this program called โTCPOptimizerโ that doubled my PCs download speed (400Mbps to 900Mbps)
Is this a real thing or is it able to psyche out googles internet speed test lmao
It sounds suspicious to me but apparently it's just messing with the TCP buffer size and disabling TCP delayed acknowledgements
not sure what that means, is it pseudo or does it actually have merit?
it feels too drastic to be real, but i did use this program to fix my roommates download speeds over a year ago. he was actually having issues, and i was just testing it out rn
I dunno. It could do something /shrug
sus
dude
i saved cake
so i could eat it multiple days in a row
so i wouldnt have to waste money with dinner
then this fucking waste of a human comes and throws it away because it was "hard and tasted like a brick"
did i fucking ask you???? it was my cake dude
im grieving over my cake
it was a great chocolate cake
Well tell them they have to buy you more cake
Plain and simple
Ruin their life if they don't.
:')
if you're eating cake for dinner multiple days in a row they might've done you a favor
i used a pointer assigned from the data that was realloc()'d
Let them eat cake
void *something = &arr[0];
...
arr = realloc(arr, ...);
/* oops! now `something` *can* be pointing to something else */
Is the cake real?
no pointer stability moment
yeah, that's very UB
linked lists go hard ๐ฉ
linked lists are hard*
Linked list gang
i hate them
mostly bc i could never wrap my head around them
rEvErSe a LiNKeD LiSt
it's not like they have many moving parts 
ik
idk man
ds/algos were never my strong suit
Just make your head be in non-contiguous parts 
lmaoooo
linked lists are pretty much the simplest data structure
agreed
it's concerning i can't use them the right way
but i will work on it
i will improve.
making a promise to myself
i believe i need a mindset change
maybe coding is for me and the approach i'm taking is wrong?
unrelated question, is keyboard wear a real thing? like a worn out keyboard?
sure
i have to press harder on my mac to type than ever before
ah
yea
thought so
that more likely means there's something under the keycap
but yea man a mindset change would be good
i think i still have a chip on my shoulder
from failing CS that freshman year
even though i've grown so much
done so many internships and gotten my first FTE offer
do you enjoy coding?
i do
i like it when shit works
it feels satisfying
when it doesn't i get frustrated easily
that's not a great quality in a software developer
there's a lot more times when something isn't working than when it is
well i mean
i kind of am
so
yea i'm working on it
handling the frusration
i've gotten a lot better at power bi debugging
low code platform tho
yeah. you really need persistence
debugging is super important in coding anyways, if you don't have the persistence to debug you really aren't going to go anywhere.
i'm good at debugging excel models
idk what it is with me and coding
it's like i have the fucking yips
maybe some fundamentals missing
probably.
debugging excel seems as hard or harder than coding, so
seriously?
i guess so.
i mean no print statements and whatnot
i wouldn't know where to start ยฏ_(ใ)_/ยฏ
๐งข , you'd run circles around the kids in my excel classes i've had to help
i'm not in the class
you've TAd before right, how was that? i really enjoyed teaching people when i TAd
no
@solid elbow, you work in the finance industry right? Do you have any tips for me?
I work as a software developer - I don't really do any finance-y stuff
offtopic
dumb qn as well but curious to know
Does learning coding need talent?Cuz i see my peers and others learning at hyperspeed
no
and im cruising slowly
and still i hv no idea what works
people learn at diff rates my guy
if you wanna do this
for a living
you will learn your own learning rate
you will gradually improve as well
i see
dont work with the code?
no
i mean
don't feel dumb
ask qs
raise your hand
don't sit there confused, bc that is the true sign of being dumb.
uhhh its next js and python flask stuff so kinda hard to ask,idk where to post cuz its quite big for the context
ig so
I mean technically you can use any language right
try asking it in hebrew
added single track player caus why not
we should play sometimes
play me uwu
i love lurking in the shadows
it allows to screenshot stuff like this
2 different occasions btw
why, because that requires a sense of shame?
bro said he was going to sleep
correct
whats your elo
