Recent comments

  • GIMP - Using an image/layer as a layer mask   20 weeks 5 days ago

    used this guide to get an understanding of how to copy a transpancy mask from one layered image to another. your steps pretty much summed up everything I needed to understand.

  • Ubuntu: Organize Photos in Folders, by Date   22 weeks 4 days ago

    exiftool -d /media/drive_d/Photos/%Y_%d_%d "-directory

  • Ubuntu: Organize Photos in Folders, by Date   24 weeks 4 days ago

    I got my wife to change to Ubuntu 9.10 about 3 weeks ago. The Canon utility would do all this for you but does not work in Ubuntu. I found a number of programs that "are supposed to do this" but non actually work. Here is my version that works but with a few changes. I added a lot of comments so it should be easy to read and modify to your liking. It will automatically launch this script whenever a phone is plugged in on her box now. I had to keep it as simple as possible.

    #!/bin/bash
    # sudo apt-get install libimage-exiftool-perl
    # sudo apt-get install libnotify-bin

    # The directory where the photos are (inside my camera SD card)
    # This path works for both my Canon PowerShot S5IS and iPhone
    SOURCE_DIR=".gvfs/"$(ls .gvfs)"/DCIM"
    # A temporary location to store the files
    # This way we still have the originals just in case
    TEMP_DIR=TEMP
    # The destination directory
    DEST_DIR=Pictures
    # Lets copy the files first
    cp -R $SOURCE_DIR $TEMP_DIR
    # I move the pictures first
    exiftool -r -d $DEST_DIR/%Y/%m/%d/image_%Y_%m_%d%%-c.%%e "-filename

  • Ubuntu: Organize Photos in Folders, by Date   29 weeks 5 days ago

    Interesting script, but using exiftool you can do all this in one command:

    exiftool -d /media/drive_d/Photos/%Y_%d_%d "-directory<createdate" FILE

    where FILE is one or more directory or file names. This will create directories that didn't exist too.

    Also, you can write the "FileName" tag with a full path specification + file name if you want to rename the files at the same time that you move them.

  • GIMP - Using an image/layer as a layer mask   32 weeks 7 hours ago

    I've just spent about 2 hours beating my head against the display over this. I was clicking everywhere else, and when I did get it right by accident, I didn't know to anchor it. It's a

  • Ubuntu: Organize Photos in Folders, by Date   32 weeks 4 days ago

    Thank you both from the bottom of my heart for this script. It's a life savior for me as I need my pictures organized in folders with the same name as the date the picture was taken. I use to take pictures for weeks and months and just keep them on my 4GB camera SD card (the pictures are on the camera SD card in the DCIM/255CANON folder) before downloading them on my computer. Therefore, your script was most useful. I had to tweak the Peter Halmen's code a little, as my camera is mounted on variable .dvfs subfolders, depending on USB allocation by Ubuntu. In other words, each time I connect my Canon PowerShot S5 to the computer, Ubuntu mounts it on a .gvfs subfolder like "gphoto2 mount on usb%A100, 113", "gphoto2 mount on usb%A300, 116", etc. Since I cannot be sure what would be the name of that subfolder, I take it as a variable as such:

    #!/bin/bash

    # The directory where the photos are (inside my camera SD card)
    SOURCE_DIR=".gvfs"$(ls .gvfs)"/DCIM/255CANON"

    # The destination directory
    DEST_DIR=Pictures

    # The date pattern for the destination dir (see strftime)
    DEST_DIR_PATTERN="%Y_%m_%d"

    # Move all files having this extension
    EXTENSION=JPG

    find "$SOURCE_DIR" -iname "*.$EXTENSION" -type f | while read f
    do
    # Obtain the creation date from the EXIF tag
    f_date=`exiftool "$f" -CreateDate -d $DEST_DIR_PATTERN | cut -d ':' -f 2 | sed -e 's/^[ \t]*//;s/[ \t]*$//'`;

    # Construct and create the destination directory
    f_dest_dir=$DEST_DIR/$f_date
    if [ ! -d $f_dest_dir ]; then
    echo "Creating directory $f_dest_dir"
    mkdir $f_dest_dir
    fi

    mv "$f" "$f_dest_dir"
    echo "Moved $f to $f_dest_dir"
    done

    Thank you SO much for this.

    Razvan

  • Ubuntu: Organize Photos in Folders, by Date   1 year 2 weeks ago

    I'm glad it was useful and thanks for the suggestions!

  • Ubuntu: Organize Photos in Folders, by Date   1 year 2 weeks ago

    I was looking for something just like this and it's been super-useful. Instead of organizing photos already on disk, I use it to transfer the pictures off the camera. Thanks!

    One small improvement:

    My Ubuntu (8.0.4) mounts my camera in /home/phamlen/.gvfs as something called "gphoto2 on usb%yadayada". The spaces in the file names makes the original find command break (because each word gets parsed instead of each filename. It's pretty easy to fix though; just change the for loop to a while loop and read the lines. Also, add quotes around $f in the move script. It looks something like:

    find "$SOURCE_DIR" -iname "*.$EXTENSION" -type f | while read f
    do
    # Obtain the creation date from the EXIF tag
    f_date=`exiftool "$f" -CreateDate -d $DEST_DIR_PATTERN | cut -d ':' -f 2 | sed -e 's/^[ \t]*//;s/[ \t]*$//'`;

    # Construct and create the destination directory
    f_dest_dir=$DEST_DIR/$f_date
    if [ ! -d $f_dest_dir ]; then
    echo "Creating directory $f_dest_dir"
    mkdir $f_dest_dir
    fi

    mv "$f" "$f_dest_dir"
    echo "Moved $f to $f_dest_dir"
    done

    Thanks again!

  • "One Hundred Years of Solitude", by Gabriel García Márquez   1 year 3 weeks ago

    I read this novel for the first time when I was 16 years old and I started to learn spanish. The book is still "suffering" from my learning, because half of the words are underlined, as they were words I didn't know at that point. I enjoyed a lot learning Spanish with this book, and later on, when I had a higher level of Spanish I read it again and I enjoyed it even more. It's not the greatest novel of all times, but it is an experience reading this novel, The first time is quite difficult to follow because of the amount of characters, but then you cannot stop reading. I really recommend it to anyone that wants to approach this type of novel.

    Cheers,
    Sim

  • "My Little Husband", by Pascal Bruckner   1 year 3 weeks ago

    Hi,

    I'm not sure if the book was translated in English or not. I've read the Romanian translation, but we get most of Pascal Bruckner's books over here. I've noticed he's not that popular in English speaking countries, though I really don't understand why - maybe it's just some bad media coverage.

    However, I did find one of his other books - which is quite similar in theme and style - The Divine Child: A Novel of Prenatal Rebellion (Amazon link).

    I hope it was useful.
    Cristi

  • "My Little Husband", by Pascal Bruckner   1 year 3 weeks ago

    I read your review and it was very interesting cristi. I would love to read the book but I do not speak french. Did you say it has been translated to english? If so, any ideas where I might find an english translation.

    Thanks for the help.

  • GIMP - Copy the layer mask to another layer   1 year 6 weeks ago

    Thanks! I've been trying to figure this one out - exactly what I needed.

  • GIMP - Copy the layer mask to another layer   1 year 7 weeks ago

    Hey, thanks so much for this info. I needed it so badly :)
    Have a nice day.

  • And Death Shall Have No Dominion.   1 year 25 weeks ago

    Errr ... well, it's not actually at the top of the list *smile* - I like to swap positions through it or just put other books at the front. Maybe it's down to the mood, since in my opinion, in order to enjoy a book you have to be in the right mood for it.

    But be sure to come back to the blog *smile*!

  • "Certificate error" while installing a self made midlet on S60   1 year 25 weeks ago

    Glad it helped! It took me some time to figure it out as well, it's amazing how little things like this can block you.

  • "Certificate error" while installing a self made midlet on S60   1 year 25 weeks ago

    Oh my god..

    This is weird .... But it worked for me.

    I was using the CalendarImpl in one file.. Removed it and everything started working magically.

    A million thanks to Cristi.

    Why is the error message so misleading.. Nokia guys please do something to atleast give the right error messages.

    I spent more than a week to figure out what was going on.. tried all sorts of things including updating my phone's firmware.

  • And Death Shall Have No Dominion.   1 year 26 weeks ago

    No, I haven't read Solaris yet. To be honest, I hadn't thought of that! As if my Mount To Be Read isn't big enough... LOL
    Well, I will probably read about it in your blog once you've read it, right? ;)

  • And Death Shall Have No Dominion.   1 year 29 weeks ago

    Thank you for your comment and your suggestions. I haven't seen any of those two films that you mentioned, though the book by Stanislaw Lem, on which Solaris was based, was on my reading list for some time. Have you read it?

  • And Death Shall Have No Dominion.   1 year 30 weeks ago

    For this is just what I needed (because of a loss in the community I participate in).

    You have great taste ;) I jst read your pst about Taichi Yamada and now you are talking about Solaris as well :) Didi you see the original by Andrei Tarkovski as well?

    A bit different (or even completely different?), but maybe you'll like Sunshine by Donny Boyle as well ;)

  • "Strangers", by Taichi Yamada   1 year 30 weeks ago

    I really loved Strangers. It's been a while since I read it and now I am considering rereading it. It's a beautiful story - and it made me cry. Sorry ;) I've read two others of Yamada's novels, but this one is definitely special!

    BTW You might like the movie Nobody knows, by Hirokazu Kore-eda a well ;) Or his other films :)

  • Flickr Photo Collage with Ruby   1 year 40 weeks ago

    Hi Jorge,

    Can you provide more details about those errors? I've just tried to the flickraw part from the posted script and it appears to be still working (albeit it's a bit old). Not sure about the RMagick part, since I didn't have enough time to install it.

    Be sure to install the flickraw gem first:

    gem install flickraw

    Let me know if you're still having troubles.

    Regards,
    Cristi

  • Flickr Photo Collage with Ruby   1 year 41 weeks ago

    Hello Cristi,
    I was reading you used flickraw and i am trying to use it too but I am having errors.
    May you help me trying to understand what I am doing wrong?
    Thank you in advance.
    Best,
    Jorge

  • GIMP - Using an image/layer as a layer mask   1 year 50 weeks ago

    Thankyou! Exactly what I needed. I got up to the floating layer and got confused... GIMP is great, but it does have some UI and behaviour improvements to make.

  • Ubuntu: Organize Photos in Folders, by Date   2 years 2 days ago

    Hi there...

    Great little script, I needed it very much too. Modified it a bit, so it puts the pictures in /year/month/year_month_date..

    Cheers!

  • "The Divine Child", by Pascal Bruckner   2 years 9 weeks ago

    Interesting book indeed. ;)