About NuGet

To reword some quotes: NuGet makes it easy to add, remove, and update libraries and tools in .Net projects. NuGet is a free, open source developer focused package management intent on simplifying the process of incorporating third party libraries into a .NET application during development. 
 
There are several flavors of NuGet package managers:
 

Set Up NuGet (one-time setup on your computer)

  1. If you don't have an API key, get one from nuget.org by registering and then viewing your account info.
  2. Download NuGet and put somewhere convenient one your computer.
  3. Add NuGet.exe to your path.
  4. Set your API key (NuGet will remember it). You only need an API key if you're going to 'push' NuGet packages.
   > NuGet SetApiKey <MyApiKey>
   

Set Up a NuGet Published Project

  1. Set the metadata on the project (in Properties\AssemblyInfo.cs, set AssemblyTitle, etc)
  2. Use NuGet to bring in dependencies using Add Library Package (see http://nuget.codeplex.com/documentation?title=Getting%20Started)
  3. Create the nuspec file (from the folder that contains the project file)
   > NuGet YourPackage.nuspec
  1. Edit the nuspec file. 
  •  The fields tokened like $id$, $version$, etc will be filled in later using values from your AssemblyInfo
  •  Remove fields you don't need, e.g. <iconUrl>
  •  At the least, the <projectUrl> and <licenseUrl> _should_ be filled in.
 

Publish the Project

  1. Ensure NuGet is up-to-date
   > NuGet update
  1. Package the project (the command below is just an example...)
   > NuGet pack -prop Configuration=Release MyProject.csproj
  1. Publish the package (either push using the command below or place the .nupkg file in the server's packages folder)
   > NuGet push <packagepath> [-source http://mydomain.com/nuget] [MyApiKeyForThisSource]
 

Set Up a NuGet Server

Perhaps WebMatrix can be used instead of IIS for these?
  • Option A: The traditional "easy" method... See "Creating Remote Feeds" here (requires IIS): 
  • Option B: The traditional "full-featured" method (requires IIS, Orchard gallery, others): 
  • Option C: A full-featured implementation without requiring Orchard (requires IIS):
  • Option D: An implementation for Apache/MySQL/PHP servers:
   What? This doesn't exist yet? Darn!
 
Tags

Converting version control repositories from Bazaar to Git (bzr to git)

Bazaar is great on Windows. Several years later, git's tools for Windows still.... (ahem) are lacking or too commercial. However, official development on it has ended and git is so much more popular now. So I think the time has come to convert all my beloved bzr repositories to git.

First we need note some prerequisites:

Adding a hardware clock to Raspberry Pi (DS3231)

The popular clock module is uses the DS1307 real time clock chip, which is not very precise. For just a few dollars more, you can get a module with a much more precise DS3231 RTC chip. The one I got was SunFounder's module from Amazon for $9 (free shipping for Prime). It plugs right onto the Raspberry Pi's 40 pin header and doesn't even interfere with the plastic case I have. I have a Model B, but this module should also work on Model A and Model B+. The instructions refer to DS1307, but the chips use the same I2C commands, so it also works for DS3231.

How to run a PiPresents show when you don't have a Raspberry Pi

PiPresents is some pretty cool software that will run a PowerPoint-like presentation. But with lots more flexibility. It was originally written for the Raspberry Pi.

However.... perhaps someone else has your Pi. Perhaps you don't even have one. It is possible to run a PiPresents show on  your good ol' desktop computer (Windows, Linux, or Mac). Here's how.