Month: May 2013

28 Day Ab Workout Day 7 – 12

28 Day Ab Workout Day 7 – 12

This is a rest day so take advantage.  I went and played 9 holes of golf, but didn’t do much else.

The next 21 days I’ll write about periodically, but not every day.  As of today I’m halfway through the 2nd week.  I’m not sore like last week in my upper body, so that’s good.  I’m thinking each week will get easier since this week is already easier than last week.

Weight: 192.5

28 Day Ab Workout – Day 6

28 Day Ab Workout – Day 6

Felt pretty good on day 6, but not afterwards.  This is probably the hardest of all the workouts.  My abs were still sore 4 days after the workout.

  • Barbell Deadlift – 3 sets of 10
  • Box Jumb – 3 sets of 10
  • Barbell Power Clean – 3 sets of 10
  • Standard Press Up – 3 sets of 10
  • Standard Burpee with Jump at the Top – 2 sets of 10
  • Assisted Pull up – 2 sets of 10
  • Plank – Hold as long as you can
Windows 8 Phone Databinding

Windows 8 Phone Databinding

I recently began developing an Windows 8 Phone App.  I’m developing the app with Xaml and C#, using the MVVM development pattern.  I came across a pretty cool class that implements INotifyPropertyChanged that’s built for the .NET 4.5 Framework.  The class is simply called BindableBase, and I’m really liking it so far. The class is implemented as follows:

using System; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; namespace MVVM { /// &<summary&> /// Implementation of &<see cref=&quot;INotifyPropertyChanged&quot;/&> to simplify models. /// &</summary&> [Windows.Foundation.Metadata.WebHostHidden] publicabstractclass BindableBase : INotifyPropertyChanged { publicevent PropertyChangedEventHandler PropertyChanged; protectedbool SetProperty<T>(ref T storage, T value, [CallerMemberName] String propertyName =null) { if (object.Equals(storage, value)) returnfalse; storage = value; this.OnPropertyChanged(propertyName); returntrue; } protectedvoid OnPropertyChanged([CallerMemberName] string propertyName =null) { var eventHandler =this.PropertyChanged; if (eventHandler !=null) { if (Deployment.Current.Dispatcher.CheckAccess()) { eventHandler(this, new PropertyChangedEventArgs(propertyName)); } else { Deployment.Current.Dispatcher.BeginInvoke(() =&gt; { eventHandler(this, new PropertyChangedEventArgs(propertyName)); }); } } } } }

To invoke the PropertyChanged Event, simply call the SetProperty method. It’s nice because you can do it all in one line of code in the setter.

private IEnumerable<SyndicationItem> _syndicationItems; public IEnumerable<SyndicationItem> SyndicationItems { get { return _syndicationItems; } set { SetProperty(ref _syndicationItems, value); } }

28 Day Ab Workout – Day 5

28 Day Ab Workout – Day 5

Felt pretty good this morning and still a little sore in the upper body.  Before I started this program I would lift weights, but mostly did the bench and curls.  These workouts are working a lot of different muscles I normally wouldn’t workout.  Here’s the day 5 workout plan:

  • Arnold Press – 3 sets of 10
  • Standing Side Raise – 3 sets of 10
  • Barbell Upright Row – 3 sets of 10
  • Barbell Deep Squat – 2 sets of 10
  • Walking Lunge With Dumbbells – 2 sets of 10
  • Dumbbell Step Up – 2 sets of 10
  • Russian Twist – Perform to failure
  • Side Jackknife – Perform each side to failure

Arms and legs feel fatigued after the workout.  There is no rest day tomorrow, so hopefully I’ll be ready to go and not too sore.

28 Day Ab Workout – Day 4

28 Day Ab Workout – Day 4

Day 4 is a rest day, but I still went and did some cardio for 30 minutes on the elliptical.  I also went on about a 20 minute walk over the lunch hour.  Upper body is still sore, and not sure from what day.

28 Day Ab Workout – Day 3

28 Day Ab Workout – Day 3

When I woke up today I was still a little sore from day 1.  Not too bad though.  Day 3 consisted of the following:

  • Dumbbell Bench Press – 3 sets of 10 reps
  • Deep press-up – 3 sets of 10 reps
  • Dumbbell Press Fly – 3 sets of 10 reps
  • Parallel bar tricep dip – 2 sets of 15 reps
  • Close-grip bench press – 2 sets of 15 reps
  • Lying leg drop – Until you pass out

After this I went on the elliptical for 10 minutes.  I then went and did 10 butterfly curls, and a big dude was watching me do them.  He then told me was filming a dvd on Saturday for his workout program.  He showed me a few exercises for my lats, and then I was completely exhausted after that.  My arms and chest are still humming 4 hours later!

Weight 193

28 Day Ab Workout – Day 2

28 Day Ab Workout – Day 2

Today is a rest day.  Good thing too because I’m very sore from the workout yesterday.  I also slept really well last night after crashing at about 8:45.  Looking forward to day #3!

28 Day Ab Workout – Day 1

28 Day Ab Workout – Day 1

Today I started on the Men’s Fitness 28 day Ab program.  The program can be found at this link:  http://www.menshealth.co.uk/building-muscle/fast/six-pack-workout-programme

Day 1 consists of the following exercises:

  • 3 sets of 10 chin ups
  • 3 sets of 10 barbell chin ups
  • 3 sets of 10 lat pull down
  • 2 sets of 10 standing curl
  • 2 sets of 12 dumb bell hammer curl
  • front plank, hold until you can’t breathe

The chin ups were tough.  I had to add an extra 90 lbs. of support on the last set of 10.  The barbell chin ups were pretty exhausting, and my body really started to feel it.

After the entire workout my arms were like jelly, and they still feel a little tired 4 hours later.  It was a great first workout, and a great shock to my body for the first day.

Weight: 194 lbs.

Silverlight Binding with the Dynamic Data Type

Silverlight Binding with the Dynamic Data Type

I thought I would share my first experience with the .NET dynamic data type while doing some Silverlight binding.

The scenario is I have a View, ViewModel and Model project. My Model project gets data from a WCF service, and sets the appropriate properties in the ViewModel. There’s an ObservableCollection property in the ViewModel bound to a DataGrid in the View.

The data in the ObservableCollection can be filtered through a search within the application. I want a Label control to display the results of the search, such as “Your search returned 34 results”. So I did something crazy! Binding the updated ObservableCollection to the Label. This could have been done with a separate property, being updated from the set of the ObservableCollection, but that approach was too boring.

So you may ask, how does a Label element bound to an ObservableCollection display text? Through the magic of binding converters…

XAML:

xmlns:conversion="clr-namespace:SampleBuddy"

<controls:ChildWindow.Resources>


<conversion:CollectionConverter x:Key=”collectionConversion”></conversion:CollectionConverter>

</controls:ChildWindow.Resources>

<sdk:Label Content=”{Binding WorkOrders, Converter={StaticResource collectionConversion}}” Foreground=”Blue” Cursor=”Hand”></sdk:Label>

WorkOrders is the ObservableCollection property from the ViewModel class, which implements INotifyPropertyChanged.

Converter Class:

namespace SampleBuddy

{

public class CollectionConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
string text = “Your search returned “;
dynamic collection = value;
if (collection != null)
{
text += collection.Count.ToString() + ” results”;
}

return text;

}

public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

{return value;}

}

}

To better learn how to implement the converter, check out this article.

So I was able to bind to an existing property, and update the display whenever the collection changes from the ViewModel. Since I couldn’t cast the object, because it was referenced from the ViewModel and not the View, the dynamic data type came in very handy.

Side Bet Version 1.5 Released

Side Bet Version 1.5 Released

The latest Side Bet for Windows Phone release now has a list of golf betting games to browse through before you play your round.  From the main screen choose the “Betting Games” option, and then you will be presented with a list of games you can play.  Side Bet supports all golf betting games because the point system is designed generically.  The list of games is there to simply educate users of the app on how to play the different betting games.  You can download the latest update here.  Enjoy!