2013年4月29日のブックマーク (4件)

  • 重複した要素をリストから排除する - MPD~モチドレ

    聞かれたのでメモ Javaの場合 Collection同士ならこんな感じ 冗長な処理とか気にしない import java.util.ArrayList; import java.util.HashSet; import java.util.List; public class DuplicatedList { public static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("aaa"); list.add("aaa"); list.add("bbb"); list.add("bbb"); System.out.println(list); HashSet<String> hashSet = new HashSet<String>(); hashSet.addAll

    重複した要素をリストから排除する - MPD~モチドレ
  • KeyRemap4MacBook

    DownloadDocumentsExtra AppsQ&ADevelopmentDonationsContact table of contents Download Stable release Recent version history KeyRemap4MacBook 7.5.0 (2011-11-02) PCKeyboardHack 7.2.0 (2011-10-26) NoEjectDelay 3.2.0 (2011-10-26) KeyRemap4MacBook 7.4.0 (2011-08-23) Full version history Download ■ Stable release System requirements Version Download KeyRemap4MacBook Mac OS X 10.7 (Lion) Mac OS X 10.6 (Sn

    toriaji
    toriaji 2013/04/29
  • SGE tutorial – Universität Innsbruck

    Submitting jobs (qsub) To use the compute nodes in our HPC clusters, you submit jobs to the batch job scheduling system SGE (formerly Sun Grid Engine, now its open source successor Son of Grid Engine). As a user you may want to become familiar with the following commands: qsub, qstat, qdel, qhost and qsh, which are briefly described in the following sections. For more information see the respectiv

  • エイリアスを一時的に無効にするには

    コマンドに別の名前を付けるにはで紹介したように、エイリアスは非常に便利な機能だが、一時的にコマンドをオリジナルの状態で動作させたいときもあるだろう。そのような場合には、コマンドの先頭に「\」(バックスラッシュ、半角の円マーク)を付けるといい。 例えば、「ls」コマンドはデフォルトで「alias ls='ls -NF --show-control-chars'」などのように設定されていることが多く、ディレクトリや実行ファイルに「/」や「*」といった記号が付いて表示される。しかし、「\ls」とすると、オリジナルのlsコマンドの状態でコマンドが実行される。 上の画面を見ると分かるように、最初のlsは「alias ls='ls -NF --show-control-chars'」となっているので、ディレクトリの後ろには「/」が、実行ファイルの後ろには「*」が付いている。2回目のlsは「\」を先頭に