« first day (1405 days earlier)      last day (3540 days later) » 

4:00 PM
@ircmaxell Shifts > 63 bits are already warned against by the manual. We explicitly tell you not to do that. If you want a negative shift, it'll throw a big fat E_WARNING. If you really need the old behaviour, it's possible to work around it.
 
eih
 
posted on August 21, 2014 by kbironneau

/* by MonsieurLeMarquis */

 
LOL
 
@AndreaFaulds lol
 
4:07 PM
@AndreaFaulds He put it on list.
 
that one is better
 
(Probably how you found it)
 
@LeviMorrison No, Twitter.
It's on the list? Even worse :P
 
OH from a colleague in a silent room: "Oh good, jailbait.ninja is available"
(we were discussing .ninja domains earlier)
 
oh good lord
 
4:15 PM
@Jimbo I don't like where this is going
 
It doesn't go anywhere, I presume it was in humour as some people snorted :-)
 
http://thecodinglove.com/post/88651605723/customers-expectations-vs-final-product

whahahaha true in some cases :P
 
Well I know it was in humour, they're lovely guys. Just... sometimes a little inappropriate
 
@AndreaFaulds Neither will his colleague when the NSA reads the transcript
 
LOL
 
4:20 PM
@AndreaFaulds Points are not totally invalid, it's a tricky balance
 
My delicious trending algorithm lol - gist.github.com/anonymous/1b7a3163ab16002f38b6
 
user895378
@DaveRandom Nah, the NSA's algorithmic filtering puts things like jailbait into the "watch for fun" bin. Not the "watch for arrest" bin :)
 
She rushes to help, then stops. -_- don't get it.
 
@DaveRandom Oh I agree.
I wonder how many existing apps rely on the wraparound thing... but then, I also wonder how many assume it doesn't happen.
 
4:24 PM
@Fabien She got safe up there :P
 
I remember being in Japan and there was this very old guy and he was carrying this HUGE sack up the elevator and he just started to fall backwards. I instantly sprinted up and caught him before he rolled more than a few steps he was fine. But it was just funny how no one else reacted. Even my wife just sorta stood there. Not saying they didn't want to help but it's funny what goes through your head when you see these things.
 
indeed: PHP related only has 2 pics :(: thecodinglove.com/search/PHP
 
@Fabien That's a cultural thing.....helping someone who has had an accident would embarrass them, so quite often people will just walk past.
 
@Danack ...because the accident is not embarrassing at all... :-P
 
4:31 PM
1 message moved to bin
 
Hey @Danack when are you getting to manc for phpnw? Friday some time, presumably?
 
looks like I will have to do some answering of old + posts, to get a gold badge
 
@DaveRandom If everyone pretends not to see you have an accident, you can pretend you didn't have an accident.
 
Yeh but... escalator? Pretty high chance of serious injury...
 
@tereško You could start with this one, if you like ;-)
 
4:33 PM
oh, hell
yes, will do
 
My mum dropped my sister down an escalator when she was 2, she's got a pretty epic scar on her forehead from it, was very lucky not to be a lot worse
 
@DaveRandom Presumably. I really don't plan that far ahead.....possibly depends on what the weather is like and how much I feel like doing tourist stuff (never been to manc), so probably mid-afternoon-ish.
 
@Danack Well @PeeHaa will be here at ~11 am, and I suspect we will be basically drinking all day.
 
@DaveRandom Hmm...I guess I'm definitely going to be arriving before 4pm. The train ticket is £39 before peak, and then £80 during peak. So that's £40 of drinking money right there.
 
Wow, that's a pretty huge difference
Well drop us a line when you get here and sorted :-)
 
4:42 PM
@DaveRandom I'll ask you closer to the time, but do you have a likely drinking venue?
 
In short, no, I suspect it'll be quite fluid (no pun intended)
 
4:57 PM
@MikeM.
3
 
:-D
 
Either undo, or php scaffold ./myproject config.xml (though, I wouldn't drive across a bridge constructed like that)
 
Get rekt
 
@rekt GET rekt HTTP/1.1
 
Fixing stuff in the Zend VM for me sometimes just means trial & error =S
And with that I bid thee farewell, it's been Friday for 1 hour :)
 
5:30 PM
@Ja͢ck 6/7 hours ahead... Australia?
 
Singapore.
read his profile :P
 
5:46 PM
Why is everyone publishing his/her shitty framework this month on reddit ?
two new ones managed to appear in past few hours
 
1 message moved to bin
 
@tereško Because the wheel hasn't been reinvented enough times.
 
it's not even reinvention
they are all just shittier versions of the square wheel (also known as "rails")
 
@tereško most people don't understand that
 
True, we've all moved to the hexagonal wheel by now.
2
 
5:55 PM
.. sometimes I think I was much happier when I was ignorant
12
 
@tereško average happiness, quite likely. Peak happiness, not likely...
 
@tereško Yea, I remember when MVC actually meant something.
 
it's not just about my pet-peeve, but about OOP in general
 
Hey guys how is it possible that this string: "[reason]Maintance[/reason]" will get in db only a part. Exactly only "[reason]M" o.O
 
6:07 PM
:-D!
 
@TomášAresakMalčánek VARCHAR(9)
 
Hello all
 
Please tell me I'm not crazy for objecting to IS_INT
 
Does anyone know a great article that explains user authentication? I need it for an admin section I'm making
 
@AndreaFaulds the vote passed, the time to object was long ago
 
6:18 PM
IS_INT can be very helpful
 
lol
 
i use it in my PDO bind function
 
@AndreaFaulds but if you feel strongly, create a new RFC to go the other way...
@CodeX not what she's talking about
 
@ircmaxell That would delay this whole thing by three weeks at the very least
 
why? Nothing says it can't be merged then changed later
 
6:20 PM
I guess so...
 
@ircmaxell Did you create PHP?
 
@CodeX no
 
Did you guys ever do anything?
 
@CodeX that was 8 years ago
 
6:25 PM
@ircmaxell Your an internal developer for PHP though right?
 
many people in this room are
 
@ircmaxell I code with PHP a lot. The one thing i can't seem to find is a base standard, is there one?
 
Standard, such as?
 
Sorry, i should elaborate
If you google for say "PHP login system" you can find hundreds of articles explaining the way they do it, is there a standard way to do "things" in php?
In house PHP developer functions / classes for example
 
Well, the lazy answer is to use an external login system. :P
 
6:31 PM
@AndreaFaulds lol but the real answer?
Is it mostly Personal Preference?
 
@CodeX "Is there a standard way to do "things" in php?" No.
 
@AndreaFaulds Ok, thanks
 
Can someone please help me write a mysql query? I have a table of years an NFL team made the playoffs...one column has the year, and the other has the team id. So one row in this table would be (the id of) seahawks, 2014---then broncos, 2014, then 49ers, 2014, etc...and the same table would have Ravens, 2013, then 49ers, 2013 etc. I want to select all years in which the team made the playoffs this year. So for example I want all of the Seahawks years to show, but not the Jets.
Bc they missed the playoffs this year
 
@bwoebi I agree with Stas's points in general
 
SELECT years FROM team (Seahawks) WHERE year=?
 
6:35 PM
@ircmaxell Me too. Just found that comment somehow funny.
 
hmm that doesn't look quite right
 
oh definitely
 
@NickManning You mean MySQLi query right?
or even better PDO
 
Lame, but 🍁s giggle: “Give an 🇺🇸 2.54 cm, and he’ll take 1.6093 km.”
 
"Give an us" ?
is that gap meant to be there?
 
6:38 PM
@CodeX not sure I'm just writing the string which is sent to an object and I didn't write the class
@CodeX actually its MySQLi
 
Ok, OOP?
 
I guess so
I need all teams that made the playoffs this year...not just Seahawks
 
@NickManning come to the other room
 
SELECT seahawks FROM nfl_teams WHERE seahawks > all;
2013 1 row in set;
 
@Ma
@Machavity funny
 
6:42 PM
lol
 
I guess 5.5.16 is out and php.net is just slow in posting it
 
@ircmaxell I lol'd.
 
Morning
 
7:01 PM
I wish $array[$missingKey] would just throw an exception, so I wouldn't have to isset() guard all the things.
 
@Machavity the website changes usually lag slightly behind the uploading of a new release, just in case anything needs to change at the last second
 
@DanLugg I hope, you are just kidding. :-)
 
@Leri Literally not at all.
 
@DanLugg eih
 
Alternatively, performant implementations of StrictArray and StrictMap.
 
7:05 PM
try {
    $val = $arr[$key];
} catch (KeyNotFoundException) {}
 
we were talking about that earlier today
 
@Leri Yea, I'm fine with that. The exception can bubble most of the time.
Further, you already have to isset() to prevent notices, so it's not like much code would change.
@ircmaxell This exactly?
 
@DanLugg You don't use isset to prevent notices, do you?
 
5 hours ago, by ircmaxell
If you want to fix it, add support for true c-style arrays (non-sparse, int indexed only). And true dictionaries (hash table without ordering, using the pure key)
 
^^ Would love. I mentioned something about that the other day myself, on the topic of Dictionaries/Maps
@Leri Uh, yea?
 
7:07 PM
@DanLugg you use isset(), not to prevent notices, but to produce correct code that takes appropriate paths based on existence of indexes/offsets
 
if (isset($array[$key]) return $array[$key];
throw new MissingKeyException();
@ircmaxell I want to raise an exception; that would be the path.
 
@DanLugg If you always do isset($arr[$key]), you are doing it wrong. I only do that with user input or really dynamic array.
 
why an exception?
 
@ircmaxell It's what I'd like to have done.
In this case.
 
@ircmaxell Something like quickhash, or at the basic, language-level?
 
7:08 PM
exceptions are expensive
 
@ircmaxell If this is missing, it's an exceptional state.
 
I use isset because I work with stupid frameworks :(
 
Likely something you'd not want to recover from.
 
user895378
exceptions are expensive
 
Prompt good literature on php pls)
 
7:09 PM
I'd rather have get_value($arr, $key, $default)
 
if(!empty($array[$key])) ??
 
@salathe not sure. SplFixedArray is there, which sort-of works, but is relatively expensive... I'm not worried about types, but more the language semantics of it. So I guess language level... if it could be cleanly done
 
@Leri you can have it.
 
@Leri isset($a[$k]) ? $a[$k] : $d
 
@ircmaxell I meant, php.net/quickhash
 
7:10 PM
@salathe similar thing, except that quickhash is typed (storing native types, similar to my ndata extension: github.com/ircmaxell/php-ndata )
 
By the way
 
@salathe Or, y'know, he could, not.
 
Could we make ?: silent on non-existence for PHP 7?
 
user895378
anyone know the phpunit assertion for "assert the type of this variable" off the top of their head?
 
@AndreaFaulds ?
 
7:11 PM
@Leri Sorry for the misunderstanding the other day
 
@salathe I'll read mailing list and if there's not anything serious I can do that. :-)
 
@AndreaFaulds As in $a[$k] ?: $d wouldn't notice if $k is missing from $a ?
 
@DanLugg Better that than... throwing exceptions for missing keys. :P
 
@ircmaxell For ?: we could make it check if the left-hand expression is isset()'able and isset() it if so
@DanLugg Wouldn't throw an E_NOTICE, yes.
 
eih
 
user895378
7:12 PM
$this->assertType('array', array()); if you were wondering. no that's been removed
 
It's a bit corner-casey, but I like the result.
 
double edge sword
 
Too many "A except if B, C, D, or E" situations in PHP.
 
Oh yeah that reminded me of ifsetor, nikic mentioned it in his AST rfc
 
@AndreaFaulds there have been lots of discussions (on internals) about this over the years, e.g. markmail.org/thread/7wq6wn3zfjbpdjsf
 
7:13 PM
@salathe And that my friend, are where our opinions differ quite significantly ;-)
 
aka assertInternalType.....and fark phpunit sometimes.
 
@DanLugg I've yet to express my opinion. :D
 
user895378
@Danack simultaneous findage. Thanks. Yeah that naming doesn't really make sense to me but whatev
 
@salathe "Better that than...", implied opinion is implied :-)
 
btw @rdlowrey How attached are you to the name Auryn?
 
7:15 PM
@salathe I know, and I'm still sad it doesn't do this...
 
@DanLugg Guess my sticky-outy tongue didn't match the level of sarcasm...
 
user895378
@Danack not at all. don't care.
 
@salathe Oh, you forgot to close the <sarcasm> tag.
@rdlowrey Gmork! Oracle!
 
user895378
@DanLugg nice :)
 
user895378
The Nothing.
 
7:16 PM
@AndreaFaulds I've no idea when I last used the shorthand ?:, mostly because of the need to check the first operand.
 
@rdlowrey That should be reserved for a non-framework framework, like Vanilla-PHP
 
Beef jerky looks so horrible but tastes so good.
 
As in, a repo containing a README.md
 
user895378
@Fabien true fact
 
@salathe $sort_order = (isset($_GET['sort_by'])) ? $_GET['sort_by'] : 'desc';
 
7:17 PM
@CodeX sorry?
 
@salathe Yeah, ?: is only useful if it does implicit isset()
 
@salathe Don't be.. ;)
 
@CodeX I can't help it, I'm English.
 
@salathe Haha!
@salathe Ay, Jimmy!
 
Morning room
 
7:19 PM
If you don't feel like you need ears anymore, adnoiseam.bandcamp.com/album/hallelujah
 
hello @PeeHaa
 
Morning @PeaWet
 
Mornin' @PeeHaa
 
Yo @PeeOnHimself
 
mr @salathe, mr @CodeX, mr @DanLugg
tips hat
 
7:20 PM
@DanLugg Wowzers!!
 
So.. put tips in your hat?
 
@rdlowrey k. I'm giving another talk on DI and why Auryn is good next month. I know it is slightly ridiculous, but how willing people are to use a library depends at least partly on how easy it is to remember the name of the lib + how pronounceable it is.....so I might start trying to think of better names and running them by you.
 
@DanLugg yes plox
 
@Danack Marketing 101, eh?
 
user895378
7:21 PM
@Danack totally agree. And hopefully by that time I will have merged the dev branch back in. It's next on the list after the http client stuff
 
@DanLugg Surprisingly good music..
 
@CodeX Wait for it.
 
@Danack Fork that shit 1-on-1 and call it the MVC facade and you will be good
 
makes mental note to slap @peehaa
 
"Loony music for loony people!"
 
7:22 PM
:) @Danack
 
@DanLugg You can't just slap glitchcore over random other music - youtube.com/watch?v=FbJ63spk48s
 
@Danack Sure you can, but I don't think Igorrr did that.
As well, Venetian Snares is alrighty.
 
why would someone flag that
 
lol @! flag
 
whyyyy
 
7:23 PM
@DanLugg This is pretty amazing.. thanks!
 
@DanLugg mad as a bag of cats, but alrighty.
 
@DanLugg Canadian detected
 
Either @DanLugg did a funny or we have a fucktwat people
 
Wait, what?
What got flagged?
 
The link to that video
 
7:24 PM
yeah ^ playing the innocent card
well played sir ;)
 
@Danack Venetian Snares is far more Squarepusher-ish though, no?
 
1 message moved to bin
 
@ircmaxell Sorry, I did the needful.
 
@rdlowrey Cool; also I eagerly await the next push of the HTTP client stuff, as Crypto error: stream_socket_enable_crypto(): When enabling encryption you must specify the crypto typeError in
 
I'm currently really waiting for this
Maybe I should just give myself some days off and do a @rdlowrey
 
user895378
7:29 PM
@PeeHaa it's super helpful.
 
That reminds me i need to buy a photocopier...
 
I'd rather just have to fix that photocopier.
 
yeah. Holiday would be nice :(. God damn leg is preventing me doing anything exciting.
 
user895378
Okay, so TIL if you try to do $array["0"] PHP will say, "screw you" and turn your string zero key into an integer.
 
7:29 PM
@rdlowrey I have been working / programming / whatever shit I had to do for too long I think
 
@rdlowrey Yes, yes it does.
 
user895378
@DanLugg WTF is that about?
 
user895378
Thank goodness for unit tests, I guess.
 
I dunno, IIRC others do it too. "2983" and worse yet, "000382"
 
@rdlowrey Always has
 
7:31 PM
So, if you're working with a zero-padded scheme, you're fucked (unless you re-pad) I'm a dog at a computer.
 
user895378
@AndreaFaulds I guess I've never worried about the strict type comparisons for array keys before today.
 
@DanLugg Really? I thought it preserved leading zero
 
@AndreaFaulds Don't believe. Nevermind.
 
andreas-air:~ ajf$ php -r 'function isMangled($key) { $arr = []; $arr[$key] = null; var_dump($key); var_dump((string)$key); var_dump(key($arr)); var_dump((string)key($arr)); return (string)$key !== (string)key($arr); } isMangled("001");'
string(3) "001"
string(3) "001"
string(3) "001"
string(3) "001"
 
yo dog, I heard you liked magically messing things up on parent classes from child classes: github.com/facebook/hhvm/blob/master/hphp/doc/…
 
7:33 PM
lol @ instant fresh machine github.com/composer/composer/issues/1683
 
user895378
@PeeHaa rofl wait wat?
 
user895378
man, I guess all you can do is try to protect users from themselves.
 
user895378
people are dumb.
 
@PeeHaa I can't stop laughing
 
Yes we are :D
@AndreaFaulds :-)
 
7:36 PM
@PeeHaa it's a PEBKAC bug
 
I'll admit I used to think / was current dir...
 
I fell asleep ... been asleep all day ...
 
@rdlowrey Here was the issue I am facing. Summary the app class returns links which are run through the seenBefore class. When I run the app it'll halt the reactor after the application links have completed. Not after the links returned from the application links have completed.
 
Good... evening @JoeWatkins :)
 
user895378
@JoeWatkins well done!
 
7:37 PM
second time this week ...
 
@tereško Sure it is. And an awesome one at it :P
 
Running the seenBefore class alone works fine, same for app if I wasn't making the call to seenBefore.
 
Wasn't there also some repo (I think some ruby thing) that kinda did just that because of a space somewhere
@JoeWatkins morning :)
 
morning
 
Can/Should I return an item count from seenBefore and work that in to my pendingRequests numeral.
 
user895378
@Fabien what library are you using to do things asynchronously inside your seenBefore class?
 
It's the same code as your most recent pastie.
I just made that pastie to demonstrate roughly the issue.
 
user895378
oh, so it's making an http request to determine if that URI has been scraped previously.
 
Yeah.
It's a node app with a redis backed bloom filter.
 
user895378
It's kind of hard to diagnose your problem without seeing the real code TBH.
 
7:41 PM
The more i read your messages, the more certain i am i know nothing.
 
I'd share it privately.
 
user895378
if you wanna make a private paste and gchat to send me the link that's fine
 
user895378
$arr[(string)PHP_INT_MAX+1] = 42;
var_dump($arr);
array(1) {
  [-2147483648]=>
  int(42)
}
 
user895378
THAT'S NOT WHAT I WANT, PHP.
 
@ircmaxell Realisation: If we add a ::castFrom, and we add proper vectors and hashtables... you could have PHP automatically convert and validate your array for you :-D
 
7:43 PM
@AndreaFaulds yup
@rdlowrey order of operations
 
Gotta go, G'night all :)
 
user895378
<- selectively generally stupid
 
Casting from would be a static method, casting to would be an instance method
 
@AndreaFaulds you don't even need to add proper vetors/hash tables... Just classes that can cast from an array
 
7:46 PM
@ircmaxell Oh sure. Still, they'd work nicely together.
 
I ... I know this has probably been pointed out...
Auryn, stylized as AURYN, is a 5-member British-style Spanish boy band founded in 2009. Signed to Warner Music, they sing in English and Spanish. == Members == The band is made up of five members that appeared previously on various talent show series in Spain. Various members of the band have taken part at different occasions in contests like Factor X, Veo Veo, La Batalla de los Coros and at Junior Eurovision Song Contest qualifications. Dani Fernández represented Spain in the Junior Eurovision Song Contest 2006, and remains the last Spanish entrant on the competition. They are all musica...
 
@ircmaxell hehe
 
user895378
@DanLugg OH NO.
 
user895378
wow.
 
^^ How I feel when I "require": {"rdlowrey/auryn" : "*"}
 
7:53 PM
wth is this?
 
Does PhpStorm have the ability to have multiple Github user accounts configured?
 
@crypticツ Never tried
But I don't think so.
 
@Fabien Dependency injection, in all it's Euro-trashy glory.
 
@DanLugg Yes that is exactly the feeling
 
@rdlowrey thou dost protest too much me think ... were you secretly a member of that boyband ??? you can tell us ... we wont' rip on you forever and ever ... really we won't ...
oh so where do I read draft psr's then ?
 
7:56 PM
github.com/TazeTSchnitzel/Hanno <-- my project I really should finish
I should probably just make the reactor accept a promise and use ReactPHP or something on the backend, then call it a day
I'm not cut out to reimplement an async subsystem
 
Finishing stuff is for subordinates. Bosses start stuff then just pass it on when they're bored.
 
I hate it ...
 
Ignore
Weird that Github doesn't like the double quote
 
@Fabien GitHub's syntax highlighter is dumb
 
we work hard to make caches fast, they layer code on top like it's some kind of sauce on a meal ... undo our hard work ... pointless ...
 

« first day (1405 days earlier)      last day (3540 days later) »