« first day (2104 days earlier)      last day (3070 days later) » 

20:01
@DaveRandom try using twitter instead.
3
I love this room, its stars are like my daily soap opera
Except it has limited intelligence
@PeeHaa that was so hard to do. Never again.
Anonymous
@Jimbo haha xD
Anonymous
20:11
@DaveRandom downrightnow.com/twitter looks unstable atm
@Jimbo Well, this is the PHP room after all. What did you expect?
@Machavity Interesting pitfall…
@Machavity lol
Generally: beginning the match with a repeat quantifier on short string on potentially long data is bad…
@FlorianMargaine :P
20:15
@PeeHaa also… why does that web application not just use Aerys? :-P
@bwoebi Which one?
@PeeHaa that nntp thingy
Because it was originally kinda a fork of externals.io
ah, mhmhmh
I'm kinda already waaay past that though
20:23
@Machavity Using atomic grouping would have helped, too: (?>\s+)$
@JayIsTooCommon i bet the #freenero brigade are ddosing them
> The malformed post contained roughly 20,000 consecutive characters of whitespace on a comment line that started with -- play happy sound for player to enjoy. For us, the sound was not happy.
@kelunik no, it wouldn't.
Atomic grouping only helps preventing repeated tries at the same starting anchor
in this case though, the starting anchor is always advanced by one single space after each backtrack
@kelunik what'd help would be usage of (*SKIP): \s+(*SKIP)$ \cc @Machavity
user924016
20:42
ey guys
user924016
do many of your searches end up in the incogito tab due to strange phrases
Bobs-MacBook-Pro-2:amp bob$ time php -r 'preg_match("((?>\s+)$)", str_repeat(" ", 20000)."a");'

real	0m0.432s
user	0m0.399s
sys	0m0.012s
Bobs-MacBook-Pro-2:amp bob$ time php -r 'preg_match("(\s+$)", str_repeat(" ", 20000)."a");'

real	0m2.916s
user	0m2.880s
sys	0m0.018s
Bobs-MacBook-Pro-2:amp bob$ time php -r 'preg_match("(\s+(*SKIP)$)", str_repeat(" ", 20000)."a");'

real	0m0.071s
user	0m0.049s
sys	0m0.012s
Bobs-MacBook-Pro-2:amp bob$ time php -r 'preg_match("(\s++$)", str_repeat(" ", 20000)."a");'
@kelunik ^
Anonymous
@DaveRandom yeah I bet, bloke sounds like an ass
I am having trouble. I get a WebKitFormBoundary with 302 Status Code whenever I try to post a file in a multipart form.
@kelunik Atomic groups or possessive quantifiers do it in O(n^2) (n = sizeof string); the naïve version in O(n^3) and with (*SKIP) in O(n)
21:07
> This regular expression has been replaced with a substring function.
We've read. It's also the way to go… just saying what regex can…
@JohnAldrin what is the problem with that? en.wikipedia.org/wiki/Post/Redirect/Get
@bwoebi Reminds me of kleargear.com/1474.html
[because someone was not recommending the optimal regex solution]
@Danack I'm stuck. This is the response from the server: Payload: fo252ZMK5tETEw81wwa0sUHJANPeM5Zmc3MIDXnP
------WebKitFormBoundarym2udrgTC6oNTaPIa
Content-Disposition: form-data; name="inputFile"; filename="sample_image.jpg"
Content-Type: image/jpeg
I am trying to upload a file, but it doesn't get saved. I research about what 302 is about and it says that: The target resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client ought to continue to use the effective request URI for future requests.
@JohnAldrin I'm not sure what that means. But getting a 302 status response is kind of normal when POST'ing something. Check the other headers - one of them is likely to be a Location header.
21:13
Which, I don't understand. Because 1. I am not trying to redirect to anywhere and 2. The expected output from the server is a simple boolean
yes, one of them is a location, but I am not trying to redirect back
You're not trying to redirect anywhere - but the server is.
If you're using CURL, set the option to follow locations...
I am not using CURL. The back-end is written in PHP (Laravel Framework) and I make the request using jQuery
Then try telling whichever library you are using to follow the location header, to get the final response.
RT @DannyTanner "Gave my cat some catnip and he's been laying like this for 2 hours https://t.co/FqoEd0rgqQ"
21:24
@AnmolRaghuvanshiVersion2.0 That's a python library?
The answer I'm looking for will be specific to the library I'm using....it's bespoke stuff, rather than generic json schema stuff.
Yes. What I thought I could do was use the PredefinedArray retriever to just list all of my schemas in one go - but it just doesn't seem to work.
Or at least I can't get that to work with it finding references from one schema to another via names like "#/definitions/pagination" - it tries to interpret "#/definitions/pagination" as a URI and then borks up.
Anonymous
Hahahha xD o/
Ekn
Ekn
o/
Wes
Wes
21:35
\o
Ekn
Ekn
err, so... I was born today. cheers to cold beers everyone
11
oh really
happy birthday
:)
@Danack le me try once then i tell
Wes
Wes
happy birthday! :D
21:37
@Ekn Happy birthday
@Ekn did you come to turkey?
Anonymous
@Ekn happy birthday dude! \o/
Ekn
Ekn
thanks :)
not yet @AdilIlhan still have two weeks to spend here
so... are you gonna treat us a coffee, birthday boy?
Ekn
Ekn
:D
well, I got bourbon to share, but TCP/IP is still not that capable :p
21:42
@Ekn well, then send it over another protocol built upon Ethernet/MAC
I thought you're going to send it through UDP
Ekn
Ekn
heh :D
please send it through osi layer 1
:p
Ekn
Ekn
lol
I'll just leave this lady and the huge bottle here for all
3
cheers then
21:51
@Ekn happy birthday!!!111
Afternoon.
Morning.
I'm back from a 10 day or so vacation.
afternoon LeviMorrison
must have fun, eh
Wes
Wes
21:56
hey Levi \o wb
@LeviMorrison Did you go somewhere or just chill out ?
I went somewhere nearby, but also did a LOT of home improvement.
Really vacation was only like 2 and a half days.
The home improvement was why I haven't really been around ^_^
You should have done PHP improvement instead… (nah, just kidding…)
Wes
Wes
DIY stuff is very relaxing tho, no?
Time to get your 7.2 feature development on
21:59
Ugh
a branch more to merge up
Don't be a slacker.
IN MY DAY, WE DID THAT SHIT USING SUBVERSION
@Sara That's not about slacking off, but coding performance!
@Sara good that you're too young to have used CVS much.
@Sara And you liked it ofc?
@Sara Hello, enums, my old friend.
@LeviMorrison :-)
22:01
@bwoebi Nah, I predate the CVS->SVN migration, but we weren't so good about branches back then.
@Danack Hells no. GIT FOR LIFE
user924016
4leif
The ONE THING Linus Torvalds ever did that was useful to anyone.
@Sara yeh, life would be much better if there were only MacOS and Windows as major OS…
Or, ya know... BSD... Solaris...
SCO...
Outsiders nobody uses!!!
22:04
ahah so cute
I think Linux is amazing. I do think git is his greater accomplishment, however.
((I am kidding about it being "the only thing useful he ever did", for the record))
@Sara ugh solaris
NOBODY UNDERSTANDS MY SENSE OF HUMOR!!!!
The only reason Solaris exists is to generate build system bug reports for all other projects
22:06
That's what all the Solaris users say
@Sara Sure we do. You just don't understand our humor countering your humor.
@DaveRandom Both of them?
lol :-P
@Danack Oh, there are two?
@bwoebi You just blew mymind, bruh...
22:07
@NikiC heh
that reminds me when someone at IBM gave me access to an AIX machine to test libuv stuff on it
I didn't know AIX existed before that day
@FlorianMargaine You're involved with libuv?
@bwoebi I've been, briefly
i.e. I sent a couple of PRs
@Sara I like that gif…
22:25
@Trowski any reason CoroutineResult shows up under Internal? I thought it were public API…?
oh… it's Coroutine::result() now
@Danack may be releated do we need this github.com/justinrainbow/json-schema/issues/279 JSONpath implementation
23:00
@bwoebi It's a popular one at FB for putting on diff reviews when someone either writes amazing code, amazingly BAD code, or notes something completely unexpected in a review.
@Sara there are people hired at fb who write amazingly bad code? :-D
@Trowski is there any reason the UvLoop still isn't in master? (in amp/loop)
@bwoebi Yep, I hid the detail behind Coroutine::result(). Avoids a use statement that would have to be removed later. Also if we come up with something better for resolving coroutines then code will not have to change.
fine
@bwoebi To be honest I don't much care either way, it's going away anyway. :-D
5 mins ago, by bwoebi
@Trowski is there any reason the UvLoop still isn't in master? (in amp/loop)
hmm?
23:12
@bwoebi It was segfaulting and I hadn't figured out why yet.
If you want to tackle it, be my guest.
@Trowski Segfault? Where? In shutdown sequence?
@bwoebi After some number of tests. It wasn't obvious which test was causing it, as it seemed to depend on which tests preceded it.
can anyone think of a way i could only allow access to a website from in the office? i.e. employees couldn't access the website from home?
@Trowski I recently encountered a segfault in uv which I was unable to resolve after multiple hours of debugging :-(
note, we have a dynamic ip
23:23
@Petah sure, put it into the same vlan…
but be aware that any employee could install a trivial VPN and access it via the tunnel…
hmm, any other ways that would do it on a per user basis? as in they can get to the front facing pages, and login page, but it doesn't allow them to login?
@Trowski I've just pushed github.com/amphp/file/compare/amp_v2
I'm missing the UvLoop though (thus tests don't pass)
Thus tests are passing for 5.5 and 5.6, but not 7 (using uv)
@Trowski are you aware about this PHP 7 only failure? travis-ci.org/amphp/amp/jobs/145928548#L631
I'm not going to debug ext/uv anytime soon though @Trowski … I expect to need many, many hours for it, ideally without interruption; time I currently don't have.
I.e. not in the next 30 days at least; after that I may have much more time.
Feel free to take a stab at it whenever you get more time / ask devs familiar with libuv to take a look if it's not a problem directly related to the PHP binding

« first day (2104 days earlier)      last day (3070 days later) »