View crontab entries of entire user in FreeBSD

Cron is special utility that process command in periodic time such ; doing regular backup every night email special report every week etc cron access can be usefull but sometime not, depend on the command issued. As super user we can list all of entire user crontab entries using log locate in /var/log su-2.05b# tail …

More

no eth0 in FreeBSD?

Convention in Linux for network interface simple and clear. eth for cable connection ath or wifi for wireless connection l0 for loopback sample from my ubuntu feisty fawn box : alamsyah@alamsyah-laptop:~$ ifconfig -a ath0  Link encap:Ethernet� HWaddr 00:14:A4:70:02:3E inet addr:192.168.12.100� Bcast:192.168.12.255� Mask:255.255.255.0 inet6 addr: fe80::214:a4ff:fe70:23e/64 Scope:Link UP BROADCAST RUNNING MULTICAST� MTU:1500� Metric:1 RX packets:8945 errors:0 …

More

ZFS and FreeBSD current

Very interesting to see progress of ZFS in FreeBSD, comitted in FreeBSD 7 ( will release in 2007). This excellent job done by Pawel Jakub Dawidek with collaboration with opensolaris  for suitable patch . Many feature that ZFS offer that make me hard to blink till see last pages of presentation Pawel also give quick …

More

My Metacafe video

I almost forgot that I have account in metcafe.com, a place to publish your video, like youtube.com but with extra hit from powerfull  member community. Today, I just check my email  in google apps then see a few notification of new comment in my video. Wow, I found fantastic hit in one of my video. …

More

Leonardo da vinci curriculum vitae

I’m in a hurry when I heard little story about Leonardo da Vinci curriculum vitae, being curious I do some research and wikipedia gave good result : Leonardo’s Letter to Ludovico the Moor Most illustrious Lord, Having now sufficiently considered the specimens of all those who proclaim themselves skilled contrivers of instruments of war, and …

More

PHP Ternary Operator

PHP ternary operator isn’t beautiful for reading reason It’s also make confuse, but for the sake of simple it’s OK Syntax : ( expr1 ) ? ( expr2 ) : (expr3) If expr1 return true, then it evaluates to ( expr2 )If expr1 return false, then it evaluates to ( expr3 ) it’s similar to …

More

Recover Your Joomla Administrator Password

Joomla is very popular CMS, it’s easy to setup and require only working php and mysql installation. A problem may arise when your administrator password lost or forgot. Can I recover my admin password or create a new one ? It’s common question in "Setting your own Content Management System" workshop. Use php md5() function …

More

Year Validation with PHP

This code snippet validate user input from a form : $year=strip_tags($year); if(empty($$year) || is_numeric($year) || strlen($year)!=4 || $year strip all html tags ( handle by strip_tags ) make sure the year in 4 digit (with strlen help) make sure its number not character (is_numeric) not empty (php empty function) force user enter year of birth …

More

Regex, nightmare for newbie

Regex (Regular Expression) is nightmare for me, validation email, pattern recognizing task always depend on regex. A few software out there will help us (newbie) to learn regex faster with “experience mentor” I like these software : 1. Regexbudy A lot of video demo PHP section 2. Regexcouch For medium level, since I’m totally newbie …

More

Oracle XE for network access

Default install of Oracle XE only allow connection from localhost. For network access you need sysdba access. Login as “system” with propriate password Click the arrow near administration tab Change access into “available from local server and remote connection” and followed by click “Apply Changes” See confirmation message Logout and try login from network.

Livehttpheaders, give me more info please

Download file from internet is fun, it’s make software distribution easy, hassle free for me The problem come when our download manager not working as expected, cookie, session etc that validate downloading process force me many times to do old fashion way for download . After reading blog ( I forgot the link ) , …

More

Krugle, A search engine for developers

The best way to learn language programming is write the code itself. Many times I see that sentence I take learning by doing model plus copy paste Beside reading manual, forum, chat as place to search for code I like this one : Krugle Krugle approach is very sweet. Krugle offer three tabs: Code Tech …

More

Configure another extension for php file

While surfing in internet my student see "strange" file extension .love He asked me : "How it could be ?" Well, I told him about another feature of httpd.conf Just open httpd.conf , find this line : AddType application/x-httpd-php .php Change it into AddType application/x-httpd-php .php .love .dear .whatever Save httpd.conf and restart apache You …

More