Tuesday, November 22, 2005

USD100 notebook

  • Speed: 500MHz
  • OS :a 'light' version of Linux
  • Screen : two-modes color or black-and-white display for
  • view in bright sunlight at four times normal resolution,

  • Power: AC adapter or via a wind-up crank
  • 10-to-1 crank rate- one minute gets ten minutes of power.

    The laptops will be rugged and probably made of rubber.

  • 4 USB ports
  • Wi-Fi
  • cell phone
  • 1GB of memory

    Each laptop will act as a node in a mesh peer-to-peer ad hoc network
    allowing internet sharing on a single online connection.

    Man I wish they will make this a reality soon. It will surely close the 'digital divide'. Imagine our kampung kids using USD100 notebooks !!!

    More info from PC World Article and developer MIT Media Labs
  • Thursday, November 17, 2005

    Oracle - List all tables

    Ok I'm using Oracle databases with PHP scripts for the first time. I'll start posting my 'personal notes' on Oracle + PHP.

    List all the tables used in the current database that is open:

    select table_name from user_tables

    Friday, November 11, 2005

    Still using DOS

    Here's one of my DOS batch scripts that I still use to backup my source code

    Can't imagine after all these years I'm still using DOS batch file and DOS Rar to help me with my daily backup.

    useful because it compresses all the files in a folder using RAR and names the compressed file according to the date (yyyy-mm-dd).

    @echo off
    echo Backing Up RHB Fin files
    echo =============================
    rar a -m5 -r c:\backup\rhbbackup%year%-%month%-%day% c:\www\rhbproj1

    :GetDate yy mm dd
    :: By: Ritchie Lawrence, 2002-06-15. Version 1.0
    :: Func: Loads local system date components into args 1 to 3. For NT4/2K/XP
    :: Args: %1 var to receive year, 4 digits (by ref)
    :: %2 var to receive month, 2 digits, 01 to 12 (by ref)
    :: %3 Var to receive day of month, 2 digits, 01 to 31 (by ref)
    set t=2&if "%date%z" LSS "A" set t=1
    for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('echo/^|date') do (
    for /f "tokens=%t%-4 delims=.-/ " %%d in ('date/t') do (
    set %%a=%%d&set %%b=%%e&set %%c=%%f))
    endlocal&set %1=%yy%&set %2=%mm%&set %3=%dd%&goto :EOF

    Wednesday, November 09, 2005

    Firefox quietl first birthday

    It's PC Mag no. 1 tech product of the year and of course many techies favourite browser.

    I love FireFox!!!

    They celebrated their very first birthday rather quietly.

    Firefox quietly celebrates first birthday

    Ingrid Marson
    ZDNet UK
    November 09, 2005, 12:00 GMT

    'I don't think there will be a big party, as we are all very busy putting the finishing touches to Firefox 1.5,' says the president of Mozilla Europe

    The open source Firefox browser was launched a year ago today, but the celebrations are expected to be low-key.

    Here's a funny conversation I had with one of our company's customer.

    Customer: "Your program got error la in IE".

    Me: "Huh?? You still use IE ah ?? That Spyware magnet??"

    Custommer: "Here in office everybody use IE. Boss don't like to use funny browser like FireFox. IE is defacto browser - industry standard".

    Me: "Ok. Your funeral. Let me fix the error and send back to you .."