Nov202012

Mini-Keynote: Advanced Knockout.js

I've been using Knockout.js for the past few months and love how easy it is to create a JavaScript ViewModel for web applications. I put together a mini-keynote of some of the more advanced features and usages.

Check it out here:

Continue Reading →

Nov192012

Force HTTPS Across an ASP.NET MVC Application

A quick tip if you want to force HTTPS across all of your MVC actions: register the RequireHttpsAttribute in your global filters.

Global.asax: ` csharp

Continue Reading →

Nov052012

Michigan Voters: Preview Your Ballot Before Going to the Polls

The State of Michigan has a section where you can generate a preview of your public ballot based on county, city, and district. If you'd like to see yours before getting to the polls, visit the Michigan Voter Information Center on Michigan.gov.

For example, this is mine:

Continue Reading →

Nov032012

You Have My Vote - 2012 Edition

Voting tends to be a secretive thing; it's our right as Americans to be able to cast a vote for an elected official, proposal, or otherwise, without fear or harm from our decisions. However, I feel that I am in a position where I can openly share my choices on how I plan to vote. Feel free to share your opinions in the comments, or even try to persuade me in these final days, I'm open to any constructive comments.

With that said, here is my voting plan:

Continue Reading →

Oct132012

Recipe: Tomato Salsa Vinaigrette

It's been a while since I've posted a recipe, and I decided to experiment with something new that I thought would be worthy to post. Today, I made my first vinaigrette:

Continue Reading →

Oct092012

Remove All (iTunes Match) Music from iOS

The other day, I was trying to cleanup my iPhone and I wanted to remove all iTunes Match music so I could start a fresh library. It took a bit of digging, and it was a bit unintuitive, but I found how to remove it all:

  1. In Settings, go to General:

Continue Reading →

Oct032012

Remove Google Calendar Default Alerts in OS X Calendar

If you use Google Calendar with OS X Lion or Mountain Lion's Calendar application, you may have noticed your default event alerts showing odd times. For example, when I create a new event, Calendar adds a default alert of 1150 minutes in addition to the Calendar standard default alert of 15 minutes.

Continue Reading →

Oct012012

Install .NET 3.5 on Windows 8

If you're having troubles installing .NET 3.5 on to Windows 8, here's a quick tip that may solve your problem.

Make sure your Windows 8 installer disc is in your drive (or mounted/copied somewhere), then from an elevated command prompt run this command:

Continue Reading →

Sep222012

Coffee Times: Commence!

I love coffee. It's something that I've almost always been fond of, even as a child. However, in my adult life, I've come to appreciate some of the finer aspects of it: the beans, the preparation, and the drinking style.

My favorite preparation style of coffee is the AeroPress, as I've mentioned before; lately, I've been enjoying espresso with just a dash of cream.

Continue Reading →

Aug282012

Return a 500 Error in ASP.NET MVC

A good question came up today that I couldn't answer immediately: how do you return a 500 Server Error (or any other HTTP Status Code) from ASP.NET MVC?

Thankfully, it's extremely simple; all you have to do is return a new HttpStatusCodeResult with whatever code you'd like:

Continue Reading →