My weight loss journey so far. December 27, 2011 No Comments

I am 28 y/o and 5ft 11in.

I weighed myself in August and I had finally crossed the 300lb mark (305lbs at 5ft 11in) for the first time in my life.  I had flirted with that weight for several years, but never crossed it to my knowledge.  But, I never was a fan of weighing myself because I didn’t want to know the truth. This is what I changed since then and it seems to be working for me:

  • I Started a well-defined exercise program in early September (Power90). I have tons more energy. I’ve dropped a chunk of weight. I am more flexible. And I’ve built a little muscle.
  • I cut out ALL soda and calorie-dense drinks that provide no nutrients. I don’t even drink vitamin water. I only drink orange juice, milk, green tea, and tons and tons of normal water. I decided that I would rather eat my calories and enjoy them that way rather than drink them. (This is also why Slim Fast didn’t work for me).
  • I count ALL my calories in a Google spreadsheet, but I don’t deprive myself of foods that I enjoy. I need this to be a lifestyle change for me and not just a quick diet. So, I need to make realistic changes. I knew cutting out all the food I enjoy would be a surefire way for me to fail. I just control my portions better and make smarter decisions.
  • I use boredom as an excuse to exercise, and I try not to avoid small opportunities to burn a few extra calories (like taking the stairs instead of the elevator).
  • I started following a subReddit called /r/loseit

Also, I originally changed my eating schedule. I ate 3 to 5 times per day to help keep constant energy throughout the day and to keep my metabolism running. I would always eat breakfast, even if it’s just a granola and nut bar. I use this opportunity to also take a multi-vitamin. And, I stop eating at least 3 hours before bed. For the past 10 years or so, I got into a bad habit of only eating 1 or 2 meals a day (never breakfast). That loaded all of my calories into a small timeframe. And it was usually late. This + the soda seem to be the big factors in what caused me to gain weight.

I finished my first round of Power90 on December 4th, 2011.  I weighed in that morning at 274.2 for a loss of 30.8lbs in 3 months. And, I have gained muscle mass. I still have a long way to go, but I am happy with my progress so far (even though it isn’t as visible as I would like).

I have to wear a belt with all of the pants I own or they will fall off (I can take off my pants without unbuttoning them). And, I had to poke a new hole in my belt. I don’t dare buy new clothes right now because I plan to continue my journey. I can actually fit comfortably into my 10-year-old high school workout clothes. But, I don’t see a huge difference in the mirror.

I started out following the P90 program exactly as it was written. After I got into the 3-4 exercises, I started to REALLY get bored with the routine. So, I started subbing in a stationary bike for the cardio. I bought one with pre-programmed exercise routines and adjustable difficulty. I have gotten to the point where I can do a 40 minute ride on the 12th (of 16) difficulty setting and an uphill circuit.
I have been taking the recommended multivitamin to help the recovery process. But, I have also been taking a fish-oil supplement for the past month or so because I do not eat a lot of fish or other sources of Omega 3/6/9 fatty acids.
I am also thinking about starting training for a 5k. There is a 5k race on my birthday in April. It would be nice to be able to do that.

I have been off Power90 for 22 days, but I have tried to create my own routine following many of the same workouts.  It hasn’t been nearly as effective without the pacing and the discipline the videos provide.  So, I think I am going to restart the videos soon and stick with them strictly again.  My last weigh-in was on December 22nd at 271.2 lbs.  A total loss so far of 33.8 lbs.

Bookmark and Share

The 300 million dollar button – UI design October 7, 2011 No Comments

A case that illustrates the potential value from (seemingly) small user interface decisions.

http://www.uie.com/articles/three_hund_million_button/

Bookmark and Share

JavaScript and HTML5 canvas-based heatmaps July 22, 2011 No Comments

This is a very slick use of JavaScript and HTML 5 to generate dynamic heatmaps.

About heatmap.js
heatmap.js is a JavaScript library that can be used to generate web heatmaps with the html5canvas element based on your data. Heatmap instances contain a store in order to colorize the heatmap based on relative data, which means if you’re adding only a single datapoint to the store it will be displayed as the hottest(red) spot, then adding another point with a higher count, it will dynamically recalculate. The heatmaps are fully customizable – you’re welcome to choose your own color gradient, change its opacity, datapoint radius and many more. The library is dual-licensed under the MIT and the Beerware license, feel free to use it in your projects.

http://www.patrick-wied.at/static/heatmapjs/

Bookmark and Share

Web DPI Scaling in legacy Internet Explorer July 16, 2011 No Comments

When dealing with Web sites or applications that need to be highly accessible, you can often get tossed development curve balls where you are forced to add fixes for obscure problems.

Users with poor vision will sometimes change the DPI scaling feature in Windows  from the default 96 dpi to something higher.  With older versions of Internet Explorer, this can be a problem because IE would scale the viewport font along with the Windows DPI.  And, that could really blow your design out of the water – even more than a user with a custom defined stylesheet.   This behavior was only observable in IE on Windows.  Other browsers scaled fine.  This post guided me in the right direction http://www.williamkolean.com/williamblog/?p=18

I came up with a way to fix the problem.  But, it has some shortcomings I will describe after the code.

I use a jQuery font size switcher to allow the user to change the font size in the page.  I wanted each of those options to scale with DPI.  You can see in the code below that there are 4 CSS selectors defined inside a conditional comment that only targets IE < 8.  These CSS statements use a proprietary function called “expression” that can be used to calculate values dynamically (yes, there are pitfalls here – see below).  The expression functions below also utilize the screen object to determine the screen DPI.  The expression scales the font back down in proportion to the default 96 DPI and to the proportion I want the font scaled from the default.  I like my default and small font to be 62.5% of normal so that 1em is approx 10 px.

<!--[if lt IE 8]>
<style type="text/css">
body {font-size: expression( screen.deviceXDPI > 96 ? ((1 / (screen.deviceXDPI / 96) * 100) * 0.625 ) + '%' : '');}
body.smallFont {font-size: expression( screen.deviceXDPI > 96 ? ((1 / (screen.deviceXDPI / 96) * 100) * 0.625 ) + '%' : '') !important;}
body.medFont {font-size: expression( screen.deviceXDPI > 96 ? ((1 / (screen.deviceXDPI / 96) * 100) * 0.675 ) + '%' : '') !important;}
body.largeFont {font-size: expression( screen.deviceXDPI > 96 ? ((1 / (screen.deviceXDPI / 96) * 100) *0.75 ) + '%' : '') !important;}
</style>
<![endif]-->

This seemed to work well in my testing and no one complained since then.  However, you should be warned there are some serious issues with using the expression statement.

If you run into a similar problem, this is a possible solution.  But, you need to determine how much of a performance impact this will have on your site and whether that is an acceptable performance degradation.
If you have a better method of scaling CSS with DPI increases in older versions of IE, post a comment or toss me an email.
Bookmark and Share

Configuring IIS after .Net Framework Installation May 19, 2011 No Comments

You may receive the following errors when attempting to open a web application solution in Visual Studio 2010 if IIS was installed and/or configured afterward:

  • “Unable to create the virtual directory. Unable to acces the IIS metabase. You do not have sufficient privilege to access IIS websites on your machine.
  • “ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly

This can happen if you install IIS after the .Net Framework.  So, not all components may be installed or configured correctly.  This happened to me because I was given a new work machine with a fresh (generic) IT disk image, which had the .Net framework installed but not IIS or development tools.  So, I suspect many other people may share this use case.

The steps on resolving these issues can be found here:  http://www.devcurry.com/2010/11/resolving-aspnet-40-has-not-been.html.  I had to complete all of the steps listed to fix my most recent install.

32-bit/64-bit Application Pools

You may also get the following error (as I did) when attempting to run an application with 32-bit assemblies under a new configuration of IIS and ASP.Net with 64-bit Windows.

  • BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”

Solution:

“If you try to run 32-bit applications on IIS7 (and/or 64-bit OS machine) you will get the same error. So, from the IIS7 right click on the applications’ application pool and go to “advanced settings” and change “Enable 32-Bit Applications” to “TRUE”.

Restart your Website and it should work.”

This solution was found on Stack Overflow

 

Bookmark and Share