Monday, May 13, 2013

Screenshots in LXDE, Mate, etc.

LXDE does not have a native screen shot feature and imagemagick does a mediocre job of it under Mate (often capturing a region under the window being selected from), and only provides black rectangles under LXDE, so I needed something better. Google quickly led me to scrot, http://pwet.fr/man/linux/commandes/scrot, which works well. Here's my script to capture regions on the screen:

#! /bin/sh
# Time-stamp: <2013-05-13 12:16:50 jdm>
#
# $1 is the directory in which to 
dump the screenshot. Empty 
indicates /tmp.

umask 077

if test -z $1 ; then
  cd /tmp
else
  cd $1
fi

/usr/bin/scrot -s

The above works well, and is much less time-consuming than the menu-driven approach in Mate.

 This post replaces an older one.

Tuesday, May 7, 2013

LibreOffice Alternatives?

I've been growing increasingly frustrated with LibreOffice's brain-dead behavior regarding current working directory. 
  • When I save something, and then want to open something else, it starts over in my home directory rather than remembering the context I'm working in. If I just saved something in a directory, isn't it likely that the next thing I open will be nearby?
  • If in the midst of a save-as, if I decide to change the file type, e.g., CSV or XLS to ODS, suddenly it makes me start over from square one choosing the directory to save in.
Yes, this is only two things (okay, here's three: if I have a region selected in the spreadsheet, enter won't take me out of the area--it's necessary to move to the mouse or arrow keys). My impression is that their UI designers are idiots or simply don't care.

Friday, May 3, 2013

Caja 1.6.1 on Mate 1.6.0 Broken

Broken is a bit of an exaggeration, but Caja ignores locales.

I have LC_COLLATE set to C, but look at this directory listing in Caja 1.6.1:


Under ASCII ordering, 15 should appear first since '1' is before '2'. This is a bug. See also https://martesmartes.blogspot.com/2013/05/locales-and-sort-order.html.

Wednesday, May 1, 2013

Locales and Sort Order

I've been annoyed by Linux behavior regarding sort order for a long while, but today hit my gag reflex when I was editing the wrong file because emacs sorted the directory listing incorrectly. I had changed to the local directory listing, hit down arrow and enter, and was puzzled when the file looked wrong. The file was fine, but it was the wrong file. Who was telling emacs to ignore dots in file name sort order? Annoying.

I need an intuitive sort order, and that is the one given by the ASCII collating sequence. It was interesting, because some applications were getting it right, and some were providing goofy results:
  • Dot should be before letter or digits.
  • Upper case should precede lower case. They should not be intermingled.
  • Digits should be treated as digits, not as numbers. E.g., 10 should appear before 5, since '1' appears before '5' in the collating sequence. The problem here is that someone is trying to predetermine how I name files or interpret file names.
The fix is easy. My /etc/default/locale was just one line. I added the second, logged out, and logged back in:

LANG="en_US.UTF-8"
LC_COLLATE="C"


[  Added 2013-05-02:

  I've got a 64b Lubuntu 12.10/Mate 1.6.0 box that seems to sort files okay with this setting:

  LC_COLLATE="en_US.UTF-8"

  However Caja 1.6.1 still doesn't sort file names correctly.

]

Tuesday, February 19, 2013

"The Bridge," "Bron/Broen"

A British friend turned me on to this as it was very popular when on BBC4. I watched the first four episodes of this Danish/Swedish crime drama on YouTube, and was hooked. Here's a link to Season 1, Episode 1, Part 1. See also the IMDB entry.

No telling when it'll be available in the US, so I ordered it on DVD from Amazon.co.uk, and so now season one is on my Nexus 7 awaiting my next plane flight.

Meanwhile, it appears that FX is preparing a cheap knock-off. I don't call it cheap in that the the budget will be lower, but it appear to be simply a rip-off of the original story line. Typical Hollywood--no new ideas.

In a related vein, This is Massive has uploaded a number of episodes of "Water Rats," so I'll watch those eventually. They were broadcast in the US by MHz Networks, which I had access to briefly. Now that I know region codes are ineffectual, I might go ahead and purchase the DVDs.

Saturday, January 19, 2013

Gravity-Powered Light

What a great idea. Some brits have built a light powered entirely by gravity. The goal is to replace kerosene lamps in Africa and India, and they initially looked at solar, but decided this was less expensive and more reliable. The target cost is $5 for third world end-users, and I suspect with some markup they could sell it elsewhere for emergency and niche use and fund their third world efforts. 

In addition to providing a modest light source, it can power other small devices and (slowly) charge batteries.

Here's a link to the developers' appeal for funding, which succeeded. It includes video.

Here is the NPR story, with text and audio. Or you can simply download the audio.

Friday, January 18, 2013

George H. W. Bush Resigns from NRA

From the New York Times, 1995:

Letter of Resignation Sent By Bush to Rifle Association Published: May 11, 1995 Following is the letter of resignation sent last week by former President George Bush to the National Rifle Association: May 3, 1995

Dear Mr. Washington,

I was outraged when, even in the wake of the Oklahoma City tragedy, Mr. Wayne LaPierre, executive vice president of N.R.A., defended his attack on federal agents as "jack-booted thugs." To attack Secret Service agents or A.T.F. people or any government law enforcement people as "wearing Nazi bucket helmets and black storm trooper uniforms" wanting to "attack law abiding citizens" is a vicious slander on good people.

Al Whicher, who served on my [ United States Secret Service ] detail when I was Vice President and President, was killed in Oklahoma City. He was no Nazi. He was a kind man, a loving parent, a man dedicated to serving his country -- and serve it well he did.

In 1993, I attended the wake for A.T.F. agent Steve Willis, another dedicated officer who did his duty. I can assure you that this honorable man, killed by weird cultists, was no Nazi.

John Magaw, who used to head the U.S.S.S. and now heads A.T.F., is one of the most principled, decent men I have ever known. He would be the last to condone the kind of illegal behavior your ugly letter charges. The same is true for the F.B.I.'s able Director Louis Freeh. I appointed Mr. Freeh to the Federal Bench. His integrity and honor are beyond question.

Both John Magaw and Judge Freeh were in office when I was President. They both now serve in the current administration. They both have badges. Neither of them would ever give the government's "go ahead to harass, intimidate, even murder law abiding citizens." (Your words)

I am a gun owner and an avid hunter. Over the years I have agreed with most of N.R.A.'s objectives, particularly your educational and training efforts, and your fundamental stance in favor of owning guns.

However, your broadside against Federal agents deeply offends my own sense of decency and honor; and it offends my concept of service to country. It indirectly slanders a wide array of government law enforcement officials, who are out there, day and night, laying their lives on the line for all of us.

You have not repudiated Mr. LaPierre's unwarranted attack. Therefore, I resign as a Life Member of N.R.A., said resignation to be effective upon your receipt of this letter. Please remove my name from your membership list. Sincerely, [ signed ] George Bush

Thursday, January 10, 2013

French Quarter Dining, New Orleans

First, a word of caution. Many of these restaurants serve local beers, and several of these beers are good. The menus typically do not show the prices. My experience that $7.50 is the going rate for a craft beer in the French Quarter. Too high? The customer can decide when the information is available.

A second cautionary note: I've been here four days. I've mostly stayed away from Bourbon St. There are doubtless many fine establishments that I have not visited.

Highly Recommended

Cafe Beignet, 334-B Royal Street

Note: they also have a location on Bourbon St, which I never visited.

I ate breakfast here twice, and stopped in one afternoon for my obligatory beignet. Each breakfast I had the western omelette. This consists of a very good western omelette, grits, and two slices of french bread with butter. I had never before had grits, and they were fine, a good addition to the breakfast.

Cafe Pontalba, 546 Saint Peter Street

This is a great location, and I tend to be suspicious of restaurants with great locations. It's across the street from Jackson Square, diagonally across from el Cabildo.

It was pretty quiet when I went in, with a couple people at the bar and four police officers at one table. My waiter may have been the manager or owner; he reminded me greatly of Ed from E.Joseph and the Phantom Heart (https://twitter.com/ejosephmusic). The food was good. I had the pasta jambalaya and enjoyed it. I had an Abita Amber, or three, which I had tried a couple nights before at the Chartres House Cafe. The waiter was attentive and friendly and I was happy there, and left happy. Stepping out of the restaurant and seeing Jackson Square, the Cabildo, the cathedral, and so forth is an experience not available in Baltimore, not by a long shot. Like I said, great location.

Recommended

Chartres House Cafe, 601 Chartres St

Despite their web page, this restaurant is competent with a very good selection of local beers. I had dinner there twice. The first time I had their Taste of New Orleans. It had jambalaya, chicken andouille sausage gumbo, and crawfish etouffee. Very good. The waiter was excellent: he noticed right away when he made a beer suggestion (an IPA or wheat beer--yuck) and I immediately took something else, and then for my second beer he didn't make a suggestion. He was attentive, friendly, and did a great job. For reference, he was young, dark hair, thick dark mustache.

On my second visit, I got a different waiter, young and foppish, and I felt more like I was an obligation of his and less like he enjoyed his job. The beer I had was an English brown ale, the Southern Pecan from Lazy Magnolia Brewing Company in, get this, Kiln, MS. That beer was specifically the reason I went back: I wanted to try that beer; also I'd eaten at Jimmy Buffett's Margaritaville the night before, and didn't want another crappy dinner.

And dinner was fine. But with this second waiter, after the first beer and the main course, no second beer, no desert, etc., I was ready to go. He'd satisfied his obligation, and so had I. I should say the the maitre d' recognized me when I appeared, and was very welcoming. 

Not Recommended

Tequila Blues Mexicajun Catina[sic], 1200 Decatur St

Okay, Mexicajun? I couldn't resist, and, besides, I needed lunch. However, had I walked another block or two SE, I would have been at the French market, and had no problem finding a better place. But maybe not something more interesting-sounding.

I had a shrimp meal with some green sauce on it. The side of grilled squash was good, but the shrimp was mediocre on first bite, and then many, many bites of mediocre sameness. Oh well. I've eaten at a Mexicajun restaurant.

Jimmy Buffett's Margaritaville, 1104 Decatur St

I ate at the bar, and had a pair of slightly different frozen concoctions, neither of which was remotely special. The meal had started to cool by the time I got it, or maybe it didn't come out of the microwave hot. There was a singer/guitarist who was good. Sitting at the bar was possibly a mistake since my back was to him, and I would have enjoyed the show more had I seen it.

Sunday, January 6, 2013

Buying MP3 Music: Amazon Cloud vs. Google Play

I just bought Tal Ben Ari's Sheelá on MP3 from Amazon. I've been buying most of my music lately from the Google Play Store, but strongly dislike the limited number of downloads they allow a purchaser. Purchasers do buy the MP3s, right? And, no, I don't care about any fine print since the e-mail receipt which Google sends clearly states that the track is purchased. Quote: You've purchased a track on Google Play. 

The reason I switched to Google from Amazon was that Amazon no longer supports Linux, and forces Linux customers to download songs one at a time. PITA for albums.

So I can purchase the MP3s from Amazon and then download them to my Android. I probably want them there anyhow, and, of course, backed up in the cloud. Then I can sftp them to my desktop machine. Amazon doesn't get in the way, and the Google bean counters don't get involved.

An issue that may have me reconsidering the above is that Google says they have Tal Ben Ari's Sheelá at 320 kb/s, whereas the Amazon MP3s vary from 203 kb/s to 230 kb/s.

Note to Android users: AndFTP is a wonderful app, allowing me to connect to my desktop at home and a server at work wirelessly.

Thursday, January 3, 2013

Yet Another Annoying New Gmail "Feature"

In the past few days on a number of occasions I've been reading e-mail messages that ended abruptly. They ended at "[Message clipped]  View entire message." This adds steps to reading e-mail: noticing the truncation, clicking on it, and then closing the resulting new tab.

Not helpful. I still wish Google would hire someone with expertise in HCI, user interfaces, user experiences, etc., rather than stumbling along toward a higher entropy state. Their algorithms folks are great, but their UI folks truly suck.

Google on Windows

Thomas Bushnell at Google quoted by Steven J. Vaughan-Nichols in The truth about Goobuntu: Google's in-house desktop.

 Ubuntu Linux Googlers must ask to use Windows because Windows is harder because it has 'special' security problems so it requires high-level permission before someone can use it.” In addition, “Windows tools tend to be heavy and inflexible.”

Pretty much what everyone knows anyway, or at least anyone with experience outside the Microsoft ghetto.

Monday, December 17, 2012

Amusingly Unacceptable Android App

I decided to play around with an office app on the Android, and Kingsoft looked good with over 45k reviews and an average review of 4.6 The terms of use had one agreement with Google Analytics. The other is shown below:

I don't think I really need this app after all.

Wednesday, December 12, 2012

Improve Your Hosts File for Christmas

Opera has a nice feature that one can selectively block advertising. When I do my daily once-over of web sites I visit, I do it in Opera, and then delete all private data. However, for whatever reason, ads from bannerfarm.ace.advertising.com regularly escape Opera's block content feature. However, this site violates my if it moves or makes noise, kill it policy. Adding this to the hosts file does the trick:

127.0.0.1 bannerfarm.ace.advertising.com
127.0.0.1 ace.advertising.com
127.0.0.1 advertising.com
127.0.0.1 www.advertising.com
127.0.0.1 advertising.vip.aol.com
127.0.0.1 advertising-vip.egslb.aol.com

Sunday, December 9, 2012

Serious Deficiency with Caja 1.4

Caja 1.4 is missing the media properties tab. I've installed Thunar and thunar-media-tags-plugin and this provides the functionality, but with a clunky interface. With Thunar, I can right-click a file and choose the audio tab, but thre is nothing useful there other than the properties button. Clicking properties provides one with actual audio properties. 

I saw a suggestion that installing nautilus might be an alternative, but it looks like that causes zeitgeist to also be installed, which is not something that belongs on a supposedly lean, supposedly somewhat secure desktop.

Nice Little Improvement in LibreOffice 3.6.2.2

Now when adding a word to the dictionary, LibreOffice just adds the word, without forcing the user to choose dictionaries. Going back to Star Office, there were usually two dictionaries by default and the choice of which to add a word to seemed arbitrary. Then for the past few years, the default configuration had just one dictionary, but still forced the user to choose the only choice. Now, with just one choice, LibreOffice assumes the only choice is the one the user wants. Yes. Keep the common case fast.

It's still not a very good dictionary application, being hopelessly bad at offering possible corrections. Ispell is very good. No other dictionary comes close.