in /etc/ssh/sshd_config insert ClientAliveInterval 600 ClientAliveCountMax 3 That will give you an timeout of 30 minutes (600 sec x 3)
-
-
reading text file with utf-8 encoding using java
CASE 1. PrintStream out =newPrintStream(System.out,true,”UTF-8″); out.println(str); CASE 2. import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.IOException;…
-
Reading a UTF-8 Encoded File
public static String parseTemplate(String templatePath) { File aFile = new File(templatePath); InputStreamReader reader = null; String template; StringBuffer temp = new StringBuffer(); int counter = 0…
-
Pulse Oximeter DIY
https://www.google.co.kr/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#newwindow=1&q=how+to+make+pulse+oximeter http://blog.silabs.com/2012/11/21/create-…
-
한 WAS 서버에서 UTF-8 과 EUC-KR 둘다 지원하기..
한 웹서버에 UTF-8과 EUC-KR 을 같이 사용할 수 있는 TIP이 있긴 합니다…실제로 사용하고 있으나, 테스트는 꼭 해보세요.. 사용환경은 리눅스(CENTOS)+APACH+TOMCAT+SPRING2.5 web.xml 에서 필터를 추가해주는데요 UTF-8용과 EUC-KR 둘다 필터를 추가해줍니다. <filter> <displa…
-
프로그램 배우기.. 스크라치..
http://scratch.mit.edu/projects/editor/?tip_bar=getStarted 오.. 온라인으로도 된다. 멋지네..
-
Splitting a C++ std::string using tokens, e.g. “;” [duplicate]
std::vector<std::string> split(const std::string& s,char seperator){ std::vector<std::string> output; std::string::size_type prev_pos =0, pos =0;while((pos = s.find(seperator, pos))!=…
-
JDBC Connection Pool Timeout Errors
If the database server times out a connection, the connection pool on Tomcat side would not be aware of its disconnection. If the database server times out a connection, the connection pool on Tomcat…
-
How to set default session timeout in Linux
How to set default session timeout in Linux My DC operation guys access Linux servers on a daily basis but somehow they never remember to log out. This is a security risk as anyone could gain access t…
-
Tomcat MySQL Connection – Using JDBC to Connect Tomcat to MySQL
Tomcat MySQL Connection – Using JDBC to Connect Tomcat to MySQL Stumped by Tomcat JDBC connections? Can’t get your head around MySQL drivers, connection pools, and JNDI resources? This art…