Blog Entries

Printer Queue on Asus EEE PC and Linux

Monday, April 27th, 2009 by DenisH

My son has an Asus EEE PC and it’s great for what he needs. He can easily carry it around and it has all the power he needs for doing his homework.

The only issue we’ve had is that our HP2605DN network printer keeps getting assigned a different IP address when we occasionally restart the network and this messes up printing from the Asus. Generally I only find out when he’s pressed print several times, so what I’d like to do is go to the print queue, remove all the pending jobs and then correct the IP address.

But the weird thing is that I couldn’t find the printer queue anywhere (we use JetDirect network printing). I searched the internet and Asus forums and just couldn’t find how to do it. The Macs on the network just find the printer using Bonjour and aren’t put out by the IP address change at all.

Finally, I discovered how to find out all about the printers and queues on the Asus EEE, you simply point your web browser at http://localhost:631. Both the Asus (running Linux) and Macs use CUPS (Common Unix Printing System™). CUPS maintains a web server on the client machine on port 631, so all you have to do is go to the web server and then you can use the web pages to see the printers and jobs, add new printers, configure printers, cancel jobs, everything you’d like to be able to do. This works on the Asus EEE, and on Macs too.

MacBook, MissingSync and Vodafone 3G USB stick

Saturday, January 10th, 2009 by DenisH

I’ve been using a MacBook for a couple of years now and really like. However, one of the downsides is that I can’t simply sync with my HTC TyTn II mobile running Windows Mobile 6 in the same way that you can with a PC running Windows.

There are a couple of apps out there that bridge the gap and the one I’ve been using for most of that time is MissingSync. This works pretty well and uses the Mac SyncServices to synchronise with iCal, Mail, Entourage, Folders, Yojimbo, music, photos, videos, installing apps and setting the time. So all the good stuff that you’d like it to do.

It’s not as seemless as using ActiveSync, but it works pretty well (I regularly get iCal/MissingSync conflicts and errors in syncing which I rarely got with ActiveSync on the PC, but they’re all manageable).

Then suddenly a month ago or so, I couldn’t sync via USB any more. I tried upgrading to the latest version of MissingSync and contacted their technical support and they suggested switching off various features such as Advanced Networking on the phone, but none of this worked. I could sync via bluetooth (but bluetooth on my MacBook disappears sporadically&mbar;due to old age??), but the USB connection wouldn’t work.

Normally when syncing, you get a transparent panel that appears on the MacBook screen and then the first of four blobs appears. When the second one appears, there’s a message to log in to the phone, so you type in your password (assuming you’ve set one) and then blobs three and four appear, then it syncs.

In my case, the first blob appeared and then it timed out. Looking at the MissingSync log, I’d see something like:

1/9/09 19:21:39  Monitor:  Connection status from 0 to 135
1/9/09 19:21:41  Monitor:  Connection status from 135 to 135
1/9/09 19:22:12  Monitor:  setUICallback
1/9/09 19:22:12  MSUI:  setMonCallback
1/9/09 19:22:23  Monitor:  Connection Failed.  Telling MSUI
1/9/09 19:22:23  Monitor:  makeSureUIAppIsRunning
1/9/09 19:22:23  MSUI:  Connection Failed for USB RNDIS
1/9/09 19:23:09  Monitor:  Listener: closeCurrentDeviceConnection 1, state=1
1/9/09 19:23:09  Monitor:  forgetDevice  rraServer:0
1/9/09 19:23:09  Monitor:  Connection status from 0 to 0
1/9/09 19:23:09  MSUI:  disconnect

To cut a long story short, I eventually worked out that the important thing I had changed was installing the software for my new Vodafone mobile broadband USB modem. This installs a new network service that you can see in the network settings (mine is called Vodafone K3520). I’ve also got (in addition to the basic ones) two installed by Parallels Desktop (Parallels Shared Networking Adapter and Parallels Host-Only Networking Adapter). These don’t affect syncing with Missing Sync.

Disabling the Vodafone network serviceAs a test, I removed the Vodafone K3520 from the network preferences and then tried to sync and it worked fine. I synced several times before I needed to use my mobile broadband modem again. To get that working again, I just reinstalled the software from the USB stick. After using the broadband several times during the day, I tried syncing again&mbar;no luck! So I went back to the Network Preferences, selected the Vodafone K3520 and selected “make service inactive” (you then have to press the Apply button too to make it effective). I then tried syncing again and it worked fine.

So now I can use my mobile broadband and sync my TyTn II albeit by disabling and re-enabling the Vodafone network service.

Update: Just to be sure of my facts for this blog posting, I downloaded and installed the latest version of Vodafone Mobile Connect (version 2.11.02.00 at the time of writing). It installed another couple of network services called DIAG and PCUI). I don’t quite understand what’s going on here because I’m sure I had these originally and then when I reinstalled from my Vodafone stick I only got the K3520 mentioned above. Now I have 3! But when I connect to mobile broadband, only the K3520 is enabled, DIAG and PCUI say not connected.

But the really good news is that now, I no longer need to disable the K3520 service. I’ve just synced again without incident and am finishing this post using the mobile broadband. (I couldn’t do both at the same time because the stick is too wide to allow a second USB device to be plugged in along side.)

Image buttons made simple

Thursday, June 5th, 2008 by DenisH

I read a blog post recently showing how to create a button with an image and text. The button looked very simple and very nice to look at, but the HTML was more complicated than I thought it needed to be.

There is a move now to make the HTML of a document as simple and self-explanatory as possible. The HTML should contain the intent of the page, CSS (and possibly JavaScript) is then used “skin” the page as required. This has become more feasible now that browsers are finally maturing and supporting more and more of the CSS standard.

So, if we want a button, we should use the <button>…</button> tag. If we want to have an add button, we want to have:

<button class="imageButton add" onclick="addSomething(); return false;">Add Something</button>

And instead of this

we want it to look like this:


(more…)

JasperException: Failed to load or instantiate TagExtraInfo

Wednesday, March 26th, 2008 by DenisH

org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class

(I had to shorten the article title to fit!)

I’ve just had a problem when I’ve taken a web application from my local Tomcat 5.5 development server (where it worked fine) and uploaded it onto a public server (also using Tomcat 5.5).

(more…)

People are like lawnmowers?

Tuesday, February 19th, 2008 by DenisH

When managing a project, it’s important to be able to work out what sort of people you have on the project. There are many ways to do this, but I find it useful to use the lawnmower analogy. (more…)