nl2br, new line to br

I just forget this function when my friend ask me about strangeness in his data he store in mysql. He has address data in <textarea></textarea>, new line not converted to br as he thing. He just see all the input just store in single line. After search for a while I remember this gold function …


portupgrade don’t work

ftp# csup -g -L2 ports-supfile ftp# cd /usr/ports/ ftp# make fetchindex ftp# portversion -v | grep ‘<‘ /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:119:in `fill': MOVED file format error (PortsDB::MOVEDError)         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:113:in `each’         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:113:in `fill’         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:112:in `open’         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:112:in `fill’         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:107:in `initialize’         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:182:in `new’         from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:182:in `setup’         from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:256:in …


PCBSD 1.5 is out, get faster in 64 bit

From PCBSD press release : iXsystems Announces Release of PC-BSD Version 1.5, Edison Edition Release features AMD 64-bit as well as 32-bit processor support   iXsystems announced today the release of PC-BSD Edison Edition. PC-BSD is a fully functional open source desktop operating system based on FreeBSD 6.3-STABLE. FreeBSD is one of the most used …


Upgrade Dovecot 1.0.10 to 1.0.13

Recent ports update give old ports that need to update. Dovecot After upgrade to 1.0.13 mail# pkg_info | grep dovecot dovecot-1.0.13      Secure and compact IMAP and POP3 servers I see confirmation from dovecot : Warning: mail_extra_groups setting was often used insecurely so it is now deprecated, use mail_access_groups or mail_privileged_group instead Maybe I’m wrong, try …


php explode() and wordwrap()

Whats the different of explode() and wordwrap() ? Answer : just see this example for explode() <?php $birthday=’1998-12-11′; //we need to split the component to date, month and year $day_parts=explode(‘-‘,$birthday); // we use – as tool to separate, now print $date_component=$day_parts[2]; $month_component=$day_parts[1]; $year_component=$day_parts[0]; ?> Wordwrap will ‘wrapping’ user input, like formatting crazy user who type …


FreeBSD 7 update with csup

FreeBSD 7 released in perfect time, as my backup server need to upgrade I’m eager to choose FreeBSD 7.0RC2, then update to FreeBSD 7 RC3 and now in progress to change for RELENG_7 tag using csup. Yes, I use csup not cvsup. Another plan with FreeBSD 7.0 is try ZFS filesystem. already se zfs.ko in …


Pfsense 1.2 and DragonFlyBSD 1.12

What a day, two great iso launch in same day DragonFlyBSD reach the 1.12 number and planned to release it’s 2.0 with Hammer filesystem. Pfsense getting mature and reach 1.2. Quick link for download : DragonFlyBSD : Here PfSense : Here Download time guys

Hammer Filesystem update, waiting for FreeBSD 7.0

Hammer filesystem updated, from Matt : HAMMER continues to progress well.  The blockmap is in good shape   and I am moving on to the next item on the list.  All major functions  work and appear to be stable.     Three items are needed for an ‘alpha’ release:     * garbage collection code.  This will be …


Distro News, February 2008 Week 3

1. Debian GNU/Linux 4.0r3 Download Link : here 2. Mythbuntu 8.04 Alpha 2 Download Link : mythbuntu-8.04-alpha2-i386.iso | mythbuntu-8.04-alpha2-amd64.iso 3. Frugalware Linux 0.8 RC2 Download Link : frugalware-0.8rc2-i686-dvd1.iso 4. Greenie Linux 1.2.8 "Battle For Wesnoth" Download Link : uwesnothcd.iso 5. GoblinX Linux 2.6 Download Link : GoblinX-2.6.iso 6. NetSecL 2.2 Download Link : netsecl-2.2-install.iso 7. …


postfixadmin and mysqli

I just don’t know exact step I’ve done when I see this error message when I try to access postfixadmin : DEBUG INFORMATION: MySQL 4.1 functions not available! database_type = ‘mysqli’ in, are you using a different database? Please check the documentation and website for more information. The email server already run for almost …


make.conf and fetch problem

Just stupid error but take me a few days to sort it out. Basically we have two gateway, A and B. I use to tell fetch in freebsd to use connection from gateway A for updating ports since gateway A have faster connection than gateway B. Due to the change of IT policy, I no …


Dnscache access little secret

My friend just install dns server using djbdns, he use two component in djbdns: tinydns dnscache After follow all setup in tutorial, he try to test the dnscache : mail# dig ; <<>> DiG 9.3.4-P1 <<>> ;; global options:  printcmd ;; connection timed out; no servers could be reached mail#

Unix/Linux for Beginner, list of resources

Some common question I see in Installation of Unix/Linux : What command I should I type? When I can start hacking? When I start learning hacking? Do you have resources for beginner for me? Not sure, I’m search engine lovers Here’s the lists : Books : Hacking Ubuntu: Serious Hacks Mods and Customizations (ExtremeTech) Google …


Freeware & Shareware for Disk Partition Needs

Set partition for some person can be daunting task but as time must goes on the task must be done Acronis Disk Director Suite allows you to perform basic as well as advanced disk management operations. With this tool you can resize, move, copy, split, merge, restore and explore partitions without losing your data. The product …