Archives: February 2009



Prettify Code Samples

Posted by ryochan7 on February 22nd, 2009  •  View Comments  • 
Tags: blog

I have just made a tiny change to the CSS stylesheet for this site and the indentETree function in markdown. I might want to post code samples here in the future but there was nothing set up for making the code samples stand out; this was evident in my last blog update post when I posted the line that I use to embed YouTube videos. What I did was minimal but it will be enough for now. Let's see if this works.

def validateURL (full_url, video_item=True):
    """Make sure the url passed is in a valid form and return a video parser object"""
    if not isinstance (full_url, str):
        raise TypeError ("Argument must be a string")

    youtube_video = None

    # Use each parser regular expression to determine what type of URL was given
    for parser in video_parser_list:
        match = parser.const_video_url_re.match (full_url)
        if match:
            page_parser = parser (video_id = match.group (1))
            if video_item:
                youtube_video = VideoItem (page_parser)
            else:
                return page_parser
            break
    # An invalid URL was given. Return None
    if not youtube_video:
        return None

    return youtube_video

P90X R2 Week 7 Update

Posted by ryochan7 on February 21st, 2009  •  View Comments  • 
Tags: p90x
Updated on February 22nd, 2009

It is a bit early but I will post my week 7 update while I have the time. This week has been the worst of this entire round yet. I missed Yoga X and Legs and Back this week. I also didn't do a single session of Cardio X either. Things keep getting more chaotic and progress seems to be coming more slowly lately. Due to everything that has happened, I have had to make a difficult decision that I already regret. I will no longer be doing doubles during phase 3 of P90X this round. It is one thing that I can do to make sure that I don't stop P90X all together.

Next week is a recovery week so I might not even post an update next week unless something significant happens.

Macho Man - Remember Me

Posted by ryochan7 on February 17th, 2009  •  View Comments  • 
Tags: random

Got nothing going on now.

P90X R2 Week 6 Update

Posted by ryochan7 on February 15th, 2009  •  View Comments  • 
Tags: p90x

Nothing has really happened this last week. I am starting to lose my motivation to see this through. I feel that I have too much going on right now and I am not sure that I can keep this up. As far as progress goes, I took some measurements this last week and I have some decent improvements. My waist is now under 31 inches, both of my arms are at 13 inches, and my body fat percentage is below 9.6%.

My workouts have been about the same with some minor improvements. The main exception is that I am now a lot better at doing one arm push-ups. I admit that I am still doing them on my knees but I was able to significantly improve my rep count (from 6 in week 5 to 10 this last week) and I have gotten the form down so that I can keep myself balanced.

That is about it for this week.

YouTubed-2x 2009.02.09

Posted by ryochan7 on February 9th, 2009  •  View Comments  • 
Tags: projects, youtubed-2x

I have to release this version prematurely so I can focus on my studies. This release is the most significant update for this project in a long time. There are plenty of changes that make it a much more worthwhile application; I know that I am already finding it more useful.

  • GUI no longer uses a static queue. New downloads can be added and started while other downloads are in progress
  • GUI module and contained classes have been rewritten
  • Output videos now have padding added to preserve the original aspect ratio of the input video file
  • Mpeg4 AVI file output support has been added
  • Mpeg4 AVI file output is now the default as that export option is available in most distro packages for ffmpeg. Xvid AVI file output is still available and is still the recommended option if you have an ffmpeg package installed that supports encoding to Xvid (ex. Medibuntu package).
  • GiantBomb.com parser added. Any page that has a GiantBomb video should work as the parser is very lenient

P90X R2 Week 4 and 5 Update

Posted by ryochan7 on February 8th, 2009  •  View Comments  • 
Tags: p90x

I can't seem to find the time to update my progress on a weekly basis. Oh well. Anyway, week 4 was ok. I started eating more carbs mid-week and I did seem to get an energy boost afterwards.

Week 5 was the start of Phase 2 and the start of doubles sessions. Having to add a roughly 43 minute workout three times a week onto the normal P90X schedule was a problematic time commitment. I feel better for doing it though and it seems like I got more progress this last week than I have throughout the rest of this round so far. I have been sore throughout this last week and I have been getting more tone. I am changing my supplements around a little bit as well. I am now using a different multivitamin, specifically GNC Mega Men Sport, as opposed to using basically generic Target branded Men's One-A-Day; I wasn't really into taking supplements last round but I am getting more into trying out supplements this round.

There isn't much more progress to report on. I have my day 30 pics on my Flickr account but I don't know when I will have a video up.

http://flickr.com/photos/28691250@N04/sets/72157612158961029/


« Jan. 2009
March 2009 »