« first day (2631 days earlier)      last day (2542 days later) » 
00:00 - 16:0016:00 - 00:00

00:00
date/time as in the holidays or something in your code?
...you haven't come into contact with any incarnation of "A Christmas Carol"?
I insist you go and watch The Muppets version right this instant
3 hours ago, by Jeeves
DateTime::createFromFormat "u" specifier not interpreted correctly – #75745
I haven't seen the muppets in ages
The current behaviour is wrong, the problem is unfixable because far too much code will be relying on the incorrect behaviour
The "wrong" behaviour is desirable behaviour, it just doesn't match what the docs say
I believe mine was having a problem with it as well. Is it possible we can keep u the incorrect way and add another one which behaves correctly?
well the thing is, u is a good letter to describe "microseconds". I suggested retaining the existing behaviour in f (for "fraction") and fixing u, but that will break a lot of code in teh wild
and there isn't really another unused letter than it meaningful to represent "absolute number of microseconds"
so probably the best thing to do is just update the docs and tell people to do DateTime::createFromFormat('u', sprintf('%06d', $usecs))
which is somewhat horrid but it is what it is
the existing behaviour does make sense in the context of 01:02:03.456
00:07
That's the problem is just not breaking other people's code, but I mean October is the perfect word for the 8th month and here we are with it being month number 10 :P
yeh and PHP is full of stuff like that as well, but in this case it's not actually necessary to add another letter, because you can get the desired behaviour by just left-padding with zeroes
@DaveRandom propose μ for absolute number of microseconds :P
it's just not obvious from the docs that this is necessary, and it wasn't even obvious to me that there are two possible desired behaviours until I did github.com/php/php-src/compare/master...DaveRandom:bug/… and it broke two tests
@pmmaga I toyed with that for roughly 15 μsecs :-P
in fairness, the current behaviour is probably the 99% case, very few things are going to want to create a datetime from an absolute number of microseconds
00:12
but even though it would make sense to make u be proper and f the fractional thing given the amount of BC it may cause, just do it the other way around. f doesn't make much sense but hey.. how PHP would that be?
Yeah I was trying to think of an example like that with PHP but I am no wiz :P
Even fewer things are going to want to label things with nanosecond granularity, yet here we are:
yesterday, by DaveRandom
OK here's a fun task for you lovely people... I have a 32-bit PHP installation. I also have an 8 byte string representing a little-endian signed 64-bit integer. This integer is a unix timestamp with nanosecond granularity (and no, I did not choose this). I want a routine to convert it to a DateTimeImmutable with microseconds. I also want a routine to convert in the opposite direction.
did you check my approach with gmp?
oh no I missed that somehow
but also...
yesterday, by DaveRandom
(without a bcmath or gmp dependency)
:-P
ahhh ^^
00:14
tbf it's actually pretty simple if you can shift, I looked up the bitwise algos earlier
I just need to write a robust string-shift routine, but I got distracted
just found an old paper on which I took notes. on an important 11th of February 2015, I decided to buy phpstorm, which literally made me get a better dev (speaks volumes of how bad one can be)
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
3
00:40
@DaveRandom ...agreed... I have a license that is purchased by work and used at work, and I purchase a personal license to use at home
 
2 hours later…
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
 
2 hours later…
04:21
morning
04:32
morning
o/
Happy Friday!
Wes
Wes
04:58
\o
o/
05:30
\o
06:19
Oh mah lord
posted on December 29, 2017

New Cyanide and Happiness Comic

Now I wish I had an iPhone
morning
that's not going anywhere, all they have to do is prove that the batteries performance degrades over time, and since this is a well known fact, case closed ...
so long as the percentage that performance (of the battery) was degraded by, aligns with the known characteristics of those batteries, there is no case to answer ...
also, I think it was a smart thing to do, and does prolong the life of those overpriced pieces of shit ...
also, if they won that amount, which is just unimaginable, it would liquidate apple and all it's assets ... what a stupid thing to aim for ...
06:31
@JoeWatkins I don't think it'll even make it to trial. And even if it does it will be years before a verdict and then appeals and whatnot. It will most likely be settled out of court.
they shouldn't do that, they acted reasonably and in the interests of their (pretty stupid) clientele ...
You are probably right.
06:50
stupid might not be fair ... maybe if you pay an extortionate amount of money for something, you think it really will last forever :D
07:03
upload_max_filesize is 10M in php.ini file but still throws an error saying its 2M.
I am using laravel
what could be the problem??
@AbhijitBorkakoty Most likely you also need to edit post_max_size
@Alesana could not find post_max_size in php.ini
Then add it
@Alesana value??
Whatever you need, it seems 10M is sufficient for you based on your last message
07:11
@Alesana done...still getting error
following file exceeds your upload_max_filesize ini directive (limit is 2048 KiB).
Did you restart PHP
both upload_max_size and post_max_size is 10M
yes restarted wamp server
Check to make sure there is not a # (hashtag) before the lines
And additionally check to make sure that it isn't listed a second time as 2M after the line that says 10M
@Alesana checked ...everything looks fine still error
If none of those are the problem, check your Apache files (.htaccess, httpd.conf, or virtualhost) to make sure that there is no line that says something like "php_value upload_max_filesize 2M"
If you can't figure it out and you're just messing around anyways, you can do a workaround by making an .htaccess file and adding "php_value upload_max_filesize 10M".
But, that won't fix the problem, it will just patch it up for that directory
07:20
@Alesana i am using laravel framework....how do i add the line to the .htaccess
It's not relevant to the framework
If you're open to sharing your php.ini file (via a pastebin or something) I would be able to look at it and make sure it's set right. Other than that just look up how to enable .htaccess in WAMP.
phpinfo is a thing ...
@Alesana should i just copy paste the entire file??
it will tell you what ini files are loaded and the value of the directive(s) in question
shouldn't be difficult ...
07:27
You can also try that ^^
@Alesana here is the link

https://pastebin.com/MFAkR5Wy
please look at phpinfo, you may be editing the wrong file ...
@JoeWatkins where is phpinfo located??
upload <?php phpinfo(); ?> to the webroot of your application ...
then look at it ...
I don't think I've ever been asked that before :)
I would think that if he is getting that error it would surely say his upload_max_filesize is 2048kb
07:33
yes, but each SAPI can have it's own configuration ... which is what it looks like ...
@JoeWatkins @Alesana just checked phpinfo(), its showing 2M
however the ini file says 10M
and what file does it say is loaded ?
where could be the problem??
I don't enjoy repeating myself ...
the configuration you sent has it set at 8M, not 10M, if phpinfo reports something different, then you are editing the wrong file ... read it carefully, find out what files are loaded, and check those files ...
Would phpinfo() still show what php.ini says if there is a .htaccess file in the root of his web application that sets it to be 2M? I assume that the problem is not an .htaccess file, but I am still curious.
07:37
he was asking how to set it in .htaccess, assume that's not the problem ..
Hmm..
I did assume so :P
@JoeWatkins checked the path using $inipath = php_ini_loaded_file();
it would show what .htaccess set whatever ... but start at the beginning, the ini file is the originating source of the value ... and it looks like he is editing the wrong one, or possibly some other ini file in a dot.d directory is setting it ...
then corrected the size from 2M to 10M , it still isnt working
Ah okay, that does make sense
07:41
did you restart the web server, or fpm if you are using that ?
yes restarted .....
believe phpinfo will show all scanned files, that function will just return main configuration file, I think ...
can you show me a link to phpinfo ?
phpinfo showing 2M but the correct ini file showing 10M
@AbhijitBorkakoty I don't know much about how WAMP works, but if you click it and hover over PHP, then over PHP Settings, you can directly set it there, like in the image I posted
i did
its already 10M
07:44
:P then I would paste the contents of phpinfo into a pastebin and hope Joe can find something. I think I reached the limit to what I can help with due to my limited knowledge
are you on windows ?
and have you got teamviewer ? something tells me that will be the fastest way to fix it :)
if you're not on windows, my public key is available on the interweb, I'll happily fix it, so we can all move on with our lives ...
He is using wamp so I assume it's windows.. but you must be dedicated to fix this problem for him :P
probably wasted ten times longer trying to explain things than it would take to just fix it ... dedication, economy, whatever, let's all just move on :)
I'm in a constant despair when someone remotely connects to my pc, with teamviewer or something, that they'd find out my hentai collection
07:53
I don't know if it's a lack of GPU or what it is but whenever I try to fix simple problems via tv it takes hours
I don't care, I'm an adult, I work on adult websites, and I'm a little queer ... there is no kind of imagery that can shock me ...
@JoeWatkins @Alesana i dont have team viewer plus it will take sometime to again install and do setup and all. thanks both of you for your time
I have an rdp client, never used it though ...
still built into windows ?
There is a difference between finding hentai in /srv/www/hentaisite.com/app/includes/images/ and finding hentai in C:/My Documents/not-porn-folder/
@AbhijitBorkakoty I believe wamp has 2 php.ini files. 1 in apache and 1 in php folder. Make sure to change both.
07:59
how you decide to hide your special interest material from your bf, gf, or mother, is not my concern :)
One time I was on someone's computer and there was a folder named "Not Porn". I thought surely it contained porn, up until I saw the folder named "Porn"
ah, following the KISS principle of organising your material ... smart, should have got them a job ...
I would get them a job right after I get a job
Well, it shouldn't really be hard to get a job I just have to take care of all my medical stuff before applying :|
08:14
What do you mean medical stuff?
Anonymous
@JoeWatkins little queer? what does that mean?
Anonymous
!!wotd
Anonymous
btw mornings
Anonymous
@mega6382 @SaitamaSama I hope you are happy. I just got to work and I'm playing OW
Anonymous
08:17
:)
Anonymous
It's a weird game. It looks girly and toy-ish but addicting at the same time
:D :P
once you get the feel and the mechanics of a hero, you'd get more addicted as well ;-)
@mega6382 I am actually almost done with most of it.. I won't go into detail but I guess the main reason I haven't is that I get a bit self-conscious that if I walk into an interview with a crutch that they will look at me weird
But I am waiting for some things I can put on my ankle to walk without the crutch
Other than that I wasn't able to take any NSAIDs for pain because I had some internal bleeding because I took too many NSAIDs for pain, which made me as useful as a paper weight
08:21
@Alesana Sorry to hear that. Why are you on crutches, what happened?
I fell and broke some bones... well that was a couple years ago and now I am walking with just 1 crutch so I'm actually pretty happy with how things turned out
08:34
Thanks for asking though
On that note.. If anyone knows someone who is hiring and willing to relocate someone.. I will be looking for work after February 7th
:P
Sure. :)
@Alesana if that helps, I wouldn't care the slightiest bit if someone was walking in with a crutch
it's not like you're doing a physical job or w/e
you end up sitting on a chair all day anyway
dat ^
Well that does help a bit, I suppose I do sell myself short sometimes
08:52
@JoeWatkins Challenge accepted? :)
!!wotd
!!dad
@Alesana You're PHP only? (we have open positions for android dev, devops + (senior) designer)
PHP, JS, HTML, CSS. I am very interested in learning android development though!
I started learning Kotlin for it.
Would be taking on an existing product and expected to run with it, let me see what our US offices have going
That would be awesome! I'm also willing to relocate outside of the US if they would be able to sponsor a visa.
09:00
Mostly Python and Java stuff in the US
@samayo I'm bisexual ...
@Alesana look for yourself, I can vouch for the company though, I wouldn't let any kind of disability (temporary or permanent) hold you back from applying if there's something that suits you.
@Alesana two words .... Stephen, Hawking ...
Good point, publish some papers that change our fundamental understandings of the (computing) universe, and you'll have no problem :)
that's not exactly the point I was making ... in sciences, which cs is a part, nobody really cares how able bodied you are, it's your brain we are interested in ...
although if you can change our understanding of the universe, that would be a bonus ...
09:05
I know it wasn't Joe, but you know me, if I can see a hole to pick in something, I can't help myself. <3 you
Later on I'll feel awful about myself, so it all balances out
Aww you guys are awesome. I am going to take a look and see what I can find, but for now I'm going to pass out.
Nite
o/
09:11
nn
o/
09:30
\o
Anonymous
it doesn't work that way
Then how does it work?
And what are you talking about?
Anonymous
i don't know
09:54
am i banned?
he ded
!!uptime
RIP
huh?
also, mornin
09:57
\o
@tereško @Jeeves is dead.
mornin tereško
!!uptime
╔══════════════════════════════════╗
║ [57 seconds] without an accident ║
║   since [2017-12-29 09:59:18]    ║
╚══════════════════════════════════╝
!!wotd
bedizen to dress or adorn in a showy, gaudy, or tasteless manner.
10:13
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ abc.com [L,R=301]

but rather it redirects to

   https.abc.com/abc/index.html
@Jeeves I thought the word for that was @PeeHaa
@Ocramius Yes it was.
Wes
Wes
morning
10:26
o/
What do you guys think of the idea for admin panel? Require user to manually create cookie with a certain name and certain phrase inside of it to unlock admin powers? Reason I sorta thought of this painstaking task for user is because the moderator/admin features are integrated to the regular view.. (e.g. delete button appears next to other member's content). Just an added security measure?
So even if their email gets hacked, they won't know about the whole cookie scenario.
So.. they have to have admin powers enabled for that user in back-end, but it doesn't show the powers until that cookie is set too.. which has to be done manually.
pointless?
php-storm just halted while indexing a phar file in vendor directory it's show process is running,does it take this much time?
@Darius it's called sudo? :P
10:32
Not talking about CLI.
@Wes, guessing that's what you say to the idea? Lol.
Wes
Wes
as everybody knows
i have no idea
Just want an opinion. Don't need to know. Just password protect a separate admin area, or do my cookie idea
@Darius just password-protect it with a short-lived secondary session
^ +1 kk.
10:55
How many of your projects do you guys actually enjoy building?
(for others, not self)
I enjoy all of my open-source and just for fun projects.
And from time to time, I also enjoy office projects.
11:08
@Darius 25% - the rest is shit
Thank you! I'll read over it now.
with short lived authentication sessions, where user gets re-logged in using the cookie, when session expires
I have actually implemented it for Palladium :D
that reminds me - I should work on 2.x on this weekend
thumbs up
11:38
Hello people :)
RNC ... right ... no exaggeration at all
can anyone look in to this question pls stackoverflow.com/questions/48022022/…
@SuroorAhmmad I can confirm that the question is loading
it also contains angular, laravel and jwt - three things that I like to avoid
11:55
ok can you just look into that http header?
@Wes I would like to call it fake news, bit I actually don't see how it would count as "news". Some project manager ( .. or maybe even a developer) thought, that it was a funny message to show, for the case, when server is on fire. And a "news" site wrote a clickbait about it.
seriously, your attempts at "political signalling" in this chat have been somewhat .. emm ... underwhelming :D
Wes
Wes
...
teresko is a trump voter
watch out guys
worse: I obviously wrote that code to discredit Mashable
@Wes, what I actually think is that USA had two shitty choices and fortunately they picked the more manageable shitty choice. But all this "cultural civil war" is getting out of hand and is fueled by shitty "news" sites pushing outrage for clicks.
@Wes sigh... people not using yoda conditions
Wes
Wes
killemall
@Wes I cant. That bullshit is at the top of r/Politics. While you see it as something funny, I see a spreading idiocy in american political discourse.
@Wes That can be changed to Trump and will still be true. Maybe even truererer..
Wes
Wes
that's part of the ridiculous. all he did is golf
12:19
... you should look up, why presidents golf so much, and why each one has been golfing more than previous (tbh, I don't think Trump can actually hit a ball) ... you might learn something worrying
@Wes AHAHAHAHHA
Wes
Wes
good
but, if you want to go with the talking points, hmm ... you should be happy, that Trump is just golfing, since he cant be "destroying everything" at that time
sorry on going a bit autistic on this all - the inconsistencies trigger some buried conditioning. It might be an occupational disease
Wes
Wes
you made me want to drink alcohol
why? (just curious)
12:30
Cause he's sad.
!!friday
Wes
Wes
on a more serious note, i managed to complicate the shit out of some code like i never did before
that contributed to my being sad too
it's a 150 lines long switch()
seemed a good idea.
when? in 2005?
@Wes No, you didn't.
Wes
Wes
yes i did
12:33
I really hate long swtich statements.
/me has actually been doing refactoring
I have deleted about 90% of what I wrote yesterday and collapsed it into 2 classes + some DIC config
@Wes I have been maintaining a project for a few weeks now. The developers who made it, used only 1 action in 1 controller to write the code for the entire site using switch statements. I am so frustrated by it.
This is the fastest way to make me halt the order process, for anything ...
And by the idea that why would anyone wanna write such long switch statements.
Wes
Wes
12:47
if someone has told you to "avoid ifs" and "use polymorphism" they are an idiot.

public function dispatch(MyInterface $a){
    return $a->foo();
}

in order to fill $a polymorphically, you are likely going to use a if()
ifs are always there, just in a different place
and ideally ifs should stay in one place only
if someone has told you to "avoid ifs" and "use polymorphism" they are an idiot.
yes
Wes
Wes
ironic yes?
polymorphism lets you avoid repeating ifs
you move the fuck-ton of repeating ifs to a single "if" inside a (probably) factory
Wes
Wes
yes.
A lot of my code could be described as a "probably" factory
12:50
:D
Wes
Wes
gangoffour.com/probablyfactory
someone should buy a domain gangbangoffour and use it for documenting anti-patterns
Wes
Wes
:B
@tereško You document the anti-petterns and I'll buy the domain. :B
too much effort
and I already have 3 different side project ... and there was actually still is a steam sale
Anonymous
13:10
@JoeWatkins btw: being bi doesn't make you 'little queer' it just means you are bi.
Anonymous
Also, I see no logic putting one's sexual orientation in their twitter profile
@samayo Yeah, tinder is the right place for that.
Anonymous
more like grindr
Anonymous
@mega6382 Are you playing tonight or this weekend?
13:15
Tonight.
I will be on a business trip tomorrow. But will be playing on Sunday.
All day.
Hello, can anyone explain how to loop through json data in PHPExcel?
convert the json to an array
@Fabor Yeah, did that.
13:30
Needing some quick help in laravel. Anyone available?
@GrafixMastaMD Just ask what you want.
Looking at laravel relationships for the first time
I have users in my users tables with a linked record column.
Which relates to the employees table id column.
But I am not able to get anything back.
See code beloww.


Controller:

$u = new User();

$l = $u->employee()->get();



User Model:

public function employee(){

return $this->hasOne('App\employees', 'id', 'linkedrecord');

}




But some users can not have employees linked and some employees may not be linked to a user



Nothing is returning. Is there a way to see the sql action of this. So I can better troubleshoot?
(see full text)
PHP IN 2017 LULLLLLLLLLL
Not sure if serious -_-
13:45
1
Q: Adjust spacing between HTML table rows

PrashantI want to display records one by one in sequence, I do not know why the extra space appears between the records. Can anyone help me please? {block name=head} <style> td { border: none; font-weight: bold; font-size: 100%; } .h1 { margin: 3px, 0px; } .content { height: 270px;...

help me with this question
Looks like a CSS problem
@PrashantBhatt IS the account used to ask that question yours?
@samayo you should stop talking now
@tereško Did you check out the game "Getting over it"?
13:51
Sorry I should ask "Have you seen?"
climbing a hill, while inside a cauldron, and using a jackhammer
Never heard of it
Wes
Wes
@PrashantBhatt it's already answered and accepted
Suuper frustrating
Wes
Wes
also seems you are using multiple accounts
13:54
Sounds like something I would avoid
Anonymous
14:07
@JoeWatkins Add me to your ignore list
or just stick to talking about things where you actually have a fucking clue
Anonymous
calm your tits man
@Wes bu it's not give me proper result
Anonymous
It was a perfectly reasonable question
Anonymous
you can bail out if you want
14:14
watch your stupid mouth
Anonymous
anyway, I'm done here
Wes
Wes
who the fuck are you to tell what people should be doing
Anonymous
"my stupid mouth?" - that's the kettle calling the pot black
evenings... I guess o/
Wes
Wes
on a more important note, @JoeWatkins ex beard owner WHY
14:21
just got too hot ... so I trimmed it down, little bit by little bit until it wasn't too hot, but didn't like what I was left with so went clean shaven again ...
Wes
Wes
:(
14:45
@Wes I think animals have started to nest in mine. I'll be Joe's surrogate for now
Although I did trim off a good 3 inches when I was forced to fancy dress as Hagrid for a party :x
Wes
Wes
i sometimes find crumbs in mine :B
Not quite back down to nipple height yet, but give it a month or so
I'm curious what my boyfriend looks like clean shaven, just once...
Wes
Wes
@JoeWatkins i don't like many things, but i don't go telling people "no, you should do that instead". it's not that hard to let people do what the fuck they want
i know nothing of this "revolution", and i'm not interested knowing since it's not about me. why can't people just be like me... i just don't give a fuck. it's the simplest thing in the world :B
15:01
@Wes because there are people who do give a fuck, and make it a point to discriminate against people in LGBT
Wes
Wes
but why, in which way a gay dude affects their lives? i don't get it. why do you care
@Wes ask one of them
Wes
Wes
it's an impossible to answer question
I agree with you in that why should they give a fuck, it doesn't affect their life, but I also acknowledge the struggles that LGBT people are going through. Hell, there are people killed here for just saying they're gay or trans. It's fucked up.
Wes
Wes
15:26
i was saying that the least one can do is let everyone do what they want. it's as simple as that
of course these are tragedies and i feel sorry for them
@Wes this is an interesting theory: scientificamerican.com/article/…
@Wes what's your github username these days?
Wes
Wes
why? :B
Netmosfera
@pmmaga i don't know
i think everyone feels entitled / too welcomed to express their opinion. that seems a good thing but it is not, because i can say "you could use less steel for the bridge" but nobody should listen to me, because i'm not a fucking engineer :B
Wes
Wes
any reason you asking me this?
i would like to help but i'm not sure i should
@Ocramius doesn't this happen with all drivers?
In a general case, a single call to db_execute() may produce multiple non-fatal and zero or one fatal error at a time. Not sure how handling those could be properly implemented.
pdo in exception mode spits tons of warnings all the time and exceptions
15:54
@Wes I was asking because error handling is your area of expertise
the "insane" bit is what I'd like to know :P
Wes
Wes
error handling is your area of expertise ha
i create a lot of errors yes :B
evening room
Wes
Wes
i'm not sure which example he is referring to @Ocramius
00:00 - 16:0016:00 - 00:00

« first day (2631 days earlier)      last day (2542 days later) »