Life Work Log @ steelwind
http://w.atwiki.jp/steelwind/
Life Work Log @ steelwindja2009-05-13T23:06:41+09:001242223601vi設定
https://w.atwiki.jp/steelwind/pages/41.html
.vimrc
:set tabstop=4
:set autoindent
:syntax enable
:set encoding=japan
"バックスペースで文字を消す。
map! ^H ^[s
map ^H hx
""""""""""""""""""""""""""""""
"ファイルを開いたら前回のカーソル位置へ移動
""""""""""""""""""""""""""""""
augroup vimrcEx
autocmd!
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line('$') |
\ exe "normal! g`\"" |
\ endif
augroup END
2009-05-13T23:06:41+09:001242223601ダンジョンジェネレータ
https://w.atwiki.jp/steelwind/pages/40.html
I. A Dungeon is a Maze
I. A土牢は、迷宮です
First of all, it is helpful to think of any dungeon as simply a maze?a collection of corridors that turn every which way. The first part of generating any dungeon, then, is to create a random maze.
まず第一に、単に迷宮としていくらかの(どんな)土牢のことを考えることは、役立ちます?四方八方回転するまとまった廊下。最初のいくらかの(どんな)土牢を発生させることの一部分は、その時、ランダムな迷宮を作り出すはず(こと,予定)です。
Now, there are lots of different ways to generate mazes (for some idea of how many different types of mazes and algorithms there are, check out the Maze Algorithms page at Think Labyrinth). For the dungeon generator, I just picked a straightforward algorithm that I'm pretty familiar with?it's a variation on the "Hunt-and-Kill" algorithm. The algorithm creates a 2D, normal, orthoganol, perfect maze, which simply means that the maze is rectangular, with all passages intersecting at right angles, and that there are no loops or inaccessible areas in the maze.
今、多くの迷宮を発生させる異なる方法があります(迷宮、およびそこでのアルゴリズムがそうであるところでは、チェックのいくつの異なる型で外へ迷宮アルゴリズムがめく 2008-05-07T23:23:24+09:001210170204makefile
https://w.atwiki.jp/steelwind/pages/39.html
make depend で依存関係解決コード自動生成。
その後、make。
&bold(){makedepend: warning: /usr/include/gnu/stubs.h: non-portable whitespace encountered at line 7}
が発生した場合、/usr/include/gnu/stubs.h:7の最初の空白を削除。
CC = gcc
TARGET = a.out
VPATH = . subdir1 subdir2
FLAGS = -Wall $(addprefix -I, $(VPATH))
SRCS = $(foreach dir, $(VPATH), $(shell cd $(dir); ls *.c))
OBJS = $(SRCS:.c=.o)
$(TARGET): $(OBJS)
$(CC) $(FLAGS) -o $@ $(OBJS)
depend:
makedepend -- $(FLAGS) -- $(foreach dir, $(VPATH), $(shell ls $(dir)/*.c))
clean:
rm -f $(TARGET) $(OBJS)
.c.o:
$(CC) $(FLAGS) -c $<
2008-03-11T18:28:00+09:001205227680仮想コンソールを減らす
https://w.atwiki.jp/steelwind/pages/38.html
/etc/inittab
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
# 2:2345:respawn:/sbin/mingetty tty2 ←コメントアウト
# 3:2345:respawn:/sbin/mingetty tty3 ←コメントアウト
# 4:2345:respawn:/sbin/mingetty tty4 ←コメントアウト
# 5:2345:respawn:/sbin/mingetty tty5 ←コメントアウト
# 6:2345:respawn:/sbin/mingetty tty6 ←コメントアウト
2008-03-09T07:51:17+09:001205016677コンソールの解像度を変更する
https://w.atwiki.jp/steelwind/pages/37.html
/boot/grub/grub.conf
kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ vga=<number>
771 800×600/256色/8bitカラー
773 1024×768/256色/8bitカラー
775 1280×1024/256色/8bitカラー
788 800×600/6万5000色/16bitカラー
791 1024×768/6万5000色/16bitカラー
794 1280×1024/6万5000色/16bitカラー
789 800×600/1600万色/24bitカラー
792 1024×768/1600万色/24bitカラー
795 1280×1024/1600万色/24bitカラー
2008-03-09T07:38:40+09:001205015920vim設定
https://w.atwiki.jp/steelwind/pages/36.html
*vim設定
:set autoindent
:set history=50
:set ttyfast
:set backspace=2
:set hlsearch
:set ttymouse=xterm
:set cscopetag
:set ruler
:set viminfo='20,"50
:set cscopeverbose
:set scroll=11
:set t_Sb=^[[4%dm
:set helplang=ja
:set tabstop=4
:set t_Sf=^[[3%dm
:set cscopeprg=/usr/bin/cscope
:set fileencodings=utf-8,latin1
syntax on 2007-12-05T21:25:51+09:001196857551nvidia ti4200をfedora7で使用する
https://w.atwiki.jp/steelwind/pages/35.html
*Fedora7でnvidia Ti4200を使用する方法
Fedora core6 [ kernel-2.6.18 ~ kernel-2.6.20 ], Fedora 7 の場合、
"nvidia" ドライバ
[[NVIDIA-Linux-x86-1.0-9631-pkg1.run>http://download.nvidia.com/XFree86/Linux-x86/1.0-9631/NVIDIA-Linux-x86-1.0-9631-pkg1.run]] は、問題無く使用できた。
"nvidia" ドライバ
NVIDIA-Linux-x86-1.0-9755-pkg1.run
は、当方では、うまくいかなかった。
( Ti4200 は、ダメとのことらしい [ Ti4200 は、96xx までらしい ])
**install方法
# init 3
# ./NVIDIA-Linux-x86-1.0-9631-pkg1.run
(画面に従いインストール)
# init 5
ログイン画面直前にNVIDIAのロゴが表示されればOK。 2007-11-13T21:10:40+09:001194955840マイクの設定方法
https://w.atwiki.jp/steelwind/pages/34.html
*マイクの設定方法
デフォルトのままだとマイクが使えない。
(fedora7 SBLive! emu10k1)
音声調節ツールで下記の設定を有効にする。
-Microphone
-AC97
-Capture
-AC97Caputer
-Microphone Capture?
2007-11-08T22:44:04+09:001194529444selinuxを無効にする
https://w.atwiki.jp/steelwind/pages/33.html
*SELinuxを無効にする
/etc/selinux/config
6行目をdisabledに変更し再起動する。
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted 2007-11-06T20:55:22+09:001194350122checkinstallインストール
https://w.atwiki.jp/steelwind/pages/32.html
*checkinstall
** チェックインストールはソースからインストールしたものを
RPMで管理できるようになる。
yum install checkinstall 2007-11-04T11:03:25+09:001194141805