Nuget Upgrade Button
I'm going start tracking how many times this upgrade nuget button doesn't work. I seems that between 100% and 100% of the time the button does nothing.
- 2.0.30619.9119 » 2.0.30625.9003 - No Dice!
- 2.0.30625.9003 » 2.0.30717.9005 - Negative Ghostrider!
- 2.0.30717.9005 » 2.0.31002.9028 - Nada!
Installing the Sublime Text 2 Modific plugin
There really isn’t enough nice things to say about Sublime Text 2. It is a nice cross platform minimalist text editor that seems to get things right. You can even install it Dropboxable aka Portable. So run, don’t walk over to Crazy Larry’s House of Editors and get you some editor joy.
Since you are probably working on a source file or two some of some flavor or another you are probably using with source control. This will be the case if the file is important to you but we’re not here today to talk about that. For the intent of this post you are using git and you are interesting in some lightweight status of your changes in-flight.
Install it already
Sublime Text 2 and its Sublime Package Control make this very easy.
- Open subl
- Open the Sublime Text 2 console. View > Show Console or Ctrl+`
- Paste the following (from Sublime Package Control installation):
import urllib2,os; pf=’Package Control.sublime-package’; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),’wb’).write(urllib2.urlopen(‘http://sublime.wbond.net/’+pf.replace(’ ’,’%20’)).read()); print ‘Please restart Sublime Text to finish installation’
- Restart subl
- Open the Command Pallete aka package manager by Tools > Command Palette or Ctrl+Shift+P
- Type in Package Control: Install Package and press enter. The package list will refresh
- Type Modific and press enter
- Restart subl
- Open a file that is in a git repository
Internet Explorer is like
Internet Explorer is like Wal-Mart, nobody likes it but it is very difficult to avoid.
I Quit My Job And We Are Moving Home To Montana
Today I gave my two weeks notice at the place I called home for what would have been 9 years in November. A small natural gas utility in Portland Oregon called NW Natural. Lots of good memories there and I learned at lot from a lot of very smart and talented people there. As a software developer I think I probably should have tried to exist stage right a few years ago but about that time I should have been doing that I met my wife and had three kids. This was the classical enterprise in every sense of the word and my transition to the new company is going to be quite the change for me. I'm going from 'customer' of the contracting firm to the 'contracting' firm itself.
With the help of twitter (wow, soak that in for a minute) I've made some networking connections with some folks back home. The single person instrumental in getting my family and I heading due east is Doug Odegaard @dodegaard from intraLogix and Who Can Help.
That all so familiar story of developers getting connected on Twitter that we all know, turned into some Skype calls from time to time and having leads on positions in Montana sent my way. Just like you find your car keys in the last place you look - a recomendation from Doug turned into a first, second, third and fourth interview which left me with accepting a position as a Geospatial Developer at GCS Research in Missoula Montana.
I'm pretty exited about the new adventures ahead of me. Not working on the same systems year in and year out. Mostly greenfield apps and getting all-chips-in on the ESRI .NET stack with some smart, web and mobile clients.
Now onto the small challenge of selling the house, packing up the wife, kids, dog and cat, moving 600 miles, finding a new place to live and ...
LINQPad with Databases
LINQPad is a fantastic free utility from author and C# guru Joesph Albahari. Per the tag line on the LINQPad site "Kiss goodbye to SQL Management Studio!" and I would suggest that if you are a SQL Server Management Studio user and also interested in LINQ that you take the LINQPad Replacement Challenge!
I didn't even know about LINQPad until a few years ago when I got the (then 3.0) C# 4.0 in a Nutshell book. It is one of those companion applications that plays a role in the book text and one of the important hooks between the book and the application is that when you registered your copy of the book with the site you received a code that enabled Autocompletion. Not sure if that is still an option or not.
So what the heck is it already? Well LINQPad is many things. It is an application that will allow you to run LINQ queries against a number of things, Objects, LINQ to SQL, Entity Framework, XML, WCF Data Services (OData), SQLite and MySQL as well as a few others. It has the Snippet Compiler feel where you can write a couple of lines of code and F5 it to see what it does. All around a good LINQ-to-* learning tool.
So show me the code already.
First we need a data store to hook up to LINQPad. Let's have a little taste of SQLite for some sample data. I've download a local copy of SQLite and stubbed up a simple database called MyDatabase.db. SQLite has a command line syntax that you can look into. For the point of this post I started SQLite and used the .Read function and supplied a external file name with the contents of the file below.
Now start up LINQPad and click on the standard Add Connection function. Here you'll see a few nonstandard options, at least from the typical items you'd expect when you 'add a connection' from most other windows developer tools.
If you click on the 'View more drivers...' button you'll find options for other third party LINQPad drivers. In this case we're looking for the SQlite drivers.
The driver install for the SQLite driver was pretty slick and seem less and you'll end up with a third item in 'Build data context automatically' section. Select the IQ driver and the SQLite provider and the location of the SQLite database created earlier.
Now you have an available connection to execute queries against. For the Visual Studio inclined this is the Server Explorer idea.
Now for a couple of simple queries. The first one if probably the simplest query you could do. Selecting everything. Notice the handy output display it gives you.
And this one has a simple filter to show how you can limit the data you want to return. Nothing but the serious folks listed here and also notice the SQL tab is selected to show you the SQL that is being executed against the given database.
Hopefully this will give you enough of a taste to want to try it out for yourself.
- 23 Aug 2012 Nuget Upgrade Button
- 30 Jun 2012 Installing the Sublime Text 2 Modific plugin
- 07 Jun 2010 Internet Explorer is like
- 06 May 2010 I Quit My Job And We Are Moving Home To Montana
- 17 Apr 2010 LINQPad with Databases
- 01 Apr 2010 Stupid Linq Tricks Record Rollup
- 30 Mar 2010 Getting started with MVCContrib Filters
- 23 Mar 2010 Extension Methods Improving the quality of Life
- 22 Mar 2010 C4MVC Reason 42 to Join
- 13 Mar 2010 Checking for special characters using LINQ
- 09 Mar 2010 Asp net MVC Session State Extension Method
- 08 Mar 2010 Unit Testing Just Do It
- 15 Feb 2010 Blog.Start