Install the latest git version on Ubuntu

Original Url

 

Steps

  • Install required packages on Ubuntu 14.04
sudo apt-get install software-properties-common
  • Run this command
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Advertisements

South Korea Tour Guide

# Museum
1. National Museum of Korea
http://www.museum.go.kr/site/main/home
2. National Hangeul Museum
http://www.hangeul.go.kr/main.do
– This museum is located at same place with ‘National Museum of Korea’

3. Gyeongbokgung Palace Office & National Fork Museum of Korea
– National Fork Museum of Korea : http://www.nfm.go.kr/language/english/main.jsp
– Gyeongbokgung Palace Office : http://www.royalpalace.go.kr/html/eng/main/main.jsp
: You can enter this palace for free if you wear Han-Bok(Korean Traditional Costume)
There are stores near Gyeongbokgung Palace that you can rent Han-Bok

4. Jongmyo Shrine
– Web site
: http://www.cha.go.kr/cop/bbs/selectBoardArticle.do?ctgryLrcls=CTGRY209&nttId=57993&bbsId=BBSMSTR_1205&mn=EN_03_01

4. Changdeokgung Palace and its Secret Gargen
– Main site
: https://eng.cdg.go.kr/main/main.htm
– Secret Gargen Information page
: https://eng.cdg.go.kr/guide/guide_course_02.htm
– Reservation Url
: https://eng.cdg.go.kr/reservation/reserv_01.htm

# National Park
1. Sorak National Park
– Web Site
: http://english.visitkorea.or.kr/enu/ATR/SI_EN_3_1_1_1.jsp?cid=264211
– Recommended hotel
: Seorak Kensington Stars Hotel – https://www.booking.com/hotel/kr/seorak-kensington-stars.html
: Hanhwa Resort Seorak Sorano – https://www.booking.com/hotel/kr/hanwha-resort-seorak-sorano.ko.html
– Access to hotel
: Route – https://goo.gl/maps/LGYS2XbYgAp
: Where you take a bus – Seoul Express Bus terminal / Interval – 30 minutes
– Comments
: It’s better that you will visit Sorak National Park in weekdays.
: This national park is popular place to see Korea’s Maple View.

# Places
1. N Seoul Tower
– Web site
: http://www.nseoultower.co.kr/eng/index.asp
– Getting here
: http://www.nseoultower.co.kr/eng/visit/traffic.asp
– You can
2. 북악팔각정
: https://goo.gl/maps/kvwKDtzy9y82
: Nice place to see Seoul Night View

# Theme Park
1. Korean Folk Village
– Web site
: http://www.koreanfolk.co.kr/multi/english/
– Getting Here
: You can get here by Bus 5001-1. This bus stops at a point near Gangnam Artnoueveau City.
: I recommend that you visit here on Saturday or Sunday because you can see some characters

2. Everland
– Web site
: http://www.everland.com/web/multi/english/everland/main.html
– Getting Here
: You can get here by Bus 5002. This bus stops at a point near Gangnam Artnoueveau City.

# Others
1. DMZ Tour Program by Korail
– 1 Day Program
http://www.letskorail.com/ebizprd/EbizPrdTicketHtm14121_i1.do?txtVrGdNo=F20170817002
– This page is written in Korean. You can call +82-1544-7755

 

Ubuntu: Start/Stop a program with ‘service’ command

s
# Step
1. Define a servicename
2. Create a script in /etc/init.d/[SERVICE_NAME]

#!/bin/bash
PIDFILE=/var/run/tomcat
DAEMON_START=/vol/users/gatekeeper.tvsw/program/apache-tomcat-7.0.55/bin/startup.sh
DAEMON_SHUTDOWN=/vol/users/gatekeeper.tvsw/program/apache-tomcat-7.0.55/bin/shutdown.sh
DAEMON_ARGS=""
case "$1" in
    start)
        start-stop-daemon --start --quiet  --chuid gatekeeper.tvsw:users --pidfile $PIDFILE --exec $DAEMON_START -- \
            $DAEMON_ARGS || return 2
        ;;
    stop)
#        start-stop-daemon --stop --quiet --oknodo  --retry=0/30/KILL/5  --pidfile $PIDFILE --name jenkins_hq
        start-stop-daemon --start --quiet  --chuid gatekeeper.tvsw:users --pidfile $PIDFILE --exec $DAEMON_SHUTDOWN -- \
            $DAEMON_ARGS || return 2
        #/home/jenkins_hq/program/apache-tomcat-7.0.57/bin/shutdown.sh
        ;;
    *)
        echo "Usage : $0 {start|stop}"
        exit 1
        ;;
esac

“$1” means a first parameter of a script. For example, if you use this command to start a service,

service tomcat start

“$1” is ‘start’

3. Use ‘update-rc.d’ in ordert to register a script you created

sudo update-rc.d tomcat defaults

#Watch out!
1. When you start/stop a service, please use ‘start-stop-daemon’ command with an option ‘–chuid’.
If you do not use that option, a service you registred is runned with root account

Get a custom field object and update its value to be displayed

In order to update a custom field’s value, please follow these stesp

  1. Get an mutable issue object
  2. Get ‘ComponentManager’ object
  3. Get ‘CustomFieldManager’ object
  4. Get an custom field object with an custom field id (like 10106)
  5. Update custome field’s value
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.issue.fields.CustomField

//Get an mutable issue object
MutableIssue myIssue = issue

issueKey =  myIssue.getKey()

//Get 'ComponentManager' Object
componentManager = ComponentManager.getInstance()
//Get 'CustomFieldManager' Object
CustomFieldManager customFieldManager = componentManager.getCustomFieldManager()

//Get Custom Field Object
CustomField codeReview = customFieldManager.getCustomFieldObject(10106)

//Update Custom field's value.
myIssue.setCustomFieldValue(codeReview, issueKey)

passesCondition = false

You can select custom field object with its name. But it’s better to use field id numeric value because it’s not changed after a custom field was created. With this feature, you can change field name .