« first day (895 days earlier)      last day (4068 days later) » 

2:00 PM
@ircmaxell hmm, i'm trying to think of a german brand doing electronics
 
@Gordon siemens?
 
@ircmaxell Audi?
 
@webarto VW, so yes
@Gordon every car brand
 
oh cars. nah, we build supercars! we are world famous for our cars
 
I like my vw ><
 
2:01 PM
@ircmaxell That's nothing unheard of.
 
but VW sucks
 
VW has mostly inferior technology.
Quality is fine.
 
I'd take any german car over another country's
 
@Gordon Dacia ftw!
 
@Gordon So would I, for the mechanics. The electronics leave a bit to be desired though (which was my point)
 
2:02 PM
/me proud dacia owner, because I have to distinguish myself from ze germans
 
lol
 
@ircmaxell Bosch is making most electronic parts for any car, it's not about that solely.
 
@Ocramius i was considering the duster but it feels like a plastic car to me and it has no extras
 
My next car is going to be either an Audi or a Porsche
 
@ircmaxell both VW ;)
 
2:04 PM
I'd go for Porsche. Audi is overrated.
 
@Gordon plastic is cool :D
 
@Gordon I am not going BMW, so what would you suggest?
 
@ircmaxell BMW or Mercedes :)
I totally dig the BMW X6
 
BMW's are overpriced here in the states though
 
@Gordon Wow, that's the crappiest car ever made :) It is awesome looking on the other hand, like a truck, or a tank.
 
2:06 PM
@webarto yeah, everyone keeps telling me that. even people who owned one say its completely not practical. but it looks so nice
 
How popular are Japanese and Korean cars in Europe?
 
and I'm not a fan of build quality of BMW
 
@MikeB I have Mazda and Kia :P
 
did you know for 20 years straight from like 1985, BMW had the record for most car fires of any manufacturer...
 
@ircmaxell we're #1!
 
2:06 PM
You sure it wasn't FIAT? :P
 
FIAT wasn't sold in the US for that time :-P
 
This just made my life a lot easier nvie.com/posts/a-successful-git-branching-model
 
@ircmaxell in the US or in Germany? there can be huge quality differences because of the regulations when to call back a car.
 
@Gordon in the US
 
I know this is serious micro-optimization, but does anybody have an opinion about:
if ($a) { $b = 'foo'; }
$a && $b = 'foo';
 
2:09 PM
@Ocramius I know shooting myself in the head will kill me, but if I did it just right, I'd look like I had a third eye...
 
@Ocramius micro optimization, use the more readable option.
 
@ircmaxell no. didnt know.
@Ocramius what @BenjaminGruenbaum said
 
@Gordon yeah, they had really bad electrical wiring
and Mercedes just feel... I don't know
 
I see... thx :)
 
pretentious... Not that Porche isn't, but at least Porche can go fast and turn heads...
 
2:11 PM
@Ocramius I used to do 'and' and 'or' instead of '&&' and '||' when doing this sort of thing in PHP (and more recently in ruby), not sure what is considered best practice today. A canonical example of this sort of style is 'or die("message")' which I don't like very much. I haven't done PHP in a long time though
 
@BenjaminGruenbaum I'm doing this to reduce overhead at a minimum when proxying, but I was wondering if there was any negative side regardless of readability (which is not relevant here, since it's generated crap)
 
@ircmaxell not that you could go fast anywhere in your country :)
 
@Ocramius From my experience readability is very important, even in 'generated code' . Some optimizers (like Google's closure compiler for JS) optimize if... else into this sort of && construct. If you know exactly what your types are then I guess it's ok. If you'd like to optimize generated code you can also use an optimizer after you generate it. That'll handle turning 'if' to '&&' for you anyway.
 
@Gordon not your scale of fast at least
 
@BenjaminGruenbaum Any suggestion about AST-based optimizers for PHP out there then? That may be an interesting idea
 
2:17 PM
although I was clocked by a cop at over 220 km/h (in a 102 km/h zone), and no ticket or anything :-P
 
@ircmaxell in all fairness, even with a few of our highways still having no speed limit (it gets less and less), you cannot drive a porsche to its full potential on an Autobahn. There is still too much traffic
 
@Gordon true. but even your limited highways are pretty high, right?
 
also, if you crash on an autobahn, you're dead.
 
@ircmaxell the usual limit is 120. but even if there is no traffic signs limiting the speed the suggested top speed is 130 km/h
 
really? That low?
 
2:21 PM
@ircmaxell you dont have to obey the suggested limit
 
@ircmaxell Surely that must have been in the middle of nowhere though? It's not like you'd get away with that in the city...
(mornings @all again)
 
@webarto Cannot use sound ATM, because I am supposed to be batshit crazy busy :(
Actually I am :(
 
@DaveRandom not in the city, but not in the middle of nowhere either...
 
@PeeHaa work work work :)
 
2:23 PM
@Gordon I figured as much, but still, that implies that most people will be doing in that area...
 
@webarto Yep :( It's soo fucking bust it just isn't funny anymore :(
 
@ircmaxell They'll do you for 5mph over here, no chance of getting off. Except on the motorway where it's 70, although I regularly overtake police cars at 90 and there are no question because everyone is doing it
 
@ircmaxell Shouldn't you have 110mph limiter? :)
 
@Ocramius No, I'm sorry, I'm really not updated on PHP, I'm sure other room users know what good PHP optimizers are available
 
@ircmaxell yes, I'd say so. There is not much point in going much faster. it starts to get stressful at higher speeds. at least for me. plus, you wont reach your goal that much earlier and youll burn more fuel
 
2:24 PM
@BenjaminGruenbaum np :)
 
@webarto this car was old enough to not have a limiter
 
And you go free, unless they catch you having jammers.
 
@DaveRandom the trick here, is that the cop was a friend, and he dared me to do it (he didn't believe my care could do over 70mph, yet alone over 100. So he tailed me while I wound it out, to a top speed of 136mph)...
 
@MadaraUchiha Yeh because a value literal is a valid statement in JS. Basically it's defined as a string for BC with ECMA engines that don't know about strict mode. It causes compile errors when you make some basic mistakes, forces you use use ; etc. It's basically sanity checking from the engine to prevent you doing things that are potentially ambiguous.
@ircmaxell That's cheating. :-P
 
@DaveRandom Yeah, I got it, thanks
 
Anonymous
2:27 PM
The funniest noob mistake ever. "var_dump() is giving me, error Missing argument for.."
 
I'm trying to figure out the workflow in the linkify extension
The browser calls the background.js to manage the extension
Right?
 
@MadaraUchiha Right there's something pretty non-standard about that. There are 3 tiers to it instead of the usual 2 you would have for a content script. The reason for that is that I needed to hook the jQuery instance that's actually running in the chat page to intercept the message ajax requests.
 
@ircmaxell Nice! You plan on participating?
 
@MadaraUchiha Yup
 
2:30 PM
Hey, have anyone noticed this? Or is it an extension I installed?
 
Interesting FB page I stumbled across facebook.com/Database.Dumps apparently posting people's financial info
 
@MadaraUchiha Isn;t that just the reply plugin
Do you also see in on main?
 
But yeh, in essence, the workflow is intercept ajax request -> search the message for linkify candidates -> if there are any abort the ajax request and send the keywords to the background script -> background script looks them up in the cache / from php.net -> send results back to page -> make a new ajax request with the same config object but a modified message content
 
@DaveRandom But I'm having a bit of hard time understanding the background.js page. I see nothing that makes the script move forward
All you do there is intercept the extension messages and test for linkability.
What's calling any of the other pages?
 
@MadaraUchiha No, that's probably because of an annoying thing about XHR, namely that you can't stop it from following redirects and inspect the Location header. Hang on let me dig out the key lines, I'll ping you in a few minutes (need to look after The Boy for 10 mins or so)
 
@MadaraUchiha Not showing up for me. Maybe room owners thingy.
 
@webarto Nah, probably an extension
 
it's not there for me
 
@crypticツ whoa
 
@ircmaxell ouch
 
2:36 PM
@crypticツ Holy crap
 
Thats....not so good. ETA to "top of the hour" news story: 49mins..../irony
@crypticツ confirmed. Accounts are listed.
 
:P
 
bah
 
I'm hearing high pitch sound at intervals from laptop, all of the sudden, anyone knows what the deuce?
 
4 messages moved to bin
 
2:44 PM
tnx
 
@webarto Evacuate a 150m area around the computer and call BS.
 
It sounds like a bomb :D
 
you opened my link, but never read it :-P restlessdesign.github.com/pestilence
4
 
31 secs ago, by Madara Uchiha
@webarto Evacuate a 150m area around the computer and call BS.
 
@ircmaxell Oh damn you :D
 
2:46 PM
MUAHAHAHAHAHA
 
I shall be trolled no more!
 
> Plays a high-pitched noise a random intervals.
 
Yeah, it was lost in the forest of tabs.
 
only noticed it now
 
Anonymous
@Ocramius Finally Someone who agrees with me, on unit testing
 
2:48 PM
it's so damn annoying ARRRRRRRRGH
@phpNoOb don't talk about something you don't know, you might end up rendering yourself ridiculous
 
@MadaraUchiha unleash the MOSSAD at @ircmaxell.
 
Anonymous
@Ocramius I am noob, I don't really care if I am branded ridiculous. o0 infact, that would make a good name for my profile :) Seriously, though can you shed a light on the guy's question? It is a two header..
 
eih, your own fault for not reading
 
net stats srv
Server Statistics for \\N76
Statistics since 1/28/2013 15:14:14
 
@phpNoOb he's doing db connections at __construct without even passing in a db connection: how is that supposed to work without some leaky global state?
 
2:52 PM
@ircmaxell I thought this could be a cause of the problem.
 
@phpNoOb:
 
Anonymous
thanks..
 
@ircmaxell I'm going to play the offended card :D
 
ummm.... that's not how that works
 
@phpNoOb the talk is java-based, but it shouldn't be a problem for you, since the syntax is fairly similar
 
Anonymous
2:55 PM
Yea, I noticed. @Ocramius
 
@MadaraUchiha OK so really it all starts in content.js. This is started in its own scope on page load. It's document is a reference to the DOM but it has it's own namespace (meaning that you can't access the jQuery object that SE uses). So what it does is inject some scripts into the "real" scope of the page.
It also sets up a mechanism to relay messages between the injected scripts and the background page: github.com/DaveRandom/chat-linkifier/blob/master/src/…
 
@phpNoOb it gets really really specific to that question at youtube.com/…
 
@MadaraUchiha Then the injected script hooks into $.ajaxSend() to intercept posts sent to the server. If it finds some linkify candidates, it sends an array of keywords to the background script to be resolved.
 
@DaveRandom Where is it defined that content.js is the first to be called? manifest.json?
 
3:06 PM
The background script receives the message and creates a PendingMessage object from it. It then loops over the search terms and looks them up from the localStorage cache, if they aren't in there it makes a manual ajax request.
@MadaraUchiha Yes
 
@cv-pls where are you?
 
...but because you can't actually get the Location header from an ajax request, it uses the chrome.webRequest API to intercept the response, relay the data we want back into the PendingMessage object.
Once all the terms have been resolved or the timeout elapses, the result is send back to the injected scripts, and a fresh ajax request is made with the new content but the same jQ ajax settings object
And that is more or less all there is to it.
 
posted on March 29, 2013 by Rafael Dohms

I love APIs, but I honestly hate having to deal with signing, auth, and curl inside my controllers or services, which means I end up wrapping all of that into something that provides easy access in my controllers. I also love Meetup.com since it really makes managing User Groups pretty cool, even with some bad UI choices, which is exactly where their API comes in, it allows me to provide a dece

 
Arguably some of the OO structure isn't great, but that's because it was all hacked together in about 3hrs. I'm going to replace the nasty monstrous regex with a proper tokenizer for the message at some point, it currently picks up some stuff it shouldn't (I think it will pick up $something = html(); for example)
Or not.
Whatever, this shouldn't have happened
 
@DaveRandom So you intercept the message, put it on hold, resolve all possible links, get their manual entries, then send the new message instead of the old one
 
3:17 PM
@MadaraUchiha In a nutshell, yes.
The whole SE chat code is executed in a closure so you can't manipulate it directly, but you can hook the global jQ events that it triggers
 
But how do you trick the original script in thinking that your Ajax request is the same Ajax request that it sent?
 
By using the same ajax config object. I wasn't sure if it would work, but apparently it does - the correct event handlers are still passed along the chain, so as long as you keep a ref and not a copy everything works as if you hadn't done anything
That's the magic of JS and lexically scoped closures
Luckily they only use callbacks and not promises, it wouldn't work if they did that (I don't think)
 
I see
Well I may will ask you questions as I go along, I'd like to learn Chrome Extensions
 
I really want to get hold of a copy of the unminified source of the SE codez but I doubt I ever will unless they one day randomly employ me. I have a file that I've been slowly naming things more sensibly as I work out what everything does but it's still not very readable, I think they use the closure compiler on it cos it's full of comma expressions and various things that are very efficient but pretty unreadable.
 
@DaveRandom so let's see if I get this straight, the mechanism for messaging relay is to create a <div> and populate it with messages, so that the extensions can read those too?
 
3:28 PM
Which is kind of ironic because they still use jQ so it's disasterously inefficient at the core
 
@DaveRandom Tell me about it
 
352
Q: Recent feature changes to Stack Exchange

devinbThis is an unofficial list of new features and various changes to Stack Overflow and the Stack Exchange network. It is maintained by the community. RSS feed for this question Return to FAQ index

 
If I leave 4 chat tabs open for a day, my RAM goes up to 80%
 
uerfguhws: why is php so insecure?
ircmaxell: troll
uerfguhws:why the hell are there several of memory corruptions in the damn string functions
who is responsible for that crappy code
ircmaxell: you are. It's an open source project, you can submit fixes
uerfguhws: so you are as well
 
@MadaraUchiha Yes, that's kind of a nasty hack really and I have a feeling my locking/synchronization mechanism isn't foolproof. I think it probably needs 2 divs, one for each direction of communication.
 
3:30 PM
Mmh
 
I'm not sure how the Chrome MPM handles stuff like this though, it may be forcibly synchronized underneath
 
multi-process model
 
JS is such a mental asyncsaucezOMG that I find it difficult to get my head around sometimes. It's not like Java or whatever where it's pretty transparent because you have to write all the sync mechanisms, JS is single-thread multi-process and sometimes it gets very confusing.
 
3:37 PM
@DaveRandom why do you function.call() everywhere instead of function()?
 
It's a way to get private methods, although it's possibly not a great way to do it but it's the way I prefer. Basically .call() let's you define the function's this so it's executed in the right context.
(that's the first argument of .call())
 
@BenjaminGruenbaum followup on that micro optimization - actually not that much impacting... 15~30% faster only, so I reverted it
 
When you define private function's like that they are kind of "static". So if the function doesn't actually need to do anything with this then you can just do func().
 
PHP doesn't support any hashing functions that can expand to an arbitrary length, does it?
 
3:48 PM
@Hiroto Old
 
I know, but it's not an old problem
 
@Bracketworks str_pad() ? :-P
 
@DaveRandom You think you're really funny, dontcha'?
;)
 
Damn straight
 
3:52 PM
@Hiroto I still love it :)
 
@NikiC: did you see the see the security issue from Postgresql was released in a commit email?
 
@ircmaxell PostgreSQL?
@DaveRandom got satisfactory answer?
 
GOD DAM OSX
2
 
Well @DaveRandom I should leave, I'll let you handle it. Tell me how it went (and if you need anything) when I get back in approx 2 hr
 
@ircmaxell link?
 
4:03 PM
How NOT to keep a vulnerability secret for a week: http://bit.ly/11TkdY3 http://bit.ly/YHI6lA
 
@igorw are you here?
 
@MadaraUchiha I'll try and have a proper look at it tonight. I need to go out and buy some more sandpaper now because my thieving sister has nicked off with a whole pack of P320 :-P
 
@Lusitanian jawohl, how may I help you, sir?
 
posted on March 29, 2013 by Anthony Ferrara

A few days ago, I posted a video about how to become a better developer. There were a few interesting comments made, but one in particular from the Reddit thread ( http://www.reddit.com/r/PHP/comments/... ) peaked my interest. So I decided to do a reply. Check it out: Read more »

 
@igorw alright, i have a windows/composer issue and i need to figure out how to phrase it for an issue report. and you're the support team.
 
4:08 PM
:-D
 
@igorw since I ran the composer self-update this morning, file permissions are being set incorrectly on windows
i have a directory, let's call it C:\webapp
webapp has permissions granted to IUSR and IIS_IUSRS so IIS can serve files from it, etc
when composer installs vendors, the files are not inheriting those permissions
 
user895378
How about we call it /home/lusitanian/dev/php/webapp instead?
 
user895378
:)
 
@rdlowrey lol
 
@Lusitanian did you have a fairly recent version before that?
 
4:10 PM
@igorw within a month, definitely
at least, i don't recall seeing the "30 day out of date" message
@igorw similar looking issue: github.com/composer/composer/issues/1714
 
@Hiroto, I suppose you are involved in this, right?
 
im kinda the owner, sysadmin, etc...
 
@igorw any th oughts? i may start an issue report
 
@Hiroto OK, well. Back button FTL :(
No biggies though.
 
@Lusitanian sounds similar to that issue indeed, did you try to suggestion from the last comment?
 
4:25 PM
@igorw also, going to try a few versions to try to figure out which commit broke it
 
I never regret doing something the wrong way because it helps me appreciate the right way when I find it.
 
@igorw i did, but it didn't use the temp dir i specified...not sure why
it might not use the TEMP env var on windows, gonna dig through the code
 
that'd be great. an maybe take a look at the commits from the last 2 weeks.
 
yeah i will
hmm php -r "echo sys_get_temp_dir();" doesn't respect my env var
 
STOP!
beer time
 
4:28 PM
ahhh, it uses %TMP%
okay going to try now :)
@igorw yeah it works when i use a temp dir that has the proper permissions set on it
so it's something to do with that, gonna make a comment on the issue
 
alright, parfait
 
@Lusitanian thanks! hopefully that TMP fix works for now
 
@igorw yeah, it's reasonable enough
 
4:35 PM
@Alexander why on earth would you use the back button there anyway
 
i'd love to find out which commit broke it though
 
it holds a state
it's like pressing the back button to go out of a dropdown menu
after setting the value
 
that's a valid navigation :)
 
feel free to push a change to it
but requiring the use of the back button, ever, is a horrible thing
 
then don't implement a half-assed navigation >:(
don't blame me for trying something obvious
 
4:38 PM
it's just the gup function. also, you use back to bounce from a site, or navigate those awful ecommerce sites
(also, the github guys will slap me for not just using their function :p)
the site has been due a full rewrite since about last year
 
whatever.
:D
 
it's still in PHP; we're moving to python so we can merge our streaming service with the web service. also, nobody used a template
 
Uby
@ircmaxell new video?
 
yup
 
2 hours ago, by webarto
I'm hearing high pitch sound at intervals from laptop, all of the sudden, anyone knows what the deuce?
#fail :D
 
4:46 PM
HALP! Someone find me a better name for LazyLoadingProxyDelegateFactoryFactory before it kills me :(
 
MyArchitectureSucksSoICantNameThingsProperly3
 
^Irrelevant.
 
@Ocramius OMG.
 
Uby
@ircmaxell very nice
 
@Ocramius LazyProxyFactory.
 
4:49 PM
@igorw I don't know if I wanna laugh or die
@igorw aaaaaaah, that sounds better, thx
 
@Ocramius I'm laughing though.
 
Uby
@ircmaxell although I disagree on "failures are wonderful". Failures are very useful, but it sucks to fail :P
 
it doesn't suck to fail
not in the least
 
@Alexander me too now, guess I'm good at over-complicating
 
Uby
@ircmaxell Well, it's useful, you can learn a lot from failure but it also makes you feel frustrated and sad :'(
 
4:55 PM
it makes you feel frustrated and sad if you view it as a negative. Failure isn't negative
 
Uby
You feel frustrated and sad until you find a solution
then you feel a super hero and stuff
 
or
you feel adrenaline till you solve it
 
Uby
yeah high-adrenaline-frustration
at least, this is how I feel
 
5:14 PM
@Uby devopsreactions.tumblr.com 3rd one down...
 
Uby
lol
 
... so someone's trying to shame me for nuking inappropriate new tags. By creating huge bounties on questions I've answered...
A mod dismissed my flags as helpful, but the bounties weren't removed.
I'm so confused.
Should I call out the stupidity on meta?
The bounties in and of themselves aren't put on inappropriate questions, and @Baba has put in a pretty good alternative answer on one of them... but still, wtf.
 
So, basically you are baiting people into your own answers?
May I know the MSO thread for it?
 
Haven't made a thing on Meta yet.
 
I don't see what you want to call out anyways.
You did that and now are you trying to retract your error by flagging those questions/answers?
 
5:23 PM
Ah, no, I think you misunderstand.
0
Q: Warning: sqlite_query() [function.sqlite-query]: attempt to write a readonly database

Surya sasidharThe error-Warning: sqlite_query() [function.sqlite-query]: attempt to write a readonly database is coming whenever i try to insert values into a sqllite 1.1 database thru php program. php version is 5.2.

Check out the bounty reason on that question.
There are two more just like it.
The guy is calling me out for nuking his pet new tag on two questions... using bounties.
 
It was the other way around :)
@Charles Whatever, if the name was search-interface it had to be renamed anyways
 
@Alexander Yeah, posted there last night, after flagging the questions with bounties.
I'm just confused about the flags being marked helpful, but the bounties not being removed. Making a MSO question now.
 
Go there and try asking @Shog9 about it. I suppose most mods can't do a shit about that.
I believe I once read something about that. Someone asking If mods can remove bounties or not. Obviously I don't remember where was it and don't want to search atm :)
 
5:41 PM
@Charles Removed.
 
@Shog9 Did you wipe out the user? :)
 
@Shog9 Thanks, you're awesome.
 
@Alexander No - that would actually have left the bounties.
 
I now owe you two beers the next time you're in Seattle. ;)
 
@Shog9 Look at this profile:
Specifically the "about me." That's a personal attack and it deserves a hard hand :)
 
5:43 PM
@Alexander Holy LOL
Man, I don't think I've ever pissed someone off that much before.
Usually people that care about the new tags that much just get in a revert war.
 
@Charles Yeah, I believe so.
 
So, Tridion and Magento have their own StackExchange sites. I find it hard to fathom that either framework is more widespread than, say, PHP. Why not a separate PHP StackExchange, then? For that matter, why not a separate javascript StackExchange?
 
@Chris I don't know enough about Tridion to say for sure, but a lot of Magento questions aren't 100% on topic on SO.
There are also Drupal and Wordpress SE sites
 
I wasn't necessarily wondering if those two sites ought to be closed, but rather, if the only qualification for a new stack is that enough people use it and those frameworks met the threshold, I'm sure either of those languages could shear off into their own stacks.
Those too.... seems like a "Frameworks and Platforms" stack would make more sense
Unless the long-term plan is to spread things out into as many divided stacks as possible, in which case.... PHP could stand alone.
 
Eh. It seems like they're OK with narrowly focused programming-related sites only when there's enough of a non-overlap with SO/SF/SU.
 
5:54 PM
God knows we have the question volume
 
They've expressly closed most of the programming-related sites as dupes of SO.
 
If PHP or C++ were a separate stack, they'd probably be the 2nd or 3rd largest
@Charles I wonder if the motive was that they were duplicate, or if it was lack of volume.
 

« first day (895 days earlier)      last day (4068 days later) »