Wednesday, May 13, 2020


My New Code Blog

Computer software is something that I'm very interested in.  I've been very fortunate in that something that I have an interest in is also something that one can get paid to do, not that you always get to build things that you find innately interesting !

The whole time on the job over the years, I've always had side projects and side investigations that I've worked on out of personal interest.  These languish away on various storage media perhaps to be re-read some day perhaps not.

I've been helped a lot at times by various random people who have posted up their examples and findings when it comes to considering some software problem or other, it finally occurred to me that maybe someone else might find something that I've done to be helpful to them.

So, I've started my own Code Blog.   I hope the search engines find some of the articles on the chance that someone out there might find something useful or interesting them as I found other's stuff interesting and helpful to me.

Here it is:

Click me to visit the Code Blog !

Wednesday, November 27, 2019

Two Wheels Good

A play on Orwell's critique of the dangers of extreme ideology politics in his novel 'Animal Farm'.


In Animal Farm, the working farm animals overthrew their human masters with the rallying cry:
   4 legs good, 2 legs bad.

Applied to the world of motorized transportation, this slogan was coined sometime in the 80's: 
   2 wheels good, 4 wheels (you figure the rest out...)


IMHO adherence to ideological extremes are something that thoughtful people that self identify with the 'left' or the 'right' might do well reflect on in the USA today for all the harm to innocent people that this causes.   History is replete with cases of innocent individuals who had become labelled as a member of some enemy class or group or other and once someone has been declared to be a member of this class, humankind has no shortage of individuals that know 'just what to do with them'.
  
(Note:  I have friends that own cars.  In fact I myself have a car.  It is indeed possible to be a decent human being while simultaneously having a motorcycle, a bicycle AND a car)

What is it that draws people to transportation on 2 wheels when there is so much more convenience and comfort to be had on 4 ?

Noted Career Counselor Marty Nemko, for whom I have a lot of respect, once opined on one of his radio shows that he could not understand why anybody would spend the money to buy an overpriced Harley-Davidson Motorcycle when you can get a reliable Toyota Corolla for less money.  That such a choice makes absolutely no sense.

Here's the thing about 2 wheeled travel as opposed to 4.
People spend time and money to go to amusement parks towards no practical end.
It can be argued that there is nothing productive or 'socially redeeming' about riding a roller coaster, yet many people enjoy the experience enough to make and pay money to have the experience.

2 wheeled travel can be like having a roller coaster ride on demand, at your convenience.

Shed of an insulating shell, travel on 2 wheels exposes you to your environment.

You experience everything immediately.

On a cold but sunny morning, come around a corner off of a mountain and into a valley and the feel the chill give way to radiant warmth.

The whistle of the air flowing around you (good when you want it, bad when you don't) carrying with the smell of the flowers you see all around you.

Bank the machine into a corner and take in the sensation and view from your body hovering inches off of the ground which is rushing just beneath you, you can glance down to SEE it speeding by, up close, right in front of your eyeballs.

You don't get anything like this when driving a passenger car or truck.  (exception noted for performance car driving which offers it's own kind of sensory involvement)

Bicycle riding has been part of my adult life for decades.

Aside from utilitarian bicycle riding for local transportation and commuting to work I also enjoy riding a bicycle for recreation.  This kind of riding often involves putting the bicycle on a conveyance to get to a remote starting point.   There is the conventional method for getting there:  put the bike(s) in/on a car/truck and drive or perhaps get on a train or plane with the bike(s) as luggage. 

When I've packed up and drove for this kind of ride, it would often strike me as a waste of a good day to be spending part of it sitting in a car when I'd much rather be on a bike, the motorized kind.
The obvious solution was to find a way to do both.   While not common, I'm not the only one to have invested the effort towards this end, but here's my take on it.

Scenes from 2 decades of MC bicycle fun:


Somewhere in Montana on the way to Minnesota for a special 4th of July celebration bicycle ride:



Epic winter AZ get away
   over a freezing snowy pass on the way:


out to the desert and warmer climes at last:


Returning from another July 4th bicycle ride in Minnesota, this time stopping at the Mitchell Corn Palace in, where else ?  Mitchell,  South Dakota.   The graphics on the exterior of the Corn Palace venue are rendered in, what else ?  Corn !:



Death Valley MTB haul sometimes you just have to get off of pavement:




Local scenic ride:
   Phenomenal Kawasaki ZX-14R capable of going from 0 mph to a speed of 100 mph in just 4.8 seconds (but I don't have the nerve to try it).
   The Extremes of 2 wheeled travel during the same outing !



2 wheels good !  Oh yeah !

Thursday, March 15, 2018

March 14th 'Pi Day' isn't...

Yesterday March 14th was 'Pi Day'.   A play on the first 3 digits of pi  3.14.

Pi of course is the ratio of the circumference of a circle with its diameter, the longest length you can measure from one point of a circle to a different point.  This ratio has immense theoretical and practical importance and so is taught just about world wide wherever mathematics is valued.

Some businesses have seized on the novelty of this day by offering business opportunities such as:

Well, it turns out that really:

Why ?

'Pi' is a greek letter.
Ask a Greek speaker to pronounce 'Pi' and they will not pronounce it as 'Pie' but rather they will say it 'Pee'.

So phonetically, it's not 'Pie day'  it's  'Pee day'.    No pies involved.

Of course one could argue that, in the US at least, everyone in math class agrees to pronounce it 'Pie' so since that is the convention then 'Pie' it is.

I prefer to go to a more fundamental route.
It's a Greek letter.  The Greeks pronounce it 'Pee', so it's 'Pee' and not 'Pie'.

I had a native Italian math teacher once and for a while no one could understand what he was talking about 'Pee' what ??

For the same reason, I will go out of my way to call a Porsche a 'Porsh-uh' and NOT a 'Porsh'.
And to the next degree out, I will call a Chevrolet a 'Shev-ro-lay' and not a 'Shev-ro-LET'.

As WC Fields, as Mr. Howard Bissonette, once put it, in reverse, about how to properly address his wife:

"Do not call Mrs. 'Bis-o-net'  Mrs.  'Bis-o-net',  it's 'Bis-o-nay'"

Ha ha ha !



Tuesday, March 13, 2018

Rediscover: The Fading Craft of Scale Model Airplane Construction !






Building Model Airplanes occupied for me a number of very pleasant childhood hours.   Hours turned to days turned to a beautiful model to show for the investment of time.

And it is an investment.

Each newly built model gains positively from the experience of having built all models previous.

This used to be a very popular hobby.   So popular that in the 60's you could walk into practically ANY variety store and find a few shelves of kits from which to choose the next project.  ("What's a *variety* store ?"   I guess that these days chain Drug Stores have become the new variety store carrying a limited selection of goods from a broad set of categories).

Fast forward to today and even a full blown specialized Hobby Store might NOT have ANY Scale Flying Model Airplanes in the store.   It's really a shame because the patience and craft developed in the act of building these things is really a satisfying set of skills to have because they can bleed over into just about any kind of precision construction task in which you might want to engage.

This kind of activity:  actually producing something by construction from raw materials and specifically NOT by assembling prefabricated parts seems to have risen in the last decade(+) or so.

The new name associated with this kind of activity is that is is work done by a 'Maker'. 

In the mainstream USA of those born in the 50s and 60s.   'Maker' didn't exist because practically every school age male took 'shop class'.  There was nothing special about being a 'Maker' back then, because every junior high school male was a Maker (maybe some girls too, but it was required of the boys).  Yah, the tax payers that provided me the gift of public school paid for me to learn how to be a 'Maker'.   Have to pay for that yourself today..   (NOTE:  being a pre-modern new male, in addition to the shop classes, I also signed up for the 'Girls Home Economic' cooking classes back then as well, I took a little heat for that).

My previous model building experience boosted me to the front of the wood and metal shop classes since the basics of careful fabrication and construction had already been learned.
The shop classes took it the next step towards the real world though.

The most memorable project of my metal shop class was to make a chisel.  A real usable chisel.

Gen-U-wine Chisel Recipe:

1.  Take a rod of high carbon tool steel and cut yourself a 4 inch cylinder section  (use a manual saw, very tiring.  I think this was to impress upon us just how much work using an electric tool is saving you).

2.  Heat the cylinder in a forge up to red-orange hot.   The steel is now malleable.  Holding the piece with tongs using one hand, use a hammer in your other hand to beat the end of the cylinder into a symmetrically tapered gradually flattened shape.  This is the 'chisel' end that will do the chiseling.
This can't be done in one go because the steel cools too quickly, so you have to reheat and shape the piece over a number of separate heating and shaping cycles (I think it took me about 10 rounds of heating and beating to get it to the shape that I wanted).

3.  With the basic shape set, now the piece is filed/grinded into it's final shape.
A 'V' shaped edge at the chisel end for cutting, a beveled edge around the circumference of the cylindrical opposite side, the 'hit with a hammer' side.   The bevel is there so that you cannot accidentally break and send off a dangerous flying projectile when you hit the chisel with a hammer.

4. Do some progressive rough to fine polishing so that the chisel has a smooth good looking finish.

5.  Now you have a piece of shaped steel that looks like a chisel, but it's an imposter.
If you try to use the 'chisel' now, you'll just bend big notches in what was your edge and you might also shatter the chisel into pieces. 
The edge is too soft to cut anything without losing its shape and the steel may also have brittle sections that cannot stand up to stress without breaking. 
So now you have to temper the steel so that it is resilient like a spring and will be able to absorb and return the impacts from hammer blows. 
Tempering is done by heating the steel to a specific temperature, partially quenching it into banded sections of graduated temperature by quickly dipping and pulling out the heated chisel into water at different depths.  The in air cooling of the entire chisel is now watched very carefully.   At the proper time during the cooling (it doesn't take long, only 10 seconds or less), you quench the entire piece completely by dropping it into the bucket of cooling water.  If you've done this correctly, the chisel now has the springy temper that will allow it to transmit the hammer blows without damage to the chisel.

6.  Now you must harden the cutting end of the chisel so that it will cut through 'normal steel'.  This is done by carbon case hardening.  (you might notice that the shackles of some padlocks are stamped with the words 'case hardened' on them, this is the same kind of hardening.  On a padlock, this makes the shackle harder to cut (hence a preferred tool of thieves is often a grinder)).

7.  NOW if you've done everything correctly you might have a chisel .
 In order to get a passing grade you have to prove that you have made a real chisel.
This is done by a very pleasing (I think) test:

Take the original rod of tool steel that was the source of the raw steel for your chisel and place your chisel on the end of it.
Strike your chisel hard with a hammer  (better wear eye protection for sure).
If you really have a chisel and not an imposer, your chisel will cleanly whack off a section of the original tool steel rod without ANY noticeable change in the appearance of the chisel and you will be able to do this repeatedly with the same results.

To be sure:

YOU HAVE MADE SOMETHING THAT IS STRONGER THAN THE ORIGINAL MATERIALS THAT YOUR PIECE WAS MADE FROM

You're a Maker. 
In that shop class, every boy is a Maker.
In that Junior High School every boy is a Maker.


Where was I ?

Oh, yeah   Model Airplane Building.

So the cool thing about building model planes is that not only are they scaled down versions of real planes, they are also aerodynamic in their own right and will fly.

In practice slight modifications to proportion may be done to make the model more flyable.

Q:  Why isn't an exact scaled down replica as flyable/stable as the original plane ?
A:  Because while you can scale down the proportions of the plane exactly, the air is NOT scaled down to match the model.   Aerodynamics depend on the bulk properties of air molecules.  Bulk properties depend on amounts.   The amount of air flowing over a real wing is not the same amount of air that is flowing over a model wing so the flight characteristics will be altered (consider the viscosity of air, for example).

Happily, for model buffs.   Many exact scale planes work well enough, and for many more slight alterations to the designs can improve the flight characteristics immensely.   An example:  adding a little more 'V' to shape of a wing when looked at from the front of the model (the dihedral) can offer a big increase in the flight stability of the model plane at a slight cost to the 'true to scale-ness'.


In a few pics here are a few very pleasing aesthetics of wood and paper model airplanes.




These pictures are of a build-in-progress German WW1 Albatros D5 from the Dumas Model Kit company.  While the plane is from a kit, it is not an 'assemble from prefabricated parts' project.  The model is built up from raw materials included in the kit.  The convenience the kit is that it provides the design/plans and the raw materials required, all in one convenient package.

The body, or fuselage, of the plane is made entirely of wood.  Shaped pieces of wood 'skin' have been glued on to the outside of its wooden frame.  I'm leaving most of the body unpainted so that its beautiful wood grain is plain to see.

Above, the partial wings and tail can be seen to have wooden frames that have been covered in tissue paper and painted.





Above, one of my favorite things about tissue covered wings, especially the wings of many WW1 aircraft are the smooth compound curved shapes of the stretched paper over the frames.   The graceful rise and fall shape of the smooth and taught paper skin appear only after the paper has been shrunken by a sequence of wetting and drying.  It's always a pleasure to see it magically come to shape 'on it's own' as it dries.

The tissue covering shrinking process.

Below, this is a wing (from a different model) that is about to have a loose covering of tissue paper glued to it.



Below, now the glued on tissue is lightly sprayed with water which loosens the paper up even more giving a very baggy appearance.


Below, as the paper dries the tissue shrinks which causes the paper to hug the frame evenly.  To seal the paper against absorbing any moisture from the atmosphere after we have completed a cycle of wetting and shrinking we paint the surface with dope (yes, it's the real name of a real substance).  This also gives the paper a nice translucent appearance through the thinner regions of the paper grain.
It's so lovely !





Per the dominant technology of the time, many WW1 planes required external wire cable bracing to keep the structure from coming apart from the stresses of flight.   These cables are represented in this model by elastic thread which I've thread through anchor points on the body and wings.   The cables on the model are for scale appearance only and add no actual structural stability.   If I were to make this a model optimized for flight, I'd leave off the fake cables because they would only detract from flight by adding more aerodynamic drag.


I'll probably post a bit more about these things later...


Saturday, July 1, 2017

Enemies today, Friends tommorrow

Of course, this is nothing new but for some reason I had randomly recalled a Chinese postage stamp that I had in my childhood stamp book.

This stamp, clearly declares what the 'politically correct sentiments' in China of the 1950's - 60's were like.

In the foreground of the etched scene is a dead soldier lying on the ground in front of a tank or some other mechanized warfare device.  The name of country that the vanquished soldier belonged to is clearly written on the front of the tank:

   "U S A"




Yeah, the acceptable and expected sentiment of that time was  'Death to the USA'.

Which brings to mind why humane treatment of prisoners of war exists.
To normal citizens of a country, your politicians decide who to kill and as a citizen of that country, you are obligated to go and serve and people recognize that.

I was reminded of that time during WWII when the British and French armies were defeated by the German Army and had to flee from the shores of Dunkirk.

Within a few months, the French government of the south which was the product of the terms of the French surrender to Germany, had naval vessels in its southern shores.
Feeling threatened by them the British government announced that those ships must not fall into German hands.
It ended up that the British Navy fired on and sunk the French ships.
Yes, French and British on the same side one month, British ships sink the French ships and ended up killing more than a thousand French personnel.

To today.. From death to the USA one decade, to let's make a business deal and get rich the next.


Saturday, March 14, 2015

The Solar Power Hobbyist

I've recently started to dabble in 'hobbyist level' household solar power.
It's 'hobbyist' and not 'serious' primarily due to costs.
A solar system with enough capacity to power a household (on a sunny day), requires at least 3000 watts of power generation and maybe $20-30,000 in equipment.

My humble system generates a maximum of 450 watts and costs around $1000.

I recently added the 2 100 watt  panels on the left, boosting my power from 250 to 450 watts and wanted to see if I could run my computer system during the daytime and still have power to spare to save away in the storage battery for nighttime use.

I began my trial after the morning sun had reached a little over 1/2 the panel area

The panels are in the backyard, foregoing the expense and care needed to safely mount them on the roof.
At this exposure a quick look at the charge monitor shows that the battery is getting 8.6 Amps of current (the monitor is at the bottom of the photo, the battery is at the top):
This is good.  The battery that I have recommends a starting charge current of 8 Amps up to a maximum of 35 Amps.

The charge controller regulates the charging current to the battery and the power output when power is being consumed.   I will be simultaneously powering my computer system AND charging the battery with any left over electricity from the solar panels.  The charge controller will be managing the juggling of input and output power.


This the basic computer system that I want to power,  computer, some extra monitors, external speakers and internet modem:
I hook up a power inverter to the charge controller output.  The power inverter will take 12 volts DC power and turn it into 120 volts AC power that my computers 120 volt AC to 19 volt DC transformer expects to see. 
There is a lot of power waste lost in the inversion from 12 VDC to 120 VAC, it would be more efficient, just for the computer, to take the 12 VDC and transform it to 19 VDC instead of wasting the power sticking 120 VAC 'in the middle'.
Anyhow I turn on the inverter and feed to the 120 VAC to a real time power meter.  The power meter allows me to see how much 120 VAC power is being used.

I hook up my computer system and see that it is drawing about 1.52 Amps of AC current (the middle line in the read out):

It is interesting to go read the DC current output to see how much DC current is required to provide 1.52 Amps of AC current:
It is taking 9.6 Amps of DC current to get me the 1.52 Amps of AC current that my computer system needs.   A ratio of almost 10 to 1  !

Now, I'm drawing off 9.6 Amps for use but is there anything coming in from the panels that's leftover that we can save away in the battery ?

We do a quick check:

Yes, there is 10.1 Amps of DC current being fed to the battery.
So happily, I am both running my computer AND charging up the battery with juice that I can use to continue running the computer after dark.
This make a total of  9.6 Amps + 10.1 Amps  =  19.7 Amps of current coming in from the solar panels.
As the morning sun has covered more of the panel area, we went from  8.6 Amps to 19.7 Amps coming in !
Note:  the red box to the left is the 1000 Watt Power Inverter.

My daytime computer session ends and I check the AC power meter to find out how much AC energy I used today:
That's it..  260 watt hours  from the Sun to my computer with change leftover for the battery !





Sunday, June 29, 2014

Pride Day above Market Street

It's Gay Pride Sunday and I'm on BART heading for the city.

Someone has arranged 2 beautiful baskets of artificial iridescent flowers. 
(my cell phone picture doesn't do them justice !)


While sympathetic, I'm not on my way to the parade and festivities.
Instead I'm looking forward to my favorite Sunday morning activity:

Ballet class at SF DanceCenter.

The 'morning class' is a ritual that all professional Ballet dancers do daily.  I will never know the life of a professional, but once a week I can indulge in the spirit of starting the day with 'morning class' just like the pros do.
There's a live pianist to accompany the dancers, the air is still cool and fresh, it's heavenly being immersed in an atmosphere full with art and aesthetic.

Class started at 10am as scheduled.
The Pride parade started at 10:30am as scheduled.
We are 4 stories above the parade route along Market street and soon catch the full sonic fury of the parade's motorcycle contingent.
The piano is overwhelmed for a few minutes until they pass out of earshot.
Time for a quick peek or two at the spectacle below.






Soon, happily, all's back to normal...   and we return to our labor of love...



What a great day !