Text

Câbles et fils pas chers, Monoprice.

Je sais que pour plusieurs d’entre vous ce site vous est déjà familier, mais pour ceux qui ne le connaissent pas, Monoprice.com est vraiment LA référence pour vous procurer des câbles et des fils de tout genre. Que ce soit pour des câbles HDMI, DVI, fil à iPod, adaptateur pour MacBook, etc. Bref, tout y est!

Donc, avant d’aller dans un magasin grande surface pour acheter un câble à 500% de profit, allez faite un petit tour sur Monoprice. Le shipping prend normalement 5 jours et leurs produits sont solides.

Photo
Quote
"I hate it when people call themselves ‘entrepreneurs’ when what they’re really trying to do is launch a startup, so they can cash in and move on. They’re unwilling to do the work it takes to build a real company, which is the hardest work in business."

— Steve Jobs

Text

PostgreSQL on Mac OS X Lion

Ok, I struggled pretty hard on installing PostgreSQL on my mac running on OS X Lion.

Near the end of the installation a pop up was displaying the following message: 

“Problem running post-install step. Installation may not complete correctly. The database cluster initialisation failed.”

I visited the .log file and saw this error:

“Failed to initialise the database cluster with initdb lion”

The problem is that for some kind of reason, the installer has some difficulties to create the user “postgres”.

Here’s the solution:

1) download the latest postgreSQL installer here http://www.enterprisedb.com/products-services-training/pgdownload

2) Create a user named “postgres” in the System preferences under Users & Groups

3) Run the installer (you should not have any errors this time)

4) To remove the user from the logon screen (since you wont use this user to login), run this line in Terminal.app: sudo dscl . -create /Users/postgres UserShell /usr/bin/false

That’s it, hope it helps somehow :D