« first day (387 days earlier)      last day (4562 days later) » 

12:13 AM
it's "food"
 
Ahhh
Well I'm gonna sleep now
Nightnight :)
 
bb
 
> warning: suggest parentheses around '&&' within '||' [-Wparentheses]
WTF is this warning for?
 
12:31 AM
maybe it thinks you got the precedence wrong?
 
Why? Stupid compiler, I would never get that wrong.
 
@RMartinhoFernandes Or it thinks CNF form should be explicit, as in verbose
Or does it actually suggest the disjunctive one? What is it warning about?
 
a || b && c
 
And it wants a || (b && c) I suppose?
 
12:35 AM
Isn't that the way it gets evaluated anyway? Or is that up to the compiler?
As in right order
Ts, silly compiler, thinking that @RMartinhoFernandes can produce erronous code
 
Yes, it's the right order.
 
:)
 
Which is why I didn't bother adding the parens.
 
Hehe, when starting at the university I started programming in LiSP, as you all know consists of paranthesis. When I took a course in Ada later that year my professor gave us negative points for writing paranthesis when they weren't needed.
Or rather we failed our assignments and had to correct them..
 
That's silly.
Failing a student because of a minor style issue is not fair.
 
12:43 AM
imo, the idea of negative points is silly and unfair
but hey, it's university
 
had to shake you loose of the parens addiction
lol
 
12:54 AM
@RMartinhoFernandes They do it in the first classes of math as well. The point is to get it right the first time
 
1:05 AM
anyone know how to download a video from vimeo?
 
@JohnMerlino: Haven't tried vimeo, but perhaps ant.com/video-downloader
 
they force you tor egistrer for an account and then allow you tod ownload
im sure there are ways around it like on youtube, but the registration was only 2 seconds, so i went through with it
 
@JohnMerlino What? It's a plugin for firefox, you don't have to register?
 
once you register to vimeo, then there is a download link, i mean
 
Ah, ok
 
1:17 AM
yep, I am learning objective-c, the world's worst programming language but what the iphone requires
and of course there is only one video on storyboarding for the iphone and it happens to be on vimeo
 
Why was this mod-deleted?
Looks like a gross abuse of power to me. Is Jonathan drunk tonight?
Please join me in flagging it.
 
who's Jonathan?
 
The moderator who deleted the question for reasons unknown.
 
by the way, I have a ruby on rails question I asked 3 days ago that was never answered, if anyone cares to look at it
 
Put a bounty on it if you like
 
1:22 AM
what is a bounty?
 
Or edit it to be more attractive
Read the FAQ
 
I never had question deleted, but I have had questions that were closed.
 
I had only one question deleted, and I asked for it to be.
 
@TomalakGeretkal Flagged it.
 
1:40 AM
hi is anyone here familiar with autotools?
i need help with linking a library manually
i have a .a file and a c program. I dont have root access and I need to link this library(.a file) to the c program. Does anyone know how to do this?
 
@RMartinhoFernandes Ta
 
I dont think I have flag privilege
 
Everyone can flag. But not everyone can see deleted questions, which is the issue here.
 
how much points you need for that?
I have around 500
 
Ten thousand.
 
1:45 AM
10k
 
I am not even close to that
 
you said you had 500
 
yes
but not 10k
in fact I still get ads on the right hand side when I see questions
 
@JohnMerlino Everyone gets those.
 
every time i can answer a question the time I click submit, 5 other people already answered
 
1:50 AM
Make yours better!
 
I wouldn't fret about rep
it's really quite worthless
unless you have a truly desperate need to see deleted questions
 
Most are crap (and that explains the deletion).
 
indeed
only on Meta are things worth seeing deleted
/obligatory Jeff snipe
 
2:07 AM
> This question has no reason to be deleted. – 32 mins ago declined - This was deleted by request of the OP.
@TomalakGeretkal have you seen this?
Stupid OP. I'm blacklisting him. No answers from me.
 
link?
 
50 mins ago, by Tomalak Geret'kal
http://stackoverflow.com/questions/8031646/how-do-i-test-whether-a-reference-is-null
 
those comments must have been removed, I don't see anything about why it was deleted
 
The explanation is on my flagging summary.
 
oh ok
in that case, I've got to agree
there's no reason to delete the question
 
2:11 AM
Exactly.
 
it's got to have 1billion dupes, but that's another story
 
It's got a bunch of answers.
The OP even accepted one.
 
bad form to delete it
 
 
1 hour later…
3:18 AM
Hmm, you can't use ADL if you pass a function some template arguments?
 
3:32 AM
in what sense?
I wasn't aware of any ADL limitations
 
Dunno. f_from_ns<ns::foo>(blah_from_ns); doesn't work, but f_from_ns(blah_from_ns); (different overload) works.
 
I think that ADL has some quite complex rules
 
3:48 AM
Damn, ideone is slow as hell today. Here's an example: ideone.com/sovIj
Hmm, seems like ADL only applies if the name of the function is immediately followed by a list of function arguments in parentheses.
 
 
1 hour later…
5:23 AM
is there any way to install openmp on dev c++
 
have you googled?
 
yes i did..i dint get..thats y asking here
 
Why are you using dev-c++?
 
I am comfortable with that IDE. Its light weight too unlike visual studio
 
It's also outdated as hell.
 
5:46 AM
if openmp works with the compiler you're using in dev-c++, then no problem
the ide is (unfortunately) not much involved in using libraries
you just have to set up correct directories info
 
The six year old Dev-C++ ships with GCC 3.4.
The first version of GCC that supports OpenMP is GCC 4.2.
 
@RMartinhoFernandes well he can install 4.6 or something
code::blocks ships with g++ 4.4.1
still old but should support openmp
 
6:14 AM
so which ide u suggest i should use
 
user457812
6:26 AM
What're you looking for in an IDE?
 
easy debugging.. and easy to install libraries :P
 
user457812
So, probably Visual Studio?
 
its too heavy..
i want light weight
 
user457812
Why is it heavy?
 
6:41 AM
@nil probably old pc. visual studio is a slow beast even on fast pc. on old pc it may be unusable.
 
user457812
Maybe. Mine's about 3 years old and does fine, but I don't know what he/she's working with.
 
user457812
I'd go with your suggestion of code::blocks if VS is slow, though
 
user457812
Not sure what debugging in it is like, but it was small back when I first tried it.
 
talking about IDEs, which one do you recommend coming from windows to linux
I thought a about eclipse
 
user457812
I'd have no idea since I went from Windows to Mac OS. That said, I hate Eclipse, though I have no idea why.
 
6:49 AM
what are you using then?
 
user457812
Xcode for non-code things and MacVim.
 
Xcode for non-code things?
 
user457812
Project stuff. Building, debugging, that sort of thing. That is, anything that isn't actually writing code.
 
I see.
You know what would be shocking? Lada Gaga showing up at an event with normal clothes.
 
7:04 AM
nobody would recognize her
 
^ Lady Gaga before she was Lady Gada
 
Wow, I can actually enjoy that song.
 
The jury compared her to Norah Jones. Little did they know.
 
guys is it right that +operator always needs some temporary space?
 
Can you elaborate on that?
 
7:12 AM
You mean post-fix ++ operator?
 
hmm no I mean operator+
 
What's temporary space? Usually you return-by-value. Is that what you were referring to?
 
well basically is there a way to implement the + operator "in place", or is it always creating a temp object, which holds lhs + rhs
yeah basically
 
No, don't go that way. That way lies UB.
operator+ in-place is called operator+=.
 
yeah thought so, but that only works if you add something to the same object
 
7:15 AM
Integer Integer::operator+(const Integer & rhs) const
{
    return Integer(value + rhs.value);
}
 
@bamboon Isn't that the definition of in-place?
 
There is not temp copy here. The Integer object is not copied thanks to RVO.
Or should I return a reference? In order to allow a + b + c?
 
Oh no.
Right.
 
You can't return a reference from operator+.
 
7:17 AM
a + b does't mutate.
 
@RMartinhoFernandes yeah you are right there, I do always think about "in place" as "needing no extra or only a little more memory"
 
Did you ever implement unary plus or unary minus?
As in "+a;" or "-a;".
 
nope
why?
 
sbi
@StackedCrooked Overloading unary +/- would be almost as evil as unary &.
 
how do i setup open cl with visual studio 2010
 
7:24 AM
@sbi Why is it evil? (Assuming you keep semantics?)
 
Integer a = 4; Integer minus_a = -a; doesn't seem evil to me.
 
Overloading unary + or - for say, a quaternion class, sounds fine.
 
sbi
@RMartinhoFernandes I know it makes a very good textbook example, but how many convincing real-world applications of user-defined number types have you seen in the last two decades? And besides those, what use would there be for overloading the unary signedness (if that's a word) operators?
And as for unary &, ISTR Pete Becker once saying that, whoever overloads unary & and expects their types to work with the STL containers should be punished by having to write a std lib that allows that.
 
Unary & is evil because it already has a meaning for every type.
 
sbi
@RMartinhoFernandes Makes one.
 
7:29 AM
Unary - doesn't.
@sbi Not having many uses doesn't make it evil, does it?
When was the last time you overloaded binary &?
 
sbi
@RMartinhoFernandes Ok, you got a point there. Let me rephrase: It is almost as useless as the ability to overload unary &.
Acceptable?
 
sbi
@RMartinhoFernandes They fall under the same category as unary +/-: They are not even mentioned in stackoverflow.com/questions/4421706/operator-overloading-in-c/….
 
Right, because they're very uncommon.
 
sbi
@RMartinhoFernandes And if they are rarely ever used, they are almost useless.
BTW, is it just me that the chat is acting up for, or do guys you see funny behavior, too?
 
7:36 AM
Sure, I agree with that. I only disagreed with the evilness bit.
@sbi What kind of funny behaviour?
I don't notice anything, other than my connection's natural flakiness.
 
sbi
@RMartinhoFernandes Things like messages (mine and yours) taking forever to turn from green to black, the browser helpfully inserting a CR before I have a chance to type my message, the #1 indicating I have a reply appearing when I post something and not disappearing when I click on it...and the like. Pretty petty annoying.
Maybe I should restart FF. But it's only been running for a few days now, and it's not even consuming 2GB.
 
I think that other than the green to black thing (I sometimes get that when the connection gets slowish), it's just you.
Are you sure there's nothing NoScripted that shouldn't?
 
sbi
Oh well. Maybe I should take this as a hint and get doing something useful instead of chatting...
 
how to setup open cl with visual studio 2010 for amd
 
sbi
7:43 AM
Hey, interesting piece of writing (in English) on the German government's trojan (and more, actually): edge.org/conversation/code-is-law
 
Wait, the German government created malware?
So this weight on my back was a rock all along.
 
how to setup open cl with visual studio 2010 for amd...can some one help me with this
 
Sorry, never used OpenCL.
3
Q: The right way to setup VisualStudio 2010 for OpenCL

LonliLokliwhat is the right way to setup VisualStuio 2010 for working with *.cl files? I have added *.cl under Tool/Text editor/File extensions and copied usertype.dat into the common7/ide folder, but VS underlines keywords like float4 or cross. Is it necessary to add some key in registry or can somebody ...

 
that one shows for nvidia
i want for ati..
 
> This works for AMD APP too. Just replace C:\CUDA\include with C:\Program Files (x86)\AMD APP\include
 
7:49 AM
oh ok... cool..will try it out thanks :)
it worked !! :D thanks mate
 
@sbi I don't know what's worse: that they did that, or that they did a crappy job.
 
sbi
8:06 AM
@RMartinhoFernandes Yeah, me neither.
BTW, newest by Debbie:
That halo isn't concealing your horns.
 
lol
> We're not really concerned with collateral damage. As long as we get our guy, this device is relatively harmless to any bystanders that are hit.
 
eid mubarak!
 
Hi. What does that mean?
 
it means congratulations on eid.
today is eid.
Eid al-Adha ( ', , " of ") or "Festival of Sacrifice" or "Greater Eid" is an important religious holiday celebrated by Muslims worldwide to commemorate the willingness of Abraham (Ibrahim) to sacrifice his son Ishmael (Isma'il) as an act of obedience to God, before God intervened to provide him with a sheep— to sacrifice instead. Eid al-Adha is the latter of two Eid festivals celebrated by Muslims, whose basis comes from Sura 2 (Al-Baqara) Ayah 196 in the Qur'an. Like Eid ul-Fitr, Eid al-Adha begins with a Sunnah prayer of two Raka'ah (units) followed by a sermon (khuṭbah). The word "E...
anyway....
Does allegro really support hardware rendering on DOS?
 
8:21 AM
> The Department of Homeland Security gives them $300,000 (nearly one third of a million dollars) and they spent it on an RC helicopter? Man, somebody seriously needs to get fired.
 
lol.
REPEAT: Does allegro really support hardware rendering on DOS?
 
9:03 AM
@IntermediateHacker Let the Slaughter Begin !
 
Do you seriously believe that sticking a big fat REPEAT: in front of your question and blindly reposting it is going to make more people want to answer it?
What a nice impersonal way of saying "you lazy fuckers didn't answer my question, so I'm just going to keep asking it. oh, btw, in case you hadn't noticed, this is a REPEAT because you jerks didn't answer it before"
5
 
9:41 AM
Whoa, you guys are up early!
@IntermediateHacker What do you mean by "hardware rendering on DOS"?
 
10:03 AM
Hi @FredOverflow , what's up?
 
breakfast
 
stackoverflow is facing runtime errors : Server Error in '/' Application.
 
Yup, stackoverflow is definitely not "up"...
 
but how will I procrastinate?
 
10:08 AM
@awoodland youtube?
 
@jalf lol
 
10:19 AM
@DAS: I only chat in the Lounge, tyvm.
 
@FredOverflow pardon me for asking idiotic question
 
oh, who'd have thunk it? At least one of the singletons in our code base at work isn't thread safe
what a surprise
 
jko
can i ask here what would be the file type when i create a class? or struck?is it ".h" or ".cpp" also?
 
struck?
 
jko
struct XD
 
10:24 AM
he meant struct i think
 
.cpp is for C++ source code. .h is for C or C++ header files. What you put in the files is up to you, as long as it is valid C++
And those extensions are only conventions
you can put you code in a .foo file, and it'll still work just fine
 
jko
@jalf ahh ok thanks!
 
@jalf sorry for the repeated REPEATS .
 
@jalf But then you won't get syntax highlighting in VS ;)
 
how do you guyz make the letters in bold?
 
10:32 AM
Put two stars in front and two stars at the end.
like **this**
 
Bolt
 
cool :)
 
now try what happens if it's only one star.
 
Good
 
10:33 AM
And then read this.
 
@vivek thanks for the pointer :)
 
good morning
 
good mourning
 
how is this monday today?
 
10:37 AM
@FredOverflow :D , yak.. c++ pointers
 
@user411102 Why C++, could be any language.
Also, those are merely addresses, not pointers. Pointers are typed. Except for void*.
 
@FredOverflow you're right pa :D
 
I'm not actually sure where to begin answering: stackoverflow.com/questions/8035256/…
 
what is .rodata?
 
10:43 AM
it's a readonly data section in some binary executable formats
(basically where compile time const stuff lives)
(and probably other magic like type_info objects)
 
@awoodland binary executable formats : like instruction in binary form?
 
mbx
its used as hint for the linker where to put that piece of data
 
@awoodland and vtables probably
 
@user411102 the output from the compiler - there's a variety of different formats which you can write executables in, even on any one given platform
so on windows it could be exe/com
and Linux it could be a.out/elf
 
@awoodland aah , now got it, Thanks
 
11:10 AM
I just filed a Conned bug. Can't wait for them to close it as Wont Fix or something
 
11:31 AM
Why aren't software developers famous?
Nobody even notices us.
 
@IntermediateHacker - some are
(e.g. Linus)
and quite a few of the other kernel hackers are "big names"
(some are for the wrong reason too - therac 25)
 
@IntermediateHacker why aren't plumbers famous?
 
@jalf - I have to cite mario as a counter example to that statement :)
 
@awoodland well, yeah, and I'm sure you can find some celebrity who just so happens to be a software developer too, in addition to whatever heroic enterprise he's got going on the side
super mario isn't exactly famous for his plumbing, is he?
When you notice a plumbers work, it means he screwed up. Isn't it basically the same with software development?
 
in the games industry there are quite a few "celebrity" developers
e.g. carmack
and the tetris guy
who's name escapes me :)
peter norton?
 
11:41 AM
@awoodland Famous as a software developer? Or as a game developer?
 
I would have said games development is-a software development
 
@awoodland yes, but the inverse doesn't always hold
so being famous for game development doesn't necessarily mean that you're famous for software development
Also, Carmack isn't famous
He's known in the games industry, sure, in the same way that some plumbers are probably famous among people who care about plumbing
But has your grandma heard of Carmack?
 
true, I suspect the only games stuff my grandma has heard of is people at her church calling them evil
 
anyone have VS2010 SP1 and 10 minutes to spare to see if they can reproduce a bug?
 
sbi
@awoodland It seems it's time for this one again:
Procrastinate now, don't put it off!
 
11:53 AM
lazy is better than eager
 
anyway, if anyone's willing to download the attached file and follow the steps to reproduce here, I'd appreciate it
 
@StackedCrooked Not always, though.
 
12:12 PM
anybody here know anything about ARM processors?
 
I know their name and where you can find the manual.
 
@CatPlusPlus Edit: lazy is better than eager, unless when it's not
 
@TonyTheLion - which ARM processor? They vary considerably
 
12:17 PM
@awoodland T something or other.... it's the one's used in a Canon camera
I was just helping someone debug something running on a Canon camera
 
12:34 PM
@jalf I can try
Downloaded the source
what's next
 
@vivek should be shown under the details pane
 
yes..I'm reading it
 
just open a VS command prompt
then `cd src\cpp`
`cl.exe test\server_abyss.cpp /I"../../include" /D "WIN32" /errorReport:queue /EHsc`
 
cl.exe [source] /I [include file path] /D "WIN32" /errorReport:queue /EHsc
 
@vivek yeah, and just compile that one cpp file with that command line
 
12:41 PM
I got something else :P
It's couldn't compile
program can't start coz mspdb100.dll missing
"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.exe" C:\Users\DMR\Downloads\cl-crash\src\cpp\test\server_abyss.cpp /I C:\Users\DMR\Downloads\cl-crash\include /D "WIN32" /errorReport:queue /EHsc
that what I used
 
@jalf Reproduced.
 
whr did I go wrong :(
 
With 64-bit compiler, too.
 
@vivek you shouldn't need to specify the path to cl.exe
 
In the same spot.
 
12:44 PM
just open "Visual Studio 2010 Command Prompt"
should be in teh start menu
 
@jalf never done that, plz guide
 
@vivek open the start menu, go to the Visual Studio 2010 program group
 
ok
 
and then it should be under tools
 
12:45 PM
got it
 
that sets up the path to the compiler
so it actually works
@CatPlusPlus nice, thanks. Mind registering that on the bug?
 
fatal error C1001
 
Do I remember my Live credentials...
I don't have a Connect account? Weird.
 
@jalf Voted it up
 
1:22 PM
 
1:41 PM
I've been there.
 
@CatPlusPlus haha
 
1:56 PM
0
Q: What does alloca(0) do and return on various platforms?

elmarcoDoes alloca() returns NULL if the size given is 0? A quick search reveals that alloca(0) force garbage collection in some cases! but I am mostly interested by return value. thanks

Lol "it forces garbage collection".
 
> I would tell you a UDP joke, but you might not get it.
8
 
Esp in a noisy environment.
 
2:25 PM
Im want to convert a 3 bit field into a 2 bit field by dropping the most significant bit...how is that usually done
I*
 
2:45 PM
@SirRoot your first mistake is probably to assume that it is usually done at all
 
It's usually not done.
 
for 3->2 it's probably easiest to do it manually. For n->m I'd look at std::bitset probably
 
anyone experts at regexes around?
need a regex which matches any string that begins with moc_ and ends in .cxx
 
3:01 PM
/^moc_.*\.cxx$/
(if you wanted to exclude spaces you could do [^\s]* instead of .*)
depending slightly on what dialect of regexs you want it for
 
hmm yeah, that's what I just tried. Didn't work. Guess I'll poke around a bit more with it
CMake's regex engine
 
not sure on CMake specifically, sorry. Usual gotchas are \r or \n hiding at the end of the string
 
according to the docs, it looks fairly standard, but guess there's some little icky difference
 
Argh, again those stupid JS function prototypes.
 
huh, looks like it doesn't like ^
 
3:07 PM
if you switch the ^ for ^.* does it work?
that would indicate an unexpected prefix for some reason
 
hmm
looks like you're right. probably some whitespace...
ugh, apparently not
 
3:29 PM
It might be because CMake sucks.
 
@CatPlusPlus that's probably a fair assumption
 
3:43 PM
I quite liked CMake the few times I've tried it, mostly because it reduces the pain of building using xcode/visual studio compared to a normal Makefile generation tool
 
3:54 PM
I have used CMake and I find it ok. Not fantastic, but good enough.
 
Halloween is officially over. (I ran out of candy.)
@FredOverflow but they point to your answers! Don't you ever try resolving addresses?
 

« first day (387 days earlier)      last day (4562 days later) »