Archive

Author Archive

Fixing the (too low) position of notifications in Ubuntu Karmic

November 12th, 2009 admin 3 comments

One of the first things I noticed on upgrading to Karmic was that notifications were lower than they were in Jaunty.

Like most people, at first, I thought this was a bug. The short answer is — it isn’t. The devs, in their infinite wisdom, think its better this way — the “top slot” for notifications is reserved for synchronous notifications, such as brightness and volume.

Karmic notification position

Karmic notification position

Read more…

Categories: Linux Tags:

Upgrading from Ubuntu Jaunty (9.04) to Karmic (9.10) on the eeePC 1005HA (and 1008HA)

November 11th, 2009 admin 22 comments

If you followed my guide on getting Ubuntu 9.04 to run nicely on the eeePC 1005HA, and have or are considering upgrading to Karmic, these few notes will help you.

A karmic Koala in a seashell

A karmic Koala in a seashell

Read more…

Categories: Hardware, Linux Tags:

Querying subfolders in SharePoint lists using SPAPI and GetListItems()

November 11th, 2009 admin 5 comments

This took a while to figure out. I’ve been trying to query the SharePoint lists service using getListItems().

Getting something from inside one folder is easy — you just set the queryOptions parameter to be <QueryOptions><Folder>folderName</Folder></QueryOptions>.

This works and returns items fron within that folder. But what about subfolders?

Read more…

Categories: Programming, SharePoint Tags:

Restoring karmic’s GDM (login screen) to black after trying “high contrast” option.

November 8th, 2009 admin 3 comments

Ubuntu 9.10’s new login screen looks great — brown, black and white. Much improved over the previous version.

However, if you try out the Accessibility options, in particular, the “improve contrast” option, it goes ugly, with a nasty grey bar.

The problem is that, even after you deselect the option, the theme does not revert back, even after restarting again. The problem is that some needed theme files are deleted.

The solution is simple — you need to re-install gdm. Either fire up Synaptic, search for gdm, and then mark it for re-installation, or do sudo aptitude reinstall gdm in a terminal.

There you go — sexy login screen back again.

Categories: Linux Tags:

Perfect Ubuntu Jaunty on the Asus eeePC 1005HA (and 1008HA)

August 6th, 2009 admin 156 comments

The 1005HA is one of the brand new Asus eeePC netbooks, and it is a great little machine — aside from the fact that it comes with Windows XP or a dumbed-down customised Xandros (allegedly — as time goes on, Asus seem to be selling out to Microsoft).

As the 1005HA is pretty new, it has a few odd hardware quirks that won’t be fully supported out of the box until the next release of Ubuntu.

Here I run through what I did to end up with a 100% working install — including all Fn hotkeys. The good news is that it is very easy!

My perfect Ubuntu setup on the 1005HA

My perfect Ubuntu setup on the 1005HA

Read more…

Categories: Hardware, Linux Tags: , , , , ,

Ubuntu: Getting rid of icons for mounted network shares

August 4th, 2009 admin 2 comments

I have several network NFS shares that I mount in Ubuntu using /etc/fstab. While this works fine, recent versions (I think it has been annoying me since Edgy) of Ubuntu have an annoying habit of creating a desktop icon for each share.

Annoying!

Annoying!

A desktop icon is fine for an SD card, or a USB stick, but it’s not ideal when you have a ton of network shares.

It is easy to turn off all desktop icons for mounts using gconf-editor. But I still want some of them (such as the aforementioned USB sticks) to show — just not the NFS mounts.

As it turns out, the solution is actually obvious: semi-permanent items should be mounted in the right place, under /mnt. If you mount elsewhere, e.g. under /home, you get the annoying icon. Under /mnt? No icon.

Although this turned out to be quite obvious, it is new to me — for well over a year now I’ve just had all desktop mount icons turned off waiting for the solution.

Categories: Linux Tags: , , ,

Simple dynamic ASP includes

June 19th, 2009 admin 2 comments

I always end up never quite believing it when, once again, it dawns on me that I can’t complete a project the way I visualise due to ASP Classic’s lack of support for dynamic includes.

This time, I was creating a CMS-like site, which included mixed HTML/ASP files automatically. I tried pretty much every other solution — including server.execute (no go — doesn’t preserve variables/functions),  and other examples of using ASP’s execute() command to parse files (didn’t work for mixed HTML/ASP).

So, the only thing left was to write my own. It’s fairly simple, and due to ASP/VBScript’s horribly limited feature set, very low-level. It steps through a file one character at a time, and decides if it is in “HTML mode” or ”ASP mode” at an given time, and then uses this staus to convert the file into a set of executable lines.

It should handle most things correctly, with the exception of defines, and <!--# -style directives. It handles short ASP write tags (<%= %>) just fine. Variable scope is preserved inside the include file, and variables/functions set inside the include file continue to exist outside it after it is included — in other words, just as they should.

To use it, simply include the file, and use it just as you would in a sane language:

include("relative_path_to_local_file.asp")

The function returns false if the file doesn’t exist, or true otherwise.

If you fix any bugs in this, please let me have them.

Download it here: ASP Dynamic Includes

Hello world!

June 6th, 2009 admin No comments

The obligatory welcome post! So… welcome! Find out more about me here.

Categories: Uncategorized Tags: