Bitmask Helper Function
I had a need recently to be able to determine if a given position of an integer bitmask was set or not (for example, given the bitmask 0101 which is 5 in decimal, how would you check if the 4 position is set?
MANY articles on a wide array of topics. You’ll find a lot of my newer content is going to my YouTube channel first, but I do still blog occasionally.
I had a need recently to be able to determine if a given position of an integer bitmask was set or not (for example, given the bitmask 0101 which is 5 in decimal, how would you check if the 4 position is set?
No, not my muscles… We had weapons qualification earlier this week and brought along some other weapons to familiarize with (courtesy of EOD). I got a few pictures and a couple of nice movies of the experience. …
Still love all my UnderArmour stuff – I don’t wear anything else for shirts/underwear now. Got a Gilette Mach3 razor from my wife a few days ago to replace my Gillette Sensor (figured I’d give the new …
Things are moving along here. I’m fine. My roommate moved to another base a few days ago, so now I’ve got a room to myself. However, that probably won’t last since it sounds like I’ll be moving to …
Because I’m stationed at the same base as my battalion and brigade headquarters (‘close to the flagpole’), my platoon (and company) has to endure some silliness that units further from here do not. For …
In case you've been in Iraq or something and haven't already seen
I got two letters this morning, one from my wife and one from my mom. One was sent on July 12th and the other on July 27th. So, as you can tell, the mail system is sometimes a bit flaky, but so far it seems like …
I wrote last month about how the Iraqi children come running and waving whenever we drive through villages, and how sometimes our troops have candy and stuff to throw to them. Since I have most of what I need to get by …
This Stars and Stripes article: http://www.military.com/NewsContent/0,13319,FL_pay_042004,00.html Describes how engineers doing the work of ordnance disposal are now (as of last November) eligible to receive incentive …