기본 콘텐츠로 건너뛰기

2월, 2014의 게시물 표시

[ubuntu flash player, mp3, multimedia] 실행이 안될 때 설치법.

source: http://www.krizna.com/ubuntu/how-install-adobe-flash-player-ubuntu-12-04/ 저작권 문제때문에 mp3와 아도브플래시 등의 라이브러리가 기본으로 설치되어 배포되지 않는다. 따라서 아래의 명령어로 여러 멀티미디어 라이브러리들을 설치하면 해결된다. sudo apt-get install ubuntu-restricted-extras ---------------------- Command mode installation: Step 1 » Before starting the installation we need to update the repository krizna@leela:~$ sudo apt-get update Step 2 » After updating the repository. you can install Adobe flash player in a single command krizna@leela:~$ sudo apt-get install flashplugin-installer This will install adobe flash player along with dependencies . All in one command . ( Alternative ) Alternatively the following command will install all the multimedia plugins and libraries that needed to play mp3 and video formats . This command will install adobe flash player too. krizna@leela:~$ sudo apt-get install ubuntu-restricted-extras GUI mode installation: Step 1 » Goto ” Ubuntu software center “  . type ” Adobe flash plug

[Django] Django project folder layout structure

source: http://tian-yi.me/django-project-folder-layout-structure.html Django project folder layout structure Sun 24 February 2013 By  Tianyi I have failed to find much mention about project folder layout structure in Django's documentation. From the tutorial on the official Django site, it points out that a project should have the following structure: myproject |-- manage . py |-- myproject | |-- __init__ . py | |-- settings . py | |-- urls . py | ` -- wsgi . py ` -- app_one | |-- __init__ . py | |-- models . py | |-- views . py | ` -- urls . py ` -- app_two |-- __init__ . py |-- models . py |-- views . py ` -- urls . py Static files Ok, this looks pretty good, but where should I place my static files? In the documentation, it says using the collectstatic  management command to gather all the static files from your static file s

[DB] 결합인덱스

출처: http://hyeonstorage.tistory.com/23 결합인덱스와 컬럼 순서 - 결합인덱스란 복수 개의 컬럼으로 구성된 인덱스로서 각각의 컬럼의 분포도는 나쁘지만 컬럼 몇 개가 결합되면 분포도가 양호해지는 경우에 사용된다. - 결합인덱스를 구성하는 대부분의 컬럼들이 Where 조건절에 사용되었어도 첫 번째 컬럼(Leading Column)이 조건절에 쓰이지 않으면 옵티마이저는 인덱스를 Access할 수 없다. - 즉, 결합인덱스를 구성하는 첫 번째 컬럼은 반드시 조건절에 쓰여야 그 인덱스가 옵티마이저에 의해 Access 하게 된다. - 결합인덱스의 컬럼의 순서에 따라서 Access하는 범위가 결정된다. - 즉, Where 조건절에서 비교연산자 EQUAL(=) 상수의 조건이 AND의 조건으로 여러 개의 컬럼이 열거되어 인덱스 컬럼의 매칭율을 높일수록 Access의 범위는 줄어들게 되며 Access하는 양이 줄어들게 되므로 수행속도는 빠르게 된다. 1. 첫번째 컬럼 연산자가 EQUAL(=) 이 아닐 경우 - SQL SELECT A.ORDCD, A.ORDDESC1, A.ORDDESC2 FROM MDTRTORT A WHERE A.MEDDATE LIKE  :5||'%' AND A.MEDDEPT = :B3 AND A.SLIPCD = 'M12' AND ORDGRP = 'D2' - Index MDTRTORT     :    MDTRTORT_IDX1    :    MEDDATE + MEDDEPT + SLIPCD - Execution Plan > 우리가 얻은 결과는 2220건 이다. 그러나 테이블 MDTRTORT의 Index MDTRTORT_IDX1 에서 48276건을 Access 하고 있다. 얼마나 비효율적이라는 것을 알 수 있다. 인덱스를 RANGE SCAN 후 테이블