Hi,

My name is Dan, and I'm an avid 'just about anything' kind of guy.

Welcome to my Wobsite on the Interblag, I appreciate your visit.

Feel free to contact me via one of the comment forms, or @ dddanmar@gmail.com


Blog Posts:

Russian Roulette – Unix Console

From /.

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"

…brilliant.
(do I have to say don’t run it?)


CSV – Finding a needle in a haystack

I had two CSV files that did not match each other’s structure. I needed to find out of email addresses listed in CSV-A.csv were present in CSV-B.csv.

Therefore, it was difficult to just do a normal diff on the two files

Python + CSV module to the rescue, nice and simple.

Read the full post »


Reddit API + Python + YouTube = YoutubedYourComment

I wanted to play with Reddit’s API with Python last night.

Trying to come up with an idea of a bot, I decided to make something that picks a random comment from the top x threads in x subreddit, search the first 50 characters in YouTube, and reply back with a link to a related video.

Except, it’s not always related…

Read the full post »


Asterisk + PHP – Originating a Call

Asterisk is a VoIP SIP Phone server that is open source, extendable and highly configurable.

One of the greatest services is the simple AMI (Asterisk Management Interface). Open a network socket to port 5038, send a few string instructions and you can make any SIP extension dial any number, internally or via the outbound trunks.

This is easy business in something along the lines of PHP or Python. I’ve got some PHP code after the jump.

Read the full post »


IR Helicopter + Arduino + Python

For my birthday in November, my girlfriend bought me one of those small IR helicopters, akin to
http://www.chinatopwin.com/3-channel-ir-helicopter-with-gyro-1589.html

A little information about these types of helicopters. They generally run on one of three different channels (a/b/c), and contain a flybar for stability. The control is done via an Infrared Transmitter controller, which contains thrust, elevator (forward/back), yaw and yaw adjustment.

A hardware and software how-to after the jump.
Read the full post »


next page