Ruby sample source code

This is the source code for the imwizard application demonstrated in Chapter 10 of ImageMagick, the Definitive Guide. This is a small Ruby script which demonstrates how to build an interactive program which builds a list of commands to apply to images, and then applies those commands to many images as specified by a regular expression. Extracted source Tarball Zip file

Continue ReadingRuby sample source code

Water, wheels, tyres (tires?) and computers

  • Post author:
  • Post category:Bike

Random updates on cycling... Water: apparently water is wet. Specifically, I hadn't realised how wet fog was until I rode to work yesterday... Visibility was down to about 150 meters, and I ended up having to take my glasses off to ride so that I could see where I was going. When I got to work there was water beading on my eyelashes. Today it rained just before I rode to work (but not during the ride thankfully), which was more the water I am used to. Wheels and tyres: which brings me onto wheels and tyres. I have basically bald tyres on the mountain bike. I suspect that the current tyres, which came with the bike, are very soft rubber. They only lasted about 1,500 km which I suspect is a bit low. I'm thinking that it's time to get new tyres so I can actually stop in the wet, but I need some advice... Here's what I need in tyres: Good wet weather performance on hard surfaces like concrete Ok performance on sand / very fine gravel (10% of my commute is on such a surface) Not too knobbly, as I am riding mainly on those hard surfaces…

Continue ReadingWater, wheels, tyres (tires?) and computers

Do I look sexy in these?

  • Post author:
  • Post category:Bike

After years of resisting Lycra, I've given in and bought my first pair of bike shorts. I know I can get pairs that look like real shorts, but I figured that given the reason that I wanted to change was because of fabric rubbing, I should go with something which isn't likely to move around on me when I ride. I've now done the morning commute, and they were certainly more comfortable than normal shorts... Although the padding does take a little bit of getting used to. No rubbing though, which was nice. The big question though -- do I look sexy in these? Oh, and how come bike clothing is all so expensive?

Continue ReadingDo I look sexy in these?

Python DNS modules

  • Post author:
  • Post category:Python

My first python script involves doing some DNS lookups (for TXT records if that matters), and I am currently working through using the pydns module for this. Is this really the best DNS module to use for python though? For a start, it was last released in May 2002, and the documentation is somewhat sparse...

Continue ReadingPython DNS modules

Figures from chapter 1 of ImageMagick, the definitive guide

Here are the thumbnails for the figures from chapter 1 of ImageMagick, the Definitive Guide: Figure 1-1 Figure 1-2 Figure 1-3 Figure 1-4 Figure 1-5 Figure 1-6 Figure 1-7 Figure 1-8 Figure 1-9 Figure 1-10 Figure 1-11 Figure 1-12 Figure 1-13 Figure 1-14 Figure 1-15 Figure 1-16 Figure 1-17 Figure 1-18 Figure 1-19

Continue ReadingFigures from chapter 1 of ImageMagick, the definitive guide

Figures from chapter 4 of ImageMagick, the definitive guide

Here are the thumbnails for the figures from chapter 4 of ImageMagick, the Definitive Guide: Figure 4-1 Figure 4-2 Figure 4-3 Figure 4-4 Figure 4-5 Figure 4-6 Figure 4-7 Figure 4-8 Figure 4-9 Figure 4-10 Figure 4-11 Figure 4-12 Figure 4-13 Figure 4-14(Click to see all the images) Figure 4-15 Figure 4-16 Figure 4-17 Figure 4-18(Click to see all the images) Figure 4-19 Figure 4-20 Figure 4-21 Figure 4-22 Figure 4-23 Figure 4-24 Figure 4-25 Figure 4-26 Figure 4-27 Figure 4-28 Figure 4-29 Figure 4-30 Figure 4-31 Figure 4-32 Figure 4-33 Figure 4-34 Figure 4-35 Figure 4-36 Figure 4-37 Figure 4-38 Figure 4-39 Figure 4-40 Figure 4-41 Figure 4-42

Continue ReadingFigures from chapter 4 of ImageMagick, the definitive guide

End of content

No more pages to load