Sunday, October 18, 2020

Remove ALL docker containers and images

- remove all docker containers

# docker stop $(docker ps -a -q) 

# docker rm $(docker ps -a -q) 

- remove all docker images
# docker rmi $(docker images -q)

Wednesday, December 12, 2018

Lightning of Thunderbird not compatible on Ubuntu

Install a package of xul-ext-lightning. # sudo apt-get install xul-ext-lightning restart the thunderbird.

To Solve The Problem of "changed its 'Origin' value from 'Google, Inc.' to 'Google LLC'

It's EASY. # sudo apt update

Sunday, July 24, 2016

Eclipse에 Gradle과 Spring 4 Framework 환경 구성

이클립스 버전은 Mars.2 Release (4.5.2)

1. Spring Boot를 사용하기 위해서는 Spring Tool Suite (STS) for Eclipse 3.8.0 RELEASE를 설치

설치는 이클립스의 마켓플레이스 혹은

업데이트 사이트 https://spring.io/tools/sts/all 를 이용한다.

STS를 설치하고 나면 아래와 관련된 메시지를 볼 수 있다.

"Migration guide from STS Gradle to Buildship"
https://github.com/eclipse/buildship/wiki/Migration-guide-from-STS-Gradle-to-Buildship

말그대로 Buildship 환경으로 옮기는 것이 좋다는 이야기다.


설치가 완료된 후에 메뉴를 통해 Spring Starter Project를 선택하면 프로젝트가 생성되는데, 이때 이용하는 스프링 프레임워크 버전이 4.2.7이다




2. Gradle Plugin을 이클립스에 설치하기 위해 Buildship Gradle Integration 1.0을 설치

1) Buildship Gradle Integration 1.0을 설치
https://gradle.org/press-release/eclipse-gradle/

이클립스 마켓플레이스를 통해 Buildship Gradle Integration 1.0을 설치

참고 사이트
http://stunstun.tistory.com/245
https://docs.gradle.org/current/userguide/eclipse_plugin.html





Friday, July 8, 2016

Gradle로 이클립스에 Spring 환경 구축하기 - 초보자용

1. 이클립스를 통해 Gradle 프로젝트를 생성



2. build.gradle 파일을 수정

apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'war'

sourceCompatibility = 1.8
targetCompatibility = 1.8

version = '1.0'
jar {
    manifest {
        attributes 'Implementation-Title': 'Gradle Quickstart',
                   'Implementation-Version': version
    }
}

repositories {
    mavenCentral()
}

def version = [
spring: '4.3.1.RELEASE'
]

dependencies {
    compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
    compile "org.springframework:spring-context:${version.spring}"
    testCompile group: 'junit', name: 'junit', version: '4.+'
}

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

test {
    systemProperties 'property': 'value'
}

uploadArchives {
    repositories {
       flatDir {
           dirs 'repos'
       }
    }
}


3. Run As > Gradle Build... 를 선택하고 아래와 같이 입력한다







































4. 아래와 같이 스프링 라이브러리가 로딩되어 있음을 볼 수 있다.




참고 사이트
http://goo.gl/X5xVzr
http://goo.gl/g9egF6
http://stag.tistory.com/21

Sunday, May 22, 2016

Setting up Spring Development Environment for Mac

1. Install Eclipse Java EE Mars.2 Release (4.5.2)

2. Install Spring IDE on Eclipse
help > Eclipse Marketplace
search Spring and install Spring Tool Suite (STS) for Eclipse 3.7.3

or

Download at https://spring.io/tools/sts/all and Install

3. Install Tomcat

http://tomcat.apache.org/

download Tomcat 8.0.35 and extract it.

In order to configure, open the menu of Preference > Server > Runtime Environment.

Add Tomcat 8 Server.

4. Open Window > Show View > Servers

Add the Tomcat Server for a project.

Friday, May 8, 2015

Python on Eclipse MacOSX

1. Install Eclipse Luna

2. Install Python Plugin using Eclipse Marketplace
Python Plugin: Python IDE for Eclipse

3. Set up Python Interpreters
Preferences > PyDev > Interpreters > Python Interpreter,
and then click Quick Auto-Config or Advanced Auto-Config

If you have more than two versions of Python, click Advanced Auto-Config

reference
http://thddudco.tistory.com/entry/Python-Eclipse-%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95

Thursday, May 7, 2015

C/C++ Development on Eclipse

1. MinGW-w64를 다운로드
다운로드 URL http://sourceforge.net/projects/mingw-w64/
MinGW-w64는 64비트용 바이너리를 생성하기 위해 필요

2. MinGW-w64를 설치
설치 대화상자에서 옵션을 선택
i686 이나 x86_64,
POSIX 이나 Win32,
dwarf2 이나 sjlj
를 선택할 수 있음

나는 x86_64, Win32, dwarf2를 선택하였지만,
다양한 옵션의 조합을 각 개발환경에 맞추어 테스트 해 보고
각 옵션들이 어떤 의미를 가지고 어떤 영향을 미치는지 파악해야 함

3. 환경변수 등록
Path: ....../mingw64/bin
MINGW_HOME: ....../mingw64 등록

MINGW_HOME 변수는 이클립스가 MinGW 를 찾을 수 있게 함

4. 이클립스 설치

5. 프로젝트 만들기
C/C++ 프로젝트를 생성

프로젝트 생성 대화상자에서 HelloWorld 템플릿 프로젝트를 선택

프로젝트 생성 대화상자에서 MinGW GCC 컴파일러를 선택

프로젝트가 정상적으로 생성되면,
Includes 디렉토리와 src 디렉토리가 보임

6. 프로젝트 실행
Ctrl+B 를 눌러 컴파일 및 빌드 수행
Ctrl+F11 를 눌러 실행

7. 콘솔 창에 "Hello World" 메시지가 출력됨

reference
http://jscript.blog.me/220092133248

Friday, May 1, 2015

Installing MariaDB 10.0.10 on Mac OS X with Homebrew

Install homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew doctor

$ brew update

$ brew info mariadb

$ brew instal mariadb

$ unset TMPDIR

$ cd /usr/local/Cellar/mariadb/10.0.17/

$ mysql_install_db

Start MariaDB
$ mysql.server start

$ mysql_secure_installation

Connect to MariaDB
$ mysql -u root -p

Verify MariaDB Version
> select @@version;

Install phpMyAdmin [2]
Start Web Server of Mac OSX [3,4]
$ sudo apachectl start

$ sudo vi /etc/apache2/httpd.conf
LoadModule php5_module

To fix MySql 2002 socket error [5]
$ sudo mkdir /var/mysql
$ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

$ mkdir /Library/WebServer/Documents/phpmyadmin/config
$ chmod 777 config

Connect to http://localhost/phpmyadmin/setup

$ mv config.inc.php ../


reference
[1] https://mariadb.com/blog/installing-mariadb-10010-mac-os-x-homebrew
[2] http://nsnotification.blogspot.kr/2013/05/phpmyadmin.html
[3] http://blog.iolate.kr/160
[4] http://blog.iolate.kr/19
[5] http://coolestguidesontheplanet.com/installing-phpmyadmin-on-mac-osx-10-7-lion/

Monday, April 20, 2015

JSP에서 한글 인코딩 문제

JSP페이지 1번째 줄에 아래와 같은 코드를 작성

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>


POST 방식의 파라미터를 받는 페이지마다 아래와 같은 코드를 작성

request.setCharacterEncoding("utf-8");


톰캣 server.xml 파일의 Connector마다 URIEncoding="utf-8" 추가

<connector uriencoding="utf-8" connectiontimeout="20000" port="8080" protocol="HTTP/1.1" redirectport="8443">
</connector>


톰캣 web.xml 파일 수정

<filter>
    <filter-name>setCharacterEncodingFilter</filter-name>
    <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
    <init-param>
        <param-name>encoding</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
    <async-supported>true</async-supported>
</filter>


reference
http://javastudy.tistory.com/31

Text Encoding Problem in Eclipse

reference
http://fordev.tistory.com/79

Sunday, April 19, 2015

Subversion with Apache on Ubuntu

$ mkdir /home/svn

$ chown -R www-data:www-data ./svn

$ cd svn

$ openssl req -new -x509 -nodes -out server.crt -keyout server.key

$ cp server.crt /etc/apache2/ssl

$ cp server.key /etc/apache2/ssl

$ chmod 600 server.key

$ rm server.crt

$ rm server.key

$ ln -s /etc/apache2/mods-available/ssl.load /etc/apache2/mods-enabled/

$ ln -s /etc/apache2/mods-available/ssl.conf /etc/apache2/mods-enabled/

$ vi /etc/apache/ports.conf

    Listen 3443


$ mkdir www-ssl

... not complete yet

reference
https://kldp.org/node/84957

Subversion using svn+ssh protocol on Ubuntu

$ apt-get install subversion

$ adduser svn

$ svnadmin create --fs-type fsfs /home/svn/(reposName)

$ vi (reposName)/conf/svnserve.conf
anon-access = none
auth-access = write
...
realm = (reposName)
use-sasl = true

$ saslpasswd2 -c -u (reposName) (userId) : [1]

$ sasldblistusers2

(delete a user from repos)
$ saslpasswd2 -d -u (reposName) (userId)

$ chown -R svn:svn (reposName)

$ svnserve -d -r /home/svn

$ svn mkdir --parents svn://localhost/(reposName)/trunk --username=(userId) : [2]

$ (run ssh daemon)


Client: Subclipse 1.10.9 or Subversive - SVN Team Provider 2.0.1

When connecting to svn, use svn+ssh protocol.

If clients have this messasge "txn current lock permission denied"

Change the permission of repositories.
$ usermod -a -G (groupName) (userId)
$ chmod -R g+w (reposName)




reference
[1] http://linuxism.tistory.com/408?nil_openapi=search
[2] http://www.yongbok.net/blog/tag/우분투-svn-설치/

Friday, February 28, 2014

Converting iTunes' Languages

$ defaults write -app iTunes AppleLanguages "(your language)" for example, $ defaults write -app iTunes AppleLanguages "(en)" $ defaults write -app iTunes AppleLanguages "(ko)"

Saturday, February 1, 2014

How to Install the Spring Framework

reference
http://blog.naver.com/PostView.nhn?blogId=mswar&logNo=90147800462

http://blog.naver.com/PostView.nhn?blogId=day2night&logNo=140201196657


How to change booting priority between Window and Ubuntu(Wubi)

Go to Control Panel Home (Start -> Control Panel) -> System and Maintenance -> System.
On the left side pane, under the Tasks, Click Advanced System Settings.
Click Settings under Startup and Recovery.

Reference