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:

Friday, April 5, 2013

Travels and Trekking in Turkey

Blue Mosque at Dusk
We just got back from our Easter holiday in Turkey with Brian and Susan and it was amazing.  Simply amazing.  Not only is it astoundingly beautiful, but everyone we met was incredibly friendly, helpful and kind.  I don't think I've ever felt so welcome in another country.
Despite being a massive city of 15 million people, residents of Istanbul are not at all jaded with tourists and are downright helpful. Locals helped us find our hotel and even took the time to walk us to appropriate intersections, or to find a friend that spoke better english to help us.  Later in our trip as we headed south the hospitality only increased.  Every city should hope to be as friendly to visitors as Istanbul was to us.
Read on after the break for more delicious details.