« first day (1283 days earlier)      last day (3656 days later) » 

user1804599
5:09 PM
It made you broke, as well.
 
@LightnessRacesinOrbit Ha, the GMT/BST thing bit us the other day
we had a server we thought was set to UTC, but then a bunch of scripts broke because daylight savings time happened :(
 
ITT: Abyx the homophobe.
 
Well, transcript URLs include the time slots. chat.stackoverflow.com/transcript/10/2014/4/21/14-17 for example; you cannot have that and have local time in the transcript. — Martijn Pieters 49 mins ago
I LITERALLY DON'T KNOW HOW LOCALISATION WORKs
 
5:28 PM
well
all I need to do now is build the derived vtable and virtual functions are le implemented.
 
2
A: Constructor-style casting in function call parameters

Lightness Races in Orbit [C++11: 5.2.3/1]: A simple-type-specifier (7.1.6.2) or typename-specifier (14.6) followed by a parenthesized expression-list constructs a value of the specified type given the expression list. [..] 7.1.6.2/1 describes nested-name-specifieropt type-name as a valid construction for simple-type...

 
user1804599
5:43 PM
Hurray.
 
user1804599
(def map (fn (f xs) (if (head xs) (cons (f (head xs)) (map f (tail xs))) ()))) works!
 
user1804599
5:56 PM
Man.
 
user1804599
That string/String shit in JavaScript is so horrible.
 
user1804599
And boolean/Boolean lol.
 
posted on April 21, 2014 by Eric Battalio

MSDN hosts a number of excellent blogs including the .NET Framework Blog . They are not exclusively .NET: In VS2013 RTM we introduced the Performance and Diagnostics hub with a bunch of tools that help you diagnose issues during your Windows Store...(read more)

 
6:20 PM
Does anyone happen to know the history of C choosing to place the return type in front of the function name?
or perhaps it wasn't a choice; I'm just looking for why it is there and not somewhere else.
 
6:39 PM
@LeviMorrison history? i dunno. it makes sense when you consider how variables are declared, though. were that different, i bet the syntax for function declarations would be similarly different
kinda like how VB declares variables like dim x as Integer, and functions like function x() as Integer
or for UML, '-variable : Type' and '-method() : Type'
 
user1804599
I like that, because I read f(x: int): double as “from int to double.”
 
6:54 PM
double f(int x) -> double from int
they're both equally redable imo
 
Many mobile hard drives are designed to park when they experience a change in G-forces. So you can park the hard drive by simply dropping it. — Mysticial 13 secs ago
 
@Mysticial Mytictroll :P
Can a driver trigger that feature?
 
Yes, if the driver of the car slams the break hard enough, the hard drive might park.
 
What did I expect -.-;
 
7:21 PM
CAPTAIN AMERICA YEAHHHHH
 
@LightnessRacesinOrbit new Mentalist - rather fun :) I figured something was funny when Jane said: "wanted to make sure we're isolated" :D
 
@DeadMG let's embrace his different-ness.
 
@StackedCrooked dewd; I can't stop listening the song you linked yesterday, wtf did you do to me
 
evening
 
the Mushishi OP song?
it's a nice song
 
7:33 PM
yeah; I'll also enqueue Mushishi and pretend just for a moment that my queue is actually a priority queue
 
also a song that I never forget even after so many years
 
(even tho I've been rather strict about FIFO)
 
how do you say that you are not interested to a girl?
 
never been lucky enough to get to say that, @Jefffrey :)
 
Mushishi is a series that you can put on hold for a few months and then resume at any time
since most episodes stand on their own
I had a 4-year break actually.
 
7:35 PM
@Jefffrey jokes aside, did she actually ask you out or some such?
o_O
interesting
mmm, there's no plot, but does Mushishi develop as a character throughout the epis?
 
@ScarletAmaranth yeah, she told me she likes me, made me notice he officially ended every relation with his ex, and asked me out three times now...
I'm not a particularly clever boy, but those look like signals
 
@ScarletAmaranth a little bit
I used to watch one or two episodes late at night before going to sleep. That's when you are in the best mood for this kind of series.
 
she have very nice tits IIRC though
 
@Jefffrey do you have any particular reason as to why you're not interested?
 
@Jefffrey Get a room, then sneak out early in the morning, sticking her with the hotel bill. That should work. Works for me.
 
7:39 PM
lol
@ScarletAmaranth I've known her for ~4-5 years now, not my type
maybe I should try the classic direct approach of telling her
 
@Jefffrey why not tell her that then? look, we've been friends for 5 years, I've never thought about you this way; and then tell her something to make sure she doesn't feel awkward around you or some such
 
didn't even cross my mind for some reasons
 
@Jefffrey that's because you're not a very clever boy ;)
har har har har har har
 
;)
I would have never thought of solving this, so fast, in the lounge tbh.
 
@Jefffrey well then go for it
 
7:42 PM
Thanks lads.
 
user1804599
(def * $*)
(def square (fn (x) (* x x)))
(.log $console (square 3))
 
user1804599
It compiles, runs and prints 9! :D
 
what does (def * $*) do?
 
user1804599
It defines * to be the global *. Global as in window in browsers and global in Node.js.
 
So multiplication?
 
user1804599
7:46 PM
global['*'] = function() {
    var result = 1;
    for (var i = 0; i < arguments.length; ++i) {
        result *= arguments[i];
    }
    return result;
};
 
user1804599
@StackedCrooked ^ apparently :3
 
ah
you could use use $* inside the square function, not?
to avoid any ambiguities there
 
user1804599
Yes, I could.
 
user1804599
@StackedCrooked What would be ambiguous?
 
user1804599
7:48 PM
Accessing window/global must always be made explicit by using $.
 
user1804599
If you want to refer to window or global itself, just use $.
 
I assumed you mapped * to $* in case * was redefined somewhere.
 
@Jefffrey funny; you're talking to a guy who can barely talk around a lady he fancies :)
 
@rightfold oh, this is your own programming language thingy?
 
user1804599
7:49 PM
Yes!
 
have you read SICP?
 
user1804599
The compiler emits JavaScript.
 
user1804599
@StackedCrooked I skimmed it.
 
@ScarletAmaranth I thought that applied to a lot of loungers =/
 
it applies to 99% of us
 
7:52 PM
@Borgleader how did my statement somehow invalidate that?
 
^^ Unfortunately this is not reality for us...
 
@rightfold Oh, a reverse-compiler?
 
user1804599
What do you mean?
 
user1804599
Hey, ICE. Nice.
 
@ScarletAmaranth My point was that it's implied, you didn't have to say it ;)
 
7:53 PM
@Borgleader I'm not following; but that's alright! :)
 
baaallllssss.
 
Hi, I'm a student working on a socket programming assignment for class. I'm developing my code on Solaris, but I'm running into problems with connect() and send(). I compiled the same code on Ubuntu, and the problems go away.

Is this type of question appropriate for StackOverflow, or is there a better venue to try and get some help?
 
yes.
 
@DeadMG What's with them?
 
just make sure that you have cut the relevant source code down to a small sample that accurately reproduces your problem, and then post it in it's entirety.
@TonyTheLion I nearly implemented virtual functions but got kicked in them at the last second.
 
7:55 PM
oh
 
the problem is that I implemented user defined types in terms of aggregate types, which require all members on construction.
 
@DeadMG its* ^^
 
@DeadMG well I tried to read how virtual functions are implemented and my brain turned into diarrhea in the process, so yea, I get where you coming from/
 
so before I can construct any members of my derived class that represents user defined types, I have to compute every relevant thing ever about it to decide what members it should have.
 
Most of my work (for school and industry) has been in Ruby/HTML/JavaScript in the past, so I'm new to the StackOverflow etiquette around C++ questions. Is it generally expected that you provide a code sample that compiles?
 
7:56 PM
@DeadMG I see
 
@John Yes. The general idea is that if you haven't reduced your problem to a small compilable sample, then you haven't put in any effort yourself.
 
Thanks, @DeadMG
 
@John you should also Google your issue, cause there's a large chance someone's had a similar problem to yours
and already asked about it
 
also there's not much chance that anyone can help you with bad run-time behaviour that they can't reproduce.
and they can't reproduce it if the sample is not compilable.
so it should be as small as possible but must include everything they need- header includes, usings, etc.
 
7:58 PM
ah, good points.
 
@TonyTheLion bad hair day?
 
@John self-contained example that reproduces is ideal. Preferably tested on Coliru (all other online compilers are stupid :P).
 
@Borgleader lol
 
In semi-related news, I just managed to solve the problem. It's been 2 days of work, and the breakthrough happens when I visit StackOverflow chat. Still have no idea why it's working now though.
 
hello
 
7:59 PM
hi
 
hey
 
it's 27 degrees C today
 
cool
I mean warm
for the time of the year
 
Has @ScottW been online lately?
 
no
I wonder what he's up to
 
8:00 PM
@TonyTheLion not recently I think
 
hope no one killed him on craigslist
 
what was he doing on Craigslist?
 
he sells things from there sometimes
 
looking for prostitutes?
 
8:02 PM
also ThePhD how somehow... disappeard
(I have noone to talk raytracer with)
 
@ScottW Come back!
@ScarletAmaranth not for the first time
 
@StackedCrooked oh, dayum man, I forgot to check out the latest OP! o_O
 
it's a sexy ep
 
@John This is pretty typical. Look at the top pinned message.
 
@Borgleader Must be morning, after shower but before coffee.
 
user1804599
8:15 PM
Hmm.
 
Hey @DeadMG and @Martin do you buy eggs?
I've recently found out that the UK don't wash their eggs before selling them through reddit
 
...Are you saying people are selling eggs on reddit? I did not read this on the front page today...
 
@Rapptz as does not the entire EU (according to the said article)
 
that's pretty weird
 
user1804599
8:19 PM
@Rapptz Who sells eggs through Reddit?
 
no one
 
@Rapptz how is it weird? did you read the entire thing? it explains both pros and cons of doing it
 
you mean the only pro of it lasting longer?
not much of an issue cause washed eggs last a month in the fridge and I don't keep eggs for longer than a month
 
washing them makes them more susceptible to bacteria (as it makes them more porous)
 
I keep them in the fridge man
 
8:21 PM
also, it's really nice that YOU do not keep them for longer than one month; they may have been sitting in the shop for god knows how long
 
at most 1 week
 
who guarantees that?
 
but most probably 24 hours
the Sell By Date
or do you not have marked containers either?
 
oh, we do, don't get me wrong; I just think you're disregarding all the pros listed in the article
I wonder whether expiration dates are set for 1 month only
 
there's no expiration date
just a sell by date
if you want to check how the egg is, just do the water test
 
8:25 PM
@ScarletAmaranth Kanojo wa flag wo oraretara may be one of the funniest anime this year. (cc @Mysticial @Xeo)
 
@StackedCrooked please STAHP! :)
 
Xeo
@StackedCrooked Funnier than NGNL?
 
what's ngnl again?
 
Xeo
No Game No Life
cause that show's hilarious (so far)
 
8:28 PM
hm... good question
I guess "Kanojo wa flag..." is sillier. (Similar to "Baka to Test" if you happen to have seen that one.)
No Game No Life is definitely more interesting as a series.
 
this got posted on /r/learnprogramming
?_?
most of them are awful
 
@Rapptz I do indeed.
the supermarket eggs are always washed but the other eggs we've bought from other sources aren't.
it doesn't particularly bother me since, you know, I don't eat the outside.
 
salmonella! bacteria! etc
 
I'm not sure how washing the outside would help.
isn't salmonella on the inside?
 
faulty egg cracking
 
8:36 PM
I'm such an idiot. I've just lost probably my best chance to get laid of my whole life for moral reasons.
 
besides, I believe we haven't had salmonella problems here from eggs for decades.
 
@DeadMG both
 
we mass screen the chickens beforehand, I think, or something like that.
 
if the egg shell has feces for example
 
there is some scheme to prevent salmonella and whatnot
I don't recall the details but it seems effective enough.
 
8:37 PM
@StackedCrooked good OP ep btw; I'm HOPING we'll get to see Lucy fight in the upcoming epi
 
@Rapptz the way I knew it is because the egg shell has a natural protection from the external bacteria that can be easily washed away
 
@ScarletAmaranth yep
 
therefore not washing the eggs is actually beneficial
which would kinda make sense
 
@ScarletAmaranth yeah, the rebecca story seems interesting as well
 
@StackedCrooked oh ye; they're trying to sneak it YET ANOTHER parallel scene ^^
 
8:39 PM
:D
 
user1804599
Hmm.
 
user1804599
Gonna implement macros tomorrow.
 
user1804599
No idea how. :D
 
why?
 
@Xeo It's gonna be hard to beat NGNL this season.
 
8:50 PM
I'm trying to manage a bit-array in C, but it seems I'm not quite succeeding. Can anyone take a look: coliru.stacked-crooked.com/a/153cbe4197c7cc30 As you can see, it doesn't print all the primes. I suspect there's something wrong with my set/clear/get bit functions?
 
user1804599
@Jefffrey uh, why not?
 
@rightfold is it with "whys" or "why nots" that you make design decisions?
 
user1804599
No.
 
user1804599
But lisps without macros are suck.
 
Excellent answer. :)
 
user1804599
8:52 PM
Would need way too many special forms and cannot be extended without modifying the compiler.
 
Is it with X or Y that you do Z? -- No.
 
absolutely "why" is the correct answer.
 
user image
9
i shouldnt be laughing
 
@LukasKnuth take a look at std::bitset and/or boost::dynamic_bitset
@Borgleader holy mother! this one is very good
 
@Jefffrey I saw the post, but I wanted to use C
 
8:55 PM
@LukasKnuth I believe you are in the wrong room.
 
this is the closest you can come here
 
@LukasKnuth, May I ask you why you want to use C?
There must be a really compelling reason.
 
I like ugly code
 
crosses fingers not to hear "performance"
@LukasKnuth What
 
lol FUCK DAT EDIT stackoverflow.com/posts/16135573/revisions By javapowered, of course
 
8:57 PM
I'm bored
 
and that's why I never edit other people's code in SO answers
 
@Jefffrey I suppose I don't have a compelling reason...
 
@Borgleader he said "just use tar"
 
@sehe Roll it back?
 
@LukasKnuth then use C++?
 
8:58 PM
It technically changes the meaning of the code
i.e. now you're flushing
 
@Rapptz Uptalk? Why.
@Rapptz Gosh. Of cours.
 
Complete project? 1) find a contractor. 2) give them money. 3) receive complete project. — Golden Dragon 1 min ago
 
It's a pretty useless edit
 
Tell me more!
 
I'd rather not
 
8:59 PM
:)
 
@Jefffrey jop. Let's see how far I get this time
 
Sweet.
 
@LukasKnuth Should I feel offended?
> jop: Person who is an extremely faggish ass-fuck with no life.
 
@javapowered Please, don't tell people to use std::endl instead of \n unless you know what you're doing. In this case, it's in[s]ane. — sehe 11 secs ago
 
@Jefffrey only if you choose to.
 
9:01 PM
Hmm boredom looms.
 
I guess I'll go with "no", cryptic guy.
 
I'm trying to be as vague as possible :D
 
Mind to share your private key?
 
@LukasKnuth That always works. ON FACEBOOK
@Jefffrey His heart is bleeding
 
@sehe I wouldn't expect more from someone named javapowered :)
 
9:03 PM
@LightnessRacesinOrbit I used to do things like this all the time. Sometimes it worked, sometimes it backfired.
 
6 mins ago, by sehe
lol FUCK DAT EDIT http://stackoverflow.com/posts/16135573/revisions By javapowered, of course
:D
 
@sehe ba dum tsss!
 
For Portuguese class I once wrote a three page story with nothing but repetitions of the same five distinct words. Another time I wrote what was meant as a letter from the protagonist of a story we studied in class to his father. I wrote it full of spelling mistakes, because the protagonist had no formal education.
 
And we all know that people without formal education can't spell for shit.
@DeadMG The scheme is "stick your head in the ground"? :)
 
nope
 
9:10 PM
@sehe That particular one couldn't.
I actually got points deducted because one word longer than one letter was spelled correctly.
 
@JohanLarsson ATTACK OF THE YOUTUBE CAPS
 
the URL ends with "No", so No.
 
lol
@DeadMG That's not true, and I mean Europe.
 
um... If the size of the bitfield is a template parameter, how can I create a bitfield with a length known at execution-time?
 
9:13 PM
anyone familiar with vagrant command line?
 
bitset<(n/3)> prime_table(); this doesn't work
 
@R.MartinhoFernandes That's clearly not a symptom of "lacking formal education" :)
@JohanLarsson It isn't. It's just not my favourite bg music
 
@R.MartinhoFernandes are we i danger?
 
@Crow I write flagrant command line everyday
 
@sehe It was just the teacher playing along. He eventually got used to all my oddball submissions.
 
9:15 PM
@sehe Did you like the Finns?
 
@R.MartinhoFernandes You conditioned him well
 
a vaccination program.
that's what we deploy against salmonella.
 
I once tried to write something only with words starting with the same letter, but it turned out too complicated.
 
yes, I can imagine that would be difficult no matter what letter you pick.
 
@DeadMG I can confirm this is not true.
 
9:16 PM
you'd be screwed without "it" and "and" and such similar common words.
 
Some years later this guy writes a novel only with words starting with A.
@DeadMG Was Portuguese (but yeah, similar problems)
 
@JohanLarsson Oh. Well, the beatbox: wow. The genre: lol. Maybe. it'll have to grow. And the chances of me listening oft enough are slim
@R.MartinhoFernandes which guy? Your teacher?
 
ok, found it last week, gets better & better ime
 
@sehe Some random dude.
 
9:23 PM
Ah. I feared you crashed his subsystems :)
@JohanLarsson could do with a plink :) I'm not /always/ reading /every/ message :)
 
@Jefffrey What's broken about it?
 
@DeadMG It's too awesome.
 
Wait a second.... This javapowered guy, he must have edited only to troll this answers' exact anniversary. He was the OP. Well well.
It seems we witnessed a new OCD type /cc @ScarletAmaranth @Rapptz
 
@sehe I like how you read into things usually a tad too much
 
lol
 
9:29 PM
@ScarletAmaranth It could have been coincidence, had it not been the OP
This being the OP the chances of him finding the post back "sort of" on purpose vastly outweigh the chances of him randomly stumbling into it, as I would otherwise happily assume.
 
Xeo
@Mysticial Well, since I know where Mahouka is headed... :) (Hint: The roadsign said 'Total awesomeness this way')
 
Add the "coincidence" of this april 21nd
 
@Xeo Mahouka Koukou no Rettousei?
 
Xeo
hai
 
why the hell do I have a "stale" tab open with it
 
9:49 PM
How do you write, in C++, Make 'a' an alias of 'b', (such that if 'a' points to a new object instance, then 'b' will follow)? (is that even possible?)
So, not just copying the reference but doing it in a rather permanent way as described
 
@barlop why do you want to do that? Just use a
 
i'm asking to explore the language
 
maybe you should read a c++ tutorial/book then
 
@barlop Define "point to a new object instance".
Is a a pointer?
Then just make a reference to a.
 
let's say I make 'b' a reference to 'a'.
 
9:53 PM
Then you're done.
4
 
is a pointer and a reference the same thing?
 
good thing you came to ask here; this information is not available anywhere else
3
 
If you make b a reference to a, b is a is b is a.
 
woot
it works!
I made myself a virtual function and it works!
 
9:54 PM
#define a b
 
har har har.
 
^ Try that for the fun :P
 
it was the simplest possible case ever, but who cares about that.
it works and I'm a fucking genius.
 
so what's the difference etween #define a b and making b a reference to a?
 
The former is a joke that you shouldn't do.
 
9:55 PM
the difference is that #define is shit.
in short.
 
kekekeke
 
oh i see
 
< I'm also playing with C++, so don't really mind me :)
 
oh my god; something is wrong with this lounge
 
it's like autocorrect
 
9:55 PM
WHERE IS THE NEGATIVE ENERGY!
 
40 secs ago, by DeadMG
the difference is that #define is shit.
 
@ScarletAmaranth I love it without negative energy :)
 
no enough
 
@DeadMG thats not negative that's helpful, negative would have been binning him / telling him to get the hell out
 
@barlop No. Just forget about #define. It has nothing to do with it.
 
9:57 PM
I am surprised puppy considers that negative; drugs side-effects
 
Which reminds me.. @DeadMG how are the new treatments working?
 
oh shit
I forgot to take it
/me rushes off
 
a=b <-- take the reference currently in 'b' and copy it into 'a'. Now if 'b' ever gets a new reference, then why should 'a' get it?
 
Is @DeadMG really on drugs?
 
@barlop That doesn't make sense. There's no "ever gets a new reference".
You should stop now and go read about references.
 
9:59 PM
@R.MartinhoFernandes you need dis: youtube.com/watch?v=yvllQl5t4Ww
 
@DeadMG If you were a girl, you'd be pregnant a lot
 

« first day (1283 days earlier)      last day (3656 days later) »