« first day (1387 days earlier)      last day (3568 days later) » 

9:00 PM
just switch(1).
 
@bwoebi Yeh except that some people who's names both start and end with S do shitty things like cherry-picking downwards
 
Stas?
 
mmmhmmm
 
@DaveRandom To be honest I didn't have anything super specific in mind, at the moment I had a situation where its easy enough to do but I was just curious if there was a more natural way of doing it.
 
He used to really piss me off but he's been a lot better for that lately, but a few times I've done a rebase against something I've been working on an the history is fucked, and I look into it and find that he's merged a PR into master and cherry picked the commist downwards and screwed the history
 
9:03 PM
Do you guys like or hate websites that use HTML5 video as their site background?
Such as internet.org
 
@joshhunt Just break the specific case down to a logic scenario. If it's a case of checking whether a number of states are occurring then you basically have to have a tree of bool tests, but if you are checking for a specific state of a finite set then sometimes you can look at "keying" state handlers
It's worth understanding short-circuit evaluation, which is what PHP does
@BenBeri Depends what the video is... but tbh yeh, it's it'd something that needs a video and couldn't be translated into JS animation/CSS transitions then I probably don't like it as a background
@BenBeri Also, that's not a background
 
@DaveRandom Right, thanks for your help!
 
@DaveRandom I just don't remember where he has done that?
 
@DaveRandom Yeah because I couldn't find the example I wanted to show.
 
@bwoebi Trying to find the specific case that screwed me over a couple of weeks ago
Also he suggested to @Jack that he do that a few days ago
 
9:10 PM
What's the problem with cherry-picking downwards and then merging up if something landed in the wrong branch!?
 
Sorry wut? Cherry picking downwards and then merging up???
That makes no sense, you'd just check out the feature branch locally and cherry pick into the target branch and then merge up...
 
yeah. You landed a feature in 5.6 and want it in 5.4. So you cherry-pick it in 5.4 and merge up into 5.5?
 
@bwoebi ...therby screwing the history so you can no longer merger for 5.5 to 5.6 without conflicts
 
Not sure where's the difference between cherry-picking from 5.6 or from the feature branch?!
or isn't it two times the same commit?
 
Cherry picking does not result in the same commit though
It results in a commit with the same content but a different hash
and more to the point, incongruent histories
 
9:16 PM
Making a downloading system using php headers for some site of mine. Is it possible or preferred to set a speed limit using PHP?
 
@DaveRandom oh. Shifted that now from the list of facts I didn't know about cherry-pick.
Makes sense now.
 
@bwoebi Yeh I agree it's wanky behaviour and when I first found that out I was surprised, seems like a bit PoLA violation
but... it's Linus. Not sure why I'm surprised
 
There are a lot more people where I'd really wonder why I'd be surprised by them.
also… git is not only done by Linus…
 
No but he makes a good scapegoat for a lot of things
I also blame him whenever I have a linux problem, even though it's probably nothing to do with him
 
haha
 
 
1 hour later…
10:23 PM
I am using socket_write to write something to a socket. However, it's only sending one of the things I'm having it write, not both
I have two socket_writes, one after another
only the first one is going off.
 
10:51 PM
@rdlowrey pure greatness :) - btw. I finally pushed that stream wrapper code to github: github.com/hakre/XMLReaderIterator/commit/…
@DaveRandom well, merge the branch from which you cherry picked iwth that one you cherry picked into. finally the branch should be the same so the branch is safe to delete.
otherwise you can also remove the commit you copied over via cherry pick because you've got them elsewhere.
 
Ok.. I'm having an issue with this.. socket_read isn't returning anything.. is there any way to force it to wait till there is something to read?
 
I think socket_read has a timeout. if until that timeout no data arrived it will just return nothing.
no timeout there, mixed it with php.net/stream_select
so better check the return value, it always returns something, not nothing.
 
@VoidWhisperer Are you looking for while(true) { }?
 
peehaa: Well, kind of. except I need it to exit when the socket on the other side is closed
 
11:11 PM
@VoidWhisperer In that case socket_read should return false
 
It is.. My situation here is that I'm writing something from a java server to the php socket
Despite the fact that I'm flushing the socket after writing, apparently php is recieving none of the data save me closing the socket.
 
What does you server code look like?
 
you mean the php code?
It just prints out 104 when it's done
 
11:26 PM
@VoidWhisperer Huh. I thought you were sending from java to php?
 
good moaning
 
user895378
hola, @Jack
 
user895378
It's still the weekend in my part of the world :)
 
user895378
Not even dark outside yet
 
@rdlowrey sweden?
 
11:36 PM
yes. Sweden, where it is light at 12:30 am
 
@rdlowrey Noice! Time to bring kids to school soon =/
 
user895378
@Danack that's crazy.
 
The good news is that tomorrow is the start of my holiday =D
 
user895378
Congratulations on that!
 
Wait. it's probably 1.30am in sweden
 
11:37 PM
@Danack was that supposed to be funny?
 
@zeeks maybe?
 
@Danack i do not think so.
 
@rdlowrey Yeah, heading up the Malaysia again! Just can't get enough ;p
This time I'm aiming to spend more "bum" time though
 
user895378
A worthy goal.
 
Last weekend I had to drive back from Penang to Singapore .. 9hr trip =(
 
11:39 PM
I need to execute a java program through php and get data from it, halp is that possible (the getting data part)?
 
Next time I'll make sure I can actually switch drivers ...
@BenBeri Hmm, exec()?
 
@BenBeri I'd suggest just executing it through the command line, and getting the java program to output it's data as json.
 
@Danack good idea, power of JSON
But in general, is it a bad idea using other languages with php?
Well the reason i use java this time, is because it's not possible with php as far as i know
 
No. Other languages are better at other things.
 
most things :D
 
11:42 PM
like counting.
 
:P
 
btw I'm staying at my sister place, which is near wales. I'm not saying the town is full of yokels, but I was reading a book at the pub, and someone asked if it was the Quran, presumably because I was reading whilst bearded.
 
that's such an odd question to ask a stranger lol
 
lol who reads books nowadays?
 
surely the quran has an epub version?
 
11:45 PM
@Danack It's really time to shave I would say :P
 
@Jack Particularly a strange question to ask at the pub
/whilst I was eating a pulled pork bap
 
hahaha
 
@Jack there are online versions of the quran
 
user895378
mmmm, pulled pork. One of the tastiest things on planet earth.
 
braised goose is not bad either :D
 
11:51 PM
@rdlowrey You're from the south....presumably you have a family recipe for 'slaw?
 
user895378
I actually don't like the kind of 'slaw most people in this area make/eat. It's too sweet for me.
 
user895378
I much prefer a more vinegar-y flavored slaw that's kind of fairly spicy.
 
user895378
<3 BBQ <3
 
user895378
Don't tell anyone, but I'm definitely going to ninja push a new context option into the 5.6 branch this week to enable SO_REUSEPORT in stream socket servers where the OS supports it.
 
@rdlowrey I'm with you on the (white wine) vinegar......what spices though?
 
11:54 PM
@rdlowrey don't forget to document it =p
 
user895378
@Danack I mince jalapeno peppers and add lots of this stuff:
 
user895378
 
'great on everything'
 
user895378
@Jack I don't know what this "documentation" thing is you keep going on about.
 
/'cept contact lenses
 
user895378
11:56 PM
lol
 
user895378
I've made that mistake before.
 
haha
 
ahahahahahhaah
 
user895378
lol
 
11:59 PM
does anyone here speak and write a second language?
despite from english
 

« first day (1387 days earlier)      last day (3568 days later) »