journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,117 days old today.
prev day next day printable version

Entries this day: Image_viewer_in_python coppermine whittle_wisty zzz_images

Image viewer in python

8:51am JST Thursday 25 May 2006 (day 13210)

Hmm. Python. I've just started looking into this as a viable option for writing my image thing.

I was up until 4am reading about Python on pages I had downloaded at the university. I'm nearly convinced it would be a good tool for the project.

But I gots to get more images off this HD before I dive into a new project. But here is my first bit of python code:

class Image:
      def __init__(self,name,w=0,h=0,tn=None,):
      	  self.name=name
	  self.dim=[`w`,`h`]
	  self.tn=tn
      def __str__(self):
      	  str = "Image:" + self.name + " - " + ':'.join(self.dim)
	  if self.tn:
	     str = str + " thumb: " + self.tn
	  else:
	     str = str + " thumb: none"
	  return str
      def thumb_src(self):
          str = '<img src="' + self.tn + '">'
	  return str
      def html_src(self):
          str = '<img src="' + self.name + '">'
	  if self.tn:
	     str = '<a href="' + self.name + '">' + self.thumb_src() + '</a>'
   	  return str

cat = Image('cat.jpg',100,50)
dog = Image('dog.jpg',100,50,'thumbs/dog.jpg')

print cat.html_src()
print dog.html_src()

Thing is, I'm not sure about the CGI interface. The examples I saw don't have the slick perl CGI module abilities. print CGI->header type stuff.

permalink

coppermine

8:58pm JST Thursday 25 May 2006 (day 13210)

I've installed Coppermine photo gallery thing, which looks Really Really good. However, I haven't set it up; just six pictures are available so far. It doesn't have a way to use the thousands of thumbnails that I've already got on my site. I'd rather not create all new thumbnails.

I haven't been able to figure out a way to organize the categories and albums the way my brain sees them, versus how they seem to be displayed by Coppermine.

I wonder how to construct a search to find an answer to my query.

permalink

whittle wisty

12:45am JST Wednesday 24 May 2006

Things to do

I am really happy to have finished moving all the pics from /image/journal directories. It took 3 days to do it and (hopefully) clean up any links, but I've been wanting to do that for 3 years.

o = started; * = finished; X = バッツ

  1. Turn Coppermine ecard logging on

  2. * Fix regex in iPhoto_2_legible

  3. * move /images/travel/tjbike/kyoto2006/from_Tokyo_to_Koji's_farm/from_Tokyo_to_Koji's_farm-Images/Coara_Drive.jpg to funny English

  4. * Write a note about splinter on http://robnugen.com/images/travel/tjbike/kyoto2006/koji's_farm/koji's_farm-Pages/Image14.html

  5. X perhaps move this, but where??? http://robnugen.com/images/travel/tjbike/kyoto2006/Koji_to_Kobe/Koji_to_Kobe-Images/boat_on_building.jpg

  6. Upload more pictures from my hard drive:

    1. * the ones to Koji's farm
    2. * the ones at Koji's farm
    3. * the ones at Okihiki festival
    4. X the ones from Koji's farm to Kobe (there are none!)
    5. from Kobe to meditation center
    6. Kobe dinner party
    7. kids' meditation
    8. V-center to Amanohashidate
    9. Amanohashidate
    10. Amanohashidate to Biwako
    11. Biwako to Kazzah's
    12. delete or mail or upload those that are in folders on the desktop
      1. moving from me-an-Wende's house
      2. comics
      3. images from Dude's
        1. 04mar2002
          • gene gets shaved
        2. 30mar2002 maggie move
        3. for_vero
        4. genx_jan2002
        5. shepherd_resurfacing
          • 20020113
          • 20020116
          • 20020209
      4. move these online
        1. IMs
        2. bryn
        3. coaster pics
        4. dallasrally2000
        5. gmails
        6. images15feb2002
        7. images15jan2002
        8. images8jan2002
        9. jamaika
        10. jenpics
        11. roll2
      5. palestine
      6. pb
        1. pics49th_voyage
        2. pics52
  7. create more albums in images/need_to_upload

  8. decide what to do with /journal/images/kyoto_nara_kamakura

  9. Incorporate them into my journal entries from those occasions.

  10. Update iPhoto to iPhoto 6 (if it's a free upgrade, which I think it is)

  11. figure out what I have transcribed from PB 52 journal

  12. o list below what I need to transcribe from PB 52 journal

  13. transcribe Japanese journal from PB 52:

    1. page on backside of picture with me and Kin sleeping
    2. page with me and Kin sleeping picture
    3. Kimberly and some guy picture page
    4. next page about Vodafone
    5. buncha pages after that
  14. write card to あかね

  15. mail November card to Delphine

  16. mail card to あかね

  17. mail card to Genkiman Dan

  18. think about how logfiles can be sent to me

  19. Write about my trip from Kobe to the meditation center

  20. * Research photo album software

    * http://holocore.com/?PictureSync
    * http://www.emalbum.com/ (this one seems pretty good so far)

    plus, this extracts images from mail messages with perl. Awesome.

    http://www.macdevcenter.com/pub/a/mac/2004/05/07/iphoto_perl.html?page=2

  21. Test the output of saving for web and updating (or hopefully scrapping!) iPhoto_2_legible.pl as necessary.

  22. write birthday reminder code

  23. read email

  24. research auto-geotagging camera

  25. start looking into how to do googlemaps again. draw that red line!

  26. look for official US govt info regarding Airplane Day

    archive it

  27. in 10 years, look up public school textbooks about Airplane Day

  28. archive proof against govt version physics911, etc

  29. add birthday field to Rob Updates db

  30. add birthdays:

    1. Rei, May 2nd
    2. Slavena, 17 February
  31. write comic snagger with on/off switch

  32. allow Rob Updates to change directory

  33. think about writing site_visualizer; look for a free version

  34. look in to marketing Francois branded cups and shirts

  35. write to Jimmy regarding Francois branding

  36. offer to take teddybear Tomoko's teddybear up Mt Fuji

  37. login to quicken/turbotax to do taxes.

  38. Ask Zach from World of Where if I can get a registration code (I helped him find some bugs in his previous version of the software (and paid for a registration anyway after he gave me one free); perhaps if I can find bugs in the new version...)

  39. Write a Rob Update

  40. Decide where to go next if I continue TJ Biking: (basic ideas:

    1. ? somewhere near Fuji to see the peeps who I met on the last day of PB52
    2. Odawara to meet Nachiko
    3. ? northwest Tokyo to meet Alice and her husband
    4. back into Tokyo), OR escape the country OR plant myself somewhere.
  41. Decide what to do next...

  42. comment on http://www.yruuspider.com/

  43. see why ひかり doesn't show up correctly on http://robnugen.com/cgi-local/journal.pl?type=all&date=2003/08/09

  44. X Mess around with Laszlo (doesn't seem to be supported on my server, so fuckit)

permalink

zzz images

1:05am JST Friday 26 May 2006 (day 13211)

So super tired. Been reading Coppermine documentation, labeling photos, wondering if I want to use Coppermine; wondering how to speed up the batch upload process; wondering how to set up categories and albums.

Not logistically how, but conceptually how.

I fell asleep during the middle of that sentence. It's 1:09am now.

1:21am

(and then everything changed after I read "just one more window")

Curator looks nearly perfect. The description is just about exactly what I woulda written.

Only difference: it creates thumbnails on the fly. I will tweak it to look for thumbnails and create on the fly if necessary.

And it's written in Python, so it should be a fun intro to the language.

permalink
prev day next day