« first day (2144 days earlier)      last day (2811 days later) » 

12:00 AM
actually https://www.mcgill.ca/ dat site is crappy
 
I am currently trying to figure out an off-by-one error in my export code, listening to livestream and trying to assemble a logical sentence
 
you seem to have done one of them just now
on how many screens?
 
one (21:9), tiled
 
oh yeah. lol, I think I remember you writing some out of this world-ish resolution a few weeks ago.
 
:D
 
12:04 AM
so... there's a lot of games I have no cue about in my steam library. how do you do to actually have a cue on what games are? goggle them each time? is there something I don't know in the steam app? look at the game tags?
 
that made no sense
try again
do you want a way to keep track of unplayed games on your library?
 
there's this game, named FORCED in my steam library. I have no clue what it is. What do? I am tired of googling each time, is there some description available directly in the app?
(yeah, you can call me extremely lazy there)
same goes for like.. Torchlight II, or Magicka, or Demigod
 
you just click on game and on the right side there is column "Links"
 
probably a bunch of crappy games I got in bundles
 
click on "store page" there
 
Ekn
12:07 AM
^
 
hmmmmmmmmmmm
how... directly in front of me, thx :p
 
Ekn
> Forced is a challenging 1-4-player co-op arcade action RPG with puzzle and tactical elements. Cast as slaves in the toughest fantasy gladiator school of them all, you will face deadly trials and huge creatures, but Balfus, your Spirit Mentor, will guide you in your quest to break the chains of oppression.
heh the title is FORCED: Slightly Better Edition
 
:)
yeah that's hilarious.
ok, worldbuilding.se is really a cool place
 
@FélixGagnon-Grenier sounds like you just buy random shit
 
Ekn
indeed it is
 
12:11 AM
@tereško yeah. hard to say no when okay rated games are like 3 dollars. I mean, when in my life am I wondering if I'm to drink a pint or no? a pint is two such games
 
playing games takes time
and there are only 24h per day
be a bit more selective
 
yeah, that is some paradoxal thought I try really hard to avoid.
but... point taken :p
 
I still have more than half unplayed games
 
Ekn
oh wow
also lol'd to that button
> Get disappointed in your life™
 
yeah ^^
that's pretty fucking amazingly funny
 
Ekn
12:22 AM
yeah :D
 
> This profile is private, unable to retrieve owned games.
thanks Steam. now tell me the hell how to make it public, so I can hunt ducks in peace
 
no idea
my profile is public (because it is part of my "public face")
 
oh lol. we're on steamdb.info
I guess I won't be making my account public there. shit... I actually entered my credentials too
 
wat?
no, you make your profile public on steam
the steamDB is just making API calls
 
yeah, that's my point
"I guess I won't be making my account public there" there being steamdb
I hadn't realized at first
you drunk @tereško ?
:D
 
12:30 AM
no
tired
 
did you finally managed to get some sleep friday night?
 
I think I did
no sure
I have been working on code for work
anyway, now I am going to sleep
if anyone needs anything, I will be online in 6-7h
 
Ekn
nite
 
nn
 
Ekn
12:38 AM
this literally became my before-sleep song since last year
 
ugh... doesn't that kinda... influence the mood of your nights tho?
 
Ekn
yeah, kinda.. but I don't dream, well, at least I don't remember if I sleep listening this
that's how I got used to it
 
it's beautiful
also this is a pretty cool comment
comment / rant
 
Ekn
that's indeed well said
 
1:02 AM
@tereško pretty sure that's not positive, but I beat you on that
@Ekn let's see yours :p
 
Ekn
well, I actually use this since I moved to south america
before I always played with this, which is now my bro's account
 
Ekn
:)
 
I realize they should have a way to not count hours when game is not active (not sure how to say, but you know when you alt-tab out of there)
 
Ekn
yeah
 
1:09 AM
there's hundreds of fake hours in mine
or maybe I just want to believe that :D
 
0
Q: Fit HTML to page size when printing (POS printer)

Marny A. LópezI am trying to print a page to a POS printer. The printer model is the Epson TM200II. The scenario is as following. The html that I am printing: $message = '<!DOCTYPE html><html moznomarginboxes mozdisallowselectionprint><body">' . '<table id="print-area" style="height: 100%; bord...

 
Ekn
@FélixGagnon-Grenier heh, denial :P
ugh, on that note... I should finish fixing/working on this meteor project if I want to continue drinking
 
haha. that's a great motivation :)
 
1:25 AM
heh
@Ekn Do you self-host the meteor project or use meteor's hosting?
 
Ekn
self-hosted
 
Do you unwrap your app to a node app or keep it as a meteor app?
 
Ekn
it's kept as meteor, although it's highly possible it'll be node later
not my responsibility/decision, except the bit I need to work on now
 
ok thanks
 
Ekn
1:41 AM
do you work with meteor sometimes @taco?
would you say you like it?
 
I made a meteor app for a non-profit. Was thinking about checking it out again
I like it
 
Ekn
I see
I like how one can make a nice working prototype in quite a short time
 
You can use React with it, right?
I wish I could use CouchDB instead of mongoDB
 
Ekn
yeah you can, or anything else
@taco you can?
 
oh you can?
Interesting, thanks.
I know Meteor uses minimongo on the client side, so how would that work with couchdb? Hmm
you can play with minimongo from the js console if you haven't tried
 
Ekn
1:49 AM
meteor changed a lot, see apollo meteor
 
Ekn
yep
 
@MarnyA.López heh, you're writing your POS in php?
 
@Ekn does Apollo work with Meteor Toys?
 
Ekn
I didn't check
 
1:58 AM
When did people stop asking their compilers for errors and start asking stackoverflow?
 
Ekn
isn't chown -R user /dir recursive?
it somehow didn't effect nested folders
 
chown -R foo/
like that?
sometimes not adding a trailing slash does something different
 
Ekn
oh indeed
thanks
 
2:31 AM
morning
 
Ekn
o/
 
O/
 
resolving conflicts fail ^
 
2:51 AM
@FélixGagnon-Grenier Hey that's nothing. I once landed on a recruiting site that had display_errors on, obtained their database login (which turned out to be listening for remote connections), and emailed them a CSV dump of their entire database.
 
@Sherif lol. unrelated to git, but quite epic indeed. I hope they sent you a present to thank you?
 
@FélixGagnon-Grenier Funny thing is they didn't believe me at first. I had to show their developers how I discovered the bug that gave me the stacktrace. These guys were fun though. They were like "oh, I know I should have used @ there."
I weep for the people that hired them.
 
I even had to explain to them why they needed to change their VPC security group for their RDS instance on AWS. They were like wha? It's listening for traffic on the public IP?!?! Well, I'll be damned!
 
 
2 hours later…
5:01 AM
 
5:12 AM
posted on August 29, 2016

New Cyanide and Happiness Comic

2
 
6:01 AM
mornin Gordon
 
Good morning
 
6:34 AM
1
Q: Values doesn't override in magento using soap api from external php site duplicacy issue

Mohit Sharma this is my code <?php $servername = "localhost"; $username = "username"; $password = "mypasswrd"; $dbname = "dbname"; $conn = new mysqli($servername, $username, $password, $dbname); $client = new SoapClient('myurl'); $session = $client->login('usr', 'pswrd'); // get attribute set $attributeSet...

 
6:46 AM
Morning
 
hi
Anybody have worked on strip payment gateway?
 
7:20 AM
Fortunately, I dont need to strip to get payed
TIL: there is a Jeeves DSL: projects.csail.mit.edu/jeeves
 
People pay me to NOT strip.
 
7:56 AM
I'm not suprised they do that.. who want's to see that anyway? :D
also, morning :)
 
mornedafgagf
 
mornin tereško o/
 
good mooning
 
moonin @salathe
 
Man I hate when I'm the only one in the office and the phone rings.
Customers never seem to realise that I can't help them when i'm just the sys-admin and I can't tell them what product soloution is the best.
 
8:10 AM
did you came to office to early?
 
just advice them to buy the most expensive ;)
 
No, boss is coming tomorrow and our sales / marketing guy comes around 11, I keep telling them to call back around 11 because our sales guy is better equipped to help them.
 
why call back at 11 when you want to buy it now? ^^
 
:P
 
Hello, I'm trying to fetch a ICS file using curl. When executing the curl command in the shell it works fine, but when trying to fetch it with php-curl I get a error "403" permission denied. Why does it work with the shell but not with php ?
 
8:16 AM
Mondayz
 
Ekn
mondia
 
@Poteito Well, because the executing user is different? The shell user has the required permissions and the webuser doesn't?
 
o/
 
Ekn
\o
 
@Epodax Even when entering the authentication in the url ?
 
8:24 AM
@Poteito Well I don't know your code / how you auth, but considering that you are using the same authentication in both shell and the script, one can assume that it might be a issue with the executing user.
 
8:35 AM
@Epodax Hm at the moment I don't know how to proceed the troubleshooting. Btw I'm using MAMP.
 
Protip: if you have a problem and you are running on XAMP you now have two problems
 
Actually it's MAMP :P does that count too ?
 
no, the X is for W, L and M
these bundled packages are really crap. just learn how to use a VM instead.
 
@Gordon it's pronounced as "hump"
 
Wes
\o
 
8:50 AM
hump >
To grind one's genitalia in a press-and-release pattern against a particular object or surface; usually associated with an inanimate object.
 
9:18 AM
Moorgeen
user image
5
lawl
 
Morning.
 
o/
@Jeeves u working?
 
Ekn
^ last message 2d ago
last seen 2d ago
 
@PeeHaa fix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix himfix him
 
9:56 AM
himfix!
 
* fix him &nbsp;
 
Hi All
I have created the custom plug-in to store the user information via CSV import. For that i have created the custom post types along with custom fields. But everything stored in my database, except special characters in user name like 'Évana '. How to overcome this problem. Thanks in advance.

update_post_meta($post_id,'username_name', $line_of_text[1]);

Note: I have read all the values from CSV and converted into array. Here $line_of_text[1] holds the values of user name.
 
10:17 AM
in Python, 2 days ago, by davidism
I told my intern to generate a CSV file with Flask and found him reading my SO answer a few minutes later. I have outsourced my job to past me.
 
Morgens
 
moorgeen
 
hii @PeeHaa we are here to share knowledge.if you dont want to help me then dont help but let others help me..stop acting as a third world thug! — juno 7 hours ago
 
Yeah PeeHaa, you third world thug :D
 
lol
> third world thug!
 
festival fever
 
Anonymous
Morns
 
hey jay o/
!!uptime
 
is there a pretty way in PHP to pass a callback function, which is a method call on an object?
 
10:46 AM
You don't think passing an array callable is pretty I assume?
 
7
Q: How to use an object method as a callback function

KaartzI have the below method in a singleton class private function encode($inp) { if (is_array($inp) { return array_map('$this->encode', $inp); } else if is_scalar($inp) { return str_replace('%7E', rawurlencode($inp)); } else { return ''; } } this works fine ...

 
kissanime.to/Anime/Orange really really really nice
 
@tereško nope, only [$object, "methodName"]
 
@Saitama that one is fantastic
 
inorite...
 
10:48 AM
although not really the happiest anime :P
 
well true dat
 
@tereško If you don't like the array thing you can use Closure
 
the feels train is there all the way through each episode
 
@tereško in 7.1, Closure::fromCallable([$this, 'somePrivateShite'])
 
yeah .. I think our production server runs 5.3 :(
 
10:50 AM
:(
 
@tereško that's...... ancient...
 
Then nope. Need at least 5.4 to work around scopes
 
there is a migration to 7 in progrss
 
ah yes :)
 
Wasn't there an RFC for binding closure from method name like $closure = $object->method ?
 
10:51 AM
=)
 
!!uptime
 
@PeeHaa I have been running for 6 seconds, since 2016-08-29 10:52:21
 
ah god, he's back, at last ...
 
Not sure what happened
 
@brzuchal yes, but they never made it very far
 
10:55 AM
I hate array syntax :(
i hate arrays
 
inb4 @brzuchal writing an rfc to remove arrays from php :)
 
I'm more worried about type-safety there. Would love to have something where you say $foo#thing and it fails if thing is a non-instance method, or not a defined method
 
how bad will it be, if I try to decode 100MB json file in memory?
 
@PeeHaa it would be possible when class/method generics would be in PHP
 
@tereško usually works. The nesting is what makes it really slow
 
10:58 AM
s/when/if
 
@Ocramius it's an array of objects
 
@tereško Doable but what are the chances it's not going to get larger soon and you need to find a better solution either way?
 
@tereško My brain would melt if I tried to decode 100MB of JSON in my memory.
 
@tereško you can use jsonView or smth like that i saw on GitHub it works like XMLReader but not loading all into memory
 
@salathe puny mortal
 
10:59 AM
Should be fine, as long as you predict that the size stays there.
 
@tereško my brain is constantly swapping :(
 
@Ocramius Prediction Driven Development!
#WhatCouldPossiblyGoWrong
 
@Ocramius the worst case scenario would be about 500MB
 
that's if someone if dumb enough to export everything
 
11:00 AM
@tereško eerr yeah look into another parser
 
@PeeHaa you'd just throw an exception if the file size is over the predicted one. If @tereško's scenario is "max 500Mb", just throw an exception eagerly if it's over that size
Realistic constraints, rather than software that works for all scenarios
 
I wouldn't :)
 
that's an option too
 
i would solve it :P
 
@PeeHaa if you're paid to solve it, fine
 
11:01 AM
hey if I don't get paid I don't get out of bed in the morning :P
 
if you're not paid to solve it, fuck it: throw new FuckThisFileIsTooFuckingFucky($fileSize, $fileName)
 
@PeeHaa you sleep for free?
 
yes most of the time
 
Anonymous
@littlepootis not unless it's with someone
 
lol!
 
11:02 AM
lmao
 
good one :D
 
@brzuchal we don't have a json thing like we have for xml built in do we? cc @Ocramius
 
No, there is on think like json reader
 
@brzuchal yeah, that's exactly what I wouldn't use if not paid to explicitly solve the problem :P
 
I've putten an external extension link I saw on github
sure if there is option to forbid long files I agree
 
11:06 AM
Yeh, it's just that I would put it everywhere I do json_decode() otherwise :D
 
The problem is that it is an experimental and 3rd party ext
 
@PeeHaa it's just a parser, can't be that messy...
 
I haven't used it, just saw it
 
I hate moving targets
 
well, it could be written in userland, tbh
 
11:06 AM
when looking for some 3rd party ext's on github
 
no need to write it in C code for something like this...
 
I don't know if I'll trust userland implementation for this
 
I'd trust it MUCH more than a C impl. The only issue I see is rejecting non-utf8 chars
which is probably an issue when iterating lazily
don't see a way to make it work without looping through the entire thing at least once upfront
 
But such parser in userland would be quite slow
 
Would there really be such a huge impact?
 
11:11 AM
and will use lot of memory
 
It's not all in memory at once
 
@brzuchal that is not a problem, if your use-case is parsing those large files
can't imagine a scenario (at least in my domain) where something that takes 10 seconds vs something that takes 100 makes a difference there
it would be background processing anyway
 
well, there is difference on XHR when you're <30 seconds your XHR possibly will end with success, but with 100 seconds - I don't think so
if in backgorund sure why not
 
Why the heck would you do an XHR with 500 mb of stuff that may even fail if invalid?
 
I don't know why
 
11:14 AM
like... I'd flag it up as "burn it with fire" during a review
But then, I did too much CQRS lately to keep considering these "real world scenarios". More like "legacy world scenarios" :-\
 
MGE
hey
I need to compare 2 timestamps and check if both of them are in the same hour
 
!!docs datetime diff
 
[ DateTime ] Representation of date and time.
 
Or if you want to check it if it's in the same hour you could just do $datetime->format('Y-m-d H') and compare those
Just make sure you are using something sane as UTC
 
MGE
good solution, comparing with $datetime->format('Y-m-d H')
thank you!
 
11:22 AM
np
 
Anonymous
Judging by the pain, it seems that my neck decided to disconnect itself from my spine, while I was opening a fridge. I can now barely move and my driving test is in two days. My fault for being fat.
 
you are fat? how much do you weigh?
 
Anonymous
I'm not, I was just being fat. But Sky have all Star Wars on demand, so I have some entertainment
 
TIL that "fat" is also an alias for "lazy"
 
11:36 AM
I am fat and lazy..
 
aww... don't be so mean to yourself @Linus
 
!!docs banana
 
[ basename() ] Returns trailing name component of path
 
Thanking you, @Jeeves!
 
Hahaha
 
11:38 AM
@Ocramius and has been
 
@Jeeves :P
 
@JayIsTooCommon that actually sounds quite bad. Have you put an ice pack on it?
 
@PaulCrovella much better, thx /cc @brzuchal
 
If it's stiff immediately after doing it....it's got a good chance of getting worse over the next day. (though you are young so you probably heal better than us olds...)
 
@Danack how old are you?
 
Anonymous
11:40 AM
@Danack heat pad atm to try and relax it. Think it may be a trapped nerve. No idea.. Just incredibly painful and at a very inconvenient time
 
(sorry for the double ping)
@JayIsTooCommon how are you typing :O?
 
Anonymous
@Saitama I tend to not type with my neck and mobile.. :)
 
ah, obvious... dumb me.... any ways, since you are just resting for a while... watch chat.stackoverflow.com/transcript/message/32540724#32540724
 
Anonymous
@Saitama not a chance ;)
 
@JayIsTooCommon Y U NO SEE ANIME?
everytime I try to hook someone to anime, it fails
every. single. damned. time.
 
11:48 AM
@Ocramius my userland implementation doesn't currently reject invalid utf-8 in strings but it could be done pretty simply - I just didn't need it so didn't bother with the additional overhead
 
@PaulCrovella it's a big deal if you allow non-UTF8 stuff to go in. Bad things can happen
 
you don't need to loop over it up front, multibyte characters start and continue with recognizable bytes
 
Yes, but if it fails mid-way then you are shifting error recovery to the next layer
it's a standard chicken-egg problem of iterators
 
@Ocramius to "go in" what?
 
a closed quote where it shouldn't be, for example
 
11:55 AM
you mean like if a string ends with only the first byte of a multibyte sequence?
 
yarp, but also the fact that you are influxing wrong data into the system. The security issue may reveal itself multiple layers later
 
@Ocramius thanks it looks nice
 
I'll revisit it at some point. For the time being there's already a note in the readme that utf8 isn't strictly enforced. If there's a concern with strings you're plucking out then they can be validated independently as utf8 at the moment.
@Ocramius oh, I think I finally understand what you're getting at here - no, the bytestream iterator wouldn't be checking for utf8, the lexer would
there's no point in checking every byte as malformed utf8 would only make it through within strings anyway - if they occur anywhere else it's already invalid json and you'll get an exception
 
12:18 PM
@tereško There is a link improve this answer below the answer - you could use it and convert to a really good code, so that other people can get a real benefit. — IVO GELOV 50 mins ago
 
@tereško I'm sure he'd like if you made HIS answer great so he can get the rep for your work ^^
 
12:35 PM
anyone here a phan of the band Phish?
 
1:12 PM
Anyone here
 
1:23 PM
@FélixGagnon-Grenier nah, still got tinnitus. I did well night #2. Just stayed a little drunk and killed it on the dance floor. :D
 
@tereško tempted to upvote the answer just so they doesn't delete it
@Fabor that's ma boy :)
 
1:38 PM
how do i calculate the number of concurrent users support in a php application
 
@JibinMathew start by reading this and pay particular close attention to the section The Definition of “User”
 
I'm programming a PHP website where i can display dinamically a database and modify it with a modal. The database is refreshed with ajax and the request to the modal script is with ajax too. However now the site works really slow even if it's hosted in local. Any advice?
 
2:06 PM
@Scanfi98 Get a faster server
 
2:26 PM
@Machavity No problem i just used "localhost" instead of the ip, now it works well
 
Morning.
 
o/
> - Completion for php settings in ini_set function
dude. jetbrains really are pushing it. how lazy can we become?
 
2:49 PM
/me is content using Atom
 
Hey
 
@tereško Atom is really good for languages that don't have proper IDEs yet
 
so, basically everything except Lisp
:P
 
But Lisp users don't need no IDE
 
We lost the documentation on quantum mechanics.  You'll have to decode the regexes yourself.
6
 
2:58 PM
@tereško LOL
 

« first day (2144 days earlier)      last day (2811 days later) »