Thursday, October 6, 2011

R.I.P. Steven Paul "Steve" Jobs (February 24, 1955 – October 5, 2011)


SAN FRANCISCO | Thu Oct 6, 2011 10:01am IST

(Reuters) - Steve Jobs, the transcendent Silicon Valley entrepreneur who reinvented the world's computing, music and mobile phone industries and changed the daily habits of millions around the globe, died on Wednesday at the age of 56.

Friday, July 15, 2011

A Small Python Module: Get latest directory

  • import os
  • import time
  • import operator
  • def latestDir(path):
  •     alist={}
  •     now = time.time()
  •     directory=os.path.join(path,"")
  •     os.chdir(directory)
  •     for file in os.listdir("."):
  •         if os.path.isdir(file):
  •             timestamp = os.path.getmtime( file )
  •             # get timestamp and directory name and store to dictionary
  •             alist[os.path.join(os.getcwd(),file)]=timestamp
  •     # sort the timestamp
  •     for i in sorted(alist.iteritems(), key=operator.itemgetter(1)):
  •         latest="%s" % ( i[0])
  •     print "newest directory is ", latest
  •     return latest


Example USE:
scanPath = 'D:/dushyantka'
latestDir (scanPath)

!

Wednesday, June 8, 2011

Nuke | Python

Diving into python these days, customizing Foundry Nuke a lil, 'll get back here... soon.

...