« first day (724 days earlier)      last day (4226 days later) » 

12:00 AM
@Mysticial Ah, good deal. Pulling for you to do well on your quals.
 
yay! then I don't need to find out which version comes with 4.4 and where I can find an installer for that ^_^
 
@MooingDuck sad
 
@Chimera 37% have less than 2 rep
 
@MooingDuck So it seems SO has far more people that come here just to ask questions. They get an answer and never come back?
 
@Chimera yup
 
@MooingDuck When sorted by all time rep, just on the first page, the scores cover a range of ~3.4:1.
 
Xeo
@StackedCrooked Oh hey, Fairy Tail Emblem!
 
Indeed.
 
gahh. Downloaded and installed MinGW, Qt....but no qmake
 
There are worse things in life than that.
 
12:09 AM
wait, no...there it is, in the middle of the qmake source files. brilliant
 
Impressive simplicity. +1 — sehe 4 secs ago
 
lol
 
@melak47 probably, because it has just been built from those sources?
 
@sehe why wouldn't it go in a /bin or something.
 
12:12 AM
@melak47 convention. it will go into bin "or something" when you do make install - which you didn't/didn't need to.
Different projects have different conventions, and binaries in src/ is not that uncommon. Usually the subsequent steps will harvest / distribute those to where-ever they are needed. make deb will require something else than make install or make rpm
Other build tools have other conventions (MSBuild, CMake etc.) and I agree that looks a little nicer.
 
hmm.. trying to follow the answer here
2
Q: How to set Visual Studio 2012 RC Compiler for Qt instead of MinGW?

das_jWindows 8 x86; Qt 4.8.2; Visual Studio Ultimate 2012 RC

 
@StackedCrooked So, the quintessential c++ hello world program looks like int main() {}!
And somewhere, in some lone translation unit:
static struct App
{
     App() { std::cout  << "hello world"   << std::endl; }
    ~App() { std::cout << "goodbye world" << std::endl; }
} s_app;
 
12:32 AM
Why static?
Just realized that auto-updating prevents sharing code by url. Doh!
 
Are your vm forked to death eyet
 
Currently I'm only compiling.
 
I'm trying to follow this step... "In a Visual Studio command shell, cd to tools/configure, run a previous version of qmake (which you need to already have), and then run nmake to update your configure.exe."
 
but qmake says it can't find /src/corelib/tools/qbytearray.cpp and loads of other files in that directory.
 
12:41 AM
Looking into seccomp and other potential ways to prevent fork bombs and shit.
 
I have no idea what environment variables I have to set to make it find those files
 
dont recompile configureexe
 
that guy says to.
 
he's stupid
 
so I just...skip that step?
 
12:42 AM
trust me, im' drunk
4
 
cool
 
just run configure and then mkae
 
@StackedCrooked because, otherwise main() {} wouldn't work :)
 
are your socks colour coded for convenience because mine are
 
12:44 AM
@CatPlusPlus yes
black = socks
 
@sehe Ah, you mean to avoid name clashes.?
 
haha
configure asks if I accept the license
I type "maybe"
it prints the entire license :p
 
@StackedCrooked It is still static, my friend.
 
but that's not sortable easily you suck
 
@StackedCrooked No just habit. I specify storage duration there. Side effect of making it internal to the TU
 
12:48 AM
@CatPlusPlus don't need sorting. all socks are black, so just wear whichever
 
well
i should go to dsleep
bye
 
you should go derp!
derp well
 
your help didn't work >:(
 
@melak47 what's your point? His help must be broken?
 
@sehe his help wasn't much help is all I'm saying
 
12:50 AM
oh, socks
 
configure says...
Creating qmake...
execute File or path is not found (make)
and it says make...not nmake. :/
 
Damn. I'm so happy I'm not you right now. Allthough it looks like simply a toolchain path missing from PATH
 
yeah
but I don't have make
isn't configure supposed to be configuring it for nmake?
 
@melak47 That's beside the point. configure will detect the toolchain. Make might be the default, since it isn't finding nmake?
 
I specified the platform as win32-msvc2012 :/
 
12:53 AM
@StackedCrooked have you always had that domain or did you just get it?
 
maybe the point of recompiling configure was so that that would work?
 
@melak47 I'm sure you did many wise things. That is also beside the point :)
 
@Rapptz I've had it for a year or two.
 
@melak47 recompiling configure? You mean, reconfiguring using ./configure
 
2
Q: How to set Visual Studio 2012 RC Compiler for Qt instead of MinGW?

das_jWindows 8 x86; Qt 4.8.2; Visual Studio Ultimate 2012 RC

no
qmaking then nmaking configure
after adding msvc-2012 to those source files so configure understands that
 
12:54 AM
@StackedCrooked Ah okay. It's just because it was 173.203.57.63:4000 last time.
 
@melak47 you know, qmake and nmake do more than trigger compilation
 
@Rapptz Yep that is the ip.
 
@sehe yeah
 
@StackedCrooked So how expensive is rackspace/slicehost?
@melak47 Sadly, I can't be of a lot of help, these things call for eagle eyes and I'm tired
Good luck
 
@sehe 25 EUR/month or something.
 
12:56 AM
@sehe thanks :/
 
@StackedCrooked Whoa. What specs?
 
Ubuntu, 256 MB RAM, 150 GB transfer per month
 
Oh hahaha:
@tomalakgeretkal Victory is mine! (and yours!) http://stackoverflow.com/questions/12789376/are-char16-t-and-char32-t-misnomers
 
How can I get the stupid software to quit warning me that I haven't voted on questions in a while
 
@StackedCrooked That's evil. I have two VPSes: a [2-core 768Mb, 20Gb] (14 eur/month) and a [4-core 512Mb, 16Gb] (19 USD/month).
 
1:00 AM
Yeah, I suck.
Which company?
 
Oh, and I forgot a [1-core 512Mb, 25Gb] (10 Eur/month)
@StackedCrooked In order of appearance: tilaa.nl, linode.com and yourhosting.nl
 
@sehe Ah cool. I was currently looking at this one :D
 
@StackedCrooked I like how the font makes faqs look like fags
 
Lol, if you click on the hosting plans they say they're sold out.
 
@StackedCrooked Wait, that's shared hosting, right?
 
1:05 AM
arghh...
 
@sehe Dunno. What is shared hosting again?
 
why the hell is there a fatal error in VS own files
 
@StackedCrooked It's where you don't get a virtual box, but a login. So, you use the same apache/httpd instance as everybody else, just get your own virtual host(s). Same for SMTP and stuff
 
Cool, tilaa would only cost me 5.90 EUR for 256 MB / month and 10 GB storage.
 
@melak47 There isn't.
 
1:07 AM
right that's just where the error message comes from
 
There is not fatal error and it is not in the file.
 
well, it says fatal error
 
@sehe Ah, I want it all. So, no shared hosting for me.
 
@melak47 "it"?
 
nmake
"fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro."
 
1:09 AM
@melak47 Great. So the error is in the user code (a) including the library header too late (b) invoking UB by defining keywords in that fashion
 
...how did this work for the other guy without issue
 
@melak47 You see. Just read the message: there is no error in the 'VS own file'. There is a message in the 'VS own file'. - Big difference. The library is helpfully telling you you are trying to compile broken code and is not going to cooperate
@melak47 Differently...?
 
"just run qmake then nmake"
 
@StackedCrooked You can try this for free for 15 days before you cancel. chunkhost.com/signup/plan/new
 
@sehe yeah, already got that :)
 
1:12 AM
 
still what
 
lol
 
Xeo
Woah, Tomalak is back.
0
Q: Are `char16_t` and `char32_t` misnomers?

Lightness Races in OrbitNB: I'm sure someone will call this subjective, but I reckon it's fairly tangible. C++11 gives us new basic_string types std::u16string and std::u32string, type aliases for std::basic_string<char16_t> and std::basic_string<char32_t>, respectively. The use of the substrings "u16" and...

 
Who is the girl in his gravatar? Is it from some TV show?
 
Xeo
No idea.
 
1:21 AM
Silly question, IMHO, yes or no, that's what the committee decided to name 'em
 
posted on October 09, 2012 by Ibrahim Damlaj

Background In June, we announced enhanced targeting for Windows XP using the Visual Studio 2012 C++ compiler and libraries. This feature has been included in Visual Studio 2012 Update 1 CTP 3. You can download it from here. Today, we would like to give an overview of the Windows XP targeting experience, the level of C++ runtime support, and noteworthy differences from the default experience sh

 
@Feeds Oh, they're pushing that out quicker than I expected them to
 
I prefer the one where he goes "Gloves? You mean bitch mittens?"
 
1:23 AM
What, are you a connoisseur of these things?
 
No. I just have an eidetic memory and remember too many things.
 
When I was a kid I sometimes dreamed there was a mountain potato chips in front of me and I could eat them. And now I see this.
 
lol El Dorito
 
> Wild Doritos from the sea are much more nutritious than farm-raised Doritos.
> I am picturing the first guy to see this. He's just on the beach for his morning jog with his wife, and he looks over to see a fuckton of chips everywhere. He'd probably be like "Haha sweet look at all these fucking chips. Holy shit there is actually so many chips. Debra, look at these chips."
Lol, why do I even find this funny?
 
1:31 AM
What the hell is that?
 
blargh...ok new error.
 
/r/magicskyfairy . It's a subreddit that makes fun of /r/atheism
 
@melak47 The error is you!
 
in configureapp.cpp line 2953, configureStream is undeclared. which makes sense since it's only declared a couple hundred lines further down in an entirely different function....
 
@Rapptz That's interesting. I've always disliked /r/atheism.
 
1:35 AM
Yeah me too. I'm an atheist but these guys in /r/atheism seem more like antitheists.
 
lol yeah. I think that's the top submission there
 
1:48 AM
 
well holy crap Qt is configured, and nmake is working
 
they messed up markdown on the sidebar lol
 
2:06 AM
hey, does anyone know if after building Qt, that's it and I'm done? Or do I need to somehow make visual studio use Qt's meta object compiler in a custom build step or something?
 
2:27 AM
0
Q: possibility of splitting an array in c++

healixI was wondering how arrays work down at the binary level because I'm trying to think of a way to split them up; meaning take an array and make it into a linked list and I'm not talking about turning an array into a linked list (copying, old array into new...)I'm saying is there anyway possible to...

How does one answer questions like this
 
You answer them with the close-vote button?
or with: "huh?"
 
Perfect situation for "wat"
 
@SethCarnegie I can't agree. "NO" is shorter and more informative. "NO!" is the same length, and more informative still.
 
But slightly misleading
 
@SethCarnegie How so?
 
2:32 AM
@JerryCoffin you can technically manipulate the bytes of memory of an array to make them a linked list when interpreted in a certain way, which was I think what he was asking, but I don't know, it seems better not to mention that to him.
 
@SethCarnegie Being old enough to have actually written Fortran, I've even done that -- but I'd call the result a simulation of a linked list, not an actual linked list.
 
And this is what it turns into
@healix: Then why did you say you wanted to turn it into a linked list? I now have no idea what you're actually asking. — David Schwartz 44 secs ago
 
0
Q: Execution time of Matrix Product of two N x N matrices in C

Bic BI am trying to measure the time it takes to carry out a Matrix Product of two N x N matrices: AB = C I have managed to write some code for it but for some reason its not working at all. I think the for condition for k might be the cause and also for some reason the time is not getting measured. ...

 
0
Q: New don't allocate memory?

Victor SantosI have this piece of code (on function abc) matriz = new (nothrow) int*[qnt_objetos]; if (matriz == 0) exit(0); for (int i = 0; i < qnt_objetos; i++) { matriz[i] = new (nothrow) int[tam_mochila]; if (matriz[i] == 0) exit(0); } matriz is an two-dimensional array declar...

 
Xeo
Why std::nothrow when he exits on null pointer anyways... man.
 
2:48 AM
@Xeo yeah I was thinking that, I was going to ask why but then I thought that he might need to avoid using exceptions altogether.
Due to some limitation of his environment
 
@Xeo Yes, but if his call to exit is outside main, he's avoiding destroying objects before exiting. After all, you wouldn't want to exit cleanly, would you?
 
3:02 AM
THe retuuuurn of LNK20119999999999999999999999999999999
Whhyyy yooooooou fooollooooooooooowmmmmmmmeeeeeeeeeeeeeeeeee
So, since I have to separate implementation and - WAIT
I might be able to do this the right way.
Nope nevermind I suck at this.
 
3:22 AM
Hello, World!
 
World, Goodbye?
 
3:35 AM
@ThePhD you forgot the "cruel" part...
 
Cruel World, Goodbye!
 
@ThePhD that's better ;-)
So...it's quiet in here tonight.
 
3:49 AM
user image
3
 
@Rapptz Nice
 
4:06 AM
Hi all, I wrote some code for matrix N x N multiplication and tried measuring the time but for some reason the run time prints 0
would you know could be causing this
clock_t start, stop;
double t = 0.0;
start = clock();

//code here
stop = clock();
t = (double) (stop-start)/CLOCKS_PER_SEC;
printf("Run time: %f\n", t);
 
user406009
You are doing integer division, which rounds down.
 
user406009
Move your cast so that it casts to double before the division.
 
user406009
t = ( (double) stop - start )/ CLOCKS_PER_SEC; or something.
 
You mean integer right? An integral is the antiderivative of a function.
 
so how can I fix it?
 
4:08 AM
Watching this, pretty interesting so far
 
user406009
@Rapptz The curse of not enough sleep. And calculus class in the morning.
 
@Lalaland I changed it but stil giving 0 as the output
 
@BicB Are you using C++11 or C++03?
 
Oh! forgot to mention I am using C
 
lol
 
4:10 AM
sorry about that guys
so is there a way it can be done in C?
 
0
Q: Calculating time using clock gives value as zero - linux

user958263I have a cuda code which performs calculation on GPU. I am using clock(); to find out timings My code structure is __global__ static void sum(){ // calculates sum } extern "C" int run_kernel(int array[],int nelements){ clock_t start, end; start = clock(); //perform operation on gpu - ...

relevant?
 
Yes @Rapptz =) thanks ill have a read
 
user406009
@BicB C vs C++ shouldn't really make a difference BTW. IIRC the casting and division works the same regardless.
 
If he was using C++ he could have used std::chrono
 
Oh!!! ffs, my matrix size wasnt big enough to be detected
I dont need to change anything
 
4:18 AM
o.O std::chrono?
/me googles it
 
@BicB ROFL, it took you that long to realize it?
If you didn't delete your question earlier, I would've pointed out.
 
I didn't see his SO question, I just googled for "C clock() returns 0"
 
user406009
Casting has higher order of precedence than multiplication? Have to go find that table again.
 
my bad guys =)
just had a long night haha
 
btw, I was trying very hard not to laugh out loud over the last 30 min. of chat transcripts...
 
4:22 AM
fuks sake haha cud have told me 30 min before haha
 
It's only been 16 minutes.
 
@Rapptz More than an hour since he posted and deleted his question.
 
chat transcripts
 
@Mysticial had to delete it lol people in my class wud copy it strait
 
@BicB If you're worried about people copying it, then don't post the damn thing on SO.
 
4:23 AM
^ this
 
Everything posted here is copyrighted by CC-wiki
 
^ didnt know that
btw @Mysticial howd ur exam go
 
The editing aspect kind of makes it obvious. Not to mention the bottom notice.
 
@BicB It's in 15 hours.
 
It's Monday, his test is on Tuesday.
 
4:25 AM
@Rapptz btw i didnt register this account under my real name
@Rapptz its tuesday in NZ =) 5.25 pm
 
@BicB So?
 
so if someone uses the code and gets caught then they check here and my real name is not here then how do i prove it
 
If it's a really good question, then post away. It might turn into the next matrix question where the OP tried to vandalize it after getting 40k views because he thought his prof would get mad at him.
 
@BicB: log into the account in front of them :P
 
4:27 AM
@Borgleader hahahah i doubt they wil even give me a chance, it wil be straight 0 when the marks come out haha
 
I don't see what you have to prove.
 
@Mysticial could be, btw guys in the states, do they teach you how to program in high school?
 
user406009
Define teach.
 
@Rapptz: assume he left his code up and someone copied it. he'd want to prove he was the original author so to speak of said code.
 
user406009
I am a high school student right now. We have a Logo class, a "C++" class and a Java class.
 
4:29 AM
@Borgleader He can't. Everything in here is copyrighted by Creative Commons Share Alike 3.0
 
@Borgleader there is a prick in my class that posted my account's link up on the forum saying that I ask for too much help and started hating
on our lecture forum that is
@Rapptz what if suppose, I copied someones code and then posted it on here. Then what happens?
the other person wont be able to prove that it was his code
 
user406009
"C++" only really covers functions, structs, and variables. The C-subset. Java teaches more, but still minimal.
 
Nothing. That conforms with CC-by-SA-3.0
 
user406009
Logo is just drawing pretty shapes.
 
You know code isn't copyrightable right? Well APIs and functional code.
 
user406009
4:32 AM
Not much teaching at all.
 
@Lalaland thats stil good compared to our school
they didnt teach shit
@Rapptz as in if someone has pretty much the same code, there is a system that checks all students work and if someone is found with extremely similar code then they get 0
stackoverflow.com/questions/12769157/… btw if anyone knows about caches then help me out
 
That is up to the professor. However retarded it might be.
 
In all seriousness, stop spamming that question here.
You've done it at least 4 times over the past week.
And nobody is interested.
 
gotta do it, I need to get that question before tomorow
 
Then start working
 
4:35 AM
I dont understand anything from that question
@Borgleader the lecturer is crap man, he hasnt got any notes or anything on that
I dont know how to calculate throughput
tried looking online but cant find anything decent
 
throughput is just amounts of X/time
 
MBytes/ sec in my case
@Mysticial chill
 
Heh this is a cool picture.
 
is there any problematic access pattern in N x N matrix multiplication?
nvm got it
 
4:44 AM
What I'm doing wrong here? codepad.org/zu9S02BY
I'm trying to work this out since 10 minutes...
 
@KarimA. You forgot to #include <tuple>
 
I just finished watching Bones and Sherlock on Netflix. Suggestions? :)
 
-1
Q: What is the integer "1" in 'cursor.getString(1)' means?

Android_RookieMay I know what does integer "1" or other integer filled in this bracket in cursor.getString(1) means? Thanks

 
@Rapptz I don't think that this is the problem - in my source code I have it included, btw: codepad.org/Vx6MrxJ5
 
4:48 AM
Never before have I seen a question asked with literally no research effort whatsoever.
 
user406009
Isn't tuple a newer feature?
 
user406009
TR1 or something?
 
"newer" is a very relative word :D
 
user406009
C++ Technical Report 1 (TR1) is the common name for ISO/IEC TR 19768, C++ Library Extensions, which was a document proposing additions to the C++ standard library for the C++03 language standard. The additions include regular expressions, smart pointers, hash tables, and random number generators. TR1 was not a standard itself, but rather a draft document. However, most of its proposals became part of the current official standard, C++11. Before C++11 was standardized, vendors used this document as a guide to create extensions. The report's goal was "to build more widespread existing prac...
 
it has been around for a bit
 
4:49 AM
cppreference says it's a C++-11 feature, but I'm sure it existed in some other library or addon.
 
user406009
Yep, tpple = TR1. codepad must be using a pretty old version of gcc.
 
it was in boost before
 
@Lalaland I'm pretty sure it's spelled "tuple". Just saying.
 
VS2010 had it - 3 years ago
 
user406009
I just wish we had geordi in the Lounge.
 
user406009
4:53 AM
That bot is much higher quality than the online compilers we have to use instead.
 
Sometimes I'm amazed how my stupidity can have no limits... :(
10 minutes wasted because I've forgot to forward declare a template that I'm specializing in a different file...
 
What's the actual macro for this? This almost seemed like torture to write for something so basic
 
@Borgleader If you like detective stuff, how about Monk or Columbo?
 
user406009
 
Oh yeah Monk... I might check that
 
4:58 AM
@Lalaland Ah okay.
 
Quick question is there a way to write an algorithm such that you know the sum of 2 numbers let's say is 5 - but I need to find the 2 numbers that make 5 in such a way that the difference is minimum. So 2 and 3 would be ideal vs 1 and 4 or 0 and 5.
 
Yes, and it should be relatively simple.
I think
 
int sum = 5;
int half = sum / 2;
int otherhalf = sum - half;
printf("%d + %d = %d\n", half, otherhalf, sum);
 
Yeah that's even cleaner than what I had in mind.
int number = 4;
double half = static_cast<double>(number)/2;
int lower = static_cast<int>(half);
int higher = static_cast<int>(half+0.51);
My answer has too many casts sadly :(
 
5:10 AM
Okay, cool thanks. :)
 
@FredOverflow: Sadly Monk is no longer on Netflix (at least in Canada) :(
 
@Borgleader I have it on DVD. One of those cheap "Buy six seasons for the price of two, but you don't get any booklet" deals :)
 
Oh cool
 
just download that shit off torrents
 
5:14 AM
I'm sure you're proud of that.
 
everyday I am hustlin
 
0
A: Design about returning reference to non exist data

Kirill KobelevI think that in this situation the right choice will be to return a null reference from the implementation in the base class. Ultimately there is nothing wrong with this. virtual double &f(double x) { double *p = NULL; return(*p); } Plus if for any reason the method of the base cla...

ouch
 
Did he just say return a null reference?
It makes me sick
 
5:50 AM
I downvoted his post. I urge everyone to do the same.
In fact, I'm even starring this. As the C++ QA Squad, it is our duty to bring these kinds of answers to the ground.
 
C++QA Squad? Are we superheroes?
 
LOL!
 
More like anti-heroes. We do what's right, even if we use some despicable methods.
 
Do we still get costumes
 
You can if you want. But don't show pictures.
 
5:58 AM
@Rapptz just wear your undies on your pants and there you have it
 
Was thinking of editing this question stackoverflow.com/questions/12793472/…
 
Damn, he deleted it.
 
Why do people post in all caps
 
guys how do we use a Makefile?
 

« first day (724 days earlier)      last day (4226 days later) »