slideshow 1 slideshow 2 slideshow 3

Eurotrip Day 6

This morning we awoke early to head to Cardiff, the capitol of Wales. Today is Jason's meeting with the professor at Cardiff University about the PhD program.

Eurotrip Day 5

For our last day in Paris we decided to visit Notre Dame and the Champs Elysees / Arc de Triomphe.

Notre Dame

This cathedral, begun in the mid 1100's, took nearly 150 years to build. In the interest of time and getting back to the airport in time, we decided not to go inside. This will have to be saved for another trip!

Champs Elysees

This road is one of the most prestigious in Paris, much like Rodeo Dr. in Los Angeles it is home to some of the most exclusive (and expensive) shops I've ever seen.

Eurotrip Day 4

(Note: Pictures are to come, the Internet service at our hotel in Bristol, UK is extremely poor and would take me roughly 40 minutes per image to prepare and upload.  I'm hoping London will be better.)

Today we both apparently decided to ignore our alarms and take advantage of the excellent light-blocking capability of our rooms window blinds and the quiet hotel.

Eurotrip Day 3

Our final day in Rome we decided to revisit the Colosseo and stop in a pastry shop before heading to the airport. Initially we wanted to try to visit the Pantheon during the day but visiting Rome, the heart of the Catholic world, on a Sunday morning, is not the best time to be a traditional American non-Catholic tourist.

Eurotrip Day 2

Roma Aurelia Train StationWe began our first official day as tourists in Rome, Italy by waking up at 7am and walking to the nearby train station, Roma Aurelia. The train was 20 minutes late but a digital sign on the platform was easy to read and informed us of the delay, most importantly, it was accurate.

Tags: 

Eurotrip Day 1

Months of planning and here we are!

Charlotte

  • We said goodbye to good 'ole America with just an hour delay on our departure to allow for the crew's regulated rest time. Seems our pilot was delayed a bit and since I'm all for conscious pilots, I figured I'd let this one slide. Plus, we landed right on time in London-Gatwick so all was well. Not that it would matter, since our layover was 6 hours.

London-Gatwick Airport

Tags: 

Linux Tips and Tricks

Changing colors

NOTE: To make colors work in SSH, make sure your terminal program is set to use xterm. In PUTTY this is done in Configuration -> Window -> Colours -> "Allow terminal to specify ANSI colours" & "Allow terminal to use xterm 256-colour mode"

When your SSH terminal defaults to a black background, some colors, such as dark blue, may be difficult to see. Changing directory colors is relatively simple.

You may find basic information with the command:

Tags: 

create_longitudinal_set.py

import csv
from collections import defaultdict
import os
import string
import uuid
 
YEAR_SPAN = 19
GENDER = 'male'
RACE = ''
 
eyesCSV = 'pinellas_eyes.csv'
faceCSV = 'pinellas.csv'
prefix = 'pinellas_'
 
print "Using Eyes CSV: %s\nDatabase: %s"%(eyesCSV, faceCSV)
 
eyesDataSet = defaultdict(list)
face = []
dataset = defaultdict(list)
 
alleyes = csv.reader(open(eyesCSV, 'rb'), delimiter=',')
for eye in alleyes:
Tags: 

import.py

import csv
import MySQLdb
from PIL import Image
import os
 
START_IDX = 19734
 
datasets = []
expressions = []
modes = []
 
def getDatasetID(val):
    for row in datasets:
        if row[1] == val:
            return row[0]
    return -1
 
def getExpressionID(val):
    for row in expressions:
        if row[1] == val:
            return row[0]
    return -1
 
face = csv.DictReader(open('face.csv', 'rb'), delimiter=',')
Tags: 

Implementing python-style indention syntax using Flex & Bison (or Lex/Yacc)

I am creating my own programming language. I have defined my syntax to use python style indentions and no statement terminating character (\n indicates the end of a statement). Most modern languages, such as C/Java use { and } to denote the start and end of a statement block and a ; to denote the end of a statement. This is very easy to implement in Lex/Yacc as each character can easily be returned as a token.

Indention is a more complex but not impossible. No where could I find illustrations on how to accomplish this, so here goes!

Pages

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer