kλletaa
if you want to do stuff across a network in the socket fashion look into websockets
Victor D.
@Luke You should search for Beej's Network Programming
Victor D.
it's a great material to start with sockets, plus is free and for free
Dima
if you want to do stuff across a network in the socket fashion look into websockets
this is a bit kinda misleading (it’s something a bit more than just sockets)
kλletaa
this is a bit kinda misleading (it’s something a bit more than just sockets)
yeah sorry i don't know jack shit about websockets, i should've added that
War Room Admin
@Luke You should search for Beej's Network Programming
Appreciate it EDIT: Really great read, highly recommend
Fathi
hi
Mat
hi
Hey!
Sai Meghana
How do you solve such questions where there are so many possible combinations ??
Sai Meghana
Nikolas
ok that's a new level.
Nikolas
Not only a photo of a screen
Nikolas
but it is even rotated
Mat
#howtoask
Grabber.$
I'm the IT tech at a private university. I got called to an "emergency" in a teaching room. I arrived to find an IT lecturer standing in front of a blank screen, head in hands, dancing around in a blind panic. "The computer's broken! No picture, no nothing! HELP! My class is waiting!" So, I took a look inside the console. PC is switched off. I pushed the button, the computer started to boot - and the huge screen of the lecture theatre lit up with the Windows logo. I looked up at the terrified teacher with sweat rolling down his face, then I looked at the class of fifty students watching expectantly and I made a choice. I reached into the back of the console and pulled the power cable out. The screen went blue. I unlocked the console, pulled out the computer, opened it up, did some useless poking around, disconnected and reconnected a few things, put it back, announced to the class that there had been a hardware problem, and booted it up again. As I left, I whispered in the teacher's ear "The computer was off. You owe me big time." and walked out. The next day a crate of beer arrived for me at reception.
Grabber.$
Bro code 👍😂
Anonymous
How do you solve such questions where there are so many possible combinations ??
Time complexity, good implementation of algorithms and some trial and error , also depends on the code, language, architecture etc
Hayk
And when the day is coming go to the south pole :D
Anonymous
Well done
Dima
#ot
Dima
Sai Meghana
Say a website considers the presence of atleast one digit, lowercase letter, upper case letter n one special character.. as a strong password.. provided it is 6 characters long.. and the user gives a password.. I have to write a function that returns the minumum number of characters needed to make the password strong. I wrote the code but only half the test cases are passing.. I'm having trouble figuring out where it is going wrong
Sai Meghana
Sai Meghana
The special characters accepted are: !@#$%^&*()-+
klimi
Interesting
Dima
Use regex
klimi
Using pointers to access array this way I never saw that
Artöm
Do you have to use *(a + i) instead of a[i]? My eyes hurt
klimi
Anonymous
Nikolas
I didn't read all of it but the lastes if of the for loop seems weird...
Artöm
Using pointers to access array this way I never saw that
We were taught to use address arithmetic as a practice. But it was like 1 class, and then one should use [] notation
Nikolas
why are you comparing with >= and <=? You are checking for exact character you should use "=="
klimi
We?
klimi
If password is lesser that ! It passes
Anonymous
We?
guess it's (me, myself or I)
Nikolas
the one with all the symbols
klimi
Lol
Sai Meghana
the one with all the symbols
oh right, i forgot to change that
Nikolas
any char that comes after "!" in the ascii tables would make the if true
Artöm
Big if is just bonkers. Maybe you should use switch?
Sai Meghana
Sai Meghana
Big if is just bonkers. Maybe you should use switch?
its going to be a really long expression then sint it
Artöm
Bro your locals are damn uninitialized
Nikolas
lol is that hackerrank?
Sai Meghana
*isnt
Mat
OMG what's that if statement
Nikolas
Bro your locals are damn uninitialized
oh lol didn't notice that
Sai Meghana
Mat
All of that is so wrong
Anonymous
Wim
OMG what's that if statement
If I wasn't learning, I wouldn't do it that way?
Sai Meghana
OMG what's that if statement
i wasnt sure if the spl characters in the question are the same order as in ASCII
Nikolas
switch (password[i[): case '!': case '@': all the other cases case '+': spl++
Mat
You can compact the 4 ifs that increments need
klimi
Where do you init need
Sai Meghana
i declared it.
Nikolas
Where do you init need
also this, all your variables are not initialized
Sai Meghana
i thought declaration meant intialization to zero?
Nikolas
i declared it.
so its value is undefined
klimi
i declared it.
You need to init it because you do arithmetics with ir
Anonymous
Garbage
klimi
It can be 0 it can be 194472
Mat
Declaration ~> That variable must exist
klimi
Anonymous
int num; // declaration