« first day (421 days earlier)      last day (4542 days later) » 

Als
12:01 PM
What the hell, Full House on Sunday
 
It's always full house here.
It gets slower during European night, but that's it.
 
Als
@RMartinhoFernandes: You are always here When I see, but then you are a machine, I was referring to us humans.
:P
@RMartinhoFernandes: How is your weekend?
 
Als
Ahem
 
wasn't there a james bond movie with main action in portugal?
 
12:09 PM
Something like that, yes.
The one with George Lazenby.
On Her Majesty's Secret Service (1969) is the sixth spy film in the James Bond series, based on the 1963 novel of the same name by Ian Fleming. Following the decision of Sean Connery to retire from the role after You Only Live Twice, Eon Productions selected an unknown actor and model, George Lazenby to play the part of James Bond. During the making of the film Lazenby decided that he would play the role of Bond only once. In the film, Bond faces Blofeld (Telly Savalas), who is planning to sterilize the world's food supply through a group of brainwashed "angels of death" (which include...
 
Als
err..That guy
I believe his James Bond was no good
 
i must download anyway!
 
Implemented global constructors and destructors in my runtime. Now comes the hard part: local destructors.
 
Als
@AlfPSteinbach: Living in 80's eh
 
@FredOverflow e and x seems to follow a similar convention to x86 register names (32-bit register is eax (e), 16 bit is ax (x), and 8-bit is/was a
no clue where the p comes from
In other news, starting a blog was a pretty good career move, I'm starting to think
 
12:14 PM
well ax came from register a of the 8080
 
@jalf What happened?
 
Just got an email from some startup wanting to hire me
 
there was A and B and H and L, IIRC
 
and it definitely scored me some points with my current employer as well
 
12:16 PM
double bigness; //I'm not illiterate by the way
 
hey smoking in a video!
 
@jalf What do you blog about?
 
@FredOverflow eh, C++ and code stuff
Singletons? ;)
 
I linked to your singleton post last week.
 
haven't even updated it since august, I think, but apparently it still counts
 
12:24 PM
Is it an interesting proposal, or the sole interesting fact is that you got it thanks to your blog?
 
well, hard to say. They seem pretty hush hush about it. Says they're operating in stealth mode at the moment,but they're working on something big that will "change the way we program". Also, it seems to be some kind of nosql db
also they're looking for "hardcore C++ developers", which is always a good way to attract attention. ;)
could be interesting
but since I've only been in my current job for a couple of months, and I really like it there, I'll probably have to let them down :)
by the way, Drive is a really surprisingly awesome movie. Go see it.
 
Is it like, in theaters now?
 
yeah
well, in some places at least
 
Check, it's here. Now, if only I could convince someone to go with me. Going to the movies alone is weird.
 
why?
 
12:32 PM
Doesn't feel right.
 
you don't need a friend to use your eyes
 
isn't that pretty easy? Everyone likes going to the movies, don't they?
could practically just stop a random stranger on the street and go "hey, wanna go see a movie" ;)
 
Now that would be weird.
 
yes :D
but my point is, it would very likely work ;)
 
I'd just ignore you and hope you walked away
 
12:34 PM
I usually just post on facebook asking if anyone wanna go. Wait an hour or two and someone will have replied
 
Me no facebooks.
 
Shame. It has its uses of that kind of thing. Almost makes up for the endless invites to crappy flash games
 
In any case, wouldn't help much.
Flatmates are gone now (school vacation), and none of my old friends stayed around here after college.
 
ah :(
go alone then. It'll pass the time, at least
 
Anyone I know that could be willing to go isn't nearby.
 
12:36 PM
heh, 21 stars for the "java code stinks" article I linked to
 
who here doesn't hate Java?
 
silence
 
I merely dislike it.
 
Damn, you fixed it.
 
Aarh.
 
12:36 PM
btw, I'm so proud. I wrote a makefile that actually works and is somewhat readable
 
all:
    g++ -o test main.cpp
Just make sure to use a real tab in stead of 4 spaces for indentation.
 
I know :D
 
Makefile weirdness.
 
I always use spaces, but I'm glad vim can be set up to switch to tabs automatically when opening makefiles.
 
12:40 PM
autocmd FileType make set noexpandtab
^ I have this rule but it doesn't work perfectly.
 
Heh, I don't remember what exactly was wrong with it..
 
Mine uses setlocal rather than set but is otherwise identical.
 
I just slept for 10 hours and now I'm drinking coffee to fight of sleepiness.
 
12:43 PM
Same here. Well I'm not drinking coffee but I am sleepy, too. Perhaps something seasonal?
 
Could be.
 
Cold always makes me sleepier.
 
Someone asked me if I was up to play yesterday. Instead I told them I was hibernating and then I went to sleep for 12 hours.
 
12 hours? That doesn't count as hibernating.
 
@RMartinhoFernandes The thing is that even right now he is still sleeping.
 
12:46 PM
Ok, what is it with noobs and insanely broken indentation?
You can't give me the "everyone was a noob once" thing, because even when I was a noob I never wrote code without proper indentation.
 
Sometimes it's just retardedness.
It's very common these days.
 
sbi
Very cool. Batman equation using Google's function plotter: http://goo.gl/QTzAq
 
> "x" (and any subsequent words) was ignored because we limit queries to 32 words.
 
hey, it stars Julie Ege, former Miss Norway!
 
12:55 PM
You're talking about OHMSS?
 
Just found this:
 
A balut is a fertilized duck embryo that is boiled alive and eaten in the shell. Popularly believed to be an aphrodisiac and considered a high-protein, hearty snack, balut are mostly sold by street vendors in the regions where they are available. It is commonly sold as streetfood in the Philippines. They are common, everyday food in countries in Southeast Asia, such as Laos (where it is called kai luk – ໄຂ່ລູກ), Thailand (khai khao – ไข่ข้าว in Thai), Cambodia (pong tea khon ពងទាកូន in Cambodian) and Vietnam (trứng vịt lộn or hột vịt lộn in Vietnamese). They are often served with beer...
 
12:56 PM
She's one of the Death Angels?
1 message moved to Sandbox
@TuralTeyyuboglu Will you stop spamming?
 
I don't spam, asking for help
 
Spamming off-topic help requests is still spamming.
Dec 2 at 3:08, by Cat Plus Plus
If you are new here, please read the newbie hints. Thank you.
 
"I don't spam, I'm asking people to buy my pharmaceutical products."
5
 
@LucDanton so what? it's kinda funny?
 
no, it's kinda a waste of space
 
1:11 PM
@Tural: instead of cajoling the windows cmd.exe into doing string processing, just write a small jscript or vbscript
 
Or stay sane and use Python or Ruby.
Also hello.
 
@tural: that said, the answer that you already got seems to be correct or at least on right track for the cajoling approach. see the quickhelp for the 'for' command. at the end it lists the cryptic specifiers you can use to e.g. get rid of filename extension.
hi
:-)
 
1:40 PM
hello i have a quick question how can I eliminated a row "i" in my matrix, I know theres the function erase matrix.erase() but how can i tell inside that it is only the i row that I want to remove.
 
user142019
Hello!
 
hello
 
user142019
How are you doing?
 
Good and you?\
 
user142019
fine
 
user142019
1:51 PM
Bored with C++ :p
 
hehe im new to C++
i used to program on matlab
but things are getting better..
 
user142019
I used to program in C.
 
ok, its a bit similar, but from matlab to C++ is big difference :)
 
user142019
I don't know Matlab.
 
ok
 
user142019
1:54 PM
Is it functional or imperative?
 
u dont have to declare variable there
like int and string.. and vectors..
 
user142019
Like Ruby and Python
 
I know litlle about python but i think yes it is close to matlab
 
user142019
What's your platform?
 
what do you mean by platform?
 
user142019
1:58 PM
OS
 
sorry i dont know much about these things:)
 
user142019
Windows, Linux, Mac OS X?
 
windows
 
user142019
cool
 
user142019
I never programmed on Windows.
 
2:00 PM
i never did on others hehe
i don know if it is cool or not :P
 
How does one get the "analytical" badge?
 
i know dont
 
Click every section of the FAQ.
 
I just did... maybe it's delayed
grumble
aha, there we are :)
 
Yay, new kernel. And this one doesn't spam the syslog.
 
2:10 PM
what's the quickest way to up your flag weight?
or is it slow by design?
 
It gets slower as it goes up.
 
It's easier once you get the 10k tools.
 
what is flag weight
 
It affects the priority given to your flags.
 
user142019
@AlfPSteinbach flag weight of 2 means that if you flag something it's flagged twice for example
 
2:13 PM
only 192 post edits until the next gold badge!
 
maybe I can do some more C++0X->C++11 edits where relevant
 
@WTP Not really. Flag weight starts with 100.
 
user142019
@CatPlusPlus it was just an example to explain what flag weight is.
 
2:15 PM
so what affects flag weight?
 
Previous flagging history.
The more flags of yours deemed "helpful", the higher it gets.
 
dang, I'm only at 150, need to get to 500. sigh...
 
sounds like a stasi rule
why do people wish to live in old east germany
jeez
 
user142019
@rubenvb where can you see that?
 
@WTP click on your user name on top, it's the last item next to your profile picture
under "profile views"
 
user142019
2:19 PM
@rubenvb thanks! I have 390
 
@WTP dang man, at 16?
 
user142019
@rubenvb yes. Does that matter?
 
Xeo
@AlfPSteinbach That was part of the message for @Mysticial :)
 
user142019
@rubenvb look at stackoverflow.com/users/764846/genesis. He is 15.
 
Talking to yourself?
 
2:22 PM
Not that guy again.
 
user142019
:p
 
that's just ... wrong. you're on the border of remaining sane ;-) he's overdoing it
How about some friendly neighbourhood upvotes to this great question and answer :-)
3
Q: C++11 threading on Windows

legionIs there anyway to use std::thread with C++11 standard library in windows when compiling with g++ 4.5.2 in MinGW? I'm gunna assume no as I've seen many things saying you have to compile with the pthreads option but I figure I'd ask anyway.

 
user142019
@rubenvb I don't know anything about MinGW nor am I using it, so sorry :p
 
I already answered, just click the nice arrow next to my answer ;-)
 
2:24 PM
@Xeo What about me?
 
Repwhoring at its finest.
2
 
I wasn't even on chat and I get this random ping. :)
 
Xeo
@Mysticial Oh, didn't you get ping'd by the message?
I meant the message from earlier today... like... 8h ago
 
Oh, haha... lol Now I see it...
 
user142019
2:27 PM
+1
 
1
Q: Two dim array, pointer to part of it and stack corruption

YolaWhy next code gives me stack around variable x was corrupted? char x[1][21]; char *ch = x[1]; strcpy(ch,"12345678901234567890"); for (int i = 0; i < 20; i++) cout << i << ": " << &x[1][i] << " " << x[1][i] << endl; output: 0: 1234567890123456789...

Today's 2D array question.
 
user142019
Don't use 2D arrays, they are evil. Use 3D arrays.
 
Xeo
We need to go deeper.
It's all about 3D arrays of pointers to functions that return pointers to 2D arrays of pointers to functions that return chars.
 
user142019
I have never seen a useful case of 3D arrays, except confusing people.
 
@rubenvb u can buy the threading library from the guy who wrote the book, was it andrew something?
could someone fix up my english please thnaks
 
2:31 PM
Anthony Williams. He answered the question suggesting it.
 
@AlfPSteinbach no reason to anymore, VSnext has <thread>. For evil reference, its name was just::thread.
 
user142019
I still like libdispatch the most to do threading, even when std::thread is available.
 
@Xeo I guess you're bored.
 
2:33 PM
And I just got denied the accept on that 2D array question... lolz...
I guess sometimes the longer answer isn't always better...
 
Xeo
hm
markdown breaks
 
You don't expect this to work, do you?
 
user142019
Yum, just ate 300g of bacon crisps.
 
Xeo
Woot, the bounty on my question increased the view count by about 50. Great.
And still no answer. :<
 
2:35 PM
Lol.
 
Anyone a Linux guru?
0
Q: Building against an older glibc

rubenvbIs it possible to build glibc/gcc/binutils in the version combo of say 2.4/4.6/2.22 (or some later version of GCC used by the oldest/'stablest' linux distro's still around)? I would like to create standalone cross-compilers for MinGW, and have them work on more than glibc 2.14 (my current Fedora...

 
I'm debating whether or not I want to put a bounty on this one:

http://stackoverflow.com/questions/8321459/what-is-the-difference-between-str-null-and-str0-0-in-c
 
user142019
@Xeo stackoverflow.com/a/8406594/142019 looks like an answer to me
 
for badge whoring...
 
Xeo
@WTP Sorry, a good answer that understood what I want.
 
user142019
2:36 PM
@Xeo k. I'll try my best.
 
Can I haz template enums?
No :(
 
template enums?
 
user142019
what's the point of template enums?
 
what even are template enums?
 
nonexistant!
 
user142019
2:40 PM
C++11 sandard: 14 - 1: "A template defines a family of classes or functions or an alias for a family of types."
 
user142019
It doesn't say "enums".
 
Hullo folks.
 
user142019
hi
 
maybe he just means template<typename T> void f() { enum class X : T { } };
 
Xeo
shouldn't that work?
 
2:42 PM
I'd expect so
 
user142019
codepad.org/EWKzHc1t doesn't compile (yes, I did shift the semicolon to the right place).
 
Now, try that with C++11.
 
Xeo
You also forgot f<TYPE_HERE>()
Also, codepad sucks
 
user142019
That wasn't the compile error.
 
ideone is overloaded
probably the whole SO chat room trying out that code. Poor ideone...
 
user142019
2:45 PM
:p
 
Ugh, codepad runs with -Wfatal-errors.
That sucks.
 
Xeo
xeo@void:~/Desktop$ cat t.cpp
template<class T>
void f(){ enum class X : T{}; }

int main(){
  f<int>();
}
xeo@void:~/Desktop$ clang++ t.cpp
xeo@void:~/Desktop$
 
@WTP it works on GCC 4.5
 
user142019
clang didn't compile it. trying GCC…
 
Xeo
clang compiles fine
 
user142019
2:45 PM
oh :p
 
cpx
Hm.
 
Xeo
@WTP Did you forget -std=c++0x? :P
 
user142019
@Xeo stupid me
 
with added <int> of course
 
2:46 PM
-Wfatal-errors is like "please give me only half of an error."
 
Xeo
Know what's stupid? No boost for -std=c++0x on Ideone
 
user142019
That's horrible. boost ftw
 
@Xeo You have boost with old C++?
Neat.
 
user142019
Can't wait till clang supports lambdas and std::initializer_list.
 
Xeo
Yeah
I don't know which version though
I'm sure you could test that
 
user142019
2:48 PM
Till then, I need to link with libobjc and use blocks ><
 
Clang doesn't support lambdas?
 
user142019
not yet
 
What version?
 
user142019
I'm using 3.0.
 
Xeo
2:49 PM
3.1 doesn't too
 
Oh, how could I miss that. That sucks balls.
 
Xeo
xeo@void:~/Desktop$ cat t.cpp
#include <iostream>

int main(){
  auto x = []{ std::cout << "what?\n"; }
}
xeo@void:~/Desktop$ clang++ t.cpp
 
^ i didn't know, they're dropping macros. i think the function to convert all tabs to whitespace, is only available via macro
 
Xeo
What comes then is a shitload of errors and a final segfault of clang
 
user142019
2:50 PM
:p
 
I'm not using clang anytime soon then.
 
yeah, I had a bug about that segfault.
 
user142019
no segfault here
 
user142019
this is so stupid ><
 
user142019
I hate undo in emacs.
 
Xeo
2:51 PM
@AlfPSteinbach Wtf?
 
Did you forget -std=c++0x again?
It's complaining about auto.
 
user142019
auto ftw
 
user142019
a.cc:4:12: error: expected expression
  auto x = []{ std::cout << "what?\n"; };
           ^
1 error generated.
 
user142019
Confirmed, clang doesn't support lambda's. :(
 
let's be fair, though
according to that list, they support nearly everything else
 
Xeo
2:52 PM
I don't understand why 3.1 segfaults though :(
 
@DeadMG true that
 
user142019
Because it has a bug.
 
@DeadMG No flagging lambdas is unacceptable.
 
@DeadMG they don't support windows. it wouldn't install. i mean it installed but didn't work
 
lol
 
2:53 PM
@AlfPSteinbach never tried my builds then?
 
@rubenvb no
 
they work
 
well i installed from scratch
it didn't work
i asked here on so
 
they are MinGW based though, otherwise you have no C++ library.
 
nobody had any answer
i reported bug
 
2:53 PM
where's the question?
 
user142019
Is it safe to update clang using MacPorts?
 
1
Q: clang "hello, world!" link errors in windows

Alf P. SteinbachI just downloaded the CLang sources, made a Visual C++ 10 IDE workspace by using CMake, and built everything from Visual C++ 10.0 (express). Now I get a bunch of linker errors on hello world: d:\dev\test> type con >foo.cpp #include <iostream> using namespace std; int main() { cout ...

 
i mean as far as windows goes it's just vaporware
 
I answered that with a very helpful answer
 
user142019
2:56 PM
Has anyone here ever used libclang?
 
yeah yse g++
should support visual c++
 
@AlfPSteinbach what are you missing with (clan)g++?
 
Xeo
The IDE?
 
@Xeo sheesh...
 
Xeo
Atleast that's what I miss on Linux :(
 
2:57 PM
@Xeo Have you tried QtCreator?
 
i mean it's a bit dumb when you have visual c++ and g++ to bother with clang thing in addition
 
Xeo
That's why I code on Win7 in VS and tab into my Debian vbox to compile :D
 
Pfft, IDEs.
 
a proper windows compiler has binaries for windows
 
2:58 PM
That sounds silly.
 
Xeo
:(
 
user142019
Real programmers use butterflies.
 
Xeo
We know that
 
@Xeo Use distcc, or Buildbot.
 

« first day (421 days earlier)      last day (4542 days later) »