$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
| ### You might want to install Oracle-jdk , but don't have to do . | |
| # get IntelliJ IDE from http://www.jetbrains.com/idea/download/index.html to ~/Downloads/ | |
| $ pwd | |
| /home/rkaneko/Downloads/ | |
| $ ls | |
| ideaIC-12.1.3.tar.gz |
| $ java -version | |
| java version "1.7.0_21" | |
| OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1) | |
| OpenJDK Server VM (build 23.7-b01, mixed mode) | |
| ## optional begin (If you can't add-apt-repository command , do next .) | |
| # we must install python-software-properties in order to install 'software-properties-common' | |
| $ sudo aptitude install python-software-properties |
| $ sudo apt-get -y install aptitude | |
| ######################################################## | |
| # aptitude cheet sheet ref | |
| ## http://www.garunimo.com/program/linux/aptitude.xhtml | |
| # help |
| # Firstly, download oracle jdk from Oracle web site . | |
| # ref website | |
| # http://ameblo.jp/kurabeat/entry-11516745503.html | |
| # install jpackage-utils | |
| $ sudo yum install jpackage-utils | |
| # install jdk |
| ## install play | |
| # download play.zip | |
| $ cd ~ | |
| $ mkdir /workspace | |
| $ cd workspace | |
| $ wget http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip | |
| $ ls | |
| play-2.1.0.zip | |
| $ unzip play-2.1.0.zip |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteLog "logs/rewrite_log" | |
| RewriteLogLevel 0 | |
| #RewriteLogLevel 1 | |
| RewriteCond %{SERVER_PORT} 80 | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L] | |
| </IfModule> |
| package com.rkaneko | |
| object Stub { | |
| def main(args: Array[String]) { | |
| val list = "Hello"::"Scala"::"World"::"!"::Nil | |
| println(list.mkString(" ")) | |
| } | |
| } |
| "see : http://www.kaoriya.net/blog/2012/02/09/ | |
| function! s:remake_xml() | |
| %s/\n//ge | |
| endfunction | |
| command! -nargs=0 RemakeXML call <SID>remake_xml() |