suburbia

Premshree's (品速力) Personal Weblog

etc.

Wien
suburbia
[info]premshree

I’m not doing well at all (terrible throat, thus cold, thus headache, etc.), so no Vienna post.

Well, sort of.

That’s not a single image; each square is a CC-licensed image from Flickr. Click on any of the squares to go the that image’s photo page. (If this wasn’t LiveJournal I probably could’ve thrown in some JavaScript magic.) Generated using this badly written script. (Requires flickr.rb.) Basically, you can supply it a word, tags for the word (some color, for example; in this case it’s “blue”), and tags for the surrounding spaces (in this case I’ve inserted a specific image).

Blah.


Lookie!
suburbia
[info]premshree

Ruby-GTK Uploadr running on OroborOSX on Mac OS X Tiger. Of course, it doesn't feel native, but at least better than vanilla xorg. I should probably try playing around with GTK+OSX.


Flickr Uploadr on OS X
suburbia
[info]premshree

So I finally managed to get my GUI Flickr Uploadr to work on OS X. It was not easy installing ruby-gtk2 in that I had lots of dependency issues. The issues were mostly with atk, gdkpixpuf, and glib. At first, I tried installing GTK2 using Fink. It failed because of GCC issues with glib (I think), which I later figured was because of a problem with pkg-config. I ditched Fink, and used DarwinPorts. Things were good.

After that, I had GTK initialization issues, which was because I hadn’t exported DISPLAY (to 127.0.0.1:0; thanks, Gopal!).

I couldn’t use my old code as is because the Ruby-GTK2 bindings on my FreeBSD box is an older version. (I’ll put the code up sometime later. And maybe also try to document some poorly documented Ruby-GTK2 stuff like Gtk::TextView, Gtk::TextBuffer, etc.) So, it works, but not perfectly:

Ruby-GTK Uploadr running on OS X

Yeah, it looks horrible, but then I&rsquo'm not going to play with it on OS X again—I just wanted it to work.

Oh, by the way, Google Talk is *love*!


Flickr Uploadr
suburbia
[info]premshree

I normally use the command-line Flickr uploader. Just hacked this up for GUI-inclined folks. Also, I’m not much of a desktop guy—“the web is the desktop”—so, yeah, just playing around. The code is here. Requires the Ruby API and Ruby-GTK. (The Ruby bindings for GTK are nice to work with, by the way.)

Doesn’t look very good, etc. I’ll probably try to improve on it.

While looking for pictures to test with, I found a picture of one of my college friends—she with the ocean behind her. There’s something about that picture that makes me smile. That’s my wallpaper for now.


Command-line Flickr Uploadr
suburbia
[info]premshree

I had written a command-line script to upload photos to Flickr, but it used the old auth mechanism. A couple of days ago a co-worker pinged me because he was having problems getting auth to work. I realized I never cared about the web auth. I’ve extended the code to allow for that now. Apart from that I did some cleanup, etc.

And since the old auth no longer works, I’ve hacked up a simple script to upload photos to Flickr. (You’ll need the API too, of course.) Using it:

./flickr-uploadr.rb path/to/images/dir/ tag1,tag2,tag3

Hope someone finds it useful. :-)


Ruby API for Flickr - New Auth Mechanism Implemented
suburbia
[info]premshree

So I took some time out and implemented the new Flickr auth mechanism in the Ruby interface to Flickr.

Time for a bath now.