« first day (862 days earlier)      last day (4076 days later) » 

12:00 AM
I feel a new meta name coming on...
 
Is it wise to use PHP for a daemon (24/7)?
 
A daemon will be written in PHP that will use socket and database.
 
@I'll-Be-Back Only if you know what you are doing. However that really applies to daemons in general, PHP is no better or worse than any other scripting language for creating them. You should take a look at reactphp.org, it will almost certainly be a good base for you that would help to avoid many of the common pitfalls, especially if you are dealing with socket programming.
 
Thanks @DaveRandom
 
12:08 AM
Dave ActiveX Random
 
daemon will be used to communicate with Asterisk Server (AMI)
 
@DaveRandom Awesome.
 
@I'll-Be-Back Well, have fun with that... :-P
(you do not want to get me started on that subject)
 
:P I will
Haha
@DaveRandom I have just read this stackoverflow.com/questions/646928/…
 
@I'll-Be-Back What does he know. He's an ape!
 
12:13 AM
Where's he hiding anyway?
 
Who?
 
Good question. I thought he was still lurking in here. Watching all our moves
Bit like The col. only less creepy
 
@I'll-Be-Back Yeh that's definitely a decent summary of the situation. At the end of the day you can always write it better and more efficiently in C, but you can write it quicker and arguably neater in PHP. Either way I wouldn't even start in any language unless you are confident you know what you are doing in terms of keeping memory tidy etc.
It's not like just throwing a page out the door asap where you can afford to be a little more relaxed about that kind of thing
 
I haven't got time to learn C. I proberly stick with PHP and just be more careful with memory leak and stuff.
I could learn Python.
 
@I'll-Be-Back Tim Post, the guy who wrote that accepted answer, he hangs out in here sometimes, I think mostly to keep an eye on us and make sure we don't cause too much trouble.
 
12:17 AM
What trouble??
lol
 
@PeeHaa Maybe that's why Thief has been silently here for a while, Tim's gone on a sanity holiday and left him in charge.
 
I feel bad for the thiefmeister now :P
 
@I'll-Be-Back Mostly this
 
<3 closing 3 years old issues as "won't fix"
 
:P
 
12:20 AM
@Ocramius no shit :P
 
Sound the the PHP bugtracker
 
@PeeHaa Meh, he hangs out in JS by choice, he's obviously a sucker for punishment if I wants to spend that much time around @rlemon
 
hahahah
 
@Ocramius Ugh, WHERE col IN (SELECT ...) ? Really you're recommending that to someone for anything? Although I accept the general idea of what you're saying it just pains me to see that use for anything ever.
 
12:25 AM
Ahhh
 
@DaveRandom I could have answered "if your architecture requires it, just write SQL"
 
user652649
evening
 
I'd prefer that answer tbh
 
@DaveRandom I generally support the idea that a tool isn't built to fix wrong design decisions
and DQL is the wrong tool for that job :)
 
@wes You have an avatar that actually works again, well done. Or were you just trolling me by setting your avatar to the image you get when images don't load?
@Ocramius agreed
 
user652649
12:27 AM
@DaveRandom I don't know what you are talking about. ahahahahahhahaha
 
user652649
no it is a general troll. i have lot of free time
 
@WesleyMurch Did you just search SO for "prostitutes"?
 
umm no...?
I guess I'm getting desperate, it's Saturday night...
 
As evidenced by your typing and spelling.
:-P
 
12:30 AM
@DaveRandom THANK FIXDED!
But on the real, I should be doing something else.... cyall later
 
I think craigslist would probably be a better bet for you tbh
 
later @WesleyMurch
 
@WesleyMurch right
 
user652649
mmmh
 
laterz
 
user652649
12:31 AM
i started to postpone the windows update reboot about 6 days ago... will the notify window surrender, someday?
 
Wait one more
3
Q: Lucene to bring cheeseburger when searching for burger

epignosisxI would like that if a lucene document contains the word cheeseburger and a user searches for burger for this documents to come up. I see that I will probably need a custom analyzer to break this compound word into cheese and burger. However, breaking words may also bring irrelevant results. Ex...

 
+1 because I am eating a cheeseburger at the moment — Soader03 Apr 24 '12 at 15:57
 
user652649
lol
 
:Q_ makes me hungry
 
@Ocramius amen, bye.
 
12:33 AM
ttyal
 
Did PHP 5.4 improve the garbage collector ?
 
@I'll-Be-Back 5.3 did, don't think there were any notable changes in 5.4 though (or 5.5 come to that)
 
Thats great
 
12:49 AM
Grrr I wish once-only JS events like DOMContentLoaded and load would auto-fire if you try and assign a handler to them after they have actually fired
 
@DaveRandom jquery does that
fakes it that is
for dom ready
 
Yeh all my custom event driven code does it as well, I really don't understand why the natives don't
 
user652649
@DaveRandom document.readyState
 
@DaveRandom Well in all honesty it is an event
once it's over it's over
 
user652649
natives don't auto-fire twice
 
12:53 AM
@wes Yeh I know how to work around it, I just wish I didn't have to
 
user652649
because domcontentloaded can be fired two or more times actually
 
@PeeHaa I suppose semantically that's correct, but in practice I can't see how it's advantageous
 
user652649
for example if a iframe finish to load in already loaded page
 
user652649
event propagates to body document etc
 
@wes Yeh but that's a different window object, it doesn't fire the top's handlers again (does it?)
It shouldn't
 
user652649
12:55 AM
it depends
 
user652649
but i'm not sure... for example in mozilla's applications (xul) events are dispatched everywhere, for example starting from a xul <browser>
 
hehe here comes the xul rant
 
I don't have the energy. I have something of a love-hate relationship these days anyway, some of it does make sense. A lot of it doesn't, but the same can be said of HTML.
 
user652649
lol
 
user652649
iframe's load event doesn't propagate. is it normal? lol
 
user652649
1:03 AM
was trying.. it is fired only on iframe
 
user652649
"on target"
 
user652649
even if the page is on the same server
 
Seems like the way it should be
 
user652649
doesn't exist in dom an event that "doesn't propagate"
 
Well I would hope that would be how it worked, I don't want my top frame's load event getting fired every time an inner frame loaded, you can still access the top frame's window object from the inner frames event handler as long as it's within the bounds of SOP
@wes ...but window is the top object, it has nowhere to propagate too (IMO)
 
user652649
1:07 AM
@DaveRandom yes but i'm talking about iframe.onload not iframe.contentWindow.onload
 
user652649
iframe.onload should propagate but it doesn't
 
user652649
and by the way it is quite easy to detect the correct target
 
I disagree, say I do a bunch of DOM init stuff in the top load, I don't want that re-done every time an iframe loads
 
user652649
window.onload = function(e){ if(e.target == e.currentTarget) { // code here... }};
 
user652649
you don't need to reload again if you use that ^
 
user652649
1:11 AM
well you don't need that also because iframe's onload doesn't propagate... weird
 
Aaaaaaand the plugin is gone
 
user652649
no... i was right
 
user652649
it works
 
it updated itself
 
user652649
1:16 AM
so @DaveRandom you need function(e){ if(e.target == e.currentTarget) { // code here... }};
 
user652649
:P
 
Can't touch this.
I'm telling you man, you can't touch this.
 
Looks nice
 
@PeeHaa ...successfully?
@wes testing now
 
@DaveRandom yeps after reload of room
 
1:18 AM
winner
 
user652649
 
Well FF worked for me when I forced it, we shall see if it works in practice (not sure who uses it apart from @NikiC)
 
@DaveRandom At least something to think about if you ever are going for your project plugin.
 
It's interesting how many websites (including this chat) say "Check your internet connection and try again." when your internet connection is not functioning correctly
I mean, I could have checked it all I wanted, but it wouldn't have changed that they hit a cable while working on the road :(
 
@PeeHaa Yeh I've been working on it on and off (mostly off for that last couple of weeks, v busy). It will happen one day, but I'm already on my third API, I really don't want to create something that's more difficult to use than the APIs it's decorating
Right I'm going to have to bail, I'm having difficulty keeping my eyes open
@wes I'll look at that example properly tomorrow
laterz @all
 
1:25 AM
Nite Dave
 
user652649
@Jasper lol... did you get the "no internet panic" ?
 
what is the interval for cv backlog update, hour?
 
IIRC yes
 
10x
 
user652649
@DaveRandom night good guy dave
 
1:29 AM
@wes not that I noticed really. living in student housing with nine other people, immediately getting an email about it and enough people having mobile internet to read it meant that everybody knew what was going on pretty quickly. I decided to play Mass Effect 2 myself, since I owed myself a replay of it.
 
user652649
@Jasper liar :P
 
@PeeHaa do you recall how to get JSON from backlog? I see, JSON request. Disregard ping.
 
@wes well if you can't understand how I didn't get the "no internet panic", maybe this helps: I had mobile internet myself. I didn't take the effort to get my computer to work with it, but things I cared enough about I was able to look up on my phone, so technically I didn't even have "no internet"
 
user652649
lol, so thats why.
 
@webarto Disregard ping is in: found it?
 
1:34 AM
@PeeHaa Yup :)
 
:D
 
@wes exactly :D
 
I confirm that questions are closed :P
 
user652649
what do you guys think about reusing the same SQL for both INSERT and UPDATE?
 
1:49 AM
@webarto When can we see it love somewhere?
@wes As in? update on dupe?
 
user652649
no i mean actual sql reusing as
 
user652649
INSERT INTO table SET xxx = yyy instead of
 
user652649
INSERT INTO table(...) VALUES(...)
 
user652649
talking about reusing the "SET xx=yy, zz=kk" part
 
1:52 AM
@wes I would say: wut!?
 
user652649
why not @PeeHaa ?
 
@wes Because that's not standard sql
You have been sniffing microsoft products again? ;)
 
user652649
you're kidding lol... who cares it is not standard, it is very useful
 
user652649
as it has the same "SET xxx" syntax as UPDATE's one
 
Who cares it is not standard. Well I care. And I think (/ hope) that a lot of people agree.
 
user652649
1:55 AM
define "standard"
 
As in, sane :P
 
user652649
INSERT INTO x SET works on all mayor dbms
 
@wes standard: anything made by an by an acronym organization
 
@wes As in a defined set of rules generally accepted by both the community and the developers and properly documentated
 
user652649
1:59 AM
@crypticツ fix this your message to get a star lol
 
user652649
@PeeHaa the community is... YOU?
 
user652649
@crypticツ fix it!
 
cant
too late
 
user652649
crap!
 
user652649
:P
 
user652649
2:00 AM
write it again.
 
I dont know why I double types lol
standard: anything made by an acronym organization
 
@wes In this case iso.org/iso/home.html
Wow. Just the things people tag [oop] is scary :(
 
user652649
@PeeHaa you ISO fanboy.
 
:P
I just like to prevent vendor lock in when I can
 
/me whispering something about abstraction layers <_<
 
user652649
2:05 AM
well usually vendors don't remove features. so since there is that syntax, it probably will stay there forever
 
@wes Yeah but you are missing the point
If you implement non standard stuff you will loose portablity
 
user652649
@Ocramius for example?
 
@wes I am thinking about how microsoft loves to bring in problems with LIMIT and OFFSET at each new version of their own version of SQL
 
user652649
2:08 AM
@PeeHaa portability? to where? as i said any mayor dbms accept that syntax... also, i already lost portability, and not because i'm not standard, but because dbms aren't :P
 
what you are thinking of is UPSERT btw
 
@wes That's because you are using crapy dbms who don't follow the rules. That's exactly the problem..
 
user652649
is upsert standard?
 
nope, and that's sad
 
user652649
you see @PeeHaa ?
 
2:09 AM
people are tagging magento questions OOP now :(
@wes I see what?
 
user652649
lol
 
/me tags @PeeHaa
 
user652649
if every vendor will follow only the standards, there will be no more innovations
 
user652649
such as upsert seems to be
 
@wes by the way, that's why you probably would use an abstraction layer for handling all this stuff
 
2:11 AM
@wes I strongly disagree
What should happen is that people are working on improving the standard instead of all doing there own thing
 
I'm with @PeeHaa on this. Just look at JCR for example, or HTTP
standard first, impl after that \o/
 
user652649
@Ocramius you mean a sql abstraction layer? do they exist?
 
@wes yes, check Doctrine's DBAL
I didn't want to advertise, but it has got that far :P
 
:D
I see what you did ;)
 
hehe
I somehow get people to ask the question at some point :P
 
2:14 AM
If not voluntary than by force :)
 
user652649
@Ocramius nice, love that... you made it?
 
@wes nope, I just am one of the guys working on it
 
user652649
seems to be a colossal work
 
@wes well, 4 years so far only on that one :)
 
2:20 AM
I have a large list of CSS selectors like so .icon-file-css:before, .icon-home:before, .icon-camera:before, .icon-envelop:before would doing *[class~='icon-']:before be ok?
 
@crypticツ if you don't care about legacy
 
not at all =o)
 
go for it!
 
Shouldn't that be ^?
 
user652649
@crypticツ what about multiple classes class="icon icon-file" then just do .icon{}
 
user652649
2:22 AM
and yes class^='icon-'
 
user652649
but i'm not sure if it works properly with token lists
 
composer: Y U FAIL --dev?!
 
blame @igorw
 
@PeeHaa already did, guess I'll have to look into it before opening an issue :(
 
user652649
@PeeHaa doesn't work :P jsfiddle.net/RZ82V
 
2:25 AM
HTH is this even remotely related to OOP? :( stackoverflow.com/questions/13010383/…
@wes That's because there are multiple classes.
And the class attribute doesn't start with it
~ would also fail because it should be an exact match of some class (delmited by space)
@wes More info in the standard definition ;-)
ok ok that was just trolling
 
css brrrrrr
go away! :P
 
:D
 
user652649
you know that the vertical text support was moved to css4
 
user652649
30 years of internet and oriental people still can't get their vertical text
 
lol
 
there's still people using 1.7.2? ._.
 
@Ocramius That's like... 10 years ago :D
 
2007 I think
or such
I was a little kid :|
 
:D
 
2:37 AM
8/7 doesn't make sense but it's good :) @PeeHaa closed one showed up instantly?
 
New batch just crashed and burned
 
@PeeHaa Shouldn't ... but...
 
Let me reload and see if it fixes it
Nopez. I think I have broken the thing :(
 
:D
 
2:42 AM
 
@webarto aaaah I see:
<html>
<head><title>414 Request-URI Too Large</title></head>
<body bgcolor="white">
<center><h1>414 Request-URI Too Large</h1></center>
<hr><center>nginx/1.2.7</center>
</body>
</html>
 
woah
 
Just drop the question titles
or replace them with a single character
 
will fix
tnx
 
2:47 AM
@PeeHaa were you loading entire backlog?
 
@webarto yes
 
@PeeHaa yup :) idiot me, changed POST to GET
 
Can'r you just post the data instead of using get?
lol
 
this is going to take a while :D
 
:P
 
2:50 AM
async is no good, there is 3s limit per request
 
Are you parsing the dom?
 
/me still wondering what that thing is
also, is there a "/me" here?
 
Nope still not implemented
 
$votes = $html->find('span[title="this many votes already exist"]');
Like so @PeeHaa, yeah, basicall.y
 
MDG
@Ocramius try to put your message between **
 
2:51 AM
gotcha
 
MDG
also hi everyone
 
/me slaps @PeeHaa around a bit with a large trout
 
Heya bat shit crazy dutch guy
 
MDG
says hi
:D
 
dat avatar
 
MDG
2:52 AM
I like cats
 
I can give you mine
I hate 'em
 
MDG
I actually have a username somewhere that's called.. givemeallyourcats
so thats funny
 
XD
 
@webarto :D
 
MDG
what are you guys doing ? :)
 
2:53 AM
Looks like we... have some unfinished business...
 
fixing brokeh tests...
 
@MDG Cleaning SO, coding, trolling, drinking. The usual
 
@webarto does that thing bring you income or are you simply sick? :)
 
@Ocramius It's 4AM Sunday and I'm sick, nice to meet you :)
 
:D
 
MDG
2:55 AM
@webarto same :)
@webarto -sick
 
anyone want to do something for me? It pays nothing but it's easy =oD
 
LEAVE NONE BEHIND, CLOSE THEM ALL!1!!1
 
MDG
mmhhh
no pay and I have to do something NICE
lol jk spit it :D
 
@crypticツ don't ask to ask :)
 
MDG
we are here to help
 
2:59 AM
Closing questions like a pr0.
 
MDG
@webarto <3
 

« first day (862 days earlier)      last day (4076 days later) »