Sunday, October 30, 2011

P90X - Starting over

Well, I didn't make it all the way through. Managed to hurt my knee somehow, enough that I couldn't really put any weight on it (makes it hard to do lunges or yoga...). Then I got sick. So a week and a half off, figured I'd just give it a rest.

Yesterday (Saturday the 29th) I started day one over again. I have noticed that I am still sore afterwards, but the exercises didn't seem quite so difficult and I'm not as sore as my original day 1. So here's to me thinking I've built up some muscle strength which is making it easier. The second round I did have the attempt a push up and just collapse on my face into the carpet, so that's something. When I weighed myself on Friday it was 242.2. Here's hoping to get that down to the 220 range.

Also, I signed up for an account on Fitocracy ( www.fitocracy.com ). An interesting site that you log your workouts, and it gives you points. Having done some bench presses this week (trying to build up a bit of strength before the chin/pull up & push up routine that was yesterday) I managed to hit level 2. Logging the P90X routine jumped me straight from a level 2 to a level 4. I'll be ready to stop grinding on these sewer rats pretty quickly if I'm able to keep this up.

Almost to tray 10

Well, here I sit. Tray ten starts this Wednesday (Nov 2nd), which I will need to take a trip to the dentist to pick up some more trays. That's almost the halfway point (there's 19 trays total), so I think I'm doing pretty good.

I have noticed with tray 8 and 9 though that instead of being in pain for a day after they are first put in, I'm in pain for about 3 days. Like I mentioned, I think that's due to more of the angle positioning.

This pain isn't just related to the front teeth either, I'm feeling it more in my molars as well. O well, 20 more weeks and some change, then I'll be able to have these attachments taken off, stop speaking with a slight lisp, and be able to feel my teeth again. Yipee!

Thursday, October 20, 2011

Submit Button Double Click

So I was running into an issue where a user was multiclicking a button on a webform. This hasn't caused problems in the past, but this form was submitting to a payment vendor, and with the delay was actually causing a double post.

Trying to think if a good way to disable the button on click, but still do the post back, I Googled around, found a solution, then modified it just a bit to work for my situation.

So on the page I have in the page directive, AutoEventWireup="true", and the element:


The OnClick event is defined as normal with:
protected void btnSubmit_Click(object o, EventArgs e)
{
//Code here
}

So I just added the method:
protected override void OnInit(EventArgs e)
{
this.btnSubmit.Attributes.Add("onclick", "javascript:" +
"document.getElementById('" + this.btnSubmit.ClientID + "').disabled=true;" +
this.GetPostBackEventReference(this.btnSubmit));

base.OnInit(e);
}

This add's the javascript to disable the button on click, and still causes the postback element to happen. Thus submitting the payment information to the third party payment processor, and prevents the user from multiclicking the button.

Well, I guess they can still multiclick it, it's just not going to do anything after the first click.

Wednesday, October 19, 2011

Enabling CAPTCHA for SiteFinity blog posts

Spent over an hour searching how to do this, found this blog post by Gabe Sumner. Then spent an hour downloading the extended controls and enabling CAPTCHA.  Cut all the spam for the blog posts and was extremely easy.

Enabling CAPTCHA on a SiteFinity Blog

Thank you Gabe!

Tray 9

Well, today is the first day of tray 9. Last set of tray's I have at home, and in two weeks I have a check in scheduled with my dentist along with picking up new trays. After about set 6 or so they're getting more and more uncomfortable on the first day. Hard to just click in. Think this is because it's starting to adjust the the angle of my teeth so that instead of coming together like (as a view of the sides of my molars)
\\ //
// \\

they come together more like
|| ||
|| ||

I'm definitely ready for this process to be over. 19 trays total, I'm about half way through.

Monday, October 3, 2011

Apathy

I could take it or leave it.

Have a shirt that says that, and I'm kinda feeling it. In regards to P90X at least.

I started out super awesome. On a program that is designed to run for 13 weeks with activities 7 days a week, the 7th day being a rest or stretch program, I was hitting 6 of those days activities. Got that for 3 weeks straight. The fourth week is a recovery week, and the schedule changes a bit. I hit 4 workouts that week. Then the routine flips back to a steady workout. Hit 6 workouts the first week, 3 the next, and I think I only got one workout in this past week. I think if I follow the original schedule, this puts me back into a recovery week.

I'm not sure where I'm going with this, but I feel the need to post it. I originally started this with the hopes that by putting it on the internet, I would feel some liability or responsibility to keep to the program. Right now, I'm not feeling it...