December 03, 2010

Ultra-portible Linux - i.e. Linux on a stick

Updated Dec 9th 2010 - see below...

I was recently in the market for a new laptop as the old one was slow and the battery was almost done for. That laptop now services mainly as a portable DVD & netplayer for my 4 year old son, Isaac. The battery is almost gone (5.5 % is reported by Ubuntu) but it is still enough to move the laptop from one wall socket to the other.

As my budget was quite limited I had to choose between power and portability - I could not get both, so I opted for power. You can see the specs of the computer in an earlier post on this blog. So what do I do for a portable - away from home - solution for minimal funds and minimal size?

Why not make a USB stick bootable?

I happen to have a Kingston 8GB Class 10 USB stick that I can use for this purpose. This is a reasonably big drive with plenty of speed.

So my plans are the following:


Partition the space into 2 partitions:
  • 2 GB FAT - for windows use
  • 6 GB ext4 - for Ubuntu

As you might notice I have opted not to put in a swap drive. This is partly due to the fact, that I do not know how Linux will cope with a flash drive with regard to wear/limited write cycles. What happens when cells become read only on a swap partition? Secondly most computer will have ample memory for my primary use; Programming.

I need the FAT partition for windows use - moving files etc.

The plan is to install Ubuntu 10.10 on the 6 GB partition. I am using one big partition as it is hard to know right now how much /root and how much /home space I need so I am diverting from my usual /root /home partition scheme.

To keep data and projects uptodate I will be using UbuntuOne. But as my primary Ubuntu One account holds more than 20 GBs of data currently, which will not fit on the stick and as Ubuntu One configuration currently does not support selective sync'ing I am going to use a secondary UbuntuOne account to which I will share the necessary folders.

Please feel free to share your views and thoughts in the comments. I will update this post with new info as I go along.

Update 09-12-2010:

I made my first go at this yesterday and worked on it a bit this morning. (This update is being written on the Ubuntu-on-USB ;-) I will make a new post with a how I did it approach. A few thoughts from my first go:

I decided to lower the FAT partition to 1800 MB to allow for a little more space. But with the things I need to install: git, eclipse, Android SDK and with opening my primary email in Evolution (IMAP based) I now have around 600 MB to spare on the /root partition. And that was after doing an apt-get clean. Before that I had about 70 MB to spare. So I will redo the setup with a 1 GB FAT partition instead.

Also it seems quite slow when doing a lot of I/O e.g. when doing apt-get update/upgrade and installing packages. I am not sure why this is the case but I suspect that it might be because the fs manager has set the write-cache to a minimum because it is running on a USB device in order to preserve high-reliability. I will try to google a bit to see if this is the case and how to set a more harddisk like write-cache to speed things up a bit.

I have only tried the stick on 2 Acer laptops, my wn Aspire 5738ZG and an eMachines 17". But so far it works on those two. I will try to boot on a few other at work today.

November 17, 2010

Problem with Touchpad under Ubuntu 10.10 Maverick Meerkat

Recently my Synaptics TouchPad stopped working in Ubuntu 10.10 Maverick Meerkat. It works fine in Windows 7 and the TouchPad works even in Ubuntu on login screen prior to logging in.

If I use the "disable TouchPad" button Ubuntu shows that the Touchpad is now on, if I press it again, it shows the TouchPad is off. So when the hardware believes the TouchPad is live, Ubuntu/X "closes its ears" as the TouchPad is supposed to be off, and when the hardware believes the TouchPad is off, Ubuntu is listening, but the TouchPad is silent. Catch 22!

I have been googling a bit, but nothing interesting comes up. Checking Launchpad, nothing 10.10 specific comes up and by skimming the rest I have found nothing. I will dive deeper into Launchpad though.

Does anybody have any solutions?

November 14, 2010

git

So I finally started looking into git as a version control system. I have yet to do any serious use of it, but I have run into a few snags.

I want to use git for version control of several private projects. Currently I have both website and Android development projects running and I would also like to start a few C projects (for Linux). And I would like the repositories to be placed in a central location (within my filetree) so that it can be Sync'ed via Ubuntu One.

So what is the road ahead? Does anybody have any pointers about multiple projects/repositories for an absolute newbie in git? Please share in the comments!

November 04, 2010

New Computer - Installing Ubuntu

After a few days of playing with Windows 7 on my new Aspire 5738ZF (see ) I finally had some time to install Ubuntu 10.10 (Maverick Meerkat). As this laptop is equipped with a 64-bit processor (Pentium T4500) and 4 GB of memory, I decided to install the 64-bit Desktop Edition with the Dual Boot option.

Installation went fine and without hitches, everything seems to have been recognised automatically. I decided to install the proprietary Radeon Driver in order to get the most out of my graphics card. I do not have any programs needing it in the moment, but perhaps later running a few games ...

I like the Gnome Desktop provided with the vanilla Ubuntu but I usually rearrange the top panel, replacing the custom Ubuntu menu bar with the standard Gnome Main menu, adding the System Monitor and Desktop Switcher applets and removing the lower panel. Thus far I have only added the System Monitor.

As I let the installer decide on the partitioning while reserving just under 100 GB to Ubuntu, it decided upon a 4 GB swap partition and the rest in one huge root partition. I usually like to have my /home on a seperate partition, so that I may upgrade or re-install the root without loosing my data. At some point in the future, I need to resize the root partition and move /home to a new partition.

I like the Medibuntu repositories and thus added them to my sources. I installed Skype 2.1 from there as well as the restricted DVD-files to enable playback of encrypted DVDs (read; all commercial DVDs)

As I am going to use this computer for Software Development, including Android applications I have installed Eclipse Galileo from the standard repositories. No problems there either. Now I have to install git to store my projects. And as I am also going to do some Web Development, I need to install the LAMP stack.

I plan to do a post about installing git at some point. I have yet to try out git so it will be a "beginners experience with git" both setting up a git server (on this local machine) and using git.

Another post planned is about Ubuntu One and maybe a post specifically about UbuntuOne Mobile and Ubuntu One Music Store.

October 30, 2010

New computer!

My trusty old Acer TravelMate 2490 is getting - well old. It is running Windows XP ok, but could do with a reinstall. Ubuntu has been performing well and I recently upgraded from 10.04 to 10.10. But memory is sparse (1.5 GB - well enough for Ubuntu - a little on the low side for Windows XP) and the battery is tired - very tired. Ubuntu reports that it is down to 6.6 % and it can barely hold power for the boot sequence.

So it was time for a new computer. The tm2490 has not been retired yet - I will run a recovery for Windows XP and readjust the split for Windows/Ubuntu filespace. It will then serve as a computer for our soon to be 4-year-old. I am keeping the Windows XP just in case some of the educational games we have won't run under Wine.

I have been on the hunt for a new computer for a couple of months now and had a few favourites. I wanted a smaller computer than the tm2490 (a 15.4") preferably a 13.3" with a long battery life. Small and light with plenty of battery life so that I can use it for programming and web development. I would also like a reasonable 3D Graphics card as I spend time playing 3D games (WoW, Planet Calypso, etc, and hopefully Civ V soon - mostly in Windows, sorry!). But as our budget did not allow any new purchases during that time span I kept looking.

As an opening in our budget opened it would not support a small, speedy 13" 3D racer. So I decided upon the Acer Aspire 5738ZG. Specifications: Intel Pentium T4500 (dual core, 2.3 GHz), ATI Radeon HD4650 (1GB), 4 GB DDR3, 320 GB HDD, 15.6" (1366 x 768) LCD.

This laptop came with Windows 7 Home Premium 64-bit preinstalled, which I intend to keep. Partly for gaming, partly as I need to know Windows 7 better for my everyday work needs (I sell computers).

Acer used to devide their hard drives into 3 partitions, of which 2 were visible to the user. One "Windows" partion (usually named "ACER"), one Recovery partition (hidden from Windows), and one data partition (usually named "ACERDATA"). The plan was that you use the "ACERDATA" to store your documents and other user files and leave the "ACER" partition for Windows and installed programs. If You needed to recover or re-install Windows you then would not loose your documents, music, pictures, etc. I am not awar if this has changed with Windows 7, but at least on this computer, there was only the recovery partition and one large Windows partition.

This lap top is a bit bigger and heavier than I wanted but so far it has been a good machine to work on. In my next post I will be covering my Ubuntu experiences on this computer.

April 20, 2010

Analytics4Android update - working on XML parser

This is a progress update for the Analytics4Android Google Analytics Widget project for Android Mobile phones.

Not much seems to have happened since the end of March when I last made an update public. I have had the (mis)fortune of having too little time for this project that tangible progress has emerged. I am - however - still working on this project although I have not had much time to do so.

At the moment I am working on the XML parser that is to parse both the Analytics profile feed and data feed. This is both a work-in-progress as well as a learning-in-progress situation for me as I have not written or parsed XML files much in the past. When the work has progressed further I hope to see two jumps in both the profile feed parser and data feed parser.

So although there is no update on the version number on the Analytics4Android web page, work is still under way!

April 12, 2010

Android Books

I just picked up Android Application Development from O'Reilly and Beginning Android from Apress from my local library. I reserved them some time in mid February but as my local library did not have any copies themselves, they had to get them from another library, thus the long wait.

Android Application Development has been written with the experienced (Java) Developer in mind. Thus you should read this, if You want an introduction to the development process in Android. The book starts with an overview of the Android development kit and shows how to setup the Android SDK as well as the Eclipse IDE on either Windows, Linux or Mac OS X. It also has a common project 'MicroJobs' that it builds most of it's chapters around.


Beginning Android does not require you to be an experienced developer but you do need a set of basic Java skills. It does not cover how to setup your development tools and abstracts from the development tools choice throughout the book.

I know these are not new books (May '09 for Android Application Development and June '09 for Beginning Android) and that they do not cover Android 2.x but 1) I am a beginner into this field and these two books will be the first two that I am going to read 2) My phone (a Nordic HTC Hero) at the moment runs Android 1.5. Hopefully HTC will release Android 2.1 for us Europeans! (c'mon, HTC, pretty please, please ;-)

I am going to write a (small) book review of both as I get through them!

Jan

PS. I know that Mark Murphy has written Beginning Android 2 as well and I will look into that as soon as possible. First I need to learn to crawl ;-)

March 28, 2010

Analytics4Android update - now at version 0.15

Analytics4Android is now up to version 0.15 and we are half way to the next mile stone. It can now retrieve the Analytics Account profile feed. Next task is to parse that feed.

UI development is on hold for now. I want to implement a tabbed UI and it is currently giving me a headache. Apparently it is a bug in eclipse and/or the Android SDK/ADT.

Tomorrow will be the start of the profile feed. All the data feeds are formatted as XML Atom feeds.

Analytics4Android is an Android Application/Widget that will display (excerpts from) Google Analytics data. It is currently under active development and is in alpha state. First beta release will be version 0.50.

Queries against Google Ananlytics Data Export API with ClientLogin

Just wanted to share this little bit of info with those of you have yet to find it!

When making queries against the Google Analytics (GA) (and most likely all Google) Data Export APIs when you have authenticated using ClientLogin the authentication type sent as a header in HTTP GET.

I missed that somehow and kept getting "401 Token Invalid - Invalid AuthSub Token" when trying to retrieve the GA account profiles. My error was ofcourse sending
"Authorization: AuthSub token="
which is related to the AuthSub authentication method.

When querying for data you need to send:
"Authorization: AuthSub token="
instead.

March 27, 2010

Anaytics4Android moving forward ...

After a lot of problems getting eclipse to run with the Android Development Tools (see this post: ) I have been doing a bit of refactoring of my Analytics4Android code today. The refactoring was to streamline the way I handle Google logins and accounts to that I can re-use that code in other projects.

Thus there has been no 'feature enhancements' but the minor version number has been incremented.

Currently I am working on two fronts;

  1. Redesigning the UI to a Tabbed View.
  2. Refactoring to allow re-use of code in future, google-account-related projects.
re 1)
I have hit a snag somewhere that others have reported. I am not sure if this is a problem with the ADT or eclipse or both. The Tabbed View throws an exception in eclipse when designing/instantiating the layout.xml file. Furthermore my app throws an exception when run in both the emulator and in my HTC Hero (Android 1.5). If these are related or it is a coincidence I am not sure. Further investigations and test projects are in the making

re 2)
When I started this project I was (and still am) learning both Android development, the Google Data APIs and re-learning Java. So my ideas have not always been efficient with code re-use in mind. Some parts need to be further refined to allow code re-use better and I am constantly reviewing my code with this in mind. This leads to further re-factoring and thus less forward motion feature-wise. I hope that you will have some patience with me,

Tomorrow I will circumvent the UI issues and start concentrating on getting the Analytics Profiles upon successful authentication. I am going to (temporarily) hard code the use of my own Google and Analytics account to be able to move forward.

During the start of next week I will have a look at a few exploratory projects on how to get the Tab View part right.

During Easter the project is on hold. I am away on some Family engagements and will most likely not be bringing my laptop.

March 25, 2010

My first bug filing - Nautilus hanging on opening Trash - bug # 544859 :-)

I filed my very first bug on Lanchpad on Tuesday (23rd of March 2010). My Nautilus hangs (bug #544859) (apparently in an infinite loop) when I open Trash. It uses a lot of CPU and greys the window after about 5 secs. Only way out is to force quit the window. I haven't reproduced this fault in any other "places" than Trash.

I have filed a backtrace and it appears to be a memory allocation problem so I need to provide a valgrind log as well. I have scheduled this for tonight (sorry for lagging, Pedro & community).

This is what testing Alpha & Beta software is all about. Using (and sometimes abusing) the system and report findings back. That is how we get a new stable production version of Ubuntu/Debian/OpenSUSE/insert-your-favourite-distribution-here. It is exciting to be a part of this :-)

The developer who grabbed the bug report, Pedro, has been swift in his replies (a lot swifter than my re-replies) and I Thank You, Pedro, for your time and patience :-)

Solving my problem with Eclipse !!! [SOLVED]

Last Update 25/3 21:56 - problem solved

In my efforts to solve my problems with Eclipse and Android working on my Ubuntu Linux 10.04 lucid lynx Beta 1(and earlier Alphs 3) I decided to remove Eclipse completely using synaptic and marking eclipse and its components for "Complete Removal".

I deleted the workspaces I had lying around and I went on a hunt for any eclipse-related (config) files with # sudo find / -name *eclips*

Apart from files in ~/.mozilla/eclipse/ (permissions.sqlite, places.sqlite, places.sqlite-journal and prefs.js) that I dare not delete and some files in Trash (that I am not able to empty, as Nautilus hangs when opening Trash (bug #544859 for which I need to do a valgrind run - will do that tonight)) I seem to be free of eclipse-related files.

So I will once more try to install eclipse from the Ubuntu repositories with

# sudo apt-get install eclipse

and then pray for the best. See you at the other side ;-)

Update (13:48):

Excerpt from the above # sudo apt-get install eclipse :


0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
Need to get 230MB of archives.
After this operation, 361MB of additional disk space will be used.

Good thing that the University 'net connection is behaving today - doing from ~180 KBytes/s and upwards :-)

Update (13:53)
Well. Still having the same problems. Sigh. Eclipse looks for https://dl-ssl.google.com/android/eclipse/ which it does not find. Now what?

Update (21:56)
It seems that there was already bug filed in Launchpad: eclipse unable to 'install new software' (bug #541482). Somehow I just missed it :-s

It is a problem with the network stack, and if you force java to use the IPv4 stack by adding the following to your eclipse (when starting it):


-vmargs -Djava.net.preferIPv4Stack=true

things are back to normal. Great! Problem Solved!

PS.
thus having the line


eclipse -vmargs -Djava.net.preferIPv4Stack=true

in the launcher does the trick!

March 24, 2010

Backup for (Ubuntu) Linux

During all my toils of getting my development machine back up working (laptop using Eclipse to do a little Android development) I have been doing a lot of backups. And have had to struggle with it.

So where are the easy backup solutions for (Ubuntu) Linux lurking about? I need to do a backup to (and restore from) external media CDs or DVDs, preferably RWs. Which software handles that easily including blanking said RW medias, including DVD+RWs. And preferably is able to do multi-volume backups.

At this time I do not have a set backup routine for my pictures, mail, videos, etc. I do use Ubuntu One for some things but am limited to the free version and thus only 2 GB. So it is basically Ad Hoc backup for me.

Anybody have any good backup solutions? Please post in comments! (comments are no longer moderated in new (< 14 day old) posts)

March 23, 2010

Problems getting ready for Ubuntu 10.04 lucid lynx beta 1

For several reasons I have decided to move to Ubuntu 10.04 lucid lynx beta 1 from the alpha 3 I am running at the moment.

I am keeping my /home partition while wiping my / partition. Most of this morning has gone with getting the beta 1, writing it to disk and backing up my /home. I found a spare DVD+RW disc to put the backup on.

But I have been fighting with Ubuntu to format/blank this disc and getting brasero to accept it. I have yet to find a way. I have tried the dvd+rw-format utility but to no avail. If this is due to me running alpha software i am not sure, but that's the state I am in at the moment.

I finally found a fresh, blank DVD-RW disc to hold the backup and I'm writing this at the moment.

So I wasted the morning, hopefully things will turn out for the better. I filed a bug on Nautilus hanging when opening Trash in alpha 3 this morning. Let's see if that is present in beta 1 as well.

Analytics 4 Android development has been on hold for the duration of this. Let's hope I get back on track.

March 22, 2010

Problems with Eclipse and ADT (Android Development Tools)

I am having a few problems since my upgrade to Ubuntu 10.04 (lucid lynx), working in Eclipse. I cannot install the Android Development Tools (ADT). I cannot even get in contact with the Eclipse repositories. I have tried both the Ubuntu package of Eclipse and the .tar ball from eclipse.org. It makes no difference.

I seem to have no other difficulties with my lucid lynx, other than that WINE does not have a lucid lynx ppa (as far as I can see). But I am still wondering if it is something related to lucid lynx that makes me unable to get to the Eclipse and ADT repositories. So I am downloading an ISO image of Ubuntu 9.10 Karmic Koala and will run that in VirtualBox. Unfortunately the network at my university is quite slow today. I might actually get better transfer speeds through my cell phone, but I need to keep my data usage down - I only have 300 MB/month as I am trying to cut costs.

Googling bug reports on this I have found some on Eclipse crashing on (an earlier) lucid lynx alpha due to xulrunner being buggy. This was connected to the auto-completion feature in Eclipse. If this is a related bug, I am not sure.

I will update this post as I get more info. I am still downloading karmic koala.

UPDATE (12:05):
I have downloaded the ADT 0.9.6 .zip file but the install fails due to missing org.eclipse.wst.sse.core - so I still need to get the Eclipse part right.

UPDATE (23/3 22:15 CET)
I reinstalled Ubuntu with lucid lynx beta 1. Still no go. I cannot even get eclipse to access its own update repositories. Veeeery frustrating!

March 19, 2010

Installing Ubuntu 10.04 Lucid Lynx Alpha 3 on the laptop

While the Ubuntu 10.04 Lucid Lynx Beta 1 release is yet to happen I decided to go with the Alpha 3. I could have waited for the Beta 1 which was originally scheduled for release yesterday but apparently is supposed to be released today, but I felt that I would loose yet another day not being able to work on Analytics 4 Android.

So I jumped in at the deep end and installed Alpha 3.

(all photos taken with an HTC Hero mobile phone
apologies for the quality.)

I installed the standard version without any manual selection of options, etc.

The system started booting from the live CD

The graphic install tool (looks much like the 9.10 Karmic Koala version) guided me through installation (pictures missing). As this machine is a dual boot I had to modify the partition scheme manually but apart from that everything else was default setup.

Finally the process was done and the machine was rebooted:
GRUB loads and displays the above menu for 10 seconds. If Ubuntu was installed on a fresh drive without any other Operating Systems, this boot menu would have been hidden.

The "Windows NT/2000/XP (on /dev/sda1)" is the laptop manufacturers recovery partition and the "Microsoft Windows XP Home Edition (on /dev/sda2)" is the Windows OS that came with the machine. For various reasons we need this OS in our family and thus it stayed on the hard drive.


When you log in to your Lucid Lynx Alpha 3, this is how your desktop looks like. For the most part it looks like Karmic Koala, maybe with the exception of the "me" menu next to the power symbol (log on/off menu) in the top right corner:

This menu gives access to the social media, like twitter, FaceBook and other chat accounts as well as Ubuntu One.

I like to modify my desktop so that I get a little more desktop real estate, so I usually remove the bottom panel. To retain the same info on just one panel, I exchange the Main Menu Bar for a Main Menu and add the Window Selector, Trash Can and Workspace Switcher from the lower panel to the upper panel. I also add the System Monitor with all six meters showing (CPU, Memory, Network, Swap, Load Avg and Disk).

The theme and background pictures in this release seem to be the old Karmic ones, but it was only recently that the new themes and backgrounds was released:

As my laptop's built-in wifi is with a Broadcomm chip set that is not supported out-of-the-box (because of copyright policies) I had to install this driver through a "wired" net connection, in this case my HTC Hero Android based mobile phone, which was recognized out-of-the-box. Having done this and rebooted I could do a apt-get update/apt-get upgrade which in my case was 528 packages demanding about 240 MBytes downloaded.

I now need to add the extra packages I need. I will return in a few days with an update. If the Beta 1 is released later today I will re-install that (but keeping my /home) during the weekend and post that story.

March 18, 2010

Switching to Ubuntu 10.04 Lucid Lynx Alpha 3

As I wrote yesterday, my laptop is running an Ubuntu 9.10 that has basically been around since 7.10 or 8.04 and has been incrementally upgraded through 8.10, 9.04 and lately 9.10. And I have installed and removed a number of programs. Which all means that there must be residual files, that are no longer needed.

The laptop is not a new machine as you can imagine. The battery is getting closer to the end of it\s life cycle as it has maybe 20-25% of it's capacity left giving about 20 mins of standard work (no heavy I/O esp optical drive, not full CPU load).


The hard disc drive is a mere 60 GB and my Ubuntu co-habits with a Windows XP installation as well as the pre-load/recovery partition. All-in-all this leaves just under 20 GB for Ubuntu. As I have 1.5 GB of memory onboard I have allocated just over 1.5 GB for the swap partition so that it is possible to suspend to disc. So that leaves about 18 GB for both the / and /home partitions. This is currently split 6/12 GB which I think I will keep for the time being.

I need the following software packages for my everyday use:
  • Internet
    • Firefox
    • Chromium
  • Office/productivity
    • Evolution
    • OpenOffice
  • Programming
    • Eclipse
    • Android SDK
In addition I need the following programs often enough that I am going to put them on my laptop:
  • Graphics
    • GIMP
  • Internet
    • Skype
    • Empathy
    • Ubuntu One
    • XChat
  • Sound & Video
    • Gnome Subtitles
    • NtEd or GNU Denemo
    • OpenShot Video Editor
    • Pitivi Video Editor
  • System Tools
    • Virtual Box
    • Wine
    • Test Drive
Luckily a number of these programmes are already present on the standard Lucid Lynx installation:
  • Internet
    • Empathy
    • Firefox
    • Ubuntu One
  • Office/Productivity
    • OpenOffice
    • Evolution
  •  Sound & Video
    • Pitivi Video Editor
Most of the remaining programmes are available as packages, only the Android SDK is not.

I have been wondering whether I should install Eclipse as a .deb package or from the .tar.gz-ball from the Eclipse web site. I think I will end up installing the Ubuntu .deb package, leaving only the Android SDK to be installed from .tar.gz

I also plan to remove the games.

I am writing this blog on the Live CD of Ubuntu 10.04 Lucid Lynx Alpha 3 and while I have only used it briefly it seems to be working reasonably well.

Before I am going to re/install, I need to make a backup of my important files from my /home.

I will return with a review of Lucid Lynx in a couple of weeks.

March 17, 2010

Problems with Eclipse IDE, Android SDK hindering the development of Analytics 4 Android ...

I am currently experiencing problems that might have roots in problems with my Eclipse IDE and the installed Android SDK (which might actually have r4, not r5, for which Eclipse had downloaded its r5 parts).

So I have wasted valuable time trying to debug the new UI for Analytics 4 Android. So no real advancement on that front. I have downloaded and installed the new SDK r5 and Eclipse is now downloading and installing the new parts for this.

But I am seriously wondering, Should I just back up the important parts of my /home partition and then proceed to install the latest Lucid Lynx Alpha release ... It would have the advantage of getting rid of old files (the current installation has roots in 7.10 and has just been incrementally been upgraded).

So while I am working tonight I will be thinking about whether to wait for the first Beta or just jump straight in now.

Anyhow the Analytics 4 Android projects page is now online at kaddu.dk

Hope You have a good day!

March 04, 2010

Google Analytics Application/Widget for Android

Last Update:  March 17th, 2010 9:42 CET

I have started work on an Application/Widget that can retrieve and display data from Google Analytics, for mobile phones running on the Android platform.

This will be my first application and Widget for Android and as such it is both a learning as well as a production project as the outcome should be a usable Application/Widget.

As work is still in its very early stages and I need to research both Android development and how to use the Google Data API from Java/Android there is not much to show yet. I will put up an article on our web site, when there is more to show.

Update March 12th:
I now get an authorization token when providing my own correct google login. Failure is detected and parsed but not parsed properly and user is not informed. User info is probably going to be delayed - I'd rather try to get some data first ;-)

For progress/project status please look further down.

Update March 17th:
The past few days nothing (seems to have) happened. Partly due to other engagements, work etc. Partly because I started fiddling with the UI and that broke something, which I could not figure out. I have been writing a few lines of code which will be the start of managing Accounts and Profiles.

I have rethought the UI and the way the App/Widget will be set up, including the way it is set up in my IDE (Eclipse). I have also decided to change the name of the App/Widget, which was a working title anyway. Hopefully later today I will have put up a web page on the App/Widget with the new name. I will also change the way I update the info. So far I have just kept editing this post. From today I will make a new post with the changes only and then put the status on the web page. When the web page is ready, I will post the URL here.

Status: Version 0.10 - alpha state

Next mile stone: V. 0.20 - Account Query (request profiles)

To Do (anticipated version):

  • Authenticate user (V. 0.10 - DONE!)
  • Account Query (request profiles) (V. 0.20)
  • Report Query (V. 0.30)
  • Widget setup (V. 0.40)
  • Widget display (V. 0.50)

Progress:

March 12th, 2010
Version 0.10

  • Authentication of Google Analytics Account code
    • HttpRequest code based upon a post by Rich Stern : http://blog.richstern.com/?p=32
    • Google now authenticates my personal account and an authorization token is returned.
    • Still need to parse the HttpResponse properly
      • Determine response from Google (DONE)
      • Inform user of failure/success (showing dialog upon Authorization already)
      • Save authorization token on succes (DONE)
    • ... time to head for the second mile stone! Whoop!

March 12th, 2010
Version 0.05
  • Authentication of Google Analytics Account code
    • HttpRequest code based upon a post by Rich Stern : http://blog.richstern.com/?p=32
    • Google now authenticates my personal account and an authorization token is returned.
    • Still need to parse the HttpResponse properly
      • Determine response from Google (partly done)
      • Inform user of (possible) failure
      • Save authorization token on succes (DONE)
    • ... but I am half way to the first mile stone! Yay!
March 11th, 2010
Version 0.04
  • Authentication of Google Analytics Account code
    • based upen code from a post by Rich Stern : http://blog.richstern.com/?p=32
    • Google now authenticates my personal account and an authorization token is returned.
    • Still need to parse the HttpResponse properly
      • Determine response from Google
      • Inform user of (possible) failure
      • Save authorization token on succes
    • ... but I am almost half way to the first mile stone! Yay!
March 10th, 2010:
Version 0.03
  • code for reading UI contenst Username and Password added
  • Authentication of Google Analytics Account code started
March 4th, 2010:
Version 0.01
  • Project started.
  • UI for adding accounts started
  • No working code yet

January 27, 2010

Interesting article about Linux Kernel 'Bloat': Linux performance: is Linux becoming just too slow and bloated?

Free Software magazine has a very interesting article about the Linux kernel and its performance loss:

Linux performance: is Linux becoming just too slow and bloated?

This article discusses the differences in Micro-kernel vs Monolithic kernels with the focus on the variation of monolithic that the linux kernel uses.

January 08, 2010

Developing on Android - problems installing ADT

While trying to install the ADT on a Ubuntu 9.10 Karmic Koala using the Ubuntu Eclipse package I get the following errors trying to add ADT to Eclipse:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404)
  Missing requirement: Android Development Tools 0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group 0.9.5.v200911191123-20404) requires 'org.eclipse.gef 0.0.0' but it could not be found

Next step would be to remove Eclipse and reinstall it from a tarball I guess ....

Does anybody else got to this road-block and perhaps passed it?