Starting Strength, Week 3

Standard

I have successfully completed week 3! Quite happy with that indeed. I’m writing this post part way into week 4, unfortunately the 75kg bench press was too heavy for me today and I couldn’t complete the last set (only got 3 reps, before getting spotter’s assistance). I rested well before the last set but just couldn’t power through it. Because of this, I’ve decided to cut the assistance exercises until I get back on that linear progression train (I was greedy putting them in, anyway).

On a positive note, all other lifts have been increasing. And I can now do 3 unassisted chin-ups, which isn’t bad for an overweight guy 96kg at 5’9. My battle plan is continue this strength training until I’ve reached my goals (60kg Overhead-Press, 100 kg Bench, 120kg Squat and 140kg Deadlift).

Starting Strength, Week 3

 

Advertisements

Clean Up File Names Via Python

python_rename_CK
Standard

Today I would like to share a tiny script that I use to tidy my folders. As an example, I am generally not interested in the year the film was made e.g. BladeRunner(1982) and prefer it listed as BladeRunner in my films directory. This script will do just that, modify the file names of files, without changing the internal contents. Here is an example of the script in action:

python_rename_CK That definitely looks better, to me at least. Here’s a run-down of what just happened and how:

  1. ls – displays the basic (non-hidden) contents of a folder
  2. python rename_CK.py && ls – This runs the python script on the folder it is placed in. For me, it was my working folder i.e. ~/Documents/…/brackets_backup then it uses && to run multiple command on line line, followed by ls to view the results
  3. Results displayed

The python script can be found here: https://github.com/C-Kenny/batch_file_renamer_python


Future Plans:

  • Add a recursive modifier, so that it is able to go inside various sub-folders and continue the good work
  • Rewrite in C for fun
  • Make good use of the script via ssh

Body Dysmorphia

Dody Dysmorphia
Standard

As someone training for strength and loosely following the Starting Strength routine (which doesn’t involve a lot of arm isolation exercises, but the triceps, shoulders and biceps all do get heavily worked via the compound exercises), I haven’t really made the conscious effort to focus on arm size. In-fact, I often see guys at the gym hammering curls for hours on end and wonder to myself if I should change my routine and join in!

I’ve found that the Starting Strength routine has enabled my body to build muscle proportionately, albeit especially legs. Because of this, I’ve always viewed my arms as ‘small’ and when I compare myself to some people’s amazing physiques online, they are. It wasn’t until I recently attended a party and was snapped into a picture that I got a different perspective.

Dody Dysmorphia

That’s me not featuring the black eclipse

Note, I am friends with the man in front of me, and I’m not here to comment on his physique. What intrigued me was how it wasn’t until I was in a photo with a regular guy that my perspective changed regarding my own body. Until this photo I had always thought my arms were on the smaller size, they are definitely no 18″ cannons. The point being that sometimes it’s important to take a step back and analyze things from another perspective.

Body dysmorphia can be an especially dangerous perspective, so this is just a message to all those currently on their fitness journey, to keep at it and remember to sometimes zoom out, and take a look at things from a different angle.

– Carl

Preparing For Technical Coding Interviews

Standard

It’s almost July, meaning that my break between semesters is closing in. I’ve decided to use a proportion of that time studying and practicing for technical interviews. As this is my last year at university, I’m looking to secure an enjoyment and challenging programming job for the summer and beyond!

The two books I’ve chosen to work through are: Cracking the Coding Interview and Elements of Programming Interviews. If I feel either of them helped me succeed, I’ll definitely do a review later. If you judge a book by it’s cover, here are the fronts:

Cracking The Coding Interview

That’s my update for now. Better return to studying for those finals in a few weeks.

Good luck to all!

Carl

Starting Strength, Week 2

Standard

After completing my running goal, I’ve been keen to get back into the strength training. After reading the Starting Strength (vol 2), I’ve decided to give this version a go:

Monday

  • Squat
  • Bench Press / Overhead Press (Alternating)
  • Chin-Ups

Wednesday

  • Squat
  • Bench Press / Overhead Press (Alternating)
  • Deadlift
  • Dips*

Friday

  • Squat
  • Bench Press / Overhead Press (Alternating)
  • Pull Ups
  • Leg press or Weighted Plank*

*  = Only if feeling extra strong that day, and have met all daily criteria *** These are not in the original program but I really enjoy doing them. Sorry, Rip

I have added a few extra exercises into the routine. Importantly, these are accessory lifts and have been delicately picked to help me improve my main lifts (Bench, squat, deadlift and overhead press). I have made a personal promise to only do these lifts if I complete all my daily goals.

Each SS workout only takes around 45 minutes if the gym is quiet, so it usually isn’t a problem adding extra training in, obviously the extra accessories will be dropped if the gym is packed out.

Carl Kenny | Starting Strength | (click to see in full size)

Carl Kenny | Starting Strength | (click to see in full size)

Here is a screenshot of the excel file I’m using to help track my progress (click to see in full size)

I’m using a spreadsheet freely available over on the Starting Strength wiki.

For a direct link to the Spreadsheet (Excel) file, click here.

Please note, I’ve adapted my version to be in kilograms, the original link provided is in pounds. The amount of increase is all that needs to be changed.

My current lifts are:

  • BP: 70kg
  • DL: 100kg
  • SQ: 65kg
  • PR: 45kg

You may have noticed that this program includes squatting 3 times a week. Personally I’m really excited about this, as I’ve only recently worked up flexibility to a point where I can legitimately squat below parallel. Whenever I remembered I basically held myself in a world third squat position for as long as possible (excuse the not so politically correct label), that looks like this:

T Nation | Third World Squats

T Nation | Third World Squats

 

 

 

 

 

 

 

 

 

 

 

Be sure to check out the articles on third world squats (and where the above image came from), over at T-Nation: Here and here

I will be on this program for approximately 10 weeks. Hoping to achieve the following at the end of the journey:

  • Bench:100
  • Squat: 120
  • Deadlift: 140
  • Press: 60

I’ll be sure to update how the progress is going. If anyone is interesting in reading the book, then you can buy it here or read the detailed wiki. The books is especially handy for those interested in performing the big lifts safely and don’t mind somewhat lengthy anatomical descriptions. It is really worth the investment for learning the lifts.

If you have done a Starting Strength variant, then I’d love to hear from you! Leave a comment.

Cheers,
Carl

Python Solves Group Financials

Python Solves Group Living Finances
Standard

Are you looking for a way to simplify your flat’s finances? Well I have the right script (i.e. small program) for you! To run this script you will need the following:

  • Programming Experience Required: None
  • Python 3 or higher installed on your machine
  • Access to your shared bank account via internet banking (don’t worry, this script won’t need your credentials, just the transaction data to sort out the mishaps!)

I’m currently studying towards a bachelor science in Computer Science and Psychology. Throughout my studies I have chosen to experience flatting i.e. living with a bunch of friends. This has always been a great experience, however there’s one topic that tends to be avoided to keep people happy:  money.

If you’ve had similar experiences in the past or are experiencing this right now then please keep reading, as this script can help you logically solve them. I would like to point out that I built this script for my own programming pleasure and it is very likely that you can get the same result a lot faster by using a tool you’re comfortable with.

This script is open-source and I promise it doesn’t send your valuable information /or finances across the internet. If you don’t trust it, ask someone with programming experience to take a look at it or don’t use. Better to be safe 🙂

This script requires a few things:

  • The .csv file which can be downloaded from your bank’s website
  • The Python script
  • Very basic command line ability (I will explain everything)
  • Python 3 to be installed

Regarding the command line, I’ll be attacking this from a Windows perspective, as I’m assuming anyone who has a distribution of Linux is well versed with the terminal. Just be careful with the direction of the slashes…

Download the .csv file and the .py script to a place you where you can find it. e.g. C:\Users\USERNAME\Documents\Python

It will also be helpful to rename the file to something smaller and that contains no spaces.
e.g. bankaccount_2014.csv

Now, using the file explorer, locate to where you’ve saved the .csv file and the .py file. It should look like this:explorer_cli_python_csv

Now we need to open up the Windows command line. Don’t worry, I like walk you through this and we will be using minimal commands. As a side note the command line can be very useful, so if this example feels fun, head over to your favourite search engine and do some research!

Now, hold down [SHIFT] on your keyboard, right click the folder and select ‘Open Command Window Here’

A window will open up with a very limited visual interface, but it’s very powerful once you know how to use it!

C:\Users\YourUsername\YourFolderPath is where you have opened the command line. To check that everything we want is there. Type dir /b and then press enter. What you should now see printed to the command line is all the files in the current directory, the /b is an argument given to display only the minimal presentation of files. If you’re interested try “dir” own it’s own and observe the difference.

Quickly we’ll check that you have Python 3 installed and accessible. Type python and press enter. If it displays Python 3.x.x, great! Press [CTRL] + [z] to end the Python interpreter. *If it displays “python is not recognized as a internal or external command, …” then you need to go install Python and add it to your path (The GUI installer has a drop-down entry for this)

Almost there! Below I will use XXX as a placeholder for the name of your .csv file. If that confuses you, rename the .csv file to XXX.csv (however, this might seem dodgy when you look back through your documents…)

To run the script on your data, type: python shared_bank.py XXX.csv 

If you’re rushing to look at the result, type: output.txt and press enter! This should open up the output of the script in your standard text editor (probably Notepad or Word, for most). Great, now go analyze those mischievous transactions and the fairness of everyone’s contributions. Stop here if you’ve had enough of the command line and just want to get to the number crunching!

Yay, you’ve made it. If you’re interested in attempting to understand the code, have a read over at GitHub,I originally made this script just for myself then I had friends complaining about similar problems, so I adapted it and sent it off to them. The “>” writes all the print calls to an output file. This should have been placed into the script, however I prefer to send the output through many programs in my spare-time. In the GNU/Linux terminal, this is referred to as ‘piping’ which uses the | key

I’ve now changed the script, so that it writes a file on it’s own.

It has been tested with Westpac and KiwiBank .csv files. I’m sure other banks format their data differently, as I couldn’t find a universal standard anywhere. Comment if the script doesn’t work on your particular .csv file and I’ll do my best to adapt it to your situation! You won’t need to give the .csv file, just one row (change the people’s names and figures at your will, it’s just the columns that are important)

Future Plans:

  • Optimize the code, so it runs more efficiently. E.g. use less nested for-loops, create a list for original name, upper and lower at the beginning instead of on the fly (i.e. pre-processing)
  • Add a Java GUI on-top of the Python code, so that the user can drag and drop their .csv file into the application without having to open up the command line
  • Format the output nicely (i.e. line-by-line) and possibly convert back to readable .csv
  • Create a ‘smarter’ version, that dynamically locates the name/date/input/total/description fields and can run without the user having to input the people’s names (dictionaries will be key here)

Hope it helps! Leave a comment below if you need assistance or would like to show your appreciation.
Farewell,
Carl

Couch-to-5K

Standard

 

ImageThis is my story of how I worked from lounging on the couch to running 5k.

In this post, I will outline my experience with the Couch-to-5K program, beginning with a graph of my performance throughout training and then continue to provide juicy details as you read on. The following graph and all relevant statistics can be found on my RunDouble profile.

The official Couch-To-5k (C25k) program takes 9 weeks, I began the program on January 12 and ended on the 20th of February. This tallies to approximately to 7 ½ weeks. I chose to condense the program, since I had signed up for a casual 5K event late February. My experience follows:

Specifications:

  • 92kg (202 lb) starting weight
  • 86kg (189 lb) ending weight
  • Previous Fitness: Boxing and football until the age of 16, then sedentary lifestyle till 21
  • Goal: Run 5K (no time-limit) and weigh <90 kg
  • Maintain muscle mass
  • Technology: RunDouble, MyFitnessPal and Tabata android apps.
  • iOS equivalents: RunDouble, MyFitnessPal and Tabata
Pace is time per kilometer, in-case the inversion seemed counter-intuitive

ImageThe reason for the drop in January is that I forgot to turn on the GPS before starting RunDouble. I remained consistent and driven to obtain the results as fast as possible.

This attitude lead me to pushing myself after the allocated time and coupling the program with high intensity interval training (HIIT) to achieve the results faster. I tried to run every second day and lift four times per week.

My weekly routine includes a legs workout, so it was important that I planned a days rest from running post squats.

My ideal routine looked like this, however it was modified as life happened:

  • Monday: Run (AM) / Push (PM)
  • Tuesday: Pull (PM)
  • Wednesday: Run (AM) / Legs (PM)
  • Thursday: REST
  • Friday: Run (AM) / Push (PM)
  • Saturday: Pull (PM)
  • Sunday: Run (AM) / Legs (PM)

The cocktail of strength and cardio training was implemented alongside a calorie deficit diet (-500 each day), enabling fat loss with moderate muscle retention.This allowed diet and exercise combination was key to dropping 6kg (13 lb)

For individuals new to fitness and wanting to start out, I thoroughly recommend the C25K program. The program isn’t set in stone, nor is it a race. If you find yourself struggling, ‘de-load’ i.e. re-attempt the previous week and make sure that your diet is in check. I already had a strength base, so mainly focused on running throughout this period.

Evidence of said 5K run completion

Image

If you’re uncertain of how to even start, start walking. The hardest part is getting off the couch, all you need to do is create a habit. The allocated runs at the beginning of the program can easily be completed within ~20 minutes, so it’s just a case of making the time i.e. getting up earlier. Build your fitness incrementally and don’t expect dramatic results if you’re just starting out. I recommend the progress pics sub-reddit, and brogress which has an emphasis on muscular physiques, the submitters usually post the time to completion, diet and routine. Just remember that the ones who post have remained persistent to get those results, the ones who don’t follow through usually don’t post.

The time of transformation will be relative to your body’s current state, so it is important to create habits and plan long-term.

Below are the runs I completed. I got into the habit of running for the prescribed time away from my house, walking back then attempting to run up the hill. The final sprint is indicated by the final peak, as you may have noticed it’s duration tends to get longer and eventually I reach the top of the hill, wahoo!

Week 1 Day 1 and so on …

w1d1 | Carl Kenny

w1d1 | Carl Kenny

w1d2 | Carl Kenny

w1d2 | Carl Kenny

w1d3 | Carl Kenny

w1d3 | Carl Kenny

w2d1 | Carl Kenny

w2d1 | Carl Kenny

w2d2 | Carl Kenny

w2d2 | Carl Kenny

w2d3 | Carl Kenny

w2d3 | Carl Kenny

w3d1 | Carl Kenny

w3d1 | Carl Kenny

w4d1 | Carl Kenny

w4d1 | Carl Kenny

w5d3 | Carl Kenny

w5d3 | Carl Kenny

w6d2 | Carl Kenny

w6d2 | Carl Kenny

w8d1 | Carl Kenny

w8d1 | Carl Kenny

Below is the technology that helped me on my journey.

MyFitnessPal was essential to counting calories and analyzing protein intake. Initially it comes as a shock, my education somehow dodged quantifying food as a resource, instead of a delicacy. The app comes with an in-built bar-code scanner, so it’s super easy to record your food intake and it makes a habit to record your meals, so if you eat habitually it’s rather efficient.

Tabata, is consists of 20s (High intensity) work then 10s rest interval training method, with a default number of cycles as 8. I complemented the C25K program, by adding this method onto the end of my runs. I believe that this allowed me to progress faster, as I was contributing towards sprint and long-distance training each running day. The rush of HIIT reminds me of sports and will be beneficial when I return to either boxing or football.

Below is a complementary back-shot at 86kg, which was my goal:

Image

Unfortunately, I never took a back photo at the beginning of my progression. There’s clearly a lot of body fat still for me to lose, but I am happy with muscle mass I was able to retain.

I’m now focusing on reaching lifting goals, with a 90 day timeline, so stay tuned for progress updates!

  1. Deadlift – 120kg (264 lb)
  2. Bench Press – 90kg (198 lb)
  3. Squat – 100kg (220 lb)
  4. Press – 60kg (132 lb)

Feel free to comment if you have any questions.