Wednesday, July 6, 2011

My Deploy Script

Being a development shop often of just 1, I found myself going through many of the same steps to deploy my site to production. Every time I would send it to production, I would think "This should be automated". Over time, I automated a couple step, with human interaction at steps that would require checking for failure, or certain things that would not be easily automated. The more I worked with the deploy script the more I refined the process until now I have a script that allows me to double-click, enter a comment for the subversion update, and then everything else, including error checking, is automated.





This process goes through all the following steps:
  1. Subversion Checkin / Checkout / Export
  2. ASP.NET 4 site precompile.
  3. If compile fails, abort script
  4. Map to netowork drive on production server.
  5. Zip compiled application with unique name onto production server.
  6. Copy a version to the network for archival purposes
  7. Notify the production server of new app.
  8. Production server unzips new app, deletes old, replaces old with new via file move (less than a second of "downtime")
  9. Send noficiation tweet to @cledwyn that the process has happened.

This requires having a "Scheduled Task" on the production server.


Tools that you will need to get this working.

  • Yes this is for a windows environment.  All scripts could be adapted for Mac/Linux....
  • Visual Studio 2010 is helpful
  • Tweepy:  A great python command line tool for posting to twitter.
  • Tortoise SVN.  Invaluable subversion tool.
  • 7za: Command Line version of 7Zip.

Wednesday, June 15, 2011

Multiple Columns in Notepad ++

For many users this is old had, but it is such a nicely implented and handy tool, it speaks to the quality of the wonderfully flexible, high quality, and free tool Notepad ++.

To select and edit multiple columns in Notepad ++, simply use Shift+Click.  Like so:


so Slick

Tuesday, November 30, 2010

Eye-Fi camera cards

A year or so ago I purchased a card for my digital camera from http://www.eye.fi/.  This simple little card makes me happy at least once a week.  It's genius: it is wifi aware.  Which means that once you take a picture, it tries to connect to the internet and upload the new pictures.  You can have it save just to your computer, or automatically upload to Flckr, Picasa, or a number of other sites.

Here is my happy use case.  Often while at work, I'll get an email that looks like this:

Which means that the family at home has been taking pictures, and my day is interrupted by a cute and often candid update of what my fantastic family is up to today.  

The new cards will also upload videos, which means that I rarely, if ever take my card out of my camera anymore.  

Overall, this is one technical gadget that makes my life easier and has extremely low friction.  Exactly what a quality item should be.

Wednesday, November 24, 2010

Mont Blanc Fountain Pens

I grew up admiring my father's Montblanc fountain pen, having worked through scores of fountain pens myself I have yet to make the leap. Maybe when I grow up.

Here is a long soliloquy of an article, with lots of nice pictures.
http://www.luxist.com/2010/11/16/birth-of-a-montblanc-making-the-worlds-finest-pen-and-why-you-sh/

Monday, November 15, 2010

Studio day

I feel like I'm making good headway.
IMAG0310
The kiln is cooling.

Made a couple more pieces just in case.
IMAG0311
Theo even helped with one of those bottles. it was fun.

There are for or so bowls drying around the studio, this platter form I've been working on, IMAG0312 and a bigger tray IMAG0313.

Oh, and this guy
IMAG0314
showed up at one point.

I think I may just fit in one more bisque firing before loading up and heading out to the firing with Simon and they guys this weekend.

Friday, November 12, 2010

Some mud work

IMAG0308

Firing coming up soon. I suppose I should do some backwards math. If I'm heading out Thursday night, then I need Thursday to cool the bisque kiln, which means I need to fire on Wednesday. Since I don't own a microwave anymore to quick dry pieces, I should give it a day or two or more to dry which means Sunday wheelwork would even be pushing it. Ahhh the excitement of the chase.