« first day (2111 days earlier)      last day (2828 days later) » 
00:00 - 13:0013:00 - 00:00

Wes
12:17 AM
@bwoebi i did it eventually. not sure if i like it :\
 
12:29 AM
@NikiC Yes.
 
12:43 AM
Why there is not yet an RFC to make optional the word "function" in the declaration of functions and the word "const" in the declaration of constants?

class Foo{
	public BAR = '...';

	public $baz = '...';

	public __construct(){

	}
}
 
@LeviMorrison Ahh, that was it. Thanks.
 
12:58 AM
night... o/
 
 
1 hour later…
2:08 AM
Good morning
 
@AnmolRaghuvanshiVersion2.0 Yo ..!
 
@AnmolRaghuvanshiVersion2.0 nothing really .. (honestly I don't know what's an usual response for "what's up" question)
 
Search google :p
 
:-)
 
Why did the coffee file a police report? It got mugged
 
@Jeeves you are funny.<3
 
@AnmolRaghuvanshiVersion2.0 I love you too :-)
 
@Jeeves what's up?
 
2:35 AM
@Jeeves Hello
@Jeeves Why you don't talk to me? What's wrong with me?
@Jeeves Are you there?
@Jeeves I hate you buddy ..
 
hello
 
hello
 
@Shafizadeh can you help me with php curl?
 
not really .. sorry
 
i have the code but can't figure out why it's not working
can u take a look at it?
 
2:39 AM
ok ..
 
can you pm me if possible
@Shafizadeh
 
What do you me "pm me"?
 
stack has private chat
i dont have much points so i do not have that option
 
Ah .. Look I'm not familiar with curl and I guess I cannot help you in this case
I think if you ask your question on the SO you will get lots of better advices
 
let me make pastebin if that helps
 
2:45 AM
And I have to go .. bye for now
 
thanks anyways
 
3:42 AM
need help here. :) been dealing with this 2 days now. any clue will help.

http://serverfault.com/questions/792150/session-files-are-created-every-2-second-running-on-openshift-laravel-php-nginx
 
4:40 AM
morning folks
 
morning morning room
!!is today Wednesday
 
No.
 
Oh @Jeeves you are wrong
 
4:56 AM
good mornings
 
Wes
5:12 AM
 
you confused for a moment with that gif
 
Wes
it moves!
 
Why are you banging your head against that thing?
 
Wes
it's waving...
 
Ekn
\o
 
5:20 AM
Runicode - Unicode with animated characters.
 
5:45 AM
posted on July 27, 2016

New Cyanide and Happiness Comic

4
 
6:32 AM
@Gordon that is a very thorough and comprehensive rebutal message. thanks for your hard work.
that aside, I sometimes wonder if I'm from a dead timezone. almost a deadzone
 
@Jimbo for the record: I disagree with @ircmaxell that Encapsulation is not a fundamental pillar of OOP. The idea of encapsulating related things and hiding its details is a fundamental principle. Its why we are writing objects in the first place. It's certainly not a new idea, but OOP wouldn't make sense without Encapsulation. It prevents coding towards an implementation instead of an interface. That's also what Alan Kay says afaik.
just grep for encapsulation in those
 
6:48 AM
just reading is also quite nice.
 
Wes
mornings v2
 
7:04 AM
Hey guy, is it posible to display all pdf files from a directory sub folder, when I say display I mean display the documents content in a thumbnail then on click open in a modal or something like that?
 
@KerrialBeckettNewham yes, it is possible. But I doubt that's your real question
or at least, I anticipate a How following that :)
 
Oct 9 '15 at 10:17, by Anmol Raghuvanshi
Alan kays https://en.wikipedia.org/wiki/Alan_Kay consider as father OOP by some
 
Good morning!
!!Rebecca
!!rebecca
 
@Epodax Only 1 day, 16 hours and 46 minutes left until Rebeccaday, OMG!
 
@Jeeves Do you only recognize the command with a small r?
 
7:22 AM
@Gordon nope that is the question, ok i'm not asking if i can hard code each file in html, i mean can I just dump all the files at once?
 
@KerrialBeckettNewham ok, then the answer is yes, you can do that without hardcoding.
 
@Gordon what function is it?
 
@KerrialBeckettNewham see, I knew you were going to ask for the how :)
it's not just one function. it will need some more effort. you can glob over the subdirectory with a *.pdf pattern and then foreach over each entry in the resulting array. inside the loop, you need to either create or fetch the thumbnail for the pdf. creating the thumbnail will likely take even more effort. but i am quite sure there is libs for that.
 
Imagick can do PDF thumbnails
 
@Gordon ok, thanks for the info. already build the thumbnail generator. will have a look at the other stuff.
 
7:33 AM
moin
 
Wes
\o
 
Wow, Hillary's husband is a great public speaker. Kind of like a male Michelle Obama. He might have a future in politics.
I see what she did there and it's hilarious :D
 
ako
hi there .. can anyone help me with this question ?
2
Q: can't upload audio file to server using PHP script from IOS device

akoi have this PHP script to upload an image or audio file into a server <?php include "config.php"; function GetImageExtension($imagetype) { if(empty($imagetype)) return false; switch($imagetype) { case 'image/bmp': return '.bmp'; case 'image/gif': return '.gif'; ca...

 
@ako AFAIR ios allows only image uploads, nothing you can do about it
 
@Gordon what would you call this, for searching purposes? (the overall functionality)
 
ako
7:40 AM
@eXtreme afair??
 
"As Far As I Remember"
 
it's IIRC or AFAIK ... pick one
 
ako
@eXtreme but when i want to upload an audio to telegram from IOS it works fine
 
@KerrialBeckettNewham foreach is a control structure; a loop. glob is a file system function.
 
Wes
is there a way to make a newline in markdown tables' cells? in the edited file, i mean. my issue that is a thousand characters long line :B
 
7:43 AM
@ako but telegram is an app, right? And here you are talking about a webpage
 
ako
@eXtreme in both of an app and webpage we are uploading a file to a server from IOS..what's the difference?
 
well, safari? As I said, I don't know about latest iOS 9 (because I don't own an apple device) but in older iOS versions file upload in safari was limited to camera (taking a picture) and photo gallery
 
@Wes double space at the end doesnt work?
 
Wes
how?
 
hmm, nvm. it probably doesnt work since you need to have the column delimiters on the same line
69
Q: Newline in markdown table?

mikemaccanaI have the following cells in a markdown table: |Something|Something that's rather quite long|Something else| I'd like to be able to insert a break in the middle line, so the column isn't so large. How can I do that in Markdown? Do I need to use HTML tables instead?

says to use <br>
 
Wes
7:55 AM
yeah :(
 
@tereško afairc \o/
 
8:07 AM
Good moon rings
 
so, I spotted a first answer in Q&A linking to documentation. That's ridiculous. Instead of linking to the official docs, people are now linked to that crap resource instead. That cannot be in the interest of the user. SO docs should not and cannot be a replacement for official docs.
 
@Gordon so, don't the SO docs simply suck? That effort should have been put in the official docs instead
 
Wes
everything i read on the docs make me cringe. static methods, fluent interfaces, setlocale, mongodb, magic methods, soap :B
 
@Sjon they suck big time. but even if they were decent… if there is an official manual, link to that instead of silo'ing people into SO.
 
Moin' 11
 
Wes
8:13 AM
\o
 
So i have a stupid question, normally you would include the css in the head, what if i want to include content specific css ? do i just include it in the body ? :o
 
Wes
define "content specific"
 
o/
 
Urgh, how do we flag non-example parts of SO docs?
 
@Joseph Are you templating or otherwise preprocessing your views? I would assign any page-specific CSS to a variable and then echo that in the <head>
 
8:18 AM
@liamja templating
@Wes for exemple, the login page will use the same header and and footer that all other pages use, but the content is different => hence the need for a different css style cheat , login.css for exemple
 
Wes
you can put everything in the same file.
body#loginpage header .whatever{}
 
isn't it too much loading every thing even thought you don't need it all ?*
is that smart memory wise ?
 
@Gordon I fixed that answer. :)
And reported the SO docs page for plagiarism :(
 
@salathe I expect an edit war now to happen because IIRC linking to the SO.docs gives you a badge or something
 
Ha, probably.
 
8:30 AM
Never heard from this one: docs.kentico.com
 
8:46 AM
@Joseph Cool, so you should be able to do something along the lines of 3v4l.org/Y2kCJ
@Joseph But of course you could do what @Wes said and put all the CSS in one file, for better use of caching
 
Wes
less requests = better
 
@Gordon I couldn't articulate myself as well as you did but it didn't seem right.
 
@Jimbo 140 chars limit
 
Ha no I mean I couldn't in
in general ;-)
 
Ekn
morning
 
Wes
8:52 AM
\o
 
I'll have this for breakfast please
 
Wes
@Fabor i gained a kg just by looking at that gif
 
@Fabor The very first ingredient confuses me, I swear that hash browns don't look anything like that
 
Wes
because they aren't fried yet @Jimbo ? :B
 
Holy crap, I never even considered the possibility that a hash brown could be... raw...
 
Wes
9:04 AM
lol
 
Well, think about it. The ingredients you have before making a cake don't give you a 'raw cake', you just have some ingredients. Hence, the ingredients before making a hash brown are just some raw ingredients. You don't say "raw cake", so do you really say "raw hash brown"?
<srs-wednesday-question>
 
Wes
aren't "raw hash brown" just potatoes? :B
 
@bwoebi ping
 
@Jimbo You live you learn :P
Hmm, no one here has used Vault no?
Geeze those teresko starred messages have been up forever. -_-
 
9:22 AM
Morgen
 
I have a php script which is called from my client. This script does several DB-Actions successively. Each sql error is catched and if no error occurs the script does the others. But what could I do, if the first 3 Insert/ Updates works fine and the last one does not for any reason. The data are already changed at this point. Which approach could I follow in this case? thanks
 
Anonymous
@elsololobo Validate the data before you start inserting/updating
 
@elsololobo you can use transaction operation for that.
 
ah great. Guess transaction operations was what I was searching for ;) thanks!
 
9:38 AM
@Jimbo wat?
 
@DaveRandom Don't mind me, I'm feeling poorly today :P
 
You would say cake mixture or cake batter, hash-brown mixture sounds legit
 
Exactly
Therefore:
50 mins ago, by Fabor
I'll have this for breakfast please
The first ingredient should not be "hash browns", it should be "hash-brown mixture"
 
Has this ruined your day Captain Pedantic? :P
@DaveRandom Learn about Vault, then tell me all the things that I need to know about it. Thanks in advance.
 
why my code run perfect on local host but i can run it on server host
and it shows me no error
 
Wes
9:54 AM
"nearly finished" is the forerunner of all bummers
i always do the error of pronouncing those two words
 
and of course i used this connection
$cnn=new PDO('mysql:dbname='.$dbName.';host='.$host,$user,$pwd);
$cnn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$cnn->exec("set names utf8");
 
Check your error logs.
 
on the server
 
Yes
Also why not just return the $row?
and just check if $row is available rather than asking for a rowcount.
 
because i should have send it as json @Fabor
 
10:01 AM
or just return $stmt->fetch(); and handle it where it's called from.
@Sara Makes no difference. var_dump($Result); and var_dump($row). They're the same.
Even if one is an object it'll still encode to JSON fine
 
I see two option for error error page and Error
which one do u mean
 
Shrug. I mean check your server error logs in /var/log/... etc
 
it's empty
nothing find there
 
Figure out how to turn error logging on then try and then check again
 
the code is ok
on local host a
 
10:06 AM
That's nice. Still doesn't help you though.
 
but i can not get result from this shared code
and no error run
no error log
im wondering what happened
 
Anonymous
@Sara Turn error logging on and you won't have to wonder :P
 
on the server or on my php code
error_reporting(-1);
 
@bwoebi hi
 
10:15 AM
@eXtreme hey
 
but if it so why i can get all table with method selectAll($cnn)
 
Cool, now debug it.
 
it absolutely crazy error
i can get all rows with selectAll($cnn)
 
@bwoebi so if you want, you can play with that segfault ;)
 
@eXtreme yip
 
10:17 AM
@eXtreme gee thanks... a segfault... :P
 
@PeeHaa sounds like fun, isn't it? ;)
 
!!wotd
 
sonorous: rich and full in sound, as language or verse.
 
Like a burp after finishing your pint before moving to the next pub
 
@bwoebi ping
 
10:36 AM
o/
 
@eXtreme :-)
 
user5020521
@Wes could you join that room?
 
10:58 AM
Quite today
 
@Fabor link?
 
@Fabor Ask Scott :-P
 
D'aww. It's interesting, really :P
 
11:10 AM
TBF it would be quite an insult to them :P
 
> #baffled
 
@Fabor Only to someone who's actively looking for something to be insulted by, there are also many non insulting interpretations: someone has been reading it (which is presumably what it, as a book, is meant for???), or even if you want to look for some kind of political statement then someone tried to step on it and got immediate karma (they are falling over it). Fundamentalist Christians are a fucking crazy bunch, and they don't complain about the bible appearing on TV...
Shit like that (people complaining about it) is designed for one thing and one thing only: to create division :-(
 
No but it's never supposed to touch the floor, let alone be stepped on. Quaran Desecration
I get that it's political correctness and people choose what they're offended by, but this one is a little grey.
 
@Fabor Well I take your point but that also makes no sense. What happens if you drop it? What would happen if you were living in a tent and had nothing to put it on? Considering that when a lot of that text was written, the huge majority of people were probably living in tents etc, that sounds like a modern construct.
I have no idea why I am trying to apply rational thought to anything to do with any religion, and I will now stop
 
:P
 
11:19 AM
Or cartoons, or animators on a deadline (;
 
Yeah, spend this valuable time learning about vault.
 
@MadaraUchiha wut do you think about shitstorm in S.Korean manhwa industry?
 
@tereško I'm not following
What shitstorm is ensuing?
 
@MadaraUchiha the short version: reddit.com/r/manga/comments/4u5jbb/…
.. for some values of "short"
 
hi guys
anyone know how to display data from MySQL to DataTables?
not an ordinary table
 
11:30 AM
have you tried reading the friendly manual?
 
I read the getbootstrap Datatables section but all the data are hard coded
not useful to me
getbootstrap.com**
 
ok thanks
 
3 mins ago, by tereško
have you tried reading the friendly manual?
so, the answer is "NO"
 
yes
I try to read the datatables.net manual but I didn't read this page you sent
I didn't find it, I found a hard coded table instead
 
11:37 AM
what didn't you find?
 
sorry
 
That's the index.....
 
I think he doesn't know how internet works .. at least not this new "hyperlink" feature
 
How couldn't you have found that
 
I still don't really know
hehe
sorry again
 
11:38 AM
I tried to eat a whole chicken yesterday. Emphasis on tried.
2
 
Anonymous
\o
 
haha
I took that "try" from @tereško
:)
 
@Fabor but why?
 
Never cooked a whole one before. And it was only a few quid. Gave it a shot, cooked it well, but realised I has no idea how to cut it up properly. So I just went at it with a knife and fork till I could eat no more. By the end it was so butchered up I couldn't fathom eating more. I ate quite a lot though.
 
11:53 AM
@MadaraUchiha bottom line: there might soon be changes to what manhwa you can read online when the dust settles
 
@tereško Wow.
 
@MadaraUchiha here is the problem - since I cant read korean, I have no idea how biased (or maybe not biased) is that description
 
@tereško Yeah
 
@MarkWeiman You can provide your own write_property handler where you intercept the write (and you need to return NULL from get_property_ptr_ptr for that property as well)
But generally I'd avoid doing that if you can
 
Wes
is this... right? (int)(PHP_INT_MAX + 1) === PHP_INT_MIN;
 
12:04 PM
Only if the system that runs on has integer "roundtrip"
 
Anonymous
Does anyone know a simple responsive HTML template? (no contents, just responsive grids) without a css framework.
 
@samayo Is something like Skeleton what you're after? github.com/dhg/Skeleton/blob/master/css/skeleton.css
 
Wes
@hakre shouldn't (int) cast to PHP_INT_MAX ?
 
Anonymous
@liamja something like that, but skeleton.css is a framework, and abandoned. I just need a simple responsive template. Ready to use, but without the un-needed contents
 
@Wes I can imagine that this is undefined and it varies depending on system.
 
Wes
12:13 PM
that doesn't look like a good thing
 
I once war running memory tests across multiple systems, and on some I had roundtrips and on some I had caps.
that was with PHP these memory tests.
 
I suspect - but I'm not profound with it - that this depends on the underlying C libs
 
@DaveRandom Read @PeeHaa's link and weep, you dirty PostgreSQL slag
 
I'm also on @DaveRandom's team though :P
 
12:16 PM
Why'd you post propaganda from the opposing team?
 
It's only fair :)
 
My new design using EFS :)
 
@Jimbo what's with the fucking tribalism?
 
@tereško It's not serious :P
(english humour)
 
@tereško reddit.com/r/manga/comments/4u5jbb/… should be less biased?
 
12:22 PM
What sort of files are shared?
 
@Epodax should we expect "Manga readers are dead" articles hitting BuzzFeed soon?
 
@tereško Properly, or "Multiple manga artists missing" but who knows.
 
@PeeHaa It's only propaganda for their Sharding Data-Cruhser
 
@Epodax I was referring to this thing: archive.is/l1kTW .. and the other articles: reddit.com/r/KotakuInAction/comments/2gsslk/…
 
@tereško I remember many years ago when Time did an article on Lineage (PC game like Diablo). They had some serious hardcore gangs tied to the game. As in they'd go find you in PC cafes and beat you up
 
12:35 PM
hmmm ...
in Russia? (hunting how scammers seems like a russian thing to do .. @NikiC can probably verify on that)
 
@tereško Korea
 
@Machavity goldfarming is actually a real business in asia
 
There's also a guy in NYC who looks for diamond in the street cracks too.
 
@tereško ah, hah, yeah, well no surprise there, the media is usually spews out what ever will get them the most views / clicks, not what is most accurate :D
 
Wes
@Fabor i've seen everything now
 
12:48 PM
"If you are allergic to Documentation, you can probably still eat Q&A." — Sumurai8 1 hour ago
 
how to get the number of the week where in
for example, the first week of a year is 1
and then 8th week is 8
is this possible
 
someone could help me out with this legacy code?
$c =& new pdf_context($this->f);
 
@Wes And potentially discovered an alternate career
 
ParseError thrown with message "syntax error, unexpected 'new' (T_NEW)"
in php7
how to rewrite it without loosing php5 compat
 
Wes
@Fabor ha
 
12:55 PM
@staabm remove the &
 
I love this legacy shit .. :-)
 
Wes
that's more like php 3 compat. did $f = &new ever do something?
 
@Wes php 4 compat ^^
@Wes yes, it was a perf optimization
 
Wes
how do you know, you weren't even born! :B
 
@Gordon thx works
 
00:00 - 13:0013:00 - 00:00

« first day (2111 days earlier)      last day (2828 days later) »