Learning On Demand Learning anything from anywhere

Archive for August, 2008

Using temporer email address to fight spam

08.18.2008 · Posted in Internet

Giving email address to anyone isn’t wise specially when U use that email address for daily activity, work and your mailing list. Its OK to give our email to other provider as long we know their credibility that they won’t share or sell our email address. Many people seem use interesting content for trapping innocent ...

Detect RB44GV on FreeBSD 7

08.17.2008 · Posted in Unix, Work

New ethernet card we order arrived yesterday, its RB44GV from mikrotik. I just curious to see if its work with my FreeBSD box materibasuki# ifconfig -a em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4> ether 00:1a:92:b3:db:c2 inet 172.88.1.7 netmask 0xfffff000 broadcast 172.88.15.255 media: Ethernet autoselect (1000baseTX <full-duplex>) status: active em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4> ...

Make Virtual Host in Engine X (nginx)

08.14.2008 · Posted in Unix

Since last time I install php-fpm in my freebsd box I still looking way to make virtualhost. I think its not easy to make vhost in nginx but I’m wrong Just add : server { directive } will add new vhost. Full sample from my vhost : server { listen 80; server_name sandbox.digitalfusi.com; location / ...

MYSQL server has gone away

08.12.2008 · Posted in Database

Its very rare case when I see message : “MYSQL server has gone away” , a few things to consider are : * Check variable max_timeout * Check variable max_allowed_packet These setting available in my.ini or my.cf file, edit the value and restart mysql daemon. Example : max_allowed_packet=16M max_timeout=28800 Try again to import database using ...

Hide your plurk karma using css

08.08.2008 · Posted in Blog

I forgot the source of css code I get from browsing activity, this code can hide your plurk karma and other attribute. Here’s the code : #dash-stats h3{ opacity:0.0;filter:alpha(opacity=0); height:0; margin:0; padding:0; font-size:0; } #dash-stats a.link_arrow { opacity:0.0;filter:alpha(opacity=0);height:0;margin:0;padding:0;font-size:0; } Just drop a comment for the source and I’ll update this post Basically I like this ...

101 nginx tutorial and articles

08.06.2008 · Posted in Linux, Unix

I’m bit lazy to read manual and prefer to read it as a case. Nginx is my favourite now, by collecting related tutorial, blog posting and articles I hope I can learn nginx more. Links I found so far : Reverse proxy in depth tutorial Step by step install Engine X (nginx) and php-fpm in ...

Step by step install Engine X (nginx) and php-fpm in FreeBSD

08.04.2008 · Posted in Step By Step, Unix

Nginx already in my list for almost 3 month but I don’t have time for play around with it. As usual freebsd ports is my preferable method to install software in FreeBSD I’m lucky to get php-fpm ports from php-fpm site that work for php-5.2.3RC. After change it a bit for php 5.2.6 I can ...

undefined function imagecreatefromjpeg()

08.02.2008 · Posted in PHP, Unix

Call to undefined function imagecreatefromjpeg() in /home/materi/prog/cms_study/admin/pageuploadadd.php on line 88   Yes, that message show up when my friend try to access web based application. I think thats my fault Doing preliminary check : edp# pkg_info | grep php5-gd edit /etc/make.conf PERL_VER=5.8.8 PERL_VERSION=5.8.8 WITHOUT_X11=yes save. edp# whereis php5-gd php5-gd: /usr/ports/graphics/php5-gd edp# cd /usr/ports/graphics/php5-gd && make ...