Programming/lisp2014. 4. 5. 10:00
예전에 lisp 공부 하다가
괄호에 치여서 쥐쥐때리고 포기했는데
다시 한번!!! ㅠㅠ

일단은.. 구구단 부터보면 알겠지 머 ㅠㅠ

[링크 : http://scripting.tistory.com/category/프로그래밍/Common%20Lisp]

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

lisp 키 입력  (0) 2015.07.19
lisp 반복문 dolist, dotimes, do  (0) 2013.01.30
lisp cond  (0) 2013.01.28
lisp when/unless macro  (2) 2013.01.28
lisp 명령어 if progn  (0) 2013.01.28
Posted by 구차니
Programming/jsp2014. 4. 4. 19:26
오라클에서는 시퀀스를 이용해서 자동증가하는 항목을 만드는데 반해
mysql은 더욱 간편하게 DDL 에서 auto_increment 를 통해 자동증가 항목을 만들수 있다.
음.. 오라클이 거의 표준이니.. ansi sql에서는 어떻게 하려나? 오라클 식을 따르려나?

mysql auto_increment
oracle sequence

[링크 : http://www.w3schools.com/sql/sql_autoincrement.asp]
[링크 : http://stackoverflow.com/questions/11296361/how-to-create-id-with-auto-increment-on-oracle

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

win7 에서 jsp 구동시 IPv6로 뜨는 문제  (0) 2014.04.08
eclipse에서 tomcat 서버 추가가 되지 않을 경우  (0) 2014.04.06
jsp / tomcat connection pool  (0) 2014.04.02
jsp jdbc 기본 코드  (0) 2014.04.01
jdbc URL 구조  (0) 2014.04.01
Posted by 구차니
울 조카님 덕분에 쌩쇼해서
타요버스 오는 시간 맞춰서 후다닥 엄마와 함께 찍으러 ㅋㅋ


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 구차니