Thursday, September 22, 2011

Ubuntu Unity: a Guide for the Perplexed

After a little time with Unity, I've decided it really is simple to work with. If you can figure out how to get to the command line (I had to Google it), start with the following two commands:

sudo apt-get install gnome  // kde is fine too
sudo apt-get remove unity

Log out, and then back in, and you should find a much more usable system.

Saturday, September 17, 2011

LinkedIn Privacy Issue

Look in your LinkedIn account settings. Under Groups, Companies, and Applications there are two data sharing options, Turn on/off data sharing with 3rd party applications and Manage settings for LinkedIn plugins on third-party sites. These were enabled in my configuration, so very likely LinkedIn has decided to treat all users, by default, with little respect. This is an opt-out intrusion. I suggest people opt out.

Wait, I'm on LinkedIn and I'm talking about privacy?

Thursday, September 15, 2011

Slash, Backslash, Whatever

Occasionally someone in the media will read a URL and say "backslash" for the path separator, which is obviously wrong. Tonight I was on the phone with a Discover Card operator, and she invited me to visit www.discovercard.com\giveaway. I told her she meant slash, not backslash. She assured me it was a backslash. So now we get to the whatever part of this posting. Discover.com is smart enough to replace backslashes in the path with slashes, so even if the operator gets it backwards, the customer gets to see the marketing materials.

Saturday, September 10, 2011

OpenOffice: Disabling Useless Annoying Popups

OpenOffice has this annoying feature that when the mouse pointer is over a table or a list a popup pops up to obscure what you're working on. Today I had two documents open in side-by-side windows and the table popup obscured the other window. Popups are easy to disable in web browsers, so why not in office tools?

How to: whenever one of these popups appears, look at View|Toolbars and uncheck the offending tool bar.

Thursday, September 8, 2011

USB Thumb Drive Energy Use

This morning, just before removing an old Imation 64MB thumb drive (the expendable one I take with me to class) I checked the run time left on my netbook's battery: 5:57. Then after removing the flash drive, on a whim, I checked the charge remaining: 6 hours even. So apparently the power taken by the device is small but nonzero. Off and on I've been a little curious about this because sometimes when I remove a thumb drive, the drive is very warm.

So, how much energy do thumb drives use? The Kingston web site and Amazon offer no help, but there is a paper that is very informative, "Power and Performance Characteristics of USB Flash Drives," Kyle O’Brien, David C. Salyers, Aaron D. Striegel, Christian Poellabauer, Department of Computer Science and Engineering, Notre Dame, IN 46556 USA. this apparently appeared in the 2008 International Symposium on a World of Wireless, Mobile and Multimedia Networks, which is an IEEE venue. The paper is available from CiteSeer.

It makes sense that wireless folks would be interested in power consumption since so many wireless devices are battery-powered.

They looked at USB 1.1 and 2.0 devices from a variety of manufacturers and of a variety of sizes up to 4 GB. 4 GB is small now, but this was a few years ago.

USB 2.0 energy consumption was very interesting, with the idle consumption being over twice that of the USB 1.1 device (for a Patriot 4 GB device). If thumb drives are idle most of the time, then one can suppose that the USB 2.0 devices take twice as much power overall as compared to USB 1.1. The differences were approximately 22.4 mA for an idle USB 1.1 device as opposed to approximately 50.9 mA for a USB 2.0 device. The disparity between current required while writing was larger, almost 3:1, at 34 mA vs. 105 mA. Presumably the USB 2.0 device is writing faster so it may spend less time writing.

For a USB 1.1 Kingston 4 GB idle power was around 23 mA and power writing or reading was around 34 mA.

One can multiply all the mA numbers above by 5V to get mW, so even idle a thumb drive consumes a significant fraction of a watt. As a fraction of the power used by a typical PC, this is small, as one would expect.

A group in Vasser's Physics Department also studied this issue, with interesting results. They are not very specific about what hardware they are testing, though do note that they see little difference between different flash memories. Rather than measuring the amperage used by the flash drive itself, they measure the wattage used by the laptop to which the flash drive is attached.

It appears their laptop consumes about 11.7 W solo, or 13.4 W with a 4 GB flash drive plugged in, which seems low. I wonder if they were measuring the current from the wall socket or the current coming out of the power brick, which would be lower, or something else, like maybe power from the battery. I believe this is what they referred to as "the laptop at rest."

Though the power requirements for their laptop seem low, the extra power required by the thumb drive seems high. An extra 1.7 W? Are we to believe that the thumb drive tested burned 340 mW, which is much higher than the measurements provided by O'Brien, et al. One possible difference is the USB interface within the laptop. Perhaps the internal USB hub is in a low power state when nothing is plugged in.

Interestingly, as the thumb drive is unmounted, the power usage rises to around 20 W. The thumb drive will require additional power when write buffers are being flushed to it. Also, this would require the UI to be active (probably no screen dimming) and might bring the CPU briefly to full speed. I would be interested in the difference seen when ejecting a thumb drive if the CPU is already performing a compute-bound task.

Unsurprisingly, it took an extra fraction of a watt to play a file from hard drive as opposed to from their 4 GB flash drive. The flash drive has no moving parts. However, it's not clear whether the flash drive is plugged in when playing from disk.

Something else to look into: power consumption by SDHC cards as used in digital cameras. Battery life is important for digital cameras.

One caution: the numbers above all appear to be from a small sample of USB drives, which may or may not be representative.

I Applaud UPS

Here's a tracking summary from UPS:



My respect for UPS is increased, not because of the Incorrect routing at UPS facility, but because they openly admit it.

Tuesday, September 6, 2011

Gnome 2.32.1 Missing Scrollbars

Gnome 2.32.1, as delivered in Ubuntu 11.04, is missing full scrollbar functionality in some applications.  Instead of a scrollbar, on the right edge of the window is a small target that, when the mouse is over it, creates a dragging tool for scrolling up and down. This is okay so far as it goes, and does save some screen real estate, which is great. However, the ability to click within the scrollbar to move up or down a screenfull is gone.

I see nothing in the options to return full scrollbar functionality, and it is vexing that many applications do have regular scrollbars, and some, or at least Nautilus 2.32.2.1, do not. So how do we fix it. There was a brief discussion at superuser.com in which one person totally missed the point regarding why this is a problem and a couple suggestions were given, neither of which seemed complete. This is how I restored scrollbar functionality, based on the guidance at superuser:


        sudo apt-get remove overlay-scrollbar
        sudo apt-get autoremove --purge liboverlay-scrollbar-*
        sudo su
        echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars

People trying to do this will likely want to escape the asterisk in the second line. It is not clear to me whether one really needs the first line given the second, but this worked.

My remaining question is why would the Gnome team reduce the scrollbar functionality without providing users with a clear-cut way to revert to full scrollbar functionality? If some prefer this behavior, which seems reasonable, then there should be an option somewhere within Gnome or within individual applications.

Monday, August 29, 2011

I've Found Religion: Google Voice!

I take Spanish and occasionally other stuff at the local community college and have signed up for their alert system. I get the alerts in e-mail and to  my cell phone, which turns out to be inconvenient since, for example, this morning they called at 5:45 (this is voice, not text). By changing the number they have for me from my cell to my Google Voice number I am easily able to tell GVoice to send anything from their number directly to voice mail.  It worked this afternoon:


Ain't technology grand? As usual the audio is easier to decipher than the text, but they don't do that bad with the text: "done dot" is Dundalk, "s 6" is Essex, and "K this bill" is Catonsville.















Friday, August 26, 2011

Pointy-Headed Boss Loses Again!

I just saw a LinkedIn update where a boss and a worker disagreed on the utility of LinkedIn. The boss said he would give the employee $1 for each "like" he received. Here's the current tally:


So the boss owes over $16k and counting. I'm not sure what the number of "likes" has to do with the utility of LinkedIn, but it was amusing enough to click "like." I wonder how much Ben Lugavere will end up collecting.

Saturday, August 13, 2011

Mild Surprise: Deleted Picasa Photos Show up in Google Docs Trash

I was looking at my Google Docs trash and noticed a number of images. They appear to be images deleted from Picasa. Picasa's delete dialog still uses the term 'delete' rather than 'trash', but it no longer warns that the action is irreversible.

Chrome: Blocking HTML Referer [sic]

It's easy to block HTML referrers in  Firefox: visit about:config and set network.http.sendRefererHeader to zero.

It's easy to block referrers in Opera: Make sure "Send Referrer Information" is unchecked at Opera | Settings | Quick Preferences

So how about Chrome? The man page is incomplete, not saying how to do this.

Googling sent me to a a Chrome extension. I have no reason to trust the author of that extension, so I looked a little more.

The answer is, surprise, in the Chrome help forum,  http://www.google.com/support/forum/p/Chrome/thread?tid=63a866565ba8664f&hl=en

The thing is, I don't usually start Chrome from the command line, and I don't recommend doing so. If Chrome (or Firefox, or Evince, etc.) are given a command shell, they dump gobs of junk to, probably, stderr. So it's necessary to change the shortcut from which Chrome starts. Gnome instructions follow; Windows instructions, untested, are here. [ Note added 2012-09-10: I think the following is incorrect and that Firefox does require an extension to block referers. Bad Firefox, bad. Original text: I do not endorse their method of blocking referrers in Firefox, as it is simply not necessary to install an extension to do this. ]

In System | Preferences | Main Menu | Internet (your system may vary) right-click on Google Chrome. Add --no-referrers to the end of the command line. Kill Chrome. Restart Chrome through the updated shortcut.

On referrers: this is from a time when the Internet was a less dangerous place. I have trouble seeing how this was ever a good idea, but now it is simply an invasion of privacy. It isn't likely that any subsequent version of HTML will drop this, but it would be nice if browsers would default to not sending referrer information.

A note on the misspelling 'referer': the word was misspelled in RFC 1945 (!996 Berners-Lee, Fielding, Frystyk), which is a bit odd since they spelled 'referred' correctly. Wikipedia says the misspelling originated in a different document, by a different author. Fielding says that neither 'referer' nor 'referrer' were in the UNIX spell program at the time. I thought by 1990 everyone was using ispell or aspell; okay I never actually thought that. Paper dictionaries weren't available at the time? I'm just happy to not have my name as prominently associated with a dumb little mistake like this. Of course, it is just a dumb little mistake.

Saturday, August 6, 2011

Considering Dropping My ACM Membership

Over the past few weeks I have occasionally pondered whether I should let my ACM membership expire this fall. I would continue my IEEE-CS and CCSC memberships. I really like ACM Computing Surveys, but IEEE Computer is consistently more interesting than CACM, and by a wide margin. I was reminded of this today walking through the CS department and stumbling across the 3/1976 issue of the CACM on a table. Here is the beginning of the table of contents from that issue:


Yes, kiddies, once upon a time CACM published real research. Now it's mostly fluff, mostly not from CS departments. This change occurred around 1990 or thereabouts. At the time I had a brief dialog with Stu Zweben about this, and he said the change in focus from CS was in order to appeal to a wider audience. Stu was faculty at Ohio State, where I was a grad student, and soon thereafter he became ACM president. Around the same time a letter to the CACM forum  referred to the CACM as having become P.A.M., pabulum for all members. IMHO pabulum is a reasonable description, and a sticking point is that CACM is still required for ACM membership.

With the decline of the CACM, the ACM gradually ceased to provide a general overview of computing research. Fortunately, IEEE Computer continues to fill that niche. So I maintain my ACM membership to receive Computing Reviews and out of a likely outdated notion that a computer scientist should belong to the ACM. UMBC does not reimburse me for the membership, but it is tax deductible, and there is a sister-society discount for belonging to both the ACM and the IEEE-CS. Still I do not get much for my membership dollar from the ACM.

I will have to verify that it is still not possible to belong to the ACM and yet not receive CACM, and also to see if I can get Computing Surveys at a reasonable price (or electronically gratis as UMBC faculty) before making my final decision.

Quality of Research Publications

In the '90s when I was active in parallel computing (compilers, algorithms, architectures) I had the perception that the number of parallel computing publications was multiplying to fill the market, and the growth had little to do with the number of quality papers produced in the field. Maybe this was necessary for the increasing numbers of researchers seeking tenure, but I think it hurt the quality of research in the field.

It was hard to tell which tail was wagging what, but researchers "needed" more publication venues, and libraries and researchers "needed" to subscribe to more journals.

August 5 NPR's Science Friday, there was a pair of guests talking about retractions in science journals. An interesting comment one of them made was that with more publication venues, especially with the growth of online publications, the number of items to be reviewed is growing faster than the number of reviewers. This must impact quality in a negative fashion.

Friday, August 5, 2011

Skydrive/Windows Live or Google?

For the past month or so I've been using Microsoft's Skydrive to save files online for transfer among systems and off-site backup. I have a free gigabyte there. I've also been occasionally using Google Documents for this purpose. In each case, what I transfer is an encrypted compressed tarball, and I saw little difference in terms of performance or convenience.

Today I've decided to stop using Skydrive--it's too unreliable. Two of the last three times I've tried an upload (using Chrome from an Ubuntu box) the transfer to Skydrive has stalled. Each time, when giving it extra time, I've opened a tab and Windows Live informs me that if I leave the page the upload will be canceled. WTF? I was leaving that tab open and going somewhere else.

Until yesterday I would have said I like Skydrive, and that it's nowhere near as clunky as Outlook Live, which is very retro, and very limited in what it allows one to do. Now, I think I can say Microsoft online services are to be avoided.

Do these work better with IE on a Windows machine? Probably, but that defeats the purpose of a web-based service. Why might they work better with IE/Windows? Possibly ActiveX, and intrusive access to the PC.

Stupid Chrome Tricks

I'm using Chrome 14.0.835.15 dev on Ubuntu 10.04 LTS and I viewed a web page today, the bottom left of which looked like this:


Chrome wasn't rendering the ñ in enseñar correctly. However, I took this screen shot with the mouse pointer hovering over the link to enseñar.jpg, and at the bottom, it was rendering the word correctly. So Chrome halfway knew what encoding was in use. I went to Wrench|Tools|Encoding, and it claimed a UTF-8 encoding. Odd, this word should be rendered correctly with that encoding. I changed the encoding to ISO 8859-15, which was no better. Then I changed it back to UTF-8 since as default encodings go, that seems a good choice. Voila! The page was rendered correctly.

Apparently Chrome only said it was using UTF-8 initially, but after changing away from UTF-8 and then back, it suddenly really was using UTF-8.

Firefox 3.6.18 on the same system worked fine.

Another amusing thing is that Chrome on a Windows 7 system I occasionally use, when rendering the same page, says the original is in Afrikaans, and offers to translate it to English. Does Spanish look that much like Afrikaans?