Check this post for full text:
Why it is difficult to make high quality code?
High quality software relies on how developers understand the code:
What is the architecture? How is data structure defined? How does data flows? What does the code do? and why? Where is the best place to put my code? Will my code impacts other codes and cause bugs? Will my code cause the failure of other functions? Which framework is used in the code? How to implement it with this framework?
Developers need to have a clear answer to these questions to make high quality code.
However, these questions are not easy to answer especially when there are thousands of or millions of lines of code (LoC). It is very hard to reconstruct code-owner’s thoughts by simply reading the code line by line. Even the code-owner himself can’t remember his original thoughts if the code is created weeks ago.
Check this post for full text:
I moved the PLxPLs Lua OOP project to github and change its name to Bo-LuaOOP.
You can find the project in the link below:
register defined class and interface to the global _G
To configure the simple authentication of ActiveMQ, you should specify the simple authentication config file when you start your activeMQ, like this:
1. cd to your activeMQ directory
2. export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq
3. bin/activemq start xbean:libexec/conf/activemq-security.xml
The file libexec/conf/activemq-security.xml contains the username and password.
Note: if you can NOT launch the activeMQ, you can use the following command to see more details
bin/activemq console xbean:libexec/conf/activemq-security.xml
Found a video that I made in last year. Just repost
3D Modelling in Blender 3D
Render in Blender 3D
Post-processing in GIMP and iMovie
Tomcat is a well known and widely used java servlet container. These days I am planning a project, which needs a tomcat 6 in ubuntu server. I found that to make tomcat work in ubuntu is very easy, but you need have a little trick to change your server listening port from 8080 to 80. Here I give you the way that I make it work.
1. Install tomcat 6 in ubuntu
normally, you just need to type the following command to install it
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
2. Start tomcat
Recently I got a new server and need to host a service on it. I found that there are tons of versions for the installation and configuration of mod_python in apache 2 server, which made me confused. Here I try to make this process more clearly.
My server installed ubuntu server 10.10, but i think it works for the other debian distribution.
First install apache 2, type the following command in terminal:
I just bought a macbook pro recently. The first thing that I need is to setup the latex environment to write. The tex installation is not hard to achieve, you can just search “mac os latex installation” in google, you will find the dmg file to install it. The problem is I need gnuplot to draw charts, but there is no mac os binary for the latest version. So i tried to compile it my self. It is not hard but need a little trick.
First, download the latest gnuplot source from here: http://sourceforge.net/projects/gnuplot/files/gnuplot/