Shammer's Philosophy

My private adversaria

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

Access Hunchentoot via mod_proxy

Hunchentoot document introduce how to access Hunchentoot behind a proxy. I tested this by Apache proxy.Mac OS X apache configuration files are based on /etc/apache2/httpd.conf. This file includes content from /etc/apache2/other/*, the foll…

GoogleDriveInstall

Mac

I would like to avoid sync manually my emacs config files and SKK dictionary between my home MacBook Air and Office MacBook Pro. I searched services to enable my request and I discovered GoogleDrive. At first, I think rental server which a…

Mac のターミナル設定備忘録その2

Mac

ターミナルの設定の中に、起動と同時にコマンドを実行するという設定がある。具体的には、環境設定->設定->シェルの「コマンドを実行」のチェックをして、emacs -nwと入力。 設定を複製する。 もう一つターミナルを起動後、ウィンドウ->ウィンドウをグループ…

ClozureCLでHunchentootを動かす

Quicklisp をインストール後、以下を実行する。 (ql:system-apropos "hunchentoot") (ql:quickload "hunchentoot") (in-package :hunchentoot) (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242) とりあえず、ここまで実施したら、…

ClozureCL Quicklisp initialization

This is a copy from Quicklisp beta. Get quicklisp.lisp by curl -O http://beta.quicklisp.org/quicklisp.lisp. Launch clozure common lisp by ccl or ccl64 command at the directory where quicklisp.lisp is saved. ccl64 --load quicklisp.lisp, lau…

Mac のターミナル設定備忘録

Mac

とりあえず、気に入った状態を保存しておくことにした。 起動時に開くはProを指定 新規タブを開く場合は、同じ設定、デフォルト作業ディレクトリ フォントは MeiryoKe_Console 12pt テキストでは以下にチェック テキストをアンチエイリアス処理 ボールドフォ…

SKK辞書のマージ

自宅と会社とでSKKを使っていると、いつかこの言葉入力した記憶だけど・・・ということがよくある。いちいちどっちで記録したかまで覚えていられないから。なので、辞書のマージができないか調べてみた。どうやら、skkdic-expr とかいうコマンドがあるらしい…

Debian(wheezy)で Xen を使って VM を動かす

背景 以下の記事で、wheezy を Xen の Domain-0 として動作させるための準備を進めてきた。 Linux(Debian wheezy) で VLAN を利用する - Shammerism bridge を利用する - Shammerism VLAN の定義 - Shammerism Debian(wheezy) に Xen をインストール - Shamm…

Debian(wheezy) に Xen をインストール

背景 最終的には、 このホストを Xen の Domain-0 として動作させる 管理用のネットワークと検証用のネットワークを用意する Domain-0 を含めた全ての VM が両方のネットワークに接続可能にする 検証用ネットワークは Tag VLAN なので、検証用ネットワークは…

VLAN の定義

背景 以下の記事、 bridge を利用する - Shammerismでブリッジの設定をした。最終的には、 このホストを Xen の Domain-0 として動作させる 管理用のネットワークと検証用のネットワークを用意する Domain-0 を含めた全ての VM が両方のネットワークに接続可…

HTTP Multipart Request

The most easiest way to test multipart form-data is defining enctype="multipart/form-data" as form attribute. Sample is below. <form method="post" name="f" action="cgi-bin/sample.cgi" onsubmit="return sendData(this)" enctype="multipart/form-data"> <input type="text" name="field1" value=""></input> <…

write html file with cl-markup

There is a manual about cl-markup. GitHub - arielnetworks/cl-markup: Modern markup (HTML) generation library for Common LispThere is a clue about changing output-stream. Based on this information, I tried following code and succeeded to ge…

cl-markup library

I found the library which helps writing html in lisp, that library is cl-markup. To use this library, execute the following commands. (ql:quickload "cl-markup") (defpackage html-sample (:use :cl :cl-markup)) (in-package :html-sample) The a…

bridge を利用する

最終構成について 昨日の記事 Linux(Debian wheezy) で VLAN を利用する - ShammerismでVLAN の設定をやってみたが、最終的な目標は NIC 2枚挿しで Debian をインストール 片方の NIC は管理用ネットワークに接続、もう一方の NIC は検証用ネットワークへ接…

Linux(Debian wheezy) で VLAN を利用する

コマンドを使用する場合 apt-get install vlan とやると、vconfig というコマンドが利用可能になる。このコマンドを使用することで NIC を vlan 対応にできるみたいだ。 # vconfig add eth0 10 Added VLAN with VID == 10 to IF -:eth0:-削除は rem を使う。…

change cookie by curl command

What is curl? This means cURL. Maybe URL client. This command has a lot of options which enable to control http access in detail. Most Basic command The most basic curl command is below. curl http://www.example.com/This command only get an…

ルーティングテーブル

ルーティングについて、これまでは言葉しか知らなかったが、業務内容の都合上、一歩深い理解を求められるようになった。具体的には、 一つの OS が複数の NIC を認識する それぞれの NIC がそれぞれ別のネットワークへつながっている デフォルトゲートウェイ…