Saturday, March 8, 2008

Changing user password in postgres

1. [root@localhost ~]# psql -d coba -u yourname
psql: warning: extra command-line argument "hastuti" ignored
psql: Warning: The -u option is deprecated. Use -U.
User name: hastuti
Password for user :
Welcome to psql 8.2.3, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query

coba=>

2. use ALTER USER
coba=> alter user yourname with password 'newpasswd';

Is the server running on host 'localhost'; and accepting TCP/IP connections on port 5432?

Tanya:
Sample scripts in PHP file:

The result is..
Unable to connect to PostgreSQL server: could not connect to server: Permission denied
Is the server running on host 'localhost'; and accepting TCP/IP connections on port 5432?

Jawab:
try to update your script into like this..


there is no host=localhost above, maybe its working, i hope..

Saturday, February 23, 2008

Create n Publish Online Website With Weebly

Buat para pemalas dan HTML Newbie, tersedia weeb tools buat generate HTML bernama weebly.
Lumayan sih tampilan yang di hasilkan, daripada generate HTMl dari notepad kekeke...
Gak perlu pusing-2, jadi deh web bagus. Bisa impor content blog segala.
Tapi katanya sih buat yang dial up, koneksi iprit2 dan teman2-nya.. ngebuka weebly ini sungguh menderita.It takes a loooooooooooonnnnggggg timeee. Mungkin bikin web malah jadi frustasi kali ya hehe :P balik lagi ke notepad aja :)))

Liat disini untuk selengkapnya.

Ini beberapa screenshootnya:























Too Much Complicated With FTP Blog Custom Domain

Sedianya, beberapa hari lalu ingsun sewa domain+hosting untuk keperluan bizniz.
Setelah semua urusan beres, tinggal giliran buat program pake PHP utk generate my own website.

Tapi ternyataaaaaaaaaaaaaaaaaaa....

Setelah merenung, menginat, menimbang, akhirnya gw memutuskan utk ga jadi coding n memakai blog2 gratisan sebagai alternatif generate web.
Lha piye toh.. gak selese2 coding soalnya jg sibuk dng urusan rumah tangga. Cukup menyita waktu. No to time to eat, no time to sleep, no time to breath hueheheh...
Dengan segala kemudahan dan fleksibilitas yang gw butuhkan, akhirnya blog terbitan google-lah yang gw pilih. Berhubung gw dah terlanjur hosting, gw lalu sok memilih option advance setup for custom domain. Apalagi gw jg udah kadung nyiapin HTML template sndr hasil download sedari dulu kala. Semua ini, gw pikir, sangat mendukung bila mau goBLOG with google custom domain.

Tapi ternyataaaaaaaaaaaaaaaaaaa....

Memang sangat mudah pakai custom domain, kita bisa custom pula template HTML-nya seenak jidat karena google memang menyediakannya utk itu. Tag2 XML dsb dsb yang biasanya kita liat di Layout setting itu ga terlihat, hanya beberapa tag yang sudah di sediakan oleh google untuk kita pakai, seperti Template Tag list , Profile Tags , Backlink tags , and others that defined here.

Awal di generate sih oke oke aja, gw puas.. tapi berhubung pada dasarnya gw orangnya perfectsionis, gw cukup terganggu dengan out tampilannya yang ga se-fleksibel free hosting di google (ya seperti blog biasa ini). Ada beberapa "fasilitas" dan berbagai "kemudahan" yang ga di support di custom domain.. weleh weleh.. mungkin kerna template edisi custom domain ini versi jadul dan lagi ngapain juga hosting luaran... kok minta tags lengkap dr google... rugi dong! enak aja...! ga tau diri lu! coding sendiri sanah...! dasar pemalas..! gitu kali pikir the giant google.. heheheh...

Beberapa hal mengganggu (tapi tidak merugikan) yang sudah gw temuin adalah sbb:
  1. Secara garis besar, tidak ada fasilitas widget. Menu sidebar standar hanya di sediakan profile, archieve, recent post (blogger previous items), sama link exchange (semacam itulah..).
  2. Urusan Label... kata2 "Labels: ", di ceplokin (embeded) langsung di akhirul posting oleh google. Lha kalau label words-nya mau di ubah jadi .. misal.. Kategori? Category? Tags?... ya.. mboten saged.. ora iso.. ga bisa.. it cant be.. semua udah di set di tag yg di sebut BlogItemBody, di HTML-nya kita liat dengan bentuk $BlogItemBody$. Kita ga bisa ngu-prek, nge-hack apa yang ada di dalam BlogItemBody, kalau di di sekitarnya / diantaranya.. masih bisa. See this page for detail.
  3. Tiap label di batesin cuman 20 postingan, dan ga ada link ke older post. See this. Weleh... bete gak sih...
  4. Per-label feeds for FTP blogs give a 500 error when the label contains spaces.
  5. Sebentar2 musti upload data dari blogspot (google bilang republish) liwat FTP ke hosting gw, yang tentu saja memakan waktu, mana sebentar2 putus koneksi.. ggggrrrrrr...
  6. Masalah archieve link, lengkapnya liat nih..
  7. Dan masalah ftp custom domain lain yang bisa di temuan di bagian known issues.
Itulah... nasib tergantung pd orang heheh.. jadi gimana dong hosting gw... masa di anggurin. Ya sutrah.. kayaknya gw mesti develop sendiri. Mencari kebebasan...

Thursday, February 14, 2008

Hammerora: tool for Oracle Database and HTML environments

Tool untuk mengolah database oracle... GRATISS TISS TISSS...
Bisa untuk windows and Linux

Kalau sudah ada yg cobain, tolong kasi review-nya ya...

Sumber: hammerora

Wednesday, February 13, 2008

Friday, January 25, 2008

PHP classes

Kalo mau cari class PHP ada disini:

http://phpeditors.partners.phpclasses.org/browse/

daripada bikin sendiri ngabisin waktu, ntar lama dapet duitnya huehuehuehuhe

Monday, January 21, 2008

How To Install phpPgAdmin

1. Download file phpPgAdmin versi stabil terbaru.
2.Ekstrak ke direktori mana suka.. misalnya ke /home/tralala/public_html/phpPgAdmin
3.Cari file /pgadmin/conf/config.inc.php lalu edit confignya.
4.Buat Alias-nya dr Apache server di /etc/httpd/conf/httpd.conf
5.Lalu coba buka phpPgAdmin dari browser (tentu saja setelah setting postgresnya beres dan database bisa di run), jika ada kesalahan login like this: "Login disallowed for security reasons" which occurs when trying to login as a user with an empty password, a common situation on (presumably well-protected) development machines.
To enable this kind of login, set the option $conf['owned_only'] in conf/config.inc.php to true.
Kalo masih ga bisa jugak, cuba $conf['servers'][0]['host'] = ''; dikosongin aja.

Kalo masih ga bisa juga, coba error msgnya di paste ke google... heheheh

Starting httpd: [failed]

Tanya:

Alkisah, jika lewat localhost apacheku jalan.
Pas dicucuk modem, eh malah ga jalan, keluar pesen beginian:

Starting httpd: [failed]

Jawab:

1. Coba di cek pake ini:
[root@xxx]apachectl configtest

Jika keluarnya beginian:

[root@113 conf]# apachectl configtest
Syntax OK

Berarti sudah ga ada yg salah pd syntax2nya.
Tapi kadang masih ada yg gak jalan kerna [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "bla.bla.bla"

Maka mungkin ada host yg blon di sebutken... yaitu host yg gw dapet setelah install modem baru inih.

coba ketik begini:

cat /etc/hosts

Maka mungkin muncul beginian:

127.0.0.1 localhost.localdomain localhost
111.222.333.1 hostname hostname
111.222.333.2 hostname hostname

maka harus di tambahin nama host yg baru itu. Make tool network dari X-windownya linux aja.. bisa cepet and GUI-nya memudahkan orng awam seperti gue hehehe..

Caranya:
1. Pilih menu Administration -> Network Configuration -> Host
2. Klik Menu New, Lalu isi Address n Hostname-nya aja... habis tu..
3. Klik Menu File -> Save.