« first day (458 days earlier)      last day (4491 days later) » 

12:00 PM
"Please note: In less than 18 hours, the English Wikipedia will be blacked out globally to protest SOPA and PIPA."
 
sbi
@RMartinhoFernandes Bad timing, though. Yesterday we had the first snow this season.
 
^ my 1st wikipedia access today
 
Xeo
Hmmm
If I get a linker error "unresolved reference", that should theoretically be resolved by linking in the appropriate .lib of the library, but that doesn't work... what else could be the problem?
 
It should be blacked out for a couple of days for people to really get it. Then for some more, so that they rage about it.
 
@Xeo most probably to do with linkage name mangling, e.g. you've forgotten extern "C"
 
12:04 PM
@Xeo see the error and existing declaration
 
Xeo
No, SFML is a C++ lib
 
@Xeo Nothing else could be the problem. You're not linking the library that has the correct symbol.
 
Xeo
And I just compiled the lib. :(
 
sbi
@Xeo Presumably with the wrong settings?
 
user142019
Good afternoon.
 
12:05 PM
It find it impossible to write a paragraph that is both short and accurate and not misleading. That's what my Wikipedia trip was all about, by the way. So, how inaccurate and misleading is this:
"An event is anything that happens that the software should respond to, and that results in a call or data, a message, that represents the event. For example, an event can be that thee user clicks a button or menu item. An event handler is a function or statement that is executed in response to a message, i.e. (whenever) a certain event occurs."
 
"that results in a call or data"? I fail to make sense out of this.
 
user142019
the user*
 
@AlfPSteinbach thee=>the
 
well, a message can be just data, queued somewhere, or on the net. how 2 express?
 
@RMartinhoFernandes "data, a message, that represents the event"
 
12:07 PM
"data transfer"?
 
I think "data (message that represents the event)" would be better
 
My problem is that "something results in data" does not compute.
Disclaimer: I'm not a native speaker, so it can be just bad wiring in my brain.
 
data - new item in queue
 
Xeo
> Today, I was texting my boyfriend, and I told him to come over.He asked how, and I suggested apparation. He told me that he hadn't gotten his licence yet. He's a keeper.
lol
 
"data item"?
"presence of data item?"
 
12:09 PM
@Xeo What's "apparation"?
 
Xeo
@RMartinhoFernandes You're not a keeper.
 
Dammit people, stop using fancy English today.
 
Xeo
It's not fancy, you just haven't read the right books.
 
Oh, Harry Potter.
 
user142019
Ok i willn't do that anymore…
 
12:15 PM
@RMartinhoFernandes before Harry Potter it was what ghosts did to people
 
That's "apparition", no?
 
Ah, I answered a question, but too lazy to check if answer is correct! :-)
0
Q: Is there a way to create template function specialization for std::array

Kirill BlazhennovI have a template function template<typename T> void output(T& value) { } Is there a way to create specialization for output std::array objects? Yes, I know, that arrays of different sizes are different types. ) I just hope that there is a way in c++11 Thanks!

 
sbi
9
Q: What Is the Difference Between Apparating and Disapparating?

SlytherincessWhat is the difference between Apparating and Disapparating? Are there specific circumstances wherein it would be called Apparition versus Disapparition, and vice versa? Calling it Apparition and Disapparation when coming from Point A to Point B, and then going right back to Point A somewhat mak...

 
Oh, I read it as apparition anyway and assumed it was a typo
 
12:27 PM
0
Q: Unable to pass stringstream to constructor

user837208I am using SimpleINI to get values into std::stringstream my_string; - CSimpleIniCaseA::TNamesDepend::const_iterator i; for (i = values.begin(); i != values.end(); ++i) my_string << i->pItem <<"\n"; cout<<my_string.str()<<endl; cout is working fine. I am able to pri...

Apparently I helped solve this problem. I can't see how.
 
lol
 
Oh wait, there's no server in boost.asio.
It's probably his class and he had a constructor with the wrong parameter type.
 
user142019
oh God what a useless tag…
 
@WTP [tag:compiler-errors] becomes .
 
12:34 PM
(if you say tag:compiler errors you get )
too slow :(
 
user142019
@RMartinhoFernandes thx
 
user142019
Little question. In a makefile, is it possible to have the file extension of a dynamic library (LIB=libbohr.(so|dylib|dll) ) automatically chosen depending on the OS?
 
@WTP plain make or autotools?
 
user142019
plain make
 
with libtool it's fairly straightforward
@WTP make -p -f/dev/null|grep -i "\.so"
suggests not
 
12:39 PM
@WTP plain make isn't a build system, it's a command execution program
you'd need at least some meta-make or autotools and/or libtool
 
Xeo
Yay, after recompiling the SFML libs it works \o/
 
> It is constructed often enough that every nanosecond of time spent in this ctor works out to around $6,000 of extra server hardware we need to buy.
Woah.
 
user142019
I should probably just write a script that generates the makefile then.
 
@RMartinhoFernandes where's that from?
 
1
Q: Can GCC be coerced to generate efficient constructors for memory-aligned objects?

CrashworksI'm optimizing a constructor that is called in one of our app's innermost loops. The class in question is about 100 bytes wide, consists of a bunch of ints, floats, bools, and trivial structs, and should be trivially copyable (it has a nontrivial default constructor, but no destructor or virtual ...

 
12:40 PM
@WTP or use existing autotools scripts
 
@WTP or call libtool manually even if you don't got full autotools
 
user142019
I'll use autotools.
 
Xeo
@RMartinhoFernandes That sounds just wrong.
 
@Xeo It's from a game programmer, if that means anything.
 
I wondered, can writing to bool be guarantueed to be atomic on a X64 or X86 machine?
 
Xeo
12:44 PM
It still sounds horribly wrong. It's the dimensions that are bugging me. 1 nanosecond == $6000? sure.
 
@TonyTheLion atomic as in not reordered with other operations I don't think so, you'd need atomic<bool>.
 
Xeo
Hm. The startup time of SFML is nothing to laugh about.
 
@Xeo Could be 1 nanosecond times 1 billion calls (real billions, not stupid American billions).
 
@Xeo it seems like avoiding constructing it so often would be simpler...
 
Xeo
5 seconds for an empty window sounds wrong
 
12:48 PM
@RMartinhoFernandes as in 1000000000 or 1000000000000? I think you will find that whilst the UK (and some other palaces) used to use that latter (1 billion = 1 million million) the UK (as well as others I am sure) now uses the 'American' system of 1 billion = 1 thousand million. Though a lot of people are still confused about such matters
 
@thecoshman Well, grow up and stop using silly American billions.
 
@thecoshman I just say 10^9
 
Xeo
1 billion in German is 1.000.000.000.000
 
@thecoshman the BBC prefer such standardised units as "olympic sized swimming pools" instead of SI notation
 
Xeo
1 Milliarde is 1.000.000.000
 
12:50 PM
@awoodland lol
 
@rubenvb well, yes, that is the best way. no confusion there :D
 
Here it's common to measure surface in "football stadiums" instead of square metres.
 
@awoodland the BBC can go to hell
 
@thecoshman science ftw!
 
Repost from yesterday (somehow this engaged some of my brain's music centres):
 
12:51 PM
@AlfPSteinbach meta data please (currently listening to other music)
 
^ "That guy sucks at walking." - thefistheserpent @YouTube
 
@thecoshman There's no confusion with "thousand million" either, so 10^9 doesn't solve much.
:P
 
@thecoshman Enslaved - "Path to Vanir" Candlelight Records
 
@AlfPSteinbach ergh... it's alright I guess. Not what I expected to be honest
 
@RMartinhoFernandes 10^9 is shorter
 
12:53 PM
Not when speaking.
 
@RMartinhoFernandes but saying 10^n is unquestionably 10^n. Saying a Zillion, is that thousand billions (correct) or a billion billion (wrong)
 
"thousand million" is longer than "ten to the ninth". Same amount of syllables.
 
But I speak Portuguese :P
 
@RMartinhoFernandes never realised Portuguese looked so much like English
 
You never heard me speaking either, I assume.
Anyway, 10^9 is still ambiguous. Is it three, or is it a thousand million?
 
12:58 PM
@RMartinhoFernandes what do mean? 10^9 = 1000000000...
 
Xeo
heh
 
@RMartinhoFernandes (╯°□°)╯︵ ┻━┻
 
Xeo
Is it bad that I'm seriously loling right now?
 
loling at what?
 
Xeo
1:00 PM
The last 5 messages
 
@Xeo depends, are you are a funeral ¬_¬
 
Some people are weddings. I never met anyone that was a funeral though.
 
I'm just going to ignore that typo
 
hi
 
@RMartinhoFernandes how can some one be a wedding (and yes I know what I just said)
 
sbi
1:06 PM
@DeadMG lo
 
@thecoshman smartphones
 
@rubenvb huh?
 
Did you know that Martin Luther King's "I Have a Dream" speech is copyrighted?
 
@thecoshman I'm going to ignore that reado.
 
@thecoshman huh? what did you (possibly not) expect?
 
1:15 PM
@AlfPSteinbach didn't expect metal
 
hm. is, like, deep purple metal? i'm confused about categories
nirvana is grunge, is it also metal?
 
sbi
@AlfPSteinbach I'd say so.
@AlfPSteinbach I think so.
 
and i think, like tool, some say it's desert rock, others that it's metal or j-metal or something
hey, if anybody knows the "correct" fibonacci ordering of the tracks on the whatever tool album, please let me know! :-)
 
How do I sum up all elements in a vector<bool>? std::accumulate doesn't seem to want to work :(
 
because vector<bool> sucks
use vector<char>
 
1:20 PM
I think most would say that deep purpler are hard rock, and nirvana is just grunge. But I find that debating musical genres is cyclical argument that never get's any where
 
I need the memory
and I don't want to write my own bit container
I could switch to unique_ptr<bitset<>> but that takes time
and asterisks
 
then you will have to write your own algorithm
 
You can sum it up by hand.
 
"hy guys . VS 2008 is good . almost same like VS 2010 .
Really i never have good comments for 2008 .
because may be i just used VS 2010 .
But 2008 is good in use ..
I am feeling good with 2008 ."
 
vector<bool> is not a valid container, so the algorithms are not guaranteed to work
 
1:23 PM
Or you could cheat with an operator+ for int and vector<bool>::reference ;)
 
size_t vector_bool_sum( vector<bool>::iterator begin, vector<bool>::iterator end )
{
size_t result=0;
while( begin != end )
result + *begin;
}
Easy enough
 
no it isn't, you didn't increment begin
or return the result :D
 
So much fail.
 
failboating
 
@DeadMG Or even change result!
 
1:25 PM
I didn't even +=
yeah
 
hehehe
 
facepalm
 
std::accumulate(v.begin(), v.end(), 0, [](int acc, vector<bool>::reference r) { return acc + (r?1:0); });
 
I'd be perfectly happy to palm you in the face
 
Wouldn't this work?
 
1:25 PM
@rubenvb result + *begin; should possibly be result += *begin;
 
yes yes keep rubbing salt in the wound
sheesh
 
yay!
 
friggin bunch of trolls
 
@rubenvb helpful trolls :D
 
1:27 PM
@thecoshman well, yes, that's true, about as helpful as ideone :p
 
I get a strange urge
to fix my UI framework up
 
@DeadMG you have a UI framework?
or will you write it from scratch?
 
@rubenvb ideone is the source of there power
 
had, I broke it and paused it in the middle of a large refactor :P
 
sbi
Unicornify and the SOPA/PIPA strike: http://unicornify.appspot.com/
 
sbi
I didn't know unicorns are a kind of fish.
 
@rubenv I think you were doing something wrong.
 
Ah yes, I forgot the 0
 
and that's how bad code is born
by not having sensible default values for algorithms in the standard library
that's one thing std::string got right, sort of
 
1:31 PM
hahaha
no, that's how things occassionally fail to compile
bad code is born by char*
 
sbi
@RMartinhoFernandes I suppose that, here in the C++ room, it's always a good first guess that someone has done something wrong, if something blows up.
 
std::thread is awesome. I impressed a Comp. Neuroscience professor with it today
 
I like how you were totally drawn to the red herring of blaming vector<bool>'s bastardness.
 
but he's easily impressed I gather.
Or I easily impress.
 
@sbi that's just general life. Few things go wrong with out it being some ones fault
 
sbi
1:37 PM
@thecoshman I dunno. I have the feeling that, in the .NET world, it's often assumed that it's the framework's fault. In C++ it's different. In 99.95% of all cases, I found out that I had to blame myself.
 
@sbi that's because C++ makes you so little guarantees
 
@sbi I present you my original argument
 
The world's stupidest spammer just asked me to correct the URL in a comment spam they just posted on my blog. I am now trolling for lulz ...
 
@rubenvb that's a misnomer
 
sbi
@thecoshman Did you have an original argument?
 
1:38 PM
@sbi well, it was more a point then an argument
 
sbi
@rubenvb My point.
 
@rubenvb C++ makes loads of guarantees, you just have to promise to play by the rules
 
sbi
@thecoshman Did you have an original point?
 
The original point was that Big Bang thing.
 
@sbi well, it was more a random sentence
 
sbi
1:41 PM
@RMartinhoFernandes Actually, the original point was what was before the Big Bang. After the Big Bang, it wasn't a point anymore.
@thecoshman Sigh. What do you consider your original "random sentence"? (ISTR you posting here a link to something you said 1.5 years ago.)
 
@sbi well, I don't really know any more
 
It was probably 1.5 years ago
 
@sbi There's no "before" the Big Bang.
 
sbi
@thecoshman Then please follow back the chain of referring messages until you arrive at the point where you presented your "original random sentence", find out what that referred to, and tell me.
@RMartinhoFernandes There was a singularity, no? Isn't that what mathematicians would call a "point"?
 
One can't possibly know what was before the Big Bang, because as the current accepted theory/explanation says, information from before the Big Bang is unaccessible
 
1:47 PM
0
Q: C++. Get typename of a data as type, not as string

user943998Before i start i will divide the problem into two parties: PART 1 : In c++ to get type of data we can use typeid but it's give you the data as const char* ,and i want it to return the type of the data. Example: int data = 20 ; float data2 = 3.14 ; char *data3 = "hello world" ; std::c...

 
There's nothing left
 
Ugh. Atrocious.
 
decltype?
 
I mean, just look at that mess.
 
typeid(data3).nam() lol
typeid(viet).nam()
 
1:48 PM
nomnom
 
@sbi well, I no longer care enough to be honest
Trying to do stuff at work; every step has been made as awkward as possible
 
boost::any _t = static_cast<t> (data);
cout << boost::any_cast<t> (_t) << endl << endl;
WTF is boost::any doing in there?
 
sbi
@thecoshman You should always care enough to be honest. Being honest is important.
 
Providing moral support?
 
Casting doubt on that code.
 
1:53 PM
@sbi "well, I no longer care enough, to be honest" that better for you?
 
There's void*, then a static_cast, and then the type is erased into any, and then brought back immediately with any_cast. OMG.
 
sbi
@thecoshman No, it's just as disappointing.
 
Also, lol @ << endl << endl
Gosh, I'll stop looking at that.
 
Xeo
Someone care to rant about how OOP isn't the one key that fits every lock?
 
I like the "end of endrant" tag at the end.
 

« first day (458 days earlier)      last day (4491 days later) »