« first day (2792 days earlier)      last day (2169 days later) » 

2:05 PM
Someone tart up my speaking bio please:
> Dan Ackroyd is the maintainer of the Imagick extension and an irregular contributor to PHP internals.

Also, he has a beard.
 
@Danack That sounds right to me.
 
yeah, but probably needs to be more like these: 2018.sunshinephp.com/speakers
 
@Danack Maybe you can elaborate on the beard?
 
@Danack Keep the "he has a beard", it shows personality
talk a bit about the professional side?
 
2:10 PM
"Doesn't enjoy integrating with PayPal."
 
@jjok that doesn't make me any different from anyone else.
 
"Eats vegan babies."
 
> Dan Ackroyd is the maintainer of the Imagick extension and an irregular contributor to PHP internals.

Dan spent the first few years of his career programming video games before moving into developing for mobile phones and selling over priced porn. Since 2006 Dan has been a PHP backend developer developing bespoke applications, including a charity fund raising platform.

Also, he has a beard.
"One of these facts is not like the other ones. One of these facts is not quite the same."
 
Is this Call My Bluff?
 
Nope.
 
2:13 PM
@Danack ooh, "Amateur Lily Savage Impersonator"
 
was it fortran 77?
the language that @Danack learned when studying molecular physics
 
....I got a stalker.
 
:-P
I think I heard it when I was listening one of your talks on youtube
seemed to be a nice small user group
 
@Danack over priced porn?
 
@Ekin ....oh, that talk went terribly. I should have not given it and instead gone home to bed.
 
2:16 PM
:-)
 
@FlorianMargaine One pound fifty pence for a 60 second video.
 
what does that give in normal currency?
 
2 euro.
 
@Danack Sara G's is only one sentence.
 
yeah, but she's smarter than me so doesn't have to try as hard.
 
2:21 PM
@jjok She could just put "I'm Sara motherf*****g Golemon. *micdrop*"
7
 
evenin
 
@Tiffany I would've used @PeeHee rather than @PeeHaa :)
 
@DaveRandom I saw her do that at Starbucks once.
 
Wes
> Former Blues Brother member, now ZZ Top lead singer.
 
I feel like there's some reference I'm missing there
 
Wes
2:28 PM
i replied the wrong message. was for "tart up bio"
 
....they ask for your name when you place your order.
I'll get my coat.
 
@Danack I think something about that long should be fine though. Maybe don't mention the porn?
 
@bwoebi No zend karma, and I wasn't sure if the null check should be present or not.
Basically, what's written is definitely wrong but I didn't know what the right code should be.
@NikiC It seems like __METHOD__ in a function is just __FUNCTION__, which is weird. It behaves like this whether there is a class nested inside of it or not.
Coupled with the fact that __METHOD__ returns the class name when it's not in a function makes it... well, as you put it "bonkers".
If we can trivially detect these weird issues I vote we deprecate/warn and eventually remove them.
 
@Danack one of my favourite internets ever static.fjcdn.com/pictures/Cark_069dd3_5326910.jpg
 
2:45 PM
In the US, it happened twice at 2 different starbucks that when asked for my name and I replied Pedro, they wrote down Bill.. Now, I'm not a native English speaker, but I can't really get how my Pedro may sound anywhere near Bill. If it happened once, I wouldn't care, but twice made me wonder..
 
@pmmaga probably fucking with you. They get bored.
 
@DaveRandom That's friggin' hilarious! =D
 
@StatikStasis explain... it won't open on my end, probably due to work firewall
 
@Tiffany but two different people? The same way?.. I guess it's a possible explanation
 
Can you see imgur tiff?
One second.
 
2:49 PM
@pmmaga no, blatantly using the wrong name for shits and giggles
 
NO! @DaveRandom I was going so fast...
 
@Danack Thanks for the help with the bash the other day, really helped :)
 
@StatikStasis lol and lol
 
@StatikStasis yeh but SO prioritises my traffic because I'm fundamentally better
 
2:50 PM
true...
 
:-P
 
more rep = higher bandwidth prioritization
 
pouts
 
oh it's nothing to do with rep, I was afflicted from a young age with being "a bit good"
 
@DaveRandom me.me/i/…
 
2:52 PM
oddly enough it started around the same time as my cocaine habit, but I'm sure they are unrelated
 
@DaveRandom Powers of 2
 
@Jimbo out of interest, what was making it appear to not work on your local machine?
 
@Leigh yeh I figured it out
 
Ah sorry wasn't here
I think I use the same trick in csprng
 
#define HAS_SINGLE_METHOD_FLAG(method_flags) (method_flags & (method_flags - 1)) == 0
that's what it's actually testing for, as a domain-relevant english description
 
2:53 PM
I wish I had whatever I had yesterday that put me on a roll... today I feel like my brain is playing with crayons when I try to write code.
 
@Tiffany Doesn't matter, its Friday...
 
@DaveRandom what "signal" means in error systems? I'm asking this MySQL has the same keyword when you want to throw an error.
 
"signal" -> "raise an event"
where event might be an error
 
ah .. good to know
 
2:55 PM
ummm, that seems like an odd message to reply to with that question
oh, single != signal
 
@Danack Something to do with ' quotes I believe, the eval works but shows red lines in my PHPStorm as well so it doesn't look like it's supposed to work
 
@DaveRandom oh, I read that wrongly .. sorry
 
@mega6382 I have deadlines...
 
no worries
 
that I'm not going to make cause my brain would rather run through fields of flowers
maybe I need more water
 
2:58 PM
What will you be doing while your brain is soaking itself in pollen?
 
@DaveRandom !!friday
 
@Shafizadeh more generally, "signal" means a thing which gives some piece of information. For example these things are called "signals" in english, because they give information to a train driver, and traffic lights are also sometimes called "traffic signals". In computing, a "signal" usually refers to a specific API which exists for the purpose of communicating some information to another part of a program, or another separate program.
 
@Leigh probably sneezing...a lot...
 
@DaveRandom Ah I see, thx
 
3:15 PM
@Tiffany Heard anything from the interview yet?
 
3:30 PM
@mega6382 Did you see?
 
see what?
 
He who shall not be named...
 
@StatikStasis not yet
 
Hopefully soon. =)
 
@StatikStasis I don't know what you mean..
 
3:32 PM
Voldemort?
 
@mega6382 hmm... must be typing their script for dumping.
 
@Tiffany :P I know that
But I am not sure what in this context
@Wes Have you gotten around to writing that article on Traits?
 
Wes
nope, but i've started another one that i will also never finish lol
 
@mega6382 conjecture (on my part)
 
@Wes Anyway, here is something to help you in that regard My Views On Traits In PHP
 
Wes
3:36 PM
i know i'm not the smartest man
but that is a pathetic attempt :B
 
:P
I know
 
Wes
if you hadn't linked the wrong thing i would've fell for it :B
english confuses me
 
Yeah, apparently writing anything after the slash is also sent with the redirect and breaks the link
Should've tested that before linking it here.
 
@mega6382 Ever forget it was Friday… happened to me.
 
o/
 
3:43 PM
@Trowski when I'm off work for several days... even sometimes when I'm working M-F...
 
\o
@Trowski Yeah, a couple of times.
 
One thing that helps me remember when Friday occurs during the work weeks that we can wear jeans on Fridays.
 
@mega6382 a slug would've driven it home
 
@IROEGBU Check the edit history, there was a slug, but it had to be removed because it was being sent along with the request, and breaking the link.
 
@mega6382 The lack of a path after the domain should have been a tip off, but I wasn't really paying attention to the URL.
@mega6382 Really? Should be no problem for that to be ignored.
 
3:46 PM
@Trowski Then you should have at least payed attention to the messages after that.
 
\o
 
\o
 
@mega6382 That'll teach me to read from the top down.
 
3:50 PM
hey there @ErgotCoslin. I hear @Wes is Italian as well, so maybe you can rage about terrible food together?
 
@Trowski Yeah, actually the redirect is actually URL Forwarding, I don't have any server free for it at the moment. And I don't really know how URL Forwarding works.
 
@FélixGagnon-Grenier
Thank you for letting me discover the existence of this chat room! :D
 
It's a pleasure!
 
@FélixGagnon-Grenier ahah
 
@NikiC @LeviMorrison , any of you intend to pick up the METHOD thing? I'd give it a try if not. Looks low hanging enough :)
 
3:51 PM
Out of curiosity; do you know what ergot is @ErgotCoslin?
 
mmh no
 
Wes
you guys are even crazier than usual today
 
@Allenph explain me plz
 
@pmmaga Am I reeeeally weird when I want it to throw an undefined constant cc @NikiC?
 
@ErgotCoslin It's a fungal infection on wheat that makes you really sick and trip your balls off.
 
3:52 PM
I probably am
 
@PeeHaa Hmm.. I like how that sounds
 
I think it actually has LSD in it, or some similar alkaloid.
 
@Allenph Now that's a classic R11 welcome. :P
 
@Allenph
I believe I will change my name then
 
I don't think you need to do that
 
3:54 PM
:D It's a joke
 
(Not Rebecca)
 
@PeeHaa Sounds better than silently returning an empty string. Makes the BC break bigger though, but damn, whoever was using it outside of a method deserves what is coming :P
 
GET THAT QUESTION IN THE POSITIVE!!!!!111111
 
@FélixGagnon-Grenier OMG ahahah
 
3:55 PM
and yeah, allllll magic constants should act like that if we go that route
 
@ErgotCoslin :p
 
Is the layout on Meta has been changed or am i high?
 
you're probably high, but it also has changed
I quite like it
 
yeah me too!!!!
 
@pmmaga Yeah people (cough @NikiC) is weird :P
 
3:57 PM
@Allenph So good evening man.. I've to makes someone really sick and trip some balls off.
 
The thing against it @pmmaga is that it's a weird magic const making it behave as a normal const might also be weird
 
@ErgotCoslin Bro some sorry that dont understand I do.
But good evening just the same. (Morning for me) :)
 
nooo it makes me die laughing seriously... ;DD and I have to get away from the computer for a while
 
@mega6382 The Muslim guy that runs my headshop told me that it actually meant I won't get hurt this year when I broke my vape tank glass right after I bought it.
Is that true or do I have bad fate all year now?
 
eeeeeeeeew
 
4:00 PM
That is the best question I've seen all day... an old favorite... https://meta.stackoverflow.com/questions/369200/adding-support-for-php-to-stack‌​-snippets
 
mmh we will see
 
Did MS buy meta?
 
so I fucked up and used sudo to run docker commands, which I think is why my ~/.docker file belongs to root. Is it safe to delete it, assuming that it will be regenerated?
 
Sure just delete it.#friday #yolo
 
@PeeHaa exactly, that's why I mentioned that then all should act like that. But hm, undefined constants currently are interpreted as their value, so it would return __METHOD__? :/
 
4:01 PM
No idea about docker whatsoever though :P
 
@StatikStasis Its friday, dear, you are disrespecting Rebecca. :P
 
who s Rebecca?!
 
@mega6382 Which is why I am throwing a change up.
 
@pmmaga Yeah dunno. Muddy waters :(
@StatikStasis fwiw totally pumping out of my laptop's speakers now
 
4:03 PM
@PeeHaa That made it all worth it!
=D
 
:D ooh yess
 
@Allenph I don't know, there all kinds of silly superstitions in all kinds of cultures. I personally don't believe in it 1 way or the other. But I guess its your choice.
 
@ErgotCoslin ^
 
@ErgotCoslin Also read this bio of Rebecca Black
 
@FélixGagnon-Grenier up until very recently, the recommended way to remove some of the persistent data stored by docker was to uninstall it, and then install it again.
 
RebeccaOverflowError
 
My buddy at Walmart told me they switched their entire system to Node and as soon as they were done decided to switch it all to Kotlin.
And went from functional back to OO. Poor him.
 
4:19 PM
ok yeah @pmmaga imo it definitely some warning and I am kinda into just the undefined __METHOD__ now I think
 
@ErgotCoslin In case you're not aware of it 3v4l.org is a thing that exists
 
in photoshop, wtf is this called?
 
That's your canvas information
@Tiffany
 
thanks
wanted to change it to show pixels, but didn't know what to google
 
The canvas is 6.8inx5.12in with 150 ppi. You can change that from Image > Canvas size IIRC
 
4:27 PM
@Tiffany I think the technical term for it is "info box thingy for designery people"
 
@2dsharp ctrl-alt-c? or might be ctrl-shift-c... image size is ctrl-alt-i
but yeah
I know how to do it, I just dont' want ot have to press ctrl-alt-i every time I want to find the image size
 
I don't remember the canvas information shortcut, sorry :P I do remember the regular tools, transform, etc. shortcuts.
 
@PeeHaa I'm inclined to agree yeah.. Let me have a look at the implementation
 
@Tiffany That stays the same throughout, you might as well make a mind note.
 
when I was work study, I was using photoshop almost daily, and memorized several shortcuts to muscle memory
 
4:30 PM
@Tiffany Yeah, shortcuts are pretty useful. Kinda gets hard now when I have to use something like Gimp (which sucks, btw) and inkscape because of Photoshop shortcuts now that I have moved to Linux.
 
@2dsharp wat?
 
@Tiffany You can simply make a mental note of the image size, not very necessary to check it every once in a while I suppose.
 
yeah, that's one thing that would suck if I went freelance. work provides photoshop for me. I don't use it as often as I did when I was workstudy/temp, but I occasionally do, I have a love/hate relationship with it, but I think that's a given with adobe products.
@2dsharp I'm going to be making several image resizes, so ... kind of hard to take mental note of 12 different image sizes
 
@Tiffany On one document?
 
no
 
4:33 PM
Oh, I get it now.
 
batch resize won't work either because I have to crop the image
 
Yeah, that would be painful, I suppose.
I love photoshop, I am not even sure why people try to make alternatives to this thing. The money factor is valid, but well, you can always pirate :P
 
I have to make sure a certain part of the image is in the viewport when cropping which is why batch resizing won't work
I don't like pirating if I can help it. Since streaming services have become more prolific, I haven't pirated anything in years. In fact, the few last times I've had to torrent anything, they were legal torrents.
plus DMCA is pretty harsh here
 
I have gone full open source and I don't really stream anymore. So, I have been clean for a year or two. You will always find pirates in here.
 
@2dsharp Aren't they still selling dvd's on every corner of the street over there?
 
4:58 PM
@pmmaga Depends on how you want to pick it up
I think the proper solution is to drop that ce based code and use scope instead (if not closure)
 
@NikiC maybe Warning: Use of undefined constant __METHOD__ - assumed '__METHOD__' (this will throw an Error in a future version of PHP) in as @PeeHaa was suggesting?
 
@pmmaga Oh no, that's a no go
 
:D
 
The behavior is standard for all magic constants
It it doesn't make sense, it returns empty string or 0, depending on type
 
:(
 
5:02 PM
Throwing a warning would make sense, but it's not a change we can accept on the side
 
1 hour ago, by pmmaga
and yeah, allllll magic constants should act like that if we go that route
 
Hm...
I'd suggest to fix the current behavior and make this part of php 7.3 deprecations (which I have not submitted yet ... gah)
 
@NikiC I'll try to do this proper. What it will return is easy to change at any time
 
Also, we should really be unsetting the active op array when switching into a class
 
Anyone here have experience with CakePHP? For some reason when there's there's no route/action for a page it isn't showing a 404 page it's just blank.
 
5:18 PM
@Alesana "blank" as in white screen of death?
 
The WSOD :P
yup
 
turn display_errors on and error_reporting to -1
wsod usually means fatal error but errors are not displayed
 
Hmm okay. Maybe in the 404 page there is an error
 
at a guess, there's a missing check for whether the target of a dynamic call actually exists
i.e. it generates a callable from a route, when there's no matching route it generates a callable that doesn't exist and tries to invoke it, which is a fatal
 
Pages are showing up without a route for them, for example if I go to website.com/controller/action it will invoke the template found from that controller and that action
I guess that would confirm your suspicion?
 
5:22 PM
well it certainly indicates there's some ill-advised magic happening, yeh
@Alesana indeed, it could be as simple as a syntax error on the 404 page
regardless, I'm very confident that turning error reporting to max and ensuring they are actually being sent somewhere that you can see them will reveal the problem
as a piece of general advice, always have error_reporting set to -1, in dev have always display_errors enabled and in prod always have display_errors disabled and ensure you have a sensible logging configuration
 
Good call. Error logging is on but I couldn't find anything in the logs
I changed all of the error templates to be plain text and they're still not displayed, so I will go ahead and turn error reporting on
 
@Alesana probably error_reporting isn't set to something sensible, it's a good idea to use the SAPI-level config to prevent applications from overriding it at run time (imho)
 
I broke a rule; No fun allowed, I had fun reading the chat room description :(
I'm sorry I've let you all down.
 
@Alesana I use this php script when I am trying to identify what is going on with a WSOD <?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include("NameOfPageWithProblem.php");
 
e.g. for both fpm and mod_php the php_admin_value construct can be used to ensure that even if some code does error_reporting(0); it won't have any effect
 
5:28 PM
Yeah turning debug = true isn't displaying errors.. I will change actual php config
 
@StatikStasis very picky but I prefer -1 or ~0 over E_ALL, because it used to not include E_STRICT, and also my brain parses ~0 as "everything" with marginally less thinking-time
 
I don't think I can include("NameOfPageWithProblem.php") because it's the lack of a page that's displaying a 200 error that I'm trying to debug :P
 
@GrumpyCrouton here is your route to penitence
 
@DaveRandom what's the name of your kid again?
 
@DaveRandom I think I got it from here a while back and just haven't ever changed it. stackoverflow.com/questions/1053424/…
 
5:32 PM
Weird random question sorry
 
Dave jr
 
:)
 
Errors are being displayed on other pages
Just not when there is no page
I'm guessing somewhere there is a check for no page found and then just responds with 200 or something? I have no idea
 
@PeeHaa twatter DM because privacy
 
ta
 
5:34 PM
...which admittedly is horse/stable door but w/e
@Alesana OK, then grep the codebase for die/exit
 
I knew that. Must be heatstroke hitting me
 
I'm assuming btw that using a proper debugger is not easily done in your case?
because that would obviously be the best soln in general if you are trying to trace the code path
@PeeHaa why, out of interest?
 
Lots of comments have been added to that question since 2014.
 
I could install filp/whoops, is that what you mean?
There is..
try {
    Configure::config('default', new PhpConfig());
    Configure::load('app', 'default', false);
} catch (\Exception $e) {
    die($e->getMessage() . "\n");
}
But I changed that to die('asdf'); and nothing either xP
 
@Alesana no I mean xdebug
but not advisable on a prod server
 
5:36 PM
@DaveRandom was talking to the other half and couldn't for the life of me remember :(
 
and not trivial to set up for remote debugging (although totally worthwhile if you have the time)
 
@DaveRandom I've been trying to do this for agres.
 
do you use PHP Storm?
(and if not, why not?)
 
No.
 
I haven't used it.. I am going to try! I have heard of it before but I guess I never thought of using it
 
5:37 PM
Because Atom.
 
No because of the price
 
Dec 29 '17 at 0:20, by DaveRandom
PHP Storm is a rare thing, in that it is a piece of software where I don't feel a bit ripped off when I pay the license fee
it is soooooo worth it
but I do get that not everyone can just throw $100 around as and when they feel like it
 
I know I really want it
I'm trying to convince my job to purchase a license for me
 
@Alesana If you you pay for a year you get a perpetual fallback license.
 
have you used your 30 day trial?
 
5:39 PM
I haven't actually
I guess now would be a good time
 
indeed :-P
 
I don't use enough PHP at my work for them to buy me a license though :/
Which is a problem in and of itself haha
 
the reason I asked is that there's a pretty decent walkthrough on setting up xdebug and configuring it for remote debugging with php storm
 
I'll look it up now :D
 
@Alesana what else do you do then?
 
5:41 PM
We're primarily an SEO company, and we do web design. I am getting them to stop using Wordpress, replacing it with static websites
We have one client with a prebuilt cakephp application
Before I joined, my team had no idea what they were doing with it (had never done OOP)
So they messed it up pretty bad
 
Buy it for yourself- use it wherever you are.
 
@Alesana well php storm also has a lot of decent stuff for front-end web stuff only, so you may be able to sell it that way
 
Oh perfect. Yeah if they won't purchase one for me I will just get one myself
 
which reminds me, @Wes (or anyone) have you used web storm? I'm not entirely clear on what it does that php storm doesn't?
 
I told myself once PHP starts earning me money I will put it back into PHP Storm, and also buy a Sublime license for all the unlicensed time I used it
 
5:43 PM
I'm gonna pay for the whole suite next year for one year so I can use PyCharm too.
 
I use R#, I couldn't live without that either
 
Anyone used their CLion at all?
 
not since very early in the pre-release beta
when it didn't really work properly
been meaning to give it another go, never got round to farting around installing it
 
Hmm... I still use Bloodshed but it's been a couple of years.
 
Are tiny code review questions acceptable here? I've been working with SlimPHP for the first time and just want some feedback on an endpoint I made for an API (Never built a restful API before)
 
Wes
5:45 PM
@DaveRandom same software just a different bundle
 
also I tend to just use VS for C because I know how it works
 
Wes
like you don't get the drupal extensions and stuff
but they are 90% the same afaik
 
> Don't ask to ask, just ask
i.e. yes :-)
 
I have VS too just haven't got around to learning it well enough yet.
 
@DaveRandom I wasn't really asking to ask a question, I was just making sure I didn't post anything off-topic for the channel :)
 
5:47 PM
"on topic" in this room is not that well defined :-P
@GrumpyCrouton but please make sure that large code samples (> 5 lines) are in gist/pastie/whatever, don't wall-o-text please
@Wes aren't they PHP-based anyway?
 
@DaveRandom Good to know :D
 
Is web storm also by jet brains?
I guess that's easily google-able
 
Wes
@DaveRandom dunno
 
I just wondered if it might have some shiny tooling for HTML/CSS that PHP storm doesn't have
@Alesana yes
 
Any feedback for this API endpoint?
$app->post('/notes/:username', function($username)
	{
		$player = fetchPlayerInfo($username);
		$amount = 5;
		if(isset($_POST['amount']) && inRange($_POST['amount'], 1, 30)) {
			$amount = $_POST['amount'];
		}
		fetchPlayerNotes($player, $amount);
	});
 
Wes
i mean there are tools specifically for drupal. there are tools for wordpress etc
 
I reallly want a job doing PHP development but this one is work from home so I will take what I can get
 
@GrumpyCrouton ah yes, you have also discovered the other problem... chat markdown doesn't really work properly :-P
 
I've noticed lmao
 
Oh that is actually useful, I am using webpack for a lot of websites
 
5:49 PM
@Alesana That is a nice perk.
 
Even though I've never used jetbrain's products, I already want to learn Kotlin next
 
Ignore my last message, does anyone have feedback for the following API endpoint made with SlimPHP? pastebin.com/bZkTw0sE - It's my first time working with SlimPHP & creating a restful API
 
@Alesana with the exception of R# (which is a VS plugin), all JB's IDE products are based on IDEA, which is their Java IDE, they basically take all the UI stuff and plug in tools for a wide variety of programming languages. Which (imho) is a great model if you use more than one of them, because it means that if you know how to use one of them you (mostly) know all of them.
 
they also make Android Studio, which is free
 
@GrumpyCrouton the biggest and most important thing is that global should be avoided at all costs. I am assuming that you don't have much experience with object-oriented code?
 
5:56 PM
Huh interesting. I should probably start using all of their products then
 
I love it. It's helped me to work a lot faster.
 
wow, looks like the price of phpstorm went up?
199 for the first year o_O
 
@Alesana they are not cheap but I really am happy to pay what they charge, which is a rare thing when it comes to s/w licensing
 
@Tiffany Click individual customers
Unless you meant for a business.
 
oooh
 
5:59 PM
;)
 
yeah, I paid 53 the last time
 

« first day (2792 days earlier)      last day (2169 days later) »