Monthly Archives: July 2011

Timer in Camera

I recently started photography after being asked by Subhro to take up some hobby. Subhro likes to believe that I started it only after seeing him, though this is not the case :). Anyways, this entry is not about settling the argument, but something which I recently learnt.

Few days ago, we went to Rajghat, and there I noticed a something so simple yet I never thought about that. I’m not sure if this is the right reason, but I noticed that whenever I capture photos on slow shutter speed even on tripod, sometimes pressing shutter button causes camera to shake which even Image Stabilizer is not good at correcting. When Subhro decided to capture photos for HDR on a tripod, I noticed his use of Timer functionality of the camera, i.e. camera instead of capturing photo immediately after pressing shutter button, it delays capturing for n seconds, so you press Shutter button, and then you move away from the camera, and thus avoiding any camera shakes which happens during capture. I’m not sure if that’s why he used Timer, but this reason also seem good enough to me.

Let there be dragonflies

After an inspiring post by Siju George on bsd-india list, I decided to use DragonFlyBSD 2.10.1 for NAS (a long-time pending project). The installation using their installer was super-simple, and went fine. The userland is same as FreeBSD userland, and I used HAMMER filesystem as root. The NAS is not finished yet, have to install/configure BackupPC yet.

After installing on NAS, I decided to install on my notebook side-by-side with GNU/Linux. My notebook’s HDD is a GPT disk, with GNU GRUB2 used as bootloader. To install DragonFlyBSD on it, I booted with DragonFlyBSD’s USB image, started shell, and created a large partition of type DragonFly HAMMER, and a small UFS2 (to be used as /boot) using gpt(8). Encrypted partitions using dm-crypt. After that I newfs_hammer(8)-ed it, mount(8)-ed it, cpdup(1)-ed USB filesystem onto it as per instructions, and created an initrd using mkinitrd(8). Following is GRUB2 configuration I used to boot into it.

insmod bsd

menuentry "DragonFlyBSD 2.10-RELEASE" {
        set root='(hd0,6)'

        kfreebsd /kernel/kernel

        kfreebsd_module /kernel/initrd.img type=md_image

        kfreebsd_module_elf /kernel/acpi.ko
        kfreebsd_module_elf /kernel/ahci.ko
        kfreebsd_module_elf /kernel/ehci.ko
        kfreebsd_module_elf /kernel/dm.ko
        kfreebsd_module_elf /kernel/md.ko
        kfreebsd_module_elf /kernel/dm_target_crypt.ko
        kfreebsd_module_elf /kernel/wlan.ko
        kfreebsd_module_elf /kernel/wlan_ccmp.ko
        kfreebsd_module_elf /kernel/wlan_tkip.ko
        kfreebsd_module_elf /kernel/ath_hal.ko
        kfreebsd_module_elf /kernel/ath_rate.ko
        kfreebsd_module_elf /kernel/if_ath.ko
        kfreebsd_module_elf /kernel/coretemp.ko
        kfreebsd_module_elf /kernel/sound.ko
        kfreebsd_module_elf /kernel/snd_hda.ko

        set kFreeBSD.vfs.root.mountfrom=ufs:md0s0
        set kFreeBSD.vfs.root.realroot=crypt:hammer:/dev/da0s4:dragon
}
### END /etc/grub.d/01_bsd ###

Thanks to alexh on #dragonflybsd on EFnet for help with installation.

Fortune

Sometimes, when I think of what that girl means
to me, it’s all I can do to keep from telling her.
— Andy Capp

Google SMTP available over IPv6

chateau.d.if!abbe:~ % dig aaaa smtp.gmail.com

; <<>> DiG 9.6.-ESV-R3 <<>> aaaa smtp.gmail.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23570
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 13, ADDITIONAL: 0

;; QUESTION SECTION:
;smtp.gmail.com.                        IN      AAAA

;; ANSWER SECTION:
smtp.gmail.com.         114     IN      CNAME   gmail-smtp-msa.l.google.com.
gmail-smtp-msa.l.google.com. 115 IN     AAAA    2001:4860:8005::6d

;; AUTHORITY SECTION:
com.                    104845  IN      NS      l.gtld-servers.net.
com.                    104845  IN      NS      a.gtld-servers.net.
com.                    104845  IN      NS      j.gtld-servers.net.
com.                    104845  IN      NS      d.gtld-servers.net.
com.                    104845  IN      NS      g.gtld-servers.net.
com.                    104845  IN      NS      b.gtld-servers.net.
com.                    104845  IN      NS      c.gtld-servers.net.
com.                    104845  IN      NS      f.gtld-servers.net.
com.                    104845  IN      NS      m.gtld-servers.net.
com.                    104845  IN      NS      k.gtld-servers.net.
com.                    104845  IN      NS      h.gtld-servers.net.
com.                    104845  IN      NS      e.gtld-servers.net.
com.                    104845  IN      NS      i.gtld-servers.net.

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Sun Jul 10 08:32:14 2011
;; MSG SIZE  rcvd: 322

chateau.d.if!abbe:~ % telnet smtp.gmail.com smtp
Trying 2001:4860:8005::6d...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP e13sm7839160wfd.1
EHLO lostca.se
250-mx.google.com at your service, [2001:470:f803:8000::1]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250 PIPELINING
QUIT
221 2.0.0 closing connection e13sm7839160wfd.1
Connection closed by foreign host.

Super cool 😀