« first day (2524 days earlier)      last day (2424 days later) » 

9:00 PM
@Wes have they already recovered from the 3000 disaster?
"already"
 
Wes
it was necessary imo
 
it was poorly managed
 
Wes
unrelated, are simple math operations opcached in php?, like if i write $a = 2 ** 3; just because i want to emphasize that's a power of 2, will it be calculated every time it is hit?
 
@Wes compile time optimization: 3v4l.org/s07u3/vld#output
I have no idea what's actually optimized out like that.
 
Wes
any expression without a variable could, maybe?
interesting, a lot of stuff gets collapsed
 
9:39 PM
@Wes It depends on what version of PHP you have
 
I have finally completed a PHP file that extracts a zip file from a URI or the standard input, and returns the URL the zip file was extracted to. (the URL is returns contains a hash of the file's contents, so there shouldn't be much collisions)
Here's a link to the source code if you want to steal read the code or something: gist.github.com/Jenna3715/d5830930d07a46fc85b6fbaf681caac9
 
9:56 PM
@JennaSloan what if the zip is really large
 
@IROEGBU I have no idea
It'll probably generate an error of some sort
 
@JennaSloan you should probably test it
 
@IROEGBU It gives you an Internal Server Error
 
10:15 PM
@JennaSloan you should probably fix it
 
I just put a set_time_limit in it
 
@JennaSloan what if the file is so large that it exceeds the time limit you set currently?
You'll fix by increasing it?
 
11:00 PM
It looks like set_time_limit didn't do anything. :/
 
@JennaSloan so, obviously hashing the whole file isn't the best way to protect against duplicates
 
I don't know... it extracts at least part of the zip file (might've done the whole thing, haven't checked)
I think extractTo extracted some of the files, but then failed and returned false
I think I'll just add a file size limit
 
Wes
11:54 PM
@Saitama what kind of drugs did they use when they wrote the lyrics of this youtube.com/watch?v=jAArMhnuciQ i want to know
 

« first day (2524 days earlier)      last day (2424 days later) »