« first day (2054 days earlier)      last day (2890 days later) » 

3:00 PM
@AlejandroMorán Do you use Composer?
 
yes
I do
 
Try composer dumpautoload
(as a command)
 
@bwoebi Done.
 
ok, let me a sec plz
 
@Trowski Thanks … can you please weigh in in the only remaining PR discussion… not sure what to reply…
I can make examples up about e.g. a defer cancelling a delay() (and when the delay() for some reason was executed before the defer, we end up with a cancelled watcher...)
but perhaps I'm wrong too…
 
3:04 PM
Fixed it
 
so, feedback is appreciated there @Trowski
 
Oldskool nope, but I think there's something more, I've an index.php in which I put "use Slim\Slim as Slim;" and I can use "new Slim()" from there without problem, but in some files I require after that I can't, because it does not find the class without prefix "\Slim\"
 
Missed some dependency ;P
 
@AlejandroMorán Well, you will always need that use statement to get the class.
Look into namespaces for details on why.
 
@bwoebi That's why I preferred only throwing on enabling an invalid/cancelled watcher and ignoring on other ops.
 
3:06 PM
Oldskool also in required files? I thought it was a general thing and required files will be able to see what am I importing in the index.php (the file which require them)
 
@Trowski Yes, I do … but maybe you want to weigh in … I don't seem to be able to persuade Niklas…
 
@AlejandroMorán Mixing namespaces and require() is very tricky. You probably don't want to go down that path.
 
Oldskool hahaha thank u a lot! I will read about this two things so :)
 
@bwoebi So you're also proposing throwing on disable, etc. if the watcher ID is invalid (never issued by the loop)?
 
@Trowski It's like a debate between me and Niklas alone and nobody else is saying much here...
@Trowski I do not see any disadvantage in that though
 
3:11 PM
@bwoebi No, not really... that should never happen and only requires a > check.
 
and it's easily checked by chars between a and z and $var < highest emitted id
right
 
Actually >= if ($watcherId >= $this->nextId) Seems somewhat unnecessary, but is probably cheap enough to not matter.
 
right
I'm not a strong proponent of it, but I disagree with Niklas' argumentation
 
you have to call "dispatch" function
it returns a callable function
and you will have to execute the callable function
i've edited your code
 
Anonymous
!!version
 
i had to read core files :p
@JayIsTooCommon what is mean of "!!version"?
what is it?
 
Anonymous
@AdilIlhan I was just trying to get the github link :P - It's the room 11 bot created by @PeeHaa and @DaveRandom with help from other regulars :)
 
hmm...
 
Anonymous
intriguing, right?
 
It has mission critical plugins, too.
!!rebecca
 
3:26 PM
@Oldskool Only 2 days, 8 hours and 33 minutes left until Rebeccaday, OMG!
 
Anonymous
lol
 
Room 11 couldn't survive without 'em.
!!wotd
 
mugwump: a person who is unable to make up his or her mind on an issue, especially in politics.
 
LOL, gotta remember that one... mugwump xD
 
pff i've remembered Rebecca purple :(
 
3:30 PM
@bwoebi How does the engine compare strings with >=? Does it look at length first, or does it try and do some fancy conversion to a numeric first?
I'm wondering if the >= would actually be cheap.
 
@Trowski dunno, but it doesn't matter for max 12 chars
 
> The translate() helper is part of zend-i18n, and would thus require installing zend-mvc-i18n as a dependency (which also brings in zend-i18n).
 
@bwoebi It doesn't? How so?
 
O.o
 
@Trowski comparing 12 chars is in the range of 10-20 ns
 
3:32 PM
!!rfc
 
RFC id required
 
!!rfcs
 
@bwoebi Sure, as long as it doesn't try to convert to a numerical value first...
 
@bwoebi Right, that was the one. Thanks :)
 
3:32 PM
@Trowski let me look it up, sec
 
Wes
\o
 
Anonymous
I'm off, have a good evenin o/
 
@Trowski it actually does, but this does not matter as all chars are non-numeric typically… and numeric conversion aborts early.
It aborts at the very first instruction of that function
 
@bwoebi Just checks for ^[0-9] I'm guessing.
 
    if (*str > '9') {
            return 0;
    }
 
3:40 PM
Is the next line if (*str < '0') return 0;`? :-D
 
no.
next line is call to non-inlined function
 
@bwoebi oh my
I find this beautiful and terrible at the same time
 
@FlorianMargaine why terrible?
 
@bwoebi Boo... ok, well whatever. I'm satisfied that if we do a compare it is fast enough to not matter.
 
@Trowski because leading whitespace and - sign support
 
3:42 PM
Right, forgot about that.
 
@bwoebi I don't remember off-hand what's < or > to numbers, which means I have to look it up, which is pretty terrible as far as readable code goes
 
@FlorianMargaine It's just a C char literal?
 
@bwoebi I mean, I don't know if 'a' < '0' is true or false
 
@FlorianMargaine Within the context (checking if a string may be able to be converted to a numerical value) it makes a lot of sense.
 
@FlorianMargaine false
 
3:44 PM
my point is, when I have to read the ascii table to figure out what a line of code is doing, the code is pretty bad imho
 
@FlorianMargaine I cannot tell you whether _ < '+' or not, but for most chars I have a vague idea of ascii table order
 
false. I can't not see that face when someone only says "false.".
 
@bwoebi I remember that special chars are before letters/numbers, but that's about it
 
comment it then... non-obvious optimal code is fine as long as it's accompanied by a comment
 
@FlorianMargaine right. And letters are after numbers
 
3:46 PM
@DaveRandom definitely
 
Hi I need one help in laravel, please help me.
 
@bwoebi is it possible for me to sanely embed an aerys server into another amphp process? I'm struggling to work out how to avoid using bin/aerys to start it
I can just copypasta the bootstrap code from that file but I'm wondering if there's a better way that I'm missing?
 
@DaveRandom yes, you can use Bootstrapper::init()
 
looking...
 
this is skipping the Bootstrap file inclusion
and you can directly start it from there
 
Wes
3:58 PM
a pixel died in the exact center of my 21:9 monitor -__-
 
I've made it public API a while back because someone asked for that.
 
o/
 
@bwoebi OK great, and are there docs for @param array $options Aerys options array somewhere?
 
@DaveRandom it's the normal AERYS_OPTIONS array
 
ahh right yeh, gotcha
tnx
 
4:01 PM
It basically skips forward behind any direct argument access from console too… so, it's all your direct options there.
 
OK right, so I still just need to do (new Host)->etc() as usual and then just start() the returned server object?
 
@DaveRandom right
or, if you wish to be more flexible, you can build your vhosts yourself
@DaveRandom You can pass a callable to the ctor which will return something equivalent to Host::getDefinitions()
 
@bwoebi yeh I saw that but in this case redundant I think, I only need 1 server instance
 
@DaveRandom You only ever need one
 
so what would be the point in collecting Host instances manually?
 
4:10 PM
if you want to shut down and restart it with other hosts
 
oic
 
also, for testing
 
I don't test, that's what users are for #yolo
 
@DaveRandom I've always wondered, is the "o" more of an oh or an okay?
 
It's "Oh I See"
 
4:13 PM
oic
 
Jay
can someone help me out with this date thing
I looked at the code but dont get this
I have a date
$date = '2015-05-30 22:31:12':
I want to compare this date to todats date and if this date is over 13 months
can someone show me please
 
Wes
new datetime() ->diff (other date time) >= new dateinterval
 
!!> var_dump(new DateTime('2015-05-30 22:31:12') < new DateTime(), new DateTime('2015-05-30 22:31:12') < new DateTime('-12 months'));
 
er... wat?
oh 2015
 
4:20 PM
hehe
 
Wes
4:53 PM
client sent me the same incomplete sms twice. then he called a bit angry because i haven't replied to him ¯\_(ツ)_/¯
 
> Dear client is it ok if
 
Wes
then close the call
ahah
 
Hey, I'm wondering, how do you guys get big things into the language?
In JS that's nearly impossible with the TC
 
Technical commision?
 
Wes
tried with THC?
seriously, what's TC?
 
5:00 PM
Technical Committee
 
hi
 
@BenjaminGruenbaum RFCs … and get enough people persuaded, not named Stas, to vote for it...
 
Oh right, you vote instead of a consensus process.
Maybe that's the thing, in our process everyone or almost everyone has to agree. That's really hard because big proposals are complicated and require multiple reviewers who understand them and that's typically not the case.
 
Consensus is nice. But not with big groups…
 
Consider the amount of people in PHP internals that really understand how generators work in PHP :D
 
5:08 PM
An agreement of 85 or 90% is fine… A required agreement of 98% is too much…
 
Step 2: Announce your RFC on internals because you have to, but then ignore the noise that results and work out the issues in IRC or here.
 
There is always something somebody doesn't like and most others prefer the current way
@Trowski not ignore, but ignore the noise from the typical bullshitting candidats after their zeroth or first mail.
 
@BenjaminGruenbaum actually, we typically get two or three unrelated people for bigger proposals to review them (Dmitry and Nikita and then eventually Xinchen or myself).
 
That sounds reasonable.
 
5:11 PM
@bwoebi True, I generalized, there are those who use the list for constructive feedback.
 
@Trowski right, these are just generally few in the total amount of mails, but not too few in the total amount of persons....
 
The S/N has gotten pretty terrible lately. I roll my eyes when I see another email on the typed properties thread :-)
 
@Trowski that's the only little more controversial thread recently though…
 
@BenjaminGruenbaum What happens fairly often is that mailing list discussions make proposals sound hugely controversial ... and then the vote is quasi-unanimous.
 
True. I suppose credit where it's due, internals has been better lately and has pushed through a lot of great stuff for 7.1.
 
5:18 PM
Which tells me that it's hard to judge whether consensus exists just by reading discussions.
 
6:07 PM
Since when did GitHub add the ability to add a bio?
 
@icecub Am I missing something here?. I tried chat history but I don't see anything?
 
evenin
 
hellow
 
morning
 
Hey look who's still alive and kicking
 
6:24 PM
@NikiC STH in a nutshell :p
 
Hey PeeWee :)
 
@Andrea calling that consensus is a bit of a stretch...
 
@NikiC no, I mean “it's hard to judge whether consensus exists just by reading discussions”
 
@DejanMarjanovic How/what are you doing nowadays man?
 
@DejanMarjanovic so ... you are out on parole now?
 
6:26 PM
HAHA
 
Anyone willing to look at my SQL issue? (SQL room is dead and don't want to create a question on SO)
 
There's a term for that here... "Went to Canada" to be never heard of again.
 
@Waxi sure. We'll look at it, but nobody's promising to actually help
 
SELECT

  a.1,
  a.2,
  a.3,

  SUM(CASE WHEN b.2 = 'L' THEN b.3 ELSE 0 END) as L,
  SUM(CASE WHEN b.2 = 'M' THEN b.3 ELSE 0 END) as M,
  SUM(CASE WHEN b.2 = 'O' THEN b.3 ELSE 0 END) as O

FROM a

LEFT JOIN b ON (b.1 = a.1)

GROUP BY a.1, a.2, a.3;
 
/me has a fresh beer open
 
6:28 PM
How do I combine the three sums so they just return 1 sum in 1 column?
 
@PeeHaa "In between jobs" :D Missed so much stuff. How are you doing? Still in Weedland?
@tereško Well, basically, yes :D I can't work for 3 months, so decided to waste time here :) <3
 
@DejanMarjanovic Yeah I'm busy+fine and totally still in potland.
 
hi guys
sup?
 
SUM(CASE WHEN b.2 IN ('L', 'M', 'A', 'O') THEN b.3 ELSE 0 END) as Total
 
6:33 PM
@tereško Ah you're so smart, except my shit database rejects that. Let me find a workaround, but at least you pointed me in the right direction, much appreciated!
 
@Waxi well, you need an OR condition in your WHEN
 
Please approve me Sir Admin, it's urgent.
 
@tereško I'm not sure?
 
yes
 
@DejanMarjanovic done
Still no idea what teams are though :P
 
6:36 PM
I think my approval is still pending
 
@tereško Could you expand? I don't see where it's supposed to go?
 
@tereško You're not on the list
 
4
Q: Mysql Case with Or condition

AthiHow to write a case in mysql query which checks for null or 0 for a particular column CREATE TABLE tblConfirmationStatus (Confirm_Status TINY INT) INSERT INTO tblConfirmationStatus Confirm_Status VALUES (1), (0), (1), ({null}), (0), (1), ({null}) Required Output ConfirmStatus Confirm...

 
Or I'm blind
 
sent a new one
 
6:38 PM
Done
 
Choose your adversary!
 
guys
what do you recommend in database versioning?
or server configuration files?
 
@PeeHaa appreciated much
 
@Victor heavy drinking
 
oh, great. really?
 
6:39 PM
tbh, I dont know of a solution, which was not a fucking pain
 
@Victor It's one of those (many) things I have no clue about doing it sanely
 
it sucks...
I want to do that so I cannot forget to update things
 
Add the /var/lib/mysql to git :troll:
There's no silver bullet for that afaik, or any other bullet
 
@Victor just in case your fairy godmother drops by, you should also wish for world peace, while you are at it
 
@tereško wish*
 
6:42 PM
tnx
 
wtf dude
 
This looks actually interesting klonio.com
cc @Victor @DejanMarjanovic @tereško
 
Signed up, nice webpage
 
their website looks quite nice
 
6:46 PM
Yes, as I've said
 
@tereško What you typed did work, I just copied it poorly, thank you.
 
Someone canhaz codez for keybase.io?
 
@DejanMarjanovic sure, gimme your email
 
@PeeHaa …bah, that should be in a single repo, not just linked.
 
@tereško dm php net much appreciated
Don't sign me up for russian brides, please
 
6:49 PM
:D
 
@bwoebi Some people just always need something to bitch about :P
 
Je accept!
 
@PeeHaa o/
 
But more serious as long as there is seamless mapping I don't care too much
 
6:51 PM
If I'm building an array from 2 existing multidimensional ones, should I make those 2 match field for field (only checking first index for duplicate entries), or only worry about that when I build the final one?
 
if have 9 more invites, if anyone needs
 
@tereško <3 (owe you $5 or a good beer :P)
 
@tereško whatever at firstnamelastname.com
tnx
 
that's a real mail?
 
well it's pieterhordijk.com, but yeah I have a catchall
 
6:53 PM
sent
 
just like Lusitanian's mother @PeeHaa
 
ty
@DejanMarjanovic :-)
 
Basically what I'm asking, should I dump empty columns/values in my first array to match my second one, or does it not matter since I'm building a 3rd from the two that will ultimately have all fields from both.
 
user986408
has anyone worked with the stackexchange api so far?
 
I have done stuff with it in the past
 
user986408
6:57 PM
@PeeHaa oh cool. do you know if its ok to not only query the api data but also store it? i've read that it's ok to use the api if you put some text on your website that the data comes from stackexchange
 
user986408
but they kinda never declared what "use" really means
 
What kind of data? A lot of data is cc + attribution on SO
 

« first day (2054 days earlier)      last day (2890 days later) »