« first day (1379 days earlier)      last day (3573 days later) » 

9:01 PM
@rdlowrey It's now linked to from the cURL site bundle page, I assume it's one their project guys
 
@Danack as said, I will. I just can't do everything at the same time.
 
user895378
@DaveRandom yeah he's the original curl guy
 
@bwoebi maybe ask someone else to resolve the problem? It would really suck if the new bad behaviour was in the release.
 
@rdlowrey the thought occurs though that if you want to keep an updatable secure version, you might do better to host it yourself with a self-signed cert with an extremely long expiry (like 20 years or sth) and just verify the fingerprint
We could do with a lib for doing that pre-5.6
 
@Danack I will and surely before release.
 
user895378
9:04 PM
Well the cert on github has a CN=github.com but I just realized that to get the raw file you'd have to go through raw.github.com so it couldn't match it pre-5.6
 
user895378
So yeah, using a peer_fingerprint is a good option (though it also needs 5.6)
 
user895378
But someone could also just install it like this:
 
user895378
git clone --recursive github.com/rdlowrey/Artax.git
cd Artax
composer install
 
user895378
I dunno if having an extra binary script is really worth the effort.
 
@rdlowrey Isn't it doable manually though?
You can extract the cert pre-5.6
 
9:07 PM
@rdlowrey I seriously need to get my project finished - you known composer doesn't actually check certificates, right?
 
user895378
Yeah you can but it's a PITA
 
@rdlowrey Hence...
4 mins ago, by DaveRandom
We could do with a lib for doing that pre-5.6
 
user895378
@Danack doesn't the newer one? I know @padraicb submitted patches for that
 
user895378
@DaveRandom somehow I totally didn't see this message
 
oh, I'll check again. The version I'm using certainly doesn't mind when I redirect packagist in my hosts file.
 
user895378
9:09 PM
I don't know -- I could be wrong about it.
 
user895378
In any case, I've finally got a hold on the proxy stuff. Should have something totally usable by the end of the weekend. Then it'll just be a matter of rolling more tests.
 
user895378
The proxy functionality is a huge step. Before that you basically couldn't use it at work because everyone at a company of any size has to go through an http proxy.
 
user895378
It will also allow me to hook artax up to the aerys server and roll a standalone PHP web proxy that's trivial to deploy :)
 
nm
 
btw @rdlowrey can you point me in the direction of an example of how to do async downloads to file without blocking or using huge chunks of memory in Artax? The "stream response body" example blocks on stream_get_contents(...) right?
 
9:16 PM
Is there a specific way to acces POST vars from FastRoute?
 
user895378
@Fabien No because FastRoute has nothing to do with POST data.
 
Furry
 
user895378
It only deals with the HTTP method and the URI.
 
user895378
@Danack Yes it does block. Problem is the old version doesn't implement non-blocking filesystem operations at all (because PHP doesn't have any). The next thing I have to do is implement non-blocking support for that using the php-uv extension. So you'll need that installed if you want non-blocking filesystem things inside artax (not yet implemented).
 
user895378
I'll also implement a version of the same code that uses my Amp lib so you could also do it if you have pthreads installed.
 
9:18 PM
So, earlier I was on tpb and instead of the usual random porn popups I got a popup of vube.com/vote/Gianna+LePera/bIx4rJJHjN?n=2&t=s and I have spent the afternoon lost in the videos on that site
 
@DaveRandom Wonder what verification they have that the uploader owns the content.
 
Well it seems to be almost exclusively people uploading videos of themselves as far as I can see
 
@rdlowrey So at the moment, I would need to do something like $reactor->onReadable ...read from connection/write to file?
 
user895378
@Danack Nope. It's not even possible that way because file system operations simply don't play nice with non-blocking. The only way to do non-blocking filesystem things is to introduce threads into the equation. That's what my Amp lib does in userland and it's what libuv does (in a far more performant way).
 
(note that you can do that, but the fs writes will block)
 
user895378
9:25 PM
Well the file descriptor will always report as writable so it's totally useless anyway.
 
user895378
@Danack what needs to happen is the addition of an interface to buffer body data as it arrives in response bodies that can be injected into the message parser (where body data is processed). By far the best way to do this is with libuv via the php-uv extension.
 
Yeh it's great that article, I have read it at least 10 times
 
user895378
Me too :)
 
For once, it's actually easier to do non-blocking writes on windows than anywhere else
(at the C level, anyway)
 
9:30 PM
Ok, but I can just read off the newly available data from the response and append it to the file, and although the individual writes will block, they won't take too long and will allow the other downloads in progress to be processed 'reasonably' in parallel?
 
user895378
@Danack yeah, it's not something you'll be able to notice unless you really need max performance. It's more a theoretical slowdown than an actual problem in a client context.
 
user895378
And that's what currently happens anyway.
 
user895378
The response body data as it arrives is stored in a php://temp stream.
 
Of course that depends on the volume of concurrent dls and how good your HDDs write caching is
 
user895378
It's only buffered at the very end if the buffering option is enabled because noobs think everything is a string.
 
user895378
9:32 PM
@DaveRandom true.
 
@DaveRandom TCP/PIGEON vs SSD
 
yeh writes to an SSD are almost non-blocking anyway
 
ietf.org/rfc/rfc1149.txt bandwidth is fine, latency is not so good.
 
user895378
If PHP uses libuv in the future then we could do real non-blocking IO for everything in the language in a cross-OS way. And signal handling. And other things. Across OS. It would really make PHP a real language for real systems programming.
 
free built-in async DNS as well
 
user895378
9:34 PM
free built-in async everything \o/
 
user895378
We cannot let the next major come out without it being built on libuv.
 
does the libuv DNS resolver respect the hosts file, btw? Been meaning to find that out for ages
 
user895378
No clue.
 
good morning night
 
@DaveRandom oh, and have you decided on the new caching interface?
 
user895378
9:36 PM
I'm going to take a break and do something non-productive. I'll catch you guys later or on the flip side if you're not around because E_OTHER_SIDE_OF_OCEAN
 
@rdlowrey hehe, have fun
 
nn daniel
 
@Danack I'm about to start pissing around with the whole generic resolver interface thing now, so no but hopefully by the end of the weekend
It is finally cloudy/raining and the temp has dropped to a level that allows me to think straight
 
@DaveRandom cool. My router definitely falls over when I make too many DNS requests, so caching them would be good.
 
I do not deal well with hot weather, I have spent most of today melting into the sofa
@Danack ...buying a better router might be a plan
Or just talk directly to internet servers
lulz, one of the many php storm projects I have open is called "mysqli is shit"
 
9:42 PM
@DaveRandom As I said before, I am not entirely joking when I say GCHQ are fucking up the router. Using 8.8.8.8 the DNS query requests go out fine, but the router seems to not send them back to me.
 
namespace MySQLiIsShit;

class SlightlyLessBollocksMySQLi extends mysqli
{
@Danack That's odd, see if you have an ALG you can turn off
@Danack what router is it?
In my experience, application layer gateways do nothing but break stuff
The problem with anything based on UDP however (from a firewall router's PoV) is that it's stateless, so it can be difficult for a stupid router to figure out which UDP packets to pass and which to block, and which internal host they should be routed towards
 
@DaveRandom It claims to be a "Huawei HG523a". And everything is turned off that can be turned off .... i probably should just get a decent one, but tbh it may also be my mac. I see the similar problems with other peoples wifi as well
 
@Danack You have your DSL username/password?
(so it would be easy enough to replace it)
Or, more to the point: what ISP?
 
@DaveRandom Talktalk, and yeah the username/password is around.
it's more a case of procrastination rather than anything else.
 
9:56 PM
@Danack If you haven't sorted one by phpnw I'll give you one, I have a spare Draytek 2820 chucking around somewhere
 
@DaveRandom cheers.
 
I really need to sort through my piles of random crap. I have loads of ebay-able stuff in the cellar
 
Work out the value and decide if it's worth the time. Otherwise just charity shop it.
Or hock it at PHPNW :P
 
Most of it's phone systems and phone system peripherals
 
10:03 PM
> ...Last year we submitted one of our projects to the SensioLabs team for evaluation, the client wanted to find out if we were following all the Symfony2 standards since he had enterprise ambitions for his project.
hahahahah enterprise ambitions
 
/**
     * Class construct
     *
     * @param Logger      $logger
     * @param UserManager $userManager
     * @param Mailer      $mailer
     * @param Templating  $templating
     *
     * @DI\InjectParams({
     *     "logger"       = @DI\Inject("logger"),
     *     "userManager"  = @DI\Inject("my_project.user_manager"),
     *     "mailer"       = @DI\Inject("Mailer"),
     *     "templating"   = @DI\Inject("templating"),
     * })
     * @return void
     */
srsly enterprise
 
jesus
 
God
 
yes ?
 
lulz
 
10:05 PM
lol
 
:P
Found something to do @tereško?
 
electricity is back
 
Hornets are scary things. Crazy big.
 
for fuck sake
 
10:10 PM
@Fabien Yeh, I'm more concerned about where CNN thinks Hong Kong is...
 
@DaveRandom MURICA FCK YEAH!
 
Close enough :P
 
for waht ?
 
What, Earth? :-P
 
Hong Kong does a lot of development in Africa. Ghost towns.
 
10:12 PM
...that's South America
 
Close enough
 
:-P
 
Pretty distorted looking SA tbf.
 
What do you guess is a realistic date of phpng release? Performance seems pretty impressive but it looks like it will take years to actually release it.
 
@MartyIX The numbers being banded around are between 18 months (which is the regular PHP release cycle, and would make PHP6/7 the next release after 5.6) and 2.5 yrs (which I personally think is more realistic)
At the moment, master is badged as 5.7
phpng will be 6/7.0
Nothing is set in stone at this point though
 
10:20 PM
I see. Thanks
 
user1804599
I see tanks.
 
Even accepting it as the new base still hasn't been RFC'd, although that's pretty much a given at this point
 
user1804599
> UserManager
 
@rightfold You live in Gaza?
 
user1804599
Nein!
 
10:22 PM
Why do we typically post as JSON rather than submitting it like a normal POST from a form?
 
@PeeHaa We need a better one, definitely
 
@Fabien When doing what?
 
RESTful API
 
oic
 
@DaveRandom It seems a little bit slow to me. And I wonder if it is because it is that hard to implement the new features or there is not enough contributors.
 
10:23 PM
well it has stronger semantics, for one thing
 
user1804599
Because generating JSON is just json_encode and for generating form-encoded POST data you have to read the documentation. :P
 
@LeviMorrison Awesome. Are you willing to do some peer reviewing / sanity checking / telling me I am an idiot once I worked on it again?
 
@MartyIX Well the release process itself dictates that it would be at least 18 months, 5.6 is not even out yet. But remember that PHP.next is not just phpng, there is a lot of other work that has been suggested (very little of it has formal proposals yet), a lot of which requires a complete rewiring of the guts of PHP
 
Pretty much
 
10:28 PM
@DaveRandom technically the process says 12 months
It just always turned out to be more like 18 :)
 
@DaveRandom Yes, but the release process was certainly not chosen arbitrarily. There had to be reason to choose this period.
 
Oh does it? I though it actually stated 18 mths
That document is so insanely boring I have never managed to make it all the way through
@MartyIX There is no official timeline for PHP.next
It would be best described as "embryonic" I think
 
My estimation is 2 years
With just phpng we could make it in one, but as we want to change other stuff as well...
 
I personally think that's optimistic, but it's more realistic than the 12 mths someone suggested at one point
 
So really for a REST API you check the method to get your action but really the body defines the data you work with?
 
10:32 PM
@Fabien No. Sort of, but not as a generalisation.
 
@NikiC I wonder, is there a lack of contributors for php-src?
 
@NikiC I'm probably being dumb - did you mean I should CC a CVS list the other day? Because I can't see a list on php.net/mailing-lists.php
 
@MartyIX A lack, no, but more are always welcome ;-)
 
@MartyIX I'd say there is a lack, but I don't think it would go out much faster even with more contributors.
@Danack No, I was saying that you cc'd the cvs list and that's why I didn't read the mail (I usually just click through the cvs stuff ^^)
 
@DaveRandom github.com/php/php-src - There is 188 contributors. It certainly does not reflect reality but it can be used to make a picture.. It does not seem very high number to me.
 
10:38 PM
Hi, know someone, it's possible to send contactform data via ajax but all in one file?
 
@MartyIX As I said, more are always welcome ;-)
 
@m_73 Yes it is possible. Yes it is horrible
 
@NikiC Thanks. And one more question please. I wonder if Facebook provides some patches to PHP or it invests programmers' time only to HHVM.
 
@MartyIX Nope, Facebook doesn't provided patches for PHP
 
@PeeHaa How do you retrieve the request body from a posted request?
 
10:41 PM
@NikiC This is what does not make sense to me. Facebook would benefit from putting some effort into improving official PHP version..
 
@Fabien file_get_contents('php://input')
 
@Fabien file_get_contents('php://input')?
Does not work when $_POST has been populated IIRC
 
@MartyIX It's almost as if they see it as a commercial advantage to have control of their own version of php.
 
or it might just be for multipart/form-data
 
Hmm, I guess I asked the wrong thing. I am sending a request with artax to my API. Method is POST and body contains JSON. When it lands on my API how do I get that body?
or i misunderstand the answer :P
 
10:44 PM
The raw POST body is returned by file_get_contents('php://input')
 
@DaveRandom Well, I continually lose my drive for programming so it won't certainly be me. :-(
 
var_dump(json_decode(file_get_contents('php://input'), true));
 
@MartyIX How do they benefit?
 
Oh I see. That's the standard way of getting it?
 
Yes
There is also $HTTP_RAW_POST_DATA but that is not prefered
 
10:46 PM
@PeeHaa why horrible, i'm at the moment forced to do something like this because i can't get save receipt mail in the php file. Do you know any solution because i can get recepient mail only in that file where i have form?
 
God I hate this keyboard
 
@PeeHaa or guaranteed to exist, iirc
 
Exactly
 
So if these things are JSON based. Doesn't that make it more awkward for a web sapi to contact my API? I mean a form wouldn't suffice for sending something to it for a result.
 
@m_73 Cramming all that logic and presentation in the same file is going to end bad
 
10:47 PM
@NikiC Maybe code reuse. More contributors for their open source projects. Maybe costs of hiring new people.
 
@Fabien Not at all. It's how I like my APIs
 
@PeeHaa Yeah :D
 
@Fabien It's not about making it easy, it's about having stronger semantics in the data
 
Understood. Thanks.
 
And if I need to test it I always have requestable.pieterhordijk.com @Fabien
 
10:48 PM
@PeeHaa I'll be doing that when it's not local :)
 
@PeeHaa exist any way to transfer safe recepient mail in the php file?
 
@Fabien There are also browser plugins that let you do stuff like that btw :)
 
@Danack They certainly have more freedom as for what to do with the language. They can experiment more. And fine tune the language for their exact needs.
 
@LeviMorrison Great
@m_73 Explain what a "safe recepient mail" is please
Damn the combination of a crappy keyboard and being somewhat intoxicated is terrible for my writing / typing skills
 
@PeeHaa in the file where i have form i can get email from "recepient (receiver)", how can i use this mail in my php file for email?
 
10:52 PM
Cheers @PeeHaa
 
@m_73 When you say email do you mean emailaddress?
 
@PeeHaa yes, sorry :(
 
With there was more 24 hour stuff in our city. By more I mean at least 1.
 
@m_73 Can you pastebin your form?
 
@PeeHaa form is not the problem, i need there only 3 fields, (name, subject, message), the problem is if i create new php file where i put post for this fields, how can i get receiver email adress because i can get receiver email adress only in the file where i have form...
 
11:00 PM
How are you getting the receiver email address?
 
@PeeHaa i use joomla ant this is k2 item, so i get email adress from a k2 extra field
my form is very simple: prntscr.com/46o61u
 
Normally you would simply get the values you need using $_POST['name_of_the_field'], but considering it is joomla you probably have to do something magical like Joomla::hugeServiceLocator->get('specificThingIWant')
 
That moment a critical piece of information makes you regret getting involved :P
 
^ that
:)
1
A: joomla get post data

Irfan$sth is empty because there is no variable like team1_goals_players in the form.You must try like this- first get jform and then read team1_goals_players from jform. $post = JRequest::get('jform'); $sth = $post['team1_goals_players']; More about JRequest.

@m_73 ^
 
@Fabien Saturday night sucks for that in this country
I live walking distance from a 24hr Tesco, it's still closed now
 
11:06 PM
@DaveRandom Yeah. 24 hours except the weekends. How's that make sense.
 
Stupid Sunday trading
 
2 am is the best time for a grocery shop too.
 
Actually 5am is better
 
Why the fuck would I write something like this:
                var originalContent = contentContainer.html();
                var originalHeight  = contentContainer.height();

                contentContainer.height(originalHeight);
?
 
The shelves are stocked by then
 
11:10 PM
@PeeHaa that .....seems to be something I may have done also. Triggers a content redraw?
 
@PeeHaa Because that makes the height explicitly set on the element?
 
Hmmm let me investigate
 
.height() will get the rendered height if there is no explicit height IIRC
 
something something Chrome being shit and not having calculated height correctly to start with?
 
Aaaaaaand the cookie goes to:
Damn you no one boxer :(
Chris Wright!
 
11:13 PM
#.jpg
\o/
 
Basically I replaced content, but wanted to keep the height to prevent jumping boxes
 
makes sense
btw, IMO you should name vars that contain jQ objects prefixed with $
Very much personal pref though
 
I do that
    var $replyToggler = $(this);
    var $span = $replyToggler.children("span.toggle-text");
Just not there for some reason
 
5am I am asleep and not craving some arbitrary snack though.
 
@Fabien Yeh, many lives ago I did .com picking at Tesco
We started at 5 for that reason
 
11:16 PM
I'm also really considering dropping the jquery stuff entirely in my main theme. Fuck other people who want jquery. Go create your own theme. This shit is fucked
 
@PeeHaa I try to avoid is as much as possible. Chibi is a decent library IMO
But my opinion isn't exactly highly valuable for JS especially :P
 
> Of course you don't because that's an asshat move and you're no asshat.
Like it already
Although whether I am an asshat is highly subjective
4
 
heh
 
19K REP JUST ISN'T ENUF!!!!! I NEED MOAAARS!
Cool - glad to help. Please remember to upvote and mark accept my answer if it has helped you :) — The Shift Exchange yesterday
 
@PeeHaa (without looking at content) Moderate rep whoring is acceptable up to 20K, and unresolved questions are OCD unfriendly
Up to 20k you still have something useful to gain
@PeeHaa Not too badly. I objectively think you would make a nice hat for my ass.
 
11:25 PM
Yeah, but the begging for upvotes / accepts is what annoys me. It looks co commanding to OP to accept the damn answer
 
@PeeHaa welcome to stackoverflow
 
@DaveRandom Boy are you going to have a fun time when I arrive in the UK! :P
@HamZa :(
 
@PeeHaa Yeh within 5 mins of answer is a bit wanky. But the tone of the comment is not too beg-ish, I think that's on the edge of acceptable but still just about within limits. And very low rep users a) may not know how the site works and b) may be hit-and-run accounts (although in the latter case, probably shouldn't answer the question)
@PeeHaa btw have you booked flights/hotels yet?
 
I'm okay with my 400 rep. Enough so you ass-cactuses can't down vote me out the chat room.
 
11:31 PM
I have booked the Fri off work, I can come pick you up from the airport if you want, which will be more necessary if you are coming in to Liverpool than Manchester, Manchester airport has trains to Picadilly every 10 mins or something
Although I'll still come and get you for early drinking if you want :-D
 
DaveRandom->DaveSamaritan.
 
Joe is crashing at mine but I guess he will be driving up
 
Dunno why he'd drive. Flying would be way more convenient and potentially cheaper.
Then again with Joe's luck I'd probably drive too.
 
@DaveRandom Nope. Will start looking next week
 
I hate flying internally in the UK, I feel like an environmental dick
 
11:32 PM
@Fabien lol
 
You can almost spit from one end of the country to the other
 
@DaveRandom Yeah sound nice
 
@PeeHaa IIRC when I looked into it flying from schipol to liverpool was the cheapest way by a very large margin
 
@DaveRandom Well there's always the train :p
 
I'm still undecided on the hackathon, I'm not sure I can be arsed but it also might be a good way to avoid being too hung over on the Sat
 
11:35 PM
Hackathons have never been appealing to me.
Time limited building and all.
 
For me it all depends what the project is
 
Build a hack to hack the other hackathon parties laptops. Instant win.
 
@DaveRandom Sorry. I only hear you say beer
:P
 
@PeeHaa If I end up leaving fab cafe at 6am again I will not be impressed :-P
Every time I go in that place I seem to be there until they chuck out
 
:-D
 
11:38 PM
And then McDs always seems like a good idea
 
My cafe?
 
@Fabien Yeah we're going to wreck your place :P
 
It's not even that good
 
Well the name clearly sucks.
 
it's a proper nerd bar
They have one of the original Fireball XL5 models hanging over the bar
 
11:39 PM
ooh fire alarm
not ours
 
and they have a load of classic arcade games
They also have some original 60s Dr Who props
But the beer is crap and it's generally a bit of a dive
 
@DaveRandom <sub><sub><sub>I had to look up what that is</sub></sub></sub>
 
I'm not sure where I'd take someone who's used to drinking good beer
 
All your beers suck
 
@PeeHaa Yeh it's probably more english than I think
 
11:41 PM
Weird. building fire alarm just went off for about 2 minutes. Stopped now.
 
@PeeHaa Meh, we'll just go to the wharf where they have hoegaarden on draught
Or brew dog where they have all kinds of crazy shit
@Fabien Fire burned the bell
 
heh
No one really reacts to fire alarms anyway.
 
Who will be attending PHPNW that I know / from room 11?
Was @Danack also going?
 
@PeeHaa yes.
 
Danack, JoeWatkins, Jimbo, ircmaxell that I know of
Maybe salathe if he pulls his finger out
 
11:44 PM
Ow kewl
@salathe pull your damn finger out would ya!
 
Also I imagine Derick will be there if you want to punch him in the face
(I don't recommend this, he's actually a really nice guy)
 
ocramius might be coming I think? Though possibly a scheduling conflict.
 
No he's doing zend training that w/e
igorw will be there I imagine, he usually is
skoop is doing a talk, edorian is giving a keynote
edorian gives really really good talks and is generally a top guy
 
Could've swore there was more.
 
I think we need to press-gang @rdlowrey into going
 
user895378
11:49 PM
to phpnw?
 
Yes
 
user895378
When is it
 
oct something
 
first w/e of oct
 
3rd*, 4th & 5th October
Manchester, UK
 
11:51 PM
Also, aren't you supposed to be out drinking or sth @rdlowrey? :-P
 
He's too busy buying a PHPNW ticket.
 
user895378
It's only 7:50pm, but I'm staying in tonight anyway. Feeling a bit under the weather so I'm going going to hotbox some artax code.
 
He better be
 
user895378
Unlikely -- my sister's wedding is the weekend before that. Not sure I'm up for another trip the next weekend
 
user895378
Is there only one PHPNW per year? It seems like I'm hearing about it constantly
 
11:53 PM
Yeah. It blew up this year it seems.
 
user895378
I've got a better idea. You hacks come over to this side of the ocean for a conference :)
 
Beer is probably worse over there though.
 
I would very much like to do that but since I can barely afford to pay for the tram to work it's unlikely to happen any time soon
The cost of transatlantic air fares is ridiculous
 
user895378
It kind of is right now. Seems like it used to be a lot cheaper.
 
Save yourself some money.
 
11:57 PM
That is one of the best things I have ever seen. Like, ever.
 
user895378
Okay, I lied. Drinks are happening. Have a nice evening gentlemen :)
 
Later @rdlowrey
 
:-P
nn
 

« first day (1379 days earlier)      last day (3573 days later) »