|
|
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/usr/sbin/pmconfig /usr/openwin/bin/dtpower /etc/power.conf autoshutdown 30 9:00 9:00 noshutdown
% patch -p0 < ftp.pl_wupatchmirror.defaultsでwindowsにおいて注意すべき点:
< file_mode=0444 > file_mode=0644こうしないとタイムスタンプが保存されない。
benchmark: SPEC95-ijpeg symptom: Error: spec_main.o: could not read symbols: bad value fix: spec_main.c:/*#define JPEG_BUFFER_SIZE (16*1024*1024)*/ /* TBD: reduce to what is actually needed */ spec_main.c:#define JPEG_BUFFER_SIZE (8*1024*1024) /* TBD: reduce to what is actually needed */ spec_main.c:int jpeg_compressed_data_max_size = JPEG_BUFFER_SIZE; spec_main.c:JOCTET jpeg_compressed_data[ JPEG_BUFFER_SIZE ]; /* TBD: dynamically size */
| 00 nul | 01 soh | 02 stx | 03 etx | 04 eot | 05 enq | 06 ack | 07 bel |
| 08 bs | 09 ht | 0a nl | 0b vt | 0c np | 0d cr | 0e so | 0f si |
| 10 dle | 11 dc1 | 12 dc2 | 13 dc3 | 14 dc4 | 15 nak | 16 syn | 17 etb |
| 18 can | 19 em | 1a sub | 1b esc | 1c fs | 1d gs | 1e rs | 1f us |
| 20 sp | 21 ! | 22 " | 23 # | 24 $ | 25 % | 26 & | 27 ' |
| 28 ( | 29 ) | 2a * | 2b + | 2c , | 2d - | 2e . | 2f / |
| 30 0 | 31 1 | 32 2 | 33 3 | 34 4 | 35 5 | 36 6 | 37 7 |
| 38 8 | 39 9 | 3a : | 3b ; | 3c < | 3d = | 3e > | 3f ? |
| 40 @ | 41 A | 42 B | 43 C | 44 D | 45 E | 46 F | 47 G |
| 48 H | 49 I | 4a J | 4b K | 4c L | 4d M | 4e N | 4f O |
| 50 P | 51 Q | 52 R | 53 S | 54 T | 55 U | 56 V | 57 W |
| 58 X | 59 Y | 5a Z | 5b [ | 5c \ | 5d ] | 5e ^ | 5f _ |
| 60 ` | 61 a | 62 b | 63 c | 64 d | 65 e | 66 f | 67 g |
| 68 h | 69 i | 6a j | 6b k | 6c l | 6d m | 6e n | 6f o |
| 70 p | 71 q | 72 r | 73 s | 74 t | 75 u | 76 v | 77 w |
| 78 x | 79 y | 7a z | 7b { | 7c | | 7d } | 7e ~ | 7f del |
template<class T>
class my_allocator {
public:
void* allocate() {return 0;}
template<class T1>
struct rebind {
typedef my_allocator<T1> other;
};
};
typedef my_allocator<int> my_allocator_dummy;
template<class T, class A>
struct traits {
typedef typename A::rebind<T>::other allocator_type;
};
template<class T, class A>
class base {
public:
typedef traits<T,A>::allocator_type allocator_type;
void* operator new(size_t) {return allocator_type::allocate();}
};
template<class T, class A = my_allocator_dummy>
class deriv : base<deriv<T,A>, A> {
public:
T val;
};
int main() {
deriv<int> a;
}
wget -T 5 -t 0 -c
dd if=/dev/zero of=/mnt/dosc/loopback bs=1M count=500 losetup /dev/loop0 /mnt/dosc/loopback mkfs -t ext2 /dev/loop0 mount -t ext2 /dev/loop0 /mnt/loopback/ umount /dev/loop0 losetup -d /dev/loop0 mount -o loop -t ext2 /mnt/dosc/loopback /mnt/loopback/ net use * /del /yes RealTek 8019 ioport0x280-0x29f irq0x09
malloc.c
align
morecore
__morecore
__default_morecore
__sbrk
../sysdeps/stub/morecore.c
../sysdeps/generic/morecore.c
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#define __PTRDIFF_TYPE__ long int
./sysdeps/mach/hurd/__sbrk.c
./sysdeps/stub/__sbrk.c
./sysdeps/generic/__sbrk.c
./misc/sbrk.c
./sysdeps/unix/mips/__brk.S
syscall 17
.sdata
ENTRY(__curbrk)
.word __end

PUSH DE POP HLと
LD H,D LD L,Eが同じ速度(8ステート)の時代とか。 回顧主義。忘れないうちに。
| 日にち | 寝た時間 | 状態 |
| 1日目 | 0800-1800 | 怠慢。 |
| 2日目 | 0830-1830 | さらに怠慢。 |
| 3日目 | 1000-2100 | ちょっと起き続けてみる。 |
| 4日目 | 1230-1830 | もう少し起き続けてみたら少しの時間で起きてしまう。 眠い日。HDDを破壊したり。/td> |
| 5日目 | 0430-0730 | 朝の光で目覚めてしまう。 |
| 5.5日目 | 1900-2200 | 花粉症等でダウン。 |
| 6日目 | 0600-1330 | うーむだるい。 |
| 6.5日目 | 1900-2200 | 力尽きる。 |
| 7日目 | 0330-0800 | 朝の光で... |
| 7.5日目 | 1500-1800 | 眠い。 |
| 7.75日目 | 2000-2300 | さらに眠い。 |
| 8日目 | 0330-0730 | パブロンが効く。3/20 |
| 8.5日目 | 2130-2300 | パブロン切れる。 |
| 9日目 | 0330-0930 | 早起きに戻った? |
| 9.5日目 | 2130-2430 | 昼寝。 |
| 10日目 | 0430-0900 | まあまあ。 |
| 11日目 | 0230-0630 | これは一体... |
| 11.5日目 | 1400-1630 | ひるね。 |
| 12日目 | 0130-0730 | 3/24 |
| 内容 | 場所 | 日 | 時間 |
| 構成的アルゴリズム論に基づくプログラム導出、プログラム変換について | 理学部7号館102 | 11/19,26,12/14,17,21 | 1300-1800 |
| 代数方程式 | 理学部7号館102 | 12/6,7,8,9,10 | |
| 群論的分岐理論 | 11/15,22,29,12/20 | 1300-1615 |
Win3DIBFile
BitmapFileHeader
00 Type 19778 ("BM")
02 Size <file size>
06 Reserved1 0
08 Reserved2 0
0a OffsetBits 0x0436 <address of Image>
BitmadpInfoHeader
0e Size 40 <header size>
12 Width <pixel>
16 Height <pixel>
1a Planes 1
1c BitCount 8
1e Compression 0
22 SizeImage <byte size>
26 XPelsPerMeter 0
2a YPelsPerMeter 0
2e ColorsUsed 256
32 ColorsImportant 256
Win3ColorTable
36 rrggbbuu[2^BitCount] #uu must be 0x00
..
Image
436
TableIndex[SizeImage]
$GetAsyncKeyState = new Win32::API("User32.dll", "GetAsyncKeyState", [I], I);
$polar = 1;
foreach (@result) {
#ESC or mouse click check to cancel
if($GetAsyncKeyState->Call(0x1b) != 0 || $GetAsyncKeyState->Call(0x1) != 0){
if($polar == 1) {
$temp = Win32::MsgBox("中断しますか?", 4, "確認");
if($temp == 6) {
print ("Operation canceled by user!!\n");
return 0;
}
}
$polar = ($polar==1)? 0 : 1;
}
#Do something you like
}
こんな感じで行ったけどなんだかねぇ。
{Win32::GUI::Hide(scalar(Win32::GUI::GetPerlWindow()))};
でも
($DOShwnd, $DOShinstance) = GUI::GetPerlWindow(); GUI::CloseWindow($DOShwnd);でもいい。 両者ともPerlApp -g -f -s <script.pl> として.exeファイルを実行すると dosプロンプトが微塵もでてこない。 PerlAppでできたexeファイルを実行するとtempディレクトリに 使っているdllファイル達が出てくる。なんだかねぇ。
binmode(FILEHANDLE)を忘れていてはまってしまったよ。 MS-DOSはデフォルトでテキストモードでファイルを開くそうだ。 忘れないように。 MS-DOSには関係ないことで気づいたこと: ファイル名に改行が入っていてもopenできるけど-dとかに反応しないみたい。
| totally encrypted? |