gdrive on the mac refuses to let you change the associated account

Ah google drive. Not exactly a Drop Box killer in any way, but with the conversion of google docs to the google drive many of us inherited it if we wanted it or not.

The first strike against this new imposition of gdrive rules is that apparently it doesn’t work so well with Google’s own Cloud Connect Product which integrates with Microsoft Office. But that wasn’t our particular problem with gdrive this evening. My problem with gdrive was that I was trying to cascade a laptop to one of my sons and it refused to let him log into the Gdrive with his gmail address. Even though all traces of the former owner had been removed, or so I thought…. (yes we uninstalled, reinstalled, Chrome, gdrive, rebooted, software updated, etc, etc….)

Mind you this isn’t google apps for business. This is a regular blah@gmail dot com type of email account that is also used for itunes etc. We uninstalled Chrome. Removed my other sons name from anyplace it appeared in System Settings on the Mac (OSX Lion 10.8.3). In particular I was sure to remove the former owner from all services under:

System Preferences / Internet & Wireless / Mail Contacts & Calendars

At this point after uninstalling Chrome and Gdrive both. Reinstalling Gdrive numerous times and changing everyone’s passwords I have been reduced to adding new aliases in my /.bash_profile file and my youngest son is like “Dad, it’s not that big of a deal I can just access it on the web site.” But no….. now I’m ticked.

Here is the error message and then the solution.

And for the search engines the text of the dialog box reads

"Google Drive. The account you entered does not match. Please sign in again with your ______@gmail.com account to proceed."

The catch is that account doesn’t exist anymore. Google drive was uninstalled as was Chrome. And gmail and web services are working fine on the new account when logged in to the web using Chrome or Firefox. It is JUST the Mac locally installed G Drive that won’t allow access.

The solution cobbled together from various blog posts. Using terminal with a sudo prefix:

sudo cd ~/Library/Application\ Support/Google/Drive
Password:

and you will see something like this:

LOCAL:~/Library/Application Support/Google/Drive
[Drive]$ ls -a
. CrashReports lockfile sync_config.db
.. cacerts snapshot.db

Just kill it all. From there is should be a matter of doing

cd ..
sudo rm -rf Drive

and then launching Gdrive on the mac again. This time it should prompt you to login with the new account associated with that computer. I can’t recall if we did a reboot in-between this step or not so consider that as well. And empty your Trash before you reboot because you probably need to do that anyway.

Two side notes learned over the years dealing with the Mac-n-Cheese-version-of-shiny-BSD-Aqua-Unix we call Macs (?rant? POSIX absolutely SHOULD be acceptable in WWF. Grrrrr.).

1) Do not EVER change your primary user admin home directory. Ever. You can change anything else on a Mac, but it will be a living hell trying to find every reference to the home directory baked into the OS. So if you buy a laptop from bob smith and his home directory is ‘bsmith” then either get OK with it, or rebuild the machine.

2) Gdrive, and google docs, are fine for personal use IMHO. So is DropBox. But neither have scaled for us at work even using google apps. Two alternatives I would encourage you to look at for business file sharing and syncing are SpiderOak and SugarSync. We are testing both although I am leaning heavily towards SpiderOak because it is lower cost and has better security. Of course like TrueCrypt or 1Password if you lose your key there is no plan B, but that also means your data is truly secure and you should invest in a lock box at a bank and (gasp) right down the authentication.

Irish too often spurn Diaspora advice?

Via Irish Central

“I think Irish people, generally, are a little wary of emigrants. Emigration is so much part of Irish life. We speak very well of people who go away and do well. But we get a little concerned when those people come back and tell us how things could have been done better. As Richard Harris tells Tom Berenger in [the film version of] The Field, “Go home, Yank. Go home.“ There’s an element of that in Irish life. And I think official Ireland ““ and by that I mean not the agencies but Dublin, be it government or public sector ““ is struggling to figure out the next leg of this Diaspora thing.”

He stated there was a European bias in Ireland that militated against the American Irish contribution.

“Official Ireland is very European focused. They’ve been working as part of the ECC and then the EU since 1973. This may sound politically incorrect, but the vast majority of the Irish Diaspora that can have any influence on the situation is in the United States, and to some degree in the U.K. So you’ve got a bit of a challenge in that you’ve got public sector, European-focused official Ireland trying to figure out what to do about private sector, U.S.-based ex-pats, and official Ireland seems to me a lot more focused on how to control this as distinct from how to enable it.”

Speaking about the Diaspora initiative launched by the government he stated “I think the Irish agencies abroad have for many years been very effective at leveraging the Diaspora ““ long before we even called it the Diaspora. They’ve always been thoughtful, smart and creative at figuring out ways that they can use relationships to help Irish companies, to find investment for Ireland.

what do you love?

“The pictures in this video were taken by people all over the world asked simply “what do you love?”

2 ways to limit tracking on yourself

Turn off ad tracking in IOS 6, or at least limit it, via the new setting (via lifehacker)

8. Limit Ad Tracking
Everyone’s trying to track you on the web, and your phone is no different. If you’d rather advertisers not track your activity and serve up targeted ads, iOS 6 lets you turn off tracking with a simple switch. Just head to Settings > General > About > Advertising and flip the switch to On. It may take a little while for you to stop seeing targeted ads, but soon enough your activity should be much more private.

Install this Chrome extension to remove the javascript tracking links in google. Note that Chrome has made it much harder to install extensions so you have to:
1a) Click “ok” to download after clicking the extension download link.
1) Click the wrench in the upper right corner
2) Click on settings in the drop down
3) Click on extensions on the left hand side
4) Drag the extension you downloaded onto the page
5) Click yes to install

Installing iPython Notebook on a Mac OS X Mountain Lion

Installing iPython Notebook on a Mac OS X Moutain Lion 10.8.1 for Development and Testing

The “Quickstart” is anything but that leaving off details like the recomended dependencies are basically required for a functional notebook. Here is the sequence that worked for me.

[apps]$ mkvirtualenv ipythonvm –distribute
[apps]$ workon ipythonvm

at this point pip freeze shows

[apps]$ pip freeze
distribute==0.6.28
wsgiref==0.1.2

next up the big instAll

[apps]$ easy_install ipython[zmq,qtconsole,notebook,test]

the instructions suggest running iptest. Don’t bother yet. It will fail the tests without more dependencies like “nose’ installed. Keep on. Also note the “easy_install” in front of readline is specific to set the sequence to pass the tests. Not sure why. No time to question today and I’m in a VM so it can’t do much harm. Proceed with.

[apps]$ pip install nose
[apps]$ easy_install readline
[apps]$ easy_install pexpect
[apps]$ easy_install ipython[zmq]

At this point checking packages shows

(ipythonvm)LOCAL:~/dropbox/code/apps
[apps]$ pip freeze
distribute==0.6.28
ipython==0.13
nose==1.2.1
pexpect==2.4
pyzmq==2.2.0.1
wsgiref==0.1.2

but

[apps]$ ipython qtconsole

fails. Keep trying.

pip install Tornado

Tornado works, but still errors on ZeroMQ. It comes down to this. We need ZeroMQ and PyZMQ. PyZMQ is installed (see pip freeze lista bove) but is missing the dependencie ZeroMQ doesn’t work with pip or easy_install as far as I can tell. Now we go old school. I also didn’t read the docs and was a bit tired so rather than specifying to intsall in the virtualenv I accepted the defaults and installed it in /usr/local/bin globally.

for ZeroMQ, I downloaded the Mac latest stable release from this page:
http://download.zeromq.org/

On 9/15/2012 I downloaded this one and extracted it:
zeromq-2.2.0.tar.gz 14-Apr-2012 09:53 1.8M

Unpack the .tar.gz source archive and cd into that directory. Remember I installed globally for this one package after the battle so first I had to “deactivate” in the virtual environment I was in (iphythonvm for me). Then change into that directory someplace you have “write” rights. For me I copied it from downloads to “code/contribs” which is where I put random stuff I haven’t modified but may or may not be using. Thus the next command was:

cd zeromq-2.2.0/

Run ./configure, followed by make.

But remember, outside of a VM we are back to sudo so this looks like:

sudo ./configure
password:
sudo make
sudo make install

switch back to my VM

[apps]$ workon ipythonvm

the environment now looks like this:

(ipythonvm)LOCAL:~/dropbox/code/apps
[apps]$ pip freeze
distribute==0.6.28
ipython==0.13
nose==1.2.1
pexpect==2.4
pyzmq==2.2.0.1
wsgiref==0.1.2

now we try again.

[apps]$ ipython notebook

Success! Now let’s go get somethign to look at. I created a folder in my apps folder to put the downloads and grabbed a git repository from blogger Titus of Living in an Ivory Basement http://ivory.idyll.org/blog/teaching-with-ipynb.html

mkdir iPythonNotebooks
cd iPythonNotebooks
git clone git://github.com/ngs-docs/ngs-notebooks.git

Now we test it again:

[iPythonNotebooks]$ ipython notebook
[NotebookApp] Using existing profile dir: u’/Users/eschipul/.ipython/profile_default’
[NotebookApp] Serving notebooks from /Users/eschipul/Dropbox/Code/apps/iPythonNotebooks
[NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/

I then imported the ngs-10-blast notebook. There are codeblocks in the notebook, so for a proof of concept I just picked one that imported “blast” knowing I had not imported it. Inside of Chrome, inside of the notebook, I can click on a codeblock that begins:

import csv
import blastparser

# open the output file for reading
fp = open(‘out.txt’)

and then I select “cell run” and it runs it as if I was in Eclipse. Properly giving an error of

—————————————————————————
ImportError Traceback (most recent call last)
in ()
1 import csv
—-> 2 import blastparser
3
4 # open the output file for reading
5 fp = open(‘out.txt’)

ImportError: No module named blastparser

That is huge. Think about it. Running code inline in the middle of a web page with a compiler and debugging. Not javascript by Python in a sandbox that can import modules and do everything else you would do with idyl. And saved in JSON based notebooks that can be shared and used for testing. It sort of blows your mind.

I’m not suggesting this is a replacement for a good training video. But it is a great addition to the educators arsenal of tools for online learning in richer environments with greater interactivity. I’m impressed to say the least.

Other randome take-aways. I did not know about the pexpect package and it is pretty compelling if you work at a company. It removes the need for the C libraries for builds which means that not everyone needs to install xCode if they have to /configure, make, make install, etc.

Thus I recommend you take a look at what pexpect can do as it was new to me. Pretty cool actually.
http://www.noah.org/wiki/Pexpect#Description_of_Pexpect

Eclipse and Python and Django on Mac OSx 10.8.1

New laptop so I figured I might as well double check that I was using the latest packages and development tools. i was very very close, but not quite. So I went for a fresh install of Eclipse and PyDev for Django development.

Taking the lead from this blog post:
http://garmoncheg.blogspot.com/2011/06/django-better-way-to-install-eclipse.html

Installed the 64 bit version of Eclipse for Javq Developers (yes it’s Python, but Eclipse was originally designed for Java. It’s OK, you won’t have to type any squiggly things in your Python code….)
http://www.eclipse.org/downloads/

Amazon Glacier – dirt cheap backup storage if you can wait a few hours to retrieve it

Amazon Glacier looks pretty darn awesome to me. Cheap secure data storage. .01 cent per gigabyte per month.

The only down side is that this is like a safety deposit box at the bank. You have to wait until Monday, or one of the two or three Mondays out of the year that bankers actually work, to access your assets. But you knew that ahead of time.

The good news is that the cost of using Amazon Glacier for long term large scale data storage looks very low at .01 cent per gig per month. So a photographer with 6 TERABYTES of data, hypothetically speaking, would pay a mere $61.44 per month to safely store that data. And you wouldn’t put it all in one vault as a six terabyte download would be a pain. Maybe keep everything under 300 gigs and organized. That would make retrieval reasonable IMHO. Amazon says “4 hours to retrieve or more” which given the low price seems fair.

Jeff Bezos is one smart man. Smart enough to hire Werners Vogel for one, Werner Vogels @ eTech 07 who was brilliant when I saw him speak at eTech in 2007. I didn’t understand then when Jef and Werners moved into the “software as a service” as a commodity at eTech all of those years ago. Now I send them large checks every month on behalf of our company and our clients. Well played and a great value for all of us. Tip of the hat to a visionary.