Paul Colby's blog

Calculating CPU Usage from /proc/stat

I recently came across a number of forum topics asking how to calculate CPU usage from /proc/stat, which raised a very slight sense of challenge within me (was just in "the mood" to do some BASH scripting)... so, here's an example showing how to calculate CPU usage with a simple BASH script.

Patching jqSOAPClient for Google Chrome

We've been using jQuery at work for an up-coming secret project, and frankly, I think it's great!! :) We've also been using the excellent jqSOAPClient plugin for performing SOAP requests. However, when Google Chrome was released last month, I immediately tried our app with the new browser, only to find that all jqSOAPClient requests were failing under Chrome :(

Who wants DB2 Express-C 9.5.2?

Rav Ahuja (an IBM product manager) has just posted a very interesting question over at the IBM DB2 Express Forum titled Who wants DB2 Express-C 9.5.2? As you can see in my reply, I, for one, am very interested in getting my hands on a DB2 Express-C 9.5.2 release, as I live in hope that it will solve some my db2text grievances!! :(

Why I like the current iPhone craze

Most people who know me will be somewhat surprised by the title of this post... but it's true. I do, indeed, enjoy the current iPhone craze - simply because I think some good is likely come of it :)

Specifically, there's two main positive things that I think may come from the current iPhone craze:

Custom hierarchical cursors with the AdvancedDataGrid

Yesterday, I was trying to write a custom hierarchical cursor class that implements the IHierarchicalCollectionViewCursor interface. But no matter what I tried, the AdvancedDataGrid would not recognise my implemented cursor class as being hierarchical. When I extended the existing HierarchicalCollectionViewCursor class, the AdvancedDataGrid would happily recognise it - even I overrode every single method and property... yet, as soon as I switched the class to implement IHierarchicalCollectionViewCursor instead of extending HierarchicalCollectionViewCursor, the AdvancedDataGrid would break again.

Syndicate content