« first day (2242 days earlier)      last day (2705 days later) » 

2:11 PM
I need a synonym for "default"
preferably something that is not an SQL reserved word
 
def[zero-width-joiner]ault :P
Your people will thank you
 
Can somebody help me with a League Container question please? :( I want to share an interface in the container, and call a method on it to set it up, but I want to keep the Delegate Container magic.
Here's a gist, and I want to avoid lines 6:9 gist.github.com/anonymous/aacfa8e456fe94bcfe61ae1915859cde
 
base? or maybe regular
 
g'morning
 
I want to store default whitelist values for given paths
 
2:14 PM
@tereško initial maybe?
 
hmm ... "initial" sounds ok
 
I should do one of those Riot Games challenges using their API and making some sweet ass website
 
Anonymous
standard
 
how's everyone?
other than wishing they had beer
 
well, I just run out of wine
also, I am at work
 
2:18 PM
lol
 
you're able to drink at work? :(
 
How lucky
 
team lead has a birthday
 
granted, I have to be sober because I'm potentially interacting with students
 
Over here it's normal to get cake not wine
:P
 
2:19 PM
there were also 3 different cakes
 
friend of mine who used to work for MS, it was common to drink at the desk
 
Did you move to franch?
@Tiffany Sure ballmer peak
 
he commented how he had a bottle of aged scotch like six inches from his hand
 
@Tiffany that explains Windows Millenium
 
haha
xkcd comic
 
2:20 PM
yes
 
but yeah, I dunno if that's the basis for why they allow drinking at work
 
!!urban franch
 
[ Franch ] A delicious mixture of [French] and [Ranch] dressings.
 
I just know that he was allowed to
 
I work from home
 
2:21 PM
I'll have to ask him
 
@Tiffany I've always wondered… what's the legend behind this Ballmer peak?
 
I could test the Ballmer peak.
 
I have tested the Ballmer peak
it exists
 
@bwoebi Ballmer is drunk.
all the time.
 
but it's a very fine line
 
2:22 PM
@FlorianMargaine But Ballmer is a CEO, not a programmer?
 
@Tiffany fyi "!!xkcd ballmer peak" will have @Jeeves go find it for you :-)
 
DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS
 
@Tiffany anyone who has ever played pool is aware of this
 
@DaveRandom ahhh, good to know
 
I thought Ballmer is @PeeHaa :P
 
2:23 PM
No he's just Ball
 
:-D
 
well, MS has been doing well lately
 
sure, Ballmer left.
 
You must watch this, wait for the screams
 
2:26 PM
and apple has been stuck trying emulate Jobs ... unfortunate Jobs' last orders was "remove X"
 
supposedly he gave either Tim Cook or top execs a journal of ideas he wanted to implement
but so far, Apple has been doing a pretty shitty job
maybe Jobs' notes weren't good enough
I was trying to rdp into a server, and couldn't rdp, it kept saying there was someone else logged in. I IMed the server admin wondering what was wrong. It turned out that I already had a remote session opened. ... It's Monday.
 
@Tiffany I find that shitty too
 
Woo, day 2 done. Part 2 was easy from my implementation
 
now I have to remember how to login to mysql via cli...yay
 
-u name -Ppassword -h host
 
2:30 PM
-u name -h host -p
 
password's -p is lowercase
 
yeah
 
Or clean your history afterwards
 
I just googled it, I need to change the password for root and another account
 
you need to use socket from local machine :P
 
2:31 PM
I think I've just had my longest chat with Dmitry ever… 1.5 hours straight…
 
@PeeHaa if you cant keep password in your shell history, you might have larger problems :P
 
@bwoebi Did you win? :P
@tereško Valid point
 
@PeeHaa We didn't have an argument.
 
So you lost? :D
 
It was rather discussing where types in PHP shall head to
@PeeHaa Neither.
 
user7172542
2:33 PM
Don't suppose anyone has had much experience with FPDF? I've got a MultiCell table that exceeds the right page margin that needs fixing and I'm lost. :(
 
Woah, got quite foggy outside
 
@Dan I remember having a lot of issues with MultiCell and basically completely re-implementing it
 
Cannot even see 50 meters
 
yeah, foggy over here too, @bwoebi
 
It was a long time ago, in a job far far away though
 
2:34 PM
@bwoebi as in "you had to check that your cig was lit"
 
and there are some asshats who didn't have their headlights on -_-
 
user7172542
@DaveRandom it's a pain... What do you make of this? stackoverflow.com/questions/40760477/…
 
which database or table do user accounts get created into in mysql?
nevermind, going to google the error
 
I'm attempting to yield chunks of a string at a time based on regex matching, is it appropriate to use preg_match, passing PREG_OFFSET_CAPTURE and using that + match string length as the offset for the next run?
And when I say appropriate I mean I'm trying to reduce memory use instead of just using one preg_match/_all. Would that work?
 
2:41 PM
I'm changing a password for an account on a database, mysql reports an error that it can't find any matching row in the user table. BUT, when I try logging in with the account with the new password, it works fine. Should I just ignore the error?
 
@Gordon I'm with cat #2 in the video. Wut?
 
RewriteRule ^([a-z0-9]+)/$ /index.php?n1=$1 [QSA,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)$ /$1/$2/ [R=301,QSA,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/$ /index.php?n1=$1&n2=$2 [QSA,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/([a-z0-9]+)$ /$1/$2/$3/ [R=301,QSA,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/([a-z0-9]+)/$ /index.php?n1=$1&n2=$2&n3=$3 [QSA,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/([a-z0-9]+)/([a-z0-9-]+)$ /$1/$2/$3/$4/ [R=301,QSA,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/([a-z0-9]+)/([a-z0-9-]+)/$ /index.php?n1=$1&n2=$2&n3=$3&n4=$4 [QSA,L]
 
Anonymous
> Should I just ignore the error?
 
Anonymous
@Tiffany the answer should always be no :P
 
2:43 PM
evenin
 
@JayIsTooCommon I can't figure out why it's reporting the error though.
 
Anonymous
So the solution is to just ignore it ?
 
Anonymous
I wish :D
 
I log in with the account to phpmyadmin and mysql cli with the new password and it works fine.
I suppose I'll check the old password, and make sure that DOESN'T work
nope, it doesn't. HMMMMM.
shrug, I'm chocking it up to it works, and leaving it at that. It's the dev box, so if it comes back to bite me in the ass, it can be fixed without worrying too much.
 
@PeeHaa Jesus christ
 
2:47 PM
<this_is_fine.jpg>
 
Anonymous
@Tiffany If that's what you want to do...
 
@Sean that is nuuuuuuuuuuuthing.
 
@JayIsTooCommon I have no idea why it reported the error, google isn't returning anything useful, and I don't want to spend a lot of time diagnosing an error that may not be an issue.
 
Anonymous
2 mins ago, by JayIsTooCommon
@Tiffany If that's what you want to do...
 
I thought you were questioning my motives :P
 
@Dan Honestly I'm struggling to visualise it, sorry
 
user7172542
@DaveRandom no problem mate, it's a nightmare!
 
I do remember though @Dan that I found it very easy to fall into the trap of mixing business and presentation logic (and the boundary is not so clear because the "business logic" in this case is figuring out how to present something), and that the single best thing you can do to understand the problem is ensure that you are keeping a clear separation between computing the layout and rendering the layout.
i.e. figure out where everything should go and what the args for the fpdf methods will be before you actually call any of them.
 
user7172542
Thanks for the advice @DaveRandom. :) Much appreciated! Sales staff here are a little fussy and won't let me get away with a stupid page border! :(
 
Also note @Dan that if you have the room to manoeuvre on this point, I have generally got much better results from wkhtmltopdf. You only need to make it look right in Safari for that to work more or less how you are expecting it to.
 
user7172542
3:01 PM
@DaveRandom is that HTML to PDF only though?
 
@Dan It is, but it's easier to work in many ways with because you can fiddle with it in a browser. You just need to present your data as an HTML page that looks like the PDF you want to produce.
 
user7172542
Cool. I'll take a look @DaveRandom, once again - cheers!
 
Anonymous
@PeeHaa super, that dead island looked pretty neat. @Ekin You recommend?
 
np :-)
 
@JayIsTooCommon is that the zombie game?
 
Anonymous
3:06 PM
Yeah
 
@JayIsTooCommon I couldn't give a try to Epidemic yet but the 1st game was a nice one. Though my lil bro says Epidemic was not as good as he expected. Still gonna try to find some time to try it later at night
I still get visitors that ruin my gaming plans way too often :(
 
I'm functional testing my REST API. One of my services does a RPC to another web service. If I replace this RPC with a stub would this test no longer be considered a functional test?
It's just a pain to manage fixtures on the other web service since it's a different project to mine
 
Anonymous
@Ekin hmm may have a gander
 
morning all
 
morning you
 
3:12 PM
@NikiC I think so. It would either have to be “functions with return types” or “a function with a return type”. “with type” doesn't sound right to me, maybe it might in another context.
 
@JayIsTooCommon lemme know what you think if you do so please :-)
 
Anonymous
@Ekin I shall, it all depends if @PeeHaa plays - I'm not a fan of single player. Though if it's > 2 player we could all play
 
@JayIsTooCommon Dead island was fun, didn't have as much fun in the sequel.
 
Anonymous
@Sean what is it, just free roam with random missions?
 
@JayIsTooCommon IIRC aye. There's plot and stuff so the main branch of missions are linked, but there's quite a few grindy grind missions too. The coop makes the game a lot more fun
 
Anonymous
3:18 PM
@PeeHaa ^ Sounds promising :)
 
@JayIsTooCommon I read there are 3 free slots to invite a player on lobby
 
wow cat5 cable is way more expensive than it was last time I bought any :-/
 
Cricken has a fun 2-4 parter on dead island 1
 
But also read each player has to finish starter quests first to play multi, iirc
 
Anonymous
@DaveRandom crimp your own !
 
Anonymous
3:21 PM
@Ekin Sounds good... Are you a patient person?
 
I did enjoy DI2 though too.
 
@JayIsTooCommon I am doing, this is just 1000ft box of lzoh solid core cable, 70 fucking quid
 
@JayIsTooCommon I think I am, yes
 
Anonymous
@DaveRandom fack
 
I think last time I bought one it was like £45
 
Anonymous
3:23 PM
@Ekin Cool, I tend to cause chaos in any game that I play.
 
:D well, I can say the same
Specially if I'm drunk playin
 
Anonymous
\o/
 
Anonymous
@DaveRandom 1000ft? Big project or just stocking up?
 
@JayIsTooCommon Just wiring in the remaining Sonos speakers at work because the Sonos wifi is... weird. It's a big floor space though, there's a couple of 50+ metre runs, and there are 8 speakers that need doing
Anyway, that's just how big boxes of UTP are, anything smaller tends to be patch leads and ridiculously expensive, value-for-money wise
 
Anonymous
I don't miss IT support, hated it
 
3:31 PM
I actually don't mind it in some ways, I like being super-anal about ensuring everything works as intended/optimally.
 
/me got a new phone this weekend
the v20 :D
 
In this particular case though, it's negatively impacting my life that this has not been done because Sonos implement STP in a technically-standards-compliant-but-also-annoying way, a way which frequently breaks other things which I need, like bonded links to heavily trafficked NAS boxes, and multicast traffic from one of the applications I maintain.
 
Anonymous
@DaveRandom STP is the thing to stop network loops ?
 
Anonymous
Or is that something else..
 
Amongst other things, yes. It's basically ARP for the layer below.
ARP maps IP addresses to physical addresses, STP maps physical addresses to the physical world.
 
Anonymous
3:35 PM
See, i'm not just a sexy face
 
No, you've got a rockin' bod as well
I'm not in favour of objectifying women, but objectifying @JayIsTooCommon is totally fine.
 
Anonymous
:-P
 
@Joe fyi: going to cooperate with dmitry for implementing opcache & dynasm_jit support for typed props
 
3:50 PM
Morning.
 
user7172542
Evening.
 
o/
 
\o
 
Yeah looks pretty cool @JayIsTooCommon
 
Anonymous
did you get enough pings :P?
 
3:52 PM
@jay
hey @jay
 
Anonymous
hoi
 
ping @jay ping
 
Anonymous
joy
 
@jay ping ping ping @jay
 
@FélixGagnon-Grenier didn't get bored of Antimatter already?
 
3:59 PM
... do we really still have an ini setting for y2k compliance?
 
:D
 
@LeviMorrison Should be updated to y2k38 :D
 
if anyone has PHP 7.1 compiled with ICU-57 instead of 58; could you test 3v4l.org/HoVYY for bugs.php.net/73655 ?
 
@pmmaga :D
 
> Removed in PHP 5.4.0.
according to the manual, anyway
 
4:03 PM
Ah, good.
I just saw it somewhere... fortunately not my codebase...
 
I'm le tired
 
Je am also
Ich suis tired.
 
@DaveRandom Solam veram linguam loquere…
 
@DaveRandom Solam veram linguam loquere… (translated from English)
 
4:08 PM
well fat lot of good you are, even I know that it's latin and I don't know latin
 
@Jeeves from English :-D
 
well yeh but it should have detected that, none of those are english words
 
Well, google translate works fine, used manually
 
Sort of
I assume you meant "Speak the one true language" rather than "Speak the language of the only true"
 
It doesn't support latin iirc though
 
4:10 PM
@DaveRandom sure I did (also no idea where "of the only true" comes from; I mean, there's no genitive…)
@Ekin Well, it sort of does, but the translations really aren't good…
 
@bwoebi yay ... that means he's on side right, if we can get perf gain from it ?
 
Google?
 
@Ekin yeah
 
Ah yes indeed. I meant the one Jeev uses :-)
 
@Ekin Oh, it doesn't use google… ok.
 
4:14 PM
Yep. MS I think
 
@JoeWatkins basically yes … His main fear is to get perf decrease (which scalar types currently do)
@Ekin oh well
 
@Sjon Works fine with libicu 55 on 7.1.0.
 
@kelunik thanks; I'll add that to the report. Still not sure if PHP is to blame or ICU failed
 
This must be a shift in my job... I'm finding I spend about as much time on serverfault that I do stackoverflow
 
4:33 PM
I've made a realization. Oracle Corporation are the equivalent of the daleks.
 
@Tiffany ... or maybe your company's sysadmin is is so dense, that he has his own event horizon
 
I am so gd tired, @Tiffany
I hate medicine change ups
 
@tereško our previous sysadmin was fired last year, and he was replaced with a coworker who had to learn new stuff. But even before that, there was a shift to the serveradmin supporting the web servers. Problem is, he knew as much as I did about IIS, so we're both learning.
 
Glad I mucked around with yield, part 2 of day 3 was a lot easier because of it.
 
I'm the "web admin" anyway, so supporting how the websites are built on the server is part of my job anyway. I just didn't have the skillset before.
 
4:44 PM
@Tiffany oh ... so basically you dont even have a sysadmin
 
marvelous business decision
 
Anonymous
@tereško public sector don't tend to have them
 
@tereško current sysadmin only knows how to support CentOS and some other shit, but he supports our ERP's database servers and stuff. He was never assigned the web servers.
 
@JayIsTooCommon lol, I call bullshit
 
4:45 PM
@JayIsTooCommon we have a sysadmin, netadmin and server admin.... then I'm the web admin...
shrug, I'm not complaining, I don't mind knowing how to set up websites on a web server.
 
Anonymous
@tereško no, I meant marvellous business decisions
 
@Tiffany sure, but its IIS
 
but, I do mind when I come across an issue that I can't figure out, and lack of training isn't helping
 
@JayIsTooCommon oh, I thought you were saying that public sector tends to not have sysadmins
 
@tereško so? there are still sites built on IIS. Even if I'm supporting a PHP site, setting up a webserver for .NET isn't much different.
 
Anonymous
4:48 PM
@tereško Nah, that was my first job. Web sys admin, but they didn't know what that meant.
 
@JayIsTooCommon lol. Basically my duties are an amalgamation of my past two precedessors.
 
Does anybody what is "to do" ? my co-worker said it causes your IDE remember you something later
Have anybody a clue about it? It guess it starts with two slashes //
 
At the core level, // TODO: Something
If you come across a todo, or search for them you'll find tasks you (or others) have tried to remind yourselves to do at a later point
 
@Sean I did it in sublime, but it doesn't have any particular reaction
 
I ordered yubikeys on 26th, they just got posted ...
 
4:55 PM
e.g. temp fix // TODO: Fix later The most ignored task in programming history.
 
surely they just had to put them in an envelope ...
 
@Sean ah, ok thx
 
There's sublime packages which list todos, or highlight them
but I don't think sublime does it by default
 
I'm level 20 in GTA online now \o/
 
@Shafizadeh It's literally just a comment. Like any other comment in your code. You editor MAY pester you about it. Commit hooks MAY complain if you try to push one. But at the end of the day, it's just a comment that's ignored by your runtime.
 
4:59 PM
Ah .. alright :-)
 
I usually use // @TODO: some-text-here
 
good .. I will do that too
just what's that @ in the beginning of TODO ?
 
@tereško I have yet to grow very fond of it, but it totally fits the mood of monday morning
 
@Shafizadeh in Atom the most common are atom.io/packages/todos and atom.io/packages/todo-show
Sublime will have similar ones (I can't check since Sublime's packages site seem to be down)
 
ah, I see
 
5:21 PM
 
Didn't know that was your kind of thing Dan
 
The long hair didn't give it away?
Ah, you thought I was a hippy?
 
I didn't judge at all :)
 
  VIRT    RES %CPU %MEM     TIME+ COMMAND                                                        SWAP nMin nMaj vMj vMn
 376568  54792 18.6  0.7   0:28.76 php-fpm                                                           0 105k    0   0  2k
1336948 930520  0.0 11.6   1:58.07 php-fpm                                                           0 406k    0   0 826
Anyone have a clue why PHP uses virtual memory i) at all ii) a lot more than resident memory?
 
Gojira a bit screamy for me, also their album was totally called "The Infant Sausage" :)
 
5:31 PM
Sau__v__age
 
@Danack i) because kernel, ii) because kernel
 
/fumarkup
   VIRT    RES %CPU %MEM     TIME+ COMMAND                                                        SWAP nMin nMaj vMj vMn
 337872  16152 19.3  0.2   0:03.04 php-fpm                                                           0  56k    0   0 11k
1028288  42408  0.0  0.5   0:04.39 node /opt/nodej                                                   0  28k    1   0   5
 
@MadaraUchiha btw, you might find this book series enjoyable then: goodreads.com/series/71196-alex-verus
 
16MB in memory - 337MB on disk....
seems less than optimal.
 
@Danack 337 MB on disk??
it says SWAP 0?!
 
5:33 PM
Virtual memory is not swap
It's memory the kernel says you've have allocated, but you're not using all of
 
@Leigh well .. it kinda is, but for windows
 
I practice pagefile zero
 
@Danack I suspect your php doing huge page allocation… thus using a lot of vmem
 
ignore I said anything about swap. Are page faults as expensive as I recall them being?
(that seems to be saying 11k page faults per top update, which is set to about 3 seconds)
 
Page faults are expensive, relatively
 
5:35 PM
@Danack what is giving you page faults though?
 
Minor faults though
your virt isn't even that high
 
@bwoebi I honestly don't know. All I can see is that this crappy box falls over with no cpu, memory, or excess filehandles being used.
I'm kind of in the dark of how to trace it further.
As strace doesn't reveal anything useful either.
 
Think you need perf for page fault tracing
 
Fall over in the sense of "PHP stops processing stuff. Doing a service php-fpm restart 'unclogs' it, and makes it do stuff again.
 
@Danack perf can trace pagefaults and tell where they're from
 
5:39 PM
Thanks - I'll look at that tomorrow. Now is home time.
 
@Danack perf record -e minor-faults -p <pid> seems to do it
Then perf report
 
@Danack Nice!
I saw God is an Astronaut earlier this year. Irish band that rarely tours over here.
 
6:46 PM
msecs_to_jiffies
kernel^
 
@FélixGagnon-Grenier lol
 
@PeeHaa Can I close github.com/async-interop/event-loop/issues/105 given the latest response?
 
I think what I would like to see is something like amphp\artaxv2 or stuff like that
 
We already have amp_v2 branches in many repositories.
Artax needs a complete rewrite.
 
Yes but I don't know that
(I know, but people will not)
Say I want to build something new, or hell I want to write a twitter client. It's really hard to make a decision currently on what to use
There is no easy way for me to see what is supported
brb food is ready
 
7:02 PM
@PeeHaa As it currently stands, nothing is finalized. Therefore I'd use one of the currently existing stable libraries.
I'd suggest to use Amp v1, migration to async-interop/event-loop will be pretty easy then.
 
"*Hah, all these amateurs, I know how to drive in winter, I'll show them.... aww crap*"
- the tenth emergency agent to crash their car
 
@kelunik Replace PeeHaa by random user x
@FélixGagnon-Grenier slapstick++
 
Anonymous
7:21 PM
Evetoons
 
jay o/
@Wes sounds like your guberment is screwed up again :)
 
is wes in the US also?
 
No he is not. I know it's hard to wrap your mind around the fact that there are more countries in the world as a murikan :P
 
um, I would think asking if he was in the US would imply that I know that, but moreso "your guberment is screwed up" is commonly thrown at the US government
 
7:27 PM
ah
 
Anonymous
@PeeHaa what state is italy in?
 
@JayIsTooCommon it's in every state... isn't there at least one Olive Garden in every state?
 
@JayIsTooCommon :D
 
@bwoebi Why does github.com/amphp/aerys/blob/master/lib/HPack.php use underscores?
 
7:52 PM
\o
 
Wes
@PeeHaa just following the trend of stupidity of brexit and trump
 

« first day (2242 days earlier)      last day (2705 days later) »