« first day (2914 days earlier)      last day (2259 days later) » 
00:00 - 20:0020:00 - 00:00

00:25
@bwoebi So why does this fail, then?
@wes did you sort out your composer install problem?
Wes
Wes
i did
but i had to hack it
i still don't know why "it just works" on travis
@Wes that just works for me also. What version of composer are you using?
Wes
Wes
latest
00:43
@Wes that's quite odd. I don't think you should ever get that message doing an install as it's not meant to check the dependencies when doing an install, just install the versions as listed in the lock file.
Is it possible you have some shenanigans going on with aliases of commands?
Wes
Wes
there is no lock in the repo
also nope, i also tried the phar version of composer just to be sure
anyway, i stopped caring.. must be some weird issue that affects only me :B the important thing is that i could workaround the problem
Mar 23 at 8:00, by Wes
Feb 25 at 22:04, by Wes
Oct 6 '17 at 11:24, by Wes
May 27 at 20:38, by Wes
Apr 7 at 9:40, by Paul Crovella
@wes has an uncanny ability to break his tools
ftr i could workaround the problem by adding temporarily "version": "349823.293823" in composer.json
that made composer think the current repo is the latest release, so it didn't try installing others
 
2 hours later…
02:37
evening
memory leak declaring closure in included file – #76982
 
3 hours later…
05:19
@Jeeves shouldn't you use require_once instead ?
05:52
hi guys someone using zend framework 3?
06:43
date('i') returns wrong value for Dublin timezone – #76983
07:23
why in Yii this error throws `Error 500
A session had already been started - ignoring session_start()` even after trying https://stackoverflow.com/a/13760960/5078003
07:38
@bwoebi is it possible to simulate a default value internally, eg. (int $a = 5). Asking because I'm getting "must be of the type integer or null" when null is actually not supported. It's still an optional parameter though.
I can make it work just fine, but the error message and reflection aren't quite right.
@rtheunissen what's your arginfo?
oh
do you get that issue during zpp or arginfo?
Method [ <internal:decimal, ctor> public method __construct ] {

  - Parameters [2] {
    Parameter #0 [ <optional> $value ]
    Parameter #1 [ <optional> integer $precision ]
  }
}
Does that seem right? I'll try use a null value for that int
"must be of the type integer, null given" nice, I think that's what I want.
All I had to do was make the param not-null in the arginfo
:-)
Sorry I got it just as I asked.
08:00
librate to remain poised or balanced.
08:12
morns
git mernings
08:31
@LeviMorrison you used zend_error_noreturn() instead of zend_error() for an E_DEPRECATED
which obviously fucks the stack up as $rbp is not backed up then
Which, in debug builds, is not optimized away ;-)
@bwoebi when implementing do_operation, if I want to disallow assign ops like +=, |= etc, and I'm checking if result == op1, how should I handle the ref count for result/op1?
Getting a memory leak but I can't track it down :/
@rtheunissen throwing an exception?
Yup
I'm seeing 3 calls to free_obj when I'm only expecting 2
@rtheunissen I don't think this is safe. a) overloaded assign op does use different op1 and result and b) we might optimize TMP = ADD $a, 1; ASSIGN $a, TMP into $a = ADD $a, 1 in opcache
08:47
How do you suggest I guard against assign then?
Could I just return FAILURE in do_operation and not touch result?
@rtheunissen you cannot really
@rtheunissen assign ops are really meant to be a lightweight way to write $a = $a op $something
@rtheunissen why do you even want to?
It's an immutable object.
Can do decimal + decimal, but can't += a decimal
Wait am I misunderstanding assign op?
Doesn't it modify $a?
@rtheunissen Yeah, you should not modify the object, but create a new object then
@rtheunissen $a, the variable, yes, $a the value, no.
Semantically, $a += 1 and $a++ are the same, no?
@rtheunissen no
in particular not if $a is string
08:57
Right, so if I say $number *= 2, that is semantically equivalent to $number = $number * 2?
@rtheunissen yes
Okay I think I can work with that.
Thank you again
OH: "Every time someone adds '🚀 Blazing fast' to their GitHub repo, god kills a puppy"
@rtheunissen yup
09:43
wha gwan
@DaveRandom Hey Chris :)
How's it going?
Well I'm technically alive, so that's decent
Usually aye :)
I'm OK, in Barcelona, about 10 metres behind @FlorianMargaine
Oh nice. Hot?
09:47
I'm still as sexy as I always was
@bwoebi interesting this doesn't work if op1 is a reference. Should I just deref it and warn, is that safe?
Mornbo
@DaveRandom when were you ever sexy? :P
@DaveRandom Will they let you wear that one-piece on the beach?
@mega6382 Don't provoke him. You'll go blind.
09:48
@Fabor what? his banana hammok?
If only.
@Fabor I don't need no stinkin' permission, what do you think this is??
@DaveRandom mankini?
I'm not sure the spaniards are ready for that
It'll be Germans that need to be ready for it soon ;)
09:49
at the very minimum I am going to need someone to provide me with a proper cup of tea first
@DaveRandom what are you doing in Barcelona anyway?
company summit
Get a nice paella while you're there.
@rtheunissen umm, I thought the assign op would deref it for you?
@Jimbo You still hunting remote?
@DaveRandom sup?
Does anyone know of a library like github.com/ivanakimov/hashids.php for converting raw ids to "random" strings that doesn't require those extensions?
@Fabor For a very good salary, yes. Otherwise, I already have an offer non-remote that I'm gonna take :-)
@bwoebi not what I'm seeing in my test results. If I deref both op1 and op2, success.
function times2_ref(Decimal &$a) {
    return $a *= 2;
}
Actually.. omg, sorry man. This is so obvious.
@Danack howdy partner
@rtheunissen hm? :-D
09:56
@Jimbo Nice. Where did you find them?
down the back of the sofa
It's all benches here. Benches with some bedding on top.
@bwoebi what I'm seeing is expected behaviour because it's $a = $a * 2
Cool this works, thanks :D
Fwiw, making prec per-number, not shared
@Fabor LinkedIn ha, they liked me enough that they skipped all the coding challenges with me, no fucking hackerrank
I'll announce in due time of course
@Jimbo Congrats. Networking is always the best way.
10:17
@Jimbo I wish, someone would like me that much one day. :P and Congrats!
morning
o/
@DaveRandom Oh looksy who is still alive \o/
10:29
@PeeHaa not him for sure, the last picture I saw of him, he looked like death in it :P
10:47
Good news everyone. My new Thinkpad arrived. I will be here more regularly again soon.
@PeeHaa debatable
But yes :-P
@DaveRandom Work sucking life out of you?
@Gordon Welcome back. How is beast™?
Morning.
beast™?
@Gordon which model?
10:52
@mega6382 X1 Extreme
cooool
32 Gig RAM. No way I am paying a grand extra for 64.
@Gordon Bike. :)
11:17
@Tpojka Bike is fine. Got 500km already. Will go to regular inspection tomorrow
Goodto hear. I hope you are satisfied more than expected. ;)
Yeah, thx
11:40
Great morning!
@DaveRandom !!!!
ah nice, he's alive
mornings
12:13
@DaveRandom \o
@DaveRandom is this British for "what's going on?"
@Gordon I just paid off my computer loan about a month ago... this is really tempting...
@Tiffany I don't know why but i don't like laptops with the size less than 17"
@mega6382 17" is heavy as fuck
@mega6382 try carrying a 17" laptop through TSA...
@Tiffany I have carried it through some airports in other countries, but not usa, never had a problem with it
@Tiffany I know, but still, I can't stand small screens and keyboards without numpad
12:29
@mega6382 basically have to shuffle through as quickly as possible. People behind you who want to get through. Usually have to take electronics out of their bags, stick all of various metal objects into pans and through an xray scanner
Fortunately haven't had an issue with impatient people in TSA... but I'm sure it's a matter of time
it's hectic and stressing for me
@Tiffany I never even had to open the bag to be honest, except for once but that was drugs enforcement and not the customs
@mega6382 last time I went through, earlier this year, I didn't have to either, but previous trips I did
I even once stuffed a couple of stacks of cigarettes in my laptop bag, and nobody stopped me for that either
12:50
Is it allowed to create files with same names (but different case) on Linux?
I can't do it on Windows.
@akinuri I believe so, yes. Linux is case-sensitive, Windows is not.
@Tiffany :(
@akinuri Technically you can do it on windows too afaik
@PeeHaa how? with double quotes?
ntfs is actually case sensitive
You probably just cannot do it from most interfaces
12:54
Some user uploaded images with same names with different cases. They are accessible on the server. But I can't download the upload folder on the server to my local computer because files will be overwritten.
And I'm on Windows.
You are handling your uploads wrong
You shouldn't store them using client sent names
You mean the name handling? If so, I have no say in the matter.
It's wordpress.
That's your first mistake :P
:D
I know
:-)
12:57
@akinuri and everything you did with that wp installation is also a mistake
Doesn't wp change the actual name of the images though on upload?
I have to move a user's files (DirectAdmin) to another user and to do that I need to download them first. If I do, images get overwritten.
I'm not sure if there's an option for that, but initial names remain.
Why do you need to download them first?
@ircmaxell Do you have any recommended reading/resources on Terraform?
I have written a C# application to process backup files. It makes it easier to move from user to user.
12:59
@akinuri can you copy the files with the same names to another folder? like mkdir filesWithSameNames, cp fileWithDifferentCaseButSameName filesWithSameNames?
then download them?
that way it doesn't interfere with any links already associated with those files with same names but different case, and you're able to download them without them getting replaced
@Tiffany That would be troublesome, I think. I'm gonna move files from one user (DirectAdmin) to another. The way I do it is create a backup of the user. Download it. Process (unpack, make appropriate changes in DA user files, in wordpress db, etc., repack) it with a C# app. Upload it back and restore. This works fine.
Once I unpack the backup, images get overwritten.
ah, thought you were doing the download process manually, then using C# to do whatever
@Fabor The docs dude, it's not particularly complicated
Nope. Don't think I can do a quick fix. Image names have to change manually. I counted like 30, but I'm sure there's more. I have taken measures for things (issues) like these, but this is an old user.
Anyway. Gonna find someone to do the labor. Definitely not doing it myself :)
o/
@Danack Can't you just hash them? Or replace with a UUID?
13:32
@Jimbo Cheers. Kinda mixed with AWS atm (Cloudformation).
@bwoebi no just @FlorianMargaine
unrelated to work
13:53
@Allenph signalvnoise.com/posts/439-four-letter-words - you should try to change your pattern to ask a question instead: "What's the problem with just hashing or using a UUID". The answer to which is that it's going to be used in a very busy retail environment.
Which means we want to make it easy to read the IDs out - so having them short, and having control over the characters they can be.
@Danack It's perfectly safe to truncate hashes, not that these need to be particularly safe anyways, but.
I'm not sure if that's true just when taking pieces from the beginning or end, or if you could rip out anything that wasn't considered a "normal" character for you and then truncate.
i'd need to convert from the limited set of characters used in a hash to a wider set of characters to get the length short.
good morning
What's the problem with using random_bytes?
@Allenph for what?
14:07
@Allenph a couple of little ones. As I said the converting to a selected set of characters and back is also needed. But the library is also nice in that it doesn't blindly decode values - so guessing random values will be blocked at the decode step rather than having to hit the DB.
@Danack I might not understand, but isn't having something reversible, short, and with a limited character output set going to be pretty weak no matter how you accomplish it?
@mega6382 Sorry. I should have tagged Danack.
@Allenph I'm guessing security is not an issue for this situation. If I'm understanding correctly, the IDs would be used for product identification, like in an inventory system
no. The id's have a time limited use during a sports event. There will be maybe 200 needed in total at once. alphabet chars (without 'n' or 'i' to avoid confusion and bad words) plus digits (without 0 or 1 to avoid confusion) = 32 chars. 6 character length = 1,073,741,824 possibilities.
A much stronger need for someone to be able to read out the ID number to a customer service agent.
In a noisy environment.
case sensitivity almost doubles the possibilities :)
@pmmaga "UPPER CASE A, LOWER CASE G, SIX, THREE, FIVE, UPPER CASE T"
@pmmaga shouting codes at an event with case sensitivity wouldn't be fun
ah.. I missed the "read out" requirement :P I retract my suggestion then :P
@pmmaga honestly, we're worried about just the 'reading' part for the target environment.
use the entire basic multilingual plane, except digits
wait no, just use emoji
inserts zwj that needs to be pronounced
14:19
Rofl.
Wait, it has to be pronounced?
Now I want to hear people reading out emojis
@Danack Mr Psmith
@Tiffany but it can still work :P
@mega6382 debatable
I can't find anything that can get you less than a 16 byte conversion of a UUID. Interested when you find the answer though.
14:24
@bwoebi Ha. Thanks.
Copy-and-paste error.
@Fabor Yeah, I really think it's one of those well documented things that once you solidly read it, it makes sense. Like the docker docs, and also RabbitMQ is good for thistoo
@Allenph I just installed GMP so I could use that library in the end.
hi friends.
how does "search" function work in any website? where does the app search the inputted text in search box?
I actually had another idea.
@Danack @Allenph Here is a stupid idea, generate a random string using random_bytes, then encode it into base32 and use that as your id. But like i said a stupid idea.
14:30
@Danack I think it would work if you used the fact that your events have time-slots to your advantage. You could reduce the complexity of the actually ID instead of the shortened' ID and still not get a collision.
@ArunRaaj that question is probably too broad for this room. It's the type of question that the only useful answer would take too long to write. I'd recommend just google for examples of it, so you can see how it works.
you could just give me an idea about it. google didnt help
@ArunRaaj have read or learned anything about a search algorithm?
14:35
@Jimbo What about applying the knowledge? Is there really a sort of dev env for this?
thanks,
@Fabor The people I know did this in side projects at home, or learned as they went along
@ArunRaaj I would also like to say that most sites don't use any search algorithm
@mega6382 having a general idea of doesn't hurt though
sure
14:38
unless the person tries to strictly adhere to a search algorithm instead of trying something else that works better
@mega6382 then?
@ArunRaaj like someone already said this is a very broad question, most developers have their own idea of how the search would work on the site. The decision of what to use and how to do it largely depends on the structure of your data etc
@mega6382 if there is a health care application, i type "cancer", the app shows results about doctors who take care of cancer patients, the articles & events that happened in that hospital regarding cancer.
@ArunRaaj Like I said it depends on how your data is structured and stored, so the example you gave could have a few dozens of search implementations depending on where the data is, how it is structured and how it is being retrieved.
@LeviMorrison yeah, I actually had to debug this with instruction stepping and the disassembly :-D
14:46
Wow. Thank you.
I was away for the weekend and so I thought I'd pose the question in case there was some common pattern you guys might be aware of. Didn't intend for you to go through so much trouble, but definitely appreciated it.
@LeviMorrison dunno, took me like 20 min, not the hardest I've ever done
@Tiffany It is for everybody. I have certain types of clothes and shoes I wear for traveling so I can slip out of shoes quickly. I hate taking my belt off. Something about removing my belt makes me feel like I come out looking disheveled.
Guys is it normal for a new contract to state that any overtime is already included in the salary?
As a kinda normal thing, not too much thought on it?
Uh...no...
@Jimbo never seen it myself in any contract
15:05
So Tomcat can't handle a keystore password with an ampersand in it. I spent over an hour trying to troubleshoot why HTTPS and my application server wasn't working... it was because of a stupid ampersand in the password
Like Apache Tomcat?
Wes
Wes
i need to force deep clone an object, that is, i want to clone everything regardless of the __clone handler, also references to self must be converted to references to the clone. can you think of an hack to do that? is it even possible? :B
@bwoebi Build is passing -- thanks.
15:20
@Allenph my guess is ampersand is used as an at-compiler-time macro or whatever those are called ... preprocessor? shrug
Wait do you mean in the config?
@Allenph yes, the server.xml file
Oh, if it's in XML it will probably work with HTML entities.
not worth the effort, removed the ampersand
@Tiffany For a minute I thought you meant it was like not handling requests with an ampersand in a password field.
15:23
> keystore password
Yeah. My bad.
:P
just happy I can finally get this done
What is that site where people on here share executable PHP snippets kind of like a fiddle?
I can never remember the name of it.
3v4l.org
or eval.in
Thanks.
Wes
Wes
15:32
threeveefourL
aka eval :B
eval in leetspeak
Wes
Wes
do you have any php library bugfix or feature or tests you cannot be bothered to do? ping me #hacktoberfest
@PeeHaa y u no make a list like last year
you've changed man
@Wes For some reason I thought that serialize unserialize hack would work on object trees but I guess not.
You could use reflection recursively on an object and build it yourself, no?
Wes
Wes
eh, do you think i can do that given that i have never touched amphp before? :B @kelunik
15:47
@Jimbo Usually with salary it is implied (at least every where that I have worked.) Not that they can make me work whatever but I am required to get the job done- whatever that takes. There is usually a salary exempt and a salary non-exempt; one is salary based on 40 hours and they can get overtime and one is salary and they are not paid for overtime. My experience is based on the US though.
@Wes Time to start then. :)
Wes
Wes
nah. not this time :B maybe hacktoberfest 2019
@Wes sure, why not? :-P
It's not magic
Wes
Wes
bcoz i am dumb?
16:10
@bwoebi If I want to do IPC on windows, do I create a TCP socket or is there a better way?
@Wes only 5 PRs, that shouldn't be an issue in a whole month, huh?
Wes
Wes
i don't want to cheat
what do you mean?
yo @samayo
Wes
Wes
i mean, want to do substantial stuff... in the weekend i've spent 6 hours or so studying phpunit
i have prepared 3 PR
@Wes you already have 1 pr for this month github.com/sebastianbergmann/php-code-coverage/pull/639
and another waiting to be merged
Wes
Wes
16:19
correct
so, just 3 more to go
Wes
Wes
the second is under scrutiny by sebastian :B he is complaining of my abuse of " strings over ' ones :B automated code style checks made programmers - which are naturally pedantic - even more pedantic
yeah I saw that "Please dont replace ' with " here."
@Trowski I think TCP will work out best
@bwoebi Can I use localhost:0 for a random port as I would on *nix?
16:23
@Trowski I think so, but try it.
Wes
Wes
btw, did someone notice code-coverage being faster? you are welcome :B
the third pr is the one with the bigger improvement user-images.githubusercontent.com/4203089/…
@Wes how dare you consuming 4 more MB!
Wes
Wes
:B
@Wes holy crap.
@Wes hmmmm good one. Will ask if @Ekin is up for it too
Wes
Wes
16:28
@Allenph it's basically just a one line change :B
excluding filesystem operations most of code-coverage time is spent on that line
Just because it's a one line change doesn't mean it wasn't hard to find, or didn't have a significant effect.
Wes
Wes
it wasn't hard to find :B the problem is that if you make a mistake you are going to annoy millions of users :B
You at least get credit for the sweat factor multiplier then.
Man I hate Node. I kill the process then it randomly spins up some other more anonymous process for no reason.
@SebastianBergmann using toArray to compare objects seems like a poor choice to me. I can't use assertEquals on an object that overrides comparison. Why not simply use ==, which compares the object's properties anyway?
@mega6382 yo
@samayo haven't seen you around for months, what have you been upto?
Geeze this onion breath sucks -_- lousy raw onions.
Wes
Wes
why are you eating raw onions
Wes
Wes
16:49
^
how is it already almost noon
it feels like 10:00 AM
@Fabor I beleive that fact has been known since the dawn of time, if you eat raw garlic or onions, your breadth will stink :P
Or like my old old boss, small radishes. -_-
Follow up question: why are you smelling your boss' breath?
Wes
Wes
^
16:52
^
@Allenph in a meeting room, everyone in close proximity
@Tiffany Those must be some small meeting rooms :P
I don't know what kind of meeting rooms you guys have but I've never been able to smell my boss' breath.
You could smell it from across the room. Radishes man!
coworker had stinky breath for several consecutive weekly meetings
he was sitting to the right of me
the room is fairly large, but the chairs are close together
16:55
Besides, not like you have to be trying to smell something to smell it. You smell a fart doesn't mean you were sniffing someones butt.
Not always anyway.
Breath is a little different.
@mega6382 nothing much. Thanks two you, I now have 2 messages in this room :)
@Allenph not if the breath is stinky enough
17:48
My area code on my phone is from LA, and I get so many spam calls that start with 310. The thing is nobody legitimately calls me from that area code - so I'm wondering if there's some app that can forward all calls to Lenny that are coming from numbers with a 310 area code
@Alesana lenny?
my area code is 310 as well... I get spam calls from the area code I live in, and 310
hell, I got what I believe is a spam call, from a robo dialler, in Mandarin
18:05
Lenny is an automated system you can transfer telemarketers to. It sounds like an elderly guy and he has automated things he says once he detects a silence. They're pretty generic responses but usually he'll keep the telemarketer going for quite a while
Then when he runs out of things to say (usually around 10 minutes in), he says "I'm sorry, what was this call in regards to again?" and restarts the script
How do you know it usually keeps them going for a while? Can you listen in?
@Tiffany Lol.
Yeah a lot of people do a conference call and mute themselves - I think some people have apps that record it while they're not on the phone
There are countless recordings out there though
He sounds really legitimate
@Tiffany I'm dying - the fact that other people keep taking over is perfect because they don't recognize the prompts repeating
@Alesana I didn't listen to the entire thing... I've listened to so many of these scammers from deeveeaar that they sound so similar now
@Tiffany Haha seriously
@Alesana he has a 24/7 stream on youtube, people will call scammers and waste their time
@Alesana youtube.com/watch?v=P2EaZRXnOVM here's an uploaded recording
18:53
That's awesome haha - those people are doing god's work
19:08
Evening
19:30
\o
19:43
o/
doh! shows over, folks.
00:00 - 20:0020:00 - 00:00

« first day (2914 days earlier)      last day (2259 days later) »