Thursday, June 03, 2010

Android Data Diet (Part 2)

Yesterday, I described how I curbed my Nexus One's appetite for tasty (but pricey) mobile data. But what's a diet without a scale? I still needed a way to monitor just how much data I was using and warn me or, better yet, stop me if I used too much.

Cue the apps.

As I mentioned yesterday, Android doesn't do this out of the box, but fortunately there are at least a couple of great, free monitoring apps available. I tried NetCounter and 3G Watchdog. I think NetCounter has a really nice UI, and it provides the ability to monitor both mobile data and Wi-Fi, but I ended up choosing 3G Watchdog for its excellent quota features.

You can use it to set a daily, weekly, or monthly quota, and then have it warn you when you exceed a given percentage of that quota. Moreover, you can have it shut the mobile data right off if you exceed another given percentage.

I have set an extremely low daily quota of 2 MB, with a warning at 50% and auto-disable at 99%. I'll keep this setting until the end of the billing cycle -- recall from yesterday that I've already exceeded my data limit for the month and am now paying for each meg I use. The idea is to try to keep below 1 meg a day (which only costs me five cents), and cut myself off at 2 megs. That should keep my extra data fees for the remainder of the month under a couple of dollars.

So far, this approach is working: With the changes to my settings that I described yesterday, I'm finding it easy to stay well below 1 meg most days, and on the couple of occasions where I have exceeded 2 megs, auto-disable has worked like a champ.

Once my monthly data usage resets, I'll re-enable auto-sync and my Facebook and Twitter updates, and I'll increase my daily quota to something like 40 MB. That should give me plenty of room to stay connected and use lots of data when I want to, but will prevent any further disastrous 450 meg days.

By default, 3G Watchdog permanently adds a notification indicating the current state of your data usage relative to your quota. I find that quite intrusive, but fortunately it has an option to disable the notification. I did, and added its attractive little widget to my home screen instead. Even that may not stick around once my data diet month is over.

You can install 3G Watchdog by scanning the following QR code with an Android device (or just by touching it if you're reading this on one):


Finally, I should point out that to use 3G Watchdog's auto-disable feature, you'll also need to install another app: APNdroid. It's a handy little app that simply disables mobile data by appending a suffix to your active APN. It also has a widget that can be placed on the home screen for easy access.

Here is the QR code for APNdroid:


Thanks to Richard Fruet and Martin Adamek, the creators of these great apps. They're life savers...or at least money savers!

Wednesday, June 02, 2010

Android Data Diet

A couple of months ago, I got myself a smartphone. No, not that one; something better. I got a Nexus One, Google's flagship Android phone. Though younger, Android is already significantly more capable than iPhone OS. It's also open source, Linux-based, and uses Java as its primary development language. Throw in the top-notch development tools based on Eclipse, and it was a total no-brainer for me.

Oh, and did I mention it's dead sexy?

I actually got my Nexus One while I was in California for EclipseCon at the end of March. Google sells the phone directly online (though they recently announced they're ending that experiment and pursuing more traditional sales channels), but I saved myself the costs of international shipping and customs duties by having it delivered to my hotel in Santa Clara and bringing it back with me after seven days in the US.

Since then, I've been absolutely delighted with it, but for one most unfortunate incident: A couple of weeks ago, my phone allegedly decided to eat through my entire month's data allowance in one day. My Telus bill shows over 450 megs of data on one Sunday, and I have no idea how that could have happened. Telus was, of course, completely unhelpful, refusing to share any information about which specific hosts or domains my phone was supposed to have accessed. That information could have helped me determine if and how that kind of data usage actually occurred, but Telus wouldn't even confirm whether or not they actually keep such information (even though Canadian privacy law requires them to, on request, inform an individual of the existence of all personal information and give him or her access to that information). Unfortunately, Android doesn't report data usage out of the box, and I hadn't even thought of installing an app to do that.

So, it's impossible for me to go back and find out what happened that fateful day, but it was immediately clear that I couldn't let it happen again. I was only about a week into my monthly billing cycle and was suddenly being charged 5 cents per megabyte of data. So, the first priority was to severely restrict my data use for the rest of the month. Beyond that, I'll need to put in place a strategy to prevent me from getting into this situation again.

The first thing I discovered was alarming, and it's my only real complaint about Android so far: by default, Android is configured to put Wi-Fi to sleep whenever the phone's screen shuts off, in order to save battery. So, while the phone is sitting at home, unused, it falls back to mobile data, instead. But just because the screen is off, that doesn't mean the phone's not doing anything. I had it configured to automatically sync my Gmail, calendar, and contacts, and to constantly refresh my Facebook and Twitter feeds. Though I wouldn't ever expect this kind of activity to result in 450 megs of traffic in a day, megabytes or even tens of megabytes are certainly quite possible.

So, the first thing to do was to disable this Wi-Fi sleeping behaviour, but for some reason, the setting is very well hidden. From the home screen, you'll need to navigate to Settings > Wireless & networks > Wi-Fi settings to find it. Then, you'll need to hit the menu button, and finally select Advanced. Only then can you switch the Wi-Fi sleep policy to Never. I would highly recommend every Android user do this, as unintentional data use can cost you money. I haven't experienced any noticeable effect on battery life, either: I'm still easily able to get through a day on a single charge. I really think Google selected a poor default, and I've told them as much in this bug. Hopefully, it will be remedied in the future.

Since I'm not always in a location where Wi-Fi is available, my next step was to try to disable all background data usage. All account synchronization can be turned off in one place, which is most convenient: Settings > Accounts & Sync > Background data. Once this is done, you'll need to synchronize manually, such as by selecting the Refresh menu item in the Gmail app. Also, this setting must be re-enabled temporarily in order to use the Android Market. I currently do both of these things only when I'm on Wi-Fi.

Finally, I went through all of my apps and looked for any settings related to background data use or notifications. For example, Seesmic has a notifications feature that relies on polling the Twitter server to update the feed. I disabled all such features, and now my data use has slowed to a trickle.

Still, there was something missing: I needed a way to track my data and be notified if it gets too high. Fortunately, there are at least a couple of great, free apps for data usage monitoring available on the Android Market. I'll talk about those tomorrow...

Sunday, April 18, 2010

Transit City

I just wrote the Premier in support of restoring provincial funding for Transit City. Please take action to help, too. Here is what I wrote.

Dear Premier McGuinty,

I am deeply disappointed by your recent decision to delay previously promised funding for the Transit City Light Rail plan. Delaying funding now will only compound Toronto's severe transportation woes, and could very well kill this vital project altogether. It would be most unfortunate if your lasting legacy was undoing all the work and collaboration that has already gone into developing this plan.

In December 2009, as construction began on the Sheppard East line, Minister Bradley was quoted as reaffirming your government's commitment to quickly building a comprehensive public transit network in Toronto. He said, "By providing more convenient, affordable, faster rides on public transit, we are tackling congestion, creating jobs, stimulating the economy and improving the air we breathe." He was corrrect: Transit City will allow Torontonians to make a contribution to the critical cause of reducing greenhouse gas emissions, provide desperately needed transit access to Toronto's inner suburbs, and stimulate the economy with thousands of jobs.

Although the province's budget deficit is unfortunate, public transit funding is not the cause of this deficit, and cutting this funding is not the solution. Nothing has changed since Minister Bradley's statement last December.

As a long-time Liberal supporter, I am also concerned about the impact of this about-face on your government's prospects for re-election. If another party campaigns on a promise to restore Transit City funding in the next election, I fear that I will have to give them my vote. I cannot think of another issue that is more important than this one.

I ask you to please deliver on your promise and return the $4 billion to the Transit City budget to keep this plan on track. Transit City is too vital to the health of our city to be put on hold.

Wednesday, October 28, 2009

Squeezebox Server

I just upgraded from SqueezeCenter 7.3.3 to Squeezebox Server 7.4.1. I bought my Squeezebox in early 2006, and this is the second major update to the cross-platform, GPL'ed server software since then. Both times, the capabilities of the Squeezebox were expanded, and the experience of using it improved. Now that's what I call value!

This isn't as big an update as the switch from SlimServer to SqueezeCenter, which overhauled the browser-based UI and added the ability to synchronize playback across multiple players. Indeed, at first glance, it appeared to me that not much had changed in Squeezebox Server.

However, looking a bit closer, there are a few really nice improvements. The most prominent new feature is the introduction of applications (everyone's got to have apps, right?). For example, there's a CBC app that helps you easily find their radio streams and podcasts, and a Facebook app that lets you browse your news feed and post updates about what you're listening to (check my profile to see what I'm listening to as I write this!).

Also impressive is a major improvement to Internet radio support. The listing and organization of stations is great. You can see a very complete listing of local stations (66 for Toronto, all classified and with icons) with just a couple of clicks of the mouse or remote control, and easily browse or search thousands of stations from all around the world. One more click adds the station to your favourites, for easy access from the main menu.

Big kudos to the Squeezebox team and to Logitech. I never would have expected such great things when Logitech bought Slim Devices in 2006. It's all enough to make me pine for one of their newer devices.

Friday, September 04, 2009

My Copyright Consultation Submission

The Copyright Consultation wraps up on Sunday, September 13, so there's just over a week left to make your submission! I finally finished mine today. Here it is.

Thank you very much for receiving this submission, and for holding this consultation in the first place. I hope that hearing the views and concerns of all Canadian stakeholders will lead to new copyright legislation that is more balanced and forward-looking than the deeply flawed Bill C-61.

The primary reason for this submission is to express, in the strongest terms possible, my opposition to the DMCA-like anti-circumvention provisions of Bill C-61. Banning all circumvention of technological measures (as opposed to just circumvention for the purposes of infringement) and banning technologies that can be used for circumvention are extreme measures that destroy all balance in copyright.

We do not achieve balance by allowing copyright holders to decide for themselves exactly how their works may be accessed and then legally protecting the technologies that enforce those decisions. If a consumer has purchased a copyrighted work and a technological measure attempts to, for example, override Fair Dealing, protect the work beyond its copyright's expiration, or revoke access on the whim of the distributor, the consumer must be allowed to circumvent that measure to access the work.

The DMCA has been wholly ineffective in preventing widespread copying in the USA. The realities of modern computing and communication -- that copying and distribution now have essentially zero cost -- have led to an explosion of file sharing in that country, just as they have here in Canada and in the rest of the world. The anti-circumvention provisions of the DMCA didn't stop DVD-CSS or FairPlay from being defeated. Rather, they have been used and abused to limit interoperability, deny access to persons with disabilities, disrupt security research, and slow innovation. The American situation is absolutely not one we should be trying to recreate here.

Instead, I believe we should take a wider view on modernizing copyright, as I will explain in my responses to the five specific questions posed for the consultation.

1. How do Canada’s copyright laws affect you? How should existing laws be modernized?

I am affected by copyright law both as a producer and a consumer of copyrighted materials. Professionally, I am a software developer and a published author. Like most members of the general public, I am a consumer of music, movies, and the written word. I am a strong supporter of Canadian artists.

In both my professional and personal lives, I am a user of, contributor to, and advocate for Free and Open Source Software. While this type of software is usually distributed without charge and without any restrictions on end users, it relies on copyright law to control distribution and use in derivative works. Free and Open Source software thrives in open environments, and it is vulnerable to abuse of copyright law to restrict compatibility and interoperability with other software and hardware.

Canadian copyright law is in need of modernization. In particular, I believe it should be simplified and brought into line with current technological realities and public sentiment.

Copyright law currently just doesn't feel relevant to most individuals, especially younger people. Millions of Canadians engage in file sharing, without believing that they're really doing anything wrong. For most people, sharing feels good. Sharing music tends to build communities of fans and promote the artist whose work is being shared.

The overall effect of a decade of file sharing on the music industry has been most decidedly negative, but in the last few years, we have seen dramatic growth in online music sales beginning to offset the losses. It is hard to pinpoint the reasons for this change, but the music industry's long-overdue move to abandon DRM could be one of them. It is also too early to tell whether, given enough creativity and technical savvy on the part of artists and the industry, this could mark the beginning of a turnaround.

What is abundantly clear, however, is that file sharing is not at all comparable to commercial, for-profit copyright infringement. If non-commercial copying is to be outlawed, this should be specified expressly in copyright law and the punishment must fit the crime. In the USA, individuals have faced multi-million dollar lawsuits for sharing a handful of files. This is an unreasonable and disproportionate response. Statutory fines on the same scale as a speeding ticket (total, not per file or per transfer) would seem much more appropriate.

Moreover, copying for one's own personal use (and for the use by other members of one's household) should not be subject to any copyright restrictions at all. Once a consumer has legitimately purchased a work, he should not be prevented from making a backup copy or transferring the work to another format or device. Any restrictions only undermine the credibility of copyright and artificially diminish the value of new technologies that could otherwise help users enjoy the content they have purchased.

In the not-too-distant past, copying and distributing creative works was difficult and expensive, which meant that these acts were generally only carried out for commercial purposes. If someone was going to make money from copying the work, it certainly made sense to ensure that it was the creator, so as to provide an incentive to create. Today, copying and distribution is effectively free and instantaneous, making personal and non-commercial copying commonplace. Copyright law should reflect this reality.

2. Based on Canadian values and interests, how should copyright changes be made in order to withstand the test of time?

Technological neutrality and flexibility are key to ensuring that copyright law can withstand the test of time. Rights and exceptions can be specified without ensorsing or banning particular technologies, leaving the courts with sufficient flexibility to apply the principles to the relevant technologies of the day. Bill C-61 was very poor in this regard, attempting to carve out exceptions for specific uses of specific technologies, many of which were already obsolete.

3. What sorts of copyright changes do you believe would best foster innovation and creativity in Canada?

I believe that all of the changes I have described so far would have a positive effect on public perception of the credibility and relevance of copyright law. If fewer Canadians are inclined to violate copyright law, then creators will be better able to receive the benefits that the law intends.

Beyond that, the best way to foster creativity is to ensure that copyright law does not negatively affect people's ability to create new works based on existing ideas. Creative people have always built on what has come before, and with the help of technology that is now more true than ever. More flexible Fair Dealing, most especially including parody and satire, would be helpful in this regard, and certainly the public domain must be protected by not extending the current term of copyright.

4. What sorts of copyright changes do you believe would best foster competition and investment in Canada?

Once again, I believe that technological neutrality in copyright is key to fostering competition and investment in Canada. Banning particular technologies would be damaging to the software and electronics industries.

5. What kinds of changes would best position Canada as a leader in the global, digital economy?

Certain large players in the content industries are having trouble adapting to the new, digital economy, and they are pressing for extreme changes to the copyright balance. It is worth noting again that these changes have not had the desired effect in other jurisdictions that have adopted them, and that artists and creators, themselves, are not at all convinced.

I believe that the more reasonable proposals described so far in this submission would be much more effective in helping position Canada as a leader in the global, digital economy.

Thank you again for receiving and considering this submission.

Monday, February 23, 2009

Perform and be Glamorous!

What better time to write on one's long-neglected blog than when trying to shamelessly plug something?

That time has come! (And, no doubt, it will come again soon.)

Swingin'OUT, Toronto’s queer swing dance group, is holding a fundraiser to for The 519 Capital Campaign, and we're looking for performers. Our fundraiser, Glamorous: A Tribute to the Jazz Age, will be an incredible evening of glitz and glamour, with a 1920’s, 30’s and 40’s theme.

Dance, drag, burlesque, cabaret, or any other performance style...if you can work with our theme, we'd love to hear from you! Check out our Call for Performers for all the details.

Wednesday, December 03, 2008

My Letter to the Governor General

I just sent the following e-mail to the Governor General. It's not too late to have your voice heard. Write to info@gg.ca to express your opinion.

Excellency,

I am writing to encourage you to allow Parliament to express its non-confidence in the government and, if it does so, to ask the Liberal-NDP coalition to form a new government.

As I am sure you know, the concept of Responsible Government forms the basis of our democracy. Yesterday in Question Period, the Prime Minister faced repeated demands to allow Parliament to express its lack of confidence in the government with a vote. I was shocked to hear our Prime Minister dismiss these demands as an attempt to "hide behind parliamentary niceties."

Such profound disrespect for this defining principle of our democracy is appalling.

It comes as no surprise, then, that the Prime Minister plans to seek prorogation of Parliament for no reason but to avoid facing a confidence vote. But without the confidence of Parliament, the Prime Minister lacks the authority for this action. The use of such tactics to hide from a confidence vote would set a profoundly troubling precedent, severely damaging our parliamentary democracy. I urge you to deny such a request.

You have been entrusted with the great responsibility of upholding Canada's parliamentary tradition, and I am confident you will act appropriately.

Monday, October 13, 2008

Vote Wisely

Some more thoughts on the day before we go to the polls...

Stephen Harper's probable perjury is just the latest reason to want him out of office. From a surplus-killing $12-billion GST cut to a climate change plan that will allow emissions to rise, from arts cuts and film and TV censorship measures to the Canadian DMCA, from the MPs' handbook on obstructing parliament to In & Out, this has been the most disastrous Canadian government in recent memory. And the most secretive, least transparent government ever. Oh, and who can forget about broken promises on income trusts and fixed election dates?

Just four-weeks ago, Leader Harper made this prediction: "My own belief is if we were going to have some kind of crash or recession, we probably would have had it by now, a year into the crisis." Since then, the TSX has dropped by 26%, and Scotiabank and TD have said that the country is headed for a deep recession. Isn't it great to have a PM with a Master's in Economics?

Some two thirds of Canadian voters do not want to see the Conservatives reelected tomorrow, but we're poised to hand Harper another minority government, nonetheless. Here are the latest poll results from Nanos and seat predictions from democraticSPACE and Election Prediction Project, all of whom most accurately predicted the vote in 2006.

Hopefully, they'll prove sobering for anyone who bought Layton's line about running for PM. He doesn't have a shot. Either he's deluding himself or he's merely trying to delude you. If you're a staunch New Democratic Party supporter, I would think you're facing a really difficult decision tomorrow: will you vote for the NDP or against Stephen Harper? Unless you live in one of a handful of ridings, you really can't do both.

The same is true for Green Party supporters, but the situation is even more dire. There are but two ridings in which Green candidates might possibly be elected: Central Nova and Vancouver Centre.

If you oppose Stephen Harper, I really hope you've given some serious consideration to how you'll vote. I hope you've read all the parties' platforms and thought about the course this country will chart over the coming years. If you care about the environment, I hope you've reflected on how, for the first time ever, a major party has put an environmental issue at the heart of its campaign, and what it will mean for the future if that move is seen as a big part of the reason for its defeat. I hope you've at least used the tools available to see which candidates in your riding can defeat a Conservative.

Please vote, and please vote wisely.

Our Perjuring PM?

On Friday evening, it was revealed that Harper's expert witness found that the Cadman tape was not altered. A couple days later, that story seems to have dropped off the radar, but it's really significant.

In 2005, Conservative-turned-independent MP Chuck Cadman voted with the Liberal government, passing the budget by a single vote and preventing the government from falling. At the time, Cadman was battling malignant melanoma. After his death, his widow, Dona Cadman, revealed that her husband had been approached by two Conservative Party officials with an offer of a million-dollar life insurance policy in exchange for his vote against the Liberal budget. Under section 119 of the Criminal Code of Canada, it is illegal to bribe an MP.

At the beginning of this year, a tape-recorded interview by Vancouver journalist Tom Zytaruk came to light, in which Prime Minister Stephen Harper acknowledged that he had approved of making an offer to Cadman.

Zytaruk asked, "The insurance policy for a million dollars, do you know anything about that?"

Harper responded, "I don't know the details. I know that there were discussions. This is not for publication?" He went on to explain that the offer to Cadman was "only to replace financial considerations he might lose due to an election," and he failed to address specifically the allegation of a million-dollar insurance bribe.

Last March, Prime Minister Stephen Harper sued Stéphane Dion and the Liberal party for defamation over allegations made linking Harper to the affair. So as to avoid demonstrating malice, the Liberals were forced to remove allegations from their Web site.

This August, Harper testified. During cross-examination, he was asked about Zytaruk's question regarding the insurance policy and responded, "That is not the question as he put it. He has done some editing there.

"What I do know is that this answer is not the answer to this question, I think there's been some editing in this question, so I don't think it goes from this question to this answer."

Harper tried to delay the proceedings until after the election, but on Friday lawyers for the Liberal party filed an analysis of the recording by Harper's own audio expert. His findings?

The key portion of the recorded interview contains no splices, edits or alterations.

The best information available to the public now suggests that Prime Minister Stephen Harper made verifiably false statements on a material matter while under oath in a court of law.

Mr. Harper has already made history with his defamation suit, which seems to have been engineered to silence any discussion of the matter until after the election. He is the first sitting prime minister ever to have filed such a suit. If Canadians return him to office tomorrow, he may also become the first sitting prime minister ever to be charged with perjury.

Saturday, October 04, 2008