Friday, May 17, 2013

Blamed For Doing Its Job

The IRS recently was criticized for scrutinizing certain organizations applying for tax free status.  It seems that organizations that had "Tea Party" in their names received extra scrutiny.

First of all, "Tea Party" generally refers to a political organization.  And the fact is that political organizations are not entitled to tax free status.

Second, "Tea Party" is a reference to a revolt conducted by vandals who were opposed to paying taxes.

So these critics are essentially saying that an organization whose name implies that it's political in nature and opposed to taxes should not be scrutinized when it applies for tax free status?

Huh?

Labels: , ,

Friday, April 26, 2013

How I Got My Computer to Chime

It all started with a blog post by Sacha Chua that made me think, "I bet there's an app for that."  She described how she set up her smart phone to vibrate every half hour.

Soon after, I found Chime Time, by Hyperfine, which turned my tablet into an Aberdeen mantel clock.  And I loved the idea of chimes and bells so much that I also installed Bodhi Timer, by Yuttadhammo, which can be set up as a timer and play a variety of tones, including singing bowl, when the time is up.

Chime Time starts up automatically when Android starts up.  But Bodhi Timer does not, so I start it in the morning.  I might set it to go off every 15 minutes starting at about 7 minutes after the hour (or any 15-minute interval afterwards), or every 10 minutes starting at 5 after the hour (or any 10-minute interval afterwards), depending on when I can remember to do it.

Having bells and chimes sound off every so often reminds me to live in the present.  When I hear the sound I ask myself whether I'm using time mindfully.

However, my wife absolutely hates it.

Anyway, after enjoying this for a few days on my tablet, I wondered if there were something similar that I could use on my work computer.  I didn't feel like running the tablet just to have it make noise.

That motivated me to search on SourceForge, where I found TeaTimer.  But TeaTimer would pop up an alert box at the end of each interval because it was really intended as a timer for steeping tea.  So I decided to write my own in Visual Basic 6.

I wrote a simple application that would simply play a WAV file whenever it was invoked.  I chose chimes.wav from Microsoft Office, although I'm sure there's an equivalent from OpenOffice, as well.  Then I set a job in Task Scheduler to call it every 15 minutes.  There is a special trick to pulling this off, though, because while my program worked fine when invoked interactively, it refused to work when triggered by Task Scheduler.

I found the solution on the Microsoft Support website: http://support.microsoft.com/kb/86281.

Here's the source code in its entirety, comments removed for clarity:
Declare Function sndPlaySound Lib "WINMM.DLL" Alias "sndPlaySoundA" _
    (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public Const SND_SYNC = &H0
Public Const SND_ASYNC = &H1
Public Const SND_NODEFAULT = &H2
Public Const SND_LOOP = &H8
Public Const SND_NOSTOP = &H10
'Here are explanations for the parameters: (removed)
Private Sub Main()
    Dim SoundName$
    Dim x%, wFlags%
   
    SoundName$ = "C:\Program Files (x86)\Microsoft Office\OFFICE11\MEDIA\CHIMES.WAV"
    wFlags% = SND_NODEFAULT ' Or SND_ASYNC
    x% = sndPlaySound(SoundName$, wFlags%)

End Sub

Labels: , ,

Saturday, March 23, 2013

Android Tablet -- a GPS Device Poser

I concede that I was exaggerating a bit when I referred to my new tablet as "a GPS device, RF scanner, MP3 player, eReader, camera, digital voice recorder, hand held gaming device, clock, portable translator...." It's the "GPS device" boast that's questionable.

Well it depends on how you define GPS Device. If it's a merely a device that displays a map and shows you where you are on that map using the Global Positioning System network of satellites, then, yes, the tablet is such a device.

But if you expect the device to allow you to enter a destination and provide real-time instruction on how to get there, along with an reasonably accurate estimate of when you can expect to reach your destination, then the tablet is merely a GPS Device Poser.

On my Nexus 7, directions are provided by Google Maps, which does a very good job of routing. But something called Navigator assumes the role of proving the actual turn-by-turn directions and arrival time.

Navigator works fine as long as you follow the initial route and as long as traffic conditions do not change during the trip. For example, if you start out at home while the tablet has an Internet connection, Google Maps will check the traffic conditions and provide both a route and an estimate of arrival time that's fairly accurate. You have the option of downloading a rectangular map that encompasses the route, too, so you can use Navigator offline.

But during the trip when the Internet connection is missing, Navigator cannot adapt to a traffic problem. Well, that's to be expected, and it's no reason to find fault in the app. The real problem is that Navigator does not recalculate the trip when you deviate from the route.

On my 20-minute commute to work, I can take one of four different major routes, two of which are on state highways, both of which are littered by red traffic lights. So I like to take the back roads, which are scenic and have fewer stops, albeit longer. It's reasonable for Navigator to prefer the state highways. But when I ignore the chosen route, Navigator refuses to recalculate. Instead it provides directions to return me to the point where I went off course. So the closer I get to work via the back road, the longer the trip time. I've seen the 20-minute commute spike up to 1 hour and 45 minutes. And when I finally do come to an intersection with the highway, it will actually direct me in the opposite direction, presumably to reach a way point on it's own route.

Well there are other GPS apps, even free ones, that can provide turn-by-turn directions. Right now I'm evaluating Navfree USA: Free. It does a better job of dealing with my willful disregard of the planned route. But it's a little rough. For example, it fails to give you the first instruction at the beginning of the trip. Also you need to have an Internet connection in order to get directions to an address because it queries Google maps.  (That's not an issue if you've saved your destination as a Favorite.) I'm assuming that the same is true for Points of Interest.  The biggest problem with it, though, is that it will crash after 30 to 40 minutes and need to be restarted.

So alas, I'm not about to give up my Garmin Nuvi just yet.  It would provide real time traffic updates in some areas and serve as a backup to the tablet in the event that I needed to follow a detour.


Edited on 2013-04-13 to add two sentences to the Navfree paragraph.

Labels: , ,

Saturday, March 02, 2013

My Geeky Reward

Recently I took my stash of credit card rewards and, all at once, I bought a GPS device, RF scanner, MP3 player, eReader, camera, digital voice recorder, hand held gaming device, clock, portable translator....

That's one heck of a reward!

Well, if you haven't guessed by now, I bought a tablet.  I suppose "RF Scanner" might've thrown you off, but with the Scanner Radio app, you can turn an Android tablet into a police scanner as long as you're connected to a Wi-Fi network.  Plus you can listen to the goings on of the LAPD1 from the East Coast.

The six $50 gift cards that I bought with $240 of rewards allowed me to pay for the Google Nexus 7 tablet, tax included, plus the two-year warranty extension, which I chose because I was not paying by credit card.  I usually decline such extended warranty plans on the grounds that my credit card offers the same coverage.  But since I wasn't using the credit card to pay for the purchase, and I was saving so much money anyway, I figured I might as well go for it.  Although I do realize that the device might be obsolete before it expires.

Anyway, I love the device.   I found an app that works with my public library's downloadable book collection.  So if I'm in the mood to read Dave Barry late at night, I can use the app to borrow Dave Barry in Cyberspace, for free.


1 Los Angeles Police Department. The radio traffic of the LAPD and that of San Bernardino County was very popular a few weeks ago during the manhunt for Christopher Dorner.

Labels: , ,

Tuesday, October 09, 2012

Earth is 9000 Years Old!

I did not realize until just a few moments ago that our Earth is 9000 years old, and it was created in six days.  So says Rep. Paul C. Broun, a republican from Georgia.  He is a member of a key congressional science advisory committee,  so he must know what he's taking about.

He also refers to evolution, embryology and the Big Bang theory as "all lies straight from the pit of Hell."

http://www.huffingtonpost.com/2012/10/07/bill-nye-paul-broun-science-space-technology_n_1947125.html

Labels: , ,

Monday, September 17, 2012

Presidential Candidates' Answers to the 2012 Top 14 Science and Technology Questions

ScienceDebate.org invited thousands of scientists, engineers and concerned citizens to submit what they felt were the the most important science questions facing the nation that the candidates for president should be debating on the campaign trail.

ScienceDebate then worked with leading US science and engineering organizations ... to refine the questions and arrive at a universal consensus on what the most important science policy questions facing the United States are in 2012.

...We call on the candidates for President to also debate these Top American Science Questions that affect all voters' lives.
http://www.sciencedebate.org/debate12/

Labels: , , , ,

Monday, July 30, 2012

Facebook's Illusion of Privacy

...whatever you post on Facebook, you should just assume that the public can see it, because even though Facebook tries to put in protections and permissions and privacy controls, there’s really no way to guarantee that only your friends can see your data.
http://spectrum.ieee.org/podcast/telecom/internet/stalking-on-facebook-is-easier-than-you-think

Labels: ,