Restore phone orientation sensing

Last week, my Samsung Galaxy Light SGH-T399 phone with Android 4.2.2 stopped responding to orientation changes. When I rotated the phone from vertical (“portrait”) to horizontal (“landscape”), the display no longer rotated accordingly. In vain I clicked on the Screen rotation button.

sensor test screens markedupI feared that I’d physically broken the orientation sensor when I dropped the phone the previous day.  I loaded a rotation app, but found that it was a pain to use.  Eventually I discovered (thanks, Google) that by typing an odd sequence of keys, I could peek beneath the operating system and directly examine the data streams from the sensors. When I did this, the phone’s screen rotation function returned.

Here’s how:

  • Run the phone app, which displays the dial screen.
  • In sequence, press the *#0*# buttons on the dial screen.
  • A hardware test screen with 14 buttons should appear.
  • Tap the Sensor button
  • You’ll see the numeric outputs of the Accelerometer, Proximity, and Magnetic sensors
  • Press the IMAGE TEST and Graph buttons for the Accelerometer. The displays should respond to movement of the phone.
  • Cross your fingers
  • Restart phone

That did the trick for me. Your mileage may vary.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

We need more CO2

Next week, the Paris Climate Change Conference begins. It’s basically a waste of time and money because anthropogenic global warming is an imaginary problem. One hidden agenda is the transfer of wealth from developed nations to less developed nations. Another is the transfer of wealth into the pockets of scam artists such as Al Gore. I wish that the conference would listen to, among others, Patrick Moore and Freeman Dyson.

Patrick Moore, a co-founder of Greenpeace, spoke last month about climate change. Here’s YouTube’s video record of his presentation:

Dr. Moore argues that the earth’s climate has ALWAYS changed, and that carbon dioxide is good for all life on our planet. Broadly speaking, his argument agrees with that of eminent mathematician and physicist Freeman Dyson, who’s studied global climate since the 1970s, while a professor of physics at the Institute for Advanced Study in Princeton.

I don’t know much about Dr. Moore, but I’ve long admired the independent thought of Freeman Dyson. When he speaks, I listen (and watch):

Freeman Dyson’s observations:

  • “CO2 is so beneficial . . . it would be crazy to try to reduce it.”
  • “Probably it does us good; the Earth will get greener as a result.”
  • “The climate models are no good for prediction.”

In a discussion about global warming stupidity, Professor Dyson confesses,

E-Mail 4/9/15
Dear Norman Page,

Thank you for your message and for the blog. That all makes sense.

I wish I knew how to get important people to listen to you. But there is not much that I can do. I have zero credibility as an expert on climate. I am just a theoretical physicist, 91 years old and obviously out of touch with the real world. I do what I can, writing reviews and giving talks, but important people are not listening to me. They will listen when the glaciers start growing in Kentucky, but I will not be around then.

With all good wishes, yours ever,
Freeman Dyson.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

New movie about Alan Turing opens next month

image(Originally published October, 2014) The new British film The Imitation Game illustrates the remarkable life of mathematician and computer science pioneer Alan Turing. It will open in theaters on November 21.

This 30-minute video interview with the film’s director Morten Tyldum, actors Benedict Cumberbatch and Keira Knightley, and screenwriter Graham Moore, is worth watching. I can’t wait to see the movie. I’m happy that the screenplay is based on Andrew Hodges’ definitive biography Alan Turing: The Enigma. (Hodges is a mathematician, so if you’d like, he can walk you through Turing’s reasoning based on number theory that led to the routine decryption of messages that were encrypted by the German Navy’s Enigma machines.) Hodges’ biography is a wonderful book that I use as a reference.

Screenwriter Moore describes Mr. Turing as “the outsider’s outsider”. Director Tyldum calls The Imitation Game “a story about outsiders, those who are different.” “The mission of the movie is to celebrate uniqueness — individuality.”

Watch the movie trailer.

Update, 28 Dec 2014 Mathematician Simon Singh saw the movie and quipped in a Science Friday interview that it’s “filled with factual errors, full of flaws, and in that respect it’s a terrible, terrible film” but in other ways it’s a “brilliant, great film”. According to Singh, the movie errs in dozens of details. Notable errors:

  • At Bletchley Park during WW2, Turing is shown building a general purpose computer dubbed “Christopher”, which supposedly was used to decipher scrambled German messages that had been encrypted with the Enigma machine. This is wrong. Turing did create the algorithms for, design, and participate in the construction of multiple dedicated electromechanical single-purpose calculators that were used to decipher Enigma-encrypted messages. These machines were called bombes.
  • In 1952, through detective work, the Manchester police discovered that Turing was a homosexual. In fact, Alan’s flat was burgled by, he suspected, a homosexual paramour. Outraged, he reported it to police, and mentioned that, yes, he had had a few trysts with the suspect. The police charged him with “lewd and indecent acts” (the same crime that had put Oscar Wilde behind bars a few decades earlier).

I view these errors as serious flaws, but I suppose that Hollywood feels a need to juice up the facts.


November 2015: I’m not going to watch this movie. Reviews by knowledgeable people who’ve seen it decry its many inaccuracies. Just one of many negative reviews on IMDB:

Another Weinstein production that is obvious and sad. Pushing the main Hollywood agenda of homosexuality. Sad and practically comical A very demeaning exploitation of the real heroes and suffering in WWII and woe is the lone gay guy losing the battle to the evil empire of the moral world. Save your money. The acting was made trite by the twisted story and the depth was a deep as a sippy cup. Really disappointing but of course will get tons of attention due to the publicity budget from this group. This once again confirms that you can no longer see a big name production without expecting the story to be trivialized and contain the jaded view of the liberal left who is in a ship going down.

 

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

“He’s a child.”

Vladimir Putin, overheard in conversation with colleagues at the recent G20 meeting, referred to an image of Barack Obama on a video screen and laughed, “He’s a child . . . he’s a child!”

Barack ObamaIndeed.  West Africans use a simplified version of English that includes nouns that succinctly describe personalities.  I’ve already identified Mr. Obama as a confusionist.  Another apt west African tag is small boy.  (In contrast, a true leader is a big man.)

I was puzzled at first by Obama’s refusal to utter the phrase “radical Islam”, his seeming lack of empathy for the victims of Friday’s massacre in Paris by ISIS, and his insistence that the US accept tens or hundreds of thousands of Muslim refugees from Syria.   It does though make sense when we listen to his own words:

The future must not belong to those who slander the Prophet of Islam.

The sweetest sound I know is the Muslim call to prayer.

We will convey our deep appreciation for the Islamic faith, which has done so much over the centuries to shape the world — including in my own country.

As a student of history, I also know civilization’s debt to Islam.

Islam has a proud tradition of tolerance.

. . . etcetera

Putin has it right.  Obama’s reign of error is that of a child — a narcissistic small boy avenging his father.  Such a neurotic character served Shakespeare well, but is unfit to be president.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

Interval training

When a friend recently asked about my swim workouts,  I told him about interval training.  A swim champ taught me interval training in the 1980s.  It works.  It develops both speed and endurance while allowing you to concentrate on technique.  I use interval training for my swim workouts.  You can use interval training for your favorite sport.

Wikipedia has a simple definition.  About.com has a more complete explanation.

Here’s what I do1:
swimmer 150w blended

I use “fixed” intervals — intervals of a fixed duration.  I swim ten 50-yard laps on one minute thirty second (1:30) intervals.  If I swim hard I can come in on less than 0:55, but then I’m knackered and can’t recover in time for the next interval.  If I swim slowly, and come in on 1:15, I won’t have enough time to rest.  If I swim at about a 1:00 to 1:03 pace (that’s about 70 to 80 percent of full throttle), I can do ten intervals, maybe even 15.  Mind you, I’m gasping for breath by the last few intervals, but that’s a good thing.  Supposedly that’s when your body really benefits.  This ordeal requires about fifteen minutes.

stopwatchI like using a clock for intervals because it gives me an objective measurement of my performance on each lap.  When a 1:30 interval becomes easy, I’ll decrease it to 1:25, then 1:20, and so forth.  Or, I could increase the length of each lap to 75 or 100 yards (which would require me to increase the number of seconds in each interval).

I round out my workout by using a kickboard for alternating hard and easy kicking laps, and a pull buoy for freestyle pulls that strengthen the upper body and allow me to concentrate on breathing.  I don’t swim these against the clock.  I finish with some easy slow laps.

To get started in your sport — any sport — you can monitor your pulse after each interval.  You might see your pulse climb to 140 or more2.  (The younger you are, the higher you can push your pulse.)  Let it drop to 100 or less before beginning the next interval.  This will provide an idea of what sort of fixed interval works for you, for any particular exercise.

(I suppose that variable duration intervals — that is, always resting for thirty seconds regardless of how slowly or fast you swam/ran/whatever — a “fixed rest period”  — would be better than nothing.  I think, though, that fixed duration intervals, when adjusted to suit you, ensure that you always work hard on each lap.)

During the exercise portion of each interval, aim for an effort of about 60 to 80 percent of full throttle.

Once you’ve arrived at an interval that works for you, start with just a few repetitions.  Continue this routine for a few weeks until you can do these pretty easily.  Slowly — very slowly, in small steps — bump the number of repetitions up to ten.  Stick with it for months.  Try this routine at least three or four times a week.  Don’t give up.  You will see results.


  1. My times are pathetic compared to a competitive college swimmer.  He or she might swim ten 50 yard laps on a fifty or sixty second interval.
  2. An easy way to roughly measure your pulse is to feel your heart beats on the inside of your wrist or on your carotid artery on your neck.  Count the number of heart beats in ten seconds.  Multiply by six.  Easier (but less accurate): count number of heart beats in six seconds; multiply by ten.Measuring pulse

 

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

Which countries host Internet bad guys?

I’m impressed by the effort to take down Internet bad guys at Project Honey Pot.  Website owners can use Project Honey Pot’s tools to redirect spammers and other misbehaving visitors who appear on a blacklist to a “honey pot” page.  There, continued bad behavior is logged and the naughty visitor receives more demerits that bury him or her deeper in the Project Honey Pot blacklist.

Website owners may choose how many days of good behavior a blacklisted IP address must exhibit before he or she is allowed to use the owner’s website. This allows dynamically assigned IP addresses who behave, to eventually be removed from the blacklist.

Here’s a summary of bad guys who have been trapped by Project Honey Pot, by country (as of 7 November, 2015):

Bad guys, by country
Bad guys, by country, as of 7 Nov, 2015
from Project Honey Pot

If you have a self-hosted WordPress website or blog, you can implement Project Honey Pot by using the http:BL WordPress Plugin plugin for WordPress. It’s easy to install, and works fine with WordPress v 4.3.1, even though it’s guaranteed to work through only v 3.3.2.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

A new appreciation for Ringo Starr

I’ve referred to (recently retired CEO) Steve Ballmer as Microsoft’s Ringo Starr, because Ballmer hopped aboard the Microsoft express as it was pulling out of the station.  Ringo was hired by the Beatles after they’d apprenticed on Hamburg’s Reeperbahn and were about to conquer the world.  I’ve underestimated Ringo’s talent.

Two short videos on YouTube opened my eyes . . . er, ears. The first:

The second:

I’ve never been especially attuned to anyone’s drumming.  For decades my faves have included Buddy Rich, Gene Krupa, and Keith Moon.  I guess that I’d just not listened closely to all those fab four recordings.  My apologies, Richie.

What about Steve? He retired ten years too late.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

One more reason to hate wireless keyboards

Today, while trying to reinstall Windows XP (I know — it’s obsolete) on an old Dell Vostro 200, the setup failed after I pressed F8 to accept Microsoft’s EULA (End User License Agreement).  I thought that the setup CD was faulty,  but had the same problem with two other setup CDs.

wireless keyboardThen I replaced the Microsoft wireless keyboard and mouse with wired mouse and wired keyboard.  Installation proceeded without hesitation.

If it were my site,  I’d replace all wireless keyboards and mice with wired replacements.

  • Strategy: I plan to install Xubuntu on a second partition on this PC, and allow dual booting to either the default (Xubuntu) or optional (Windows XP) operating system.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695

A tale of two e-commerce platforms

I’ve been developing a few websites with storefronts.  I used Nopcommerce three years ago, and it was impressive in many ways, but its poorly-defined technical support steered me elsewhere.

Two attractive e-commerce offerings with better-defined tech support are Volusion and SquareSpace.  Both offer mobile-responsive templates, and both products include hosting with tech support.

Volusion logoVolusion is more mature, potentially more flexible, and able to handle large volume needs. If you use it out of the box for online sales only, you may not need to write any code. If you need a physical store, you will need at least some HTML, CSS, and Javascript programming skills.  If your pages contain more than just simple paragraphs of text, you’ll need to write mobile-responsive code.  Volusion provides many options for every aspect of a business’s storefront, and its 24/7 telephone tech support is excellent.

Squarespace logoThe “drag and drop” SquareSpace templates allow a developer to quickly place a rudimentary SquareSpace site into production, but I don’t recommend it for sites of more than about twenty pages or a business with complex product inventory or special payment processing needs.  One could quickly roll-out a good-looking modest SquareSpace e-commerce site without writing one line of code.  Just don’t expect to easily expand this simple site into a large complex site, and your payment processing options are limited.  Unlike Volusion, SquareSpace does not seem to offer 24/7 tech support via telephone — only via email.

One beauty of both Volusion and SquareSpace is that you don’t need to host them.  Just pay a modest monthly hosting fee and let them keep your site on-line.  An attractive alternative to both is BigCommerce, but I have no personal experience with it.

Visit my website: http://russbellew.com
© Russ Bellew · Fort Lauderdale, Florida, USA · phone 954 873-4695