Yo! Prez

21:27 13 October, 2010

President Obama, no disrespect intended: The article title is merely  a wake-up.  Your buddy Nancy has had you again.  Did you notice that the lead-off on NPR this morning was that there are still folks in Haiti who have no roofs over their heads (several million).  And our government’s best kept secret is the the number of construction  jobs is still not where it ought to be.  Seems to me a little per-diem, a steady paycheck, and the skills at building hurricane and earthquake proof housing of USA construction workers could go a long way at bootstrapping the Haitian restoration. If we had any leadership.  If we had Representatives who were looking out for the workers of the USA, Nancy Pelosi.  If we had Senators who were not sleeping, Harry Reid.  Hillary Clinton, here is your chance to out-do Chavez. We voted for you.  You have let us down.  Big time. Again.

Progress Widget

22:51 29 September, 2010

A while ago, I posted that I was learning about GTK and more important (to me), GTK for C++.  I have been carefully working through the tutorial.  The way I learn best is by preparing to teach others.  I have been taking notes and creating some exercises which I will contribute back to the GTKmm project when I get them into decent shape.  I have worked through the entry widgets and next is the progress widget.

In the mean time, my wife, a sometime  techno-phobe, asked me to help her purchase an online airline ticket.  Not a big deal.  An hour later, we have a printed ticket at a price that is not prohibitive. My wife, who had not heard the joke before, was amused by the phrase “World Wide Wait”.  Forty-five minutes of the ticket time was spent looking at what I call a “spinner” and some at what techies call a “progress bar”.

The spinner is a screen that acts like it is doing something while you are waiting.   The spinner that might be part the browser.  If it were the cursor on your system, it would slow down or freeze when the local system is waiting for resources.  Other times they hang because they are waiting for a remote, synchronous service like a firewall or a security check. But usually, they are just blinky lights, like the ones that used to chase each other around the marquee at the neighborhood theater until they burned out and nobody replaced them.

More important is the “progress bar”. Or more precisely, the lack-of-progress bar.  This is supposed to move along steadily and indicate how close the web page is to being complete.  I usually see it rush quickly toward half-way.  Then slow down until at 75%, the progress becomes nil.  Finally, after a time twice as long as the wait to half-way, a message box appears that the request cannot be completed due to a condition the user cannot do anything about.  The message never suggests that the web host capacity planner has been sleeping in his chair after a beer at lunch or that that the host DBA meant to re-org the database last month but was at the beach.

And so I propose the “lack-of-progress bar”.  This little gem, when embedded in your web page will not only entertain you by advancing in a non-monotonic way, arbitrarily falling back to a lesser state as the http under-covers encounters adversity, it will put out a meaningful message, pointing the finger at the actual cause of the delay, be it end-point host, local system, or the ISP.  If there are multiple culprits, it will name them all.

Wait there is more! If supplied with the appropriate information, it will simultaneously, write a letter to the U.S. Representative, both Senators, the President, the FCC, the ICC, the DHS, and least effective  but most annoying the TSA. It will  Twitter a spurious rumor about the failing service provider, and a short sale order to your broker.

Or maybe it will meet the release date deadline.  But probably not both.

Shakin’ it up here boss.

New Old LP’s

20:29 19 September, 2010

My wife went to a Thrift Shop in Minnesota and sent home a pile of LP’s. They have been sitting waiting to be played, filed or discarded for a couple of months.  On a slow news day, I took the first one off the pile and played it.  Ray Confiff Memories Are Made of This.  S’ Typical.  A Scandinavian looking woman on the cover wearing a pastel purple bulky sweater, studying some small artifact.  A bunch of guys that sound like trombones.  A bunch of gals that sound like trumpets.  And Billy Butterfield who actually plays the trumpet on Love Letters in the Sand. Doc Severinson plays trumpet on Three Coins in the Fountain.

Next, completely off the radar, The Dell Trio – Cocktail Time – Harmony (a product of Columbia Records). An apparent re-release of a 1949 album.  Cornball?  If there is a single recording that defines cornball, this is it.  Lawrence Welk, move over.  A sweet (in the diabetic sense) combination of accordion, Hammond, and jazz guitar.  Percussion free.  Who needs drums when you have an accordion?  A quick Google shows that this album may still be popular with some and that someone thinks it might, just maybe, if it don’t take up space in his inventory too much longer, be worth $10.  Mighty clean copy, missing a sleeve.  I didn’t know they ever made records like that.  Whoa!

Nightmare Exam II

11:15 15 September, 2010

The Religion (HUM112) mid-term exam consists of one question:

The number of angels  on the head of a pin is which one of the following:

A) an integer

B) a real number

c) an imaginary number

d) an irrational number

Provide a formal proof.

Schlagers

22:26 9 September, 2010

I usually let the music “On the Player” speak for itself. I comment on “Schlagers” because of the fabulous talent that Warner Bros was able to bring together. Joni Mitchell, Mike Post, Frank Sinatra, Miriam Makeba, Vince Guaraldi (not playing Peanuts or Cast Your Fate to the Wind). I put this on because I asked my wife “Suggest some music that we don’t play much”. “What about those collections that I used to get”. Yes, Schlagers is a Promotional Album. Not to be sold. Basically for the cost of shipping, you got half-a-party of music for $3 (barely covered shipping).  From back when Warner Bros  had something worth promoting.  And they promoted the dickens out of it.  Promotion is euphemism for sharing.  For free.  Thank you Ms. Elaine Geller for many happy hours.  I presume that Ms. Geller ran the fulfillment office.  I hope that she is happily and richly retired.  And that she has sold her stock in that loser Warner Bros and the other scum companies that are members  of what the RIAA has become.

Just Dumb

14:46 8 September, 2010

The Florida pastor who wants to burn the Quran is wrong headed. Instead of burning a holy book, he should try burning Stephen Hawking and Leonard Mlodinow’s The Grand Design. The act might please God, would not harm soldiers in Afghanistan, it would satisfy the pastor’s arson-istic cravings, and Professor Hawking might enjoy the publicity. Everybody knows banning or burning books increases sales.

Bad News

23:15 6 September, 2010

My wife had a friend in for a chat. I was working at home as I sometimes do. The upstairs gets warm because of the roof. After the friend left, my wife said, “I hate to be the bearer of bad news but the air conditioner is out”. The usual tests, “call for cool”, “call for heat”, “fan only”, all fail. So the question is “Where is the problem?”. Looking into it, the LED on the control module is out. Checking the 5 amp fuse on the control module shows the puff of smoke. Jumpering the fuse with some light wire and flee clips (don’t forget to turn the power off at the breaker) brought the A/C to life. Off to Walmart to get a replacement fuse. The fuse is the same kind used in older autos with flat lugs. Walmart had 10, 15, 20, 30 in that still 5 to a pack. The only way to get 2 5′s was to buy a $16 combo kit. Since I figured it started OK with the jumper on. And the jumper did not feel warm after a couple of minutes, probably not a short. Bought the fuses and put the correct value 5 amp in to replace the jumper. (Don’t forget to turn the power off at the breaker).
My son’s car and my wife’s car use the new style fuse with pointed lugs.
My daughter’s car and my car use the old flat lug style. Hopefully, I will still have the same set of fuses unused when the cars need to be replaced.

Moral: Don’t Panic. Check the on-board fuse before you call an expensive service-person..

My wife mentioned that there was power surge that I did not notice since my laptop battery covered for the loss of public power.

By the way, the cool weather came in for the Labor day Weekend and we have had the windows and doors open since Saturday.

Furman and Scottish Games

00:00 2 September, 2010

I opened the Summer issue of the Furman alumni magazine only to find a picture of my neighbor. (Unfortunately, the webmaster cannot keep up with the print publication and and there are many broken links besides). I would post links to the pics but cannot. Please make do with this scan.

John Burton (left) explains the details of the Austin-Healey 100 engine.

John Burton (left) explains the details of the Austin-Healey 100 engine.

GTKmm Quick Start

11:53 15 August, 2010

I got the notion to learn something about GTK and review my C++. I have recently upgraded to Ubuntu 9.10 so some of the things I had before are gone.

Before you start, you will need libgtkmm-2.4-dev (version 1:2.18.2-1) installed.

When you install it should also call for

libcairomm-1.0-dev (version 1.8.0-1build1) will be installed
libglibmm-2.4-dev (version 2.22.1-2) will be installed
libpangomm-1.4-dev (version 2.26.0-0ubuntu2) will be installed
libsigc++-2.0-dev (version 2.0.18-2) will be installed

You may wish to install
gtkmm-documentation (version 2.17.4-0ubuntu1) will be installed
libglademm-2.4-doc (version 2.6.7-2) will be installed
libglibmm-2.4-doc (version 2.22.1-2) will be installed
libgtkmm-2.4-doc (version 1:2.18.2-1) will be installed

At that point, you can copy and paste the example code found on Wikipedia.

In order to follow the example literally, you will need to save each of the text files as the name indicated in the first line comment into an empty directory. Start a command line window and switch to that directory. Then the command given in the example should work.

If you copy and paste the g++ command you will get it right. If you type it, the “`” things are in the upper-left on most keyboards under the tilde (~), not a single-quote (‘)

me@home:~/Projects/gtk/hww$ g++ *.cc -o example `pkg-config gtkmm-2.4 –cflags –libs`
me@home:~/Projects/gtk/hww$ ./example
Hello world
me@home:~/Projects/gtk/hww$

HelloWorldScreenshot

Soul of the Tango

22:09 11 August, 2010

The music of Astor Piazzolla. In case you had not guessed, my favorite Yo-Yo Ma out of half-a-dozen Yo-Yo Ma Cd’s. Cello, bandoneón, piano, guitar. A pretty woman and a little wine are the only things that can add to that.