Skip to content

Emogrifier to the Rescue

I just wanted to quickly share a solution that I came across when designing a new set of email templates for a well known Student Union. I had spent an hour or two adapting a ‘well tested’ vanilla standards-compliant template to fit my concept design and started testing.

To my horror I discovered that Google Mail (gmail) wouldn’t play nicely with my conventionally defined CSS. Instead, it requires all the CSS arguments to be placed inline.

Fortunately I stumbled across Emogrifier which did the horrible job of merging my CSS into the HTML as inline rules.

Awesome.

Categories: Technical Solution.

In Order to Continue the Installation Please Close the Following Application: iTunes

I hit a small road bump while re-installing Xcode 4 after a clean install of Mac OSX Lion:

In order to continue the installation please close the following application: iTunes

I quit the application but the alert box did not go away. To the terminal…

Dauphin:~ james$ ps x | grep iTunes
  237   ??  S      0:00.29 /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app/Contents/MacOS/iTunesHelper -psn_0_86037
13970 s000  S+     0:00.00 grep iTunes

Aha! The iTunes helper application was still running preventing the installation from continuing.

Dapuhin:~ james$ kill 237

Problem solved.

UPDATE:

Apple has released a delta update (4.1.1) to Xcode to fix this problem:

How nice of them.

Categories: Technical Solution.

Tags: , , ,

Overnight Oats

I love oats, particularly in flap jacks and porridge. This week I stumbled upon the concept of overnight oats while reading Fight Cancer with Food. The idea is that you leave a portion of uncooked rolled oats soaking in milk overnight so that they are ready to eat in the morning or as a quick snack at some point during the day. You can eat it cold or hot and is best with a variety of fruits.

Through trial and error I have discovered that a 1:1 ratio works well. I measure a small tea cup of oats (roughly 80 grams) and then fill the same cup with either soya or cows milk. For full details see Alex’s post.

Categories: Eat Differently & Exercise More.

Tags: , , , ,

Update No. 2 (Eat Differently, Exercise More)

It has now been six weeks since I wrote about reducing body fat and improving fitness.

The water container has been a big success and I now drink at least two litres of water per day. I’m also enjoying my daily glass of milk and haven’t noticed any changes from this introduction. Unsurprisingly the concept of fist size meals hasn’t taken off mainly because it doesn’t work with my student schedule; I don’t have time to prepare lots of small meals and its incompatible with lecture times and the evening meal that I share with my housemates.

The diet has evolved slightly over time, I still eat a cooked breakfast and cut out all simple carbohydrates (pasta, rice, bread etc.) and now eat smaller quantities of sugary foods replacing them with whole foods (especially oats).

I don’t have a set of scales in my student accommodation, I don’t have enough floor space and daily weight measurements can be depressing if you aren’t achieving results quickly enough. When I started the experiment I weighed roughly 88 kilograms, when I weighed myself at home this morning (I went back for the weekend) my weight had dropped to 83.5 kilograms. This is a welcome result and shows that my body responded positively to removing fattening, non-essential carbohydrates. I stil eat healthily and my diet includes plenty of fruit, vegetables and meat (and of course chocolate) and have never been hungry during the experiment.

Next Steps

  1. My target weight is around 81kg and we will see if I naturally come down to that without any further changes.
  2. I am interested in improving the variety of fruits and vegetables in my diet and will write a dedicated post with the best ones. In a followup article I’ll write about the best foods to add to your shopping basket.

Categories: Eat Differently & Exercise More.

Tags: , ,

IRC Setup Guide: PuTTY with Windows 7 Jumplists for Irssi

On Windows, there are a number of SSH clients available and PuTTY is a popular choice. Since I wrote my IRC Setup Guide I have switched to a modified PuTTY client with a number of modifications and enhancements including Windows 7 jump list support (which saves so much time and effort).

 

FuTTY

The client is the latest build of FuTTY modified with the ‘PuTTY tray’ icon. Any sessions that you save in the FuTTY Configuration pane automatically appear in the right-click jump list and if you use Pageant with SSH keys it gives you one-click access to your server’s shell from the task bar.

I have hosted a copy of the modified binary on RapidShare.
SHA1(futty.exe)= 754ba6a37d892a2414ddee9f961663b40776b0e4

Colophon

Credit for further modifying FuTTY with the nicer icon goes to my friend Robert Blenkinsopp.

Categories: Technical Solution.

Tags: , , , , ,

Update No. 1 (Eat Differently, Exercise More)

It has now been two weeks since I wrote about reducing body fat and improving fitness.

It turns out that completely cutting out all carbohydrates is difficult, mainly because I am very fond of cake and chocolate (and coincidentally chocolate cake) and I have been guilty of the occasional ‘treat’ since I started this experiment. However, completely cutting out rice, pasta, noodles, bread and breakfast cereals was easy. I now eat a small cooked breakfast every morning (consisting of 1 x bacon, 1 x egg, 1 x sausage sometimes with tomato and mushrooms) and asked my lovely housemates (we share cooking) to not prepare any bread, pasta or rice for my portion of an evening meal. I still eat healthy whole foods with every meal and snack on protein, small quantities of fruit and have celery on next weeks shopping list. I have discovered that 70% chocolate satisfies cravings, has alleged health benefits and is more or less carbohydrate free.

By cycling in to my lectures I do an hour of exercise every weekday and rest over the weekend. This is something I have done since the start of the year and I enjoy the fresh air, my iPod and not being stuck on a bus for an hour. I love this kind of exercise because it has purpose and doesn’t feel like wasted time.

The only thing not working out are my sleep patterns, it turns out that its very hard to get out of bed when you don’t have a lecture until 1100!

I feel healthier and appear to have lost a very small amount of body fat but without a way to measure it I don’t have any conclusive proof.

Next Steps

  1. I’m going to look into the idea of eating smaller, fist size, meals at regular intervals and pre-preparing food to eat at university rather than paying extortionate canteen prices.
  2. I’m going to start drinking a small glass of milk with breakfast to compensate for the bowl of cereal I cut out.
  3. I’m going to buy a 1 litre water bottle to ensure that I drink plenty of water during lectures. (Bought: Source Hydration Liquitainer*)
  4. I may start looking at the idea of setting targets as a way to bolster motivation. It isn’t easy to measure progress because I’m interested in reducing body fat and not necessarily loosing weight (muscle is heavier than fat).

Categories: Eat Differently & Exercise More.

Tags: , , , , ,

Eat Differently, Exercise More

In an earlier post I promised to look into the problem of student fitness. Students have the unique problem of limited budget, time and will to eat healthy / exercise regularly.

After researching* the topic and combining it with past experience I have put together the suggestions outlined in the rest of this post.

I will personally follow this advice from the 14th of February 2011 and will record progress fortnightly. I intend to maintain the same structure until the 14th of May 2011 when I will review progress and make alterations as necessary until I have a life change. If you decide to follow my advice please use common sense and if in doubt, consult with your GP before starting a new training regime.

Exercise

Regular exercise will improve your health but it will not help you loose weight on its own. Combining increased physical activity with an improved diet may speed up fat loss provided you don’t over compensate for the exercise by increasing food intake. I recommend at least 30 minutes exercise a day and made some suggestions about how to do this in my earlier post.

Diet

Simple carbohydrates are addictive, they target the reward centre of the brain in a similar way to Cocaine and Nicotine. There is no such thing as an essential carbohydrate. In fact, you can extract all the essential fats, vitamins and minerals your body needs from a completely meat based diet (although I don’t recommend this!). Student diets tend to be heavily focused on pasta and rice because they are cheap and “fill you up”; this would explain why freshers pile on weight during their first year (I have put on over 5kg since my course began).

Completely cut out fattening simple carbohydrates (flour, sugar, bread, pasta, rice, soft drinks and cereals), starchy potatoes and high fructose foods (fruit juices, smoothies, apples and grapes) until a minimum healthy weight is achieved. They can be slowly re-introduced so long as the re-introduction does not lead to an increase in body fat. These foods spike your insulin production and cause your body to store fat unnecessarily (which requires you to eat yet more carbohydrates to provide energy for the body to burn).

Compensate by eating an increased amount of meat, eggs and low GI whole foods especially leafy green vegetables. There is no limit on the amount of meat or saturated fat you can eat eliminating hunger. Celery and protein are ideal snacks.

Be wary of foods advertised as ‘low fat’ especially yoghurts, they often compensate the fat reduction by adding high fructose corn syrup which will spike your insulin production and cause weight gain.

Sleep

Sleep wasn’t discussed in the research nor is it linked to weight gain or loss (at the time of writing). However, to give my routine a boost I am going to start waking up at 0600 on weekdays and 0700 at weekends to see if it makes an improvement.

Final thoughts

These suggestions above may appear radical and you may feel that your quality of life will be detrimentally affected by a change of this scale. Even if you are happy with your total body fat, the weight of evidence linking overweight to chronic diseases such as Altzheimers, Cancer and Diabetes is difficult to ignore. You should be leaner and will never be hungry if you make the changes above.

I would appreciate reader comments and suggestions, I have heard that you should eat a larger number of small meals over the course of the day. I am gently preparing my body for the new routine with a hearty breakfast of scrambled eggs, tomato, mushroom and bacon!

Categories: Eat Differently & Exercise More.

Tags: , , , , , , ,

Find Unlabeled Mail in Gmail

As a recent convert to Google Apps and Gmail I like to ensure that all my mail is labeled so that nothing slips through the cracks (the first step to solving a problem, is knowing you have one!). There is no wildcard to search for unlabeled email in Google Mail but by creating a list of all your labels you can then use a “-” to list the mail without those labels. Combined with the ‘Quick Links’ Google Labs feature, this can be used to create a link for all your unlabeled email.

-label:{Inbox sent trash Label1 Label2 Lablel3 Label4} -label:TwoWord-Label -label:Three-Word-Label -label:Third-Label

Categories: Technical Solution.

Tags: , , , ,

How to Remove Orange Button from Firefox 4 (4.0b12, RC1 and Final)

I love the new Firefox 4 beta, it has significant improvements over 3.x builds. The exception is the new orange button menu that dominates the top left hand corner of the application and spoils an otherwise excellent user interface.

Fortunately completely removing the button is easy and you can still access Firefox’s menu by pressing the ‘alt’ key on your keyboard.

UPDATE: This modification was created for Firefox 4.0b10 but it continues to work across updates including 4.0b11, 4.0b12 and the and the recently released final version.

Removing Firefox’s Orange Button

Firstly, you need to locate your Profile directory. Click Help > Troubleshooting Information and click on the ‘Open Containing Folder’.

Now navigate to the ‘chrome’ directory. (if you don’t have one then you can create one through the right click menu)

Create or edit the ‘userChrome.css’ file, add the following markup to the file using your preferred text editor:

#appmenu-button-container {
position: fixed !important;
display: none !important;
}

Finally, restart Firefox and enjoy an orange button free browsing experience.

Categories: Technical Solution.

Tags: , , ,

The Alias “Drobo” can’t be opened in Mac OSX Finder

I own the second generation of the original Drobo. It is setup as network attached storage (NAS), directly attached to an Airport Extreme Base Station (AEBS) and mounts over the network using Samba (Windows File Sharing) and/or the Apple Filing Protocol (AFP).

During a brief visit home I decided to directly mount my Drobo in order to make sure its disks were healthy and firmware was up to date. However, the Finder couldn’t access the Drobo giving the error message: “The Alias “Drobo” can’t be opened because the original item can’t be found.”.

I was able to access the Drobo and its files through the terminal. This prevented a heart attack and lead me to conclude that there was something wrong with the alias being used by the Finder. I tried a range of options including the fix alias option, deleting the alias, using the built in Disk Utility to repair the disk and considering a replacement finder to solve the problem…

Repairing the Alias

With further research of the Apple Discussions Board I discovered that the alias can be repaired from the command line.

You have to have Xcode Developer Tools installed (can be found on your OSX CD). Then run Terminal and run the following command:

/usr/bin/SetFile -a a /Volumes/Drobo

Et voilà!

Categories: Technical Solution.

Tags: , , , , , , ,