Programming/C++ STL2014. 4. 16. 17:14
펑터
c++의 객체중 컨스트럭터를 이용하여 마치 함수처럼 사용할 수 있는 객체를 의미하는데..
kdlp문서를 참고하여 고민을 해보니
동적 타입 바인딩일 통해(템플릿?) 타입에 특화되어 더욱 빠르게 타입별 inline으로 변환될 수 있는
특수한 형태의 클래스라고 생각이 되어진다.

[링크 : https://kldp.org/node/58727]
[링크 : http://printf.egloos.com/1807595]
[링크 : http://frompt.egloos.com/2415603]
[링크 : http://en.wikipedia.org/wiki/Function_object]
[링크 : http://en.wikipedia.org/wiki/Functor_(C++)]



람다
원래 함수언어에서 사용하던 녀석인데.. 여전히 멀하는 녀석인지 모르겠지만..
C++에서는 펑터로 사용하는게 귀찮아서 이를 더욱 간편하게 사용하는 용도로
이름이 없는 객체 식으로 운영되는걸로 들었는데... 써보질 않으니 알수가 없다. ㅠㅠ

[링크 : http://frompt.egloos.com/2767144

'Programming > C++ STL' 카테고리의 다른 글

std::endl  (0) 2015.06.24
c++ 현변환 연산자(cast operator in c++)  (0) 2015.01.26
cpp static 변수 및 메소드  (0) 2014.03.18
cpp scope 연산자  (0) 2014.03.18
cpp class에서 변수값을 미리 선언 못하는 이유  (0) 2014.03.15
Posted by 구차니
14.04 LTS용 리파지터리에는 추가 된 것으로 보인다.
[링크 : http://packages.ubuntu.com/trusty/mariadb-server-5.5]
[링크 : http://packages.ubuntu.com/trusty/mariadb-client-5.5]

Trusty는 14.04의 이름이다.(Trusty Tahr)
[링크 : https://wiki.ubuntu.com/TrustyTahr/ReleaseSchedule]




12.04 LTS 등에서는 별도의 리파지터리를 추가해서 설치해야 하는 것으로 보여진다.
아래는 12.04 LTS에서 2014/04/16 일 검색한 결과
$ sudo apt-cache search maria
libmng-dev - M-N-G library (Development headers)
libmng1 - Multiple-image Network Graphics library
maria - reachability analyzer for Algebraic System Nets
maria-doc - documentation of Maria 

[링크 : http://mcchae.egloos.com/11020293]
[링크 : http://tecadmin.net/install-mariadb-5-5-in-ubuntu

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

mysql 데이터 베이스를 이용한 ip 주소 필드 타입  (0) 2014.05.11
mysql trigger 지원  (0) 2014.04.25
mysql / mariaDB  (1) 2014.04.16
mysql transaction  (0) 2014.04.08
mysql grant 문  (0) 2014.04.01
Posted by 구차니
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 구차니