« first day (2611 days earlier)      last day (2337 days later) » 
00:00 - 16:0016:00 - 00:00

12:55 AM
@Tiffany now I'm back home, have had two pints, and totally not sleepy anymore :B
damnit.
 
 
2 hours later…
Wes
2:31 AM
@FélixGagnon-Grenier did you read about the night king
 
no
except some rumor about him being linked to the actual three eyed raven
 
Wes
apparently there was a little leak
but nothing 100% certain
do you want to know? :B
 
no
:P
.......
..........................
damn you
 
Wes
it's probably something you guessed already if you read the books :B
 
..... damn it I'm so curious
ffffffffffffuuucccckKK!K!
frantically plays space engineers
 
Wes
2:34 AM
apparently it's not much really because the book almost doesn't mention it anyway
and it was probably meant to be that way from the beginning
but the show fans decided it would be something else
:B can i spoil you please :B
 
....
lol, yeah, please
 
Wes
in the book there is no night king, right?
 
hmmm... well, it's not really clear that there is or is not one
 
Wes
exactly. apparently night king = night's king
 
..like... the king of the night?
 
Wes
2:39 AM
there was a lord commander of the night's watch that married a white walker
that is known as the night's king
apparently that is the night king
 
married a fucking white walker
how does that even happen lol
 
Wes
i think it's a story that old nan tells to bran
that there was a lord commander of the night's watch that fell in love with a white walker and ended up mating her
 
Wes
by the way, i'm still trying to read the book. i keep getting lost
high fantasy is not like reading normal english :B
takes me ages to read anything
also so many names already
 
lol yes, it's a complete mess
I was not able to remember them all tbh
 
Wes
2:48 AM
i have nothing to do for more than a year, since season 8 will premiere in 2019. the books is all i have
and i want to read them :B
 
3:00 AM
They're very good, I find
 
Bitches
O/
 
Wes
\o
 
Ohey wesminster
Still awake
Seen punisher yet?
Doooooit
 
Wes
punisher netflix or is there another one?
after i watched all marvel series and disliked them, i'm not going to watch also the punisher :B
i frigging hated them
 
Netflix
 
Wes
3:15 AM
daredevil in particular. worst series ever
 
I am agree bro
Overhyped++
Watch first 2 punisher eps
 
Wes
how much did you drink :B
 
Ha
Ugh
 
Wes
also i don't like that actor. aka shane
 
Tried to share a photo of a tequilla bottle but turjey doesn't allow imgur
 
Wes
3:17 AM
i'm watching man in high castle
 
What's that about?
Fwiw it took me 1 episode to get over the actor
The moment I saw him I was like eeeew
 
Wes
@PeeHaa it's one of the few series i liked. it's a drama, romance, thriller, scifi?, fantasy? all packed together :B
basically you don't know what's going on and it's very intriguing
 
Ooooooh btw
 
Wes
it is a story staged after world war 2, but the nazi germany won it
 
Vikings?
If you haven't yet
You totally need to
 
Wes
3:23 AM
ive watched some episodes, i didn't like it much
 
@Wes so the good guys won? :p
@Wes wat
 
Wes
@PeeHaa :B
 
Jesus...
 
Wes
i can't say anything else without spoiling
nazi germany won the war, but it's also a scifi. so there's more
 
Sounds vaguely promising
Will check it out
 
Wes
3:25 AM
it's based on books. books usually do good stories :B
 
Dunno
Books suck in general
You can endure the jk rowings crap?
 
Wes
that's book for kids
:B
those don't count
 
:p
Good
 
Wes
also i am sure that the jk rowlings books are actually great compared to the movies crap
 
We are still on the sam levelish
 
Wes
3:27 AM
i could never watch harry potter
 
Pretty sure the books are poop too
 
@PeeHaa yeah it's quite good!
o/
 
See!
Even the french guy likes it
\o
So we have french and dutch against italy
No way we are going to surrender
 
Wes
i watched jessica jones because she is hot
but i had to quit despite that, series is shit
 
wat?
it's like the only marvel hero on netflis that does not suck balls at one point ot anotehr
 
Wes
3:33 AM
it's so cheesy dude
 
... well, actually... anyway, all other are quite unnerving at one point or another
 
Ugh blocked
 
Wes
it's teen stuff. i'm old i can't stand this kind of crap
i liked arrow. it was quite intricate and a mature story, then they added teenagers and what the fuck
 
Wtf
 
wtf
oh arrow
 
3:35 AM
Arrow is like terribad
 
not archer
archer was really not "it was quite intricate and a mature story"
 
Wes
arrow was nice in the beginning
despite the douche that plays arrow
so i am not watching marvel anymore
 
Cmon
Punisher
 
Wes
the worst was totally agents of shield
 
Do it for us
 
Wes
3:36 AM
wtf
you never watch the series i like. i bet you didn't watch 12 monkeys
you wouldn't watch the punisher if you watched 12 monkeys :B
 
Wes
ok ok i will
 
Wes
but the punisher has a crap background story
means that it will be just guns all the time
am i right?
 
nope
nice try tho
 
3:38 AM
morning
 
like 5/7 try
 
??
 
\o
 
@Wes still need to see it
@Linus yo
12 monkeys scares me because well
12 monkeys
 
3:40 AM
12 monkey isn't about 12 monkeys :P
 
tbh, 12 monkeys was mildly interesting then it ended very badly
I can't see why that would be considered a "classic"
shotsfired.jpg
 
@Linus i know :p more scared about them fucking it up
 
:P
 
@FélixGagnon-Grenier now say sorry
 
@PeeHaa no. I really disliked that movie. deal with it.
... sorry
 
3:45 AM
:D
 
hue hue hue.
 
Wes
we arent friends anymore
 
but @Wes! the end is crap. it's like, so infinite loopish!
 
Wes
best movie evar. shut up :B
 
Wes
3:48 AM
nah it's not the best but i consider it a good movie
one of my favs. i like scifi, and that's one of the best scifis i know of
 
lol I literally shat on your favorite movie. sorries
 
Wes
not my fav, one of my fav(S)
my fav movie is.... pulp fiction? blade runner? hard to tell
 
reminds me that I have to watch blade runner
 
Wes
terminator 1 and 2 are pretty good too
the old one or the new one?
because if you didn't watch the old one....................................
seriously...............
:B
 
old one :B
 
Wes
3:56 AM
@PeeHaa i don't know what to do with this guy
 
:P
btw is there new terminator 1 and 2 ?
 
Wes
wat
terminator is 1985 or something old
 
sorry my mistake
:B i misread
 
Wes
here's another one that never watched terminator
i hate this chat! :B
 
i watched all parts :B 3 times each
 
 
2 hours later…
5:55 AM
ohayou
 
 
1 hour later…
7:17 AM
HALP!
 
7:31 AM
wait :P
definte or indefinite?
 
the latter, indefinite
I got something tho, not sure if it's correct... I got tan(x) - sec(x) + C
 
@SaitamaSama multiply and divide by 1-sinx
 
yeah, I rationalized it
got:
 
@SaitamaSama another one?
 
no, that is what I got after rationalising latex2png.com/output//…
 
7:36 AM
there will be - sign in between not . sign
 
uhh, yeah :P
I'm not really good with latex
now, I just applied int (u +- v) dx = int (u) dx +- int (v) dx
from which I got, tan(x) - sec(x) + C
 
good
 
so, is that correct? :B
 
may be check the answer
method is right
if answer is wrong then there is calculation mistake
 
oh alright! (I don't have the answers, these problems were given by our teacher :B)
also, integration is bad
 
7:41 AM
@SaitamaSama you are bad.
 
:<
meanie
 
:P
 
8:15 AM
hello can anybody help me out with Google Cloud?
 
helllo guys
{"error":{"errors":[{"domain":"global","reason":"insufficientPermissions","messa‌​ge":"Insufficient Permission"}],"code":403,"message":"Insufficient Permission"}}
i get this whenever i try to verify a site via api
 
probably hints that the authentication data you provided was invalid, or there was some problem with the authentication process itself
 
actually there wasnt proper documentation of google api library for php
0
Q: Insufficient permission while verifying site google

ujwal dhakalI've been trying to use google site verification API. Whenever I try, I get insufficient permission error. public function verify(Request $request) { $this->basicSetup(); $this->client->addScope('https://www.googleapis.com/auth/siteverification'); $verify = new \Googl...

i have posted a query too
 
apply more dev
 
yes but what could be the worst case i have done researching and applied the things i can
 
8:28 AM
> new \Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest
dat class name tho
 
aw it was on google library
 
Anonymous
8:43 AM
!!wotd
 
pervious open or accessible to reason, feeling, argument, etc.
 
9:06 AM
posted on December 09, 2017

New Cyanide and Happiness Comic

 
9:27 AM
hello from the other side
 
9:58 AM
Guys, please take a look at this two pieces of code (they aren't related to each other), and my question is, when should I initialize an object into a variable and when shouldn't? I mean, as you know, in the second piece, everything will be applied without initializing, but in the first one, without initializing nothing will be applied ...
$tracking_codes_obj = new TrackingCode;
$tracking_codes_obj = $tracking_codes_obj->where('tracking_code', $tracking_code);     // this line
$tracking_codes = $tracking_codes_obj->orderBy('expired')->orderBy('id')->get();


$db_con = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$db_con->exec("set names utf8");                                                       // this line
All I'm trying to understand is when just using -> is enough and no need to initializing anymore?
 
10:15 AM
cal_days_in_month function give error undefined function in php 7.0.26 – #75658
 
what
 
10:41 AM
What do I do with bugs I can't reproduce? bugs.php.net/bug.php?id=75658
 
11:08 AM
@kelunik Set to Feedback
Then it will get auto-closed in two weeks
Or if clearly bogus, not a bug
 
!!lxr cal_days_in_month
 
[ /ext/calendar/calendar.c#327 ] PHP_FUNCTION(cal_days_in_month)
 
Anonymous
@Shafizadeh your question makes no sense. You initialize a class when you need to use it. period.
 
@samayo yeah
 
@kelunik Ah, I didn't read the bug title
calendar is a separate extension
Clearly he just didn't enable/load/whatever it
calendar is not part of date, so not always available
 
11:16 AM
I didn't find anything in my php.ini that enables it, either.
 
@Shafizadeh it's because the first example uses some kinda of query builder
that entire thing could be considered a "ugly piece of code"
 
@tereško yes I got it, I read the whole "query builder" part of Laravel documentation.
 
the where() in that example probably returns something that is not an instance of TrackingCode
basically, you end up loosing the initial reference
 
@tereško yes, and I believe it would be better if it returns TrackingCode objuct plus that where clause
 
well, I would just assign the result of where() method to a different variable
 
11:19 AM
@tereško I don't need to keep the old variable, it's useless (at least in my case)
 
it makes easier to understand, if the "meaning" of the variable does no change
 
emm, maybe :-)
 
you don't need to "reuse" variables, you are not running your website on 40 year old laptop
btw, you also should avoid overwriting the "incoming" variables for a method/function
for a similar reason
and it makes it easier to debug
 
how does 40 year old laptop look like?
@tereško ture .. I see that
 
11:23 AM
:-)
 
those things probably had like 16MB of RAM
 
Ah, you're talking about the size of RAM .. Got your point now :-)
 
hmm ... actually it's closer to 20 years (a bit more)
 
Also, as an English question, already I seen sentences start with `to` + `verb`. But not like this:
> Chrome to force .dev domains to HTTPS via preloaded HSTS.
Anyway what does that sentence even mean?
 
That's a strange style, that some people use for news headlines
"Chrome will force .dev domains to be accessed via HTTPS"
 
11:28 AM
Ah I see, thx
 
morning
Still here on the weekend, people get a life.
 
Wes
also dustin offman
don't want to live on this planet anymore
 
 
1 hour later…
Wes
humans are the real animals
 
1:39 PM
@Linus decolonization was a mistake
 
@tereško that goes above my head :P
What does that mean?
 
2:05 PM
 
2:21 PM
Guys, I want to share something with you that I've learned just now. There is a concept named "ENUM", it's for constants. You can read more about it here
 
there actually such data type in SQL (which, btw, you should not use, since it cause the data to become part of table structure .. bad idea, but popular among some MySQL users) ... as for the PHP variant - the idea is neat, but I only see a practical purpose for it in legacy codebases, where you have a lot of "magic values" floating around and want to clean it all up a bit.
more often you will see such such constants be part of the domain entities, that they are associate with
 
Enums have value, at least I've used them. One example: you can have a class holding a small finite amount of key value pairs, that you can't change at runtime, and you choose one at runtime by key to get it's val. It just holds an enumeration of options.
 
@tereško also I'm one of the people who uses ENUM in MySQL a lot :-) It makes that column more clear. You know, when I don't use ENUM, I have to add a comment for the column and explain what it should be stored ;-) (or try to choose a good name for the column)
 
So constants would be acceptable in the above use case. In swift, which I'm looking at now in my spare time, and it doesn't have constants. In fact, they recommend you use an enum. Same for custom exceptions, use an enum to group together the different types of errors for certain use cases.
Oh yeah, and this is nothing to do with MySQL ;)
 
2:31 PM
you might need to give better names you tor tables and columns, @Shafizadeh :P
one thing you have to to consider, when using such constants is the HOW part
 
how what?
 
there is the good way and the bad way in how you can use constants
you can use them as global immutable state (that would be the bad way)
or you can use them as "named values"
for example: Account::STATUS_BLOCKED is a "named value"
 
while Config::PROJECT_DIR is a global immutable state
 
well it should be
 
2:36 PM
the tricky part is "how it affects the tests"
if you have that magic constant sprinkled all over you codebase, then you need to will need to know, which global constants have to be defined, when you need to test some class
(of course, this assumes, that you might move towards test-driven-development approach in a foreseeable future)
 
ah, yes, true
 
so .. guys .. anyone else expecting economic crisis next year due to collapse of bitcoin ?
 
it wont collapse so soon
the peak has just started
 
Not sure, but I've just signed up for coinbase. Got some bonuses I'm thinking to put into BTC / ETH so I don't care if I lose it
Maybe a little late to the party...
 
bitcoin is not even really, I don't understand why people make it a big deal?! It's even worthless than your repo on SO.
 
I've seen a lot about that, I'm looking at coinbase only though
@tereško You got anything in anywhere?
 
@Shafizadeh yeah .. if you had put in $1000 in bitcoins 2 years ago, you would be sitting on something like $40000 now
@James nope, I missed the boat, and it's way too late to do it safely now
 
@tereško Does it matter? Is it possible to earn that money in the real world?
 
yes, it is real money
 
I heard it is not ..!
 
2:48 PM
you can buy houses in Latvia for it
as in, real houses
 
hmm, I had a totally different imagine about bitcoin
 
How can I earn some bitcoin? :-)
 
these day - you really cant
 
do you have any?
 
2:56 PM
nope
but about 5 years ago you could generate them using a special software at home
 
WTF .. I feel lose
 
you will have to google a bit to learn what all of it is
 
3:12 PM
@tereško I was reading still about generating them, or ETH for example. If you get a GTX 1070 and do it at work, you can make your $ back in 6 months
 
it's better if you can get free electricity
it's one of those "I know people, who know people, that work at electric-company" scenarious
then it is a viable option
 
has anyone done google site verification from an api?
 
guise! how do you handle translation / parameterization of string literals? Eg the label of a button could be "save" or "enregistrer". Do you inject a service in each view and display the correct label "SAVE_BUTTON" for language x? I'd like to be able to use it from a template, so maybe inject that service from the view in the templates? It can't be a function, as it would at least need an array/pdo connection (for the dictionary) which is not great to pass everywhere.
 
@FélixGagnon-Grenier depends. Are you using twig?
 
any other templating engine?
 
3:54 PM
I've thought of adding an optional TranslatorMiddleware or something in the engine
but that sounds like even more crappy code
 
well, in Twigh you would do it by adding a custom function: twig.symfony.com/doc/2.x/advanced.html#functions
that function would probably interact with some sort of service
 
twig is really a shit
 
famous last words
 
@FélixGagnon-Grenier I wrote down my thoughts on how to do translations. gist.github.com/Danack/703010ec1e855684296e
 
@ujwaldhakal since you are laravel user, your judgement is highly suspect
 
3:57 PM
:P
 
Though as I also just rubbed some deepheat into my eyes, take my opinions with pinch of salt.
 
@Danack it one of those moments, that make one feel really proud of himself ... and google for costs of retirement homes
 
i have used twig
in my current they have used twig
and there so many limitations out there
may be i am from core and laravel blade background
 
yeah, it really hard to make SQL queries in twig
4
 
00:00 - 16:0016:00 - 00:00

« first day (2611 days earlier)      last day (2337 days later) »