« first day (1102 days earlier)      last day (3845 days later) » 

Jes
7:01 AM
friends
trying to execute a python file from php page on a button click
 
@Jack can you edit the pinned rfc post ?
 
Jes
was not successfull @Jack
nothing happens
can u help
 
@Jes there's one word that can help you:
 
@JoeWatkins Which one?
 
Hi I'm using share this script, but i have face some issue when i use share this using AJAX.
Share this button does't display after ajax call.
 
Jes
7:10 AM
@Jack nothing still happens
i just tried to pring the output
all i get is
null
 
null is not nothing, assuming you meant "null".
 
Hi any one free here ?
 
SELECT `RG_Reg_NO` FROM `registrations` ORDER BY `RG_Reg_NO` AND `RG_Branch_Code`='COL/A' DESC LIMIT 1
 
@samitha Remove the AND and replace by ,
 
i don't see any error but this not working
ohh ok
 
7:12 AM
SQL is sort of like English, but not in that way :)
 
Jes
@Jack this is what i get on button click
string(0) ""
 
@Jack the one -->
 
@Jack where is the Rose ? (TITANIC)
:p
 
@JoeWatkins Okay, let me rephrase that ... how does it need to be edited?
 
@Jack stick in expect rfc for me ?
 
7:22 AM
Hmm is there a reliable way to find the highst or lowst float? i tried fiddling around with ~INF but it has not really been a solution.
 
Jes
any help @Jack
 
Hello friends, any body is familiar with share this plugin ?
 
@Jes Yes, debug some more.
@JoeWatkins Just a sec.
 
Good morning,...
Those days you don't want to work on your project you have to finish but you want to learn some new stuff -_-.
 
@EveryoneThatIsCallingUsFriends: Stop doing it. We are not your friends (unless you know any of us personally..)
 
@Duikboot Google "procrastination". It's very hipster
There are even "guides" that tell you how to avoid it .. (which never actually work, but results may differ :)
 
Yeah I know what it means. :D vimeo.com/9553205 Reminds me of this video.
 
Morning
 
Hi
 
8:05 AM
ta @Jack
morning all
 
Hi Joe
 
moin @Duikboot
 
@JoeWatkins np~
 
Mornings
 
Mornings chaps
 
8:11 AM
Morning @JoeWatkins
Morning @DaveRandom
 
@Danack fyi if you log in to the online editor with Google or FB (right hand side of the login box) your patches will be grouped together across multiple sessions and, more to the point, you will be able to leave stuff in work in progress and be able to work on it again later.
I'm just testing the build with your patches now
 
Morning
 
Monin' @DaveRandom @MadaraUchiha @Fabien @JoeWatkins
Seems the west also woke up ;p
 
Morning
 
@DamienOvereem It's subjective
 
8:21 AM
And thats why it's safe to say. I seriously can't be bothered to actually find out where you all live :)
 
No, I mean that being awake is subjective
 
Extended keyword support is in + voting so far
 
@DaveRandom Yes, that too :)
 
8:31 AM
Manual builds fine though, so I'll commit after I've sanity checked the content
 
I dislike very much working off a laptop
 
Why. Just hook up 2 screens, a keyboard and a mouse.
 
There's no mouse and keyboard here for me
 
morning all ...
 
8:41 AM
@JoeWatkins Internally (i.e. in the source) how can I tell if a method is static? Is there any functional difference apart from getThis() ?
 
@DaveRandom from what NikiC told me - there's no difference at all, only flag
i.e. all methods are stored in the same way, no matter if they are dynamic/static
 
fn_flags & ZEND_ACC_STATIC
 
hello, @Jimbo
 
Last night at a user group, I was shown how github.com/J7mbo/AJAXTable js, could be replaced by a few lines of AngularJS. Mind blown
 
8:51 AM
@JoeWatkins Thanks. This is actually just for validating a docs patch - would you say that ZEND_ACC_ALLOW_STATIC should be marked as static in the docs or not? Presumably it means "is instance method but can be called statically"?
@Jimbo It could probably be done in a lot less code with jQ as well - the question is not whether it can be made shorter, but whether you want to add the overheads of including a huge lib just for a relatively small effect. Remember that every framework like that comes with penalties in terms of how much JS code needs to be transferred to the client + how much boiler plate needs to be executed every time you do something. If your site already uses angular for other code, go for it.
 
Checkboxes are always so crap to work with
 
@DaveRandom The overhead for including the lib is so small it makes it worth it for such few lines of code - it doesn't have to be included site-wide either, just probably on that specific page - it means massively simpler maintainability
 
Angular is awesome, but I don't use it. jQ is actually pretty awesome, but again I don't use it. I'm not saying that it is right or wrong to use or not use anything, there is no absolute right/wrong way.
Most of the time though, userland selector engines make me :-X
But even that's generally only because they get abused
@Jimbo btw your stuff got returned to sender because of insufficient postage :-( I'll sort it out this week
 
@DaveRandom Ah, okay. Serously, send me your paypal and I'll happily pay it, make up for the beer I owe you too
 
@Jimbo You can just buy me two next time I see you :-)
 
9:01 AM
@DaveRandom Well it's like a light jQuery (has some in it), but removes the massive selector engine - hence why it's so fast
 
@DaveRandom sorry ... yeah I think there should be a way to denote that both are supported, I'm not sure that there is ....
it shouldn't be marked only static at any rate ...
 
the php docs say:
"If an application exclusively uses prepared statements, the developer can be sure that no SQL injection will occur"
 
if you can only use one then instance method ...
 
do i understand correctly that i do not need to escape those then?
 
@JoeWatkins Yeh that's my feeling too. The patch is incomplete in any case.
@salathe That's totally my bad, I committed that without completely paying attention, I'm going to fix the whitespace issues, there are a whole bunch of them in the outstanding patches, I'm not committing anything else until they're fixed.
 
9:09 AM
I feel bad telling people off, when they're only trying to help. (Sorry @DaveRandom, @JoeWatkins)
 
mornin'
 
hello, @tereško
 
@salathe Rules are there for reasons. Some of those reasons even make sense :-P
 
@Sprottenwels yes, but only if you use prepared statements correctly
 
who got told off ?
 
9:15 AM
@JoeWatkins I committed a file with trailing whitespace :O
 
@tereško
what would be a false way?
 
edit.php.net screwed me over ...
 
@Sprottenwels $pdo->prepare('SELECT * FROM ' . $_GET['label']); would be the wrong way
 
it's supposed to stop me fucking things up ... I re-indented and it completely screwed up ws
 
... sadly, we have seen such examples on StackOverflow
 
9:17 AM
okay. well, i s guess it can't hurt to escape them anyways, can it?
 
@Sprottenwels Sanitization would be a better idea.
 
@JoeWatkins I don't use the editor much, did you check the diff before committing?
 
@Sprottenwels correctly used prepared statement would look like $pdo->prepare('SELECT * FROM Foo WHERE something = :param');
basically, you send a query with placeholders for variables
and then you send the data separately
 
check. thanks both of you
 
@Sprottenwels have you seen this video already: youtube.com/watch?v=nLinqtCfhKY ? Or read this tutorial: wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers ?
 
9:20 AM
Oct 17 at 12:55, by rdlowrey
I'm going skydiving in ~3 hours (terrified). If you never hear from me again it's because I went splat.
I fear we have lost him.
@rdlowrey, did you survive?
13
 
I'm reading through the wiki but haven't seen the video, thanks
 
@LeviMorrison I've concluded he's gone on holiday again. He's been home for well over a week so it's overdue.
 
I think he left his browser open on this page, though :)
 
@bwoebi In your opinion, how valid is Derick's concern about hand-written state machines?
 
@Sprottenwels Never escape anything unless you need to. Another thing that you will see a lot on SO is functions like this:
function escape_all_the_things($str)
{
    return mysql_real_escape_string(htmlspecialchars(urlencode($str)));
}
Things like that are bad news, they make the data basically useless to everyone for everything.
 
9:26 AM
this is crap
2
 
thanks@DaveRandom
is there even a reason to use a non-prepared statement then? they seem to have no disadvantages
 
@Sprottenwels There is generally a performance penalty, but it's rarely a meaningful one
Prepared statements involve two round trips to the server (send query, send params) instead of one when you put the values in the query string
However, if you have a query that you are executing multiple times (inserting multiple rows into the same table, for example) this can actually be an advantage, because you can call execute() as many times as you like, so for each subsequent row you only need to send the data and the query send/parse/plan build etc steps can be skipped
Most of the time the performance penalty is <1ms, often a lot less
 
Still no response from elephpant.com. Who could have known elephants would be so hard to find..
 
sounds good :). This is one of the things i wish i had learned earlier...
 
@DaveRandom This is with PDO::ATTR_EMULATE_PREPARES off though right?
 
9:35 AM
Well yes, what I said there applies to actual prepared statements, which emulated prepares are not
 
wow.. I've just discovered magic of + keys combination in bash :p
 
@LeviMorrison ah… I understand. He means that it'd be basically some sort of human-written parser… mh. True, but actually it's not so complex. I think he's exaggerating a bit.
That needs some reply.
 
@DaveRandom actually prepared statement involves one additional trip to server, because you can execute same prepared statement multiple times
 
@tereško Isn't that what I said? It could maybe be clearer. But I think the next message clarifies it?
 
what does this mean? stackoverflow.com/help/badges/998/outspoken (i.e. what is my message was 'starred') ?
 
but I didn't do that
-8
Q: how to Create a DIV on click of button?

viditi want to create a DIV every time user click a button "ADD DIV" with unique ID of each div. plus i want to use the id of that div generated to be use in jquery function and call that function each time the div is created.

:)
 
@AlmaDoMundo its like if 10 of your message is stared by other user .. and you will got outspoken badge
 
so why it's so rare then?
 
@AlmaDoMundo may be quite few people use chat
 
by the way
where's the dog from your previous picture? :p
 
9:53 AM
@AlmaDoMundo its confidential :P
 
@LeviMorrison but why do I receive such feedback only after having put it in voting? ._.
 
Every time someone kills a kitten, someone uses .eval()
3
 
I kill a lot of kittens
 
@Jimbo let me guess.. eval('kill kitten'); ?
 
9:59 AM
@Ocramius I kill Italian plumbers
 
@DaveRandom you shall be sentenced to death. By hopping on your head.
 
Hmm... is it actually possible to write files to memory so that they're deleted after a script ends its execution? (without mounting a ramdisk or such)
was thinking of using memory://
 
@Ocramius yes, it's possible. I've started that here, and @DaveRandom continued here
:p
 
10:03 AM
@salathe I didn't, I didn't see it changing anything but the bit that was incorrectly indented in my view of the document, and didn't expect that it would ... and would assume if it did then it done so correctly ... so it never crossed my mind to check the diff ... it will now ...
 
@Ocramius php://temp ?
 
hmm... must be started as a daemon though
Let me clarify: eval'd code can't be scanned because ReflectionClass#getFile() will fail
that's the original problem I had to solve somehow :D
 
@Ocramius Sorry what do you mean by "scanned"?
 
@DaveRandom getting a method's body
(just an example)
 
10:06 AM
@Ocramius So you mean get the source of some arbitrary piece of already parsed code as a string?
Like getting the body of a closure or something
 
yes
exactly that
 
@salathe you're doing that wrong
 
and additionally (hopefully) getting rid of horrible exceptions like "shit happened! .... in eval'd code..."
 
@AlmaDoMundo they don't deserve a Chuck Norris thumbs up!
 
sh*t.. rigth
then delete this :)
 
10:08 AM
@Ocramius Yeh that's a tricky one. Is it truly arbitrary, like some generic lib, or is it for a specific use case?
1 message moved to /bin/gif
 
@DaveRandom yet again some code generator stuff...
you can always configure it to dump stuff to files btw, it's just that it causes a lot of I/O in many cases
 
:o
I'll have you know, I'm a hero, if a hero does not deserve chuck then who does ...
[09:07] *** The channel topic is "286 doc bugs. :/ bit.ly/phpdocbugs | php.net redesign prototype.php.net/docs.php | Bug closing hero of the week: krakjoe".
I'm a hero with a very narrow field ... but a hero, none the less ...
wait wait ... is this a bit like the bin men are heroes for collecting the bins ?
 
momoj
 
@PeeHaa is that morning Joe with a nice sticky just-woken-up mouth ?
 
yes
:)
 
10:14 AM
:)
 
@All any idea abt
mobile information from its imei number
programatically
 
moin ...
@Monica what do you men by information ?
 
means device Name and its its version and all
 
afaik there is no identifiable information, they are assigned in such a way that they bear no relation ...
no you would need access to provider information ...
a serial number you might have some chance with ...
 
same as this
me
http://sndeep.info/en
but i need in json format
 
10:17 AM
@Monica I have only only question: why 28, not 42?
 
I think they must have access to provider information for IMEI, you can probably do something with serials without such access, given you do some reasearch ...
 
@JoeWatkins Alright Thanks
 
a lot of research ... you might look for some commercial provider being that you're in here asking about it, I don't suppose you know where to look, nor do I ... I imagine it's "inside" information ...
 
@AlmaDoMundo Just a Name
 
:( I hoped that will be a riddle. Sorry
 
10:18 AM
Why not 666 or 1337
 
@JoeWatkins ok fine i will do it
 
That'd be far more edgy
 
@Ocramius I got nothing (or at least, nothing that doesn't involved a bunch of hateful regex that wouldn't cover some cases anyway)
 
@SweetieBelle no. 42 is everything
 
@DaveRandom Regex is not hateful. :P
 
10:18 AM
@SweetieBelle These ones are
 
@DaveRandom Regex is that friend who really wants to help you with everything, but doesn't ALWAYS have the pedigree. So quite often he makes the problem worse.
 
@SweetieBelle may be you've never seen hateful ones :p
 
He's well intentioned, though.
@AlmaDoMundo I've never seen hateful regex. :P Regex is your friend.
 
@Monica imei.info/api/imei/docs (first result if you Google "imei lookup api")
 
got 60 points on old answers today.. hmmm
 
10:20 AM
Ffs. Gf, "internet's not working". I run her through resetting routers, pushing in cables, spend 10 minutes helping. "Internet's still not wor... Oh, it was just one specific webpage, the internet's fine, sorry". FUUUUUUUUUUUU
 
@Jimbo lol
 
argh
I want access to the Drupal stackExchange :p
 
@Duikboot no shouting ...
:)
lol
 
@Jimbo $facebook->notLoading() != Internet::isDown();
 
@DaveRandom m looking for json format
 
10:21 AM
Hello All
 
Looks like JSON to me...
 
I need help
 
Don't ask for help @UnknownDeveloper Just ask.
 
about hostgator server
ok
 
@Jimbo same thing 'mouse not working'.. try reset drivers, plug/unplug, e t.c. e t.c... after hours - reason was found: it was because optical hole was sealed by patch
 
10:22 AM
some file permission issue
i open my site but it will showing 403 forbidden page
 
@bwoebi I really want to vote yes on that keyword thing ... but having a hard time getting over 10%, so I tried to pull in the patch against master and got conflicts, I do have it compiling now, I see a lotta realloc don't I ? I will have a look, 10% isn't the end of the world but wanted to see if it can be improved first .. not calling you into question at all, just trying to help ... heads up anyway, merge conflicts ...
 
I have set the file permission
but not working
:(
 
@UnknownDeveloper
- In what folder have you placed your website
- To what permission have you set your file/folder..
 
public_html/joomla
i want to install the joomla extension
i have create a joomla folder in root directry
and upload the joomla installation stuff
but host is not read joomla folder
 
A Joomla extension or a Joomla website?
 
10:25 AM
joomla website
 
What path are u loading online
yoursite.com/joomla/ ?
 
@JoeWatkins I have voted yes based purely on the feature. With the way internals works, if this doesn't get in it will never get in, or certainly not for another few majors. I'm fine with having a slightly sub-optimal impl which can be improved freely later, once the feature is in it would be a simple case of PR'ing to improve the mechanism.
 
Did you CHMOD joomla/ ?
 
but showing forbidden page
 
10:26 AM
@JoeWatkins have a look at bugs.php.net/bug.php?id=65942
 
Did you CHMOD joomla/ ?
 
yes i have change the folder and file permission
now folder permissin is 644
 
Is the 'joomla' directory a 755?
 
@JoeWatkins merge conflicts; yeah, I have to rebase that later.
 
10:28 AM
wait i'll check and xhange 755
 
@bwoebi Agreed with your comment
 
Can you share the URL with us @UnknownDeveloper ?
 
@JoeWatkins btw. there aren't a lot of reallocs? just if the buffer gets too small (which initially is 8 and normally shouldn't need to be realloced) it gets doubled.
 
Thanks @Duikboot
 
Does it work?
 
10:29 AM
you are really great
yes now working
 
Hello, I am making category tree on my php project, there are like 1000 examples how to do it, but I have no idea wich is best. Now I try this way; pastebin.com/KVQWzCEM The problem is, that the code is printing blank page for me when i use it, what I did wrong?
 
Njoy :)
 
(bow) @Duikboot
 
:D lol
 
10:39 AM
@DaveRandom no problem, guess it's not trivial :-)
 
I wonder how this is still alive ^^^
 
10:57 AM
@Mr.Alien Now accepting delvs
 
@DaveRandom already voted, infact it's deleted 3 mins back ;)
 

« first day (1102 days earlier)      last day (3845 days later) »