StokeBloke.com

Archive for March, 2009

emacs p4 edit integration

Thursday, March 12th, 2009

I have been using perforce for some time and I wrote this little function to perform a p4 edit when I press the F9 key.

(defun p4-edit ()
  "does a p4 edit on the current file"
  (interactive)
  (let* (
         (filename (buffer-file-name))
         (cmd)
         (result)
         )
    (setf cmd (concat "p4 " "edit " filename))
    (setf result (shell-command-to-string cmd))
    (message (substring result 0 (- (length result) 1)))
    ;; reload the file
    (revert-buffer t t t)
    )
  ) 

(global-set-key [f9] 'p4-edit)

I know there are lots of other perforce integrations to emacs, but I wrote this and tried to keep it small and simple.

Blender Box Rendered Wallpaper

Tuesday, March 3rd, 2009

I was playing with Blender and its DOF and Radiosity at the weekend and made these hi res desktop backgrounds/wallpaper.


blue boxes 02

green boxes 02

download life less ordinary a dvd


red boxes 02


yellow boxes 02

Some more here

Les Arcs 2009 photographs

Sunday, March 1st, 2009

I have uploaded the photographs from the Les Arcs trip.

cj7 movie 10 of us went:

  • Coz
  • Monty
  • Woody and his Dad
  • Dan
  • Luke
  • Lockhart
  • Will
  • Steve
  • and Myself

See the full gallery here

Coz smiles
Woody and his Dad
Steve and Will
Monty

watch hello dolly online

Dave
Dan
Luke