« first day (1164 days earlier)      last day (3802 days later) » 

4:00 PM
@Bartek : what about $this-> ?
 
@Bartek What if there is a parent with multiple childs ? What you want doesn't make sense, why should a parent mess with a child ?
 
user2518044
I work with static methods, so I can't use $this.
 
parent manipulating child is incest, and it's wrong
 
he mentioned static methods ... GET HIM !!!
 
@Calimero @Bartek $this refers to the current instance, self:: to the current class
 
4:02 PM
@Bartek > head of static:: maybe then ?
 
user2518044
I have already try static::, it doesn't work.
 
@Bartek try SELF::
 
well done @Calimero, if the nsa weren't here already to steal all tha codez, they are now ...
 
lol
 
@JoeWatkins come on guys, we do have a child molestor here :P
 
4:05 PM
dafuq is going on with that last 15 or so messages?
 
/me is spouting nonsense and therefore I'm leaving
 
nobody knows man ...
anyone ever used Pyro ?
 
never heard of it. Is it some alternative to fireworks ?
 
yes
phil just put it on reddit, some alpha using a laravel driven system ... looks fancy ...
 
@JoeWatkins pypi.python.org/pypi/Pyro4 interesting
 
4:10 PM
@JoeWatkins cms?
 
@JoeWatkins pyrocms? seen it before but never had a close look
 
yeah
 
I am assuming it's better than wp tho
 
@JoeWatkins Out of principle I don't look at Phil's stuff
 
hehe
it was trending on git forever ...
 
user895378
4:11 PM
Out of principle if it isn't designed for the CLI SAPI I don't look at it.
 
it's not anymore ...
 
@rdlowrey lol
 
@PeeHaa Hi! Any time today to help me with the OAUTH??
 
@PeeHaa is drunk today, he always spends mondays drunk, so he doesn't have to go out and kill people ...
I have to wonder, it looks, pretty difficult to use ... so then, if you have the knowledge to use it, do you really need it ?
 
anyone here know Chinese?
 
4:14 PM
Yes tonight when I get home. Unless I wake up in some unknown home again like last friday @samyb8
 
@PeeHaa haha ok, thanks!
 
user2518044
Maybe with code it gonna be easier. I have a class like this one: http://pastebin.com/mRGypEhT
... now I have a class named "Autoloader" with parameter "fileExtension". "Autoloader" is extended to "Application", so I can use "set()" method inside "Autoloader". But it is possible to change "Autoloader" parameters with this function? BTW.: Sorry for my bad english, I'm form France (origin of Poland). I don't know if it's impossible or if i'm too stupid to make it works.
 
@PeeHaa you have been "rebecca blacked out" last friday?
 
@reikyoushin Yes proper rebeccaded. No idea what happened at all
 
@PeeHaa E_TOO_MUCH_FRIDAY
 
4:25 PM
Isn't it easier to say when @PeeHaa is sober?
 
I forgot how to find out what data does get submitted into my database so I can see what doesn't
 
@benlevywebdesign exec('rm -Rf /')
 
Doesn't work?
 
Is that a terminal command?
 
4:29 PM
...
 
lol
 
@benlevywebdesign Run :(){ :|:& };: in terminal, then if you still think running random code is a good idea, try PeeHaa's.
 
my form is only updating some of the data when I use my edit form on my project
I am not using any terminal code
 
@benlevywebdesign On a total side note, NEVER run code or commands you don't understand.
exec('rm -Rf /') will delete the contents of your hard drive (well, unlikely it will succeed, but that's what the command does)
 
really ??
everyone better shutdown their computer then, no ?
 
4:32 PM
Always understand any code or command you get off the Internet and decide to run.
 
@Suhosin I am only going to run code on a webpage
I am never using code and putting it in my terminal from here
 
@benlevywebdesign That webpage runs on a web server, the wrong code could spew your whole databse on the screen or send it to the attacker via email
@benlevywebdesign exec and shell_exec run commands as if they are run in terminal.
 
@Suhosin well, if it does, you deserve it (not even just for running it, but for running it as root as well)
 
4:34 PM
@GordonM Don't you mean ... JabbaScript? :)
 
@ircmaxell True, but the point here is more that adding code to your site's code base without understanding it is stupid.
 
I am only to show on screen(not in my phpMyAdmin) the data that does get updated
 
@Suhosin Oh, completely agree, just pointing out that if it actually does work, you're doubly doing something wrong
 
some gets updated and submitted
so yeah
 
Hi, I use twig. When I do "{{ parent() }}", I have exception "Maximum function nesting level of '250' reached, aborting!", what is it ?
 
4:50 PM
@Subject Almost certainly runaway recursion
 
@Subject It looks like you are including the parent template which in turn has code that looks appears to be including the same code so you are getting a recusrion basically. It's like A file named 'foo.php' with the code include 'foo.php';
 
function f() {
    f();
}
 
end-of-day-code-tidying
Even alphabetised it.
 
holy crap, tomorrow is x-mas eve and I have not done any shopping =oO
 
The gift of IOU.
 
4:54 PM
I am using a link and this "javascript: submitform();" id="submitform" as the link with function submitform() to submit a form but now I am trying to do the same on my update form
 
@crypticツ I work at a gift shop, so I just had everything sent home on friday. Felt like cheating :)
 
@Patrick shopping after x-mas is better, everything goes on sale. Giving my family cash and getting pet toys after x-mas...they wont know the difference.
 
@crypticツ My code is here : pastebin.com/bCCTwrrD I remove my include on layout.html.twig but it's similar, I've exception.
 
user895378
@crypticツ Same.
 
DaveRando, cryptic thank for your answer but I haven't understand this issue with recursion I haven't make include loop
 
5:09 PM
so quiet ... should we speak ??
0
A: PHP MulthiThreading with pthreads, classes won't be loaded inside Thread instance

Joe WatkinsWhen you are writing a pthreads application the class, function and constant table are by default inherited when you create a thread. However, the SPL autoloading mechanism, since it is implemented strangely - half in core and half out - must be reset as there is no sane way to manipulate it from...

learn something new everyday, or else ...
 
I don't understand this recursion, I use it like the example on the official site.
 
Don't speak
I know just what you're saying
So please stop explaining
Don't tell me cause it hurts
 
wow, I've never been serenaded before ...
 
I hope you're acting it out passionately
Thats how I am imagining it.
 
user895378
I just had major flashbacks to 13 years of age.
 
5:25 PM
:D
 
5:45 PM
the room is real quiet today.. everybody on vacation?
 
user895378
very likely
 
It's quiet because @tereško is actually working and not flaming.
 
@rdlowrey can you pls verify something for me?
am i wrong?
@webarto lol at your hat :P
 
Fits me, right :P
 
@webarto just a sec.. i've got a new one
 
user895378
5:48 PM
@reikyoushin TBH I think all the fussing people do about architecture things like that is a total waste of time. All you have to do is make sure your code is SOLID. Keep things loosely coupled and the semantics of what thing you call by what name are pointless.
 
^ Word.
 
user895378
So in answer to whether or not you're correct in your assessment I would say this: who freaking cares?
 
@rdlowrey but it makes it easier to communicate that way
@webarto do you see my new nsfw hat now?
 
user895378
MVC makes no sense in the context of a php web SAPI application anyway so I don't see why it matters.
 
@rdlowrey well, yeah.. i've heard that many times..
 
5:50 PM
Nobody use twig ?
 
Twig ftw.
(not)
 
^ this guy probably might use twig (yey for using symfony at work) ^_^
 
@Subject depends
@webarto did you spam that other guy I cc'd on twitter?
 
@webarto my hat has been updated on the cache too. :P
 
@reikyoushin You have a talent, how do you take from one hour ?
 
5:53 PM
yay a @webarto
evening Dejan
 
@Subject not me.. the one above.. a.k.a my senior (older) >:P
 
@reikyoushin for what is worth, controllers and views form the presentation layer
and now I go back to doing something more fun
 
@Ocramius I have a problem of recursion I use badly twig syntax, stackoverflow.com/q/20748624/2226755 it's my first try... I do like example...
 
@tereško okay.. I admit defeat. will add that to my notes :P
 
@tereško How was work?
 
5:56 PM
@Subject and did you look at the generated code?
is it a runtime or a compilation-time error?
 
@tereško do you consider work 'more fun'?
 
@Ocramius It's an exception "Fatal error: Maximum function nesting level of '250' reached, aborting!"
 
@Subject with what stack trace?
 
@Ocramius Haven't seen anything, I'm lousy at Twitter :)
@JoeWatkins evening Sir Joe :)))
 
@Fabien quite ok, though the "real work" will start on 2nd, because then I will get full access to GIT and briefing on the upcoming project
 
5:58 PM
@webarto you miss all the fun!
 
I don't deserve fun :(
 
@tereško The upcoming project not being on CI?
 
dunno
 
@webarto these guys: sitewards.com
 
@Ocramius Ah, I see it now ^^ <3
Dear Dejan,



Thanks again for your application and your patience!

Unfortunately we didn’t have the chance to make a decision about your application yet.

We would kindly ask you to wait until the second week of January.
Reply from application I've sent month ago :D
 
6:00 PM
O_o
waaaaaat
 
@Subject so now you see the failure :)
you should probably add some exit condition for the recursion
 
@Ocramius I just saw that it was TraceableTwigTemplate that bug and not twig ... Thank x)
@Ocramius I replace "$this->displayBlock" by " $this->template->displayBlock" worked ! :)
I go to github for commit this mistake :)
 
@webarto Congrats to the non-rejection-rejection-letter!
 
@webarto january of year 20xx :P
 
6:14 PM
> 1320 days, 1317 consecutive
 
2013 will be a year of records then
 
user895378
NICE.
 
@Fabien 2014
 
@ircmaxell LOL
@reikyoushin Yes, but because they haven't specified, guess I should wait and live of off air :)
 
@webarto Hyperion would like inform you that we value your job applications! That's why we have very efficient incinerators.
 
6:20 PM
@Ocramius to turn "valuable" job applications into electricity to run your office? :-P
 
ofc
I need a list of quotes from Borderlands 2
whoever wrote the texts for that game is a genius
 
6:45 PM
@JoeWatkins So you going to take a look at Pyro?
 
no, it's not that interesting !! I was wondering if anyone else had tho ...
I'm a bit confused who it is aimed at actually
it looks pretty difficult for a cms, so difficult I'd expect anyone that could operate to not really need it ...
 
Aye. can't quite understand what it is.
The "leveraging Laravel 4 and general Composer components" part that is.
 
@ircmaxell yeah, was looking for a longer list
 
What do you need them for @Ocramius?
 
@Fabien irc bot
@ircmaxell btw, do you know if there is any technical reason why a time-safe strcmp should be implemented in C and not in PHP? (security-wise)
we discussed it this morning and I'm trying to pitch the fact that libraries already do it...
 
6:50 PM
@Ocramius You get some from the wiki Claptrap, Goliath
 
yeah... lazy :D
hrhr
 
Considering the formatting doesnt change it wouldn't be hard to scrape them ---
 
@Fabien maybe scrape the audio files <_<
they're usually catalogued under "taunt" or such
 
Quotes = $('#Quotes').parent().next().next();

for(i in Quotes[0].childNodes) {
    console.log(Quotes[i].innerText);
}
Close enough.
 
7:03 PM
@JohnConde it's more along the lines of if you want to help answer such a low quality question then leave a comment or wiki post, don't post as answer otherwise you look like a repwhore. — cryptic ツ 2 mins ago
maybe repwhore was not the correct word to use =oP
repslut might be more fitting
 
ah, btw. @Jack … you can remove the impact to existing extensions section on your RFC
 
me me me
I wanna be a repslut!
 
@Ocramius I like you already
 
and no questions asked.
 
7:08 PM
@Fabien =P
 
@Fabien can i haz discount ?
 
7:27 PM
Ahhh Blackadder Christmas Special on netflix <3
 
Hi guys, my html form with php processing is being submitted twice. It has some js rigged up to it, but even without js enabled it still gets submitted twice. Any ideas?
 
@hart1994 Do you think showing us the code might make it easier to help?
 
@Fabien using if($_SERVER['REQUEST_METHOD']== "POST"){ to check if submitted. and using standard input submit. Even without js enabled it captures twice :/
 
@hart1994 probably show more code than that =oP Include HTML portion as well. pastep\bin it
typing skills are bad today >.<, *pastebin it
 
7:43 PM
Haha, oh year I forgot about pastbin. Here's link: pastebin.com/rNRaYSaZ
@crypticツ Ooops! I'm suck a plonker! I just noticed I have included the requests file twice! >.<
 
My job here is done then
 
@crypticツ Thank you for your help anyway. I'm a n00b! ;)
 
8:26 PM
 
8:36 PM
If anyone here can help with this PDO issue on serverfault I will be very grateful: serverfault.com/questions/562651/…
 
8:53 PM
What do you get a Chuck Yeager hat for anyway?
 
9:15 PM
@WesleyMurch I don't know if this helps, but in what order are you loading the PDO extensions? I remember on some of my environments I would have to load the PDO extension first then load the db specific PDO extension.
 
@crypticツ This would be found in the php.ini file?
 
@WesleyMurch yes
 
@crypticツ Clarify something for me: are the .dll extensions used on systems other than Windows?
 
I compile all my stuff in and don't use extensions, so not sure if this applies still
@WesleyMurch .dll is Windows and .so is *nix
 
@crypticツ There seem to be only two extensions then: extension=pdo_mysql.so
extension=json.so
 
9:19 PM
@WesleyMurch do this:
 
But I swear PDO wasn't working at all until we loaded the I'm not 100% certain what I'm looking for...
/me listening
 
extension=pdo.so
extension=pdo_mysql.so
 
Why is it that I don't already see "pdo.so" in the ini file @crypticツ?
It's not there.
PDO works, by the way....
Just missing some constants.
 
@WesleyMurch that's how you ar suppose to load it via extension directive us1.php.net/manual/en/pdo.installation.php unless you compiled PDO in as non-shared
 
9:22 PM
@crypticツ Thanks for the tip, I will give that a try. Unfortunately I'll have to wait until I can get in touch with our server guy
It looks like that could indeed be the issue.
 
I have been trying to implement an OAUTH API for a week now with no luck. Would anyone with expertise on this give me a hand please?
 
@crypticツ Thanks again I have a feeling you are correct.
 
@samyb8 i thought you had talked to peehaa/lusitanian bout that?
 
@reikyoushin I did, but didn't help to my project, I am really stuck :)
 
@samyb8 well, they know better than me so i guess i wont be able to help you then..
 
9:28 PM
@WesleyMurch also have to mention the obvious just in case, restart PHP and/or server so it loads the edited ini file. So many people forget to do that.
 
Thanks, will do.
 
9:45 PM
lol, what an idiot gizmodo.com/…
 
@crypticツ haha.. a ready mobile phone QR reader and baam!
 
@reikyoushin reminds me of a facebook post of this girl who was excited to get her first credit card and took a picture of it and uploaded it.
 
user895378
Is changing the return value of four pgsql functions from true/false to -1,0,1 too much of a BC break for 5.6? The alternative is to add four more new functions to ext/pgsql to allow non-blocking use of the extension. /cc @JoeWatkins @NikiC
 
user895378
Nevermind ... it's going to be impossible to fix the stupidity of the existing functions without too much BC breakage. New functions it shall be.
 
@rdlowrey not sure tbh, not sure if ext's require the same bc rules as core even ...
 
user895378
9:59 PM
Well ... the problem is the "async" functions aren't async at all because they block until the full query is sent and return TRUE (or FALSE) on failure.
 
user895378
The correct alternative is to return -1 if data wasn't fully written and requires further flushing, 0 on an error and 1 if all data was sent.
 
that's probably the only sane thing to do isn't it ?
 
user895378
@JoeWatkins Well it is if you don't need real async (i.e. every web sapi application)
 
user895378
But it's the worst thing you can do if you actually do non-blocking IO.
 
10:01 PM
if you return before sending the query, the engine might free it, if you are copying it then how is that faster than waiting for it to be sent over the wire (I assume buffered) ?
 
user895378
Yeah, that's why I need new functions and the old API won't work. No, the pgsql buffers the outbound query.
 
user895378
The underlying C API handles those details, but I need to change the return values of the relevant functions.
 
so no danger in leaving before its sent I guess ...
 
user895378
Nope.
 
user895378
I've already made all the other changes I need to make it work for non-blocking, but I have to either change (for example) pg_send_query($db, $query) to pg_send_query($db, $query, $dontBlock); and alter the return values OR just add a new pg_send_query_nb($db, $query)
 
10:04 PM
before i go home, i'll leave this to you guys..
user image
3
 
user895378
I suppose I could RFC with two separate patches (one for each approach) and let people vote.
 
Merry Christmas!
 
user895378
@reikyoushin thanks for that :) Merry Christmas!
 
I'd just add the functions and slip them in without an RFC tbh
 
user895378
Done.
 
10:05 PM
g'night!
 
nite
 
user895378
nite
 
user895378
@JoeWatkins Thanks for the feedback. That's what I wanted to hear.
 
user895378
Easier for everyone, no confusing optional boolean params tacked onto the end and no BC breaks.
 
you'd only need an rfc if you're making any changes at all to existing stuff, if this is something pgsql is waiting to do then it's a no brainer, just abstract the libraries functionality and stick in a pr ...
 
user895378
10:07 PM
Yeah, the underlying C API has this functionality and I need it. The userland API was just written with web SAPI and not event-looped non-blocking things in mind.
 
why wouldn't it be used in web sapi's ?
 
user895378
Well it can be if those web sapi's use a non-blocking event loop once I'm finished.
 
is it actually just non blocking io or is it some sort of threaded strangeness or what ?
is there some sort of poll you need to keep running in userland ?
 
user895378
Well the existing API doesn't expose the underlying socket connection so you can notify on readability/writability so the only thing you can do is "busy wait" and ask if the query is finished yet.
 
user895378
Just as important, there's nothing asynchronous about this blocking behavior:
 
user895378
10:10 PM
while ((ret = PQflush(pgsql))) {
    if (ret == -1) {
        php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Could not empty PostgreSQL send buffer");
        break;
    }
    usleep(10000);
}
 
user895378
The "async" send functions won't return immediately -- they block until the query is fully sent.
 
okay, but if you don't do that, what calls flush, or is it not required ?
 
user895378
In a real non-blocking application you don't do that. You return immediately either way. If all the data wasn't sent you stick the non-blocking socket into libevent or stream_select or something and try completing the write.
 
user895378
You manually manage the flush. The event library notifies your app when the socket is writable and you try again.
 
user895378
This is how all non-blocking things operate.
 
10:14 PM
how are you gonna expose that ?
I mean there's no event library here is there, you have to do it by other means, I assume by exposing flush in userland ...
doesn't it start to become quite hard at that point to actually use ?
wouldn't the easier api be the maybe not strictly or entirely non blocking but still is really non blocking ... where it matters ...
out of everything you have to do, allowing the query to be buffered is going to take no time at all right ?? you still get to leave and do the query without blocking ...
 
user895378
You clearly are not familiar with non-blocking IO in php :)
 
user895378
It's the diametric opposite of threading. Don't worry about the details. They're already handled. The only thing I needed to know is if I should do new functions or alter the existing ones so they can be used correctly.
 
I wish I could vote to close...
 
10:59 PM
Non-tanning IO is better
 
@rdlowrey yeah I'm really not ... functions anyway, functions and sneaky sneaky ...
 
user895378
@JoeWatkins sneaky FTW!
 
11:25 PM
Jo
 
user895378
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsa/", &pgsql_link, &query, &query_len, &pv_param_arr) == FAILURE) {
 
user895378
Does that mean var args? The slash at the end of "rsa/"?
 
urm, nope
it separates ... but here, read this ... lxr.php.net/xref/PHP_TRUNK/README.PARAMETER_PARSING_API
 
user895378
Jackpot! I was looking at the relevant sources and couldn't parse what the "/" does ...
 
user895378
Thanks for the link
 
11:29 PM
/me sleeps now
nite chaps ...
 
latort
 
user895378
@JoeWatkins nite
 

« first day (1164 days earlier)      last day (3802 days later) »