« first day (3166 days earlier)      last day (1789 days later) » 
00:00 - 16:0016:00 - 00:00

oh that's just depressing
I have enough horror stories of my own without getting other people's as well
 
4:16 PM
@DaveRandom Just tell them gdpr said no if you somewhat apply to the gdpr. It a cool argument for such things.
 
no no no, you are applying logic and reason to the situation
 
I told 2 customers i wont make any of their password plain they can argue whatever i wont make that and i even wont md5 in their favor
 
if that would work then "if you do this then you are definitely going to get hacked" would also work
 
Yeah but the technical details are often "complicated". If the customers see legal problems they fix it right away most of the time.
 
oh there are legal problems, don't worry about that :-P
 
4:18 PM
:P
 
seriously, I can count on one hand the number of people I have met in my entire life who I genuinely hate. This woman made that list within like 2 hours of first meeting
whatever, it's 5.23 so I am going to crack an office beer, watch Archer and fuck it off until tomorrow
 
I hope she paid enough beer to treat yourself :3
 
she hasn't paid a single invoice yet, saying that the job is incomplete, one of the things she cites for this is that she is still receiving spam emails. The spam filter on her mailbox catches over 3000 spam emails a day, it misses maybe 5 or so a day
I also probably shouldn't be saying that in a public forum, financial stuff is not in my job description but I happen to know the state of the account because I had to fix something on the accounts software last week
I am waaaaay past caring at this point though, literally none of this is my problem
I mean, I've had to fix a bunch of stuff because I was told to, but aside from that none of it is my problem
 
I also wonder how much i can talk about if i dont talk about the customer. I rant all the time while workin in other channels. I dont care if its not something about numbers and so on.
 
I am an engineer, I just want shit to work
 
4:31 PM
But i got also customers who thinks im so trustworthy they give you all the creds to google/banking after 1 hour working together.
 
it's less that they think you (or anyone) is trustworthy, more that they don't understand the consequences of that
 
Just make she happy and write a big invoice then wait
 
I wrote about 3/4 of an article about why you really need 2fa for email accounts the other day because I am fed up of explaining to people that if someone gets into your email they can reset the password for basically everything
I would have though it was fairly obvious but I guess not
 
@DaveRandom my fault? :P
 
I need sleep and blood sugar (probably in the opposite order)
@Tiffany I must regurgitate that rant once a day tbh, don't worry about it :-P
 
4:34 PM
A good tip is also to write opensource code. So you can run away with your good work if something else is blocking
 
it's fair enough if people don't have the technical background, but some things are just logic
you don't just offer your house keys out to random people in the street
 
i remembered how hard for the crypto community was the step to 2fa. And they are "pro internet users"
 
I still need to get my yoga instructor to change her passwords and use a password manager, but she needs to purchase a new computer because hers is too old to upgrade Mac OS on
I can't change the computer's password, because it can't connect to Apple's servers to be able to change the password via Apple ID (at least I assume that's the issue, judging by the messages I read in the system prompt when I tried resetting it in the restore option thing)
 
Basically it got implemented everywhere after they got hacked the first time. Now double the offer for 2fa for the customer.
 
@user3655829 lol nothing related to crypto is anything near "pro internet users" from my experience :P
 
4:38 PM
@PeeHaa Dont u think they got more experience with computer as the generic old office guy/woman?
i think so
 
@Tiffany it's BSD though, there must be some way to do it outside the OS?
(like chntpw type thing for OSX)
 
maybe, I dunno
 
never looked into it, maybe there isn't
 
I have to reset the password, she doesn't remember it. The way how to do it through Mac OS is by Apple ID. There's another option in the ... thing I can't remember the name of, but it requires opening before the OS boots, and that won't work either.
 
@user3655829 Yes, but there is kinda a gap the size of the grand canyon between an old woman and a pro internet user
!!man chntpw
 
4:40 PM
@PeeHaa Command not found. Have you tried Windows instead? It's great and does all the things!
 
See @DaveRandom!
 
lol the irony
 
Internet Recovery
 
chntpw is one of my favourite tools for making you look really good in front of users
 
is it windows? :p
 
4:41 PM
you look like some sort of hacker genius
 
oh, oh, oh, we get fiber today \o/
 
ah is it one of those let me insert my floppy disk and fix your account through magic and hackery without having to log in kind of things?
 
it's a live bootable linux kernel with an application that can blank out passwords in the SAM file
 
Bill is going down by 10 USD, and speed is increasing from 150 Mb/s to 1000 Mb/s
 
Yeah. That is hackery++
 
4:43 PM
so if someone has forgotten the password for a local user account you can just reset it to empty
 
Been there done that. They are still talking about it
 
I used it literally yesterday, permanent resident on my pen drive (it's only 18MB)
unfortunately it doesn't play nice with UEFI though
 
Good guy uefi ;)
 
I am increasingly coming to the conclusion that UEFI is only useful for MS/Apple to make it harder to put multiple OSes on things
 
Meh
Isn't that fixed for most common things by now?
@Wes do you have any favicon laying around which resembles something something feed(rss or otherwise)? :-)
@DaveRandom Given the times I dicked around with different OSes on the same machine are loong gone
 
4:48 PM
uefi is not safer than before after they had to give out they signing keys. Now it is only there to bother around.
 
Has anyone ever return a Generator in a PHP extension (C)? So have a function from the extension yield values.
 
@PeeHaa yes indeed, but removing the ability to live boot is hard to justify
@Jasny-ArnoldDaniels wouldn't you just return an Iterator implementation instead?
look at PDOStatement
or maybe don't, it's almost certainly horrifying
Generator is just syntax sugar over iterator
unless you need to send values back in/return a value at the end
 
@PeeHaa just curious, is it a no on contract work?
it's fine whichever way, just curious so I know if I need to look elsewhere
 
@Tiffany Errr right. Forgot about that in E_TOO_MANY twitter streams. WIll reply later tonight if that is ok :)
Probably a yes
 
@PeeHaa sure
thanks
 
4:52 PM
tnx for considering pieterhordijkinternationalincorporatedlimitedgmbh :-)
 
rofl
partially a German word
 
:p
 
Just sayin'
 
@DaveRandom I don't really want to create a whole new class for each function.
 
@DaveRandom heheheh inb4 domain sniper just got the most useless domain ever
 
5:03 PM
@Jasny-ArnoldDaniels not sure if you do tbh, and either way you'd have to create a separate set of function handlers, I've never messed about with the internals of iterables
 
@DaveRandom pieterhordijkinternationalincorporatedlimited.gmbh is available too!
 
spoiled for choice
 
:P
 
@Jasny-ArnoldDaniels my point is more that afaik Generator is a mostly userland thing which deals with converting yield to an iterator, since yield is inherently not going to work in C code, it's probably not a useful line of enquiry. I'm far from an authority though.
 
> I'm far from an authority though.
I concur
 
5:07 PM
I'm an authority on being better than @PeeHaa in every way though
<3
 
That's also a fact
 
we need to do beers again soon. Stop being a long way away
 
I know :(
 
Come to my country, we have racism. And chips.
and beer you don't like
 
I can take the shitty beers as long as there is racism and chips
 
5:10 PM
right, I am watching archer and then going home
 
Anyone knows about a static code analyzer tool to check if a project contains abstract class(es) which are never extended from?
 
How big is the project?
 
@DaveRandom You mean in files?
 
I would be tempted to just load it in PHP storm, search the codebase for abstract and then look through them manually
if the number of abstract classes is, say, <100 that would probably be faster than pissing about setting up some tool
 
array_search() should accept a callable as $needle – #78176
 
5:13 PM
you don't even need to look at the heirarchy, just look check if it has the little blue arrow
 
@DaveRandom I might have a tool at hand for listing abstract classes only.
 
shouldnt the new dead code analyzer in phpstorm show that?
 
This should give me a number at least of those already.
 
there may indeed be something in all the extended inspections
also you could probably throw a plugin together pretty quick, if this is likely to come up again
/cc @Wes ^:-P
 
i need some too :/ for extending autocomplete and typehinting meh
 
5:17 PM
that's probably quite a bit more complicated, but my brief experience tells me it won't be the least pleasurable thing you've ever done (which is high praise for something like that)
 
@user3655829 where is it?
@DaveRandom this is how I found it, just looking if this type of flaw is a pattern there.
grep shows 79 abstract classes.
 
that's like 5 minutes tops
 
^ willing to bet that's more than 5 mins :-P
 
@DaveRandom Well for now, yes, but if I'd like to check that in the build... .
 
5:19 PM
@DaveRandom yes but these 2 minutes more are a good investment into the future!
 
ooooh, scripting PHP storm inspections as part of a build...
brb building stupidly complicated shit no-one will use
 
hey.... there are people who run phpstorm in the ci
 
...
....
.....wat
 
the people wondered if the licence is okay with that. I remember the answer of jetbrains. "Uhm... we dont care"
:D
 
yes Jetbrains are really really good at making me feel OK with giving them money
 
5:21 PM
They wont make a new licence for the 3 crazy people
:D
but it had its purpose. And if they are happy with it.
 
@user3655829 I think inspections is available in CLI now. Maybe 2019.1 or EAP. It was not earlier (there is only very little in the CLI).
@DaveRandom Me too, even my licensed got borked when I went offline sporadicly in the train. Re-entering the key every X-Y minutes. A PITA. Finally I got the offline key, should have done that from the beginning.
 
oh interesting, never run into anything like that but I can totally see how that would screw with licensing servers
 
So Unused Declaration Phpstorm inspection is running (for class only), let's see if it uncovers things ...
@DaveRandom Well I didn't bring that support ticket to an end yet, but what has been written / suspected it has to do with me using trial, EAP, OS and then standard licensing in the end.
Anyhow: Just download the offline key if you got a license and use it. Otherwise there are checks for the license somehow continuesly. I just blocked phpstorm.com etc. in my hosts file just to keep things in order.
 
noted, although tbh it's not a problem I'm ever likely to have since I don't even own a laptop :-P
 
i had no problems but i think i just entered the key the first time i got it.
Now it works almost 7 years in the train daily. I had no problems at all since the start.
 
5:59 PM
Has anyone here learned machine learning themself? I have no point to get when to use which algo. But the math behind is totally ok but i dont know how a line on a plane could help me choose an algo for my problems... I think im going to a university course next month (im no student there but i hope they dont care) if i dont find any internet resources which explain this easily.
 
6:13 PM
@user3655829 It does not look like Phpstorm undefined inspections finds classes w/ that problem (abstract class never extended). Did run through w/o any findings.
 
6:47 PM
When I start working with CSS I become stupid sometimes.
 
7:11 PM
do you have to be on local branch x to be able to push commits to remote branch x?
I was on a local branch y and couldn't push to remote x although they have the same commit log, apart from new local commits in y
 
no
you can see your PWD or current working set as the closest parent folder with a .git folder
and all the commands are independent stages
you only change the .git folder or in this situation you publish the new things in .git
but the hashes must have match
 
@JoeWatkins Dude, you do not say that something might need to go through the RFC process unless someone actually asks for it
 
Wes
my allergy to people is getting more severe lately twitter.com/bare_water/status/1140197270526275584
 
@NikiC well I don't agree that it should be enabled by default, and don't think we're going to come to an agreement without involving everyone in the conversation ...
 
Wes
@DaveRandom i start flat out, then i get scared at the first corner :B
 
7:28 PM
@JoeWatkins not enabling it by default is the status quo and needs no further argument
 
but but ... the dude keeps arguing anyway
 
sure...
 
i have 3-5 endpoint who catches all the exception like authException rightsException 404Exception etc
this try/catch block is duplicated code
how can i fix this? This should be easy :/
almost all the catches are redirects to cool fullscreen lego man error pages :3
 
A other answer except an rfc? :X
 
7:42 PM
> Implementation: Merged into php-src for PHP 7.1
kids today....
 
but i wanted to catch the same exceptions at diffrent points
not more exceptions
 
oh, I thought you meant multiple catch exceptions in the same place.
 
my code looks like catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()()catch ()() and the same at 5 diffrent places
 
Either make it a function, or what I do in my binding to the slim framework is allow setting what to do when particular exceptions don't get caught.
btw that RFC does at least sound like a partial solution for you:
catch (ExceptionType1 | ExceptionType2 $e) {
   // Code to handle the exception
}
 
inside the try is the init of the software
but it could be inited as cli, as index or as content element in something
so i got multiple files with the same catches but inside the try there is diffrent code
 
7:48 PM
If you're not separating your files into those that init the app, and those that do the processing......that might be something you want to look at.
 
i do that
but i have 5 diffrent index.php
the init process is not the same
 
but apparently that's where you exception catching lives. Why not move that down into a function outside of those files?
 
because then its one entrypoint....
i want to function that catches not that code in the try block because thats diffrent
but the catches are the same
i think a magic call is the best php can do
 
function foo1(){}

function foo2(){}

function dispatch($callable) {
	try {
		$callable();
	}
	catch (ExceptionType1 | ExceptionType2 $e) {
		   // Code to handle the exception
	}
}


// index1.php
dispatch('foo1');

// index2.php
dispatch('foo2');
 
8:13 PM
@NikiC I think it looks properly sensible now ?
 
user8678484
I have a Symfony related question and I would appreciate it if you guys maybe could check it out? I've even put a bounty on it.
https://stackoverflow.com/questions/56612348/how-to-join-multiple-entities-on-a-foreign-id-in-symfony-4-using-a-query-builder

Let me know if it's not ok to post such messages so that I remove it.
 
Or perhaps more relevantly, sscce.org . You should reduce your question to be simpler if you want people to answer it.
 
user8678484
While I usually try to do this, it wasn't really possible to do it with this one because people would have asked me to show them all the relevant code if I were to leave anything else.
 
@Doesitmatter Really?
You really need to add all properties of all entities?
C'mon
All those setters and getters?
 
user8678484
I mean I could leave them out in the question but it's what I have in my original code. Is that better?
 
8:22 PM
What would you prefer to read?
Please actually click the link @Danack shared with you
 
user8678484
I guess I get what you mean. I'm going to clean it up right now. Thank you for your advice.
 
It's literally the first item in the list
 
user8678484
8:40 PM
I'm still young and learning so again thank you for pointing it out. I've shortened my questions and hopefully, it's a bit more readable now.
 
8:50 PM
> I would have been forced to patch this reguardless before bringing php 7+ into production.
We can't possibly use insecure software. Also, we currently use software that is out of end of life support.
 
9:13 PM
I have this config gist.github.com/Ghostff/0b415cb3e7725db0f0146bb0289c48f6, can i make behat to use chrome by default, without me specifying it with -p chrome?
 
@Ghostff if you move/copy the extensions under chrome to be under default, does that work?
or possibly, set browser name in default:
Behat\MinkExtension:
      browser_name: chrome
you might also want to check DMore\ChromeExtension which allows behat/mink to talk to chrome directly, without selenium in place, which is meant to make things a lot faster.
 
when i move it firefox trys to use chrome switches and if i set browser_name: chrome it works but the switches doesn't apply
okay
@Danack is there any one similar for firefox?
 
I don't know.
 
10:03 PM
smh I can swear Behat has the worst DOC.
 
 
1 hour later…
11:14 PM
laughs in paypal
 
Wes
laughs in mysql
 
@Wes i find the mysql docs pretty good.....have to limit results to the official website but it's all there isn't it?
 
Wes
they are super verbose
it's not documentation, it's a book
also apache's doc is pretty bad imho
 
Oct 5 '15 at 12:23, by Danack
But as I said, i don't apache.
hey @ocramius..... I meant to talk to you about something at dutchie php. and am now about to fall asleep so probably isn't the best time but: do we really need generics to be implemented in PHP, now that things like Psalm are getting good at analysing code (at least for arrays) to make sure they are being passed the right sort of thing?
 
Wes
static analysis ftw
runtime type checks = overhead
 
11:25 PM
@Danack Yes. Native types are much more convenient than tools that need to run separately from where it is being executed imo
 
@PeeHaa but also multiple orders of magnitude more difficult to implement.
 
@Danack Yes, but that shouldn't be a reason to keep improving a language's type system (within reason)
On top of that: not everything can be statically checked
 
00:00 - 16:0016:00 - 00:00

« first day (3166 days earlier)      last day (1789 days later) »