Binary to Hex to Binary

My sister recently asked me to write a c++ program which would convert binary to hex and vice versa. I have no idea why she needed it, but I took up on it and this is what I came up with. It’s not particularly elegant, but it gets the job done and I think what I find most interesting about this approach is that it doesn’t involve any math other than calculating some simple string manipulation, but the actual conversion between number systems is done completely through “language translation.”
Continue reading

Get Started Running

A good friend of mine recently asked me for a few tips on how to get started running.  At first I was a little surprised because I was unaware that I had any “street cred” as a runner, but I was also a little flattered so I went ahead and wrote down the first few things that came to mind.  Then I realized that I actually did have something to say about running.  After all, I have been running for about ten years now, so it’s not unlikely that I would have picked up a few pointers along the way.  As I wrote I remembered all the pitfalls I ran into when I first took up running, and I thought to myself, “it sure would have been nice to have had a little guidance when I laced up my first pair of running boots (I’ll explain later)”  So I thought I might as well share some of this knowledge.  I am not a professional athlete and I have had no formal training with anything related to running.  I am just a regular joe who decided pounding out a few miles on the asphalt every other day would be a good way to kill some time.  

Continue reading