Archives: April 2009

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! :)

In-Game Voice Communication with TeamSpeak

by
InF

If you have ever gamed online with some friends, you know that communication is a must, and this is specially valid if you are playing Left 4 Dead (HUNTER!!!)! Sometimes, there is really the need to shout at that camper and tell them to get their butt into fighting. Or to shout for help. But typing just doesn’t convey the message with enough vigor or urgency. What you need is voice communications. What you need is TeamSpeak.

(This tutorial is for Windows, but TS works on Linux too. I’ll try to cover that at some other time).

Teamspeak (TS) can also be used when not gaming. For example, if you want to hold a conference among friends, or some other people. But I guess that for these stuff, Skype works best. The problem with Skype is that it provides quality at the cost of bandwidth, and when you are gaming on the low upload speeds in Mauritius, every last bit of bandwidth is important. So if you want a bandwidth-efficient way of holding a conference of around 16 people at a time (there can be more), Teamspeak is the way to go, without killing your connection.

To facilitate the connection among your friends, for both gaming on a virtual network as well as TS connection, we would like to recommend Hamachi. You can check our Hamachi article if you wish.

How to use Teamspeak? Well it’s simple enough: Teamspeak consists of 2 parts: The Server and the client. One of you people will have to host the server, and the rest will connect to that person. The person hosting the server will have to connect to him/herself. Therefore, I will break this article in 2 parts, one for the hoster and one for the clients. Here goes:

Continue Reading »

Changes Coming

by
Guru

Test week has been over since Friday and we were late to write somthing new. Moreover, exams coming in 3 weeks :( That is the sad part. I had a talk with InF, I proposed that we make some changes. As you must be aware, we saw a major hike in numbers of subscribes. We are happy and we want to give a new experience to our readers.

What we want you to do? Subscribe by feed, email, follow us on twitter or bookmark (CTRL + D).

Want to help us make you have a better experience at our place? The comment box is here. Propose, we will consider and implement if we see it in our scope. :D

I end here today. Keep visiting and commenting. :P

I will update you on any changes. :D

Test Week and Exams Ahead

by
Guru

Exams

Readers, InF and me are taking a break with blogging for the time being. We have got exams and tests killing us. So bear with us and wait for the next article. :D Thanks for reading. :D

Well, maybe in between my revisions I may write a bit. :P

From InF:

I need to write my part for this post! Seriously, we are being overkilled by UoM this time. We got test week as from April 6th. That’s next week. We got 4 assignments pending, one which needs to be returned on the last day of test week. The other 3 can be considered major ones.

After test week, we have 3 weeks, 2 weeks + 1 revision week. 3 weeks. 3 assignments. Major ones. Do you think that’s feasible? The best part is that I considered 3 assignments, 3 weeks. I didn’t include revision for exams in there. CSE expects us to do all the assignments, learn 3 language (Scheme, Prolog, AJAX), learn 1 program (PostgreSQL) for the assignments then revise and pass our exams. All this in the 3 weeks to come after test week.

I swear that after the exams are done, I’m going to write a “Rant against my Year 2″ post as a Special Post here on GS. I’d even throw in some doodles just to show how the semester went. That’s what I’m going to use my first week of holiday for!

Damn you CSE. You will either drive us mad, or kill us! This shows just how weird UoM can be. Weird and unrealistic! :/