Surface Pro 2 Wireless Adapter Fixed

Friday, December 27, 2013

I recently purchased a Microsoft Surface Pro 2, a touch-screen tablet running Windows 8.1. Overall, I like the power of a full operating system in the relatively small form factor of the tablet but it is not without its problems. The most annoying, so far, was the propensity for the wireless adapter to sporadically stop working. I finally figured out how to "fix" it.


Bootstrap Viewport Detect - jQuery Plugin

no comments
Wednesday, December 18, 2013

I've been using the Bootstrap front-end framework for a little while now and have been enjoying the simplicity with which I can construct clean (if generic) looking web sites. Its native responsive design is fantastic but not perfect. I encountered a problem in which the display of my interface looked good in the "large", "medium" and "x-small" viewports but looked poor in the "small" viewport. My intended solution involved more than could be accomplished with Bootstrap's extremely useful .visible-* and .hidden-* classes and so I needed a way, in javascript, to determine the current viewport. To this end I wrote this small jQuery plugin. It works like a jQuery utility function and can either simply return the current viewport, or call a function whenever the viewport changes.

Useage:

First, include the jQuery library (which you're already doing), then include the viewportDetect library.

<script type="text/javascript" src="jQuery.js"></script> 
<script type="text/javascript" src="viewportDetect.js"></script> 

Whenever you want to know what the current viewport is, just query the function like so. It will return a short string corresponding to the current viewport ("xs", "sm", "md", or "lg");

var viewport = $.viewportDetect();

A more useful approach is to register a callback function. Whenever the viewport changes the callback function will be called. In addition to the current viewport the function also receives the previous viewport. It may sometimes be useful to know if the viewport is expanding or contracting.

$.viewportDetect(function (currentViewport, previousViewport) {
    alert("viewport changed from " + previousViewport+ " to " + currentViewport);
});

Broken Foot 4 - Six Week Update

Thursday, October 3, 2013

I stopped by the orthopedist's office today so that they could take some x-rays of my foot and evaluate how well the bone's been healing.


Broken Foot 3 - Two Week Update

no comments
Tuesday, September 3, 2013

It's been two weeks since I temporarily ruined my life.


Broken Foot 2 - Orthopedics

no comments
Thursday, August 22, 2013

In which I travel to Edina to have a specialist tell me how badly I've ruined my autumn.


Broken Foot

no comments
Tuesday, August 20, 2013

At 23:00 on Tuesday, August 20, 2013 I fell down [all] the basement stairs and ruined my autumn by breaking my foot.


Nokomis Kayaking

no comments
Tuesday, August 13, 2013

In what would turn out to be my final kayaking trip of the year I paddled my boat around the perimeter of Lake Nokomis - and discovered a surprise!


Mississippi Kayaking

no comments
Friday, August 9, 2013

My kayak is on the long side (15') and, as such, is better suited to large, open waters (lakes and oceans) but that didn't prevent me from sticking it in the fast waters of the mighty Mississippi.


Hyland Lake Kayaking

no comments
Sunday, August 4, 2013

I hauled the boat down to Hyland Lake in Bloomington. I'd walked around this lake a number of times over the years. This is the first time I paddled through it.


Cedar Lake Kayaking

Wednesday, July 31, 2013

For my second jaunt in the new kayak I exploded half of Cedar Lake.


First Outing

no comments
Sunday, July 28, 2013

For the first outing I decided to take my new kayak out to Lake Harriet and paddle it around for a while.


New Kayak

no comments
Wednesday, July 24, 2013

I spent most of the spring and early summer looking at kayaks. I finally found one that I liked enough to buy.


Database Failure

no comments
Monday, June 24, 2013

I got back from a long weekend outdoor festival yesterday to discover that the city had suffered a massive storm, with numerous power outages which apparently caused a couple of the database files to become corrupt. If only my backup process hadn't stopped working six months ago...


Want more? Check out the Archives.