« first day (1402 days earlier)      last day (3546 days later) » 

12:00 AM
hue hue how big your

oh forget it
 
@AndreaFaulds somehow my local IP address is 192.186.1.12
 
That's a pretty big bit
 
@DaveRandom only a little bit
 
@crypticツ your avatar annoys me, that doesn't look like an actual dash pose
 
12:01 AM
@AndreaFaulds yes, but as a number that represents number of days it won't do =p
 
I'm a brony, ey
 
Then again maybe it was really the pose
It just seemed off somehow
 
@AndreaFaulds you mean, facial expression?
 
Yes. I don't like the term "brony" nor "pegasister", but I am a ponishow fan
I should change my avatar to rainbow dash to see who follows me and is immature about what adults can like
 
12:03 AM
@AndreaFaulds I'm fine with brony but pegasister is...ehh...
 
Holy shit, it's giant @crypticツ!
 
So integer_semantics basically backports some of the integer semantics changes introduces by bigints
*introduced
This means I can get this stuff over with before bigints
 
@AndreaFaulds thirty minutes later @PeeHaa has organized a mlp-watching, booze drinking, google hangouts party
 
heheh
 
> var_dump('-44' << '-7.7');
int(-6341068275337658368)
@AndreaFaulds why ^^ did that shit work in the first place? :)
 
12:05 AM
@Ja͢ck Don't even get me started
 
Because nobody decided to make sure it didn't
<< "works" with negative operands in C
Well, I think it's actually undefined behaviour...
 
x << y == x >> -y? :)
 
Nope
That's what you'd expect, but no
What happens is that it's treated as an unsigned integer
 
I even started doing wiki.php.net/rfc/string-bitwise-shifts a while ago but no-one has come up with a good practical use case for me to put in it, and I have a feeling that "because it's the sane thing to do" won't be good enough :-(
 
so PHP_INT_MAX - y
 
12:07 AM
ohh
 
@DaveRandom I don't like that idea. I think 2 << '2' should equal 8
 
@DaveRandom Just like this fix ... when I told Johannes about it, his first reaction was "why?" o.0
 
Actually, all the bitwise ops should deal only with ints
 
@AndreaFaulds It would, wouldn't it? That only deals with the '2' << 2 case
 
If someone wants a string xor we can add strxor
@DaveRandom Oh, silly me. Still.
If we're going to pretend numeric strings are numbers then we should do so consistently IMO
 
12:09 AM
Yeh but first-class string bitwise ops has its applications
 
That would break the unwritten rule that php is consistently inconsistent.
 
mostly in crypto, but can be useful when dealing with IP addresses, for example
Most of the applications are in networking, but they do exist
 
Breakfast time! Later chaps (and chapettes).
 
@DaveRandom Add it as a string method
"foo"->xor("bar")
:D
 
That would solve all the the things
 
12:13 AM
yes
 
@AndreaFaulds /cc: @JoeWatkins can we haz that too for ustring? ^^
 
And throw in operator overloading and you could actually implement that whole thing in userland
 
@Ja͢ck That wouldn't make any sense for UString
 
@Ja͢ck ye gods please no
 
What do you XOR? Code points? UTF-8? UTF-32?...
 
12:14 AM
Nonsense, UString must do all the things!
 
Implement ALL THE THINGS
 
btw does ustring nfc/nfd normalise?
@AndreaFaulds That's almost the PHP mantra
 
normalise when doing what?
 
not sure, it's completely ICU backed
 
The actual PHP mantra is Implement ALL THE THINGS (badly)
 
12:15 AM
No no
 
What would PHP look like if we had all the things?
 
@DaveRandom It's We\'re going to âimplementâ ALL THE THINGS!
 
lulz
 
people.php.net/user.php?username=ajf See that backslash? It added it for me!
 
I love how it took you two minutes to type that while you opened Word and copied some chars from the character tables :-P
 
12:17 AM
heh
 
@DaveRandom I actually used unescape(encodeURIComponent(...
 
@AndreaFaulds I like your best voted answer ;-)
 
@AndreaFaulds I wondered about that, did you copypasta to twitter or sth?
Oh no, SO profile
 
@Ja͢ck Serious answer, I thought it worked well :P
 
12:19 AM
Oh, actually ... it's the second best answer
 
@DaveRandom Yes. I deliberately preserve it
 
I blame @salathe
 
@DaveRandom It fixed an XSS vuln IIRC :p
 
I blame @salathe for most webmaster-y things to do with php.net
You can also blame @bjori, most things are his fault
 
Or @LeviMorrison
A lot of things are his fault
 
12:22 AM
Jan 15 '13 at 11:26, by DaveRandom
I blame @GoogleGuy. Always blame @GoogleGuy.
 
I blame @AndreaFaulds, she's usually wrong.
 
inorite, that @DaveRandom dude is a dick too
 
@DaveRandom Don't get me started...
 
Don't get me started on @Ja͢ck, his power operator still messes with my mind =O
okay, time to bring some kiddos to skool.
 
@Ja͢ck Wait you're Tjerk Meesters aka dattibaw?
 
12:29 AM
The same!
 
My email avatar is slightly different, albeit of the same anime char ;)
 
One Piece, ew, it's one of the three big shōnen
 
guess again
 
wait what
 
12:33 AM
it's not one piece.
 
but your avatar here is one piece
 
guess they ran out of original characters? ;-)
 
unless, wait, >fanon
maybe that's some sort of bleach x one piece fan fiction
Oh.
 
oh, there is such a thing? lol
 
Yeah...
it's an "original character"
"original"
 
12:37 AM
> Ten is heavily based off of Kisuki Urahara from Bleach
missed that note ;-)
also, it's Kisuke*
afk
 
heh
Still
>Bleach
One of the three big shōnen
 
 
2 hours later…
2:59 AM
> ... you only get real entropy when putting a first year CS Student in front of VIM and tell him to close it.
 
user652649
3:14 AM
afayk do some language support dynamic return type hint? like:
interface Bah { public function cloneAsValueObject() : static; }
static resolves to current class implementing "Bah"
 
user652649
('llo every1)
 
user652649
when i'm programming i forget manners
 
4:35 AM
Anyone on?
 
 
1 hour later…
5:50 AM
Wow, the reason why htmlspecialchars() was named that way =S
 
6:17 AM
hehe
morning @Jack
 
yoyo
morning!
 
Good morning
 
it seems that Pierre really likes macros ;-) @JoeWatkins
 
@Ja͢ck that was.. <not what to write here>
 
inorite, he's gone a bit mad ...
still least he's doing something and not causing arguments :D
 
6:19 AM
heh
 
@Ja͢ck That's not new
 
morning @SecondRikudo
 
@SecondRikudo New to me :)
 
@BenjaminGruenbaum has been preaching it for years.
@JoeWatkins Morning Joe, how's life?
 
He must be in my ignore list .. jk
 
6:20 AM
depends when we last spoke ... I haven't nearly died so far today, so all good ...
 
@JoeWatkins so have we decided to move UString to intl? It seems to make sense ;-)
 
we appear to have made that decision ...
but would rather be working in php-src then in FoP or pierre's fork ...
more ppl will get involved ...
ppl like stas ...
 
FoP?
 
he wants to move to friendsofphp repo ...
 
@Ja͢ck FaP
 
6:22 AM
I dunno what that's for, so dunno why ... he said "easier"
 
@JoeWatkins That implies that you nearly died recently? :o
@Ja͢ck what's that dirt under your name?
 
@SecondRikudo He was contemplating a career as a stuntman .. didn't like it, though
 
haha
 
@SecondRikudo It's Unicode Dirt
 
To the people who came to my rescue after a motorcycle accident on the Yarmouth Road last night, thankyou; I'm ok :) http://t.co/pOWwnI3KKA
 
6:23 AM
@JoeWatkins Spinal Injury :O
Anything lasting?
 
@JoeWatkins is there a way in which we can have ustring in both, but synchronised?
 
nah, I'm good ... can't walk on m own, get dressed, go toilet, or do any irish dancing, but I'll b okay
 
yeah, could be worse ...
 
that's something else entirely.
if only i had half the clarity of that guy's brain
 
6:25 AM
amazing mind ...
 
@Ja͢ck Then you'd be a great physicist.
I haven't heard him excel in many other areas
 
I saw a documentary about a year ago, they were saying on it that he had become a kind of joke ... they were really mean about him ...
 
Hawking looked at php-src for 2 seconds and deduced it was crap ;-)
 
@Ja͢ck That was Jon Skeet.
 
Nah, Skeet is a Java fanboy =p
 
6:27 AM
in HTML / CSS / WebDesign, 10 secs ago, by Second Rikudo
@HarshBhavsar Which part didn't you understand?
 
gotta say, quite liking the new api's in ng ... ustring came together very quickly with not many bugs at all ...
 
@SecondRikudo better ask, which part he did understand
 
@JoeWatkins btw, does ICU do all the boundary checks for string ops?
 
not having to allocate everything is quite nice ...
I'm assuming so looking at headers yeah ...
 
It looks very clean indeed ... after Pierre's macro incantations it looks shorter, but not necessarily clearer :)
 
6:31 AM
I haven't really looked tbh, I'm not done writing the code yet I dunno why it's getting merged into other stuff so quickly ...
also, he was the one that said we should be using a different api, or two apis ... and we're not ...
seems he was right though ...
well, according to documentation he's right ...
I have a niggling feeling that the difference will be swallowed by the environment and we'll just be making the implementation more complicated ... but the documentation does say utext is better for non UTF-16
 
what about utext?
 
@SecondRikudo preaching what?
 
it's a kinda dedicated api for utf8 so far as I can work out ... C API tho ...
 
@BenjaminGruenbaum Read up
 
posted on August 18, 2014 by kbironneau

/* by Federico ponzi */

8
 
6:34 AM
morning @BenjaminGruenbaum
 
Mornin @JoeWatkins how's the new house :)?
 
fabulous :D
 
Awesome
Wait what you were in a car crash?
What happened?
 
motorcycle yeah ...
 
Oh crap, everything still in place?
@SecondRikudo I still don't get it sorry
 
6:36 AM
@BenjaminGruenbaum That the earlier function names in PHP were named based on their length
Because there was not proper function name hashing function
 
Yeah, that's hilarious.
 
DJB hash had been around in the 90's, surely?
 
looks like explanation about - why Ctrl+F doesn't work in Outlook
 
bought a motorcycle, was raining hard and dark when i went to get it, got it 10 minutes down the road and the engine stalled at 40mph, where the road was so wet the rear wheel just started skating, went into a huge tank slapper, held it for a few seconds then bike went from underneath me ... I somehow landed on my feet, took a few steps forward at ~40mph then legs crumbled, smashed knee into floor then whole body then head ... landed in a pile on the floor, was silent for about 20 seconds
 
6:37 AM
@AlmaDo What's Outlook?
 
morning
 
@Ja͢ck you jerk :p you know that :p
 
@JoeWatkins Ouch
 
then heard a car coming, though "gonna get run over if I don't move", so got up, waved arms and hobbled forwards until car slowed, then collapsed again ... ambulance, xrays, night in hospital, crutches, damaged cartilage in knee ... I'm okay tho ...
 
This is why I don't like motorcycles
Well, @JoeWatkins, at least you aren't this guy
 
6:38 AM
@JoeWatkins It must have been the adrenaline that got you back onto your feet.
Crazy Chinese biker.
 
@JoeWatkins oh crap
So how was running at 40MpH? You were like the fastest runner in the world or something
 
For a split second, he was.
 
@BenjaminGruenbaum For about .3 seconds :P
 
This sort of stuff is why I don't ride a bike
 
it was my fault, I should not have ridden in terrible conditions ...
 
6:41 AM
skidding rear tyre is outright scary shit
 
I remember it with such high resolution, I'm sure I'll never forget ... lesson learned ...
 
hey, why nobody cares ? :p
 
Yeah, Motorcycles are generally too light to have good friction even in normal conditions.
 
@JoeWatkins just get a car :)?
 
In heavy rain that problem is magnified by an order of magnitude.
 
6:42 AM
I have one ...
 
Or a bicycle ^
 
@SecondRikudo which is why you typically brake 70-30.
 
luckily, though the bike is smashed, it's rather sought after, so going to get a good price for it as it stands ... probably could fix it ... but bit to terrified of it ...
 
@Ja͢ck 70-30?
 
I will get another bike tho ...
 
6:44 AM
70 (front) - 30 (back) @SecondRikudo
 
I didn't touch brakes at all ... no point ... I should have pulled in the clutch, I'd have had a chance at staying upright ... well I really shouldn't have got on the thing in the pissing rain and pitch black dark on it's first journey in 10 years :(
 
@Ja͢ck When driving on a road, there is a maximum magnitude of acceleration that you can take before you start sliding across the road.
 
@SecondRikudo What's your point?
 
That depends on the static friction force that exists between your tyres and the road
A motorcycle on a wet road is the worse of both worlds
 
It's not ideal, I agree.
 
6:46 AM
It's not just about how you distribute your break weight across the front and back
It's also about how much break you apply.
If you apply too much on any wheel, it'll start skidding.
 
I never normally ride in bad conditions, I'm a fair weather rider only, I don't even ride in the dark, but it was 10 minutes down the road, I had done a bank transfer and didn't want to leave it till morning ...
 
You don't want either wheels to skid because that's 100% loss of control on a motorcycle.
 
well I've come out of tank slappers before ...
that can happen in dry conditions ...
easily ...
 
@JoeWatkins But much easier with wet ones.
 
yeah will not be riding in rain again .... like ever ...
 
6:49 AM
@JoeWatkins or when you do stunts.
that guy was super lucky ^^
 
he came down hard on the brakes then, that bike should be wrapped round a tree
or one of those many telegraph poles ...
he's not too clever "look at this" !!!
 
yeah, pretty much asking for it eh
it presents the phenomena quite well, though.
 
I see nothing wrong; it works, right? lol
 
@AlmaDo Exterminated.
 
@AlmaDo gone
 
@AlmaDo Y u no $result = eval($num1.$operators['plus'].$num2); ?
 
@Ja͢ck no, because rtfm :p
 
7:09 AM
I never read the eval() documentation, because evil().
 
hehe. it doesn't "return" anything. Well, because code may be anything, not necessary an expression (obvious)
 
hmm, it needs return ... funky :)
 
yep. or else, an assignment
 
right, still think it's better form (or whatever you want to call it) to put the var outside.
 
I can't say if there one way is better in context of bad solution :p
 
7:11 AM
Yeah, I meant that relatively to the fact that all eval() is bad, of course.
 
it's like. well, even if we have 1<2, it's still 0*1 = 0 and 0*2 = 0, where 0 stands for "eval() usage"
 
ehm, wat?
 
@Ja͢ck meaning: no matter how good or bad are approaches if the root is bad :p It will spoil everything
 
good meurning :)
 
@AlmaDo Then why add it to your answer in the first place? =p
 
7:17 AM
@Ja͢ck because to explain that it's bad :p
 
Pff, you can do that by simply pointing at the other answer.
If anything I would bring the second part of your answer forward.
 
fixed :p
 
good mornings
 
But ... jQuery =O
 
Guys (a) or (b)? :D
 
8:00 AM
@BenjaminGruenbaum sigh another sample of "popularity", not "how useful" is the answer/question
 
@TomášAresakMalčánek I'd go for (b) , why?
 
Making an important function, but I have 2 ways to do it
And they are very similliar :D
 
guys anybody has experience with installing nginx+php+mysql on windows?
 
8:08 AM
pretty sure fpm doesn't work on windows ...
 
Morinign all
 
wtriple.com/wtnmp <- Is this a good/recommended stack?
 
moin @PeeHaa
@AwalGarg not if it starts with windows
 
this is heartwarming, someone registered an account with us using email f*ck@urmother.com ... such a nice guy.
 
@JoeWatkins for development purpose?
 
8:10 AM
@Ja͢ck I'm sure they meant @Lusitanian's mother
 
@Ja͢ck I think (s)he misspelled @lusitanian
@Jimbo lol
 
@YogeshSuthar how is that even remotely php related? lol
 
@AwalGarg don't like windows, wouldn't use it for anything ... if production is unix, development should be unix, better to use a virtual machine of your production environment that try to resolve diferences, it's a waste of time ...
 
Cygwin solves all your problem ... and adds a few more ;-)
 
@JoeWatkins actually, my graphics card is not working on linux... so I am stuck with win. I also don't like win. I am presently using wamp but apache is pretty slow. I have to test the site on mobile devices over wifi, and apache clogs my router. So I thought, maybe nginx would be faster?
 
8:14 AM
that's odd, what graphics card do you have? AMI?
 
@Ja͢ck intel g31 chipset onboard graphics card.
 
intel chipsets are typically well supported ...
 
Good morning, folks.
 
I stopped caring about that sh*t when I bought a Mac lol
 
@TomášAresakMalčánek which function?
 
8:16 AM
@Ja͢ck it only gives me max 800*600 res... the drivers are not supported for ubuntu as of now, community develops them, not intel. :(
 
@TomášAresakMalčánek Good. Unplug your machine and pack it up. We're putting it in production :-)
 
@Naruto Caching, trying to do db cache system. But dunno if it will be secure :(
 
@Ja͢ck No script to check if an e-mailadres is valid?
 
@Naruto hmm?
 
FILTER_VAR ?
 
8:18 AM
Strictly speaking ... foobar (at) urmother (dot) com is valid.
 
@Ja͢ck There is a way to check if an e-mailadres actually excists, instead of people typing in ***@xxx.com
 
@Naruto None that are reliable enough.
Remember that SMTP is a tolerant system, outages may happen and shouldn't affect successful delivery .. therefore, the only reliable way of knowing whether an email exists is to send it something.
 
Currently I just do DNS check ... if there's reason to believe a server is there to handle email I will send something.
 
Morning
 
8:22 AM
@Fabien morning
 
is curl the only way to send a request from the server?
 
Uhhh I cant use hash tag in urls lol
I forget it's already in use with HTML lol
 
@AwalGarg No, you can use file_get_contents() too.
 
@Ja͢ck by POST, I meant.
 
@AwalGarg Yup.
 
8:23 AM
@AwalGarg file_get_contents()
wrong copy/pasta :P
 
didn't know that! lemme see. thanks guys :)
 
contrary to its name file_get_contents() can post contents too.
 
It should just be called the_better_curl_and does_other_shit_too()
 
it would be faster and better than curl, right?
 
@PeeHaa Yup, the length of that function name will distribute well ;)
 
8:25 AM
@AwalGarg The functions used are never going to be the bottleneck
 
Ehm, well, depends on what you consider good and fast.
 
If good is sane: yeah much better
:P
 
@Ja͢ck fast is what does more work in less time, and good... I can't define that.
@PeeHaa thanks :)
 
i personally consider curl to have a better api, albeit extremely C-based
 
@Ja͢ck What to the fuck
 
8:28 AM
for single requests, though, i typically go for fgc
@PeeHaa hmm?
Have you ever tried debugging streams?
 
buy guys, thanks again for help :)
 
@PeeHaa that's not bundled with php =p
Though, it should be.
 
:D
 
posted on August 18, 2014 by kbironneau

/* by suso_bv */

 
Anyone know why mb_convert_encoding() would freeze my script? Or run infinitely...
 
are you sure that it's the reason?
 
$result->{$k} = mb_convert_encoding($v, "UTF-8", mb_detect_encoding($v));
 
and if yes, what makes you so sure?
 
script freezes there.
 
8:46 AM
so if you, for instance, comment that out, all goes well?
 
No it doesn't freeze there sorry. Script seems to just pause the loop when that isn't commented out.
 
great
next
 
@Fabien what happens if you run it outside the loop
 
Doesn't break
 
@Fabien freeze or infinite loop?
 
8:49 AM
I assume that $k and $v are the bound foreach variables? @Fabien
 
@Ja͢ck checkdnsrr? That's what I usually do :)
 
@Ja͢ck Yeah
 
@Naruto I think I have something like that.
 
@PeeHaa Infinite loop
:-/
 
@Fabien Can you share a few more lines?
 
8:51 AM
@Naruto ah no, it's dns_get_record()
 
@jack I usually use this !(checkdnsrr($domain, "MX") || checkdnsrr($domain, "A")) combined with the checkup if the string is build like and e-mailadres.. Let me check your function, It prob does the same?
 
    foreach($result as $k => $v) {
        if($v === '') {
            unset($result->{$k});
            continue;
        }

        if(function_exists("mb_detect_encoding") && function_exists("mb_convert_encoding")) {
            $result->{$k} = mb_convert_encoding($v, "UTF-8", mb_detect_encoding($v));
            sleep(1);
        }
    }
 
@Fabien Check whether or not the function exists outside the loop, so you're only doing it once
 
Aye will remove it
 
sleep(1);?
 
8:57 AM
@Naruto Here you go :)
 
@PeeHaa sleep(4); //Make it seem as if we're actually doing work
 
:P
 
@PeeHaa Just temp to stop it spamming me.
 
You sure that is not the problem you are having?
 
@Ja͢ck Jup works the same, however your functions are newer (PHP5) :)
 
8:58 AM
@Fabien words confused your are.
 
mornings
 
Not sure about your timeout, but it you have couple of items in your array it adds up
@DaveRandom mornig
 
@Naruto Yeah, plus it allows CNAME resolution.
 
@Ja͢ck A bad question should be closed by anyone. :)
 

« first day (1402 days earlier)      last day (3546 days later) »