Related Posts
How to avoid Android compilation/building issues – Setting up the Eclipse Buildpath correctly
This post is the product of about 48 hours of not being able to work on what I was supposed to be working because I had to deal with build issues in Eclipse. Hopefully If you follow these steps you will be able to solve some of the issues you may be facing right now […]
java: How to get all the files inside a folder and its subfolders without recursion
Most programmers will do this in a recursive fashion, but doing that is putting yourself at risk of hitting a stack overflow error, and it’s 20% slower (according to my tests). Here’s my first implementation of a method that will return just the files (cause I didn’t need the folders, you can always hack it […]
Accessing and manipulating a 32bit integer as a byte array in C++ using unions
I don’t think I’ve ever used union for anything, but today I came across a very interesting use case to avoid bit-shifting tricks when dealing with data embedded in numbers. What’s a union? Microsoft defines it this way A union is a user-defined type in which all members share the same memory location. This definition means that […]