Tuesday, April 24, 2012

A CONNECT Client Implementation for Netty

If you need an implementation of an HTTP CONNECT client to tunnel SSL (or anything else) through a proxy using Netty, Chris Duryee and I recently landed a patch to do so in Thumbslug.

By all means, make use of it!

The original changeset is here.

Monday, March 26, 2012

Camopic is now live!

My new app, Camopic, is now live on Google Play (only $0.99! cheap!). Camopic uses steganography to hide a picture inside a different jpeg image. You can then share that image with another Camopic user, who will be able to reveal and view your hidden image.

This basically sums it up:

Google Play: Camopic $0.99

Saturday, March 17, 2012

Using Roboto on Fedora

Using Android's Roboto font is pretty easy on Fedora (or any other Linux flavour). Just download the Roboto zip, open it up, copy the ttf files into your ~/.fonts dir, and refresh your font cache. From there, you can use the font in any program (though you may need to reload it first).

Here are the steps:

wget https://dl-ssl.google.com/android/design/Roboto_Hinted_20111129.zip
unzip Roboto_Hinted_20111129.zip
mkdir ~/.fonts
mv Roboto_Hinted_20111129/*.ttf ~/.fonts
fc-cache

Tuesday, February 21, 2012

HOWTO Make Bacon

Side View
Side ViewThe side of a slab of pork
belly is  quite obviously delicious
bacon, only raw.
A few weeks ago I acquired a slab of pork belly from a local Nova Scotian farmer, with the intention of making Bacon from scratch. Plenty of different cuts of meat preserved in different ways can be qualified as bacon; I decided on typical North American pork belly, salt cured and smoked.

Making bacon is pretty easy, if a little time consuming. All you need is:


  • A slab of pork belly
  • Salt (table or kosher. sea salt is too coarse)
  • A smoker
  • Wood

Salt Curing
salt cured the pork belly by covering it in salt and storing it in a glass container for 5 days (actually two containers, the belly was so big I had to cut it to fit into the containers I had available). I coated the pork belly in salt on both sides, then rubbed it in with my hands. Each day after first draining any excess liquid out of the container I repeated the salting.

The curing stage is a good time to add any additional seasonings to the bacon, like brown sugar or maple syrup. For my first batch of bacon I decided to pass.

After the bacon had cured for 5 days (and when I had enough time in the day to watch the smoker), I smoked the bacon. I used my home-made flower pot smoker and cherry wood chips that were soaked in water overnight. The bacon stayed on the smoker for about 8 hours, at 200°F. Since I'd be frying the bacon before eating it, I wasn't concerned about under-cooking it.

Smoking the bacon
After the bacon was smoked, I put it in the fridge for about half an hour to let the meat rest, and to let it firm up before cutting. I cut the bacon with my sharpest cutting knife. A deli slicer would have been nice here. And that's it! The pork belly was now bacon, and ready to be fried and eaten.

It was a good first attempt; the bacon is tender and has a great smoky flavour, but is a bit too salty. The salt and smoke flavour does make it great as an ingredient to other dishes though, like omeletts and soup. Next time I'll try to reduce the salt content, probably by wiping off any excess salt each day, when I drain off the juices.

Frying it up!
If you'd like to see more, you can view the complete photo set on flickr.

Friday, February 17, 2012

Glyphicons Styled Stack Overflow Icon

 Here is a Stack Overflow icon in the style of Glyphicons I did for my 'about me' sidebar section:
Feel free to use it however you want.

Thursday, February 16, 2012

Using 960.gs, Haml, Sass, and Compass on Blogger

I tried to see how many cool toys I could use to create my own blogger template. So far I have:

You can find the result on github, here.

Any readers who have noticed a similarity in chosen technology to those used by Katello get bonus points!

Sunday, February 12, 2012

Retrofitting drop shadows into existing Android layouts

I had some UI elements in an Android application I'm working on that felt as if they should be above (pushing out of the screen, rather than to the top of it) the elements that followed them in the UI. A good way to indicate this is with a drop shadow, similar to those on Android title bars or Action Bars. An existing method didn't work for me, as my UI is relying heavily on weights to keep proper size ratios between the elements I wanted to add a drop shadow to, and the element they would be casting a shadow on.
© 2012 James Bowes. Icons by glyphicons. Powered by Blogger.