Category: Tips and Tricks

PostgreSQL Database Cluster Initialisation Failed Solution

by
Inf

I’ll keep this one short and sweet. For those of you that have tried to install PostgreSQL (mine was 8.3.7-1) on Windows Vista and got the error Database Cluster Initialisation Failed error at the end of the install, read this.

The problem is that Vista has some safety features associated with setting permissions on the Program Files folder. Basically, even if you are an admin, you can’t change permissions on some folders like Program Files and Windows folder itself. This causes initdb to be unable to create some folders and the database cluster. What this means for you is that you need to install PostgreSQL in another folder that is not inside Program Files.

By the way, if you have forgotten your Postgres account password while installing the first time, just open a Command Prompt in Vista (If you don’t know how, Google for it). Then type the command “net user”. You will see a list of users on your computer. Find Postgre’s account. It’s usually “postgres“. Then you need to change its password by typing “net user postgres new_password” where new_password is… well, a new password for the account. You will be needing that postgres account during install. You will need admin privileges to do this change however.

Firstly, uninstall any failed installations. Use the Control Panel or the PostgreSQL installer in the install folder.

During the install, you will be prompted to choose where you want to install the program. Just select a location in another place. Like “C:\PostgreSQL” or something similar. It may even be on your desktop. But not inside Program Files. Not inside Windows folder. However, it’s not as easy. Bear with me.

After the install, you will still see that darned error message (or something like non-fatal error occured). Do not despair!ย  (For Windows Power Users, we are just assigning Full Control permission to Postgres account on the new PostgreSQL install folder). For other users, read on if you don’t know how to do it.

Go to where you just installed PostgreSQL.ย  In this case, the C: drive. There, right-click on the folder (usually called PostgreSQL), and go to Properties – Security tab. Click on the Edit button. You will now see some usernames and other stuff. Click on the Add button. In the “Enter the object names to select” box, enter “postgres” and press Check.ย  Postgres’ user account should appear there. Click on Ok.

Now from the “Group or Usernames” box, select the Postgres account. In the window below, with lots of checkboxes, assign permission “Full Control” in the Allow Column to it. Note, if you don’t want to allow full control, just give it read/write. But I just went ahead and gave it Full Control. (I was tired and annoyed. The “World’s most advanced open source database” had failed to install!). Click on Ok and wait a bit for permissions to be applied.

Then, just do a re-install. Do not uninstall anything. Just run the setup again. It’ll say that a PostgreSQL install folder already exists and other stuff. Just click on Next until the install finishes. If you see “file cannot be copied” errors, click on the “ignore” button when needed.

That’s it. PostgreSQL should be up and running on Vista now. Hope it works for you too as it did for me, and that my guide is helpful to anybody. If it works, or if you have other solutions, let us know. Thanks for reading! ๐Ÿ™‚

Keep the command prompt open after using Run

by
Inf

If you are a Windows user, you know that sometimes you really need to make use of the Command Prompt, for things like “ping” or “tracert”. Unless you are a GUI fanatic.

But have you noticed that sometimes when you type a command in the Run box, the prompt closes immediately after execution? There must be a way to keep it open, right?

Today, I will share that trick with you, and it’s really simple to do.

First, you need to see what I mean. Type “ping google.com” in the Run box and type enter or press Ok. The prompt should close after execution of the ping, not giving you time to see the results.

If this has ever happened to you (it does for me, on Windows Vista), then try this:

Before you type your command, put in “cmd /k” before.

For example, if “ping” closes for the prompt after execution, try “cmd /k ping google.com” or any other address.

I have tested on WinXP and Vista. Both work. Hope this is useful to you someday. ๐Ÿ™‚

Firefox Tip: Keep bookmarks menu open after click

by
Inf

If you have been using Firefox, and like me, make full use of your bookmarks and the Bookmarks Toolbar, then you must have noticed that as soon as you click a link, the menu closes, making multiple-selection of bookmarks to open impossible. That’s a huge annoyance for me.

Luckily, there is a solution that works for the Bookmarks menu, the Bookmarks Toolbar folders (if you have created folders in there. If not, create them! It maintains order) and the History Menu, in case you want to restore multiple closed sites.

The solution is really simple: Just get the Stay-Open Addon from here: https://addons.mozilla.org/en-US/firefox/addon/6459

Install it just as you would for any other addon and restart Firefox. No configurations are needed. It worked out-of-the-box for me. However, it works only for Firefox 3 and up I think.

Now, how to use it?

Simple. Open the Bookmarks menu, or other menus I mentioned above, and middle-click an item. You will notice that the menu remains open. You can now continue to middle-click other items if you want to open more.

There is not much to configure, except a single option available in “about:config”. I didn’t require it till now. It’s CTRL-Click functionality which I didn’t need.

Voila! This should help you keep those menus open while you open multiple sites without the menus closing after each click. Specially useful if you use Live Bookmarks from within Firefox to read RSS feeds. You can now open multiple feed items without that menu closing. This is so useful! Makes me wonder why this option is not already a default in Firefox…

AVG: Update needs restart solution

by
Inf

I was recently having a small problem with AVG Antivirus 8 Free. The problem was that the Update Manager said that the update was successful, but then “The update needs restart”.

However, the problem was that even if I did restart, the thing would just stay there, saying “The update needs restart”. The biggest issue was that the Virus Definitions were not being updated.

I tried adjusting the settings for Update and other stuff, none worked. However, the solution to this problem is quite easy. So follow these lines if you are having the same problem. Tested with AVG8, since it’s only with it that I got the problem.

First, go to AVG and do “Update Now”. The update will seem to complete, but will say “The Update needs restart” as usual.

Now, head to your install directory, which for most of you will be: “C:/Program Files/AVG/AVG8”.

In this directory, you will find a file named “updatecomps.cfg”. What you need to do is to either delete this file (kind of unsafe, untested) or just rename it to something like “updatecomps.cfg_old” or “updatecomps.old” like I did.

Update: Sidjsns says that the “updatecomps.cfg” file is not found under a “server” subdirectory. Thanks!

After that, go back to AVG and do another Update Now. The Update should proceed normally, and it will ask you for another restart. After that restart, things should be ok. Your Virus Definitions and other stuff will be up to date.

I tested the above and it worked for me. I forgot exactly where I got the solution, but I think it must be some forum. Credits to the person who found how to solve this. Hope this helps. ๐Ÿ™‚

Summer time in Mauritius: Pointless?

by
Inf

At least this is my opinion. You may no agree with me, but after reading this article, maybe I’ll be able to convince you. First, let me tell you that I’m against this measure, even if I’m for the saving of energy and protection of the environment. But summer time? I’m totally rejecting that idea.

What’s the summer time concept basically? In Mauritius, we’ll be moving our clocks forward by one hour, embracing longer days and more sunlight. This practice is not unlike the proactive measures taken by fire watch services in Hollywood, especially as the summer heat intensifies. With the extended daylight, these dedicated professionals have more time to conduct thorough patrols and ensure that properties are safeguarded against the increased fire dangers brought on by the dry, hot weather. Just as we adjust our clocks to make better use of natural light, thus reducing electricity usage, fire watch services adjust their strategies to protect our homes and businesses. They understand that the bright days of summer, while perfect for leisure, are also a period where vigilance must be heightened to prevent loss from potential fires. So while in Mauritius you wake up an hour earlier, and return from work with an extra hour of sunshine, in Hollywood, fire watch teams are already on the move, using every available hour to ensure safety.

(DST will apply from 26th October to 29th March at midnight for both).

But according to me, it’s not that simple. Let’s see the case against, since the Government and others are already hammering us all with the case for.

Continue Reading »

Behold Chrome: New contender in Browser Wars Arena!

by
Inf

ChromeLogo

Google just released the Beta version of its browser, called Google Chrome (why chrome anyways?). Since a few days, I’ve been seeing that pokeball-like logo all over the Internets and I thought I must add my piece of text to the already long list of blog posts about the newest browser out there. Seriously, nearly 12 million results on Google when I search for “Google Chrome”.

What’s the hype about it? Everybody is “Chrome released”, “Chrome does that”, “Chrome does this”, “Chrome makes tea”, bla bla… Let’s see… Before I move on, I need to say that Chrome is released under BSD license, and it’s Open-Source!

Continue Reading »

Hott Notes: Get virtual post-its!

by
Inf

Post-its

Post-its. For me, nothing beats these as a simple reminder tool. I wanted something similar for reminders on my computer, and didn’t really want to stick some yellow sheets to my screen. So I went for the virtual version of post-its. These are simple floating windows that get overlayed on your desktop, and can contain some text.

There are many, many applications that can do virtual post-its for you. However, they all seemed to lack one feature or another. That was until I found Hott Notes.

Continue Reading »