울 조카님 덕분에 쌩쇼해서
타요버스 오는 시간 맞춰서 후다닥 엄마와 함께 찍으러 ㅋㅋ


Posted by 구차니
솔찍히 이번 해프닝(?)은
무조건 적으로 북한의 것으로 결과를 정해놓고
과정과 증거를 끼워맞추는걸로 밖에 보이지 않는다.

무슨 뜬금포 천안함 때도 이걸로 동선 파악이래
아놔 ㅋㅋㅋㅋㅋ 
Posted by 구차니
스프트웨어 공학에서 디자인 패턴중 하나로
하나의 인스턴스화된 클래스만 있도록 보장하는 것이 싱글톤이라고 한다.

클래스를 생성하지 못하고
static 변수로 하나의 인스턴스만 생성후
getInstance()를 통해 하나의 인스턴스만을 받아 사용하는 건데..

어떻게 보면 자바의 느려터진(?) 성능을 최적화 하기 위해
클래스 생성/파괴의 오버로드를 줄이고 초기 구동시 1회의 생성만으로
성능을 확보하기 위한 궁여지책으로 생각이 된다.

[링크 : http://www.luciole.kr/134]
[링크 : http://en.wikipedia.org/wiki/Singleton_pattern]

'Programming > 소프트웨어 공학' 카테고리의 다른 글

정적분석 / 동적분석  (0) 2015.02.18
MVC - Model / View / Contoller  (0) 2014.04.19
매번 느끼는 서글프지만 인정하고 싶지 않은 것  (0) 2012.02.08
간트차트  (0) 2012.01.31
리팩토링 (refactoring)  (0) 2012.01.15
Posted by 구차니
Programming/jsp2014. 4. 2. 16:48
JSP의 connection pool은 대규모 접속을 원활하게 하기 위해
미리 만들어 놓은 소켓을 이용하여 재사용하는 식으로
소켓 생성/파괴의 오버로드를 줄이기 위한 라이브러리이다.

apache의 common 프로젝트로 관리되고 있다.

[링크 : http://commons.apache.org/proper/commons-pool/download_pool.cgi] commons-pool.jar
[링크 : http://commons.apache.org/proper/commons-dbcp/download_dbcp.cgi] commons-dbcp.jar

[링크 : http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html]
[링크 : https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html

'Programming > jsp' 카테고리의 다른 글

eclipse에서 tomcat 서버 추가가 되지 않을 경우  (0) 2014.04.06
oracle sql / sequence  (0) 2014.04.04
jsp jdbc 기본 코드  (0) 2014.04.01
jdbc URL 구조  (0) 2014.04.01
jsp action tag / <jsp:useBean  (0) 2014.03.31
Posted by 구차니

으앙 집에서 해보니 갑자기 안뜨는 상황발생!


Window - Preference - Java - Installed JREs - Edit


rt.jar - Javadoc Location


javadoc location에 http://docs.oracle.com/javase/7/docs/api/를 추가!
물론 다운로드 받은 javadoc의 경로를 Javadoc in archive를 통해 설정해주어도 된다.
(개인적으로는 다운받아서 하는걸 추천.. 자바 사이트 은근히 느리니까..) 


이제 제대로 뜬다!! 두둥!


[링크 : http://www.androidstudy.co.kr/bbs/board.php?bo_table=C09&wr_id=74]


+ 2014.04.03 추가
JDK1.7은 기본으로 설정되어 있으나 JDK1.8 배포판의 문제인지 1.8에서는 javadoc이 생략되어 있다.
JDK1.7역시 http://docs.oracle.com/javase/7/docs/api/ 으로 설정되어 있다.

'프로그램 사용 > eclipse' 카테고리의 다른 글

google code + subclipse(eclipse / SVN)  (0) 2014.05.01
eclipse JSP / SQL 지원관련  (0) 2014.04.23
eclipse + quantumDB plugin + jdbc driver  (0) 2014.04.01
ECJ - Eclipse Compiler for Java  (0) 2014.03.25
eclipse JRE 설정하기  (0) 2014.03.20
Posted by 구차니
Programming/jsp2014. 4. 1. 22:15
걍 외우는게 속편할(?) 녀석 ㅠㅠ

<%@ page import = "java.sql.DriverManager" %>
<%@ page import = "java.sql.SQLException" %>
<%@ page import = "java.sql.Connection" %> // interface
<%@ page import = "java.sql.Statement" %> // interface
<%@ page import = "java.sql.ResultSet" %> // interface

Class.forName("oracle.jdbc.driver.OracleDriver");

Connection conn = null;
Statement stmt = null;
ResultSet rs = null;

conn = DriverManager.getConnection(jdbcDriver, dbUser, dbPass);
stmt = conn.createStatement();
rs = stmt.executeQuery(query);

rs.next();
rs.getString("FIELD_NAME"); 


'Programming > jsp' 카테고리의 다른 글

oracle sql / sequence  (0) 2014.04.04
jsp / tomcat connection pool  (0) 2014.04.02
jdbc URL 구조  (0) 2014.04.01
jsp action tag / <jsp:useBean  (0) 2014.03.31
jsp cookie  (0) 2014.03.31
Posted by 구차니
Programming/jsp2014. 4. 1. 18:32
"jdbc:oracle:thin:@myhost:1521:orcl"

jdbc를 통해 (java)
oracle db에 (database server type)
thin driver를 통해
myhost 라는 서버에
1521 번 포트로
orcl 데이터베이스에 접속(database name)



Understanding the Forms of getConnection()

Specifying a Databse URL, User Name, and Password

The following signature takes the URL, user name, and password as separate parameters:

getConnection(String URL, String user, String password);

Where the URL is of the form:
  jdbc:oracle:<drivertype>:@<database>

The following example connects user scott with password tiger to a database with SID orcl through port 1521 of host myhost, using the Thin driver.

Connection conn = DriverManager.getConnection
  ("jdbc:oracle:thin:@myhost:1521:orcl", "scott", "tiger");

------------
Oralce provides four types of JDBC driver.

Thin Driver, a 100% Java driver for client-side use without an Oracle installation, particularly with applets. The Thin driver type is thin. To connect user scott with password tiger to a database with SID (system identifier) orcl through port 1521 of host myhost, using the Thin driver, you would write :
  Connection conn = DriverManager.getConnection
  ("jdbc:oracle:thin:@myhost:1521:orcl", "scott", "tiger");
  
OCI Driver for client-side use with an Oracle client installation. The OCI driver type is oci. To connect user scott with password tiger to a database with SID (system identifier) orcl through port 1521 of host myhost, using the OCI driver, you would write :
  Connection conn = DriverManager.getConnection
  ("jdbc:oracle:oci:@myhost:1521:orcl", "scott", "tiger");
  
Server-Side Thin Driver, which is functionally the same as the client-side Thin driver, but is for code that runs inside an Oracle server and needs to access a remote server, including middle-tier scenarios. The Server-Side Thin driver type is thin and there is no difference in your code between using the Thin driver from a client application or from inside a server.
 
Server-Side Internal Driver for code that runs inside the target server, that is, inside the Oracle server that it must access. The Server-Side Internal driver type is kprb and it actually runs within a default session. You are already "connected". Therefore the connection should never be closed.
To access the default connection, write:
  DriverManager.getConnection("jdbc:oracle:kprb:");
  or:
  DriverManager.getConnection("jdbc:default:connection:");

[링크 : http://docs.oracle.com/cd/E11882_01/appdev.112/e13995/oracle/jdbc/OracleDriver.html

'Programming > jsp' 카테고리의 다른 글

jsp / tomcat connection pool  (0) 2014.04.02
jsp jdbc 기본 코드  (0) 2014.04.01
jsp action tag / <jsp:useBean  (0) 2014.03.31
jsp cookie  (0) 2014.03.31
jsp 액션 태그 - <jsp:  (0) 2014.03.28
Posted by 구차니
quantumDB는 아직 eclipse 마켓 플레이스에는 지원하지 않는다 -_-a
결국은 걍 다운받아서 설치해야 한다는 것!!




[링크 : http://quantum.sourceforge.net/]
    [링크 : http://sourceforge.net/projects/quantum/files/quantum-plugin/]


jdbc driver (oracle 계정필수)
[링크 : http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html] 10g
[링크 : http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html] 11g
Posted by 구차니
grant는 사용자 권한을 부여해주는 명령어이다.
이거 쓰기 힘들어서 맨날 myphpadmin 쓰니 ^^;;;;;

 grant [권한목록] on [dbname] to [account]@[server] identified by [password]

GRANT
    priv_type [(column_list)]
      [, priv_type [(column_list)]] ...
    ON [object_type] priv_level
    TO user_specification [, user_specification] ...
    [REQUIRE {NONE | ssl_option [[AND] ssl_option] ...}]
    [WITH with_option ...]

object_type:
    TABLE
  | FUNCTION
  | PROCEDURE

priv_level:
    *
  | *.*
  | db_name.*
  | db_name.tbl_name
  | tbl_name
  | db_name.routine_name

user_specification:
    user [IDENTIFIED BY [PASSWORD] 'password']

ssl_option:
    SSL
  | X509
  | CIPHER 'cipher'
  | ISSUER 'issuer'
  | SUBJECT 'subject'

with_option:
    GRANT OPTION
  | MAX_QUERIES_PER_HOUR count
  | MAX_UPDATES_PER_HOUR count
  | MAX_CONNECTIONS_PER_HOUR count
  | MAX_USER_CONNECTIONS count

[링크 : http://dev.mysql.com/doc/refman/5.1/en/grant.html

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql / mariaDB  (1) 2014.04.16
mysql transaction  (0) 2014.04.08
mysql 암호변경하기  (0) 2013.02.21
mysql 명령어 정리  (0) 2012.12.01
mysql 사용법(SQL)  (4) 2010.04.03
Posted by 구차니
프로그램 사용/meld2014. 3. 31. 23:57
로케일 문제로 생각 되는데..

[링크 : https://code.google.com/p/meld-installer/issues/detail?id=42]



환경설정의 폰트는 영향을 주지 않았고


커맨드 라인에서 

C:\> set LANG=EN_US
C:\> cd C:\Program Files (x86)\Meld\meld
C:\Program Files (x86)\Meld\meld> meld 
하니 문제없이 내용이 잘 나온다.


'프로그램 사용 > meld' 카테고리의 다른 글

meld 자동 줄 바꿈  (0) 2024.07.19
meld for windows  (0) 2014.03.31
meld 에서 문법강조 켜기(syntax highlighter on Meld)  (0) 2011.10.15
meld - GUI merge tool for linux  (0) 2009.04.06
GUI diff tool - meld  (6) 2009.02.13
Posted by 구차니