2018/07/14

[art] 백남준 작품 in Korea

어렸을 적 백남준은 매우 유복한 환경에서 자랐다. 집에는 피아노나 전축은 물론 당시에 서울에 딱 두 대 밖에 없었던 캐딜락도 있었고, 해방 전에 유치원(애국유치원)에 다녔으며 한국 전쟁의 그 아비규환 속에서도 파인애플을 먹을 정도의 부잣집이었다. 그의 어머니는 '돈은 물 쓰듯 쓰는 거다'라고 했다고 한다. 조부 백윤수는 청나라 비단을 독점 판매했던 거부로, 종로5가와 동대문시장 일대의 포목상 절반이 그의 것이었고, 국상 때 만조백관의 상복과 제복을 일체 도맡았을 정도로 섬유업계의 막강한 실력자였다. 후에 그는 직물, 대부업, 제약회사 등을 세웠고, 재산은 한성은행 자본금의 3배에 달했다.
백남준은 당시 상류층만 다니던 수송국민학교와 경기공립중학교를 다녔는데, 해방 전 그 시절에 학교에는 풀장과 영사기가 있어서, 당시 학부모였던 대한극장 사장이 학교에서 직접 영화를 상영하기도 했다고 한다. 또한 경기중학교 음악교사로, 후에 이대 음대학장을 지냈던 신재덕에게 피아노를, 작곡가 이건우에게 작곡을 배웠다. 1949년에는 이승만 대통령의 부탁으로 무기구입을 위해 홍콩으로 갔다는 설이 있는 부친 백낙승씨의 통역으로 따라가 홍콩의 로이덴 스쿨로 전학한다. 백남준은 이때 영어와 중국어를 배우게 된다.  - 나무위키

1. 단군


3. 거북선 


2018/07/13

[bash] while in one line

while true;do ls -l; echo "---------------------------"; sleep 5;done

useful links


Visual Studio Code - python
https://code.visualstudio.com/docs/python/python-tutorial


운영체제 - 경성대학교 양희재 교수

컴퓨터 구조 - 숭실대학교 김병기 교수

소프트웨어 공학 - 동국대학교 최은만 교수

알고리즘 - 명지대학교 이충기 교수

데이터베이스 - 이화여자대학교 용환승 교수

수리 통계학 - 국민대학교 강주성 교수

선형 대수 - 국민대학교 이옥연 교수

선형 대수 -  한양대학교 이상화 교수

확률 및 통계 - 한양대학교 이상화 교수

Deep Learning 정리 Blog

DataScience School

Python 연습 Site

Python Data Science Handbook

수학 관련 정리

Thinker with a Neutal Network

2018/07/08

docker Oracle 12c

Oracle Standard Edition 12c Release 1


Oracle Standard Edition 12c Release 1 on Ubuntu
This Dockerfile is a trusted build of Docker Registry.

Installation

docker pull sath89/oracle-12c
Run with 8080 and 1521 ports opened:
docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c
Run with data on host and reuse it:
docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-12c
Run with Custom DBCA_TOTAL_MEMORY (in Mb):
docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle -e DBCA_TOTAL_MEMORY=1024 sath89/oracle-12c
Connect database with following setting:
hostname: localhost
port: 1521
sid: xe
service name: xe
username: system
password: oracle
To connect using sqlplus:
sqlplus system/oracle@//localhost:1521/xe

Password for SYS & SYSTEM:
oracle
Connect to Oracle Application Express web management console with following settings:
http://localhost:8080/apex
workspace: INTERNAL
user: ADMIN
password: 0Racle$
Apex upgrade up to v 5.*
docker run -it --rm --volumes-from ${DB_CONTAINER_NAME} --link ${DB_CONTAINER_NAME}:oracle-database -e PASS=YourSYSPASS sath89/apex install
Details could be found here: https://github.com/MaksymBilenko/docker-oracle-apex
Connect to Oracle Enterprise Management console with following settings:
http://localhost:8080/em
user: sys
password: oracle
connect as sysdba: true
By Default web management console is enabled. To disable add env variable:
docker run -d -e WEB_CONSOLE=false -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-12c
#You can Enable/Disable it on any time
Start with additional init scripts or dumps:
docker run -d -p 1521:1521 -v /my/oracle/data:/u01/app/oracle -v /my/oracle/init/SCRIPTSorSQL:/docker-entrypoint-initdb.d sath89/oracle-12c
By default Import from docker-entrypoint-initdb.d is enabled only if you are initializing database (1st run).
To customize dump import use IMPDP_OPTIONS env variable like -e IMPDP_OPTION="REMAP_TABLESPACE=FOO:BAR"
To run import at any case add -e IMPORT_FROM_VOLUME=true
In case of using DMP imports dump file should be named like ${IMPORT_SCHEME_NAME}.dmp
User credentials for imports are ${IMPORT_SCHEME_NAME}/${IMPORT_SCHEME_NAME}
If you have an issue with database init like DBCA operation failed, please reffer to this issue
TODO LIST
  • Web management console HTTPS port
  • Add functionality to run custom scripts on startup, for example User creation
  • Add Parameter that would setup processes amount for database (Currently by default processes=300)
  • Spike with clustering support
  • Spike with DB migration from 11g
In case of any issues please post it here.

[c] Fibonacci

#include 

int main(){
    unsigned long a,b,cnt,i,n1,n2,n;

    scanf("%ld %ld",&a, &b);

    n2=1;
    n1=2;
    cnt=0;

    for(i=3;i=a && n<=b)
        {   
            cnt++;
            printf("cnt %ld : %ld\n", cnt, n );
        }   
        n2 = n1; 
        n1 = n;
    }   

    printf("%ld\n", cnt);
}