Monday, May 30, 2016

A new barbell

It's been exactly one year since my last weight training update.  I was stuck at a 212 lbs until a few months ago when I finally bought a new Olympic barbell.  It's black metal oxide and pretty sexy.  I also picked up some great steal Troy and IGX weights from Craigslist.  I've got about 600 lbs, which should last me a while.


You'll notice in my picture above that I covered the grips in electrical tape and scotch tape.  I added the electrical tape because the grip was far too aggressive, and even at 100 lbs it ripped into the fleshy bits of my hand; it was unusable.  Here's what it looked like up close:


The electrical tape is a bit too smooth so my grip doesn't feel very secure, but I haven't had the time to try anything else yet.  I might fill the grooves with something later.

The scotch tape is my fault.  I bought a power lifting bar instead of an Olympic bar, not knowing there was a difference, and the longer knurling cuts into my knees on the squat.  I use the tape to make it smoother.  However, I think this was the only 5 foot long Olympic-weight bar I could find, so I didn't really have a choice.

Before finding the nice weights on Craigstlist (which took a few months), I purchased some cast iron Weider weights from Big 5 Sports.  The first one I put on my bar immediately scratched it.  Always up for some experimentation, I decided to try and fix it, by:
  1. Removing the [excessively thick] paint using a chemical peal and a wire brush attached to my hand drill.
  2. Smoothing the inner circle using a grinding stone attached to my hand drill.
  3. Painting it black with canned spray paint.
Here is the result after the peal and grinding, beside the original.


In the end, it worked okay.  I didn't scratch my bar immediately, but wasn't even close to the smoothness of steal.  And the diameter of the inner holes were still about 2mm too large so the weights rattled.  I only used them once and it was not at all worth the effort.

And here's where I'm at in all my barbell exercises.
Deadlift: 239 lbs
Squat: 199 lbs
Standing Press: 99 lbs

Saturday, May 30, 2015

A heavier barbell

I have run out of weight plates and reached the limit of my barbell in the deadlift.


My deadlift is now at 212 lbs and I'll need new equipment to increase it!  While not super impressive, it's 50 lbs heavier than when I started.

And here's where I'm at in all my barbell exercises.
Deadlift: 212 lbs
Squat: 145 lbs
Standing Press: 82 lbs

Saturday, April 25, 2015

A better barbell

Let's start with the obvious: I'm cheap.  Or perhaps frugal.  And lazy; we shouldn't forget that.  I want to build some strength and don't want to bother driving to or paying for a gym, let alone waiting for equipment or listening to the awful music.  However, my standard weights and barbell pose a few problems:
  1. The weight plates are too small to do deadlifts, about 8 inches in diameter less than Olympic weights, so the bar lays too close to the floor. 
  2. It takes forever to change weight plates with the screw locking mechanism.
I have a history of hurting my back with squats and deadlifts at the gym.  The last time I tried them I was out of the gym for 3 months.  This time I'm following Starting Strength by Mark Rippetoe and, surprisingly, his advice and instructions are more cohesive and useful than the "training" I got at my last gym.  I highly recommend this if you plan to gain strength with free weights.

But my weights aren't the greatest.

To fix the height-off-the-ground problem, I built a simple platform using a single 4x4 (cut to 1 foot sections at Home Depot), a cheap rubber mat, a 3/4" x 1.5" piece of wood, and some scrap MDF:

 
This was a pretty simple project.  My only mistake was gluing the 4x4's together before screwing them to the MDF.  The glue seeped out and pooled on my workbench.  I made two of these:



These platforms work great and also help keep my deadlifts honest.  I can see if the bar inches forward during my lifts by their placement on the blocks.  If you read Starting Strength, Mark will tell you many times that there is a tendency to move the bar forward before, during, and after your lift, and I can see easily when this happens, prevent it, and learn to lift correctly.

In the picture above you'll also notice how I modified my bar.  First, I got Lock Jaw collars to replace the barbell screw locks.  These save me many valuable seconds in a workout set since I can take the lock off in about 1 second instead of 10.  While this is good, when changing weights they kept getting caught on the spiraling screw mechanism.  My solution, again too cheap to buy a better bar, was to cover it up with duct tape.  Now my weights move fairly smoothly and the bar looks bad ass.  As a bonus, there is less space between the bar and weights so there's less slop in their connection.  I'll soon be adding one or two more layers of duct tape to make this even smoother and create a better fit between the bars and the weights.

That's it.  A simple project, but it made a huge difference in my happiness working out with these weights.

Friday, September 5, 2014

What babies know

I've been postponing this post for a long time since I was expecting the list to grow.

There are many things a baby doesn't know, like how to walk, sing, and do long division.  Here is the list of things that my baby didn't know how to do which I wasn't expecting:

1. Sleep.  I kinda knew this one.  But my kid had to be taught how to sleep.  I suspect he would of learned on his own given more time, however.

2. See moving object.  When my son started to be able to see me, he could recognize faces.  If I was in front of him, he'd pay attention.  However, if I moved my head by a few inches, his eyes stayed affixed to my previous location for at least a second.  Once I stopped moving, he would notice out of the corner of his eye a face and then turn to my direction and look again.  It's like I didn't exist when moving, but once stopped a new me materialized.

3. Binocular vision.  This one was cool and it was exciting to see him change.  Even when my son could see me, he often only looked with one eye, or perhaps one eye first and then the other.  While one eye looked at me, the other was free to wander and see other things.  Over time, he learned to move both at the same time and converge on the me he wanted to see.  I don't know if he can see in stereo yet, but he can certainly judge distance.  And I suspect that he could have learned to use both eyes independently like a chameleon, but the advantages of stereopsis and binocular summation are too enticing.

4. Left/right independence.  When my son could first grab things, he used his right arm.  Then he tried his left.  I could see him intently trying to acquire the toy but every time he tried to move his left arm, the right one would go instead.  If his left hand was in the right position, his right hand would make a grasping motion.  It's like his brain had learned how to do a "grasp" but didn't know there was a "left grasp" vs. "right grasp" yet.  The little guy got it eventually; he did try really hard.

And that's it.  Everything else you'd expect.

My son never really cried until last week when he saw a baby cry and get lots of attention; now he does it frequently.  So I guess learning to cry is another one.

Monday, June 9, 2014

C# Resize Image / Fit Image

After spending a good 10 minutes trying to find a program that can batch resize images from the command line by someone that looks trustworthy (enough to install on a shared server), I gave up and decided to write my own.

Here is the code in case it helps anyone.  This is C# and it compiles for .NET 2.0.  You'll need to add The assembly reference System.Drawing to your project.
ResizeImage.exe <filename> <maxWidth> <maxHeight> 
For example, calling "ResizeImage.exe hello.jpg 100 100" will decrease the width of hello.jpg to be 100 pixel or less and the height to be 100 pixels or less, maintaining its aspect ratio.  If hello.jpg is already smaller than 100x100, there will be no change.

You can batch resize many images by using a batch file.  For example, this will resize all images in a specified directory, including all subdirectories:
@FOR /F "delims=" %%A IN ('dir %1 /s /b') DO @"ResizeImage.exe" "%%A" %2 %3

For example, "BatchResize.bat c:\images 100 100" will resize all images in c:\images\...


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

using System.IO;


namespace ResizeImage
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length != 3)
            {
                Console.WriteLine("Please use arguments: ResizeImage myfile.jpg 640 480");
                return;
            }
            string fileName = args[0];
            int width = int.Parse(args[1]);
            int height = int.Parse(args[2]);
            if( width <= 0 || height <= 0 )
            {
                Console.WriteLine("Invalid width ("+width+") or height ("+height+")");
                return;
            }
            try
            {
                System.IO.FileStream fs = new FileStream(fileName, FileMode.Open);
                Image originalImage = Image.FromStream(fs);
                fs.Close();
                Image resizedImage = ResizeImage(originalImage, width, height);
                if (resizedImage != null)
                {
                    originalImage = null;
                    resizedImage.Save(fileName);
                    Console.WriteLine("Converted: " + fileName);
                }
            }
            catch( System.IO.FileNotFoundException )
            {
                Console.WriteLine("File not found: " + fileName);
            }
            catch (System.Exception e)
            {
                Console.WriteLine("Exception: " + e.ToString());
            }
        }

        static Image ResizeImage(Image image, int maxWidth, int maxHeight)
        {
            // Get the image's original width and height
            int originalWidth = image.Width;
            int originalHeight = image.Height;

            // To preserve the aspect ratio
            float ratioX = (float)maxWidth / (float)originalWidth;
            float ratioY = (float)maxHeight / (float)originalHeight;
            float ratio = Math.Min(ratioX, ratioY);

            // New width and height based on aspect ratio
            int newWidth = (int)(originalWidth * ratio);
            int newHeight = (int)(originalHeight * ratio);
            if (newWidth >= originalWidth || newHeight >= originalHeight)
                return null;

            return (Image)(new Bitmap(image, new Size(newWidth, newHeight)));
        }
    }
}

Sunday, May 18, 2014

Schrödinger's Poo

Definition: the state of the interior of a child's diaper immediately before being changed, where it is in the quantum superposition of being both clean and poo-filled.

This deviation from my regular highbrow material should make it obvious that I recently had a child.

Tuesday, September 3, 2013

Phones are dangerous

Many people believe the ban of phones and other electronic devices on planes is a bit ridiculous.  I'm one of those people.  Apparently the flight attendant on American Airlines are as well.  On a domestic flight last night, as the airliner was landing and we were all in our seats with our electronic devices turned off, the flight attendant was using an AT&T branded American Airlines cell phone, possibly a Galaxy S3.  She was using an seat assignment app but also launching other apps until she heard me comment on her blatant disregard of her own instructions.

Airplanes fly through thunderstorms, radio waves, satellite communications, and all other sorts of radiation throughout each flight.  Cell phones work on planes, which means the radiation from cell phone towers can get through the hull regardless of whether or not cell phones are used.  The thought of an iPod messing with the sensitive equipment is a bit hard to believe.  Requesting that Kindles be turned off is just ridiculous, as its on state is no different than its off state when its wireless features are turned off.

The situation becomes more suspicious when you consider the different approaches by different airlines.  Some planes have WiFi onboard.  Some have a mini cell tower.  Over-the-ear headphones are banned on some airlines while ear buds are allowed.  iPod's cannot be used but the in-flight entertainment is fine.

I suspect there are three reasons for turning off cell phones:
1.  The cell phone network was not designed for phones to see more than a few cell phone towers and the communication protocol was not designed for rapid cell switching.
2.  Each cell in the cell phone network has limited capacity and allowing people to call/text when they land or at the airport could conceivably prevent the pilot from using the network if their radio dies.
3.  It's safer for the airline to tell people to turn off electronics if their could be a problem, then to crash and be the first to determine there is actually a problem.

I also suspect there are reasons for restricting music:  It limits the ability to hear important instructions.

I could even make a stretch and say hard objects like laptops/tablets would be physically dangerous in a crash and should be stowed when crashes are most likely.

Maybe it's just easier to create a strict ban of all electronics.  But creating a false reason just engenders disbelief and resentment.