« first day (1907 days earlier)      last day (3266 days later) » 

14:04
@Gordon I've made that change, reset the cache and it is still giving me times in a +1 timezone
I'ts driving me crazy
@salathe You can't say we're wrong, it's against CoC. I'm offended.
@tibanez if its only happening on one specific property, check whether there is any annotations on that property. if not, use a debugger and step through the code to see where it happens
@Gordon Okay thanks
Ok, if I have this CodeSniffer sniff how do I include it in a ruleset?
<rule ref="Squiz.Operators.ComparisonOperatorUsage"/>
/obviously.
14:09
LOL
I forgot about that!
@Jimbo I was going to go searching for an older thing to bring up. Instead of that, how about deleting the racist stuff from your profile?
When I use print_r() in gives me something like this:
Array
(
    [col1] => anything1
    [0] => anything1
)
How can I get just one of them? or [col1] or [0]
@Danack Older thing? If I want to call someone a nob, I will do if I think they are. No group think is going to make me not do that, I'm afraid.
I won't, however, stand up for inciting hatred or genuine abuse - but that's not what that was, and it's extremely sad that I even have to mention this sentence from "I won't" onwards. But such is the internet
E_HERRO is a joke, it's not racist
the other bit.
E_INDIAN? I think that was a joke between me and Mr. Alien, who I do miss actually. Nobody but you has mentioned that :-)
14:15
Yeah, I have multiple times received feedback at work that I am "too eager to address problems head on", and other people are less likely to do that.
I think that's due to the beard
>< Search for a way to convert a PostSCrolt Type 1 OR font suitcase to a TTF ?
@Jimbo That was before the beard....the beard is there to make people too afraid to report me being......er, determined.
lol
@Shafizadeh This using PDO or something?
14:20
PDO
fyi - at least one of those cases was where someone didn't want to do their jobs....e.g. a 2nd line support guy pretending that there was no possible way to investigate a bug.....and then me turning round and giving him a list of things that could be done (inspect logs, increase error reporting level, etc) that made him feel bad just because I wasn't his "Computer says no" answer.
@Shafizadeh $stmt->fetch(PDO::FETCH_ASSOC) for associative col names PDO::FETCH_NUM for numerical.
Argument also applies to fetchAll if you're using that :)
ah tnx
@Danack Sounds like he was a lazy bugger then
They all were....a nasty culture of keeping as much information secret as possible (so your job is secure) and then doing the least amount of work possible, had set in....
14:38
well, fuck
XCom is an evil evil game
just now got 3 of my squad killed in a single turn
@Danack is it a glitter beard? that would make people in awe
@tereško I remember one mission with some new aliens. very fast and strong. their speed took me by surprise. they impaled one of my soldiers. I was shocked. took out the others quickly. I only managed to save one soldier that night
(I'm playing Long War mod .. is there is some extra fun)
@Gordon click this, then click this in separate windows.
er.....scary eyes warning...
@tereško is there is aint no grammar, bro ;)
@Danack yet I can't look away
14:44
@Danack no glitterbeard. not impressed
@Gordon but basically, I was 6vs6 .. team nicely positioned with 2 guys flanking the alien formation .. and then 3 floaters roll up, kill two guys from the main formation, and then the rest of aliens move in an kill off the 3rd ... I end up with troops that were "on a mission" and one l lone and surrounded healer
it's 3vs9 and I am completely fucked
my son just opened a drawer and brought me a VGA cable
adorable ^^
Maybe he thinks you're becomming too HD
HD? hyperdaddy?
@Gordon hmm ... so you have trained him to fetch :P
14:52
(it was a joke about you getting wrinkles)
@tereško doesnt work well yet. he fetches whatever he wants. never what I want
@Gemtastic ah, didnt understand that
High definition; so clear you can see the wrinkles ;P
@Gordon "That's nice but daddy needed a DVI cable. Can you get me a DVI cable?" :P
@tereško looked it up. it was Chryssalids
oh, yeah, those are nice
there is that "whale mission" too, which is kinda brutal
14:58
When he gets an hdmi cable he'll be gold! :D
@Gemtastic emm ... these days we use DisplayPort, ya know
But I wanted to make a goldplated joke :(
posted on January 05, 2016 by nlecointre

/* by patoch */

@Gemtastic haha … hahaha.. I got that one. very witty
@NikiC Do you think I can merge my HashDos fix…? At least I haven't gotten any feedback… or is it maybe better to first bump once on internals? I think bump once, wait another 2-3 days and merge then
15:03
@bwoebi No
Wait until Dmitry gets back
@bwoebi do you also have HashDonts? You could write a blog post about HashDos and HashDonts
@NikiC that's in two weeks, right?
yes…
ahoy hoy
hey
@bwoebi Or just ask him to review it, maybe he can do it now
Just imagine how super embarrassing it would have been if we landed your first version of the patch
15:08
Hello. Some Doctrine enthusiast here? I'm getting a "Notice: Undefined index: country" when trying a basic OneTomany/ManyToOne relationship like so pastebin.com/sThYwQDH (basically the code from the Symfony Book)
Stefan would have been delighted
At least this time it wouldn't have been RCE
@NikiC Oh, I wouldn't have landed it without review at all.
hmm, no response … that's what you get for faki … err … showing genuine interest in @bwoebi's internal work
@kingkero that sounds like a bug that can be easily understood by stepping through the code with a debugger....have you done that yet?
@Gordon :-P
15:10
@Danack I'm new to Symfony & Doctrine, don't really know where to start
@NikiC I just wasn't sure how much you trust your own review.
@kingkero you do know what "Notice: Undefined index: country" means, do you?
@kingkero how to use a debugger: youtube.com/watch?v=LUTolQw8K9A
I do know
I'm just surprised this happened as I followed the Symfony Book. Will try to debug now, thx
@bwoebi Ah, I only glanced at it really
15:17
hi guys
@NikiC pff ^^
I'm getting this error: Illegal string offset 'reg_sched'
VALUES ('" .$regular["reg_sched"]. "','"
.$regstart["reg_starttime"]. "','"
.$regend["reg_endtime"]. "','"
.$changesched["change_sched"]. "','"
.$shiftstart["shift_starttime"]. "','"
.$shiftend["shift_endtime"]. "','"
.$subid["sub_empid"]. "','"
.$reason["reason"]. "','"
.$shiftstatus["shift_status"]. "')");
can you please tell me how to fix it
@Pretorian Step through your code with a debugger. There is an incredibly high chance that $regular is not an array.
ok thanks
@Ocramius I'm trying to make my code better by always using === vs ==. What is the best way to do that for preg_match functions e.g. :
if (preg_match('#/\w*#', $segmentText)) {}
Doesn't have a trivial conversion as it would need to be:
$matchResult = preg_match('#/\w*#', $segmentText)
if ($matchResult !== 0 && $matchResult !== false) {}
Or is my real problem the lack of checking for false and throwing an exception....?
15:35
Bah, another borked optimization bugs.php.net/bug.php?id=71248&edit=1
a strict false from preg_match might be a good place to use them fancy new assertions, depending
@NikiC :P
user924016
Mornings
@NikiC lol
@NikiC optimisations ruin everything
16:04
@Andrea Optimizations don't ruin performance. Your argument is invalid :P
later roomies!
hi guys
@NikiC they can :-P
16:20
@NikiC uhhh… I doubt that optimization is really worth it, especially if we add another two or three checks. branch cost vs. a simple copy
Did me fixing negative zero negation/unary plus make Dmitry scream yet?
Dmitry will only have time to scream in two weeks :-P
I'm noticing how comments speaking against the CoC are upvoted much more on reddit…
What's the doctype for anonymous functions?
a … doctype?! for functions??? … he means just type?
@Sean callable - probably.
16:27
guys is it possible to insert multiple values in one column and not for the rest? Like for example I have table for employee and attributes are emp_name amp_ id and leaves wherein wherein employee can have many leaves.
@Danack Was thinking that, and using c_u_f instead of $var(...)
Or Closure if you explicitly mean lambda.
@Pretorian you're probably approaching the problem wrong - you need to have a separate table for that stuff. I strongly recommend these slides or the guys book: slideshare.net/billkarwin/sql-antipatterns-strike-back
so meaning I should have a separate table for leaves
?
yes.
nice thanks bro
16:31
since someone asked recently. it's here now:
Yay! My Hacktoberfest shirt arrived today. Thank you @digitalocean
I thought pics were required for tweets like that.
I am agree. Gordun is doing it wrong
@PeeHaa too lazy for dat
that reminds me
16:44
Morning Guys
I was going to use imagecreatefromjpeg() but my question is, Does this function requires a physical file ? or I can use a blob anyway ?
Sounds like you want imagecreatefromstring()
@salathe Let me check
is there a quick way (e.g. curl) to act as a proxy for some urls?
(so, pass all the request headers and send back all the response headers)
@salathe Nice, that's what I needed :)
I didn't knew about that function
16:48
@salathe thoughts on the RFC?
@ircmaxell You mean the operator overloading RFC, right? :P
@NikiC No, the less divisive one.
If it were some random stranger, I'd been sure that CoC proposal were for nothing but drama...
@Danack Saras token_get_all()?
@Danack HTTP/2 server push?
@ircmaxell In summary: I like the idea of having a CoC and structure around one, but there's no way I'm going anywhere near the discussions.
17:04
Which one is more unique ?
md5(uniq($id), true) OR uniq(time(), true)
@ZahidSaeed They have the exact same "uniqueness"
@salathe I'm not saying to go near that discussion
I want to incorporate as much feedback as I can, and then ultimately put it up to a vote
PHP source says:
The uniqid() function generates a unique ID based on the microtime (current time in microseconds).
Unique means one of a kind it either is or isn't unique:
17:05
@salathe so if you have any feedback that is actionable, I'd love to hear it
@NikiC of course :-D
Does that time means TIMESTAMP ?
Has anyone heard from @Andrea if she plans on working on a keyword arguments patch @Danack @NikiC ?
I don't care if it doesn't land, or just throw away code. But just waiting to find out if she has the time, or I can grab it
When I use css on laravel pages, I put this on the public folder. And worked on the index, contact, etc... But, I'm calling a post page that is on the same folder, and It is not finding the css.
17:23
@SeanDuBois keyword arguments?
function myFunc($arg, keyword $one = 'bar', keyword $two = 'foo') { }
myFunc('required', :$two = 'somethingElse')
syntax is rough, but like CommonLisp keyword arguments wanted to have a patch out as an alternative to named parameters
ah named parameters
@bwoebi yep! but opt-in
@SeanDuBois How about removing the $ in the call?
@kelunik :two ?
Yea I like that!
or $two => 'foobar'
syntax doesn't bother me much, I was hoping to just go with what ever made people vote yes
17:28
@SeanDuBois Yup, we already have definitions like that in Auryn.
Well, I am ready to work on this until it works and passes tests. But I would like to know other people aren't doing something similar
Would anyone care to flaunt a file handler / uploader library of their choice?
Purely for server side handling.
18:01
'morning
18:25
\o
When I give a downvote, why I don't loss 1 rep? (anymore)
dv on questions do not cost rep
Oh really?!
!!!
yeah knock yourself out
btw... even though it doesn't cost rep doesn't mean to just dv everything...
yes
18:46
I sometimes forget how horrible of a place Reddit can be.
On the upside, I have a few libraries I'm never using again now.
@Charles what happened?
@tereško A bunch of knee-jerk overreactions to the CoC stuff because it set off the "OH NOES INTERNET SJWS!!!1" alarm.
@Charles do you know who "FrozenFire" is?
@Danack I don't know his identity, but his flair implies he's on the doc team.
...
18:51
@Charles yeah, well, people get really scared these days, because when you get a SJW infestation in a community, only few communities survive .. and even those get severely scared
That was less of a secret identity than I was expecting....
@tereško Can you name some tech communities that has happened to?
(I realize that the dynamics of non-tech groups are probably different.....and examples in the 'Tumblr communities' probably abound.)
@Danack freebsd, python, various smaller forums
@tereško Freebsd no longer exists?
Python has stopped being developed?
I did not know that.
that one is in the "scared" category
@Danack with one's that do not exist I woulkd name "occupy" and youtube's atheist
@Danack Yeah, ultimately he'll face problems because of it... that's why I keep my username in places where I sometimes post unhappy stuff separate from my actual identity... not that I'm not easy to doxx anyway.
18:54
@tereško Ironically, if they had a written code of conduct to follow, the situation wouldn't have brewed for so long, and the person making complaints would have had to either give more evidence and stop being nasty back.
for every instance of a "SJW" boogieman starting a tempest in a teapot, there are dozens of anti-sjw-brigade reactionaries throwing absolute tantrums about straw men.
@PaulCrovella Exactly.
@Charles My strategy is to just use my real name, but also avoid acting like a twat. It works mostly....
They're afraid of being bullied.
the latter are far more disruptive and annoying to have around
18:54
(correctly so, I might add)
@Danack Yeah, I do that in other places. ;)
@Danack I see you've never been tone policed. :/
5 hours ago, by Danack
Yeah, I have multiple times received feedback at work that I am "too eager to address problems head on", and other people are less likely to do that.
Different type of tone policing.
yeah yeah. I know what you mean.....
18:58
They seriously are bullies. And they've ruined their cause.
The reactionaries - I keep forgetting to use this delightful word - come out of the woodwork quickly and all hell breaks lose.
@Charles I have seen a term "crybully"
though I am not sure of the exact origin
Unfortunately, just having a rule stating "please don't be a jerk and remember everyone you're talking to is a real person" doesn't cut it. It should. But no, this is the goddamn internet.
@tereško Yeah, I've seen that one also.
ya know, I am kinda tempted to blame Patrion for majority of the clusterfuck
@tereško nah....the problem is that a lot of people have too much time on their hands, and don't have any real outlet for their energies.....it would have happened anyway.
because it turned those "tempest in a teapot" from oddity into a fulltime employment opportunity
19:07
@tereško yeah...nothing like that has ever happened before. en.wikipedia.org/wiki/Moral_Majority
@Danack, take for example this: random patrion link
I actually have stuff to get on with....I'm not going to read about individual cases that, regardless of the facts, were handled shitely due to a lack of a written process.
in Latvia to earn 4500$/mo you have to .. well .. boss in local telecom or oil exporter
please do not discuss Randi in this room
@ircmaxell fixed
19:12
thank you
but serious, I want those patrion bucks too
sup
I ran out of cream cheese and discovered something wonderful: buttered onion bagel dipped in chicken soup is goddamn delicious.
still haven't touched reddit since last night
18 replies await me in my inbox
I'm not sure I want to read them
There was an hilarious 4chan post on fp earlier
19:16
@Andrea you don't
@SeanDuBois I'd like to have array destructuring, dunno if/when I'll get round to that
there are personal attacks against you in there. Why the moderators don't clean more of it up, I don't know
@Andrea get a beer .. or better, a good Syrah
get half of bottle done, and then start reading
@ircmaxell oh for fuck's...
@ircmaxell well one of the mods opposes the CoC, so
19:20
@ircmaxell Judging from his other "contributions" in that thread, I'd just stick that guy on ignore and move on. Those upvotes though ... yikes.
beware that it's reddit, of course
Yeah.
@Charles precisely
it didn't seem to be victim to that yesterday, but I would be surprised if there's been no, uh, contact with other reddit communites by now
there are probably like 5 different subreddits brigading that topic (from all sides of the "issue")
19:21
also, /r/PHP being on reddit means it's slightly more vile from the get-go anyway
well, this is why I immediately PMed the subreddit mods once the thread was made
because I felt they needed the warning
@Andrea Yeah but usually the small subs have less horrible contributors... usually. Then again, my subscription list is full of communities making fun of people like that, so I dunno.
Now, if you excuse me, I am going to go make echo "You have visited this site " + $n + " times"; produce an E_NOTICE in PHP, as I promised to do at PHPNW15
@Andrea Nice!
@Charles the smaller subs are better but they still suffer from being part of reddit
@Andrea :-)
19:23
partly because, well, if you're on reddit, who will find your subreddit? other redditors
I'm curious - where do y'all find a high enough signal-to-noise ratio on reddit that keeps you interested in going back?
@Andrea small subreddit actually are more vulnerable, if the get caught in SRS/KiA turf war
I find some signal
@tereško that too, yeah
/r/PHP is mostly boring, sometimes garbage (anytime "someone doesn't like PHP, are they wrong?" comes up), but I stick around there because it's valueable feedback on RFCs and such
@PaulCrovella Even broken clocks are right twice a day
19:25
I'm only really in four PHP communities as such: this one, /r/PHP, internals, and I'm on Twitter but don't use it all that much
also, /r/lolphp is the best PHP subreddit (I'm half-joking obviously, but)
it's a great place to find bugs to fix and long-standing issues
@Machavity sure, but you still huck it in the trash and get a new clock
the thing is lolphp is the most constructive thread for this COC process
3
is it on HN?
Gods I hope not.
@ircmaxell indeed
$ php -r 'var_dump(1 + new StdClass);'
PHP Notice:  Object of class stdClass could not be converted to int in Command line code on line 1
Why is this a notice? Come on.
19:38
because php
@ircmaxell as always
I propose a new error reporting level. E_PROBABLY_A_BUG_IN_YOUR_CODE_SO_STOP_IGNORING_IT
E_STAHP
10
^ this one is better, @Charles
nice
19:40
@AlmaDo globals suck but we shouldn't get rid of them
@Andrea wasn't that an E_STRICT before?
@bwoebi maybe, lemme check
not it wasn't
anyway, what should it be? error? warning?
The 140 character limit is crucial to Twitter's integrity. I will stop using the website if we can't be held to basic limits on length. 1/72
@bwoebi in the 5.x era I'd say E_RECOVERABLE_ERROR, today I'd say an exception
@ircmaxell oh god, they're not changing the max tweet length, are they?
19:47
10k
that's way too high
twitter is not suited to being used as a blog
All I see about that is unsubstantiated rumor.
Isn't the 140 limit designed to accommodate SMS?
Can we please get our faving stars back?
@Charles originally yes, but it's now 140 codepoints
@bwoebi RIP stars
19:55
twitter.com/Abzol/status/684451648362647554 … ugh @Andrea my poor timeline :-P But… let's imagine that with 10k chars :-D
@bwoebi :D
Coming soon to a Twitter near you: truly express your devotion to Allah by posting str_repeat('﷽‎', 10000);
(the longest character in Unicode IIRC)

« first day (1907 days earlier)      last day (3266 days later) »