Documents

Archives

Comments?

      

Search

Welcome to BLOGical Thoughts

July 2016

 

Wednesday, 20 July, 2016

I spent a three day weekend (July 15-17) at the Phuddy Duddy Vintage Trailer Rally and Open Show in Post Falls. We had a potluck supper and I made my Dutch Oven Potatoes dish. I was worried about having leftovers but, as usual, there were none. I enjoyed the show, but it was really tiring.


I finally have the 49 Plymouth in shape to show it to other people. The rubber for the rear window was the exactly correct rubber, and all the trim has been installed. All I have to put up with now is the dust on Boot Hill Road.


I'm having my normal summer troubles with my Internet connection. This also means my phone is not working well. I need to get out and cut down a couple of trees so the dish has a good view of Rathdrum Mountain.


Quote of the day:

Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat and drink beer all day.

     Anonymous


Silly sign of the day:


Free/Open Source Software


Security Theater/"Intellectual Property"/Big Brother

Wednesday, 6 July, 2016

I am still working on the '49 Plymouth to get it ready to actually show at car shows. I have ordered the real rubber to install the rear window and am working on attaching the rocker panel trim. There are several places that the paint crew neglected to install bolts, so I am also doing that. Eventually, I will get to the headlights and taillights not working. All this is keeping me pretty busy.


I have been procrastinating again. I have been using VirtualBox 4.x for running virtual machines of MSDOS 6.1, Windows 2000 and Windows XP. When I tried to install VirtualBox 5.x, that version could not read the old VMs. So I backed up all my VMs, uninstalled 4.x, then installed 5.x. I then imported all the VMs. I am now working with VirtualBox 5.02.

The remaining problem with VirtualBox is my being unable to connect to USB devices from a virtual O/S. I will have to research that to resolve the problem.


Quote of the day:

Space is big. You just won't believe how vastly, hugely, mind-bogglingly big it is. I mean, you may think it's a long way down the road to the drug store, but that's just peanuts to space.

     Douglas Adams
     The Hitchhiker's Guide to the Galaxy


Silly sign of the day:


Free/Open Source Software


Security Theater/"Intellectual Property"/Big Brother

Friday, 1 July, 2016

I have been asked how I adjust the photos I take so they can be displayed on a web page. The photos I take are 3264 X 1840 or are 3648 X 2736 pixels. Those two sizes are way too big to display on a web page, so I use a couple of Linux command line utilities to adjust them. One of the packages I installed is called ImageMagick, which is a set of command line utilities that allow you to create, edit and compose bitmap images. The other package is called mozjpeg, which allows JPEG images to be reduced in size so they may be loaded faster.

Here is how I use the programs.

  1. Change to Directory Containing Photos - 'cd public_html/phuddy_duddies/photos/cinderella_custom/'
  2. Change Image Resolution - 'mogrify -resize 1024x768 *.JPG'
  3. Create Thumbnail Images - 'convert -resize 240x180 *.JPG IMG.thumbnail.JPG'
  4. Compress JPEG Images - '~/mozjpeg.sh JPG'

Note that to do the compression, I use a shell script called 'mozjpeg.sh' that is in my home directory. Here is the script.

#!/bin/bash
# ============================================================
# mozjpeg.sh - Compress JPEG files using mozjpeg
# author: M Burton
# written: 28 Apr 2015
# ============================================================

usage()
{
printf "Syntax:\n mozjpeg.sh JPG\nor\n mozjpeg.sh jpg\n\n"
}

printf "mozjpeg.sh - Compress JPEG files\n\n"

if [ $# != 1 ]
then
usage
exit 1
fi

XTSN=$1

if [ $XTSN != "JPG" ] && [ $XTSN != "jpg" ]
then
usage
exit 1
fi

ls *.$XTSN >/dev/null 2>/dev/null
if [ $? != 0 ]
then
printf "There are no $XTSN files in this directory. Nothing to compress.\n"
exit 1
fi

# Convert from JPG to BMP
COUNTER=0
printf "Converting $XTSN to BMP\n"
for i in *.$XTSN
do
printf "$i\n"
let COUNTER=COUNTER+1
/opt/mozjpeg/bin/djpeg -bmp $i >$i.BMP
done
printf "\n"

# Remove the old JPG files
printf "Removing old $XTSN files\n"
rm *.$XTSN

# Convert from BMP to jpg
printf "Converting BMP to jpg\n"
for i in *.BMP
do
printf "*"
/opt/mozjpeg/bin/cjpeg -quality 80 $i >$i.jpg
done
printf "\n"

# Remove the old BMP files
printf "Removing BMP files\n"
rm *.BMP

# Now rename from jpg to JPG
# The ren utility is from the UNIX Power Tools book
printf "Renaming *.$XTSN.BMP.jpg to *.$XTSN\n"
~/ren "*.$XTSN.BMP.jpg" "#1.$XTSN"

printf "Compression completed. $COUNTER files processed.\n\n"

As I was driving the '49 Plymouth down to the Paul Bunyon Hayden cruise last Monday, the rear window fell in. There was no damage to the window, so I can install it again, but it's obvious that I ordered the wrong rubber for that installation. I have now ordered the proper rubber for both the windshield and rear window. Just another one of those little things that prevent me from showing the car at more car shows.


Quote of the day:

Its failings notwithstanding, there is much to be said in favor of journalism in that by giving us the opinion of the uneducated, it keeps us in touch with the ignorance of the community.

     Oscar Wilde


Silly sign of the day:


Free/Open Source Software


Security Theater/"Intellectual Property"/Big Brother