Monday, April 5, 2010

Object Transformation With Java2D Graphic


Object Transformations: Computer-Mathematics
When we are in Form1...Form2..Form3..Form5...
We had been studying object transformation in Mathematics.
Typical object transformations include:
Translation,Rotation,Reflexion, ....
So I think every student should be familiar with the following images.


There are many types of object transformation in Mathematics


Rotation


Reflection




I believe that many students think these type of transformation are useless.
They might think that what for we study these kind of things?
However,they don't know the knowledge that we learn
in lower level actually can be applied when we move to the higher
level of education.
Especially when you become a Computer Science student.
I am going to show you how object transformation can be applied in
Java2D Graphic Programming



Coding 1


Coding 2

The two images show the coding to do object transformation
in Java2D Graphic Programming by me.



This video shows how the program created by me works :)

Click the link below to view the larger video at Youtube:

Sunday, February 28, 2010

新年的其中一宝

新年的其中一宝

新年过了这么多天,
最近一直都在忙着比赛,在准备Imagine Cup的东西,所以一直都没有update blog,
今天醒来,决定了,要逼自己今天一定要update到Blog!

新年时我做了什么呢?
常常听说文房四宝(笔、墨、纸、砚),
我想大概新年也有几宝巴?(红包,鞭炮,柑,年糕...)还有麻将!
是的,从来都不打麻将的我,
在这个新年,被我的很好的form6同学带坏了!

刚开始时,他们叫我打麻将,
就三个人坐下,我就奇怪,为什么只有三个人打?
因为在我的印象中,麻将都是四个人打得(港剧里常常都看到那些auntie喊四缺一),
后来我的朋友就告诉我,麻将有分三人麻将,和四人麻将的,
还有一种是lami?我不懂怎样发音,是很像poker的麻将。


三人麻将就是这样子的XD

我们就三个人坐下来打咯,
原来麻将的规矩还真多,
三人麻将的话整幅牌一定要全部三粒牌一起(三粒同样的牌,或三粒顺着去的牌),
然后最后两粒牌是一对的,才可以吃糊!
顺便一提,在吃糊之前,要make sure自己有五番,
不然就会像我一样,明明我的牌可以吃糊了,可是因为不够番就不能吃!

三人麻将还有很多规矩的,
比如说如果少了一粒牌就叫"小相公"啦,
“飞”可以代替任何牌拉,
不够番的时候还可以"沉飞",去抽牌,
看自己运气好不好,能抽到"花"来增加自己的"番"咯。

还好我的朋友看我是新手,
就不玩钱的跟我玩,
每想到第二天我自己可以"吃湖"了!
不用人家帮的哦!(小相公了几次)。
还好那时也是没有玩钱的,
不然就被一个我的朋友"赌神"肥Yin赢完我的红包! >.<
十场有八场都是他在吃糊!
传说中的赌神肥Yin

Saturday, February 6, 2010

IHub Forum created by me

*IHub Imagines*
This is a forum created by me for a competition-Imagine Cup.
Tool:phpBB

Sign up as member 1st

Forum view 1

Forum view 2

Forum view 3

A click on the Digital Media would link you to..

Digital Media Title List..

And a click on the title will link you to..

There's a video to be viewed~ ~.<

P.S:Users can share their videos,pictures
and whatever topic that they want!

To go to the forum click:
>>Here<<

Sunday, January 31, 2010

The Climb


The Climb
>>Broga Hill<<
Broga Hill

Last Thursday 28/1/2010 early in the morning,my course mates and I,all from
Jabatan TK(Computer Science) went for a hike at Broga Hill,Semenyih at 4a.m.!!!
How to go Broga hill?See the map below:
Map to Broga Hill Semenyih

When we arrived there,I actually took a look at the surroundings
and this is what I've got!
Rabbit Farm

Yea that's a rabbit farm,and I saw the advertisement:"Rabbit Satay" ==|||
Oil Palm Plantation at The Entrance

The oil palm plantation was the route that we must pass by.
These 2 fellows slept together at the night. >.<

Night View from the Top

The Sky was a bit brighter

Brighter

Love this >.<

The "Egg Yolk" was coming out


They woke up in the morning

Clement,make sure you didn't do anything to Aoran har.
Like this like this~~
The scenery there was amazingly beautiful~

The mountain




When the sun shined the path became a "Golden Path"

Way back to home


Wednesday, January 13, 2010

Preparation for Imagine Cup
Ladies and gentlemen,
with the cooperation of UKM and Microsoft,
a briefing for the preparation of Imagine Cup and a short course on .NET will be held
on this Saturday(16/1/2010).
For those who are lazy to check their emails,^^
The time table is as below:

Tarikh: 16 Jan 2010 (Sabtu)
Tempat: Bilik Kuliah 2, FTSM
Agenda:
9.00pg - Pendaftaran peserta
9.30pg - Bengkel Imagine Cup oleh wakil Microsoft
10.30pg - Minum pagi
11.00pg - Perkongsian pengalaman Imagine Cup oleh bekas pelajar UKM
11.30pg - Bengkel "Innovation & Value Proposition"
1.00 t/h - Makan t/hari
2.00 ptg - Klinik perbincangan usulan projek dengan pihak Microsoft
4.00 ptg - Minum petang dan bersurai

For .NET,the time table is as below:

Tarikh: 17 Jan 2010 (Ahad)
Tempat: Makmal 4 dan Makmal 5 (FTSM)
Masa: 9.00 pg - 5 ptg
Agenda: Kursus pengenalan kepada .NET
Peserta digalakkan untuk install Visual Studio Team System dari web site MSDNAA.
Minum pagi, makan tengahari dan minum petang juga disediakan.





Sunday, January 10, 2010

Churches were under attack!


This is totally unbelieveable!
Last night as usual,I clicked the Malaysiakini icon at the top of my browser,
I was shocked by a news..
Churches were under attack.
I knew about the "Allah" protest.
But I didn't put a lot of attension on it at that time.
After the announcement of Federal Court whr non-Muslims are allowed to use the word "Allah".
Those extremists started to commit protests to threat non-Muslims.
The judgement of Federal Court indicated that the use of the word "Allah",
was actually legal from the perspective of constitution.
Means non-Muslims have the right to use the word.
How could they tell other ppl that "Only we Muslims can use the word".
Actually,aft the incident,my 1st impression is,
why were they so care about the word Allah??
The word Allah actually exists in many religions including Bible.

The worst thing is,
our excellent Prime Minister,tackled the Allah issue with 2 standards.
When people were protesting about the death of Teo Beng Hock,
they were caught immediately.
When it comes to the Allah issue,
when those Muslim extreamists claimed that they were going to protest at National Mosque,
our lovely Prime Minister said that if they wanted to protest at National Mosque,he got no right to stop them.
What kind of bull shit this is.
It was so obvious..
Government have been trying to gain support through sensitive issues..
Last night,tragedies happened,because of their personal aims..

I believe that aft these kind of issues,
Malaysian are taught a precious lesson,
I believe that they will be able to choose teir government wisely in the future.
So,I am looking forward to the next election,and see what's gonna happen.^^


The glass was damage by petrol bomb

The ground floor was totally damaged

Crime scene investigation

P.S:A click on the title of this post will link you to the page of news at Malaysiakini. =)

Sunday, January 3, 2010

Stupid Graphic Programming Course

This is the picture I drew by using Java programming

This course is called Graphic Programming.
Actually I don't know wat is the purpose of
teaching this course since there are many softwares in the market which we can use to
draw graphics easily.
This picture took me the whole afternoon and this is wat I've got! ^^
It almost drive me crazy! ==|||
By the way,I am glad that I can finish it on time because there is a Graphic Programming lab tomorrow..