$this and php

Little mistake on naming variable make me confuse for almost an hour. $this yes, $this is built-in variable that often use in OOP. By using $this, we refer to self referencing variable. More in php.net manual <?php class A { function foo() { if (isset($this)) { echo ‘$this is defined (‘; echo get_class($this); echo “)\n”; } else { echo “\$this is not defined.\n”; } } …

More

Install PHP6, easy install in windows

PHP6, I thought I already have latest one. 5.2.6 but I’m wrong Quick way to try PHP6 is by installing Appserv 2.6.0, click here to download php 6.0.0-dev Installation process is the same as other appserv series : 1. Double click installer

MySQL and Null

Just for my own record, dealing with Null type field. Checking with : select * from tablename where field1=”  -> this one not work select * from tablename where field1=’Null’ -> same too is null is the answer select * from tablename where field1 is null Save my day, thanks to St4r

Update to Windows XP Service Pack 3

Run a smooth and hassle free operating system is a dream of everyone who use windows as their daily friend including me. I wrote this post as result of my friend fear. She deny to update her windows installation because she afraid and want to see it in screenshot mode. 1. Download Windows XP SP3 …

More

Setting path for PHP CLI

What is that for? my friend asked my a question after lunch. Well, install php using file from php.net don’t automatically set environment path for php location. As result we must type full location of php.exe each time we must execute php from command line. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. …

More

Mysql Trigger Tutorial and Tools

Deal with gammu and mysql make learn more about mysql feature in mysql 5.0 called trigger. Books always good to start with so I choose MySQL Stored Procedure Programming book to start with but others might help to for someone looking for practical solution in cookbook form etc : High Performance MySQL: Optimization, Backups, Replication, …

More

Copy Paste in Remote Desktop session

It’s not work! I said that to my staff when I copy his file and try to paste it on my computer using remote desktop. After look around in the option finally I can see my mistake Here the steps to enable copy and paste operation in my windows xp  : 1. Open Remote Desktop …

More

uplcom, ucom and itegno on FreeBSD 7

New Itegno 3000 has arrived, plug it in my Windows XP working well. I wanna try in FreeBSD 7 server. Here’s the steps : 1. Detection Modem Activate uplcom monitor# kldload uplcom See detected modul in kernel: monitor# kldstat Id Refs Address    Size     Name  1   13 0xc0400000 9118d4   kernel  2 …

More

Custom Printing in MS Excel 2007

My bad, I always ask my staff about custom printing in Ms Excel 2007. I make this post  for case when I forgot I can refer to this post 1. Click Page Layout Tab 2. Click Size 3. Click On ‘ More Paper Size‘ 4. Finally, I got ‘Adjust to’. I need it to shrink …

More

101 FreeBSD jails

I just love ‘jail’ in FreeBSD, so many possibilty I can achieve with jails. I try to collect some links that I think useful : 1. Creating and Managing A Jailed Virtual Host in FreeBSD 2. djbDNS using FreeBSD jails 3. Jails and EZJail 4. Creating a FreeBSD Jail 5. Jailing MySQL and PostgreSQL on …

More

Updating My 6.3 release box

Use src for many times make me get surprised when using freebsd-update for fix is very easy. Simple though. mail# freebsd-update fetch Looking up update.FreeBSD.org mirrors… 1 mirrors found. Fetching metadata signature for 6.3-RELEASE from update1.FreeBSD.org… done. Fetching metadata index… done. Fetching 2 metadata patches.. done. Applying metadata patches… done. Inspecting system… done. Preparing to …

More

OpenSSH X11-forwarding privilege escalation

Just update the box with this issue : FreeBSD-SA-08:05.openssh Security Advisory The FreeBSD Project Topic: OpenSSH X11-forwarding privilege escalation Category: contrib Module: openssh Announced: 2008-04-17 Credits: Timo Juhani Lindfors Affects: All supported versions of FreeBSD Corrected: 2008-04-16 23:58:33 UTC (RELENG_7, 7.0-STABLE) 2008-04-16 23:58:52 UTC (RELENG_7_0, 7.0-RELEASE-p1) 2008-04-16 23:59:35 UTC (RELENG_6, 6.3-STABLE) 2008-04-16 23:59:48 UTC (RELENG_6_3, …

More

LinuxSuse, count me in …

With recent version of linux suse 11 I got surprised to see big enhancement after my friend show me two books about OpenSuse. 1. openSUSE Linux Unleashed Review from amazon : [amazonify]067232945X:right[/amazonify]openSUSE Linux Unleashed presents comprehensive coverage of the community version of SUSE Linux, one of the most popular and most complete Linux distributions in …

More

Downgrade FreeBSD ports

I used to use FreeBSD ports in all related server job. I don’t remember what ports that might behave strangely in my  mail server until I remember last portupgrade job. I upgrade dovecot to latest version. I think if I downgrade dovecot ports I’ll get my stable mail server back Here’s my steps to downgrade …

More