« first day (2711 days earlier)      last day (2223 days later) » 
01:00 - 16:0016:00 - 00:00

1:02 AM
posted on March 18, 2018

New Cyanide and Happiness Comic

 
1:33 AM
In PHPUnit, if I use $this->expectException(...); should I still put the docblock comment @expectedException ... ?
 
@Alesana Maybe you are missing the optional custom error message argument of assert functions?
 
Wes
@Alesana no, you need only $this->expectException
 
@FélixGagnon-Grenier Maybe you can explain?
 
sorry :) I was answering to "Comments aren't returned with PHPUnit's output though.".

Comments aren't, but you can personalize the messages that PHPUnit outputs on assert functions.
 
@FélixGagnon-Grenier Oh I should have checked
I guess I could have another value of the array be the message
But I don't know if that has an advantage over just having the key like @Wes showed me yesterday :B
 
Wes
1:47 AM
afaik nobody gives a damn about those, except the test method's name
 
@Wes About the key's for each set of data, or about the messaeg that PHPUnit can output?
 
Wes
@Alesana function test_that_bla_bla()
 
@Alesana relying on the array key name as magic for an error message is really unintuitive.
 
hmm, well it's not really an error message, it just describes the data that's being tested. I guess it is pretty unintuitive, but if I want to fix up the tests I am able to see what type of data is being tested
 
Wes
1:58 AM
@Tiffany cliffhanger + bourne + transporter + terminator + taxxi
 
@Alesana 'describing the data' == 'error message' when in the context of unit testing (for me)
It doesn't matter how whoever calls it, it's the message that gets outputted into console (of log, or whatever) when you run a suite test
 
Wes
was i close :B
maybe a lil bit of matrix too
 
the car chases in that movie were so fucking intense
they show parts of a couple
 
Wes
taxxi, transporter intense?
 
haven't seen those :/
 
Wes
2:03 AM
or steve mc queen intense
 
lol, I need to watch more action movies
 
Wes
:B
 
en.wikipedia.org/wiki/The_Suspect_(2013_South_Korean_film)#Plot this is the plot, but just scrapes the surface of it
 
Wes
also the new italian job has some serious car chasing
 
the ending is excellent too
 
first 30 minutes might seem kind of slow, basically buildup, but after that... it's nonstop
this is one of the car chases youtu.be/x6rf33rHTjc?t=34
it doesn't have subtitles unfortunately :/
 
Wes
2:22 AM
@Tiffany that scene is not great. short segments all glued together don't make a good movie :P...
i am a bit of a purist of action movies :B
 
shrug
 
Wes
know oldboy? @Tiffany
 
I do not
 
Wes
it's one of the like 2 korean movies that i know
and it's pretty solid
 
lol, I've been mainly watching movies/shows with Lee Dong-Wook or Gong Yoo
for..reasons...
 
Wes
2:29 AM
aaaaah :B
............i watch all movies with scarlett johansson
despite they are fucking terrible
by the way, i still need to watch lucy
no, ghost in the shell
 
there was one TV series with Gong Yoo that was terrible... I tried watching it but I couldn't. The female protagonist was annoying, and the story was questionable
 
Wes
lucy is one of the terrible ones
 
One of her male students body switches with her fiancee, and by the end of it, she falls in love with the student who's in her fiancee's body
it's just...weird
 
Wes
yeah doesn't sound like a good plot
 
plus she just acts kinda dumb
 
Wes
2:35 AM
RT if you can hear this image
i can ahaha
 
lol, yup
 
2:55 AM
morning
 
goodnight! bedtime
 
@FélixGagnon-Grenier I guess for me it's not as much an error message but it shows what types of data are and aren't being tested. So, if I want to add data, I can look and see "Am I already testing if a circle inside another circle?"
PHP Sniffer is telling me PEAR standards say that case bodies in switch statements shouldn't be indented :P
 
 
3 hours later…
5:40 AM
hai team
 
Is there a simple way to include your package as a vendor package without putting it on packagist?
 
6:14 AM
this can help i think so
 
Wes
7:46 AM
morno
 
morning
 
buon giorno, stronzos!!
stronzo has such a funny ring to it.
But I guess thats because it rhymes with gonzo and I like that muppet
 
\o Mornin'
 
one question, is "o/" as the answer of "morning", or it itself can be used as an alternative for "morning" ?
 
Wes
8:05 AM
@Gordon that escalated quickly
@Shafizadeh o this is a head, this is a arm /
the arm is figuratively waving
 
oh ... that's the image of a human .. funny :P
 
8:24 AM
the pirate could be better
 
Wes
i never heard of any democratic elections winning with such a big difference
it's always between 5/10%
so yeah world is going even worse lately
 
putin ?
I dunno about change, he's been running Russia for 20 years ...
 
"democratic elections"
 
Wes
"democratic"
 
8:41 AM
hard to fire up brain properly, not enough sleep ...
 
I'm having a problem due to the value from mysql has newline and when I retrieved it, it becomes invalid or unexpected token.
it has ¶
symbol like these when viewing in mysql, but when I tried to edit it
¶ replaces newline
tried using preg replace but
receives same error
 
The pilcrow (¶), also called the paragraph mark, paragraph sign, paraph, alinea (Latin: a lineā, "off the line"), or blind P, is a typographical character for individual paragraphs. It is present in Unicode as U+00B6 ¶ PILCROW SIGN (HTML ¶ · ¶). The pilcrow can be used as an indent for separate paragraphs or to designate a new paragraph in one long piece of copy, as Eric Gill did in his 1930s book, An Essay on Typography. The pilcrow was a type of rubrication used in the Middle Ages to mark a new train of thought, before the convention of visually discrete paragraphs was commonplace...
 
@Gordon what should i do?
it's an existing data and I need to show it.
 
I dont understand the issue you describe. But a pilcrow denotes a paragraph.
 
uhmm. i have a string column in mysql.
that has pilcrow
 
8:49 AM
1
Q: How to remove ¶ (pilcrow) sign from database records

GethuJohnMy aim is to remove ¶ (pilcrow) sign from the database records. There are thousands of records so I cannot do it manually. Is there any script available to remove ¶ (pilcrow) sign from MySQL database column?

 
omrnin
 
monrin
 
'nin
 
9:04 AM
 $contactperson=$row['fcContactPerson'];
im having problem with this column.
tried str_replace
still not working
i can't use update query due to it has many data.
need to adjust from the program
 
Anonymous
9:25 AM
mornin
 
Anonymous
@JoeWatkins happy belated old day
 
what about everyting?
 
I think I read that you can't catch a TypeError, but I'm doing so just fine. Did something change or am I just remembering incorrectly?
 
probably remembering wrong ... you won't catch a TypeError in a catchall block ...
 
Ah maybe that was it
 
10:03 AM
Does this response mean I can't use any currencies except EUR as my base currency or it's something else?
{"success":false,"error":{"code":105,"type":"base_currency_access_restricted"}}
This is the url I've used: http[colon]//data.fixer.io/api/latest?base=USD&&access_key=f61e29d67e01*********30ba545a‌​740
It's my first time I've got data from an API. if I omit the base=USD part it works fine.
Sorry I got the answer.
 
10:27 AM
@tereško can i ask you a potentially political controversial question? I'm just curious on your perspective of things.
 
sure
 
What's your opinion on the state of things in Ukraine and the Ukraine/Russia conflict?
@Alesana do you sleep?! Lol
 
@Tiffany Depends on my mood :P
In all reality I'm about to
 
I'm being selfish in this, but i wish i could sleep whenever, then focus on work (I'm on mobile)
 
it's a mess - it seems that the "rebels" jumped the gun, since Putin t that time had serious internal issues, he had to support them. And this thing has slowly (unless I have missed something major in part 4 days) been escalating. As for the disputed territory, neither of countries have a right to it. It was the lands of Tatars, that were occupied by Russian Empire and then gifted to Ukraine by one of the General Secretaries of The Party (since that Secretary was from Ukraine).
 
10:35 AM
@Tiffany I'm staying up so late in an effort to get work :B
 
@tereško which rebels? Ukrainian ones, or the rebels with russian influence?
 
the ones with russian influence
based on what I remember about the start of the conflict, everyone in Russia was in a panic-mode
 
Didn't Ukraine recognize the Tatars though?
And Russia currently isn't?
 
not really
 
But to be fair, I live in a country that took control of the land from the indigenous people
 
10:39 AM
you, see, those "rebels" were most likely there to prevent NATO from expanding their influence there
someone seriously missed a memo
 
And then put them on "reservation" camps...
Why would NATO want to get involved?
 
Ukraine was signalling, that they want to join it
 
Ahhh...
:/
Do you think the rebels were Russians who just happened to be in Ukraine around that time, and we're trying to shake things up?
 
look up NATO bases surrounding Russia
from their perspective, they are steadily loosing the "buffer zone"
@Tiffany those "rebels" where there to destabilize the talks regarding the joining NATO. Someone over-reacted. It might also be, that some general in the "rebel" chain of handlers saw it as an opportunity to destabilize Putin's grasp on power
 
Gah, ordered the wrong pin connector for my pi :< got a 40 pin instead of a 26 pin
 
10:48 AM
@tereško but wouldn't that be against their interests...?
"destabilizing Putin's grasp on power"?
 
not really - the goal is to gain personal power ... and it's a zero-sum game
 
:/
it sucks
 
no, it will suck when Putin dies
 
power vacuum?
 
yeah
 
10:51 AM
reminds me of something I saw a couple days ago...
 
here is the concept to keep you awake at nights: "balkanization of a nuclear super power"
 
if putin_is_alive():
    return "Putin"
 
what's the difference between "original price" and "adjusted price"? In other word, what does "adjusted" mean in pricing context ?
 
10:54 AM
@Shafizadeh the original price is typically what the recommended retail value of an item is (or whatever the store sets the price as), and "adjusted" is just that... the original price was adjusted, usually to be on sale
 
If I was selling a chocolate bar for £2, and then I put it on sale for half price, then the adjusted price of the chocolate bar is £1. The original price is still £2
 
the "adjusted" price can go in the opposite direction though :P
 
Indeed
 
usually not in stores
 
ah I see .. thx :-)
 
10:55 AM
morning
 
video cards in the past two years or so is a good example
 
Cryptocurrency is killing RAM and Gfx Card prices, I hate it all
 
the video card I have I spent around 200-300 440 USD on, I think? and now 1070s are ridiculously expensive
 
AFAIK Miners are buying all the stock and it's making the prices shoot up
While I don't hate cryptocurrency as a concept, the amount of actual electricity / resources that are being put into it now for mining is way too much
 
and what does "expy" mean in road-ish contexts? google doesn't give any translation for it
 
10:59 AM
AFAIK expy = expressway
 
ahh right
 
in simple terms, a highway... but that is putting it very simply
 
yes true ;-)
 
there are some differences between expressway and highway
k, time to finish the cleaning I didn't get done last night cause I was a lazy bum watching movies
 
Guys, do you know what's Nowruz? It's the Iranian new year .. happy to me :-)
 
11:09 AM
@Sean miners aren't really damaging the memory market, only GPUs
it's dem smartphone companies which are memory hungry\
 
Arabic texts not displayed while creating pdf using smpdf library. Anyone know how to fix this issue?
 
Is it wrong to throw a TypeError because a string is not numeric? I need to accept a float, int, or numeric string.
 
@Shafizadeh isn't that on the 21st? you are too early
 
@Gordon yes it is on 21st ..! I'm counting days until that biggest celebration ..
it's 15 days holyday in here because of that ..
I will travel to US :-)
 
Woohoo, my big red button arrived!
 
11:16 AM
what's red button?
 
@Shafizadeh It's an Iranian holiday and you want to travel to US ?!
 
@Simon.B :D
I'm using that vacation ...
I don't like Iranian celebrations
people buy new clothes, new cars etc .. I don't like new things
 
@Shafizadeh So you must love Vlad Putin :P
 
btw @Gordon do you have any contact with Iran? I heard name of some Iranian foods of you, and now you knew the exact date of Nowruz ..
@Simon.B I LOVE him :P
 
11:20 AM
 
@Sean seems good .. just what's that? the Enter of your keyboard ? ;-)
 
I'm just kinda screwing around but the goal is to have a key switch & big red button for deploying with RGB LEDs to display progress
Messing around some circuitry, a pi & GPIO PHP extension, and the deploy service's SDK.
 
ah .. good :-)
 
moin
 
11:35 AM
Moin!
 
@Alesana InvalidArgumentException. But also, most likely you don't need to accept those things, you need to pick a thing and make sure that the caller knows what they are passing, unless the only purpose of the function is to normalise the input.
 
squeeee, I get my federal tax return in a couple days... I can buy a new bed!
happy happy joy joy
 
@DaveRandom Thanks that makes more sense. Yup in this instance it is only to normalize them.
 
@Shafizadeh ...I'd recommend against that until all the immigration shit gets cleared over over here...
errr, sorry @Simon.B
 
@JoeWatkins Happy belated Birthday you old bastard!
 
11:43 AM
@Shafizadeh I would hate for you get stuck over here or stuck in customs, or detained indefinitely because our immigration laws right now are in a state of turmoil and kind of fucked up
 
@Shafizadeh my wife is half persian
 
actually, not laws, I'm not sure if any of them have passed into laws... maybe "policies" is a better way to say it
 
@Tiffany like this?
 
Wes
a car alarm has been beeping for like 2 hours now
 
@Gordon pretty much...
I'm not sure if it ever passed, I think state attorney generals (or was it judges from certain states? ... I'm terrible with US politics...) kept blocking it, but there was a period of time Trump kept trying to block immigration from muslim countries for quite a while
 
11:51 AM
@Gordon Actually, Wiki says it's an array range(19, 21) :D
 
@Ekin did you listen to the new Pearl Jam yet? I was quite surprised when it started. What happened to Vedder's voice?
 
@all Hello.
 
looks like it did pass 😬 @Shafizadeh Iran is on the list of countries that are banned from receiving a visa to travel to the US
that sucks
or if you can't read it... imgur.com/a/SmIzJ
you might be able to get an exemption, but it's apparently extremely hard to do so
 
@Shafizadeh try visiting someplace in europe or asia (south korea might be fun)
 
I want to go to South Korea....
@tereško do you like action movies?
 
11:54 AM
@Tiffany yeah, but for us it would take like 2 days to fly there (assuming there is no direct flight)
and, yes, some
but it's kinda hard to remember anyone specific that I recently saw
 
@tereško not sure if this would interest you: trailer, car chase scene
Wes didn't like the car chase because it "jumped too much"
I watched it last night, so fucking good
 
Hi, In PHP 5 when they are passing a local variable as param for call_user_function why is the INIT_PZVAL done? For e.g. in php_http.c in soap ext
 
will have to watch it later
I am slightly at-work
 
it's two hours long, first 20-ish minutes might seem kind of slow, but it's nonstop intensity after that. I really enjoyed it.
 
... that reminded, I still have not finished watching Raid
 
12:01 PM
Train to Busan is another I want to watch
but it's a zombie movie and ... I don't do well watching those alone
anyway, to work I go, have fun r11
 
@Gordon huh, sounds different indeed
/me is lost in yuge, ugly af php files
just auto reformatting them breaks all the things
 
@Tiffany What a chase. Like the sound in second link (first is not available - because of location here?).
 
@Ekin I thought it was Chris Cornell singing at first
 
yeah that was more like it
 
Hello Everybody
Does anybody help me in this
0
Q: Add maximum weight in prestashop voucher module

ripaI'm an newbie in Prestashop. I need to add "maximum weight" in voucher module's "condion" table. I'm using prestashop 1.6.1.5 . Any help Would be heartly appreciate.

 
12:32 PM
@Gordon Oh really?! Great .. good for you :P
@Tiffany ah ok .. I will not come there ..!
 
I am about to send this guy my solution for a programming challenge he gave me for a job interview. It's my first real potential programming job. Needless to say I'm kind of shitting myself right now
 
@tereško yeah .. I seen some photos of south korea and seems good .. also I guess Germany is a good county for fun too :-)
 
it might be a language issue in germany .... I am not sure how high the english-proficiency there is
 
@Shafizadeh what? who told you that? don't you know fun is verboten in germany?
 
he's currently googling what "verboten" is and what sauce one uses with it
 
12:38 PM
@tereško they teach english in elementary school since a few years now. and from middle school since at least 30 years so basically everyone younger than 50 years should be able to speak some english. but since it's use it or lose it, your mileage may vary indeed.
 
^ that's how my German is
 
@tereško :D
@Gordon I have a friend in there and he insists to come there ..
that's why Germany is an option on the table :-)
 
@tereško that was actually funny but I am german, so I won't laugh.
3
 
@Shafizadeh ah, if you have a local guide, then it might be ok
 
yes
 
12:52 PM
have you travel to Iran so far? @Gordon
 
@Shafizadeh nope
 
what about your wife?
 
@Tpojka there are two or three other insane car chases like that too
 
user image
5
From our upcoming cryptocurrency converter
 
@Alesana you can do it! :)
@Shafizadeh I'd say try Germany, you'd probably have fun
 
12:56 PM
@MadaraUchiha lol
 
@Tiffany It didn't ( i.imgur.com/7OfXvp3.png ), but I appreciate effort. Thanks. Something to be checked out (about watching that movie).
 
but... I've never traveled outside of the US so my opinion doesn't hold much weight
 
@Tiffany sure :-)
 
@Tpojka :/ well, there's always wikipedia, but it scrapes the surface... it's so much more intense than wikipedia makes it sound
 
@Tiffany Don't like to read those. One sentence on IMDB plot was one sentence too much for me. I like Francis Bacon approach - white sheet of paper preparation when it comes to watching movie. :)
 
1:01 PM
I'd like to live in Germany for a period of time
That'd be nice
 
@Tpojka not following, but I guess watching the movie without reading too much into it beforehand?
 
I'd like to live in Germany for a period of cake
 
:-P
 
Morgens
 
\o
 
1:04 PM
o/
 
hiho
 
@Sean Do you mean "High Whore"?
 
Just correct. And Francis Bacon was philosophist, more accurate empirist who said: Child is like white sheet of paper that experience fills with the impressions."
I am not sure if I phrased it well now.
Same for me - I don't like any prejudice beforehand watching the movie. :)
 
@Tpojka we have a similar phrase - children are a sponge and absorb their surroundings
 
That's his I'd say.
 
1:06 PM
probably a variation of his
 
Is a philosophist someone who is prejudiced against philosophy?
 
@DaveRandom If stick strictly to it, why the hack not?
 
Ladies and gentlemen, allow me to present to you, a flow chart of a single function in this project:
 
Spews
Is that auto generated?
 
That's what they mean by waterfall technique right?
 
1:12 PM
@Danack It's a work of art!
 
@Danack is nuking an option?
 
@Sean code2flow.com apparently
 
Lol. Total opposite to most elegant solution: i.redd.it/pl2qwr76ujky.png
@Danack Is there language named after that function?
 
@Danack That looks kinda easy
 
@PeeHaa as easy as your mother? ba-dum-tish ?
4
 
1:15 PM
:P
 
@tereško No........it's actually quite annoying. The code would be easy to clean up, just by breaking it into functions with sensible names. And I joined the project on the basis that we would be cleaning it up before trying to add new features. But apparently the client doesn't think that's a priority.
 
ah .. of course
 
i actually came here to post this though: imgur.com/gallery/mzzhK
2
 
1:31 PM
user image
9
 
@tereško it seems I bought the pieces for my build just in time. The GPU I have is now well over twice the price, at a respectable 1200$.
 
@FélixGagnon-Grenier O_O jesusfuckingchrist
1200 for the GPU or the whole machine?
 
WTF
 
Bitcoin mining, is wtf it is about
I think
 
1:35 PM
I know but still...
if I didn't like my 1070 so much, I'd consider selling it and buying something else, but I'd still have to pay a crazy price for a new one
 
Still waiting for the Loque Ghost S1 to be released. Can't wait to max that out
 
@Jimbo is that a remake of the mac mini?
 
Wes
2:03 PM
do you understand what's going on with bitcoin? i keep reading that is being accepted by governments and stuff, but it's still doing really bad
 
See how every single 7 day graph looks almost exactly the same?
 
Wes
yeah
 
It's not just bitcoin that's doing well/poorly, every time anything happens to anything in the area at large, the entire spectrum of cryptocurrencies takes a plunge or shoots up
 
I still read that as ti pranks every time I see it
 
Wes
2:05 PM
i read it wheremadaraworks.com
 
@Gordon Even funnier when written in Hebrew
Most often pronounced as "Tippernecks?"
 
evening room.
 
@Wes Yeah, but the data is accurate enough (it's prices, not the relatively subjective scores we calculate, which is our main product)
The fact that the layout of the data made it clear that all coins behave more or less exactly the same, is an added bonus on this page :D
 
Wes
i wasn't accusing you of spam ftr :B
 
2:21 PM
@FélixGagnon-Grenier you can sell it and use it as a down-payment for a house
 
:D that'd be a rather small house, but I'd take it
 
2:57 PM
The WOTD from two days ago is pronounced "crack"
 
@Jimbo as in "Starfleet battleship, SS Buttcrack"?
I really should watch the Farscape again
 
I really should watch it ever
 
you really should
start downloading
 
Wes
3:15 PM
that reminds me that i have watched all sex & the city episodes and i don't know why
in unrelated news, i have smashed my finger in a door
the finger is purple now
why would i get pus even if there is no infection involved
 
Maybe, after your first sentence, finger + door was a hint?
:D
 
Morning.
 
If I'm trying to insert some text before a line (so start-of-line) could I use regex like ^$? or should I use something like \s?
 
@Wes it isn't puss, it cannot be if you just done it ... it's more likely lymphatic fluid ...
 
or... plasma? or something else, I can't remember
 
Wes
3:30 PM
@JoeWatkins looks like pus. i thought pus happened only with infections @Jimbo
anyway it's not too bad. it's just annoying using a keyboard with pretty much one hand only
 
could just be white blood cells that haven't fought an infection
 
!!dad
 
Taking a while isn't it?
!!dad
!!dave
@DaveRandom What've you done now?
 
@Jeeves is not working.
 
!!version
 
3:42 PM
you know what never, ever helps when computer programs stop responding? giving them more stuff to do :-P
 
I just tested in playground it is off.
 
dornick a small stone that is easy to throw.
@DaveRandom I guess I'm late: @JoeWatkins it's your wife's birthday in 6 days
 
Guessing RFC took about 10 years to fetch
 
!!dad
 
ohai @jives
 
3:43 PM
Is this pool safe for diving? It deep ends
 
someone just restarted it, I assume
 
!!uptime
 
╔══════════════════════════════════╗
║ [46 seconds] without an accident ║
║   since [2018-03-19 15:42:40]    ║
╚══════════════════════════════════╝
 
ah
 
I did, yes
 
3:44 PM
@Jeeves /cc @JoeWatkins in case that didn't ping you
 
so there's about a seven day difference between Joe's and his wife's birthday?
I learned something new, I can add a cursor to multiple lines in VS Code
 
01:00 - 16:0016:00 - 00:00

« first day (2711 days earlier)      last day (2223 days later) »