« first day (813 days earlier)      last day (4138 days later) » 

8:00 PM
oh ... you have almost reached the silver badge ... that explains it
 
I'm most self-taught :P
@tereško I have?! OMGWTFBBQ!!
 
How many upvotes was the silver badges for tags?
Nevermind, it's 400 upvotes
 
8:26 PM
@PeeHaa .................................. ping
Hi all
 
@Baba Oh. Now you do want to talk :)
hiya :D
 
How many people her have made mistake writing 2012 instead of 2013
 
@PeeHaa @MadaraUchiha The Stack API caches heavily on the server side. It sometimes takes a couple of minutes before the status change is registered. Bear in mind that it relies on your API polls so if you have the poll interval set to the default 5 mins then it could theoretically take 7-8 mins before it shows up. Which actually is a good point, I'll drop the default poll interval to 1 minute, it should be harmless with the recent optimisations.
 
@Baba, hey, what's up
 
It always takes me a couple of months to get adjuested
 
8:27 PM
@PeeHaa lol .. my system is always on ..... but not always on my system
@Alexander am ok and you
 
racking up meager reps
 
@PeeHaa true .....
 
@DaveRandom Excuses excuses. Blame other people / services.
@DaveRandom Better drink your own piss
 
The way we detect deleted Qs at the moment if when the API doesn't return a result for it, which is far from ideal but is the best option available. A client-side poll of the question URL is out for the moment, because the control is with the client, and the client request would use the currently logged in user - so it wouldn't work for 10K+ users. If we move the control over the API polling to a central server we could maybe look at this option though.
Good evening, by the way
 
Hello mr Dave :)
 
8:31 PM
@PeeHaa Ahh yes, Bear Grylls, among our more ridiculously named products
I am firmly in the Ray Mears camp
 
No way
Ray Mears is a dork
:)
If he would have been in my class in school I'm pretty sure I would have made him cry at some point
Ray Mears is a boy scout. Bear is a fucking BEAR!
RAF baby!
Drinking piss!
Eating shit!
Cutting of his arm just to make a point!
 
good evening
 
Good evening @igorw
 
8:35 PM
@PeeHaa VeilingPartners July 2005 – Present (7 years 7 months) ... don't tell me you have been with that guy for 7 years
@hakre hellooooo
 
Nah mate, Ray Mears is proper hardcore ex covert-ops SAS. Anyone who takes their name based on "Teddy Bear" is a pussy.
 
a very fine good evening to all you SIRs.
 
question: functional tests vs integration tests. would you define that functional tests test the requirements that provide business value, as in provide value to the user?
 
@Baba Lol. At some point I thought it would be useful to signup for that. Never ever used besides the initial time. I wanted to delete it, but don't know what email / pass I used. :)
 
@igorw the whole does provide value to the user.
 
8:37 PM
@igorw I had the same similar one few days ago, heh...
 
@PeeHaa :) lol
 
@hakre I'm not arguing against that; what I meant was testing the application from the user's perspective.
 
@igorw Well functional tests will probably cover their ass more, from a more complete usage perspective.
But those can also be performance related tests of which the developers are more interested in than the user firsthand.
So depends a bit on the tests.
 
does it make sense to have "functional tests" for a library? or would those then be integration tests?
 
8:42 PM
@MadaraUchiha one more DV and then DLV pls.
 
@hakre People seems to have forgotten the boundaries between answers and comments.
 
: You've reached the maximum of 17 Deletion votes per day; come back in 3 hours
 
Downvoted 3 times, and upvoted 3 times.
 
@MadaraUchiha okay, now flagged by me as well.
 
Damnit I need moar rep for moar delvs
 
8:43 PM
@PeeHaa At least downvote it, so that we can delv it
Ah, thanks
 
I have a library that is used by developers. I have high-level tests that test the public API of the library against some fixtures without stubs or mocks.
 
And what would you say would the functional testsuite look like? Some benchmarks for example to help users test it against their databases for example?
 
Chrome just crashed on me! I want my money back!
 
8:47 PM
@PeeHaa where can i get good Interview questions
 
lol
 
@Baba Dunno. Last time I needed to interview someone I pinged @ircmaxell
 
@PeeHaa What did he give you ?
 
@hakre no benchmarks. just end-to-end tests to ensure everything is working correctly.
 
8:49 PM
Not sure anymore. It has been a while
 
@PeeHaa Oh ok ....
 
@igorw so benchmark with a scala of 0 and 1 ;)
Okay, I'd say this depends what that library does and what you actually test.
 
@hakre here's the test: github.com/igorw/CgiHttpKernel/blob/master/tests/Igorw/… it's for a library that translates between symfony\httpkernel and php-cgi
 
@MadaraUchiha xD
 
@igorw okay. well, in that case you could provide a set of functional tests as part of the SDK for that library showing how developers can write functional tests.
Additionally you could have functional tests on your own on a system that has XXX php-cgi binaries of different versions so you can test if your lib does work as expected.
 
I would not count that as integration tests because it interacts with other system components across the process space.
 
@igorw How does assertSame differ from asserEquals?
 
@MadaraUchiha Remember it is PHP ;)
2
 
@PeeHaa == vs ===?
 
Exactly :)
same is strict equals is loose
 
8:58 PM
@PeeHaa I will quote this more often: "Remember it is PHP"
 
:P
 
@hakre I'm considering pinning it.
 
assertItDoesSomewhatLookLikeThatOtherThingy() ;)
 
youGiveMeThisAndThatAndITellHowStrongIsLove();
 
hehe
/me needs 8 for repcap. Better look for a jQuery question...
 
9:02 PM
@igorw: Ever considered to do the same but not via exec/CGI but via include()? That should be much faster, won't it?
 
@PeeHaa, stay away from jQuery :p
 
@hakre yeah, I will make the php-cgi binary location configurable. so "functional" it is - thanks!
 
I'm considering going for a silver jquery badge this year :P
 
@PeeHaa go for it. I want repcap for today as well but only got 105 rep
 
@hakre include would probably be significantly faster, but does not provide the isolation/cleanup that is the main point of the lib.
 
9:03 PM
@PeeHaa, tsk, here I wanted to go for gold
 
@hakre You can never know
 
@igorw backup all super-globals and restore them later. call include inside a function.
 
Sometimes you hit a goldmine question and get 10 upvotes nearly instantly.
 
I know it's a bit gray perhaps but could work.
@MadaraUchiha Yes, please post one, something with regex that impresses other users.
 
@hakre no, I want to be able to test header(), exit(), etc. the use case is mostly for legacy code.
 
9:04 PM
lol
 
@igorw yes, good point.
 
@hakre :D mastermind
 
@Alexander In that case I first need to get [php] gold or I am not allowed anymore to enter this room ;)
 
@PeeHaa assertIsCloseEnoughForBossToNotNotice()
 
:D
 
9:05 PM
assertTakeLongEnoughSleepForEasyPerformanceBoostLater();
 
@PeeHaa You don't have the gold?!
 
@PeeHaa, lol
 
@hakre You should then double it, so you can bill them twice.
 
@PeeHaa Walk out of here in shame.
 
Mmmm, Microsofty.
 
9:06 PM
/me walks out of here in shame
6
 
@DaveRandom Yes the test-suite has a configuration parameter, so you can actually do this step-wise.
 
lol
 
@PeeHaa, And close the door on your way out :p
 
That's why you need a special assert routine for that gg
I want beta access :) - Demo Demo ?
 
9:09 PM
@hakre the main point of using php-cgi is that it requires no port configuration. also it's more reliable and less painful than proc_open on php -S localhost:$port, etc. but for performance reasons I am considering an fcgi variant of it.
 
user1125394
erlang is a language for robots man
 
An Erlang OTP tutorial for beginners: I assume that you are familiar with Erlang’s syntax, that you know what Erlang modules are and how to compile them and that you understand functional programming concepts such as recursion and single-assignment variables.
 
well ... yeah, they assume that you read the manual =P
 
user1125394
I did
 
user1125394
but I've memory leaks :p
 
user1125394
9:12 PM
f().
 
Is there any PHP function to emulate PERL Hash Slices ?
 
it's also a language with pretty high raised entry bar
 
@hakre Actually, the answer given to this guy is better.
 
9:13 PM
@hakre twice?
 
@MadaraUchiha twice is nice - no, wrong link, the comment-answer below it is, fixed.
 
@hakre I see. I still think the linked duplicate is inferior to the answer this question has gotten
I'd prefer people seeing this version, not the other
 
@Baba I don't think so. It wouldn't really do doable with a function because hash slices are syntactic sugar that also provides execution optimisations at compile time. What are you trying to do?
 
oh gosh. sorry but if someone asks how to do that, well, whatever. it's late. I'm tired. The chicken is working in my stomach and the wine is fine.
 
@DaveRandom see
2
A: PHP array search and fgetcsv

Ilmari KaronenYou trying to use array_search() to look for the string "Actionspiele" in the array $csv, but all the values of that array are themselves arrays, not strings, so the search fails and returns false. When you use false as an array index, it is cast to 0, so it always gives you the first row of the...

 
@DaveRandom i just realized the guy had a valid argument ....
 
@Baba Yeh I'm not certain that's the best way to do it because the OP didn't really provide enough sample data (I doubt it will always be 2 records) but I don't thing there's any real way to make it any more efficient, it wouldn't really apply there anyway because you are reading data from a pointer, which means you have too loop anyway - you might as well process the data in the loop, rather than construct a hash and then process it (i.e. check the values of $result[0] in the read loop)
 
I really want to get a domdocument / xpath badge this year
And an OOP badge
 
@DaveRandom yes you have to loop but its assumed that the CSV information is already stored in an array and the keyword in another array ... how do you get intercept with duplicate values ???? you don't have to loop in Perl
@PeeHaa .. most of the question in that category are always seen as duplicate .. makes it difficult.
 
Hi guys
 
9:28 PM
@Baba Often when I see an [OOP] questiin and open it and can only remove the tag and cry
Did you know StdClass() is OOP now? :P
 
lol really
 
OOP::amIRite(false)? :D
 
@PeeHaa Magic::doApp($unicorn);
A few lines earlier
 
@PeeHaa StdClass to OOP is like apple to orange
 
i'm still long away from silver at =/
 
9:31 PM
$unicorn = new Unicorn(new EnrichedPlutonium(), new Love(), new DeadlyBeamOfDestruction(), new Owner('Madara Uchiha'));
 
@tereško shut up. With all those shiny rep in OOP
:(
 
@Baba Indeed (although of course it does loop in the compiled code anyway ;-) ) but I think you are looking for array_intersect_key() - but you'd probably have to array_flip() the other array as well, and after all the messing about I suspect you'd find that the loss of readability vastly outweighs the performance gain.
 
150 in OOP. Just wow
 
9:32 PM
@tereško how do you know where u are ?
 
@Baba is that a deeply philosophical question ?
 
lol
 
@tereško He means progress for the badge?
That's gold though
 
@tereško You could consider adding the [OOP] tag to this stackoverflow.com/questions/5863870/… :)
 
0
A: Random time and date between 2 date values

hakreYou probably want to define a resolution, for example one minute, or three minutes or 15 seconds or one and a half day or what not. The randomness should be applied on the whole period, I've choosen one minute here for exemplary purposes (there are 132480 minutes in your period). $start = new...

 
9:33 PM
 
@tereško not at all .. i was referring to i'm still long away from silver at OOP
 
@Baba you can see it in your profile, in the "tags" sections
 
@DaveRandom facebook.com/…
2
 
@hakre but I like it :)
 
@Baba the number on gray background is the vote count and the multiplier is answer count
 
9:34 PM
You know I have a knack for DateTime objects :D
@PeeHaa That's actually not a bad idea
It is in a sense
 
@DaveRandom array_intersect_key() does not solve the issue ..... but why would such a simple task can only be solved with loop in PHP ... that is the main argument
@tereško thanks ....
 
Especially since they're discussion the architecture of MVC, which is an OOP design pattern.
 
also, i need to find some questions with tag ...
 
-1
A: Dynamic pages: include specific aside for specific content

Madara UchihaYou want to keep which sidebar goes on which page in a database, and then query that database for the correct sidebar to include. A table structure may look like this: Table sidebars: ID | path | name | more info on sidebar... Table pages: ID | path | name | more info on page... Table sidebars...

dafuq? -1?
 
hate ?
 
9:36 PM
@tereško By whom?
 
Does anybody know a way to clear the entire page's client-side source?
 
@tereško Wouldn't surprise me if [architecture] is worse than [oop]
 
@lawm Huh?
 
@Baba Does so - $string = implode('|', array_intersect_key($csv, array_flip($keywords)));
 
@PeeHaa no , it's actually quite good , but the php/language-agnostic questions are few
 
9:37 PM
@MadaraUchiha Clear the page?
 
@lawm I can read just fine, what do you mean?
 
Like I say, $readability--;
 
echo 1 + TRUE; # <3
 
:-P
 
@DaveRandom true .. but i even think $csv structure is flawed ....
 
9:38 PM
@MadaraUchiha If I were to put a password wall up on a page and if the person typed in the right password I would want to show the content.
 
@Baba I suspect so too, but it's hard to say without more sample data
 
@DaveRandom Imagine
Actionspiele,77
Strategiespiele,112
Actionspiele,88
 
also , the recount for tags happens once with a delay .. just like recount for flags
i currently have only 872 =/
 
1
A: Random time and date between 2 date values

hakreYou probably want to define a resolution, for example one minute, or three minutes or 15 seconds or one and a half day or what not. The randomness should be applied on the whole period, I've choosen one minute here for exemplary purposes (there are 132480 minutes in your period). $start = new...

 
@webarto this is funny.
 
9:41 PM
@hakre i really think that code is over kill
 
@hakre It's not funny, it's HILARIOUS :P
 
@lawm There're questions about it over on Stack Overflow, have you tried searching?
 
@MadaraUchiha Yes, but I couldn't exactly find what I was looking for. Isn't there a simple function or something?
 
@lawm No, PHP is a programming language, not magic :)
 
@hakre i don't think using IteratorIterator to get random value is a good idea ..
 
9:44 PM
@MadaraUchiha Okay I found it nevermind
 
@Baba Well exactly. The only real way to do it is with the full CSV structure. But the real solution to the problem is to draw the result array as you read from the file. It's more memory efficient as well because you only hold the results you are interested in in memory, the others are discarded.
 
here is the scary bit, @PeeHaa, you quite possibly will get a silver in before bronze in
 
@Baba Why not? You mean it's too exprensive?
 
> Those of you brave enough will, in time, be allowed to play rugby (which has some similarities to American football, but does not involve stopping for a rest every twenty seconds or wearing full kevlar body armour like a bunch of nancies).
 
@DaveRandom I agree with you 100% am voting to close the question
 
9:46 PM
Damn straight
 
@tereško :D
 
@webarto Thanks for that, not seen it for a while :-D
 
@hakre Yeah ... too expensive
 
@Baba I tried with seconds - takes ages ^^
 
@hakre .. lol its because you are looping .. just use mt_rand
 
9:47 PM
@Baba I think it's salvagable if the OP adds more info about what the input data actually represents and what the desired end result would be.
 
@DaveRandom yeah ... i agree .. i would add a comment instead
 
@PeeHaa Now there's a question title that shows the content will be of high quality...
> It should work in India
Love it
 
:)
 
from todays comments gossip, here is another one:
you said that you know that writing PHP code into a database isn't a good idea. I would say that it goes way beyond that, past "very bad idea" and "terrible idea", into the realm of "truly catastrophic idea". Seriously, if you can avoid doing this, please please do. A simple template engine really isn't that difficult. This is pretty much the worst possible way of doing it. — Spudley 4 mins ago
 
@tereško stackoverflow.com/questions/14187173/… Yo dawg I hear you like people implementing "My MVC" systems ;)
 
hmm ... i have been listening to this song for almost an hour, but i am still not sure if it is beautiful of chilling
 
@PeeHaa grabs popcorn
 
lol @PeeHaa, the prince of nigeria.
 
@hakre Errr... what? I can't even begin to comprehend the kind of logic that would lead someone to believe that could be a good idea.
 
9:55 PM
@DaveRandom As the file-system is a database, too, we are all putting PHP code into the database and we have no problem with that.
 
lol
 
@hakre this is what i meant eval.in/6070
 
Is it possible to take calculate first day of next month but if current date is not now (but some other date)?
 
@hakre :'(
 
@MadaraUchiha Wow that escalted quickly
 
@webarto Sure, just pass the target base date to the second arg of strtotime()
 
No double ping. Fix my sentences in your mind please
 
@DaveRandom Crying does not help :)
 
9:57 PM
oh , for fcuk sake
 
@Baba Well with U this is UNIXEPOCH which has with that random a problem on leap seconds!
 
@webarto Or I think you can do stuff like 2012-03-04 first day of next month as well
 
hi there everyone ive got something with a sql statement id like to insert into my database but it gives me a syntax error and i dont seem to find where is the error here's the statement $sql="INSERT INTO bsloan(MemberID,Plan,Range,Validity,Startingdate,Expirydate)VALUES('$Mid','$plan'‌​,'$range','$validity','$startdate','$enddate')";
 
@Baba That's why I was going through the period with a resolution, to work properly on leap seconds as well.
 
9:58 PM
@DaveRandom php.net/manual/en/datetime.construct.php forgot to mention... I'll try... Queen save the DateTime
 
@MadaraUchiha
 
@DaveRandom Better?
 
@MadaraUchiha this will not be caught by backlog
 
:-P
 

« first day (813 days earlier)      last day (4138 days later) »