Thursday, December 21, 2006

Wireless island - parents losing control over their kids’ Internet usage?

First S'porean charged with using another's wireless network


TodayOnline, 20 Dec 2006, http://www.todayonline.com/articles/161861.asp

The details surround this case is finally out.
IT WAS 2am and his mother had told him not to use the Internet.
.

Determined to log on to chat with his friends, Garyl Tan Jia Luo, 17, left home with his laptop and wandered around the private estate in Nemesu Avenue where he lived in search of a wireless local area network (wLAN) he could tap on.
.

Shortly after, his laptop picked up the signal of an unprotected wLAN outside a house on a neighbouring street. Tan then sat on the curb and logged on to the network.
.

But a resident who was driving past spotted Tan and confronted him when the teenager tried to walk away. An argument ensued and the resident called the police.
.

Tan was arrested and became the first person here to be charged with encroaching upon someone else's wireless Internet connection under the Computer Misuse Act.

Now that we are given the full story, it clearly is not a case of the networking making it's way to the user, Even if it is the case, if the user knows that he is leeching another's network, he's probably guilty as well. While the owner of the Access Point has the responsibility to secure it as well, not doing it doesn't mean one has the right to access it. After all, one can be stupid and not lock one's door but a thief cannot use that as a reason to absolve himself of any blame.

What is interesting is why the youth resorted to WIFI mooching in the first place: his mother tried to control his Internet usage. So he just left the house at 2 a.m. with his laptop to find a network. His case is probably one of Internet addiction. With Singapore going wireless and the mushrooming of many hotspots around the island, I guess more teens are going to leave their houses, armed with a PDA or laptop, when their parents try to limit their Internet usage, since they know that they can readily find a free network to use. We could almost always connect to the Internet before while outside, but this came at a cost that is on the high side for teens, now it is free or at least more affordable. Before this, I never did think about the social problems that the wireless island concept could bring or exacerbate.

Sunday, December 17, 2006

phpBB forum - using the default DB object

Have been doing a little freelance lately, mainly involving integrating new functionality with phpBB.
Using the existing code speeds up development and minimizes redundant code. Below is the code needed to use the default database object in phpBB.

[php]
define('IN_PHPBB', true);
$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$sql = "SELECT * FROM " . A_TABLE . "
WHERE rank_special = 1
ORDER BY a_title";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR,
'Could not obtain ranks data', '', __LINE__, __FILE__, $sql);

}
else echo "Query successsful";

Sunday, December 10, 2006

Japanese movie - Red Shadow

As Akakage (which means "Red Shadow") struggles to free himself from his enemy's choking grip, the brutal truth is unleashed upon him: he is a nobody. He is doomed to live in the shadows, because he is a ninja. Not only does Akakage need to escape from death by suffocation, he also needs to find his true self. Like Akakage, the movie "Red Shadow" suffers from a bit of identity crisis as it shuttles from comedy to drama and back. These abrupt shifts dampened my enjoyment of this film.



"Red Shadow" is directed by Hiroyuki Nakano (who also directed "A Film By Hiroyuki Nakano: Samurai Fiction") and stars Masanobu Ando as Akakage, Jun Murakami as Aokage (Blue Shadow), and Kumiko Aso as Aska (literally meaning "Flying Bird"). The movie follows the trio as they graduate as full-fledged ninjas and follows them on their early missions. In the later part of the movie, the focus falls on Akakage as he finds his beliefs being tested by the viciousness and treachery that is needed to be a ninja.

Akakage is the most accomplished of the trio and dedicates his life to being a ninja. Aska is his love interest, and they have adored each other since childhood. Aokage is his buddy but he is quite clumsy at times, and often provides temporary comic relief. On one of his missions, tragedy befalls the trio and they are disbanded. Henceforth he treads the path of a ninja alone. Under the orders of Lord Togo, he infiltrates Kyogoku city to gather information about a rumoured secret weapon. There he meets princess Koto (Megumi Okino), who had just inherited the control of the city after her grandfather's death. Princess Koto has to ward off Lord Togo's attempts to take over the city and maintain the fragile peace. Believing that peace will one day prevail, Akakage faces a dilemma and must choose between continuing his mission and helping the princess.

A central theme surrounding the story is the sacrifice one makes as a ninja. Akakage puts his life on the line during missions, and lives a life as a shadow. He has no status in society, in fact his existence is not even known most of the time. Whatever desire he has has to be tampered with the needs of his mission, and his masters who give him a living by giving him missions. But for Akakage, it is a conscious choice.He believes his actions can help to advance an age of peace which he has no doubts will arrive.

Although the anachronistic elements (a Russian gymnast and a rock-band appear on the show, along with modern weapon in ancient Japan) and the irreverent depiction of ninjas make for a few laughs, the overall experience of viewing the movie was not thoroughly enjoyable. The problem is that the storytelling needs a bit of work: you're never quite sure if the movie was meant to be a comedy or an action movie or a love story because of the way the story unfolds. The first part of the movie is clearly comedic in nature, but the grave tone of the second part, interjected with some odd moments makes it a bit disorientating. Quite clearly, the director wants to give the old tale a modern twist, or maybe even subvert it, but I think he has not really achieved his aim. I don't recommend buying this DVD, but if you're bored on an afternoon you can probably get this at the DVD rental and kill a couple of hours.


Check out other movies here!

Thursday, December 7, 2006

SMRT deaths - media blackout?

Starting from October, there has been a slew of deaths at MRT stations. While we know that the first incident involving Tan Jee Suan was a suicide, and that the public donated a huge sum to the deceased's family, the media coverage for the subsequent deaths appear to be less extensive. There are speculations of a media blackout.


Anyone noticed that in the 6.30pm 10:00pm Ch8 news have not shown this incident. If it were really a drunk Indian local who fell into the tracks accidentally, then why the media blackout?

Says another,
Ya i saw a small column on wanbao also and thats it. My guess is that they should have received instructions not to report on these incidents.

I would think that is the case, especially after news of the $500,000 donated during the wake was publicised. There were fears of copycat suicides occurring, and it's possibly happening now. Incidentally, a Japanese pupil's suicide letter was publicised in Japanese newspapers. It is suspected that it encouraged more students to write in and sparked some copycat suicides.
Over the next few days, there would be at least 24 more letters threatening suicide. Three young students, including Rie, killed themselves over the next weekend. And one elementary school principal hanged himself from a tree. He reportedly had been reprimanded for his slow response to a case of bullying at his school.

Sometimes it's a tough call to make, how much information to reveal or cover up for the greater good. Exposing the extent of harm done to the pupil and the state of bullying in schools could have led to more suicides, likewise reporting on the plight of Tan Jee Suan and the money could have led to more copy suicides as desperate people see it as a quick way to raise money for their families. Total disclosure doesn't always seem to be a beneficial thing.

Wednesday, December 6, 2006

1.24 million Chinese college students to graduate without jobs this year

Quoting the People's Daily Online,
About 1.24 million Chinese college students will graduate without jobs that require their qualifications this year, Tian Chengping, head of the Ministry of Labor and Social Security, has warned.

A total of 4.13 million students graduated from higher education institutions this year, 750,000 more than last year, said Tian.

Tian said the government had set up a mechanism to provide guidance and training for unemployed graduates.

Only 22 percent of China's new jobs last year were for college graduates, according to a ministry study of 114 urban labor markets.

Contrast this with Singapore's job market for university grads in recent years, where in demand outstrips the supply. The job market for employees is expected to continue to be good in 2007.

I'll be interested to know what universities the bulk of these unemployed grads are from and what kind of degrees they are holding.

Sunday, December 3, 2006

Random thoughts on foreign-born athletes

As the 15th Asian Games commences in Doha, our athletes begin their pursuit of sporting gold. Even as many Singaporeans cheer our team on, there is still a nagging feeling among some that we cannot truly call some of them our own, even if they are Singapore citizens. These are the players under the "Foreign Talent Scheme". Even though the scheme has been in place for more than a decade (The scheme was first launched in 1993 by the Singapore Sports Council (SSC) and was known as Project Rainbow, see Google's cache of www.reach.gov.sg here.), but it's a perennial issue that remains unresolved. Recently, some letters were published regarding this.
Straits Times Nov 23, 2006
Foreign talents should deliver gold at Asiad
Patrick Tan Siong Kuan

Straits Times Nov 23, 2006
Give foreign-born talents a break
Loh Ka Wai

Straits Times Nov 25, 2006
Stop stressing that some athletes are foreign-born
Dr Kwan Soo

Contents of the original letters can be found by googling.

Sporting excellence and nationalism


Sporting excellence and nationalistic feelings of pride seem to go inexorably together in the international sporting scene. When Man U meets Juventus, it's not just Man U meets Juventus; it's a battle between an English club and an Italian club. There is a sort of primal tendency to attach these nationalistic feelings to sports, and that is why sports is a great way to build camaraderie and national identity. The reason for this association between sports and nationalism seems to be geographical in nature. Some people think it is money, because the state pays for these sportsmen, but I think otherwise, because if Man U was to be bought over by a Singaporean, it would still be considered an English team and not a Singaporean team, agreed?

When our athletes compete, they represent Singapore. But I wonder,do they represent Singapore incidentally, or is it because they want to? As in, all sportsmen want to excel in what they do, but why do they end up representing the countries that they do? And what is the significance to them? If the athlete is born and bred in Singapore, most Singaporeans would assume it is natural for them to represent Singapore and these questions would never arise in the first place. Besides wanting to achieve sporting excellence, there's also the huge prize money for winning a medal, so I'm not entirely convinced that national pride is the most important item of consideration on the Singapore born-and-bred athlete's list. Is there a real difference in attitude between native Singaporean athletes and foreign-born athletes?

Additionally, I don't think there's anything wrong with these athletes wanting to represent Singapore because it's sort of a deal or gamble that both sides have agreed on. Singapore gives them training, opportunities, citizenship, etc, they help raise the standard of local players and perform for us in the international arena. Just consider it as some sort of government scholarship and bond. The analogy holds in a few ways. If you don't perform well, you have your scholarship canceled. It appears some sportsmen have been shown the door, see the YoungPAP and BadmintonCentral for reports on shot putter Luan Wei and female hammer thrower E Xiaoxu.

And just as we have bond-breakers, we have sportsmen who use Singapore as a stepping stone. Agu Casmir and Itimi Dickson comes readily to mind. The two Niegerian-born soccer players were dropped from the Singapore team for their poor performances and were ready to fly off to play in another country despite becoming citizens. I'm not sure if this contravenes any agreement they have with FAS since they are playing at club level and not immigrating or something. Still, their actions say a lot about their attachment to Singapore, and many locals felt cheated. The way FAS splashed out even more money to deal with the issue furthered angered Singaporeans.

In general though, I'll think that empirical evidence suggests that most players under the Foreign Sports Talent scheme are not like that, in the sense that at least we don't hear of such controversies in the news often. What can be done for the minority who take Singaporeans for fools? Stricter guidelines and regulations can be set when these athletes take part in the Foreign Talent Scheme, and also try to integrate them into our society. Additionally, if the Singapore Sports Council can reveal how many of these foreign sportsmen there are and how many eventually become citizens, we might get a better feel of how well the scheme is attracting athletes who become part of our society.

Competition for team places and funding

AP Dr Yaacob Ibrahim has this to say on foreign sporting talents,
Sir, Mr Ng has also mentioned about our foreign sports talent policy. Let me just reiterate the policy that we had clarified last year. Our stand on foreign sports talent is clear. Any import of foreign sports talent must be to complement our own local athlete development. Foreign sports talents are not a substitute for local talents.

It's not entirely obvious to me why foreign sports talents are not substitutes for local talents. Unless they compete in different competitions and they received different funding and there is some selection criteria based on country of birth, then isn't it clear that given a limited number of places on a team, that choosing a foreign-born talent denies a local one of a place on the team or that sponsoring a foreign-born talent denies a local one of the funding?

Foreign-born citizens and foreign talent - when does the latter become the former?


Quoting Patrick Tan,
Secondly, no matter how one disguises it, deep down they are still foreigners. They lack the same passion as local-born athletes. Majulah Singapura has very little meaning to them and they are likely to have more feelings for and affinity to their former compatriots than to Singaporeans.

It seems that some people cannot accept that foreigners become foreign-born citizens when they get their pink ICs. Patrick voices a reasonable view of foreign-born sportsmen, but one which I would disagree with. This boils down to the question, "what does it mean to be a Singaporean?" What is the criteria? Is it country of birth? Is it where you grow up? Is it where you are currently living in or working at? Is it where you can fulfill your dreams? Is it where you are unafraid to fail? Is it what you eat or wear? Is it the way you talk, or think? Is it the people you care about? Is it just the passport you hold? Is it all of the above? Or none of the above?

Granted this is not an easy question to answer, if it is there wouldn't be a controversy. If no one can agree on what it means to be Singaporean , what sort of answer do we hope to get when we keep pressing the issue on them? As Jing Junhong tells the Straits Times,
I've been in Singapore for more than 12 years, I married a local and I'm the mother of a four-year-old Singapore boy.

I've been proud and happy all these years but, every now and then, there will be some who will bring up these questions of loyalty and citizenship.

Really, what can I say? Is there any way of proving myself? Is there a test I can take?

Just buying medals?

There is still a gnawing feeling that these athletes are treated like commodities. Are we just taking the easy way out, trading money for medals? Put in another way, do we just import winners? I have heard of this view many times, and to some extent, I agree that it's entirely plausible. An example would be Jing Junhong. Yahoo! states her DOB as Oct 13, 1968, and the earliest date I could find of her representing Singapore is 1996. We know Project Rainbow started in 1993, so if Jing was recruited in 1993, she should be around 25. I'll think she would have acquired enough skills by then, so the training she would have received form SIngapore would be limited.

But some athletes do come to Singapore in their formative years to be trained, like Ronald Susilo, Li Jiawei, Zhang Xueling, Tao Li:
Table tennis player, Zhang Xueling, said that Singapore had offered
her a great opportunity to groom her skills. "When the offer was
made, my family discussed what would be the best for me - and
it was obvious that Singapore would be best. I was not a very
good player five years ago... I had some talent and Singapore was
prepared to help me develop it.
I know why I am here - it is not
temporary. That is why I not only work on my game every day but
also work hard at my English classes."
Added fellow table-tennis player Li Jiawei: "I have been here since
I was 15. And I improved the most while I was here. And when I
compete, I do it for Singapore."

Singapore does spend time, effort and money to train some of these athletes. They come to Singapore when they are young and train with the local players, so it's not like buying medals, but rather it's like investing in a potential. I do find it satisfying that we can develop players who wouldn't have made it into the team in their homeland, and then train them till they are so good that they can beat their native country at their own game. But ultimately, we should move away from these terms like "buying" or "investing", because they come here to fulfill their dreams. That's the Singapore I want, where people can fulfill their dreams, regardless of where they come from.
Culture


In the recent years, much attention has been given to the sports, with the setting up of the Sports School, increased emphasis of sports in education, holding of international sports events, and a great part of the budget used to promote it. But I think that the journey is still long before we reach a stage where we can can say that we have a culture that encourages sport as a career, where parents will not sacrifice sports for studies. Are the potential athletes themselves willing to devote their time and energy for intense training like their counterparts in other countries?

Sporting as a career is still not a viable option due to the economics involved. The possibility of making it big in sports appears to be small. What do these athletes do when they don't achieve their potential in a knowledge-based economy? Can they say that someone owes them a living? Don't think so, so balancing school work and sports is what most Singapore students do, be it at secondary or tertiary level. For most people, achieving excellence in either is tough, something's gotta give.

National identity

All this debate on foreign-born athletes suggests to me that most Singaporeans have an idea of what Singapore means to them even though it is not the same for everyone. The Foreign Talent Scheme is a part of the foreign talent policy that does not affect most Singaporeans. Our jobs and livelihoods are not visibly affected, but we have strong opinions on who should represent Singapore sports. In a way, it shows that we do have a sense of belonging to Singapore and want to have a say in who we want to join us.

Friday, December 1, 2006

Increasing pipelines for a faster Firefox

Recently, the YUI team conducted an experiment on optimizing web page performance. Though the results are not ground-breaking, it is interesting to see the figures. Using the Pareto principle, which says 80% of the effects is achieved by 20% of the causes, the YUI team discovers where this 80% is.
Table 1 shows popular web sites spending between 5% and 38% of the time downloading the HTML document. The other 62% to 95% of the time is spent making HTTP requests to fetch all the components in that HTML document (i.e. images, scripts, and stylesheets). The impact of having many components in the page is exacerbated by the fact that browsers download only two or four components in parallel per hostname, depending on the HTTP version of the response and the user’s browser. Our experience shows that reducing the number of HTTP requests has the biggest impact on reducing response time and is often the easiest performance improvement to make.

What is network pipelining? Mozilla gives a good explanation here. One way to increase the number of pipelines for Firefox from the default of 4 is to type "about:config" in the address bar. In the filter bar, check that "network.http.pipelining" is true. Then filter for "network.http.pipelining.maxrequests" and set it to a value you desire. I entered 7 and felt Youtube loaded faster. Didn't really test the effects empirically though. It's not always the case that a higher value is better though. It's stated in mozillaZine that,
Higher values will cause a delay before the first request completes but will make the last request complete sooner. Higher values will also cause more of a delay if a connection fails.