#⌨coders-cave
1 messages · Page 61 of 1
lul
Plus
Have you coded in cpp
If you have you should know that vectors work a bit differently
Kinda like lists
sharp is weird
not guilty
The point is vectors in cpp are very useful for storing low ammounts of stuff

He will need to prove it to me because he said alot of mean things to me
lmao
Don't tell this to Hamza tho or he will block you
Use .json
json would be several times larger than npy
How big is you file rn
Eh noone cares about some kb
true
First get it working then fix everything else
What I say is a program that doesn't work but is fast is....not good?????
Idk I'm not a poet
rip
Cuz I'm on a mf vacation
nice
Here is a picture
Btw anything that looks like an advertisement in the picture is not one
Anyway so what are you making that requires an array of chars in a different file
trying to make an image that gets changed periodically
what does periodically means
each turn
nice
But still
i just drank some
Very tasty
strawberry milk tea

Idk why they gave me two straws when I was one person
are you gonna write to it every turn
maybe its usually for couples
actually I'm not gonna write to the file
but not sure-
But that sti doest explain why you need a char
Just use openGL 
@hasty bane just a suggestion
make a buffer for it if you're making the file persistent
so save after X seconds
or after X changes
the file won't be updated probably ever
how is that gonna help
bot will read from file, get several dataframes running for each layer and once everything's done it just deletes
I don't really understand what changing a picture meant
So I just went with creating a window and slapping a picture on the background
👍
eh-
what's a dataframe again
mmm

Why do I feel some reinventing the wheel actions rn
2-dimensional labeled data structure with columns of potentially different types

will use it for storing x,y coords
ah
or IDs, doesn't really matter tbf
okay so like
as long as it keeps track of where things are
no
I feel like there is a simpler way to do whatever is needed
like using a json
x = pandas.Dataframe({"something": 100})
yes
you made them
my bad*
Every time I see that name I get war flashbacks...
the name i see to have a flashback is hannah
pandas is cool

Sadpanda
darn i forgot i haven't installed numpy
lol
Python seems like a pain to code in with all that installing
not really
wait what the heck
Thankfully the c languages.come all packaged up and ready to code
i already installed numpy but pandas said i don't have one
no
npm is
nodejs
or worse
Lua
you need third party helper
Lua 
Lua I need to learn that language
I really like it
please i don't wanna lose you haydot

they had all the alternatives
But binding of isaac
they made their own into Luau
watch me make battlefield 2042 in Lisp
GTA 10 in SQL 😎
its an embeddable, quick, scripting language
It's just gonna be one big database
oh so we performing Joins to display things?
gta but its a roguelike

no
i think im good with graph Database
👀
yes !!!!
no no no
mmm ascii graphics
openGL is pain to setup in cpp 😔 😔
im literally making a roguelike in discord
the this can reference the game
How and why and what
depends on context
And when
YES.

No
yes
you can't stop me now
Idk
it's too late
I'm confused
as soon as i get the image stuff running I'll be UNSTOPPABLE
oh yeah a tip
I think there may be an error
ah i see
glad im using opencv then heh
okay good
hmm
Cython
Are we just gonna have python but with different names what is this python devs
jython
Java and Python bridge
Zython
there's the
Basic x python
PyJs
🅱️ython
What's next
not sure
Xqcthon
Pypy
No
NO
pip stands for pokemon in python
no
Forever
python is pretty good smh why delete
delete Zombie Language instead
it sucks
and because it uses Java
instead of custom build compiler
Lolcode is visibly superior smh
F#
if there are people that say CHashtag they should be sent to prison
mhm
also same with
html is a programing language
and surprisingly css can calculate

calc(1px + 1px)
"Oh so you're a programmer? what language did you learn"
"HTML and i hacked fb"
you might wanna learn the webserver

iirc its
hack the entire government of China with this one simple HTML trick
hmmm
also "Content-Length" is a hero

but also
you can hack with html
something calles
CROSS SITE SCRIPTING
iirc
uhh
i forgot the name

but its like
css is a <script> thing right
ic

mhm
<script>
alert("ur mom fat");
</script>
why not just escape it

too lazy
just use a helper
jinja has built in escape
so any variable can be parsed as escaped
i don't want people registering as xXx_n00br3kt3r_xXx
isn't that the trend back then
with the X names
does it even matter what they name themselves
not really
well yes but actually no
i usually have one condition
less than 50 character
that's it
users will always find dumb shit to do with your software
impossibl
unless they try to register with like some invisible character
human curiosity
i need to test that
that's still gonna take 1 char
or etc
The whole job of hackers is to do idiotic stuff on software to break it
and i like how people make bug == glitch
I don't think you can break things using just letters

do you know about
Buffer Attack
oh yeah you can
yes you can
i mean the .csv stuff
it can run something
and break
things
usually in C
like on a string
usually they make the buffer overflow
ah
still yes
they can store arbitrary code
to be run
or huge bytes
with just letters?
yes
no symbols no numbers
even with a length limit?
yes
whew
it's harder but yes
usually higher level language doesn't have this issue
but still possible
in C you can breach the max array items
pandas dataframe doesn't have a limit i believe
even if it does, you're limited to one registered character per user
unless its like a linked list
ah like
tied to ID, yes
{
"user1": "a",
"user2": "b"
}
p much
HOLY COW PANDAS IS STILL INSTALLING BUILD DEPENDENCIES
lmfao
data?

i have none
its a bit of a dumb idea to make gameplay stuff before the image thing is done
you can write a small script to generate rows of data and then write it to a csv
ahh
ye
anybody want to see how my code looks like
on a simple game
on discord
FINALLY
pandas finished installing build dependencies

NO NO NO NO
NO
atleast it does it automatically
wine 6.11 doesn't
there's like 30 missing dependancies and I need to install them myself to play roblox
it sucks
simply because
android build tools sucks

it... doesn't?
hm
wew
also why android. why are you on mobile downloading libraries. what's wrong with you
probably not
na
okie you're good then
termux is a good place
you can install linux distros
instead of the default system
so you have a sandbox inside a sandbox

aight
will do as soon as i get a new phone
because this one is...
it barely runs discord
android obv
and i dont know why i always capitalize them
no clue
if its like 11

well you're kinda at a disadvantage
also you can just code small things on your phone
pydroid3
its only a few mb
by few i mean 100
it doesn't use much performance too
"unless your code demands it"
it also runs a fakepy
which doesn't require you to save your file

but you can run them
its also a sandbox
but no gnu commands
well some exist
but mostly gone
hm
bad side of this is you can't run in backrgound

the terminal literally shutdown if you leave the app
its also currently on 3.8
don't buy the premium

not worth it
my my
its still building
Its calming down

YAY IT FINISHED BUILDING


YES YES
imagine waiting for like 2 hours
to install a library
just to test one thing

im a person full of dedication and sheer will

time to learn greenlet

oh heck yeah
all i have to do is just
reinstall numpy
and also greenlet is cool

provides some sort of easier async
but behaves like threads

Ive waited for 3 days to install tensorflow

why use tensorflow
ye
I know some basic stuff
Data types?

That's all you will need
yeah ofc
Good
Well uhhhh
JSON is basically used to store data types
It's very useful because it is also readable through java script
It consists of a few main things
Actually
Do you just want to watch a small video I will show you to learn it from someone better then me?
sure
*codes
In this video we will cover everything you need to know about JSON in only 10 minutes. We will cover what JSON is, why JSON is important, what JSON is used for, the syntax of JSON, and multiple examples of JSON. JSON is the most popular data representation format, and is one of the most important, and easiest concepts you can learn in programmin...
what are you correcting?
json in a nutshell: store anything in a key value pair
my family tree
Very useful
hm
I needed to learn JSON so that I can fix some Vs code code
ye
JSON FILE ON THE OTHER HAND
js uses json by default for objects
mhm
json is literally just a mapping
except it can take any datatype
as the value
AS LONG AS ITS STRING FRIENDLY
I'm friendly to strings
i didnt know this was spanish class
please speak here only about coding stuff
teach me the ways
i want to make obama simulator
that's the spirit

haydot come back to the cave
😔

How to install maps@on IOS guys?
im leaving the cave
not the place to ask but
im going to fight for the motherland
Follow this guide to see how you can install and upload maps
https://the-official-worldbox-wiki.fandom.com/wiki/Maps


i miss pretending to write code
it was fun
now im always anxious about my code

Stupid nub
actually
Vectors are crap
Haydot: 
although its fast on mutating it
but searching for items
Why would you use vectors
unlimited length
If ur not gonna use verctors math

LiSt
Linked list?
Whatever you wanna call it

csharp counts as one

Not an opinion
plus
list is the same as any other object
and linked list
are object based
so yeah-
Lists are pretty well optimized in C#
and also garbage collecting
Almost no difference than an array
I'm probably gonna pause the bot thing for a while
And its not always O(n)
and then it became history

nah
I think they use a hashmap
I'll come back to it in august most likely
and the project ended up in dump
who

I don't need to be able to find locations of items
In a vector
I just need to store something somewhere
Because opengl
And because I hate arrays
me too
I really hate arrays
I'm not a flat earther how could.you insult me like that
I'm a donut earther
😎
the universe is a donut
no
gravitational force
is one point
so by nature
its round
since in all 360°
there's gravity
and 360° is a complete circle
make that in a 3 dimensional world
and we have
a 3d circle
Stick earth
Earth is a big stick
This would explain why it's brown in some parts
They used hashmaps to optimize lists
The performance is very close to an array
Idk how they did it
I'm making this a theory
It had something to do with hashmaps
The stick up theory
Thats the only thing i know
me too honestly
but then it have to be ordered
meaning if an item got moved
it'll have to change the whole
thing
on the right side
atleast
so still O(n)
also fun fact though
python hash() returns number as themselves
hash(1) returns 1
Its the same in C# to add to the start or the end
Only when its the middle
If its a normal list its not very fadt
Linked lists are faster
But they use a lot of ram
yeah but nice tradeoff
Gotta study some math
Your brother apparently doesn't live in Syria
K bye

I got 77.5/100 on the maths test so I'm basically a ready to design the next space ship

i got 30/100
and school literally just assume im dumb
jokes on them i know how to program just not interested in your type of math

difference in skill
On my graduation from my last school
The principal was giving me the certificate or smth
what certificate
Some certificate I never read
I have like 4 certificates that are all in my resume because they look good there

I have quite fat binder with like 50 important papers I can't afford to lose
well 20 of them I don't need anymore
but everything else
I can't lose mins either..well I shouldn't lose them is better said
But oh well I'm sure I they aren't that important
I have 2 from school, one from introduction to work life thing and one from summer job
Tell me what is the 360 divided by the xbox esp divided by the quantum flactuation of divided of infinity and so on euth the big chungus regulairty of @($’dnxmzmcn 6 dimensional quantum dissonance with the flow of temporal paradox 
Not coding related 

you take a 1d array. then make it 2d. then 3d.
But
I understand 2d
Because it has a vertical side
And a horizontal side
But how will it have depth
Break time boyyyyyyyy
3D array is just a bunch of 2d arrays
So you have array one which is x y 0
Then array two which is x y 1
Which is a completely different array than array one
But how is that a single array
4d array xddddd
Think of a cube
Me
I've been wanting to make a color splash plugin for paint.net, to create a quick map maker for worldbox
Made up of smaller cubes
Like a Legos and shit
The cube is the array
And each small cube is an item
the array tesseract
Trying to generate code with novel ai be like

Yes
I understand that
Wait...
I just realised what all programmers needed without knowing it
3d IDEs!!!!
@grand otter I mean matters
hm
2d arrays can be used to create rooms for rouge-likes if you are very desperate
Like litterally draw the room with them
mhm
But to actually draw the things you will need to use nested for loops (one for each direction) and a foreach to go through the array
But this is only used if don't wanna do math I think
Not the nested for loops part that is very useful anywhere
Drawing the map with arrays is very desperate
@orchid frigate
3d arrays are just
[
[
[x,x,x],
[x,x,x],
[x,x,x]
],
[
[x,x,x],
[x,x,x],
[x,x,x]
],
[
[x,x,x],
[x,x,x],
[x,x,x]
]
]
if i remember-
its like
zxy format thingy
so uh
arr[z, x, y]
i like to imagine it as
the outer array as a layer
the inside as the 2d normal array
so z is a layer
layer 0 or 1 or 2
and we have depth

also my frequently used emoji got purged
i have no idea why
okay what the heck
i was searching for
"metatable in lua"
and google was giving me roblox crap

most roblox games are scripted in a modified version of lua
This is impressive and absolutely scary at the same time
❤️ Check out Fully Connected by Weights & Biases: https://wandb.me/papers
📝 The paper "Alias-Free GAN" is available here:
https://nvlabs.github.io/alias-free-gan/
📝 Our material synthesis paper is available here: https://users.cg.tuwien.ac.at/zsolnai/gfx/gaussian-material-synthesis/
🙏 We would like to thank our generous Patreon supporters wh...
that came to my recommendation
Yes that's pretty pog
but i didn't watch it
Not only generation but also animation and movement
I've also watched the previous one(s), I basically watch each of his videos and it's cool to see the progression made
next generation vtuber

ML is really good at these type of things
Vectors are better then arrays
i did it boys
i made a sleep function in C for Lua

now since i can't yet use LuaSocket
so sleeping the thread works than iterating indefinitely
Rei after doing a 1 + 1 calculator:
WE DID IT BOYS XDXDXDX EOGEBWI
👍 👍 👍

it actually took some timex 
the code is
#ifdef _WIN32
#include <Windows.h>
#else
// #include <unistd.h>
#include <time.h>
int nanosleep(const struct timespec *req, struct timespec *rem);
#endif
#include <lua.h>
#include <lauxlib.h>
static int l_sleep(lua_State* L) {
double duration = luaL_checknumber(L, 1);
#ifdef _WIN32
Sleep(duration);
#else
if (duration == (int)duration) {
struct timespec ts;
ts.tv_sec = duration;
ts.tv_nsec = 0;
nanosleep(&ts, NULL);
} else {
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = duration*1000000000;
nanosleep(&ts, NULL);
};
#endif
return 0;
};
int luaopen_libhalt(lua_State* L) {
static const struct luaL_Reg haltlib [] = {
{"sleep", l_sleep},
{NULL, NULL}
};
luaL_newlib(L, haltlib);
return 1;
};
i made this on vim btw

GANs are 
Nonetheless it's not only great With Animations it's generation quality greatly increased
only works on windows 
It sounds right
print("Hello guys.") ```
java players be like
system.out.println("Hello guys.");
Why u hef useless code
Trying to imitate haydot or smthing

And you could probably do it natively in lua
I do have useless code what you gonna do about it 
Idc if my program runs 200ms slower then usual
but doesnt lua already have that
asked a question on stack overflow
hope i dont get downvoted to hell again :)
first downvote, not looking good
Wtf is this bullshit https://youtu.be/4qtCEflr2sk
Apple has never cared for user privacy and never will
Craig Federighi is Apple's Senior Vice President of Software Engineering. Craig oversees the development of iOS, iPadOS, macOS and reports directly to Tim Cook, CEO of Apple. It was my pleasure to interview Craig Federighi over a quick FaceTime chat!
FOLLOW -
TIKTOK: http://www.tiktok.com/@ellyawesometech
INSTAGRAM: http://www.instagram.com/elly...
the whole YouTube page is licking apples boots (finnish saying but I made it a bit more appropriate)
and if they do care, holy shit they're bad at it
Happened to me when i used to be bad
Could always ask here
As we are more patient to bad haydot code
i gave all the info they needed and more smh stack overflow bad
but basically glfw fails to initilize
or it may fail
the problem is it doesnt fail but it also does lemme explain
so I have the following code which used to work:
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
using namespace std;
class Display_Manager
{public:
GLFWwindow* window;
int ammount_of_errors = 0;
int Create_Window(int width, int height, const char* title) {
if (!glfwInit()) {
ammount_of_errors++;
cout << "Failed to initilize glfw, aborting early" << endl;
glfwTerminate();
return -1;
}
else {
cout << "Glfw initilized successfully!" << endl;
}
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_RESIZABLE, GL_TRUE);
glfwWindowHint(GLFW_FOCUSED, GL_TRUE);
window = glfwCreateWindow(width, height, title, NULL, NULL);
if (window == NULL) {
ammount_of_errors++;
cout << "Something went wrong while creating the window, aborting early" << endl;
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);
not full btw. When i build it no errors are given, but as soon as I run it gives me an error when creating a window.
It gives me the same error as if i didnt init glfw. In the console, it says glfw initilized successfully
wow thats bigger then expected
window hints work btw i tried to remove them but that doesnt help
no
no
there's os.execute("sleep 1")
but its not native
it's actually really annoying that lua doesn't have it natively
yeah
it have a third party module though
LuaSocket
it have the sleep function
but since i can't compile it
because apparently my lua header doesn't work
i have to make it myself
what's the full error message tho?
damn
"exception thrown: write access violation. this was 0x50"
it's probably quite cool to do something like that tho
that's all?
doesn't that mean
pretty much
violating write access
holy shit, that's not a lot of information
do you see in he debugger what's in 0x50?
cpp sucks at exceptions
nope debugger doesnt have anything like that
I thought debuggers show the memory addresses
nothing has this value
hmmm this has something wrong with it
like the this this
both window and ammount_of_errors cant read memory
ye pretty sure
but is it a pointer
window is a pointer


















