« first day (1269 days earlier)      last day (3676 days later) » 

3:00 PM
heh
 
user895378
@metalvarez I don't know you but your gravatar qualifies you as a good person as far as I'm concerned.
 
lol
 
@rdlowrey No spoilers!
 
user895378
Nah I'm a book reader from way back. I know how to keep things under wraps at this point :)
 
3:05 PM
GoT readers are some of the coolest non-spoiler people I have come across. It seems they're all unanimous in not ruining things for the watchers.
Mind you, I may read the books around June time.
 
@Fabien it's so hard not to though, so much awesomeness happens :-)
 
user895378
There's a ton of stuff that's going down this TV season of GoT ... I'm looking forward to seeing the widespread internet reactions.
 
Wrong link. I updated it. Here it is again just in case.
 
XD thanks @rdlowrey yeah dude its like those books are so good so we really want others to enjoy
 
user895378
3:07 PM
'"Lord of the Rings! The books were probably better!"
 
Anyone read the Night Angel trilogy? Brent Weeks
 
lol. @rdlowrey's quote
 
?
 
user895378
@Jimbo Nope. Should I put it on the reading list?
 
@rdlowrey I recommend, one of the only books that had me laughing at one point and almost in tears at another. Obviously man-tears.
(via sneezing, etc)
 
user895378
3:10 PM
Obviously.
 
Yay for undefined behaviour which works everywhere as expected; just not on Linux.
 
If anyone has a Japan affinity I highly recommend either Shogun (No relation to the film) or Musashi
 
@ircmaxell but in my test environments :-D
which were OS X and CentOS
It even worked on Windows!
 
@ircmaxell I've never actually read Stephen King, considering he's very well known
 
3:13 PM
CentOS is Linux
@Jimbo Book 1 is rather slow, ok, it's boring. But read it anyway, then read the rest of the series. It's amazeballs
 
@ircmaxell it worked there, but not on Debian, Ubuntu and Raspbian…
 
Hi, I need help in Symfony2 file uploader
when I have an image with one to many relation with main entity (User)
can somebody help me out?
 
@bwoebi all of which are derivatives of Debian. So the correct answer would be: "Works everywhere but Debian and derivatives".
 
@ircmaxell phew… don't know that OS hierarchy by heart…
 
3:21 PM
Well, Debian->Ubuntu you should know by heart ;-)
 
Actually… erm, I didn't^^
 
It comes in handy knowing the big ones. So Debian->Ubuntu and RHEL->CentOS
 
@ircmaxell, Max hi !
7
Q: What is the difference between while(true) and for(;;) in PHP?

AlastairIs there any difference in PHP between while(true) and for(;;) besides syntax and readability? Edit: I would not consider this a duplicate - I want to know the answer specific to PHP. Is there any real difference as far as the engine is concerned? Do they compile to the same thing? Do they have ...

 
And Debian (therefore Ubuntu/ et al) likes to patch packages to their own ways of doing things. So logs go to different places, they handle signals differently, etc...
 
Seems like while is faster than a for ...
 
3:38 PM
@ircmaxell Which is horrible imho
 
Wiki.php.net: A or B?
 
B
Much better than the previous B background color
 
@PeeHaa amen
@LeviMorrison A
keep it consistent with php.net
 
A. Please stop trying B :-S
 
Code looks better in dark theme, websites look better in light theme.
Eventually I will combine them!
@ircmaxell It's never been consistent with PHP.net, actually.
And why can't I migrate PHP.net to use the same? :)
 
3:43 PM
@LeviMorrison actually I prefer code in light theme (or solarized with light background)
 
@LeviMorrison if you do, awesome. I just would prefer the color schemes to be the same on both
 
Solarized is horrible.
I mean that. It's horrible.
 
@LeviMorrison B
Make the whole site look like B...
@LeviMorrison B
Make the whole site look like B...
 
@LeviMorrison I find it fantastic…
 
The only good thing about Solarized is that you can switch between light and dark and the colors stay the same.
Let me see, how often do I do that?
Exactly never.
 
3:47 PM
I really don't get why you like dark for code :x
 
Dark is easier on the eyes
 
@LeviMorrison Given the end results, I don't think that's really a good thing.
 
@AlulaErrorpone well. just no. I'm less concentrated then.
 
@bwoebi I find it very hard to stare at black on white for long periods
Light on dark is much more comfortable
 
@bwoebi Each color has more contrast on the dark background, which makes it easier to distinguish things.
 
3:54 PM
0
A: What is the difference between while(true) and for(;;) in PHP?

ircmaxellOk, so first off, let me say this: Use while(true), as it gives the most semantic meaning. You need to parse for (;;) as it's not something you see often. With that said, let's analyze: Opcodes The code while(true) { break; } echo "hi!"; Compiles down to the opcodes: JMPZ(true, 3) BRK(...

 
@ircmaxell , Beautifully explained :) +1
Thank you !
 
I must've been really hyper on Friday...
Apr 4 at 13:49, by Jimbo
@AlmaDo Guys in C++ are noobs, JavaScript all bum each other. And PHP argues over mvc
@rdlowrey Was there any sort of conclusion on your debate with that DavidH guy on MVC - views being DI'd into controllers which retrieve data from the model, where controllers are only used for thing that update or need to be persisted....
 
I'll sum it up: MVC as defined by Fowler isn't technically possible on the web, so let's stop discussing it.
 
user895378
I don't think it was a debate. I was simply saying that trying to shoehorn a web application into an "MVC" architecture is a waste of time.
 
user895378
All you need is to separate your concerns and invert control (IoC). What you call it makes no difference.
 
4:02 PM
Which part is the part that makes it impossible on the web?
 
@Jimbo The fact that HTTP is stateless. Technically you could do it over web sockets if you built some more abstraction over it.
 
user895378
In real MVC the "view" interacts with the model and controller in real time.
 
user895378
What @LeviMorrison said.
 
When we say "in real time", we mean as fast as the processor handles the data right
How's that different from slowing it right down and having it performed over the HTTP protocol instead
?
 
user895378
No, by "real-time" I mean there's state.
 
user895378
4:03 PM
HTTP has no state.
 
user895378
It's a one-time transmission of data.
 
+6, not bad for a few minutes work ;-)
 
user895378
@ircmaxell Got one from me -- it's a good answer :)
 
When you click on something in the view and it sends stuff to the server it is not connected to the same model or controller that it was initially attached to because of the way HTTP works.
 
"while should be some faster, because tokenizer eats less ops)" from my deleted answer) -4 xD
 
4:06 PM
From a dev perspective however, we don't see this disattachment do we? Because our code is right there in front of us and isn't changing?
^ That wasn't meant to be a double negative ;D
 
user895378
@Jimbo I don't understand what looking at code in an IDE window has to do with it?
 
@rdlowrey Neither do I, I'm being retarded.
Just trying to understand better how it isn't true mvc :-)
 
So not sending a request to change but simply changing?
 
Each request to the server via HTTP is independent and stateless. This means you can't build MVC with it. If that doesn't make sense, go read Fowler's stuff ^^
 
@LeviMorrison If we have own http daemon we can attach your request to the "same model and ctrlr that it was initially attached")
 
user895378
4:11 PM
Think about a desktop application. You interact with the view (the GUI) and the view sends information to the model/controller in real-time. Likewise, the model/controller can manipulate the view (the GUI) without any interaction from you. MVC necessarily requires full two-way duplex communication between M, V and C. HTTP isn't capable of that and Ajax doesn't count because you still can't "push" data from the server to the browser application.
 
user895378
Websockets, though, make that possible if you care to implement a "real" MVC system.
 
Here's a good explanation, I think...
 
user895378
But again, who cares about implementing "real" MVC.
 
Indeed.
 
I'm going to be talking about that on Saturday
 
user895378
4:12 PM
1) Separate your concerns.
2) Invert Control.
3) ???
4) Profit!!!
 
lol
 
why I cant destroy some controllers for memory free and later when needed create and reinitialize it on my desktop app?
separate, yes
and layers separated in standard Web MVC implementations
 
@rdlowrey lump all your concerns together and worry the day away
 
user895378
<-- (this) is a worry-free zone
 
4:28 PM
today was an unproductive day
 
that sucks
 
If an unproductive day is something noteworthy, then you're doing it right.
6
 
@Fabien Words of wisdom
@Fabien what's your twitter handle?
 
user895378
Yeah, @Fabien what's your twitter handle?
 
user895378
Oh, @ircmaxell it's @FabienO
 
user895378
4:37 PM
I realized I didn't know it because someone never uses Twitter.
 
@ircmaxell It's also, a lie.
@Fabien thanks, I'm happily employed for many times less par day :P
 
@webarto everything is a lie
 
user895378
The cake, especially.
 
OH: "If an unproductive day is something noteworthy, then you're doing it right." via @FabienO
 
Particularly if coming from recruiter :P
 
4:43 PM
Hey can someone help me with this stackoverflow.com/questions/22848572/…
 
You mean like that?
 
4:58 PM
lol
 
I officially call "Going @tereško on a question" as downvoting the question and every answer and leaving angry comments :D
Usually, for a good reason
 
tereško Syndrome
 
you should write $(this).attr('id') also — vp_arth 1 min ago
evening guys and gals
 
user895378
@tereško evenin'
 
5:24 PM
@vp_arth this isn't even a DOM element. Doing $(this).attr("ID") is even more stupid than usual. You should consider learning how the DOM API works (which is, btw unrelated here) and how jQuery works and stop cargo-culting things you hear people say without understanding them. When you spread this sort of misinformation you are not just giving OP bad advice, you're slowing down our progress as a species. — Benjamin Gruenbaum 18 secs ago
too much?
Also the fact the underscore answer has upvotes is amazing to me.
 
5:50 PM
@LeviMorrison MVC defined by Fowler is defined as "Splits user interface interaction into three distinct roles." where the important separation is between M and VC. That's perfectly possible.
 
@Gordon He elaborates a LOT more than that.
 
@LeviMorrison he doesnt say you have to do Model 2 or anything like that
he doesnt even say you have to split V and C if it doesnt suit you
but he explicitly says you should separate Model from UI.
 
Maybe I've misread/remembered something, but I'm pretty sure he talks about C communicating to V
 
@LeviMorrison I dont have the book at hand atm, but I am pretty sure that he just gives examples. He doesnt say MVC works like this or that specifically. But I do know he stresses the M vs VC part.
 
@AlulaErrorpone that's creepy dude
 
5:56 PM
@LeviMorrison god, no. It even looks better with inverted colors…
 
@ircmaxell so I spelled out my philosophy of a boolean world to a few colleagues today, with the prior warning that they might find it offensive ... they agreed with me, completely ... now that's interesting isn't it ... even more interesting that I now am looking to you for more input having originally asserted that we live in a boolean world in the first place ... maybe it's not as black and white as I see it ...
 
@JoeWatkins A boolean world?
 
@JoeWatkins I think everything is boolean given enough information. But I think it's also necessary to realize that often there isn't enough information, and the vast majority of the time you cannot know if you have all of the information necessary to make a purely boolean decision.
 
@ircmaxell if everything's boolean, is Schrödinger's cat alive or dead?
 
@Gordon exactly my assertion
 
@JoeWatkins and they say we is not good people :D
 
@Gordon it's one of both; I just don't know which one. Lack of information as @ircmaxell stated.
 
Do you know why were dating pages down? @JoeWatkins
 
@webarto ram upgrade today
 
Can a PHP developer earn Good money ,my friends make me nervous that i m low level programmer as i work on PHP
 
6:03 PM
My wifey shouted from other room... "I think Joe messed up something" :D
@PratikJoshi good money is a relative term ;)
 
so you're saying it's kind of arrogant to assume I have all the facts on any particular subject ... well there's two problems there, I don't know how to separate what must be normal arrogance from actually having all the facts ... and what other was is there to communicate other than to assume you do have all the facts ...
 
i think Schrödinger's cat its like a parameter with an unknown type or val
 
@bwoebi @ircmaxell but the cat is both
 
@webarto it totally wasn't me man ...
 
@JoeWatkins arrogant isn't the word I would use, because it implies a negative connotation
 
6:06 PM
Joe, sounds like imperial knowlegde
 
@JoeWatkins instead, what I would say is that you should assume you never have all the information, and assume that the other person knows something valid that you don't until proven otherwise.
 
Please tell me => Can a PHP developer earn Good money ,my friends make me nervous that i m low level programmer as i work on PHP
 
@PratikJoshi yes, yes they can
 
No
 
Maybe
 
6:08 PM
Sure
 
<3
 
Damnit @ircmaxell now reeeeally screwed up the font rendering of their browser :(
 
@PratikJoshi Improving your general programming skills will help your PHP skill as well, if you are worried.
 
@PeeHaa :D
 
@Gordon no it isn't. We just don't know about its state.
 
6:10 PM
I really need to start doing daily HHVM builds so rebuilding doesn't take so long.
Or at least biweekly.
 
sorry @Gordon
 
oh good lord
 
@PeeHaa please write Google when referring to @ircmaxell
 
Really at the off chance you ever meet with the people on the chrome team. Especially the ones responsible for the rewrite to direct write punch them in the face for me please @ircmaxell
tnx
 
Other programmers hate PHP Programmers :( How fair is this ? plz tell ,This thing happen in my Company
 
6:13 PM
@ircmaxell the logic of this breaks down, you cannot prove a negative, you will end up communicating as if the other person knows something you do not indefinitely :s
 
^^^ here is a, let's write with capital letters randomly for no good reason :D @rdlowrey
 
@PratikJoshi Oh try room 10 and see how they will make fun of you :)
 
@PratikJoshi totally fair.
 
@JoeWatkins no, but you can gain confidence quite quickly
 
@PratikJoshi just like PHP programmers hate Python, Ruby and Perl programmer?
 
6:14 PM
@bwoebi Certainly, not. (except Ruby)
 
user895378
@webarto what are we talking about?
 
@bwoebi That's not true. We only hate Ruby
 
@bwoebi Programmers don't hate python
 
And more succinctly, we hate Rails.
 
@bwoebi whom you respect?
 
6:14 PM
^ reactions as expected
 
And do jokes about Perl and RSA encryption, but everyone does that
 
so only a small window should be given, kinda code or stfu in other words, right ?
 
@rdlowrey I don't know... I thought we made of how some people write some words capitalized for no good reason. Pardon me, Sir.
 
user895378
@LeviMorrison Which is weird because all the popular PHP frameworks are basically RoR clones.
 
@NikiC no, I prefer doing jokes about Perl looking like codegolfed PHP at the first glance.
 
user895378
6:15 PM
@webarto I have no idea what's going on :)
 
@rdlowrey 'ludes
 
user895378
hehehe
 
@JoeWatkins I would rather live in a world where I pretend I don't know everything, and engage people as if they knew something I don't, than the other way around. It's a lot more fulfilling to work with others in that case...
 
How convenient, don't have to spend money on book.
 
But RoR is rarely used
 
6:17 PM
Wordpress is widely used
along with Windows XP
 
@bwoebi To rephrase, I hate Ruby developer attitude.
 
@webarto hmm?
 
I haven't met a realistic Ruby developer so far :)
 
user895378
F WP. F XP.
 
Hating languages is for losers, hate people (individuals) instead.
 
6:18 PM
I like it
 
@ircmaxell this I can make sense of ...
 
@webarto you hated PHP.
 
I don't hate, I'm good people.
I just shoot.
 
@webarto I wrote "programmer(s)" too, but nobody had read that…
 
Are Indians best programmers in world?
 
6:20 PM
Yes they are the best
 
@bwoebi Yes, I've missed, correct :)
 
are the chinese good fishermen ?
 
@PratikJoshi yes, they are the best
 
@PratikJoshi lol, try replacing indians with something else
 
wtf are you asking ...
 
6:20 PM
@PratikJoshi no, they suck
 
As a matter of fact when I grow up I want to become an indian
4
 
@JoeWatkins He's having a poll or trolling :D
 
@PratikJoshi Just the sheer awesomeness
 
@Gordon we had enough fun, can you ban him pretty please? :P
 
@ircmaxell thnx for time ;)
 
6:21 PM
@PratikJoshi Sir.
 
lol
 
@PratikJoshi the famous India Asking Pattern and their ability to backsource work to western developers
12
 
Well played sir
 
Yes, Sir, very well, Sir, come again, Sir.
 
@NikiC ROFL
omfg that was so damn funny
 
So, that's why it sucks.
 
@PratikJoshi yes, and when he couldnt install Windows 8, he asked Bill Gates.
oh wait, no. it was the other way round
 
@Gordon Then he spent an hour looking for the Start menu...
 
@PratikJoshi a CEO doesnt program
 
Out of ~1.5 billion Indians, of course, even smallest percent of smart people are going to outnumber any other ethnicity, except Chinese.
 
6:25 PM
This stuff reminds me of:
 
@JoeWatkins :-)
 
@PratikJoshi in 100 years when stereotypes still rule the way we think of other peoples in other places, take some of the responsibility for that yourself if you spend a lifetime talking about what Indians do well or not, ... stop it, it's not constructive, everyone is making jokes because they are uncomfortable I'd wager ...talk about people you look up to by all means but drop the Indian thing if you want the rest of the world to drop it ;)
 
And another tiny avatar
 
Agreed.
 
@PratikJoshi why is a raven like a writing desk?
 
user895378
6:32 PM
Anybody know of extensions that allow you to manually increment/decrement the refcount for a zval in userland (other than xdebug)?
 
the levels of denial that my misses can reach is just unbelievable ... "fried eggs are not meant to be black", "they aren't black" ... the eggs are black,I had to double take to know they were eggs ...
@rdlowrey nope
 
@webarto lol
 
weakref just jumped into my mind ... I don't actually know what it is ... but has ref in name and is extension ...
 
@rdlowrey why would you want to do that, that could be AMAZINGLY dangerous
 
6:34 PM
@PratikJoshi its a riddle
 
^ that too
 
@PratikJoshi Read this whyjava.wordpress.com/2010/05/12/… you might get a more understanding what some indian developers suffer ...
 
Framework driven development just hit a new low
 
user895378
@ircmaxell lol I know, I'm just thinking about different ways to tackle a solved problem.
 
0
Q: Execute a single non-Zend php file in Zend Framework

user3508031I have a website running on Zend and I have a single file that is written from somewhere else and does not follow the Zend framework. The file merely imports content from another site so it is ok that it has no user interface and only needs to be run. Ideally I want to run it from the website f...

 
user895378
6:35 PM
Basically what I'm doing is ...
 
@rdlowrey well, what's the problem then? ;-)
 
user895378
I can pass a socket to a pthreads worker and perform IO operations on it there. No problem.
 
user895378
But when the pthreads Stackable\Threaded finishes its work the socket is GC'd in the worker.
 
@PratikJoshi no, you have to find out yourself
 
@rdlowrey are you storing a reference to the socket outside of the thread?
 
user895378
6:36 PM
Yes, I keep a reference in the main thread.
 
@PratikJoshi try harder
 
user895378
But when the worker finishes whatever task it GCs the socket and you get a segfault if you try to use it subsequently in the main thread.
 
user895378
So my solution is I store a reference to the socket in the worker.
 
sounds like a bug in the cleanup algos for the thread
as refcount should be >1 at that point...?
 
user895378
I assume any resources are inherently not usable across thread boundaries, so ...
 
6:38 PM
its like cake
 
user895378
@JoeWatkins Any thoughts on the above behavior?
 
user895378
When the socket eventually closes in the main thread I know it's safe to clear the reference in any worker threads that operated on the socket during its lifetime and I cleanup at that point.
 
@PratikJoshi Being zend certified doesn't mean you're talented.
 
user895378
It works, but it's a bit messy and requires that I work around my ass to get to my elbow.
 
6:40 PM
bug, it should be the case that if a context didn't create a resource it should not destroy it under any circumstances, the original context must destroy it ...
can you get me a reproduce script, I'll look ?
 
@PratikJoshi please do Zend Certification, so you can answer my riddle
 
user895378
@JoeWatkins Yes, I will work on that today -- preventing the described behavior would be a great help for me :)
 
@JoeWatkins well, unless the original context let-go of the resource handle (and hence the variable was GC'd).
 
user895378
Yeah, but the original context isn't doing that.
 
user895378
6:41 PM
I'll put together a repro script + issue report
 
@ircmaxell no you can't allow that to happen, because the memory manager will complain if another thread attempts to free memory emalloced by another context the original one really has to be the one to call dtor
pthreads shouldn't be allowing that to happen and normally doesn't, is a bug ...
 
@JoeWatkins even though there's a sync for the delref?
 
@PratikJoshi if you managed to talk to us, you can also manage to do Zend Certification
 
@PratikJoshi yes
 
6:45 PM
Yeah, you can totally do it.
For $195.
 
@ircmaxell yeah, as part of shared nothing the memory manager detects errors when you allow any thread to efree something emalloc'd elsewhere, it's not because of safety but because of zend itself .. it would be perfectly valid if it weren't for the default behavior of the mm
 
@Gordon ban him already, please...
 
I'm done with that guy
 
> Thanks, we'll take a look at it.
That was fast :D
 
6:48 PM
@webarto :P
@PratikJoshi no one is obliged to do so. people will answer what they want to answer.
 
Ow wait I have a handy plugin
Let me try this out
17 messages moved to Trash can
lul yep works
 
no1 answered my Question

But what about my mentality ? :(
 
tnx @rlemon
 
\o/ yay! i'm useful!
 
@PratikJoshi we are not psychotherapists
 
6:50 PM
Hello everyone ;)
 
at least someone could help me out
 
@ircmaxell also resources are slightly hacky, they have to be, you do not share any zend level globals because of the shared nothing, so the original context resource table and the new contexts table are unique, the resource entry in the new contexts table is just a copy, assuming the underlying code will handle it ... happily a lot of the default basic resources do work, but there isn't much you can do to have proper support for resources in pthreads, everything about zend wants to prohibit it
 
That you are :)
 
@PratikJoshi I told you to read this whyjava.wordpress.com/2010/05/12/…
 
@PeeHaa I should re-work on the auto binner. basically a script that listened to the DOM changes and binned all messages from X userID as they were sent.
 
6:51 PM
@MikeM. hi
 
reading
 
@rlemon Now that would be awesome!@
 
after 5-6 messages they get the hint and piss off
JS room favored the access control stuff with the bot so I didn't finish the script
 
Aha HamZa is the only one being nice in here xD
 
@MikeM. nee
the others are just busy with their big projects
 
6:54 PM
@HamZa You're dutch?
 
He is alien
He is programme
 
lel?
 
@rlemon makes good scripts, just saying.
 
Sorry I am just 2days old @ stackoverflow
 
@MikeM. I'm a mixed blood, so yes I speak dutch. A lot of dutchies come here too
 
6:55 PM
@webarto heh, thanks.
 
1 message moved to bin
 
@HamZa I am a dutchie do hi ;)
do = so xD madea mistake there hamza
 
@MikeM. you can edit your messages within a certain timeframe
 
@HamZa, good to know xD
Anyone here familar with css? because I am shit into that and want to get known more into it...
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
 
6:59 PM
ye but I don't want to feel noob into that xD because I think they are just CSS experts xD
 
Let's say I want to do this check in user-land:
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &position) == FAILURE)
I'm not sure how to check for l here.
 

« first day (1269 days earlier)      last day (3676 days later) »