To whom I’m connected to?

See the list of established connections:

$ netstat -aW | grep -e "ESTABLISHED" | awk '!/localhost/{print $5;}' | sed -e 's/\(.*\)\./\1:/'

To whom I’m connected to?

Is the Nikon WT-4a up to the task?

I’m thinking of buying the new D800, but I wonder if the WT-4a is up to the task?

Slow as a WT-4a. Picture by Jürgen Schoner from Wikipedia.

I currently own the D700 and WT-4a. I usually shoot and inspect the image on my Mac, right away. The time it takes for the WT-4a to put a 12MP image on my Mac is about 5-10 seconds. It’s slow, but bearable. Power consumption per image is huge – the WT4-a battery lasts for about 30-45 minutes of work. In fact, I always have 2 spare batteries standing by.

That being said, and given the 36MP size of the D800 images, I doubt that I’ll be able to continue and use the WT-4a. Even the new WT-5a is only twice as fast as the WT-4a, and anyhow, it only works with the D4. Doh.

To sum up: there’s a need for a brand new, blazing fast, power-efficient WiFi option for the D800. Of course, a built-in solution would be the best.

Is the Nikon WT-4a up to the task?

FTP sharing tricks

The following shows you how to run a script of your choice whenever a new file is uploaded.

  1. Enable detailed FTP logging. Edit the file /System/Library/LaunchDaemons/ftp.plist, and add another ‘-l‘ option to the FTP daemon (yes, there will be two):


  2. Start FTP sharing. Open ‘System Preferences‘, click on ‘Sharing‘, then select ‘File Sharing‘ from the list. Check the ‘on‘ option, then click the ‘Options…‘ button and check ‘Share files and folders using ftp‘.
  3. At this point you should be able to open a FTP session, upload a file, and have everything logged. Have a look in /var/log/ftp.log and make sure everything is logged. You should see something like:

    Jan 5 06:27:49 gandalf ftpd[23214]: ANONYMOUS FTP LOGIN FROM ::1, blah (class: guest, type: GUEST)
    Jan 5 06:27:54 gandalf ftpd[23214]: put /test.txt = 6 bytes in 0.007 seconds
    Jan 5 06:27:56 gandalf ftpd[23214]: Data traffic: 6 bytes in 1 file
    Jan 5 06:27:56 gandalf ftpd[23214]: Total traffic: 743 bytes in 1 transfer

  4. Now, let’s write a little bash script that will read the FTPD log, and will act when a new upload arrives. Save the following as a, and customize with your own code:

    tail -n 0 -f /var/log/ftp.log |
    grep --line-buffered --only-matching "put /.*=" |
    while read put file delimiter; do
        # do something useful
        echo ${file:1}
  5. Run the script, upload something, and see that it works… 🙂
FTP sharing tricks