« first day (952 days earlier)      last day (4005 days later) » 

user1182183
12:01 AM
@CaptainObvlious lol djb2hash is a compile- and runtimetime function?
 
user1182183
from what I know C++ accepts ONLY constant cases
 
user1182183
so how does that even compile lol
 
It is constant
 
"Can I tell you a TCP joke?" "Please tell me a TCP joke." "OK, I'll tell you a TCP joke."
I don't get it
why is this supposedly funny?
 
As most computer-related jokes, it's not
(It's about TCP handshake)
 
12:22 AM
@LuchianGrigore As cat alluded to, TCP does what's called the "three way handshake" that's pretty much as described there -- first the initiator sends a packet saying "can I talk to you?", then the target sends a reply saying "yes, you can talk to me", then the initiator sends a third packet saying "Okay, I'm going to talk to you". Section 3.4 of RFC 793 goes into tedious detail about why this is needed and a simple two-packet exchange could fail.
 
@GamErix Yes, the hash function is used at compile time to generate the values used in the case label and at runtime to generate the has for the switch option
 
Basically, most of it comes down to "what happens if both ends try to establish connections with each other simultaneously?" The answer with the three-way handshake is "it all works fine".
 
There are very few funny computer-related jokes.
 
@Rapptz Whereas there are quite a few about programmers, users, etc., that are pretty funny.
 
@Rapptz someone asked me to tell them a computer related joke one time...I said their name then turned around and walked away laughing
 
12:29 AM
hmmm
ok
so I was right the first time
it's not funny
 
What the heck. Those people tell me to at least add her on facebook. You guys tell me not to go on facebook. I forgot to tell you guys that I unofficially graduated today, so I won't see her anymore other than on rare occasions. So should I add or not?
@CaptainObvlious ^
What the heck
 
@DemCodeLines well facebook is probably more natural for both of you so go with facebook just to get in contact with her but use it minimally....or it'll look like you're a lifeless poser
 
12:44 AM
What?!
Well, we won't meet again.
She still has two years of high school, I am done
Others suggested me to add her on facebook
 
@DemCodeLines can you join the JS room, we need help debugging our bot. Good luck with that chick btw
 
Here is an honest question, why are girls called "chicks"?
 
@DemCodeLines because it's easy to make em go cluck cluck cluck
 
I do not understand that answer.
 
Suck, suck, suck is better..
 
12:47 AM
@MartinJames I prefer mmmpf mmmmpf mmmmpf
then again I like 90 year old ladies...nothing like chick with no teeth and epilepsy
bonus if she has her own stobe light
 
@CaptainObvlious Yeah - I'm not sure why I posted that. May have something to do with 'Wadworths 6X'.
 
lol
need to make some tennis bombs for the weekend
 
Anyone here a girl?
 
Who knows? Who cares? As long as they buy a round, I don't care about their sex, or sexual orientation...
 
@DemCodeLines I wouldn't trust the answers to that question. Some guy posed as a girl for months and had most/all of us fooled.
 
12:57 AM
ugh. these pills are great most of the time but they're starting make me extremely stupid
gettin old sucks ass
 
@Borgleader Yeah - it's a blog. Cicada was funny/entertaining, so just take it as it is presented.
 
Well, you as a guy, what would you recommend then? @Borgleader
 
@Borgleader is male?
 
I don't know if you are a guy or girl, but what is your opinion?
 
Anyone read this question at SO? stackoverflow.com/questions/184618/…
 
1:06 AM
Not yet.
 
it's hilarious
 
@MartinJames Yeah >.>
 
soo?
 
@Borgleader So you say :)
 
Cicada spoke on Mumble, he's definitely not a chick
 
1:09 AM
Anyway, whatever your gender, sexual peccadillos, beer preference, I need sleep. BFN.
 
user image
6
LOLLLLLLLLL
 
@Borgleader MANQUE UN MOT ESTI.
 
I just don't know what to do honestly. She seems nice in person, but if you are looking at her online, you would think she is all that nice and modest and all
 
@DemCodeLines Hmmm?
 
1:18 AM
@DemCodeLines huh&
 
I just did
and I am in awe
 
Whats the problem?
 
kinda like "whoops" but then like "oh shoot"
 
TALK TO HER DAMNIT
 
Its too late for that so I was suggested to fire that friend request on facebook, let's see if I get accepted or ignored
 
1:31 AM
 
Fuck the javascript people, I wanted to talk them and demand a recommendation for a JavaScript design book but I can't even chat in the room.
This is an outrage
 
is it?
IS IT?
 
@LuchianGrigore do you want to play questions?
 
@Mikhail do YOU want to play questions?
 
@LuchianGrigore Can you remind me of the rules?
 
1:35 AM
1. you do not talk about questions
2. you do not talk about questions!
 
I HAVE WON
 
@LuchianGrigore Luchian, the Rogerian psychologist, doing his magic for only $100/session.
 
enter you bank details here -
 
283-28-2312
sorry thats my ssn not my bank number
 
And what is your name? SSNs are not unique.
 
1:37 AM
@Mikhail I really hope that's not real -- giving out your SSN is basically an invitation to identity theft.
 
@LuchianGrigore No.
Those are not the rules.
 
Ugh Microsoft why do you insist on this crappy Secure Download Manager why
 
@JerryCoffin No but there is a chance I gave somebody else's out
 
@CatPlusPlus Internet Explorer?
 
1:40 AM
@CatPlusPlus SDM, not be confused with BDSM download manager
 
What?
@MarkGarcia IE what
I'm trying to download Windows Server 2012
SDM craps out
 
@CatPlusPlus Never heard of that SDM.
 
It's used on MSDNAA/Dreamspark
 
it gets worse, you use to install the whole OS
muhahahah
 
@CatPlusPlus There's no similar to /layout like those in VS updates?
 
1:43 AM
What?
I don't know what that is
 
@CatPlusPlus That command line argument you put after the visual studio update installer. Enables you to save your download and (if I'm correct), enables you to cancel then resume the download.
 
SDM saves the download
It's a download manager
Or it would be if the download even started
Which is the problem
 
@CatPlusPlus Oh.
 
The name kinda gives it away you know
 
2:09 AM
Forwards from grandma?
 
I need a programming project
any programs that need to be made?
 
2:34 AM
@JABFreeware yes, a debugger that's better than gdb
 
yiz
you scared him off
lolz
 
@StackedCrooked I think he wants possible things
 
It's not impossible.
 
@StackedCrooked Maybe I'm biased, but I'd have said "better than gdb" fell into the "softer than a diamond" category.
 
yiz
2:49 AM
lol would you rather want an 'inteliigent' debugger instead?
 
So I sent that girl the friend request, almost an hour ago. But she didn't accept yet...
 
@DemCodeLines First step to stalkerland
 
@DemCodeLines it's only been an hour and you're mentioning she hasn't accepted yet....first step man....first step!
it's Friday night! If you're lucky she's out having sex with some random chick
 
^ Koshien stadium, where the national high school baseball tournaments are held
 
3:05 AM
Baseball is pretty popular in Japan.
 
> Shiver me templates!
ReBoot was so awesome.
 
3:18 AM
@EtiennedeMartel shitty weather today, makes me sad
 
@Borgleader Oh, it's not that bad.
 
Max of 8C and rain, not so bad? =/ I was expecting some warmer temperatures a week away from june
 
It was 34 C here two days ago.
Now it is 8 C.
 
Finally fixed the current problem on the embedded system
 
@IDWMaster Too much current can cause some smelly kinds of issues.
 
3:22 AM
The solution: It's somebody else's problem. Problem solved.
Now just to find a way to get these things to run j@#$% G@#(....
 
@Rapptz Just about the reverse here -- it was 6C around noon yesterday, about 32C this afternoon.
 
Here it's only about 1K.
 
@IDWMaster That's less than the cosmic microwave background.
 
3:33 AM
@IDWMaster One Kelvin? That sounds just a tad chilly...
 
@Potatoswatter Yeah. It's called Minnesota
 
@JerryCoffin It could be worse :)
 
@IDWMaster International Falls, or one of the warmer parts?
 
I found a boson!
@rightfold I thought we freed all of our mallocs in World War III?
 
@Borgleader When in doubt, blame Stephen Harper.
 
3:38 AM
Also, Day9 in a pro tournament of MTG (skip to 10 min or so)
 
@Borgleader Yeah, I heard about that. That's why he did not stream last friday.
 
3:55 AM
^ That is how you should do things.
From BYTE Magazine first issue.
 
All girls are freaking same. Playing with guy's minds. Nonsense. :@
 
lolwut
 
I don't think you're that stupid that you don't understand what I just said.
 
@DemCodeLines Most girls do like playing with the minds of folks who say things like that, but it's not necessarily discriminatory towards guys.
 
Im confused because you dont even talk to girls
 
4:07 AM
@CaptainObvlious She is 16. Put some limits already.
I talk to girls, I don't know who told you that?
@Potatoswatter things like what?
 
@DemCodeLines Only if you let them.
Yes, I mean it's your fault. Stop blaming others. Less QQ, more pew pew.
 
@DemCodeLines Like "all girls are freaking same… I don't think you're that stupid that you don't understand what I just said."
 
Ok, but I don't usually say that stuff. Its just this girl. Ticking me off. Are you into me or not? Stop sending me conflicting and contradicting signals.
 
@DemCodeLines you? whove been going on about how you cant get yourself to talk to her?
for like what? two weeks?
 
what me?
 
4:11 AM
yes you
 
No i meant, I don't know for what reason you said "you?" at the beginning of your sentence.
 
again I was confused. its pretty much all youve been talking about around here, of course i got it from you.
 
Her signals are confusing. One minute she is looking at me as if she really wants me to talk. Another minute, she is very normal as if nothing happened. What the heck?
 
@DemCodeLines In between those minutes, did you talk to her?
 
@DemCodeLines FUCKING HELL DUDE JUST TALK TO HER.
Sweet tits on a sandwich.
"Hey, Doc, when I stab myself, it hurts. What should I do?"
"Have you tried not stabbing yourself?"
 
4:18 AM
school's over for me, so i likely won't see her again
 
Then move on.
 
and it ticks me off that she doesn't reply to my facebook request
seriously
@EtiennedeMartel well that was the option i was about to take until some other guys who have been trying to help me throughout this thing told me to add her on facebook
 
You only made the request today, right? Are you even sure she's been on FB since then?
 
^ This
 
@DemCodeLines Oh, right. FB's a good idea.
 
4:22 AM
@JerryCoffin He said it's been like an hour. He needs to go outside and get some air.
 
She tweets almost everyday (not a lot, very little, but every day). So she must have checked her FB by now
More like almost 3 hours by now
but then again, its 12 am right now
 
...
have you thought that she might be yknow... sleeping?
 
but i sent around 9
 
@DemCodeLines Welp… either you're loony with hormones, or a troll, so I'm adding you to the ignore list. :(
 
@DemCodeLines So unless she happened to look at fb right before bed, there's roughly zero chance that she's seen it at all yet.
 
4:24 AM
I am not a troll
Okay, well ill see what happens tomorrow
 
Hi. New in here there are a couple of books I would suggest for stackoverflow.com/questions/388242/… it says to discuss them here first. The suggestions both for the golden moldie section:
Barton and Nackman
and Tbe ARM
 
Hmm. I'm afraid it's not exactly the best time for that.
 
@Mouse.The.Lucky.Dog Annotated Reference Manual? See sbi's comment under that answer.
I have considered it, but then thought it's too old and really only of historical interest. I remember it being outdated in the mid-90s, when even D&E was still up to date. It's still a good book, but I doubt you could learn anything really important from it for writing C++ code nowadays. I am still undecided about it, but if you feel strongly it should be included, I wouldn't object if you added it. But if you do so, please explain that it is mainly of historical interest. — sbi Apr 15 '12 at 7:39
 
IMO, the ARM is too thoroughly obsolete to bother listing. Unless you happen to be using an ancient compiler, there's just nothing there that a draft of the standard that you can download for free doesn't do better.
 
and itll keep getting obsolete-er
captain obvious here ^.^;
 
4:34 AM
That's how obsolescence goes.
 
yiz
when I do void foo(int b[][3])
it is not implicitly converted to:
void foo(int **b)
 
@yiz No, it becomes an int (*)[3].
 
@yiz No, it isn't. Now stop using arrays.
 
@Mouse.The.Lucky.Dog Barton and Nackman is probably a little closer to being worth considering -- there's not really anything much more current that covers the same ground. At the same time, so much of it is so thoroughly obsolete that the only people I'd feel comfortable recommending it to would be those with enough experience to sort out which parts to ignore -- by which time, they probably aren't going to gain much from it either.
 
@yiz Arrays work in mysterious ways. Stop using them.
 
4:36 AM
@Jeffrey Coffin there is still the "Annotated" part. and if you consider making changes to C++ that part should be read.
 
yiz
I am freaking answering someone else question
 
@Mouse.The.Lucky.Dog use tab to complete peoples names, you made 2 mistakes.
 
@Mouse.The.Lucky.Dog But then it's not really relevant to the average C++ programmer, hmm?
Also, I'm so calling Jerry "Jeffrey" now.
@yiz So you're asking us to do your job? Tsk tsk.
 
yiz
but how is memory on the stack look like when I do: int (*)[3]
 
wut
 
4:38 AM
@yiz Why is that even relevant?
 
@Mouse.The.Lucky.Dog also, to reply to people you can click the arrow at the right end of the message box. it links to the message and not just the person and allows people to more easily follow threads of conversations.
 
Nobody gives a flying excrement about what the stack looks like.
 
yiz
you are passing the pointer to the array into the function right
 
@yiz This belongs on the main site, but that is a pointer to three integers. int ** is a pointer to pointer(s) to integer(s).
 
@yiz Yes.
@Borgleader That's all documented in the newbie hints, of course. /cc @Mouse.The.Lucky.Dog
 
yiz
4:39 AM
so is int a[][] is similar to int **a;
did say similar, I know they are not the same
 
@JerryCoffin @JerryCoffin Still Barton belongs in the Moldies section if Coplein does, hell I learned a lot more from it. Besides it was on the first Season of "Chuck".
 
@EtiennedeMartel yeah but most people dont read them so im accelerating the procss
 
@Mouse.The.Lucky.Dog It's been a long time since I looked (not even sure I have a copy any more) but it seems like by the time the standard came along, many of the annotations were pretty badly dated too.
 
@yiz See what I just said. If still confused, search the main site.
There are plenty of answers there already.
 
@yiz Only in function arguments.
Otherwise it's pretty not the same thing.
 
4:41 AM
@EtiennedeMartel int[][] is invalid in any other context.
 
@Mouse.The.Lucky.Dog Appearing in a sitcom is not a good argument for going in the recommended book list. its more of a fun fact
 
yiz
6 mins ago, by yiz
when I do void foo(int b[][3])
it is not implicitly converted to:
void foo(int **b)
 
@Potatoswatter Well, well.
I did too much C#.
 
VTW I just realised that Cope's other book isn't in the list either.
 
@EtiennedeMartel And now you can't C# badum-tss
 
4:42 AM
@Mouse.The.Lucky.Dog The big difference is that a lot less of Coplien is so badly wrong for current usage. Barton and Nackman have more that's probably still useful, but definitely a lot more that's horribly wrong for reasonably current usage too.
 
s/VTW/BTW/
 
@Borgleader Ce pain.
 
@Borgleader @Borgleader It wasn't a sitcom more of a adventure/comedy thing.
 
you dont need to @somebody when using the arrow, btw
 
When someone reads an old book for a pertinent topic, then they'll also read the next page which contains an outdated example. Then they get confused and code like that until it causes a problem, whereupon they ask us on SO.
 
yiz
4:44 AM
-1
A: passing arguments to the function

yizAccording to: 6.2.3.1/3 & 6.7.5.3/7 In the call to foo, the array expression arr isn't an operand of either sizeof or &, its type is implicitly converted from "array of int" to "pointer to int" according to . Thus, foo will receive a pointer value, rather than an array value. So when you do: ...

 
@Potatoswatter And then someone gives him bad advice because C++ is the most badly taught language in the world.
And then we have to fix up the mess by Lounging the bad answer.
 
Did someone change the name of this lounge for Etienne?
 
@Potatoswatter and that doesn't happen when looking at someone's manky old code?
 
@Crowz I changed it myself.
 
@yiz Yeah that's wrong
 
4:46 AM
Remember I'm a room owner.
 
Oh I didn't know that
 
Ever wondered why my name is italicized in the chat?
 
@Crowz He's a room owner. He can do his own pony work.
 
c-can I be a pony?
 
Room owners names are in italics?! TIL
 
4:46 AM
lol
Blue names are cooler
 
yiz
@Rapptz how so?
 
I just assumed it meant he's Italian.
 
@yiz void foo(int b[][3]) doesn't get converted to void foo(int** b)
 
@yiz it gets converted to *[3] not **, read Carl Norum's answer
 
i.e. void foo(int b[3]) would only accept an array of exactly 3 elements.
 
4:48 AM
@Potatoswatter I like pizza, but no.
 
It wouldn't decay to a pointer
That's why template<size_t N> void foo(int (&b)[N]) works
I guess.
 
arrays of n elements are their own types in a way
so b[3] and b[4] are of 2 diff "types"
or at least thats what i seem to understand, i might have to re-read that part
 
not really
 
yiz
but you are not passing int b[][3] into the function are you
you are passing a point to a 2d int array
which is int**
 
@yiz Let me reiterate what I said in the comment: a parameter of type array of T is adjusted to type pointer to T. In this case, the parameter has type array of arrays of 3 ints. Therefore T is array of 3 ints, so the parameter is adjusted from array of arrays of 3 ints to pointer to array of 3 ints.
 
4:52 AM
^ "adjusted" here is a Mafia-style euphemism.
 
@Potatoswatter I think more communist style -- as I recall, they were fond of their "readjustment" camps and such.
 
Similar to what free does to pointers :)
 
I just looked at the moon tonight through my telescope. It kinda blinded me.
 
@Mysticial Clearly you need sunglasses at night.
 
@Mysticial It's still sunlight.
 
4:56 AM
@MarkGarcia Where do you live?
 
@Mysticial (insert joke about asians and squinting here) ;)
 
@Mysticial Philippines.
 
@Mysticial It'll do that when it's full or close to full. Not very interesting to look at either. Much more interesting when there's a terminator line -- right along the terminator line, you get highlights and shadows, which bring out the details of the mountains much better. At (or close to) full moon, we're seeing it reflected nearly straight back at us, so it all looks very flat.
 
@Borgleader lol
 
@Mysticial Well, even the light from the moon is still sunlight.
Seeing as it's 99% solar-powered.
 
4:58 AM
My telescope is big enough to see Saturn's moon Titan. And I had the great idea of aiming it directly at a full moon near perihelion.
 
@Potatoswatter The 1% are from space objects crashing to it.
 
yiz
@Mysticial I was thinking if you have time you could write some query on the stackoverflow data explorer to find out sock puppets/serial voters. We need to find algorithm, patterns of such people though
 
@Mysticial periapsis
 
@Potatoswatter perigee, periapsis, perihelion, etc... they all mean the same to me. :)
 
@Mysticial Pedigree.
:P
 
5:00 AM
This starts in the north of Sweden soon.
 
yiz
data mining on SO $
 
@JohanLarsson The sun just circles at some part of the sky. I wonder how they can keep track of time without using a watch.
 
yiz
I used the sun to analyse the direction of the property when I was doing house hunting (purchasing my one and only house).
 
If you have a compass it is easy to calculate the time roughly. 13:00 the sun is south 01:00 it is north, 19:00 west and interpolate.
 
yiz
time, direction and the location of the sun, you can find one if you know the other two :D
 
5:06 AM
@Mysticial For looking at the moon with anything but a tiny scope, you want to put an aperture on the front of the scope. A piece of cardboard with about an inch and a half (or so) hole in it works reasonably well. If you have a reflector with a central obstruction, put the hole off to one side.
 
Well if you've lived there for the most of your life, you'll sure develop an instinctive sense for that.
 
My brother has a summer house with a 270° ocean view, it can be pretty brutal with the sun all the time. Brutal in an extremely nice way though
 
@JohanLarsson Free heater?
 
how do you mean?
 
@JerryCoffin interesting
I can see how that works
 
5:08 AM
@JohanLarsson Is the place cold?
I have assumed it is.
 
In the summer it is ok 20-30°C in a warm day, winter is cold -20- -30°C a cold day :D
 
yiz
@JerryCoffin Ok, let's explore this a bit further. I asked what would the stack look like when I do foo(int b[][3]). The answer I got was: "depending on the ABI, nothing might get pushed on the stack. What exactly are you asking?"
I mean what?
 
Who cares what gets pushed onto the stack? It doesnt help to answer the question. Arrays are bad. People shouldn't use them, period.
 
@yiz The stack is entirely an implementation detail. The language specs never mention a "stack."
 
yiz
@Potatoswatter not if you go to assembly level
 
5:21 AM
@yiz What's being passed is a single pointer. Since it's only a single pointer, it could be passed in a register instead of on the stack (especially likely on something like a SPARC with lots of registers arranged to support parameter passing).
@Potatoswatter Sure they do -- std:stack. :-)
 
And using it to store small function arguments is inefficient, so it's pretty likely to go into a register only. ^ what he said.
 
yiz
@JerryCoffin thank you, now we are in agreement, it is a single pointer
 
@yiz Was there ever any disagreement on that? If so, by whom?
 
@yiz The language specs don't "go to the assembly level." That's the job of an ABI.
 
I think people spend way too much time worrying about what happens under the hood
 
yiz
5:25 AM
@Mr.Alien hello fella PHP developer :p
 
Different strokes for different folks. I came from a hardware hobbyist background and learned much of C++ from reading disassembly.
Good engineers know how to read and respect specs and standards, hardware as well as software. But bear in mind their scope.
 
@Potatoswatter s/for different folks/from different yolks/
 
@yiz Heyaa Perly Girl :)
 
yiz
@JerryCoffin a pointer is a pointer, so why saying you are passing int **i // which is point to a point of array of arrays is wrong?
@Mr.Alien lol :)
 
@Potatoswatter and they don't let it interfere with accomplishing the task at hand
 
5:29 AM
@yiz ;) PHP room seems dead
 
@yiz A pointer is a pointer, but in C++, it also "carries" a type.
 
yiz
we were talking about C there
 
@yiz Same.
 
@MarkGarcia I think of a variables type as it's "soul"
 
@yiz An int ** is not a pointer to an array. It's a pointer to a pointer. The most obvious difference would be when you increment them. If you increment an int **, it'll increment by the size of an int *. If you increment a pointer to an array, it'll increment by the size of the array it points at.
@Mr.Alien s/room // There, FTFY.
 
5:32 AM
@CaptainObvlious It's only at compile time though, unless you have some runtime reflection.
 
@Potatoswatter As much as I'd like to agree, there are some pretty good software engineers who never have and probably never will read or understand any hardware specs.
 
@MarkGarcia Linking is just an exorcism
 
@JerryCoffin It's still not fixed :p
 
@JerryCoffin Yeah, of course. I'm just saying that as long as you keep hardware knowledge in context, it's useful if your mind is oriented that way.
 
yiz
@JerryCoffin you are probably right, didn't think of that
 
5:34 AM
@Potatoswatter Ah -- I think I can agree with that.
@yiz Of course I'm right! Here, study this and when you understand it fully, you should have no difficulty answering the question that started all this.
 
yiz
@Mr.Alien since you are here, and since I suck at everything equally ...
Is this how you do string comparsion in PHP?
 if ($key == 'id')
 
@yiz Perhaps the PHP room is empty now, but if you and Alien go there then it won't be!
 
@yiz Yes, but if you want strict comparison, you need to use ===
 
yiz
He said the PHP room seems dead
not empty
I guess he could have a monolog with himself there
 
=== will check the data type too
 
5:41 AM
@yiz Does it smell like rotting meat?
@yiz He could talk with you, because you both should go. And all you're saying now should go to the bin.
 
yiz
I am trying to answer C questions, doing PHP script and thinking about the paint for the door all at the same time
all needs to be done urgently and I can not multithreading multitasking
 
that's nice
lol you and about 6 billion other people
well can't piss everyone off. I haven't given up though
 
@Mysticial So have you had any light-saber duels at Google yet?
 
@JerryCoffin I start on June 17. And the first week is all training so not yet. :)
 
@Mysticial Ah, well I guess we'll also wait to hear about it then...
 
yiz
@ScottW get into the bin? thanks I have been there many times before
 

« first day (952 days earlier)      last day (4005 days later) »