Hey guys! I'm trying to do some reddit webscraping but for some reason, my querySelectorAll() returns no elements, but when I do it in the chrome console, I get all of the ele...
Okay I got a question, does the $_SESSION variable get destroyed each time there is a new request from the same device to the server but the data that it has stored get kept? ...
Oh, figured. But why should I be checking the type? Is there a case where the split().reverse().join() end up being null or something 👀
Is there any way to run npm commands on an android device? I can't seem to find anything on it, just stuff about compiling and running NodeJS on android
Would anyone understand why my T.V mutes itself automatically whenever the volume gets too low and then unmutes itself when it detects sound? 👀🤔
So, it goes to the end of the string with $, anything before the $ in the regex will be what is captured. Since it wants to remove a word at the end of the string, it uses \w ...
Guys, how can i swap an array of structures? Like say i only have 1 structure declaration (a) that has 3 copies of say structure "Student". How can i swap "Student" around i...
Hey there! I'm a beginner in C, and I was wondering how i could reset a specific struct in an array to just default values? I know I can just do each individual value for the ...
Hey! Could someone help me out? I wanna dynamically make an array that groups items by two and if it doesn't fit comfortably in two, then to just give it its own group. Exampl...
Maaayyybeee something like this? $files = glob('./*'); $regex='/.+\/(.+)\./'; foreach($files as $file){ if(is_file($file)){ $results = array(); preg_match...
Also wait why do you wanna encrypt a password for SMTP? Are you using other users emails and passwords to send out emails? Or are you just doing your own stuff. If you're doin...
Hey, I was looking up on *(int*)x and I understand it's a pointer to an int which points to x but I was confused on the use case. I was wondering if anyone here could give a e...
New concepts? Like for example, when ES6 was released, that changed a lot of things and you needed to learn those things to utilize it in your code. Make sure its all modern a...
Maybe cause there isn't really an efficient way of calculating how many elements is in an array? 🤔
Make your own code, why not put the effort to learn how to do it? What if something goes wrong with the code? You won't understand how to fix it and you'll be back to square o...
Make exceptions for specific groups? 👀🤔
I got a pretty noob question here as I'm just a beginner student in C, but when you compile your main file, does the compiler also compile every other C file in the same folde...
Aye I don't use SQL often, so I'm wondering what's the issue with my command here to add a new account_id column? It says there's a syntax error near 'ADD PRIMARY KEY (account...
Hey! How could I access a structures variable with a string in C? I want to be able to just assign a string to a variable then pass that variable into the structures [], but i...
I remember this being brought up before const obj = { 'foo'() { console.log('wut'); } }; obj.foo(); Is it possible to make the functions inside this to be async?