Achieving First Class Honour

I had completed my Coventry Computer Science Degree program and achieving first class honour degree. But at the same time, I am not completed MQA requirement for two MPW subjects and will be ended in the coming end of November.

First class honour for me means a lot of thing. First, it certifies my knowledge and the spirit that I possess, take seriously for whatever jobs passed to me; Second, it means that based on what Najib said, free PTPTN loan converted if student achieving First class after 2010. First class honour still a surprise to me, but not a big suprise, because I believe my capability to achieve this. Everything is not stated to happen, it depends on what you do in the next seconds.

The important thing for me to achieve this has one: I need to apply free PTPTN of First Class Honour Degree after I completed my study successfully, in order to reduce family burden, since I still have two sisters, one just entered into National University of Singapre and another one will enter Foon Yew High School next year.

To achieve this, I need to thank many persons include my fellow lecturers and supervisors who give me good base knowledge and skills and encouraging me to face any problems that flowed to me. At the same time, I have big thanks to my fellow friends who giving me big supports at my back to encourage me to continuelly making impossible into possible. And now I thought and certifed one thing: nothing is impossible. And last, this is stated in Qingxin Spirit (清心精神), which I had possessed throughout my youths to adults. I am very thanks for my famly to have back-end support and financial support throughout my study.

This is not the end, however, the highest today is the lowest tomorrow, I will continue to make it better and better.

Had attended 36 Hours The Longest Open Source Software Programming Events of Malaysia

I as Khor Yong Hao, Gan Chee Tak, Alvis Chen, had attended 36 Hours The Longest Open Source Software Programming Events of Malaysia around 6 October to 8 October 2010. We are representing the Team named as ColourWeb. This competition is organized by MAMPU (Malaysia Open Source Conference), located at EPF Institute, Kajang.

36 Hours OSS WebDev Contest (Organized by MAMPU) (Recorded in The Malaysia Books of Record)

In this competition, we had learnt many new things. At first, we have less experience in Linux last time as playing Amazon EC2, but we managed to setup and install whatever requirements in the process of building web application and stuffs. The most important we learn is good process of team collaboration. We help each other with our own profession. Sharing is the best word to say at here. We promote open source, promote sharing. We are good team collaboration players. But at the same time our weaknesses is less experience in designing big projects. Through this competition, we know our perspectives and know how to handle it in the near future.

This is not the end of the spirit, and also not the end of this post, to be continued…

Will Attend Competition

I will attend web design competition, organized by MAMPU, located in EPL Institute in Kajang later (not Putrajaya). This competition tests our creative in web design, and mainly promoting open source development, to boost open source development in Malaysia.

In this competition, our group Colourweb had prepared to welcome the challenges, we will try our best, but at the same time, take relax, to make it like ordinary day what we do.

I will update the latest progress in my Twitter (http://www.twitter.com/fyhao) or my blog! Please follow us!

Colourweb:
1. fyhao (http://www.fyhao.com)
2. aresgan (http://www.aresgan.com)
3. alvis (http://www.wmalvis.co.cc)

Deploy Glassfish and mysql in Amazon EC2

This tutorial is just a brief introduction but not the complete one and will be refreshed later.

First, use ami-26df324f (Amazon EC2 instance with Fedora Linux + Java installed)

Go http://docs.sun.com/app/docs/doc/820-7690/ggssq?l=en&a=view download glassfishv3 and install

that is:

http://dlc.sun.com.edgesuite.net/glassfish/v3/release/glassfish-v3.zip

how to use bin/asadmin

http://docs.sun.com/app/docs/doc/820-7689/aboaa?l=en&a=view

install mysql

http://www.thegeekstuff.com/2008/07/howto-install-mysql-on-linux/

remember 32-bit client and server one is safer to install
Download mysql java connector and put in glassfish/domains/domain1/lib/ext
the jar file
reference link:

http://bhapca.blogspot.com/2009/06/class-name-is-wrong-or-classpath-is-not.html

refer local glassfish admin console, add below in server glassfish admin console
add
resources -> jdbc -> jdbc resources / connection pools
and deploy (just upload war file) it in autodeploy folder (domain1)

最近的技术学习方向

现在的我处于一半毕业的状态,时间非常充裕,也有鲜少的时间可以做一些研究,做技术上的提升。

这里将会记录这个月来我看到的,学习到的东西。
上个月来我在看着 Robocode;过后下载了,阅读了,一些有关 神经网络 Neural Network 及 遗传算法 Genetic Algorithm;HTML5 Canvas 制作数学,动画机制;Google Android SDK;最近也接触了 Discuz X。
我说过,未来10年的技术方向,主要朝向三个领域,即 云计算 Cloud Computing,流动计算 Mobile Computing,社交计算 Social Computing。云计算即是运算资源如水一样便宜到非常容易获取,剩下的就是如何利用这些近乎免费的资源去创造更美好的东西;流动计算,也就是说智能手机的行业,时下智能手机平台的发展,手机上网的潮流越来越上潮了;社交计算,代表性的有 Facebook, Twitter,这些社交计算也将继续统领未来的 IT 发展趋势。未来的 IT 发展趋势,将与人类的发展紧紧环抱。IT 的发展将远离实验室研究而更真正的渗透入人类的社群生活里。

Inversion of Control (IoC)

Inversion of Control, or IoC, is an abstract principle describing an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to procedural programming.

Saw IoC many times in many technical articles especially with the topics of Object-oriented design or software engineering development. However, I have no fully understand what IoC is talking about at the first pace. Therefore, I had carried out a research about this.

To understand this, let take a scenario.

Consider we have a framework, and application that runs on the framework.

In traditional aspects, application calls required libraries or API to carry out their tasks. The central control is held by central piece of code in application. In Inversion of Control, framework  actively calls application to carry out tasks. It often using inheritance to realize IoC. Parent class actively calls the method from child class. Framework lets relevant parent classes work together to define the process of the tasks. At the meantime, parent class leave interface, or in Java Term, abstract method, to be implemented by child classes.

The advantage of Inversion of Control is that there is decoupling of the execution of a certain task from implementation. Secondly, it enables less hassles in system replacement.

Further reading:

http://en.wikipedia.org/wiki/Inversion_of_control

Increment Difference between C and Java

Both C and Java are high-level language.

Both language provides support for variable increment such as the statement: “c++”, “++c”.

However I have discovered some difference between them, where my knowledge is not able to define it currently.

Consider a piece of code in C:

#include <stdio.h>

int main(void) {
    int c = 1;
    c = c++ + ++c;
    printf("this c: %d", c);
    return 0;
}

The output will be c = 5;

#include <stdio.h>

int main(void) {
    int c = 1;
    c = c++ + c++;
    printf("this c: %d", c);
    return 0;
}

The output will be c = 4;

However in Java,

        int c = 1;
        c = c++ + ++c;
        System.out.println(c);
        int d = 1;
        d = d++ + d++;
        System.out.println(d);

The output will be c = 4 and d = 3

Therefore, this is the difference between inner execution structure for both language and need to be researched in order to fill in the blank here.

To be continued…