« first day (1404 days earlier)      last day (3527 days later) » 

12:01 AM
@DaveRandom What happens if the line > INT_MAX ? hehe
 
@Ja͢ck I come round to your house and slap you with a wet fish?
 
Sounds good, I'll add that comment :)
 
Not sure whether line ending detection might be sensible though? I remember thinking that at the time, but since original code didn't do it I didn't try and open that particular can of worms @Ja͢ck
 
Detection of \n is fine I think.
 
Yeh, I personally think supporting \r line endings is insane in this day and age, but people still seem to want it to be done
 
12:05 AM
If you use CR for line endings, the output will be all on a single line.
 
Or you are using a mac that's so old it <insert something amusing here>
 
I wonder if anyone tried to convince people that \n\r is way more logical than \r\n lol
 
It's late, I'm tired, cba thinking of a joke
@Ja͢ck inorite
that always bugged me
 
Then with only `\n` you should logically get
                                             something like this.
 
iirc there's some weird configuration of telnet options that causes the result you would logically expect from \r\n, i.e. it shifts the current line down one
 
12:08 AM
ahh Telnet
 
I wrote a telnet impl once. I've implemented a good few network protocols, and telnet was one of the most mind bending
Which is sort of surprising since it's also one of the simplest
 
Is it close to being voodoo?
 
It's one of the very earliest network protocols I think, and it shows, because it has loads of bits that have obviously been bolted on the side
(much like DNS)
 
@DaveRandom I've given it another round of thought ... and if n == 1024 at the end of the loop, it will not be able to have null termination.
The other code worked because it had another clause in the for, namely n < 1024.
ehhh wait
but that means the old implementation would have issues with lines of exactly 1024 chars? am i saying that right?
 
No I'm absolutely 100% positive I tested this
The buffer is always at least one byte bigger than the number of chars read
 
12:14 AM
Yes, but they add '\n' at position n.
Afterwards there would be no more space for '\0'.
 
Hi guys, how to print an array content without printing its objects content ?
 
\r\n existed to give the typewriter time to move
I'm serious
 
And zend_parse_ini_string() doesn't take a length.
@AndreaFaulds what do you mean by 'time to move' ?
either i press Enter and pull the cartridge to the left or vice versa ... why would the order really matter?
 
@Ja͢ck You know how a typewriter's carriage takes time to return to the start of the line...?
Teletypewriters
 
$array['row'] = 1;
$array['object'] = new stdClass;
$array['object']->test = "test";

print_r($array);

but it will print $array['object'] content, I want to just print "OBJECT" text
 
12:17 AM
The data comes at it too fast for it to type the first character of the next line in the right place
Thus, padding.
 
@AndreaFaulds Aha, so while it's moving to the start you can move to the next line .. I guess that would save some time :)
 
Literally to give the typewriter time to move back to the start of the line. Heh.
 
@Ja͢ck It is very corny.
 
@cspray Presumably it just suppresses the "By Seb Bergman" messages? Or is it more subtle?
 
@Danack No quite literally that's all it does
 
12:22 AM
Q: is it possible to browse/search a github repo using regex? What I'm trying to do is search for how many hits I get for "global" in the wordpress repo but I need to exclude those preceded with "@". I'm thinking that this is not possible with github's interface. Of course I could just clone the whole repo and use some grep magic...
 
I can't believe they took the time to do it to be honest
 
Please tell me I'm wrong :)
 
/me is very confused by this now
 
The way I see it you need space for both a newline and a null terminating char.
 
12:25 AM
@cspray I dunno.....it it noticeable that people from Europe do tend to have a habit of making sure that their name is emitted lots when their code is run....and that's weird.
 
I'm not even sure why the newline is necessary, but it must be ... somehow
 
@Ja͢ck so regardless of whether or not it's correct (I suspect you may be right) the whole loop, and I also mean the outer loop, is confusing as hell and needs a rewrite
 
I'll give it another look later, but it's definitely fishy.
It's easier to reason when you see the old code because it's less complex.
 
@Danack I agree with that actually, the part about it being weird at least.
 
The whole of fpm is known to be bollocksed anyway, it bleeds memory like it's going out of fashion, precisely because of shit like that that doesn't use zend mm
 
12:27 AM
To be honest I don't even notice it anymore it is just white noise at this point
 
@DaveRandom Red is the new black ;-)
 
What I am confident in is that code works because I both tested it and have been using it for a while, but that whole routine reads horribly
 
@DaveRandom Actually, if this turns out to be an issue we may add it to 5.6 because of read overflow =D
@DaveRandom The thing is that strlen() will give you some value because it's likely to encounter a null byte.
valgrind should catch it, though
 
@Ja͢ck actually I now wonder if the part that originally added the '\n' to the string passed to the ini parser was a hack because of this
Because I guess the ini parser will break on \n, since that is a "statement" terminator in ini
 
The newline is probably necessary because the ini parser expects a whole line.
 
12:32 AM
There's no reason why it should mandate an terminating new line though, I'm pretty sure ini files don't require that
 
/me shrugs
 
This reminds me of the exercise in K&R C
 
He says, as if there's anything even approaching a standard for ini files
 
Where you have to write a program which correctly handles newlines on a 1024-byte buffer
It's really hard.
That stumped me and I haven't finished the book because of it
 
It makes you just want to have a buffer of 1M, just in case.
 
12:34 AM
@Ja͢ck I almost just upped the hard limit to 8K you know :-P
 
hehe
okay, time to bring the kids to school first .. i'll have another stab at it today.
 
> 640K is all the memory anybody would ever need
^ that's the answer!
 
haha yeah, clbuttic statement.
 
1:06 AM
@Ja͢ck Was that s/ass/butt deliberate?
 
@AndreaFaulds Google clbuttic
 
Figured
On that note, I made a similar regex mistake on a chatroom I made
 
flickr.com/photos/ircmaxell/14975144335 <-- the camera took that :-P
2
 
I love wikipedia's page for it. Scunthorpe. I mean seriously classic.
 
For the longest time I wondered what a ponyon was
And why people kept asking me what one was...
 
1:09 AM
@ircmaxell On its own? Haunted cameras aren't good things...
 
@ircmaxell what how
 
meaning no photoshop at all, that's the image the camera produced :-D
 
Where can I hire your camera?
@ircmaxell your camera is so much better than you.
 
/me doesn't use photoshop at all
 
@ircmaxell How?
 
1:14 AM
guess
 
@ircmaxell done by the firmware?
 
nope
 
@Charles We also have places called Clitheroe, Shitterton, Penistone and Wilsford cum Lake
 
or you have a particular periscope
 
It's a mask
so I did a double exposure, turning the camera 180* (and the mask 180* as well), and took the second exposure...
 
1:17 AM
oooh, nice
meh, so simple :D
 
@DaveRandom That is amazing.
And here we just have oddly spelled words, like Skookumchuck and Snohomish.
 
Does it seem to anyone else that protected properties members are a sort of... code smell?
 
@DanLugg yup
pretty much always
 
Same. I never use them, and whenever I feel compelled to, it's always a moment of "Wait, I should probably rethink this"
 
well, you can design for extensibility, but that's rare
 
1:22 AM
^^ Yea, there's other strategies.
I could honestly live with protected being deprecated. I think.
 
Hmm... seems like there's no way to uninstall the "phone" app from android :|
 
lol, not without rooting
 
dang. I really just want a phone for the data connection :\
 
So, don't answer the phone?
 
That's my current strategy, but it seems to piss off people
The initial mistake was making my phone number available somewhere
 
1:31 AM
@Ocramius Download this, set it as your voicemail message, and set your to-voicemail rings to 0 (or 1 or something)
 
hrhr
 
*shrug* I'm semi-serious. People will stop being so pissed, you can always say "Disconnected the voice service"
 
yeah, it's really advertisers/landlord/bank btw. Even my grandma knows that she can call me on hangouts
 
Ah, yes the *hoooonk* You've won a free cruise!
 
You may be able to earn as much as £<four figure number> by reclaiming missold PPI!
 
1:34 AM
lol
Can't get enough of this tune.
 
Argh need to sleep night all
 
Night @AndreaFaulds :-)
 
@Ocramius Meh, early post-punk/goth-rock is hit or miss for me.
 
I'm not even sure if it's pre-punk <_<
 
1:40 AM
lol
 
but yeah, kinda hard to listen to it
 
I've always digged ASF though ^^
I wish we had better built-in collections. I know I can write them myself, but it's a stupid fucking PITA, and I want Maps/Dictionaries that throw NotFoundExceptions when you try to get($missingKey)
s/better built-in collections/something that resembles an *actual standard library*/
 
Isn't @LeviMorrison's stuff good enuff?
as for the SPL: haha.
 
Sure, for the most part. But I have a stronger affinity to use something in something that itself is supposed to have reuse potential when it's in core.
 
"When."
Such an optimist.
 
1:48 AM
I don't like having too many (read: any) external dependencies in toolkits and libs.
 
@DanLugg I actually sometimes even prefer rewriting core stuff in PHP just because I know it's in core.
 
@Ocramius Yea, good point.
 
My favorite mocking subject is array_column()
 
I don't even really know what that function does. I have never used it, and probably won't ever.
It came about in 5.4, right?
 
Maps values by a column iirc
 
1:49 AM
It can be useful but only in languages that aren't stupid.
 
something that can be done in a few LOC of PHP
 
The two major reasons that I come to whenever I find I want something in core, is that 1) It's a language feature, and cannot be implemented in userland, or 2) It's a general interface or implementation that should be included for some encouragement of standardization.
 
(2) is moot imo
let the ignorants be ignorants: that's more paid work hours for me
 
Perhaps, it can be subjective. But when you look at what other platforms offer it makes sense to me.
 
That argument only works if you're aware of what others are doing and also think it's worthwhile.
*coughcoughTHEPHPWAYcoughcough*
 
1:53 AM
@DanLugg well, JS ships with its own broken stuff, for example
 
Quoting @rdlowrey, "idiots gonna idiot", and I don't think any level of standardization or encouragement is going to help. System.Collections.* in .NET is reasonably solid, but C# still experiences some of the worst fucking developer audience I've ever seen.
@Ocramius Nothing with the surface area of PHP or JS is going to be without warts, but you gotta include something pretty to look at too.
 
Yeah, and I don't see why it can't be an external lib :D
@DanLugg a one-liner that installs a pluggable stdlib :P
so when it's time to kick it away, we kick it away.
 
The inherent issue with PHP is shared hosting deployment. .NET (just continuing with the example) by nature with IL assemblies depends on ... dependencies.
I dunno... I just have imaginary lines drawn between userland, extensions, and core.
Certain things seem to belong in one bucket more than another.
Dictionary doesn't go in "userland"; either an extension or core. The problem with extensions is, as I mentioned, shared hosting deployment.
The problem with core is internals everything else.
</rant>
 
@DanLugg the problem I see with extensions is that they are the worst dependency you can ever have
 
Wait, they kiboshed dl, right?
 
2:00 AM
It needs to be built, it opens a can of unexpected security issues, they are obscure to most php devs and they are likely do break since they are bound to internal implementation details
@DanLugg wat
 
Wait, nevermind.
@Ocramius Well, I wouldn't personally want a collections library as an extension. I would want it in core anyway. My point was, even as a "preferred" extension, it's non-deployable.
Which brings the choice down to core or userland. Userland, we end up with great stuff like Levi's, but we also end up with bullshit. And it all gets bogged further by PSR-2837 and FIG.
PHP needs an SL that isn't SPL, and isn't re-fucking-tarded -- that's pretty much where I'm going here.
But when I put it that way, I'm not really saying anything that hasn't been said a quadzillion times before.
 
@DanLugg I don't see a problem with not having an SPL. Nobody will be able to code the perfect library anyway
so "standard" library seems a bit pretentious :)
 
It's not about being "perfect", otherwise it'd be the "perfect" library. It's about setting a standard. PHP's needs differ from other languages anyway, obviously. So I'm not necessarily talking about a copy/paste of some other API.
As long as it's Just Sane Enough™, it'll do.
Not to mention, that now with the plethora of languages out there, it should be fairly easy to compose a sane enough API guided from the collection of comparable ones offered from the other languages.
And that's the other thing, what I'm yearning for isn't even breaking new ground. This is shit that has been done many times over elsewhere. We could learn from their mistakes (rather than our own, for a change)
Anyway, srsly </rant> -- I should probably plow my way through the rest of this project.
 
I get the frustration, I just don't think that there will ever be agreement on stuff like this if the discussion level is about 6 vs 7, so my suggestion is to just pick levi's for now :P
 
Yea, I know. The PHP mantra: s/makes it work elegantly/gets it out the door/
Also, IIRC Levi's is <1.0
 
2:15 AM
Don't say that too loud or I'll lose my job :P
@DanLugg half my libs are <1.0 :D
 
@Ocramius And that's another thing! I firmly believe in SemVer, thus I firmly believe that lib authors reserve the right to make pudding of their API <1.0. I don't feel comfortable consuming whirling pools of change.
 
Well, for instance, I have ProxyManager at 0.5.something and I can't tag 1.0.0 until HHVM fixes Closure::bind(), heh
 
True, I know there're corner cases for keeping a lib <1.0. But if you got hit on the head and decided to rename your methods after characters from the Batman universe, I couldn't hold it against you (I'd think you're crazy) because SemVer.
throw new CommissionerGordonException
 
theme based libs are the worst...
 
/cc @rdlowrey ^^ ;-)
 
2:23 AM
He doesn't call his methods killTheFlyingDog() :P
I'll be working on github.com/zf-fr/zfr-banana soonish
because CacheModule was boring
 
"require": { "mistranslations": "*" } --> biteTheWaxTadpole()
@Ocramius Not enough banana?
 
indeed.
 
Banana::banana(Banana $banana) : Banana
 
stop giving me good ideas!
 
CyclicDependencyException
 
2:26 AM
now I want to write a library where variables, constants, class names and method names are the same.
 
B::a(N $a, N $a)
^^ That'd actually work somewhere with aliasing. I might do that.
I'm legit working on a DI implementation; heavily extensible, context-aware. I've actually got it nearly sorted out.
I'd be interested in the review of fellow elevener's like yourself, and of course the crew of the SS Auryn.
 
@DanLugg you'd just need to ping me in a PR. I'll be as annoying as I can when reviewing :)
 
Awesome.
 
I'm also rewriting the ServiceManager and Zend\Di for ZF3, so maybe I can steal some goodies or even just import an external lib :P
 
Well, that'd probably have to be after exhaustive review; I'm not aiming for performance at the moment. Just congealing the API and logic.
 
2:34 AM
nah, I wouldn't want performance from an injector either
 
lol
 
what I can tell you as a suggestion is to keep an intermediate representation of the steps to follow when to apply injection
then we can compile/optimize the shit out of it
(if needed)
 
Well, it's tree based, and branches can be cached if they're all persistent (shared) injections.
 
@DanLugg yeah, what I mean is to cache the entire procedure, and not do injections directly
then read from the procedure and apply the steps
 
Oh. I see.
 
2:36 AM
I'm probably explaining myself bad because E_4_30_AM
 
Yea, maybe slightly. I think I follow, but try again tomorrow ;-)
 
well, in general, if the injector would do fetchConstructorArg1, fetchConstructorArg2, construct, instead of applying these operations directly, save them in an ordered list
and then replay them
this allows a code generator to replay them
which is also what I wanted to do with Zend\Di :)
throwing stuff like this at an AST optimizer would also produce interesting things
@webarto you get gayer every year :P
 
3:02 AM
0
Q: Base64 String HTTP Post

Destiny DawnThis is my last two questions essentially merged into one. I'm building an app in Xamarin Studio for iOS using MonoTouch (C#) with a PHP HTTP Post backend. On adding the feature to allow users to upload their own images I have the convert the image object to a Base64 string to save in PHP. The...

 
3:16 AM
@Ocramius I once asked why it doesn't support object property names; the answer ... ehh, it's an array function? sigh
How hard could it be, right? $value = is_object($var) ? $var->{$column} : $var[$column];
 
 
1 hour later…
4:20 AM
@DaveRandom @AndreaFaulds fpm_conf.c update.
 
4:39 AM
> Linkin Park's influences include Nine Inch Nails, Deftones, The Roots and Aphex Twin.
Mmmmmmmmmmmmmmmmmno, unless influenced means walked past a guy listening to it in his car.
 
Aphex Twin? lol
You mean the guy who wrote this?
Windowlicker is one of my favs though heh
It's just so bizarre ...
 
5:00 AM
morning
 
good moaning
@JoeWatkins feeling better?
 
exhausted
 
=S
 
@Ja͢ck Windowlicker is good. His older stuff is awesome, Digeridoo, etc.
 
playing now ...
 
user652649
5:25 AM
mornings
 
user895378
5:37 AM
@Ocramius that's really cool, thanks for keeping me up on that. Working hard to push out some v1 RCs very soon. Which leads me to say ...
 
user895378
@Danack I know I said I would tag v0.8 tonight but I'm really close to finishing the last couple things I need for v1.0.0-rc1
 
user895378
So if you can just put up with dev-master for 24-48 more hours I would prefer that
 
I don't care for dub-idroppedthesoapbecauseitsgrimierthanlusitaniansmom-step, but this is pretty good:
 
6:19 AM
guys what is presently the best method to detect xmlhttprequests? I read on SO that HTTP_X_REQUESTED_WITH is not 100% reliable.
 
6:33 AM
posted on August 20, 2014 by kbironneau

/* by Alex */

 
@AwalGarg It's the best way I know .. otherwise, pass something in the request that makes it abundantly clear that it came from XHR.
 
@Ja͢ck ok thanks :)
 
Also, if you have control over your own servers, this shouldn't be an issue.
 
morning
 
6:47 AM
Not sure whether serious or bad developer http://php.net/manual/en/pdo.connections.php#113477 #php
 
reddit.com/r/PHP/comments/2dzlfa/… .. lets splash around in the r/PHP shit puddle
 
yep, isn't that what reddit was made for?
 
Mornign
 
morning
 
7:14 AM
morning
 
I had hard time with this issue :(
 
@Manwal First of all, research http_build_query().
 
E_3_21_AM
 
@Ja͢ck I have also tried this with http_build_query()
 
I am out. Night folks.
Also, @Ja͢ck -- The "car version" of Windowlicker in the music video. Never released, but someone mixed it together pretty darn well youtube.com/watch?v=bccB_SCvkHI
 
7:26 AM
morning
and nite @DanLugg
 
'morning and nite' wow...
 
@DanLugg the intro of that video is simply epic :)
> turn this motherf*cker around, fool!
 
I wonder
what should I pick in the Vbox "create vm" dialog for CentOS .. since there isn't that distro listed
fedora? redhat?
 
7:43 AM
Sorry ^ the "answer"
 
I know it's in french... but you don't really need to hear the text. youtube.com/watch?v=Dtoh73x84Z8
 
morning
 
@DaveRandom :)
My reddit post about credentials in stack traces is getting some attention, feel free to chime in.
 

« first day (1404 days earlier)      last day (3527 days later) »