« first day (1734 days earlier)      last day (3217 days later) » 

user1804599
8:00 PM
@Azar_Javed Verifying thread-safety of arbitrary programs is undecidable due to the halting problem.
 
@rightfold I honestly don't understand what you just said
 
@Azar_Javed php -i | grep Thread
 
user1804599
ooh
 
user1804599
I thought you wanted to check whether your own PHP code was thread-safe.
 
I don't know either, but he asked a question about an extension earlier... I thought that was the more likely answer ;D
 
8:06 PM
Sorry, I am trying to make wincache work
 
if grep isn't on your path (and you are on windows) : php -i | find "Thread"
 
And I wanted to make sure I installed PHP nts because they say wincache only works with nts
I am on windows, yes
php -i is equivalent t phpinfo() right?
 
the commandline equivalent
 
I opened phpinfo.php through a localhost website, searching for thread finds only Thread Safety = disabled
 
user1804599
@Azar_Javed There is your answer!
 
8:09 PM
So, is it non-thread safe build?
I am not sure what the disabled part means
 
@Azar_Javed Somewhere at the top of your phpinfo it should either say ts or nts
 
PHP Extension Build API20131226,NTS,VC11
this?
 
yes
 
woo
So, it's something else causing the problem then
 
Probably
 
when I run php -i | find "Thread" it also says PHP Warning: PHP Startup: Unable to load dynamic library 'ext\php_wincache.dll'
- %1 is not a valid Win32 application.
in Unknown on line 0
 
People really have to learn to stop developing on Windows.
 
:(
 
@Azar_Javed Where did you download wincache from?
 
I'm on Windows (a.o.)
 
8:14 PM
@PeeHaa But do you develop on windows?
 
user1804599
 
their repository on sourceforge
 
@Sherif Yes. Also on windows
 
@rightfold OMFG that is so awesome!
 
8:16 PM
@PeeHaa That's sad. In a world where you can literally spin up a VM with a single command, do you find a single useful thing about developing PHP on Windows?
 
@Sherif Will try now. 1.3.7.4 for php 5.6.11?
 
@Sherif Yes. Knowing it also works on windows is one :)
 
fuck it, I'll try all of them
 
@PeeHaa Right, because of all those Windows NT licenses you have laying around that you will eventually one day use to run those thousands of Windows production servers with PHP?
 
@Sherif That's it
 
8:18 PM
@PeeHaa That's my excuse for not getting a newer computer... because I know it works on 7 year old hardware.
 
@Sherif Thank you so much
 
I'm not saying which operating system you should use on your desktop. I'm just suggesting that developing for PHP on Windows, in a world where the vast majority of your code will run in a linux environment anyway, is just shooting yourself in the foot before you've even had a chance to to stand up.
 
@Orangepill No. And I don't think it is possible to use OO in an application bootstrap that doesn't fuck it up.
 
@Sherif Nope. I'm not the only one who uses my code
 
At the risk of getting feedback that I can't respond to before Saturday, you might want to look at github.com/danack/Tier if you want to know how I stitch an app together.
 
8:20 PM
.. wow
 
@PeeHaa I'm not even sure how that's a sensible reply to what I just said. Where do I suggest that you were the only one and how does not being the only one strengthen or weaken that argument?
 
> because of all those Windows NT licenses you have laying around ... that you will eventually
kinda gave it away
 
You're not the only one running PHP in production on Windows?
 
I am running what in production now?
 
Awesome, another conversation involving a certain someone that devolves to semantics almost immediately.
 
8:23 PM
Meh, I didn't feel anything devolved here, but whatever.
 
@PeeHaa Just to double-check, you're not going to the conference this weekend are you?
 
user1804599
@PeeHaa prototypes.
 
@Danack Nope sadly not :( Will most likely be there for phpnw again though
@rightfold :P
 
user1804599
@PeeHaa PHP 7.
 
Cool. You'll only be able to see how bad I am at giving talks by video then \o/
 
8:24 PM
@rightfold Not yet, but tempted :P
@Danack Oh damn. I would have loved to see how bad you are at giving talks in real life :(
 
@PeeHaa I love hastily looking for an answer, only to come to a SO answer which I was the author of that solves my issue
-_-
just proves that with each new thing I learn I make space by forgetting something else.
 
Exactly :P
 
I found that lack of exercise was a pretty strong contributing factor to my poor memory :/
Going back to the gym definitely helped.
Also those neuroplasticity games really work.
 
to improve my memory I need to do one simple thing
but that isn't happening.
beer is too delicious
:D
 
@rlemon You should get someone to buy you one of those key thingies that attaches to your belt, and has a retractable cord attached to the keys.
Possibly will save you hours of time in the years to come.
 
8:31 PM
no keys I never misplace.
they balance me
phone in the left pocket, keys in the right.
 
And the wallet?
 
@rlemon I adopted a habit of actually speaking what I want to remember aloud, especially whether I have or have not done something
"Door is locked"
 
yea it isn't really that big of an issue unless it is niche stuff with programming
sometimes I forget it
 
"Phone is charging"
I found that it helps me counter those annoying "Wait, did I lock the door?" moments
 
yea, I don't often have those. I more often walk into a room, think about something other than what I went in there to do, do it, then forget my original intent.
now that I have a house with multiple levels that is more of a pain in the ass :P ;)
like the other day I went to switch the laundry over, noticed my fish tank was a little low, did a water change, forgot about the laundry
 
8:34 PM
Go to kitchen, open fridge, "Wait, I needed to pee, what the hell am I doing here?", close fridge, feel like an idiot
 
left it in over night.
stinky laundry now :(
 
user1804599
8:46 PM
@MadaraUchiha Pee in the fridge.
 
@MadaraUchiha Go to kitchen, open fridge, "Wait, I needed to pee, what the...", pee in fridge, close fridge.
@rightfold Baww
 
my memory halves after 6 beers as well
not sure if that is an expected result or not :P
 
Do you guys call your factories DefaultFactory so it's clear it's the default one, say if you're going to consider abstract factory pattern?
 
I remember one time, I had a party at one of my apartments. My good friend Jay was in attendance, and passed out on the couch. At about 4am, I was on my computer, him still on the couch in front of me, and I noticed him get up. I saw him come into the kitchen (to my left) and open the fridge. I said "Jay, no more beer man", he proceeded to stand there, blankly. "Dude, all the beer is gone". Nothing... except the sound of trickling. He was peeing in my fridge.
Needless to say, I smucked him, shuffled him off to the bathroom, and cleaned up the mess with his sweater.
He slept in and had to run to work the next day; pee pee sweater in tow.
 
@Jimbo Wasn't Abstract Factory an antipattern?
 
user1804599
8:49 PM
@Jimbo No, I don't have "default" factories.
 
That ^
 
user1804599
Also abstract factory in PHP is written as the type hint callable.
 
@MadaraUchiha How come? You're effectively just stating what common factories have to return, right?
 
@DanLugg my brother once came home from the bar blind drunk, slothed up the stairs, stumbled into his room.. half hour later comes out, stumbles into my moms room, opens her closet, pisses all over her shoes and shirts.
 
Factory Method was an anti-pattern
 
8:51 PM
my mom is screaming at him "TYLER TYLER WTF!"
he didn't phase, pissed in her closet, went back to bed
 
@rlemon I was so tired today, I fell asleep in the afternoon
My mother called me to ask me whether I want something to eat, and apparently (I have no memory of this), I told her to take the last letter of the W, and buy that.
 
when I fall asleep at my computer (some nights) my gf laughs at me. 9/10 times I will get up and goto bed on my own, but not without stopping at the fridge and eating a pickle.
only pickles.
and almost every time :/
 
She thought either I was having a stroke, or she was hallucinating
When she gave the phone to my brother to talk to me, I apparently spoke coherently and told him I did, in fact, want something to eat.
 
!!afk
 
#LearningSwift
@MadaraUchiha sup long time no see
 
8:55 PM
@HassanAlthaf o/
 
9:06 PM
Why is factory methods considered an anti-pattern? Is it because of SoC.. and object should know how to be itself and not how to make itself? Or is it because calling MyObject::createFromArray($arr) is hiding the fact that new is being called.
 
@Orangepill MyObject::createFromArray is a named constructor, which is fine. Factory methods are bad because they have to know about things that are not related to the class.
e.g.
class RequestResponseFactory implements ResponseFactory
{
    private $request;

    function __construct(Request $request) {
        $this->request = $request;
    }

    function create(array $responseData) {
        $acceptHeader = $this-request->getHeader('Accept');
        if (strpos($acceptHeader, "text/xml") === 0) {
            return new XMLResponse($responseData);
        }

        return new JsonResponse($responseData);
    }
}
Neither JsonResponse nor XMLResponse need to know about requests. But the factory does, as it needs to know which type of object to create.
/I should write this shit down.
 
@danack okay that makes sense.
 
@ircmaxell if you have time, I recommend you reading "Lost Fleet" book series
it was quite a unique experience
 
 
1 hour later…
10:24 PM
Good morning
Is there any special convention for naming Traits?
 
since the general practice is: don't use them
 
@tereško thanks for the recommendation
@Ocramius lol nice
 
10:42 PM
@DaveRandom This is your requested reminder for router + any other misc items you require. Also, text me when you're in Soton and I will see if I can get home earlier.
 
@ircmaxell yeah, it's weird-video-day
I have burnt pixels everywhere around the area where the youtube player usually is
 
:-)
 
@Ocramius you need to spring for a new monitor
I recommend a 1440p 21:9 screen
 
10:59 PM
@tereško I already got 2 Dell U3014
what came before: drugs or fractals? or drugs made of fractal particles?
 
hmm .. that seems ok
 
DNC
Any android developers online?
 
Probably.
 
DNC
Names
I need names
 
Will they lose their Chinese take-away if I tell you?
 
11:07 PM
@DNC if I give you some names, would you pay a referral fee of $50?
 
DNC
What happened to this world..
 
@DNC I'm learning from everyday's headhunter emails...
 
DNC
I see, what else have they teached you?
 
Uhm... mainly how to avoid them
Oh, and that you can always get paid more than what they tell you
 
@bwoebi Can emalloc be used in phpdbg?
 
11:10 PM
@NikiC sure, why not?
 
@bwoebi Just wasn't entirely sure what a "request" is with phpdbg
If it can be used, I'll switch all asprintf calls to spprintf
 
DNC
@Ocramius just that? Give me the names and I will teach you a lot more
 
@NikiC should be safe.
 
@DNC 50$ guarantee deposit first
 
DNC
I don't work with fee's
 
11:13 PM
:P
 
No names for you!
Has anyone used Firebase before? Mainly looking for potential downsides.
 
@Ja͢ck the downside is that it works on Windows
this pretty much makes it insecure software to me <_<
 
Oh ... I meant the other Firebase I guess
 
I mixed up words ^^
@Ocramius bah
 
@NikiC beh
 
11:17 PM
@Ocramius buh
 
note: not in a serious mood, at all
 
@NikiC and oh… I totally first should clean up all the mem leaks in phpdbg…
and begin with displaying them at all…
 
11:33 PM
:-)
I've used Firebase for small projects
 
In your opinion, is it more suitable for small projects?
 
it seems quite reasonable, but haven't used it at scale
though considering who owns it, I'd bet it's good
 
hehe
I'll probably get to use it starting this Monday :)
 
11:51 PM
Btw, I asked this before
why firebase vs anything else?
i.e.sqlite?
oh, wait, nvm, it's distributed (kind-of)
 
definitely more distributed than sqlite heh
 
Was thinking about a different firebase
 
ah yes
i get that a lot
 

« first day (1734 days earlier)      last day (3217 days later) »