Programming Leftovers
-
When you use open source software you are not entitled to anything!
Some people who use open source software think or feel that they somehow have a right upon the developers of such software to provide support or service of some kind. Some are even so deluded that they think threating the developers with promises of not using the software will somehow force the developers into compliance.
-
Measuring the memory usage of your C++ program
In C++, we might implement dynamic lists using the vector template. The int-valued constructor of the vector template allocates at least enough memory to store the provided number of elements in a contiguous manner. How much memory does the following code use?
-
QA and Continuous Delivery
This article is going to rely heavily on Feature Flags, so a passing familiarity is useful. In summary, feature flags are the ability to switch features on and off at runtime of the application without requiring re-deployment. Feature flags can also be used to switch on features for specific users or groups of users.
-
Idiot Proof Git
For people that want to use Git, but either aren't a developer, or just want an easier way to use common functionality via the command line, these may be for you.
-
Look out! Divergent representations are everywhere!
This blog post examines divergent representations of the same source code variable produced by compiler optimizations. We’ll attempt to define divergent representations and look at the SQLite vulnerability we discovered, which was made easier to exploit by the divergent representation of a source code variable (one exhibiting undefined behavior). We’ll then describe the binary and source code analyses that we used to find more divergent representations in existing open-source codebases. Finally, we’ll share some suggestions for eliminating the risk that a program will be compiled with divergent representations.
-
Using the count() Function in PHP - Pi My Life Up
The count() function in PHP allows you to count all elements within an array or an object that implements the Countable interface.