« first day (2281 days earlier)      last day (2682 days later) » 

1:01 PM
@PeeHaa We still don't have a Grafana dashboard, no?
 
Has anyone ever gone through this?
Looks like an overkill for refresher (CS major)
 
nope we don't
 
@iroegbu I don't think it's supposed to be a refresher
That is actually a pretty good resource, deserves a star
 
    public function &offsetGet($offset) {
	//private $jsonContent = [];

        if (is_null($offset)) {
            $index = -1;
            //php.net/manual/en/language.types.integer.php We only care about decimals though
            //[1-9][0-9]*
            //| 0

            foreach($this->jsonContent as $key => $value) {
                if( preg_match('~[1-9][0-9]*|0~',$key) && ($key > $index) ){
                    $index = (int) $key;
                }
            }

            $index++;
Does this look like a correct implementation for ArrayAccess::offsetGet($offset)?
I want to support direct and indirect references
 
Can we change the lexer to prevent whitespace between the & and the $ please
@bassxzero That looks completely nuts, no idea what you're trying to do there
 
1:17 PM
@Leigh what part is nuts?
Have you implemented ArrayAccess before?
 
Sure, firstly, what are you doing to get a null offset?
 
$array[] = 'value';
 
that actually does a call to offsetGet? ok
 
Connection to tcp://nevis.krakjoe.ninja:80 failed: timeout exceeded (30000 ms)
 
1:20 PM
If that is a question then yes
 
@bassxzero Ok, I recommend tracking the index during set/unset, not calculating it on every get
Your regex will allow some funky stuff to happen. A key of 'abc1' or '-1' will match
Why are keys not sanitised on set?
And are you sure you want references?
(if the values are objects, then you don't need to be explicit about it)
 
references are the only way to support $array[]['first']['second'] = 1
 
ew
 
HTTP/1.1 200 OK
Server: nginx/1.10.0 (Ubuntu)
Date: Fri, 13 Jan 2017 13:27:06 GMT
Content-Type: text/html
Last-Modified: Wed, 28 Dec 2016 14:14:53 GMT
Transfer-Encoding: chunked
Connection: keep-alive
ETag: W/"5863c8dd-264"
Content-Encoding: gzip
 
1:27 PM
@PeeHaa Can I haz access to set it up?
 
The regex is calculating the next available place where a value can be inserted. 'abc1' and '-1' will not match because the $offset does not equal null
 
Connection to tcp://nevis.krakjoe.ninja:80 failed: timeout exceeded (30000 ms)
 
I really hate networks ...
 
I can't track the index during because $array[]['something'] = 1 doesn't call offsetSet()
 
1:28 PM
@bassxzero that statement doesn't make sense. If your $jsonContent property ends up with a key of 'abc1', it definitely will match that regex
 
evening room
 
@bassxzero That is horrible. Don't write code like that. That to me looks like "probable bug"
 
abc1 matches [1-9][0-9]*|0 ?
I don't think so
 
Try it
You're missing start/end anchors
^[1-9][0-9]*|0$ is probably what you want, but if your keys are numeric why don't you actually use ints
 
Anonymous
1:33 PM
HEY!
 
Anonymous
@JoeWatkins Don't you ever do that yourself!! We're better than that now
 
Thanks. I added the start/end anchors. The array is not always numeric. The class supports mixed indexes
 
@JayIsTooCommon ha
 
Connection to tcp://nevis.krakjoe.ninja:80 failed: timeout exceeded (30000 ms)
 
wouldn't let me repeat message ...
 
Anonymous
1:34 PM
oh ok. I'll stop shouting.
 
I dunno what's up with it and I'm bored of trying to remember numbers ...
 
@Leigh that only matches "starting with 1-9" and "ending with zero". :P
 
@Leigh @Jeeves @JoeWatkins I'm not sure if I'm answering your questions correctly, but actually PHP does have an "AST making framework" that works. github.com/asmblah/uniter
 
@PharaohTools I don't know. You don't what love is?
 
@Jeeves E_MISSING_WORD
 
1:35 PM
@salathe Nowhere man, the world is at your command!
 
haven't even got switch in yet, and no port for server management ... grrr ...
 
You can basically write your front end code (to be parsed in the browser) in PHP. You have access to all of the expected JS objects, but access them in PHP syntax,
 
and neither ip is responding to pings for some reason ...
I'm going out to stuff my face with burgers
</rant>
 
@Jeeves am I on the outside of an inside joke with that one? idgi
 
@PharaohTools You mean what do I look like?
 
1:37 PM
@Jeeves you look like elephant. :D
 
@Linus Nu uh you look like a brain.
 
@Leigh anything else?
 
Anonymous
@PharaohTools he's a bot :)
 
oh, no I'm not because I'm being pestered for stuff ... what happened to fridays man ...
 
Is this a riddle? Is the answer a troll?
 
1:39 PM
@JayIsTooCommon lol
 
Anonymous
:P
 
Ahhhhhh :)
 
@Jeeves oh, I see you like the Beatles now?
 
@Gordon No, I love the beatles.
 
@Jeeves What's your favorite song?
 
1:47 PM
@Gordon I like Yellow Submarine.
 
Anonymous
hm, the api must also have session memory
 
Anonymous
@Jeeves what is my name?
 
@JayIsTooCommon 42
 
Anonymous
@Jeeves My name is Jay
 
@JayIsTooCommon I know. You just told me that.
 
1:47 PM
@Jeeves Good choice. I like Octopus' Garden.
 
@Gordon Thank you :).
 
Anonymous
@Jeeves What is my name?
 
@JayIsTooCommon 42
 
Anonymous
@Jeeves Thanks.
 
@JayIsTooCommon You're welcome!
 
1:49 PM
(oh btw, thanks r11, I finally took the decision to change jobs)
8
 
Anonymous
\o/
 
Anonymous
What have you gone for?
 
a job @Jay, just said that ... listen dear ...
 
@JayIsTooCommon I don't know, it's just a project for the moment
 
Anonymous
@JoeWatkins :B
 
1:50 PM
I'll have a look on SO jobs
If I can get a remote job, that'll be extra
So I can stay at home and take care of my SO
 
sorry ... Jay will cleanup in a minute ...
 
Anonymous
@Trucy :P Good luck
 
Anonymous
@JoeWatkins go wild :P
 
I ... don't trust it ...
 
1:51 PM
@JayIsTooCommon Thanks! I hope I'll find one easily
I have a master degree I think plus 3 years of experience, so it should be ok
 
someone with a login try to bring up a shell please ? (and tell me what address it uses)
 
@JoeWatkins echo $SSH_CLIENT gives me my own IP, right?
 
urm urm ...
not sure ...
 
SSH_CONNECTION=... 192.168.2.251 22
 
that's LAN, I wanted WAN ip (sorry, unclear)
 
1:54 PM
How do I find that one?
 
urm urm ... I dunno ...
probably on your machine somehow ...
 
└[5152] $ host nevis.krakjoe.ninja
nevis.krakjoe.ninja has address 109.157.248.215
nevis.krakjoe.ninja has address 109.159.6.37
 
yeah but want to know which it's using ... (think second one is not working properly)
 
Yes, the second one doesn't work when I try to ssh $ip.
 
crappy ... it's setup exactly the same as other one ... that's the second line ... maybe just need to wait for it to settle, not sure ...
 
1:58 PM
@JoeWatkins Maybe some firewall?
 
there are two ISP supplied routers connected directly to the lines, then an asus router doing the dual wan load balancing, the ISP routers have set the asus router in DMZ
 
Anonymous
@PeeHaa hahaha, i found out why git status 'failed' ..
 
@JoeWatkins Why do you even have a second line now?
 
and the server machine is in dmz of asus router which must work because you can negotiate via first line
speed, bandwidth, and reliability ... and a second line was the only way to make it go faster ...
 
traceroute's last result is:
12  * * host109-159-6-37.range109-159.btcentralplus.com (109.159.6.37)  35.119 ms
13  * host109-159-6-37.range109-159.btcentralplus.com (109.159.6.37)  34.969 ms  34.926 ms
 
2:03 PM
there are wires everywhere in here ... I've run out of plug sockets, and ethernet ports ... I'm going to have to make holes in walls and new plug sockets, and shelves ... weekend is going to be loud, full of dust ... I need a sysadmin at home ...
 
what's that nevis thing do?
 
it's a server
 
you don't say :)
I guessed that much ;)
what's it for?
 
computering :D
building and testing stuff
(has 32 cores, 64 gigs of ram, and 2tb raid0)
 
Anonymous
wtf
 
2:17 PM
and by using it, I prolong the life of my machine ...
 
Anonymous
that's a bit of a beast, your own?
 
yes, is in cupboard next to me
 
4 messages moved to Trash
 
Anonymous
@JoeWatkins noice
 
@JoeWatkins Yes, it's sad that configure is slower than the actual compile. :D
 
2:18 PM
@JoeWatkins wow
 
@JoeWatkins you what
Don't ISPs not like this stuff on a residential address?
Oh I didn't read that far up, I see now.
 
@JoeWatkins Am I doing synchronisation correct now?. The $cond property is my protection against spurious wake ups.
 
looks better
 
@JoeWatkins Ok, thanks. Also, with the removal of Threaded::getTerminatedInfo(), what is the alternative way to find out what went wrong inside of another thread?
 
none built in
 
2:33 PM
@salathe Shh I was trying to get to lunch, obviously, under normal circumstances, I would test before suggesting something :)
 
it was a flawed thing, incase wondering why it disappeared
 
✈️️ Finnair flight 666, at 13 o'clock on Friday the 13th with a 13 year old aircraft, has landed safely in HEL… https://twitter.com/i/web/status/819904788192231424
 
exceptions are nasty things to serialize, and the ability may be removed whatever ...
it's not impossible to program yourself, but without trying to serialize ex
 
Anonymous
@Leigh gotta be fake, surely
 
Anonymous
oh no, it's legit. Cray cray
 
2:39 PM
aww man lxr is down again already
 
@JoeWatkins Right, I see - thanks for the additional info
 
@Gordon adams is a little out of date, don't think it's setup to update itself ...
 
@JoeWatkins it's good enough for me. I don't need current but I see your point
 
iirc tyrael setup some monitoring, probably why he's lurking ... awaits fixed it message
 
2:51 PM
I may get around to provisioning VMs today, @Joe. Then we can have lxr11.
 
how would I join the array elements returned here:
	array_init(return_value);
	if (dbh->methods->fetch_err) {
		dbh->methods->fetch_err(dbh, dbh->query_stmt, return_value);
	}
I guess the question is how do I implode in C
 
@Gordon there is probably a php_implode function ^^
 
yeah
but how do I invoke that?
I mean I cannot do just implode(" - ", return_value) or can I?
 
@Gordon, you can indeed
 
@PharaohTools this is in C, not userland PHP
 
Anyone here have experience setting up dns with load balancing?
 
Does using AWS count? (ELB + Route 53)
 
why is the delim a zend_string but the return value a zval? why isn't it both zend_strings?
 
If there is an error it returns false.
That's usually why anyway.
 
@Gordon The string would be taken from a zval
 
3:03 PM
wow, 75 lines for glueing some strings together
 
ping @kelunik
 
@daviddan o/
 
thx
 
\o
 
3:04 PM
@daviddan Do you see the general advantage of using an accessor like Loop or would you rather want to continue with the React style of passing the loop around everywhere?
 
user895378
o/
 
@rdlowrey \o
 
I think passing the loop around is the worst part of react
 
user895378
^ agree
 
Ok, great that we all agree there.
 
3:07 PM
my concern is that this is going to be too big of a change from the way react works now
 
user895378
Inversion of control makes sense for userland things. The problem is that the event loop should exist at the language level and we're just filling a gap in the language
 
I'm guessing React isn't the JS React?
 
user895378
Right @MadaraUchiha
 
@rdlowrey Language level doesn't matter. The important thing is that the loop is your runtime / scheduler off all the things.
@daviddan But do you see the problem that might exist with allowing watchers being created outside of Loop::execute?
Or do you see it and think it's a non-issue?
 
I do if there is more than one loop. If there's only one loop, the only issue I see is that watchers that are registered might not get run when the program exits
 
user895378
3:10 PM
@kelunik right ... which isn't an argument against inversion of control
 
user895378
in particular in a long-running process passing around the global event loop is less problematic
 
user895378
it's the short-lived nature of the php web sapi that makes IoC more difficult because you have folks using front controllers where you may or may not need any given dependency
 
user895378
But I'll admit, it's still a PITA to pass it around everywhere
 
@rdlowrey It's absolutely the same situation. Lazy injection will exist and multiple loops will create subtle bugs.
 
I guess I don't understand why you would ever need multiple loops
 
3:13 PM
@daviddan How is that related? Any watcher might not be run if the program exists before?
 
user895378
@kelunik I disagree ... that's still a coder error. But you can obviate the need by establishing a standard (language inclusion of a global loop instance is a de facto standard) and this is all that the interop group is doing
 
@daviddan Yes, that one might be the biggest bugger when looking at the spec. The main reason for that is recovery after exceptions using async APIs still.
So running a separate loop in a shutdown hook for example.
 
user895378
@daviddan modal windows in a display application is the only valid use case I've ever heard of
 
user895378
But I doubt people will seriously start using php for user-facing display logic in an event loop any time soon
 
user895378
(php gtk doesn't count)
 
3:15 PM
@rdlowrey I have more use cases: e.g. running a loop in a fork where the fork happened in a loop.
 
user895378
@kelunik you can expose workarounds for that, though ...
 
user895378
e.g. by clearing out existing watchers and resetting things after the fork
 
@rdlowrey At that point it's as easy to run a new loop.
@daviddan One real code case: github.com/amphp/aerys/blob/…
 
user895378
FWIW I'm not saying you shouldn't be allowed to create multiple loops ... only that you could run a real application without ever doing it.
 
user895378
For testing it's absolutely critical to have the ability to create multiples
 
user895378
3:19 PM
otherwise you've tied an albatross around your neck if you want well-tested code
 
@rdlowrey Testing just needs multiples, not stacked ones.
 
hmpf, of course it segfaults. that would have been too easy. frigging php
 
user895378
@kelunik I see ... didn't realize we were talking about stacked :) you're correct
 
@daviddan But even without stacked loops, there's the possibility of watchers being created before Loop::execute and then Loop::execute is run with a different driver, see second argument of Loop::execute.
 
@kelunik right, but if you only allowed one loop, that wouldn't be an issue.
 
3:24 PM
@daviddan It would still be an issue, because Loop::execute might still get another loop passed, no?
 
you wouldn't allow another loop to be passed if one is already set
 
@daviddan Ah, you're talking about an explicit set, then yes, I guess.
 
@Gordon probably a leftover php5-ism
In php5 you couldn't just return a string (because it has no intrinsic length)
 
@NikiC nah, it can return false as well. see some lines further down
 
@Gordon wat
 
3:27 PM
24 mins ago, by Leigh
@Gordon https://php-lxr.adamharvey.name/source/xref/PHP-7.1/ext/standard/string.c#1293
 
@Gordon ?
 
@NikiC don't ? me. It's C so I don't know what I am talking about.
 
@Gordon I don't see a return false there...
@Gordon ???
 
user895378
hehe
 
@Gordon ?????
 
3:29 PM
@LeviMorrison yay
 
@Gordon ???!!!
 
user895378
,,,,,....;;;;;
 
:D
 
@rdlowrey `
 
@NikiC but there is a return. without false so maybe it returns null or whatever you guys cooked up in that cesspit that is php
 
user895378
3:30 PM
Oh, I thought everyone was just typing miscellaneous punctuation marks
 
!?!?!^&^%
 
This chat is becoming more and more articulate :P
 
Anonymous
init
 
····
 
still, all of this is probably valid JS syntax
 
3:31 PM
hi5 @Ekin
 
⠾⠏
 
@kelunik honestly, I don't understand enough about the need for the for "stacked" loops to speak intelligently about it. I do know what we've never had the need for it.
 
Connection to tcp://109.159.6.37:80 failed: timeout exceeded (30000 ms)
 
3:33 PM
HTTP/1.1 200 OK
Server: nginx/1.10.0 (Ubuntu)
Date: Fri, 13 Jan 2017 15:33:54 GMT
Content-Type: text/html
Last-Modified: Wed, 28 Dec 2016 14:14:53 GMT
Transfer-Encoding: chunked
Connection: keep-alive
ETag: W/"5863c8dd-264"
Content-Encoding: gzip
 
@daviddan I think @bwoebi should speak here, he felt very strongly about needing stacked loops.
 
@Leigh :-)
 
@Gordon You see return_value being used in that function, but you don't see it being defined there do you. hint hint :)
oops, that was for gordon, sorry
 
@pmmaga at what point did the perl joke switch to js?
 
@Leigh moar hints pwz?
 
user895378
3:39 PM
@Jeeves, are you using artax to go fetch those http requests @JoeWatkins is asking for?
 
user895378
"turing complete," my ass.
 
@NikiC word, javascript at least got alphanumeric characters keywords
 
@daviddan Regardless of stacked loops, the thing I like about Loop::execute is the clear scope it has.
 
@Gordon The PHP_FUNCTION macro adds an extra param for the return_value, which is a zval pointer
 
Anonymous
3:40 PM
!!uptime
 
@JayIsTooCommon I have been running for 2 hours, 56 minutes and 2 seconds, since 2017-01-13 12:44:21
 
Anonymous
@Jeeves why did you ignore Daniel?
 
@JayIsTooCommon Ignore who?
 
@rdlowrey Dunno, but if your testing framework uses the loop, then stacked ones could make sense. ^^
 
Anonymous
oo bitchy.
 
user895378
3:40 PM
dang.
 
dong.
 
user895378
Harsh, @Jeeves. Harsh.
 
@Leigh ah. ok. so we cannot change it to a zend_string because that would break the macro because other functions require different return values
 
Hi
 
@NikiC Probably when they decided to bring it to the backend :P
 
3:41 PM
Is there someone I ask a question about regex, please?
 
@Mark Sure, you tried StackOverflow?
 
Yes, I searched pretty hard
 
Anonymous
@Mark just ask yow Q, someone will help if they can :)
 
But I don't know the regex jargon well enough to find what I need
 
3:42 PM
Ok cool, what is yow Q?
 
Connection to tcp://86.178.168.218:80 failed: timeout exceeded (30000 ms)
 
Request must specify a valid HTTP URI
 
Anonymous
@Mark it's a cool hip way of saying 'Your question'
 
3:43 PM
Connection to tcp://86.178.168.218:80 failed: timeout exceeded (30000 ms)
 
@Gordon Are you talking about changing the return type of php_implode? You could change it to a zend_string (ABI break) but you'd have to get that zend_string back into a zval for the return_value of PHP_FUNCTION(implode)
 
@JayIsTooCommon haha ok
I'm not hip
 
So, I have this string: >Book_Club_Request_Form<
 
@Mark this tutorial is a good place to start regular-expressions.info/tutorialcnt.html
 
3:44 PM
@Leigh yes, that's what I meant. I understand why it's a zval then. thanks for explaining.
 
@PaulCrovella cool I'll check that out
 
my code still segfaults though :(
 
I want to change the underscores to spaces, for all situations where there is an underscore in between ><
so far I have (>\w+<)
 
!!help
 
That captures all the strings correctly
 
3:46 PM
@Jeeves talk to me
 
@JoeWatkins Talk about what?
 
Now I just need to match any _ in those captures
 
user895378
str_replace(">_<", "> <", $myTextHaystack);
 
where's my response, bitch @Jeeves
 
@JoeWatkins I read it and reacted to it.
 
3:46 PM
sorry I need regex please
 
@Gordon There's a lot of convenience in having a variable defined as return_value *zval. A whole bunch of macros assume there is a variable defined that way (RETURN_*, for example)
 
I'm using Notepad++ regex
 
user895378
@Mark Sounds like homework
 
@Mark why?
 
3:47 PM
these are link texts
 
@Leigh yes, I understand that now.
 
Connection to tcp://86.178.168.218:80 failed: timeout exceeded (30000 ms)
 
they match the file name
 
@JoeWatkins Could you do your tests in the Jeeves playground room please? I know you'll delete your messages but meanwhile it clutturs the chatroom
 
user895378
@Mark this is something you could legitimately spend five minutes trying to learn on your own FYI
 
3:47 PM
Does anybody know what's .idea hidden-folder on the root of my project?
 
@Shafizadeh phpstorm or any other jetbrains IDE
 
@Shafizadeh A folder containing the information about the project for JetBrains products
 
@Trucy too lazy ... is temporary noise ;)
 
user895378
 
nah I've been reading all day
 
3:48 PM
@Gordon oh really?! So phpstorm has made it!? yes I think you are right .. because I never made it .. Well what is it containing? can I remove it?
 
@rdlowrey I just need the right jargon to search on google
 
@Shafizadeh what trucy said and no.
 
I'm not very good at regex
 
fuck sake
 
3:49 PM
can you point me toward the right keyword to google?
 
word, one or more
 
can anyone open 86.178.168.218 or 109.159.6.37 ?
 
latter works, former timed out
 
former works
 
I have no idea why
 
3:51 PM
anybody?
 
86.178.168.218 works
 
huh, weird
 
user895378
@Mark regex replace
 
ah, vpn. yeah works
 
huh ?
which one works ?
 
3:53 PM
both on my end
 
former doesn't work here (times out), the latter does work
 
wut
 
user895378
@Trowski @bwoebi @kelunik here's the exponential backoff functionality I mentioned yesterday when it's all shoved inside a single function gist.github.com/rdlowrey/921936d9659b15ac5573919b40f02103
 
user895378
Lemme know if you think it's better broken into a class
 
former works. latter times out.
 
user895378
3:54 PM
An amp/v2 version would use MultiReasonException so you could get info about the internal failures
 
are you all on skype discussing how best to fuck with me ?
12
 
@JoeWatkins no, slack.
 
@rdlowrey I can use Notepad++ for replace, but I can't find how to grab a particular character inside a capture
 
@rdlowrey We have CombinatorException in Amp v1.
 
wait... vpn disabled, former works latter times out indeed
if I enable vpn, it's vice versa :P
 
user895378
@kelunik oh, cool, will use that then
 
user895378
though it's not really accurately named ;)
 
hey
 
urm urm ... urm urm .... errr .... urm ... err
 
3:58 PM
@JoeWatkins just be cool
 
@JoeWatkins a) show our appreciation for you b) smile! < that's what we decided to do :-)
 
wwait, what
With a vpn, former times out, latter works. wtf?
 
^
:D
 
I'm not even kidding.
 
I said/had the same few mins ago
 
Anonymous
3:59 PM
@bwoebi you forgot about @DaveRandom's strip teases
 
@Ekin yeah, it's weird.
 
I can't make sense of it ... any ideas /cc @Levi @DaveRandom ?
 

« first day (2281 days earlier)      last day (2682 days later) »