« first day (1304 days earlier)      last day (3644 days later) » 

5:00 PM
what's mine ?
 
What's that ratio?
 
and how did you calculate it ?
 
Is this the up:down ratio?
If so, @tereško is 668:11666 ....
 
What is life?
 
@tereško answers sort by votes and then looked where the > 0 score and <= 0 score is
 
5:01 PM
Let's just boil that one down to 600:12000.... 300:6000, 150:3000, 75:1500,
Or in other words, hella scary.
 
@bwoebi Higher is better?
 
I mean, I'm 3:5...
 
@PeeHaa yeah
@NikiC has 84%
 
I have 80.8%
 
yup
I'm just rounding.
 
5:04 PM
What's mine?
 
then again .. I had this habit of answering obscure mvc-related questions
 
-1 Your rep indicates you should know enough about this site to be in support of canonicalization, and how desperately it is needed. Instead, you fuel the fire of duplication. Shame on you. — Dan Lugg 20 secs ago
 
@SecondRikudo Worse than Kolink. Boooooooo.
68%.
 
Really? :o
Wow, I suck.
 
:)
@SecondRikudo rewphoring #fail
 
5:08 PM
root@webarto:/opt/php-5.6.0beta2# ./sapi/cgi/php-cgi -T 50 /var/www/wordpress/public/index.php > /dev/null
Elapsed time: 2.960858 sec

root@webarto:/opt/phpng# ./sapi/cgi/php-cgi -T 50 /var/www/wordpress/public/index.php > /dev/null
Elapsed time: 2.226558 sec
 
hah! wp on your machine!
 
there is another metric you can look at: answer length agains number of answers data.stackexchange.com/stackoverflow/query/new
 
@Fred No.. i didn't even got an answer for my question :) — Hasan Zohdy 6 mins ago
people can't read the answer?!?!
 
@tereško Links shouldn't count toward answer length, thus negating link-only answers entirely.
 
go for it
 
5:11 PM
@PeeHaa Aaaaaand, it's gone!
 
Wow. @ircmaxell has a ratio of 90%
 
@bwoebi The filthy repwhore :P
 
@bwoebi Try the rep/answer ratio ;)
Kolink has 20 rep/answer (roughly - I'm neglecting rep from questions here)
 
@NikiC that is actually dependent on if you have luck to find a good question.
 
Dunno, I think it's representative :P
 
5:13 PM
I'm sure I could have e.g. given your foreach answer too, I have that knowledge too, but I just am not there at the right time.
 
That's loser talk! :)
 
lol
 
lol
 
user1607528
PayPal must think that we have microscopic lenses in our eyes, the font is like 7-8px
 
I can't remember to ever have looked at a fresh question which got a very popular answer later in PHP tag.
Show me one, I'll be happy to answer it.
 
@bwoebi Popular answers often don't just happen, but are created
 
@NikiC hm?!
 
Damnit we need the php hammer now! @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost @timpost
 
@PeeHaa Lower is cooler though.
 
@bwoebi E.g. I doubt that foreach question would have ever been particular popular if I hadn't written half a novel to answer it
 
5:18 PM
@PeeHaa better ping other staff too.
 
:D
 
@NikiC yeah, sure, but I'd need to find something to write a half a novel on.
 
And of course popular answers usually also require being posted on reddit or preferably HN
 
Promoting them is usually the smaller problem.
 
The only thing you really need is a) a question with interest to a sufficient number of people and b) the knowledge to answer that question in detail
 
Of course, given that SO if 99.97% crap finding a) can be hard ^^
 
@NikiC you got the issue.
and most of a) is then still something which isn't related to php.
 
criptology.
 
no, cYriptology.
 
5:23 PM
oops
 
cripletology
 
Sorry, I just couldn't copy that amount of wrongness
It automatically came out more right ^^
 
hehe
 
@tereško how do you think - may traits usage be justified to implement multiple behaviors? If yes, then - when?
 
5:26 PM
I sometimes wish you'd need 100 rep to ask questions...
 
that would be nice , yes
 
what's the percentage of new php questions asked by <= 100 rep users?
 
better: untilll you reach 100, you can ask only 1 question, which autoomatically gets dumped in "close queue"
@bwoebi last time I checked: ~90%
 
actually we have the first posts queue but it's not effective.
 
I like that ^
 
5:28 PM
@tereško you mean 90%?
 
.. not paying attention , i guess
 
Pah, 100. More like 1,000 rep. >:)
 
@salathe yeah, but then So would be dead^^
 
@bwoebi Good!
 
lol
 
5:30 PM
in the current stream 20% were from people with more then 100 rep
 
No-one* has time for wading through the pile of crap that is the questions. (*Lots of people probably have time.)
 
I honestly have no idea how we can sto thr stream of crap
 
5 mins ago, by bwoebi
I sometimes wish you'd need 100 rep to ask questions...
 
that won't prevent the crap, only add additional crap in answers with irrational upvotes
it will cause extreme amount of voting violations
 
Okay. Hide first posts from queues until someone with bronze badge in that tag has reviewed it.
 
5:33 PM
@bwoebi are you really all butt-hurt over that downvote? (it's coming across like you are)
 
how about "1 week voting period before you can ask the first question" ?
 
@salathe yeah. Nothing against justified down-votes, but that one seems unjustified to me. Even if you gave a reason, it's not a reason for me.
 
@bwoebi I guess you'd have a huge problem with my normal down-voting pattern then. :)
Or is it just because it's personal?
 
@tereško often the first thing on SO is a question. not an answer…
@salathe nothing personal ;-)
 
@bwoebi yes .. that's the point
 
5:35 PM
Post the exact same answer to the right question, and I'll happy up-goat you.
 
@tereško I mean, then they search for other sites.
 
cool
 
@salathe I don't dupe answers.
 
@bwoebi still not seeing a problem with this
 
@tereško ... but also people who'd bring some benefit to SO later.
 
5:36 PM
@bwoebi Then delete your answer to the dupe question, and answer the non-dupe. Then there'll be more goats than you can handle.
 
@bwoebi has you looked at the statistics ?
there are currently 3,055,908 registered accounts in SO and 12,048 of those have over 200 reputation
can you comprehend ?
because I honestly have trouble at this point
 
how many questions are from the 12048? and how many from the rest? (ever created)
 
@tereško Can you put those numbers as coloured circles, we could comprehend them then!
 
it's 3:1000
 
5:42 PM
@tereško of questions with positive score (> 0)?
 
@salathe What's that u doing inside that word???
 
@PeeHaa it fits there.
 
@PeeHaa Which word?
 
I think coloured.
 
That's how you spell the word. ;)
Well, I spell the word. :)
 
5:44 PM
with which I agree.
 
Noooooooooooooooooooooooooooooooooooooooooooooo
 
:-D
 
@PeeHaa Don't you mean, "Noooooooouoooooooooooooooooooooooooooooooooooooo"? :P
 
hahahahahahahaha
 
@salathe lololol
 
user895378
5:46 PM
Accounts differ, but I'm pretty sure the American revolution was first instigated by colonial spelling bastardizations of the King's English.
 
Anyone have solution for this?
-1
Q: Laravel loading error in Ubuntu 14.04

devoWhen I tried to access my laravel after successfull updation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this, sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini ln: failed to create sym...

 
@devo Have you tried not loading Laravel?
7
Not much help, I realize, but it's a message aligned to the core values of the room.
 
MMMMMMEEEEGGGGAAA PING
 
... been hanging out too much with upper management. Sorry.
 
5:49 PM
@Charles Infiltrate and exterminate
 
@PeeHaa They pay me, therefore it's in my best interest to keep them alive.
 
@Charles Yes, but I didn't got a working solution
 
user895378
Am I the only person who finds the rampant use of global variables in C code examples difficult to follow? I'm constantly confused by "WTF did this come from?"
 
@devo Standard operating procedure for "but I installed the extension it claims is missing" errors is to run phpinfo() in the afflicted install and make sure that you actually modified the correct php.ini file. It looks like you're using the stock Ubuntu-provided PHP, so there are multiple php.ini files. You may not actually have gotten the right one.
 
@Charles Unless you can replace them ;)
@rdlowrey What kind of globals?
 
user895378
5:53 PM
@NikiC Global to the .c script ...
 
I.e. static?
 
user895378
Yes.
 
do c code samples use non-static-const globals often?
 
user895378
A lot of the ones I've seen over the last few days dealing with libuv do. Maybe the bad practices are just more prevalent in there :)
 
Man... why does travis run the PHP tests so slowly?
 
user895378
5:55 PM
In any case, scrolling all over the script in my editor to find where something came from outside the scope of the specific function I'm reading is annoying.
 
Are they running wussy hardware or are they oversubscribed too much?
 
@rdlowrey well, some libraries / patterns certainly encourage or even require use of globals
 
user895378
What's the logic? Performance?
 
though usually even signal handlers and stuff have support for a user-defined argument
 
@rdlowrey One thing I like about C++ is it is less idiomatic to have globals ^^
 
5:57 PM
so globals are probably not strictly necessary in most cases. There probably are some tho
@LeviMorrison In C++ it's just less idiomatic to have bad code ^^
 
user895378
It just makes it more difficult to understand what's happening. I understand the necessity in C sometimes but that doesn't mean I have to like it :)
 
"Idiomatic C++" is good code. "Idiomatic C" - well, I never heard anyone use that term ^^
@rdlowrey Praise PHP for the global keyword!
global is likely the only positive contribution PHP as a language has done :D
 
It's taken Travis CI about an hour and 10 minutes to build and run tests historically. Soo slooow.
 
user895378
@LeviMorrison Yeah I always just run the test suite locally ... php-src travis takes wayyyyyyyyyyyyy too long.
 
user895378
And by "locally" I mean "remotely on your server."
 
6:00 PM
^^
I know it passes but I want to wait until Travis CI passes so when I send a link they know I didn't bork the build.
 
Post statistics:
rep ceil         questions         users
--------------------------------------------------
1                412741            1815915
100              2838942           2822264
200              3552304           2923848
 
@tereško So is that from 1-99, then 100-199, etc?
 
it's 1, <= 100 and <= 200
all questions: 7259572
 
The ratio of questions to users in the 100 bracket is most interesting.
 
Crap, it didn't pass the build.
> Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure [ext/curl/tests/curl_basic_006.phpt]
Stupid curl.
 
6:04 PM
25 mins ago, by tereško
there are currently 3,055,908 registered accounts in SO and 12,048 of those have over 200 reputation
 
It's not included by default so I didn't test it (./configure --enable-debug)
 
user895378
Oh, --enable-debug will skyrocket the time it takes the test suite to run ... Obviously it's necessary, just saying.
 
(I was using ~2 month old data)
 
@rdlowrey really?
 
user895378
@NikiC I've seen that behavior ... not a very scientific test though
 
6:05 PM
@rdlowrey Eh, not on my local machine ^^
 
a non-debug build needs pretty much time to compile
 
user895378
Oh you know what, got my wires crossed.
 
user895378
I was thinking of the massively slower runtime performance I got benchmarking my server when I built the binary with --enable-debug
 
Well, shoot. Even when I enabled curl on my local machine it didn't fail.
 
user895378
Disregard.
 
6:06 PM
does the google crawler use cookies?
 
user895378
@PeeHaa It would probably have to, right? There's a lot of content you can't access if not.
 
@rdlowrey That's the exact reason I am asking, because facebook doesn't
 
@rdlowrey ^^
 
> Googlebot does not honor cookies on purpose -- it has to "see" what anybody else will see on your website, the "smallest common denominator" if you will
boooooooooooo
 
user895378
As if you needed more reason to avoid cookies if possible
 
6:09 PM
Just Googlebot gets sometimes different view based on UA/IP
 
Are we going to remove filter_var?
 
@Leri What? Why would you think that?
 
29 mins ago, by bwoebi
@tereško of questions with positive score (> 0)?
 
> We couldn't find any issues matching 'filter_var'
?
 
6:12 PM
@Leri issues ≠ code...
 
@LeviMorrison Sorry wrong link. Actually, was going to paste this: 3v4l.org/XF9OP
 
@bwoebi code is not searchable in forked repos.
 
@bwoebi ^
 
> Fatal error: Call to undefined function filter_var() in /in/XF9OP on line 3
You mean that?
 
Yes
 
6:13 PM
@Leri filter ext is probably just not yet ported in phpng branch?
 
It just means they didn't build ext/filter
 
Oh, okay, so I am safe to use. Thanks and sorry for noise. ;)
 
yes ^^
 
Post statistics:
rep ceil         questions         users     questions with positive score
--------------------------------------------------------------------------
1                412741            1815915   2426
20               1438186           2426400   414288
100              2838942           2822264   1030140
200              3552304           2923848   1360077
 
and, again hhvm is trolling: 3v4l.org/1JagI#vhhvm-301 :D
 
@tereško about 60% of questions of < 100 rep users have zero or negative score. Uh.
 
user895378
HHVM, because why debug your own code when bored php package maintainers will do it for you!
 
@tereško does that also include deleted questions?
 
probably
 
6:19 PM
@rdlowrey So.. that curl error doesn't happen on local. I think it is a travis issue.
 
SELECT COUNT(Posts.Id) AS "Total" FROM Posts
LEFT JOIN Users ON Posts.OwnerUserId = Users.Id
WHERE Posts.PostTypeId = 1 AND Users.Reputation <= 20 AND Posts.Score > 0;
 
off by one zero when reading the numbers^^
 
user895378
@LeviMorrison what was the error result in the .diff/.out files?
 
Yep, the next patch worked and it didn't change anything (just renamed variables)
 
user895378
The perils of integration testing ...
 
6:21 PM
@rdlowrey I do it all the time :P
 
user895378
@Ocramius I know :)
 
How to transfer mysql 5.5 data to mysql 5.6 in phpmyadmin? any one know what is easy step?
 
And above 200 rep only 40% have zero or negative score…
 
guys is php-cvs ml broken?
 
@NikiC What's that?
 
6:29 PM
That's how you see that Stas is stuck in 17th century
 
LOL
 
@NikiC use with reference please :-(
 
Using $GLOBALS instead of use()
 
@NikiC fix that and put this as comment.
 
Even global would be cleaner.
This is just nasty.
 
6:31 PM
@webarto no, it's just as bad.
 
user895378
@NikiC lol revert! all of the commits!
 
Hey guys - probably super simple, but I can't wrap my head around it for some reason.

Given an array of array(4, 3, 2, 1), I'd love to have the following output

[4]
[3]
[2]
[1]
[4, 3]
[3, 2]
[2, 1]
[4, 3, 2]
[3, 2, 1]
[4, 3, 2, 1]

Anyone have any ideas?
 
user895378
@h2ooooooo what did you try?
 
@rdlowrey Several things including a bunch of different combinations of two regular for loops, but all the results are wrong. It was only if someone could give me a "ah, that's simple - here you go" answer or a "here's the google term" as I'm not looking for a super advanced method, and neither am looking to take someone elses time.
 
@h2ooooooo a user with 17k rep shouldn't be asking for free homeworks
 
user895378
6:38 PM
It's just loops + problem solving ... you can figure it out :)
 
In mathematics, the notion of permutation relates to the act of permuting, or rearranging, members of a set into a particular sequence or order (unlike combinations, which are selections that disregard order). For example, there are six permutations of the set {1,2,3}, namely (1,2,3), (1,3,2), (2,1,3), (2,3,1), (3,1,2), and (3,2,1). As another example, an anagram of a word, all of whose letters are different, is a permutation of its letters. The study of permutations of finite sets is a topic in the field of combinatorics. The number of permutations of n distinct objects is "n fac...
 
$c = count($array);
for ($l = 1; $l <= $c; ++$l) {
    for ($i = 0; $i <= $c - $l; ++$i) {
        yield array_slice($array, $i, $l);
    }
}
 
@tereško It's by no means homework - it's actually a part of the assignment I'm sitting with at the moment in a completely other language (adding newlines to a text field in AS3 automatically while auto resizing the font). The problem with my current code is that it tries out "My string is here" -> "My string is\nhere" -> "My string\nis\nhere" (rather than "My string\nis here"). My brain has just gotten tired after 1 and a half hours of this, so I wanted to make sure that no quick fix exists.
 
not tested, of course ;)
 
@NikiC $i => $j; $l => $i :-P
 
user895378
6:41 PM
@h2ooooooo I have a hard time understanding how you could have ~700 upvotes in the PHP tag and not be able to logically work this out.
 
@bwoebi l for length
 
@NikiC then use $len. $l is not descriptive enough...
 
@bwoebi pff
 
@NikiC $l => $list?
 
@bwoebi pffft
 
6:42 PM
^^
 
given the triviality of the code, I find it sufficient
 
@rdlowrey I've been working with PHP professionally for the past 7 years, but seeing as this is not an actual PHP question (I just like you guys), I thought there might be a simple fix. I meanwhile have absolutely no mathematic education except for regular school, so I wanted to make sure that there wasn't any math geniouses smarter than me :)
 
@rdlowrey That's php! :P
 
meh, just liking to nitpick over Nikitas code
 
s/Nikita/everyone/
We don't hate you for that...
 
user895378
6:43 PM
@h2ooooooo Okay, but the only requirement to solve the problem is applying some brainpower ... don't take the easy way out. You can definitely solve things like this yourself :)
 
s/everyone/some carefully choosen people, who usually produce better code than I do/
 
Who needs maths when doing PHP.
 
Guess what, everyone: ex/opcache doesn't conform to -std=c89! Kill it with fire! It broke the standards!
 
user895378
Time to mail internals and shame zend.
 
@rdlowrey I agree - and I try myself :) There just isn't a reason for me to spend the rest of the night on trying out stuff if I could get a simple answer. That said, @NikiC - you're absolutely amazing. That would've probably taken me a good amount of more hours. Thanks!
 
6:44 PM
no, time to kill c89 with fire.
 
@rdlowrey Except they already know that :P
 
user895378
@h2ooooooo Yes, the reason is it makes you smarter.
 
user895378
Giving up and begging other people to solve your problems is a really bad way to go through life. Try to avoid it :)
 
@rdlowrey sometimes after a few hours you usually are just bored of the problem.
 
user895378
@bwoebi A few hours on an iteration problem?
 
6:46 PM
I like working on things for hours, but then I'd like to see any progress, plese...
 
@rdlowrey I can't completely agree with you. It'd be like me searching for hours and hours and hours about a legal problem instead of asking my lawyer friend for a 5 second answer.
 
user895378
@h2ooooooo no, they're not remotely the same thing.
 
@rdlowrey there exist people for whose that isn't as simple as for us :-)
 
@LeviMorrison Does -std=c89 allow inlining?
 
user895378
@h2ooooooo You're not asking someone to give you knowledge here. You're asking someone else to think for you.
 
6:46 PM
@NikiC Not sure, but they are missing a header. I'm going to fix that and then keep going.
 
@LeviMorrison ah
 
@rdlowrey Actually I asked if anyone had any mathematical brainpower left in them today :) It's as simple as that.
 
@rdlowrey Did that even involve thinking :-D
 
user895378
@bwoebi Apparently it involved hours of thinking.
 
user895378
Anyway, ++$tinyAvatar and resume coding.
 
6:51 PM
@NikiC Ah, the error is actually in Zend/zend_malloc.h
 
user895378
@bwoebi Maybe ... I just have a low-tolerance because every single thing I know about programming and/or computers I taught myself. I expect other people to apply effort.
 
Not sure where to put the header.
Maybe in Zend/zend.h?
 
which header is it?
 
#include <sys/types.h>
 
and which type?
 
6:51 PM
uint.
 
ah
well, personally I wouldn't bother
we're not, technically, c89 compliant
we're win32 compliant
 
@rdlowrey just like you surely already have asked such things when you were tried, whatever, and so did probably everyone here already once.
 
@NikiC Pretty sure I read otherwise somewhere ^^
 
In other words: We're using C89 because MSVC has shitty C support and doesn't support C99 - but we still use some C99 features that are supported everywhere - like inline
 
Starting with which version is Windows c99 compilant?
 
6:55 PM
Still not compliant.
They've basically dropped C support in favor of C++.
 
how do you make phpunit output failure information immidiately?
put not stop-on-failure
 
user895378
May 8 at 5:17, by TOOTSKI
Windows, because fuck you.
 
@LeviMorrison still? Hunt them -.-
@LeviMorrison which features aren't?
 
user895378
I understand that Pierre is contractually obligated to advocate that Windows isn't a terrible platform to develop for ... but seriously ... Windows sucks. Everytime I have to bend over backwards to make something half-way work in Windows I think of him.
 
@LeviMorrison they recently started trying to add support
 
6:57 PM
@bwoebi Not sure; I checked up on it a few months ago when I was learning about their C++ support.
 
but before that they were strictly on the "use c subset of c++" mode
 
@NikiC really? A miracle... why?
 

« first day (1304 days earlier)      last day (3644 days later) »