Monday, December 21, 2009

TimeLapse Internationalization


Douglas gave me tons of help last night with i18n. I18n of TimeLapse is not fully finished but the hard parts of it are done and I know enough to finish it thanks to Douglas. Here is a screenshot:




Thursday, December 17, 2009

How to Install and Use TimeLapse

This is a work in progress. I will add a More detailed installation procedure soon.

Short Version: 
 To install type:
su
yum install bzr
bzr branch lp:timelapse

To use type:
cd timelapse
su         (Currently, root is necessary for TimeLapse to run properly)
python timelapse.py

I figured out the problem with #3

I was talking to Luke today and he told me that I need to use show() instead of set_visible(True). I tried using show() and it worked

Tuesday, December 15, 2009

Tuesday's Class

Today Robin and I made a lot of fixes to TimeLapse. Last Tuesday when we went to Frank's house we came up with a list of things that needed to be changed and fixed.

This is the list, as I remember it:
1. Make files play when they are double clicked
2. Fix bug where data can not be selected if it does not have a picture
3. Add a confirmation pop up for the "Delete All Data" button.
4. Make it possible to choose the data quality.

We completed #1 and #2 and started working on #3.
When trying to do #3 we ran into a problem. We coulden't figure out how to make our pop up confirmation window appear. We tried set_visible(True), but that didn't work. I was quite surprised that didn't work. I didn't know what the problem was.

Tuesday, December 8, 2009

Going to Frank's House

Today, after quickly fixing a bug in TimeLapse at the career center, Robin and I went to Frank's house to set him up with the new version of  TimeLapse. He liked all the new features. He thought the sound quality was actually better than it was before, and he gave us some sujestions on what we could change to improve TimeLapse. It was a long time sitting in traffic, but it was a useful meeting that went relitivly smoothly after we finally got there.

Fixing Copy All Data

Today I was testing the new "Copy All Data" feture in TimeLapse and I realized that I could not copy the data to a flash drive. This was a major problem because the purpose of the "Copy All Data" button was to copy the data to a flash drive to get it off the XO. I figured out the problem was a bug in shutil when copying ext3 filesystem to fat32 filesystem. To fix the problem I replaced this:

shutil.copytree("data", filepath)

I replaced it with this:

subprocess.check_call(['cp', '-R',  'data', filepath])

New "Copy All Data" Feature

Frank Linton uses this program to collect bee sound data. He analizes this data on a differnt computer. To do this he needs to copy the data from his XO to a flash drive then from his flash drive to his computer. I think he uses linux commands to cut all data from the data folder and paste it to his flash drive. Then he copies over the catalog.xml file with a blank one so timelapse doesn't think the data is still there. That whole posess can be very confusing and time consuming for him.

To solve this problem I added a new "Copy All Data" button. When clicked, the button pops up a create new folder window. Frank, or any user, can use the create new folder window to navigate to their flash drive, type in a folder name, and push copy. When they push copy all of the TimeLapse data in the data folder is copied into the new folder with the folder name they choose. Frank can use this in congunction with the "Delete All Data" button to meet his needs. He can use the "Copy all Data" button to copy the data to the flash drive. Then he can use the "Delete All Data" button to free up space on the XO so he can collect more data.

This is what it looks like:

(I will put screenshot here soon.)

Monday, December 7, 2009

New Delete feature

Before today there was no easy way to delete data. Deleting data required removing the data catalog.xml file and manually deleting the data from the data folder.

To fix this problem I added a "Delete" button to remove the currently highlighted data. It removes the data entry from the catalog.xml file and the data folder. While doing this I completely rewrote the way xml data is written. We may consider switching away from xml data completely at some point

"Delete All Data" button

If someone wanted to delete all the collected data it would still be diffacult to do with just the delete button because the "Delete" button only deletes one grupe of data at a time. Deleting all data would require many clicks.
I added a "Delete All Data" to solve this problem. The "Delete All Data" button deletes all the data entries in the catalog.xml file as well as everything in the data folder.