« first day (637 days earlier)      last day (4304 days later) » 

11:00 AM
 
@RadekSlupik me too :)
 
11:31 AM
My Python editor is working. Now syntax highlighting and code completion. ;_;
 
You edit pythons?
 
I edit Python source code.
But the lack of syntax highlighting hurts my eyes.
 
11:48 AM
Anyone want to recommend a good game?
 
Minecraft.
Scrabble. Dwarf tossing.
 
I like things with good storylines and nice graphics?
Minecraft is ridiculous
It's Lego for people who don't want to leave their computers or admit that they want to play with Lego
 
Minecraft is fun.
And lego is more limited.
 
Meh
I prefer building things in real life
That are useful
(Says the programmer)
 
Yes, building Lego castles is very useful.
 
11:59 AM
@rubenvb why does someone answer such a question? is it just for trolling?
 
@CatPlusPlus This was unrelated, I meant like electronic and furiture
 
 
1 hour later…
1:09 PM
@KianMayne Bastion!
 
slow day in the rain
 
Today's gonna be a sticky one.
 
meh
rain rain rain
 
I want rain. :(
 
1:24 PM
have some
 
FUCKING SHIT!
here I go through hell to answer a question, and when I'm finished with it the author deletes the damn thing
 
@refp Happened to me yesterday. Link?
If it's any good, I might vote to undelete
 
@sehe stackoverflow.com/questions/11483976/… it's original content isn't that good, but it's a valid question - I was just about to update the question with the full definition and use of thread_guard in the book he was referring to
the "going through hell" was that it was a pain in the arse to find that book at my "public library".
 
@refp It's a SO question. Why did you go to the public library?
 
@refp ha. show me the directions to your public library once
 
1:30 PM
@rubenvb the book isn't a.. so.. question?
 
@refp you went to the public library for a book mentioned in a SO question (or so I gather from your complaints).
The fact you did that for a SO question, and the fact you're complaining about it, is silly IMHO.
 
@rubenvb I didn't go to the public library, I went to the "public library"
is that hard to read in-between the lines? where did you think I turned when I didn't have access to a book I would be interested in (to see what OP was talking about)? Do you really think I sat up from my chair and went outside?
 
@refp oh. I think I know the place. They have a very large collection :)
 
@rubenvb ...
 
@refp Yes I did think that. Wouldn't be the first weird thing on the interwebz.
 
1:33 PM
that be hella weird..
 
Someone's trying to argue "smart pointers" are slower than naked pointers.
 
I could rewrite the question and post it myself I guess..

*is it possible to make if (thread.joinable () && (thread.joinable (), true)); thread-safe?*

do you think it's a valid question to post on SO, or is it lame?
 
I'm deciding to discuss things with him or not.
 
@rubenvb why reinvent the wheel? just link him to an argument that has already taken place
 
@refp trying to find one.
oh nvm, question closed
though I don't agree with its duplicity
 
1:37 PM
@rubenvb 'til next time:
15
Q: C++ Smart Pointer performance

phaedrusHow much do using smart pointers, particularly boost::shared_ptr cost more compared to bare pointers in terms of time and memory? Is using bare pointers better for performance intensive parts of gaming/embedded systems? Would you recommend using bare pointers or smart pointers for performance int...

 
@refp not good enough. It's missing move semantics and std::unique_ptr.
 
make a good enough question then, and close that linked question as a duplicate of yours!
;-)
 
lol
 
I'm a bit confused about what to do about a question such as:
http://stackoverflow.com/q/11483877/1090079
 
Asking for benchmarks is a stupid question. I should just write one myself, but I'm too lazy to explore every aspect of "smart pointers"
 
1:40 PM
I answered, but it's "obvious" that OP is doing something wrong..
5 mins ago, by refp
I could rewrite the question and post it myself I guess..

*is it possible to make if (thread.joinable () && (thread.joinable (), true)); thread-safe?*

do you think it's a valid question to post on SO, or is it lame?
^ would people be interested in such?
opsie!
fuck, I cannot edit it.. of course it's supposed to be if (thread.joinable () && (thread.join (), true));
btw, questions with more than one question - are they really permitted?
http://stackoverflow.com/q/11484234/1090079
 
@refp not really, personally
sounded too much like misguided existential angst about threading. Unless that is your authentic shared fear, I don't see the value in raising questions because someone else was fretting it
 
0
Q: How to decide if a template class has a certain member function?

petersohn Possible Duplicate: Is it possible to write a C++ template to check for a member-function's existence? I need a way to decide if a template class has some member function, so that I can call different specializations for a functions. For example, I have the following classes: clas...

i disagree that that question is a duplicate
the other question was asked abut c++03, and this one is with c++11 in mind
 
1:56 PM
@sehe I just thought that it might be a question that will appear in the future
@JohannesSchaublitb the other question wasn't explicitly stated to contain only c++03 answers, even though it was asked during a time when c++03 was the assumed language the question now have many c++11 answers - therefor I do think it's a duplicate
 
@refp but it was asked when c++11 wasn't born yet
so it is not a duplicate
because the meaning of the question is different
 
@JohannesSchaublitb but did you see that I changed an answer to a question, just because you said so? ;-)
4
A: Non-static Data Member Initializers / Calling constructors of std::vector

refpIs there any hack I could use? If your only goal is to not having to "explicitly" specify the type twice you could use decltype to provide some aid in your quest: class Obj { std::vector<int> v1 = decltype(v1) (2,3); }; Also remember that typedef/using is a great way of not having to ...

even you should be satisfied with that answer, right?
 
@refp i saw it already and upvoted it
 
@JohannesSchaublitb meh, and here I'm walking around waiting for that magic litb vote
 
1:59 PM
lit/b/
 
@JohannesSchaublitb if it's not a duplicate all answers with c++11 in mind should be deleted from the question I consider to be the original, is that what you are saying? :-/
what.. the .. fuck
 
LIckTheBoobs
lol
@refp yes
 
but this is a question for meta.. are we supposed to keep legacy question/answers or should we update them as the languages evolve?
 
all those answeres are inappropriate
 
I vote for a middle way, let the question be written the way it is (it is/and was about a problem in c++) and let the answers regarding the new standard find their way up
 
2:02 PM
and let questions regarding the new standard be open
 
though I hope that moderators can change the accepted answer of an old thread?
nhaa, it's either closing them off as duplicates or close old questions because they are about a deprecated version of the language..
 
hm, shouldn't that be "the answers all are"?
 
That would screw up the meme. :P
 
yes, good! :-)
 
2:08 PM
AliveMG
 
I ate something I shouldn't have done
was super sick last night
missed a thing I had to go to
 
That's fucked up.
^ Helps against everything.
 
@RadekSlupik it doesn't help against ^
 
@refp downvote.
 
@RadekSlupik what about the answer written? where am I going to save the future with it?
 
2:11 PM
Any OP who changes his question gets an instant down vote from me.
@refp delete or edit it
 
@RadekSlupik I edit it leaving a nasty remark about OP being stupid as fcuk
 
@refp Can you post a link to the question? I don't like my rep not ending in 0.
 
3
Q: Command line arguments with spaces to a C program through shell-wrapper script

dubbalugawhat does it take to make my program accept command-line arguments with spaces? Yet-another EDIT: I have just recognized that the program is started from a shell-script that sets up the environment for the execution of the program. As there are some external libraries, LD_LIBRARY_PATH is set to...

 
Thanks. :)
 
Figured out a neat trick with DXGI that isn't officially listed on MSDN
Haven't tried it on older versions of Windows yet, but it appears to at least work on Windows 8
SafeComPtr<IDXGISurface1> dxgi;
		OverlayUITexture->texture->QueryInterface(IID_IDXGISurface1,(void**)&dxgi);
With an ID3D11Texture
The trick is to make the texture a render target in its usage flags
then it works
 
2:36 PM
What's the proper way to read a file line by line?
I want each line in a string.
guess just getline and fstream
 
Ye gods, SWTOR requires 25GB of space.
 
getline requires a char buffer as input, why can't I provide a string?
 
@Nils std::getline (the free function in <string>) is what you want.
 
@IDWMaster That's supposed to be legal.
 
ah that's different from fstream
meh
I thought people were referring to C's getline when they said use std::getline, didn't realize that there are two in std
 
2:49 PM
oh, wait
(void**)&dxgi?
that's super bad.
 
9 hours ago, by Domagoj Pandža
Hello. C write I. Me no know English but good programmer very.
 
lol
 
Goodmorning fellas!
 
Just thought I'd bring this up.
@NicoBellic Good morning indeed.
 
@CatPlusPlus Only? Not bad.
 
2:53 PM
"Errors are signaled by modifying the internal state flags:"
Of what? The stream passed by reference?
 
yes
 
What else?
 
@refp i doubt it, unless the OP was right. I don't suppose he is (why would a thread suddenly become unjoinable? I can only think of: if it has been detached in the mean time. In that case, there is a clear violation of separation of concerns, I feel)
state() ios::fail/bad/eof flags. None is is.good().
You can set streams to throw exceptions instead, though: is.execption(flag_mask) IIRC
 
yes
 
3:02 PM
grizzly!
 
So I read a (text-) file line by line, where each line contains two int values. What I currently do is using an fstream then calling std::readline until eof. For each line I also need to split the string at the space pos and then put these two strings through an istream to convert them to ints.
I'm sure there is a better way
 
std::copy(std::istream_iterator<int>(std::in), (std::istream_iterator<int>()), std::back_inserter(myvector))
job done
Doesn't validate that each two ints are separated by newlines, though
 
@sehe some other thread is joining on it, or the thread finishes in-between the call to joinable and join
 
@refp that's not an issue. The thread info is still available. Otherwise any join would be undefined
 
kosaraju.cpp:4:10: fatal error: 'unordered_map' file not found
Aaaaahhh
fucking Apple why can't they just include proper C++
 
3:12 PM
@sehe it's a matter of preventing an exception from being thrown, something the author of the book the original OP was talking about wasn't thinking about
 
@refp does join throw an exception on a thread that completed? Surprised
 
Woot! I wake up and I'm repcapped at exactly 50,000 rep. Morning everyone.
 
woot morning!
 
@sehe yes, it throws a std::system_error
 
@refp wow. I was amazed that you get a system_error when pthreads are not available/linked, but this tops it. I'm starting to dislike std threading support
 
3:15 PM
(and there isn't any version that doesn't throw an exception, which is quite odd if you ask me, but heck)
 
@refp odd, to put it mildly
 
mhm..
 
Ah the Xcode 4.3.3 say something about 11
 
@Nils If you want more convenience and input format checking, use Boost Spirit for a task like this: liveworkspace.org/code/99aeff66fd7bb01be707b9574dd53bdb
 
maybe it will even work
@sehe no thanks, just for an algo-class assignment
 
3:24 PM
This live demo also uses Karma to output the parsed data in similar format
@Nils Ok, nevermind then
@RMartinhoFernandes Woot, being able to live demo Spirit snippets is kind of cool: liveworkspace.org/code/99aeff66fd7bb01be707b9574dd53bdb
 
aaaaargh
 
doggy dogg :)
 
you join the NASL stream and they're streaming some shitty meaningless qualifier
 
@JohannesSchaublitb Do you want fries with that?
 
why can't people just accurately categorize their content?
I came here for Puma/MC, not Echo/TT1
 
3:26 PM
@DeadMG I'm content. Categorically so.
@DeadMG meaningless qualifier - so, register?
 
anyone else using clang++ on a Mac?
 
3:42 PM
@Mysticial I've decided to aim for rep cap + 7 accepted answers landing at 305 rep per day, seems more than doable
@Nils thanks for the reminder, I'm going to download and put it into my system asap
 
@refp Go for it. :) I was never able to sustain more than 3 accepts back in my early days.
 
if only mac had a good binary package manager :/
 
@Mysticial many accepts is a function of many FGITW answers mostly, IMO
 
@refp It does not seem to affect the command line tools
 
@sehe I'd rephrase it as many answers would be a function of FGITW. Many accepts would depend on how well you can answer them.
 
3:47 PM
still get either the error that unordered_map is missing or that it doesn't know std::string.find(..)
if I use -std=c++1 -stdlib=libc++
 
@Mysticial Don't agree. If your strategy is to get much rep with few answers, then by definition you won't get 7 accepts a day.
 
@Nils hmm?
 
@Nils I assume that it's a typo on your part and that you really meant -std=c++11
 
@Mysticial In that sense, many accepts require many answers. And yes, that would require you to answer to every odd question, which tend to get accepted quickly, not on the best merit
 
Still, I hope you're on Lion, otherwise Clang doesn't ship with libc++.
 
3:49 PM
@sehe That would've been me during my early days. Maximum rep with as little effort and few answers as possible.
 
@sehe I'm usually not the fastest answerer, even though I'm fast typist.. or well, I probably would have been first most of the time if I only gave one sentence answers.. that isn't the case (or at least I try not to)
 
I had a relatively low accepted rate back then. Usually 2 for about 5 - 7 answers a day.
 
I don't think I've ever had a day with seven accepts, except maybe, by accident due to people upping their accept rates at the same time
 
@sehe what's "fries with that" ?
 
@EtiennedeMartel yes.. just a moment
 
fries with folks?
lol
 
You didn't seem to have much to say. So I prompted you 'anything else'
Which reminded me of the takeaway counter :)
 
I don't see myself as a "fire answers everywhere hopefully nailing it" kinda guy though
 
cool seems to work now
and clang warnings show up immediately
 
@Nils compared to?
 
3:52 PM
@refp Your answers are definitely long enough to where you wouldn't be considered a repwhore by any standards. (I used to do a lot of one/two liners.)
 
@Mysticial currently I am a rep-whore, I just hide it in long (and hopefully good enough) answers I guess
 
Xeo
14
Q: why sizeof(13.33) is 8 bytes?

karthikWhen I give sizeof(a), where a=13.33, a float variable, the size is 4 bytes. But if i give sizeof(13.33) directly, the size is 8 bytes. I do not understand what is happening. Can someone help? Thanks.

^ this was repwhoring
 
@refp last xcode releas
 
@Nils I've never used anything related to the xcode package (besides getting the first compiler on the system, from there I've used.. other things)
42
A: why sizeof(13.33) is 8 bytes?

karthikThose are the rules of the language. 13.33 is a numeric literal. It is treated as a double because it is a double. If you want 13.33 to be treated as a float literal, then you state 13.33f. 13.33 is a double literal. If sizeof(float) == 4, sizeof(13.33f) == 4 should also hold because 13.33f is ...

 
124
Q: ~x + ~y == ~(x + y) is always false?

SteveDoes this code always evaluate to false? Both variables are two's complement signed ints. ~x + ~y == ~(x + y) I feel like there should be some number that satisfies the conditions. I tried testing the numbers between -5000 and 5000 but never achieved equality. Is there a way to set up an equat...

Take a look at all the trivial edits...
 
3:55 PM
@refp That's the good kind, I guess. At any given point in time the site will have an average number of say 20-40 active repwhores (number skewed by my imagination only including tags I monitor...), with an extended groupd of 'near-rep-whores' (would-be, or just-not-very-active-now). They all burn out in 6 months to a year.
 
that was the longest answer I've read stating.. well, what could be written as; "floating points without any extra notation is considered to be of type double"
 
Except Jon Skeet.
 
Xeo
@Mysticial Really, I think those are acceptable, the other one was just adding / removing the math tag over and over to bump it.
 
@sehe I count as a 'near-rep-whore' I guess
and yes, I will probably "burn out" the minute I start modeling abroad again, start going to too many parties and forgetting the geek on the inside.. it happens from time to time
 
@Xeo Yeah, that one was pretty blatent. That's what the auto-wiki is for.
 
3:57 PM
Yeah. I'd be surprised if you kept up a 7 accepts a-day stride, though. I think that becomes more feasible ones you already have a considerable rep (which makes askers just a little more likely to accept an answer early)
@refp Get a job in the business. Hard to forget about jobs
 
@sehe during my first week I had roughly that kinda strike (which could be explained by "low rep user writing long answers, reward that mother fucker")
@sehe I do work as a software developer as well, but that doesn't make me spend time on SO
 
@refp like textmate?
 
I would probably spend more time on stackoverflow if I didn't work with programming, then I would have this big hole to fill
@Nils oh, are we talking editors? I'm a *nix-boy, vim is the only thing for me.
 
4:11 PM
@refp and how do you debug
print myString
in lldb only prints crap
 
@Nils gdb, of course..
 
does that work with clang?
 
@Nils erhm, yeah?
 
it doesn't seem to
 
@Nils how come?
 
4:17 PM
and with gdb you also do not have any reasonable support for std containers
it does not stop on breakpoints
 
@Nils are you giving clang the correct debugging flags?
@Nils you do if you really want to.
 
I don't give any flags, Xcode does.
 
@Nils in other words; you have no idea of what you are doing.
time to clean the apartment.. peace!
 
Ell
@refp wait - you know about the apartment?
 
@Ell are you sure you want to have this conversation? remember what is being said about the apartment.
 
4:23 PM
ouh dear
so I'll just start my windows box
There should at least be a howto guide on the net :(
 
Ell
@refp oops yeah of course, we can't betray the oath of secrecy we took when talking about the apartment
 
4:44 PM
I edited the javascript closed question
 
4:57 PM
this seems to be very slow
ah wow
but just in debug mode
 

« first day (637 days earlier)      last day (4304 days later) »