Journey's End

Sep 09
2009

Dealing with rkhunter warnings

rkhunter often warns on file property changes after upgrade and such, and sometimes you just aren't sure whether it is due to recent upgrades, or because you really were compromised. The following script was written to compare the checksum of all files rkhunter warns about against the originals in a …

ts=05:01 tags=[code,software,linux]

Aug 28
2009

Aug 05
2009

Jul 29
2009

Facebook python authentication gateway

Edit: it occurred to me what I have below is the basics of a thin facebook api wrapper. I might make it into one at some point in the future.

If you don't know what this does, you don't need it. Hope this helps some one. Written because pyfacebook is …

Jun 03
2009

microbric viper review

The microbric viper is neat. Good quality parts and unique idea. Makes a decent robotics platform if you get the wheel add-on. However, you gotta have small fingers to get some of the parts in place. Despite this, the hardware is solid, I like it. The one thing I would …

Jun 01
2009

May 29
2009

May 17
2009

Apr 28
2009

Stripping trailing whitespace from XCode

![](http://shuningbian.net/files/xcode_strip_trailing_whitespace_regex.jpg)

Firstly, my usual approach of s/\s+$//g doesn't work since it eats up the newline too. s/\s+$/\n/g doesn't work either because the Replace: field in the find dialogue doesn't escape the \n.

Final solution is as shown: s/[ \t]+$//g …

Apr 06
2009

Apr 02
2009

Feb 16
2009

Futurlec Ultrasonic Sensor Note

Part number US1440, these sensors are not dual use, which means the transmitter and receiver is not exchangeable. They also look identical from the outside, so if you build my arduino ultrasound ranger with these (as I did) and find you can't see echoes, try swapping your transmitter and receiver …

ts=07:07 tags=[electronics]

Feb 13
2009

The libertarian argument against vaccination

Goes like this:

I have a right to decide what happens to my children!

To that I say, we have the right to not be a victim of your stupidity. Further, laws represent social contracts that all members of society enter into for everyone's benefit. Getting vaccinated is one such …

ts=11:54 tags=[rant]

Feb 09
2009

Auto leveller

A simple 2 DoF setup with an accelerometer (LIS302DL) attached to the effector. The seeeduino attempts to drive the servos so the Z and Y axis measure zero acceleration. The sketch is available at the usual place.

The algorithm employed is a simple PD controller with pseduo-gradient stepping to determine …

Feb 06
2009

MATHS FAIL

What is the period if you want to generate a 40KHz signal? It certainly isn't 250E-6 seconds. The same calculator returns 2500E-3 for 1/4 which is 2.5, not 0.25.

The calculator is PEMDAS.

Cheers,

Steve

ts=09:11

Jan 13
2009

Turn a servo into 1-wire-control bi-directional motor

It is often a pain building H-bridges or getting a motor shield just because you want to control a few motors. This is where servos come in: they are cheap(ish), have motor and gearbox, and they are controlled ysing only a single wire.

The only problem is of course …

ts=11:02 tags=[electronics]

Jan 04
2009

Dec 25
2008

DIY digital spirit level

[](http://www.flickr.com/photos/sentientintelligence/3134648563/ "photo sharing") [DIY digital spirit level](http://www.flickr.com/photos/sentientintelligence/3134648563/) Originally uploaded by [sentientintelligence](http://www.flickr.com/people/sentientintelligence/)

A simply digital spirit level using a LIS302DL accelerometer from nkcelectronics coupled with a seeeduino for processing and a 2x16 …

Dec 20
2008

RIP DSE, Greetings Futurlec

Dicksmith Electronics is dead to me now. Dead as a door nail, dead just like Tandy.

When I was growing up, Tandy and DSE were the two places I went to get my electronic parts and information. The Engineer's Mini Notebook series and Getting Started in Electronics sold at Tandy …

Dec 12
2008

2x16 character LCD displays

2x16 character LCD displays can be tricky beasts. I got mine working today with my seeeduino (an arduino compatible board with more awesome), and really wished I had known that:

  1. The contrast pin needs to be in the same power network as the power and ground pins. The contrast pin …

← Previous Next → Page 7 of 17