« first day (2098 days earlier)      last day (2853 days later) » 

1:00 PM
Hello Guys , Finally I got 20 reputation to enter the chat , That's Great
 
welcome to room @ÐrSsamade
 
fwiw her avatar is not on tineye and her previous one showed the same gal. I agree that a hairstylist gone android/php dev sounds somewhat absurd, but hey… the entire world fell into a pokemon craze and the uk appointed johnson as fm… so I guess everything is possible… and as long as she is not trolling/vampiring too much I dont care if real or not. I dont know if you guys are real either.
 
fyi: just updated the bug #72345 with a repro script and some more explanations
 
Anonymous
@ÐrSsamade Welcome o/
 
@Gordon I like to think that I exist.
 
1:02 PM
I like to keep my rep high enough that I can't be downvoted out of chat.
 
@JayIsTooCommon Thank you :D
 
@Gordon Is really a floating G. I believe it.
 
@AdilIlhan Thanks bro ;)
 
Hi 11,
 
@Fabor I wish more people didn't have high enough rep for that... It would make it easier to keep people out.
 
1:04 PM
And funnier.
 
@Fabor and delft blue… dabndeedabndooo
 
For some of us at least.
 
I wanna trigger a jquery function while my page scroll size was increasing, Means a ajax loading in a plugin and appends the products on my page Like load more option, after load the products i wanna trigger a jquery function to equalize the height of the all products.
 
1:06 PM
@dinesh PHP can't do that for you.
 
Not even if he asks nicely?
 
any one knows it just advice me.
 
phpikachu!
3
 
Go on! Advice him! Advice him hard!
 
<<< uses an adblocker. can only vice
 
1:10 PM
@dinesh to achieve an infinite scroll feeling you need two things: skills, and that flow: javascript scroll event triggers ajax request when close to end of scrollable element, server responds with html string, callable receives response and appends it to your dom.
that is, if I did not horribly misunderstood what you say.
 
Also please note that infinite scroll is a horrible user experience
 
ooh, seems better indeed
 
Yup. thats cool idea but the ajax was from another plugin. i can't able to customize it.. @FélixGagnon-Grenier
 
1:13 PM
@dinesh I'm sorry.
 
Wes
@Gordon i always do that :P
 
@DaveRandom I had more then 500 product in a page better think was not use Pagination right?
 
Wes
actually i don't reuse them, i just remove them and fill with empty space
 
NP. @FélixGagnon-Grenier Is any chance of trigger a jquery function while increase the scroll bar.
 
@dinesh I disagree, but I'm not in charge so do what you think is best. However just know that I have never once ever seen an infinite scroll UI that I liked using.
 
1:17 PM
@dinesh you have no need of jquery to do that. cough look this answer
 
Wes
reason ?? has less precedence than comparison operators? aw
 
Dear Unicode Consortium: please stop trying to fill in all the gaps. It's fine as it is. fileformat.info/info/unicode/char/1f625/index.htm
 
Wes
i probably don't see the other side of the coin but i would have preferred
$bar ?? 10 < 20 behaving like ($bar ?? 10) < 20 rather than $bar ?? (10 < 20)
 
@DaveRandom please check this flipkart.com/…
 
Wes
as opposed to ?: which instead works as i'd expect
 
1:20 PM
Yep, I'd prefer pages. But that's just me.
 
I'm a page kind of guy too.
Especially on bing images searches when i'm trying to access the "desktop" mode at the bottom of the page to turn safe-mode off. -_-
 
haha
be careful
 
@Wes iirc that was a voting option so there's probably discussion about it
 
I have tried several types 1. Scroll Down
2. Using setinterval
`setInterval(function(){ call(); }, 3000);
function call(){
if (window.scroll_height != document.body.scrollHeight)
{
window.scroll_height = document.body.scrollHeight;
product_equ();
}
}`
 
1:22 PM
@Fabor this. I've been on far too many infinite scroll things that keep taking the thing I'm trying to click on away before I can click on it
 
Wes
@DaveRandom i should be always using parens anyway though :P
i sometimes forget that
 
The second one Gives me correct solution but it looks too core type.
 
1:33 PM
May I actually spam some actual work advertisement here? Like... real spam?
Or would I get hanged?
 
Wes
unrelated, when you yield the same key multiple times in an iterator you get hemorrhoids. in case you don't know
 
@Ocramius there was a a work ad pinned for at least a week, so I guess you may
 
@Ocramius If anyone can, it's you. However you are also probably more aware than most of the crowd your are advertising it to so... your call
 
there, have the spam then:
We have some consulting/development availability for this September and onward: get in touch if you need some help with your #php project!
 
Wes
and this is why i don't trust others code, especially @PeeHaa's
 
1:36 PM
@Ocramius HANG TEH SPAMMER!!!1eleven
 
:D
Hanging fees are ~120EUR per head
 
Wes
\o yo marco
 
speaking of spammers… I get a lot of "money for nothing" mails recently… I am annoyed. None of them also offer the chicks for free.
 
@Gordon the chicks are only free for Mark Knopfler
 
yeah, I guess so
 
1:39 PM
@Wes sounds reasonable
@nikita_ppv @derickr So after a long read on tangential topics, "stupid reasons" seems to be code for Stas. RFC it? (put to a vote)
lol @Sara
 
#honestTweets
 
@DaveRandom STupid reASons
4
 
Anonymous
@Ocramius I'm curious, what is the price range for one of these consultations? Is there any fixed price/hr?
 
@samayo depends on length of the project. You can expect anywhere between 75~200 EUR/h btw
 
Anonymous
1:54 PM
@Ocramius How about say... testing a site for exploits without having to see the code?
 
Anonymous
That would be nice.
 
@samayo pentesting? I don't have extensive pentesting experience personally, but shoot us a mail and we'd see if someone in the team can help.
Also would be able to find someone more experienced on black-hat security, I suppose :)
 
Anonymous
Yeah, that's right. But, I'm planing to throw in vldpersonals on one domain and see how it goes. I've got the marketing (hardest part) worked out, but the codebase for that software is horrible.
 
Well, looking at the code makes it much more trivial to find security issues (if you own the code). When you hire a consulting shop, there's the typical NDA stuff going on anyway.
anyway, poked a few contacts to see who does pentesting
 
he only wants you to hack all these music sites hes ripping music from ;)
 
2:03 PM
I remember that EvanDotPro started doing money like that :P
(my boss)
 
Anonymous
@Gordon Nah. The music site is done!!
 
I am done, too… at least for today. cya tmr
 
Anonymous
laters
 
Anonymous
@Ocramius Problem is there are no decent dating scripts these days. vldpersonals is very popular and user-friendly, but the code is written for php 4.3+
 
Anonymous
You can guess how horrible it is from that.
 
2:06 PM
what's a dating script? O_o
oh, that stuff
@samayo shoot me a mail if your company is interested at all, we'll figure out something
 
Anonymous
Not for company, just a personal investment/project. When It's ready I'll contact you with more details.
 
@Ocramius foreach ($women as $woman) while ($woman->listening()) talk(); go_home_alone();
pretty sure that's how it works
 
@samayo :+1:
@DaveRandom that's pretty much tinder for developers
 
@Ocramius nah, that's where it shows you git repos and you swipe left/right based on code quality
I am so going to make that
Remember when the biggest problem in the UK was that we might have been eating horses? Good times.
 
Gon
Evenin'
 
2:19 PM
o/
 
Anonymous
o/
 
Quick silly one. How would I download an image from a url with artax?
 
(yield $client->request('url'))->getBody(); ??
 
Anonymous
(new Amp\Artax\Client)->request('http:..../foo.jpg');
 
Anonymous
@DaveRandom huh?
 
Anonymous
2:22 PM
Ah
 
Well I'm assuming you'd want the image data, and request() returns a promise
I'm not certain you can do (yield ...)->member like that actually
might need a tmp var
 
ahh, those sweet moments when I go from "yeah I don't suck so much with php" to "nope. I have no clue about anything people actually use"
 
Gon
:P
 
@bwoebi That ClosedGeneratorException code is weird
It throws an exception into the generator without resuming the generator
 
2:54 PM
So I am building a service that partially downloads images from given URLs. What security concerns should I have?
 
Partially?
 
@KevinMGranger I meant part of its responsibilities is downloading the image.
 
Oh. I thought you were making "top half of this image as a service"
 
lol
brb going to ask for funding!
 
3:05 PM
Still asking your mother for beer money? :-/
Best of luck.
 
Dunno ask @Jimbo. They seem to be close lately
 
lol
 
was literally just typing that somebody was about to name jimbo
 
3:06 PM
:D
 
3:28 PM
Possible to get the filesize before requesting a file in artax?
 
You could do a HEAD and get the Content-Length, right? Not every resource has that though
 
@Fabor ^ that. There's no other possibility otherwise.
 
Hmm, so to request that only do I break or something during progress at the RESPONSE_HEADERS stage?
 
Discovered that while trying to make a filesystem interface to the web. Turns out a lot of tools like being able to stat first :(
@Fabor HEAD only returns headers
 
@Fabor HEAD === GET without body.
 
3:33 PM
If you want to GET something and then break after the headers and check the Content-Length if it's there, I guess that works
Yep, straight out of the spec: The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
 
I don't trust HEAD because so much content comes through servlets with method-specific route handling
often HEAD !== GET without body
 
That's why you can just ignore that service, because it doesn't follow the spec! Ha ha! Idealism! :(
 
Also there's still no guarantee that you can determine the content length from the headers
if you want to impose a limit on how much data you will transfer, it's better to just stop transferring data after that cut-off
 
Can you make artax bail out after reading a certain amount? If not, you might need to do some trickery, like delegating to separate service workers in another process
 
3:38 PM
(memory limiting those processes)
 
@Fabor see github.com/amphp/artax "Progress Events", either SOCK_DATA_IN or RESPONSE_BODY_DATA (not sure if this is invoked more than once) - there should be enough info in there somewhere to impose a response size limit
 
Cheers guys
If only people weren't buttholes, none of this would matter.
 
Beople can be buttholes unintentionally. Assidents happen.
3
 
@NikiC It doesn't throw into the Generator using yield from?
I see nothing preventing that in code?
 
@KevinMGranger the last time I looked, there needed to be some work done to make that be configurable and be sane.
 
/me rage-quits life
 
@staabm yes, it indeed is a DoS vector, but putting a timeout doesn't help very much IMO; just fire the requests very quickly.
@DaveRandom What made you happy right now?
 
4:31 PM
@bwoebi Zend/tests/generators/mutli_yield_from_with_exception.phpt
Add a catch for ClosedGeneratorException around the last block, observe segfault
 
@NikiC you mean in main code?
 
@bwoebi yes
 
Weird… it also should be caught inside gen()
 
@bwoebi I'm actually not sure how it should behave
 
@NikiC yeah, it should resume the generator
 
4:45 PM
It would be sortof weird if current() would resume the generator, right?
 
right, which it anyway does for initialization
 
@bwoebi So basically the logic is "if there is no current value (because the thing holding the current value is dead), current will resume"?
 
yes
 
Newbie need some help for translating something in wordpress haha
Synthax problem here : pastebin.com/766MHLMd
 
what's the problem
you use Woocommerce?
 
4:57 PM
Well i use wordpress
and i have this "pending" word inside a plug-in but would like to translate it in functions so i don't touch the original plug-in file
 
and the plug in owner told me "you'll need to filter with si_get_invoice_status"
 
hm.. ok. si_get_invoice_status() return the status of the invoice
 
Yes
i need to got it translate maybe add something like $status = ( 'pending', 'sprout-invoices' );
But don't know how to select it with the add filter in functions.php
 
5:05 PM
function example_callback( $example ) {
$translated = __(...);
return $example;
}
add_filter( 'si_get_invoice_status', 'example_callback' );
 
Jean-Philippe, you speak frenchN
?
 
sometimes..
 
I wanted to speak french with you but if you are not fluent i will continue in english haha
Well what does $example refer to?
 
@DaveRandom @Jeeves' bio is updated \o/
 
5:11 PM
oh you just rage-quited life @DaveRandom oh well...
 
5:21 PM
@NikiC php-lxr.adamharvey.name/source/xref/master/ext/standard/… oughtn't zval_add_ref() to be called before adding instead of after?
 
> Tests: 173, Assertions: 190, Warnings: 45
That's the last time I update my dependencies...
 
@NikiC bugs.php.net/bug.php?id=72598 this is really a fun one
(see my comment at the bottom)
so, references to $this should be fundamentally broken everywhere where an refcount==1 => unref check happens…
 
Wes
i love your definition of "fun", Bob :B
 
5:36 PM
@Wes fun means here: "I have no good ways to solve that easily" :-D
 
@bwoebi the timeout helps because the exception can be used to terminate the request early
 
@staabm It only helps in case the attacker isn't able to saturate your server faster than the timeout. Which I guess typically isn't the case…
A few thousand reqs are quickly sent...
 
Wes
surprises me that despite facing all the time the pita that var references handling is, some internals people still like them (talking also of you here bob :D)
 
Sure, a few thousands per ip are also easily detected and blocked
atm you just need 5 per ip
 
@Wes I like the concept… internals is sometimes a mess with refs^^
@staabm except if you put a whole country behind a single IP (remember Qatar?)
Also, you were talking about _D_Dos. Which is distributed with many hundreds and thousands of IPs.
 
Wes
5:44 PM
don't you think that object handles are just as good but without being a pain in the neck? :B
 
In our system we had DDOS with judt a few ips like 20-30
Ands thats already enought to crack the session locks within seconds
 
@staabm does that already qualify as a DDoS? meh
 
Most attacks are not that professional and use 1000s of addresses
 
@Wes nah :-P
 
DDOS starts >1 IMO
but I guess there is no defined lower bound
 
Anonymous
5:47 PM
Evenings
 
@staabm but if you limit it to 5 per IP… apache should be flawlessly able to handle a few hundred threads doing nothing for a while?
 
@bwoebi apache doesnt has the tools to do such limiting per ip out of the box
yesterday the attacker saturated 400 workers within seconds because session locks, with 20-30 attacking ips
 
@staabm apache doesn't… iptables does though… I assumed you were using something similar
 
@bwoebi we use iptables.. But without such a limitation. i guess 5 per ip would also limit the performance
Will have a look at those limits tomorrow. Thx for the hint
 
@staabm yeah, 5 is perhaps too few… but 15 or 20 per IP should be fine … good, then you'll still have 400 workers saturated, but not more…
 
5:54 PM
Usually you dont have a lot more then 400 workers.. :-/
Will see
 
@staabm no, but apache should be able to handle that easily… … should.
It should be able to handle a few thousand workers (especially in a pending state) before slowing down.
(given that you have enough RAM)
 
Thinking again about per ip limits... This wont work when proxies are in the game
 
6:08 PM
@WyriHaximus you in this room? :-D
 
Anybody tried to run a build on travis tonight yet?
 
so .. today I had to unsubscribe from NerdAlert youtube channel, because their latest batch of news was just terrible bullshit :(
.. and to think that 4 years ago I liked all of TYT content
 
!!should I cancel the travis job or just wait?
 
You should cancel the travis job.
 
> .org build processing delay
Resolved - We have worked through back logs. The builds are processed normally.
Jul 14, 16:06 UTC
No they are not
 
@staabm Would surprise me if you get more than 30 req/sec from the same proxy for legitimate traffic…
 
@bwoebi our application is used from big enterprises from which some have their own proxies working with 30-50 people across it,... We will measure what the max in peak hours
 
@staabm simultaneously from the same enterprise?
 
@bwoebi sure
 
6:28 PM
hmm ok
 
6:40 PM
Is this supposed to happen on 7.1?
> Failed asserting that exception of type "PHPUnit_Framework_Error_Warning" matches expected exception "PHPUnit_Framework_Error_Notice". Message was: "session_start(): Cannot send session cookie - headers already sent
@Trowski perhaps ^?
 
> Go tends to prefer camelCase instead of snake_case. .... It also tends to prefer shorter names for receivers.. ie something like k or ki instead of kernel_info
I am totally stoked for naming a variable k instead of kernel_info.
 
lolwat
 
@PeeHaa No, I didn't change any non E_ERROR or E_RECOVERABLE_ERROR. It looks like it's always been a warning.
 
!!urban stoked
 
6:51 PM
Maybe the test is failing at session_start() when it should be failing later at something generating just a notice.
 
@⁠PeeHaa error has been logged. Fix it fix it fix it fix it.
 
    session_set_cookie_params(0, $path, $domain, $secure, true);
    session_start();
This works for the test on .0 and fails now on .1
github.com/php/php-src/commits/master @NikiC are you are plumber now? :P
 
Wes
have you ever seen java code? all local variables are one letter only. and when they run out of letters they do a1 b1 c1
 
Hey guys
can someone help me?
 
Anonymous
6:55 PM
!!version
 
hmm much confuse what I fucked up 3v4l.org/2SqPM
 
Anonymous
@Comradeo just ask the Q :) Someone will help if they can
 
Jun 6 '15 at 22:09, by Danack
For the record, this is why I do not think anyone should copy anything Enterprise level Java programmers have done. They've clearly, as group gone collectively insane.
/waves at worf.
 
Wes
tl;dr?
 
7:02 PM
They are nuts. Seriously, I consider some groups of programmers to have gone collectively insane, and you should do the opposite of what they do, even if you're not 100% sure why you should do the opposite.
 
@Wes Imagine if PHP reinvented the English language and then built a coding theory around it
 
it's not actually possible to debug enterprise Java applications.
 
Wes
lol
i like php.
 
Well, screw PHP. I'm going to code in LOLCODE
 
7:15 PM
@PeeHaa I think using ext/session was your first mistake.
6
 
:D
 
yeah just add some regex to detect content in your script before php opening tags, should do the trick
 
@NikiC github.com/php/php-src/commit/… couldn't you just free the passed object instead when returning NULL in these very few cases? instead of having a small penalty occur on every object creation without ctor?
 
@bwoebi You mean in get_constructor?
 
yes
 
7:29 PM
that would make for an ugly api
 
dunno… how often is get_constructor really used?
 
Wes
is there a jsonish format that supports binary data and that produces a kind-of human-readable output? and that doesn't make output too big (like base64 encoded data)?
 
7:47 PM
xml, probably.
 
Wes
could use that, if i have small tags... hum
 
@Wes msgpack?
> MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.
 
:D
 

« first day (2098 days earlier)      last day (2853 days later) »