For some, expecially those "in-the-know", calculating a sine wave is a piece of cake. I sure can remember much of math class way back in high school, and remember actually calculating and graphing out some sine and cosine waves. Problem was, that was forever ago, and my Google-Fu only resulted in sine wave calculations at a level FAR beyond my limited understanding of math. Eventually I was able to figure it out, and wish to share my findings with you all.

At ThinkGeek, there's a cool little Annoy-a-tron for sale; the original was a tiny little coin-cell battery device that beeped every so often (every minute or so) just to make your coworkers go crazy. I have a Raspberry Pi and a Pibrella, I am sure I can take that Annoy-a-tron idea and improve upon it...!

Previously, I wrote a script that ran the fortune and cowsay commands and sent the output as an email. I have this script in a cron job, so I get a comical "fortune" sent to my email once a day. Well, after a few days, I noticed that one of the cowsay characters wasn't coming through properly. It turns that one of the characters had an HTML comment tag within it. Here's how I found it, and solved it.

So you have a disk image (in my case, a Raspberry Pi image), and you want to access the information therein. What do you do? Sure, you could dd the image on to some media (flash card, USB, etc...) large enough to contain it, but if it is of any substantial size (more than 2GB really), this can suddenly become a very tedious and time consuming process, especially if you have limited media to use. A better option would be to mount the image, and just read it directly, but unlike an ISO, there's more involved than just mounting the image.

At this point, most people are aware of the "fortune | cowsay" command(s) (and if you haven't tried it yet, do it). What I wanted to do, was to have the output from this command emailed out. Simple, right? Not as much as you'd think...