« first day (424 days earlier)      last day (4525 days later) » 

Xeo
12:02 AM
Cool, my reference_wrapper method for creating an ordered view on an unordered map actually works without any copies/moves whatsoever!
 
cong-rats and other rodents?
 
Xeo
lol, there is a nice command un linux..
 
I often use it to prevent my multi-process build from slowing down my PC.
nice -n 20 make -j4
At work.
At home -j8 is just fine :D
There's also renice to modify priority of an already running process.
 
Admit it, you only do that so you can slack longer while it's building.
 
@Xeo Did you not expect your code to work?
 
12:17 AM
Oooh, the sci-fi site has a new design.
 
If you slacked too much you can always blame the lack of progress on debugging.
 
Xeo
@MooingDuck I expected it to work the way I expected it to (no copies/moves), but I just wanted to make sure. :)
 
@Xeo OK, prepare a demo for our customers! Make it with a flashy gui and all.
^ My previous boss.
 
Xeo
lol
 
Only worked there for about 5 months.
I fled the place like a gangster.
 
Xeo
12:26 AM
Curse you @Kerrek, for hitting the "Send" button before me and already having 3 upvotes! :|
 
@Xeo Whoops :-)
 
Xeo
Holding your sockpuppets close to you, eh?
 
The C++ tag is too crowded. We're constantly stepping on each other's toes.
 
Xeo
Well, @DeadMG will be gone in a few month when W is done
since he'll roam on that tag :D
 
lol
relax, I'll always haunt remember the place of my software birth
 
Xeo
12:30 AM
Damn, "W" is already taken as a language name inofficially.
 
@Xeo Sock puppets? How so?
 
W is not very googleable.
 
Xeo
It was a joke :)
@RMartinhoFernandes "W programming language"
Where is your Google-fu now?
 
@Xeo But I didn't get it....
 
I didn't say "ungoogleable".
 
12:32 AM
Just like C.
 
@RMartinhoFernandes I'll probably be a lot busier in a few weeks' time, too...
@Xeo Oh, I used an FPA for that.
Scrape a few more seconds off the enlightened race
 
Xeo
A what?
 
What I really need is an FPA browser plugin
 
Xeo
lol
 
@KerrekSB The links section is missing the book list!
 
12:36 AM
@RMartinhoFernandes I haven't pushed the latest version yet
It's sitting there in my local copy
 
Yeah, right.
 
@RMartinhoFernandes Thou doubst my words?
 
Xeo
Damn, sometimes I really don't feel like helping my parents out with their tavern...
But I have to tomorrow, and since it's nearly 2am, g'night.
 
@RMartinhoFernandes If I have a new item to add to the FPAs, I'll upload them anyway. Hm. Maybe regexes?
 
@KerrekSB I have no way to obtain reasonable evidence of their truth.
 
12:41 AM
Lord of the rings all three movies in 1080p is a 79GB torrent. I wonder how long this will take to download.
 
@RMartinhoFernandes Their truth is self-evident. Essentially I speak in tautologies. Like this sentence, which is true.
 
Xeo
@StackedCrooked 10 minutes. :)
 
Thanks to anyone who has tried to help with my my minix project, im going give up on it for now but thanks for the help!
 
@Xeo Right.
 
Xeo
If you have a 100mbit connection, that is
 
12:42 AM
@StackedCrooked Don't worry about that -- rather, worry about how long it'll take to watch!
 
I really hate it when operating systems have package managers.
 
Xeo
@KerrekSB shorter than it takes your momma to walk by the screen!
 
I have a DSL with top download speeds of 480KB/s.
 
Xeo
@Maxpm When they do or when they don't ?
 
@StackedCrooked That's including extras and commentary and all that crap?
@Maxpm You're silly.
 
12:43 AM
@Xeo When they do. I dislike integrated package managers.
 
@Xeo I have a fairly wide screen...
 
@RMartinhoFernandes Nope, just the movies it seems.
 
why would you want any of those films
 
Xeo
extended editions atleast?
 
@Maxpm Me, I like disintegrated package managers.
 
12:44 AM
Oh, well, it's like 12 hours or something.
 
there about as boring as harry potter
 
@Xeo Yep.
 
Xeo
The HP books are a nice read actually.
The movies are totally fucked up though
 
I remember that it took us the entire afternoon and a large portion of the night for our marathon.
 
Xeo
Starting from the 4th part
 
12:45 AM
I've never seen the extended editions.
Are they much longer?
 
@StackedCrooked I'm about to finish it
I reckon it took me a month, maybe
 
the extended films are the regular ones just slown down
 
@DeadMG WTF lol
 
and I've got a 30Mb/s connection
 
@StackedCrooked Lots.
 
12:46 AM
the swarm is pretty shit on it
 
@DeadMG Currently my DL speed is 23 KB/s...
 
usenet people! USENET!
 
@DeadMG Will you seed?
 
I can do 45GB a night with a bunch of 720p
I have
my ratio is 0.995
 
I need to scp to your comp :D
 
12:47 AM
I don't think so
 
DL speeds are of this torrent is really crappy.
 
I obviously should never have linked Cracked here
 
@DeadMG @StackedCrooked USENET!!!!!!!
 
@Ollie What about it?
 
12:48 AM
@DeadMG That's less than one!
 
get it! I have 50Mb/s connection and whatever time of the day it is and no matter what file i am downloading i always max out the connection
 
@Ollie WTF do I give a flying shit about usenet?
 
> 'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind.' -- in Eric
 
this isn't even for me, I don't care how long it takes
 
once you go there you will never ever go back to torrents
 
12:49 AM
LOTR is a pile of shit
 
haqha with that, i agree!
 
and I'd sure never blow 80GB of my own precious hard drive space on it
it's a gift for my brother when I go home in a week
 
A gift?
 
"Here's your gift, sucker: pirated LOTR special editions."
 
12:50 AM
i was going to say
 
Xeo
@RMartinhoFernandes "Hope they take you in for that."
 
It took you a month to download. Perhaps that makes it more meaningful.
 
haha
 
ETA is currently merely 2w1d. Better than I expected..
 
I'll start seeding random data to slow you down!
 
12:52 AM
haha i used to connect my laptop into the unis network via ethernet and download at 19MB/s
 
It's 3w now.
4w5d :(
 
well, his connection at home is a cup and string
literally, he's lucky to get 200kbs
so 300GB of HD films is a great gift
 
it would take him a decade to get this stuff
 
He'll consume it in a weekend.
 
12:54 AM
uh
do you have any idea how much HD film is 300GB?
 
I doubt that.
 
more than a weekend
he has to work, you know
 
And sleep, and shit.
 
and use the toilet too
 
I mentioned that.
 
12:55 AM
he does?
 
also, one of them is for my mother
some random crap from the 1980s
 
Top Gun.
 
interesting fact
according to BitTorrent, 78.3GB is 98.1% of 77.9GB
 
I already downloaded 31.7 MB.
 
12:56 AM
You sure it's not the other way around?
 
yep
it's not that illogical, really, discarded pieces probably make up the difference
 
Sometimes it needs to download fragments twice due to corruption. I guess.
 
yeah, Windows has a habit of crashing ever since I lost that other case fan /whoops
so I expect that kills a couple pieces
ITUNES Y U SO SHIT
 
You use iTunes?
 
my official description of your functionality
I could practically write a better mp3 player in my spare time in my own language that doesn't even have an implementation
 
12:59 AM
Why do you use it?
 
Xeo
1
Q: Allow for Range-Based For with enum classes?

kfmfe04I have a recurrent chunk of code where I loop over all the members of an enum class. The for loop that I currently use looks very unwieldly compared to the new range-based for. Is there any way to take advantage of new C++11 features to cut down on the verbosity for my current for loop? Curren...

 
because I have an iPhone
 
Xeo
Wtf, why would you need to iterate over every member of an enum?
 
You don't lose as many points in my book then.
 
1:00 AM
iPhone is the devils work
 
iTunes made me update before I could update my iPhone
wtf, 80MB for nothing
good thing I have an obscenely fast internets connection most of the time
 
@DeadMG For some reason that surprises me.
You don't seem like an iPhone dude.
 
I got it for cheapass from my brother when he switched to the latest and greatest Android phone
 
<3 Android
 
sleep:INeedSome();
 
1:03 AM
Dammit @MooingDuck! I fixed your answer and your edit stepped over my fix!
 
@RMartinhoFernandes It's the circle of life. No wait..
 
Xeo
try{
  call_sandman();
}catch(good_dreams const& s){
  sleep(s);
}
 
I should downvote him for that!
 
Xeo
g'night everyone
 
night
 
1:05 AM
I could have just stolen his answer and posted it fixed as my answer instead.
That would teach him.
 
I'm going to silently withdraw from this chat.
For tonight.
 
Don't leave me alone!
It's dark in here.
 
You're a robot. You can deal with loneliness.
 
Also, it's raining outside, and I need to go get water.
 
Xeo
@StackedCrooked That wasn't silent.
And I should be sleeping already.
 
1:07 AM
I'm still in the initial stages of the withdrawing process.
Who ever came up with operator()..? Let's make objects callable!
Ok. Sleep. Now.
 
1:29 AM
In retrospect, it was a good idea.
 
hey @keithlayne
 
hey man
 
how goes it
 
I took a nap, so awesome goes it.
how's your progress?
 
i made everything i had done so far work
 
1:36 AM
good job
 
but now im completey lost with the whole internal fragmentation bit
 
does everything you did before make sense to you at this point?
 
and there is no documentation on how to do that in minix as minix sucks donkey balls!
 
I will try to give you a hand if I can
 
oh yeah, it does now. I looked at it for a long time and i get why it was having the issues and how to get around the issues it was having with PWD
when i say there is no documentation, i mean NONE! not even a man page
 
1:39 AM
it's important for your code to work, but even better to understand it
trust me, in a little while after you are done with this project you will be amazed it was ever difficult for you at all
is the problem statement posted somewhere?
 
yeah, i find that i learn best if there is a similar example because then i go through and work out what every line is doing
1
Q: Minix Internal Fragmentation

OllieI have recently been working on a project to recursively list all files within a directory and output the filename, size and path. I now need to add the amount of internal fragmentation to the output and then work out the percentage of internal fragmentation within the directory. I have worked ...

 
I'm looking around, I'll let you know if I find something
 
thanks man
what i do know is that there is a get_block and a get_inode
along with others
but no documentation on there
 
2:13 AM
you wanna let me see your current code so I can see how you're doing the tree walk?
 
 
1 hour later…
3:33 AM
> WHAT THE FUCK AM I DOING HERE???
Despair on the Youtube.
 
If the answer is "masturbating", then you're doing it wrong.
 
I just need to drop this in here: stackoverflow.com/q/8499085/539209 I am crying. ):
 
Not me :-)
 
I am crying so bad because his boss wants him to create a Flash Decryptor to pass an image via plaintext HTTP instead of plainly using HTTPS.
 
3:49 AM
Arrrgh. Initializer lists suck.
 
Well, good night
 
Can't make them out of references, can't move stuff out of them. Arrgh.
Luckily, I can fake them to some extent with variadic templates.
 
@RMartinhoFernandes "them"? mib stuff?
 
Initializer lists.
 
orgasms
 
4:01 AM
@RMartinhoFernandes u have to wait till visual c++ supports them
 
I'm not using Visual C++. I'm using GCC.
 
well possibly there will also be a DR and fix, because i seem to remember it's unclear in what cases the data can be copied
 
@keithlayne I don't think men can fake that. ICBWT.
 
I was suppressing a "your mom" joke
 
4:34 AM
@keithlayne did you see anything?
 
I'm working on it. downloaded minix, installing. You using minix3? What packages are you allowed to use?
 
gcc
anything that comes installed
here is the conclusion i have reached
thats my notes i just made, i know that would never work as it is
/* int inono = buffer.st_ino
int blkno;
int blksize = FILESYSTEMBLOCKSIZE
int freespc;

get_inode(inono)
struct inode *rip
inono = rip->i_ino
if (last block flag detected)
{
blkno = rip_i_block
get_block(blkno)
?struct block
freespc = size of block - size
} */
are you using vmplayer?
 
no, qemu
 
oh ok
i could have given you the vmfiles
 
I will take a look and get back to you...you have a day or so?
 
4:45 AM
yeah i have a week
 
okay, I will ping you here or answer your question or something
 
im going to be travelling a bit from tomorrow on and will be on here at the most bizarre hour
so take my email incase you have a major break through and then ill come running here
olivermarriott@hotmail.com
thank you so much for taking the time to try and help me :-)
 
no problem, I was bored :)
 
5:16 AM
@sbi, @DeadMG oops. I just saw you mentioned my alias here, in Oct 16th. Seems that the notification system was broken at the time. Sadly I'm not having much spare time to join here. See you soon.
 
5:39 AM
anyone here at this hour?
 
 
3 hours later…
Tin
9:01 AM
Hy guys, anybody here?
I'm having some compiler error messages that couldn't solve sofar: error C2248: 'std::unique_ptr<_Ty>::unique_ptr' : cannot access private member declared in class 'std::unique_ptr<_Ty>'
I can't really find what I'm doing wrong
could anybody have a brief look at the following code: pastebin.com/ndXBBtkb ?
 
I expect you'll find an instance of trying to copy-construct a unique_ptr
perhaps in assigning the result of FilterbankDescriptor::create() to a variable?
 
Tin
the error happens, when I explicitly instantiate the classes in my .cpp (filterbankdescriptor.cpp or filterbank.cpp) , e.g. template class FilterbankDescriptor<float>;
template class FilterbankDescriptor<double>;
 
9:16 AM
Ah, yes
I think that even with C++0x you can't put unique_ptr in a std:: collection
Since some operations will silently copy the values, and would transfer/destroy ownership
I'd suggest replacing typedef std::unique_ptr<Kernel2D<T> > KernelPtr; with something like typedef boost::ptr_vector<Kernel2D<T> > KernelPtr;
This is one of the reasons that unique_ptr was bought in, because a vector of auto_ptr would silently destroy your data =)
 
@rvalue You can.
 
the Boost pointer container library has mirrors of the standard containers which will take ownership of heap-allocated objects
@CatPlusPlus But you have to restrict yourself to .emplace and such, yes?
 
Tin
I added the .cpp files for better ilustration => pastebin.com/LC3hpYez
 
anyone able to figure out what the syntax in this guy's "function2" is? stackoverflow.com/questions/8501991/…
is that actually a function definition?
 
mmmm... nooob
 
9:25 AM
function pointer'd
 
but a function pointer with a body, and declared as a template?
 
Tin
@rvalue, @CatPlusPlus in both classes I've a move constructor and from that it should be ok, doesn't it?
 
I can't use C++0x in my day job yet; I'm pretty much down to generic C++ advice on this one. Cat?
 
@jalf, competent C++ programmer must understand any C++ syntax =)
 
Start with K&R C and work your way forward...
 
9:36 AM
btw, did you seen C++ _countof ?
namespace { template<typename T, size_t N> char (*countof_helper_(UNALIGNED T(&)[N]))[N]; }
#define _countof(arr) sizeof(*countof_helper_(arr))
every time when I look into CRT, I feel how noobish I am
 
Tin
@rvalue, @CatPlusPlus could the error message be because of the clone() & create() member functions in the filterbankdescriptor class? From what I read, the unique_ptr does not support copying objects, right? only moving. Now, in my clone() or create() functions, I'm trying to copy a FilterbankDescriptor object, which has as class member a Filterbank. The Filterbank has a container of unique_ptr and since it's not possible to copy such a container, I get the compiler error? Does it makes sense?
in other words, the virtual-constructor-idiom (create()/clone()) are not allowed for unique_ptrr based containers, right?
 
9:55 AM
@Tin unique_ptr is for unique objects, why do you want to copy it?
 
@Abyx to get more unique objects, of course
 
@Tin Not unless you provide a copy constructor. std::unique_ptr isn't relevant here, copyability isl
 
new objects, not copies
 
What std::unique_ptr does is delete the generated copy constructor.
 
Tin
10:10 AM
thanks for the feedback. so, let see if I understood it correctly.
(1) the virtual-copy-constructor (clone(),create()) copies the state of a given 'this' object, right? it's useful for instance in a polymorphic design (say Shapes)
(2) a unique_ptr guarantees a unique ownership of a resource (say object's pointer), therefore `no copies` can be done, only `moving`/`transfering` the ownership of the resource, right?
(3) a class with a class member consisting of a container of unique_ptr, e.g. vector<unique_ptr<Shapes<T> > > could not have a copy constructor, because again we can't copy resour
 
@Tin if you have a Shapes base class, you're doing it wrong
 
A class can always have a copy constructor.
 
there is nothing stopping you from copying a resource owned by a unique_ptr, either with a custom clone function or with a regular copy constructor. unique_ptr only prevents you from copying the pointer
but otherwise, it sounds about right
 
Tin
@jalf, why I'm doing it wrong, if I've a Shape base class?
furthermore, the custom clone is my case is thought for being used in the copy constructor
 
because Shape is a really bad abstraction. (And also because polymorphism in general is way overused)
 
10:22 AM
Good morning
 
@Tin Does this example help you with some of your questions?
 
@LucDanton What's up?
 
@ManofOneWay Hi.
 
Haven't seen you in a while
 
Yeah, not as active on SO either these days.
 
11:00 AM
I see. What are you working btw? Something fun?
 
so yeah... I have started recently... and been left in charge of a bit of a lynch pin area of code... with only a few days of some one talking me through it... Not a clue what is going on :'(
 
sbi
@Stacked, @rubenvb: Good to know!
 
@sbi O_0 some people...
 
sbi
@jweyrich You come here to answer 8 weeks after you've been mentioned and do not even link to the mentioning? What do you expect of me? I'm not a robot. After 8 weeks, it might just as well have been in a former life...
 
who?
anyway, anyone who still calls them "alias"es doesn't deserve your attention
 
sbi
11:06 AM
@TomalakGeretkal Let me be the judge about who's worth my attention.
 
@sbi permission denied.
 
sbi
11:19 AM
@TomalakGeretkal Oh buggrff.
This is a dupe, I think. What do you guys think?
 
What a nice person.
yep, def a dupe
18
A: Operator overloading

sbiThe Decision between Member and Non-member The binary operators = (assignment), [] (array subscription), -> (member access), as well as the n-ary () (function call) operator, must always be implemented as member functions, because the syntax of the language requires them to. Other operators...

that entry even uses the text "rule of thumb", in bold, that the OP is after
 
removed now
 
Tin
@LucDanton, thanks for the example. I'm checking it now
 
sbi
@thecoshman Yeah, I wonder why. I always think that such dupes just provide another entry point for googlers to find what they are closed as dupes of, so I'd prefer to keep them around. Unfortunately I can't comment there now anymore. Voted to undelete.
 
Tin
@jalf, actually I've a class hierarchy of some other types. Shape was used here only for illustration purposes
when you said it was incorrect, I thought it was sth. related to my reasoning, uff, I was getting worried :-)
 
11:26 AM
@sbi wish I had the powers
@sbi and that is wrong logic. If the dupes are re moved, people are less likely to link to them so the good answers will be linked to more. This means that they should be ranked higher by google. Thus removal of dupes is probably a good thing
though it dose mean you can't have fun post an answer that is just links to dozens of others questions asking the same thing
It also really annoys me a question goes stale... I don't get to accept an answer and so I end up getting a lower and lower accept rate
 
sbi
@thecoshman If google gets users to questions deleted as dupes, so what? They'll eventually find the one all others link to. If the dupe's title better fits the search phrase, it will just lead to more users finding the ultimate answer.
@KerrekSB: I don't that Wikipedia entry very much. For starters, it totally neglects the fact that many of those operators can be overloaded based on const, and a lot of them should be overloaded thus.
 
@sbi ahh... that is true... though how many non-users would actually bother to follow a link to the right question
 
sbi
@thecoshman Even though it's atop the question? (Maybe those shouldn't dabble in C++ then anyway...)
 
I don't care how easy it is for people to find the right question.
 
Tin
@LucDanton, thanks a lot for your code. It illustrates very clearly the use of std::unique_ptr for the sake of copying objects as well (i.e. the overload of the assignment operator).
 
11:33 AM
It's semantically wrong that dupes exist!
 
@sbi no, they probably will just post another question if the first question they see does not have the answer
 
When you Google your question, you should get the answer, not some arbitrary piece of shit post that got closed and makes you have to keep clicking
 google(the question) = the answer
 
Tin
@LucDanton Let's say that in your container class, one also defines a move constructor. I guess, it should look very similar to the default constructor (using the std::move), right? Furthermore, whenever one defines a move constructor, then we need to define the move assignment operator, right (container& operator=(container&& other))? But since, we have one already, there might be a compiler error, right?
 
I think you should trust in google to find the right questions
 
you're focusing again on ease of finding
who cares how easy some newbie can find the post?
 
sbi
11:35 AM
@TomalakGeretkal That question isn't "some arbitrary shit post." It's a pretty well question, actually. It's only flaw is that it had been answered before.
 
it's just wrong for the wrong one to exist though!
@sbi general case
 
sbi
@TomalakGeretkal You don't, obviously.
 
@Tin If there's a user defined copy assignment operator, then there's no generated move assignment operator. If you then (user-)define a move assignment operator (in addition to copy assignment), the two operators will overload fine.
 
@sbi that is what I am saying, yes.
 
@Tin It's probably simpler to just use the default move constructor and assignment operator in this case though.
 
11:37 AM
the key thing here is succumbing to OCD and endorsing correctness in the world, not pandering to newbs by putting their chaotic interests ahead of order
 
I wonder if it would be possible for auto-redirects to be set up... so that these dupes can have a we message "This message is a dupe, transferring you..." and away you go to the right question automatically
 
@thecoshman makes re-open voting difficult
 
@TomalakGeretkal have a time-out that can be cancelled?
 
@thecoshman ok, but why?
I think that'd just be irritating tbh. I hate timed redirects, and forcing me to rush to disable if i wnat to stay on the page doesn't help
 
and I envision that such a feature would only be used after any doubt about the question staying around have been sorted
 
11:40 AM
@thecoshman who decides that?
 
This idea would be that the question it self is kind of pointless. You only got it because you happened to write a search that more closely matches it.
@TomalakGeretkal erm... the same as most other things here... the cumminity
The same users that have the power to close questions etc.
 
@thecoshman but once a question is voteclosed it can be votereopened
so, who decides when re-opening is somehow less likely or less valid?
do we vote on that, too?
and what about when someone comes along who votes to reverse that decision?
democracy is complex biznis
 
the system seems to be working fairly well so far. So yeah, once a question has been closed, an auto redirect can be voted for.
simples really
any hoops, lunch time comes early to those who work extra hard :P
 
sbi
@thecoshman Well, then this couldn't affect you, right? :)
 
lol
 

« first day (424 days earlier)      last day (4525 days later) »