« first day (787 days earlier)      last day (4153 days later) » 

3:05 PM
Ninja operators.
 
Is it just me, or does Windows 8 have a more optimized file copy?
 
Maybe improvement in NTFS.
Perhaps COW.
 
I know for sure that the buffering in Windows 7 is complete shit.
 
user142019
@R.MartinhoFernandes multiplication?
 
Like, I can make a faster file-copy in about 20 lines of C code.
 
user142019
3:11 PM
You can also do it in one line of C code. :^)
 
user142019
Man. My code is awesome.
 
@Zoidberg'-- If you put it all on one line, then yes. :P
 
user142019
I want libröntgen. I don’t like uv.
 
I say 20 lines, because it's not that trivial for files larger than 2GB.
But still doable in 20 lines.
 
rsync is quite a champion when it comes to copying large directories.
 
3:12 PM
And it beats the shit out of the Windows 7 copy.
 
@Mysticial Well, it could hardly be a less optimized file copy, now could it?
 
user142019
> nread is > 0 if there is data available, 0 if libuv is done reading for now or -1 on error.
 
user142019
Very useful documentation. What is “done reading for now”?! THEN Y U CALL THE CALLBACK.
 
@JerryCoffin I'm sure you could design a randcopy algorithm which would be marginally less optimized
write a random byte to the destination, check if it's the same as you read from the source, if not, write another random byte
 
@jalf Well, I suppose if you tried hard enough. For that matter, the file copy in NT4 was actually (quite a bit) worse too. Never did quite figure out what they were smoking when they wrote that...
 
3:16 PM
@jalf Complexity is linear. Not too bad :)
 
I've shuffling around 40 TB of data these last few days and I have noticed that things are a bit faster on my laptop (Win8) than my sandbox (Win7).
It could also be that my laptop has a better USB3 controller.
 
user142019
40 TB ಠ_ಠ
 
Yeah, (11 TB of digits) + (5 TB of Anime) + (several TB of misc.) + backups of everything.
 
11TB of digits!? Pi digits?
 
user142019
misc. ( ͡° ͜ʖ ͡°)
 
3:20 PM
I'm shuffling things around to put all my commonly used data on my multi-box enclosures and moving all my digits to the individual externals.
 
4-bits per digit?
 
Digits aren't accessed very often, so I'm putting them on external drives and boxing them. I'll be bringing the backup copies home for Winter break. The primary copy will probably go home during Spring break.
 
user142019
I can represent π exactly in base 10: 10.
 
All my Anime will be consolodated into my multi-drive enclosures, since I move them around a lot and it's more convenient to keep them together.
@StackedCrooked For the binary digits, yes, it's 4-bits per digit. For decimal, it's 19 digits per 8 bytes.
 
3:23 PM
And I'll also be retiring several of my older drives and handing them down to my parents.
 
^ it's so... slow
 
user142019
@Abyx lol awesome.
 
So I googled "silly":
I get a cat with a lemon on it's head
guess that qualifies :P
 
user142019
@TonyTheLion we can see that, silly.
 
user142019
. CHANNEL ERROR (VERBOUS)
RECEIVED MESSAGE "Quota Exceeded.  Please see code.google.com/apis/websearch";.
HUMAN READABLE: "Mountain View, we have a problem."
ADVICE: A quota error indicates a temporary overload due to high demand. Please retry later.

ENTER 0 (ZERO) TO START OVER.
 
user142019
3:26 PM
@Abyx fu for wasting my time. :P
 
@TonyTheLion I just realised that a cat’s head is too big for a lemon, and it doesn’t look like the texture of lemon skin anyway, it’s probably a pomelo or something like this …
 
user142019
Yay boring lecture about doping.
 
… and I’ve been looking at this picture again and again for half a decade now
 
user142019
Pomelos taste wonderful.
 
3:28 PM
what.
 
user142019
@TonyTheLion Pomelos taste wonderful.
 
I don't think I've ever tasted one
 
user142019
Try it. It tastes wonderful.
 
user142019
Anyway, I have a lecture. brb
 
^^ The guy who was dissing on paxdiablo yesterday.
 
3:31 PM
@Mysticial Nah, he was just generally being an asshole
 
Xeo
@Zoidberg'-- They indeed do.
 
@KonradRudolph And pax's comment got deleted... damn. Never saved it.
And the comments just got wiped too...
That's a coincidence. I don't see any mods in the room that could've seen this link just now and decided to wipe the comments.
Oh I take that back. I do see a mod in the room.
 
user142019
Ich bin wieder da.
 
user142019
@Mysticial lol his questions.
 
user142019
Linked lists are about the simplest data structures to implement.
 
user142019
3:35 PM
After scalars (if they count) and arrays.
 
user142019
> Warning - format specifies type 'int' but the argument has type 'ssize_t' (aka 'long') [Disable with -Wno-format]
 
user142019
CLANG Y U NO TELL ME WHICH SPECIFIER TO USE
 
user142019
Unhelpful piece of junk.
 
user142019
Well then, man printf.
 
3:37 PM
real men, use printf
 
user142019
What must I use for an ssize_t?
 
Gaah, I’m getting an aneurysm from all the stupidity.
 
user142019
Man page says %z but clang gives a warning that %z doesn’t exist.
 
A German news outlet has reported that the UK wants to finance whole genome sequences for up to 100000 cancer patients
 
user142019
Oh %zd.
 
3:39 PM
and the only reaction of the readers in the forum is: “this fascist police state, they want to steal our genome yadda yadda yadda”
With lots of comparisons to Gattaca and V for Vendetta (WTF?) being made
what happened to make people so mis-informed about genomics?
 
user142019
Politicians.
 
I can't stop eating food that burns my face
It's so delicious
And painful
 
user142019
What food is it, pomelo?
 
user142019
Stupid libuv. Number of bytes available can be zero without error and without EOF.
 
user142019
 
3:45 PM
Tortilla filled with stuff that burns
 
user142019
Sounds tasty.
 
What a coincidence, that's what I just ate. Didn't burn though.
 
-12
Q: how to disable notepad,word,paint excel when any window is open using php and javascript

Anchal GuptaI want to disable notepad,word,excel,paint when html page is open. Is it possible with using php and javascript, that till page is not closed all the application should not working? Basically i want to protect my data so that no user can take print screen and use alt+tab and copy my data

^^ nice...
 
3
A: What is the order of calling destructors for temporaries in C++?

Vlad LazarenkoThe order of evaluation of expression f(A()) << B(); is not defined. Thus, the order of construction/destruction is not defined as well.

Is this correct?
 
Yes it is. There's no sequence point.
 
At least the first sentence is. I'm not sure about the construction/destruction part.
 
how could you call << B() if the object you call it on isn't constructed?
 
Well, whether A() or B() is constructed first is not defined.
Likewise, f() can be called before or after B() is constructed.
 
Xeo
Yep
 
3:59 PM
But the call to << must be after both sides are done.
 
Xeo
@Luchian: The operator<<(...) was just a conceptual thing, it doesn't matter if it's actually f(A()).operator<<(B())
 
I don't know what you're talking about :P
 
Xeo
The only thing we know is that:
- A() is sequenced before f(...)
- B() is sequenced before operator<<
- f(...) is sequenced before operator<<
That means that A() is unsequenced with regards to B() and the same goes for f(...)
 
Will just wiped all three of the guy's questions...
 
user142019
This lecture is most boring.
 
4:03 PM
Xeo's is interesting.
 
user142019
 
I just did a Sublime Text2 plugin. Needless to say, it is to smoothly open the current file/line in gVim: gist.github.com/4259744
 
user142019
It’s Windhoos only!
 
user142019
But nice work. :^)
 
Xeo
0
A: What is the order of calling destructors for temporaries in C++?

XeoLet's talk about subexpressions and their sequencing. For f(A()) << B(), which is in your case the same as f(A()).operator<<(B()), we know that: A() is sequenced before f(...), f(...) is sequenced before operator<< and B() is sequenced before operator<< This also tells...

 
4:17 PM
Hey guys, quick question.
Assuming C is an integral type, is C++++ undefined?
 
Xeo
It's ill-formed, I think.
Since postfix ++ yields an rvalue.
 
@R.MartinhoFernandes Who, someone likes me...
 
Xeo
And postfix ++ on integral types needs an lvalue.
 
As does prefix ++, so ++C++ will not compile either.
 
4:20 PM
I think that can work on rvalues
 
@DeadMG nope
 
Xeo
Fundamental types don't like being modified when they're rvalues.
Also, I think I screwed up a bit on the standardese in my answer.
 
@Xeo You mean scalars ;)
 
Xeo
All fundamental types don't like that. T* f(); f() = 0; //error
Nah, my standardese's fine.
 
Are pointers fundamental? I don't think so. But they're scalar.
According to 3.9.2, pointers are not fundamental, but compound.
 
Xeo
4:28 PM
Oh, right, they're compound and scalar.
Yeah, bad example.
Anyways, which fundamental types are not scalar?
Also, does anyone know where exactly the standardese for "stuff is destroyed in the reverse order of creation" is located?
 
> I hate when my dogs take more than 1 minute outside to shit. JUST FUCKING POOP YOU DOUCHEBAGS. FUCK YOU.
poor dogs
lol
> I hate the number 151
wat
 
@TonyTheLion woof
 
Dogs are dumb.
 
Wow, I had forgotten how obscure Spirit’s error messages are
ah, fuck that shit, I haven’t got time to learn proper C++ now :/
 
4:41 PM
@EtiennedeMartel Why don't you like dogs?
 
Xeo
Oh hey, good answer badge for @Mysticial lambda question.
 
@Xeo We got it at the same time.
If you check the recent badges list.
Right next to each other.
:)
 
Xeo
Yeah, thanks to the downvotes. :P
 
hey
 
Xeo
13 mins ago, by Xeo
Also, does anyone know where exactly the standardese for "stuff is destroyed in the reverse order of creation" is located?
@R.MartinhoFernandes ^^ ?
 
4:45 PM
Page 10, footnote 8? ;)
 
micron 24552198
 
@TonyTheLion Because I wouldn't be able to keep one. Too dependent.
 
I prefer cats.
 
oh that makes sense
 
4:49 PM
I like dogs when they're not mine, you see what I mean?
 
posted on December 11, 2012 by James McNellis

Registration for the seventh annual C++Now Conference (formerly BoostCon) opens today, and if you're looking for a great C++ conference to attend this year, you should definitely consider C++Now.  I attended last year's conference and it was terrific:  in addition to a splendid program of sessions about a wide variety of subjects related to C++, it was an unparalleled opport

 
std::vector<std::string> vec;
std::string token;
while (istr >> token)
    vec.push_back(std::move(token));
is this an acceptable / beneficial pattern? That is, is the std::move non-redundant here?
 
Xeo
I find the std::move in that questionable.
Since you're going to recreate the token buffer anyways.
 
I want to avoid the copy that is held inside the vector
and precisely since token is going to be reused anyway I can move here – at least that’s how my reasoning goes
 
Xeo
5:01 PM
Well, you either move the buffer into the vector, and reallocate the buffer, or you copy the buffer into the vector and reuse the allocated space.
 
@KonradRudolph I don't think >> is technically a valid operation after the string has been moved from, but I'd definitely doublecheck that
 
Xeo
@MooingDuck is >> token just assigns internally, IIRC.
Anything that sets a new state (which doesn't depend on the old state) in a moved-from object is valid
 
@Xeo Now that I think on it I bet it swaps actually.
 
0
Q: Wrong Answer of Multiplication in C++

AlfredI am taking two decimal numbers as input from user, convert them in binary form and store the binary number in array(each bit at each location in array). Then I multiply the bits stored in arrays and display the binary multiplication result. The following program gives correct result for some num...

Elseception
 
@R.MartinhoFernandes :(
@Borgleader fixing...
the braces don't seem to match...
 
5:11 PM
Hmmmm.
 
Je crois que c'est chopé.
 
Xeo
@MooingDuck That has nothing to do with you.
4 hours ago, by R. Martinho Fernandes
I'm using voice recognition software to write this tweed. No. tweed. Know. Undo. Fondue that. Fondue hat. Erase. Duck. Duck you computer.
^^
 
@LucDanton Somehow, I don't think so.
Although it appears to be.
Still, great Photoshop job.
 
Is fleur d'anus what you use to flavour pastus, the traditional drink?
 
I think we already heard that one.
It was either you or the robot that said it.
 
5:15 PM
@Xeo There’s truth in that
 
@TonyTheLion THE SHAME
 
The humiliation
 
5:37 PM
@MooingDuck lol he deleted his question
 
@Borgleader huh. odd
 
I'm not entirely surprised, he changed most of his code half-way.
 
Xeo
That destructor-order question is giving some nice rep.
TIL ctrl-shift-w
 
@Xeo What's that do?
 
Xeo
Try it. :)
 
5:50 PM
it didn't do anything
 
close all tabs?
 
oh
I did it on my desktop
 
Xeo
@Mysticial Huh, which browser?
@emartel More like, close window.
 
@Xeo I see, well I did it in firefox and it asked me if I wanted to close all tabs, so I didn't think further :)
 
Xeo
Ah, right, it does ask that by default.
I disabled that since I reopen the previous session when I reopen FF
 
5:56 PM
Did someone read SAO? I just watched the first 14 episodes and I'm curious whether the novel contains interesting side-stories.
 
Xeo
<-
I'm up-to-date on the translated volumes.
The anime incorporated most of the SAO arc sidestories already
Although I heard that for the newest episode (23 or so), they rushed much and skipped quite some stuff.
(Note: I do no watch the anime, I only know about it from what I pick up from friends / other people)
 
@Xeo 23 is definitely rushed.
 
I won't see 15+, at least not this week, I actually need to do some stuff for uni >.<. But thanks.
 
Clearly they're running out of episodes.
 
Xeo
Aye. They seem to have totally borked the break-through through the tower door.
 
5:59 PM
apropos rush, damn, I'm late for DSA, g2g, cya
 
DSA?
cya
 
Xeo
Das Schwarze Auge?
 
@Xeo That's not very helpful. :P
 
Xeo
RPG setting
 
@Mysticial: Pen&Paper
 
Xeo
6:01 PM
TDE, The Dark Eye in English it seems.
 
Anyways, I should get some food. cya
 
Xeo
But the question mark was there on purpose, I don't know. :)
@Mysticial Have a nice meal.
 
@Mysticial Digital Signature Algorithm, or course (not).
 
@StackedCrooked You know what I like about One Piece? It doesn't take itself seriously.
It's like a parody of a shonen.
 
True.
I would say, it doesn't take itself too seriously.
 
Well, compared to the angstfest that is Naruto, or the clusterfuck of Bleach, I'd say it's refreshing.
 
I watched a few episodes of Bleach but found it a little too childish for my taste. You know, monsters verbally declaring what they are going to do before doing it.
 
people?
can anybody help me with this question of mine
 
6:26 PM
No drive-by linking please
 
Rushing in here to dump your question is a bit rude.
 
Dear C++ room: The Javascript room loves you.
Signed,
    Brendan.
 
@Borgleader so how can I ask something? I need the link!!
 
Asking to Ask a question seems kinda redundant no?
 
6:38 PM
@thiagoh The problem is the drive-by linking.
 
@rlemon Question-ception
 
also, the act of asking to ask is in fact asking so you have robbed us of our chance to not be asked a question.
 
Would you like it if someone rushed into your room, yelled something about an ad, then left?
 
@EtiennedeMartel welcome to javascript
 
JS is by far the least crappy "organically grown" language.
 
6:40 PM
> Does anyone have experience with this super specific plugin that is being used by myself and the author. I wanna make it spin! But I don't want to read the actual code or API documentation or email the author. FIX IT!
also, when did everything become a "plugin"..... o_O I blame abstraction libs for this.
< disruption over, resume regular talk about cats and adding stuffs >
 
@rlemon "Plugin" is the hipster equivalent for "library".
 
who from you have great knowledge with c++ pointers??
 
but in js these are not really libraries in any quantifiable form.
they are snippets or scripts.
 
@thiagoh we probably all have :)
 
but alas, I also have the same RAGE over misuse of a lot of hipster terms.
don't get me started on AJAX
@EtiennedeMartel how is the weather there? We just got our second snowfall in Kitchener-Waterloo Ontario.
freaking December 11th and there is almost no snow on the ground.
 
6:44 PM
Lucky bastards.
There's no snow here, it's so depressing.
 
ok @emartel I got a big problem.. using BWAPI.. I
 
The weather here is better than it was yesterday, that's for sure.
 
Warmest December I've seen in my entire life.
It was raining yesterday.
 
@EtiennedeMartel same, just wondering who in Canada is getting all the damn snow :P
 
Yeah it was raining yesterday too..
But it hasn't snowed at all here.
 
6:45 PM
@EtiennedeMartel yesterday we had mild rain, a week ago it was + 12C
 
@rlemon I blame global warming. And, by extension, Stephen Harper.
 
oh crap, didn't notice it was starcraft related, might actually be interested in taking a look :/
 
I@emartel have a vector<Type*> that when I ask for an item of it the Type* loses its value..
 
@EtiennedeMartel Just after it snowed 10cm, that's the worst.
 
Humans impact on Global warming is a myth (just saying)
 
6:46 PM
Dude..
 
we contribute to less than ~3% of the total warming curve
 
@thiagoh what loses its value?
 
@emartel its only for my Masters Degree project.. not gaming
 
@rlemon Yeah it's all cows and their farts. Everybody knows that. :P
 
earth sees this warming pattern every ~800K years or so.
 
6:47 PM
@emartel the pointer.. I have a question that explains it better
@emartel I've put the link here but it was removed
 
@thiagoh Actually it doesn't (explain it better).
 
@rlemon Oh dear. Where do you get those numbers?
 
it's all a part of the terraforming
 
Attribution of recent climate change is the effort to scientifically ascertain mechanisms responsible for recent changes observed in the Earth's climate. The effort has focused on changes observed during the period of instrumental temperature record, when records are most reliable; particularly on the last 50 years, when human activity has grown fastest and observations of the troposphere have become available. The dominant mechanisms (to which recent climate change has been attributed) are anthropogenic, i.e., the result of human activity. They are: * increasing atmospheric concentrati...
 
@thiagoh I'll go check
 
6:47 PM
@emartel the title is "c++ with pointers losing pointer reference"
 
@EtiennedeMartel I read a lot.
 
@netcoder what didnt you understand?
 
@rlemon You read stuff on Sun News?
 
Read that wikipedia article, or you could read the sources provided from it if you don't believe it.
 
@EtiennedeMartel and @Rapptz 800K years.... all the graphs you see in main stream media trying to scare us into being more green ( I agree we need to be more green but scare tactics are wrong ) are taking VERY skewed results.
if humans didn't exist the climate would still be doing what it is, around the same time.
3% less than it is. (roughly, according to the Discovery article I read)
 
6:49 PM
That isn't how it works.
 
@thiagoh yeah I'm looking at it, 2 questions: what pointer loses its value and what does clear() do in getnext?
 
@Rapptz ok, so sources conflict. One has to be wrong - I choose the one that isn't trying to scare me into recycling rather is telling me to not be a douche and recycle.
 
@emartel when I call type->getName().c_str(); it returns an empty string
 
@rlemon Oh, so you just take whatever keeps you in your comfort zone?
Isn't that standard issue cognitive bias?
 
@EtiennedeMartel I tend to go straight to the sources where I can. But most of my news comes from news publications via magazines and online.
 
6:51 PM
@emartel clear() is a cleaner of my stack object.. it removes the stale items
 
@EtiennedeMartel no, you are not understanding me . I choose to believe what makes sense. Humans fucking up the earth doesn't make sense when you see the same trends 650 000 years before the first hominids.
 
We haven't had an actual ice age in 2.6 million years.
 
@emartel you think this could be the problem? the erase modified the pointers inside the stack?
 
@thiagoh in the debugger, is type still a valid object? you didn't tell us what getName is, it's a string?
 
I think that's way more than your 650,000 - 800,000 year statement of glacial/interglacial change
 
6:52 PM
@EtiennedeMartel Hmm...here it's been on the chilly side; -15C yesterday, -13C this morning. Tomorrow is supposed to be the warm day of the week -- they're predicting -10C. Woo Hoo, break out the bikinis and sunscreen!
 
@Rapptz Glacial periods can all be ice ages.... snowballing effects are random at best.
 
@emartel getName returns a string
 
There have been five known ice ages in the Earth's history, with the Earth experiencing the Quaternary Ice Age during the present time. Within ice ages, there exist periods of more severe glacial conditions and more temperate referred to as glacial periods and interglacial periods, respectively. The Earth is currently in an interglacial period of the Quaternary Ice Age, with the last glacial period of the Quaternary having ended approximately 10,000 years ago with the start of the Holocene epoch. Known ice ages {| class="wikitable" ! Name ! Period (Ma) ! Period ! Era |- | Quaternary ...
 
last glacial period was 10 000 years ago and could have VERY WELL been an ice age
 
@thiagoh it depends on what you do in your clear, if you don't modify the pointers and just shuffle them around, you should be fine
@thiagoh so, is type still a valid object?
 
6:52 PM
@rlemon There's this thing.
But I find your use of the word "believe" interesting.
 
@emartel what you say of valid object?
 
Like it's faith or something.
 
@thiagoh open it in the debugger and look at its value, does it look valid or is it a dangling pointer?
 
@EtiennedeMartel no, when two seemingly credible sources give conflicting information I must choose to 1) believe one of them, 2) believe neither of them, 3) believe both of them and be internally conflicted.
 
@emartel in the debuger is a valid object.. there is value which is ""
@emartel the content of clear method is
stack.erase(remove_if(stack.begin(), stack.end(), isStale), stack.end());
 
6:54 PM
Which one gives conflicting information? You're the only one I've seen stating that we go through this every 800,000 years
 
@thiagoh ok, but nowhere in the code you posted you talk about name, where is it assigned?
 
ok..
@emar name is set by BWAPI
 
@rlemon The question is which of the sources is more credible or which matches more with the general scientific consensus
 
@Rapptz that is a rough estimate. iirc that is the time period the guy stated. this was from viewing ice cores in antartica
I could have my time line wrong... but I do know it was < 1 million and greater than the 700K that al gore comments on in his movie
 
@rlemon (Interestingly, #3 is also known as doublethink).
 
6:56 PM
^ this is from the EPA website
 
@thiagoh Did I just see BWAPI?
 
@emartel there is an enumeration of BWAPI that creates the 'types'
http://code.google.com/p/bwapi/wiki/UnitType
http://code.google.com/p/bwapi/wiki/UpgradeType
 
then if you look at 'recent times' (i.e a 200 year period) sure you can be on an up or down curve and look like it's impacts from you.
 
@thiagoh is the name valid in the parameters of you init? is the name valid in your members after you assigned them? just go through your code with the debugger, it's not rocket science :)
 
@emartel stack is a vector of Investiment*
 
6:57 PM
That chart's odd.
The scale goes up to 0 and discounts the last 50 years in comparison to the past
How could I possibly use it as a point of comparison when it's purposely not showing me something I want to see?
 
@emartel I think I didnt say that im many cases my 'getItem' works.. only at this situation I have problem
 
I tried finding your 3% human contribution article on google but couldn't find it. Also went through the trouble of searching discovery
 
@Rapptz it was an example - point i'm making is that most charts you see depict only the last few hundred / thousand years when this trend is far greater than that.. iirc it has something to do with the poles magnetism or something but it does account for weather and atmospheric changes of these types and is re-occurring and we are due for it (says the sources... sorry trying to find the article but i'm at work so the alt-tabbing back to code is taking up time)
 

« first day (787 days earlier)      last day (4153 days later) »