Greg McMullin

For my Project 365 photography blog please visit greg365.mcmull.in

Greg's Photos on Flickr



What I'm Listening To...



Blog

How I lost 50lbs (With minimal exercise)

I just sent this in an email to a friend of mine. Thought I would post it up here too as it is good info for anyone trying to hack their body.

I have followed 2 diets. The first one was called 'the slow carb diet' and is a bit of a fad diet by a guy called Tim Ferris. This diet is a pretty good one but is quite restrictive with what you can eat. Basically you drop out all carbs from your diet apart from ones you can get from veggies and beans/legumes. You also have to quit dairy, which led me to give up on it as I am a cheese hound. I lost 30lbs on this diet so it definitely works if you stick to it. Plenty of info about it on the web:

http://gizmodo.com/5709913/4+hour-body-+-the-slow+carb-diet (Read this first!)
http://www.fourhourworkweek.com/blog/2007/04/06/how-to-lose-20-lbs-of-fa...

Best thing about this diet is you get a planned weekly cheat day which you can go carb mad on if you need to!

Now... My current (controversial) diet. I am doing something called a ketogenic diet. Which puts your body into a ketogenic state. Basically your body ceases to use carbs for fuel and breaks down your bodyfat into ketones. These ketones are used for fuel instead. Its controversial as it is a Very low carb but HIGH FAT diet. Similar to Atkins, there is SCIENCE to back it up though. Anyway I am pairing this with a paleo way of thinking. Where I eat like a caveman! Read lots of red meat and saturated fats, because thats what our bodys evolved to eat. This diet goes against most recieved nutritional wisdom but it is a proven way to hack your body into losing fat. Here is some reading material on it to get you started:

Keto:
https://docs.google.com/a/wandisco.com/document/d/1aiHSPoto_YqsNTDvL-g60... - A good introduction to the science.
http://www.reddit.com/help/faqs/keto - the reddit r/keto FAQ, a valuable support community.

Paleo:
http://en.wikipedia.org/wiki/Paleolithic_diet
http://www.reddit.com/help/faqs/paleo

The best thing I did on this journey though was to create an account at My Fitness Pal.

http://www.myfitnesspal.com/gergtreble

This site is brilliant as it allows you to log your food intake and really discover what you are eating. I have tried to keep to the metrics it sets and i have had great results. 54lbs gone. 30 whilst on slow carb (in 3 months) and 24 so far on the keto diet. Here is a graph of my weightloss against time:

http://www.withings.com/en/utils/graph?userid=508236&publickey=88f5fadc9...

Best of luck!

DISCLAIMER:

I am not a nutritionist. These methods worked for me but your mileage may vary.

Calle de Milans


Taken on a weekend away in Barcelona in October 2011.


John Peel


Still missed...


My Outfit For My Sister's Wedding



Using Flickr's API and a PHP script to create Atom RSS feeds of entire Flickr PhotoSets


I recently picked up one of the fire-sale HP TouchPads. It's pretty damn useful and with full screen flash video gives the iPad a (short) run for its money. One of the uses I wanted to purpose it for was to act as a digital photo frame when not in use. The TouchPad comes with a photo management/slideshow tool as one of its native applications however you either have to copy the photos onto the device or hope that your images are on a service like Facebook that syncs with the TouchPad using the fantastic Synergy services. All my images are on Flickr and as yet there is no Synergy Service for Flickr.

I then started looking for an app that would help me do what I wanted. I downloaded an app called Flickr Mundo HD but was disappointed to find that it would not allow me to display slideshows of individual Flickr PhotoSets. Aside from that its a great app for browsing and using Flickr.

I then found an app called SlideRSS which performs the single task of taking an RSS feed of images and displaying them as a slideshow! "Problem solved!" I thought. I loaded up the Flickr RSS feed of my Project 365 PhotoSet and was disappointed to see that only the last 20 photos were pulled down. This appears to be a restriction of the Flickr RSS feeds.

So I started thinking. I knew Flickr has a great API and recently I have been working with a lot of pseudocode. So trying to code something to solve this problem was something I thought I would be capable of. Off to google I went to investigate Flickr's API.

The Flickr API documentation
is good but does not really provide a beginners guide to the service. However I soon found this page from Kyle Rush which gives a nice step by step guide of how to make an API call and what is returned. Armed with this I was ready to start coding.

As the returned API call is in XML I figured I could call it into a PHP script and then scrape the attributes of each photo and output a RSS feed with an entry for each of the photos. I came up with this code.


What it does is pull the returned XML in then it cycles through each of the photos and creates an Atom XML entry for each individual photo. The API call does not return the URL for the photo but instead provides you will all the information required to build the URL. As you can see. All I did then was load the file up to my web server and pointed SlideRSS at its URL and I had all my photos displaying on my TouchPad!

That was my first ever piece of PHP code, and I was rather happy with it! But then I got to thinking that I have a LOT of PhotoSets. I could do with some way of merging some of them into a single feed. So I put my mind to figuring out some way of pulling in multiple feeds and creating an RSS entry for each of the photos in ALL of the feeds. This is what I eventually came up with after much head scratching and conferences with my mate Dunc.


I now have all my Flickr photos on my TouchPad slide-showing away whenever I want them. And the great thing is that if I add more images to the sets then they will also be pulled down as these scripts are dynamic!


The Old Whores Of San Pedro - The Final Gig

Last month my band The Old Whores Of San Pedro played our farewell gig at The Plug in Sheffield. The Gig Was recorded and is presented here, in it's entirety, for your listening pleasure.

The Old Whores Of San Pedro - The Final Gig (Plug 9-7-2011) by Greg McMullin

Fine Champagne


Kodak Tri-X ISO400 using a Minolta Dynax 505si and 50mm f/1.4 lens.


Spiral


A palm tree decoration in Barbados.

Kodak Tri-X ISO400 using a Minolta Dynax 505si and 50mm f/1.4 lens.


I Love You Will You Marry Me


This iconic piece of heartfelt graffiti has recently been immortalised in neon as part of the regeneration of park hill flats.

Taken on a photo excursion with Rob and Andy.


Syndicate content

Powered by Drupal in association with rumbletum.org