1410411133_0.png

How to Run Multiple Projects in a Single Azure Site

This is probably a fringe case, but here’s the scenario. I have a site for a client that is actually broken down into several projects, but not in a single solution. The layout looks something like this:

  • Root Folder
      • index.html (basic home page with links to project roots)
      • ProjectA
          • Default.aspx
          • Details.aspx
          • etc…
      • ProjectB
          • Default.aspx
          • Features.aspx
          • etc…
      • ProjectC
          • Default.aspx
          • Contact.aspx
          • etc…
        • By default, if you were to have your root folder checked into source control, and had Azure deploy from the root folder, you’d either have only Project A deployed on the site, or most likely, the deployment would fail with a message that it doesn’t know what project to deploy.

          There was nothing I could do to get around this situation, but I did come up with a way to make it work.

          Continue reading

          1409632081_0.png

          The Magic of the Years and Ears

          About this time, a good 17 years ago now, I started my college year in a similar fashion. I met up with with a bunch of friends at Disnelyand for some fun in the magic kingdom before the intense studies began. At the carousel located just behind the iconic castle, friends old and new congregated. One of those new friends and I would soon start an adventure still going on today…

          Continue reading

          1408668422_0.png

          Code Analysis: The Hot Sauce Test

          Oftentimes I am called into a project that is adding new features to an existing application. While a lot of updates seem easy on the surface (I’m just adding a basic page that saves the user’s e-mail address), the underlying architecture of the system can make this rather complex. The shocking thing is that a lot of times the complexity isn’t immediatley discoverable. To help identify and estimate the work needed for a new feature, I’ve devised what I like to call “the hot sauce test.”

          Continue reading

          1408466230_0.png

          How to Add a Windows Phone 8 Live Tile Using AngularJS

          Lately I’ve started up yet another pet project and wanted to start working with AngularJS. So far things have been great (another blog post to follow). One thing I like to do with my “web based apps” is use a well known trick for creating a windows phone live tile so I can pin them to my home screen.

          Doing this same thing using AngularJS is amazingly simple and needs only a slight modification. Here’s how you do it.

          Continue reading

          Quick Tips

          Quick Tip: Removing Old Files in Azure Containers

          I’ve been doing a lot of coding with Windows Azure as the hosted platform lately. I’ve really been impressed by the power and flexibility that is avaialable. One thing I recently did was create a tool that imports data from a mainframe system into our database using the new WebJobs feature available. This leverages the Azure storage containers to save the data files and logs for easy retrieval and prevents them from being removed.

          While Azure storage does provide automatic cleaning of it’s internal logs, it doesn’t provide a way to automatically clean out old files in your containers. Our containers were filling up pretty fast and the policy was to only retain records for 30 days. Fortunately, you can create a simple script (and save it as a WebJob) to keep your containers nice and tidy.

          Continue reading