Monday, January 20, 2014

Fixing Ubuntu 2014

A new year, a new machine, and some new fixes needed to make a stock Ubuntu/Unity machine usable. Unfortunately, the steps I worked out in http://all-underscore-one-underscore-word.blogspot.ca/2012/09/fixing-ubuntu.html aren't sufficient. For one thing, when you turn the machine on there's no button to bring up a terminal window. On a Linux box. Because we all know that Ubuntu Linux is going to replace Windows and OSX, right on the desktop, so there's no point catering to the developers.

Thanks, guys.

Here's how I spent an afternoon this year making the system usable again.

1. There's no top-level Application menu, no Terminal icon, no way to start work. So you need to click on the vortex-ilke icon on the top, type "Terminal" in the search bar, and at least get something that will let you interact with the system more deeply than the average subway commuter Canonical seems to think is their typical customer.

Right-click on the launcher icon for the Terminal, and choose "Lock to Launcher"

2. There's now a Mac-like global menu, because separating the menu from the app is so much cooler than doing it the way Windows and all the *ix systems have been doing it since their GUIs came on board some time in the '80s. Apple got it wrong.  According to  http://lifehacker.com/5887462/how-to-disable-ubuntus-annoying-global-menu-bar this works:

sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt

sudo apt-get autoremove appmenu-{gtk{,3},qt} # if you hate typing

But I didn't see any change. This will need work.

2.1.
sudo apt-get remove indicator-appmenu
 
and reboot.

3. - 6. I'm just running gnome-panel on login now, and that brings back the top-level menu when I log in with the ubuntu theme.  No more fussing around.

7. sudo apt-get install openssh-server

8. sudo apt-get install nfs-common

9. sudo apt-get install gconf-editor

10. Nothing here, just getting back in sync with the previous post.

11. There is no metacity in the new gconf-editor. Our first big loss.

12.  It's "81overlayscrollbars" now.

Just as an aside, this process really sucks. It's like everything the industry figured out about UIs in the '70s and '80s has been totally tossed overboard. It's like the designers today look at how their grandparents and pre-kindergarten kids use tech, and they think that's good.

In other words, if you accidentally wipe away your top menu bar, here's how to restore it:

dconf reset -f /org/gnome/gnome-panel/
killall gnome-panel
 
13. sudo apt-get install subversion git mercurial
 
We might need bazaar and cvs later on.

14. If you can, copy /etc/fstab to your new machine to get the mount points.

And once again, copy everything over and enjoy the progress.

Monday, July 1, 2013

Telegraph Avenue: Hear the Music

So I didn't enjoy this book as much as Chabon's two previous novels. I never really bought into his characters, and while I certainly appreciate how the book is a nostalgic view of the 70s from an early 21st-century vantage, it didn't work for me. Maybe because I grew up in a corner of North America basically untouched by blaxpoitation films (Shaft played here, and that could be about it). But his characters' reminiscences about T'challah and Luke Cage were less believable than Jonathan Lethem's take on them in Fortress of Solitude (both authors ignoring the fact that if you were collecting comics in the 70s, the Luke Cages always ended up in the dime piles along with the "horror" comics, Red Sonya, the DC Kirby stuff, and the Atlas "instant collectors' items").

But Telegraph Avenue is much more about the music of those times than the films or comics. It's been a long time since I've taken notes while reading a work of fiction, but I decided to compile the list of the jazz/soul/funk works mentioned in the book (often with the label and publication year), and track as many as possible on YouTube. I skipped the obvious garage sale junk that got a few mentions (like Andy Gibb) as well as the prog rock I realize many brothers were listening to back then, but then, so was I, so no point to point to "Close to the Edge" or "Brain Salad Surgery". Maybe those aren't getting played on your local classic rock station, but they were back when that station was playing those tunes the first time around. With the exception of a few obvious well known jazz albums, most of this music was new to me, and worth discovering. As for the book, I'd easily recommend starting with the Kavalier and Klay, and Yiddish Policemen books. But for fiction looking back at the 70s (and early 80s), I enjoyed Lethem's Chronic City and Fortress of Solitude more than Chabon's. I might as well mention that an acquaintance recently recommended Tom Perrotta's "Little Children". Chabon's prose, even if I wasn't enthralled by the subject material, was a sufficient antidote for Perrotta's ready-for-USA-Today style.

So here's the list in a big honking table. Enjoy. If anyone finds that American Pie by Groove Holmes, please drop a link.

.
ArtistAlbumSongLabelYearPageLinks
.
Donald ByrdElectric ByrdBlue Note 19701https://www.youtube.com/watch?v=oyhAo2MgHrU&list=PLB2BD59B6FC79C598
.
John Hammond1https://www.youtube.com/watch?v=x4tJiyU_gjY
.
Melvyn Sparks2https://www.youtube.com/watch?v=-B6dt0hXZY4
.
Charles KynardWa-Tu-Wa-ZuiPrestige19712https://www.youtube.com/watch?v=TWYzGWcNIT4
.
AirtoFingersCTI19722https://www.youtube.com/watch?v=aareORu2UO8
.
John ColtraneKulu Se MamaImpulse!19679https://www.youtube.com/watch?v=ryMLO7Ed4d8
.
Miles DavisOn the CornerColumbia19729https://www.youtube.com/watch?v=czZG7Ui6c9A
.
Joe BeckNature Boy196929https://www.youtube.com/watch?v=Cs7QC8i2yyU
.
Jijmmy SmithLive in IsraelIsradisc197331https://www.youtube.com/watch?v=R99VnAwZepM
.
Stan Getz & J. J. JohnsonLive at the Opera HouseVerve195734https://www.youtube.com/watch?v=ZqIzEI-ClNY
.
Eric DolphyOut ThereNot the 1970 Love compilation?196040https://www.youtube.com/watch?v=z-n6KzsFwx8
.
Roy MeriwetherNubian Lady40https://www.youtube.com/watch?v=h8ylnRCssII
.
Sun RaSoul Vibrations of ManSaturn Research197641https://www.youtube.com/watch?v=zoLvKe4kVMw
.
William DeVaughnBe Thankful for What You GotRoxbury1974110https://www.youtube.com/watch?v=KDTXljIqxRE
.
Lamberdt Hendricks & RossLi'l Darlin130https://www.youtube.com/watch?v=UwycoKhmC7s
.
Groove HolmesAmerican PieGroove Merchant1974133
.
Grover Washington JrInner City Blues148https://www.youtube.com/watch?v=xBhYRq6U4bk
.
James BrownFunky DrummerKing1970157https://www.youtube.com/watch?v=dNP8tbDMZNE
.
Minnie RipertonCome to my Garden1970187https://www.youtube.com/watch?v=zYALC79Xm48
.
Miles DavisIn a Silent WayColumbia1969194https://www.youtube.com/watch?v=9NEd3zUzEyU
.
ManzelMidnight ThemeFraternity1975227https://www.youtube.com/watch?v=RRjjmBB_SSs
.
Booker T & the MGsMelting PotStax1971274https://www.youtube.com/watch?v=Rq4FFzDP8Ms
.
Roxanne ShanteLive on StageBreakout1989274https://www.youtube.com/watch?v=a2esoCbbu0w
.
Bad MedicineTrespasser393https://www.youtube.com/watch?v=nC5sodEn0OE
.
John ColtraneA Love SupremeImpulse!1965414https://www.youtube.com/watch?v=4H07OztoKgE

Thursday, September 27, 2012

Fixing Ubuntu

Finally moving from Fedora to Ubuntu, I'm baffled at this "Unity" interface. Does all new software assume we're all using tablets and phones? Here's how to get the system back to a developer-friendly desktop system.
  1.  sudo apt-get install gnome-classic-fallback
  2.  sudo apt-get install emacs
  3.  log out
  4. at the login screen click on the selection knob and choose "Gnome Classic"
  5. log in
  6.  Applications/System Tools/Preferences/Main Menu
    1. Remove Emacs from  Accessories
    2. Clear everything from Games
  7. Alt-Windows-right-click on the top menubar
    1. Add to Panel...
    2. Application Launcher...
    3. Select whatever items you want to have in the menubar
  8. sudo apt-get install openssh-server
  9. sudo apt-get install nfs-common
  10. sudo apt-get install gconf-editor
  11. gconf-editor
    1. open apps/metacity/general
    2. click on "button layout"
    3. change to "menu:minimize,maximize,close"  (same as Windows)
    4. press OK
    5. Still in the editor, open apps/metacity/global_keybindings
    6. right=click on "run_command_terminal", select "Unset key".  This lets you use the default binding for Tabhunter in Firefox.
  12. Now fix those annoying popup scrollbars:
    1. sudo vim /etc/X11/Xsession.d/80overlayscrollbars
    2. export LIBOVERLAY_SCROLLBAR=0
    3. log out and back in
  13. sudo apt-get install subversion
  14. cd /mnt && sudo mkdir <nas-endpoint1> <nas-endpoint2> ...
  15.  sudo vim /etc/fstab
    1. Add entries like this:
    2. nas:/data/endpoint1 /mnt/endpoint1 nfs rw,hard,intr 0 0
  16. Restore all your backed up files and get back to work

Tuesday, July 10, 2012

Is Firefox causing the sleeping MacBook problem?

There are some things in the tech world I seize on right away, and others I refuse to upgrade on. Firefox 3.6 was one of those I stuck with. I had tried the FF beta, but found its tab handling overbearing, and refused all updates. And then a couple of months ago, Mozilla made Firefox v. 11 a "minor update" for 3.6, and I went through a quiet upgrade. I put up with the tabs, got used to the new interface.

And that was, coincidentally, when the problems started. I'd take out my laptop to write a blog post (or maybe something else), but it wouldn't start. I'd press the start button to wake it out of hibernate mode. Although with a 90% charge, it had no business going there. But then half the time the Mac would go through a full restart. It's a three-year-old MacBook Pro. Not brand new, but shouldn't be entering senility yet.

Yesterday I saw a post on this on a now-forgotten feed. The conclusion was the "check for updates" feature of all programs. The only one I always run that I can think of that does this is Firefox. So I went into Preferences/Updates, chose "Never check for updates", and we'll see if that fixes the problem.

Thursday, June 28, 2012

Consistency in Software: Case #3841-22

chrome $ unzip --help
UnZip 5.52 of 28 February 2005, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
# 2 dozen lines of helpful info omitted

chrome $ zip --help

zip error: Invalid command arguments (no such option: -)
chrome $ 

There's a very logical explanation for this, similar to why certain words in English are spelled in apparently arbitrary, inconsistent ways. For
example, while it might seem maddening to remember which adjectives end
in "able" and which end in "ible", all you have to remember is whether
the Latin word the adjective is derived from ends in "abilis" or "ibilis".
Another useful cue,which I can't come up with a concrete example for, is
knowing in whch rough century a word entered the English language. Knowledge
of the fashion at the time could help remembering whether a trade, for
example, would end in "er" or "or".

It's similar in software. Sometime around the turn of the century the GNU
Coding Standard calling for "--help" for command-line help options was
adopted nearly universally. Before that common ways of accessing help
were "-h", "-?", or programs often left the help to the man page[2].

The link program I run has a 2005 copyright on it, while the zip program
was last compiled in 1999.

So obviously to be a fluent user of a system you need to know when the
various tools you use were last compiled. Chances are, if you knew that,
you wouldn't need the online help -- there's enough in your head already.

Any program that supports "--help" and doesn't have a "-h" option, and is
unlikely to ever tie it up, might as well map "-h" to "--help". Doing
otherwise leaves the impression that the user is an incapible moron and
software is inflexable.

[1] http://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html#Command_002dLine-Interfaces
was dropped

[2] http://www.faqs.org/docs/artu/ch10s05.html

Vancouver's Bike Lanes: We're Eating Airplane Food


One of the first times I saw Father Guido Sarducci was on Letterman, back in the days when Dave was funny ("hip" and "ironic" were big terms in the 80s, because so few shows were), Sarducci was asking why airplane food was so bad. (Yes, for my two readers who weren't around then, airlines used to serve passengers real meals on flights over 3 hours long. With metal cutlery and real plates. What could they have been thinking???) Anyway, he said if you were trapped in a well for a week, and after the rescuers pulled you out and offered you a typical airplane meal, you'd think it was pretty good. But otherwise, no.

Tonight's talk by Mikael Colville-Andersen on bicycle design for cities reminded me of the Sarducci routine. Andersen's talk was entertaining, of course. But during the questions from the audience, someone asked him how he felt about Vancouver's bike network. We had already seen the slide of the broken chair which can still support a grown man standing on it, just like the bike infrastructure. But with that question, Andersen got serious, and took the city to task for ignoring the "best practices", just copying and pasting, and instead built things like two-way separated lanes which Copenhagen had tried and tossed out 20 years ago.

This isn't the first time I've heard something like this. But after spending decades in various North American cities dodging errant BMWs and other sundry 4-wheeled scum while trying to get from point A to B, I was like that guy in the well, just happy to have a few crumbs of separated bikeways tossed my way. And forgetting how it should be.

Now that we know that one separated lane on the Burrard Bridge doesn't have morning rush hour traffic backed up 16 blocks -- it's more or less like it was before the lane change -- it's time to put in the separate northbound lane and return the east sidewalk to the pedestrians.  I personally don't mind the two-way lanes on Hornby and Dunsmiur, but I can see how less-seasoned riders might. If they need to be included to meet the city's goals for 2040, then finish the job and put in dedicated one-way lanes on Richards and Georgia to complement the other two.

But then I also used to make my own lunches back in elementary school with Venice Bakery's airline-style buns. Shows you what people will put up with when they don't know any better.

Andersen's talk will probably find its way online somewhere, but you can hear the gist of his talk at Wednesday's interview on The Current

And if anyone can find the Sarducci sketch I mentioned, please let me know.  I vaguely recall he read some of his correspondence with the airline in question, where they apologized for the meal that didn't meet his expectations, and he said that he wasn't referring to a specific meal. He was referring to the Platonic notion of an airplane meal (which is now more of a Buddhist ideal).

The Fridays sketch is just a placeholder. Think of it as an incentive to get someone to find the clip in mind. I need to refresh that 30-year-old memory.

Sunday, June 24, 2012

Salt Spring: Maybe the best ride I've ever done

It's been a typical late-June Vancouver weekend, I'm exhausted, but there are some people waiting to hear how the Salt Spring/Velo Village (those would both look better as single words, but I'm not going to quibble with typographical conventions here) ride went. A few words first, then a few pictures.

Background: as a prelude to the Velo City conference in Vancouver this week, some people I never got to meet organized a mini-conference on rural cycling on Salt Spring. The highlight was a first-time ever bicycle-only ferry from Swartz Bay (north of Victoria) to Fulford Harbour, at the south end of Salt Spring, followed by a 15km ride on the second route to Ganges, with no northbound car traffic to deal with.

I haven't been to the Gulf Islands a lot, but everytime I've been there I realized it would have been nice to cycle, but you have to deal with a combination of narrow roads, steep hills, plenty of curves, and, of course, cars. The shoulders are thin or non-existent. So when I heard about the ride, I realized it was a great opportunity to truly enjoy one of the islands.

But June weather in this part of the world can be unpredictable,  and this year's was unusually wet. The weather forecast wasn't looking good, with "rain" on Friday, and "showers" on Saturday. When they say "rain", they're talking about the kind Ken Kesey described so well in the opening chapter of Sometimes A Great Notion. You want to get a towel and sit in front of a hot air register after reading that chapter.

But on Friday the next day's forecast for Vancouver and Victoria was just showers, and light showers and sun for Salt Spring. I called Heather at the must-see must-buy-everything Salt Spring Bakery, to see what was happening there. "It's raining right now". Obviously that meant the rain would pass, so I asked her to save me one loaf of Apricot-Almond, and one of whatever she was making with ginger, booked my Velo Village ride ticket, and figured out how to fit everything else in for the weekend.

Another thing about June in Vancouver, is a lot of big events happen then, under some assumption that everyone leaves town in July and August. Some people do, but the exodus is miniscule compared to places like Toronto or Montreal, to name the places I'm familiar with (when I lived in Ottawa everyone was either starting out or had young families and not at the cottage-buying stage of life; don't know if they are now).  So among the things going on this weekend were also the annual MadSkillz juggling and-other-stuff festival, Maker Faire, Greek Day (lemon-lamb souvlaki...), the jazz festival, a family birthday celebration. Plus the usual other things to do every weekend.  But this bike ride might be a once-in-a-lifetime event.

So I went to sleep Friday night listening to heavy rain, woke up around 5 AM (before the alarm -- how did that happen?) listening to incessant drizzle, got everything in the car, and headed to Tsawassen, and saw a few dozen cyclists pulling gear out of cars in the parking lot and getting ready. Did I mention that about 5 miles before the parking lot my wipers started complaining that they had nothing to do?  One of the best sounds you can hear when setting out on a ride.

Enough words, here are some pictures…

My attempt at capturing pure fog

Normally there are mountains in that background, gives you a better idea of the weather we were looking at.

Check-in for the bike ferry

Best ferry waiting line ever

Boarding

Entertainment provided by the Fabulous Flakes

All that space…

Getting ready to ride

First hill out of Fulford

Locals singing, dancing, and drumming at the first Encouragement Station

Bike art, one of about 100 scattered over the island

Toughing it up the main hill

And getting closer to the top

Island forest bliss

This hill was nothing compare to the previous one

Salt Spring's answer to Slugging

Red Sara and Lori K, with unidentified happy guy behind them.

90 minutes to go up (with stops), maybe 10 minutes to get to Ganges. Here's the bike park.

It's Salt Spring. Custom goat cheese at the market

Custom chocolate

Ghost artbike on the way back
 A perfect day for riding. I learned that I can deal with big island hills way more easily than I can deal with cars. And did you notice what's not in the pictures (not that I realized it when I was taking them): hardly anyone was wearing the full boat cycling gear. Some cycle shorts, but the only other synthetics were typically for dealing with rain, not resistance. Most of the people were out for a fun, relaxing, enjoyable ride (given a few steep hills). And got it.

I don't know when Salt Spring, or any of the other Gulf Islands will be running a ride like this. But does want to do the Chilly Hilly next year outside Seattle?