« first day (1432 days earlier)      last day (3520 days later) » 

where can i get free images for my website?
Morning to all...
 
Have you tried asking google?
 
Yes @Stijn I agree — PeeHaa 11 secs ago
:P
 
Hi guys...
 
time is effective than strtotime?
 
9:07 AM
@StaticVariable flickr cc licensed stuff (look for the specific commercial licenses)
 
thanks i already have the answers
how do you hack an csrf ?
 
@Fabien Stop doing freshers
 
@boyee Have you tried asking google?
 
@DaveRandom lol
 
@DaveRandom heh. Freshers make me feel oooooooold.
 
9:09 AM
/**
 * Class constants
 */
 
@JoeWatkins targeting you mainly because of phpdbg, how feasible do you think it would be to make a php assembler? For language development purposes, I want to tinker with what opcodes I want emitted in certain places before I write the C to emit them.
 
I'm generally in favour of Docblock All The Things, but how is that useful?
 
@boyee what answer you get?
 
@Leigh As in, something that generates asm from PHP?
 
@PeeHaa thanx.
 
9:10 AM
the levels of discourse in this room is impressively bipolar
 
@DaveRandom no, something that takes a user supplied list of opcodes + operands then runs them in the vm
 
Isn't that effectively what opcache does?
 
I guess, but I want to be able to step through :D
 
Does phpdbg play nice with opcache?
Because if so, all you really need is a cache writer
 
you can run it with a SAPI using the -S flag
Sep 5 at 11:29, by Leigh
sapi/phpdbg/phpdbg -Scli -dopcache.enable=1 -dopcache.enable_cli=1 test.php
...
phpdbg> p e
[Context /Volumes/Stuff/git/php-src/test.php]
        L0-0 {main}() test.php
                L3      0x10afa75e0 ZEND_ADD                       C0                   C1
        @0
                L3      0x10afa7610 ZEND_ADD                       @0                   C2
        @1
not actually sure if it plays nice or not
 
9:14 AM
Worth looking into, I would have thought, in principle (without looking or even thinking about it too hard) it seems like all the building blocks are already there with the combination of dbg + opcache
 
ok, will have a poke at lunch time
 
@SuperBear postgres is so strict when you want to have a simple groupby functions
you do something like this
 
That said, @JoeWatkins and @bwoebi probably have ideas/opinions more worth listening to than mine @Leigh :-P
 
select a,b,c,d,e,f,g,h,i,j,k,l,m from tble group_by a,b,c,d,e,f,g,h,i,j,k,l,m
which is not use to use
 
@boyee wrong
mysql is stupid
every sane and standard sql engine does it like that
 
9:18 AM
well you don't really need an assembler, no such function exists internally, but it's simple enough to allocate an op_array and build opcodes @Leigh
 
how come?
please enlighten me
 
@JoeWatkins cheers, I was wanting to experiment with loop {} else {} constructs which can obviously all be done with existing opcodes, and maybe toy with loop {} then {} else {} for some pythin if-no-break-then {} action
 
is my understanding @PeeHaa is wrong?
 
yes. mysql allows what you tried because mysql doesn't implement the sql standard
 
@PeeHaa is usually wrong
 
9:22 AM
True but in this specific case mysql is once again a retard
 
select a,b,c,d,e,f,g,h,i,j,k,l,m from tble group_by a,b,c,d,e,f,g,h,i,j,k,l,m
how about this?
does this query wrong too?
 
@PeeHaa MySQL is usually wronger, I'll give you that
 
can i have some samles
 
ty sir @DaveRandom :)
 
*samples
 
9:23 AM
When the answer is "MySQL" it's not really relevant what the question is. The answer is wrong.
 
This makes it a bit more sane @boyee dev.mysql.com/doc/refman/5.0/en/…
 
how do you do that in postgres?
 
Hi guys...
I need one suggestion...
in my page I'm getting more then 300 frequent entries from user. is this better to create a ajax call to server for each entry?
 
Hello all
 
@PeeHaa Interesting, did not know that existed
in fact I'd never considered that MySQL might have options to make it less zOMGWTF
 
9:27 AM
@CJRamki thats the best option just like facebook
 
@DaveRandom I just file stuff like that under the same stuff as real_utf8 encoding
 
@DaveRandom and @PeeHaa i wish i have your knowldge
 
Does anyone know a way to take a string and turn it into a hash that Apple uses can this be done in PHP? I have a script for like 43 different hashes but i want an OSX hash.
 
@boyee postgres does that automatically, because postgres actually implements sql instead of some retarded sql like implementation (like mysql does)
 
@PeeHaa It's really fucking depressing that a Microsoft tech product is one of the more sane options in terms of adhering to standards. They have all sorts of weird non-standard stuff, but at least the standardised stuff is implemented properly
 
9:30 AM
yeap. MS rules!
 
@boyee thanks for you suggestion.. one of my friend suggested me to use local storage to store frequent entries and finally pass it to server to store in db.
 
I suppose MySQL has spoiled me, or ruined me, whichever adjective you prefer, so there's no better way?
 
frequent ajax calls wont make server busy?
 
thats one main issues
specially that your site is popular
i built social networking sites which have lots of ajax post feedbacks , i havent seen an server issues
but who knows
 
@boyee you know that you can edit your messages?
 
9:36 AM
@Patrick haha thanks
 
simply @boyee removed it....
:D
hey then how fb managing this issue?
@boyee
 
hi
 
@Petah Hi...
 
What is the word called in the middle of a name (don't think english names do shit like this). Pieter van Hordijk
 
middle name
?
 
9:50 AM
It is just middle name
 
strange wikipedia tells me Anthony Michael Hall is the middle name
tnx both
 
It is
It's also part of the forename
 
but words as van is part of the last name?
 
@CJRamki our admin did was having a large scale of server to handle this issues ( more money to pay to the server ) i think
 
Claus von Trappenberg
 
9:53 AM
That's part of the last name
Like McDonald
Mc = Son of
 
@boyee mmm.... may be....
 
@Fabien TIL
 
Donaldson
 
what do we need to do to get this in php? wiki.php.net/rfc/named_params
 
@PeeHaa English itself doesn't do it, if we did it would be of that we used probably
There are a lot of "English" surnames loaned from other languages (Mc/O' from celtic languages, d' from French/Italian etc)
 
9:57 AM
Example of an d' name?
 
Jus d'Orange :D
 
:P
 
@PeeHaa you have given names, and a family name, then a prefered name AFAIK.
 
d'Artagnan heh
 
morning
 
9:58 AM
Terence Trent D'Arby
 
what i love on chat stackoverflow most devs are great help
can you relate on this?
 
@boyee no
thats rails
 
@PeeHaa It's a prefix to the last name - en.wikipedia.org/wiki/Dutch_name#Surnames
 
i dont relate
 
@Petah don't*
 
10:02 AM
'I'
 
Capitalisation requires dexterity :)
 
@boyee LOL
 
@Danack Ah prefix
 
@PeeHaa Pee van Haar, clearly
 
Yup, and then you have "van der" as well ... Like, "van der Bilt" :)
 
although I guess Haar can also be hair, when I meant Her
@Petah did you review the RFC discussion on the internals list?
 
somewhat
 
Anyone gone to PHPStorm 8 yet?
 
@Leigh i followed it up until 21 jan
 
ping @NikiC what's the status of named params? Last I heard there was call forwarding issues and you didn't want to continue with an incomplete implementation. Is that still the case?
Ignoring potential BC issues, is it a candidate for PHP 7?
 
10:22 AM
I think I'd rather have skipping default values support.
 
Hello
 
i would love it, or if not or as well i would like wiki.php.net/rfc/skipparams
 
@Ja͢ck The thought of default everywhere makes me retch
 
@Leigh its better than having to look up and supply default values
 
@Leigh The necessity to have default everywhere just means code smells everywhere.
 
10:24 AM
named params would give you skip functionality though
 
yes
it would
now how we get this into php is the question
 
@Petah You get someone willing to develop a full, sane implementation, and support from the internals devs
 
Not necessarily in that order.
 
is the current implementation not sane and full?
 
The best place to start would be to talk to Nikita
 
10:26 AM
(im disregarding internals support for now)
 
I'm sure it's relatively sane, but not full
 
ok well @NikiC ping me back if you read this
 
hello
 
> I'm currently not working on this RFC, because other things are keeping me busy. However this RFC will be resurrected in time for PHP 6.
So I guess it's planned for PHP 7
 
where should I start to learn modern PHP, and avoid learning outdated approaches?
I know PHP has changed dramatically over time
 
10:29 AM
 
Again, make sure you read the internals discussion, from memory that was a pretty heated one, with so much bikeshedding that Anthony withdrew it.
 
i followed the internals for a couple of years (as a lurker) left 21 jan this year after the anthony* debacle
so do you recon i should bring it up again on the internals list, and update the patch?
 
If you're willing to take on the responsibility, and can work on the implementation or find someone willing to work on it for you, feel free to take it back to internals and re-ignite the discussion
You can ping ircmaxell here if you want to talk to him about it
 
hmmm those are the key features i wish were in php
ill have to decide which to concentrate on first
 
@Leigh Yeah, sure. Not a priority though.
 
10:37 AM
Sure :) thanks - @Petah so there's your answer for named params, candidate for PHP 7 but not a priority.
 
Having native functions use named parameters would be interesting though, because then all of a sudden the actual name of the argument becomes important for consistency.
 
Tom
Whenever i click the button it displays the same value. Why?
$("#refresh").mousedown(function(){
code = '<?php echo(rand()); ?>';
alert(code);
});
 
10:53 AM
because php generates a random value only when you refresh the page?
 
@Tom , just open your page source.
 
Tom
yes, opened.
 
you should see it's not random there
 
hello is ther any wordpress developers?
 
@User1988 no
 
10:55 AM
@Tom , find this place and read carefully.
What do you see?
 
Tom
@sergey what do you mean?
 
@Tom open the source and search for the code you pasted before
 
@Tom because your code variable has a value and is loaded into your browser, therefore the button click will always return the same value... until you refresh the page and JS is reloaded with a different random value?
 
Tom
I didn't get you. I am using chrome.
 
doesn't matter what you use. php generates the value once - when you refresh the page
 
10:58 AM
sever side vs client side code
 
Tom
okay. the thing is, i need to generate captcha codes when the user click the refresh button. what to do?
 
$("#refresh").mousedown(function(){ alert(Math.random())});
 
@Petah typo "Math"
 
@Petah you are fast :)
 
10:59 AM
Math*
 
@Tom , do not create your own captcha, just take existing one.
 
Tom
okay. that means i should use only javascript here, no?
how to get existing captchas?
 
@Tom for captcha, use an existing api...
 
Tom
give reference, please
 
@Tom , google.com/recaptcha/intro/index.html , then search for recaptcha + php
 
11:01 AM
@Tom stackoverflow.com/questions/13840429/… this is something vital for you to understand
 
Tom
thank you, all.
 
11:23 AM
if ($item_number == '001' && $payment_status == 'Completed' && $payment_amount == '0.99' && $payment_currency == 'USD' && $receiver_email == $my_paypal){
	// Insert actions here
}
Is the code above valid? Can I put so many '&&''s in a if tag? (sorry im not a php coder)
 
@Ibra038 Sure
But I think you're doing something wrong here.
 
Tell me (:
 
Why do you need this many conditions?
Where are you getting this information from?
 
oh, if you mean the variables, they are coming from paypal. (I tested it, and those variables exist)
I have 12 products and it should mail the buyer a different email for every product.
 
@Ibra038 You realize that doesn't scale very well, right?
Tomorrow you'll have 13 products, and you'll have to code a completely new condition + mail + variables for it
 
11:30 AM
Well, ill always have 12 products for that shop, but IF I add more products, I should edit the script a little bit. I can live with that (:
Currently there is no other option than this (in my eyes).
Thanks for your help btw, I appriciate it!
 
...
Secondly, if $item_number is allowed, doesn't that mean that paypal handles payment amount, currency, etc for you?
 
ignorance is bliss :\
 
Do you not trust PayPal to have the correct price for the item you defined?
 
People can create custom paypal buttons, even if the reciever email isn't there's.
They can simeply put $item_number = 001, and the price 0.01 USD.
 
@Ibra038 not if you set it up correctly
 
11:40 AM
@Ibra038 So you set it up wrong!
The user should never be able to pick the price client-side.
 
paypal.com/us/cgi-bin/… (I tried here to put another email, instead of mine as reciever, and I still got the button)
 
ping @ThW ?
 
what did I do wrong? ):
 
@Ibra038 read the docs. you can either make a premade form or one where you send a hash of the fields if I remember correctly. has been a long time, but I'm sure it's still possible
 
@Leigh Interesting. I wonder why most other languages don't do this.
 
11:48 AM
I'll read it, Thanks!
 
@SecondRikudo shrug fairly simple to implement too, can do it without requiring a tracking variable so no performance hit either
 
Anyone know any simple staff holiday management tools that are free?
 
how many users?
I know one that's free for 3 users or less :D
 
<10
Who can't manage a holiday of 3 people? -_-
 
we use timetastic it's 50p/user/month after 3 users
 
11:52 AM
 
@Fabien You'd be surprised.
 
oh lol... I mixed up your location with someone elses... nevermind :D
 
:P
Cheers @Leigh
 
Hey can anyone else me with some code? I am nub
 
nevermind, switching to english costs money...
 
11:55 AM
Nice design :P
 
if (false) { return; } else { @RyanMcKenna(); }
 
erm lol
Anyone got a spare WORKING registration/login code??
 
@RyanMcKenna I need all of them, can't spare any, I'm sorry
 
:-P
 
@SergeyTelshevsky I rather like the double meaning of @ there
 
12:01 PM
@derp yeah :)
del
 
PHP generates some odd stuff...
   3     0  >   ASSIGN                                                   !0, 10
         1  >   IS_SMALLER                                       ~1      !0, 0
         2    > JMPZNZ                                        6          ~1, ->7
         3  >   POST_DEC                                         ~2      !0
         4      FREE                                                     ~2
         5    > JMP                                                      ->1
   5     6  > > JMP                                                      ->3
why is op 6 there...
 
Ah ok a typical elitist chatroom seeya then
 
@Leigh because single pass compiler
 
@RyanMcKenna Not really, just not a free code service, nor an "answer your question before you've asked it" clairvoyancy service
 
it had to preserve the order of init; cond; loop; stmts; resulting in unnecessary jumps
 
12:06 PM
@NikiC does the ext param from the JMPNZ detour to op 6 just to go back up to the POST_DEC?
 
@DaveRandom pffft, exactly what an elitist would say
 
@Leigh yes. try the same thing with a body, maybe it will make more sense then ;)
 
e11itist chatroom
 
e1337ist chatroom, more like
 
@NikiC right, the body goes between the two jumps, that does make more sense :)
 
12:08 PM
31337157
 
it was the room number reference :)
 
@Leigh if you look at the ops in phpng it generates a more obvious structure there
 
Because AST?
 
@NikiC This is where I'm currently at with loop {} else {} - decided duplicate prologue is more efficient than a tracking var
 
@Leigh Makes sense :)
 
ThW
12:15 PM
@daverandom pong
 
@Leigh a bit weird, but probably no better way to do it without new opcodes and stuff
 
wanted to avoid repeated assigns to a temp var
 
we probably should compile while loops with cond body reversed
    jmp ->cond
loop:
    {body}
cond:
    ~1 = {cond}
    jmpnz ~1, ->loop
saves us one jump per iteration ^^
not that it's really worth anything
 
@ThW Hey man, there's a guy doing some stuff working with HTML5 and said that DOM is somewhat lacking in some areas apparently, does FluentDOM and friends have any additional handling for it?
 
@NikiC for loops can reuse a tmp var saving a free per iteration
 1  >   IS_SMALLER                                       ~1      !0, 0
 2    > JMPZNZ                                        6          ~1, ->9
 3  >   POST_DEC                                         ~2      !0
 4      FREE                                                     ~2
 
12:23 PM
@DaveRandom What kind of areas?
 
@Leigh not sure what you mean by that
 
ThW
HTML5 has some semantic pitfalls, but here is a library for import/export to dom
I posted some infos in my blog.
 
@Ja͢ck Earlier I asked:
> That said, what exactly are you having issues with? Tweaking some of the ext/libxml options may help.
His response was:
> Trying to get an element by class from the document. This involves having to use DomXPath with the DOMDocument object.

However, the DOMDocument seems to have a missing doctype (due to the source html being html5) and this causes DomXPath to not work properly
 
@NikiC ~1 can be reused instead of using ~2 then throwing it away
 
@Leigh ah, we don't generally reuse vars
 
12:26 PM
@DaveRandom oh poop =S
 
Which I haven't tested but sounds quite possible, and he's not the kind of guy who would ask without testing
 
I'm not sure if opcache shares var slots based on lifetime analysis
 
ThW
Sounds more like a namespace issue
 
I can imagine that libxml would bork at <!DOCTYPE html> though, because it's not actually a valid doctype in the strict sense iirc
@ThW I haven't explored the "not work properly" element yet, he's gone for lunch. I pointed him at FluentDOM/PhpCSS and he said he'd have a crack and see how he gets on
 
ThW
Well here is a compatible variant if I remember correctly
 
12:30 PM
@ThW He said someone had pointed him at github.com/html5lib/html5lib-php - any experience and/or opinions?
 
ThW
Seems to work
 
tnx
 
domxpath doesn't give a piss about the doctype. either it's a namespace thing or he doesn't know how to look for a substring in a space-delimited string in xpath
@DaveRandom that's old and abandoned. use mastermind's html5 lib if you need one.
 
@derp Possible, this is someone I regard as generally competent but everyone makes mistakes.
@Ja͢ck tnx
 
12:35 PM
I'd be interested in seeing an mcve, if it comes back around
 
ThW
@daverandom I am on the Photokina at the moment. Will be on my pc later if here are other questions.
 
OK no worries, tnx :-)
 
It's hard to imagine this: stackoverflow.com/q/25890799/1503018
7
 
@sectus That has to be some kind of weird troll. That sort of WTFery cannot possibly be real.
 
user1607528
12:49 PM
@sectus php to pdf and pdf to php LOL :D
 
Other quesions from this person looks like legit...
 
@Muhammet May as well do a couple more rounds just for shits and giggles
 
an elaborate ruse
 
The slight irony being that it would be trivially easy to embed executable PHP code invisibly in a PDF
 
Do we think there will be a PHP 5.7, or is all effort now going towards PHP 7 being the next release? (i.e. should I be basing language change patches off master?)
 
12:52 PM
@Leigh language changes definitely off master
 
thanks, time to learn about the ast implementation then I guess :D
 
Even if there will be a 5.7
 
I want a 5.7, I'm fine if it has no actual new features though
 
Best PHPStorm 8 feature for me is to be able to open one file only.
 
12:55 PM
DAMMIT RANDALL Y U NO MAKE NEW WHAT IF!?
 
user1607528
I dont really care if new version of PHP comes out, i am not even interested , even i use php, why ? I feel like im way behind
 
@Muhammet I know how you feel. I actually stopped doing PHP for my day job, so that I could start enjoying it again.
 
@ThW Thank you ;)
 
@DanLugg inorite, slacker. It's as if he thinks that going on some craxy ass book tour is an excuse
although the were a few on Thursdays over that last few months so maybe it'll be tomorrow
 
12:59 PM
You guys use google drive?
 
@Fabien Yeah
 
@Fabien I do... for storage or what?
 

« first day (1432 days earlier)      last day (3520 days later) »