Linux/Ubuntu2014. 4. 16. 02:53
어디 시간인 기준인지 모르겠다만.. 아무튼 17일날 2014년 LTS 공개!!!
부디 가볍게 구성되었길 ㅠㅠ
그리고 Gnome 제발.. 구버전 형태의 기본 윈도우 매니저로 돌아오길 ㅠㅠ

 London 15th April 2014: Canonical today announces Ubuntu 14.04 LTS will be released on 17th April 2014, bringing a new level of reliability, performance and interoperability to cloud and scale out environments with support and maintenance for five years.

[링크 : http://insights.ubuntu.com/news/ubuntu-14-04-lts-the-cloud-platform-of-choice/

Posted by 구차니
악의 축 볼드모드에 대해
창시자님이 빡쳐서 이름만 바꾼 듯한... 느낌인데

그러고보니
openoffice -> libreoffice에 이어서
mysql -> mariaDB
그리고
java -> openjdk 이런식으로

oracle이 인수한건 죄다 개명해서 새롭게 태어나는건가?

[링크 : https://mariadb.org/]

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

mysql trigger 지원  (0) 2014.04.25
mariaDB 우분투에 설치하기  (0) 2014.04.16
mysql transaction  (0) 2014.04.08
mysql grant 문  (0) 2014.04.01
mysql 암호변경하기  (0) 2013.02.21
Posted by 구차니
댓글관련해서
대개 re_level이나 sequence에 깊이 정보를 저장하는데
그게 아니라 1:N으로 구성해서
콤마로 구분해 저장하면 그게 1:N으로 하는걸까? 하는 의구심이 든다.

아무튼 steamTokinzer등으로 콤마 분류해서
글 숫자를 N개 해주면
어떻게 되지 않으려...나?

[링크 : http://www.sqler.com/bSQLQA/451491]
[링크 : http://www.gurubee.net/article/46467]
[링크 : http://database.sarang.net/?inc=read&aid=34711&criteria=oracle]


2014.04.19 추가
예제를 보니.. 이런 1:N 이나 N:M 관계에서는
db table을 새로 만들고
그 테이블 값을 통해 join으로 1:N 관계 값을 추출하는 것으로 생각이 되네...
[링크 : http://stackoverflow.com/questions/3397349/meaing-of-nm-and-1n-in-database-design ]
[링크 : http://stackoverflow.com/questions/8706971/complex-mysql-query-1-n-relationship ]

'Programming > 데이터베이스' 카테고리의 다른 글

데이터베이스 1:n 관계 구현  (0) 2016.02.29
CRUD  (0) 2014.05.17
데이터베이스 - 키 관련  (0) 2014.04.28
카티젼 프로덕트, join  (0) 2014.04.26
3-tier 구성?  (0) 2014.04.14
Posted by 구차니
개소리 왈왈/자전거2014. 4. 15. 13:46
자다 일어나서 멍 때리는데
자전거 대행진 한다고 해서 후다닥 신청 ㅋㅋ
오늘 10시 부터 하는 바람에 사이트 폭!주!


큰맘먹고 날 꼬신 분과 맞춰가기 위해 상급자로 ㅋㅋㅋ
끄아아 백수에게 만원은 크다규 ㅠㅠ


Posted by 구차니
웹서비스 / 서버 구성 / IDC 센터 인증에 대해서
3 tier라는 용어가 나오는데

원래는 서버 구성에 대한 것에서 파생되어
서비스를 3개의 물리적 서버로 분리하여 미들웨어를 통해 확장성을 꾀하는걸로 용어가 확장/변질된 것으로 보인다.

[링크 : http://blog.naver.com/stkang11/36426893]
[링크 : http://blog.naver.com/image07/60019414768]
[링크 : http://blog.lemonbrain.net/21]
[링크 : http://www.hoons.net/lecture/view/472]
[링크 : http://dpnm.postech.ac.kr/thesis/97/kissok/powerpoint.pdf]



검색하다 보니 IDC에는 인증관련해서 IDC 서비스 품질관련해서 용어가 존재한다.
Tier 1 (99.671%) status would allow 1729.224 minutes
Tier 2 (99.741%) status would allow 1361.304 minutes
Tier 3 (99.982%) status would allow 94.608 minutes
Tier 4 (99.995%) status would allow 26.28 minutes 

[링크 : http://en.wikipedia.org/wiki/Data_center
[링크 : http://en.wikipedia.org/wiki/Teleprocessing_monitor]  

'Programming > 데이터베이스' 카테고리의 다른 글

데이터베이스 1:n 관계 구현  (0) 2016.02.29
CRUD  (0) 2014.05.17
데이터베이스 - 키 관련  (0) 2014.04.28
카티젼 프로덕트, join  (0) 2014.04.26
database 1:N 구성?  (0) 2014.04.15
Posted by 구차니
한동안 잊고 있었는데..
민방위가 6월에 있었던거 같은데 갑자기 교육일정이랍시고 와서
까먹고 있다가 기억나서 접속을 해봤는데


http://www.eaf.kr/3MdWh0
하.. ㅋㅋㅋ
뒤질래요? 뒤질래요? ㅋㅋㅋㅋ


감히 군대를 가지고 장난치다니
저런넘들은 잡아서 군대 다시 보내버리라고!!! 
Posted by 구차니
Programming/jsp2014. 4. 13. 00:28
EL - EL은 ${} 를 변수로 사용한다. 기본적으로 스트링형태로 출력이 되어
jsp 에서 값을 계산후 출력하는 번거로움에서 한단계 해방된다
<%@ page contentType="text/html; charset=euc-kr"%>
<%@ page session="false"%>
<%@ taglib prefix="e" uri="/WEB-INF/el-functions.tld"%>
<%
java.util.Date today = new java.util.Date();
request.setAttribute("today", today);
%>
<html>
<head>
<title>EL 함수 호출</title>
</head>
<body>
오늘은
<b>${e:dateFormat(today) }</b> 입니다.
</body>
</html>  



JSTL - JSTL의 core는 기본적으로 prefix가 c이지만 
EL에서 처럼 사용자가 prefix를 지정해서 사용이 가능하기에 JSTL에서 prefix를 반드시 c로 설정할 필요는 없다.
JSTL은 tag library이기 때문에 EL에서 사용하던 ${} 에서 <>로 바뀌게 된다.
좋게 말하면.. 가독성이 올라가지만 나쁘게 말하면 태그로 바뀌었을뿐
코드인건 여전하기에 html으로 syntax highlight가 되지 않아 큰 장점으로 생각되진 않는다.
<%@ page contentType="text/html; charset=euc-kr"%>
<%@taglib prefix="e" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>if 태그</title>
</head>
<body>
<e:if test="true">무조건 수행<br>
</e:if>

<e:if test="${param.name== 'bk' }">
name 파라미터의 값이 ${param.name } 입니다.<br>
</e:if>

<e:if test="${18 < param.age }">
당신이 나이는 18세 이상입니다.
</e:if>
</body>
</html> 

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

apache commons / beanutils , logging, digester  (0) 2014.04.18
maven  (0) 2014.04.18
jsp / el과 jstl  (0) 2014.04.13
jdbc는 DESCRIBE를 지원안해?  (0) 2014.04.11
웹개발언어 관련 생각꺼리..  (0) 2014.04.09
Posted by 구차니
Programming/jsp2014. 4. 13. 00:05
el과 jstl을 쓰니 엄청나게 jsp.java 파일이 지저분해진다 -_-a
JSTL은 EL을 확장해서 만든 Jsp Standard Tag Library이다 보니
기본적으로 EL에서 사용하는 기능에 tag library 관련하여 더많은 내용을 초기화 하게 된다.

el 사용시
public final class elEx1_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null; 
  }

EL 문법은 바로 처리되는게 아니라
Evaluate 되어서 String으로 변환되어 출력된다.
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${2 + 5}", java.lang.String.class, (PageContext)_jspx_page_context, null, false)); 


jstl 사용시
public final class use_005fforeach_005ftag_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fstep_005fend_005fbegin;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fend_005fbegin;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems_005fbegin;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fstep_005fend_005fbegin = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fend_005fbegin = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems_005fbegin = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fset_0026_005fvar_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fstep_005fend_005fbegin.release();
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fend_005fbegin.release();
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvarStatus_005fvar_005fitems_005fbegin.release();
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;
  }
 

EL과는 인자가 하나 null 에서 변경된다.
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietarEvaluate("${e:dateFormat(today) }", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false)); 

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

maven  (0) 2014.04.18
jsp EL/JSTL 사용법  (0) 2014.04.13
jdbc는 DESCRIBE를 지원안해?  (0) 2014.04.11
웹개발언어 관련 생각꺼리..  (0) 2014.04.09
jsp model1, model2  (0) 2014.04.08
Posted by 구차니
개소리 왈왈/자전거2014. 4. 12. 23:03
가격이 싸서 질렀더니
망했어요 ㅋㅋㅋㅋ
이 망할넘의 솔레이어 2013년형 에어로 프레임 같으니라고 ㅋㅋ

게다가 휠에는 미묘하게 안 맞아서 타이로 묶기 전에는 바로 광탈할듯 ㅋㅋㅋㅋㅋ


Posted by 구차니
Programming/jsp2014. 4. 11. 01:39
DESCRIBE는 table의 구조를 알려주는 명령어인데
[링크 : http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12019.htm]


eclispe+ quantumDB에서 쌩쇼를 해도 안되길래


혹시나 하는 마음에 sqlplus에서 해봤더니.. 헐....
jdbc 특성(?) 상 데이터 빼오는데 특화가 되서 저런 관리용 명령어들은 다 빼버린건가?
$ sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Apr 11 01:33:07 2014

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Enter user-name: system
Enter password:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> desc USER_USERS;
 Name                                      Null?    Type
 ----------------------------------------- -------- ---------------------------- USERNAME                                  NOT NULL VARCHAR2(30)
 USER_ID                                   NOT NULL NUMBER
 ACCOUNT_STATUS                            NOT NULL VARCHAR2(32)
 LOCK_DATE                                          DATE
 EXPIRY_DATE                                        DATE
 DEFAULT_TABLESPACE                        NOT NULL VARCHAR2(30)
 TEMPORARY_TABLESPACE                      NOT NULL VARCHAR2(30)
 CREATED                                   NOT NULL DATE
 INITIAL_RSRC_CONSUMER_GROUP                        VARCHAR2(30)
 EXTERNAL_NAME                                      VARCHAR2(4000)




조금(?)오래된 글이지만 회피법은 있어도 정공법은 없는듯?
[링크 : http://www.coderanch.com/t/299298/JDBC/databases/Oracle-describe-table-jdbc ]

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

jsp EL/JSTL 사용법  (0) 2014.04.13
jsp / el과 jstl  (0) 2014.04.13
웹개발언어 관련 생각꺼리..  (0) 2014.04.09
jsp model1, model2  (0) 2014.04.08
win7 에서 jsp 구동시 IPv6로 뜨는 문제  (0) 2014.04.08
Posted by 구차니