« first day (1504 days earlier)      last day (3435 days later) » 
00:00 - 14:0014:00 - 00:00

12:12 AM
And its official. The EU are worse than the USA when it comes to sanity of politics.
 
wat happened ?
 
well, they kinda have a point
google is a monopoly for all intents and purposes
of course, that EU resolution will probably have 0 effect on google, but I agree with the idea
 
12:28 AM
hey hi!
haha @TomaszKowalczyk check this out I just found it: i.imgur.com/Go4KCGR.gif
 
12:48 AM
@DaveRandom I use two 27" monitors.
Not the silly 1080p ones; 2560x1440.
 
.. matrix hasn't aged well
 
@LeviMorrison Using one 2560x1440 and an 2880x1800 monitor. I totally agree, somehow it's better with two…
 
^^
I used to have two 30" monitors at 2560x1600, but the 27" monitors are newer and have better viewing angles, better colors and stand up higher.
 
Uh, 27" is already pretty large when being 40-50 cm away…
 
I bumped the font sizes up on either size anyway.
30" are far more expensive. I'm really not sure what market they truly target.
27" have a different aspect ratio, I guess, so maybe that matters.
 
12:58 AM
@LeviMorrison Uh, the 2880x1800 monitor is on 15" and I even didn't bump up font sizes… still well readable for me.
 
I just don't like small font sizes. I read stuff all day; I want it to be really easy.
 
So do I. It's harder to read when font-sizes are too big. There are some websites which do so and I usually scale them down first...
(for me)
 
That's also why I like retina screens.
Fonts are really crisp compared to their normal counterparts.
 
Well, if you use 2880x1800 on a 15" monitor (native resolution, not retina x2), pixels are already so small that it doesn't matter.
But I'll happily test a 5760x3600 screen on 15". (but not native resolution this time^^)
I wonder if there would be a significant difference in readability.
Apple next year: MacBook Pro Retina 4x :-D
 
I'm sure they already have a "4k" like screen either out or in development
 
1:09 AM
@LeviMorrison yes. but on 27"^^
I'd like to see that on 15".
I'd like to know how over 800 ppi looks (with x2 scaling)
anyway… good night.
 
1:25 AM
Good night.
 
1:36 AM
hallo
 
1:57 AM
@tereško not in the context that ruling uses tho
 
2:10 AM
Need help on compare and merge two array? stackoverflow.com/questions/27178532/…
 
2:21 AM
hey guys, i need to ask how to check whether $_POST is empty or not. i found some answer but in those they use $_POST directly without any sanitization or escaping
 
sizeof($_POST) == 0
 
still you are using $_POST variable directly
is it safe ?
 
$post = $_POST; return sizeof($post) == 0;
That is better?
What is the point of sanitize values while retrieving them from $_POST?
 
i dont know. i am using netbeans it gives me error that dont use global variable directly, use filtering function
my code:
if(empty($_POST) === false){
any suggestions ?
 
It's safe. But it's better to encapsulate work with $_POST somewhere.
 
2:27 AM
please explain
'encapsulate work'
 
Isolate usage of $_POST variable inside some class
 
 
1 hour later…
3:44 AM
Okay…
Hack is ridiculous
> Please make your type Parameter start with the letter T (capital)
^ That's an error.
 
if($curPage=="/#home")
{
echo '<style>.landing-page{display:none;}</style>';
}
else{
echo "";
}
any thought in this @LeviMorrison
 
What about it?
 
I'm trying to hide the class landing page when it was "/#home"
 
4:08 AM
Seems like a bad way to do it.
 
ohh any suggestions? @LeviMorrison
 
Use JavaScript.
Everything starting at # isn't sent to PHP.
 
do you have example bro?
 
Nope, sorry.
 
hahaha
 
 
2 hours later…
6:07 AM
@FlorianMargaine tks
 
6:28 AM
@ChrisBaker Tks
 
6:42 AM
@JohnMax , what are you doing?
 
7:31 AM
M0rning!
 
fridaying
 
posted on November 28, 2014 by kbironneau

/* by GromNaN */

 
Morning
Is @PeeHaa still sleeping? How unusual...
 
7:58 AM
Argh, I'm afraid there's no breaker for today webtoon.daum.net/webtoon/viewer/28129 ...
 
8:13 AM
Uggghhhh morning
@HamZa Not sure yet. I am probably going to meet benjamin from JS room later today. Not sure at what time yet. Need to text him about specifics
 
@PeeHaa ok, because I'm currently at school and I need to work tonight.
 
:(
boooo
 
@PeeHaa haha I'm ready to skip school to meet you guys but I can't skip work
 
hehehe fair enough
 
good morning!!
 
8:22 AM
@Naruto meurning
 
:D I forgot :P
 
What did you forget?
 
moin
 
8:26 AM
@HamZa tradishion's spreading to other rooms \o/
 
not sure which room invented it first tbh...
 
I'm working with an API of one pretty big company, there is an example request that returns a female with surname "Vagina". Oh those perverted devs.
 
lol
 
@Gordon well... it's black friday after all
@JoeWatkins morning
 
@FlorianMargaine right, hahaha
 
8:32 AM
@SergeyTelshevsky , accent on the first syllable...
@FlorianMargaine , jessica black friday.
 
@sectus I understand, but I'm sure there's plenty of other surnames you can change that with :)
@sectus I'd say an easter egg
 
I used to know Vagina
 
wh o said easter egg?
 
@HamZa Thanks for sharing those Steam sales!
 
8:36 AM
@sectus never heard that surname before, though, in the other examples there are Iurii Gagarin and some other interesting things
 
I never remember...
does __DIR__ have the slash at the end?
> This directory name does not have a trailing slash unless it is the root directory.
 
@FlorianMargaine no
 
@SergeyTelshevsky , now you know that is the real surname. :^ )
 
hello alll
has anyone used dailymotion with php
 
@HamZa my regular entry :)
 
8:45 AM
@Naruto hehe :)
@androidBeckhamania there is an accepted answer -_-
 
@HamZa thats aint working for me
I get this error
exception 'DailymotionTransportException' with message 'couldn't open file "best.mp4"' in F:\wamp\www\dailymotion-sdk-php-master\Dailymotion.php:850 Stack trace: #0 F:\wamp\www\dailymotion-sdk-php-master\Dailymotion.php(324): Dailymotion->httpRequest('http://upload-0...', Array) #1 F:\wamp\www\dailymotion-sdk-php-master\testDM.php(10): Dailymotion->uploadFile('best.mp4') #2 {main}
 
@androidBeckhamania then you're doing something blatantly wrong
 
@androidBeckhamania then why is there an accepted answer?
 
@androidBeckhamania the error message is clear. Does it exist? Do you have the rights?
 
8:48 AM
@Duikboot steamsales? :D
 
best.mp4 is at root
 
@androidBeckhamania I think this is clearly a path issue...
 
Mornings
 
@androidBeckhamania , use absolute paths.
 
8:54 AM
@Naruto Scroll-up :)
 
@Duikboot sorry missed it :)
 
:D
 
also, morning
 
heh
so true
 
9:06 AM
something very funny is happening on my machine... imgur.com/w2pQrCp
first is json string... then a json_decode() and then another json_decode()
 
@iroegbu So?
 
json_decode(json_decode($json_string)) produces php array
 
@iroegbu are you by any change putting JSON in another JSON ?
 
3v4l.org/iFUmS works okay
problem is from json string I guess
 
9:27 AM
last night was epic went to a hardcore show
 
hello
 
posted on November 28, 2014 by kbironneau

/* by Ricardo Silva */

 
I am using PDO connection.
$sth = $con->prepare($sql_qry);
$sth->bindValue("user_id", $user_id);
Can I call bindValue before prepare?
 
no
because prepare() is what returns the PDOStatement instance
you need an existing statement to call bindValue() on it
 
9:42 AM
@tereško Ah u are right! this is obvious lol. Before prepare, $sth is null.
Thanks :)
 
9:54 AM
mooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooornings
 
noon 0/
 
> Also, since PHP is not a compiled language, practical difference between
"compile time" and "runtime" does not really exist.
wish stas would stop saying that ...
moin @DaveRandom
 
ThW
Morning
 
10:15 AM
morning
 
Anyone going out for crazy blackfriday offers?
 
@RonniSkansing nope.avi
 
Hmm.. I "tried" to update my avatar.. Do you see a duck or a human to the left of this message?
 
10:28 AM
@RonniSkansing Still the duck, but chat is known to cache avatars
 
Okay, thanks. I doing a duckstohumanoidplacstic, so I should become human one of the days.. [=
 
\o/
 
Ronni in the dark. Coming soon...
 
hehe, yes, lol it is pretty dark.. maybe I will take a better one in 3 years .. ( I am so white, that I blend into the wall ) (rgba(255,255,255,1))
 
Does someone know why my xampp keeps sending the error: C/xampp/php/ext/php_uploadpgrogress.dll is not a valid win32-application? i tried the x64 and the x86 version but both ended up with this same error.
 
10:35 AM
@RonniSkansing I thought I was seeing a pic of you yesterday actually, but now you seem to be a duck (maybe I'm getting confused with linkedin)
 
@Stefan What is your specific PHP version and what extension did you download?
 
@Jimbo Monrng!
 
DaveRandom no, you are right, I actully do have a picture on linkedin, I got abit longer (and more sticky) hair on that one.. but maybe abit too sticky.. lol .. all traits of a indoor dev creep ... dunno maybe I should use that one instead.. or just pull my act together and get a real photo taken
 
@PeeHaa a wild guess: .elf
 
10:38 AM
Did you guys see? Microsoft includes PHP by default in next version of Windows! (Like Linux)
 
@PeeHaa PHP/5.5.11 im trying to install the uploadprogress extension for php to show a upload bar when uploading a file into a form.
 
Oh and I read that as "postgresql" :)
 
@Jimbo ..
 
@Stefan TS I presume?
 
@Jimbo the "like linux" gave it away... I knowingly clicked the link
 
10:41 AM
ts?
 
@FlorianMargaine Damn, I added that as an afterthought :-( ah well
 
@PeeHaa i didn't use that site I downloaded it here: windows.php.net/downloads/pecl/releases/uploadprogress/1.0.3.1
@PeeHaa should i try the nts or the ts version on the site you just send me?
 
Well the question still stand. Is your php TS or NTS?
Do a phpinfo() and get the extension for your exact version
@Jimbo Since when is PHP included by default?
 
@PeeHaa I install any Ubuntu distro, I have PHP already installed...
 
10:47 AM
I think centos doesn't do that \o/
Do you also have perl by default on ubuntu?
 
@PeeHaa I did phpinfo(); where can i find if its ts or nts?
 
@Stefan PHP Extension Build
Also note that the compiler info is also there
 
@Jimbo not on my ubuntu
 
Tips for repwhoring please
 
10:56 AM
@RonniSkansing Hey your avatar updated in chat
 
yay! It also "force" refreshed me
(hidden in darkness)
 
@PeeHaa I now found the right extenstion but it ends up returning this error: PHP Warning: PHP Startup: uploadprogress: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20121212
These options need to match
 
@Stefan You didn't pick the correct dll for your php version
 
i did
the dll version is for 5.5 and im using the 5.5 php version....
 
Wordpress core wasn't designed. — Jimbo just now
2
@RonniSkansing jQuery and Indian posters.
 
11:02 AM
@Jimbo thanks.
 
@RonniSkansing Oh you are now a person in avatar here as well
 
@DaveRandom yay humanoid [= Maybe now people will stop thinking that I am 5 years old.. (or not.. =] )
 
11:17 AM
@PeeHaa how did that survive this long? :-(
 
@DaveRandom Not on of our tags :)
 
Work christmas party tonight!
 
@PeeHaa Did you hear anything from Benjamin?
 
@HamZa Nope. Texted him at 10:00 but no response yet
 
11:33 AM
@PeeHaa maybe @BenjaminGruenbaum got lost?
 
@HamZa Hopefully
 
:P
 
haha
 
I think this is Panique?
Don't Panique!
 
@Jimbo he has a good looking website
 
11:41 AM
@SergeyTelshevsky srs?
 
@Jimbo Yep
 
@Jimbo this one from his profile
 
@SergeyTelshevsky .. and he's spreading bad practices and bullshit
 
@SergeyTelshevsky But... it's terrible... LOL
 
@tereško doesn't make his page look any worse!
 
yeah, the topics are bullshit but
"Postmodern PHP"
 
Oh, I received Laravel stickers!
toilet or trash can, can't decide :(
 
Here's evidence that in 2012 he didn't know what typehinting was, in any language. Yet in 2012 he starting his "MVC Framework".
 
11:54 AM
you guys remember this game? That's a screenshot from my phone... I can easily get "2048" now.
 
wooot first time deleting Q :O
 
@iroegbu sticking to one corner is the best strategy iirc
 
yes
 
@SergeyTelshevsky lol..
 
12:01 PM
> LG G Watch (Black Titan) is not available in your country.
 
burn
If you actually want one I can order it for you and relay it to you, not sure it's worth it though
I'm not buying one, I don't really want one...
 
I don't really care about watches in general nor smart watches in specific
 
do you guys use Name::class or 'Name' when asking for an object from a factory ?
 
Morning all
 
12:06 PM
@Jimbo \o/
 
Morning @Fabor
 
@tereško I'd favor ::class because of the namespace associated with it
 
@tereško I try to use ::class where possible, but have chosen to keep supporting 5.4 for some projects, so can't for everything.
 
@Gordon Yeh, helps with refactoring stuff into aliases at a later point as well
 
must .. finish ... current .. project
 
12:07 PM
also very helpful in phpunit's $this->getMockBuilder(Foo::class)
 
@Danack Out of interest, why?
 
why doesn't username auto-complete work in the comments anymore?
 
@DaveRandom 5.4 or the ::class?
 
@Fabor Morning cyborg
How's it going?
 
@Danack 5.4, sorry
 
12:08 PM
I was looking at my code and realized that I wasn't using ::class
 
@SergeyTelshevsky works for me. but feel free to file a report on meta.
 
=/
and I don't think I have time to mitigate this .. emm .. oversight
 
Not bad. Actually had a wash today which was nice. Though it largely involved the help of my friend co-codamol and my wife :P
 
@tereško Meh, old habits die hard. It's not like what you are doing is actually bad practice, it's just not leveraging new features
You don't have to use everything...
 
@Gordon hm, strange, it does work in some questions
 
12:10 PM
@Fabor What have you done to yourself, sorry? I clearly missed something
 
@DaveRandom I have an old-ish mac that I don't particularly want to upgrade the OS on and foolishly I deleted Xcode off it. Which means I can't install newer versions of PHP on my host OS, only on vagrant guests. But also theoretically I want people to use some of the libs I've written - which would be better targeting 5.4 rather than higher.
 
@Fabor :D
 
@Gordon never filed a report, should I post it as a question on meta.stackoverflow.com?
 
@DaveRandom I finally had surgery for my stress fractures on Tuesday. Intramedullary Nailing of the tibia
 
@SergeyTelshevsky yes and add
 
12:11 PM
@Fabor ah the old basketball injury?
 
yesterday, by Fabor
Pictures if anyone is interested. Little gorey but nothing too bad.
 
@Gordon thank you
 
@DaveRandom .. you know how I tend to be annoying, pointing out minor issues in code of others ... well, I see my own code ALL THE FUCKING TIME
 
@DaveRandom aye. Some pictures here: chat.stackoverflow.com/transcript/11?m=20154512#20154512
 
@SergeyTelshevsky note that autocomplete only works for users that have commented on the post
 
12:12 PM
@Gordon could you check if it does work on RobertT, on his answer here
 
@SergeyTelshevsky On his post it works
 
@PeeHaa strange. most likely a bug of mine
 
@SergeyTelshevsky it works on the answer by RobertT but not on your answer or the question because RoberT has not commented on those
 
@Gordon I checked on some of questions from your profile, it works there
 
@SergeyTelshevsky Maybe it's because you already commented on it?
 
12:14 PM
@tereško Just replace as you go then
 
@PeeHaa I noticed this before I was commenting
 
Odd
 
@Gordon yes, it doesn't work on his answer too
 
@SergeyTelshevsky maybe some javascript broken, try to shift reload the page and see if it works then
 
@DaveRandom unfortunately it's not that simple
 
12:15 PM
@Gordon nope, and no JS console errors too, will investigate a bit more
interesting, it works in the comments for the question
so it's probably not broken on the page globally
 
@SergeyTelshevsky A lot of SE JS is jQuery based, which is extremely bad for hiding errors
Notably, I wish it did a console.error() when you do $('#id').stuff() and the id doesn't exist
 
@DaveRandom yeah, they tend to suppress everything but critical errors
Auto-complete works on his answer here though
 
@LeviMorrison You were asking about uses for contravariance - the only semi-legitimate one I can think of is for supporting multiple interfaces in a single class - gist.github.com/Danack/fe0b4cfd3ea90bc54628
That code has a non-trivial "wtf/s" value though.
 
12:30 PM
@PeeHaa "Buy a new laptop. I'm sure it will work on that one" - PeeHaa ... .. made me lol.
 
;-)
 
@RonniSkansing your avatar is finally dark here
 
WTF would any real thing actually use the teapot status code??
 
I see you have left tab open again
 
:P Guilty
 
12:33 PM
@HamZa ... nightman .. aaahhhaaaa - fighter of the dayman ...
 
@PeeHaa hehehe
 
@PeeHaa it's in the example of the article he refers to: blog.neoxia.com/laravel4-and-angularjs
 
Even more so @SergeyTelshevsky:
5 mins ago, by PeeHaa
WTF would any real thing actually use the teapot status code??
 
probably the article's author should've emphasized that it should be changed to an appropriate one
 
HTTP/1.1 400 Y U NO MAEK SENSE?!?!?!?!
 
done
 
1:43 PM
It's quiet...
 
hello all, anyone that could maybe help me?
 
no?
 
@DaViDa Post your question. If anyone can help and wants to, they will
Chat Guidelines: room-11.github.io
 
Hey! Just wrote my first functioning PHP script, permitted to post github gists here?
 
1:48 PM
okay thanks :)
 
@Zack yes
 
@Zack Yep, just the link, not the code contents
 
Wrong link, we don't need the .git
 
@Zack you could just use array_search instead of that big switch statement
 
So I have an app that has a google map. When you click on the map you make a marker and there will automatically appear a form with the coordinates of that marker. Now the intention is that you can make multiple markers that makes a route and then save them to the database.
Problem is i have tested it on 2 different servers. On one it saves only 6 markers even though for example 8 are submitted. On the other it works, but whenever you make a new route after that it will only save 2 markers instead of the amount of markers chosen for that route. I just cant figure out what the problem is
 
Oh really? I'll look into that
Thanks for the suggestion Hamza
 
@Zack welcome. (Don't forget a default value/behavior)...
 
Can ppl please consider re-opening this
 
1:53 PM
@DaViDa I think you will need professional help since the current description of the problem is just not enough to diagnose the problem
 
Well I was hoping for some skilled php dev's over here?
 
@DaViDa you didn't even describe what kind of app you have. Webapp? Android? Cordova? Even a skilled dev can't guess what your situation is
 
@Hamza sorry I have a php app with javascript and html
its a webapp
 
Hamza, just implemented array_search
 
1:58 PM
@DaViDa Any errors?
 
Turns like 20 lines into 1
(y)
 
(y)
 
@HamZa no not at all, just that not all markers get written to the db somehow
 
@DaViDa what's sent in the http request?
 
00:00 - 14:0014:00 - 00:00

« first day (1504 days earlier)      last day (3435 days later) »