« first day (39 days earlier)      last day (4901 days later) » 
00:00 - 21:0021:00 - 00:00

12:00 AM
lol i wouldnt refer to myself as a "published author"
i wrote like 3 crappy articles
 
That is three more articles than I have written.
 
here's one. drdobbs.com/184401912 enjoy the chuckles!
 
With respect to the GC question, I'm surprised that there hasn't been a grand defense of the C# or Java object model.
There are a few "it's ok and has some benefits" answers but no real "OMG C++ suxorz" answers.
 
Agreed. I wonder if your and my posts kept them at bay. haha, doubt it. i guess people were just in a mellow mood today
ok beer:00 is here, later all
 
beer:00 was over an hour ago!
Later, though.
 
12:28 AM
@JohnDibling Hm, DDJ never accepted any article from me for about 13 years. They gave me the utter silence treatment. Finally got one in now that they're near death.
afk
 
12:40 AM
?
 
1:21 AM
@tina see this message
 
1:44 AM
argh, I hate you Visual Studio!
 
xor
Hi room. I've a question regarding TCP Listener in c++.
I have a port # 5310 set to accept connections.
would it be able to accept any connection from internet or only local connection made from my computer?
thx
 
@xor it doesn't depend on the programming language
 
xor
2:02 AM
so basically a TCP Listener is a server right?
 
@xor you can say that server can be a TCP Listener. that's a bit different.
 
2:36 AM
hey can i ask something?
if I send a http response to a web browser through a socket do I need to put escape characters for the html characters such as / and < ?
 
To the best of my knowledge, you don't need to modify the content since a content-length is given.
So, if you have text in the document, you need to escape characters like < because otherwise they will be interpreted as markup.
But you don't need to escape the < when it appears as the opening chevron of a tag.
 
I have written this code:
Char string[] = "HTTP/1.1 200 OK\r\n<html><head><title>Tutorial:HelloWorld</title></head><body><h1>HelloWorld Tutorial</h1></body></html>";
and if(send(clntSocket, string, string_length,0)!=string_length) DiewithError;
 
I'm pretty sure the header needs to end with two newlines.
(It's been about two years since I wrote my HTTP client)
 
So I nead to put new lines escape characters in the string??
 
You should take a look at the HTTP spec to see the format of the HTTP messages.
The RFC is very straightforward.
*RFP?
Whatever
 
2:53 AM
yeah you are right! It works! I thought that I should put escape characters in the string for the html characters like / and <>! Thank you very much!
 
I'm not much concerned with rep for myself (except enough to have decent functionality), but I'm concerned that I answer questions in a way that doesn't get votes, and so people relying on SO answers as guidelines become misguided. As a concrete example, it seems that for this question i'm answering in a way that make people reluctant to up-vote. what's wrong with my answer (style) for this question?
 
I don't see anything wrong with that answer.
 
Hm. Well, as another concrete example, this answer has 21 upvotes, so presumably i did something right, but "tony" doesn't even understand that it is relevant to the question?
 
One issue is that it isn't prime time on Stack Overflow. Answers posted during business hours in US time zones tend to get far more attention due to higher traffic on Stack Overflow, and few people go back to read over what happened on Stack Overflow while they were gone.
To be honest, I think there is very little correlation between the quality of an answer and the number of upvotes it receives.
4
I've found that answers I've given to "easy" questions or sarcastic answers tend to get more attention.
 
3:08 AM
yeah, sarcasm can get downvotes easily, i think. did that a few times. it's difficult to always contain...
i mean i don't do that for someone who obviously does not understand, or just lacks knowledge, but i react very negatively when it's obvious that someone does understand but just refuses to yield on some point, propagating incorrect info
 
No, I know what you mean.
 
xor
3:27 AM
I'll be back later guys. thx.
 
3:58 AM
@tina that link only goes to general Google docs. check out the sharing options in order to get a permalink to a document you've placed on Google docs.
@tina "sorry, we are unable to retrieve the document for viewing". You have to share it. By doing that you also get a link (URL).
can't you just share it for everybody?
in any case, if you want to share it to me, my e-mail address is not exactly a secret... ;-)
works
yep, works nicely, even without being logged in to google
most often it is, but if that is an e-mail address then it's an old one that doesn't work
current e-mail address is always displayed on the comp.lang.c++.moderated guidelines page.
 
4:36 AM
@tina i'm sure there must be an SO question on that. ;-) anyway, little-endian has least significant part of integer stored at lowest address. this is used on the PC. it's simple for programming but messes up display in ordinary debuggers. big-endian is the opposite. it's a little less convenient for programming, but yields normal order of bytes in displays in ordinary debuggers. big-endian is commonly used for network transfers of binary data
@tina regarding messing up of bytes display: that's because our number notation originated from the arabs (more precisely in Iraq), who write right-to-left. so essentially our ordinary number notation is backwards, compared to text. an ordinary debugger just presents bytes in the order they have in memory, and then text comes out all right but bytes in little-endian integers come out backwards
 
5:08 AM
little-endian and big-endian is easiest to understand for integers. then you can think of an integer as a sequence of bits indexed from 0 to n-1, inclusive. little-endian is where higher address means higher bit index (they go the same way). then for floating point representation you can apply the same viewpoint. a floating point number is stored as a sequence of bits, and little-endian is where higher address means higher bit index (and big endian is the reverse).
ok?
hm, how about you figure out an example? say, for 16-bit integer. or, check out wikipedia, google it, ...
 
D: woah a lecture
did you miss the class at your university @tina ?
 
 
8 hours later…
sbi
12:51 PM
To break the long silence here:
"Java is a DSL for taking large XML files and converting them to stack traces" -- Scott Bellware
2
And now I'm back to work...
 
1:14 PM
const int n = 100;
bool b[n];
for (int i = 0; i < n; ++i)
{
    std::cout << b[i] << ' ';
}
I thought this would only print 0s and 1s, but it doesn't :-)
 
1:28 PM
yay i got a gold badge
 
sbi
@JohnDibling Oh, rats! Erm, congrats!
 
1:46 PM
I'm trying to use the boost::date libray and I get this error: ConversionTest fatal error LNK1104: cannot open file 'libboost_date_time-vc71-sgd-1_44.lib'. I'm trying to find out how to compile the library to create this lib, but I'm a bit lost as to what to do. Can anybody help?
 
@JohnDibling How did you get it?
 
@Fred: It's the C++ badge: stackoverflow.com/badges/49
1000 upvotes in the C++ tag
 
@JohnDibling Yay, I have it too :)
 
grats:)
 
2:34 PM
@Fred: thanks for the link; I'd almost posted something longer yet similar before I realized I really didn't want to get into it all in comments
 
 
2 hours later…
4:45 PM
its quiet on here today
 
shhh... sleeping
 
oh ok
is it me or are linker errors meant to throw you off?
 
linker errors are the programming gods' way of teasing you
"you thought you fixed all your syntax errors. laugh's on you! hahahaha"
 
5:02 PM
lol yes
i abhore linker errors, haha
 
6:04 PM
@Tony When I was a teen, I did not understand the difference between header files and library files, so linker errors confused the hell out of me :-)
@FredNurk you're welcome
 
6:32 PM
Good afternoon social-media experts.
 
sbi
6:54 PM
@wilhelmtell Good evening.
@FredOverflow Linker errors are meant to confuse the hell out of you. That's why they were invented in the first place.
 
@sbi really? I personally find linker errors to be among the most obvious errors. But maybe it's because was never exposed to the obscure ones.
@sbi the linker errors I know are all roughly of the form of "symbol not found", with the name of the symbol immediately following. It's pretty self-explanatory to me.
It's the template errors I'm less fond of. Even those coming from concept programming.
But I see what you're saying. The obscurity is in why the symbol wasn't found. And the issue is usually that the linker knows very little other than about symbol names. Maybe that's the same root cause of the template error: the compiler knows very little about templates when they're not instantiated.
 
sbi
@wilhelmtell If you have a several MLoC code base, ported across half a dozen platforms, on yours being composed of a dozen dynamically loaded libraries, and some obscure symbol, 3 characters long (the developer was in a hurry) plus 3k of name mangling (it's a function taking a dozen parameters), which is right there, has the right decoration, but for some obscure reason (like the order of inclusion of two system-widely used headers setting up the macros for decoration),...
...deeply buried several levels of nested includes and hidden under a maze of preprocessor magic, the decoration seem to be wrong at the place the function is defined, and every change requires you to wait 50mins for the damn thing to compile (linking is cut short by that error, so you don't have to wait for the full 10mins this takes), then linker errors are no fun at all.
 
7:11 PM
Ah.
:)
 
sbi
@wilhelmtell Don't just gag there! You can do better!
Where is everybody anyway??
Hey! You! I say! <waves_frantically> It is the evening after day... I've worked hard, fed the kids and bullied them to bed, it's beer'o'clock, and I want to chat! So don't just lure out there! Talk to me What do you think you're here for?!
 
@sbi k wow there. I can only imagine what the kids did to you to deserve that. I don't want you bullying me into bed.
also: do forgive me, I'm at work.
but for 3-character identifiers: i'm sorry, you deserve it.
well you don't.
but the original programmers should be shot, hanged, and bullied to bed. twice in a row.
fuckers.
 
sbi
@wilhelmtell See, there's something we agree on: I don't want to have to put you to bed either. :)
@wilhelmtell Being at work is a lame excuse. What do you do at work anyway, while I have time off?
 
resolving modahfocking jython cache issues.
you see: i'm hanging in a c++ chatroom because i miss c++ right now, where things clean up properly. AT COMPILE TIME. fuckers. yes you can miss C++ when you in jython.
but i think i got it.
i have no idea how i did but i think i just did.
 
sbi
@wilhelmtell If you have such big a codebase, the foundations of which are a decade old, brought into live in a desperate act of late-night hacking, by programmers who long since fled the company, meant to be a proof of concept, but were kept and hacked at and built on for years and years, you'd be surprised about the amount of bodies to be found once someone goes digging around the basement...
 
7:23 PM
apparently if you clean up tomcat's cache 3 times, then make-clean-make 4 times, then deploy, undeploy and re-deploy again for the fucking 5th time, and finally restart tomcat twice, then it works.
but the numbers must be right.
 
sbi
@wilhelmtell You have my sympathy. And Understanding. Look here:
 
lol
 
sbi
See what I asked about and what I'm answering? Yeah. Damned to hack in C#. Me. Meh.
sbi, Berlin, Germany
39.3k 2 36 101
 
Ah. C#. heh. I did little of that. Surprising, considering how explosive the thing is among corporate steak-and-strippers decision makers.
I suppose chances are my next job will involve c#.
:)
 
sbi
Now how did this chat app manage to swap two messages?
 
7:27 PM
But on the bright side I suppose there are no porting issues there. :p
swap two messages?
 
sbi
@wilhelmtell Well, they keep coming out with new versions of that platform like there's no tomorrow...
@sbi after that "look here" came the link to my profile.
@sbi then this.
My browser now shows them the other way around.
Yours doesn't?
Hullo! Anyone out there?! @John, @Alf, @Jerry? Are you still working? Why? It's evening here!
 
your profile link shows after that message on my browser.
 
sbi
Meh. That beer's gone. (Bottles used to be bigger, when I was young, I tellya.) Have to go to the fridge...
 
sbi
7:49 PM
Someone must have linked to this old answer of mine:
31
A: What is the difference between a definition and a declaration?

sbiA declaration introduces an identifier and describes its type, be it a type, object, or function. A declaration is what the compiler needs to accept references to that identifier. These are declarations: extern int bar; extern int g(int, int); double f(int, double); // extern can be omitted for...

Got two up-votes for it today.
 
@sbi: just got back from lunch
 
One is from me. :)
 
sbi
@wilhelmtell Why thank you! :)
 
And the person linking is you. :p
 
sbi
@wilhelmtell ???
 
7:51 PM
I mean the profile link.
 
sbi
Oh!
But I already had an up-vote for it earlier today.
This one, too, BTW:
27
A: ( POD )freeing memory : is delete[] equal to delete ?

sbiWhether this leads to a memory leak, wipes your hard disk, gets you pregnant, makes nasty Nasal Demons chasing you around your apartment, or lets everything work fine with no apparent problems, is undefined. It might be this way with one compiler, and change with another, change with a new compil...

 
ah. i never fell prey to that one.
maybe because i read so many exlamation marks about delete[] and delete.
 
probably because we rarely use new[] as we use vector or string
 
sbi
Ah, you mean to mess up delete vs. delete[]? (Rather than my answer.)
 
truth. rarely use delete at all, as a matter of fact.
 
7:53 PM
well rarely use delete because of smart pointers
 
sbi
@CashCow Wow, another human? Welcome to the chat!
Be careful, though. I'm in a funny mood tonight.
 
yes. but with smart pointers you still need to know to be very careful to to allocate one object at a time. smart pointers can't help you with leaks resulting from violating that.
smart_pointer p(new zig(new foo(), new bar()));
 
you mean boost::shared_ptr ptr( new Foo[5] ) which won't call delete[]
 
sbi
Surprisingly, stepping, in socks, onto a 2x1 Lego, treacherously left on the way from the living room to the fridge, so that it felt like it cut right to the bone, didn't improve my mood at all.
 
that's something else.
 
7:56 PM
The constructor of zig is more problematic
if one of the calls to new fails
 
@sbi <3 children
 
the other one may never get cleaned up
and you can't guarantee which one will be called first
 
@CashCow yes
 
sbi
@wilhelmtell That's actually wrong. Its >3. <sigh> I know.
 
@CashCow but i think good smart pointers have their pointer-converting ctor explicit, so that helps avoiding the issue.
 
7:57 PM
better to do: auto_ptr<foo>( new foo ); auto_ptr<bar>( new bar );
 
@sbi funny, you said? :p
 
well give them names pfoo, pbar
 
sbi
@wilhelmtell Yeah, let's call that a foul mood, rather.
 
then new zig( pfoo.get(), pbar.get() ) and if that all works pfoo.release(). pbar.release()
 
@sbi no, let's call it incompatible moods. i'm at work, after a long day of dealing with cache issues, and you're at home, children at bed, and a bottle of beer in you hand.
:D
:p
 
7:59 PM
@wilhelmtell yes it will work if constructor of zig takes two smart pointers
 
cache invalidation is hard. let's go shopping.
@CashCow yes. and it should.
 
sbi
Nov 13 at 10:24, by sbi
That's typical. When I come here to play with you guys, you've all gone to bed already. :(
Interestingly, this got its first down-vote the other day:
43
Q: Setting up a FAQ for the C++ tag

sbiA while ago Neil Butterworth, one of the most highly reputed people in the C++ tag (he has given so many good answers, that in the two months since he left, his defunct account has amassed >2000 rep from old answers), left here, obviously in frustration about Stack Overflow. I have since heard a ...

 
@sbi: haters gonna hate
 
sbi
@John Ah, did I lure you into chat? :)
 
yeah
hello!
 
sbi
8:06 PM
I have to warn you, I'm in a, erm, incompatible mood tonight. :)
(And on top of that I'm deep into my second beer, too...)
But that was before even the first one was gone:
52 mins ago, by sbi
Hey! You! I say! <waves_frantically> It is the evening after day... I've worked hard, fed the kids and bullied them to bed, it's beer'o'clock, and I want to chat! So don't just lure out there! Talk to me What do you think you're here for?!
 
@sbi: ah, good. should be fun
what kind of beer?
 
sbi
@JohnDibling wernesgruener.de
 
page wont load for me. sad face
 
sbi
You at work? :)
 
yeah
still a few hours before beer:00
but tomorrow is thanksgiving here, so every hour is beer:00 tomorrow
 
8:11 PM
holy fuck that's "beer forbidden at work" brought to a whole new level.
 
sbi
@JohnDibling So they blocked German beer websites at your work???
 
i dont think the site is blocked. just halfway across the world
 
sbi
@JohnDibling Ah, turkey day!
 
ah. must be hamster issues then!
 
sbi
@JohnDibling It's pure flash. I had to enable scripting for the site.
(FF+NoScript Addin here.)
 
8:12 PM
yes, the hamsters are very lazy
 
sbi
@wilhelmtell Huh?
(I onyl hda tow beahs, rellie!)
 
lawl
 
sbi
So what is this mastering all about?
Hamster was a newgroup server, IIRC.
 
no it was a mail relay server for windows. and it has nothing to do with it. hamsters! they decongest the tubes!
they get the electrons going.
 
sbi
Oh! That's why it's called "you tube"!
 
8:15 PM
Only if they don't get stuck in one of the smaller tubes.
 
sbi
@James Ah, I pulled you into this mess, too!
 
@sbi this after two beers? wow. i thought germans were more capable than that. :p
 
sbi
:)
@wilhelmtell Well, I guess I'm not your run-off-the-mill German. :)
 
Ugh. I have GMail, Outlook Web Access, and SO Chat up now and I can't keep track of which ding goes with which window.
 
gmail doesn't ding. gotcha.
 
sbi
8:17 PM
Does SO chat make ding?
 
when you're named.
 
sbi
@sbi trying the "when mentioned" setting
Doesn't work here. :(
 
Google Talk in GMail dings though.
 
ah. truth.
 
sbi
@wilhelmtell There is that loudspeaker symbol at the top of the right-hand pane. When I click on it, I'm presented with three choices:
* none
* when mentioned
* visible room
* all my rooms
None of then seems to make this chat go ding, though.
Is that on my end?
 
8:20 PM
are your speakers on? :p
 
sbi
I can hear the Windows system sound when I'm changing the sound volume.
@sbi Another try.
 
mm. donno. i obviously have no clue if it works here 'cause i'm at work. but on my mac with chrome it works.
 
sbi
@sbi Yet another.
 
@sbi Three choices?
 
@sbi also, i'd expect this webapp to be smart enough to ignore you mentioning yourself.
 
sbi
8:22 PM
@JamesMcNellis Well, I've just finished the second beer. (I think.) so...
 
@JamesMcNellis lol yeah i was careful not to point him on that one :p
 
I'll just assume you were counting from zero like a good programmer.
 
sbi
@wilhelmtell Nice try, didn't work either, though.
Lemme try IE...
 
<silence /> try what?
 
sbi
Nice try mentioning me.
 
8:23 PM
@sbi k
 
@sbi Ding!
 
i miss the days of pressing ctrl-g in icq
not.
 
sbi
Ok, so this is from IE. (Actually, IETab in FF, but this should do.) Anyone out there still?
 
@sbi Ding!
 
sbi
Oops!
IE does it!
Wow.
@sbi trying self-mentioning...
@sbi and this?
 
8:29 PM
@JohnDibling: Where can I find this boost::scaled_ptr? Does it automatically convert between 32-bits and 64-bits for me?
 
@sbi you foxes have a bad, bad extension.
try safe-mode.
ok i'm not a sysadmin i donno computers i'm a programmer leave me alone! </emo>
 
sbi
@sbi (BTW; do you see which message this one links to?)
 
k off i go :D
ciao see y'all soon
 
sbi
See you. And make sure you hit that Mac^WApple!
 
@James: you can find it under my desk, which is where I'm napping after having a cheeseburger for lunch
:)
 
8:37 PM
Heh. That's okay. I'm not really interested in chilling out with you under your desk.
No offense, of course.
 
lolo i dont blame you. my feet are smelly :)
 
Now, if you had scotch down there...
 
sbi
...that would disinfect the feet, right?
 
and the inhabitants
not my feet's inhabitants...
 
LOL
Nothing could disinfect them.
 
sbi
8:44 PM
@JamesMcNellis Oops! How do you know John's feet so well?
 
I decline to answer the question on the grounds that it might incriminate me.
 
sbi
LOL!
That talk about alcohol made me thirsty. Unfortunately, beer #3 isn't cold enough yet. :( But I found a bottle of white wine in the fridge. :)
 
that page finally came up, @sbi
but its in German!
 
sbi
@John Huh?
Ah, Wernesgrüner!
 
the beer page you linked me to
 
sbi
8:50 PM
Yeah, beer is German. What did you think? :)
Ugh!
Gosh, that wine is pretty decent! It's a White Burgundy. And I have no idea how that bottle got into my apartment.
@JohnDibling I'm still wondering about this. I mean, from here I'm accessing web pages on your side of the globe all the time. Why would it take you so long to access one on my side?
 
A hamster got stuck in the tubes he is trying to use.
 
sbi
Those hamsters certainly multiply too easily!
 
@sbi: i think it actually has more to do with our crappy network here at work than anything else. eg, the hamsters
@sbi: beer isn't german, technically. its neotlithic
egyptian, really
 
sbi
@JohnDibling Oh c'mon! And Halloween is Gaelic! So? The Halloween people around the world know still is the American one. See.
 
How many good Egyptian beers have you had recently?
 
00:00 - 21:0021:00 - 00:00

« first day (39 days earlier)      last day (4901 days later) »