Bug: Mengaktifkan Modul Postgresql pada WAMP 2.2

Leave a comment

Secara default,  Wamp 2.2 tidak mengaktifkan module Postgresql (pgsql). Untuk meng-aktifkannya, kita bisa lakukan dengan cara mencentang php_pgsql yang ada di PHP > PHP Extension.

php extension setting

Mengaktifkan modul php_pgsql

Setelah itu Wamp akan segera me-restart semua servicenya. Namun demikian ternyata ketika saya lihat menggunakan phpinfo(); modul tersebut ternyata masih tidak aktif, walaupun pada gambar tadi di-atas sudah tercentang. Sy curiga ada yg salah dengan wamp versi ini, bisa jadi ini adalah Bug.

Akhirnya setelah googling sebentar akhirnya sy mendapatkan solusinya. Yaitu dengan hanya 3 langkah:

  1. Copy file libpq.dll yang ada di folder C:\wamp\bin\php\php5.3.10 ke folder C:\wamp\bin\apache\Apache2.2.21\bin
  2. Setelah itu edit file config.inc.php baris 50 yang ada di folder C:\wamp\scripts, tambahkan ‘libpq.dll’ pada variable array $phpDllToCopy
  3. Kemudian lakukan restart service wamp

Untuk memastikan modul tersebut benar-benar aktif kita bisa lihat di browser dengan menggunakan url http://localhost

Semoga artikel ini bermanfaat ;)
Ref:http://forum.wampserver.com/read.php?2,40270,40311

The Myth of the Genius Programmer

Leave a comment


Just like it.

Safari browser versi windows sering crash!

Leave a comment

Karena dah kebiasaan buka safari browser di laptop macbook white akhirnya install juga di pc windows 7.
Tapi kok sering banget crash ya????

Klo dah crash kayak gitu, semua session/cookie akan terhapus semua. Sebagai contoh klo kita dah login di twitter tp tiba2 crash, maka harus login lg. Wah males deh klo dah kayak gini :(

Porting source code c++ dari Linux ke Windows

Leave a comment

Kali ini saya ingin share mangenai Porting source code c++ ke windows. Hal ini diperlukan apabila source code yang anda buat di linux di-compile lagi di windows.

Berikut ini adalah compile error dan solusinya:

  1. Compile error:
    error C3861: 'assert': identifier not found

    Solution:

    #ifdef WIN32
    #include <assert>
    #endif
    
  2. Compile error:
    fatal error C1083: Cannot open include file: 'values.h': No such file or directory

    Solution:

    #ifdef WIN32
    #include <limits.h>
    #else
    #include <values.h>
    #endif
  3. Compile error:
    error C3861: 'time': identifier not found

    Solution:

    #ifdef WIN32
    #include <ctime>
    #endif
  4. Compile error:
    error C2065: 'M_PI' : undeclared identifier

    Solution:

    #ifdef WIN32
    #define _USE_MATH_DEFINES
    #include <math.h>
    using namespace std;
    #endif
  5. Compile error:
    GL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
    GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    GL/gl.h(1153) : error C2086: 'int APIENTRY' : redefinition
    

    Solution: add <windows.h> above <Gl/gl.h>

    #ifdef WIN32
    #include  &lt;windows.h&gt;
    #endif
    #include  <Gl/gl.h>
    
  6. Compile error:
    error C3861: 'fmax': identifier not found

    Solution:

    #if defined(_WIN32) || defined(_WIN64)
    #define fmax max
    #define fmin min
    #pragma warning (disable:4996)
    #define snprintf sprintf_s
    #endif;

Semoga hal ini dapat berguna. Tq.

Installing rabbitVCS in Ubuntu Karmic

Leave a comment

Ubuntu users have several options for installing RabbitVCS. You can install the standalone packages we distribute, our tarball archive, our PPA, or directly from our Subversion repository.

Karmic and Lucid

sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install rabbitvcs-cli rabbitvcs-gedit rabbitvcs-core rabbitvcs-nautilus rabbitvcs-thunar

Leave a comment

abis jogging + jalan ke museum KAA. paregel euy

Leave a comment

kids time take over the tv

Older Entries

Follow

Get every new post delivered to your Inbox.