« first day (2287 days earlier)      last day (2658 days later) » 

6:00 PM
@Leigh I updated the spacing, realized it was fucky, if you refresh, it should look better.
 
@bwoebi It's not firing onClose() like I would expect, which seems to be what the issue is about.
In fact it doesn't even drop the connection.
 
@Tiffany I'm going home now, will talk to you when I get back
We'll make a private channel so we don't spam here
 
@Leigh safe trip :)
sounds good
 
@Trowski pushed tests to master - they work for me
 
mornin
 
6:12 PM
o/
 
hello
 
@Trowski do you get the failure on master too?
 
@bwoebi What's $server->allowKill?
 
@kelunik @bwoebi I was just wondering this myself…
 
@kelunik asserts that the Client gets freed
 
6:17 PM
@Tiffany I summon thee
 
@bwoebi allow* doesn't sound like an assertion.
 
@kelunik yeah, should probably be "mustBeKilled"
or requiresClientFree
 
@bwoebi "requireDeath"
create an application where things can be flagged "pathetic" and then they must be killed
/me channels 80s villains
 
@Trowski pushed a better name…
 
@bwoebi I still have the same problem on master. Close frames from the client are being ignored.
 
6:23 PM
@Trowski weird just that the test works
can you write a failing test?
 
@NikiC Why?! 3v4l.org/09H0a /cc @bwoebi
@Trowski how do you send it locally?
 
@bwoebi I'm using websocket.org/echo.html. Run the demo and connect to localhost:1337/ws, click connect and then disconnect.
 
user895378
^ in all honesty I'm pretty sure this problem was created over a year ago in a PR Bob added but I had neither the time nor the inclination to fix it :)
 
user895378
Should be significantly easier to solve for this particular problem if we sacrifice a bit of performance and use coroutines to deal with connection closes
 
Guys, who wants to learn Persian?
 
6:26 PM
@rdlowrey what are you talking about?
 
@Shafizadeh I do, but not enough to actually put forth any effort.
 
[2017-01-19 18:27:17] error Error: Call to undefined method Aerys\Websocket\Rfc6455EndpointProxy::end() in /home/kelunik/GitHub/amphp/aerys/demo.php(4) : eval()'d code:75
@bwoebi After doing the test @Trowski mentioned but with a click onto Send in between.
 
@kelunik Oh, right, I had fixed that in my branch. Should be send(), not end().
 
@kelunik I think this got replaced too much by s/send/end
 
@bwoebi Same here, fixed my blog post recently.
fixed
 
6:30 PM
okay, I see
mh
 
I can see the close frame in wireshark
 
nah
found the issue
 
user895378
@bwoebi hmm, I take that back. Was a totally spurious accusation on my part. Was thinking of something different.
 
user895378
/me slaps self
 
@bwoebi github.com/amphp/aerys/issues/105 is exactly about that issue, not about TCP close.
 
6:35 PM
pushing in a few, adapting test
@kelunik yeah, maybe
 
It exactly talks about conn.close() not having any effect.
 
yeah, it was the case but I couldn't repro it…
 
Hi everyone, I have a quick question
 
@PaulCrovella what do you mean "but not enough to actually put forth any effort" exactly?
 
@Shafizadeh Farsi?
 
6:46 PM
I am using PHP and ZF. I have a layout and header files. Where would my header would actually be defined to be positioned before my article? It is not in the layout.
 
@Dereleased Yup ..!
 
I realize this statement is almost entirely devoid of meaning, but: I almost took a course in Farsi once.
 
@Dereleased well can you speak in Farsi now?
 
@Shafizadeh It means I'm lazy. Knowing Farsi would be great, but I'm unwilling to work to accomplish that.
 
@kelunik technical
 
6:49 PM
@Trowski @kelunik fixed … I must have misread the RFC back then that it allows omitting the close reason
 
@PaulCrovella Ah I see :-)
 
@Shafizadeh Not a word. I really should have bothered to take the course. Perhaps I will again
 
ah :-)
 
@kelunik We can't send single arguments that don't have a fixed argument position without adversely affecting normal argument sends, at least not without some work...
 
you know, Farsi isn't that much hard as English is !!! you can simply learn it.
 
6:52 PM
I believe that. i.imgur.com/e8XLe.png
 
no one? :(
 
We're not very framework oriented here.
Except Jimbo
 
user895378
@bwoebi nice find
 
@Leigh what framework are you using?
 
I'm.. not
 
6:54 PM
@Leigh ok thanks :(
@Shafizadeh he was answering my question
 
@Leigh well how do you code then? pure PHP ?
 
Yes, PHP + libraries
 
@rdlowrey yeah, it got obvious when I looked at the close frame in Wireshark
Immediately realized that I've always had a wrong assumption
 
@Leigh do you follow MVC architecture in your projects?
 
vaguely
kind of DDD structured, with services, repositories etc.
 
6:57 PM
wtf
 
well recently I've learned to use Laravel framework .. I like it. but do you suggest to avoid using it?
 
I'm currently removing Laravel from a project :D
2
 
why is byte order inversed here
I'm always just using S with pack/unpack?
 
> S unsigned short (always 16 bit, machine byte order)
machine uses a different byte order to the one you wrote your test on
 
6:58 PM
oh dammit
 
@Leigh :D
 
@Leigh mixed S and n…
thanks
it just happened to work locally…
 
It is the 19th of January, and it is so warm where I am that the bees are out and about. In January. What is this madness?
@Leigh I have never used (or considered using) Laravel. Can you esplain me why it is so bad?
 
@NikiC Can't we just emulate what happens with ...[$arg]?
 
@kelunik different semantics
thank references
 
7:09 PM
 
Not, that type of references
@PaulCrovella And tomorrow you need a new image
:-P
 
@bwoebi general rule, network code, network byte order, n/N
 
@bwoebi Great, I'll merge into v2.
We should look at putting some common things between Aerys, Artax, and amphp/websocket into a shared lib, because I'm about to copy and paste a bunch of code into amphp/websocket :-D
 
user895378
@Dereleased it's because we fucked up the planet correctly
 
7:25 PM
@Dereleased Don't worry, that won't be happening soon enough because the bees will be gone.
 
Jeeves
locate jeeves.service
/etc/systemd/system/jeeves.service
/etc/systemd/system/multi-user.target.wants/jeeves.service
gitamp
sudo locate gitamp.service
/etc/systemd/system/gitamp.service
99% sure that's the problem
 
right, that's weird indeed
checking
 
So just making sure. I should never do a reboot directly on the machine right?
 
yeah, apparently DO hates it
will get you on the dash there as well
 
<3
That was you right?
 
7:34 PM
yup
 
kk
Thought I broke it by looking at it
 
:D
is it back up now? my internet got spooky
 
yes \o/
 
cool :-) symlink did it
Closed that one. Should I add a sample service file?
 
It is the nice thing to do
 
7:50 PM
@rdlowrey what'd be an incorrect fuckup then?
 
Hello people!
Im translating BASH to PHP, and i found the following:
sed 's/.*<navy>\([^<]*\)<.*/\1/'
How would i use that regex correctly using preg_replace ?
 
Anonymous
Evenine
 
@JayIsTooCommon yo
 
Anonymous
How's poophaa?
 
Goooood sir
How's byrne doing?
 
Anonymous
8:04 PM
Beauts thanks, living the dream....
 
You little rascal
 
evnin
 
ening
 
Anonymous
Hey birthday girl
 
Wes
@Danack AHAHAHA
@PeeHaa i blame global warming. therefore the muricans
 
8:18 PM
@Trowski @rdlowrey thank heavens, I'd grown tired of living
 
Hi all, Can i get an invoice generating and stock management software opensource with source code?
 
Errrrrr
 
@Jimbo nice scooter
 
Stop spamming please
 
deleted. answers?
 
8:23 PM
@Jimbo oh the panigale is back :-)
@MuhammadSaqlain Not getting one here. Try googling
 
@Jimbo I'm giving it... 3 days til wreck
2
 
@Jimbo bike like that probably can't beat a cruiser out of the gate simply because it can't keep its front wheel on the ground =)
 
special design just for you
 
@DaveRandom that should be a scarf
 
8:39 PM
i.stack.imgur.com/9Z3Kl.png this is fun I'm getting this one
2
 
Wes
lol
 
That colour is called "safety pink" apparently
not sure what's safe about it
 
@DaveRandom depends on what you're trying to be safe from
for example, you should be very safe from people who are allergic to that particular shade of pink
 
s/who are allergic to that particular shade of pink//
 
I used to paint the handles of my tools about that color, it kept them from disappearing from the job site
 
8:52 PM
@DaveRandom +1
 
I actually do quite like that one /cc @Wes @PeeHaa
 
Wes
ahahaha
 
@Dereleased I don't get it.
 
9:08 PM
I assume there is some weird subculture somewhere you need to be a part of to "get it".
 
Wes
@DaveRandom frenchmen contemplating the universe is my guess (cc @Trucy :B)
 
@Tiffany That's low...
 
Hackers are demanding tens of thousands of dollars
 
9:21 PM
Can't hack papers.
 
@MadaraUchiha at least it's not another hospital
 
@KarmaDoe Right, but people can't use the libraries' computers now
And people normally use public libraries' computers to look for jobs etc, since they have no computers of their own.
 
Aren't there cafés or something like that ?
 
@KarmaDoe You're expected to pay for those, normally
Homeless folks have no money to spare for that.
 
You have a legit point.
 
Wes
9:25 PM
you gotta be a huge asshole to attack a library and demand them money like they have plenty
3
 
It sucks cause there's basically no point in going to the library at that point. I mean, I guess you could read books while you're in the library, but most people want to read them at home.
I'm going back to taekwondo tonight, guuuuuyzzzzz
 
@MadaraUchiha We have a lot of cities here in the states that require an ID with a home address to be able to use library system. Homeless don't have such a thing so they can't use the computers nor checkout books. It's just another way to push the homeless out of sight out of mind =o(
 
@crypticツ Not all of them though
Or they may offer a way for homeless to get around that by providing a guest login
guest login has more restrictions than a regular login ID, but still usable for applying for jobs
 
Yeah not all of them, but my city is one of them.
 
:/
that's balls
 
9:42 PM
In Tampa FL, Food Not Bombs who feed the homeless were arrested because they didn't have a "permit". It's not the first time in my state of FL where these organizations trying to feed the homeless are targeted by regulation passed by business interests as ways to make it illegal to help. We see more and more places where they put metal spikes on he ground where homeless sleep to deter them, or benches designed to not be able to sleep on, and more.
 
D:
 
I live in IL. State is one of the bluest in the midwest, mainly because of Chicago. If it weren't for Chicago, holy fuck we'd be red.
 
@crypticツ plus ordinances prohibiting sleeping in cars, and such
 
yeah!
 
9:44 PM
:(
 
It's soon becoming illegal to be even homeless, there is no end to this heartlessness.
 
then they all are put in jail, given healthcare and food
 
> In its majestic equality, the law forbids rich and poor alike to sleep under bridges
 
suddenly not homeless! just can't leave where they're at now
note: I'm against homelessness being "illegal" because it's senseless, but it's a bit funny that there's a loophole where a homeless person can get arrested and are given necessities they otherwise wouldn't have.
 
@Tiffany depends on the state. If it's a jail/prison that is run by one of the private corporations who cut corners it's a worse off fate. You'd be shocked about what inmates have said about the food they are served. Let's not forget the 13th amendment, which allows slavery to exist provided it's used as criminal punishment.
 
9:48 PM
fair point
privatization of prisons is just baffling to me
 
Jails being a business is one of the worst decisions ever made.
 
imdb.com/title/tt5895028 great documentary on the 13th amendment. Lots of our products we don't realize are being made using prison slave labor.
 
^
heh, so when something's touted as being "made in the USA!"
...
there's fine print
 
@crypticツ Define "slave labor" one can claim that Israeli soldiers are "slaves" since they don't actually get paid for their mandatory service period
($100 a month, the minimum wage in Israel is ~$1200/mo)
But it's a mandatory service period as defined in the law, so it doesn't count as slavery.
Depends on what kind of jobs they do, if they're actually productive and aren't being crushed in 18hr/day shifts, I wouldn't mind it being a part of their punishment.
Although, to be fair, it also really depends on the crime
 
$1.25/hr paid, work 8hrs shifts, AND have to use that money earned to then purchase FROM the prison items like soap, toilet paper, etc.
Since you're an inmate, what choice or right do you have otherwise?
 
9:52 PM
@crypticツ $1.25/hr is more than what Israeli soldiers get.
And Israeli soldiers risk their lives, so...
Worth noting that after the mandatory service period, Israeli soldiers get decent-ish pay.
 
off-topic conversation is off-topic.
 
Indeed.
 
These are too different systems. The prison industrial complex and the military industrial complex. Both are terrible for society.
 
From randomware attack on a library to inmates to soldiers.
 
throw a random topic in a chatroom, watch it get derailed
(wasn't my intention)
 
Wes
9:56 PM
still snowing...
 
@Dereleased Actually this one has a supercomputer on-board almost... anti-wheelie and everything. Traction control, ABS, EBS etc
As a result, it's 0-60 is stated as 2.7 seconds. Realistically it'll be 3.5 from a normal launch
 
@crypticツ You had the choise not to be one.
 
Wes
 
@KarmaDoe a choice.. sure.
 
@KarmaDoe You obviously don't know how the prison industry has made ridiculous laws to increase their profits by increasing inmates. We have debtors prison where if you are too poor to pay a bill/fine/fee they can now throw you behind bars. We have entire demographics being targeted for possessing a plant that the majority agree should not be illegal, or even the volunteers who fed the homeless they got arrested and put behind bars, lets not forget protesters either.
 
10:09 PM
@KarmaDoe That's unfortunately not how it works in the US
Prisons are a business that involves the guards, the wardens, the police and the judges.
 
There was more than one case where a corrupt judge would sentence people to prison in a prison halfway across the state that happens to be owned by their cousin, or some similar shit.
 
Hopefully, i do not live there. People don't get imprisioned just like that here.
What i say is, i agree that prisioners are payd close to nothing and that they have to use it to pay what they need to live there. How or if it was just or rightfull for them to be there, is not what im considering.
 
What most people don't think about is how beneficial it is to everyone to rehabilitate rather than incarcerate.
Literally every person in society benefits from a rehabilitates and reintegrated inmate.
 
We also don't have any focus on rehabilitation, work placement, or skills training to make sure those who legitimately are incarcerated are able to enter society and be good citizens. Why spend the money to do that, when you can create a revolving door system and have your profits increase.
yep
 
10:13 PM
But because it's the US we're talking about, and prisons are multi-million dollar businesses
They focus more on keeping the inmates in, and getting them back soon after they get out
 
and because we're not rational things. we want revenge.
 
*multi-billion
 
John Oliver made a really great episode about the prison system in the US
 
We are what we do, with what they've made us.
 
@KarmaDoe We are to fulfil mankinds dream... have sex with aliens
But first... Mars!
 
10:17 PM
I can't imagine another thing more pleasurable to have sex with, than another living human.
 
@KarmaDoe The patriarchy has ruined you.
 
Why?
Are you suggesting i try animals ?
Or dead humans ?
 
Or dead animals.
 
29 mins ago, by Danack
off-topic conversation is off-topic.
and annoying.
 
10:24 PM
Right
I think we should stop at dead animals this time round.
 
@DaveRandom thank you for the !!help command change
 
Wes
i've realized i do this all the time :( twitter.com/ThePracticalDev/status/743142398222540800
 
@Wes why ":("? how do you think those patterns came to be?
 
@Wes A lot of IT work is trial and error, with a whole lot of fail, and sometimes success. The same could be said for any job that requires problem solving. (Even though software development isn't technically under the IT umbrella, it's close enough for the analogy.)
 
I think the world would be a better place if preg_match_all returned a class rather than an array. Is this a good idea?
 
Wes
10:36 PM
@PaulCrovella because of fear of being ridiculed for anything i do, i look for confirmation in patterns / others' code :B rather than actually focusing on what i did and if objectively makes sense
 
@TomasZubiri You probably want to delete that before other people see it
 
Wes
it is also convenient when i realize i wrote bullshit. i blame the pattern, not my incompetence :B
 
@Leigh Too late ¯_(ツ)_/¯
But why?
 
Well lets start with why do you think it's a good idea. Since it's your pitch :)
 
Preg_offset_capture and preg_set_order modify the structure of the array in such a way that it's very hard to write code that works for all return types.
 
10:46 PM
$room->currentOffTopicConversations() |> /dev/null;
 
I never got any hate messages from you, @FélixGagnon-Grenier, so I take it you're still employed?
 
:)
that I am.
 
apparently I am doing something right
even though it's mainly javascript
 
Wes
 
10:50 PM
I love watching pizza makers filp them doughs around
 
@Jimbo that's hot
 
@FélixGagnon-Grenier Your pic makes me remember of Amelie
 
great soundtrack on that movie
 
confusion intensifies
 
@crypticツ you're in FL?
/me missed sooo much conversation
 
10:58 PM
okay Facebook, with your fancy new interface, I can't find a fucking app rabble rabble
wtf
 
@FélixGagnon-Grenier imdb.com/title/tt0211915
 
Soundtrack agreed
 
@PaulCrovella shiiite... I actually had it in mind, but now that I see the pic... I can't say that is downtright untrue... except I'm much better looking
 
Comptine d'un autre été - L'après midi
 
a sister used to play these on piano all the time. quite nostalgic pieces tbh
 
11:02 PM
oh, you just reminded me.. I came up with a Canadian drink the other day called the Poutini. It's just cheese curds and vermouth.
 
@PaulCrovella /gag
but then maybe I just haven't had the right vermouth
 
I didn't say it was good, only canadian.
 
@PaulCrovella You know they make whisky, right?
 
we also have some great micro breweries
 
11:04 PM
I don't know if Unibroue is considered micro anymore, but I like that I've had from them... by which I pretty much mean Ephemere and La Fin Du Monde
 
More speaking about Dieu du Ciel, Pit Caribou and the likes
 
Well mail me some and I'll let you know what I think
 
I'm pretty sure the only one that transpires to Eu is Dieu du Ciel, but a lotsa americans come to the smaller ones
 
I'm in the US
 
11:06 PM
they're a bit expensive, but some are really worth it, especially if you're keen on sour beers
the Péché Mortel is maybe the greatest classic. Black brewed with coffee. Excellent
 
I hope so! on that note, nn peeps
 
lates
 
11:36 PM
Do want in PHPStorm!
 
Wes
what's that :B
 
a single distinct meaningful element of speech or writing
 
the parameter names
in line with the parameters
 
Wes
@PaulCrovella ha
@Leigh i mean, isn't that php should do, not phpstorm?
 
11:42 PM
Right, the grey text is just display fluff, I didn't type that
if I cursor left/right, it skips over those "format:" and "a:"
 
Wes
aaaaaaaaaah. damn that's hella nice. so i don't have to find out what true/false switches mean, i'd have $doesSomething: true
 
exactly!
 
@Trowski umm, you realize your newest merge is failing the tests?
 
Wes
@Leigh would be nice at least to have the description on hover:
 
you can ctrl+p while your cursor is on the param
 
Wes
11:53 PM
didn't know that :o
 
@Wes Now you do.
And CTRL+Q for documentation
 
Wes
i know ctrl+q
 
seems like a fair trade :)
I didn't know ctrl+q
 
@Wes eek those colors
 
Wes
what's wrong with my colors. that's a popular theme i don't remember the name :B
 
11:58 PM
darcula or gtfo
 
Seriously though, working with bright colors at night would make my eyes bleed
 
Wes
code highlighting style gurus. didn't know they existed
 
That's why everything there's a potential I'll deal with in the evening/night has a dark theme
 

« first day (2287 days earlier)      last day (2658 days later) »