« first day (2410 days earlier)      last day (2552 days later) » 

user1804599
12:03 AM
What is the PECL logo meant to resemble?
 
user1804599
A gherkin?
 
cucumber
 
user1804599
I see.
 
user1804599
Same species. :D
 
user1804599
12:05 AM
I like the PECL web design.
 
user1804599
It's how I designed my websites ten years ago.
 
user1804599
.sidebar { border: 1px gray dashed; } <3
 
12:44 AM
@tereško no offense intended.
Re: comment on my deleted answer http://stackoverflow.com/questions/44102566/how-to-find-out-what-a-php-function-does-exactly
Sorry if it came across as complaining, I was merely curious why one manual (WordPress) included code and another (PHP) did not. - The answer in short is it makes sense in one case (WP is written in PHP, the functions are smaller, users benefit from the code being referenced there) and in the other it doesn't (written in C, code more complex, little use).
 
12:58 AM
Julix.. are comparing a cms readme to a programming/scripting language doc?
 
Possibly. Didn't realize the WP thing was a readme. - But yeah, I guess I was. In my defense, apples and oranges are both fruit? :D
 
I guess it could also be called a doc
it likes to call it self codex
 
@RonniSkansing Nope, codex is different, see developer.wordpress.org vs codex.wordpress.org
codebase / reference for documentation vs online manual for WordPress and a living repository for WordPress information and documentation.
 
@Julix I never noticed the developer docs
I only used the codex to figure how to use filters and hooks and find security issues
Btw. when you found you way through the C code
will u go deeper and want to look at the assembly and etc?
 
Nope, absolutely not. I would focus on the parts that could be accomplished in PHP if any. It was a slight XY problem in that I really just wanted to think about "how would I write a function that did the same thing, if it didn't already exist" - and then I got curious if the source code considered a bunch of strange scenarios that I wouldn't have thought of (like say jQuery does).
I'm used to working with JS frameworks and WP (i.e. things that give me more functions to work with, just like PHP itself does - but that are written in the same language) and I totally spaced on PHP being in C :D
 
1:08 AM
Well happy hacking to you
 
Thanks, have a wonderful rest of your long weekend (if you've got that too)
 
Ive rested for 3 weeks
and continue to rest the next week maybe month
 
Ha, just found out what holiday tomorrow is: "Victoria Day May 22, Monday National except NB, NS, NL" -- seems to be a Canadian thing, i.e. N/A in Denmark. - But sounds like you're set anyway! Happy resting, and hacking and whatnot
 
thanks
 
1:46 AM
@tereško ^^^^
 
Anonymous
wtf!
 
Anonymous
Ah, 4K views ..
 
2:01 AM
yeah, overall decent revenue, just not on that video
 
Anonymous
Yeah, I thought initially it was one of your popular videos with +200K views
 
4:06 AM
What's the best way to trigger a cronjob to run X time after a function has ran? I'd rather not run a script say every hour looking for the event, but rather..

`functionHasRun();`
`//cron scheduled to run 5 hours from now`
 
Morning
o/
 
Wes
4:23 AM
@SterlingArcher launch a php process starting with sleep() ?
use pthreads?
 
oh interesting
I wonder if that's the most smart thing to do
 
mroning
 
4:58 AM
posted on May 22, 2017

New Cyanide and Happiness Comic

 
5:14 AM
@samayo yes
It depends on what you want to buy.
 
@SterlingArcher a job queue
 
McDOnald's happy meal,a blanket in winter season etc
 
5:49 AM
̿ ̿ ̿'̿'\̵͇̿̿\з=(•_•)=ε/̵͇̿̿/'̿'̿ ̿

morning room
 
that is a very fancy greeting @Linus ^^
 
:P
 
if not using something like carbon
is there a better way to know if a mysql DATETIME is today than: ['created_at', '>=', date("Y-m-d 00:00:00")]
I just came up with this solution and I wonder if there is a possible flow I couldn't think of
 
O/
 
6:01 AM
@Valentincognito created_at = CURDATE()?
 
there is a barking dog next to my office ... Im going crazy
holy
 
@Valentincognito bose quiet comfort
 
I completely forgot about CURDATE
@Gordon Thanks ^^
 
have you tried barking back at it ?
 
too many people around me , it might sounds crazy
 
6:02 AM
Hahaa
 
lol
 
babies and dogs should have a mute button
 
can you rent a dog costume ?
@Valentincognito babies and dogs be thinking "humans should come with a feed me button" ...
 
I typed dog costume on google and I found more results about costumes FOR the dog than for human
 
@Valentincognito I might be repeating myself, but bose.com/en_us/products/headphones/…, really.
 
6:06 AM
user image
4
 
@Trowski Your coroutine-alt branch LGTM.
 
@Gordon yeah a friend of mine already recommended me those, he had one of the old model but told me they were really good and reliable
 
@JoeWatkins hahah
 
but for some reasons I still feel uncomfortable wearing big headphones at work
 
it's pretty good ... also, I'm totally ready to take the dog seriously
 
6:08 AM
@Valentincognito they also got in-ear variants
 
yeah Im looking at them now
 
wow, they are expensive
 
the reviews are really good
this guy: "I bought these to negate the frequent chatter in the office; I was impressed with how well these work. Sometimes I don't even play music, I just use the noise cancelling option, it's like I'm in another world, I can focus so well now. The way I see it, it's an ROI."
 
the in the ear ones are £260 ... I dunno how much money that is where you are, but here, it's £260 at least, which is quite a lot ...
 
@Valentincognito I can confirm that. I sometimes just put them on, too without music. With music, you won't hear anything else.
 
6:14 AM
so if someone walks up to you and speaks to you, do they block that out ?
say wife asking if I want a cup of tea, or telling me office is on fire ?
 
they block out steady sounds best, like humming of engines. chatter is harder because it's not steady, but it will be much more silent.
 
I see
they aren't the noises that distract me ... it's the tea and office fire kind of noise ...
 
put on some music and you won't hear those either.
 
In my country the cheapest price I found is 340USD for the ear ones
that's like a ps4
 
the only thing that could be improved is audio playback when noice cancelling is turned off. it's a bit muffled then. you get used to it within a few minutes, but playback is much more crips and clear when noice cancelling is activated.
 
6:18 AM
if only I were rich
 
also, my over ears dont let out too much sound when I am listening to something, so they won't disturb anyone close by
for me that it's important. I hate people with noisy headphones
 
well I dunno, it depends what kind of background noise you are putting up with ... at home where I work from there is hardly any ... birdsong is the loudest background noise I have to cope with ... but if you work in a city centre, maybe they don't seem so expensive ...
 
I always thought it was unfair to convert prices into different currencies likes so: 350USD = 350euro = 350 insert any currencies here
 
I've been on a conf call recently while in the home office and two toddlers around. the unwritten law with toddlers is that one will start crying eventually. I could still hear it through the headphones, but it was faint and distant and didnt distract from the call.
 
some of those beats by dre headphones are £150, and they don't do anything except sport the name of a well known hip hop artist ...
 
6:24 AM
I guess your interlocutor couldnt say the same on his side ^^
 
oh, also, the Bose headphones double as a headset
they have a mic
they have to, because noice cancellation doesnt work without a mic.
 
and I just noticed they are wireless
 
they got wired ones, too
I got the wired ones
 
yeah but 260 is the wireless in-ear price ...
 
Wes
is subspace down
 
6:35 AM
@Wes o/
 
Wes
yo
 
moin
 
@tereško I did it too :-)
Guys, is there any similar phrase with "how I look" ?
 
6:51 AM
@PeeHaa Using 3.x instead of master as branch name makes "require-dev": { "amphp/artax": "^3" } automatically work, without any branch aliases etc.
 
7:06 AM
hello
 
I am using trying to use rabbitmq to login users to another application when they logged in to the main site. The question is, can i confirm to the publisher that consumer is received the message and made use logged in?
 
7:26 AM
@Shafizadeh cool
how are your coworkers receiving it?
 
@tereško we all are using the same network .. and all of us have made a remote to the server by using server's local ip
I mean we are on the same network
I don't know why I cannot explain what I mean correctly :-(
 
no, I meant, what do they think about it
 
@tereško ah .. they just said it's awesome
 
Morngin
 
@PeeHaa o/
 
7:29 AM
it should solve your "oh fuck, bitbucket is dead again" problem
 
@kelunik k will test. Does that work with amp v2?
brb meeting :(
 
@PeeHaa 3.x? Yes.
 
Also the rc?
 
Sure.
 
@tereško yes exactly - plus losing codes because of overwriting by my co-workers
 
7:31 AM
k hopefully can make some time after lunch
 
@ircmaxell I was only of by magintude or two :D
 
7:59 AM
mornes 11 o/
 
indeed
 
8:23 AM
mongrin
 
moin
 
moin!
 
o/
 
user4962466
monin
 
Good weekend erryone? Quite a gamey one here, made sweet progress in bloodborne and have progressed further than I have previously in factorio
 
8:31 AM
acceptable
at best
 
Hi
Does anyone know if there is a difference between "class_alias" function in 5.3 and 5.4+?
It appears that class_alias("\A\B\C", "\ABC") doesn't work in PHP 5.3 :|
 
It may be to do with those leading slashes
they shouldn't really be there
 
But class_alias("\A\B\C", "ABC") works fine and (i'm not sure) it creates a ABC at the root level on namespace hierarchy
regardless the current namespace from "use"
@DaveRandom i think so but I'm not sure if "class_alias" really creates an alias on the top level
 
It works with absolute names
it doesn't pay attention to the namespace under which it was called
same output from 5.3 -> 7.x
@Robson fyi stars are global, i.e. everyone can see them
 
Anonymous
mornin
 
8:38 AM
they seem like they should be a private bookmark system but they aren't
 
@DaveRandomi I shoudn't use stars?
It was my way to say "thank you" :)
 
if you want to bookmark a conversation you can use the "create a new bookmark" option under the "room" menu
@Robson no worries, the only issue is that everyone can see them and they don't make a lot of sense without context. They don't work like upvotes :-)
you're welcome though :-)
 
Thank you for explanation :)
 
morning
 
8:41 AM
@PeeHaa Boo! The message exceeds the 140 character limit. :-(
 
Sure. Also be against me @Jeeves
I can have that on monday morning
 
@PeeHaa I'm not against you.
 
nvm bitch
Just go elephpant or something
Day 5 of parsing html and pdfs
Today is going to be great
 
@PeeHaa you're the bitch
 
@PeeHaa parsing PDFs?
much pain. such sadness. very no. wow.
 
8:49 AM
well, fuck, it's Monday and I have go to works
 
@DaveRandom Yes :(
lol wat
Who's controlling the bot? O.o
:P
I hate you
 
:-P
couldn't resist
 
:D
Really lost it for a moment there
:P
Anyway back to parsing mails and pdfs
 
9:08 AM
> InnoDB: page_cleaner: 1000ms intended loop took 22363024ms. The settings might not be optimal.
 
"might"
 
Almost as much understatement as:
> the war situation has developed not necessarily to Japan's advantage
 
9:25 AM
hey guys
anyone here?
 
@PeeHaa Damn man
 
@tereško this message was flagged for some reason
probably the "fuck" in it
 
Is it possible to run a socket server on a shared hosting plan?
 
Stop flagging. Jesus
If you are bothered by it just get out
 
@programmingandroid sure.
 
9:28 AM
how @FlorianMargaine?
 
just start it?
 
@MadaraUchiha we could use some help here with a flagger
I blame @programmingandroid
If not I blame the other one
 
I wouldn't
 
but can you access the terminal on a shared hosting?
didnt do anything @PeeHaa
 
@programmingandroid depends on your shared hosting provider.
some yes, some no.
 
9:29 AM
Can you do it on Godaddy?
 
no idea
 
ok cool thanks
guys, whats ssh?
can you run a socket server if you get SSH access?
 
@tereško what are you doing at work?! codding, huh? so why not enjoying?
 
@programmingandroid I think you should read catb.org/esr/faqs/smart-questions.html#goal
 
ssh is a secure client / server scheme which allows you to connect to a remote server, spawn a login shell on on that remote then forward keystrokes to that shell and receive the output back on your terminal . you can forward X server data streams in some cases too
 
9:38 AM
thanks @Sjon, @the_velour_fog
 
@Shafizadeh because whether outside is nice, but at work it's like an oven
 
oh, the cooler is broken at work?
 
I'm not 100% sure, but I assume it works
it's just that our offices are on the top floor, and there are a lot of skylights (type of window)
 
ah .. I see
 
@FlorianMargaine I must have offended some fragile snowflake
 
9:45 AM
anyway, coding has enthusiasm and motivation enough to ignore hot weather
 
Anonymous
@tereško that's racist.
 
@tereško he ended up flagging me and peehaa too
@JayIsTooCommon do you identify as a snowflake-kin?
 
for fuck sake
 
Anonymous
:D
 
@JayIsTooCommon reminds me of youtube.com/watch?v=uFr6P2BtE3k
 
9:58 AM
If anyone is good at spotting C cast/size errors......this code almost certainly has a bad assumption about two different things have the same size.
Also, why it's changing between MagickThreadValue and MagickThreadKey is a mystery...
 
> AcquireQuantumMemory
heh
 
10:14 AM
@PeeHaa Caught me during lunch
Do ping if happens again
 
morns
 
@MadaraUchiha tnx
 
morning
 
10:31 AM
Guys
does anyone know of a project using multiple rooms, communicating in real time using sockets?
 
5 messages moved to Trash
 
^ ?
 
Oops, that should have been !!remove 1. @PeeHaa
 
!!version
 
10:33 AM
@programmingandroid Yes. github.com/Room-11/Jeeves
 
is it made using php @kelunik, or socket.io?
 
@programmingandroid PHP.
 
ok cool thanks @kel
 
Nobody likes JS.
 
yeah
have you uploaded this project somewhere @kelunik?
 
10:38 AM
@kelunik Well, JS doesn't like anyone, either
 
Hi. I have a PHP CLI program running a UDP server (socket_create(AF_INET, SOCK_DGRAM, SOL_UDP)), but the server is not port-forwarded and I don't think anyone can connect to it. Nevertheless, in a socket_recvfrom() call running in a loop, I got the error "Out of memory (allocated 16777216) (tried to allocate 69632 bytes)". Has anyone got an idea what might have caused it?
 
Ugh, gotta fix this up. The local virtual servers for devs have a lower php version than production lmao.
 
Also, my socket_recvfrom() call only reads 65535 bytes, but it tries to allocate 69632 bytes. Is this abnormal?
 
@programmingandroid It's running in here. @Jeeves is our chat bot. I guess you're looking for server-side?
 
10:42 AM
@kelunik Aww.
 
:p
 
@programmingandroid Well, I had that up once, but no longer. github.com/kelunik/chat
 
cool
thanks man
 
I have a new version locally, but it's not pushed yet.
 
10:44 AM
@programmingandroid Un pregunta.
 
The version that's there is kinda PHP 7 compatible, bot not really. It only works with some PHP 7.0 alpha or maybe even pre-alpha. :-D
I don't remember what the issue was, I guess it was before the BaseExceptionThrowable rename.
 
11:16 AM
@kelunik I just watched the JS Event Loop talk. I get it. They defer stuff because the browser handles async calls in a separate thread before pushing the callback onto the callback queue. In PHP, do. we do that stuff in a separate thread?
(Oh and the event loop just pulls stuff from the cbq onto the execution stack only when it's empty)
But what about in PHP?
 
@Jimbo Usually not really, but kinda. The non-blocking I/O operations are handled by the kernel / network card, which can be seen as threads.
@Jimbo Yes, that's the same in every cooperative multitasking solution. Other things will just be executed if the scheduler (event loop here) gets to run again.
 
@Jimbo It's worth noting that before ES6 (with the introduction of Promises), JS was a completely synchronous language.
It was up to the platform to implement the async part.
 
@MadaraUchiha No, not really. The same thing has just been accomplished with callbacks before.
 
For example, Nashorn (The JS engine run in the JVM) uses JVM threads to perform asynchronous actions, and has no event loop.
@kelunik A callback isn't inherently async.
 
@MadaraUchiha Neither are promises.
 
11:24 AM
[1, 2, 3].map(x => x + 1) here's a callback that's always called asynchronously.
@kelunik They are, as they're defined by the ES specs.
In the ES specs, Promises are described as asynchronous primitives
Also, in JS, a Promise's .then() (which you use to describe what to do when the promise fulfills) is defined to always run asynchronously.
 
@StefanoTorresi Yes, that's correct
A Promise constructor runs synchronously (and may have async operations)
But using the Promise is always async.
Promise.resolve() // resolves synchronously
  .then(() => console.log('then'))

console.log('outside')
'outside' is guaranteed to be outputted first
Even though Promise.resolve() returns an already resolved Promise.
Before the concept of Promise in ECMAScript, there was no mention of async
It's the browser (or node, or nashorn, or whatever) that provided that particular feature.
Not the language itself.
Now with Promises and async functions, the language itself has async concepts in it.
 
@MadaraUchiha They are also async primitives in Amp, but aren't executed always async there. But yes, then() needs something to run it always async.
 
@kelunik The reason this decision was made was for error handling
You don't want to have to do something like this
try {
  maybeAsyncPromise()
    .catch(e => { /* handle error */ })
} catch (e) {
  // handle error here too
}
Just because you don't know if an error would be thrown (or a value returned, for that matter) synchronously or asynchronously.
 
With a sane promise implementation you don't have to do that.
 
11:31 AM
Also it's there to solve one of the biggest callback problem
console.log(1);
maybeAsync(function() {
  console.log(2);
});
console.log(3);
In what order does this execute?
The answer is it depends whether the callback is executed synchronously or asynchronously. It could be 1 2 3 or 1 3 2.
With Promises, you always get 1 3 2, even if maybeAsync() returns a Promise that resolves synchronously.
 
@MadaraUchiha Which is no longer a problem if you just use coroutines.
 
@kelunik Yes
The reason it's not like that to begin with is because of politics and legacy.
They weren't able to push async functions directly into the language
Because of too much pushback at the time.
So Promises as a low-level primitive were a compromise, then came async functions.
 
Which is quite funny, because everything worked already async. ^^
 
Today, the only new Promise constructors you should use is when you promisify a non-promise based API to Promises
 
What I'm getting at is JS uses web apis provided by the browser as separate threads. But if I want to code something async, I don't write kernel or network card code. What, likethose web apis, could I write? Trying to see it in PHP words
 
11:35 AM
The rest should be async functions.
@kelunik There are still major pushback against making the node core API (like fs.readFile) to return a Promise instead of accepting a callback.
Mostly due to post-mortem concerns.
 
Anonymous
!!wotd
 
@MadaraUchiha I'm not sure what's your point though, btw. What @kelunik said is just that JS had asynchronous operations implemented via callbacks even before ES6, is that incorrect?
 
Anonymous
!!uptime
 
@MadaraUchiha There are a few more cases, but basically, yes.
 
@StefanoTorresi Yes
But the distinction is important here.
You had no language-level guarantee that your callback would run asynchronously.
 
Anonymous
11:37 AM
@DaveRandom @PeeHaa the elephant man be gone
 
@StefanoTorresi Yes, but @MadaraUchiha is right that the language itself (as in the spec) didn't have that.
 
The language itself is read top-to-bottom and nothing can interrupt you in the middle.
There are no threads.
 
well neither does PHP, does it?
 
Correct
 
Right.
 
11:37 AM
The major difference is that PHP's event-loop based async mojo is implemented in userland with libraries like Amp
And JavaScript got it "for free" from browsers
Even though it wasn't a part of the language.
You could, technically make a completely conforming ES engine implementation that didn't have a shred of async in it.
(Until ES6 that is)
 
okay, but saying that async was being done without promises and with callbacks is not incorrect, how did jQuery.ajax work then?
 
@StefanoTorresi It uses XHR, which is a browser API, not a language one.
 
@StefanoTorresi By browsers providing the APIs, but not the spec.
 
Every single API you are familiar with, which provides some sort of async in it, is not part of the language
 
Anonymous
wiki.php.net incredibly slow for anyone else?
 
11:39 AM
That includes setTimeout and setInterval
 
ok, but that's more or less the same as a userland library providing an event loop and a promise implementation, or even coroutines as amphp does.
 
@JayIsTooCommon I can just use wiki2.php.net :D
 
@MadaraUchiha so when you add something to be executed by amp, it defers it into a separate thread?
 
@Jimbo Ideally, you don't care how it's executed in the background.
Although I'm not familiar enough with Amp to tell you how it's done
I know that at the bottom line, NodeJS for example uses libuv, which at the even bottomer line uses OS threads.
 
@MadaraUchiha so why would I care how XHR was implemented by the browser? :P
 
11:41 AM
But that's completely transparent from your perspective.
 
That's what I'm getting at I guess, libev throws stuff off into another thread so it doesn't block the main loop?
 
@StefanoTorresi Well, because up until recently, you had order-of-execution problems if you didn't read the docs and knew exactly what was being executed synchronously or asynchronously.
 
But, why does blocking stuff happen if that's the case
 
@Jimbo What do you mean?
 
@Jimbo Well, depend on the implementation you use. If you choose the libuv extension, everything works just like in Node.
And yes, that:
3 mins ago, by Madara Uchiha
@Jimbo Ideally, you don't care how it's executed in the background.
 
11:45 AM
but it's good to know :P
 
@MadaraUchiha JS example: when we call something async it's a web api, that actually runs in a separate thread, that handles it so it doesn't block the main execution stack. When it's done the callback is placed in the callback queue to be executed, and the event loop is waiting for the call stack to be empty before moving the cb from the cbq into the call stack to be executed. What I need is that exact paragraph, but in PHP terms, because we don't have web apis
 
@Jimbo Because not all operations are thrown into another thread, just the non-blocking I/O ops.
 
@kelunik and it's in userland the decision is made to throw into another thread or not?
 
@Jimbo Yes.
 
Fuck, I think I'm getting it. A bit
 
11:47 AM
@Jimbo There are multiple ways to do that. One is using threads, that's what (according to @MadaraUchiha) libuv does. eio does that, too. Another solution is to use the kernel's non-blocking I/O features and just poll for read- / writability.
 
Even in JS, you need to do a lot of weird things to do things in a truly async way yourself.
You want a file operation? Node provides that for you. You want an HTTP request? The browser/node provides that for you.
If you tried implementing it yourself, you wouldn't be able to do it async very easily.
It uses internal node APIs that talk to libuv to do it.
(Or internal browser APIs that talk to the OS and create threads)
In JS at least, this is completely abstracted from your eyes. Especially with the advent of Promises.
 
I see. So when we tell amp that we want to do something on-
nonblocking, it calls libuv which handles the creating of a thras
Thread*
 
What does Amp use @kelunik?
 
@Jimbo ftr default implementation of react and amp loops are akin to python asyncio, i.e. single threaded select stream pools.
 
Does it use libuv like Node does?
 
11:51 AM
@MadaraUchiha there are multiple implementations.
https://github.com/amphp/amp/tree/master/lib/Loop
 
Ah I see where its calling these libs now
 
@MadaraUchiha stream_select (PHP native), libuv (uv extension) or libev (event and ev extension). And maybe eio for threaded file system access.
brb, forgot to buy milk for the coffee...
 

« first day (2410 days earlier)      last day (2552 days later) »