Friday, September 18, 2015

Making rsync a little easier to use

Rsync is awesome.  Unfortunately it's kind of a pain to set up every time you want to create a new job.  I wrote a script that helps make this process a whole lot easier.  If you already know about rsync, check out my project automate_rsync over at git hub and start automating your rsync jobs!

Monday, April 6, 2015

Better Passwords from DiceWare

After reading an article on SlashDot about generating memorable passwords using DiceWare to generate memorable and secure passwords.  DiceWare kindly provided a list of 8 kilowords that can be used to automagically generate passwords.

Here's a bit of python that uses the random.SystemRandom module to pick secure random numbers and generate secure passwords:

import random, string

def passGen(words=5):

  for i in range(0, words):
    word=array[myrg.randrange(0, len(array)-1)]
    password=password+word+' '

def main():
  for j in range(0, passwords):
    print password


Friday, June 14, 2013

Kayaking Lysefjord 2013 Update

Lysefjord, Forsand, Norway
For forty two incredible kilometers Lysefjord stretches east from Sandnes Kommune.  The fjord, cut by glaciers, cuts deep into the Norwegian plateau showing off some of the most beautiful sights in Rogaland.  The cliffs near the two-kilometer wide mouth stretch 400 meters from the water and gradually rise to over  900 meters near Lysebotn where the fjord narrows to just half a kilometer.
A very enjoyable and relatively easy sea kayak trip is an excellent way to experience the some of the subtler beauty of the fjord.  The trip can be done in one very long day, but a more reasonable schedule is to plan for two 8 kilometer and one 25 kilometer day.

Thursday, April 18, 2013

Reading Serial Data from an ATtiny85

I just jumped into the world of ATtiny chips using the Tiny Programmer from SparkFun.  It's amazingly easy to use and I whipped up a bunch of blinkin' lights at first, but when it came to reading and using analog data in a program I was totally stumped. I generally have no idea what I'm doing, so figuring out what I've done wrong is a challenge.  Being able to see what's going on and debug the thing would be a huge help. Unfortunately, the Tiny Programmer has no ability to read serial data, so I had to switch to an Arduino for that task.
I found a stack of blogs that demonstrate how to program and read serial data from an ATtiny, but none of them had everything in one place.  Mostly this blog entry exists so I can refer back to it, but perhaps it will help someone else as well.
I borrowed heavily from the following blogs to develop these instructions: