Monthly Archives: August 2014

Find symbolic links

Prior to removing a directory, it might be interesting to see if there are any symbolic links within it. The following is a short piece of Python code to do this.

#!/usr/bin/env python

import os

for root, dirnames, filenames in os.walk("."):
  for dirname in dirnames:
    if os.path.islink(os.path.join(root, dirname)):
      print os.path.join(root, dirname), " => ", os.readlink(os.path.join(root, dirname))
  for filename in filenames:
    if os.path.islink(os.path.join(root, filename)):
      print os.path.join(root, filename), " => ", os.readlink(os.path.join(root, filename))

National Day Rehearsal

Andy booked a room at the Ritz-Carlton Millenia to celebrate Pauline’s birthday which was coming up. From the room we had a great view of the National Day Rehearsal. The distance and the lack of light made it very difficult to get really nice pictures. Esther did a good job with the fireworks.

Hanging tingkat

Saw some red tingkats hung as decorative elements at the food court at Marina Square. Thought that it was really interesting looking so I took a photo and edited it a bit with snapseed to give it that antique look.