0%

chroot_list_enable=NO 時, chroot 檔案功能會被關掉。

chroot_list_enable=YES 時, chroot_list_file=/etc/vsftpd.chroot_list 才有效用。

只不過效用會被 chroot_local_user 影響

chroot_local_user=YES 時, vsftpd.chroot_list 名單裡的人不會被鎖在家目錄,其他人會。

chroot_local_user=NO 時, vsftpd.chroot_list 名單裡的人會被鎖在家目錄,其他人不會。

/etc/init.d/vsftpd start

什麼是雲端服務?阿正老師教你免費玩Amazon EC2雲端主機!(上篇)
Ref: http://blog.soft.idv.tw/?p=823

第一次玩 Amazon EC2 Micro Instance 就上手
Ref: http://talk.ernestchiang.com/2010/09/amazon-ec2-micro-instance.html

Amazon Web Services之門外漢心得
Ref: http://blog.eddie.com.tw/2011/03/07/amazon-web-services/

Amazon EC2 使用教學 - 以 SSH/PuTTY 連線 Linux 機器
Ref: http://changyy.pixnet.net/blog/post/25494183

Amazon EC2 使用教學 - 以 EBS Volumes & Snapshots 增加和管理永久的硬碟空間
Ref: http://changyy.pixnet.net/blog/post/25494374

Amazon EC2 使用教學 - Bundle Instance 系統備份
Ref: http://changyy.pixnet.net/blog/post/25515549

AWS Service Health Dashboard
Ref: http://status.aws.amazon.com/

Feature Guide: Amazon EC2 Elastic IP Addresses
Ref: http://aws.amazon.com/articles/1346

SIMPLE MONTHLY CALCULATOR
Ref: http://calculator.s3.amazonaws.com/calc5.html

免費玩雲端運算,Amazon Web Service 雲端運算平台攻略 【1】
Ref: http://www.inside.com.tw/2010/11/02/amazon-aws-1

Aspects of an Object-Oriented Solution

Data Abstraction & Problem Solving with C++ 5th Edition
Author: Frank M. Carrano

Abstraction separates the purpose of a module from its implementation.

Data abstraction focuses on what the operations do instead of on how you will implement them.

Modularity and abstraction complement each other. Modularity breaks a solution into modules; abstraction specifies each module clearly before you implement it in a programming language.

The principle of information hiding tells you not only to hide such details within a module, but also to ensure that no other module can tamper with these hidden details.

Encapsulation is a technique that hides inner details. Whereas functions encapsulate behavior, objects encapsulate data as well as behavior.

Read more »

[Python] Problem Set 0

This problem set is from MIT open courses,
6.00 Introduction to Computer Science and Programming.
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/

In this problem set, we gonna try to be familiar with the input and output of the Python.

Here’s the useful link of input/output of Python:
http://en.wikibooks.org/wiki/Python_Programming/Input_and_output

[Jave] Read File

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.io.*;          // this is for IO
import java.util.Scanner; // this is for Scanner

StringBuilder text=new StringBuilder();
// Ref: http://download.oracle.com/javase/1.5.0/docs/api/java/lang/System.html

String NL=System.getProperty("line.separator"); // Line separator ("\n" on UNIX)
Scanner scanner=new Scanner(new FileInputStream(strFileName));

try{
while(scanner.hasNext()){
text.append(scanner.nextLine()+NL);
}//while
}finally{
scanner.close();
}//try_catch_finally