ACIDSTAR

Just another stupid diary

October 7, 2008

blogging while waiting for the bf 2 come.. ish3x…

Murid : Selamat pagi, Cikgu.

Cikgu : (Menengking) Mengapa selamat pagi sahaja? Petang dan malam awak doakan saya tak selamat?

Murid : Selamat pagi, petang dan malam Cikgu!

Cikgu : Panjang sangat! Tak pernah dibuat oleh orang! Kata selamat sejahtera! Senang dan penuh????? bermakna.Lagipun ucapan ini meliputi semua masa dan keadaan.

Murid : Selamat sejahtera Cikgu!

Cikgu : Sama-sama, duduk! Dengar sini baik-baik. Hari ini Cikgu nak uji kamu semua tentang perkataan berlawan.

Bila Cikgu sebutkan perkataannya, kamu semua mesti menjawab dengan cepat, lawan bagi
perkataan-perkataan itu, faham?

Murid : Faham, Cikgu!

Cikgu : Saya tak mahu ada apa-apa gangguan.

Murid : (senyap)

Cikgu : Pandai!

Murid : Bodoh!

Cikgu : Tinggi!

Murid : Rendah!

Cikgu : Jauh!

Murid : Dekat!

Cikgu : Keadilan!

Murid : UMNO!

Cikgu : Salah!

Murid : Betul!

Cikgu : Bodoh!

Murid : Pandai!

Cikgu : Bukan!

Murid : Ya!

Cikgu : Oh Tuhan!

Murid : Oh Hamba!

Cikgu : Dengar ini!

Murid : Dengar itu!

Cikgu : Diam!

Murid : Bising!

Cikgu : Itu bukan pertanyaan, bodoh!

Murid : Ini ialah jawapan, pandai!

Cikgu : Mati aku!

Murid : Hidup kami!

Cikgu : Rotan baru tau!

Murid : Akar lama tak tau!

Cikgu : Malas aku ajar kamu!

Murid : Rajin kami belajar Cikgu!

Cikgu : Kamu gila!

Murid : Kami siuman!

Cikgu : Cukup! Cukup!

Murid : Kurang! Kurang!

Cikgu : Sudah! Sudah!

Murid : Belum! Belum!

Dengan senyap Cikgu Keluar dari Kelas tanpa sebarang
kata-kata hanya diiringi dengan tiupan angin sepoi2
bahasa….

(lambat betol dia nih.. aish…)

September 21, 2008

Malaysia’s ‘worst in the world’ taxis tarnish national image

The ads promoting “Malaysia: Truly Asia” aim to welcome visitors with a warm smile to a prosperous and modern nation, so the taxi fleet branded “the worst in the world” can come as a bit of a shock.

Even the locals are not spared the shabby service of unkempt and hostile drivers behind the wheels of decrepit vehicles who refuse to use the meter, overcharge and pick-and-choose which destinations they will travel to.

At the popular KLCC mall under Kuala Lumpur’s iconic Petronas Twin Towers is a typical scene, as a gang of cabbies negotiate with a young Norwegian couple just metres from a signboard warning against “taxi touts”.

“Flat rate, flat rate, no metre,” one driver insists as the tourists try to find a cab to take them to their hotel, less than two kilometres (1.2 miles) away.

Anxious to escape the baking heat, they agree to pay 25 ringgit (7.22 dollars) for a trip that would have cost less than three ringgit on the meter.

“Is it expensive? We don’t know, we thought it is normal here,” said the woman as they piled in with their shopping bags.

More frequent visitors, however, are vocal in their criticism and say that aggressive and unprofessional drivers are tarnishing the nation’s image as a squeaky clean and hospitable destination.

“I first visited Malaysia in 2006 and I was impressed by everything I saw except for the worst taxi service I have endured,” said Kabir Dali, an Indian tourist waiting in vain for a metered taxi at another mall.

“I paid a whopping 260 ringgit (74 dollars) from the Kuala Lumpur International Airport to town and was later told that was twice the proper amount.”

Complaints about taxis are common in many countries, but in Malaysia it has escalated to an outpouring of frustration, on blog sites and in letters to newspapers.

In a survey by the local magazine The Expat, some 200 foreigners from 30 countries rated Malaysia the worst among 23 countries in terms of taxi quality, courtesy, availability and expertise.

The respondents lashed the fleet as “a source of national shame” and “a serious threat to tourists — rude bullies and extortionists”.

Salvation is in sight though, as a number of smaller, up-scale operators enter the market to provide a more expensive but quality taxi service for frustrated visitors and locals.

The uniformed drivers, behind the wheels of smart new multi-purpose vehicles and sedans, switch on the meter as a matter of course and do not refuse destinations — surprising and delighting commuters in the capital.

Abdul Razak, operations manager for Dubai-based Citicab which launched here in January, said that even in poorer nations such as Thailand and Indonesia, taxis are smarter and the drivers far more courteous.

“I would say it is the worst in this region, undoubtedly. I have travelled to all countries in this region and our company operates taxis in many parts of the world. The situation here is the worst I have seen,” he told AFP.

“The vehicles are in shabby condition, the driver will take you if he likes your face — that is, if he agrees with where you want to go for the price he insists on.”

The government has called on taxi firms to lift their standards, but various campaigns have achieved little, and many blame the lack of enforcement on rampant corruption in the police and bureaucracy.

“It is difficult for the roads and traffic department to take stern action,” said a security officer at one city mall as he watched the touts swoop.

“Taxi operators and the company which hold the licences are all linked to some politician or another,” he said. “Drivers here are ruthless because they are unchecked by authorities who are almost non-existent.”

John Koldowski, from the Pacific Asia Travel Association, said that “less than desirable” taxi drivers have an outsize impact on a nation’s image.

“The first contact a tourist gets with locals is often during airport transits to hotels and it creates a very, very strong first impression, either be good or bad,” he said.

“Authorities certainly need to do their jobs and act upon any complaints strongly, quickly and visibly.”

This article copied from http://news.my.msn.com/regional/article.aspx?cp-documentid=1682892

September 19, 2008

WHY BOYS NEED PARENTS?

This is hillarious

















September 7, 2008

How to prevent SQL Injection Attacks with PHP and MySQL

Security of your website information is probably the most important thing. If your database contains valuable data, you might lose your data or your data could be stollen.Not every web developer has heard about SQL Injection. I know, you will say “Who is going to hack my website?”, “Why should anyone hack my website?” or “No one is gonna hack my website”.

You will be an ignorant until it’s gonna happen to you, so you’d better prevent this thing happen, as you will see it’s not so hard.

The main iddea is to make your website portable, on different platforms with different configurations.

How SQL Injection is possible?

This is possible through user input ( POST, GET )

With SQL Injection a hacker can retrieve your data, insert, delete, so basicly can do anything with your database.

You need to sanitize input data, before being used in a sql query.
PHP has two functions for mysql that sanitize user input: addslashes( older ) and mysql_real_escape_string( recommended ). This function comes from PHP >= 4.3.0, so you should check first if this function exists. Mysql_real_escape_string prepends backslashes to the following characters: \x00, \n, \r, \, ‘, ” and \x1a.

This is a customized function I use to sanitize input data before using it into a sql query:

function sql_quote( $value )
{
if( get_magic_quotes_gpc() )
{
??????$value = stripslashes( $value );
}
//check if this function exists
if( function_exists( “mysql_real_escape_string” ) )
{
??????$value = mysql_real_escape_string( $value );
}
//for PHP version < 4.3.0 use addslashes
else
{
??????$value = addslashes( $value );
}
return $value;
}

A brief explanation

If get_magic_quotes_gpc function is On, then all the POST,GET,COOKIE data is escaped automatically.
This function was set to On, to protect beginner developers, but from next releases of PHP this function will be Off.
So if get_magic_quotes_gpc is enabled, we need to remove slashes, with stripslashes function, and then apply mysql_real_escape_string or addslashes, the one that is available.
You cannot rely on magic quotes, as it depends on php installation.

Using sql_quote function

$username = $_POST['username'];query = “SELECT * FROM users WHERE username=’” . sql_quote($username) . “‘”;
Of course you need to validate user input, for example you must check if username contains only digits, alphanumeric and underscore.
This is an extra security measure, you should apply it on every field, depending of field type: email, text, number and so on.I use the Validate class from PEAR to validate my input. Just download Validate class, and copy it in PEAR’s directory.
Here is how you validate an email, a string and a number using this class:
//init validate object
include_once(’your_path_to_pear_directory/Validate.php’);
$validate = &new Validate();
//get POST variables
$username = $_POST['username'];
$email = $_POST['email'];
$age = $_POST['age'];
//validate username, only alphanumeric and space characters are allowed
//VALIDATE_ALPHA, VALIDATE_NUM, VALIDATE_SPACE constants are defined in Validate class.
if( !$validate->string( $username, array(’format’=>VALIDATE_ALPHA . VALIDATE_NUM . VALIDATE_SPACE ) ) )
{
//throw some username error
}
//validate email
if( !$validate->email( $email ) )
{
//throw some email error
}
//validate age, only numbers between 0 and 100 are allowed
if( !$validate->number( $age, array( ‘min’=>0, ‘max’=>100 ) ) )
{
//throw some age error
}
From this point, only if there is no error from the above validations, only then we can execute the query.Examples of sql injection:

‘ or 1=1 –
‘ OR ‘1′=’1

Let’s see what happens if a username is: ‘ OR ‘1′=’1
Quotes are included.

//query without sql_quote functionquery = “SELECT * FROM users WHERE username=” OR ‘1′=’1′”;

//query with sql_quote function, see how single quotes are escaped

query = “SELECT * FROM users WHERE username=’\’ OR \’1\’=\’1′”;

June 15, 2008

Happy Fathers Day

What Is A Dad?

A Dad is a person
who is loving and kind,
And often he knows
what you have on your mind.
He’s someone who listens,
suggests, and defends ~
A dad can be one
of your very best friends!
He’s proud of your triumphs,
but when things go wrong,
A dad can be patient
and helpful and strong
In all that you do,
a dad’s love plays a part ~
There’s always a place for him
deep in your heart ~
And each year that passes,
you’re even more glad,
More grateful and proud
just to call him your dad!
Thank you, Dad…
for listening and caring,
for giving and sharing,
but, especially, for just being you!

Happy Father’s Day

With Love,
Naqib

May 31, 2008

Veoh Blocked Low Quality Countries

Wonder why you get “Veoh is no longer available” ? Here are few quotes from Veoh Staff:

Veoh is maintaining markets when we have the highest concentration of viewers.

What the hell does that mean? Your grammar is worse than mine and that is sad because you are staff of a big internet corp.

bear with us on this front. It certainly seems like a harsh decision, especially when you’re on the wrong end of the rule, however this is something that is neccessary for us to do to keep providing the service that we have. I am sure this, like the 5-minute preview limit, is something that will likely undergo some tuning as we go forward.

Orly? no shit, it is a harsh decision. LoL

Hello Everyone,

Unfortunately Veoh has ended service in your countries due to a low concentration of users. Veoh is maintaining service in countries when we have the highest concentration of viewers.

We apologize for any inconvenience and thank you for using Veoh.

It’s ok, you’re welcome?? wassat Let’s me rephrase their words and why they block those countries. “We are sorry but your countries traffic don’t convert or bring in any money for us at all but use a shit load of our bandwidth everyday. So, it’s best for us to block you to increase the company overall profit.” Its just so “internet” discrimination and not right. Blocked list:

-Indonesia

- Malaysia

- Chile

- Dominican Republic

- Brazil

- Argentina

- Jamaica

- Costa Rica

- Venezuela

- Guatemala

- Puerto Rico

So what can you do? Cry and cry some more OR wait until when Veoh feels pity for your country and change the rule. I doubt it but you never know I was just messing around tongue I am not so sure if this will work but ever heard of IP changer or proxy? I haven’t test this but this should work. Get yourself a Firefox browser (see that cute little fox on top left hand) + Switch Proxy Firefox addon and a list of U.S IPs. Try it and let me know the result and best of luck to everyone who got blocked.

May 30, 2008

How to say

A Kid asks: ‘Daddy? How did I come into this world? The Daddy Answered: ‘ Well, my child, some day I’ll have to tell you any way, The Kid asked again: ‘So why not today?’ The Dad Respond: Please, listen carefully: Mom and Dad met each other in an internet caf. In the bathroom of that caf, dad connected to mom. Mom at that time made some downloads from dad’s memory stick. When dad finished uploading we discovered we didn’t use any firewall. Since it was too late to cancel or delete, nine months later we ended up with a virus.

May 29, 2008

A Trip To Malacca 24th-25th May 2008

Ok, we went to Malacca at 7PM (the planner said we should gather at 6PM but ….) and arrived there around 8.30PM. I dont even know the road in Malacca. Cant remember even tough i was born in Malacca. I was moved to KL when I was standard 5. So cant remember much at that time.
Ok. After we (Alfin,Denise,Romani,Jason and Me) reached the Ayer Keroh Tol, we wait for the other group which are Desmond,Vichheka,JQ,Nick and Alex. They havent arrived yet, i tought i want to have some smoke 1st but then later they arrived. Ouh well, just smoke in the car but then look at Jason start to batuk2 hahahaha. Sorry mate, I will not smoke infront of My Parents and Ex if they are riding with me. LOL Ok then we try to find the way to Jonkok Walk (Jason pls correct me if im spell it incorrectly) to find Quick and his girlfriend (Suiyin). They arrived quite early since they want to book for our apartment. Ouh well you know, its kindda hard to reserved a room since its school holiday.
Ok, while on the way to Jonkok or wut so ever LAMO, I dont know how to get there. Then i asked Jason, because before this he said that he know the way to Malacca and familiar with it. But then at that time he said FUCK IVE FORGOTTEN THE WAY. omg wut happen to this guy lol. Then i asked him hey man come on lah wut pass already pass (cakap pandai la). He said suddenly he remember to his ex girlfriend which is from Malacca, ouh well this guy just broke up with his girlfriend.. sorry man. Ok then miracle happen, we managed to get there hahaha and met with Quick with her gf there.
After that we went to eat together at a restaurant. This restaurant kindda cool, have live band, but then their service is TOO TOO TOO SLOW. Waiting for the bill took 15minutes. DAMN. The food kinda good but my foreign friend its not so cool. They dont like it. BTW its difficult to find a place for them. Romani dont like spicy and Vichheka want spicy. So, way to go men.
After that, we find our way to our apartment. Quick leads the way, but we get lost. HAHAHAHA You know i want to pee at that time and have to tahan for it about 30minutes(its raining at that time). THATS KINDDA GAY. He forgotten the way to get to our apartment. Havent drunk but forgotten the way. BTW Quick and his girlfriend not staying with us. They go stay at different hotel. HAHAHA Quick how was it? can sleep? :P.

Ok, after we managed to find the apartment, we noticed that the room been abandoned for a long time. We found that the newspaper under the table dated xx-xx-1997 and the calendar too. Thats why its quite cheap for 4rooms fully furnished at RM550 per night. hahaha Vichheka straightly go to pray because he afraid something happen at that night. Then he told JQ to pray too. He said the ghost in Malacca dont understand my language (Khmer) and u should pray in chinese. LOL WTF. Later then we go out buy some drink at play card. Then everyone went to sleep. BTW the aircond in the room not working. We have to open the windows but its ok la since its near to the beach.

Later tomorrow we went to Malacca Museum. On the way to get there, Desmond call Denise said that my car tire have less pressure. They knew it because they follow us from behind. The we find the nearest petrol station to pump it.
Ok then at the Museum, the good news is we enjoy it there and the bad news is Vichheka lost his way (He spent his time to took picture but then he get seperated from us). Around 12.30PM, Quick called and told us that we suppose to have our lunch at a BabaNyonya restaurant. He already booked it and we supposed to be there at 1.15PM. Luckily at that time we found Vichheka and thanks to him all this picture uploaded here from his camera.
We went to eat, and its awesome. Romani afraid to eat because he tought its spicy. Everyone laughed at him because he keep complaining bout the food. HAHAHA its really funny. After we taken our lunch, we straightly go to our car because we will went to AFamosa next. But at the time we arrived, I saw a summon been put under my wiper. Haih RM30 hahaha. But then nevermind.

Click to enlarge















May 21, 2008

In China quake, apotheosis of ‘Grandpa Wen’


Prime Minister Wen Jiabao with earthquake survivors in Beichuan, China.

(Yao Dawei/Xinhua, via Reuters)

CHENGDU, China: He is widely known as “the crying prime minister,” although he prefers to be called “Grandpa Wen.” Over the past week, as Wen Jiabao toured earthquake-shattered towns and cities across northern Sichuan, he has hollered out words of encouragement to those trapped beneath fallen buildings and shared tearful moments with newly orphaned children.

If a story widely circulated on the Internet is to be believed, Prime Minister Wen has been barking orders to army generals and dispatching paratroopers to remote towns hit hard in the quake, even though as China’s head of government operations he has no power over the military.

Since ascending to the post in 2003, Wen, 65, has cultivated an image as a man of the people, a rarity in the pantheon of Chinese leaders, who are often seen as placing stability and the authority of the Communist Party above the wants of individuals. The state news media have long labored to spread the notion that Wen cares for ordinary folks, broadcasting his visits with coal miners and migrant workers, and showing him eagerly shaking the hands of drug addicts and people with AIDS.

Now, as the nation grapples with its greatest natural disaster in three decades, Wen’s persona as an empathetic, benevolent official has been cemented in popular lore. He has become the public and inescapable face of a nation’s grief since he jumped on a government jet bound for Sichuan Province less than two hours after the earthquake struck.

His high-profile humanitarian gestures, played again and again on television, have stood in stark contrast to the response of the rulers of Myanmar, who have been widely denounced for inaction toward the victims of a devastating cyclone. But Wen also appears to have forged a new, media-savvy mold for Chinese leaders, who have long delegated propaganda work to lower-ranking officials and the state-run press.

“He really loves the common people, and we can see this is not an act,” said Wang Liangen, 72, a retired math teacher from the devastated city of Dujiangyan, who watched last week as the prime minister climbed over the wreckage of a school where hundreds of children were buried. “He has brought the people closer together, and brought the people closer to the government.”

Some analysts say Wen’s unusually public role may signal at least a modest shift in the way the Communist Party interacts with the Chinese citizenry. In a country where many millions live in poverty and thousands perish each year in mine accidents, for example, Wen ordered shortly after the quake that lives must be saved “at any cost.” And while Wen is not known to have supported any substantive political change during his first five-year term as prime minister, his frequent calls for more democratic-style consultation with ordinary people and for greater economic parity have resonated with the poor.”Wen’s efforts will absolutely leave a long-lasting influence on government work in the future,” said Fang Ning, a political scientist at the China Academy of Social Science in Beijing. “His quick response and immediate appearance will set a precedent for other officials.”

It is difficult to know if the rescue effort Wen has led will ultimately be judged a success. And it is unlikely that the unusually vigorous press coverage of the quake and of Wen’s hands-on role in managing the rescue effort signal a shift away from strict censorship.

But Wen and his boss, President Hu Jintao, do seem inclined to show the world a kindler, gentler side of official China in advance of the Olympic Games. After the international backlash over China’s crackdown on ethnic Tibetans, the leaders have used the earthquake in an effort to show that their authoritarian government can be responsive, even populist, at crucial moments.

“I think the earthquake really has the potential to change things,” said Dr. Cheng Li, a senior fellow of the Brookings Institution, who argues that Wen ? whose second appointed term expires in 2012 ? is one of China’s brightest and most pragmatic modern leaders. Even before his actions in Sichuan, he said, Wen was a muscular champion for China’s have-nots, an advocate of broadening the use of legal norms to help govern the country, and a bulwark against party conservatives. “A lot of Chinese have been overwhelmed by Wen and his sincerity, honesty and humanity,” Li said. “Not many leaders have his qualities.”

Wen often talks about democracy but is not a proponent of Western-style democratic reforms. He remains an unwavering advocate of single-party rule, and he has taken a hard line on Tibet, accusing the Dalai Lama of instigating the ethnic Tibetan unrest in March. In public statements, he has said China is unafraid to use its military might to prevent Taiwan from declaring independence from the mainland.

Despite Wen’s well-tended image as an apolitical pragmatist, cynics note that he did not earn his lofty post by playing nice. “It takes a considerable amount of political skill and cunning to become premier of China,” said Fred Teiwes, a professor of Chinese politics at the University of Sydney in Australia.

Wen is nothing if not the consummate survivor. A lifelong technocrat, he made his way to the top of the heap by pleasing his superiors, hewing to the party line and making few enemies. A trained geologist who comes from a family of teachers, he is sometimes ridiculed for indecisiveness and for long-winded speeches flecked with quotations from Descartes and classical Chinese poetry. In the 1980s he served as a top aide to successive party bosses, Hu Yaobang and Zhao Ziyang; both leaders were purged after opposing harsh crackdowns on liberal forces in society, but Wen went on to serve in senior posts under their more conservative successors.

As with most Chinese leaders, much about him remains a mystery. But he presents himself as self-effacing and penurious. For more than a decade, he wore the same dull green overcoat. Unlike most of his fellow cadres, he refuses to tint his graying hair with gobs of black dye.

In contrast to Hu, an opaque and aloof statesman, Wen favors a colloquial speaking style, even if his comments always hew closely to the party script. Unlike his predecessor, Zhu Rongji, who was known for his jocular manner and snap decisions, Wen, when faced with tough economic policy choices, will often spend days ruminating and consulting before deferring to fellow members of the ruling Politburo Standing Committee for a collective decision, party officials have said.

“He may not be a good leader,” said Li, of Brookings, “but the perception out there is that he’s a good person.”

That has been the overwhelming impression since a somber-looking Wen announced news of the earthquake on May 12 as he flew from Beijing to Sichuan. In the days that followed, he was frequently shown hugging quake victims and promising government aid. According to people who saw him in those first few days, he cried more than once.

In recent days, a pro-government newspaper in Hong Kong and a Guangzhou-based Web site wrote that Wen had tripped and fallen as he walked on earthquake rubble and had refused medical treatment for a bloody arm.

A more intriguing account described his fury when he learned that rescuers from the People’s Liberation Army had yet to reach Wenchuan, a city of 100,000 at the quake’s epicenter. Even if concocted by Wen’s admirers, the report reveals a shift away from the prime minister’s persona as a vacillating, avuncular bureaucrat.

According to the account ? which has been ricocheting by text message for days ? Wen screamed on the phone to a general, who, under Beijing’s pecking order, does not answer to the prime minister. “I don’t care what you do,” Wen reportedly yelled, his face drenched in rain. “I just want 100,000 people saved. This is my order.”

Then, according to the story, he slammed the phone down.

Huang Yuanxi contributed research from Beijing.

Child Kidnap Trick in Carrefour, JB

I would like to share with you guys an email forwarded by a friend of mine.

A mother was leaning over looking for meat and turned around to find her 4 years old daughter was missing. I was standing there right beside her, and she was calling her daughter with no luck.
I asked a man who worked at Carrefour to announce it over the loud-speaker. He did, and left me, he immediately walked right past me when I asked and went to a pole where there was a phone. He made an announcement for all the doors and gates to be locked, a code something. So they locked all the doors at once.
This took all of 3 minutes after I asked the guy to do this. They found the little girl 5 minutes later in a bathroom stall drugged. Her head was half shaved, and she was dressed in her underwear with a bag of clothes, a razor, and wig sitting on the floor beside her, to make her look different.
Whoever this person was, took the little girl, brought her into the
bathroom, shaved half her head, and undressed her in a matter of less than 10 minutes. This makes me shake to no end. Please keep a close eye on your kids when in big places where it’s easy for you to get separated like Shopping Malls. It only took a few minutes to do all of that. Another 5 minutes and she would have been out the door.
I am still in shock that some sick person could do this, let alone in a matter of minutes. The days are over when our little ones could run rampant all over the place and nothing worse would happen then them annoying people.The little girl is fine. Thank God for fast workers who didn’t take any chances.

Next Page »