« first day (2474 days earlier)      last day (2699 days later) » 

17:01
hi guys . need some help in debugging an issue . I am running background workers using php-resque , it basically polls redis once in 5 seconds and performs background jobs.. after upgrading to php7.1 the background worker is getting stalled ( after performing 1 task in the queue ). works fine in 5.6 .. how to figure out what's the issue ?
@Vamsi use a debugger?
!!debugger
user4962466
@tereško i investigated a bit
mhm, getting xdebug to trigger is going be tricky. will give it a shot
easier than using the Force to debug.
@Danack yeah, if brute force is not working, you are not using enough of it
@tereško well I'm still lost but I'll ask the question somewhere else thank you.
user4962466
it was a race condition
user4962466
multiple requests in the same second
user4962466
i will move the logic to mysqk
user4962466
17:06
insert on duplicate key update
user4962466
hope it will work
Anonymous
!!wotd
litotes: understatement, especially that in which an affirmative is expressed by the negative of its contrary, as in “not bad at all.”
@0x13a it will require for the key to actually have a UNIQUE constraint
17:26
... somehow the docker db is persistent across builds and ups
shouldn't it disappear when I stop the container?
(I mean, it gets shut down, the postgre server is down, yet the data is still there afterwards...)
@kelunik @Trowski @bwoebi here is an incomplete (no stdin handling) but working PoC for the Third Way github.com/DaveRandom/process/compare/daverandom/…
must be using a volume ?
That way involves a much smaller BC break in terms of the amount of code that would actually need to be changed
@Vamsi yeah, but I did not do it voluntarily, and there is literally nothing in the docker-compose that does it so... maybe some kind of default in the dockerhub postgre image? not that I complain, that's for the best, but I would like to be able to rely on it ;)
17:31
ah yes :) ta
yeah. official images uses a volume, VOLUME /var/lib/postgresql/data
I like the people who do that
I hate them
just to even things out
can't have too much love in the world
personally I am not running a live db on a docker instance.. RDS has been great
A) imgur.com/a/QxGXF or B) imgur.com/a/EqVcL or C) Indent in upper right, but not lower left.
17:36
@DaveRandom thanks for your sacrifice ;)
B
sticker mule ?
@Vamsi Yes. Added a third option.
@DaveRandom just go to C++ room and tell them that PHP is the best language eva created .
@Trowski I'd go with the round ones, the ones with funky cut-out edges are always more liable to randomly tearing when you are trying to get them off the backing
@DaveRandom That's a good point. IMHO, the point of the logo was to be round, so it seems odd for the sticker to not be simply a circle.
The upper right on the circle seems a little odd, but I think only because of seeing the other version.
17:39
I like the non round ones :P
@Trowski Seems the white border is larger bottom right than top left.
@kelunik It is, didn't notice that before. The border is unlikely to be perfect anyway. I could have them slightly shrink the logo, which would help with inconsistencies.
@Dereleased Never heard anything back from you.
@DaveRandom I'd rather break BC now, it's only amphp/process and amphp/parallel that need new majors and amphp/file with a new minor.
Ah, and amphp/windows-registry needs a new minor as well.
@kelunik So far I like the version that only modifies the stream return values.
17:50
@kelunik Oversight @DaveRandom? Or is there another purpose to that promise?
@Trowski yes that was an oversight, there are probably other mistakes in it as well
that's just a rapid poc
It does has the disadvantage of adding an extra branch on each read()/write() call though
and that code was a little bit of a headfuck to write tbh, might be harder to maintain
@DaveRandom Your Process*Stream is way more complicated than it needs to be. Just make a Resource*Stream within it once the promise is resolved.
Yield to the initial promise passed in read/write to delay until the handle is actually provided to the object.
public function read(): Promise {
    return call(function () {
        if ($this->streamPromise) {
            yield $this->streamPromise;
        }

        return yield $this->stream->read();
    });
}
Something along those lines.
Morning everyone
18:08
'nin
@Trowski We should add that to amphp/byte-stream then. github.com/amphp/artax/blob/master/lib/FileBody.php#L45-L53
@kelunik Heh, yeah, exactly that @DaveRandom. I'm not sure about adding it to amphp/byte-stream, as Process*Streams will need a close() method as well.
@Trowski oh, true
The other potential issue I see @Trowski is with getStream(), but tbh I'm totally clear on why that's there anyway?
@DaveRandom getResource() you mean? It was because sometimes you want to change context settings or something else where you need access directly to the stream resource.
It's probably not necessary on the process streams.
OK good, well in that case I think that's probably the best option from a BC PoV.
Although @Trowski while it was an oversight to leave that promise retval on Process#start(), I would vote for leaving it there. It's more semantically correct to have it there, and it doesn't negatively impact BC in any way
18:19
@DaveRandom Right, it might be useful but it's not necessary to wait on it before starting to use the process streams.
So thus amphp/parallel would probably not need to be changed at all.
What's with startup failures?
@kelunik I think most startups fail :|
@Alesana lol
Lol :P
Sometimes you have to turn your business off and on again.
18:34
Wait 10 seconds before plugging your business back in
nite all
g'nite
18:59
@Fabor The IT Crowd Venture Capital
@user7594714 hi
Is it heavy sin if in team someone very loudly banging on the keyboard? I just start my first work in team and im sharing room with a guy who do this. And I dont know if im too touchy or he is a peasant
Headphones
Are you allowed to wear headphone?
^^
19:10
sometimes i need silent, not music
Noise cancelling headphones then
While it isn't exactly cool for them to smash the keyboard, you work in an office. It's part of the package.
Yeah that would drive me crazy, I like listening to music to help concentrate though so I wouldn't have a problem
You mean Noise-Canceling Headphones not music headphones?
Same thing
Turning on noise cancelling is separate from the playing of audio
Some noise cancelling earphones here for £1.80. Don't think so.
19:33
If I were to work in an office I would invest some hundreds of euros on the best headphones I could find
Now I just blast music on speakers
I'm calling it. @JayIsTooCommon 19 @Ekin 20. ^_^
You forgot my message for his bday
@Alesana You'd have to spend money elsewhere if you spend hundreds on headphones. I think after about £150 the limiting factor is your PC/Laptop
Even it is :-)
Psht, you can't vote for the enemy :P
You finished Jet Skiing for the day @Ekin?
Time for the masseuse?
19:36
:D ... lol. It was a nice day at office.
Good point, well point is I would spend a lot to have good quality sound going into my ears
@Alesana Expensive habit if you go down that rabbit hole :P
You guys make me want to get a real job programming :P
@Ekin You'll have to work some day. Like the rest of us!
Headphones and swimming
19:37
@Alesana Not all sunshine and rainbows. I imagine most of us worked some pretty terrible places for a while.
@PeeHaa was self-employed for instance.
Lol I'm self-employed I guess, building an app I plan to sell subscription to
Secret app?
But moreso just trying to learn
I did work today :P sailing days are mondays
@Ekin Wait do you really go sailling every monday :O
19:40
@Ekin heh.
My #1 office request is a screen that doesn't face others.
Ugh I hate when people watch me browse facebook.
yeah, I'm still having a hard time believing that's a real thing on this new job
also it is just for the summer of course
Wow that's incredible
@Ekin I'd quit. For the summer only?! How can you work in those conditions :)
Or is there a winter ski trip?
:P
They let you decide your own machine?
19:48
neh, I've been on my own laptop today, my desk and desktop is coming tomorrow
dunno how it will be for now
@Ekin Don't forget to assert your dominance. Find the manager and take his desk. Can't show weakness in these new environments.
@Ekin Eat your coworker's lunch every day, things like that
:P
It's a friendly environment
Oh... Happy Birthday @Ekin :P (Makise Kurisu)
:D
Ah riiight, I knew that was on 25th
She's pretty popular aye. I still haven't fully watched Steins Gate
Anonymous
20:27
@Fabor self employed as his own bar-man /cc @PeeHaa
Anonymous
I've had a dry cough for 5 weeks. I think I'm dying
20:38
Vit C, sleep and water
@JayIsTooCommon he can quit anytime he wants :P
He already did I think. If I recall he was hunting a while ago
I miss good bread :( It's all so sweet here. I want a PB & J
ping @Sara?
@DaveRandom pong
Hi, sorry to bother you
20:51
@Leigh ahahaha
If I were to have a change that involved adding an extra optional arg to a function, the ship has sailed for 7.2 now, right?
@WesStark omg. I actually had not checked. this is amazing. omg. omgggggg
@DaveRandom Why do we actually need the flag?
want_read / want_write, the thing why you pinged @Sara
20:59
Just nailed a mosquito with my sock. :D That'll learn it.
@kelunik ...because you need to know which one to watch for?
Imagine on some slow network where it takes, say, 500ms to empty the send buffer
Sorry, what thing?
hang on, will find link
@DaveRandom We just watch for writability, which should be fine, no?
@DaveRandom 90% sailed. For demonstrably important things, it's not entirely too late.
21:02
It'll cost you $5 -_-
@kelunik sorry I didn't mean that, I meant a case where it's in WANT_READ and doesn't get data from remote for a long time.
user6845426
@Danack lol
@Sara well it probably doesn't count as that :-/ github.com/php/php-src/pull/2605#issuecomment-317717303
That wasn't a joke.
user6845426
I don't want to use a framework
21:05
@kelunik if you watch for both read and write and it wants read, it will just end up busy waiting on the write (because the socket is writable) and there won't actually be anything to do
it's the same for enabling, btw. It "works" right now but only in the same way as shutdown would "work" without it
user6845426
Their reasons being it will allow for faster development. I haven't got enough experience to give a counter argument
There's a reason openssl distinguishes between the two states...
faster development slower learning.
@DaveRandom github.com/php/php-src/pull/2605#issuecomment-317717303 seems wrong. If you only want to shutdown write, you shouldn't completely disable crypto on the socket.
You can't have a clean TLS shutdown if you have stream_socket_shutdown($sock, STREAM_SHUT_WR);. /cc @bwoebi
@kelunik I'm pretty certain that doesn't make sense with crypto but I would like to ask on security SE to confirm that
21:10
@DaveRandom I'm pretty much 100% certain. Because a clean TLS shutdown has its own finish handshake, so unprotected TCP frames can't break the protected TLS channel without either party noticing it.
@kelunik right, so the whole point is that you cannot call shutdown() until SSL_shutdown() has returned with success
for either direction
DOMDocument::load() reports success but libxml_get_errors() return errors – #74988
regardless, the fact that stream_socket_enable_crypto() does not tell you what it is waiting for is a problem
21:37
DOMElement::setAttribute() should report error when @‌xml:space = 'foo' – #74989
user5730329
21:55
does this online chat work??
user5730329
anyone online right now?
@IchHabsDrauf nope, to both of your questions
user5730329
then why are you answering if you're not online
user5730329
sorry for this new user spam messages.
user5730329
I need to first get used to it.
21:56
I'm just joking :P
user5730329
:)
22:23
Me station in life just got dramatically increased by the appearance of a peppered season beer in my hands
22:43
i wanted to be a big boy earlier today and i was plentiful with chili pepper. then i cried like a girl :B
Hi room! I have a small problem maybe you can help with. I'm requesting data via AJAX both as get and post. Get is fine and I get back the PHP headers I set. Post doesn't get any of the headers back. It's so strange. I'm using Firefox to debug and look at the network traffic. I have already set header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
Peppered season beer? I don't think I've heard of it..
I'm not sure I get the word right. We call it "saison" on french, which is season, but maybe the technical term is something else
It's a brand?
It's halfway between an IPA and an ale, not sour yet floral
22:48
I like IPA, and I like spicy, but I've never tried a spicy IPA
It's a type of beer
Googles saison
It looks like it's called saison in English, too
It sounds delicious, actually
Yeah, barman just told me so! (For saison)
And yeah, I love those mostly
I am sure I am not able to find it here in Argentina, since I started living here I have only found really 5 or 6 different types of beers :|
23:12
@Alesana some people here resort to private beer importation to get their stuff. I can't imagine how that must be costly in Argentina though...
It's said that Argentina has the most diverse climate distribution on earth. Are you in a rocky, hot, cold, ? area @Alesana?
@FélixGagnon-Grenier Argentina is really against importation. They have a 100% importation tax to try to prevent anyone from importing anything. That would be fine if they made their own electronics, but they don't. If I want to buy a smartphone, car, or any other electronics here, I will pay twice the cost
It's true that there are quite some different climates, I'm in a hilly area but the temperature is pretty normal, it usually gets from 3c in the winter up to 28c in the summer
Where in Argentina are you?
Cordoba, it's beautiful here :)
I've seen worse than 28 in Buenos Aires :P
Ah nice, indeed :-)
It does get a bit hotter in bs.as.! The city adds to the heat haha
You've been?
23:19
True
Yeah. I have friends living there
Oh cool. Where are you living?
Currently in Turkey. But past three years I lived in BA, La Plata and then in Uruguay
Kinda weird of me saying but I missed fernet :P
Oh awesome, I still need to explore around here, I've only been here in Cordoba and to BA
Fernet is surprisingly good, I wish my stomach could tolerate sodas more though
But... totally not missing cumbia and reggaeton :D
Yeah mine neither, hence kinda weird
Hahaha
I know some underground Argentine bands here I like, but for the most part I don't like any music from Argentina
23:26
Yeah same
There is like this horrible Cordoba specific music here called cuarteto
You are lucky if you have never heard it
I didn't think it was possible but it's worse than cumbia and reggaeton combined
:P considering myself lucky indeed then
hmm ..
There's a weekly event in BA called Open Folk / Open Blues in El Universal... I enjoyed that so very much
It's argentine folk? I don't know if I've heard it
23:29
so, I have been looking for some intermediate level material about REST-style API design .. any suggestions?
When I first came here someone asked if I like Raggaeton, ignorant me thought that it was the spanish word for Raggae, so I said yeah. Then they played it.
:D
@Alesana They mostly mix blues and roots with folk. Mostly North American when it's blues night. Great musicians playing live there
On that note, I should sleep
nn
Haha sleep well
@tereško I'm still stuck at the eternal plural vs singular naming problem
For what?
23:38
Routes, mainly
Post /users or post /user for entity creation
Plural
I generally lean towards plural, yes
But the doubt doesn't disappear, yet
users.
23:56
i'm starting to have a problem with namespaces
or actually i've ignored it up until now
What's that?
basically since i'm trying to develop small packages that make sense on their own, that don't require additional segregation, i end up having dozens of \vendor\lib\mypackage
in fact i could even have \vendor\mypackage of everything
while i would like to have more depth
i have a fuckton of folders in phpstorm that drive me insane

« first day (2474 days earlier)      last day (2699 days later) »