2009/06/29

Seeting of LaTeX header & footer

\usepackage{fancyhdr}
\pagestyle{fancy}
\rhead{\scriptsize title}
\lhead{\scriptsize \leftmark}

2009/06/27

USBメモリにLinux-Knoppixをインストール

使用したもの

  1. Knoppix_v6.01をブートするCD
  2. USBメモリ:Sony pocketbit 1GB(WindowsによるFAT32フォーマット済み)

作り方

  1. Knoppix_v6.01.CDをブート起動
  2. USBメモリを挿入
  3. USBメモリが認識されたらマウントを解除(右クリックしてアンマウント)
  4. デスクトップ左下のメニュー → システムツール → Install KNOPPIX to flash disk
  5. インストールするUSBメモリを選択 → OK
  6. 自働的に開始。5~10分程度で終了
  7. 終了したらUSBメモリを抜いて、もう一度挿入
  8. USBメモリを開く
  9. syslinux.cfgをテキストエディタで開く
  10. 9行目の「F3」の下に「F4 syslinux.cfg」を追加
  11. 完成(USBメモリでブートして確認)

参考URL

「USBメモリからKnoppixをブートする―無聊写記」

www.hyodo-arch.com/buryoshaki/2009/02/usbknoppix.html

2009/06/23

Documentclass of LaTeX

\documentclass[a4j, landscape, twocolumn]{jreport}

\setlength{\columnseprule}{4pt}


\documentclass[b4paper,landscape,twocolumn,12pt]{jarticle}

\setlength{\columnseprule}{0.5pt}

\setlength{\columnsep}{4zw}

2009/06/20

SQL command

1) Read SQL file
.read FILENAME

2) Create DataBase with cmd.exe
sqlite3 DataBaseName.db

sqlite> create table TableName (i int, t text);
sqlite> insert into TableName(i,t) values(0, 'hoge');

3) Look at Table Values
sqlite> select * from TableName;

4) List up DataBase
.database

5) List up Table
.table

6) Exit sqlite3
.exit

2009/06/18

Cygwin - make header files

source file name : test.c
header file name : test.h

make o-file:
gcc -mno-cygwin -c test.c


---------- test.c ----------

#include <stdio.h>

int test-function( int age, int height, int weight){

printf("input your age : "); scanf("%d",&age);
printf("input your height : "); scanf("%d",&height);
printf("input your wight : "); scanf("%d",&wight);

printf("your data\n");
printf("age : %d\n",age);
printf("height : %d\n",height);
printf("wight : %d\n",wight);

return 0;

}

---------- test.h ----------

int test-function( int age, int height, int weight);

Cygwin - makefile of C

Command of ompile:make

exefile.exe: file1.o file2.o
gcc -mno-cygwin file1.o file2.o -o exefile.exe

file1.o: file1.c
gcc -mno-cygwin -c file1.c

file2.o: file2.c
gcc -mno-cygwin -c file2.c

2009/06/17

初カキコ

後輩に紹介してもらい作ってモタ。

研究などで調べたものを忘れないようにメモするようにしよう!!

以上。