Friday, May 21, 2010

The power of shift clicking – Copy As Path

  Have you ever been in explorer and needed to get the path of a file? Turns out that feature is built into Windows 7! If you shift right click on a file, the menu contains a copy as path link.  Sweet!...

Saturday, May 15, 2010

Making the FSharp interpreter (fsi) run in 64bit!

I love F#!  It’s all the power of functional programming with the training wheels of c# when you need it. All the prototype/REPL power of powershell and python, with the built in test cases I like to call static typing. All the power of static typing, with out the hassle of specifying types every where thanks to implicit typing. But, there is one annoying problem, I crunch very large data sets and fsi.exe runs as a 32 bit application. This means when I load my data sets and iterate through them FSI takes up 1.6 GB of RAM (maximum for a 32bit app), and spends 100% of its time in GC. An...

Friday, May 7, 2010

The joy's of batch - Delayed Expansion

  If you can, skip batch and move strait to powershell. If you don't believe me, maybe this blog post will change your mind. In batch %ErrorLevel% is how you know if the last command succeeded: C:\>echo %ERRORLEVEL%0It turns out if you set a variable that doesn't exist, this sets error code to 1. So C:\>set DONKEYRIDINGEnvironment variable DONKEYRIDING not definedC:\>echo %ERRORLEVEL%1Makes sense, batch isn't that bad you think. Now here's a pop quiz - What will you get when you run this batch file? C:\>type foo.batif NOT "BATCH"=="OBVIOUS" ( echo %ERRORLEVEL% ...

Page 1 of 2312345Next