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

user1804599
00:03
What is the PECL logo meant to resemble?
user1804599
A gherkin?
cucumber
user1804599
I see.
user1804599
Same species. :D
user1804599
00:05
I like the PECL web design.
user1804599
It's how I designed my websites ten years ago.
user1804599
.sidebar { border: 1px gray dashed; } <3
00:44
@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).
(see full text)
user924016
00:58
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
user924016
I guess it could also be called a doc
user924016
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.
user924016
@Julix I never noticed the developer docs
user924016
01:04
I only used the codex to figure how to use filters and hooks and find security issues
user924016
Btw. when you found you way through the C code
user924016
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
user924016
Well happy hacking to you
Thanks, have a wonderful rest of your long weekend (if you've got that too)
user924016
01:09
Ive rested for 3 weeks
user924016
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
user924016
thanks
01:46
@tereško ^^^^
Anonymous
wtf!
Anonymous
Ah, 4K views ..
02:01
yeah, overall decent revenue, just not on that video
Anonymous
Yeah, I thought initially it was one of your popular videos with +200K views
04:06
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
Wes
04:23
@SterlingArcher launch a php process starting with sleep() ?
use pthreads?
oh interesting
I wonder if that's the most smart thing to do
04:58
posted on May 22, 2017

New Cyanide and Happiness Comic

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

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/
06:01
@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
06:02
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.
06:06
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
06:08
@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.
06:14
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.
06:18
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 ...
06:24
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
Wes
is subspace down
06:35
@Wes o/
Wes
Wes
yo
@tereško I did it too :-)
Guys, is there any similar phrase with "how I look" ?
06:51
@PeeHaa Using 3.x instead of master as branch name makes "require-dev": { "amphp/artax": "^3" } automatically work, without any branch aliases etc.
07:06
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?
07:26
@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/
07:29
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
07:31
k hopefully can make some time after lunch
@ircmaxell I was only of by magintude or two :D
07:59
mornes 11 o/
indeed
08:23
mongrin
moin!
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
08:31
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
08:38
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
08:41
@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.
08:49
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
09:08
InnoDB: page_cleaner: 1000ms intended loop took 22363024ms. The settings might not be optimal.
Almost as much understatement as:
the war situation has developed not necessarily to Japan's advantage
09:25
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.
09:28
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.
09:29
Can you do it on Godaddy?
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
09:38
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
09:45
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
09:58
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
@PeeHaa Caught me during lunch
Do ping if happens again
user924016
morns
@MadaraUchiha tnx
morning
10:31
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
@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
@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
@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
@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
@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
[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
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
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
@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?
Right.
11:37
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
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
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
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
@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
@MadaraUchiha there are multiple implementations.
https://github.com/amphp/amp/tree/master/lib/Loop
@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 (2762 days later) »