« first day (1348 days earlier)      last day (3599 days later) » 

12:08 AM
FUUUUUUUUUUUUUUUUUUCK, the boost visitor methods must be const but the IRBuilder's creation methods arent
T_T
 
I heard you don't have to attend shit for a master's degree, and there's no final exam
only a project presentation
that sounds alright
the college's website confirms that
 
user3010322
@Borgleader const_cast like a champ
 
@ThePhD couldnt i just volatile the builder?
 
0
Q: How to block alt+f4 in your windows app?

user3251225I was reading the response provided here: http://www.experts-exchange.com/Programming/System/Q_10299727.html How would I implement that into my win32 app? Where would I call that? I don't get how to use it. Can anyone explain? Thanks

...too naive. Just too naive...
 
well that was quick
(inb4 thats what she said)
 
12:14 AM
Expert Sexchange
 
Export exchange
 
12:38 AM
YO BRAP BITCHES
 
double 6.160000e+00
; ModuleID = 'JIT'
Exiting...
great success. (for tiny tiny values of great)
 
Good morning.
 
apocalypse please wait buffering
 
1:37 AM
In today's world, you can live days at a time without living the home with all your goods delivered at home and get your work/study done through the internet. But you have never had less privacy because all your online movements might be tracked by various companies/government organizations
 
1:48 AM
oh no now they'll know I was listening to the same song on repeat for a half an hour
companies will label this as "not a team player"
 
In today's world, the Lounge is a total ghost town
 
are you a spirit?
 
whooooooooooooo
^ spirit sound
0
A: Error in Finding const char* key from the map

Lightness Races in OrbitComparing two const char* for equality does not do what you think it does; it compares pointer values, not the strings that the pointers point to. With string literals this may occasionally "work", but you have no way of knowing that two string literals even with the same characters in it will be...

 
This revision list just looks like those old DOS loading widgets ([\]...[/]...[\]).
 
upvote the spirit
@MarkGarcia ahaha
BoltClock is horribly wrong and he should know better than to perpetuate an edit war like that. I sort of see where he's coming from, but he's pissing into the wind on that one.
Of course he's taken the "lalalalla can't hear you" approach and abused his powers such that nobody can comment to that effect, so he'll never know. Until, I suppose, someone pings him ahem
The intent of the question is very clear
 
2:01 AM
I love how the guy also edited his answer accordingly.
Or the guys.
 
;p
24 is SO FUCKING GOOD this week
not quite season 1 but definitely back on form
 
@LightnessRacesinOrbit Check my edit, I think it is helpful. Not sure it is correct.
 
and I still can't quite believe that I'm back to watching 24 every week \o/\o/
@CaptainGiraffe The template arguments are totally unnecessary and, without them, the entire example is borderline pointless ;)
Also you used const incorrectly
Thanks though
 
> Community is available on DVD only
why netflix... why
 
ready for the hd
 
2:14 AM
eh... i have access to it now o.o
mwahahaha
 
Hello, World!
Your favorite Android programmer is here
 
no that would be @chmod711telkitty :P
 
^^ lol wtf?
 
pft
telkitty does android?
 
@Mysticial How many people did you plonk O.O holy shit
:P
 
2:23 AM
I just resumed from standby.
 
@Code-Apprentice She's an iOS guy. :P
 
yesterday, by chmod 711 telkitty
if view C is stacked on to view B which is on top of view A, how do I remove 2 views to go straight from C to A on Android programmatically?
ahem
 
@chmod711telkitty Did you ever figure that out?
 
@Mysticial That just happened to me last week. I didn't care much -- I thought it was just the ultra-slow connection.
 
@Mysticial do you have a NAS?
 
2:27 AM
@Borgleader no
 
Aw :(
 
anyone on hand to help me think through a design problem? I don't need coding help as much as abstract thinking help, i.e. how to approach something
 
@Borgleader thanks :P
I am writing a watercraft management database for a local lake association
they issue tags/stickers for the boats each year, and the season runs from May 1st through April 30th each year
there are a few different approaches I can take to track this
I can have a model/entity for Tag and another for Boat/Watercraft, and links tags to boats via a foreign key relationship
 
@Daи start talking typing
 
2:31 AM
this would require writing queries to find tags that are 'current' using some convoluted way of checking if it is 'in season'
 
if I have any ideas, I'll pipe in ;-)
 
but they don't really care about 'old' tags after the season is over, so there is no need to track historical data for them
so I thought of eliminating the Tag model/entity for simplicity and just creating fields in the Watercraft/Boat model/entity such as tag number and a value representing the season (year)
but then I would need a method that wipes/resets all the tags annually, and what if someone paid early or whatnot? Unless I make it a user option to 'reset' tags, but that seems dangerous
so, any recommendations? one entity or two? how to handle such a reset?
<end rant>
chirp chirp
 
2:46 AM
@Code-Apprentice no ... had other more urgent issues to resolve
 
are the views in fragments or activities?
If they are fragments, you should be able to just pop them from the backstack.
 
@Code-Apprentice activities, unfortunately
 
okay...now I'm confused...why are you pinging me with an answer to a question directed at telkitty?
 
@Code-Apprentice disregard, I was pretty confused too apparently ;)
 
3:04 AM
@Code-Apprentice from a class/view extends ListActivity
 
hmm...I'll need more details to get any ideas of what might work for ya.
I am logging out within the next 10 mins or so, but I'll be back tomorrow if you want to ping me.
 
@Code-Apprentice To pop out the current activity, it can be done by calling "finish();"
 
A is the main_activity
B is a map
C is a list
 
at one time, my app had activities two levels deep. I started both activities with startActivityForResult() so that I was able to call finish() in the onActivityResult() of the first started activity.
 
3:11 AM
A goes to B, but a user can choose to go to C after B
 
I hope that made some sense.
Do you use startActivity() or startActivityForResult()?
 
yeah, pass some parameters back
then use the parameters to figure out what to do
 
that's one possible solution
 
Cool thanks
Any 'dates' with mum lately? ~_~
 
nope, one day with her was enough for a while
 
3:17 AM
lol
 
user3010322
....
 
user3010322
unreachable, not doing its fucking job
 
user3010322
making me chase a fake bug for a day
 
user3010322
Fuck VC++
 
4:05 AM
To everyone who responds to everything by saying they've 'lost their faith in humanity': Thanks--I'll let humanity know. I'm sure they'll be crushed.
11
 
@MarkGarcia I have apps on ios, andriod & windows phone ... did programming on linux, windows and mac using C++, Java & C#, not mentioning PHP ...
 
#woah I have 1€ from those stupid cards already
 
4:53 AM
paper work paper work more paper work
I want to fulfil my life with meaningful things
 
I guess now I need SSD
:lol:
 
0
Q: If 90 points equal 40%, what'd be 85 and so on?

user3773644A full mark for a test is 90 points (instead of the usual 100), and the test is 40% of a subject. If students get 90 points, obviously they get full 40% for the test. Then, how do we work out if, for example, a student gets 85 and so on?

^^ well...
 
Arithmetic is hard
 
5:16 AM
yikes
Someone actually answered it
Why?
 
why do you care?
 
Because SO
Almost 5€ :toot:
 
That would be 6.80 US Dollar.
^ Proof that Europe > USA.
:P
 
So much clicking
I'll probably have to revisit prices tomorrow for the low-volume shit
It's ridiculous and amazing at the same time
 
0
Q: If 90 points equal 40%, what'd be 85 and so on?

user3773644A full mark for a test is 90 points (instead of the usual 100), and the test is 40% of a subject. If students get 90 points, obviously they get full 40% for the test. Then, how do we work out if, for example, a student gets 85 and so on?

he actually asked on Mathematics :v
 
5:29 AM
And they answer shit like that :lol:
 
@CatPlusPlus SO isn't any better. :)
 
5:53 AM
all 3 comments assumed Mac OS X and suggested XCode :v
 
user3010322
Loool.
 
user3010322
Well, to be fair, XCode is packed with clang.
 
user3010322
Can't really argue against clang as being a damn good compiler, and I haven't used XCode in a long time. It was shitty though, even for just regular C development.
 
Haven't used Xcode in a long time myself even though I'm on mac. (I use QtCreator.)
There are a lot of replies from the lounge to Scott's recent blog post.
 
6:09 AM
lol DeadMG arguing with Scott
 
user1804599
@sehe ok
 
rule-of-5 becomes rule-of-4 if you implement both copy-assignment and move-assignment with operator=(T by_val); ..?
 
user1804599
6:25 AM
Rule of Complexity.
 
6:36 AM
@StackedCrooked I don't think so... else you could argue you could do same with constructor, no?
 
user3010322
@StackedCrooked That forces an extra copy, unfortunately.
 
Last night Scott Meyers appeared to me in a dream. I asked him if C# had WeakHashMaps. Why would I ask him that? :-(
 
@FredOverflow why would you dream of him?
 
user3010322
T arf{0};
T woof{1};

arf = woof; // copy-constructed by_val, then copy-assignment begins
arf = std::move( woof ); // behaves mostly the same
 
user3010322
@StackedCrooked ^ the problem
 
6:47 AM
@ArneMertz Probably because I watched the Vasa talk twice yesterday.
 
you watched the same talk twice on the same day?
 
@StackedCrooked must have been something/someone he likes :P
 
it floats his boat
 
@StackedCrooked I watched it once with a colleague during work, and once at home in bed with pasta and a glass of wine.
(kidding about the wine, but I had pasta)
 
@dZkF9RWJT6wN8ux I read your Tao of programming and I have this insuppressible urge to hurt you, is it normal?
 
6:56 AM
@FredOverflow Yeah, I totally see Scott as the latenight blockbuster guy....
 
@StackedCrooked Programming pun I've never done yet: float boat;
 
@chmod711telkitty oh? show! I need to divert that same urge from the Embarcadero guys to someone else from time to time
 
If the Tao is great, then the operating system is great.
If the operating system is great, then the compiler is great.
If the compiler is great, then the application is great.
The user is pleased, and there is harmony in the world.
This is so sweet, it is repulsive ...
 
Gosh, Freddy, you are no doubt one gigantic geek :p
but that's why the loungers <3 u here tho
 
7:17 AM
@chmod711telkitty wuv u 2, 711
> this clarifies that move assignment operators need not perform the traditional if (this != &rhs) test commonly found (and needed) in copy assignment operators.
Wow, I didn't know that!
 
not like you need to write your assignment operators anyway :) (usually)
 
user1804599
7:30 AM
 
what what what
 
mawning
 
@Feeds you is a very funny guy
o_0 could we change our SO name to 'Feeds'?
 
user1804599
lol, this (NSFW) is in our #random channel on Slack.
 
user1804599
As a response to a screenshot of a nice UI design.
 
7:36 AM
dat image
 
@FredOverflow good catch. However, "object definition"? Really? That's not common c++ jargon anywhere I looked
 
@rightfold 'our' slack... the one you use for work, or the one we used for unconference?
 
@rightfold maybe........... mark it as nsfw
 
user1804599
@thecoshman the one for work.
 
@sehe Fair enough. Nevertheless, it is technically correct.
 
7:37 AM
@rightfold o_0 smooth
 
user1804599
in C#, 31 secs ago, by Broken_Code
So i read somewhere that i should debug in release and that worked. I changed to sql and well just forgot about the release
 
user1804599
LOL
 
user1804599
7:54 AM
554
A: Are self-closing tags valid in HTML5?

QuentinNot exactly. If we get the syntax right (it is / not \) then: In HTML 4, <foo / means <foo> (which leads to <br /> meaning <br>&gt; and <title/hello/ meaning <title>hello</title>). Browsers did a very poor job of supporting this and the spec advises authors to avoid the syntax. In XHTML, <foo />...

 
user1804599
I like that HTML4 syntax. :[
 
user1804599
Much less verbose.
 
I have a preference, but I don't want to waste a day talking about it
 
Ell
howcome xhtml never became popular?
It seemed like a sensible idea
 
user1804599
AFAIK it was very popular.
 
Ell
8:01 AM
Oh right.
 
user1804599
I wish HTML were a subset of XML.
 
Ell
@sehe My mother and brother. And oops, I wasted about 6 hours last night :/
@rightfold Me too! :(
 
user1804599
XML-to-HTML converter!
 
@Ell wait. they booked tickets for you, or vice versa
 
Ell
@sehe They did for me
Without asking me if the dates were okay >.<
Ah well :P
Anyway, I'm off to see a person about a person
Later folks :)
 
8:06 AM
@Ell Because it didn't solve anything, and only created more problems
 
> git rebase master
First, rewinding head to replay your work on top of it...
fatal: Out of memory, malloc failed (tried to allocate 454436 bytes)
I think I need x64 build of git
 
Or stop storing large binaries in the repository
 
I don't store large binaries. Nor anyone else do.
probably
 
@CatPlusPlus what we need, is a new spec to unite all others!
 
> probably
guess again. I made an educated guess.
 
user1804599
8:15 AM
uneducated guess
 
If you run out of memory with typical text resources... that should be filed as a bug, really
 
@sehe well it's a huge repository, a fork of chromium
 
Xeo
TIL: C# doesn't serialise a member that is marked with [XmlElement("...")] if it only consists of a getter, and is missing a setter.
And there's no warning.
 
user1804599
C# is terrible.
 
Xeo
That behaviour is increadibly silly
 
8:18 AM
That's not C# thing, that's CLR/BCL thing
 
user1804599
The Ministry of Silly Behaviours
 
Xeo
@CatPlusPlus It's silly in any case
 
Oh, and +1, Lightness. Nice answer (as usual). — WhozCraig 5 hours ago
innit
 
>
It's a bit dark humor, and you know, dark sense of humor is like a pair of legs, not everyone has it.
 
@Xeo It kinda makes sense if you consider that read-only things make deserialisation impossible
 
8:21 AM
@sehe !
 
You really should make only passive data holders serialisable, and read-only properties don't really belong there
 
@CatPlusPlus ?!? that almost makes sense
 
Xeo
@CatPlusPlus No, it doesn't. So what, I can't deserialise. I don't care, I only want to serialise this shit.
 
@Xeo ah in that context, it does exactly what you can expect yes
 
Anyway it's documented to only work for public fields and public r/w properties so :v
 
8:23 AM
@Xeo but there's TFM
 
Xeo
Doesn't make the behaviour any less silly
 
Makes the contract stronger vOv
deserialise . serialise === id
 
Xeo
Maybe. If it would issue a warning or something at least. As is, it silently ignores it.
 
How would it issue a warning, it's a library thing
 
Xeo
meh
meeeeeh
 
8:25 AM
CLR doesn't have a runtime warning framework afair
 
Doea anyone happen to know what Debian packages like gcc-4.9-multilib are used for? The description isn't that clear.
 
Maybe R# warns
Also 6.15€ on selling Steam cards and TF2 items :lol:
Maybe I should start playing TF2 again
 
@FaheemMitha Silly things like building with -m32 with a 64-bit compiler.
 
I.e. what a normal compiler should be able to do
 
@CatPlusPlus More specifically, libs for it to link with.
it is able to compile, just doesn't have libs to link with.
 
8:49 AM
Is anybody aware of the reason why Boost Type Traits does not have a "has_default_constructor" trait? Is the functionality available somewhere else in Boost? (Note: I am forced to use c++03)
 
Hi guys
 
hi
 
@Griwes So, nonstandard stuff?
Anyone who knows boost here? I'm having problems using 1.49 with gcc 4.9 (backported to wheezy).
The code giving problems seems to be
#if __cplusplus >= 201103L
namespace std
{
// We handle size_t, ptrdiff_t, and nullptr_t in c++config.h.
using ::max_align_t;
}
#endif
 
@Massimiliano With C++03 you're out of luck.
 
in /usr/include/c++/4.9/cstddef
no, hang on, the problem is with clang.
 
9:01 AM
Sorry to question dump this, but I hope the mild humor in the question can alleviate any anger I inspire.
0
Q: Are there OpenCL bindings that aren't written in C/C++ style?

rubenvbThe current OpenCL C++ bindings in CL/cl.hpp are a very thin wrapper over the C OpenCL API. I understand reasons why it was done this way, although I actually really don't. Are there any existing alternative wrappers which rely on exceptions as error handling, allowing one to just write code lik...

 
@FaheemMitha Standard doesn't care about the bitness of target (except for fixed-size integer types).
 
Library recommendation, off topic
 
3
A: How to check if a template argument is default constructible

Konrad RudolphThis is a classical case for SFINAE and enable_if. In another answer, Potatoswatter has already posted a type trait is_default_constructible that can be reused here: void createObj( typename enable_if_c<is_default_constructible<C>::value, void>::type* dummy = 0) { C* objPtr = new C(); ...

 
@CatPlusPlus Yah, I know. Still hoping someone will jump in anyway :-p
Thankfully, the might Hammer is only for close-as-dupes :)
 
@Massimiliano Dunno whether boost conversion ever made it out of the sandbox: lists.boost.org/boost-commit/2011/07/35845.php
 
9:03 AM
@Griwes Um, sorry, not sure what you are replying to here.
That error I was getting? Looks like it was clang after all.
I thought for a moment is was with gcc itself. I did a backport of gcc 4.9 to Debian wheezy, and thought I had broken something.
 
@FaheemMitha -m32 forces a 64-bit compiler to build a 32-bit binary. It has nothing to do with the standard, really.
 
@Griwes Ok. Does that actually work well in practice? The Debian multiarch people thought not. They told me to use a chroot if I want to build 32 bit on a 64 bit system.
 
@FaheemMitha it sucks to install both 32 and 64-bit libraries, because well, lib/lib32/lib64 and perhaps shared include directories which aren't always possible.
But apparently people use it nonetheless.
I'm all for Clang's -target option and decent <target>\[bin,lib,include] directories, but no one is listening.
 
@rubenvb Ok, so one can safely ignore gcc-4.9-multilib?
 
@FaheemMitha well, depends on what you want.
 
9:09 AM
@rubenvb Not sure what that is. Not a clang user.
@rubenvb I don't think I'm inclined to try to build 32 bit targets on a 64 bit system using a 64 bit compiler. If that is that the idea is here.
 
@FaheemMitha It's multilib on steroids: it effectively tells clang to build for any target, not just your compiler's specially built for thingie.
@FaheemMitha that's exactly what multilib is.
 
Clang is a native cross-compiler.
 
@rubenvb Ok, so does that work properly?
 
GCC needs to be rebuilt for every target for it to work sanely.
 
@Griwes While gcc isn't?
@Griwes hmm, so clang is better in that respect?
 
9:10 AM
@FaheemMitha No? What @Griwes said.
 
The term is 'retargetable' because C and C++ compilers still live in 100 years ago
 
@FaheemMitha Yes.
 
@FaheemMitha yes, if the target support is in the Driver (so the target's includes and libs can be found, and its linker is available)
@FaheemMitha Clang is prepared to be lightyears ahead in that respect.
 
@rubenvb To summarize, works for clang. And how does it work for gcc in comparison? The debian multiarch folks seems to think it didn't, though I didn't keep a transcript of the conversation.
 
@sehe Thanks, I have already seen the post and implemented a solution along the same line. I was just wondering if there was any subtle cause for not inserting a similar function into Boost Type Traits
 
9:13 AM
Are even the notification bells customized across chat? Sounds different from the U&L bell.
 
Xeo
SO has special ping sound, rest of SE has the another (but the same)
SO chat is also seperated from the rest of SE chat
 
@FaheemMitha yeah, each real target (i.e. OS and ABI variant) needs a full new GCC. For single OS/ABI and different architecture (x86/x86_64 currently the only ones this all is relevant for) the multilib -m32/-m64 "works". "works" because the search dirs are a mess, and installing 3rd party libraries in a uniform way is just a mess. Also, the GCC install on Windows overwrites the runtime DLLs with the "wrong" bitness in the <installdir>/bin directory
/rant
multilib is a cancer and should die.
It should have never taken off IMHO.
 
@rubenvb Interesting. This is the same as the Debian multilib? What's the alternative?
 
Instead, proper "native cross-compilation" or "retargetability" should have been envisioned. But that would probably go like a ---whirlwind---hurricane through the GCC codebase and leave us with nothing but bugs and stray globals.
@FaheemMitha NOTHING! Well, Clang, if you patch it up correctly, but it can't yet replace GCC unfortunately. Although it's getting very very near :-)
/rant/rant
 
@rubenvb ok
Is anyone here either a gcc or clang dev?
 
9:18 AM
@FaheemMitha Not that I'm aware of. I know some folks though. And I wrote some Driver code for Clang which hasn't been upstreamed yet :-(
 
@rubenvb Ok. So, dev in waiting? :-)
 
But @Puppy is using Clang/LLVM to write his implementation of his very own Wide language.
@FaheemMitha ha, dev in hobby. Not very skilled in the fancy stuff I fear.
But I learn a lot while messing around.
 
@rubenvb Well, everyone has to start somewhere. Even Linus Torvolds didn't know everything once. Or so it is rumored.
 
@FaheemMitha ah yes, as opposed to today :p
 
Is this a good place to ask C++ code questions? Or is the main site preferred?
 
9:24 AM
@FaheemMitha main site please.
 
user1804599
Main site.
 
user1804599
Hey, the link to the rules is gone from the starboard.
 
If you get no answer or don't understand something, you can try asking here, but you may be barked at loudly by certain well-named individuals.
@rightfold yeah, I noticed too.
 
@rubenvb ok
 
9:25 AM
That should be pinned by those with pinning powers.
 
well, I sometimes have poorly defined issues, which don't lend themselves well to a SE question format.
 
So instead just star the message above until someone notices please.
 
not witty enough
:v
The newbie hints has been out of the starboard for like 3 weeks now.
 
@rubenvb Pins for the pin god.
 
Welcome to world of lazy! Here is your tour guide; please read it, front and back
14
@rubenvb foool ^ that's how you do it
@Rapptz ^
 
9:35 AM
eh, good enough
 
@thecoshman I'm at work. I'm in boring mode
And hell, I can't even pin.
 
@rubenvb and?
 
It's an excuse, not a reason.
And also: why is the OpenCL reference "card" 8 pages long?
 
it's a big card
 
Because nobody expects anyone to print that crap anymore
 
9:38 AM
I need a tablet
I need a task to perform in OpenCL.
Oh, 2D Schrodinger time evolution.
That's mighty relevant to me right now.
Hmmm today is going to be a good day :-p
 
I need mo money
Also bought a knife and it is awesomely sharp
 
user1804599
emo cat
 
Xeo
@CatPlusPlus Don't let Robot within a 500m radius of it
 
It's ceramic, he'd probably cut his hand off
 
My flatmate has a ceramic knife; it scares the hell out of me.
 
9:44 AM
@thecoshman Thanks for the link.
 
user1804599
Hands are overrated.
 
Xeo
@CatPlusPlus Those are awesome.
@rightfold cue "Hands!" ad
 
@R.MartinhoFernandes because it's ceramic?
That means you can destroy it with a hammer.
Don't worry.
 
user1804599
What if he's also scared of hammers?
 
9:49 AM
fucking hell it's hot today
 
My chickens have become so pretty <3
 
@rightfold probably not if they're not ceramic. A ceramic hammer is pretty useless.
You should be scared if he has graphene knives
graphene is deadly sharp man
 
user1804599
I have a paper knife.
 
user1804599
Paper is sharp.
 
I'll buy a sonic one someday
 
9:52 AM
@R.MartinhoFernandes :P
 
@rubenvb Because it's sharp as hell.
I cut myself washing it already.
 
@R.MartinhoFernandes why... why did you wash it?
 
user1804599
I cut my cucumbers with an angle grinder.
 
user1804599
@rubenvb You can still harm somebody with it.
 
user1804599
But only once!
 
Xeo
9:54 AM
I cut my cucumber with a knife
 
user1804599
On occasion I do it with a laser cutter.
 
user1804599
Then it gets that nice crunchy burnt crust.
 
@thecoshman Because it was dirty?
 
That xkcd is mostly wrong. "People are stupid" refers to the relationship between the mean, the median and the mode of intelligence, which is ... interesting ... when faced with an onslaught of internetizens. Randall should know better than to throw around words like "average" without any precision whatsoever. But, then again, people are stupid.
 
People are stupid
 

« first day (1348 days earlier)      last day (3599 days later) »