« first day (600 days earlier)      last day (4350 days later) » 

7:00 PM
@Drise approved your edit
 
@CatPlusPlus Damn. No beer in sight.
 
Yay, moar points!
Damn, I should have joined this room much sooner
I think my biggest issue was that I was trying to compete with Y'all, and you just rape me and leave me in the dust.
 
You can't win against the no-life that is @DeadMG.
 
Either I wasn't fast enough, or not in depth enough.
 
@EtiennedeMartel Why picking me out, specifically?
 
7:03 PM
@Drise Protip: quote the Standard for maximum points!
 
This room wouldn't be the same without @DeadMG.
3
 
@DeadMG Because I know you can handle it.
 
lol
 
Self deprecation is key.
 
@EtiennedeMartel I don't know the standard!! Just what I hear from yall babbling and mumbling about random nonesense
 
7:04 PM
@EtiennedeMartel Yeah, but you're deprecating somebody else.
 
In game of virtual points, you either quote standard or die.
3
 
hmmm
 
@StackedCrooked Yeah, but that's because nobody deprecates me. Except @sbi, but he's not here.
 
according to Mercurial, I removed some text T and then added it right back again in the same place
interesting diff
 
Whitespace change.
Probably newline.
 
7:05 PM
@Drise code/psudocode, what he did, why it was bad, what is right, and why that is good. (standard quotes are good)
 
@Drise Not me. I'm a C# programmer. I'm not that good in C++.
@MooingDuck Standard quotes are essential if you want your answer to get a ridiculously high amount of partially undeserved upvotes.
 
@DeadMG Line ending change?
 
@DeadMG lol, you're down to whitespace diffs?
What about writing actual code, you lazy slob?
3
 
I already said that. :<
 
7:07 PM
@RMartinhoFernandes No? I fixed some formatting on some of my spec's HTML pages
 
I think that's the first answer I've written in a week. This chat channel even makes me procrastinate procrastinating on stack overflow!
 
@RMartinhoFernandes Everyone gangs up on @DeadMG!
 
From other funny stuff:
0
Q: Haskell code with Gloss lib doesn't compile

L01manI switched from C++ to Haskell and use Gloss to make games. I wrote this valid code in a main.hs: import Graphics.Gloss.Interface.Pure.Game events (EventKey (Char 'a') Down _ _) _ = RectangleWire 10 10 events _ x = x main = play (InWindow "GameEvent" (700, 100) (10, 10)) white 100 ...

I wrote a valid code and it doesn't compile1
 
One day he'll become Supreme Chancellor of the World and murder us all.
 
I, for one, welcome our new puppy overlords.
(As long as I get to be second-in-command, obviously.)
 
7:09 PM
One thing's for sure, I'm going to lead la résistance.
 
right
I uploaded a new version of my specification
 
@EtiennedeMartel I plan to learn his sensitivities so I can more effectively beg for mercy
 
go tell me how shit it is, except that it has inconsistent formatting, poor navigation, and nowhere near enough code examples
because I already know that
 
I don't even know where that spec is.
 
7:10 PM
> The core language defines the syntax and semantics of the language.
 
@DeadMG I don't like the font, nor the background color.
 
There's a domain for that?
 
Cap'n obvious.
 
This shitt needs more Consolas.
 
7:11 PM
@EtiennedeMartel Has been since I created it back in January.
 
@DeadMG I'll just state that those were the first things that lept to mind when I saw it.
You should put it all in one page.
This is madness.
 
@sehe I'm not exactly a unicode expert! Collation is sorting order, right?
 
@RMartinhoFernandes Yeah. And add some marquee and shit.
 
7:13 PM
@jalf Yes.
 
@EtiennedeMartel And <blink>.
Fuck. My answer was not the first because SO CAPTCHA'ed me again! WTF, this is the third time this week.
 
@DeadMG Algorithms page leaves something to be desired.
 
Now it's completely redundant and I won't get points.
 
18
Q: Is it generally accepted that if you throw a dart at a number line you will NEVER hit a rational number?

regularmikeIn the book "Zero: The Biography of a Dangerous Idea", author Charles Seife claims that a dart thrown at the real number line would never hit a rational number. He doesn't say that it's only "unlikely" or that the probability approaches zero or anything like that. He says that it will never happe...

Neat thought experiement
 
@SamDeHaan Oh yeah, practically the whole library has jack shit in it. I don't even know why those pages exist.
 
7:15 PM
@RMartinhoFernandes Link me to your answer, I'll upvote it to compensate for this injustice.
 
@EtiennedeMartel It's deleted already.
 
Damn.
Then I'll downvote the other answers.
 
Poor robot.
We should go to meta with this.
 
My comment was 1 second before the other answer :)
 
0
Q: File relocations - bad practice?

AlexI'm working with a binary file format that deals with data relocations, ie. 'pointers' to data that is located in another part of the file, and a double pointer is written at the end of the file (integer that holds the offset of the data pointer). I have a std::queue<unsigned int*> that ho...

All I see is pointers.
 
7:17 PM
@Pubby My answer was finished ~1 minute after the question was posted.
I only noticed the CAPTCHA later on when I went back to that tab.
 
4 reinterpret_casts in one function.
 
@CatPlusPlus Where do you think the term "seeing stars" comes from?
 
Cool I have done so. Accept! — Zeal Murapa 21 hours ago
This is hilarious.
 
sbi
@EtiennedeMartel You wish, you maggot!
 
Which has 10 lines.
4/10 lines is reinterpret_cast.
@RMartinhoFernandes Lol.
 
7:19 PM
@RMartinhoFernandes
This one works! Excellence... Thanks — Zeal Murapa 21 hours ago
 
c++ casts are hopelessly fanboy food
 
Excellence!!!
 
i never use them in real code
 
I think I'll start using that word permanently instead of awesomeness.
 
7:20 PM
I understand that, but for the ones which do fit, it'd be convenient to guarantee you get the ASCII/UTF-8 encoding even though almost every (every?) compiler does anyway. — Jo Bates 2 mins ago
"I'm totally ASCII-centered, that's why I want to use Unicode."
 
which is the better Linux window manager, KDE or GNOME?
 
Well he has a point about needing a way to get an ASCII character in a portable way
Is there a standard function for that?
 
@sbi Fuck.
 
@Pubby Write its code.
 
No. Nobody uses EBCDIC any more, so nobody cares.
 
7:21 PM
@TonyTheLion XFCE > KDE > SHIT > GNOME
 
There's no function to get any other character in any other encoding in a portable way.
 
GNOME it is then
 
Xmonad!
 
Wait.
@Pubby I starred because I completely agree with the tail.
 
Tail?
 
7:23 PM
Xmonad > XFCE.
 
Xmonad isn't better than XFCE
Well, at least not for me.
 
@Pubby "SHIT > GNOME".
 
lol
 
@ScottW lol
 
SHIT is a codename for every new version of GNOME.
 
7:26 PM
They will probably streamline it down to FECAL MATTER and then to EXCTREMENT
 
I woke up 5 hours ago and I'm already sleepy.
 
> Multi-stage functions have fun with overload resolution.
 
12
Q: Flora, fauna, robot

emddudleyAre there any terms for referring to robot-kind, as flora refers to plants and fauna to animals? I'm looking for a word that would fit in with flora and fauna, so if it derives from Latin or Roman mythology that would be ideal. A made-up word would be OK if it sounds right. So far my best candi...

 
> //... shit goes here
 
WTF is a multi-stage function
 
7:28 PM
@ScottW You need to run bundle install after pulling; I added another gem.
 
@JohannesSchaublitb A function used to send stuff to space.
 
Zing.
 
@RMartinhoFernandes you need to explain that joke to me.
it's not funny
 
> They are where one function is used to produce an outcome that is used as an argument in a different function etc within the one cell eg
=MAX(SUM(A1:A20), SUM(B1:B20), PRODUCT(C2,D2))
FInds the sum of the two ranges and the product of another then outputs the maximum value of the three.
 
7:30 PM
@RMartinhoFernandes lol
 
Wait, some Excel crap is funny but my jokes aren't?
2
You're not my target audience.
 
@RMartinhoFernandes the excel stuff is boring too
 
An excel programmer walks into a bar graph and the bartender says, "we don't serve food here"
Zong.
 
Ell
don't get it :L
 
@RMartinhoFernandes Based on your track record, your target audience might not exist.
 
7:36 PM
@Ell Lol.
Excel is like a prison for formulas.
 
Ell
I don't get the "we dont serve food" o.O
 
@DeadMG I had a cursory glance at it. There are a few things I'd like to discuss, but I don't have much time now, nor do I think I'll have tomorrow. So, if you're interested, please remind me on the weekend.
 
Read it again.
 
@Ell There's no punchline.
 
@RMartinhoFernandes Will do.
 
7:39 PM
Now to find some food on this damn city.
Everything is closed. Fucking holidays.
 
@RMartinhoFernandes Ha, I got a pizza.
Three, in fact.
I don't have to go to the shop for the next two days.
 
So you eat 3/2 pizza a day.
 
@StackedCrooked nomnom!
I have a giant thing of pizza spices which really sexes up supermarket-bought pizzas
 
Just found out I have one left in my freezer that i forgot about.
 
7:42 PM
Pizza is the best food after nothing.
 
I had to stop eating pizza when I got sick
 
Your math skills are astonishing.
 
I had pizza for lunch today.
 
@RadekdaknokSlupik You might like this: hackage.haskell.org/package/scotty
 
I had pizza rolls for lunch today?
 
7:48 PM
The puppy got poetic on his latest answer.
 
If the max payload size of a packet is N bytes and I want to sent a chunk of M bytes. Assuming M > N, how do I get the number of required packets? Without being clumsy?
 
ceil(M/N)
 
Will that work if M and N are integers?
 
In C++, no.
 
7:50 PM
I'm looking for a solution in C++.
 
You need to have at least one float there.
ceil(static_cast<float>(M) / N)
 
(M+N-1)/N should work then :)
with integers
 
@CatPlusPlus Now you are violating clumsiness requirement :D
 
There's close to nothing edible in this house. I'm now biting down the last cookie.
 
@jalf I need to think about that one a little.
 
7:51 PM
float M_ = M;
ceil(M_ / N);
:.
 
@StackedCrooked Clumsiness is in the eye of the beholder!
 
Perhaps m % n == 0 ? m/n : (m/n + 1)
 
sbi
@jalf Ouch. I wouldn't want to have clumsiness in my eye. I am sure that hurts badly!
 
@StackedCrooked run a few example numbers through it. It should work afaik :)
 
@StackedCrooked Erm.
That looks totally random.
 
7:53 PM
@RMartinhoFernandes Fixe.d
 
@StackedCrooked Oh, you fixed it.
 
@RMartinhoFernandes Almost?
 
m/n + bool(m%n) Mwhahaha.
 
basically, if M is a multiple of N, then adding N-1 won't change the result of the division. In all other cases, adding N-1 is guaranteed to bring us above the next multiple of N, so the division yields one higher, enough to make room for the remainder
2
 
7:54 PM
@jalf "(...) bring us above or equal (...)"
 
jalf's math skills are more astonishing than StackedCrooked's.
 
n = 5, m = 10 => 14/5 => 2
 
@RMartinhoFernandes yeah true :)
 
(My brain doesn't get that one, so I'll just opt for the cast.)
 
7:55 PM
@CatPlusPlus I won't even try to compete.
 
hey dawgz.
 
@CatPlusPlus It's not something I just came up with. Came across it once when I needed something similar, and once you've tried it out a few times it's fairly intuitive IMO
 
@RMartinhoFernandes Nice :)
 
and avoids all the icky conversions to float :)
 
Mine is overflow proof!
 
7:56 PM
:)
 
is it sugarless, too?
 
Mine doesn't need comments. :.
Oh hey, another cat.
 
It's a problem I've encountered a few times.
 
int count_packets(int total, int per_packet) {
    return "look, no comments!", total/per_packet + bool(total%per_packet);
}
 
7:58 PM
You're crazy.
 
I think casting to bool is probably more deserving of a comment than any other trick mentioned here :p
 
@CatPlusPlus He's Polish too
 
@CatPlusPlus Craaaaazy on youuu.
 
@Pubby yes, and hating it.
 
I'd probably go for n/m + int(bool(n%m)) as it is a little more self-documenting.
 
7:59 PM
Lol.
 
@jalf Document it with string literals then.
:P
 

« first day (600 days earlier)      last day (4350 days later) »