« first day (2045 days earlier)      last day (2917 days later) » 

3:00 PM
why would it?
 
oh commit message... reading...
 
We HTML entity decode earlier on, I didn't think about <br>s though
Maybe need to load the whole thing up into a DOM doc and stringify it
 
Any plans to support
 
I thought I did that, but not sure :)
 
!!eval <?php
echo "hello";
?
As in, in a code block?
 
3:02 PM
!!eval var_dump('foo');
var_dump('bar');
!!eval var_dump('foo');
 
lol what have you done now?
 
> Nope. ~Jeeves, probably
 
I think you broke it @DaveRandom
I'm pretty sure i supported multiline at some point
:)
 
I'm don't understanding that
moment
 
3:03 PM
I think multiline makes it go html block or somethign like that
Just guessing stuff here. Been a while :)
incoming @peehaa you fail in 3..2... :P
 
@PeeHaa <div class='full'>!!&gt; echo 1; <br> echo 2;</div>
That's what multi-line messages look like
We don't have any handling for that but should be doable
basically the entry point doesn't even interpret that as a command because random HTML
 
I want help in iOS push notification implementation
please read following post for more details
 
I had handling for that github.com/Room-11/Jeeves/commit/… but you just removed it :)
 
-2
Q: Not able to receive notifications in all devices

SiddharthFor my game, I have established notification system via custom server usage. So web developer created notification setup for me. In this, I am facing one problem. In my two iPhones, I am getting notification always but my client can't able to detect any notification in his any iPhone devices. Wh...

 
@PeeHaa Oh lol yeh that's what that would do
 
3:06 PM
:P
 
/me facepalms
 
hehe
 
this problem we were facing from last 15 days
even PHP guy saying that if you are getting notification then it was not my fault :(
when he debug his code, he was not receiving any error code
and message printed like "Message delivered successfully...."
even in client devices as well
if I do static checking with deviceToken then also same thing happening
if I set my deviceToken then I am getting notification but when I set client deviceToken then he can't able to get this
 
I knew it was there for a reason :P
 
wait I do have the answer to this though...
Does textContent preserve <br>s as \n @PeeHaa?
 
3:09 PM
Nope
 
evil preg_replace() coming right up
 
:P
Can't you just replace node?
 
can any one give me small suggestion?
I was facing this from long time
 
@PeeHaa What with a text node? Could do I suppose but that would be a bit too professional
Not sure if it would work, will try
 
@DaveRandom yeah. afaik text nodes can be next to eachother just fine, but it's html so I may be talking out of my ass
 
3:13 PM
damn
 
@PeeHaa Oh yeh I know text nodes can co-exist quite happily, they'll just be flattened when encoded which is fine... just not sure whether libxml will do a sensible thing with an LF-only text node
 
Tomb Raider needs more resources :(
 
If I want to send an email if a specific critical error occurs in my app when it is accessed, what would be a good way to prevent having a new email being sent for each time its accessed? If the page is accessed once a second that could be 60 emails in a minute. Put the errors in a temp file and when it reaches x-amount of entries then send email? Or is there a better way?
 
@crypticツ That's what I would do
You can always make it shinier by adding a database layer later if needed
 
Awesome cover
 
tl;dr always convert message content to document at the event level
 
Should this method be getAwaitable() or awaitable()?
 
We weren't picking up any multi-line message as a command ever, which is probably somthing I broke a long time ago
@Trowski getAwaitable(), awaitable() is not a verb and await() would imply that the method itself will wait
 
!!eval var_dump('foo');
var_dump('bar');
 
[ 5.5.0 - 5.6.21, hhvm-3.9.1 - 3.12.0, 7.0.0 - 7.0.6 ] string(3) "foo" string(3) "bar"
 
3:31 PM
tnx sir
 
@DaveRandom That's what I'm thinking. @bwoebi @kelunik @rdlowrey thoughts?
 
Ekn
also this :p I'm weirdly enjoying playing with ELC @Andrea
 
@PeeHaa Command#getText() will now return a bare string with the command stripped and <br> substituted for LF... whether that's actually useful I'm not sure, code string sent to 3v4l is still horribly formatted
 
@Ekn zend_string, eh? ^^
I want to implement that at some point, but I'd need to figure out how to represent byte strings in JS (JavaScript strings are UTF-16), and copy-on-write
 
Ekn
at least you know what you're doing much in detail :D
while exploring stuff I found things like this
and this
 
3:44 PM
@Trowski I'd be happy with just get() too
IMO we should be simple and prefer single-word method names for these
 
I prefer get over getAwaitable. That's really verbose.
Also still like succeed more than resolve.
 
@kelunik I think resolve() is a good name though. As you can resolve an Awaitable with another Awaitable … succeeding a Promise with another Promise always was weird…
 
reject sounds better with resolve IMO, but fail is fine too.
 
@Trowski rejection is weird … It sounds like the Promise was invalid from the beginning on … fail() is pretty generic here
 
getAwaitable is much more explicit. get isn't very decriptive... get what?
Why not just make Deferred invokable :-P </sarcasm>
 
3:59 PM
@Trowski get the only thing you can get on a Deferred
the most fundamental thing a Deferred can give you
 
@bwoebi but resolve means error or success
 
@kelunik correct. You can resolve it with a new Failure as well
 
If we go with resolve, we could remove fail and make exceptions passed to resolve make it fail
 
That's the point.
 
My JSON file is {"message":"yes","info":{"ID":1,"Items":[{"Name":" Jim","Age": "56"},{"Name":" Bob","Age": "56"}]}} Using the code below, I can get the each name to display, but I can't display the age
$arr = array();
foreach($result->info->Items as $value){
    $arr[] = $value->Name;
}
echo "<div>".implode("</div>, <div>", $arr)."</div>";
How would I get the age to display, as well as the name?
 
4:02 PM
@bwoebi then make resolve only accept awaitables and nothing more.
 
@kelunik disagree. An exception is equivalent to any other object, with the additional semantics that it can be thrown
 
@kelunik We could certainly do that... since I see no point in resolving with an exception.
 
@Trowski same here
@bwoebi did you ever do that?
 
no, but that doesn't mean that it's invalid.
What I could live with is an additional succeed() method
resolve() for awaitables
succeed() and fail() for normal values/exceptions
also saves us an extra instanceof check, which should be cleaner IMO
 
What happens if you pass an awaitable to succeed?
 
4:05 PM
yeah… I think that's why we have a single method for it in the first place
 
@Trowski error if we go that way
@Trowski on the other hand, if we allow something like that, we could resolve to an awaitable.
 
@kelunik nah…
 
@bwoebi we don't have to support every thing that someone might want to do. I think making it not possible is reasonable
 
@kelunik The problem with that one is that changing behavior later is a major BC break then.
 
@bwoebi I wanted to do that already. But only because of the built in observable.
 
4:11 PM
yea true
 
@bwoebi why should we change it?
 
Guess who's speaking at Bulgaria PHP Conference beetches! bgphp.org/speakers
8
 
The problem is that there are also other objects which may implement Awaitable and may want to be returned
 
@bwoebi hm?
 
Also sorry @Ocramius wrong ping :p
 
4:13 PM
@bwoebi I did that when making connections implement awaitable, but I think that's more abuse than good.
 
o/
 
I have never once felt the desire to resolve an awaitable with an exception, but it would mean another instanceof check in the resolve method.
 
Wes
@Jimbo gratz! :D topic?
 
4:31 PM
@Trowski Yeah, I don't like it either
@kelunik That's what I'm wondering too…
so, yeah, probably shouldn't be allowe
d
 
What's the meaning of "NERDY" in this sentence? "How NERDY are You?"
 
good question… Depends on context how nerdy nerdy is…
 
4:50 PM
!!urban nerdy
 
[ Nerdy ] Term used for people or persons who are into books, computers, ect. and are unbeleivably attractive. The new sexy
 
wat
 
hahahahahahahahah
 
@Wes Dependency Injection, last time :-)
 
He's going for the world record speakers-dinners-per-talk ratio
 
4:53 PM
@Jeeves That explains why there's a nerdy section on pornhub.
 
Wes
how do you know that
what lib/ext should i use for weakmaps? there are several of them... anybody got an idea?
 
@Wes from a friend obviously. Nobody in here would go to pornhub, you know ;-)
 
How would I add another array to $arr[] = $value->Name;
 
Wes
@bwoebi :P
 
I tried like this but it gives a 500 error
$arr[] = $value->Name, $arr[] = $value->Age;
 
5:06 PM
@TheCodesee please use an IDE like PHPStorm. It will tell you most of the time when you have invalid syntax. And depending on what you actually want to happen, either just php.net/manual/en/function.array-merge.php or $arr[] = $value->Name; $arr[] = $value->Age;
 
@Danack If I use the code below, it displays like this: prntscr.com/b73tq2
$arr = array();
foreach($data->data->InventoryItems as $value){
    $arr[] = $value->Name;
    $arr[] = $value->ImageLink;
}
echo "<div class='box'>".implode("</div> <div class='box'>", $arr)."</div>";
@Danack How would I display 'Nuclear Winter' and the http:// link in the same white box?
 
$arr[] = $value->Name . $value->ImageLink;
to concatenate them?
 
Thanks @Danack
 
5:25 PM
@Danack Also, if I wanted to wrap the name in a h1 tag, how would I do that?
 
function displayItem($inventoryItem) {
    printf(
       "<div class='box'><h1>%s</h1> %s</div>",
       $value->Name,
       $value->ImageLink
   );
}

foreach($data->data->InventoryItems as $inventoryItem){
    displayItem($inventoryItem)
}
@TheCodesee you almost certainly just want to use a function to do the printing, rather than building stuff up into arrays, and then printing them...
 
@Danack how would i use a function? the array is from a json file
 
Exactly like the code I posted?
 
heh
 
Wes
daredevil must be the worst successful series i've ever seen. my god it's awful
 
5:38 PM
@Danack I see, the code wasn't displaying in your answer. I'm getting 500 error when using this code:
function displayItem($inventoryItem) {
    printf(
       foreach($data->data->InventoryItems as $value){
       "<div class='box'><h1>%s</h1> %s</div>",
       $value->Name,
       $value->ImageLink;
   );
};
}

foreach($data->data->InventoryItems as $inventoryItem){
    displayItem($inventoryItem);
}
 
Wes
!!google php white screen of death
 
Search for "php white screen of death" (https://www.google.com/search?q=php+white+screen+of+death&lr=lang_en)
• error handling - PHP's white screen of death - St… - Now that I'm starting to get back into PHP, I'm starting to remember … Errors and warnings usually… (http://stackoverflow.com/questions/1475297/phps-white-screen-of-death)
• Blank pages or "white screen of death" (WSOD) | D… - Add the following code (originally from http://stackoverflow.com/questions/ 1475297/phps-white-scre… (https://www.drupal.org/node/158043)
 
Wes
@TheCodesee ^
 
!!canon errors
 
323
Q: How to get useful error messages in PHP?

CandidasaI find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. ...

 
5:44 PM
@TheCodesee also this ^
 
thanks i managed to solve it
 
@TheCodesee "please use an IDE like PHPStorm."
 
@Trowski Promise implements Awaitable … What's that? I thought you explicitly didn't want to see that? And for the single occurrence in functions.php you can also just use a Deferred, call $thenable->then([$deferred, "resolve"], [$deferred, "fail"]); and return its promise?
 
6:14 PM
@bwoebi I should have renamed it, that came directly from Icicle. I missed that occurrence in functions.php. It's just an implementation detail of the private Deferred. I'll pick some other name and move it into Internal.
 
@Trowski Why exactly do you need the extra class for that?
 
@bwoebi I need a separate object to return from Deferred.
 
$deferred = new Deferred;
$thenable->then([$deferred, "resolve"], [$deferred, "fail"]);
return $deferred->get();
@Trowski ^ does that not work?
 
@bwoebi That works fine. I thought you meant an extra class for the private Deferred.
 
no, I asked why you have an extra Promise class
 
6:20 PM
@bwoebi It's just an implementation detail of the private Deferred. If we go PHP 7, I could do it with an anonymous class.
 
why do you need an extra class at all? I mean, when the above works?
 
oh
not sure why
 
Amp does almost the exact same thing, only with rebinding closures. I think this is cleaner.
 
ah
got now what's happening there
 
Wes
6:27 PM
why i was sure this worked? function() use($ext as $int){ var_dump($int); } did my mind invent it? :|
 
@Wes Yes, yes it did.
 
@Wes I wish this worked^^
 
Wes
crazy
 
Strikes me as a pretty simple thing to implement...
 
Wes
probably not needed, was about to do that just to have better variable names
 
6:34 PM
Yeah, I'm not "oooh" over it, just saying it's probably a trivial thing.
 
Wes
speaking of needed things instead, did you read my message about the pipe operator? i have big hopes on that
 
Then again, so is this:
function() use ($ext) { $int =& $ext; var_dump($int); }
:p
@Wes I must have missed it.
 
Wes
nesting parens kills me... as much as having to invent temporary variable names
 
@Wes There's enough resistence to pipe-op that I'm not going to try to push it for 7.1 I will call a vote for 7.2 though.
 
Wes
no prob, just asking your impression about the discussion, it seems people tend to be in favor of it
 
6:36 PM
I'm feeling a > 50% favor, but I have doubts about hitting 67%
Which is why I also want to expand the RFC with better examples and use cases before calling the vote.
 
Wes
it's a thing i don't get
May 13 at 14:05, by Wes
most of rfcs should start with "you know that if you don't need the feature you could just not use it, rather than voting no?" #toptip for future rfcs
why people opposes to optional features. nobody is forcing anyone to use that...
 
The counter-argument goes: "I WILL have to deal with this someday, it's inevitable."
 
And I will have to maintain it...
 
Plus, more complexity in the compiler means more to maintain
^^ jynx
 
Wes
@Sara counter-counter-argument should be "there are a million ways to do everything, you are a programmer, one million plus one shouldn't make any difference"
 
6:42 PM
@Sara you should add a section about how cleaning up libraries to make methods be easier to chain is probably a separate topic...some people are likely to vote against it because they want that to be done instead.....
Also, anyone dared to read Francois' alternative RFC yet?
 
Wes
@NikiC on the final result, will that be slower or faster compared to using temp variables?
 
@Wes By itself faster. With copy propagation it wouldn't matter.
Performance is a bad reason to want that particular feature
 
Wes
copy propagation = ?
i was also about to ask how much will increase the complexity of the compiler
 
7:03 PM
@Wes I think he means something like transforming variables into temporaries
I'm not always 100% sure with all these technical terms he's using either^^
@NikiC the problematic part about copy propagation is dealing with destructor … no problem for definitely-scalars, but it invalidates assumptions we currently can have about object lifetimes.
How do you intend to solve that one?
 
@bwoebi simple: flag to ignore dtor order :P
 
I'm fine with behavior changes on the debugging function level… but the language shouldn't change in behavior through flags/optimizations
 
@bwoebi Why shouldn't it?
We already have at least one flag for such "unsafe" optimizations
 
@NikiC namely?
 
@bwoebi replacing define'd constants
 
7:10 PM
that's a CG(compiler_options) flag, not an ini flag (?)
 
it's a bit in the opcache optimization level
that's what I mean by flag
 
is it? Didn't know that.
That's somehow even worse… it makes bugs only appear after at least the second request…
but well
gcc is doing that too…
so maybe I'm overdramatizing that…
 
@Danack Oh god. He's putting his terrible idea down on paper?
 
@Danack which one? I only know about load-ext-by-name from him currently?
 
7:40 PM
Evening room
 
Ekn
evening
 
Wes
\o
 
'nn
 
Anonymous
\o\
 
Anonymous
/o/
 
Anonymous
7:52 PM
|o|
 
Wes
'o'
(\___/)
(o'.'o)
(_   _)VV
2
 
Anonymous
o   ^__^
 o  (oo)\_______
    (__)\       )\/\
        ||----w |
        ||     ||
 
Anonymous
hmm didn't know the wachowski brothers are both women now
 
Anonymous
well, enough internet for me today
 
Wes
s/brothers/sisters
 
8:02 PM
weeeeeeeeell
there is this tiny thing called - genetics
 
Wes
are them twins?
 
Anonymous
Don't think so.
 
Anonymous
Now they are ex-brothers
 
Wes
if they are twins i imagine probability that happens increases
 
the relevant terms here is "secondary sex characteristics" ... there are reasons why it's not "primary"
 
Wes
8:07 PM
from wachowskis i want my money back for jupiter ascending. it's the only thing that matters
 
Anonymous
Horrible movie, truly bad.
 
Wes
so we have a winner, the right one
45% / 55%
 
Anonymous
what's with the eyes?
 
Wes
skynet eyes, i suppose
come with me if you want to async
 
Ekn
just realized while reading this, reading non-programming text that includes words like public, prepared, statement, traits, injected etc.. is too distracting
... even in a topic as such
 
Anonymous
8:11 PM
There should be a 'none' version.
 
Anonymous
As Elephants go, I kinda like this one
 
Wes
@samayo @kelunik wanted a gruntjs style logo
 
Ekn
I voted for the right one ;p
 
Wes
@samayo the worst good looking movie ever made, right? i still wtf at it sometimes
i just can't accept plenty of people worked so hard on that without realizing they were producing a good looking turd
 
Ekn
8:15 PM
... there was sucker punch.
 
Wes
haven't seen that
 
Anonymous
Even cloud atlas was less than average, all the hype it got was since people were praising them for Matrix, and V for vendetta. (both were good) but cloud atlas crap.
 
Wes
6.1 on imdb. means it's better than jupiter
 
Anonymous
Jupiter ascending is however, on another level of badness.
 
Wes
indeed
 
8:18 PM
 
Wes
that is definitely zoidberg
 
that's ood
you probably should watch Dr.Who
 
Anonymous
@tereško Who is that?
 
Anonymous
Third time I'm seeing that picture.
 
Wes
i used to watch dr.who. i didn't like the new doctor(s)
 
8:21 PM
@Wes the 10th one was actually pretty cool
 
Wes
i liked tennant. is him the tenth?
 
Wes
the kid that came after him was too meh
 
@Sara you actually already replied to it, marc.info/?l=php-internals&m=146307919303423&w=2 and he's started to write down what needs to be done.... tekwire.net/joomla/projects/ideas/pipe-operator while completely ignoring the fact that user defined functions exist. /cc @bwoebi
 
Jupiter Ascending? That shit is proof Jesus died in vain.
3
@Danack Yeah, I figured it was an evolution from that message. I got the impression from you that he had a draft RFC of it though (as in, on wiki.php.net/rfc)
 
8:35 PM
@Sara I think ab out 10min of that movie consisted purely of the lead-chick falling
 
@Danack Some people just should stay away from language design or at least not think they'd know it better than many others…
 
Wachowski filmography; The good parts: Matrix 1, Animatrix, V for Vendetta, Sense8, and depending on my mood: Bound. The rest is all take it or leave it, mostly leave it.
Even Sense8 tries too hard a lot of the time
 
Also a little... dumb at times with Sense8, in particular their resolution to the problem at the end of the series.
 
Wes
@Sara i can only think matrix happened by accident...
 
9:05 PM
@bwoebi Would it ever be useful to provide a value to Pause to resolve the awaitable with? yield new Pause($time, $value)? $value would be null by default.
 
@Trowski good idea
@Trowski could be helpful for tests to emulate delayed resolution
 
9:18 PM
@bwoebi Name: Pause or Delayed?
Actually Delayed is sometimes a synonym for Promise/Future, so n/m.
 
Anonymous
@Wes my feelings exactly.
 
Anonymous
Tarantino is two h8ful-like movies away from being in the same rank
 
dunno
Tarantino make "Tarantino movies"
people know what to expect there
 
Ekn
/me agrees with tereško
 
Anonymous
I wasn't impressed with h8ful eight. It certainly didn't live up to the hype and expectations.
 
Wes
9:27 PM
tarantino is the king
 
Haven't seen it yet, but reviewers, with similar tastes to mine, said it's good
 
Anonymous
I have lost faith in critics after the Gods of Egypt rating.
 
Wes
@samayo i watched it. it's a good movie
i'd say a solid 7
 
Anonymous
Yeah, it was no citizen kane but it was fun to watch.
 
Anonymous
I would give it a 7 also.
 
Anonymous
9:33 PM
@Wes Can you recommend any movie?
 
Wes
genre?
 
Anonymous
.*
 
Ekn
@Ocramius how did the phpkonf go besides the food?
 
Wes
you criticized tarantino, have you seen pulp fiction?
 
Anonymous
@Wes Are you serious? I've seen all his movies. I actually love him for Pulp Fiction
 
9:35 PM
@Ekn I think it was good, talks being good too. Audience was totally disengaged though
 
Anonymous
All his movies are awesome except h8ful 8, death proof
 
Anonymous
I'm about to re-watch 12 angry men, but maybe there is some hidden gem out there, I need something new.
 
probably just how it is though (culturally). Same thing happened last year
 
Ekn
@Ocramius as expected... yeah. I lived in Istanbul for a while and got to know some people
 
Wes
@samayo how about this imdb.com/title/tt0810913
 
Anonymous
9:37 PM
:)
 
Yeah, not sure if it can be fixed, or if it doesn't need fixing at all
 
Wes
no seriously, don't watch that :B it's likely the worst movie i've ever seen
 
it is just weird :)
 
Wes
it's bad to previously unknown bad levels
@samayo seen the mariachi trilogy?
 
Anyway, people were basically just sticking around, but preferring going for coffee/tea and chatting rather than going to the talks :D
was still a good conf tho
 
Anonymous
9:39 PM
I remember watching that movie and saying to myself at 13 minutes "this can't be right" then went on to check the reviews and was done, I didn't even know al pacino was in there until recently. @Wes
 
Anonymous
+ Yeah, I've seen desperado and the rest.
 
Wes
is al pacino in that? :|
you mean banderas?
 
Ekn
@Ocramius Imo it's not exactly cultural, it's more intentional... like how the last few generations were raised and how they experienced life I'd say and I have no hope or f's to give (anymore) tbqh :p
hope you got to enjoy Istanbul though
 
Anonymous
No, I meant in Jack and Jill. It was horrible, I stopped the movie too early @Wes
 
Wes
lol
it's so bad that it's worth watching it
 
9:42 PM
@Ekn I didn't see such behavior anywhere else :)
 
Wes
how about scorsese movies?
 
but yeah, I love this city. I wouldn't be able to live here, but visiting it is a must
 
Anonymous
1 min ago, by Wes
it's so bad that it's worth watching it
 
Anonymous
like sharknado :)
 
Wes
lol, haven't seen that
 
Ekn
9:43 PM
@Ocramius that, yes. I'd never ever be able to live there, but for a short visit it's nice :)
 
Anonymous
I think I have seen all Scorsese movies after Gangs of New York <3
 
Ekn
scorsese is pretty much the top for me
 
Wes
do you know that i've never seen saving private ryan? :B i find the start too boring and always ended quitting it
 
Anonymous
Yeah, Darren Aronofsky and Wes Anderson are also somewhere there @Ekn
 
Anonymous
@Wes in my case: ghost in the shell
 
Anonymous
9:46 PM
Though, I'm not proud of it :\
 
Wes
is that the cartoon?
anime, whatever you call it
 
Anonymous
Oh no you didn't :)
 
Wes
should i watch it? :B
i'm trying to search for a decent movie to suggest that isn't an obvious one...
 
Anonymous
I had a similar attitude towards mangas, but some people in this room convinced me to watch it and other animes, and that helped.
 
Anonymous
I know it is @tereško's favorite movie (Ghost in the Shell)
 
Anonymous
9:49 PM
@Wes If you want to watch, WATCH death note.
 
Wes
i've watched death note
gave me diarrhea.
 
Anonymous
I really hope in a good way.
 
Wes
i have no problems with cartoons, it's the melodramatic japanese style that i can't stand
 
Anonymous
If you followed the story closely, death note is pretty addicting and melodramatic movie to watch, there is nothing wrong with that.
 
Anonymous
Just like Miyazaki movies.
 
Wes
9:53 PM
i can't watch animes, unless i want to hurt myself in a masochistic way
 
Anonymous
Well, I'm NOT a die-hard aime lover, but Spirited away is my all-time fav anime movie.
 
Ekn
spirited away was really nice
I should watch it again sometime soon
 
Wes
@samayo imdb.com/title/tt0379725 this is not very popular
but i enjoyed the movie
 

« first day (2045 days earlier)      last day (2917 days later) »