« first day (691 days earlier)      last day (4250 days later) » 

12:03 AM
@MooingDuck It's pretty close, but I forget if the slots will clock down for slower ram
I know the RAM is fine being clocked slower
 
@Collin no idea
apparently I added a union to a struct today and initialized all of the members to zero >.<
 
12:19 AM
hey guys, what do you think about the explicit "var != 0" (or null) expression instead of just "var", within if, for, while conditions...
 
@nEAnnam I've done both over time. Currently I like to use the more explicit version.
 
@nEAnnam I got in trouble recently for messing up the explicit, so I use the (var) or (!var) currently :(
 
@MooingDuck avoid messing up the explicit you can do ( NULL == var )
 
@Chimera that's related to = vs ==, not messing up the explicit.
 
@MooingDuck I assumed you might of used = vs == :-(
 
12:22 AM
I had (value != true), when what I really wanted was (value)
 
Uggh. Hate when that happens
And when my good answers don't get upvotes. :-)
 
Xeo
I use the implicit check for pointers and bools, explicit for everything else
Well, and things that behave like bools or pointers, say optional and smart pointers
 
I use implicit wherever I can, and I've found I make far fewer mistakes.
 
Xeo
I find it silly to implicitly check if an integer is not 0, it just doesn't feel right
 
I roll dice to determine whether to use implicit or not.
 
Xeo
12:28 AM
Anyways, the clock says I should shut my eyes and just sleep
@Chimera I kinda do that for class vs struct :s
 
@Xeo :-)
 
@Chimera why? ^^
 
Xeo
And whether or not I put the opening brace on a seperate line. Most of the time, I do not, but sometimes it just feels better with a bit of space and I can put a comment there that lines up nicely with the next line of code :)
 
@Xeo To me, struct means POD.
 
@nEAnnam I don't, it was a joke. I use the explicit version.
 
Xeo
12:31 AM
That's as silly as "class means a class type in templates", IMO
 
@Xeo I always use class in templates
 
Xeo
same
because it's just shorter :)
for struct vs class, it largely depends on whether the first member will be public or private. (the inheritance I mark explicitly everytime)
 
dam i need to read clean code, or something else... im feeling bad
 
@nEAnnam which ever way you choose, the important thing is to be consistent.
 
Xeo
Anyways, sleepy time for me. G'night
 
12:38 AM
@Xeo night
 
cya
 
is there an other language besides java that use the explicit way
 
@nEAnnam C# probably does
 
1:20 AM
posted on September 06, 2012 by vcblog

See C++/CX Part 0 of [N]: An Introduction for an introduction to this series. In this article we'll consider the basics of C++/CX by looking at a simple Windows Runtime class; we'll skim over some of the details, but don't worry: we'll come back and cover them in future posts. The code in this post is complete, though some namespace qualification is omitted for brevity; attached to this articl

 
2:11 AM
@Feeds Wherein we see in the first code sample that ref is attached to the type, not how that type is addressed, immediately telling us that "C++/CX" is yet another bungled attempt at disguising C# as C++, no better (nor noticeably different) than C++/CLI or "Managed Extensions for C++". Despite superficial similarities in syntax, it's still a completely different type of language.
 
?
Does feeds even care when you ping it?
 
Robots have no feelings.
 
@Mysticial I can't imagine that it would -- I only posted it as a reply so real people reading it here would realize what I was going on about.
@Rapptz Shhhh...don't let R. Martinho Fernandez hear you say that. You might hurt its feelings.
 
It'd be hilarious if a drive-by-linker pinged feeds for help.
 
@Mysticial Hmm...that does sound like fun. Question is, how can we persuade them that it'd be a good idea? Unfortunately, given that they ignore all advice, it's probably hard to do that.
 
2:19 AM
I forgot to "leave" the C# and Javascript room for a few days when I went in there to question their flags. And sure enough... I got pinged by a drive-by-linker.
Who literally when down the list and pinged every single person who has posted in the last few hours and who was on the list.
 
@Mysticial Hmm...Perhaps a reply with some mangled combination of C#, Javascript, C++ and a line or two of Fortran thrown in for good measure would be an appropriate response (with some obscure hint about executing it all as Common Lisp with the right set of macros...)
 
that's one way to troll him... :)
ugh... I hope the OP of that matrix question isn't a one-time ask-and-forget user...
I've never wanted an accept so badly before... ever...
 
@Mysticial You'd think 240 up-votes on his first question would be about as positive as first experience as he could hope for. OTOH, it is a first question; chances of his simply disappearing are pretty high...
 
It's like, I don't give a shit about the +15 or even the two badges that I'd get. I just want that green icon on my profile.
The user's been on SO for 17 days. So it doesn't look (s)he created an account just to drop that question. That's a good sign.
 
2:34 AM
is it the question that got linked to reddit again
 
@Mysticial Lulz. I know how that feels. One of my happier days recently (SO-wise, anyway) was when an accepted answer got voted high enough that my top five are now all green.
@Rapptz Yes.
@Mysticial There is that -- definitely at least room for some hope.
 
@Rapptz It was actually me who linked it on reddit. I had a very good feeling after I answered it. So I thought, "hey, let's see what happens".
 
@Mysticial they were calling out the account calling it a spam account trying to gain link karma to sell for advertisers
 
@Rapptz Yeah, I saw that. Some of people considered it spam. On guy was like "who cares?" it's a good discussion.
I wouldn't consider that spamming at all.
There's a bunch of users on SO that put a LOT of links on reddit to farm Publicist badges.
 
I'd upvote but you're at the rep cap
Oh not today.
 
2:38 AM
I'll probably cap anyways.
ah thx
 
Mhm.
 
2:58 AM
@JerryCoffin I'm actually more happy that I finally managed to bump that silly x = x++ off that list - after 10 months...
 
my highest upvoted answer has 7 upvotes
 
liar :)
 
Yeah I don't ask questions.
lol
It isn't even a good answer
8
A: why is string not declared in scope

RapptzYou have to use std::string since it's in the std namespace.

 
@Rapptz You have no right to feel guilty about having too many upvotes. I have an answer that's an even bigger offender.
If you post enough answers, then by chance some of them will get massive upvoted.
 
Is it that x = x++ answer
 
3:03 AM
@Rapptz That's not the worst.
 
When I try to compile x = x++ I get undefined behaviour warning
 
In Java it's fine.
 
JAAAVAAA
Had to say it.
 
All my friends code in Java except me
One codes in C#
 
I might be doing Java for my distributed computing class. We get to choose between C, C++, and Java. But the prof is only teaching all the examples in Java.
So I'm probably just gonna go with Java.
 
3:13 AM
I just started playing around in c# and im liking it so far :P
 
4:06 AM
@ITNinja Yeah, that's generally what happens.
 
@EtiennedeMartel yeah, its my first experience with the .net framework, and its not that bad :p
 
@Mysticial Choose what you're most comfortable with.
It would suck having to do that in C though.
 
There's no way I'm doing that shit in C...
Most of the MapReduce and Hadoop stuff that we'll be doing is Java. So that's probably what I'm going to go with.
It'll be a good chance for me to refresh my Java skills.
As much as I hate Java. It still has it's uses outside of HPC.
 
@Mysticial Well, Java sucks as a language but rocks as a platform.
 
4:21 AM
Woah, what? You can put private on a constant?
0
Q: What is this c code doing with the operation on unsigned char?

lamwaiman1988I am maintaining a legacy c code which contain unknown logic to me. Obviously it has something to do with the bitwise operation of unsigned char. However I am not familar with the bitwise operation, could anyone be kind and explain the mechanism behind this? I included some key statements. p...

wait, it's C... that doesn't make sense...
 
there isn't a private keyword in C
 
yeah... exactly...
 
that's pretty weird lol
maybe he meant C++? Even then the usage doesn't make sense
oh a macro definition makes sense
 
@Mysticial Probably a #define private somewhere.
 
> My bet a macro that is defined as static from my legacy maintenance experience ;-)
 
4:26 AM
what is a vtable?
 
Called it.
 
#define private static
??
 
@EtiennedeMartel Yeah, I saw that comment. That's horrible...
 
@WeaklyTyped A mean to implement polymorphism.
 
@WeaklyTyped V-shaped table.
Google image search provides some examples. Example of a V-table.
 
4:28 AM
lol
-1
Q: Which one of the following is NOT a pitfall of inheritance?

Difficult PEOPLEWhich one of the following is NOT a pitfall of inheritance? Base-derive classes should be totally separate and do not have an is-a relationship. Base-derive classes should have been aggregate classes instead. Inheritance may be inverted, example: Truck<-Vehicle should be Vehicle<-Truck....

 
@WeaklyTyped Google for "Virtual Method Table".
 
@Rapptz By user "Difficult PEOPLE" :D
 
How do for range loops work with maps?
Might be a stupid question
I found an SO question related to it.
 
See value_type for map.
It's std::pair<const Key, T>
cppreference is really awesome. Search keyword set for it in Google Chrome. If my search terms begin with "cpp" then it only returns results from cppreference. Very useful for quick referencing.
> So many FP Evangelicals seem to think I sit around all day optimizing my Fibonacci number generating program.
Lol.
 
4:57 AM
I type "en.cpp" then tab and then my search terms
 
Using the internal search engine?
 
Yeah
 
5:21 AM
What is tick count? Does it represent the number of CPU cycles?
 
-5
Q: Why is there no "idiot" bage?

user196251Stack Overflow has all sorts of user badges awarded automatically to users. Why is there no "idiot" or "moron" badge for users who notoriously post bad questions have their questions continuously downvoted have their questions continuously closed avoid providing additional information as requ...

 
lmao
I can't believe that's real
 
dammit... deleted already
I forgot to take a screenie
Maybe I should start repwhoring on meta...
 
downvotes on meta are for disagreement
Sounds risky
 
It's not that hard actually. You just answer all the support questions.
I couldn't care less... But 10k on meta would be nice to see all the silly deleted stuff.
 
5:28 AM
While looking at the badge tag I found this
-24
A: Break statements In the real world

S.LottIn the real-world, I look at every break statement critically as a potential bug. Not an actual bug, but a potential bug. I challenge the programmers I work with on every break statement to justify its use. Is it more clear? Does it have the expected results? Every statement (especially ever...

 
oh yeah... I've seen that... hiliarious...
aww.... the 100,000 emails question got deleted?
 
The question about the school project for basically a DDOS got deleted
 
@Rapptz "deleted by NikiC, bmargulies, marc_s 2 days ago"
 
lol :(
 
@Rapptz Damn I didn't get to see it?
 
5:33 AM
Now I want 10k rep to see all the fun deleted questions here.
 
@Mysticial: Oh, it's a C# question. No wonder why I didn't see it.
 
Question: -139
Answer: +683
 
Why was that deleted?
It had at least useful info about how to legitimately send a ton of email
 
@Insilico I dunno... The answer is actually pretty good. But I guess people didn't like the idea that it could be used to spam.
 
5:34 AM
(if one actually needs to do that)
 
I wanna see the question
 
@Rapptz gimme a sec
 
@Rapptz Go get at least 10K rep first. :-)
 
It's hard to find questions worth answering in the [c++] tag
 
@Rapptz When C++11 support becomes widespread, I'm sure we'll see some more interesting questions.
 
5:36 AM
 
Although you'll always get the "Why is i++ + ++i..." questions
 
I had a question about C++11 and it had already been asked on SO.
@Mysticial wait, why was that downvoted?
 
@Rapptz Thus demonstrating the usefulness of Stack Overflow? :-P
 
user1182183
@Insilico we all know why ++i is faster...
 
@Insilico Yeah. Double edged sword really. As time goes by the questions you can ask diminishes.
 
5:37 AM
Does the answerer lose rep of deleted question?
 
@StackedCrooked Yeah
 
@Rapptz If you look at the first revision of the question, it looks like this: ""On my blog, I have 100.000 subscribers and I want to send them an update email weekly. How can I do that with PHP ?"
 
C++ is a hard tag to play right not. Luchian snags everything.
@StackedCrooked It's more than 60 days old. So no.
 
@Rapptz Every answer leads to more questions! I'm so philosophical lol.
 
user1182183
:5242885 LOL.
 
5:39 AM
@Mysticial Oh really? That's neat. TIL.
 
user1182183
if I had 100k subscripbers I would let them take surveys so I would get $
 
user1182183
;D
 
@Rapptz 60 days old and post at +3 or more. Then you keep the rep if it gets deleted.
It was specifically done to target these cases where a great question gets deleted.
 
@GamErix I wish I had 100K subscribers that donated $1 each month :)
 
Well it does sound fishy really. Especially since WordPress has like an automatic mailer thing for subscribers.
 
5:41 AM
I would use a for loop.
 
Email Subscription
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 522 other followers
Not really the same but it's similar
 
Okay, what the hell is an "App-enabled router"?
 
It seems unusually difficult to get just the router bit of the device in brick-and-mortar stores nowadays
@Rapptz I think after this incident: arstechnica.com/gadgets/2012/07/… I'd rather not have that feature.
 
I don't really like Cisco routers anyway
 
5:46 AM
I might just get my networking equipment online
How do programs that open COM ports deal with COM ports that take a long time to open?
Apparently the Bluetooth virtual COM ports sometimes take a really long time to open via CreateFile() because it tries to find a device to connect to or something
 
sbi
@Neil Given the state of the advertising industry, I am not surprised about a pic of a couple being sold to several clients. What surprises me, however, is that someone would find out that MeetMormonSingles.com and some "sexual enhancement" product line use the same image. Do those have an intersection in their customer sets? And what is that intersection? Old Mormons clinging to the old ways and having several wives? Absolutely puzzling.
 
@sbi It could be just people visiting the site for shits and giggles.
 
sbi
@Insilico I find my theory much more... erm... interesting.
Also, the idea of someone visiting those sites for shits I find deeply disturbing.
 
Occam's razor.
 
@sbi Honestly, I can see a non-empty intersection of the two sets.
 
6:01 AM
Take a look at the questions this guy's been asking
 
@Prætorian Nothing like not even trying to hide the fact that you're copying-and-pasting homework/quiz questions
 
sbi
@Insilico I take it you were born in Utah?
 
@sbi Nope. :-)
 
@Insilico He claims it's for some exam, one that he paid to take, no less.
 
@Prætorian So the OP is asking SO questions while taking an exam? O_O
 
sbi
6:06 AM
@Prætorian Close-voted on all, and flagged for moderator's attention. I suppose he'll be prevented form asking further questions.
Good find, BTW.
 
yes, It's a real exam question. and it's very importent to me. very difficult,because the question makes you headache. you never know what' the answer,and have to make an answer. you can't leave your Email,I send it to you. — Difficult PEOPLE 10 mins ago
It would seem so
 
@Prætorian A take-home exam, I presume?
I would like to think there's some proctoring going on if it's a classroom exam.
 
Probably
 
I feel bad for the people who can't speak English very well in SO.
I feel as if that communication barrier tends to cause a lot of misunderstandings.
 
IMO people on SO are receptive if your question seems legitimate, even if your grammar sucks
 
sbi
6:18 AM
> Some Twitter accounts are just... disturbing. twitter.com/common_squirrel — sbi
 
6:50 AM
mawning
 
this would have been annoying without initializer lists
 
lol
 
@TonyTheLion I remember that. Saw it a couple months ago.
 
clearly someone was pretty bored...
 
7:11 AM
Morning gents
 
evening
 
7:28 AM
hi guys
 
sbi
lo girls
 
immamazed, 14 upvotes on my question yet. I really didn't expect that much attention on such a basic thingy
 
@BartekBanachewicz +1'ed, it's a good question
 
Xeo
@BartekBanachewicz Sadly, it didn't make it into the hot questions list :/
 
7:33 AM
thanks ;)
@Xeo hm, I presume it has an exponential growth if it gets hot
 
@Xeo It would've been hard because that matrix question was still near the top.
 
more people see a question -> more people see a question
 
Xeo
Nah, it's not as if it landed on reddit or something
 
They try to limit the # of questions from the same site.
 
Xeo
@Mysticial yeah
 
7:34 AM
So anything that isn't the hottest of a site gets a penalty.
 
I like the lambda solution.
 
Xeo
but the move ctor one was on the list for a bit some hours ago
@Rapptz Meh, totally unsafe :/
You can make the lambda version a lot like my answer, though
auto const v = [&]() -> boost::optional<T> {
                        T x;
                        if(stream >> x)
                          return std::move(x);
                        return boost::none;
                      }().get_value_or(default);
 
I don't like that one.
 
the point with the lambda is you have to repeat it every time
so for 3 integers, you have to type a lot
 
Xeo
@BartekBanachewicz Well, for a one-time thing, it's OK
erm, auto const stream_init = [] ....; :)
@Rapptz Why? 1 more line but now it's safe
 
7:43 AM
I preferred that one better as a function.
The lambda one was nice to me because it was really short and simplistic, despite not being really safe.
 
@Rapptz well, you can put xeo's function in a header. Then it's clearly the cleanest and giving predictable results
I also thought about a wrapper with mutable "is_initialized" or something, to be used for >> operator
but it isn't 100% good code
 
I'm confused
 
@TonyTheLion about...?
 
what I'm trying to do
 
@TonyTheLion which is...?
 
7:51 AM
work stuff
 
@TonyTheLion which is...?
 
stuff
whatever
I'm in a bad mood, I have a cold
 
you?
you in a bad mood?
 
Me? In a bad mood? Not yet, only been in work half an hour
getting there though
 
8:01 AM
hahah
 
Xeo
lol
 
Goodnight. It's 4 AM here and I have work in the morning.
Feel better @TonyTheLion
 
thanks
 
@sbi The disturbing part would be the 80,787 followers
 
sbi
@sehe Ouch. I hadn't even looked that close. I just saw the most recent twenty tweets at a glance, and closed the tab as fast as possible.
 
8:14 AM
Whoa. 60dB plink here!
 
@sehe oh god! that is disturbing, I didn't notice it at first. I guess a lot of people just subscribe for the lols
 
@sbi You... afraid of that?
 
sbi
@sehe No, "just" very disturbed.
 
@sbi what's with the quote marks?
 
... pirate; get a life
 
8:17 AM
it seems to imply their is more to it
 
... figure it out
 
sbi
@thecoshman Because there's no "just" to disturbing a 350 pound gorilla. It's a very grave matter.
 
@sbi oh man, you didn't go trash your place again did you? You gorillas and your tempers
 
sbi
@thecoshman Erm. Look around you. You are the one who regularly throws tables around.
All I throw around is insults. Yes, they might hurt you more, but they're much easier to mop up after than thrown furniture.
 
Zomg... "Clemastine (...) exhibits fewer other side effects than most of the widely used antihistamines." What a freaking bullshit. I am going to pass out here if I won't drink 10 cups of cofee today.
Don't trust wikipedia when it comes to drugs.
 
8:21 AM
so yeah, starting to really doubt the competence of the guy I work with... if(object != null) { Tracer.warn("Object was null"); } (paraphrased of course)
 
dafuq?
 
@thecoshman Wow
Didn't know it was possible to be that bad
 
yea
look at PHP programmers
 
@TonyTheLion Well, that's a given
 
8:32 AM
Sadly, that sort of quality is not an isolated incident
 
come on bud, talk it through, it canny be that bad
 
user1182183
so what ya all up to now?
 
it's bad
been a little much lately
 
Damn, summer vacations ending the day after tomorrow. I'm depressed.
 
8:36 AM
"Always look on the bright side of life..."
 
My latest big practice: Noticing when I define a day or situation as "bad," and then choosing words/perspectives that are more accurate.
 
@kbok shitty
 
@TonyTheLion work wise or at home? or is it the mixture?
 
it's a mix
 
user1182183
@ApprenticeHacker my 4th week at school
 
8:37 AM
@GamErix you only get 1 month of summer vacations? :P
 
@TonyTheLion if you ever want to vent, you know we are here to mock
 
@ApprenticeHacker perspective man, get some
 
can I buy some perspective?
 
Also, hi
 
8:39 AM
hi
 
@TonyTheLion '_' yes...
 
only 10K bit coins and you get some of the finest freshest perspective known to man
(I have no idea how much that is)
 
user1182183
@ApprenticeHacker well, just 5-6 weeks
 
sbi
@TonyTheLion Yeah. And, BTW, I also have this bridge here, in case you're interested...
 
8:40 AM
@GamErix where do you live anyway?
 
mornin'
 
user1182183
@ApprenticeHacker I think the same place as you, Netherlands?
 
@GamErix nah, I live in Oman.
 
user1182183
ah ok :P
 
8:44 AM
wow... I am going to fix this problem by changing THREE bits!
 
user1182183
but i g2g, school bell is ringing .. xD
 
have fun @Gam!
 
bye then.
Also, this year I changed my optional ninth subject from IT to sports.
 
@ApprenticeHacker I don't understand?
 
8:47 AM
I am already way ahead at IT than the rest of the class so I can safely skip a year, then I can retake it in grade 12. And anyway I need some exercise.
 
Anyone familiar with OpenGL here?
 
@Shiki Familiar yes, in the loosest sense of the word
 
I'm trying to set up a dev environment on Windows (as it worked on Linux), but I can't figure out the problem. If everything fails, I'll just install the whole openGL stack to my Cygwin and see if that works!
 
@Neil lol
*C:\>If you're happy and you know it, syntax error!
Syntax error!*
lol
 
@Shiki to a point
 
8:51 AM
Is this a right place to ask my graph question?
 
Actually msdos doesn't output that anymore
 
1
Q: Coming from Java, learning C++ - understanding pointers at functions

Felix CullenI've read a quick tutorial aimed for Java developers who want to learn C++. It only explained the basic principles (and syntax) of C++ (I guess). At first I thought, that I had understand everything completely, but while programming C++ something came up that's not really clear to me. Whats diff...

> I've read a quick tutorial aimed for Java developers who want to learn C++.
 
@Shiki What's wrong ? What is your toolset btw ?
 
@Shiki well, if you can't figure out your problem, we can't help you solve it
 
I want to see this "quick tutorial aimed for Java developers who want to learn C++."
 
8:53 AM
@thecoshman - Well, let's hope someone met with this one...
@kbok - It's cygwin. With Glew, GLM and NVidia's CG toolkit.
 
@Insilico You can't really learn C++ quickly, especially if you come from Java
 
@Insilico I agree with your comment from personal experience. I actually learned C# before C++, and tried to get one of those "quick tutorials" and failed miserably. The only way to learn C++ is to start from the basics. This is true, even for C developers.
 
sbi
@Insilico I have taught C++ to students with previous exposure to Java. Believe me, no quick tutorial can repair the damage. It's a long struggle upwards along windy road taking hard labor to do that.
 
@Shiki I may be mistaken, but I believe the includes for openGL on windows differ from those on linux, those appear to be the linux includes
 
The one thing that bothered me most was the semicolon ";" at the end of each class. I always forgot to put that.
 
8:56 AM
The tutorial I've been using is made for Visual Studio 2010 so it should work. :/
 
Anyone tried the Pythy library yet? Have polymorphic (uncapturing) lambdas today
http://pfultz2.github.com/Pythy/
 
@Shiki for OpenGL?
 
@Insilico, Java and C++ are very similar. On a large scale they're almost the same, so it makes sense to use the Java experience while learning C++. Of course there are subtle differences - especially, a Turing-complete metaprogramming system in C++, but the core semantics of the both languages are very similar - they're both imperative with static typing. At this scale, all that pointers, references, array decay and the horrible implicit casts are nothing worth mentioning. — SK-logic 24 mins ago
 
@sehe A glib for C++?
 
Oh dear. Now I have to explain why Java is not even close to being similar to C++.
 
8:58 AM
@ApprenticeHacker ?! what on earth makes you say that
 
OpenGL with Visual Studio? Ha! HAHAHA!!! HAHAHAHAHAHA!!!
Wait, sorry.. you were saying? I had a moment of sporadic mad scientist there.
 
@ApprenticeHacker - Yeah. OpenGL with VS2010
 
@sehe Pythy Having it all now: Pythy syntax for C++11. Glib Having it all now: OOP for C
 
well, blame the teacher bro.. :/
 
@Shiki You just said your toolset was cygwin ?
 
8:59 AM
Yes
 
@ApprenticeHacker Wow. That's a strechted, tenuous link. I guess you know the answer, and it probably means you didn't try it?
 

« first day (691 days earlier)      last day (4250 days later) »