DateJs - First and Last Day of Previous Month

by Bill Beckelman 15. June 2011 19:17
If you have ever had the need to do some serious date manipulation in JavaScript, I sure hope you found date.js. I don’t think there is anything I have ever tried to do with dates in JavaScript that is hasn’t handled. Tonight I needed to get the first and last day of the previous month. This is what... [More]

Tags:

JavaScript

Setup Apache Solr on Windows with Jetty Running as a Service via NSSM

by Bill Beckelman 22. February 2011 09:49
*This works on my machine. In no way do I know what I am doing. Please post questions to http://stackoverflow.com. Initial Solr Setup 1. Install the latest Java JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html. Make sure to select 64bit version if you need it. &#... [More]

Tags:

solr | jetty

Create and Remove Remote Git Branches

by Bill Beckelman 14. December 2010 18:36
I use local branches all the time when working on new features and such. If I work on a branch for more than a few hours, I really like to push it to GitHub as a backup just in case. Since I have to look up how to create and and remove remote branches every time it seems, I am guessing you do as wel... [More]

Tags:

Git

Console2 and Cygwin Bash

by Bill Beckelman 14. September 2010 07:46
In the Tekpub Sinatra series(which I highly recommend) Rob Connery sets up Console2 with a Cygwin bash tab. I set this up at the time, but have since had to build a new machine. So you and I don’t have to figure out how to do this in the future, I figured I would put it here. 1. Open Console2 and c... [More]

Tags:

Cygwin

Git Cherry Pick

by Bill Beckelman 28. July 2010 19:02
My GIT use is for my own personal projects, so I often don’t need many of its features. I used a new one tonight that could not of been easier: cherry-picking. I needed one small commit that I made on my working branch in my master branch. How to do it though? This article was all I needed.

Tags:

Git

Setup a Git Alias for Rolling Back Any Pending Changes

by Bill Beckelman 21. July 2010 22:36
I have a hard time remembering git reset --hard HEAD for some reason when I want to rollback changes to the last commit in my working branch when I go down a path that doesn’t work. Mercurial has an easy to remember command for this hg rollback. Git has a feature called Alias though that you can use... [More]

Tags:

Git

Get the text of a Dropdown’s Selected Item Using jQuery

by Bill Beckelman 5. April 2010 08:03
I always have to look this one up for some reason, so I thought I would put it here to make that easier: $("#Dropdown option:selected").text(); I initially found the answer on this Stackoverflow post.

Tags:

jQuery

Custom ASP.NET MVC Authorization Attribute For Ajax Requests

by Bill Beckelman 1. April 2010 14:34
One issue that I have had for a while that I think I finally solved was what to do with unauthorized jQuery Ajax requests in my ASP.NET MVC application. I finally wrote a custom authorization attribute to take care of the situation. I ran into two issues while constructing the attribute; the first ... [More]

Send Email To a Drop Folder in ASP.NET or ASP.NET MVC

by Bill Beckelman 31. March 2010 13:10
Just a quick tip that I picked up somewhere a while back. Just add the code below to your web config and you don’t have to worry about sending out test emails. It will just drop a .eml file to the folder you designate. You can then open the file and inspect the email with just about any email client... [More]

Policy Signing in C# for Streaming Private Content From Amazon CloudFront

by Bill Beckelman 30. March 2010 12:29
On March 29, 2010 Amazon announced public availability of CloudFront’s private content streaming feature. When I first looked at Amazon’s CloudFront offering a few weeks ago, this feature was one I knew I needed and it wasn’t available so I didn’t look much further. With this announcement, I decided... [More]

Tags:

ASP.NET MVC | ASP.NET | AWS


About Me

I live and work in Salt Lake City, Utah. My background is in aviation. I have a degree in Aeronautical Science from Embry-Riddle Aeronautical University in Prescott, AZ. I have worked as a commercial airline pilot and most recently as a technical advisor for a charter airline.