« first day (1080 days earlier)      last day (3860 days later) » 

4:02 PM
@Mysticial gold.
 
morning everybody
 
Ell
afternoon
 
morning
 
my mother made a tasty carrotcake and yesterday I ate a piece.
 
@Jefffrey Someone call me?
 
4:07 PM
Not really. :/
 
sbi
 
@DeadMG morning
 
Did you watch the finale?
 
of course
 
4:12 PM
no spoilers
 
I freaking loved it man , never been so satisfied by a finale
@willj go watch it already !
 
I thought it was pretty satisfying
 
@A.H. in 1 hour's time, I will!
 
@DeadMG BB?
 
@Jefffrey Yeah.
not like the Dexter finale, which was distinctly un satisfying.
 
4:15 PM
Yeah, BB's finale was ok.
 
ok ?!
 
@Mysticial lmao
Oded > I am the hottest :P
 
Yeah, not the best finale ever, but conclusive enough to make me like it.
 
I thought it was kind of a pity that we didn't get to see what happened to any of the characters afterwards
especially Jesse
 
ok, I'm leaving until I've watched it
 
4:17 PM
@DeadMG tony still have to watch it (no spoilers)
 
Arrite, now I can start watching breaking bad :P
 
Xeo
Okay, that was scary. I didn't have internet for 20 minutes.
 
@DeadMG I liked the nod
 
me too.
 
@A.H. hai! :D how've you been?
 
4:19 PM
Too much of a relative happy ending maybe.
 
@Xeo I feel ya bro.
 
also the scene with skyler and admission
 
Anyway, aperitif time. See ya later.
 
@GamesBrainiac hey ! I am pretty good actually , Finally started to learn about haskell
 
Xeo
One day, we will finally be able to rename this room to Lounge<Haskell>
 
4:21 PM
@A.H. Then you have two options, either Pluralsight's "Haskell Fundamentals" or you can learn from "Learn You A Haskell"
 
never.
 
both really good resources
@Xeo Nah, don't think thats going to happen
 
@GamesBrainiac I went with learn you a haskell
 
Xeo
@DeadMG You'll drop dead long before that anyways, so that's not a problem (SCNR).
 
@A.H. Yea, great book with cute pics :P
 
4:22 PM
since I followed it a bit before for a course
 
@Xeo All too likely.
 
But one thing's for sure. For a compiled language to have such abstracted language features is truly remarkable. I mean Haskell gives you one hell of a tool.
 
is there like a portable version of gcc for a specific platform ?
like portable GCC x86_64 Linux ?
 
Xeo
.. what?
 
@A.H. "Portable...for a specific platform"? What does that even mean?
 
4:24 PM
@Xeo I have a lab thats going to use C++, and I don't wanna go back to pre C++11
 
@A.H. None that I know of
 
@JerryCoffin probably a terrible choice of words on my part, I mean like a toolchain I can carry on a memory stick
 
Xeo
that makes more sense
 
also, I doubt it.
 
My professors forced me to use pre-c++11
it was a nightmare
 
4:26 PM
@A.H. Ah, that sort of "Portable".
Sorry, but no, I don't have a good answer.
 
I think it should be doable
 
it's GCC
it probably depends on ten trillion shitty environment variables
 
in C#, 1 min ago, by Johan Larsson
@BoltClock a suggestion: if a flag is pure bs there could be an option to expose the flagger.
 
@A.H. I don't see a good reason it couldn't be, but given availability of tools and such, it might be easier to build a live-disk of Linux that included gcc, than to do gcc by itself.
 
@JerryCoffin don't think they will allow me to boot into it
 
4:29 PM
@DeadMG so carry a bunch of .bat/.cmd/.sh/??? files setting them for :D
@A.H. run it in a portable VM :D
 
@melak47 need to figure them out first
 
Xeo
What's the problem with updating GCC on the lab systems?
 
I highly doubt they will give me sudo access
fuck I just realized that it could be windows and VS2006 or some ancient shit
I would use my laptop but its too old for OpenGL 3
 
Ell
@A.H. you don't need it
can't you just put it on your user area?
 
Gawd, you can be so productive in Python. In java, anything takes ages to make and so many friggin quirks.
 
4:32 PM
@Ell ooh and just take the source with me
 
@JerryCoffin is it true that you get a unicorn painting after 200k?
 
Ell
@A.H. right :P
 
@Ell gcc 4.9 can probably be built by an ancient version
 
@JohanLarsson If so, they must have skipped me. I know nothing about any Unicorn painting.
 
Jeff Atwood on September 01, 2010

Have you ever wondered what happens when you reach 200,000 reputation?

Just ask Jon Skeet.

Apparently, what happens is … you get a painting of unicorns, signed by us, dedicated to you.

Estimated value? Priceless!

Joel and I actually sat down with Mr. Skeet himself to record Stack Overflow podcast #72 during the London leg of DevDays — in the very Google offices pictured here.

Although we sometimes joke that Stack Overflow was accidentally constructed as the ultimate Jon Skeet honeypot, I’d be remiss if I didn’t mention that Jon has a long history of answering people’s  …

 
4:34 PM
@A.H. too old for ogl 3? jeez
 
@melak47 best it can do is 2
 
Oh crap I just realized how close I am to the 200k mark
 
@A.H. how old is it? even my old laptop was dx11 capable :E
 
@melak47 like 6 years
 
ugh. that reminds me, I fucking hate AMDs OEM driver policy. "You are on a laptop. get the driver from your laptop's vendor"...and the vendor offers exactly one version, which is 3 years old
 
4:37 PM
@BoltClock Jon Skeet is only 37
damn.
 
@BoltClock Hmm...maybe it was only for Jon? I dunno. Maybe they tried to email me, but it was rejected as spam. I'll take a look...
 
@JerryCoffin maybe you are getting a 500 kg bronze unicorn
 
@JerryCoffin you are too old
 
@JerryCoffin That's what I thought
 
I suddenly had the urge to answer more questions
 
4:41 PM
in C#, 30 secs ago, by Reed Copsey
BTW - I didn't get the unicorn painting either ;)
 
@BoltClock Yeah -- just looked through email, nothing showing up. Pretty sure it was really only a one-time good deal.
 
0
Q: Run std::function getted by binary read

Erni CAI'm developing a application and my idea is store "apps" in files, like executables. Now i have that: AppWriter.c #include <vector> #include <time.h> #include <functional> struct PROGRAM { std::vector<int> RandomStuff; std::vector<std::function<void()>> Functions; std::function<void()>...

whoa.
 
@BoltClock Looks like Google hasn't changed the style of their badges in 3 years. Mine is identical except for my picture instead of Jon's.
Ha, Jon Skeet's corporate profile picture looks very different from his SO picture. I wouldn't have recognized it.
Can't post it though. Since I assume it's internal info.
 
hmmm
 
Ell
Hmm. I don't know how to design this. I have a bunch of byte codes, each with an associated integer to identify them, but some have additional data. I'm wondering what the best approach is. An enum for each type as well as an accompanying class or just a class with a static type member?
 
4:54 PM
concurrent insertion into an associative container is more tricky than it appears.
@Ell Congratulations! You have just reinvented boost::variant. Like many, many, many other people.
 
Ell
@DeadMG I was thinking of a variant
But then I found a problem. I think xD
Well, for the bytecodes which only have an id, should I just use empty class with static const int id = 0x2b or whatever?
 
no, why would you do that?
their order in the variant gives you a unique integer ID.
 
Ell
They already have a specific ID
 
they don't need any other ID.
DRY, you know.
 
Ell
I mean, each does have an ID, but I can't choose what that is
so I have to put it somewhere, unless I want to use magic numbers
this is reading swf actions btw
 
4:59 PM
if the IDs are from zero and ascending, just put them in the variant in that order
 
Ell
They don't unfortunately
 
hm
then yes, I'd go with the static const auto id = 0x2b; thing.
 
Ell
right okay cool, thanks
 
Xeo
template<unsigned Id> struct id{ static constexpr unsigned value = Id; };
 
Ell
5:03 PM
@Xeo I'm not sure how this helps o.O
 
@sbi Well, who're you gonna call :)
@Ell TW is always good
 
sbi
@sehe I dunno. The phone's right in front of me, though. Have a suggestion?
("What the hell do you even mean, boy?")
 
@sbi Where the hell did you get that. That's... awesome
 
Xeo
@Ell You don't need an extra class for every id :P
 
sbi
@sehe I got it on that interthing.
 
5:05 PM
@sbi Just a random variation on "Whoa baby" / "Hasta la vista" / "Well played" / "Like a baus" / "whatever"
@sbi Ooh. I gotta get me one of those soon
 
Ell
@Xeo Oh yeah. That's true :P
 
sbi
@sehe What?
 
Ell
I might have one anyway though for description value :P
 
@sbi It's a thing. When people say something seemingly random ("Moses on a horse!") but with the right exclamation, precisely to convey their utter bafflement.
It seems my conveying worked pretty well.
 
sbi
@sehe I'm not sure whether it's me or you, but I have no idea what you're talking about.
 
5:07 PM
And don't go blaming me for word play. "tied". Tsk :)
@sbi Nice to see you back too :)
 
sbi
I am somehow lacking the time to hang out here. Sigh.
 
@sbi Not a good camp-ground for anybody who might sleep-walk.
 
@sbi Me too, soon. I'm enjoying the last month of it. I think my new job will be slightly more demanding (and rewarding) and I won't have as much time for lose talk. I might actually start asking questions on SO!
 
@Mysticial At first glance, it looks like the error is a leftover from converting an older project to a newer version of VS?
 
5:16 PM
@Mysticial I guess it just counts output lines prefixed with "Error:"
 
sbi
@sehe If it even was my job. Basically, I got another 20-30hr job doing lobbying for our housing protest. Add to that my regular job (30hr), kids, a household, and a (severely ignored) garden, and you might have an idea of the madness that is my current life.
 
@JerryCoffin Doubt it. We've been using VS2010 for a while now.
 
...and if return codes from all build steps are zeros, build succeeds, whatsoever was written in output.
 
@sbi Needs more beer, obviously.
 
sbi
@EtiennedeMartel I went to have a beer with an ex-boss of mine last night. That was a nice evening. I missed going to the bookstore dinner with the robot on Friday night, though, because some lawyer offered to counsel us for free on very short notice. Sigh.
 
5:30 PM
Everything's terrible.
 
sbi
Contrary to your personal believe, you're not everything.
 
Everything includes the cat. But that does not mean it is the cat.
However, if everything is terrible then that would still make the cat terrible.
 
sbi
Oh, I thought this was one of his typical self-referential, self-diminishing statements.
 
Belief.
 
5:33 PM
@sbi you think too much
 
sbi
 
@sbi Ok, considering your amount of ex-wives and children I take back my statement.
 
sbi
@StackedCrooked Take back ALL YOUR STATEMENTS!
 
Wrong link in the previous message, Whyyy ;_;
 
5:38 PM
@StackedCrooked hahahaha
 
@JerryCoffin lolled when he used the inhaler
 
sbi
@StackedCrooked What's the deal with this? I thought they're used against asthma? (Showing my ignorance here, ain't I?)
 
Indeed.
 
sbi
@MohammadAliBaydoun What do you mean, "Why?" It says so: "That wasn't implemented."
 
5:42 PM
I have asthma and I use them as well.
I use Ventolin and Pulmicort.
 
sbi
So do they have, uh, side-effects?
 
For me they have no noticeable side effects.
 
@sbi I know, it was rhetorical, I'm quite annoyed now ;_;
 
sbi
@StackedCrooked So what is the joke about?
 
I have no idea. I just thought it was funny that he used the inhaler.
I know I'm a simple minded person.
 
5:44 PM
@StackedCrooked Knowing is half the battle.
 
sbi
@StackedCrooked Um. But he said something like "in 20-25mins I'll show you how much that means to me." I didn't get that.
 
@sbi That's not true either the inhaler works immediately, or it works only after ten days (if you keep using it daily).
The one that works immediately is for treating an acute asthma attack. The other one is for long-term treatment.
Or perhaps he's using a type of inhaler that I'm not familiar with.
 
@sbi I think mostly just to emphasize what a geek he is, quoting the numbers from the (supposed) labeling, instead of "a while" or possibly "about a half hour" like any normal person would.
 
sbi
@JerryCoffin Ah. But I still wonder why/what he wants to show here. :-)
 
> This is usually achieved through a metered dose inhaler (MDI), nebulizer or other proprietary delivery devices (e.g. Rotahaler or Autohaler). In these forms of delivery, the maximal effect of salbutamol can take place within five to 20 minutes of dosing, though some relief is immediately seen.
For me it works almost immediately.
Less than five minutes.
 
user1804599
5:49 PM
> 8.6 Debugging Aids
 
user1804599
This reads funny.
 
sbi
And it seems nobody can answer my question. Sob.
 
@sbi Oh, I'm betting you can guess exactly what he plans to do once he's caught his breath again.
 
@JerryCoffin push-ups?
 
sbi
@JerryCoffin Ah, so what was sounding like a pair of bellows was him. I failed to catch that.
 
5:50 PM
can SFINAE be used with the using statement? e.g. template<class T, class = EnableIf<predicate<T>>> using X = T; ?
 
sbi
@StackedCrooked That's prolly pretty close.
 
wtb =delete :(
 
user1804599
@Abyx How would that make sense?
 
@sbi can't think of anything else
 
@not-rightfold what's wrong with it?
 
sbi
5:52 PM
@StackedCrooked So why did you say push-ups?
 
that's what i'd do
 
user1804599
@Abyx Didn’t know you could have multiple usings with the same name (and if you can’t, SFINAE would be silly).
 
user1804599
Or do you mean using X in a function declaration later?
 
> return boost::numeric::converter<Traget,Source>::convert(arg);
Come on Boost, it's Target, not Traget.
 
ah screw me, it just need an additional struct
 
sbi
5:55 PM
What a Targety.
 
Oh you...
 
template<class T, class = EnableIf<predicate<T>>> struct X_ { .. }; and then that using X = X_<T>
 
@sbi I hadn't seen it -- must have been before I got up this morning. Anyway, I can see why not -- implementing a codvar starting from only semaphore/critical section is quite non-trivial. I doubt I'll get a chance before you go to bed tonight, but I'll post something when I can. It's non-trivial, but definitely answerable.
 
sbi
@JerryCoffin Thanks, I very much appreciate that. I'm almost on my way home anyway. I'm looking forward to see your answer tomorrow morning!
Good night, folks!
 
0
Q: Is this the doubleton class

RoboHere i have written code for double ton is this correct..? and this code is returning only two instances. so can we say this is double ton class. And please tell me the ways to create single ton and double ton classes class Hello implements Cloneable{ static Hello h=null; static int coun...

^^ "doubleton" class?
Is that like a singleton, but twice as evil?
:)
 
6:12 PM
Oh gawd. :/
 
@SotiriosDelimanolis just reminded me a joke... about public method insert and someone's mother. — Sarge Borsch 4 mins ago
WTF ^
 
@kbok ahahaha
 
@Mysticial No - just a class that weighs 4000 pounds.
 
@kbok lmao
 
user1804599
Yum.
 
user1804599
6:19 PM
Dried berries.
 
for a very bad definition of "foreigner".
 
user1804599
@FredOverflow More so in Italy.
 
5
Q: Industrial-strength n-ton base class template

FredOverflowI am working on an n-ton base class template. I don't worry about laziness yet, so the Intent is: Ensure a class has only n instances, and provide a global point of access to them. Here is my code so far: template<typename Derived, size_t n = 1> class n_ton_base // Singleto...

 
Ugh those shitty copypaste comics
 
6:27 PM
I vote for this as douchey design pattern of the year. — user142019 Feb 2 at 14:18
:)
 
That's every design pattern
 
@not-rightfold I can confirm.
 
Old.
 
Is it me or are Apple's interfaces just unusable?
 
6:32 PM
Skin 'em and eat 'em. What's so hard about apples?
 
user1804599
inb4 cat apple hate thread
 
user1804599
inb4 cat moans about global menu bar
 
Seriously, half the messages I get from iTunes or on my phone I don't understand what they mean
 
int* half_pointer = 1 / 2;   // lol, this compiles
 
lolwat
 
6:36 PM
@not-rightfold, what do you use to write C++ on mac, again?
 
user1804599
int* x;
int* half_pointer{};
memcpy(&half_pointer, &x, sizeof(*x) / 2);
 
user1804599
@Jefffrey Vim. :V
 
@TonyTheLion hint: 1/2 is a valid null pointer constant.
 
context.begin_drawing() … context.end_drawing() – this retarded shit is a C++ standards proposal?!
 
My first thought was "RAII".
 
6:38 PM
@not-rightfold Alternatives?
 
@Jefffrey Emacs
 
@KonradRudolph will somebody think of the RAII!
 
RAII are they doing this?
 
RAII don't know.
 
And if this is the code required to create a black brush, then the library is going to fail even it malloc baby ponies
 
6:39 PM
@KonradRudolph link?
 
auto blackBrush = device.create_solid_color_brush(rgba_unorm_color(DirectX::Colors::Black));
 
DirectX::Colors::Black?
 
@FredOverflow Is that so hard to have a file navigator by default?
 
user1804599
@Jefffrey Emacs. Sublime Text 2. TextMate.
 
@StackedCrooked That’s just a float[4], nothing in there is actually DX specific
 
6:42 PM
@KonradRudolph I see the implementation, but not the proposal.
 
@DeadMG that’s the status, as far as I can see. Prototype first, proposal (hopefully) never
 
Ell
Graphics shouldn't be in c++ std lib!
 
Why not?
 
user1804599
Go has graphics in its standard library.
 
user1804599
6:44 PM
Don’t see why C++ wouldn’t.
 
user1804599
As long as it’s extendible.
 
user1804599
Not like <regex> shit.
 
@not-rightfold Exactly – if regex, iostreams and strings teach us one thing, it’s that the C++ library designers suck at designing large, non-decomposable parts
 
user1804599
Also cryptography.
 
user1804599
Command-line flags.
 
user1804599
6:47 PM
CSV, XML, JSON.
 
There's a chance that C++'s standard library implements "graphics" tools?
 
user1804599
Bigints.
 
Ell
Because we already have lots of graphics libraries
 
One standard graphic library would be good. I think.
 
namespace std { namespace gfx { } }
Maybe gl
 
6:50 PM
naw that would be too close to opengl
 
Ell
How will implementations on embedded devices ever be fully compliant :o
 
they won't.
 
user1804599
Make it optional. :E
 
user1804599
Also lol who cares.
 
On embedded devices, they'd be no-ops if they had to be, sort of how hardware_concurrency returns 0 when it doesn't have the info
 
user1804599
6:52 PM
Also I don’t see why an embedded fucking device wouldn’t be able to generate a PNG or something.
 
Ell
Meh. Would people use it in production code?
 
sure.
if it offers an enticing API and sufficient portability.
@MohammadAliBaydoun Remember, embedded devices already have an opt-out for the entire Standard library.
 
Good to know, I never worked with one ;_;
 
Ell
Is Montreal a game dev centre?
 
6:58 PM
One of the largest cities for game development in the world.
 
is my arse a role-playing game
 
lol I upset some Apple fanboys
 
@TonyTheLion Of course.
In Quebec there's talks about preventing government employees from wearing religious symbols while working.
Of course people are joking that this should extend to iPhones.
 

« first day (1080 days earlier)      last day (3860 days later) »