Arduino Electronics Findings

ATmega/ATtiny PWM tutorial

I was planning on writing a beginner’s tutorial for using PWM on raw AVR chips, but I found that Arduino already has a nice guide here: http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM The only change you need to make to their code to use it without the Arduino software is to remove calls to “pinMode”. Do so by using the appropriate …

Continue Reading
Python Security

A basic “man-in-the-middle” proxy with Twisted

[OUTDATED – It has been a while since I looked at this, so it’s probably very outdated. Please check the comments.] I came across a nice example of a Twisted “man-in-the-middle” style proxy on Stack Overflow. This style of proxy is great for logging traffic between two endpoints, as well as modifying the requests and …

Continue Reading
C++ HTML

Parsing HTML with C++

I was having a hard time finding an HTML parser for my latest C++ project, so I decided to write up a quick summary of what I ended up using. Revisited! Please see the new article here. My #1 requirement for a parser was that it had to provide some mechanism of searching for elements. …

Continue Reading