« first day (492 days earlier)      last day (4458 days later) » 

8:00 PM
@CatPlusPlus I attempt not to be religious of my tropical frootz
 
sbi
@RMartinhoFernandes Uh. Thanks, I think. And: I had a hard day.
 
I hard a had day.
 
putting emphahsiz on the wrong silahble
@RMartinhoFernandes "But The Matrix references are overused." Khan.
 
What do you mean "Khan"?
Khan Noonien Singh, commonly shortened to Khan, is a villain in the fictional Star Trek universe. According to backstory given in the character's first appearance, the Star Trek: The Original Series episode "Space Seed" (1967), Khan is a genetically engineered superhuman tyrant who once controlled more than a quarter of the Earth during the Eugenics Wars of the 1990s. After being revived in 2267 by the crew of the Enterprise, Khan attempts to capture the starship, but is thwarted by James T. Kirk and exiled on Ceti Alpha V to create a new civilization with his people. The character returns...
 
@RMartinhoFernandes just. Khan.
Khan and the fact that I am essentially mute for a few days/weeks
 
8:05 PM
Oh right, the vulva thing.
 
yes.
 
Voice is inefficient anyway.
 
XD
 
@CatPlusPlus Tell that to everyone trying to make UIs out of it.
 
@RMartinhoFernandes its better to use appendages designed for the stimulation of keys, not vibrating pieces of flesh to work machinery/computers no?
 
8:08 PM
Yes, stimulation with appendages is always more fun.
 
:D
 
what's the word for when you're giving away a story's plot?
 
Hey, @sehe, I suppose you know about this, since I heard you talk of LVM before. Do you know how/if I can revert to an LVM snapshot?
 
Spoiler.
 
foreshadowing
 
8:09 PM
@RMartinhoFernandes Short answer: no
@RMartinhoFernandes is the snapshot of full capacity?
 
Long answer: noooooooooo.
 
Ok, plan scratched.
 
@CatPlusPlus lol
 
@sehe No. ~500MB.
 
@RMartinhoFernandes I mean full capac = equal to source volume (parent volume, actually)?
 
8:11 PM
Oh, sorry, for some inscrutable reason I assumed you knew the size of my volumes...
The answer is no.
 
@CatPlusPlus thanks
 
LVM snapshots kind of suck anyway.
 
That's the conclusion I've been coming to.
 
@RMartinhoFernandes See e.g. the late(st) responses by the lvm2 maintainer on this bug: bugs.launchpad.net/lvm2/+bug/360237/comments/7 (#7 is interesting)
 
lol, apparently the human brain can only store 116 GB in relation to computer bits/bytes
 
8:13 PM
Unless your brain runs on FAT32.
 
The worse part is that most of those 116GB are not easily acessible, and you can't quite pick what they are, and you can't selectively discard some.
 
@RMartinhoFernandes There has been a kernel patch to support snapshot mergine somewher down the road, but I'm pretty sure it hasn't arrived in mainline yet (?) : kerneltrap.org/Linux/LVM_Snapshot_Merging
 
@RMartinhoFernandes our processing power is 2 bits per second :D
 
Processing vision is way more than 2b/s.
 
@RMartinhoFernandes Might still have been merged:
 
8:15 PM
Thanks anyway.
 
> Ha, yes the 2.6.33 kernel includes DM's new snapshot-merge target.

LVM2 >= 2.02.59 provides userspace support for snapshot-merge (via
lvconvert --merge). Though 2.02.61 adds the ability to tag N snapshots
with a common tag and then merge them all back to their respective
origin using: lvconvert --merge @tag

Mike
 
@sehe Ah, well, nevermind. I don't think using bleeding edge stuff to experiment with other bleeding edge stuff in a "safe" manner is sane.
 
As long as it doesn't bleed all over the floor.
 
@CatPlusPlus in accordance with how much energy we burn when we DO process data, can only run a cpu at 2 bits/s XD
 
8:16 PM
@sehe Oh, 2.6.33 is not quite bleeding edge, then.
 
@RMartinhoFernandes You mean you're experimenting with Btrfs? Or ZFS?
@RMartinhoFernandes Nope. For some reason wasn't well advertised. I still run all my linuces on lvm2 volumes. But I steer clear from snapshots
 
@Hoxieboy I find all the numbers in discussion highly suspect
 
@sehe cleer as stone
 
@Hoxieboy Thx. Fiksed
 
@sehe Nah, just installing a lot of packages that might break stuff.
 
8:18 PM
Steer cleer peer.
 
@sehe np
@sehe whats a linuce? sounds fantesy
lol
 
@CatPlusPlus Cheer!
 
@Hoxieboy Linuces is plural of Linux.
 
^^ Not necessarily correct, of course :)
 
Linus doesn't like c++...
 
8:19 PM
@RMartinhoFernandes lame
 
Linus doesn't know C++.
5
 
@mantler Meh. Linus doesn't like a lot of things
 
:)
 
@RMartinhoFernandes exactly
 
@sehe I wonder if anyone uses Linuxen.
@Hoxieboy "it"? Sounds like you don't like Linus.
 
8:20 PM
Knowing C doesn't mean you know C++, or vice versa.
 
@RMartinhoFernandes I do that parttime. I play with spelling whenever
@RMartinhoFernandes Don't feed him. He's bored
 
me bored
 
I'm tired as hell, and it's just Monday.
 
Linus explains why C++ is not good for kernel developement. kerneltrap.org/node/2067
 
ok, that's two opportunities for the SSD to repair itself. Time to reboot, reattach, and see if it worked.
@mantler Most of C++ is perfectly fine for kernel development... nothing like throwing the baby out with the bathwater.
4
 
8:22 PM
@mantler Well there are a number of 'good' reasons. I can agree there. However, it is also quite fair to say that it is only the status quo. Much like gcc wasn't written in C++
 
@mantler Yeah, yeah, we know all about it: "I'm Linus, I'm a git and I don't trust what I don't know."
 
That doesn't keep others (Clang?) fro doing it
 
Just Clang.
 
@RMartinhoFernandes That sounds more like Stallman. Linus would be more like 'I don't like what I don't need'
 
Yes, I just think it is funny. He has really strong opinions. :)
 
8:23 PM
@sehe fro-hawk
 
@sehe LLVM, in fact.
 
Anyone heard anything about the tool the clang guy was talking about on GoingNative2012? The include helper tool?
 
Both, actually.
What helper tool?
 
@sehe Hmm, maybe. But Stallman doesn't claim to be a git.
 
He's also crazy.
 
8:24 PM
It would walk through your code and fix all include/forward declarations and more.
 
@mantler (1) it's not broken, it's just different. Learn the new way. (2) So don't use that part if you don't like it. It's designed to be easily replacable. (3) That's just showing ignorance of how to do C++.
 
Remove unused ones and so on...
 
Oh, that tool.
 
@mantler I think he said it wasn't quite finished yet if I recall
 
@RMartinhoFernandes oops. better indeed
 
8:25 PM
I'm more interested in the scriptable refactoring thing.
 
@RMartinhoFernandes He doesn't claim to be a stupid content tracker either
 
"We have removed your Fbpage: Stack Overflow from Facebook because we received a report alleging that it infringed or violated the rights of a third party, and/or because we have reason to believe that you are not authorized to represent the subject matter of the Page."

Hey, Facebook, YOU created that page, not I, unless I inadvertently accepted your suggestion?

You have (unsolicited) mailed me about nr. of visits (?) to that page numerous times, so perhaps I should be grateful that you're going to stop doing that. Still, I find the tone of your voice rather unfriendly.
^ Just posted to Facebook (by me)
 
Pages are serious business.
 
Ooh, @Alf is a pirate.
 
SERIOUS. BUSINESS.
 
8:27 PM
I never created that page, and never posted anything to it.
 
That reminds me I need to pirate Windows to be able to download my genuine Windows image.
 
It's like Kafka novel this.
 
@CatPlusPlus SERIOUS. BUSINESS. (ftfy)
@RMartinhoFernandes Again?
 
@sehe I haven't done it yet.
 
@AlfPSteinbach What's the matter, don't appreciate culture :)
@RMartinhoFernandes Stop procrastinating! Get things done
 
8:28 PM
@sehe It's not really a pressing matter. And since it is silly it puts me off even more.
 
@sehe No, better start deferring the procrastination right now!
 
Asynchronous procrastination is the future.
9
Now you can procrastinate while you procrastinate.
Dawg.
 
@Pubby Ooops, missed that message. Sure, we can use that.
 
Do you regularly scan transcript for messages you might've missed?
 
Only when I have an itching sensation that I have indeed missed a message.
 
Tin
8:34 PM
Hello guys! Just a short question, I've a function that generates random numbers by calling uniform_real_distribution, although it works, I would like it to be template so that depending of the parameters type in the range [int a, int b], or [float a, float b], I switch between calling std::uniform_int_distribution or uniform_real_distribution. How could I perform such a switch? An illustration of the function can be found here: pastebin.com/t99wyq21
 
There's a is_floating_point trait.
template <typename T> using distribution = typename std::conditional<std::is_floating_point<T>::value, std::uniform_real_distribution<T>, std::uniform_int_distribution<T>>::type;
Or something.
 
Tin
@RMartinhoFernandes, mmm, what does the using distribution does? shall I define it as a variable?
 
It's new fancy typedef.
 
Oh, sorry, I'm already hooked on the new syntax. using A = B; is the same as typedef B A;
 
Tin
and besides float, it would be great that it could also work with doubles
 
8:41 PM
is_floating_point detects both float and double.
 
double is floating point, too.
 
@RMartinhoFernandes and long double
 
The name is stupid, but hey.
 
And potentially long long double when we get one. :P
 
heeeeey.
 
Tin
8:42 PM
@RMartinhoFernandes, so in terms of typedef it should be template < typename T > typedef typename std::conditional<std::is_floating_point<T>::value, std::uniform_real_distribution<T>, std::uniform_int_distribution<T>>::type distribution; is that correct?
 
We need infinitely long for big ints.
 
@Mana Hi
 
@Tin Well, without the template part, since the function is already a template.
(and template typedefs (aka template aliases) are only allowed with the using syntax)
 
Wow, I don't get a blue name here! I feel so young again.
 
You can't do it with typedef.
You need some intermediate struct.
 
8:44 PM
@Mana Blue names aren't wanted here ;)
 
so the C300 is still bricked, going to try these steps one more time: forum.crucial.com/t5/Solid-State-Drives-SSD-Knowledge/…
 
Tin
do you guys have an illustration? I tried to do the following, but didn't work pastebin.com/26RfcM62
 
@RMartinhoFernandes infinitely long schlong.
 
I'm using paper to communicate with my family :P
 
@Tin template <typename T> struct select_distribution { typedef typename std::conditional<...>::type type; };
 
8:45 PM
@Tin It works if you put the typedef without the template part inside the function.
        template < typename Generator, typename T >
        T randomNumber(Generator& engine, T low_bound, T high_bound )
        {
            typedef typename /*...*/ distribution;
        }
 
Then typedef typename select_distribution<T>::type distribution; return distribution(low_bound, high_bound)(engine);
 
@Hoxieboy my roomie carried a whiteboard for a while
 
@sehe plink
@MooingDuck why?
 
@Hoxieboy he was sick; no voice
 
Tin
@RMartinhoFernandes, does this illustrates what you were saying? pastebin.com/9x9Esmnr because i'm getting some compiler errors
 
8:49 PM
@MooingDuck lol now I know his pain :)
 
 
@Tin distribution(...) not distribution<T>(...).
It's no longer a template, it's a concrete type.
 
@sehe lol wth
 
Well, templates are concrete too, nevermind that last bit.
My brain is tired of being tired.
 
Tin
@CatPlusPlus, I also tried yous suggestion, but I got a compiler error: pastebin.com/yCjEGiRZ
 
8:52 PM
What is the error?
Are you #including <type_traits>?
 
Tin
` error C2039: 'type' : is not a member of 'select_distribution<T>'`
 
хана!
 
Oh, change distribution to type inside that struct.
typedef typename std::conditional<std::is_floating_point<T>::value, std::uniform_real_distribution<T>, std::uniform_int_distribution<T>>::type type;
 
1
Q: there are many ways to split a string in c++, whose performance is best?

user1220171as suggested by this post: How to split a string in C++? there are many ways to split a string, but whose performance is best ? is there any benchmark on this test ?

^ Still needs 4 votes to reopen. James McNellis and I posted essentially the same solutions as comments. Someone might want to post it as an "SO answer".
 
Tin
@CatPlusPlus, now it compiles
 
8:55 PM
Of course it does.
I wouldn't write code that doesn't compile.
 
Tin
:-)
in which cases, would you @CatPlusPlus @RMartinhoFernandes suggest to put the typedefs inside of a struct?
 
Where you need a template and don't have C++11 syntax available.
 
Tin
because, i think, we could easily get lost by having many structs that contain typedefs
 
Well, it's a silly workaround.
 

« first day (492 days earlier)      last day (4458 days later) »