« first day (1165 days earlier)      last day (3798 days later) » 

1:30 AM
morning
 
2:07 AM
good morning, wait ... is it morning there ?? :D
 
2:41 AM
@Ocramius There is none. It's fine either way. One argument for it in core is that every crypto lib doesn't need to re-implement it. Not saying that's strong, just that it exists...
 
3:01 AM
hi anybody, please help, I need to understanding msg queue service such as AmazonSQS or IronMQ, is there any 'real world' example out there along with the code ? Best regards.
 
user895378
3:22 AM
Well, it looks like 5.6 will have real non-blocking postgresql support (as opposed the crappy blocking "async" functionality it has now).
 
user895378
Barring major catastrophe like me falling off a bridge in a drunken haze over the holiday :)
 
5:31 AM
0
Q: Creating an online ide, security risk

Joey Salac HipolitoI am on a personal project of creating a web-based ide, or lets say, just a text-editor, and the app would allow users to register and start their own javascript project. The backend language that would write the files is php. Questions. How do I safely write user-input files into server, hav...

 
@JoeySalacHipolito please don't just dump your questions in the room, it very frowned upon and works against you in getting any help. =o)
 
Oh, thank you.
sorry about that.
 
Not quite understanding you question. So you want people to securely be able to create JS files?
 
yes, something like that..
 
So what is the security risk? As long as you don' t have the JS rendered in raw it should not execute client-side and not pose an issue.
 
5:42 AM
what I am thinking of is that when I try to save the content of the said editor like fwrite($file, "some dangerous php here");
 
@JoeySalacHipolito if the file it is being saved and is not .php or whatever other extensions PHP is set to parse, it can contain all the worst PHP code in it and it will not run that code as PHP, just NEVER include/require the file as those actions don't care about the extension and will run the PHP within it. Also never use eval() or assert()
Would have to know how exactly you are accessing and parsing the file contents to see if you are securely doing it or not.
@JoeySalacHipolito see stackoverflow.com/questions/3115559/exploitable-php-functions particularly the PHP code execution section
 
thank you.. i'll save this conv in my wall.
 
good luck, I'm outta here.
 
alright..thanks
 
 
2 hours later…
7:29 AM
morning everyone
 
morning
 
moin
 
7:44 AM
good mornings
 
8:01 AM
good morning
 
mornin'
 
8:17 AM
That question is just rubbish for being on observable pages. ^
 
:-)
 
(-:
 
8:39 AM
Ok people. Couple of hours and I can go home drunk
 
good moaning
 
mogoring
 
Good morning
 
@rdlowrey I think I need to update the docs, because this is wrong right?
Or was it bundled as of that version but dropped in later version?
Also can you make me a correct ssl example?
 
8:45 AM
Finally I am thinking about giving users the option to upload their own ca bundle for my requestable service. Would that be useful / useless?
 
Morning
 
moin
 
How's it going?
 
hi, @Fabien
 
Hey Alma
 
8:52 AM
@Fabien hi
 
hello, anyone ?!
 
@egig hello
 
hhi @al
hi @AlmaDo,
 
Doubtful, but does anyone approve of any javascript/jQuery carousels around here? In particular highly customisable ones? I need to add some stuff to it.
 
not too shabby
 
8:55 AM
@Fabien jCarousel ?
 
Make one yourself and it will be 100% customi**z**able
 
I've used em ...
 
anyone have any resources where can I learn about msg queue services such as AmazonSQS, or IronMQ, please ?? thanks.
 
@PeeHaa That's what I am thinking
But I wonder how many cross-browser issues I will run in to
plus I am shit with javascript/jQuery
it's more like I build a collection of small functions that do a collection of small things for one big thing, but nothing is linked together.
 
@Fabien What do you need to support?
 
8:58 AM
As much as possible, not really mobile though. I don't think carousels belong on mobile
Not fussed on IE6 and iffy on 7
But it needs to carousel, then when one is clicked it turns to modal
but the model still carousels too
 
@PeeHaa already recommending namespaced functions... Nice ^
wouldn't even have considered it before the autoloader thing
 
@Calimero I don't always answer questions, but when I do I namespace functions
 
@Fabien You are not found. :p /me refers your reputation
 
@Leri nah.. I've just spoiled this :p
 
@PeeHaa by the way, I just realized that the autoloader only working with classes probably was intended as a way to promote class usage in php, the rfc implemented here lately kinda breaks this intent.
 
9:10 AM
 
@Calimero I don't think PHP core will ever promote the use of classes
 
@PeeHaa we hate objects, we only implemented them so we could hate on them harder ...
 
@JoeWatkins gratz! :)
@JoeWatkins I know I know :D
 
urf, it's true, I'll never understand it ...
"look we implemented a really cool, modern way of programming, but please, don't use it ..."
 
@Leri Yeah lol. it's a good reason for me to not go hunting for rep.
 
9:13 AM
@Fabien I've already spoiled it. Now go and farm reps :D
 
ok I'm done for today. Only need to think of some catchy out of office message, redirect the phone and git drunk!
 
@JoeWatkins what's the logic behind this ? Maybe because most of those people were deeply involved in php long before the oop days ?
might be the case for at least rasmus...
 
@Calimero PHP doesn't want to force people into OOP (which is a good thing)
Although some people want to prevent a sane OOP API, but that's something else
 
@AlmaDo lol. The other good reason is while I am getting more confident in my development ability I am not good enough to provide a good answer to a good question. I'd only be able to do mediocre answers to crap low-quality questions. That'd only perpetuate the plethora or dump that is ruining SO
 
(:
 
9:17 AM
PeeHaa : by restricting the autoloader to classes, it did encourage a reusable package ecosystem to be oop only (not saying that I don't agree with you - I like all paradigms)
 
@Calimero Yeah but I'm sure that was never the reason to only allow classes autoload ;)
 
well I'm not sure, I can kind of understand wanting to retain the ability to write procedural code, and only procedural code ... it's a bit annoying when things like the engine exception or my expectations rfc are refused on the basis that an exception is an object and it shouldn't be the default behaviour ... there's a pretty good argument saying that using exceptions doesn't even mean that the program is object orientated, but being technically correct isn't enough to sway minds
when the minds you're trying to sway don't really have any idea what object orientated means ...
 
@JoeWatkins amen
 
@JoeWatkins Oh I fully agree with the PHP people being scared of the big scary OOP stuff. That's why PHP will always be the little retarded object capabable language it is. I just don't think the reason for class autoloading was to push people into the OOP side :)
4
 
it's a perfectly capable model, but we're not allowed to push, develop or exploit it in the core ...
but from outside, it makes things like pthreads possible, the model itself is very very capable ... not being able to use it in the core is murder ...
 
9:24 AM
Do you guys often include js files in js files?
 
Never
 
Ever wish it did?
 
but then, on the flip side ... we don't want to end up with java, where "everything" is an object by force ...
 
No
 
I don't know where to draw the line ...
@Fabien no, since that would cost you +1 web request for each include, use a compressor
 
9:25 AM
Furry muff
Would be nicer for development maybe though
then compress at the end
 
Minify + combine automagically in development
 
Morning
 
it is all about the automagic, css and javascript should cost a maximum of one request each ...
except all the IE ifs ...
 
good mornings :)
 
9:33 AM
MOnriongin @hakre
 
finally some days off!
 
you could ifdef in the template to output full headers during development ... I don't ... it's easier to fix the problems on your machine then commit to the dev box which as peehaa said should take care of compression, minification automagically ...
 
moin @hakre
 
@hakre just in time to celebrate the birth of a first century jew, for some reason ...
 
ThW
Morning
 
9:40 AM
Hey @Suhosin and @hakre
 
@ThW morning
 
ThW
Any requests/ideas for FluentDOM 5? I just started a complete refactoring.
 
well, full support of CSS selectors :)
 
ThW
That would be phpCss, more specific implementing the xpath visitor
 
9:55 AM
@ThW Nicer looking website would be good :D
 
Mornings
 
morning, @DaveRandom
 
anyone want tricky mysql question? :p
hm.. more DB design than mysql
 
moin @DaveRandom
 
it's here (no activity so far.. strange for SO) :p
0
Q: Find rows for interval in MySQL

Alma DoSO, The problem I have a very simple - at first glance - problem. Assuming that I have data set with two meaningful columns: from and till. This data set isn't yet in DB. I need to search through this data set and for some X find rows where condition from < X < till is true. For example, I have...

 
outofoffice enabled: check
forwarded phone: check
BEER TIME BITCHES!
 
please stop confusing "template" and "view". — tereško 1 min ago
@tereško you're still naive :D
 
Naive is an interesting choice of word.
 
that's because they will also think that view is a template, model is a DB and controller is their script..
and there's nothing we can do :p
 
10:28 AM
@AlmaDo Sure we can.
We can close their questions and direct them to proper sources and answers, and those willing to learn will learn, those who are not can go wet a pole.
Alright folks, that's it for my break.
Talk to ya'll laterz
 
@AlmaDo Nah, model is what you end up married too when you're super awesome at PHP
 
@DaveRandom you've just opened my eyes :p
 
@tereško question anyway
 
10:35 AM
@tereško That user is full of spam
 
@DaveRandom We're all married to the job.
 
@Fabien not me. I'm a lazy bastard who's paid for doing nothing :p
 
You misspelt lucky :p
 
nah.. I was happy last week, when developing my ios app. now I've finished and returned to my usual activities - i.e. absence of activities :p
 
10:41 AM
@PeeHaa you just woke up? Everything in this world is related to PHP now
 
Morning !
The room is active :D
 
@HamZa morning. Don't you see? It's PHP room. it's always active. If it's inactive - that only means that you don't see it's activity :p
 
hehe, I was referring to close-votes
 
yep. I'm hanging here always. When I'm back from holydays that 20..30 cv's make me afraid :p
 
10:46 AM
Hey guys, whats a good PDO tutorial?
Someone I know wants one
 
@AlmaDo E_TOO_MUCH_ACTIVITY sigh
 
18
Q: Reference - frequently asked questions about PDO

Your Common SenseWhat is this? This is a list of frequently asked questions regarding PHP Data Objects Why is this? As PDO has some features unknown to a regular PHP user, questions regarding prepared statements and error handling in PDO are quite frequent. So, this is just a place where all them can be found...

 
11:04 AM
@webarto: What happened to print-r.co ?
 
probably got hacked
 
:/
 
\:
 
btw, the only work-related thing that I did this week actually turned out to be "hacking the larges site that my current employer had produced"
it was fun to see the project manager changing color .. to some odd looking shade of pale
 
lol
 
11:11 AM
@tereško maybe even via an owasp "hit"?
 
@HamZa Thanks
 
@ircmaxell thx for the insight :)
 
ok people and now to complement my beer I'm going out for lunch. Talk to you people later!
 
@hakre Oooops, pointed domain to other server. Will fix.
 
hey :)
 
11:20 AM
alo' alo
merry christmas and a happy new...
workday =_=
 
@Ocramius you troll :D
 
another deadline this evening =_____=
which god's anger did I attract?
 
@Ocramius you draw your deadline?
 
wow, working today in DE?
just reading, it's a standard working day ... :/
 
@hakre I fired myself months ago - now freelancing as well :\
 
11:29 AM
oh, didn't catch that news.
 
worth it, but this customer is terrible :P
 
11:41 AM
I'm working today too, you're not alone :D
 
Hi All how r u
 
@Suhosin I'm not working today
 
@AlmaDo Hi
 
@railsbox hello
 
@AlmaDo i need your help in Oauth
 
11:43 AM
@railsbox sure. What is Oauth ?
 
@AlmaDo its basicalyy use for authorization and authentication
 
@railsbox huh. what's the difference between those two ?
 
@AlmaDo Do you use login with facebook, twitter like
 
@railsbox no, I have not facebook or twitter
 
In computer programming, leaning toothpick syndrome (LTS) is the situation in which a quoted expression becomes unreadable because it contains a large number of escape characters, usually backslashes ("\"), to avoid delimiter collision. The official Perl documentation introduced the term to wider usage; there, the phrase is used to describe regular expressions that match Unix-style paths in which the elements are separated by slashes /. The slash is also used as the default regular expression delimiter which must be escaped with a backslash, \, leading to frequent escaped slashes repres...
 
11:48 AM
@AlmaDo I mean do u use login with facebook, twitter in any website,
 
@HamZa well, I think Perl is the only language which hasn't such problem
@railsbox what do you mean?
 
@AlmaDo unless you use regex
 
@HamZa no, it's because perl code is unreadable in any case :D
 
lol
 
11:56 AM
Not that it's needed in the first place :)
 
Anyone who can answer a REST question?
 
If he was gay, why did they have to sterilize him? :x
@LuckyLuke just ask, don't ask for permission first
 
@Patrick that was a crime at those times
 
It’s not a posthumous Pardon that Alan Turing needs, but a posthumous Apology. Same for the many others convicted of the same “crime”.
tru dat ...
 
12:01 PM
I have a URI like this /quizzes/1/answer. However I want to differantiate between unfinished answers and completed answers. Is it wrong to have two different URIs to POST too like this? /quizzes/1/partial-answer and /quizzes/1/final-answer
 
@LuckyLuke wrong in which sense?
 
@LuckyLuke could you use one as an alias? like for example /me/ could mean /user/5/
 
@hakre If I break any convention etc
 
@LuckyLuke what are your conventions? And what would happen if you break them?
 
12:03 PM
Has anyone a nice link to a recommended tutorial to build a chatroom in NodeJS ?
 
I don't have any conventions on this
but I was thinking about conventions in REST
@hakre So it is wrong then I assume
 
Well don't make up your mind about unlaid eggs, I'd say. So before you can say if something is wrong or right, you have to actually have some criteria to say so. What's commonly known as REST does not imply much on the URI layout, you can however read through tools.ietf.org/html/rfc3986 and check if some data is worth to be encoded inside the URI or better provided within the post body or request headers (compare: tools.ietf.org/search/rfc2616)
Next to that you could make up your mind how a consumer of your API would interact with it and design it accordingly so that the usage is simple.
 
Thanks, I guess I am overthinking it. I should try it and change if it is bad for some reason
I will try using /quizzes/1/temporary-answer and /quizzes/1/final-answer
 
my json object like this
but i want the y,a,b without ""
?
is it possible ?
i'm used json_encode($array)
 
@LuckyLuke as you have some grouping here, it's perhaps worth to think about placing the more generic group before the differentiation: /quizzes/1/temporary-answer and /quizzes/1/answer/final and /quizzes/1/answer/temporary
 
@hakre Yeah, that is true. Could POSTing an answer to the final or temporary endpoint also cause a change to the quiz resource? Or should I do another request (POST or PUT) to the quiz and update the status of the quiz to "done" or "paused"...if you know what I mean?
 
Well, the post should update the object specified by the URI IMHO. So if you're editing the temporary answer object, you post to that one. You can then update the final answer by getting the temporary object and posting it to the final answer object URI.
 
I will try to explain better
 
user895378
@PeeHaa No the docs are correct. ext/curl is not the same thing as php's native functionality.
 
If I do a POST to /quizzes/1/answer/final I want the answer to be saved on the server, but I also want to set a submitted date on the quiz resource as well as update the status of the quiz to done. Can I do that when I POST to the URI mentioned or should I do another request where I update the quiz -resource?
 
12:22 PM
For the skeptical ones:
 
user895378
@PeeHaa As for a correct example ... The only thing you need to do besides verify peers (which is TRUE by default in curl) is potentially change the CURLOPT_SSL_CIPHER_LIST option. I have no idea what curl uses for defaults in the ciphers and it may or may not be necessary to change them.
 
"You're all mostly programmers" - No need for insults. — Yannis Dec 20 '12 at 20:45
 
@LuckyLuke I'd say it's fine to do so, if that is the workflow you want to imply for the quiz and it's answers. If you need the REST API more modular, this can start to stand in your way because each time you post to the /quizzes/1/answer/final a different object /quizzes/1 is changed, too. However the hierarchy you have in the URI path component already hints that, so it's not that unexpected.
 
What would be a better solution?
To post the answer in one request and then do another request where I update the status of the quiz (which triggers workflow on the server)?
 
@LuckyLuke Well, it depends on what you want to do. If you want to have the workflow on the server, it's fine. If you want to have the workflow on the client, it's perhaps better not to update related objects. But it heavily depends on what makes more sense to you and the usage of your API.
 
12:28 PM
@rdlowrey Library default list (i.e. it depends what you build cURL against, but in PHP it will be OpenSSL defaults)
 
user895378
Yeah, I don't know much about curl at all TBH. Haven't used it in years.
 
Anyone can tell me why this chart not working with this kind of values ?
 
@hakre I want the workflow to be on the server. If so, the approach with updating the status etc on the quiz is fine when I POST an answer? What should the HTTP response be in that situation? Should I point to the answer that have been created or the quiz that is updated?
 
@rdlowrey I use it for FTPS
 
17
Q: A user copy-pasting answers without proper attribution

Amal MuraliI came across this user's profile while I was going through the close-votes queue and most if not all answers seem to be copied from other Stack Overflow answers or from external sources. This is a small list of what I found. I suspect there are more as I haven't gone through all of his answers:...

 
12:34 PM
Is there any way to (effectively) use socket connections with just PHP, or would it be better to learn my way around node.js and it's packages?
 
@hakre: Same thing with var-dump.co :(
 
user895378
12:46 PM
@Alcapwn socket connections? Or websocket connections?
 
user895378
The answer is yes either way.
 

« first day (1165 days earlier)      last day (3798 days later) »