@JimNorton me too. Something I do (maybe you all cringe), is sharing data between several source files with a single library header into one executable. #if's and extern's all over the place.
@JimNorton decide a max speed, and program the slowdown part to slow at a rate that looks good. Then figure out how many degrees it goes from "max" to "stop" (at compile time). When you pick your endpoint, add the above number of degrees to be the "angle to stop spinning at max speed and start slowing down". Then spin the wheel at max speed until that point, then do the slowdown, and it will arrive at the prepicked destination.
@CollinBiedenkapp I tried to replace /usr/lib/libc++.1.dylib with a new version while running my system. Obviously the file was already in use so I couldn't overwrite it. I stopped the copy operation (it hanged at 2%) and the file was corrupted, preventing me from opening any application that uses that file (including sudo).
In cryptography, encryption is the process of transforming information (referred to as plaintext) using an algorithm (called a cipher) to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key. The result of the process is encrypted information (in cryptography, referred to as ciphertext). The reverse process, i.e., to make the encrypted information readable again, is referred to as decryption (i.e., to make it unencrypted).
In many contexts, the word encryption may also implicitly refer to the reverse process, decryption e.g. “software f...
Is there a pattern where I can inherit enum from another enum in C++??
something like that:
enum eBase
{
one=1, two, three
};
enum eDerived: public Base
{
four=4, five, six
};
@CollinBiedenkapp boost can increase compile times. It doesn't affect memory overhead, nor cause compiler errors unless you misuse it, just like any other C++ code.
@CollinBiedenkapp I wouldn't write from scratch ever personally - it'd have to be a serious overhead (if it exists in any meaningful way) before it trumps my time and in the case of crypto I'd trust a library far more than I trust myself
@CollinBiedenkapp SImply don't do that, very smart people have spent years developing relatively safe algorithms. It is unlikely that you will create something equally good and safety through obscurity is a really bad idea in general.
@RadekSlupik Oh. I dunno how OS X works, but on windows, you just drop into some GetNextMessage() function (whatever that's called) and you won't be assigned processing time unless there actually is a next message.
> The sleep() function suspends execution of the calling thread until either seconds seconds have elapsed or a signal is delivered to the thread and its action is to invoke a signal-catching function or to terminate the thread or process.
@RadekSlupik Can't you still send a generic option variable to start? You could sneak in a condition_variable to signal the main thread to quit when necessary.
1>f:\code\utilities\exprtemplate\exprtemplate\main.cpp(47): fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file 'msc1.cpp', line 1420)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
@MooingDuck I find Linux's approach to installing new software way easier than Windows'. sudo apt-get install desired_package_name. But maybe that's just me.
@FrankComputer 1420? You should run, they're after you!
And it's nice that you RARELY have to reboot a Linux system after an update. Heck now you can even update parts of a running Kernel without having to reboot.
@FrankComputer "updating parts of a running kernel" sounds like a war story told by a doctor. "I replaced his arm while they were shooting at us, it's a miracle we're still alive".
broadcast motd:: "Updates which will modify the kernel will now be installed!.. If your application freezes up, aborts or the system crashes you will know why it happened.."
@FrankComputer You store BSON (similar to JSON) objects (called documents) in MongoDB. There are no schemas and no columns. You can store whatever you want.