Monday, December 31, 2007

fixing Exif dates

I do have a Olimpus camera that loses the camera date/time when it runs out of battery. For a long time now, i wanted to set the right time to some pictures. Finally, today i did take the time to search for a tool to fix those pics.

it is called jhead.

these are them commands i'm running

jhead -ts2007:12:27-14:30:00 *.jpg
jhead -ft *.jpg

The former does set Exif time, while the later sets the file modified time set to the Exif time.

Note that those switches may give you an unexpected result when used together.

jhead -ts2007:12:27-14:30:00 -ft *.jpg

This will not do the same. It seems -ts doesn't take effect until writing the file and -ft does what it is meant to do, but BEFORE -ts does it's work. You have to run the command twice to archive the desired effect.

maybe jhead should be smarter, and use the "about to be written Exif time" instead of the "current Exif time" in those cases when the Exif time is going to be changed/updated.

Thursday, November 08, 2007

ExpoAgua 2008

From today, i'll be working at Expo Zaragoza 2008. This is exciting.

Wednesday, October 31, 2007

arm-linux-gcc zlib

it was so easy this time... i just love when i things do work. This time it was just:

cd /usr/src/zlib-1.2.3
./configure --prefix=/usr/arm-linux
make
make install

Ummmm!

Monday, October 29, 2007

samba PDC on fluxbuntu 7.10 rc

first, this post is still a work in progress. it is not yet complete.

to follow this instructions you should be able to download and burn fluxbuntu 7.10 (rc) iso file and follow some steps.

  1. 13:25
  2. boot from cdrom.
  3. select boxname, language, keyboard layout, partition hdd ( i'm lazzy: use entire disk )
  4. select timezone ( based on kb layout: just the relevant options )
  5. select main username ( not root, since all ubuntus do prefer the sudo way )
  6. skip download language support ( i'm in a hurry now )
  7. 13:39. intallation is complete, rebooting

customize the system a bit...

  1. boot into the system
  2. [optional] change the fluxbox style: (leftclick on desktop)->Menu->Fluxbox->Style->Meta
  3. [optional] apt-get remove nano ( i hate nano )
  4. sudo apt-get install samba system-config-samba

edit the /etc/samba/smb.conf file to read

[global]
 workgroup = MYDOMAINNAME
 server string = %h server
 username map = /etc/samba/smbusers
 domain master = yes
; local master = yes
 domain logons = yes
 security = user

# a bit of security (these you should tweak to your needs)
 ;hosts allow = 192.168.0.0/16 127.0.0.1
 ;hosts deny = ALL

 ;interfaces = 192.168.0.0/24 127.0.0.1
 ;bind interfaces only = yes

[ homes ]
 comment = Personal folders
; guest ok = no
 read only = no

[ proyectos ]
 comment = Proyectos ( everyone RW )
 path = /export/projects
 writable = yes
        #these will make the share to allways use these users.
        #and simplify the permisions management.
 force user = ntuser_projects
 force group = ntgroup_projects

[ netlogon ]
 comment = Netlogon Service
 path = /export/netlogon
 guest ok = yes
 share modes = no

Wednesday, July 04, 2007

udev explained

in a nice document here

Friday, June 29, 2007

tools and tools

deborphan and orphaner

Wednesday, June 13, 2007

Target

Minimal System with Kernel 2.6 (60Mb)

Linux 2.6 also features a rewritten scheduler that speeds up the process of selecting tasks for execution, which is of particular benefit to complex multitasking applications. Scheduling is now completed in a predictable amount of time.

from BlueCat Linux

new CanBus card. new Processor.

Monday, June 11, 2007

all you should know about singleton and double checked locking is out there

you just need too google for it, but sure you want to find the double checked locking documentation [pdf] and why it is broken [pdf]

This does not mean you should not use singleton, nor DCL, it just means you have to know the options and choose the one that best works for you

Thursday, June 07, 2007

new does not throw

at least not always.... it is up to you.

because you all know, there are several new operators... and you can use the one that does not throw

#include 
...
T* p = new (std::nothrow) T;

Friday, May 18, 2007

RAII

i've been using RAII for sometime... but reading about it is a good practice.

Monday, January 01, 2007

2007 New Year

cryptic! some may say.
i would say, he was enjoying it so much!

merry xmas