« first day (1823 days earlier)      last day (3118 days later) » 

4:00 PM
well .. fuck
I made a culinary fuckup
it turned out that the pepper that I was slicing was really fucking hot and now all my fingers feel like burning
 
@PaulCrovella looking forward to that.. But you will not find that find (binary)
 
isn't that just (string)?
 
yes
b"String" === (binary) "String"
 
wasn't there some time a binary string thing prefixed by b? or was that PHP 6 only?
 
nope
that still works
 
4:02 PM
@RonniSkansing === "String"
 
@RonniSkansing
 
@bwoebi it is still valid, just does nothing
 
@tereško I usually use palm oil... but, I guess olive oil works too thekitchn.com/hot-pepper-hands-an-easy-way-t-153769
 
@ircmaxell yeah, didn't expect it to do anything anyway… just why do we still have it? :-(
Why do we have legacy we never used in any released version in PHP 5.3+ and PHP 7? :-S
 
@bwoebi I'd like to do that at some point, for (real) and (double) particularly
@MadaraUchiha PHP implements cast operators badly, so foo(int); is parsed as the name foo, followed by a cast to int, followed by a semicolon. Luckily this doesn't cause problems usually because people don't tend to name constants 'int'
 
4:06 PM
@Andrea Well… just go ahead and sneak it into PHP 7.0 write a RFC for it…
 
@bwoebi IIRC Hack banned them :)
 
yeahhh
could be trivially corrected, too
 
@Andrea Well, then stop being worse than Hack…
 
posted on October 13, 2015 by nlecointre

/* by Le chat noir */

 
4:10 PM
@MadaraUchiha don't announce you have several questions.
 
@bwoebi I've seen quite a bit of code with (binary) casts. I'm thinking there was some mis-information that caused this practice to perpetuate.
 
@Trowski we shouldn't have added it to 5.3 at all…
 
@3.14159265358... Wait, did you just flag me?
 
Are you serious?
 
lol
Room11 ftw
 
4:13 PM
@bwoebi No, it shouldn't have been. I'm sure someone thought it would be great because you could write code for both 5.3 and 6.
 
Who flagged a damn catcake >=(
 
He did indeed. Was counterflagged so fast I couldn't vote lol
 
@Trowski was a 5.3 planned at all back then?
 
cat memes, confusing newbies since 1991 @3.14159265358...
 
I don't believe so.
 
4:20 PM
@FélixGagnon-Grenier @MadaraUchiha you said you had a question
 
@FélixGagnon-Grenier ?
 
@3.14159265358... I think you totally missed the context there...
 
"they has" or "they have" ?
 
they have multiple choices
but th3y has hax00red me website
 
4:23 PM
Is there any reason fputcsv isn't compatible with RFC 4180 (by default)?
 
@FélixGagnon-Grenier what? both "have" and "has" can be correct in his own position ?
 
RFC 4180 requires the escape character to be " and requires \r\n line endings
 
sry @Sajad. "they has" is not valid
it was a lame attempt at humor
 
ah tnx
 
@Machavity look at the photo ^
 
4:25 PM
LOL!
 
i'm trying to figure out if zend is worth it in 2015
 
lol, i'm asking the pros
 
Anonymous
that also can be googled.
 
Anonymous
Google everything \o|
 
4:28 PM
I can't tell if we're being trolled or noobed here
2
 
so no one in here has an opinion?
 
=] nope
 
can you please tell me what is mean of =] ?
you always use it ...
 
yea its the same as :)
 
Anonymous
the = is the nose, and ] is the mouth.
 
4:29 PM
or really?! I see
 
like a smilie / happy face
[=
 
I got it
 
@bwoebi submit a PR to clean it
 
@ircmaxell right… that's what I'm going to do.
 
most of the time sajad asked what? why you removed it?
 
4:32 PM
like a swan going back in time and getting man-handled?
 
Anonymous
Most of the time @Sajad asks a question this is what I feel
8
 
Anonymous
corrected gif ^
 
@samayo :) !! other are agree with him?
 
Anonymous
@Sajad no hard feelings though, because [1] that was joke, [2] this is the internet.
 
:-)
then I try to ask question less than always
 
4:35 PM
I did not understand the comparison.. but I liked the gif
 
@samayo thanks for telling me my problem
 
Anonymous
@RonniSkansing I like to grab him by the neck and throw him out of this room.
 
@RonniSkansing You've never wanted to grab someone in Room 11 by the throat and throw them into a pond?
 
lol rarely, I am loverrr.. not a fighter
 
Anonymous
You should hang out here more often :p
 
4:37 PM
heh.. Actually I was thinking @Sajad most have learned alot and seems to be doing quite the effort for a long time to improve and that part I like
 
either gif could've worked. at first I thought he was summoning a swan to sic on him.
the if thing has been a major breakthrough
 
the arrow looks like an old-timey captain's hat
 
@samayo lol this gif is epic :D
 
@MadaraUchiha I don't get it
 
4:44 PM
@PaulCrovella the old-timey captain's hat looks like an arrow
 
touché
 
@ircmaxell eih… well… I'm not sure now. There are weird things going on in this code… that escape character means: do not escape when preceded by the escape character or the escape character is equal to the character to escape…!?
Whatever I'm doing, I must alter behavior… And I don't really feel confident about doing that here
there AFAIK is no way to make fputcsv() properly double the enclosing char, regardless of which character precedes this one… :o
 
Anonymous
@NullPoiиteя the guy seems to have plenty of experience :P
 
Abe
4:47 PM
i usually adjust timezones on the fly in the template, but since i'm going CQRS, i was thinking i could do that when fetching the data instead. supporting this idea, there's the fact that some data sometimes needs to be handled accordingly to the display timezone (like, group events by user's timezone days), rather than UTC. so why not using always the user's timezone instead? opinions?
 
@RonniSkansing true but google is also helpful in 95% cases and in rest 4% we need better phrase only 1% cases are real :)
 
=) 99% noise ratio...
 
@abe consistent representation of the dates in the store yields it's own benefits.
 
Abe
what do you mean?
 
@abe you are asking about storing the date in users timezone in the data store right?
 
Anonymous
4:54 PM
@Orangepill congrats
 
@samayo Thanks
 
Abe
datetimes in the database are always UTC. where would you convert them to be displayed to the user (which uses, say, CEST) ?
 
Anonymous
Is the new job better? moar pay, closer to home, ... @Orangepill
 
more pay and I'm working from my basement.... best of all I'm not the only dev
 
Anonymous
wow, didn't know you were the only dev before. That must suck
 
4:56 PM
@Samayo ... that's the reason I started hanging around here
 
Abe
being the only dev is great. it's like a dictatorship. everybody listen to me like i know what i'm doing! :D
 
@samayo some time it sucks more when you are only developer who maintain server side of 20 Android developer :) its like every day create new server write code for there request
 
Anonymous
Also the enormous responsibility you have to bare if something goes wrong :/
 
@samayo i tried that work for month even i went office on Sunday and Saturday 9am-11pm and after 1.5 month i just left job without even telling them ;)
 
@samayo yep... not only did I have to develop the systems I had to ensure everything remained running.
 
5:03 PM
@Andrea I don't think so.
 
@Orangepill so maintenance nice .. no work load
 
I was putting in on average 70-80 hours a week... and that was an average ... some weeks where really bad.
working 76 hours straight is not a fun time after you are out of your twenties.... especially if you are going at it alone
 
@Orangepill 70-80h => 75/6=>12.25h/day ?
seriously!
 
@NullPoiиteя Yep... 8am - 6pm have dinner with the family tuck everyone in then 9pm - 1-3am
 
Anonymous
That is just too harsh for someone married with kids.
 
5:09 PM
@Orangepill i am so lucky then my office time is 10.30 -6 and 1-2lunch, 5days week
 
Our shop ran 24hrs a day 6 days a week... It was a fulfillment/marketing company so we did a lot of manufacturing type work.
 
\o/ after two weeks I have a decent pc again
 
@peehaa doubt it... it still has windows on it right :D
 
Yes it has :)
$password = password_hash(md5($password4), PASSWORD_DEFAULT);
 
5:18 PM
@PeeHaa echo md5('WHY!?'); //6c1843bde9f93b9e1064082de9f286f8 (in case you were curious)
 
:P
The creative ways people are still managing to fuck up password hashing always amaze me
 
@peehaa yeah... you can't trust md5 on it's own.... need to push it through a cryptographically secure hashing function
 
I shouldn't say stuff like that ... some noob is going to take and run with it
 
Totally saved the day.
 
5:22 PM
@PeeHaa Why would anyone do such a thing. Why would you post this here? Do you hate us? Do you want to see us writhe and suffer?
 
@Charles Dunno. Because. Yes. Yes
 
@PeeHaa you should base64 encode before md5ing to make it much more secure
 
Anyhow the sauce
@Orangepill and rot13 afterwards rite?
 
I hash everything to 4
 
5:25 PM
For all downvoters: If you're downvoting just because of the password_hash(md5(, don't. — Madara Uchiha 23 secs ago
 
@PeeHaa It's a pity that "This question is stupid" is not a valid reason to close
 
@Machavity I have no idea whether the question is stupid. I know OP didn't do his research (looking at the docs) and/or shared all the needed infromation in his question. It's a new OP though so I will let #2 pass
 
@PeeHaa That's what all the cool kids are doing these days
 
@PaulCrovella Interesting. I hash to 9
 
FFS I started writing a fancy answer when he modified it
For all interested:
## The woes of double hashing

What is a hashing function? A hashing function is a function that takes arbitrary input, and returns output with a uniform size (oversimplification, I know). What does this mean? Here's my hashing function:

    function myHash($input) {
        return $input[0] === 'A' ? "1" : "0";
    }

This hash function accepts any sort of string input, and returns an output of a uniform size. Either 0 or 1.

That's not a very good hashing function. It's too easy to find collision (in fact, "0" would be the output of nearly every string you fit in there).
 
5:30 PM
 
is phpstrom terminal working fine with windows10? for me its not loading
 
@NullPoiиteя Be a man and re-install win7 again
 
I have 1 db question. I have records with 10 million records of users which contains date of joining column . now I want to split this table month wise .is there any best way to do this?
 
@PeeHaa It's spammy but contextually helpful.
 
@Charles But it is not related to the question
 
5:33 PM
really windows 10 is nothing more than free piece of crap:(
 
@PeeHaa It's related to the wtfery surrounding hashing the password before hashing it.
 
Abe
@PeeHaa if you are working internally with UTC datetimes but your user wants dates to be displayed in CET, where would you convert them?
also, evening o/
 
@Abe Ha!
This week (or last week) I learned to use momentjs
It still sucks, but it's the best the least bad I have ever used
 
Abe
@PeeHaa did u think that was a joke :P
 
@John you can select YEAR(col) MONTH(col)
 
Abe
5:35 PM
@PeeHaa why js lol?
actually that's not a bad idea, after all
hum
 
@Abe Well in your specific case you could hardcode CET, but that will end bad in the future
Uggh @JayBlanchard on the off chance this reaches you I have no idea how to fix the question now...
 
what in the hell did that question turn into
 
@Abe Next time your users want to display it in their own TZ time.
 
@Gordon ping for a rollback war: stackoverflow.com/posts/33108720/revisions
@MadaraUchiha post that
 
you know, I'm willing to bet dude is storing it in like varchar 20 or something
 
5:40 PM
@NikiC what would you recommend?
 
@ircmaxell locked
 
thanks!
 
@Gordon I'm fairly certain you were too late though ;-)
 
IMHO, that question is about the combination of md5 and password_hash, not the way it was edited
reading the comments, it's clear that's what an answer needs to provide (exactly what @MadaraUchiha writes above)
 
5:48 PM
Neh. No need for that
No reason for that comment
I would have replied but it's a crap comment fest as in already
 
i wonder if # of comments factor in to the hot network questions thingy
 
Don't think so. It's a big factor in attracting mods though :)
 
@ircmaxell @Gordon But now I can't post my answer :D
 
Yeah some mod hint hint should remove the lock and cleanup on aisle 6
:-)
 
@Gordon For how long did you lock it?
 
5:55 PM
@MadaraUchiha a day
@PeeHaa I am busy atm. Dont have time to clean up right now.
 
@Gordon Alright, I'll hold on to it.
 
@Gordon Busy? It's 20:00. You should been sitting comfortably on the couch sipping a whiskey by now
 
For all interested and for further reference should this come up ^
Someone should totally make a canonical about this if it's not yet out theere
 
similar questions are out there, though not that exact one
 
And then ping me about it so that I can award them with a 500 bounty
 
5:58 PM
lol
 
@ScottArciszewski I'm not joking.
Have a look at my profile.
 
I was loling at the whiskey remark
I know you're serious :P
 
@ircmaxell Mmhm
 
6:01 PM
@MadaraUchiha hmm... what's a good canonical post?
 
I just had a fun experiment idea
 
@PaulCrovella Any canonical post that creates value. Extra points if you can close a bunch of questions as duplicates of that.
 
@John i) make your code handle having the data split over the current table, and the tables it will be moved to ii) write a script that move the data 100 or so rows at a time. iii) Schedule that script to run every 5 seconds.
 
gotcha. k.
 
@Danack Eh?
GROUP BY YEAR(record_date), MONTH(record_date)
What's wrong with this? ^
 
6:05 PM
full query please
 
is this MySQL?
:P
 
@ScottArciszewski This is the PHP room. MySQL is a safe assumption 99% of the times.
Saner databases can be found mostly in other rooms.
 
heh, I build on postgresql :P
 
@MadaraUchiha what's wrong is that you forgot to include either the error message or full query, making it impossible for anyone to know.
 
6:13 PM
@Danack No, that's not what I mean
He asked about chunking his table by date, right?
 
@ircmaxell it's glorious
 
Why not simple use a SELECT with a GROUP BY?
@ircmaxell Wait, what?
Really?
That's actually a thing PHP does?
 
:-D
 
@MadaraUchiha It's a windows thing
If the path doesn't have a driver letter, it's implied that the path is on the current drive
 
well, we do the \ to / mapping
 
6:21 PM
@MadaraUchiha Because MySQL is shit. Even if you write your queries to be efficient, at some point having large tables gets to be a pain in the butt. e.g. altering large table can take hours which gets really boring. Additionally there could be different regulatory rules about how reliably data needs to be retained and/or anonymised after a certain time period has been passed. aka sometimes it's okay to just answer people's questions rather than try to be smarter than them.
 
@ircmaxell I always thought that was a windows feature
 
@ircmaxell And thank god for that
 
why was this is "newest" stackoverflow.com/questions/29330021/… ?
I do of course need to update my answer, but I find that odd
 
Abe
6:38 PM
@ircmaxell but that's vale! and php! a very successful combo! :P
 
for people who have read Neuromancer: youtube.com/watch?v=sjPW9n3H8nI
 
dahell... Fred -ii- just ragequit
 
Where?
 
@MadaraUchiha Clearly a master of kung-jew.
 
6:44 PM
lol
 
@Charles Nah, that's jewjitsu.
 
@MadaraUchiha Nice
 
@Machavity I am done here. Deletion of my account is now in progress .. he posted a now-deleted answer on meta.stackoverflow.com/questions/307977/… and bailed. I didn't see what led up to it.
 
@MadaraUchiha Michelangelo would be proud
@PaulCrovella Holy crap. Yeah, you're not 10k so you can't see it but man he went postal
not that I blame him. This guy isn't exactly exemplary of SO...
 
that sucks. dude was all over helping keep questions sorted and shit
 
6:49 PM
@Machavity Wasn't his last ban until like 2017 or something?
 
@Charles No, it expired in June
 
Abe
@MadaraUchiha rofl
 
@PaulCrovella wow, that sucks...
 
7:06 PM
that's somewhat sad. I've never once saw Fred lose patience with anyone, no matter how new, careless or rash, tirelessly explaining the same things over and over again.
 
by the looks of it, that Fred character was mostly feeding the vamps .. so .. good riddance
 
hurts a bit... but yeah, he did that. harsh paradox that he seemed a genuinely gentle guy
 
I am done here. Deletion of my account is now in progress. rage quit
 
lol
 
@FélixGagnon-Grenier if this were against anyone else I'd think less of him. But I've dealt with the other guy and he's a jerk
 
7:12 PM
yeah, CommonSense pretty much is... his harsh way of saying things still helped me understand things at a somewhat fast rate, fearful that I was that he'd punch me in the face through my screen.
 
@marcio you pinged me?
 
@Gordon Might wanna lock this thread stackoverflow.com/posts/33108340/revisions
Nm, it's deleted
 
there are already 2 votes in "undelete"
 
@Machavity its just require one more undelete vote :D
 
Bleh. Still needs locking then
 
7:14 PM
i just want to see who are the tow other guys
 
@MadaraUchiha what did you tag me for?
 
@bwoebi sorry, I was typing and alt+tab'ng like a boss and ended up pinging you here
 
@marcio well, you must've fucked up really badly to end up pinging me accidentally :-D
 
nah... I was going to say something, switched to text editor and then to a terminal + [enter] but the cursor was here, nevmind :P
@Andrea did you report as bug? this one seems fixable.
 
@marcio it could be fixed eventually, might need reserved words though
 
user895378
7:32 PM
o/
 
@Andrea you know what, let it be, a global const array = 3 is not real code anyway.
 
user895378
So ... does a zts build now === an rwts build?
 
my brain just now saw "zfs"
 
@rdlowrey huh?
 
user895378
zend thread safe -> rogue wave thread safe
 
7:37 PM
I'm so slow ...
 
@rdlowrey … I still need some Aerys todo list…
 
user895378
@bwoebi I will be able to create one at the end of the week. I've just been super busy these last few days. Finishing things up this week so should have a bit more time after that.
 
user895378
I feel guilty about my online absenteeism.
 
@rdlowrey good, that should fix it ...
 
7:49 PM
had enough of today, night all ...
 
there is a mini-sale on Steam (stealth games) .. but only must-have in it are the both Deus Ex games
 
the old ones?
 
user895378
@JoeWatkins nn
 
7:59 PM
hey guys
new to PHP
 
I'd add vampire the masquerade to that list though
 
check the particular line
i forgot what that is called ..
 
a static function call?
 
@FélixGagnon-Grenier it's not on -80%
 
True that @tereško. only -75% :p
 
8:01 PM
yeaah true
 
well, winter sale is not too far .. if it's not -80%, it's likely to be cheaper in about 2 months
 
IIRC, I bought my XCom with -90% on the previous winter sale
 
!! I sooo wanted to try out long war that I couldn't help but buy it full price.
 
and how was/is it?
 
8:05 PM
very very difficult.
 
yes, that it is
 
ironman is just unthinkable
and everything feels more real (as far as real goes in the context :p)
 
/me is currently playing Neverwinter Nights 2 (on GOG)
 
and... are you playing a dark elf ranger with two scimitars and a black panther companion?
 
no, I am playing rogue (some snake-people race)
close enough
 
8:14 PM
drizzt
 
loved those books
 
yeah they are quite the thing
I had quite a shock when I realized it wasn't fit as a role model
 
user image
2
 
@DanLugg looks like you are using PS4
 
user5029208
Quick Question I have a directory that will hold .csv files that are created via php what permissions should i give it. 755 don't seem to work 777 too loose
 
@rdlowrey I'd just like you to stop promising things you won't held… yeah, you can't see what comes in future, but it's disappointing to see it happen that often… Sorry ;-)
 
"755 don't seem to work" in what way?
 
Please just promise when you're sure with a higher probability @rdlowrey Thanks :-)
 
user5029208
is it suppose to?? is this recommended?? felix
 
8:34 PM
I can't make any sense of what you ask, but yes, 755 should be ok with directories
 
user5029208
then ok
 
can we change the mysql timezone with queries or using phpmyadmin i dont have admin rights to server so i cant change server local time
 
ThW
@tereško wtf?
 
8:49 PM
uhhhhhh
 
@tereško :D
 
stackoverflow.com/questions/33111851/… --headdesk-- --headdesk-- --headdesk--
I will give the asker points for originality, though...
 
woah, Dmitry and I agree on something ;-D
 
@ircmaxell try buying a lottery ticket
.. just in case
 
nah, we actually agree more than that
 
8:56 PM
Are there php guides this room recommends? I ask because I know the python room has specifics guides that they point out are poor to learn from.
 
@Programmer The PHP manual is so well documented, most PHP developers rarely go to outside sources, except maybe StackOverflow when Google thinks the answer is better than the manual entry... (I feel sorry for the Python devs, honestly)
 
user895378
The manual really is good ... even with all the missing stuff it's still an amazing resource
 
Thanks, have to start learning php, thought I'd ask the pros. Python is the same way though, to be honest.
 
I wouldn't dare speak for this room, but lately this no framework guide really helped me wire together different notions I wanted to learn better.
 
There are just some guides that make it harder to learn.
 
user895378
8:58 PM
just don't ever trust w3schools
 
A good understanding of general OOP will put you far above most PHP devs, honestly.
 
@FélixGagnon-Grenier that's more an advanced-level resource
 
Thanks everyone.
 

« first day (1823 days earlier)      last day (3118 days later) »