Friday, January 25, 2008

The Amazing Race 12 Winner - TK & Rachel

Dating for almost one year
Rachel: Huntington Beach, CA
23, Florist/Store Owner

TK: Huntington Beach, CA
22, Substitute Teacher

Rachel & TK have only been dating for close to a year. Both of their moms were friends while they were growing up in Huntington Beach, California, yet they had never really spent anytime together until only recently. This fun-loving couple is always laughing and is eager to see if their relationship can stand up to the rigors of the Race.

Rachel owns her own high-style flower shop. She describes herself as bright and ambitious and claims that the biggest difference between she and TK are the lives they've led. He was a collegiate athlete at UC Santa Barbara while she stayed home and bought a business and started working straight out of high school.

TK currently makes his living as a substitute teacher. He describes himself as dedicated, witty and intelligent. TK swam in college and was voted team captain of the swim team. He also held the all-time record in the 200-meter backstroke at UCSB (University of California, Santa Barbara).

This free-spirited Team is looking to share the adventure of a lifetime together and won $ 1 million prize.

Tuesday, January 22, 2008

Mission: Impossible on TV2 Retro

Now your favorite retro TV Series have back to TV2 on every weekdays 12.30 midnight.

This 7-year series chronicled the adventures of the Impossible Mission Taskforce (IMF), a team of government spies and specialists who were assigned "impossible missions" by the unseen "Secretary". Although the cast varied over the years, the main characters included The Team Leader (Dan Briggs the first season, then Jim Phelps the other six), The Techno-Wizard (Barney Collier), The Strongman (Willy Armitage), The Master of Disguise (first Rollin Hand, then The Amazing Paris), and The Femme Fatale (Cinnamon Carter, Casey, Dana Lambert, Mimi Davis).

Monday, January 21, 2008

Shell program to read any year and find whether leap year or not

Pseudocode to determine whether a year is a leap year or not:

if year modulo 400 is 0 then leap
else if year modulo 100 is 0 then no_leap
else if year modulo 4 is 0 then leap
else no_leap
A more direct algorithm:
if ((year modulo 4 is 0) and (year modulo 100 is not 0)) 
or
(year modulo 400 is 0)
then leap
else no_leap

#!/bin/bash
# Shell program to read any year and find whether leap year or not
# -----------------------------------------------
# Copyright (c) 2005 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------

# store year
yy=0
isleap="false"

echo -n "Enter year (yyyy) : "
read yy

# find out if it is a leap year or not

if [ $((yy % 4)) -ne 0 ] ; then
: # not a leap year : means do nothing and use old value of isleap
elif [ $((yy % 400)) -eq 0 ] ; then
# yes, it's a leap year
isleap="true"
elif [ $((yy % 100)) -eq 0 ] ; then
: # not a leap year do nothing and use old value of isleap
else
# it is a leap year
isleap="true"
fi
if [ "$isleap" == "true" ];
then
echo "$yy is leap year"
else
echo "$yy is NOT leap year"
fi


#SOLUTION 1
#Tuesday Class
#!/bin/sh
feb=`cal 2 2008`
echo $feb
lastday=`echo $feb|sed -e 's/.* //'`

if [ $lastday -eq 29 ]
then
echo "leap yr"
exit 0
else
echo "not leap yr"
exit 1
fi

#SOLUTION 2
#!/bin/sh
if cal 2 `date +%Y`|grep -q 29
then
exit 0
else
exit 1
fi

#SOLUTION 3
#!/bin/sh
feb=$(cal 2 $(date +%Y))
lastday=`echo $feb|sed -e 's/.* //'`
if [ $lastday -eq 29 ]
then
echo "leap yr"
exit 0
else
echo "not leap yr"
exit 1
fi

#SOLUTION 4
#!/bin/sh
ndays=`$(date +%j -d $(date +%Y)1231)
if [ $ndays -eq 366 ]
then
echo "leap yr"
exit 0
else
echo "not leap yr"
exit 1
fi

#SOLUTION 5
test $(date +%j -d $(date +%Y)1231) -eq 366

My Newly Launched Website











Please to tell that I recently launched my very first own website and I am expecting to have more wireless networking on Linux in the future. Although it is shared domain, but I am very happy to have one. And all this is about openSource! Login to http://parisheng.110mb.com/ know more. Thank you for support

RTM2 《八点前线》 全新出击抢观众

吉隆坡16日讯-RTM2华语新闻易名为《八点前线》,以全新风貌与风格,全新出发!

晚间8时新闻《八点前线》,除了已经亮相的戴欣怡、胡慧君,最新加入的还有新生代主播王箐忆、陈丽亭,以及《你怎么说》清谈节目主持人李晓蕙,为《八点前线》注入更多活力。而中午12时的午间新闻,同样改名为《午间快报》,并由资深新闻播报 员江宇凡、陈锦花、萧慧芳、张慧灵及尤进来坐阵,为观众掌握各大新闻头条、股市等消息。

新闻部副部长拿督斯里谢宽泰说,这次最重要的任务是改革RTM2华语新闻,让它扮演“全民的新闻线”,报道最详尽的公共政策,让公众都深入了解与切身利益有关的讯息。同时,RTM2也会贴近民生,报道华社关心的时事课题。

他说:“RTM2华语新闻的收视观众高达35万,据调查报告显示,我们与友台八度空间的华语新闻收视率都是2.0 ,也是说,我们之间只是2千人之差。我希望在3个月内可以突破50万观众人次,这也是华语新闻总动员的全新目标。”

主播阵容都是记者

RTM2华语资讯节目顾问方若琪说:“《八点前线》这一次不只是外观的改变,也是一个文化及态度的改变。今天是全新的体现,也是长征的开始。”《八点前线》主播阵容都是记者,方若琪希望主播们可以做到专业化,不只是播报新闻,也可以全程参与整个制作过程。

以红、橙、篮、绿4种颜色组成的RTM2新闻标志,象征新闻的多元性:深入、立体化、个人化。同时这也象征着呈现手法的活泼性:生动、亲切、真实。新闻节目也将启用全新的直播棚,挥别过去的单色调,以亮丽色彩与观众见面。

Friendster using SUSE

Friendster Technical Environment

Hardware/CPU: Dual 64-bit AMD Opteron Servers
RAM: 8GB
OS: SUSE LINUX Enterprise Server 8
Database: MySQL Database Server
Language: PHP
Storage: Hitachi SAN
Load Balancer: NetScaler
Database Size:
– 7.3 Terabytes
– 100s of Millions of Rows
– Over 100 Tables

Scripting Secrets


Scripting has always been easy in Linux. The design of the system promotes automation, and dozens of scripting tools are available for no cost through the always inventive Open Source community. The art of scripting is nearly as old as the art of tinkering with computers. Most Linux users have at least some familiarity with some of the common scripting techniques. So why are we still covering scripting? Because this ancient art keeps changing, and even the experts know they need to change with it. In this month’s issue, we focus on tools for scripting in Linux.



Saturday, January 19, 2008

Government plans drastic cut in number of foreign workers

THE Government is planning a drastic reduction in the number of foreign workers in the country, with at least 200,000 likely to be sent home by next year. Home Affairs Ministry secretary-general Datuk Raja Azahar Raja Abdul Manap said there were now some 2.02mil foreign workers, with approvals for 200,000 arrivals this year.

> The target: To cut the number down to 1.8million by next year and 1.5million by 2015.

> The objective: To reduce the country's dependency on foreign labour; to prioritise jobs for locals.

> Measures to be taken: All unskilled foreign workers will not have their work permits extended if they have been in the country for five years or more; skilled workers have up to a maximum of 10 years; and enforcement staff strength tripled

> Industries given priority: construction, manufacturing and plantation.

> Domestic maids: No limit to length of stay. But eligibility of employers may be raised from income of RM3,000 to RM5,000.



This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]