« first day (1271 days earlier)      last day (3693 days later) » 

11:07 AM
Remote non-VM Windows Server with no KVM is fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuun to manage
 
Xeo
nom
 
I'm kinda tempted to buy VMware Workstation
 
11:37 AM
@telkitty.exe lolwut
@LightnessRacesinOrbit which part, or was your admission of auto-biographical nature?
@MartinJames Revelations?
Oops this is decidedly not what he/she meant
 
lucky you >_<
 
Well, apparently the symptoms of being a cocksucker extend quite some ways beyond the primary symptom (that's admittedly contributing to my happiness) - because rumour has it, I - or we - also act like cocksuckers.
I'm not sure exactly which behaviours this entails
 
Donges
 
user1804599
@CatPlusPlus It caused a kernel panic for me.
 
user1804599
It sucks.
 
user1804599
11:44 AM
Still better than VirtualBox, though.
 
well, SO has moderator whose name looks like 'shaggy' ... or 'shagg' or ... so go figure ...
Let's move on from this topic
 
Yeah, man! Go figure!
 
Eh, I'll probably have to make my laptop dualboot and test here, target OS needs to run 64-bit VMs
 
puppy loves drugs!
 
we know, we know ...
 
11:49 AM
@DeadMG \o/
 
I just felt the need to mention this again loudly.
 
Xeo
Whoever this guy is, he updated a link to the new lounge wiki: stackoverflow.com/revisions/13315884/2
 
user1804599
@CatPlusPlus I find $config_file = FROG_ROOT.'/config.php'; much worse.
 
user1804599
Config files in web root is eternal pain no matter what.
 
11:55 AM
Once again I try to improve wikipedia and some stupid machine refuses my help.
Fuck off.
 
Xeo
Always fun when something works against its original goal
 
user784668
@R.MartinhoFernandes [citation needed]
 
@Fanael I'm actually removing misinformation that has no citations.
 
user784668
@R.MartinhoFernandes Quit lying, you're not removing Wikipedia.
 
11:58 AM
Anyway, fuck it.
Once a bot revert my vandalism removal edit and called it vandalism. Stupid machines.
"Hey, stop vandalising that vandalism!"
I haven't written any new posts in a while, but I have all this useless trivia! flamingdangerzone.com/robot.html
 
Your wiki link needs /wiki/
 
12:14 PM
what I really need to do
 
TIL eucalyptuses are used to fight malaria.
 
is uninstall all my games and get cracking on Wide.
 
@DeadMG You should rename it WideOnCrack later
 
eh
you coulda come up with a decent pun
 
argh
stupid stereo music making me think my speakers are broken
 
12:26 PM
@DeadMG Get cracking now that you have a newly found love for drugs?
 
Xeo
@R.MartinhoFernandes TIL your second given name is basically my given name.
 
@R.MartinhoFernandes now that my gut is no longer preventing all possible concentration
hard to get in the flow when your guts are trying to digest themselves
 
is it reasonable to compare Haskell type class-ing of user defined types with instance to explicit concept mapping (with concept maps) in C++?
 
Xeo
Pretty much
 
schoenen dank
 
user784668
12:32 PM
@ScarletAmaranth Do concept maps kill performance? If they do, then yes.
 
Xeo
which is why I hate that concept maps were taken out :(
 
@Fanael ewww; they're evaluated statically
 
Xeo
@ScarletAmaranth Actually, concept maps were taken out because of some kind of performance problem IIRC
I have no idea how they managed that, but it happened
 
user784668
@Xeo Really?
 
Xeo
How concepts and concept mapping play out in my head, there'd be no performance hit in any way I can imagine
 
12:33 PM
@ScarletAmaranth I have enough shoes?
 
@Xeo I think the biggest kick against them was that they introduce shit ton of syntactic bloat
 
Xeo
@Fanael Something about runtime, archetypes or something? Dunno
@ScarletAmaranth shit-ton? Really?
I thought they'd be pretty minimalistic
 
@Xeo well, suppose you want to use a "conceptualized" template; you'd have to map every single argument type to appropriate concepts
sure, but most of them would be almost-empty concept maps just lying around
my operator+ maps to the operator+ required by the algorithm; no shit
 
Xeo
@ScarletAmaranth That's a consequence of concepts, not concept mapping
 
@Xeo no it's not; if they're implicitly mapped, as long as you comply to the syntax requirements, you're good to go
 
Xeo
12:35 PM
Also, Haskell seems to do it just fine :P
 
class myT { operator==, opreator!= } defined would qualify you for equality comparable
no need to say: yo, here's the operator==, map it to the operator== please
 
Xeo
Who says you can't have both?
implicit if not mapped?
 
yeah that's an option as well
I won't argue with that, seems like a reasonable possibility
but it sure is a consequence of concept mapping rather than of "concepts"
 
user1804599
WHAT THE FUUUUUUUUUUUUUUUUUUCK
 
user1804599
> TypeError: Cannot read property 'length' of undefined
 
user1804599
12:40 PM
I ask debugger for value
 
user1804599
> 1
 
I think this xkcd is so awesome
you can build your own story and tell everyone else then
 
Is there some usual mathematical notation for "approximately but definitely less than"?
 
@R.MartinhoFernandes how can it be "approximatively" and "definitely" less than both at the same time
 
Like, if x = 9.9, I can say x≅10, but I don't want to lose the information that 10 is definitely more than x (i.e. the fact that I rounded up is important)
I can express it with a conjunction, but I wonder if there's a "less-than-with-tilde" thing.
opens up Unicode chart
 
12:48 PM
I guess there is
 
Xeo
> Invitation to event "C++ User group Berlin - Lightning talsk"
 
@R.MartinhoFernandes x = 10 - delta x?
 
Xeo
Maybe I should update XING with the fact that I don't live in Berlin anymore.
 
There should be a combination tilde :v
 
@R.MartinhoFernandes ≲ ?
Unicode ranges mathematical operators and symbols in multiple blocks: * Mathematical Operators (U+2200–U+22FF) * Miscellaneous Mathematical Symbols-A (U+27C0–U+27EF) * Miscellaneous Mathematical Symbols-B (U+2980–U+29FF) * Supplemental Mathematical Operators (U+2A00–U+2AFF) * Letterlike Symbols (U+2100–U+214F) * Miscellaneous Technical (U+2308–U+230B) * Geometric Shapes (U+25A0–U+25FF) * Miscellaneous Symbols and Arrows (U+2B30–U+2B4C) * Mathematical Alphanumeric Symbols (1D400–1D7FF) Mathematical Operators Mathematical Operators (...
 
12:51 PM
@R.MartinhoFernandes I think you should be able to use big-O in conjunction with "on the order of" from en.wikipedia.org/wiki/Big_O_notation
 
No, Big-O is just the wrong tool.
It expresses something completely different.
 
@VáclavZeman ermahgerd is that what they teach in Prague?! :)
 
@LoïcFaure-Lacroix Yeah, that looks similar to what it would be like, but that's usually used when discussing orderings to mean "less than or in the same equivalence class as".
 
@ScarletAmaranth o_O What?
 
@VáclavZeman just mocking you, sorry :)
 
12:54 PM
Consider C++'s nothing of "equivalence" when !(x < y) && !(y < x). In this, x ≲ y would mean x < y || (!(x < y) && !(y < x))
(Which is the same as x < y || !(y < x))
 
user1804599
10 ≈ x < 10
 
Just use words dammit
 
@CatPlusPlus Words can only do harm...
 
user1804599
Also Ideone y u no /unsafe you worthless piece of crap.
 
0<10-x<1 is probably the best of all.
 
1:01 PM
druggles, puppy loves druggles.
 
Actually, in this case I can use the ceiling.
That was easy.
 
1:25 PM
crow:~/main/bin$ crontab -e
no crontab for crow - using an empty one
Error opening terminal: xterm-256color.
crontab: "/usr/bin/editor" exited with status 1
buh?
 
@Crow Do you have editor binary in /usr/bin?
 
@VáclavZeman yes
 
@Crow Do you have xterm-256color terminal definition?
 
I doubt it, my terminal doesn't have color. Can I run crontab without color?
 
huh, GCC 4.3 supports variadic templates? really?
 
1:31 PM
@Crow Run toe -a |grep xterm-256color to see if you actually have the definition.
 
4.3 was released in 2008
 
user784668
Fuck you offsetof and your standard-layout requirement.
 
what do you even need offsetof for anyway
 
user784668
@DeadMG Metadata for precise GC.
 
use Clang to parse files -> ask Clang for codegen data.
 
user1804599
1:47 PM
Woot.
 
user1804599
Perl 6 has multimethods.
 
what is it with you and multimethods
 
user784668
@rightfold So?
 
user784668
Emacs fucking Lisp has multimethods.
 
user1804599
COOOOOOOOOOOOL
 
1:56 PM
Perl 6 has everything.
I mean, other than an end to development.
 
does it have hookers and cookies?
 
user image
14
I think this is funny.
 
rofl
 
I see
is it acceptable if all Wide programs depend on C++ support libraries?
 
anyone here use source tree?
 
Does anyone use Eigen with MSVC2013? I get ICE.
 
2:24 PM
@EvgenyPanasyuk what a sad story, bro
 
@Abyx It is even more sad, because I found similar ticket which is closed as Won't Fix.
 
I don't see it being closed at all
 
"Status: Closed as Won't Fix" - on the top.
 
ah
 
WTF is it with libc++'s std::function<void(whatever)> not accepting callables that return something.
Coliru down?
 
2:38 PM
@R.MartinhoFernandes iirc there is some specialization for return type void
 
where is crooked?
 
@EvgenyPanasyuk We use Eigen with VS2013. No trouble so far.
 
@R.MartinhoFernandes Interesting, thanks.
 
But I cannot test your example right now.
Hmm, Java7 regices comply with UTS#18 Level 1.
Neat.
> minutes and sentences are not compatible.
Dammit.
 
2:59 PM
Lies
I think I need new headphones
 
3:15 PM
I just answered here but I think there should be a better way:

http://stackoverflow.com/questions/22965647/how-to-create-a-variadic-template-function-with-stdfunction-as-a-function-pa/22966264#22966264
 
Just looking at the title, the answer is "No."
 
wat
 
So yeah, your answer is right.
 
that code is completely wrong
Foo::bar should accept as first parameter a Foo* for starters
and it lacks std::bind
no?
 
@gnzlbg The only improvement you can make is provide a specialization for member function pointers because they need special calling syntax.
 
3:25 PM
@R.MartinhoFernandes i guess the OP is trying to avoid that by using a std::function, but yeah, that would solve it.
 
> Gentlepeople: NOTE
> Yes! This answer is "old". And in the era of c++11, by all means use c++11 <random>. But please don't downvote this question, years after the fact because you think "Ew Everybody knows rand() is evil!". In fact, it is not. It's just limited, and very easy to use inappropriately. But - as an historic fact, it exists as an API and it is still useful to document how you can use it better. I'm not deleting this answer for that reason - answer
I'm a bit twisted on this subject. Should "obsolete" answers be downvoted... Hmmm.
 
@sehe well it is deprecated
 
It's not deprecated
 
they didn't deprecate it in C++14?
 
It's libc
 
3:29 PM
@sehe what about improving it, adding <random> references and shit?
 
@gnzlbg Irrelevant to my arguments. I'm not saying it shouldn't be deprecated. I'm not saying it should be used in new code
 
It's not part of C++ except for blind inclusion of entire libc
 
@Jefffrey I have a zillion other answers doing that
 
It's not their job to deprecate it
 
mmm
i had in mind that some old random stuff got deprecated
 
3:29 PM
@gnzlbg they won't probably deprecate it... ever.
 
maybe some algorithm
random_shuffle?
idk
who cares, people using rand will disappear by natural selection
 
@sehe then maybe add a link to them?
 
@gnzlbg There's no such natural selection.
It's merely artificial.
 
i would donate for its revival
 
If you use it and it "works", there's no natural evolutionary pressure against it.
 
3:32 PM
@sehe I'd downvote rand() answers just like I'd downvote new[] and delete[] answers. Personally I'd either edit it, delete it, or just suck up the infinity of downvotes.
 
exactly, """"""works"""""""
 
@Jefffrey yeah, I'll see - let me see about that - I'm juggling phone, 2 kids, one doing his violin exercises (needing some supervision :S...) and the cooking :) /cc @DeadMG
 
3:52 PM
F*** programming! I want to be a singer!

https://www.youtube.com/watch?v=wgSLxl1oAwA
 
Newcomers these days...
 
user784668
@karlphillip "Fuck singing! I want to be a programmer!" — said noöne ever.
 
@Fanael LOL
 
user784668
@karlphillip Oh, and for fuck's sake, you can swear freely here.
 
3:55 PM
@EtiennedeMartel If only he actually was one.
 
@DeadMG Seems like I've been coming here less these days.
 
oh, I haven't seen him here in years.
 
@EtiennedeMartel That's OK, nobody is missing you. joking
 
In other news, sex is fun.
 
Not with your mum.
 
4:00 PM
presumably somebody found it fun at some point.
 
I have to counter that. I had quite the time with his mum.
 
lol, you are terrible, @Ak_Crusader
 
That's what she said :(
 
So it wasn't fun for both, I guess.
 
but, but, two negatives make a positive right?
 
4:02 PM
hahaha, I need to come here more often.
 
@EtiennedeMartel I was thinking that
 
> How do you declare a pointer to a C++11 std::array?
Seriously, what kind of question is this.
There is such a thing as too noob a question.
Fuck you if you say otherwise. This has no place on the site.
 
one with a highly obvious answer.
@R.MartinhoFernandes I would have starred the first if they were two separate messages.
 
a link is required
 
@R.MartinhoFernandes I really can't tell, honestly.
@karlphillip Keep in mind we like to talk about dicks.
 
4:15 PM
Hmmm, question list is full of questions that involve the indices trick.
We need to elect a question about the indices trick.
14
 
Xeo
@R.MartinhoFernandes Maybe because of the updated wiki links?
@R.MartinhoFernandes Wait nvm, wtf is up with that guy spamming the indices question
 
Which guy?
Oh gosh, yeah, it's the same dude all over.
 
Flag for suspected sockpuppets :v
 
Attention German Loungerians: My first online lecture, starting at 48:33.
10
 
Xeo
4:23 PM
@FredOverflow Fred vom Jupiter.
 
Can anyone tell me the term for when you call a parent class from a child using the following method in the .cpp file, please? ParentClass::method() : BaseClass::method() { ... }
 
@FredOverflow Aw man, why must you do it in a dead language.
 
@FredOverflow Horrible quality :S
 
user784668
@FredOverflow s/German Loungerians/Loungerians who understand German/
 
4:36 PM
 
Xeo
@EtiennedeMartel Great as always.
 
user1804599
@FredOverflow coool
 
what do you mean? — Ahmadreza 57 secs ago
i dont see how i was unclear =/
 
user1804599
@FredOverflow cool Eiffel.
 
@Borgleader Troll answer with points for effort: write all the code yourself to show them how to do it so that they get into the logical dilemma of writing everything themselves or copying it.
That said, who the fuck uses BMP photos?
 
4:51 PM
Hipsters?
 
@rightfold do you use BMP photos?
 
user1804599
@R.MartinhoFernandes I use TIFF or JPEG for photos.
 
user1804599
What idiot would use a BMP for a photo.
 
@Borgleader See, not even hipsters.
 
You're generalizing ;)
Unless all the world's hipsters are actually rightfold
 
4:56 PM
bet whoever committed that buffer overflow bug into OpenSSL is feeling a little silly today
 
a little? :D
 
user1804599
Or sadistic.
 
> EDIT: Thanks to Martinho for pointing out my glaring mistake. The above code is fixed by the addition of another wrap() overload, which uses the following type traits code to select the correct specialization of std::function for the deduced functor type:
Be honest: this is a ploy of the universe against my sanity, isn't it?
 
Xeo
hahahahahahahaha
awesome
Is it function_traits? Is it? Please tell me it is.
 
I point out that the code doesn't compile and BAM! "Oh you're right, lemme use this function_traits bullshit"
10/10 would downvote again.
 
5:01 PM
link?
 
-1
A: Redirect std::function() callable to custom handler in pre C++11?

OktalistIf you want a generic solution (supporting not just a function taking two ints and returning void) then you can use fake variadics to support a function taking any number of arguments up to an arbitrary fixed limit (this example supports up to three; VS2010's std::function can take up to ten). v...

 
user784668
@R.MartinhoFernandes holy mother of what
 
Going home early today.
Sort of.
Gotta manufacture me some slides.
 
@DeadMG This has been my resolution for now, not more time available: /cc @Jefffrey
People looking for more up-to-date advice are invited to look at a random (... ☺) selection of my other answers involving random in c++sehe 40 secs ago
 
The Strokes are awesome.
 
5:16 PM
Ok! Have a stroke, then :)
 
user1804599
> idioten
 
user1804599
lol
 
That's not homeopathic.
There are things in black salve.
 
oh joys
virtual function pointer offsets.
 
5:28 PM
it's very off-putting.
I should propose a C++ feature.
That allows you to inherit "everyting" (public) from a private base class.
Like "using namespace" for base classes.
 
Propose a completely different grammar that lets you write HTML in it.
 
@R.MartinhoFernandes well, he was asking for a pointer to a "any-size" std::array pointer.
 
Oh wait, someone did already.
 
Also, what is the indices trick?
the one to "see" a unidimensional array as a multidimensional array?
 
operator[] returns a pointer to a "row". Then you can use a second [] for the column.
 
5:32 PM
No.
 
wonder if Clang generates virtual tables with void* entries or strongly-typed ones.
 
user1804599
Or to a column!
 
It's the things with the variadics
 
what a dumb question, they probably require a cast.
 
user1804599
Depends on how you implement it!
 
5:34 PM
@rightfold Yeah, I guess most people expect [x][y].
 
user1804599
Tell that the ncurses guys. :P
 
user1804599
Stupid API.
 
ncurses?
I always wanted to learn that.
It would be awesome to have a clean and simple API for console guis.
 
user1804599
@StackedCrooked So not ncurses.
 
user784668
@StackedCrooked Yes, it would be; but it's clear you're not looking for ncurses.
 
user1804599
5:38 PM
ncurses is cursed.
 
51
Q: What is this weird colon-member syntax in the constructor?

nilsRecently I've seen an example like the following: #include <iostream> class Foo { public: int bar; Foo(int num): bar(num) {}; }; int main(void) { std::cout << Foo(42).bar << std::endl; return 0; } What does this strange : bar(num) mean? It somehow seems to initialize the member varia...

 
Why are you linking that now?
 
@EtiennedeMartel Dead language? Are you talking about Basic, Eiffel or Java? :)
@R.MartinhoFernandes I saw a guy ask a question.
 
user1804599
@FredOverflow What implementation of Eiffel did you use? I can’t find any that work.
 
Maybe that's what he used.
 
5:41 PM
@rightfold I haven't touched Eiffel in years. That was just a screenshot from the official Eiffel tutorial on contracts :)
 
user1804599
Oh. :v
 
Fred fakes it!
 
And it contains a hilarious error: The first precondition should be count < capacity, not count <= capacity :)
count <= capacity is a useful class invariant, but a useless precondition.
 
user1804599
count <= capacity && count != capacity
 
count ~= capacity
 
user1804599
5:42 PM
count <≠ capacity!
 
count </*=*/ capacity
 
user784668
count <<= capacity
 
user1804599
*=*
 
user1804599
capacity - count != 0
 
count ≨ capacity
 
5:44 PM
@rightfold Not the same. Think overflow.
 
user1804599
It would be a Fred overflow.
 
Hope that copied properly.
Fucking phone.
If it did, "Amateurs"
 
user784668
@FredOverflow carry(capacity - count) != 0
 
Show me the implementation of carry :)
I think such a built-in function would be quite useful sometimes!
 
It's actually borrow there, not carry.
 
5:46 PM
But there's usually only one hardware flag for both.
 
right!
in theory, Wide can now call virtual functions.
let's see how badly that goes.
 
user784668
@FredOverflow ((capacity ^ count) & ((capacity - count) ^ capacity) >> 31
 
user784668
Wait, wrong, that's for overflow flag.
 
Bitwise xor on negative values!
Blasphemy.
That was the sound of me catching the train by five seconds.
 
user1804599
5:49 PM
try {
    return count <= capacity && 1 / (capacity - count);
} catch (DivisionByZeroException) {
    return false;
}
 
user784668
@FredOverflow The robot has a point, wrt subtraction carry set can mean either borrow (e.g. x86) or no borrow (e.g. ARM).
 
Fred is an architecturist.
 
@R.MartinhoFernandes I was expecting the worst, but the quality is actually really good in my ears.
 
user1804599
He means the quality of the talk itself. :P
 
me so sad
 

« first day (1271 days earlier)      last day (3693 days later) »