”温故知新” なことなど

コメントは、タイトル下の"without comments"を押下して記入ください

Archive for the ‘情報’ Category

HadoopをWindows機で扱うための準備 - Cygwinの設定

without comments

[こちらのサイト]を参考にさせて頂いた。
まずパスワードファイル等の権限の設定

chmod +r,u+w /etc/passwd
chmod +r,u+w /etc/group
chmod 755 /var

次にsshd設定ファイルを作成

ssh-host-config -y

このように途中で、”yes”の入力を求められるところが現れる。
sshd

次にwindowsのアカウントをCygwinに同期

mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group

Read the rest of this entry »

Written by nextschool

8月 14th, 2010 at 4:46 am

Posted in 情報,設定

Tagged with

本を電子化する作業

without comments

最近、論文を読む機会が多くなり、プリントアウトして持ち歩くことが多くなったのをきっかけにAmazonのKindle DXを購入しました。主たる目的は、論文リーダーにしたかったのと、電子ブックを体験してみたかった点です。また個人的にAmazonというブランドが好きだったこともあります。

しばらく使用していくうちに書店で下記の書物を見つけました。それまでは電子書籍について筆者の所感や問題定義をしたものが多かったのですが、下記は完全なKindle Hacks本だったので即購入しました。Amazon storeで一日を待つより、目の前にある書籍を持ち帰って直ぐに読みたかったという衝動にかられたからです。

kindleを購入した時の説明書は機器の留意点程度なもので、具体的な機能など事細かに記された物はありませんでした。

Kindle解体新書 驚異の携帯端末活用法のすべて
Kindle解体新書 驚異の携帯端末活用法のすべて

Read the rest of this entry »

Written by nextschool

6月 2nd, 2010 at 1:25 am

Posted in Hacks,情報,読書

Tagged with , ,

GAE-Jのサポートについて

without comments

Written by nextschool

10月 24th, 2009 at 1:30 am

Servlet&JSPのリスト表示を許可する方法

without comments

    <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

10行目のparamをfalseからtrueへ変更します。

<param-value>true</param-value>

するとリスト内の格納されているファイル類が表示される。

Written by nextschool

10月 8th, 2009 at 4:27 am

ディレクトリー内部のファイル類を表示

without comments

 import java.io.*;
public class FileTest2 {
	public static void main(String args[]){
		File cdirectory = new File("/home/admin/Desktop/JAVA_training");
		File filelist[] = cdirectory.listFiles();
		for (int i = 0 ; i < filelist.length ; i++){
			if(filelist[i].isFile()){
				System.out.println("[F]" + filelist[i].getName());
			}else if(filelist[i].isDirectory()){
				System.out.println("[D]" + filelist[i].getName());
			}else {
				System.err.println("[?}"+filelist[i].getName());
			}
		}
	}
}

ディレクトリの中身を参照する

	File cdirectory = new File("/home/admin/Desktop/JAVA_training");

thanks to:http://www.javadrive.jp/start/file/index2.html

Written by nextschool

10月 1st, 2009 at 1:50 am

Posted in Hacks,プログラミング,情報

Tagged with