« first day (2200 days earlier)      last day (2745 days later) » 

3:01 PM
Morning.
 
Morning.
 
Morning.
 
Morning.
 
Morning.
 
Morning.
 
3:06 PM
Morning.
 
@NikiC @bwoebi So after some more searching it seems that nearly all imperative programming languages with implicit binding of variables from outer scope do so by reference or variable.
 
hm.
 
Morning.
 
Anonymous
ekin o/
 
Also, the more I think about it the more I like the Rust/Ruby syntax. There are only a few drawbacks and none of them are technical.
Also, I previously said Ruby had 4 ways to do this. I was wrong. It has seven.
 
3:09 PM
lol
 
Now, For the first time I want to cook :-) .. What food is your suggestion? My current foodstuffs: Chicken, Carrots, Water, Pepper, Bread, Macaroni, Mushroom !
 
lol! those avatars
 
@Shafizadeh do you own any spices?
 
@Ekin Tell @Wes to stop being lazy!
 
@tereško well yeah .. I said Pepper ..
 
3:11 PM
:D
 
So to clarify I mean a syntax like this: array_map(|$record| $record['prop'], $rows)
 
@Shafizadeh You cannot make a meal with that. Meat is missing
 
chicken is love
 
@PeeHaa ok tell me what do I have need .. I will buy it
 
Anonymous
A chef \o/
 
3:13 PM
Get a cow or something
 
lol
 
:P
 
lol
 
Statement bodies would look like this:
 
Yeah I just realized that not eating pig is a bit limiting
 
3:13 PM
@PeeHaa That might offend some people
 
Yeah but not @Shafizadeh
 
@PeeHaa Ah.. got it now :-)
 
array_map(|$record| {
    $record['ipaddr'] = inet_ntop($record['ipbytes']);
    return $record;
}, $rows)
Or:
 
ok, I'm gonna try to be serious a bit: go with improvisation - dice the chicken and mushrooms, and cook them on a pan
 
array_map(
    |$record| {
        $record['ipaddr'] = inet_ntop($record['ipbytes']);
        return $record;
    },
    $rows
)
Depending on your formatting cup-of-tea.
 
Anonymous
3:15 PM
@LeviMorrison ehhhh Ruby. | | isn't very readable imo.
 
@tereško macaroni needs soya .. I don't have any.. I guess that's the only option .. so I will buy soya .. brb
 
Of course this example sucks since it doesn't actually close over anything. Ping me with a better two-line body that closes over something.
 
@Shafizadeh First, chop the carrots, put them in a pan. They take the longest. Put the water and the Macaroni in, and bring it to the boil. Next fry up the chicken with the pepper and mushrooms, when it's done, put them on top of the bread (toasted if you wish). Poor the carrots and pasta on top. Place everything in a bowl. Give it to the dog. Go buy a takeaway pizza.
9
 
@Shafizadeh naah. What you need is salt.
 
@DaveRandom great instructions .. thx pal
 
3:17 PM
so ... cook the pieces of chicken and mushrooms on a pan, then when they are almost done, add diced some peppers
 
@Shafizadeh any time
 
@tereško yeah, salt is needed too
 
Anonymous
@tereško Stop being helpful, you're supposed to be an 11er
 
then boil macaroni in water (the instructions will be on the box)
 
ftr I have seen @tereško talk about cooking before an I would probably eat things that he had cooked
 
3:18 PM
lol Dave
 
@DaveRandom lol
 
@tereško I see :-)
 
also, @Shafizadeh the chicken will benefit from curry powder (which is why I asked you about what spices you had)
 
I eat everything anyway. It makes me fun on festivals too
 
also, with "pepper" I assume you meant "bell pepper"
 
3:20 PM
nah, black pepper
 
@tereško ah .. so you meant (of spices) was curry powder ..!
 
with spices I meant various powders, leaves and dried things
 
@littlepootis well no, I meant was "red pepper" (I don't know you are familiar with it or not)
 
Oh, I am
 
@Shafizadeh most of them are red. The question is whether is fresh or dried
 
3:22 PM
@tereško dried .. :-)
 
@tereško Are we talking shrooms now :P
 
then buy some fresh Poblano or Bell peppers when you are shopping
 
@DaveRandom I don't know why this comment got 5 stars .. I guess all people in here are hungry :P
 
read it again
@Wes LOL
 
and now I am hungry
 
3:24 PM
s/read it/reddit/
 
@tereško I will ..! what should I buy else when I'm shopping? I cannot go shopping all the time .. so please tell me some important thing that may I need them for cooking
 
Chocolate biscuits. Always buy chocolate biscuits.
 
@tereško ha ha ha :-) join me bro ;-)
@DaveRandom yeah.. they are pretty good for breakfast ...
 
@kelunik Please do not write whitespace a 20 times in the same commit, it's not helpful...
 
@bwoebi :P
 
3:26 PM
@kelunik once is really enough.
 
@kelunik just to be sure, does your PR also resolve #104 completely or only partially?
 
@DaveRandom sadly I cannot open youtube .. it is banned in here
 
@Shafizadeh a wooden or plastic spatula would be important. Also oil or butter. You can buy some cheese (if you are not making makaroni with soya, the alternative is adding butter and small pieces of cheese). Tomatoes.
 
@bwoebi I hope I didn't miss something.
 
3:28 PM
okay, fine
 
BTW get olive oil or @Wes will hunt you down
 
@tereško good point .. I need some cheese
 
Engine oil is fine is they don't have olive
 
@DaveRandom lolno
 
sorry I will actually stop now
 
3:29 PM
great, I am hungry now
 
join the club
 
join me
The food will be ready in 1 hour ;-)
 
good luck
 
@Trowski can you please have a look at github.com/async-interop/awaitable-test too? Thanks :-)
 
3:31 PM
@bwoebi Could you please fix the whitespace?
 
I'm calling for a complete US ban on all pre-packaged shredded cheese. #MakeAmericaGrateAgain
/cc @Gordon ^
 
@DaveRandom That's fantastic.
@bwoebi Yep.
 
Don't say cheese :( I miss cheese.
mmmm a nice pizza please. Pepperoni passion
 
@bwoebi Feel free to merge it.
 
@bwoebi What if when is always called on the next tick? github.com/async-interop/awaitable-test/blob/master/src/…
 
3:40 PM
@Fabor you just said it twice
 
I am allowed -_-
It's called a double-standard...
 
s/standard/gloucester/
 
what am I missing here that it does not match a single \s but matches that 2nd empty line? regex101.com/r/KLDBxA/1
oh they have unit tests now there, but regex formatter is gone it seems
 
3:55 PM
@Ekin (\d*|\d*[,|.]\d*)
 
@DaveRandom CHEEEESE Grommet
 
If I'm reading it right it will just look at the first \d* and match against that, since an empty string would match against * but a space isn't included in \d.
 
@Fabor Get yourselves organised down there
 
@kelunik I realized I missed a test for multiple ->when() calls, also for the throwing case
 
@bwoebi Resolved. That doesn't mean they execute all whens directly, too.
 
4:01 PM
@Ekin It matches the empty line because everything is optional. Why would it match \s though?
 
They might defer all $cb calls, too.
 
@DaveRandom it doesn't need to match \s
 
@kelunik they must resolve all whens remaining in the order they were passed when the first when is resolved
 
just didn't get why it matched an empty string but making \d* \d+ seems to solve it
 
@kelunik oh.
uhm, no
 
4:04 PM
I did it! I did it! I built a Pringles ringle! No glue, just physics. https://t.co/E357BlXOy0
 
@kelunik I think the spec should be a bit more precise on when future callbacks must be called once it's clear that the Awaitable is resolved (i.e. the first callback has been called)
 
This is the last version I have. Does anyone see something silly/that can be improved?
 
4:19 PM
@Ekin depends. What (in English) do you want to match? What are the rules, where is the data coming from, and what do you want to allow/disallow?
 
\o/ imploding kittens
 
@Ekin is 99.99,00 valid?
 
Basically numerals, cardinals, anything that may represent money as well
 
I would say that doesn't represent money
 
I would say that humans write all kinds of weird shit
 
4:20 PM
that ^
 
> where is the data coming from?
 
... and they should be punished for it
 
I want to match it even though it's wrong. data is coming from a human :P
this is for brill tagger again
 
@Ekin OK then change the last \d+ to a \d*
 
all sorts of numerals,cardinals,money etc even though the format is wrong is the same for that aim, they all get the same tag
 
4:22 PM
I have seen £100. more than once, with an implied 0
 
Seen those new plastic £5 notes yet?
 
If implicit things are implied, are explicit things explied?
 
:D
 
@Fabor Yeh I have one right now. You can have it for a mere £7.50.
 
ha sean is wearing the hat
 
4:25 PM
Tried ripping it?
 
I watched Dan try to rip one
it didn't work
 
LOL
27 is my lucky number :(
 
@Ekin Fails to match £1,000,000.00
 
that's true @Ekin, you support $ you should support other currency symbols
 
4:30 PM
That's what the {Sc} is for
 
^ yep
 
What's missing is the repeated set
 
I think it's because I check only twice for [,.]
 
(?:[\.,]?\d+)+
 
yeah
 
4:31 PM
There are countries / languages that add it to the end of the number instead @Ekin
 
hmm good point as well
 
Or both
 
I write mine like I say it
5£.38
 
If you're English and old, you might write £100.00p
 
also, what if I belong to an amazonian tribe and pay for stuff with chickens or wild bore ...
 
4:32 PM
@DaveRandom :p
 
:D
 
@DaveRandom you say "point 38"?
 
That's a full stop.
 
:)
 
You can't tell, but it's also a capital 3
!!dad learn stockholm / Have you read that book about Stockholm syndrome? / It was pretty bad at first, but by the end I liked it.
 
4:35 PM
@DaveRandom Ha ha ha! Brilliant! I'll save that one about stockholm for later!
 
!!dad learn stairs / I don't trust stairs. / They're always up to something.
 
@DaveRandom Ha ha ha! Brilliant! I'll save that one about stairs for later!
 
@kelunik perhaps we shall add to the awaitable spec: Implementations MUST NOT require a loop being active.
 
BREAKING: DaveRandom Gets Bored Of Sitting At Desk, Goes Home
 
how about this?
ugh too many steps
forgot to remove a ? on the {0,4} non-capturing bit
hoh, removing that dropped it to 612 steps... from nearly 3k. also that {0,4} could be *? I guess
 
4:50 PM
@Ekin Are there things you don't want it to match? (mismatched parenthesis, etc.)
Was this intentional? :) $1|0|0.00
 
regex is hard...
 
(pipe is literal in char sets)
 
not really, format is not that important. important thing is that the aim was inputting numeral/money although a human stupidity occured
 
What's the lifetime for PHP5?
I have an old app that runs on PHP5 but not 7.
 
4:53 PM
@Leigh lol, no it wasn't, removed it now :P
 
@R.MartinhoFernandes You still have around a year. Although someone will probably raise an "extended support for PHP 5" RFC
 
I wanna know when should I update it to keep up to date with security stuff.
 
Uh, now
 
Coz I'm not a PHP dev :/
 
@Archer regex is easy. … As long as your equivalent grammar is context-sensitive.
 
4:54 PM
 
Cool, thanks.
 
Oh didn't realise we'd gone 2 years security on 5.6
 
@Leigh yes <.<
 
Anyway, when should you update. The answer is still now.
 
@bwoebi ...
 
4:55 PM
Yeah, but I can't into PHP
Is there an upgrading guide?
 
hi anybody there ?
 
basically the same link as one from NikiC
 
I tried running this under php7 but it doesn't so I want to weigh the effort so I can plan accordingly.
Thanks!
 
There's also a couple of compat checkers that will detect the issues that can be statically detected
 
4:59 PM
I am just new to PHP. I have installed PHP plugin in netbeans and created a PHP project . there is index.php having <body>
<?php
echo "My first PHP"
?>
</body>
 
@Ocramius Your examples on the mailing list for the object type are pretty good... but why don't we just get generics? :D
 
and when I run this code using localhost/FirstProjectPHP/index.php
it is showing the site cant be reached
 
@LeviMorrison I still need to get just tattooed.
 
any help ?
 
@SunilGarg I'm going to guess, considering how new you are, you're probably not running a local webserver.
 
5:00 PM
@Danack Deliberate usage in this case :D
 
@Leigh .. thanks for the reply.. any help how can i run local webs server ? netbeans provide that ?
 
Probably not
 
@SunilGarg no, netbeans doesn't install a webserver
 
@Leigh so i have to install wamp server ?
 
You don't have to, obviously
You can use the PHP built-in webserver for simple stuff if you want, run php --help, check out the -S option
Time to go home, o/
 
5:04 PM
same here
 
5:29 PM
Should I tag a question with php if it's not about php, but someone who uses php will likely know the answer?
 
@Nadroev no, the tags are for people searching for questions on a topic.
Also, you should move to nginx...
 
Neep help with php script to send command to Videojet printer 1610, anyone who can help?
 
@bwoebi If we just stick to Promises/A+, we don't have that issue. :P
@PeeHaa @bwoebi @DaveRandom Do you think it's worth having a generic user / authentication microservice based on Aerys + corresponding client library?
 
@kelunik do you have a small example how I would use them? (i.e. the important parts of the public API)
 
@bwoebi $userService->authenticate($username, $password); / $userService->resetPassword($username) / $userService->register($username, $password, $metaData);
 
5:44 PM
@kelunik That alone does not show any relation to Aerys? In what ways is it Aerys specific and not generic Amp?
 
@bwoebi In that it's wasting resources of course, because it runs on the HTTP layer instead of being direct library calls. :-P
 
@kelunik ???
 
> microservice
 
… why / what for?
 
Hi all
I have one question
I am developing one quiz app . currently i am loading one question after another using ajax . But its taking time.

What should we do so that all questions will be loaded and it will not take that much of time ?
 
5:57 PM
@LakinMohapatra Well, just load them all at once?
 
Actually currently i can do that . If no. of questions in question bank will increase day by day
then it wlll take lots of time to load all questions
 
well, you could hire a developer to solve this problem
 
@tereško , I am here for a solution . not for hiring devs
 
the solution is to implement the loading dynamically in batches. You load X question in requests, and when you have 2 or 3 questions left in that batch, you make a request for the next batch.
done
next please
 
@kelunik I think it could be worth having some kind of something that would allow use password_* without blocking the main thread
 
6:05 PM
@DaveRandom Ah right, that's the reason why I initially thought about it.
 
Thanks @tereško for your suggestions. Yes, i am also thinking the same . Loading questions in batch . That will be good .
 
lol tereško
 
@kelunik I can't really help you with how the API should look or how it shoudl relate to what packages, but that seems like useful functionality to have in some form or another. Probably just a lib built on top of amp/parallel tbh
 
@DaveRandom Yes, a simple worker pool is fine for just that use-case.
 
@DaveRandom uh… does that matter? it takes CPU time in any case… especially with aerys which anyway has a worker for each logical CPU?
 
6:21 PM
@bwoebi it matters if it blocks the event loop for half a second, yes
And yes, sure, it will still impact it under heavy load, but not at that level
 
@LakinMohapatra Another thing - load the first one with the actual page load data, then immediately make an AJAX request in the background for the next batch, then continue as teresko suggested
 
Yes sure . Thanks a lot :)
Thats a good idea
@jimbo
 
@DaveRandom You shouldn't set the cost that high, otherwise it's easy to DDoS.
 
6:49 PM
that's a strange commit message ...
 

« first day (2200 days earlier)      last day (2745 days later) »