« first day (2799 days earlier)      last day (2149 days later) » 

5:03 PM
@Allenph I could never find anything on Hulu that justified the monthly subscription.
 
I just have all the subscriptions because my family watches stuff on it.
 
Yay ...!!!! Iran won the first play of soccer wc-2018 .. We got 3 score now.
 
5:27 PM
Youran a lot
ok, I'll show myself out
 
Is there a name for this type of service? codesearch.debian.net Trying to look up similar software which I can use to easily search to see if the codebases I use have things that could be of concern.
an yes, I know I can use grep =oP
 
5:42 PM
```
class CheeseCollection {
protected function checkValue(Cheese $item)
{
// no need for additional checks
}

public function __construct(array $items = [])
{
array_map([$this, 'checkValue'], $items);
$this->items = $item;
}
}
```
Yay or nay?
 
@NikiC Thanks a lot for writing it up :-)
 
@Christian I do a similar type of thing I think. Whether that's good or bad, I don't know...but it works.
Well, except for scalar types. I have to manually override the checkType method instead of just setting the const.
Old version. You get the gist though.
 
yeah... one thing I could see is that a child classes cannot be more specific.
 
Well, the getAcceptedType method is meant to be overwritten by the collection classes that extend that class.
 
eg; checkValue(Limburg $item) - the solution would be to check manually: checkValue(Cheese $item) { if(!$item instanceof Limburg)...
 
5:54 PM
I eventually changed it so I just have to set a constant on the child classes, but that has the problem of not supporting scalar types...meaning you have to override the method anyways.
@Christian Ahh. I see. You're doing the same thing I am you're just using PHP to do it.
Same idea.
 
Yes, exactly. It might potentially be faster.
 
Yeah. That's probably a good idea. It all kind of sucks anyways though so, meh.
 
yeah... I was only thing it's a bit unusual and maybe not many devs would like to see it done this way. Like, "why a checkValue method without body"?
 
Without body?
 
*empty (function) body
 
6:00 PM
Because it's not the responsibility of the collection to validate the entity. It's the entities job to do that at construction, right?
 
Wait, that is the collection's responsibility. A collection should not accept unrelated items.
 
I think we're talking about different stuff. I'm not sure what else you're thinking it should do other than what you showed it doing.
 
Maybe I'm underestimating developers' skill. :D
 
As long as your collection has a specific name and only allows the right kind of entity to enter the collection, it's doing what it's supposed to do. The code you showed would do that.
 
That is true and correct. Also, it's more of an internal thing, so if people want to dig in, they should expect some level of complexity anyway.
 
6:06 PM
Just lame because of inheritance, scalar types, and writing an extra class all over that has to be ignored by unit tests.
Sure there are other reasons, but that's what keeps me up at night.
 
I don't really care about scalar types at this point... Cheese $item effectively blocks that out.
The class has to be unit-tested, unfortunately. As simple as it might look, it's still "custom".
 
Well, I test my base class.
But the child classes I don't test.
 
... wow. connecting (or trying to) to a postgresql database really makes me feel dumb.
 
@Allenph ok, sure... if child class doesn't differ much, then agreed. In my scenario above, I have two distinct unrelated classes - one representing cheese items and one representing a collection of cheese items.
@FélixGagnon-Grenier pgsql is dumb. relational databases are dumb.
 
Oh. I thought we were just talking about the collection class.
@Christian Blasphemy. Lets take a look at your schema on NoSQL after a few years.
 
6:14 PM
:D :D
 
lol, that's a rare opinion ;) I like relational db
I like... relations.
 
They never worked for me :( :(
So, anyway. Switching from an array to a collection already revealed an interesting bug.
Apparently, the code was supporting two distinct items types.
 
@FélixGagnon-Grenier Will you have relations with me?
 
what should I return in the else condition-
$row = $query->result_array();

        if(!empty($row)) {
            return $row[0]['alert_count'];
        } else {
            return ?;
        }
it should be array() OR null OR false ? which one is better?
 
@Allenph sure! as long as you don't read lock me, we should be good
@Exception it depends what you're trying to do... by the way you can remove the else entirely, if the condition is true the function would have returned
 
6:25 PM
@Exception whatever makes sense for the situation... also, what @FélixGagnon-Grenier said re else.
 
raising an exception if there should be a value there is acceptable, or returning 0 if it logically means there are no alerts
 
@Christian Let the hand slapping commence.
 
I need a time machine for that... code was written a few years ago. Frankly, not so bad compared to what I worked with until last month.
 
gdi. y no password connection pgsql.
 
6:42 PM
Really though, why is adding an attribute to an array for a SOAP call killing me?
 
I'd blame it on friday
... I really made nothing different, as far as I can tell, but suddenly thingy connects
:/
 
6:57 PM
gremlins took a break?
 
7:08 PM
I'm done with the fucking mobile app, for now.
It's live on Google Play, and finally submitted it for review to Apple this afternoon.
I'm going to laugh if it's rejected because the test account I provided isn't sufficient
 
@Christian yeah, possibly
@Tiffany keep faith ;)
 
@FélixGagnon-Grenier DBA won't allow test accounts to be created in the production database, so the test account I provided doesn't completely authenticate... It'll be like the unstoppable force meeting the immovable object, and I'll be watching with popcorn.
 
Apple requires an account on your production database? o_o
 
@Allenph it requires a test account if authentication is involved
 
7:18 PM
Wha-huh?
 
they're thorough with their review process
annoyingly so
I couldn't submit the app for review unless I had a screenshot from an iPad Pro with a 12.9" screen. 9.7" screen wasn't sufficient. Luckily the emulator worked on the Mac mini this time.
 
that a joke? please tell me it's a joke.
 
I wish
I was pissed about it this morning, ranting about it down the department hallway
I didn't go with the emulator first because when I tried using the iPhone 8 and iPhone X emulator yesterday, and they borked. I figured the iPad emulator would do the same.
@FélixGagnon-Grenier oh, and needed Apple Watch screenshots -_-
 
@Tiffany VERY. Always a have difficulty with them.
 
@Tiffany that's... some barrier to entry
 
7:27 PM
It's Apple. Very exclusive.
 
@FélixGagnon-Grenier that about covers my entire experience with submitting an app to Apple
a million fucking hoops
and pedantic about all of them
tried uploading screenshots from iPhone with the task bar cropped out. NOPE! dimensions don't match.
 
I'm expecting by 2025 for Apple to no longer have a marquee over their stores, and they'll have armed guards posted on the outside to shoot people as they try to get in. Those who do, win!
 
so I had the photoshop out the stuff
 
don't become an iOS developer
 
7:29 PM
I once submitted an app to play store that was nothing but a splash screen followed by a webview. I could probably never submit an app like that to appstore.
 
unless you want to end up in a mental hospital
 
@Tiffany Preferable to dealing with Apple.
 
@Tiffany You mean objective-c Swift Tim Cook's next awesome language?
 
Swift the language doesn't seem all that bad
it's everything else associated with it
Xcode, iTunes Connect
Xcode alone was enough to bring me to screaming in the server room. Not even PHP has achieved that.
 
@Tiffany The error we get from Apple the most upon releasing new versions is this one: "Dear developer, We have discovered one or more issues with your recent delivery for "APPNAME". To process your delivery, the following issues must be corrected:
Invalid App Store Icon - The App Store Icon in the asset catalog in APPNAME.app' can't be transparent nor contain an alpha channel.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
 
7:34 PM
PHP's new motto is going to be "50% less frustrating than Xcode"
 
@StatikStasis oh god, I have about five emails with that
 
Hey, anyone ever use S3 AWS? Tring to get a file and I've put CORS as the domain but still get a 403 with a Ajax function.
 
and that was from trying to process the app for Testflight
 
7:35 PM
let alone release to app store
and fucking having to increment the goddamn build number every time I upload to iTunes Connect
FUCKING SERIOUSLY
 
smiles are not allowed whilst fucking. thanks
- the apple store
 
LOL! @Tiffany I am looking at what you wrote above and at your avatar and imagining that's the avatar yelling that- I'm in tears.
 
this was more interesting the the movie it was reviewing:
 
@Tiffany Reminds me of when we were trying to get SalesForce to approve our integration with their API. Other than asking for accounts (both user-level and admin-level) systems, they also asked questions regarding how we store data on our side and at one point disproved it because they said our service might not be scalable.
 
the Export Compliance Information shit had me sweating bullets
 
7:40 PM
The question was on the lines of "given an account record from our side, how many records will you keep in your database"?
 
I opened a ticket with the vendor who supplied the code, and they said to just ignore it basically. "Hit no for does it use encryption blah blah blah"
@Christian wow
it's funny, Apple had me go through a questionnaire over Export Compliance, and Google had a checkbox -- "does your app follow Export Compliance laws?"
 
@tereško damnit now I need to watch the last jedi
 
Trust me, someone mentions SalesForce, you should run away with all you've got.
 
@FélixGagnon-Grenier I'm not sure you actually need to, @FélixGagnon-Grenier
 
well, he did say he'd spoil every part of the movie
 
7:44 PM
btw, @Tiffany, Oxygen Not Included has -40% now
 
@Christian I guess Salesforce has given you a few gray hairs?
 
but apparently it's so very bad I should not bother
 
it is
 
@tereško 20% here :( 19.99 USD
 
it says -40% here (13,79€)
 
7:45 PM
@Tiffany they're 5% code, 15% over-complicated system with bad UI and 80% bad/outdated/redundant/useless/speculative documentation.
 
13.79 euros ~ 19.99usd?
 
I just checked. It's about 16. xD
 
1$ ~ 0.86€
 
@FélixGagnon-Grenier 17.22 EUR = 19.99 USD
 
0.0024 Bitcoin.
 
7:47 PM
k, I should leave now. Good evening/night y'all.
 
\o
 
o/
 
@Tiffany 20% here too but at $6.79
 
@tereško He comes to a conclusion I came to on my own. That TLJ basically ended any hope I had that the movies would ever be anything more than entertaining. The real world building is left to novelizations and TV/serials
 
7:48 PM
I'm going to stuff my face with chocolate in celebration of being mostly done with this mobile shit.
 
@crypticツ It has the name debsources on it lwn.net/Articles/656294 - which I am a bit too 'tired and emotional' to read.
 
Git it, buckets.
 
@tereško Do you know how much is this proportion stable? (I'm asking this because I have some money in $ and I have to pay it in €)
 
@tereško I stopped watching star wars after the rouge one, it was too much for me.
 
@Shafizadeh xe.com/currencycharts/?from=USD&to=EUR&view=1W (I am just keeping track of it, because I have substantial savings in $, which I need to turn into € to buy some real-estate)
 
7:58 PM
@tereško This guy sounds like me analyzing a movie with my wife... while we watch it. She hates it. I usually do it with her movies the most.
 
lol
@StatikStasis and, yes, it's not as entertaining as the "plinkett reviews" for the "anikin trilogy"
but it's good material to put in the background, while you are working or gaming
 
It's good so far. 21 minutes in.
I just found myself saying "Right? That's what I'm saying."
We have to suspend belief but even in fantasy worlds there is reasonable logic that should be followed to help us suspend belief.
 
@tereško You have to admit that we got some good memes from those.
 
@Allenph true
from the new movies we only got Darth Emo and Ma Rey Sue
 
Wish I could superscript this... I did not hate the prequels as most did.
 
8:04 PM
I actually liked the prequels and the new ones. But, I'm not a movie critic. I just go to turn my mind off and be entertained for a while.
 
I also liked Peter Jackson's Hobbit trilogy.
 
Except that one scene with the sand. That was ulti-cringe.
@StatikStasis Get out.
 
@Allenph the whole romance plot was terrible
 
The writing was completely different in Tolkien's work between Hobbit and LoTR. Jackson and the writers had to do a lot of work to make a movie.
 
@Allenph The prequels weren't so bad... Its just the mainstream agenda, and everyone without an original opinion just following it.
 
8:06 PM
LoTR was much more in-depth while the original Hobbit was like a children's book.
 
What are you talking about?
Did you even read The Hobbit?
 
Hobbit was a children's book (and a bad one, IMHO)
 
I thought The Hobbit was an abomination. I just pretend it doesn't exist.
 
The movie, book, or both?
@tereško It was good for that time.
 
8:07 PM
I thought the book was fun. I feel retarded not knowing it was a children's book.
 
want a good children's book - read "His Dark Materials" series ;)
 
Probably because I read LOTR first and then The Hobbit.
 
I see we've now entered the "let's hackernews talk each other"
 
You want to join?
 
Hid Dark Materials is really nice
possibly the only book ever to actually make me shed tears
 
8:08 PM
@FélixGagnon-Grenier the title is actually reference to the Milton's "Paradise Lost"
 
oh. I thought you referred to Pullman's trilogy
 
it is the title of Pullman's trilogy
:P
 
@Allenph Yeah, and it was a small book too, 300 pages or something.
 
If you've never watched this @Allenph it's a really good video. youtube.com/watch?v=YxgsxaFWWHQ?x
It's unrelated to our conversation- I just thought of it.
 
8:10 PM
I love CGP Grey. 99% of the time I can just point people to him instead of trying to explain voting to some brick wall.
 
Have any of you read the "Mistborn" series?
I am really hoping for a movie to be made.
 
Guys, I have two columns in the table (database) to keep the post-body. The first one contains mark-down-version, and the second one contains the converted (mark-up) version
 
@FélixGagnon-Grenier the phrase "his dark materials" references a line in Milton's .. emm ... second (?) chapter, when Satan is on the way to Paradise (if I recall it correctly) - it describes the "leftovers" after God has made his "perfect worlds" (or something along those lines)
 
Should I search in which column? (when user is looking for something)
 
I really liked the Bartimaeus Sequence when I was a kid. (Or a younger kid)
 
8:12 PM
@tereško ... fascinating. and that would be Pullman's dust?
 
Moved over to NF when I was like 12 though, so.
 
@Allenph How much younger can you get from 12?
 
@mega6382 I am about half-way in the first book
 
@mega6382 0-11.
 
8:13 PM
@FélixGagnon-Grenier that reference I do not actually recognize
 
I think the "@Allenph is 12 yr old" meme, is getting old, and I should stop. But I don't want to.
 
@mega6382 it's literally the first (tenth) time I heard it. Please do continue.
 
I don't care. It's funny.
 
Good, fair analysis of the Hobbit. youtube.com/watch?v=uTRUQ-RKfUs?x
 
@mega6382 well, it can't be much older than 12, so it's k
 
8:14 PM
lol
 
@Shafizadeh I would search in the markdown version, because it will have less false-positives (like picking up some class name or tag name by accident)
 
@tereško fair enough (though it will return something when you search "***")
 
Actually, on second thought @mega6382 it's unwelcoming and I've flagged every message you've ever sent.
 
damnit, lol
 
^^^^^^^She states the Hobbit movies aggravated her, but notes the good and discusses the difficulties of the task they had with the Hobbit.
lol- wanted to see how many carets I could add.
 
8:16 PM
@tereško Yeah, that one is my favorite.
The final empire, right?
 
This stuff I'm hearing about a LOTR TV show better not be true.
 
> vertical challenge
 
@Shafizadeh you can filter out some of the search result ... and usually, if anyone thinks to search "*", then the intention might actually be as a "wildcard" symbol
 
such politically correct
 
@mega6382 I think so: no spoilers
 
8:18 PM
@FélixGagnon-Grenier vertical challenges? I don't follow.
 
@tereško Well ofcourse, no spoilers.
 
about the hobbits sharing being "vertically challenged" with the dwarves
 
it's hilarious
 
It's Friday... I'm slow
Going to see Incredibles 2 tonight. Hope it is as good as the first.
 
8:19 PM
@tereško Should I cover wildcard search?! It makes the query heavy. Specially if the word starts with * which avoids query taking any benefit of indexes
 
@FélixGagnon-Grenier Part 1 and 2 provide such a good synopsis. He did an excellent job imo.
 
GOOD GOD
 
< doesn't really care about Tolkien
 
I clicked it without thinking.
 
8:20 PM
Success.
 
hahahahahahahahaha
 
@Shafizadeh not really. But you should log the queries that user's make, and when you have time - see what features the are looking for
 
A synapse fired as soon as I clicked it, but it was too late. Here she come...
 
@Shafizadeh "queries, that users make" :(
 
ah :D
 
8:28 PM
@Allenph Check this part out from the video I linked earlier. Starts at 11:12 in. The next 2 minutes sums up the differences in the two works as far as the timing when they were wrote. youtube.com/watch?v=uTRUQ-RKfUs&t=11m12s -Promise No Rebecca or you can ignore me forever. =)
 
8:46 PM
Time to leave. Have a good evening all.
 
@Shafizadeh When was Eid in iran or is it tomorrow?
 
Today in real but tomorrow officially
Fasting finished ..! :P
 
Well its 2AM here, so Eid will be today..
here
 
ah .. congratz
 
@Shafizadeh What do you mean today in real?
 
8:52 PM
Ramadan will be ended when the moon is visible in the sky. Well today it was. So Eid is today. But it is specified tomorrow in our calendar
 
@Shafizadeh Well if the moon was seen today then the Eid is tomorrow. Because Eid is suppose to be on the 1st day of Shawwāl, not the last day of Ramadan.
 
Actually the moon was visible yesterday :-)
 
Then today should be Eid.
 
it is
 
Then why are you confusing me?
lol :P
 
8:54 PM
:-) ..! I was explaining the different between the real Eid and the official one
official Eid day == a holiday day
 
Actually the day on which the moon is seen called "Chaand Raat" in the subcontinent, is also a holiday.
 
@tereško shit. just got to the point about Luke's reaction to Solo's fate. gods now I am angry.é
 
you're welcome
 
brb buying 20683 beers
 
9:03 PM
Is "20683" the name of a beer kind ?
Or you're talking about the quantity?
 
its the amount of beers
 
So his mean "20683 bottles" ? He's kidding right?
 
It is Friday, so, it is very possible that he is not kidding.
 
that's an "exageration". intended to have humoristic effect.
I will indeed not buy 20k beers, let alone drink them tonight, but was trying to emphasize the bullshitness of a movie some youtuber was having me realize
 
@FélixGagnon-Grenier Ah .. I see .. hahaha then
 
9:07 PM
@FélixGagnon-Grenier Wus.
 
I'm 97% sure that sentence is grammatically and syntaxically correct
though it is not quite the bullshitness of the movie I was trying to emphasize, as my reaction to learning it. bleh.
... going for that beer, now. laters
 
I meant the not actually drinking 20k beers part.
o/
 
This extension has no configuration directives defined in php.ini.
There is no installation needed to use these functions; they are part of the PHP core.
yet sodium functions don't work
 
9:27 PM
Hey guys, Is there a more customizable tranlation button for site than google's?
 
@mega6382 bablic.com
Client asked me to investigate this once. Never actually used it, but.
 
thanks, will check it out.
 
9:52 PM
posted on June 15, 2018

New Cyanide and Happiness Comic

 
10:05 PM
Is Magento easy to learn?
 
10:17 PM
No. And don't do it if you can avoid it.
 
haha I had a job interview today and they required Magento, but I never worked with it
 
Wes
magento is the classic php thing that went terribly wrong
it always happens
 
Oke haha ye I already expected these answers
 
Wes
i am sure it works. also wordpress works. mostly
 
It works...but man...it is a pile.
 
Wes
10:31 PM
it's infinite
the amount of code / thing that does - ratio is very unbalanced. it's overengineered
as opposed to wordpress that is not engineered at all :B
 
Why is it so overused than
All those small webdesign companys around here do Magento,Joomla,Laravel,WP
 
Wes
because it's cheap and once you built one you built 100 of them
 
Is that the reason that you guys don't like them?
 
Wes
my experience is limited to some debug i had to do
i bet that the out of the box software is not bad
but if you want to customize it, it's going to be painful
 
10:46 PM
Yeah. They always want to customize it and it is very painful.
 
Alright thanks guys ;) guess know enough
Just hard as starter hehe, I guess I sometimes just dont really have a choice in the way you make something
 
Wes
@Danack that was a nice talk
watched it at the dentist :B
 
thanks. I need to move around more, and not lean against the stand, but there really wasn't any space to move there...
 
Wes
because that's what "professional speakers" do? :B
i don't think programmers are the kind of people that focus on that kind of details
maybe apple programmers :B
 
11:01 PM
yes, should help with giving a bit more energy to the talk. Also, less like I'm drunk and need the table for support.
 
Wes
for me the beard is a good skills indicator :B
the rest doesn't matter :B
 
actually, if you don't mind, retweeting the phpsw tweet would help me out a bit as I'm trying to raise my profile a little bit as I've been submitting some talks to conferences.
 
Wes
sure
 
ta
 
Wes
hope you get accepted at conferences, that was a nice talk
actually all your talks were quite good. i often quote them :B
 
11:11 PM
and it only took about 5 years to convert the ideas behind that talk into 45 minutes of spiel.
 
Wes
lol
 
@Danack Please, share the tweet, and I'll retweet too. :)
 
Didn't make it to our meetup tonight? Don't miss out on your dose of PHPSW and find out from @MrDanack why telling the difference between good and bad is hard https://www.youtube.com/watch?v=2_jlZLgDfpM
thanks.
 
Wes
is it true the korean airplane thing? it's insane
 
@Danack I am watching the video, and I've got to say that, your voice does not match your beard :P <3
 
11:23 PM
@Wes probably, though it's from malcolm gladwell, who doesn't let facts get in the way of a good story always: google.co.uk/…
 
Wes
maybe my view of east is not updated, but if koreans are like japaneses i can easily see this happening. i heard that subordinates are not even allowed (by social norm) to have eye contact with a superior
so there is obviously no such thing as "oi turn on the bloody gps or were gonna die"
 
I've been meaning to ask people, do people do 'banter' i.e. where friends insult each other happen much in offices in non-english speaking cultures?
 
Wes
it happens here. i'd say it's extremely common. if it didn't happen i would think the office is not really a friendly place
people could go as far as "insulting" their own boss, if the boss is a cool person
 
11:49 PM
@Danack It happens, a teeny bit at our offices. I'm one of the most vocal proponent of the friendly insult, and it spread a bit
 
@Danack Yes, quite a lot, but in a very friendly way.
 
cool.
 
@Wes We joke around with our managers and project managers but not the directors. :P
 

« first day (2799 days earlier)      last day (2149 days later) »