Wednesday, February 26, 2014

Haproxy - Install and Configure on Haproxy

Link - Proxy Socket

@ The websocket of apache.
http://blog.alex.org.uk/2012/02/16/using-apache-websocket-to-proxy-tcp-connection/

@ The module for webSocket on Apache.
https://github.com/disconnect/apache-websocket

@ Load Balance and support webSocket or socketJs.
  It will need to handshake twice.
http://haproxy.1wt.eu/

@ Setting for Haproxy
https://github.com/sockjs/sockjs-node/blob/master/examples/haproxy.cfg

@ Mod_pywebsocket
http://code.google.com/p/pywebsocket/

@Haproxy Load Balance
http://tagnee.tistory.com/25
http://helloworld.naver.com/helloworld/284659

Tuesday, February 25, 2014

Gradle - How to implement Maven's profile mechanism in Gradle

@/config/staging/resources

final String DEFAULT_PROFILE = 'staging'
allprojects {
    if (!project.hasProperty('profile') || !profile) {
        ext.profile = DEFAULT_PROFILE
    }
    sourceSets {
        main {
            resources {
                srcDir "config/${profile}/resources"
            }
        }
    }
}

@ Command
$ gradle zip -Pprofile=staging

Thursday, February 20, 2014

Link - SpriteBuilder

@SpriteBuilder
https://www.makegameswith.us/tutorials/getting-started-with-spritebuilder/

Monday, February 17, 2014

PlayFramework - Setting up your preferred IDE

■ Move to your project directory.
$ cd /usr/local/git/project

■ Start play on your project
$ play

■ Start play on your project
[your_project] eclipse


@Refer to this following URL
http://www.playframework.com/documentation/2.2.x/IDE

Thursday, February 6, 2014

Git - Switched and Make a new branch at a time.

@ How to revert to a commit point on a branch.

@ Option -b is to make branch
@ dev-bug is a branch name
@ dc41eaf is SHA code
@ Like the following command
$ git checkout -b dev-bug dc41eaf

@Switched and make a new branch at a time.
$ git checkout -b newBranchName

@Make a new branch
$ git branch newBranchName

@Switched to a new branch
$ git checkout newBranchName

Tuesday, February 4, 2014

Shell - Calculate the sum on Shell.

@ $9 is a place where there is numbers in T.S.V.
$ cat ./logName.log | grep needWord | gawk -F'\t' '{print $9}' > sum.txt

@ Sum the values from the file.
$ awk '{s+=$1} END {print s}' ./sum.txt