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:
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
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:
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:
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:
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:
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.
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:
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.
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: