« first day (2310 days earlier)      last day (2635 days later) » 

12:00 AM
I mean MALLOC_TRACE… well wait.
 
waaait
I lied
 
lol
 
yes I lied sorry
Counting is hard you know
Let me restart and get my abacus to be sure
damnit :(
That's not the leak sorry @bwoebi
 
??
 
user6061856
OMG only 13 mbs to go!
 
12:06 AM
It doesn't keep increasing
/me gives up and wait till it crashes again cc @Ekin
 
Fine by me :-) I'll try to see if I can spot anything in the mornin too
 
BTW that's just USE_ZEND_ALLOC=0 /usr/bin/php script right @bwoebi?
 
@PeeHaa yeah, you need to trace the memory allocations though
 
Will my table be slower if I use an index that is not numerical?
(MySQL)
 
Anonymous
@DaveRandom oh you wait until it's live to review... screw you :-(
 
12:18 AM
@JayIsTooCommon :-P
2 hours ago, by Jeeves
Plugin '{$plugin}' is now disabled in this room
 
Anonymous
I think it's abstract.. it makes the user think for a change
 
is this useful to anyone? :P
==2373== Invalid read of size 4
==2373== at 0x8FD44D: i_zval_ptr_dtor (zend_variables.h:48)
==2373== by 0x8FD651: zend_object_std_dtor (zend_objects.c:68)
==2373== by 0x90453D: zend_objects_store_del (zend_objects_API.c:178)
==2373== by 0x8ADB91: _zval_dtor_func (zend_variables.c:56)
==2373== by 0x8FD477: i_zval_ptr_dtor (zend_variables.h:49)
==2373== by 0x8FD651: zend_object_std_dtor (zend_objects.c:68)
==2373== by 0x90453D: zend_objects_store_del (zend_objects_API.c:178)
==2373== by 0x8ADB91: _zval_dtor_func (zend_variables.c:56)
 
That's just at shutdown, right?
or at runtime?
but still should be fixed
 
shutdown yeah
 
Anonymous
Also sorry if there's more @DaveRandom, I specifically asked @PeeHaa not to merge until you had seen it but he just wouldn't listen
 
12:25 AM
meh shit happens :-)
 
@JayIsTooCommon :P
Nope that's all I got for now @bwoebi
Will bug you soon when it all falls over again :P
tnx anyway
 
Anonymous
@PeeHaa :D
 
Anonymous
@DaveRandom how art thou anyway? Things starting to quiet down yet?
 
Currently I'm enjoying a relaxing session of creating a docker file
not relaxing, sorry, that's wrong
FUCKING FRUSTRATING ZOMGAAAAARRRRGGGHHH
that's what I meant
typo'd
 
Anonymous
:P
 
12:38 AM
Although admittedly part of the frustration is from past me being a fucking retard and doing all kinds of weird ass shit because I forgot about the -O option for wget
 
user6061856
 
user6061856
YOU GOTTA BE KIDDING ME
 
Anonymous
!!? How to install Linux
 
Search for "How to install Linux" (https://www.google.com/search?q=How+to+install+Linux&lr=lang_en)
• How to Install and Try Linux the Absolutely Easie… - 17 apr. 2014 - In this follow up to Replace the Retiring Windows XP with Linux we're going learn th… (https://www.linux.com/learn/how-install-and-try-linux-absolutely-easiest-and-safest-way)
• How to Install Ubuntu Linux (with Pictures) - wik… - How to Install Ubuntu Linux. Ubuntu is one of the most popular forms of the Linux operating system.… (http://www.wikihow.com/Install-Ubuntu-Linux)
 
user6061856
I almost had it downloaded.
 
user6061856
12:41 AM
40MB of internet WASTED.
 
user6061856
@JayIsTooCommon I like Ubuntu font.
 
@Terminal-JS atom.io
 
user6061856
@tereško Can't look at it now. It use internet. And I need more internet to download the brackets. U.U I'll look at it later.
 
are you from Zimbabwe or something?
 
user6061856
Me?
 
user6061856
12:51 AM
I live in Alaska.
 
17KB/s .. that's a fucking joke
 
user6061856
That ain't a joke.
 
user6061856
It's dial up internet. In Alaska. Doesn't get much better than that.
 
user6061856
Right now it's downaloding at 3.4KB
 
@PeeHaa I am reading a comment you left on a question saying that passing parameters by reference in general is a bad idea, can you elaborate on that?
 
user6061856
12:53 AM
It keeps jumping from 3KB and 20KB
 
@Alesana references are generally horrible, except for where they are better than the alternatives.
 
@Terminal-JS I pay 10$/mo for unlimited 4G on my phone
 
user6061856
@tereško Well, it's my mom's internet. I don't have my own phone. :P
 
user6061856
I think she pays 40 some dollars.
 
user6061856
A month for it.
 
12:57 AM
Hmm I am trying to think of what the alternative would be. I am using a foreach loop to that calls a function that inserts a row into a DB. I have $i which will be inserted into a non-auto incremental column. I want to, based off a conditional, insert $i and then increment it, or insert a completely different value in the same column.
 
@Terminal-JS I remember those speeds. When I was kid, those speeds were insanely fast.
 
... I usually end up using about 30GB per month on my phone
 
user6061856
@littlepootis Yeah, well files and website are huge now. O.o
 
I could download a whole game in under 10 seconds
 
user6061856
12:59 AM
20.55MBS OMG
 
user6061856
I used to have really fast internet.
 
user6061856
like 200MB download and 28MB upload
 
... that's with a single bar for receptions
 
user6061856
But I'm thankful at the moment. Because it's really fast right now.
 
user6061856
Usually it's like going at 3 or 8 KB. It's sticking around 20KB ATM
 
1:05 AM
my wired connection is actually kinda strange
I have semi-ok download, but my upload speed is almost always 90Mbps
 
user6061856
o.o
 
Anonymous
1:21 AM
Why are nullable scalars bad?
 
1:32 AM
@JayIsTooCommon they aren't inherently. It depends on what you do with them.
 
user6061856
What are nullable scalars?
 
user6061856
1:55 AM
NVM, I looked it up.
 
3:19 AM
woah different OpenGrok interface opengrok01.lxr.room11.org:8080/source
front page different, anyway
Oh wow it renders readme.md properly as markdown as well
Shame the layout still looks like crap
 
user6061856
3:51 AM
XD
 
user6061856
@DaveRandom I has awesome app
 
user6061856
Wanna see?
 
user6061856
4:08 AM
:P
 
Anyone have context for this commit? github.com/php/php-src/commit/… It breaks is_callable behavior for anon classes
Let's see if tests pass without...
 
user6061856
4:51 AM
o.o
 
5:15 AM
I don't understand the purpose of setting $callable_name when is_callable returns false.. Anyone have context for that?
It makes back-compat hard and makes the patch hacky
 
Mornings
 
@NikiC I tried to add SEPARATE_STRING but I have no idea how to use that macro
 
user6061856
6:26 AM
Morning.
 
user6061856
I derped the chat. :3
 
\0/
 
user6061856
YAS
 
7:14 AM
Hello
 
user6061856
Hello
 
user6061856
 
Plan it out?
 
"We prefer questions that can be answered, not just discussed."
I donno
 
Wireframe on paper yes.
Or whiteboard.
Design in photoshop.
 
7:31 AM
Aha you had told me about that one
 
posted on February 11, 2017

New Cyanide and Happiness Comic

 
hello
 
o/
 
\o
 
user6061856
7:55 AM
\o/
 
user6061856
@Alesana It is answerable. I was just looking for a pointer or two.
 
9:30 AM
morning
 
mornin
 
moinr
 
user6061856
mor
 
user6061856
:3
 
10:21 AM
mornings slackers :)
 
mornigns
 
ningmornin @PeeHaa
So... how do you (any of you in r11) manage passwords?
I considered buying a yubikey and something like 1password or fastlane.. and just change all pwds to complete random
 
I dont manage any of them
it's a fucking disaster
I have all passwords stored in firefox sync
 
lol =) thanks man, "its a fucking disater" made me lol
 
10:37 AM
Hi
 
user6061856
Hi. :P
 
user6061856
(mysql) Say I have tables users and notifications. Should I select users table to get the avatar or add a avatar column to notifications?
 
I would make a third table - profiles - associated with users via foreign key
 
user6061856
@tereško "via foreign key"?
 
user6061856
10:42 AM
I never messed with foreign keys.
 
you probably should google it
 
user6061856
Okay
 
user6061856
 
user6061856
I'm guessing you would want to separate users table and it's options?
 
@tereško im doing a perpered statment to put stuff in my database but im getting the error here "$stmt = $mysqli->prepare($sql);" with this error : "
Notice: Undefined variable: mysqli in C:\xampp\htdocs\snake\register.php on line 23

Fatal error: Call to a member function prepare() on null in C:\xampp\htdocs\snake\register.php on line 23"
do u have any idea on what that means?
 
10:57 AM
it means that the $mysqli variable is empty
 
@RonniSkansing keepass
 
probably the connection was not established
> Call to a member function prepare() on null
 
ohhh i named it wrong
ok let me try it now
 
this is the important part - it says that $mysqli contains null
 
yeh i should have noticed that
 
10:58 AM
k@PeeHaa seems like a nice free alternative that also works with te yubikey
 
now im getting an error on "$stmt->bind_param("sssssss", $bindId, $bindUser, $bindPass, $bindFirst, $bindLast, $bindEmail);" with Fatal error: Call to a member function bind_param() on boolean in C:\xampp\htdocs\snake\register.php on line 24
 
@RachelDockter stackoverflow.com/… ... it's not like you would be the only one
 
this is so confusing
wait a second
 
I would have used PDO instead, since it has better designer interface
> Call to a member function bind_param() on boolean
 
yeh someone else said that, i feel like im too invested in this
 
11:00 AM
the $stmt is false ... probably an error
 
!!? php mysqli prepared statement
 
Search for "php mysqli prepared statement" (https://www.google.com/search?q=php+mysqli+prepared+statement&lr=lang_en)
• PHP: mysqli::prepare - Manual - mysqli::prepare -- mysqli_prepare — Prepare an SQL statement for execution … Prepares the SQL query… (http://php.net/manual/en/mysqli.prepare.php)
• PHP: Prepared Statements - Manual - $stmt->close(); /* Non-prepared statement */ $res = $mysqli->query("SELECT id FROM test"); var_dump… (http://php.net/manual/en/mysqli.quickstart.prepared-statements.php)
 
@AdilIlhan never send people to w3schools
 
why
 
i did look at that yesterday and followed some yt guides, it was confusing but i swear this should just work
 
11:01 AM
@AdilIlhan because it is a harmful site, filled with bad practices and vulnerable code
 
really? hmm
 
@RachelDockter you should try setting the report mode to "strict": php.net/manual/en/mysqli-driver.report-mode.php
 
it seems to be a simple guide for beginners though
 
@AdilIlhan yeah .. what could go wrong by teaching bad things to people who dont know any better
 
user6061856
11:04 AM
@tereško Why?
 
@RachelDockter I suspect taht your SQL query has a syntax error in it
 
it was working fine when i was inserting data as a string
 
user6061856
NVM I read the messages
 
but everyone was saying its not secure that way so im trying prepared statment
 
@RachelDockter and they were correct
you probably should just show your code
 
11:05 AM
@RachelDockter show your code
lol
 
sec im almost done writing a question so ill just link it
 
user6061856
@RachelDockter Don't write a question, you'll probably get down votes.
 
Wes
hodor \o
 
user6061856
hodor?
 
i dont mind getting downvotes lol but ill pasta the code in here to see if anyone knows before i post the question
 
11:06 AM
hodor
 
<?php
$cookieName = "loggedUser"; //Name of the cookie im storing
$serverName = "localhost";
$username = "root";
$password = "";
$database = "snake_database";

$conn = mysqli_connect($serverName, $username, $password, $database); //Connect to the database

if(!$conn){ //If the database failed to connect

	die("Database failed to connect: " .mysqli_connect_error()); //Display an error message
}

$firstName = $_POST['firstName']; //Assign variables to the users inputs
$lastName = $_POST['lastName'];
 
... it sounds like something that will be covered under "help, my code is not working" closing reason
 
u could apply that reason to litrally every question lol
 
you are binding 6 values
but have only 5 placeholders in the SQL
 
user6061856
Yep
 
11:08 AM
aha ok let me see if this works now
 
user6061856
Also don't use SHA1 or MD5.
 
also, seriously, use password_hash()
and you dont need to close the connection manually
 
i will change the encryption after i get this working, everyones been shouting at me to do that lol
 
haha
it seems to be a homework
 
it is
 
11:09 AM
its my uni assignment
 
user6061856
Also, filter those inputs. O.O
 
user6061856
DOUBLE FILTER
 
@Terminal-JS no need, if using prepared statements
 
all in good time lol
 
user6061856
I always say
 
11:10 AM
if you make too secure application then your prof. won't believe that you have done this homework
lol
 
if he cant prove i copied it, im good
so as long as i know what it all does, thats fine
 
she has 3 months to make a simple site with login/reg
one can learn a lot in 3 months
 
theres alot more than that teresko
u should see the critea, i have to make api's and everything
i have no idea what that even is
 
user6061856
I learned how to do that in two weeks. @tereško
 
user6061856
With double filters. :D
 
user6061856
11:11 AM
XD
 
29 mins ago, by Terminal-JS
I never messed with foreign keys.
the quality of your education is quite suspect
 
user6061856
...
 
ok so it inserts the user in my database, but it has the user id of 6, even tho its the second user, because i deleted previous ones, is that ok?
 
user6061856
I haven't donea lot with MySQL.
 
@RachelDockter the primary keys get incremented automatically (it's a running counter, built in the table itself)
 
user6061856
11:13 AM
I've been focused mainly on PHP.
 
@RachelDockter yes that's how it works
 
user6061856
But right now I'm trying to study up on MySQL.
 
ok thats fine then, i dont need to use prepered statments for getting data out of the database right?
oh wait i do
 
$sql = "INSERT INTO users (user_id, username, password, first_name, last_name, email) VALUES(?, ?, ?, ?, ?)";
$stmt = $conn->prepare($sql); //Prepare to insert query to mysql database
$stmt->bind_param("ssssss", $bindId, $bindUser, $bindPass, $bindFirst, $bindLast, $bindEmail);
 
@Terminal-JS I recommend this book: pragprog.com/book/bksqla/sql-antipatterns
 
11:14 AM
you have 5 question marks. nevertheless, you send 6 different variables.
 
@RachelDockter you should
 
yeh i fixed it now adil
 
the idea is that you should use prepared statements for all quesries, that have variables in them
 
and you shouldn't handle the primary code in your code. the db would handle it.
 
ok will do
 
11:15 AM
@AdilIlhan you are about 10 min too late
 
i think i should change the encryption from md5 now though, to put everyone at ease
ppl got so angry at me yesterday lol
 
@tereško surfing on internet better than chat
 
@RachelDockter encryption is two directional, hashing is one directional
 
@RachelDockter why
!!? youtube one direction
 
Search for "youtube one direction" (https://www.google.com/search?q=youtube+one+direction&lr=lang_en)
• One Direction - YouTube - Pre-order the You & I single bundle including a remix from Liam Payne now! iTunes: http://smarturl.… (https://www.youtube.com/user/onedirectionchannel)
• One Direction - Perfect (Official Video) - YouTub… - One Direction's official music video for Perfect. As featured on Made in the A.M., listen on Spotif… (https://www.youtube.com/watch?v=Ho32Oh6b4jc)
• One Direction - Drag Me Down - YouTube - One Direction's official music video for Drag Me Down. As featured on
 
11:16 AM
because of how unsecure md5 is
 
do you mean that lol
@RachelDockter because it is md5
 
@AdilIlhan you will seen end up in my ignore list
 
@tereško sounds good
 
@AdilIlhan you homepage is wildly outdated
 
11:18 AM
@RachelDockter the problem with md5 is that it was never designed for secure password storage. Instead it is a "checksum" algorithm. It is what you use to make sure, that the data, that was received over the internet has the same "fingerprint" as when it was sent. Md5 es very fast. Which means that it also is very fast to crack.
 
and vuln. to multiple fun vuln
 
guys, may you please tell me what's the meaning of this sentence?
 
just sayin
 
ah ok, im changing it to password_hash now
@tereško i made the password field md5 in my sql database, should i change this if im using password hash now?
 
11:21 AM
you can change it later
just don't forget
I would just add:
$md5pass = md5($password); // @TODO: add password_hash later
 
i already changed it to $hashPass = password_hash($password, PASSWORD_DEFAULT); //Encrypt the password
i havnt tested it though
 
oh, ok
 
@Shafizadeh Your goals don't care about your feelings
 
@littlepootis ah I see, thx
 
@Shafizadeh there is a quote with a similar idea: "If you are going through Hell, keep going"
 
11:24 AM
@tereško hmm, do you thin they are similar? my understanding says they have completely different meanings.
 
the similar idea is: "stop whining"
 
Ah I see ...
 
should a password hash be a varchar(32) in my database does anyone know
 
I would set it as TEXT type instead
 
ok i changed it to text
 
user6061856
11:32 AM
@tereško Why TEXT?
 
why not?
each hashing algo has a different output length and you never actually searching the DB table using the hash
 
@Terminal-JS what filters was u saying earlier, i can only think of if somone already has the existing username then make them choose another
 
Is @bwoebi around?
 
user6061856
@RachelDockter You'll want to use Regex for strings and ints.
 
user6061856
@Ekin no.
 
11:39 AM
@Ekin yes
 
user6061856
XD
 
user6061856
@EKin He isn't here.
 
@bwoebi do you have a bit time to help me understand what the heck is going on on valgrind and gdb on another channel? :D
 
@Ekin what other channel?
 
that one maybe ^^
don't want to dump stuff here
 
user6061856
11:46 AM
o.o
 
i actually managed to make it so you can only register with a unique username using prepered statments and password_hash
proud of myself
 
yay
 
user6061856
YAY!
 
user6061856
Now go do the harlem shake
 
is it 2013 lol
 
user6061856
11:50 AM
Because you successed.
 
now i just have to make it so you can log in
 
@RachelDockter dont listen to him
 
user6061856
@tereško me?
 
do you have registration working?
 
11:52 AM
i do yeh
 
are you checking for errors?
 
im only checking for a unique username atm
thats the only filter i have
 
what about "password empty"
or "repeated pasword does not match" ?
 
i only have 1 password field but im gonna make sure its not empty
actually i should do that to all fields
 
user6061856
yup
 
11:56 AM
@RachelDockter are you checking for errors on the server side?
 
i dont think i need to
 
is your code scalable?
 
if everything is good client side, its just putting it in a database
idk what scalable means lol
 
dont worry bout it for now
just focus on your requirements
and when you filled them
you can iterate upon it
 
good idea
 
user6061856
11:58 AM
Some people say don't do validation on server side. I just laugh. What happens if they disable javascript? Your validation isn't gonna work.
 
@RachelDockter you should do server-side validation.
 
@Terminal-JS no people say that
 
user6061856
@Ronni One person did.
 
is there a way to bring data to a webpage from a php document, so if the username isnt unique i have this "header("location: index.php");" to go back to the register form, but how would i bring the errors with it
 
@RachelDockter then it's as if you don't do validation at all. I can forge a request to your page and send whatever I want, bypassing your client side verification
 
11:59 AM
@Terminal-JS sorry =/
 
user6061856
@RonniSkansing It's fine. :D
 
@trucy its only a assignment for school i dont have to worry too much about loop holes and stuff
 

« first day (2310 days earlier)      last day (2635 days later) »