Working with Windows Services using C# and WMI

I’ve been trying out various ways of intracting with Windows Services from C# code. From what I’ve seen, basically you have the following methods:

  • WMI Queries via classes in the System.Management namespace,
  • Strongly-typed WMI proxy classes generated using MgmtClassGen.exe, and
  • The System.ServiceProcess.ServiceController class.

Continue reading “Working with Windows Services using C# and WMI”

Android SDK, Windows 7, and Java

When you’re installing Android SDK (on Windows 7 64-bit – perhaps on other versions too?), it can’t seem to find your JDK installation. When you click next on the first screen, it will present you with a screen saying Java SE Development Kit (JDK) not found.

When that happens, just click back, and then click next. Lo and behold … it’s found Java now! 😀

How to enable 24 bit “truecolour” in Windows 7/Vista XP-Mode

If you haven’t already started the Windows XP Mode virtual machine, do so by going to
Start -> All Programs -> Windows Virtual PC - Windows XP Mode

In Windows XP Mode, start the registry editor, and go to the following location:

  1. In Windows XP Mode, start the registry editor
  2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
  3. Add a DWORD Value named ColorDepth
  4. Give it a value of 4
  5. Restart Window XP Mode

The colour depth should now be set to 24 bit. You can close the VM, and start any XP-Mode programs you have in your Windows 7/Visa menu, and it should also be running in 24 bit mode.

Thunderbird 3.0 is officially available!

thunderbird logo

Mozilla have released the new major version of Thunderbird. It has huge improvements in the interface. First of all, the inboxes of all your mail accounts are grouped together and they’ve been moved to the top. You can also view a collated list of emails from all your accounts by clicking on the top level Inbox.

Gmail users will love this version of Thunderbird. Setting up a new Gmail account is as simple as entering your username and password. You can see all your tagged emails in separate folders too.

The POP3/IMAP account setup process has also been totally simplified where it asks you to enter just the email address and password, then tries determine the server information from that. Even when it can’t autodetect the server, it populates most of the information in the manual setup window.

The main user interface is now tabbed like firefox. opening an email now shows it in a new tab instead of a new window. Search results are also displayed in a new tab.

The search feature is one of the most improved features in Thunderbird 3.0. The search results look similar to a web search with the title and summary of each email matching your search. Additionally it also allows you filter the search results based on a number of criteria, all without having to rerun the search.

And last but not least, being a sister-product to firefox, it has a huge number of add-ons.

All in all it’s a great email client. Its available for Linux, Windows and Mac. Get it at Mozilla Messaging.

GNU/Linux making inroads into the desktop

Dell have been offering Ubuntu as an option for many of their PCs for a while, Asus have EeePC, and Lenovo offer various distributions of linux. Now HP have joined the ranks by supplying SuSE on their enterprise desktop systems

While many distributions of GNU/Linux have been more than suitable for most users, there have been quite a few obstacles preventing it from getting into their desktops. One of the main reasons behind this is that Windows comes preinstalled with almost all new PCs, and most people including those that are moderately tech savvy are afraid of installing GNU/Linux or even any OS on their computer. Continue reading “GNU/Linux making inroads into the desktop”

Pinging Windows/SMB computers using their Netbios name

You can easily set up a linux computer to contact/ping windows computers using their netbios name (computer name set up in windows). This will show you how.

In a small windows network you can contact (i.e. ping etc.) one windows computer from another using their name even if there isn’t a DNS server in the network. However, from a computer running linux, you would need to know the ip address of the computer you want to contact. The “computer name” the windows computers use in this instance are their netbios names which other computers discover using WINS resolution. Linux computers are usually not set up to use this.

The most common solution is to just add just add the PCs to your hosts file. But that would become tiresome if you have more than a couple of computers, and would not work at all if your computers use dynamic IPs.
Continue reading “Pinging Windows/SMB computers using their Netbios name”

Installing Ubuntu (Linux) on HP dv2899ea Artist Edition

The installation was simple, very similar to a Windows installation with no questions that should appear difficult to anyone who’s used a computer before. In under 30 minutes I had a workable system running Ubuntu, and that included Open Office and a working network/internet connection including WIFI!

After playing around with Vista for a couple of days on my new HP dv2899ea Artist Edition Notebook, I had decided it had to go. For starters it had a restore partition that had taken up 12GB and for some reason the actual supposedly fresh installation took up at least twice as much. But I made a set of system recovery discs on just in case if for some reason I decide to install it again. That took about a year and a half to create! (OK, may be it was a little closer to a couple of hours.) Continue reading “Installing Ubuntu (Linux) on HP dv2899ea Artist Edition”

HP dv2899ea Artist Edition

The HP Pavilion dv2899ea (Artist Edition) is a nice little laptop that departs from the usual design of the plain plastic case, and replaces it with a case that is decorated with some fancy artwork. As for specs, it does come with a lot of punch, A 2.5GHz Core 2 duo T9300 CPU with 4GB RAM and an nVidia GeForce 8400M GS …

HP dv2899ea Artwork

My VIA en15000g desktop is fine for Web Surfing, writing documents and editing a picture or two, but sometimes it does get a little frustrating. So I got myself a new laptop. The HP Pavilion dv2899ea (Artist Edition) is a nice little laptop that departs from the usual design of the plain plastic case, and replaces it with a case that is decorated with some fancy artwork. It comes with side bag with similar design imprints to help you lug it around, and at 2.5KG you shouldn’t have much of a problem carrying it with you.

As for specs, it does come with a lot of punch, A 2.5GHz Core 2 duo T9300 CPU with 4GB RAM and an nVidia GeForce 8400M GS with 128MB RAM to be precise. This makes it more than adequate to run Continue reading “HP dv2899ea Artist Edition”