Chan Chen Coding...

02 2013 档案

FTP Server
     摘要: FTP works on a client/server model. The server component is called an FTP daemon. It continuously listens for FTP requests from remote clients. When a request is received, it manages the login and sets up the connection. For the duration of the session it executes any of commands sent by the FTP client.  阅读全文

posted @ 2013-02-28 16:43 Chan Chen 阅读(735) | 评论 (0)  编辑

set up ssh server on ubuntu server 12.04 edition
     摘要: SSH stands for “secure shell”, and it is a network protocol that allows you to securely send commands to a remote machine. The “secure” part comes from the fact that the connection is encrypted, which means that an attacker cannot eavesdrop on the connection, or intercept and replace your commands with his own midway through transit. SSH is pretty reliable and secure, and is commonly used in the Linux world. Administrators often use it to remotely manage machines – it’s usually more comfortable   阅读全文

posted @ 2013-02-24 01:18 Chan Chen 阅读(517) | 评论 (0)  编辑

Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu
     摘要: LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install the rest.  阅读全文

posted @ 2013-02-23 13:27 Chan Chen 阅读(293) | 评论 (0)  编辑

Avoiding the "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" with HttpClient
     摘要: When developing a https application, your test server often doesn't have a (valid) SSL certificate. This will cause the following exception to be thrown when connecting your client to the test server: "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated".  阅读全文

posted @ 2013-02-23 11:50 Chan Chen 阅读(1891) | 评论 (0)  编辑

Apache2 SSL in Ubuntu 12.04
     摘要: 1. Create a new certificates file.
2. Configure SSL  阅读全文

posted @ 2013-02-23 11:32 Chan Chen 阅读(176) | 评论 (0)  编辑

Java by value or by reference
     摘要: Java 操纵对象都是通过引用来实现的,所有的对象变量都是所指向的对象的引用,那也就是说所有对象变量的值并不是它所指向的对象本身,而是该对象的引用,这句话听起来可能有点让人犯晕,举个例子来说,String str = new String("aaa"); 这条语句的意思是 new 了一个值为 "aaa" 的字符串对象,然后用一个名字叫 str 的对象变量来指向它,保存它的引用  阅读全文

posted @ 2013-02-01 11:20 Chan Chen 阅读(201) | 评论 (0)  编辑