2013-11-01から1ヶ月間の記事一覧

cygwin に startx をインストールして起動する。[.bashrc] export DISPLAY=127.0.0.1:0 gtk 2.0 (lib, runtime) をインストール。[build.sh] #!/bin/sh gcc -c cvxalgorithm.c `pkg-config gtk+-2.0 --cflags --libs` gcc -c cvxconvexhull.c `pkg-config gt…

import org.apache.commons.io.FileUtils as FU byte[] readByte = FU.readFileToByteArray(new File("test.txt")) byte[] first = Arrays.copyOfRange(readByte, 0, 80) String first_s = new String(first, "UTF-8") println (first) println (first_s) by…