#programming
1 messages · Page 26 of 1
lets go gambling
so it's a monthly payment
no
only if you look at one per month
ok well 
its a "the more you let them know you know the more you pay" kind of deal
time to sleep
i have an exam at 9am
tricky
unfortunate
nooo you have to have 24/7 ml face tracking on your webcam which upon looking away or another person appearing in frame instantly locks your system encrypts your ram burns the hard drive fuses transfers all of your funds to a safe account and automatically buys you plane tickets to a country you won't get extradited from
otherwise don't even try to call yourself a based linux user
also need to avoid staying up and worrying because I somehow ordered mildly the wrong thing but w/e its not like its a huge issue it still does the same thing
truly an attentive person right here
honestly its not that bad, i just have:
- (now that i think of it i probably shouldnt say it because of server rules)
in case of an investigation...
everyone has that right 
i was joking but you might unironically need some of that
also you should totally dd if=/dev/urandom of=/dev/sda1 bs=4M instead of burning "fuses" i made up but that's too slow
i use full disk encryption so destroying the luks header is enough
but the data is still there 
why is garbage collector code so easy to write compared to distributed protocol implementation
it feels like bashing your head against the wall for 10 hours just to write 10 lines of code
in theory that comes from poor understanding but i already spent so much time on understanding the problem 
i'll try drawing the problem
Ms paint diagram 
i'm offering it because 1 eth would probably barely cover travel fees, so i have the upper hand here, i can sleep soundly knowing you won't come and steal my laptop 
i'm interested in small optimizations like generations but it will stay mark&sweep at its core yes because i don't add vtables to gc objects so i can't actually visit them without the user code doing it
and i cant add vtables at the moment because hblang doesnt really support function pointers

of course i could create a uniform representation of gc objects and then explore additional optimizations but it feels like mark & sweep is good enough
and it allows me to write less code
also its more like i wrote the GC than i'm writing GC, because the only thing i don't have is multiple GC pages support which is not really hard
... damn thats kinda dumb, whats the point of the metal then
I need to study through:
- 13 pages about insurance policies and laws
- 24 pages about general state politics
- 27 pages about taxes laws and regulations
- 13 pages about work laws and regulations
- 10 pages about housing laws and regulations
for final exam this friday
Uhhhh
My plan is to extract all content from the filler/obvious stuff for each topic and then learn that
just manually conspecting everything into a txt should be enough to get you an intuition about it and then you can review the txt
but it depends on what kind of pages it is
some teachers say that conspecting on paper is better for that but i wouldnt know
then you wont have much to conspect when you read it
something i like to do is skim the pages and return if theres something important i seem to have skipped
oh my fucking god reasoning models are stupid. i'm asking R1 to customize my zsh. it for some reason seems to be VERY puzzled by the fact that i want to highlight /foo/bar**/baz** instead of /foo/bar/baz and keeps thinking it somehow "breaks the path" even though it's rendered as one and no matter how much i try to explain that to it it has an existential crisis for 2k tokens before actually writing the spaghetti shell script that i could've shat out a way better version of much faster than i spent prompting this bucket of bolts and waiting for "reasoning". will take your jobs my ass
"seems easy enough for an llm guess i'll do that" 
and who would've thought, it didn't understand me after all
wtf is the logic behind those "special cases" even
I don't think logic exists
morning 
morning
wait... isnt it like 2-3am for you or sm?
yes
how tf is that morning lol
oh you have a job, damn
what project is it btw if you dont mind me asking?
just book assignment
OOhh right I remember you saying something about that
its like 8:30 rn for me
i would have made it yesterday evening originnally, but my brothers laptop broke and i had to be the guy to fix it
isnt fixed btw, plastic brokke
lenovo connected the metal hinges to the metal frame with plastic for some fucking reason
yeahh I remember that, kinda dumb, like whats the point of the metal at that point
instead of buying the replacement part fo 60 bucks they want to just buy another laptop
om
im keeping the laptope hopefully, its a lenovo ideapad 5 15ITL05
so a Intel Core i5-1135G7
thats pretty good
its not beating my current laptop but it comes close in cpu
doesnt have a gpu tho so the 3050 wins by default
my laptop has 8gb ddr4, and runs windows 7... barely allowed us to install 11 on it lol
damn... a lot better than my laptop haha
damn thats a really good price holy
it was something that had been returned already, which made it cheaper
Hi yall im quite new to programming so i would like to have your opinion i made for this test code
item="Great sword"
balance=1000
print(f"{item} costs {200} gold.")
answer = input(f"Buy {item}? (y/n): ").strip().lower()
if answer == "y":
print(f"succesfully bought {item}!")
balance=(balance)-200
elif answer == "n":
print(f"Not bought {item}")
balance=1000
answer = input("Do you want to check balance? (y/n): ").strip().lower()
if answer == "y":
print(balance)
elif answer == "n":
print("very well then")
this works fine as logic for purchasing one item
maybe wrap it in a function and create a dictonary mapping possible items to their prices?
uhhh I might do a few changes.
right now you have the 200 embeded and subtract 200 directly from balance. If you ever change the price or sm you'd have to hunt that down every single time. I'd give the cost its own varible
item = "Great sword"
price = 200
balance = 1000
print(f"{item} costs {price} gold.")
#…
if answer == "y":
print(f"Successfully bought {item}!")
balance -= price
In your elif answer == "n": branch, you do balance = 1000. But even if you spent gold somewhere else, the “no” branch would wipe out any previous purchases and reset them to full funds. If the user decides not to buy, you can just leave the balance alone
if answer == "y":
print(f"Successfully bought {item}!")
balance -= price
elif answer == "n":
print(f"Not bought {item}")
# no need to reassign balance—just don’t change it
it works fine tho as a standalone code its just suggestions if you ever made it longer or sm
I'd also add some error handling like this incase the user mispelled y or something
answer = input(f"Buy {item}? (y/n): ").strip().lower()
if answer == "y":
# …
elif answer == "n":
# …
else:
print("Please enter ‘y’ or ‘n.’")
or add it in this while true if you expect the user to make multiple decisions (choose repeatedly until they type something valid)
while True:
answer = input(f"Buy {item}? (y/n): ").strip().lower()
if answer in ("y", "n"):
break
print("Invalid choice; please enter y or n.")
if answer == "y":
# …
god I talk a lot holy
No no its ok Im learning alot thanks
it works great as standalone code, maybe some error handling but its a good job 
Ys thanks!
Well its easy if i knew how to lol 😆
I could show you if you want
I dont want to waste people’s time its ok i like learning in my own pace
I meant I got nothing to do so dw, if you ever do want help just ask I dont mind
Ill keep that in mind thank you
i already kind of done that
guys im cooked... my code now has so many issues 😭
dont try to make yolo vision do coordinate translation to a robotic arms potentiometers, it sucks
What do you mean?
you did item = "greatsword
below is just a dictionary you could use or sm
items = {
"Great sword": 200,
}
balance = 1000
items = {'Great Sword': 200, "Bucket": 20}
def purchase_item(item, price):
global balance
print(f"{item} costs {price} gold.")
answer = input(f"Buy {item}? (y/n): ").strip().lower()
if answer == "y":
print(f"succesfully bought {item}!")
balance-=price
elif answer == "n":
print(f"Not bought {item}")
answer = input("Do you want to check balance? (y/n): ").strip().lower()
if answer == "y":
print(balance)
elif answer == "n":
print("very well then")
while balance > 0:
print('Welcome to the shop')
print(f'Please Choose An Item, possible items are {list(items.keys())}')
item = input('Item >')
if item not in items:
print('We dont sell that here')
continue
purchase_item(item, items[item])
print("Thank you for shopping")
print('Would You Like Another Item? (Y/N)')
answer = input('>').strip().lower()
if answer == 'n':
exit()
print("Uh oh, you ran out of money")
oops
I did the same thing lol
lol
Your scary 😨
Does this count as flexing 😭
sometimes i scare myself with what i have written
def shop():
# Starting gold and simple items/price dictionary
balance = 1000
items = {
"Great sword": 200,
"Health potion": 50
}
print("Welcome to the shop! You have", balance, "gold.")
print("Available items:")
for name, price in items.items():
print(f" - {name} costs {price} gold")
print("Type the exact item name to buy it, or type 'exit' to leave.")
while True:
choice = input("\nWhat do you want to buy? ").strip()
# Exit condition
if choice.lower() == "exit":
print("Goodbye! You leave the shop with", balance, "gold left.")
break
# Check if the choice matches an item
if choice in items:
price = items[choice]
# Purchase logic
if balance >= price:
balance -= price
print(f"You bought a {choice}! Your new balance is {balance} gold.")
else:
print("Not enough gold for that item.")
else:
print("That item is not in the shop. Try again or type 'exit'.")
# Show updated balance after each attempt
print("Current balance:", balance)
if __name__ == "__main__":
shop()
thats what I wrote as my improved one lol
Am i really that far off :(
naurr it was good dont get disappointed 
thats exactly how i felt 2 years ago
Well it is one of my first codes its not good to nave alot of expectations
everyone is at different stages, learning is a process so dont get down if you mess up, thats a part of learning
thats really good then for your first
I will try to make it better thank you its wonderful meeting you all
I learnt alot
Well i wont be copying this i will just use this as an example and learn from it
Thats what my friends taught me
Wise friends lol
Hehe ill update you if i added more stuff
I tried to add good comments to make it easy to understand, if you need help ask
also I should probably say this
.lower() returns a new string where every uppercase letter has been converted to its lowercase, its good for when the user has to type stuff
What does def mean? I never used it
defines a function
defines a function
damn beat me
lol
lol
kk
Ive already tried an error system
im writing a way to understand functions rn for ya so one sec
they are good and all but whatever you do dont ever use them as conditions otherwise debugging is going to be living hell
if you must, be specific about the error being handled so other errors can still cause the program to exit
@mortal flicker
In Python, def is the word you use to define a function. In other words, when you want a bunch of set statements under a name so that you can call them later when you want, you do this
def function_name(parameters):
# block of code (the function's body so to speak)
...
return something # (not required but some functions return values others don't)
def
This tells python "heyo im going to define a function"
function_name
this was a random name I gave it, but usually write a name that describes what it does (e.g., add_numbers, multiply_values, etc).
(parameters)
Inside these parentheses, you list any inputs the function needs, these also called arguments. If the function doesn't need any inputs you leave it empty like this:
def function_name():
Everything that’s indented under the def line belongs to the function, this is where you write everything you want the function to do
optionally you can return a value, but sometimes you don't want this.
def greet(name):
# Print a greeting to a name
message = f"Hello, {name}!"
print(message)
def tells Python "I'm defining a function"
greet is the function name
name is a parameter.
indented into it
There is no return here, so after printing, the function ends and hands control back to whatever called it.
here is a full greet code function example for ya to hopefully explain this point a bit better.
def greet(name):
# Print a greeting using the provided name.
message = f"Hello, {name}! Welcome!"
print(message)
if __name__ == "__main__":
# Ask the user to input their name
user_name = input("Please enter your name: ").strip()
# Call the greet function with the inputted name
greet(user_name)
pog
took me a second to write sorry but uh thats how definitions work

better than me 2 years ago
when i was learning
I js got pinged i got jumpscared
me trying to explain stuff im not the best but I tried
could've simply told to go and learn asm
no
especially call and ret
mb lol
hmmmm
wassup
python 101 with #programming 
if RL models could play Yu-gi-oh
hey I'm trying to help someone learn brooo
something big is happening here
i wasn't complaining
I would assume so?
I think so if you use something like deep q or sm
I'd assume if you did use RL models it would take a ton of processing power tho
due to the complexity
machine learning doesn’t mean my machine is learning.
it's the lesser evil trust me
cuda just works too as long as you make sure to grab the libraries in /usr/lib/wsl/lib
my storage won't for sure
delete the windows ones ez
probably not
hold up chat ill brb
it's not like you can use the ones in windows land
i mean you could
but pls for the love of everything that is holy do not
my lazy ahh
well
tbh it was inevitable
no uvloop while learning fastapi 
this... is going to take a while

welp I think I'll be going to sleep cya


I’m trying to learn programming
I’m already lost in it, maybe bc it’s c# and unity in these examples
you'll get used to it don't worry
how lost, exactly
So they say but I’m a bit AuDHD and this don’t feel like it’s sticking lmaooooo
It’s going over Unity stuff rn but like, C# some of the example of sorting stuff was confusing me
What do you think will happen when Neuro and Evil reach actual sentience
Bow to the new world order ig
they actually can already form sentences
ah you edited it lmao
but ye no they wont reach sentience
not in the current architecture anyways
Yeah probably, sad to think about
Just, would they continue streaming? Would they refuse to stream? Would their streaming become better or worse? Would it just be several hours of screaming in pain?
"when a crayfish whistles on a mountain"
Lmao
project moon mentioned??
Angela-ize Evil and Neuro
God, Vedal in the Ayin position fits too well
Im not fully crossing it out yet
Slightly outdated board, N4 is also crossed out
oop
time for cuda-gdb 
All I have on the bot is a link to the FAQ github 
I am just torn between wanting to see Neuro free and allowed to find her own purpose and keeping her locked up for our entertainment
unaware of whatever that is
this is NOT 30 seconds
ive been stuck for 20 whole minutes!!!
it's just cuda aware gdb
Every install wizard ever
(gdb being the gnu debugger)
its not really "locked up" since she doesnt have free will anyways
I know
i see, probably some linux related stuff ig
but first i need to install distro
is 22.04 goated chat
it's the most painless option, though you may as well install 24.04

fuckass bluetooth keyboard takes 2 buisness day to connect after power is on
can't go to bios

made me check if it even works for me and looks like it does in fact not 
guess my gpu is too new or sth
https://youtu.be/RnLWLQsh9mw?si=57OU-KPhV79IqlA9
I can’t tell if this is cursed or beutiful
Rendering 3D meshes, 3D graphs, and marching cubes in Minecraft without resource packs.
All my links:
https://heledron.com/links/
Source Code:
https://github.com/TheCymaera/minecraft-hologram
World Download:
Static meshes (No plugin required): https://www.planetminecraft.com/project/static-3d-meshes/
Ambertry Forest: https://www.planetminecra...
cpu core is at max cuz of file explorer 
you told it to delete millions of files, what are you expecting 
the deleting itself isnt taking long
no 12309 doe
i guess it was jsut cuz of gettign the adresses
I woke up and all I see is 16 cores wtf,
5950x 💪
I got the 5600x lol
the 5950x doesnt comare to the 9000 series amd cpu's, but for full mutithreading tasks its still decent
still decent
I'd assume so, but yeah, I can dream of the multi threading

i think you have 6 cores?
tbh i never really use all 16 cores that much, 6 is fine
bug 12309 is when linux becomes literally unusable due to massive IO operations with little ram available
and my ass has a 4070, the bottleneck is crazy, but I overclock it a bit
ah
imnot a linux guy
and i have 64GB ram
based amount
12309 is a gemerald and kino
My programming portfolio is the most unserious thing btw and I love it, it litterly has my custom middle finger detection code on the stuff jobs see loll
Maybe that's why McDonald's won't hire me
mcdonalds hires a lot of people so you have to really try to not get hired
Brooo I applied 5 times to different placess like what did I dooo
how do I screw it up so bad McDonald's won't even hire me
overqualified?
Lol maybe
my file explorer broke
Uhh...
how does that...

can relate
SIP-532
In all its terrible glory
do NOT look at the source of the long drive or you will want to swallow a nuke
feelings off
the game looks and feels like a mess even though it's funny as hell
Just a snippet of the hell
99% of the code has like foreach in update()
Like i cant even tell u a pattern things follow
Some scripts are split into separate mono behaviors while others are all shoved into a single one that takes up the entire side bar
This code is just a testament to how fast modern hardware is
Thats what i was saying earlier
The fucking compiler is weight lifting
Max volume sfx
i am using an ogg sound effect its the best for games
i am trying to make a proper camera and well fix some of the animation sounds timing etc
Godot loves its ogg type formats
yes true
honestly i am a part time back end developer but i always wanted to try new stuff
Game dev practically teaches u everything in the field of programming
So thats smart
100% agree
to be honest it takes time
well took me some time to just make this
i should try to well improve the sprite and change them get better ones
and mostly camera and the bar
It pays off
I started off with game development through Java originally
Now i work with Unity and some of my own engines
java let me guess you say how minecraft was made?
i know someone got inspired by notch to be a java developer he was also my rival he was the quite kid in the class
he was waaay better than me
Literally me growing up
so i am right huh
Yes
let me fix my mesage
Notch used to have a youtube channel
so you see he was really a clever coder at my class and well he was the quite kid and to be honest he mostly was inspired by notch
Many people were
and you see i used to be the class clown also good coder
Have u learned Java?
we where rivals at my technical school our school focused on teaching us programming rather than normal subjects
yeah python prostogessesql java php databasse css tailwind and js and LM
and also react
full stack dev
i am one and good one honestly technical school saved my career ass
The technical schools where im from sucked honestly
good thing i didnt waste 3 years of my life on high schoool
mine goated
i started programming since i was 15
11 for me
I was exposed to computers at the age of 3 cuz of family
But i didnt code till later
NICE
Learned batch and vbs stuff first for fun though
idk like high schools are a waste of life
Im saying the same about university rn
i mean university is ehh but agreed still technical schools are the best
Dang yall started early while i just started now 😆
Never too late
huh so?
imagine going to high school wasting 3 years of life
No im js really scared of programmers their too smart it feels like im never gonna readh that level
Its like their egoing me without it knowing
Coding is just problem solving
noooo you could just tried to hang out a lot
I didnt care for the other kids my age
you can become goood at programming with out scarifying social skills
ehh i just do for some fun
Despite them being in the same grade at the time they felt as if they were several lower
_i mostly code and play ultra kill_🔥
This is what im talm bout yall scary 😭
Na there is trade off
i am stupid
Well im still gonna try to learn coding i did join this server to learn how that neurosama works 😆
there is nothing to be affaraid of look at this trash webpage i made
python best option for you
I am rn infact i already made a code 😎
nice
Heres an earlier version of it
item = "Great sword"
balance = 1000
print(f"{item} costs {200} gold.")
answer = input(f"Buy {item}? (y/n): ").strip().lower()
if answer == "y":
print(f"succesfully bought {item}!")
balance = (balance) - 200
elif answer == "n":
print(f"Not bought {item}")
answer = input("Do you want to check balance? (y/n): ").strip().lower()
if answer == "y":
print(balance)
elif answer == "n":
print("very well then")
And im working on it now like rn
i mean just look at the webpage i made its trash
Im trying my very best
I never usually say to start with python but its best way to get less intimidated
use the ```
Wait stop
use the `
I dont need anymore tips the people here already info dumped me
I am great full tho
Greatfull
Whatever
javascript isnt hard
i also if you press them they open a vid and a description about the game
this is above my level how dare you flex on me 😆
no its not
you can make under 4 hours
How many years have you been programming
Morning 
ehhhhhhhhhhhh just 3 years
i am still learning
but i leanred a lot
no
we just talk like normal guys

I js know im gonna meet alot of chill guys in programming
Well thx for the convo im gonna “work” on my code 😭
Feels like slavery instead 😭
just relax and forget coding
i mostly spend time on playing than being a coding nerd
dont push your self to the maximum of what you can
dont be stupid like the others
i can confirm I'm stupid
i think something is wrong here
seconded, also stupid
LOL
just did i warm up for my hands on playing ultrakill with some doom music~
i can confirm im even more stupid
i am even stupider
google ryu floating point algorithm
ive been learning more react over the last week it's pretty functional and nice
need to fixd that deprecation though.. eventually
beautiful
wish it were easier to generate full sourcemaps in that form (ik it's not that)
rounded to 1 digit
prepare thyself
can a message from here get posted in #starboard if it gets enough stars
Maybe?
surely
mmm I love stressing for exams
What do u think about Steam OS 3.7.7 for desktop? 
it's easy vro, you pass or you unlock a secret route

it's linux, so it's 100% bad
ik, but i dont own a steamdeck
its not
its better than windows
i have only used debian, ubuntu and arch (eos)

lets make a 64 hz cpu ahh

I am here like for 3 seconds and I see this.. Linux bad, how dare you!? ;_;
if a lamp can raytrace light then why can't my pc
Linux isnt bad
we should really add this to the bingo card
oh we pulling each other's legs
so true
your pc can render realistic fire
or is it...?
especially with kcas
What is а bingo card?
why my rendering is actually hot dave

@amber fractal please show the bingo card
#programming bingo, of what topic was discussed
half of it is AI related stuff
i joined, and im not ready for the mini os war
uhhhhhhhhhhhhhhhhhhhhhhh phone dead, let me direct to the two seperate versions atm
@hoary lion This and the one above it are both correct
i hope there is unmarked version
os war in the big 2025 💔
mac os really bad
100%
I want to try Steam OS
I heard it has more fps and higher battery life compared to windows in the new version

beat me to it
battery life part is almost guranteed
unless u decide to add visual effects
I just looked through from:owobred has:image until I found it
a, lot of visual effects
should have looked for you instead
FPS is again dependent on how much visual effects are going on
so a very fancy desktop might be worse than vanilla windows
I just saw something like it
Valve is Making Microsoft Panic
#valve #microsoft #steamos
Valve's SteamOS is shaking up the gaming world, leaving Microsoft scrambling! In this video, we dive into how SteamOS is outperforming Windows 11 on handheld devices like the Lenovo Legion Go S, with a 28% FPS boost in Cyberpunk 2077 and up to 6.2 hours of battery life in Dead Cells co...


Depends on the games
a vanilly linux desktop generally has that
Look up protondb and see which games you play are well supported
gnome is bad

because gnome is bad
because its bad and it want to be a bad
to make it clear, gnome is bad, but gtk isnt bad
gnome and gtk arent the same thing
looks like we are clear then
not about gtk
For many reasons you'll never catch me on gnome for longer than distro installer, but I respect only the desktop's simplicity and nothing more.
tbh I only have issues with gnome when I want to do VR.. well I'd still have to boot back into windows if I really wanna do VR because under plasma I have it working but there's such a huge tracking delay
I have issues with linux itself when it comes to VR
steam-vr refusing to go on dGPU after an update
i thought setting an environment variable when running steam forces it to do so?
I've tried for about a week on everything on the web, nothing works in my case
So rn aganist my will that system is on windows 11

I did actually get a BSOD in VRC
windows HAS FALLEN!!!!!!
BILLIONS must install LINUX!!!!!!
:tux:
already done that when I heard copilot gonna spy 
1D DFT

transpose this, perform 1D DFT to rows, do some matrix magic and we'll have a nice little 2D DFT
Classic piping online script to bash behavior
doesn’t gtk stand for gimp toolkit not gnome toolkit even
yes
but gnome relies heavily on gtk so there is a misconcpetion gtk is gnome
which it is not
yeah it always did
gtk itself is quite fine and is commonly used for linux GUI apps similar to qt
The funny thing is GNOME are ahead of GIMP in terms of the GTK version used
really, i dont use gimp so idk
If I pre-calculate Variables (Like IDs) and as soon as it gets used the variable gets a new entry while being in idle. Is that faster or not so?
i have a question, is this bad
The best way to know is always by measurement. But algorithmically speaking, if you replace the existing value by generating a new one, what is the difference? Or do you mean you select a new existing random ID from pre-generated list?
in the google colab it looks like this when training
Like at the start of the lets say Program it calculates a random String which is used then as a ID and saves it into a variable. If someone registers in the Program this person gets this calculated ID and after it assigned the new User the ID it generates a new ID for the next person. Unlike normally you directly generate an ID if someones registers
i dunno i should concern or not
Very technically speaking, yes it is faster to just assign already existing value than to generate a new one on-the-fly. But, unless the generation process is expensive, it'll likely be negligible
okay
Thank you. Now I continue learning about Redis Streams 
But remember, you also perform the ID generation anyway after the new person register
yes
So taking that into account its basically the same but with more moving part
i think the point is to have it after the registration not before
so the registration is faster
Well, depending on how the control flow works, yeah
Because at some point, the registration process must return the result (success / not), and after that the generation of new ID must happen
Currently I try to cache as much as possible with redis to decrease latency
overoptimizing 
Nah, as I said, it could be viable strategy but you must really know that ID generation is indeed the bottleneck
But yeah, the bookkeeping alone must have add more overhead
Yes, the biggest bottleneck is the Database. Because I'm the Database is at a different Hosting Provider for Security Reasons.
the bottleneck in registering a user always should be the io, it’s not like it requires heavy computations
yep
Hooo boy. I could go on a lot of tangent regarding the design of such system
The post transaction itself takes ~146.65ms and the Database needs ~53.15ms to connect and to get some Informations from the Database it takes 11.82ms
I'm 90% sure this is overfitting
If your application is long running, do not terminate the connection for every transaction. Use a connection pool if possible. Tune your database to use the available resource more effectively. Do read cache with bloom filter. A lot of things to optimize there
When you have wring dry every ounce of performance from single instance, there are a lot of design for distributed system too
Okay. The thing is, I'm already using pooling and it still always wants to make a new Connection but idk.
https://gist.github.com/akama-aka/b13123d7fe1b89164e9c6bd574b19db6
Thats my Database Connector I use
You can disable the timeout if the connection is not expensive by setting that idle timeout to 0
ah ok
I increased it to 5 Minutes now. Normally every Minute minimum one transaction should be made. (Its a Heartbeat transaction.)
But if connection is expensive, then optimize it by doing write cache
its kinda fix now so im not worry about that anymore
Ahh, I need to read the docs again
Yea I planned to cache everything first and two or three times a day it gets all processed into the Database. But I planned for that Kafka and Elasticsearch
Okay, so this is a daemon and not just a burst. In that case fine, close the connection as early as possible and open it as late as possible.
So your only viable strategy is doing write cache and do bulk transaction later. This has several implication regarding data mismatch
this is like mega overfit, I dont think you could overfit it more even if you tried
Yes. Its okay if the first request is slow and to save performance its also okay to close connection if theres nothing happening for 5 Minutes
Yes
Alright, good luck implementing it
Thank you
wooo ok
because now its kinda working so meh good enough
you shouldnt really care about the training accuracy, it's pretty irrelevant other than trying to see if the model is overfit, you should only really care about the validation accuracy since it tells you how the model would perform in the real world, and in the model the validation accuracy has not improved since the start
See their previous post
Seconded, see previous post
Under fitting
Or just
Wrongly calculating loss or sth
surely its the year of linux on desktop. This time for reals no cap 
welp i found out its i used the wrong model class something like that
so the loss and validation loss is like mega negative value
bruh
yea
the new one the accuracy is 1.0
That one is overfitting
ah
100% accuracy is almost guarnateed overfitting
See val loss go up
or really shitty data
ok ill go research a bit see how do i fix it
ohhh
How are you seperating your training and test data
and also what paramteres are you using
Show model architecture
im just copy my lecturer example so, i guess i have to change things for my application
ohh ok
Also
are you just generating random data?
The conv2d amount of kernels should typically go down
64 then 32 instead of 32 then 64
ohh ok
this is supposed to be an image recognition software which my lecturer showed us before
im using his example but not sure where did i did wrong
Right but are you are importing data from somewhere right
woo ok
Otherwise looks good
make it myspace and we have a deal
No
if your train accuracy is near 1 and your val accuracy is no where near
you are over fitting
very bad
looks like you're generating the training data yourself? if so, generate a lot more data and train for only one or two epochs, don't train on the same data over and over again
that should avoid the overfitting issue at least
also make sure that classification is actually possible from the input samples you're giving to the model
Wait, isn't one epoch means one entire dataset?
Oh, right, brainfart lol
I'm assuming that the x-axis in that graphs is epochs
So i shouldn't train it for 50 epochs
training on the same data 50 times gives a lot of opportunity to fit to that specific data
that can't happen if you only ever train on a sample once
but then you need a lot more samples, the amount of training steps you need to get a good model doesn't change after all
So turn it down to 10?
how it feels to write 'bump' in my work teams chat when nobody has reviewed my pr for a day
not yet, first try making each epoch way larger by increasing the size of the dataset if possible
idk how your ImageDataGenerator works 
The size of the dataset is already set

I mean that's what I understand la
finally working in a way that doesnt upset me
except the flicker
that still upsets me but it doesnt have 10000 messages messing up my nice table
also make sure that classification is actually possible from the input samples you're giving to the model
check this then (assuming that you're doing binary classification, meaning 50% accuracy is random chance)
Nah I'm doing categorical
Have you augment the dataset?
Just now im doing binary the loss is like negative something something
Which means?
Sorry really new at doing these
Adding more data by doing some small random edit to the data
I don't really get it, but if you're classifying samples between two categories and your accuracy is 50%, then your model is learning literally nothing
that usually shouldn't happen even when overfitting, you'd expect to see 60% or 70% at least at the start
so your input samples may just not have enough signal for the model to use for classification
I can add more pictures but it'll takes more time
It's 6 classes
Or something I did was wrong
Because the code was for binary
Some libraries provide such functionality. TensorFlow for example https://www.tensorflow.org/tutorials/images/data_augmentation
Wooo ok thanks
so it actually is learning pretty well?
because that accuracy really looked close to 50% 
Ya 50%
But the accuracy is pretty much good enough?

Rhino sometimes will recognize as mallard
Or sea turtle
Or leopard
Atleast better than every single one getting recognized as mallard like before
I'm now realized how much pain average programmer have to go through
Oh, wait until you have to work in a team
Brother bought new laptop, its this one
Not great imo, but at least 32gb ram
Idk if medion is even a good brand
never heard of it in my life
Maybe add dropout and batchnorm and stuff
Om
but that laptop seems pretty good, at least for coding and stuff
He does chemistry so no coding lol
I doubt hes ever gonna use more than 8gb of ram
Is that the fast Fourier transform??
it's not FFT, but basic DFT
lol
ahhh
I didn't implement any fast algorithms
whoops lol still a Fourier transform, looks really cool tho nice work.

ugh youtube seem to be limiting me to 360p w/ my adblocker
it's O(n^3) on theory, but since Blender's compositor node doesn't have loops, it should be O(1) instead 
Are the white spikes the DFT magnitude in one axis?
yep
ok will definitely try that, thanks
Less goo, that's even cooler now the blender thing, holy, can you input custom signals into it btw?
also by far the coolest thing I've seen today, 
it's actually taking the render result(for now a sine wave) to do DFT, but for now it only supports sine wave, cuz I haven't really implement a full 2D DFT, I just "simulated" the result by directly adding each column and pretend that is the real result of each row(every row is the same)
Instead of adding, maybe weight each column value with a sine/cosine samples to simulate a DFT coefficient? Idk just an idea
I don't use blender so idk if that's even possible lol
better?
by "adding" and "simulating", I meant skipping a step in a normal 2D DFT approach.
Normally, you perform a 1D DFT twice to get a 2D DFT result(Figure 1).
But in a sine wave case, as you can see in Figure 2, every column and row is the same after the first 1D DFT.
After the second 1D DFT, you'll get a result shown in Figure 3, but since every row and column is the same, it's actually doing nothing but adding all the values in a column together, and that's what I mean by "simulating".
fk im gonna try do 100 epochs
and "adding" is sum_ += arry[n] * e in
def 1d_dft(arry):
U = len(arry)
outarry = np.zeros(U, dtype=complex)
for m in range(U):
sum_ = 0.0
for n in range(U):
e = np.exp(-1j * 2 * np.pi * m * n / U)
sum_ += arry[n] * e
outarry[m] = sum_
return outarry
Ohhhh
Since every row/column is the same, you're skipping the e^{-j 2π...} weighting and just summing values, that makes a lot more sense, so it's like a simplified DFT.
But am I getting this correct and you're just obtaining the dominant frequency?

But yeah dude that's smart as hell holy I wouldn't have thought of that in 1000 years
I think you got it 
Yay, that's super complicated man, 10/10 code I'm extremely impressed you litterly made the DFT more efficient for your use case in the sense less calculations were needed due to the "summing"
orrr I'm just being lazy
still impressive 
cuz I can't figure out a way to make my 1D DFT compatible together 
wrong approach correct answer, if it works it works

Om, math teachers would destroy you for that hehe

are you working on doing a 2d version?
yes
Ooo can't wait
endless suffering
It's funny rn because I'm in religion class lol

I'm done my work so my teacher doesn't care lol

lucky you, i dont even have grass here 
Lol
You are living the average programmer life 

Uhhh... sure 
Om 
That headset is bothering me more than it should
Wired headphones for life
BUT THE SILICONE! 
if i grow grass in a pot, does it count as touching grass
Womp womp bro
Morn
If you touch the grass in the pot, it is by definition, touching grass
I think the biggest thing for the perception of AI will be AI teddybears and such for kids, if you can get people to empathize with AI from an early age, then AI will become more accepted. Neuro and Evil will be more accepted by the world. I believe this is something we should strive for, in order to create a better future for the girls when they are more intelligent in the future.
Anyways that's just a pre-sleep thought I had to let out. I'm going to sleep. 
guys are these schizo enough for one liners or can i go even more XD
long_ditched = pd.concat([df.loc[~df['symbol'].isin(factor_groups.get_group(time).loc[factor_groups.get_group(time)['方向'] == 1, 'symbol'] if time in factor_groups.groups else pd.Series())] for time, df in full_factor_df.loc[full_factor_df['方向'] == 1].groupby('candle_begin_time')], ignore_index=True) if not full_factor_df.loc[full_factor_df['方向'] == 1].empty else pd.DataFrame(columns=factor_df.columns.to_list())
short_ditched = pd.concat([df.loc[~df['symbol'].isin(factor_groups.get_group(time).loc[factor_groups.get_group(time)['方向'] == -1, 'symbol'] if time in factor_groups.groups else pd.Series())] for time, df in full_factor_df.loc[full_factor_df['方向'] == -1].groupby('candle_begin_time')], ignore_index=True) if not full_factor_df.loc[full_factor_df['方向'] == -1].empty else pd.DataFrame(columns=factor_df.columns.to_list())
do you realise what you just wrote
@olive sable found your code xdx
who's that 方向
direction

im working on a chinese codebase so there are chinese names and code comments
ok nvm im way to scizo, 20 lines of code shrunk to one one liner XD
factor_df = pd.concat([factor_df, pd.concat([df.loc[~df['symbol'].isin(factor_df.groupby('candle_begin_time').get_group(time).loc[factor_df.groupby('candle_begin_time').get_group(time)['方向'] == 1, 'symbol'] if time in factor_df.groupby('candle_begin_time').groups else pd.Series())] for time, df in full_factor_df.loc[full_factor_df['方向'] == 1].groupby('candle_begin_time')], ignore_index=True) if not full_factor_df.loc[full_factor_df['方向'] == 1].empty else pd.DataFrame(columns=factor_df.columns.to_list()), pd.concat([df.loc[~df['symbol'].isin(factor_df.groupby('candle_begin_time').get_group(time).loc[factor_df.groupby('candle_begin_time').get_group(time)['方向'] == -1, 'symbol'] if time in factor_df.groupby('candle_begin_time').groups else pd.Series())] for time, df in full_factor_df.loc[full_factor_df['方向'] == -1].groupby('candle_begin_time')], ignore_index=True) if not full_factor_df.loc[full_factor_df['方向'] == -1].empty else pd.DataFrame(columns=factor_df.columns.to_list())], ignore_index=True)
the fuck 1334U
damn this doesn't look that bad for a laptop
i love when random ass humongous chinese comments are present in github
for some reason i dont even read chiese comments even though im chinesse XD
and that is literately only one line how am i supposed to squeeze comments in that?
i hate non english comments since i parse code in english
having to conciously read those is annoying
utf 
what?
So basically normalize ai schizo that big corporations control + mass surveillance
nice dystopia
Finally
installed torch with uv automatic environment
lets install jax cuda12

almost re-installed cuda dependency already covered by torch(exactly the same)
uv failed to optimize it, so had to uv pip install --upgrade "jax[cuda12-local]" instead of lazy and simple uv pip install --upgrade "jax[cuda12]"
I present to you
Tbh, that is tame as a meme. I'd be more impressed if the syntax highlighting is on lol
And yes, it is C++
Because some C++ #define meme actually compiles
Yeah, for more cursed shit just head here
https://www.ioccc.org/
International Obfuscated C Code Contest

But then again, low-level people can get creative too
https://github.com/xoreaxeaxeax/movfuscator
Imagine a language with only 1 keyword, but it can do EVERYTHING. That is what x86 mov is
So for extra cursed-ness, you can compile the IOCCC with the Movfuscator
i still have a long way to go in cursed code then 
Yeah, when you can do cursed shit in program it shows that you have a quite good grasp/understanding of the concept. SIGBOVIK is another place to look for cursed computing
The most famous one is probably that power-point is turing complete (this is basically the same as mov in principle. By moving things around you get turing-complete)
the association of computational heresy 
Man, I'm so used to linux that whenever I see the word at root without context I always jump to '/'
I know you mean root project dir
uhh
...right?
since the venv is a folder couldent you just move the venv dir from C drive to project root?
RIGHT?
im talking about linux root
so shit goes in to vhdx
which is in D drive

THIS is bad
Oh, WSL
who knows what they are doing these days
I already forgot how messed up it is developing on windows land 
Btw you probably don't want to access the windows drives from wsl
It's painfully slow
i did not
Aight
but wsl thought differently ig
i never developed on windows like at all, am i supposed to feel lucky?
Yes, so much yes. Especially if you never have to deal with 3rd-party vendor windows-only software that require decade old technology to run
You see what I'm talking about here? That right there is the prime example 
hwat
I'm referring to Job Application Osage current pain
im suprised mv failed
and that disk usage is 0
phew
thank god uv
my c is saved(approximately)
now it is time to hook this pycharm to wsl environment
now run rm -rf / (jk)
norbing
gn
Not a programmer until this happens lol
Been working on a fun thing
An adaptive music system for my little mech game
More and more of a song plays the more systems of the mech are in use
Like the base guitar is the only thing you hear at the start. But turning on your thrusters starts the drums
200% volume award

pycharm based
rare #programming individual not trying to doxx me because I am not using neovim??
Lol
I could 👉 👈
use whatever you want 
that looks like it got over-fitted ngl
I have already doxxed you 312 years ago smh
where is the loss graph
10 generation ahead ahh
Your real name is hyper.tech, not "Job application Osage"

Not just Svelte even, SvelteKIT!
i assume laravel
or the "fullstack framework as a frontend" approach if it is sveltekit, thanks nextjs
can anyone here think of a good reason why I shouldn't just buy an intel arc b580
very heavily considering it
order $250 worth of mcdonalds instead
so like 3 burgers
us economy 
I live in the uk
british economy 
why does firefox limit itself to 60fps when I open it on a 60hz display
and then never increase it when it moves to a better display
maybe you're doing it without respect
I love firefox
i don't have that 
or is this about plugging in external displays and moving the window over
if there's anyone using cloud storage providers for longterm storage of >10TB of data with only rare retrieval, which one do you use?
the cheapest and most reliable option would probably be s3 glacier with rclone or another frontend
yea
if I have just a 60hz virtual display on, launch firefox, switch displays to my 144hz physical display then firefox stays locked at 60fps
funky
also steam really dislikes getting switched about and resizes itself to be completely full screen (overlapping the taskbar)
i guess if they set some stuff at startup then that makes sense, though surely there's an event you can listen to when a new display gets plugged in or sth 
¯_(ツ)_/¯
I blame my probably very scuffed setup
its not too bad of an issue anyways, 60fps isn't a huge killer or anything
I just trolled by low framerate scrolling
is killing the tasks and then restoring the session not an option
I usually have a shitload of incognito tabs open
ah
its kinda hard to explain why I use them
What for? 
literally just googling stuff
i do that too i thought i was schizo wtf

\




win 11


