Hard to sleep today, that's why wake up to write down what I think in my brain.....
First try to provide some background information. I'm in Taiwan now for working trip and may be coming week or month I'll also been there too. This is my first time to come Taiwan, the first image to me is good. But I been there for work anyway, so that may carry some passure......
Why I want to write it down what I thinking right now because I want to express my feel. hopefully this act can be able to relax my pessure.
This few day, my brain keep refresh my school life in Hawaii before. Compare to now situation and my student life that my school life MUST much better than now. Ah~~~~. What i come do right now is keep running forward and non stop....until I cannot take any more...
In between, another stress come toward me is my Romanic life. A target I already, but my damn character is not familar talk to girl, another word to say is I afraid, scare and don't know how to express myself. I always talk to myself be brave to SAY "I Love you" with her.... but not successful..... and always miss the chance.... OMG.......OK it 1:06am, think write this down would make my sleep better la......
Wednesday, April 14, 2010
Friday, December 11, 2009
Seeing picture
facebook is one of the good place to see somebody photo. Seeing photo will able to know more about people characteristic who appear in photo. I can see happy, smiling, sad, angry, etc. I am interesting to pay attantion on seeing people and guessing whom characteristic who appear in photo.
Friday, June 27, 2008
How to start XAMPP service at booting the system
tar xvfz xampp-linux-1.5.0.tar.gz -C /opt
ln -s /opt/lampp/lampp /etc/rc.d/rc4.d/S99lampp
ln -s /opt/lampp/lampp /etc/rc.d/rc5.d/S99lampp
How To Install VMware Server On CentOS 5.1
1 Find Out Your Kernel Version
Before we go on and install additional software, it's a good idea to find out about your kernel version because in chapter 2 we will install the package kernel-devel which is needed by VMware Server. There are multiple kernel-devel packages available, and to select the right one you need to know your kernel version.To find out about your kernel version, open a terminal (Applications > Accessories > Terminal):

Then become root by running:
su
Then run
uname -r
The output should look like this:
[root@localhost Desktop]# uname -r
2.6.18-8.1.3.el5
which means you have kernel 2.6.18-8.1.3.el5 installed.
2 Installing Required Packages
Before we install VMware Server, we must install some prerequisites. To install them, go to Applications > Add/Remove Software:
-Type in the root password:
-The Package Manager opens. Go to the Browse tab and select:
- Development > Development Libraries
- Development > Development Tools

-Then go to the Search tab and search for xinetd. Select the xinetd package for installation:

-Do the same for the kernel-devel package. Please make sure you select the kernel-devel package that corresponds to your current kernel (so if you kernel is 2.6.18-8.1.3.el5, select the kernel-devel - 2.6.18-8.1.3.el5.i686 package).

Click on Apply afterwards.
The Package Manager will then resolve all dependencies, download the packages, maybe ask you to accept some unknown software keys (please accept them), and finally install the packages.
3 VMware Server
-To download VMware Server, go to http://www.vmware.com/download/server/ and click on Download Now-Accept the license agreement by clicking on Yes
-Then download the VMware Server for Linux .tar.gz file (not the rpm file!) to your desktop (e.g. to /home/jeffrey/Desktop):

To get the serial number you need to run VMware Server, go to http://register.vmware.com/content/registration.html. Fill in your personal details. Afterwards you will get a page with a serial number for VMware Server. Write it down or print it out:

-To install VMware Server, open a terminal (Applications > Accessories > Terminal) and become root:
su
-Then go to the location where you saved the VMware Server .tar.gz file, e.g. /home/falko/Desktop (replace falko with your own username!):
cd /home/jeffrey/Desktop
-Unpack the VMware Server .tar.gz file and run the installer:
tar xvfz VMware-server-*.tar.gz
cd vmware-server-distrib
./vmware-install.pl
-The installer will ask you a lot of questions. You can always accept the default values simply by hitting
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]
-you can accept the default value or specify a different location where you have more free disk space, e.g. like /home/jeffrey/virtual_machines, but this is up to you and not necessary.
-At the end of the installation, you will be asked to enter a serial number:
Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:
-Fill in your serial number for VMware Server.
-After the successful installation, you can delete the VMware Server download file and the installation directory:
cd ../
rm -f VMware-server*
rm -fr vmware-server-distrib/
-You will now find VMware Server under Applications > System Tools:

When you start it, select Local host:

Afterwards, you can create virtual machines (or import your virtual Windows machine that you created with VMware Converter):
Sunday, December 9, 2007
33.PrimeDirectivesRedux
1. Interactive Development Environments (Eclipse, VisualStudio, etc.)
An IDE for developer to read code clearly and provide syntax error notification, auto connect wrong syntax. Reduce code mistake of developer made . For Eclipse is integrate junit test that provide test result for developer, so IDE would be Prime Directive 3.
2. Coding Standards and Coding Standards Compliance Tools (Checkstyle, etc.)
Each developer has their coding standards, but some of them may using a same language, so how can we make code organize and follow the same rules when coding. checkstyle provide test for checking it have a same documentation style. Since, checkstyle has standardize the code that would be Prime Directive 3.
3. Build Systems (Ant, Make, etc.)
Build system provide one step testing for developer that to build entire project include code testing and code compile. Also it is a great tools when developer developing a big project, it could be gather all source file and compile at one time. Seem build system is only for developer, so it would be Prime Directive 3.
4. Automated Quality Assurance Tools (PMD and FindBugs, etc.)
Automated Quality Assurance Tools will find some code invalidation which the developer didn't realize or aware on it. This tool make the code standardize, for small project this tool is passive, because who care about Automated Quality of "Hello world" program, but it is helpful of build a large project, same with above tools it related to coding that's mean related to develop, so this is Prime Directive 3.
5. Black and White Box Testing
Black box testing seem to be relate to developer and user, because sometime developer cannot find bugs after release the system, but user can do it. Also, black box testing has not relate to coding or viewing code, so black box testing is Prime Directive 2 and 3.
White box testing is only for developer who read the code to evaluate what good or bad in code. so it may be Prime Directive 3.
6. Automated Testing Tools (JUnit, HttpUnit, etc.)
Automated Testing is developer write some code to test the system status, it is work or not. which situation may crash the system which may not etc. Running this tool may test the system coverage status, then provide result to developer how to improve their code. so it is Prime Directive 3.
7. Configuration Management (CVS, SVN, etc.)
For the big project, we require many developer to build the system build how can they marge their codes when they are works alone, so Configuration Management tool can provide a feature about keep track every single time who change the code.
so this one is Prime Directive 3.
8. Issue Driven Project Management
When every developer work on their own part that they have to commit their work so how can they organize their work, so that Issue Driven Project Management can help them to solve this kind of problem, it is a documentation of which part they working on. It only develop can access to make issue statement so it is Prime Directive 3.
Software Review can be other developer who working on the same project but they work on different way or other developer who familiar with this area or user who want to give some feedback about system operation, then they may do software review. So it is Prime Directive 2 and 3.
11. Agile Methods (XP, Scrum, etc.)
Agile Methods is two or more developer coding on one computer that is the way to communicate with each other, also talk about how to make the system work better. It is Prime Directive 3
12. Open Source Licenses (GPL, CPL, etc.)
Open Source Licenses is free charge product and we can download it from web and get fully support. Since everyone can download the distribution online, so it is Prime Directive 2.
13. Online Hosting Services (Google Project Hosting, SourceForge, etc.)
Online Hosting Services provide a free storage and workspace to developer to build their own project or company project that share out to world for someone who interested with to download the distribution. Since most of then using this Online Hosting Services is developer, so it is Prime Directive 3.
An IDE for developer to read code clearly and provide syntax error notification, auto connect wrong syntax. Reduce code mistake of developer made . For Eclipse is integrate junit test that provide test result for developer, so IDE would be Prime Directive 3.
2. Coding Standards and Coding Standards Compliance Tools (Checkstyle, etc.)
Each developer has their coding standards, but some of them may using a same language, so how can we make code organize and follow the same rules when coding. checkstyle provide test for checking it have a same documentation style. Since, checkstyle has standardize the code that would be Prime Directive 3.
3. Build Systems (Ant, Make, etc.)
Build system provide one step testing for developer that to build entire project include code testing and code compile. Also it is a great tools when developer developing a big project, it could be gather all source file and compile at one time. Seem build system is only for developer, so it would be Prime Directive 3.
4. Automated Quality Assurance Tools (PMD and FindBugs, etc.)
Automated Quality Assurance Tools will find some code invalidation which the developer didn't realize or aware on it. This tool make the code standardize, for small project this tool is passive, because who care about Automated Quality of "Hello world" program, but it is helpful of build a large project, same with above tools it related to coding that's mean related to develop, so this is Prime Directive 3.
5. Black and White Box Testing
Black box testing seem to be relate to developer and user, because sometime developer cannot find bugs after release the system, but user can do it. Also, black box testing has not relate to coding or viewing code, so black box testing is Prime Directive 2 and 3.
White box testing is only for developer who read the code to evaluate what good or bad in code. so it may be Prime Directive 3.
6. Automated Testing Tools (JUnit, HttpUnit, etc.)
Automated Testing is developer write some code to test the system status, it is work or not. which situation may crash the system which may not etc. Running this tool may test the system coverage status, then provide result to developer how to improve their code. so it is Prime Directive 3.
7. Configuration Management (CVS, SVN, etc.)
For the big project, we require many developer to build the system build how can they marge their codes when they are works alone, so Configuration Management tool can provide a feature about keep track every single time who change the code.
so this one is Prime Directive 3.
8. Issue Driven Project Management
When every developer work on their own part that they have to commit their work so how can they organize their work, so that Issue Driven Project Management can help them to solve this kind of problem, it is a documentation of which part they working on. It only develop can access to make issue statement so it is Prime Directive 3.
9. Use Cases
Use Case is a fundamental design for user guide, it is a documentation of how to fulfill the user requirement when the system released. It related to general system design, so it is Prime Directive 1.
Software Review can be other developer who working on the same project but they work on different way or other developer who familiar with this area or user who want to give some feedback about system operation, then they may do software review. So it is Prime Directive 2 and 3.
11. Agile Methods (XP, Scrum, etc.)
Agile Methods is two or more developer coding on one computer that is the way to communicate with each other, also talk about how to make the system work better. It is Prime Directive 3
12. Open Source Licenses (GPL, CPL, etc.)
Open Source Licenses is free charge product and we can download it from web and get fully support. Since everyone can download the distribution online, so it is Prime Directive 2.
13. Online Hosting Services (Google Project Hosting, SourceForge, etc.)
Online Hosting Services provide a free storage and workspace to developer to build their own project or company project that share out to world for someone who interested with to download the distribution. Since most of then using this Online Hosting Services is developer, so it is Prime Directive 3.
Myisern 2.0 Review
Reviewed Team: myisern-pink
Source Code: Here
Tool installation : (for me only)
-Apache Derby database.
-Environment variable "DERBY_HOME"
Testing :
verify.build.xml -- fail
Stop at junit test, since it got an error on testLoginActionBean and testLogoutActionBean.
checkstyle.build.xml -- Okey
Source Code: Here
Tool installation : (for me only)
-Apache Derby database.
-Environment variable "DERBY_HOME"
Testing :
verify.build.xml -- fail
Stop at junit test, since it got an error on testLoginActionBean and testLogoutActionBean.
Please see the error below:
checkstyle.build.xml -- Okey
findbugs.build.xml -- Okey
pmd.build.xml -- Okey
emma.build.xml -- sametime is work, sometime it doesn't
[concat] Emma Coverage summary
[concat] class: 67% (10/15)
[concat] method: 30% (76/256)
[concat] block: 32% (3843/11954)
[concat] line: 32% (860.4/2730)
The only problem is when I run junit firsta and run emma right after that the heap space must running out, then I need to restart Tomcat again to run emma. I try many time and many time it happen. The emma test I did successful is running checkstyle, findbugs, pmd for each single time then I run emma after that is successful, but not run junit in front of emma.
I think there are some improvement for on make junit test first, then worry about emma coverage after that, since your coverage is too lower, so I think you need write some test case for improve that.
Black Box Perspective:
For basic operation, add, edit and delete has success operated.
There are few thing I suggest to add on your project:
-I suggest that add some back button or redirect link to previous page when you finish each operation.
-Add some description on first or main page.
-Add picture on researcher page.
-Add confirmation message on delete operation.
-Make edit operation as separate page.
White Box Perspective:
The code look organize, and create different action files.
What I suggest is make some derby test case, and collaboration, organization and researcher action bean test case too.
I think if you make some improvement on this area that it can be bring up emma coverage, by that time, make sure no error on test case, otherwise it won't pass junit test and httpunit test.
Break da buggah:
when I logout system, then I use back button on browser that still can access any item on the page. I think you need to work a little bit more on session register. To block access without logon to system.
Summary and Lessons Learned:
implement Java derby is totally different to implement PHP + MySQL. For my own, MySQL is better than derby, since it use common SQL statement for insert, update and delete. But I learn a lot in this project is not about this, is how to use framework to test PHP project, the stuff we learn for entire semester is really apply to other language and make more easy to test where we doing wrong. It is helpful for implement framework to other different language like ASP.NET, PHP, Ruby etc.
Thursday, November 15, 2007
29.MyIsern-1.3-review
Reviewed Team: myisern-1-green
Source Code: Here
Installation Review:
-There are no problem to run "ant -f verify.build.xml".
-WAR file can be generate.
-Be able to import project to eclipse.
-No error appear on eclipse.
Tool Execution:
Junit - OKey! Successful run all the test.
-Enable to see a status, when it run.
Checkstyle - OKey!
Emma - Okey!
emma.echo: [xslt] Processing C:\svn-google\myisern-1-green\build\emma\coverage.xml toC:\svn-google\myisern-1-green\build\emma\coverage.brief.txt
[xslt] Loading stylesheet C:\svn-google\myisern-1-green\lib\emma\hackystat.emma.xsl
[concat] Emma Coverage summary
[concat] class: 68% (17/25)
[concat] method: 57% (123/217)
[concat] block: 81% (5713/7044)
[concat] line: 80% (1315.7/1645)
Verify - Okey! Successful run all the test.
BUILD SUCCESSFUL
Code Format and Conventions Review:
File Line# violation Comment
No Violation Found!
The emma coverage is look not enough, I think you need to write a little bit more code on test case that bring up the emma coverage.
Black Box Perspective:
For LOGIN Page:
Enter username and password to test is it point to right page, or insert either one wrong input to test the page will display right error message.
For ADD Page:
Is the data will extract to right xml file and return message to user.
Do the page show all the field for each attributes.
Is the page had error handing.
For EDIT Page:
Is the show all the data of that attributes?
Is the page will point to right page when user click on submit button.
Is the page had error handing?
White Box Perspective:
White box testing include two parts, one is testing the system file which is myisern. Emma coverage will show the result of which parts the system do not cover. the other part is testing over the web, this test is only testing the web connection between the system and web server, also you need to write some code to cover all the web action.
For this case, your emma coverage no bad, but still need some to cover each requirement.
Break da buggah:
In this case, the first page is not a login page.
If I enter nothing in ADD page it will point it to web server error page, which is not successful to add data, and edit page too.
User Interface review:
Your system successful run on tomcat web server, and can be display each page.
Your had pretty nice user interface, clearly display the information on each page.
Summary and Lessons Learned:
What I learn on this assignment is transfer everythings into web interface, and it is very challenge on create user interface by using JSP which is totally new language, and I need to learn how to they implement to current system.
Source Code: Here
Installation Review:
-There are no problem to run "ant -f verify.build.xml".
-WAR file can be generate.
-Be able to import project to eclipse.
-No error appear on eclipse.
Tool Execution:
Junit - OKey! Successful run all the test.
-Enable to see a status, when it run.
Checkstyle - OKey!
Emma - Okey!
emma.echo: [xslt] Processing C:\svn-google\myisern-1-green\build\emma\coverage.xml toC:\svn-google\myisern-1-green\build\emma\coverage.brief.txt
[xslt] Loading stylesheet C:\svn-google\myisern-1-green\lib\emma\hackystat.emma.xsl
[concat] Emma Coverage summary
[concat] class: 68% (17/25)
[concat] method: 57% (123/217)
[concat] block: 81% (5713/7044)
[concat] line: 80% (1315.7/1645)
Verify - Okey! Successful run all the test.
BUILD SUCCESSFUL
Code Format and Conventions Review:
File Line# violation Comment
No Violation Found!
The emma coverage is look not enough, I think you need to write a little bit more code on test case that bring up the emma coverage.
Black Box Perspective:
For LOGIN Page:
Enter username and password to test is it point to right page, or insert either one wrong input to test the page will display right error message.
For ADD Page:
Is the data will extract to right xml file and return message to user.
Do the page show all the field for each attributes.
Is the page had error handing.
For EDIT Page:
Is the show all the data of that attributes?
Is the page will point to right page when user click on submit button.
Is the page had error handing?
White Box Perspective:
White box testing include two parts, one is testing the system file which is myisern. Emma coverage will show the result of which parts the system do not cover. the other part is testing over the web, this test is only testing the web connection between the system and web server, also you need to write some code to cover all the web action.
For this case, your emma coverage no bad, but still need some to cover each requirement.
Break da buggah:
In this case, the first page is not a login page.
If I enter nothing in ADD page it will point it to web server error page, which is not successful to add data, and edit page too.
User Interface review:
Your system successful run on tomcat web server, and can be display each page.
Your had pretty nice user interface, clearly display the information on each page.
Summary and Lessons Learned:
What I learn on this assignment is transfer everythings into web interface, and it is very challenge on create user interface by using JSP which is totally new language, and I need to learn how to they implement to current system.
Subscribe to:
Posts (Atom)