I have a folder where I keep snapshots of the project going all the way back to like 2010. I'll do a snapshot whenever I feel like I've some something - which is every few days - though can be bursty with long droughts in between.
This folder is backed up once in my apartment (2 copies total including primary). And a second copy in California. The online copy has a much fewer snapshots - maybe once every few months or so.
I update the California copy every other time I go back. The online copy I do at least once every major release.
@Borgleader Some of the copies are side-effects of the "hardware version control" that I do.
I have a separate drive for each branch. A clean Windows + Linux dual-boot that has nothing installed except for the exact compiler versions for those branches.
And each of those drives are littered with copies and snapshots of the program - such all the betas, release candidates, final releases, etc...
nah. I used to do it with all the spare HDs I had lying around. But they are slow and difficult to switch between, so I recently switched to SSDs with front mount brackets where I can physically mount and eject the SSD from the front of the case.
So in a binomial heap, insertion is ammortized O(1), thus O(n) for n elements. On the other hand deletion is O(log n), so for n inputs, emptying a heap would be something like ~O( n * log n), right?
If a user calls erase() for each element on the heap then yes, it's O(n*log n). However, if you provide a clear() method that internally removes all nodes then you can make it O(n) or even O(1)
I must say that some online haters are so devoted, it's amazing.
Not having any now, but I used to own a large flock of those back in my 1337 tr011 days. They were so emotionally involved, if their target was gone, their life would probably be filled with emptiness. I used to even get phone calls from them.
This woman has a large flock of haters too, although hers were more women.
@TelKitty People have certainly hiked the entire continental divide trail (3000+ miles) but that's still only a tiny fraction of the rockies as a whole. As for hiking the whole range--it kind of depends how you define things. For example, there are parts of Pikes Peak where it's illegal to hike.
Hi, I am currently looking through the c++ book guide, because I would like to expand my little knowledge of c++ and learn modern approach. I have multiple years of experience in c and have also worked with C#, python and unluckily VBA. I am not sure which book(s) are suited to learn how to learn good/modern C++. Can you point me to some specific books listed there, that would help me in the transition?
Especially as the c++ I learned back then was more like advanced c, but from what I saw in c++ question on SO it looks quite different now
I am thinking about "accelerated C++" but it is quite old.
I will get "effective c++" anyhow but I wonder if I need another book to get to the level needed to appreciate it.
If I had an amazing figure like in my avatar, I would totally physically chase after a shy person like that and make stackoverflow ceo to tremble with fear.
Hey guys, I have asked a question on a topic. I have got an answer on that topic, that does not really answer the topic, but point out that I might have asked the question differently than I should have (lack of knowledge). If I was at the situation before I was asking the question, I'd formulate the question very different than before, ask for something slightly different.
I wonder now, if I should edit the question (and make the answer completely invalid, and probably nobody would notice anyways) or ask another question, which would be very similar in intent, but it would not be a duplicate (and I'd probably again receive unnecessary downvotes). What do you suggest?
I can recommend the CPP Core Guidelines, which provide best practices for writing good C++ Code (amongst others, the founder of C++ helped writing them). They have also specified ways to enforce some of the rules using automatisms, which have been implemented by e.g. GCC (which provides hints for bad code and suggestions). It helped me a lot at writing modern and effective C++. But you already should have a solid overall knowledge about C++.
@Mgetz Part III: having licensing terms so complex that once you're dependent on them, they can basically demand almost any amount of money, and it's impossible for you to argue.
@JerryCoffin Part IV: Trying to charge you to move your data off the platform using the insane licensing terms to try to make it as prohibitive as possible
@JerryCoffin too late I'm already that cynical about oracle. There are very few companies I'd gladly see all of the executives get carted off immediately to jail, but oracle is literally the only one.
@Mgetz ..and tonight we have a truly special bout for you folks! In the red corner we have Larry Ellison's ego, weighing in at...well, sorry, but the scale broke trying to weigh it. And, in the blue corner, we have Donald Trump's ego, which we knew better than to even try weighing. But, it's not ego that will win tonight. This bout will determine who is the most conniving, dishonest, and generally terrible person on the planet (unless somebody nukes the arena to take them both out).
The 3rd was a very recent where I tried out a sub $100 500GB NVMe drive from a noname brand. It works fine except that sometimes the BIOS won't see it unless I reboot.
The WD ones I've had are all solid - as well as the Samsungs.
It's becoming increasingly difficult for me to do NUMA stuff without an actual NUMA machine. The only one have is a 13 year old 4-socket Barcelona which is neither representative of today's machines, nor is it reliable anymore. It's also in California and I can't access it unless I'm there.
> The encoding of lzcnt is similar enough to bsr (bit scan reverse) that if lzcnt is performed on a CPU not supporting it such as Intel CPU's prior to Haswell, it will perform the bsr operation instead of raising an invalid instruction error despite the different result values of lzcnt and bsr.
@fredoverflow Yeah. That actually bit me once. I compiled a binary in GCC for -march=k10. And it gave me wrong results on Core 2. It didn't crash - but corrupted data.
@fredoverflow I have a Skylake here. It doesn't show up either.
What is the size of character in C and C++ ? As far as I know the size of char is 1 byte in both C and C++.
In C:
#include <stdio.h>
int main()
{
printf("Size of char : %d\n",sizeof(char));
return 0;
}
In C++:
#include <iostream>
int main()
{
std::cout<<"Size of char : "<<sizeof(char)<<...
@Mysticial Or you can hang out around Intel office parks, and hope that you can collect their refuse (Xeon chips) when they decide to outsource their operation to Eastern Europe/Poland.
A guy I knew who worked as an ops troll at some fintech company mentioned an Intel microcode update nuked his overclocks about four years ago. So it was at some point possible.
SOME USERS JUST DELETED MY ANSWER MORE THAN NOW I WANT TO DELETE THIS ACCOUNT..GOOD BYE I WANT TO PYTHON JAVA AND F FOR LOOP One way of achieving this is using request and beautiful soup which has been discussed here in Implementing Web Scraping in Python with BeautifulSoup.
Instead of putting so...
Research shows a strong correlation between extroversion and happiness
If there is a positive correlation between extroversion and happiness then the backyard baby noisy miner must be really happy - always hang around in a flock of few and chirping no stop all day long.
The following snippet works fine in Clang 3.5 but not in GCC 4.9.2:
int main()
{
constexpr volatile int i = 5;
}
with error:
error: both 'volatile' and 'constexpr' cannot be used here
If I inspect the assembly that Clang generates, it shows 5 as expected:
movl $5, -4(%rsp)
In G...