« first day (2204 days earlier)      last day (2748 days later) » 

8:00 AM
Probably that one was also in Italy
 
@Traxstar can you save the file again to make sure the file you execute is actually the saved version. yes I know phpstorm autosaves
 
Anonymous
@Traxstar Where are you getting this error? On the server? or local?
 
local
 
Anonymous
@Traxstar Do what @Gordon said, and check that the URL you're using is actually hitting that index file. As @PeeHaa said, that code would not cause that error
 
Wes
it's quite scary. imagine you are all fine then you find yourself walking on a suspension bridge made of wires during wind
doors get stuck, glass windows explode because of the distortion of the building
 
8:03 AM
Do you actual feel it over there where you are like: things falling down / out of things?
 
Mornin' 11
 
Anonymous
wow, Twitter closed Vine? thank fuck
 
Anonymous
yo sean
 
o/
 
Wes
i was in a decently strong earthquake when i was a kid @PeeHaa
 
Kez
8:07 AM
@Sean thanks for helping me yesterday with Sessions. think i have finally cracked it.
 
@Kez Sweet! Great news :D
@Wes Shit is scary, yo
 
How's things going with imdb @Sean? Any issues?
 
Wes
quite. the worst is that you can't walk, if you move too fast you will almost certainly fall to the ground, because oscillations are unpredictable
 
@PeeHaa I gave it a shot last night, go confused by yield and stopped. I think I wrote my code really badly.
 
If you want me to guide you just say so :)
 
8:13 AM
Couldn't push it because my forked repo didn't like adding a new branch? Idk
 
moin v2
 
Anonymous
moin jo
 
yojoe
 
morning Joe
 
Kez
8:17 AM
if for example you have a login script, that stores only the login infomation for a user, is it consider good practice to have another table with all the profile information with an id identifier? or should you just put all the info on one table?
 
@Wes can you help me ? my code cant find the phpexcel io factory...im not that sure why
 
Wes
oh i don't remember anything about it, except that it was very good
do you have an ide? that will help, with autocomplete and stuff
 
already fixed it :D im sorr
 
@Kez both is common. I like users with id, username, password_hash and user_profile with user_id and all the other info. the drawback is that you will likely always fetch the data together and then you'll always need a join
 
@PeeHaa Yeah, that would be appreciated. The idea of the plugin is that it makes the first request and pulls the basic info, posting it. In addition, new requests are sent out for each returned movie in the list to get the plot, ratings, etc. which is then edited in after they're all done
 
8:22 AM
@Sean Are you available somewhere in the weekend?
 
Kez
@Gordon what are the benefits of having two or more separate tables?
 
$inputFileName = '/sampleData/example1.xls'; Error: Expecting ; at first ' .. wtf ?
 
Anonymous
@Traxstar What was causing the other error? Wrong file?
 
@JayIsTooCommon yeah :(((
 
posted on October 28, 2016

New Cyanide and Happiness Comic

 
8:28 AM
@PeeHaa Aye, more free on Sat than Sun
 
kk
 
@Kez there aint many to be fair. I just like to separate the actual user credentials stuff from the user profile stuff. the former is actual user data, the latter data about the user. the credentials are basically always the same in any project. but the profile can be very different from app to app. So by splitting it apart, you might be able to reuse parts of the login/signin code
 
Why is: $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); working and one line later in: $objPHPExcel = PHPExcel_IOFactory::load('/sampleData/example1.xls');
He cant find IOFActory
 
Kez
@Gordon That makes sense, thanks!
 
Chrome's animations tab in their dev tools is pretty sweet.
 
8:38 AM
So am I
 
!!rfcs
@Jeeves are you ok?
 
@pinepain Yeah I'm fine thanks.
 
Anonymous
!!uptime
 
@JayIsTooCommon I have been running for 13 hours, 1 minute and 18 seconds, since 2016-10-27 19:41:12
 
does jeeves still show rfcs?
 
:)
 
Anonymous
It's Friday @pinepain
 
For some reason it's a heavy task
 
@JayIsTooCommon it can't be! where is the link where I can see that it is really Friday!?
 
Anonymous
8:44 AM
\o/
 
Anonymous
@PeeHaa He didn't manage to unpin
 
odd
 
last time i remember when i said w3schools the php room said this site is just wast of time and suggested me a cool website
what was that
 
!!rfcs
 
Anonymous
@Sandro for what language?
 
8:46 AM
@Sandro pornhub.com?
 
php
:D
 
oh
:P
phpornhub.com :D
brb registering domain
 
@PeeHaa no shemaleporntube.com
xvideos.com
lol
 
@Sandro I am not dissapoint
 
Anonymous
 
Anonymous
8:47 AM
I don't know how that plugin works :P
 
Anonymous
 
@PeeHaa yes the last one is better than first one
 
Anonymous
Bitch
 
@PeeHaa you make me to call my girlfriend
dam it
 
8:49 AM
@Sandro Yes call her. Ask her when she is expecting me
I should probably start doing work before my jokes get even worse
 
I'm doing a research on php
how to find a girlfriend with php
want to make a special framework
hate to flirting a girl
 
just add the fucker to the ignore list
 
@tereško why
 
@tereško It's not like I am being too serious myself this monring
 
8:55 AM
@Sandro please stop trolling, or go and sober up.
$knownNonLinks = [
        'mailto',       // Mail links
        'javascript',   // Javascript
        '#',            // Anchor tags
        'tel',          // telephone number
    ];
 
@PeeHaa well, you have earned some leeway
 
These things aren't links to other sites - does anyone know what ones I've missed.
 
@Danack fax, skype
 
call?
 
magnet
 
8:56 AM
Thanks. Do these things have a name, so that I can google for them.
 
@Danack javascript: is not really a thing
 
@FlorianMargaine you dont want to know
 
@FlorianMargaine are u sure
 
@Danack they are called protocol handlers and it's probably easier to use a whitelist instead of a blacklist
 
@FlorianMargaine I'm crawling a legacy drupal site.....it's a thing.
 
8:57 AM
it happens to be used, but when it's found, it's just a label for the executed js
 
@Gordon good, doing like a real man
 
as in, it's a js label, part of valid code
 
@JayIsTooCommon Hmm why didn't that work? ):
 
@Danack data:
 
8:59 AM
@Gordon You're probably right that a whitelist is normally a good idea - but in this case I'm scanning for broken links in websites, so probably need to just exclude known non-links.
 
Jeeves please tell me off when I talk about w3schools.com
 
Maybe @JayIsTooCommon's code killed it again
!!uptime
 
@PeeHaa I have been running for 13 hours, 18 minutes and 34 seconds, since 2016-10-27 19:41:12
 
Anonymous
back off...
 
Anonymous
!!plugin list
 
8:59 AM
oh
 
Not enabled :V
Wait, not even there
 
Also that list should be sorted :|
@Sean Probably missing config
 
@Danack you can just xpath for any hrefs or src attributes containing the protocol schemes you are interested in,e.g. which is likely just http and ftp. that would be much more realiable
 
@JayIsTooCommon What's the issue? It marks the passed value as return value for current() and freezes the execution state of the Generator? That's it.
 
@Gordon the sites use a relative urls as well.
 
9:01 AM
@PeeHaa Isn't it sorted by order of loading?
 
Anonymous
@PeeHaa lmgtfy is there though, that was added after AntiW3
 
@Danack relative urls will always be http
 
@bwoebi Good point. Looks like it yeah
@JayIsTooCommon Yeah. Maybe I forget it ok. Jesus christ. Get of my back will ya
:P
 
Anonymous
@bwoebi It's the 'It marks the passed value as a return value for current() and freezes the execution state of the Generator' bit that I don't understand :P. But I haven't actually tried to understand it properly yet
 
1 message moved to bin
 
Anonymous
9:03 AM
@PeeHaa You're a liability
 
Guilty
 
Anonymous
:P
 
ugh I reall need to fix this campaign, but I actually just want to end this week and drink beer :(
 
Anonymous
Got an interview next Wednesday for a hipster company, don't know if a suit will go down well.
 
If it's a hipster company put on old sneakers and a mustache
 
Anonymous
9:09 AM
:P
 
Anonymous
> sneakers
 
@JayIsTooCommon then go with just a jacket (and no special trousers or too chic shirt) instead of the full suit
 
Anonymous
You're such a foreigner
 
Anonymous
Yeah maybe
 
At least that's my approach when I oughtn't to be too formal…
 
Wes
9:15 AM
please do it :P
 
yeah that's a super nice compromise
 
@JayIsTooCommon Reckon you could grow a tache in a week?
 
Moin
 
Anonymous
@Sean Have you seen my face? I can barely grow bum fluff.
7
 
Wes
miley
:B
 
Anonymous
9:21 AM
:P
 
Bum fluff, heh.
 
Anonymous
Of all the things I wanted starred today, that wasn't one of them.
 
Lol
+1 star
There you go
 
@Sean Oh come on, you're not dumber than any of us :-)
 
Anonymous
9:26 AM
2 hours ago, by JayIsTooCommon
@bwoebi the yielding part :/
 
Anonymous
:P
 
:P
 
@JayIsTooCommon you're kidding me, right?
 
@bwoebi Generators in general and coroutines in specific are confusing
 
@PeeHaa They're like the most natural non-linear control flow
 
Anonymous
9:28 AM
@bwoebi Listen Bob.. I'm not as weird clever as you are
 
@JayIsTooCommon s/clever/weird
 
@bwoebi Yes, but it's hard to grasp if you only thing you know is actual linear flows
 
Anonymous
:P
 
@Gordon Pretty sure I don't know what you mean:
<a href="foo">bar</a>  <!-- I care about this link -->
<a href="mailto:quux@foo.com">bar</a>  <!-- I don't care about this-->
There's no http in either of them.
 
@PeeHaa well, that's probably the same genre of programmers having a hard time understanding anything not purely sequential…
 
9:29 AM
I have ignored generators for a year because I just couldn't see for some reason wtf was going on even after multiple attempts of asking people and trying to explain it to me ELI5
 
@PeeHaa Yes. They sent a reminder email a few days ago, I responded and the ball's in their court now for whether they renew the OS licenses or not. Interestingly, the only option for this year was to get an "All Products" OS license, so we might get allof PHPStorm, CLion, IntelliJ IDEA, etc.
 
@bwoebi Yes
And at some point it finally clicked for me
 
@PeeHaa What made it click for you?
 
@salathe Oh cool. I have been looking at webstorm cc @Wes
 
@salathe I am not opposed to that. :-D
 
9:31 AM
Tbf I've worked a lot with promises in JS, I just don't know how it works in PHP yet, haven't read much on it
 
@bwoebi Two things: 1) @Danack ELI5ing it to me and 2) you walking me through amp one night
 
Wes
@PeeHaa uh?
 
That last one was really that: wait wat, I get it now moment
 
@PeeHaa Webstorm is the same as phpstorm imo
 
Wes
phpstorm includes webstorm
almost entirely
 
9:31 AM
^
 
oh
I thought it was just the syntaxlinter
 
@PeeHaa uh, no.
 
Someone should do a yield talk.. Casually looks over at @Jimbo and @Danack
 
@Sean @DaveRandom is doing one next week
Even better it's related to coroutines
 
9:33 AM
@PeeHaa pretty sure that either wasn't me, or I have a memory loss.
 
ooOOoo!
 
Anonymous
@DaveRandom Did you find out if they can record your talk?
 
@Danack It was you. tbf it involved phpnw (not the last one) so beer was had
 
moin
 
moin fine sire
 
9:39 AM
@JayIsTooCommon no I did not, I've been to busy constantly screaming
 
Anonymous
:P
 
Anonymous
mornin o/
 
@DaveRandom too*
yw
 
No I've actually been there
 
:D
 
9:40 AM
@DaveRandom You've figured the issue with close_wait sockets in Jeeves?
 
No I got distracted by real work yesterday
I'm going to take a look at it today
 
I notice two things (probably related):
both close_waits and mem piling up
 
@DaveRandom Yeah, I see anew many sockets in close wait
I'm just going to attach gdb now
 
k I will leave it alone then
@bwoebi all to aws peers?
*mostly
 
Does that also tell you where all the mem is going by any chance? @bwoebi
 
9:42 AM
@DaveRandom and some to SO, yes
 
@Danack as an alternative to manually processing the url, you can also run it through parse_url and then decide on the scheme part how to handle it. everything without a scheme will be http.
 
@PeeHaa I guess it's related
 
That would be nice
 
2129 active resources… nice.
 
9:44 AM
:)
 
neeeeed rainbow elephpant
 
Anonymous
naming help - method that returns a date if it's > today, else returns today. getFromDateOrToday() :P?
 
@JoeWatkins me too
@JayIsTooCommon getDate because today is a date, too
 
Anonymous
it's getting property fromDate
 
Anonymous
but then it shouldn't be..
 
Anonymous
9:50 AM
refactor time. thanks @Gordon
 
@PeeHaa :p
 
@JayIsTooCommon I dont understand what you mean :(
 
@JayIsTooCommon getMinDate($date, $today) :P
 
posted on October 28, 2016 by krakjoe

- UI\Size and UI\Point support for basic math operators (+,/,*,-) fixed - UI\Point cast to UI\Size with UI\Size::of(UI\Point) (can also take double-ish) - UI\Size cast to UI\Point with UI\Point::at(UI\Size) (can also take double-ish)

 
Anonymous
@Gordon It's a method that returns the property fromDate if it's > todays date. Else, it returns todays date. So really my method should be on the lines of getEarliestDate or something
 
Anonymous
9:52 AM
@pmmaga or that :D
 
it doesnt help me to understand if you use the exact same words to describe it again ;)
 
Anonymous
lol, Friday
 
Anonymous
getMinimumFromDate()
 
minimum what?
 
Anonymous
getMinimumDate wouldn't work because there's another date property (toDate)
 
9:57 AM
without really understanding what the method is doing so far "earliest date" made most sense to me. thats something I can understand. getMinimumFromDate tells me nothing if I dont know what minimum. Do I get it "from the date", e.g. a param or is it a fromDate, e.g. a startDate?
 
^
 
Anonymous
startDate!
 
Anonymous
@Gordon No, just getStartDate() I think
 
so getEarliestStartDate?
 
Anonymous
yeah that'll work. Because even if I used earliest, technically it's not earliest - it's today or later. So new startDate property will do
 
Anonymous
10:03 AM
@Gordon thanks
 
yw
 
Wes
2016 phpstormers, does {@see ClassName} work for you in phpdoc?
ctrl + click goes to the declaration
but it doesn't do so in phpstorm 10
 
10:27 AM
Hi all, I've got a problem with memory in C while executing single script in PHP everything goes fine, but crasches when script has require_once directive, I am using realloc and erealloc effect is the same, also in one place I am using malloc, what could there could be wrong, am I using wrong functions to allocate memory ?
 
ThW
@Wes not in the inline annotation
 
@DaveRandom What are we fetching github status for?
 
@bwoebi To check whether it is down or not
 
Wes
ah right, should've tried not-inline. thanks
 
@PeeHaa I mean, what for?
 
10:31 AM
So that people don't have to ask "is github down for everyone or just me"
 
@bwoebi For a plugin
 
ah
 
Also a headsup
 
@bwoebi there's a repeat watcher for 150 secs somewhere
 
@DaveRandom Damn boy. That's like my level of a joke
 
10:31 AM
@DaveRandom yeah, found that
was just wondering
 
@Danack did it work?
 
Oh you actually meant it :P @DaveRandom
 
Anonymous
@bwoebi It's probably the best plugin we have, fyi.
 
lol
 
Anonymous
Why are you laughing?
 
Anonymous
10:32 AM
@PeeHaa Why is he laughing?
 
@Gordon I'm at work......and have to do boring things.
 
@JayIsTooCommon lol
 
@JayIsTooCommon why are you hitting yourself? why are you hitting yourself?
 
Anonymous
:P
 
10:51 AM
@Danack oh, I thought that was part of the boring work
 
No....that's the fun stuff.
 
I remember one my earliest assignments when I was still a student dev was writing a link checker for a client of the agency I worked at. That was a massive beast with hundreds of line of codes and tons of strpos'ing and regex'ing. didnt know about dom back then and even if, it would have been the old dom extension of php4. it did work though. its probably still in use today. which scares me. a lot.
 
@Gordon hehehe being scared of old code is part of the job :P
 
@Danack ignore the xpath query to get the base uri. Just use $dom->baseUri instead. It will be empty if there is no base element iirc so you want to provide a fallback
 
SocketPool: refcount = 692 … wow.
 
10:57 AM
What does that mean?
As in where does it come from?
 
I stopped asking myself about things bwoebi does
 
heheheh
 
@PeeHaa I mean the instance of Artax\SocketPool
I have no idea what it means… but I usually don't see that high refcounts
 
@PeeHaa maybe I've found something about that boring problem to which you gave me a solid example
 
@Gordon :-)
 
10:58 AM
may I show you where I'm at?
 
@bwoebi Just blame @JayIsTooCommon's crappy code :P
Or even better blame @rdlowrey. He's not here to defend himself
 
Blaming @rdlowrey??? Heresy!
 
Hennessy!
 
Anonymous
@PeeHaa :P
 
Anonymous
Yes, please blame @rdlowrey
 
11:04 AM
Horsey!
 
Hordijksy!!
 
Best one!
 
11:21 AM
I'm uncertain about if it is better to do the output in a class function or return the data and output it outside the class.. what's your thoughts?
snippet code: pastebin.com/q6u2iWht
 
hmm... @ircmaxell seems MIA
did something happen that I missed?
 
I think he had some slight health issues. check twitter.
 
11:33 AM
@yessure if that class is not a renderer, e.g. something with the sole responsibility to print things, then go with returning the value and render it elsewhere. alternatively pass a renderer to the class instead.
 
Wes
11:50 AM
if aliens have beer i'll move on their planet
 
if you want alien tasting beer you just have to move to england
 
hi all, as now 2016 to save password, may i go with "argon2" or may i use bcrypt. PBKDF2 or scrypt ? which one do you prefer ?
 
Wes
ireland you mean :P
 
@nsdlfefinedieicbe can you tell the difference between these algorithms? if not, use php.net/manual/en/function.password-hash.php with the default
 
@Gordon naah, for that you would need to move to India
.. if you can be generous enough to describe it as "beer"
 
11:56 AM
Thanks @Gordon as you suggested i will go with "PASSWORD_DEFAULT "
 
@tereško If we are talking about IPAs then I agree. Though that doesnt invalidate my statement since that's where they come from originally
 
I want beer now
6 more hours to go
 
Personally prefer PASSWORD_BCRYPT because it has a set defined length
 
@sean thanks for reply, i heard argon2 is leading from last year.....
 
12:02 PM
Though for security and the sake of future proofing, PASSWORD_DEFAULT is definitely the way to go
 
sure @Sean , as @gordan suggested i will surely go with PASSWORD_DEFAULT....
 
and they are mad expensive
24 gbp for one is the most I ever seen so far. the wooly mammoth was 18 or something iirc
and that despite the pound being weak
 
And here I thought PHP diversity meant "You can write things in C and run them under PHP"
 
12:19 PM
<? echo "hi all"; ?>
 
@Gordon £18 + £5 shipping isn't so far off :P
 
@salathe does that include shipping?
 
@Gordon Yeah the rainbow ones include shipping to anywhere in the world, apparently.
 
in that case, the price is okay'ish.
though I still remember getting my first blue for €7,50
 
nah it's not okay, 20-odd quid for a stuffed toy is ridiculous :P
 
12:25 PM
Amount pledged
£220.00
£220.00 pledge
£0.00 shipping (Germany)
ok, apparently includes shipping
 
@Gordon thank you!! I still have a SO pen on my desk :)
 
I only got the pen, but not the ink pen anymore. the ink pen was awesome.
 
lol awesome
 
@Gordon thank you for your effort but it's not what I need
 
12:32 PM
dat lack of context is delicious
 
@Riccardo you cannot complain that its not what you need when you didnt say what you need in the first place. I only rewrote the thing to use dateperiod instead.
 
@Gordon I thought the example was clear enough I'm sorry for it plus I'm not complaining I'm just saying thank you for trying
btw all I need is this : for a given month and a given year the name of the days i.e we're in October and the first day of this month was a Saturday and so forth
 
@Riccardo the snippet I gave you creates a DatePeriod for the month based on the given month and year. That DatePeriod includes one datetime object for every day in that month. Consequently, it also includes the day names of the month as you can see from the output in the posted snippet.
 
!!eval echo date('l', strtotime("2016-10-28"));
no? :(
 
12:42 PM
Not sure if bob is doing stuff or just not aliased
!!> friday
 
@Gordon can you see the difference ? pastebin.com/TnYtmfww
 
!!uptime
 
I'm going another way
 
Yeah either @bwoebi is touching @Jeeves or @JayIsTooCommon's code brought it down again
 
I can't rewrite all the code
 
12:43 PM
@PeeHaa It's me.
 
Anonymous
@PeeHaa I dislike you
 
I have gdb open
 
kk
 
heheh
 
@pmmaga you can safely blame @bwoebi
 
12:44 PM
@Gordon yeah I saw, but assume some goes to some sort of charitable thing, right ?
 
Anonymous
@JoeWatkins nope
 
Anonymous
> None of the money raised via a Kickstarter campaign can be donated to a charitable cause. The mere presence of a Rainbow Elephpant in the home or the workplace will serve as a reminder to make people more aware of Diversity issues
 
@Riccardo the only difference I see is that yours is not including a datetime object but the formatted date after I fix the variable naming: 3v4l.org/g1Imk
@JoeWatkins idk, I just backed it because I want it. If Mark wants to buy a new car from that, I am fine, too :D
@Riccardo ah, sorry. now I see it. yours always gives Saturday apparently. Is that on purpose? Like I said, a bit more explanation what you want/need would be useful.
 
@Gordon the error is that I can't have nothing but all Saturdays
in other words I'd like all the name of the days but I can see only that day
 
my version does include all the names for the days, doesnt it?
 
12:55 PM
your version has a different approach and it's hard to me adapt your logic to mine
i.e you use the datetime object while I do have a date function
 
and?
 
hmm
I dunno if that is reasonable ...
 
and all you can see in this bin pastebin.com/z4fkGeHU
compare yours to mine
maybe for vs foreach loop and so forth
 
@JayIsTooCommon it's odd how people like their Diversity to be only skin-deep
 
@Riccardo I did compare the two. I dont understand your issue with DateTime. Mine works, yours doesn't.
 

« first day (2204 days earlier)      last day (2748 days later) »