« first day (770 days earlier)      last day (4176 days later) » 

12:06 AM
+1 holy smokes - sehe has an answer - bb later to digest this! — kfmfe04 3 mins ago
hehe
 
I wanted to see if there was a way to make repetitive functions easier
I have =COUNTIF(C#:EL#,"Yes") but I hate doing it for every number 1-56
 
@Rapptz Where would the counter go?
You can drag ranges, i.e. type 1 in one cell, 2 in the next, then select the region and drag to extend. Or you can do calculations based on the (relative) address of the cell.
 
Column B
 
@Rapptz Perhaps... you should ask it on Stack Overflow. Upload a minimal example to Google docs
 
:( I'll keep my question virginity
 
12:16 AM
Picked up a 2TB portable for $130. They gave me a free case for it too.
 
@sehe Hey that actually works.
haha
Thanks.
 
That thing is the smallest portable HD I've ever had.
 
@Mysticial what's it look like?
 
Xeo
@Mysticial That's a good price.
 
Two of them will hold my entire anime collection minus the duplicates.
But this will be for all my normal data.
2TB is enough to hold all my normal data.
 
12:21 AM
@Mysticial I have one very similar. But they're all basically equally small these days. My SSD, my WD (1.5TB), my Seagate (2TB)
@Mysticial Yeah, it can fit my absurd data too :)
 
The 1.5TB portable that I've been using for a while (and died on me 2 days ago) was bigger than this one.
 
I've never had a portable die on me yet. Which is why I have a bunch :)
 
I have about 1.3TB of normal data. 4.5 TB of Anime and 10TB of digits.
 
lol
how many memorized?
 
@Mysticial lol 10TB of digits. Now, that is what I call 'absurd data' :)
 
12:24 AM
The 4.5 TB of Anime sits in a 2 x 2TB box + a naked 2TB. 3.9 TB of it is backed up in a second 2 x 2TB box.
The 10 TB of Anime sits in a 4-drive box with 3 x 3TB + 1 x 2TB.
And those are backed up on the 8 x 2TB drives in my 64GB machine.
I've been wanting to move the backups into a proper external box. But HD prices have been insane as shit after the floods.
 
fucking DHL...
 
@Mysticial yeah I got my HDs just before. Luckily, I moved to SSD so I had a few smaller spares... (4x500gb is really quite useful to refurbish old PCs or to hotswap into the NAS server for ad-hoc data transfer)
 
Ideally, I'd have a pair of 4 x 3TB boxes as primary and backup copies of all the digits. I don't think that's gonna happen. By the time HD prices drop to pre-flood levels (barring black friday), 6 TB drives will probably be out and cheap enough for me to further consolidate the digits.
As for all the (smaller) HDs that I leave behind every time I upgrade... My parents take them off of me for their uses.
 
@Mysticial Well, moores law would predict that in x years, you could just recalculate the bunch in a month :)
 
tracking page says my package was delivered today.
no package, no notice in the mailbox saying they left it with a neighbour, or that I have to pick it up myself...
guess that means they'll send the pickup notice by mail on monday, saying "recipient not at home" or some bullshit. Again.
 
12:30 AM
@Mysticial you make that sound very creepy. "for their uses" - don't ask?
 
@sehe Bad choice of words... Just normal backups and data storage.
So as soon as I can upgrade my dual 2 x 2TB boxes into dual 2 x 3TB boxes, I'll be giving them the two 2 x 2TB boxes.
 
@melak47 I know how that feels. They (not sure if DHL) deliverd my 1100GBP mediacentre at the 2nd-grade neighbours, without any notice. I was lucky my neighbour decided to bring it to my door :)
 
lazy bums
 
When they delivered my Nexus 7 tablet, I wasn't there so they just left it on my doorstep. Anyone could have just walked by, seen it and taken off with it.
 
When I was building my 64GB machine, the first 16GB of ram got delivered to the wrong address because it was too long and the number got cut-off.
 
12:33 AM
LoL
 
I did get it eventually.
It just held back the project for a week while we waited for it arrive and it didn't.
 
there's about 10 antique shops on the street my mother lives on, some DHL guy likes to just leave packages in some of them instead of delivering them. Last time, the notice just said "package in anqiue shop". no street number, no shop name, nothing
Next time they pull that crap I'm just gonna say I never got the package, and have them "replace" it...
I only have some 3 GB of disk space left, I need those 2x2TB... now!
 
haha
Oh goodie, it comes with 300MB of WD "software".
 
that's why I like "naked" drives, no bloatware
 
It's only 300 MB out of 2TB.
I'll keep it on the drive if for whatever reason it becomes useful.
 
12:44 AM
... This insert function...
 
@ThePhD can I get your opinion on something?
 
Anyways, off to Costco to see if they have that 1k laptop in stock.
 
@Rapptz I'm not sure you want my opinion. TBH, it's kinda shitty.
 
iunno.
Don't do that psst
 
12:46 AM
I'd delete that
 
@Mysticial have fun window shopping :p
 
Um.
 
pingedy ping ping
 
@ThePhD mass plinking isn't very nice
 
All erased. >>
Maybe the others won't notice. >>
 
12:46 AM
We still got pinged
 
<<
 
I think the plink stays..
TSK.
for shame.
 
GTA MADE ME DO IT.
 
@Rapptz Nope. The plink is 'immediate' for users currently in the room
 
12:47 AM
Ah okay.
 
The 'inbox notification' is delayed and won't happen until before ~5 minutes have past without the user coming into the room
Deleted chat therefore messages generate no inbox notifications.
 
Whew.
 
So that's safe.
 
SHAME anyway.
 
12:49 AM
Shame on you still.
 
FOR SHAME
 
This is as opposed to deleted anwer/question comments, as the inbox notifications are immediate there. It sometimes happens that you get a notification displayed, when the actual SO comment has already been deleted :)
Who's @Mikhail :) ?
 
room topic changed to Lounge<C++>: Where someone should feel ashamed. [c++] [c++11] [c++-faq]
 
All the shame.
 
dat pun
 
12:50 AM
@sehe I'm waiting for valgrind to finish
 
Valgrind?
Sounds like a skater joint or something.
 
@Mikhail That accurately describes you as a welcome user in the lounge. Hi
@ThePhD da ignowance
 
Alright, time for some more alien killing.
 
> I'm a recent college graduate with a BS in Journalism, concentration in Public Relations, and a minor in Spanish. -- (for real)
^ lol a Bull Shit in Journalism. And she has a minor. well well
 
BS is usually Bachelor of Science o.O
There's a Bachelor of Science in Journalism?
 
12:52 AM
@sehe at my university we had a toil-paper dispenser that said 'Liberal Arts Degrees'
4
 
I know. But the context was so inviting to the misunderstanding :)
@Mikhail Wow
@Rapptz Sounds like judaism, somehow
 
Dude check this shit out fiftyshadesgenerator.com
3
 
Okay, I'm off to bed. Night all
> Inserting a 10 inch purple battery-operated monster into my quim got me spraying flange custard faster than a greased weasel shit. He munched on my vertical smile, even though I'd had Aunt Flo visiting for the best part of a week
ROFLMAO
Still rolling
 
Happy birthday @sehe.
18
Also, I'm not sober, so I'm going to sleep.
Have fun.
 
Xeo
Aw, no drunk robot action.
 
12:59 AM
@R.MartinhoFernandes Ha. Thanks. Did you remember or did you decrypt the message channeled over PHP over twitter?
^ NSFW (language) youtube.com/watch?v=N0eRCly44AA -- actually quite boring
 
Xeo
Oh hey, the polar bear is getting one step closer to retirement? Gratz. :P
 
posted on November 23, 2012

Last week, I introduced the notion of a data-structure audit routine. I would like to continue that discussion with a concrete example.

 
4TB external for $180... Tempted...
 
Why WHY WHY do I click on these LINKS @___@
 
4TB for $180? is that some kind of 2-drive external enclosure?
 
Actually, they just restocked a bunch of 3TBs for $100 each. Gonna get a pair of those instead.
 
gah
I want cheaper HDDs :(
the cheapest 2TB drive I could find here was 85€ = ~$110
 
This is all ridiculously expensive.
And -gigantic- on size. Christ. o_O
Largest I've ever had was 2-plated 1 TB.
 
I have 750GB+1TB+1.5TB+2TB now
 
And I once felt proud about having just one TB....
What're you all saving on those? The world?
 
1:30 AM
the 2tb drive is pretty much exclusively tv+movies
1.5TB = old data
1 TB = current data
750GB = backups
 
I need 2 x 3TB for all my amine. And a second 2 x 3 TB to back it up. But one of them needs to be in a single box. That's why I'm only buying 2 for now. I already ordered $90 3TB internal + a dual-slot enclosure online. I just need to find another internal 3TB to pair with it.
 
Mystical: can't you just encode your anime into pi? you should have enough digits for that, right? :p
 
Hey guys, quick question: if you have twwo hash values, what's the best way to smash them together?
 
@ThePhD ...smash them together?
 
Well yeah. 2 64 bit integers, I gotta combine them.
 
1:39 AM
into what?
 
Into a single 64 bit integer to be hashed.
Or maybe I could just hash 128 bits.
Line them up next to each other and then Goooo.
 
what are you doing?
 
Using unordered_map
And being bewildered by the insert function, but that's besides the point.
 
ok, so why do you need to smash and hash two hashes
 
Doesn't have to be two hashes, could be a single hash.
In fact, if igured out how I'm going to do it. Don't mind me. :D
 
1:44 AM
but what are you doing it for ;_;
now I need to know >_>
 
It's coooool man.
 
He's trying to be a chemist with C++
 
Don't worry about it.
Swirls a bubbling potion in an Erlenmeyer Flask.
WOOOO
VS2012 Crash
2gud
 
2:07 AM
did you really crash vs?
 
You say that as if it's hard.
 
well I tried it for about a day and gave up, it seemed pretty stable.
Usually crashing editors is hard. >.>
 
Woot, got my pair of 3TB externals... Time to do some massive copying...
... over USB 2.0, because my laptop sucks.
 
owch
 
Hahaha.
Nice.
Well, go to sleep, wake up.
Or, or, if your drives are a boss,
copy over a thick ethernet cable.
Seriously, connect to the drives (maybe through a Desktop), have that connected to a switch, and then have that connected to the receiver.
Whole GBs, easily.
 
2:15 AM
I'm flying back to school tomorrow night.
 
flying?
out of state?
 
I wanna transfer all 4TB over to the new drives so I can leave behind my 4TB box for my parents.
@Rapptz I live in California, but I go to school in Illinois.
 
Quite a jump.
 
parents must really want to get rid of Mysticial. x)
 
2:19 AM
@nixeagle cause I'm on fire. :P
 
@nixeagle or vice-versa :P
 
2:55 AM
So I need 17 hours to copy each of the 2TB drives over to the new ones. My flight is in 28 hours.
So the only way I'll finish is to split the box up and copy both drives in parallel.
Yay for parallel processing.
 
fuck
i want to kill people
 
why?
 
4am and a several drunkards are repeatedly hitting on the wall next to mine
 
At least they're hitting on the wall and not hitting on you. :)
 
that's a valid point but i'd rather have them not hit anything at all
HERE THEY GO AGAIN
so what's up Mysticial
 
3:01 AM
playing with my black friday loot
 
@Cicada file a noise complaint?
 
@Mysticial what did you get!
 
two 3TB external drives + a 2 TB portable drive
I was also shopping around for a new laptop, but didn't find what I wanted
Those and a 3TB internal + dual-slot HD enclosure from an online order. Once that arrives, I need to find a second 3TB internal to pair with it. That'll complete my Anime server upgrades.
 
All that for anime!
 
The 2TB portable is for normal stuff.
 
3:05 AM
@nixeagle I'm not sure it has any effect at all, plus, it doesn't change the fact that they woke me and will keep on waking me up if I try to sleep.
 
But I need to upgrade my 4 x 2TB drives to 4 x 3TB. Those are my Anime drives.
 
Do you have that much anime?
 
4.5 TB of it. 3.9 TB if you exclude duplicates.
So I'm running out of space on my 2 x 2TB boxes. (which I have two of: primary + backup)
 
D: this is crazy
 
I wait for next round to put together a proper backup box for all that Pi that I still have.
 
3:08 AM
Is an SSD worth it?
 
depends
 
on?
When would it be worth it?
 
everything
 
Depends for what, rly. I bought one for my system and I don't regret it. The speed boost is really nice.
 
whats a case where its a good idea?
 
3:10 AM
when you reboot often
or when you don't have a lot of ram
 
that sounds like its not worth it
 
their nice for laptops
I had one in my laptop - but it died.
 
When you compile a lot it's also great.
 
Of all things, the SSD dies - out of my 40+ HDs...
@Cicada When you have a lot of ram, it doesn't matter. OS buffers all the source.
That's the case for me on my desktops. I don't need SSD for them. I rarely ever reboot them and there's enough ram to cache almost everything.
 
@Mysticial I have a reasonable amount of RAM (8GB) and I don't think the OS would cache all the source anyway.
 
3:14 AM
How much source do you have?
 
I compile the Linux kernel on a weekly basis. Caching doesn't matter much because I compile it only once.
 
Oh, that's a lot of source...
 
the gentoo benchmarks say that there is little advantage... I also build teh linux source often.
thank god its not emacs
that would be a problem
 
> gentoo
ohgodno
 
3:17 AM
I have a sexual fetish for gcc output
 
um...
 
looks like the drunkards passed out (or away), since I'm not hearing them anymore
 
who mom likes
run it in terminal, learn
Also compiling the new android ics maxes out my 8GB of laptop ram...
 
There's a lot of stuff that takes more than 8GB of ram
Not the compiling but the linking
Modern software is huge
 
You are 100% right about the linking, but from using gentoo I know the ram usage is rarely over 2gb. I would be pressed to name 7 things that use more then 8...
8 is a lot...
 
3:23 AM
Well, Chromium is the first example I can think of
 
1. OpenFoam 2. Android 3. ???
 
Also, is it just me or answering good questions on SO has become much harder than before?
 
Isn't GCC mother fucking gigantic source-wise?
 
GCC's a beast yes.
 
I find myself listening to the tunes of Helmut Josef Geier recently.
 
3:25 AM
@StackedCrooked Does it make you geier?
 
Somewhat.
I've had this DJ set for two years now. I occasionally listen to it and it never grows old.
I'm now at 2h07m where it's slowing down. Which turns out to be from this track.
OK. I should start drinking, but I still sipping on energy drink.
 
I'll try sleeping again since the drunkards have left. Good night!
 
Night x 2
Hm.
I need to turn this member function pointer into an address.
.... Somehow, though, I don't think it's possible.
 
You want to manipulate instruction code? Sneaky :)
 
Chromium takes so much RAM to link because they insist on static linking.
 
3:39 AM
@ThePhD you can do it at runtime, this is how you pthreads c++.
 
If large components like WebKit were dynamically linked then it wouldn't need so much RAM at once.
 
I really just need to rip out the member function's address in memory.
 
I get about 4GB or ram use on a 8GB system when building chroum on Gentoo
 
That's all I really need. Even if it's virtual or not.
 
@ThePhD you can cast the pointer to a int...
 
3:41 AM
@Mikhail Impossible; that's not allowed for Member function pointers.
Regular function pointers, it's all good.
 
@ThePhD It seems that this works: printf("%p\n", &TestClass::MyFunc);
Outside of standard territory though.
 
Attemping an explicit cast is failing for me:

template <typename T> void Add ( T* object, void(T::* func)( T1 ) ) {
		uintptr_t faddress = (uintptr_t)func; // 'There is no context in which this conversion is allowed`
}
 
@ThePhD what about the valgrind?
 
Member function pointer is not a pointer.
 
@Cicada uh, that is why you call the police and make the complaint. They will come and make them knock it out.
 
3:44 AM
@CatPlusPlus As I realized, which is why I'm trying to get around it or get inside of it.
But every compiler vendor has different implementations.
 
user406009
@ThePhD Have your tried std::function?
 
@ThePhD What for?
 
@Lalaland I have that part working, that's not the problem.
 
There's nothing 'inside' that's of any use to you.
 
Don't listen to him, he is a talking cat. As long as its not virtual I am confident it is possible.
 
3:45 AM
There's Detours, if that's what you want.
 
He's Cat Plus Plus. Legendary.
 
@CatPlusPlus Intercepting functions would be fucking useful.
 
@ThePhD that is a pointer to a member function. There is a whole set of oddities around casting those as some compilers sometimes do odd things with those.
unless I'm insane.
 
@CatPlusPlus An event dispatcher. I have it working for static function pointers, and for regular member function pointers using bind, but I need a way to keeping track of which function pointers are member-function based, so I can appropriate clear the std::function slot they take in a std::vector
 
Er, you doubly don't need anything from member function pointers for an event dispatcher.
 
3:47 AM
@ThePhD I think you don't need to look at instruction addresses for that.
 
Extra extra, read all about it! :D
 
Use another means of identification instead of casting pointers to int.
 
> but I need a way to keeping track of which function pointers are member-function based, so I can appropriate clear the std::function slot they take in a std::vector
...?
 
Or just use signal/slot library like Boost.Signals because you're now reinventing it.
 
@ThePhD the problem is in the presence of virtual base classes member function pointers are not always constant size. (iirc)
 
3:49 AM
But what you want to solve now is really trivial: just return the iterator as a slot ID.
 
So casting to int is not even possible and doing so is insane anyway.
 
And possibly use std::map or something.
You can wrap it in custom class for encapsulation.
 
@StackedCrooked Right now, there's two Add and two Remove methods on my classes. One that takes a straight free-function pointer (the regular, easy kind) and one that takes a member and a member function pointer. I can bind using std::bind and it works fine, but the problem arises when I want to make it a tokenless system (I.E., I don't want the user to carry around a token to the slot ID). Thus, I need an internal identifier system for the member function pointers
 
@nixeagle At least pick long :P
 
@ThePhD also check this: codeproject.com/Articles/7150/…
 
3:50 AM
connection_id Add(std::function<...>);
void Remove(connection_id);
Except tokens are the way to go.
 
For regular function pointers, I just do straight address-comparison of the function pointers, and it works. @CatPlusPlus is right in that if I make it a token-based system, I could solve this problem, but my constraint is to make the system token-less, I.E. I remove by static-function pointer and by object + member function pointer.
 
You can't do anything with member function pointers.
 
@CatPlusPlus I know, and it's really biting my legs.
 
And @ThePhD amusingly the C++FQA summarizes it best on why you can't. yosefk.com/c++fqa/function.html#fqa-33.7
 
The problem isn't unsolvable, using tokens does get it right. But the challenge is to make a Token-less sytem.
 
3:52 AM
The bottom line is that unlike a global function pointer, a member function pointer is not just the address of the first instruction of the function in most implementations, apparently with the exception of the compiler by Digital Mars (the company behind the D language). That compiler generates "thunk code" which handles the differences between various dispatching mechanisms (virtual vs. statically dispatched functions, different kinds of inheritance), and uses the address of that thunk code to represent member function pointers. Quote from the article about this implementation: "Why doesn
 
That's not a challenge, that's a waste of effort.
There's a reason everyone uses tokens.
 
Yeah...
Maybe I could just be dirty and sizeof the member function pointer and allocate a char [sizeof( memfuncpointer )] and use that as the identifier.
 
You can get rid of tokens by getting rid of connection removal.
 
@CatPlusPlus Eh? o_O
 
And do what with it?
 
3:54 AM
@CatPlusPlus Use it as the internal identifier, for member function pointers and their joint object instance.
 
Yeah, and how do you assign that identifier to a member function pointer?
You can allocate an array, but then what?
You could return it, but then tokens, and you might as well simplify them.
 
I associate that identifier with an index in the std::function vector. When it gets removed, I can regenerate that same internal identifier and then use it as the finder.
 
How do you regenerate it?
 
If I was just using a token system, I'd just return the integer slot and use that as the connection_id and save myself this world of hurt.
The caller for Remove takes an object and a member function pointer. If it's the same, it should generate the same identifier from the stretch of characters.
I.E. object has same memory pointer, member function pointer data is the same.
 
What characters?
Write code that generates that id.
 
3:58 AM
Okay, gimme a second here. Lessee...
 
You could probably use typeid(&A::a) and store as const std::type_info* in your vector.
 
You think type_id could differentiate between member function pointers? o_O
I never thought of it like that...
 
@ThePhD I'm not quite sure your assumption there holds around member function pointers. Especially when you get into virtual classes and compiler optimizations. I can see a member pointer function being used for two different objects if there are no overrides of the base class.
@StackedCrooked neat idea, but that is essentially tokens :P
 

« first day (770 days earlier)      last day (4176 days later) »