PostgreSQL error “duplicate key violates unique constraint”
When insert data into PostgreSQL and getting the error of “ERROR: duplicate key violates unique constraint”. That means the primary key has out of sync. Need to check the database SELECT...
View ArticleWhen restarting Windows 7 and it stuck at the black screen
When restarting Windows 7 and it stuck at the black screen with the cursor blinking, the first thing is insert the Windows 7 DVD and fix the Mbr. Main reason is because it is the OEM disc and not the...
View ArticleACL x+ problem
When I woke up this morning, and started to notice some strange behaviour appear on the Mac. Certain applications couldn’t delete things while some was having some problem showing some saving issue....
View ArticleRuby Postgres Gem install on Mac
Always getting the header not found error. gem install pg — –with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config
View ArticleCleanmymac and Omnifocus problem
Every times, when I used CleanMyMac, it will clean the Omnifocus cache. Then I will get error on “Unable to execute SQL”. The way to fix it is click the “Rebuild Database” under File of OmniFocus.
View ArticleWordPress Asking for FTP credentials
I notice when I upgrade one of my blog doesn’t require any FTP credentials but another requires. To avoid this, is to set the directory to the same user as the hosting daemon service running. For...
View ArticleVmware installation problem for MSI ” failed
To solve the msi installation when install the tools-linux, tools-freebsd and etc. Just skip it first by clicking the OK button. Then later go to cmd and something like VMware-xxxx.exe /x if you have...
View Articlepg_config missing?
Use below command to find the pg_config $sudo find / -name pg_config Then run below command for installation of pg gem on Mac $gem install pg —...
View ArticleFixing Postgres connection issue on Mac with Rails
When doing using rails on Mac which require Postgres, an error appeared which showing connection problem. could not connect to server: No such file or directory Is the server running locally and...
View ArticleTurn of spotlight and mds from scanning your external hdd
Quite often when having problem ejecting the external hard disk from my Mac OS X. I’m getting error saying that there the hard disk is being used. So to check which process is using the volume with...
View Article