#⌨coders-cave
1 messages · Page 98 of 1
two
http v1/v2 are based off TCP
while http v3 ate based off UDP with quicc
websockets are tcp
most realtime media are transported with udp
and TO MAKE IT ASYNCHRONOUS
os offers functions for polling fds
like
epoll for macos
select for linux
and iocp for windows
(iocp is a pain to implement)
those will block a process/thread until the list of fd's are ready to be read/write
and the rest is handled by the os I/O
i probably mean
the lower level
stuff
like
there's an internal I/O happening
with the socket
so we input what and output what to what
and receiving
packets
we receive packets
but
Networking is bad a computer doesnt need to connect to the internet
we're not receiving it yet
until we specifically
receive it
as in calling the function
otherwise those are still at the host buffer
it doesn't usually
but the network adapter
its another story
why did people make so many damn protocols
just let it be "Aight ima send you these bytes making this thing"
single simple protocol
not all those udp things
I sound like a grandpa that used to develop the first computer lmao
"Those damn kids making all that networking jazz back in the day we had to write the bytes to everything ourselfs"
"And create our computers out of sticks and rocks"
.
..
…
....
I learned basics of networking with this:
https://youtube.com/playlist?list=PLIhvC56v63IJVXv0GJcl9vO5Z6znCVb1P
haven't really needed anything more
The thing is just theory wont be enough
I will need to dive deep into documentations to find the right ports to different parts of the network hardware
Which always brings great pain to a man
😔
Luckily enough I will first learn filesystems because fuck the internet amirite 
sounds fun
yes except I dont even know what manufacturers...manufacture them
nor if their documentation will have ports
nor if where they would put that

I would say it would take me up to 10 hours to find that
networking is izi :)
what's your WiFi receiver model and what's the problem?
mediatek
its not the wifi
doesn't tell me shit. I need the exact model
and I need to know what's the problem
and what's the problem with it?
You can try installing new drivers
I'd say it's the internet. Can't seem to find any reasons in Google why it would be the receiver
have you checked the ping on other devices?
yes
You can try this:
https://m.youtube.com/watch?v=Xg8X-CunQak
Download Driver version 3.2.0.213
https://u.pcloud.link/publink/show?code=XZJTVAXZE9GQpUP2yTmeeOAw7NvRHL2sfk70
Tested on laptop Acer Aspire A514-54.
That’s why you only get laptops with intel Wi-Fi cards
Hellish 28 contributions?
my teacher made me do stuff from here
https://lab.github.com/
oh, so you are a programmer?
how tf do you setup mongo db on debian
then hack this facebook account for me
Ah so you are a programmer?
Pls fix the TV its not working
"mom im a programmer I look at colorful words all day I have no idea how this works"
please
stop using db
dbs are just stupid hardware hogging garbage
better write your own using List and local file
I would but Speciesbox was made to use mongodb and recreating the whole db with the dp dump without mongodb is time consuming
had a server using mysql as db for weeks i had nightmares about random 500s happening in my db and turns out mysql was overloading hard
store everything in new lines on one big text file
wrote my own db using collections and local .json and its faster and lighter
there is 40mb worth of text made to be used in mongodb
like existing text?
that part sounds way easier than trying to rewrite the code to a different system kek
I guess you'd probably want to load it through mongodb to convert to another though
My only experience with json is writing building options for rust
So I would say its pretty good
its pretty straight forward in my experience, in accessing, exporting, importing, etc
I saw the game code when it crashed
what do u think about page faults?
||im talking about page faults||
also @cloud solar wanna stream
like
1XX
i think those are
just operations
like sending data or something
more of a log
i think

that would work if you have a stable server and your app is small
I just need to somehow convert these fucking bsons to json and upload those to firebase
then I need to change all of the code referencing the database in speciesbox code
and then I can host speciesbox
lot's of work to do
I don't usually do projects that I could really show in public. As either I am just fucking around with something new and the project would be embarrasing af or I am doing something that doesn't make sense to share the code for security reasons
but if anyone wants to work on speciesbox I'd appreciate help ;)
dont share credentials and only share codes
ez
or you should just make the things secure even if you show it so they cant just look at the code yknow
I'd help ya if I didn't have that thing to finish, or else mastef will kill me 
I know for a fact that if I try to handle more than one project at once, I don't get anything done
what language ?
wtf is speciesbox anyways

js, (suffering)
like other RPG bots but based on worldbox is easiest to explain
it was made by nikon not me. Speciesbox is quite nice if you get over the js
we can do some magic
make it ts
if ts support discord api and firebase sure
im using ts with firebase
gud gud
lmao
actually there is c# api somewhere but good god if anyone knows if its any good
An unofficial .Net wrapper for the Discord API (https://discord.com/) - GitHub - discord-net/Discord.Net: An unofficial .Net wrapper for the Discord API (https://discord.com/)
api for what
for discord
i hate using wrappers
you'll hate candy
what's c a n d y
i dont hate this
they come in wrappers
kek
converting from js to c# tells me it would be awful to do
you can already do this (its called github)
||stackoverflow||
make a base class that you can inherit from
i have a stack overflow tshirt, its the least I could do
pretty sure they dont even have a store anymore
looks like spam
you can buy some random amazon one though
cant you just google it
easier to look at examples in my opinion
if you think google sucks you're going to be in for a long one when it comes to coding
as it turns out the structure built off of code has lots of good info about code
public abstract class Shape
{
public abstract float GetArea();
}
public class Rectangle : Shape
{
public int Width { get; set; }
public int Height { get; set; }
public Rectangle(int width, int height)
{
Width = width;
Height = height;
}
public override float GetArea()
{
return Width * Height
}
}
coding on discord chat is not as bad as i thought it would be
discord has markdown which is noice
abstract classes are the best
I had some discord plugins when I had betterdiscord that improved it a bunch too
betterdiscord 
now I just use the web browser because quite frankly I barely use discord
the equivalent of modded discord
mhm
essentially lets you add plugins that change/add things to discord
lots of great ones
discord claims that for legal reasons
but they don't punish anyone
if you self-botted for instance they may ban you, but thats not what betterdiscord is about and also doable by various other ways
equivalent of minecraft saying modding minecraft is against TOS or whatever, and them not doing anything against it.
if you want to translate all of the code
(so all of the work)
first i would like to know how long is the code
kek
i dont want to say yes and then its 20000 lines
I'd rather make a new bot than ever have to translate one
how much is too much
im not gonna translate it literally
but i still need the game logic
lots of game logic
@wet girder i need to see
I can invite you to the GitHub repo
if im not doing it in C# ill still do it in TS
just tell me your GitHub name
HamzaNa1
please dont laugh at my code from 5 years ago
looking back at my old code makes me cringe
which is good
because it means I'm better now
yep
invited ya
make bot work
how do i accept the invite
ez
there are issues I have made
¯_(ツ)_/¯
you should have received an email
nothing
unfortunate
after I've put everything to another bot. Atm it has the bot tokens that have quite many perms
@wet girder u sure u invited me
im too good ?
hamza is just a collective hallucination
googling is a skill you need to learn berry
INVIIIIIIIIIIIITEEE
essentials
the basics at least
ANYTHING
Github hates you it seems
racism
I have never had any problems with anyone else
too much C# in your repo
do you have invites disabled or something?
It's 100% JS
i never knew they existed
lol I was talking about hamza
nope
that sucks
lol
all hail the vpn
genious
done
got it
The second part of my programming course is java lmao
I hate java for some reason
I'd get c# over it every day
Java is just bad version of C#
java is a worse version C#
this man knows
tbh I like OOP but java is just.. ugh
and why firebase instead of mongodb
mongodb sucks

I don't need more
u sure
should be totally fine
quite
trust me you dont want to convert all of that
or do i
you dont
but what if i want
then you're masochistic
of course
maybe 
you up for it ?
making this better ||(with C#)||
its gonna take like 1-2 weeks
but i think its worth it
good luck with that
we need to get the bot asap
is it not working right now ?
I'd recommend you just enable the bot for now before you go writing an entire new system
I haven't setup mongodb on the vps
doesnt it take like 5 seconds with docker ?
i thought it was on
even then, I'd weigh the options first
I don't think the vps lets me do that too easily
what os ?
2 year old debian server
never done anything else on it other than hosting amp with discord.py
install docker
it's none of these
ok so you have the data dumps from the old database ?
it's in the GitHub
we'd just need to change all the mongodb code to firebase code
idk how much that is ngl
You have to either transformer them into json or use mongodb
hmm
the cooldowns dump only have one thing in it
ok the users one is huge
10 mbs
nvm it has only one user
which is nikon
@wet girder
are you sure these are the right dumps
or is the online converter im using is bad
ill try another one
ill try using mongodb's converting tool
if that gives the same output then nikon fucked up
@wet girder they are the right ones
good
I agree with igniz, you also have to take into account analyzing the current system, developing a new one that works good on C#, write it, debug, test, etc. It took nikon months to do everything
also currently looking at c# version myself and woof is it brain numbing
probably because im used to the python version, but slowly making progress
only took 300 hours
and like 80 lines of code
not too bad actually, I just need to get in the habit of using async tasks more often
A site where you can download YouTube?
it automatically finds the video/audio content in the webpage
and downloads it
it works on basically every website that has media
Nice
ofc its written i c# what else
I have no idea how these sites work
wanna see it
yeah but nikon was making something new
its currently hosted in my own pc
194.233.71.142:80 put this in your webbrowser
ez hacked
I will make sure to scan your ports
dont put this in your browser
Tf you doing with 5 routers
for more ip addresses ofc
that's not how it works
nono
you need multiple internet connections
Bruh
How much do you pay for that?

internet is cheap here each are on 10mbps
Why tho
10mbps is like 5$ a month lmao
So you pay 25 a month to get more ips?
Unless you are doing something shady 
our neighborhood is very close
my neighbor doesn't have wifi 💀
still doesnt make sense
just vpn
Im doing something shady but dont tell anyone
so basically everyone doesnt really care if someone have their wifi password
||I plant trees near my apartment to make shade||
Was trying to make sense out of it but there isn't much 
you cant really trust vpn
a vpn is less than 25$ a month
in the end the endpoint server's isp can pretty much steal see your traffic
you can
20$ = 40 bucks in my country so fuck vpns
what's the point of using vpn if the services like reddit, google etc.etc. is still logging your info on their site
if you want actual privacy you might just fake your identity
Fuck it
firefox clone but with all the bad settings disabled
Make your own

its a hassle to turn javascript on and off
My man is more of a masochist than me
and when javascript is on yuo'll have anxiety if the site can get your public ip via js
i mean if you are going to use librewolf and a vpn you can just use google
and feed them false information

and what's worse is that the servers are in fukin europe like dude i live in asia and i get like 3 times the latency
So a few days ago I found out that rust has its own os development libraries
rust in linux coming soon
latency does not matter if you are not playing games
So when I started using it my dev speed wnt into the clouds
Like I got double faults and interrupts working in a day
This took me a month in C
So rust is officially very pog
So when are you releasing AmongOS
With this dev speed
AmongsOS
In an year
SussyOS
I just need to do...paging which isnt that hard, filesystems which will be a struggle and cmd
And I can count it as a working os
Might be less than that
Really matters how fast I learn filesystems and partitioning and if rust can help me
Filesystem?
Its running so it is working
How low level do you want to go?
Considering im making a os
Very very
Low level
I dont got a choice
I could use ext4 but I will need to learn it
Easier to make my own
If I decide to implement ext4
I still need to code it
So I will need to learn it
The thing with making your own stuff is that can break easily
And considering its probably very big its not worth it its better to design my own
Even the os dev wiki agrees
Ah fuck now I need to work on usb
This will be a struggle indeed
@cloud solar if you wanna stream ping me as Im gonna be free all day
being sick sucks but atleast I have time for coding
My unreal engine in stuck at %67
L
L
big L
L
L
Γ
ل
דּ
🇱
F
J
UwU
لـ
w3schools
with great power comes with a great responsibility
wow spiderman reference
stack overflow but not stack overflow
search it
its like a documentation for all programming language
C# tutorial for beginners: Get up & running with C# and code in just 1 hour! No prior knowledge needed.
- Get my full C# course: http://bit.ly/2KJLPuS
- Subscribe for more C# tutorials like this: https://bit.ly/38ijYjn
⭐️Want to learn more from me? Check out these links:
Courses: https://codewithmosh.com
Twitter: https://twitter.com/moshhame...
start with this
sure
is it on github
@knotty root
no I meant is the project on github
ok how do I see it
brb
im back
link to where
ok im waiting
microsoft docs
i dont learn everything right away
all i do is when i encounter a problem or if i dont know something
i google it
noone does
everyone googles
programming is wayyy too huge for one to know everything
and considering pretty much everything is on the internet why know everything in the first place
@knotty root You did the github stuff yet?
ok whats your github
put a link it will be easier for both of us
Last time I tried to search someones github I found some strange nsfw projects and some awful code
why
why is it in a zip file
to this day I have no idea what get; set; does
or why it exists
I dont do c# okay
And yes I know it gets and sets but gets from where and sets....to the var???
this reminds me I havent put anything on github in a long time
I should do that
@knotty root wanna check my github out?
ok
I will run it later when I get a way to run c#
but I like the codes they seem clean
But I have no idea what clean means in c# so idk
I have so many projects and most of them are old and really bad so bare that in mind
https://github.com/IHaydot
Good luck stealing it
running them requires about 20 minutes of work to set up a building env
each
im pretty sure I have a guide on how to do it on some
but I might have not pushed it to github
os dev when? @knotty root
you said you would but you didnt
well be faster
I want to not be the only one in this chat 😔
feels lonely
@barren shale check out his github
give your educated opinion
yes
on what?
What project?
The zip file?
I can't check it right now. I'm in the bus going home
yes very nice
bro
what
public = property
private = field
stick to this
aight
iirc the point of getters and setters is to have more control when an instance's properties get modified/read, like you can add checks before changing the actual value of the property, for example
at least that's what I remember from 3 years ago 
anyway I fucked up my python environment by uninstalling every pip package
today is a good day
what project
you named your repo the same as your username
huh
I can't get the project working on visual studio 2022
I just opened it in vs code lol
anyway
First thing I see is that you used abstract to define some Item class methods
and then you override them for the various weapons
but if they are the same for every single weapon, there isn't really a need to do so
for example Equip()
Unless you want to make it different for every single weapon, you should just make it a normal method in Item, then make all the weapons inherit from Item
Info() makes sense since it's different for every weapon



Why is this not working
That code in the red circle
(It's a simple problem isn't it?)
Here's what happens
It was supposed to display that message when energy is 0
But it doesn't
Here is the code
the last message?
I guess you mean the "You've arrived at the junkyard"
= 0 means it will do that code if its 0 or greater
since its 0, it'll tell you that
need to replace >= 0 to > 0
that said you're subtracting 20 from the energy so shouldn't you have "20" energy as the minimum
energy >= 20
depends on whether you want negative energy or not, but that's just up to you
I don't want negative energy
Oh
I understand it's all becoming clear to me now
Thanks
It feels great when a problem is solved
Dayum it gonna be real big
I gonna have to spam random.randint to get that work
It would be good if there were any other ideas
If statements in python are so...wordy
Like i instead of && you have and
Also no brackets which looks confusing af to me
Lua does the same
Rust is also able to do that
But I cant get used to it
I still use symbols even when I can change them
@barren shale hi
who
Please say hi to my mom
:)))))(
im getting a new laptop next month
with an rtx 3060
gonna fry it on some ai stuff
:)
the tradeoff is that its more understandable
yes you do unless you want a 3090
You get it to use insane Minecraft shaders
at least it was when I was learning programming
and that i guess
you uh need lots of vram for ai stuff
it has 6 gbs
yeah the 3060 gaming moment is mostly for gaming
and i do RL mostly so i just want the tensor cores
need like loads of vram for the decent ai models
yeah but i cant afford a 3090
so i got to do with this
its still better than running on cpu
well a single 3090 wouldnt help either
you can do some of the lower to maybe some mid models probably
dont really need a lot of vram
i mean its a laptop
vram issue goes down over time as they optimize
but I know for like text gen stuff a handful of the models were just better off ran from collab since I dont have 16 gb of vram laying around
my current laptop has a 1050 with a fried power delivery ic
which makes it a laptop without a gpu
i dont do these text gen stuff
i just make RL agent and let it play snek
i like watching it
:)
why are you laptop gaming instead of pc
because in syria
electricity
bad
also i need a laptop for university
few more like every
kek
yes until i wake up at 3 am because israel wanna bomb us at night
just bomb us in the morning
Well call israel
migrate elsewhere probably
And tell them "no you dont bomb us >:("
im probably gonna move to the uk after i finish university
i have a cousin there
ill go get a masters degree in ai
and then sleep all day long until i die
well the weather is usually rainy in the uk
good for sleeping
opportunities for education for sure
my reasons are english and i have a cousin there
english
yeah
isn't that a little of everywhere
us and canada are too far
and i dont have relatives there
australia is too scary
so i think the uk
I feel like europeans know english
yeah but im not gonna live in germany speaking english
Why are you scared of kangaroos?
yes and koalas 
australia and new zealand are nice, but import prices of like tech stuff is more expensive
that makes it a no for me
thats a deal breaker ngl
kek its not like 3x the price, its like 500 vs 700 usd
what do you mean i have to pay 50$ dollars for my 1100$ graphics card
in syria
every car is taxed 300%
graphics cards cost way too much everywhere atm
for some reasons
going down tho
thankfully
here you can buy hunks of junk for like 5 thousand dollars
what
I wish I had a laptop
its around 20-30k for a brand new vehicle if you dont add anything
computers are nice but being able to move everything anywhere would be amazing
I dont go anywhere
therefore I dont need much more than a crappy laptop
for when I do go somewhere
I've never had a practical purpose for a laptop
I have a nice enough pc that can run pretty much anything at lower graphics but
no games
like I cant find good games
then get a mid tier pc
oh games
theres lots of games
even more if you pirate tm (this is sponsored)
I can buy games and I have many games but all of them dont require what I have
I paid 400€ for my pc and my pc can run any game minimum of 30 fps so I'm happy with it
And the new games are shit
too high end for you?
like awful
Im not that high end im mid tier just the games nowadays are really bad
having a moderately decent build is so nice
even if you dont like new games, there are like decades worth of games
every company is trying to milk every penny from the consumers and delivering nothing in return
my school gave me a laptop and it's quite nice to do some computer stuff anywhere you go so I'm not complaining about having it. I rarely use it but when I do, it's useful af
he doesnt ever shut up about it 
lmao
I know he did some modding stuff there too
we have a dedicated one here too, but its just for projects and work when I need to do them and nothing more
anyway so I have been using the same linux distro for a full month
time to change
dont buy the garbage then lmao, there are tons and tons and tons of amazing games
True true
I've been playing loads of elden ring and its a large enough company, absolutely love it
The rules for my laptop are that before I leave my school the laptop is primarily for school stuff so it needs to always be ready for school stuff and always connected to schools network
besides that we can do whatever we want
the quality of a game is how good it is regardless of who sells it
linux mint was cool but it is honestly boring af to use to the point I no longer wanna use it
I play few bigger games and then mostly indid
so im going to linux bare bones 😳
kinda same yeah
The only games I play actively rn are
gta online and geometry dash
and maybe for honor if im extra bored
linux users memes are hilarious
I bought the bundle for ukraine thing from itch.io and me and my friends have fallen in love with just testing random games from it because you never know what you find and they're surprisingly good
Why do I feel so offended by this wtf
I dont get offended by anything on the internet but this meme
I play LoL, Minecraft vanilla and modded and a lot of smaller games I've gotten for free or from some bundle
oh yeah also csgo
is going to make me write an essay why its wrong
ngl since I finished Omori I've only been playing streets of rogue
still looking for a new game
twitter users
I think your opinion is wrong because you are an awful human being and I hate you
-twitter user
love when twitter users argue about nothing to solve nothing
purely to be angry and nothing more
you wish twitter users were that tame
everytime I log in they're complaining about a non-issue (or an issue that they made up) and then fighting other users about it
twitter users on their way to write a 30 long tweet chain about their opinion just for joemama11 to reply with L + ratio
"here is why this random person caused world hunger:
- They said Im annoying (im not)
- uses racial slur"
damn u guys seriously dislike twitter users
noone likes twitter users
twitter users dont like twitter users
the internet generally doesn't like itself
facts
twitter has some cool bots
I recommend following random twitter bots that generate stuff they're funny
the only reason I use twitter is for that
I recommend uninstalling twitter for -200 depression
I install everything
I hate using the internet for social media
you are on social media
so you hate social media
right now
I mean
because its all on the net
OK let me rephrase
that was badly said
I hate using browsers for social media
thats better
why
its so annoying I have to click more than two times
I used discord's application my pc for a while but at this point its nicer to be a webpage
and sometimes write letters to enter its awful
even on linux where downloading discord requires commands I download it
that's a good point
speaking of which i need to stop discording for now goodbye
I have to manually close discord to avoid being continously distracted by pings
I dont get scared about getting addicted to discord
I usually have to force myself to get on here
Yes because writing code alone is boring af
its usually when I get pinged 2 or 3 times when im doing something else, I'd use to go and check it out
now I pop on when I want and read through pings
I would rather talk to people why I code than talk to noone when I code even if its considered less productive
anyways cya
aw fuck I just learned I have to use efi if I wanna do anything productive
aka the buggiest thing I have ever witnessed
UEFI is great unless you are the programmer using it
have you heard about streets of rogue
@north dune Have you heard about this cool game named streets of rogue?
Im personally a malbolge fan myself
Malbolge coder if you will
theres a sequel coming
+[-]
Dude what
Brainf**k >>>>+++
That's not brainf**k
UNCODER IN #⌨coders-cave ATTACK!
Harder
I know code like 10101101010
Yess and it sounds awesome
pygame couse why not:
import pygame
pygame.init()
SCREENWIDTH = 800
SCREENHEIGHT = 600
screen = pygame.display.set_mode([SCREENWIDTH,SCREENHEIGHT])
clock = pygame.time.Clock()
GameWorking = True
while GameWorking:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
GameWorking = False
elif event.type == pygame.QUIT:
GameWorking = False
dont thank me, ik that u needed it

Pygame be like:
ah yes the pygame that makes you do the correct thing when entering a pygame: quit
Pygame is such troll that it doesnt allow u to quit it without programming it
i have an error in unity(using MLAgents library for making ai) and i get this error on cmd console:
D:\Unity\Projects\MachineLearning\venv\lib\site-packages\mlagents\trainers\torch\networks.py:91: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_new.cpp:210.)
enc.update_normalization(torch.as_tensor(vec_input))
even if u dont program in unity maybe by accident u know how to fix it?
How do u enter a code so it changes the gameplay on your device
its not that easy
Technically it is kinda
You can edit the executable
But thats not what he meant definitely
ye propably
@cloud solar wanna stream?
i think today nah... maybe tomorrow... i have too much homework tho
it is 23 in my country
and my parents will commit French revolution if i wont go to sleep

just
ctrl+c
on the terminal
unless you're handling KeyboardInterrupt
or not use pygame
Hello. May I ask you a question about the Python programming language?
I'm creating a discord bot but I'm getting an error
Very useful for structuring
You can always make everything public but then your code would look very bad
Expanding would be really hard
And you won’t get a job
When you want to use a field or a method only inside the class
Private means it can be accessed only from the class
Hard to explain on phone
yes
but first
how long have you been on python
