31 08 2007

New Star Wars Gangsta Rap

This is so cool.





strong women

31 08 2007

My favorite dialog from 300:

Persian Messenger: What makes this woman think she can speak among men?
Gorgo: Because only Spartan women give birth to real men.




smugmug.users.getTree

31 08 2007

smugmug.users.getTree will be quite useful for zmugfs.





flaw in original idea

31 08 2007

There’s a flaw in my thinking with categories, subcategories, and albums. mkdir -p /Category/Subcategory/Album will pass in each path separately. So I don’t have any context as to which is the leaf to know which one is a category vs an album. As far as call sequences, there’s no difference between
mkdir -p /Category/Subcategory/Album and
mkdir /Category;
mkdir /Category/Subcategory/;
mkdir /Category/Subcategory/Album.
My plan was to make leaf directories as albums, the paths above would be categories. After each call I don’t know if there is more until the next call. The user wants Subcategory to be a category, but I would end up creating an Album, until the next call which it shows that Subcategory was a category, but then what is Album? Is there going to be another call after that?

Another option is to take an approache similar to flickrfs which uses a preconfigured structure:
/sets
/tags/personal
/tags/public
/stream

But I’m unsure how usable that would be for smugmug.
/categories (subcategories are implied)
/albums

I could create both a category and an album for each level. So how will work, if you call mkdir -p /Family/Party/Susie you will end up with the following categories: Family, Party, and Susie. You will also have the same set of albums. hrm, this is less than optimal as well.

Another approach is for each mkdir call I create a (sub)category. The minute you copy a photo into a directory, it becomes an Album. Now should I remove the category? I guess I should if there are no images for that category. Let’s walk through an example:

mkdir -p /Family/Children/Birthday/Susie

This results in the mkdir method being called with the following paths: /Family, /Family/Children, /Family/Children/Birthday, /Family/Children/Birthday/Susie. This will result in the following (sub)categories being created: Family, Children, Birthday, Susie. Is this what the user wants? Or did they truly want an empty Susie album? Let’s keep going. When the user does a cp IMG_2020.JPG /Family/Children/Birthday/Susie I know here that Susie is an album. I can now create the Album, then upload the picture to that Album. The problem here is if the Album creation fails, what do I do? They thought it was already created. I guess this isn’t such a horrible option. For now lets go with this approach. We’ll create a (sub)category for each level in the path, until a copy to the directory occurs. At that point the category gets “promoted” to an Album. If the (sub)category contains no images, we remove it. /me crosses fingers.





SPARTA!

30 08 2007

We saw “300” last night.  This movie is awesome! It ranks up there with one of my favorite movies “Gladiator”.





Clash

29 08 2007

As I code away the day listening to my iPod in shuffle mode, I just heard “Should I stay Or Should I Go” by the Clash.





barn

29 08 2007


barn, originally uploaded by jmrodri.

Close up of the barn from the farm sketch. This is a non-existent place, I made it up in my head.





farm

29 08 2007


farm, originally uploaded by jmrodri.

Sometimes my mind wanders in meetings and this is the result. :)





Speed Racer

27 08 2007

As a car and movie fanatic, I can’t wait to take the kids to see “Speed Racer”. They’re trying to make the movie Rated G which is great. They’re also using a special type of camera that will make the background and foreground in focus like a cartoon.

So far the Mach 5 looks awesome:





napoleon’s complex

26 08 2007

Last night we saw “The Devil Wears Prada“, it was actually a pretty good movie. One of my favorite lines was

“the smaller they are the bigger their ego”.

Boy how true that is.

Update: Napoleon complex