INSTALLING SLACKWARE LINUX version 8.1 WITH ROOT PARTITION ON
A SOFTWARE RAID level 0 DEVICE.
20021009 v 1.0.1
Copyright (c) 2002 Karl Magnus Kolst๘.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no
Back-Cover Texts.
A copy of the license can be found here;
http://www.gnu.org/licenses/fdl.txt
If you screw up something (like your data and/or your hardware)
while using this document it is your fault, not mine.
You should know what you are doing. Reading some documentation
on software RAID is highly recommended.
(I.e the Software-RAID-HOWTO;
http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html )
Document History:
v 1.0.1 20021009 Fix up the wording of a couple of sentences.
v 1.0 20020913 Initial release.
This document is a small write-up on how I did install Slackware 8.1
on a software raid 0, aka striping.
Note that this document does not cover troubleshooting, only the
exact steps that should be nessesary to put Slack 8.1 on /
At least they where the steps I had to do to make it work.
This write-up should be usable for setting up software raid
level 4 or 5 on Slackware too (with some tweaking).
As for raid level 1 the configuration should be similar too,
but different enought to say that this write-up doesn't cover it.
My disk setup was 7 disks on one SCSI channel.
(yes, I _know_ you shouldn't have that many drives on one channel :)
The computer could boot from those drives.
First I booted from the Slackware 8.1 CD.
Had to use kernel scsi.s because of my scsi setup.
At the prompt I started partitioning the drives with fdisk.
All my drives where identical, so I decided to partition them identically.
Partition 1 on each disk I put a 15MB partition.
Partition 2 on each disk I put the partition to be raided.
Partition 4 on each disk I put a swap partition.
(Why 4 and not 3? Just a personal convention. I always put swap
on the forth primary partition on a disk.)
Then I set partition types 83, FD and 82 respectively.
Why that 15MB partition? Linux can't boot the kernel directly
off of a software raided partition (raid1 is another story) so
it needs a partition to get the kernel from which is not a part of
a raid set.
That first partition on first drive (/dev/sda1 in my case)
I wanted to mount under /boot. But why waste disk space?
I ended up setting up first partition on all the other drives
to type 82 (linux swap). That way I ended up with 13(!) swap partitions.
A better way would probably be to set up the raid partitions on the end
of the drive and make a larger swap partition on the beginning of
each drive. But then take 10-20MB of the the swap partition on the
first drive and use that for /boot.
Anyway I now have 7 drives partitioned the way I want.
First I must configure the raid.
Check if /dev/md0 exists. (like 'ls -l /dev/md0')
If it doesn't exist, create it;
mknod /dev/md0 b 9 0
I created a /etc/raidtab which looked like this;
-------- cut ---------
raiddev /dev/md0
raid-level 0
nr-raid-disks 7
nr-spare-disks 0
chunk-size 32
persistent-superblock 1
device /dev/sda2
raid-disk 0
device /dev/sdb2
raid-disk 1
device /dev/sdc2
raid-disk 2
device /dev/sdd2
raid-disk 3
device /dev/sde2
raid-disk 4
device /dev/sdf2
raid-disk 5
device /dev/sdg2
raid-disk 6
-------- cut ---------
Then we need to start the raid set;
mkraid /dev/md0
(if you have an already started set you must stop that and
restart with option --force. (read the instructions))
Now it's time to create a filesystem on the "new" device.
mke2fs -j -c -b 4096 -R stride=8 /dev/md0
I want ext3 (-j) I want to check the filesystem (-c) I want 4k block size
(-b 4096, which is default by the way) and I want to tell the formatting
tool something about my raid chunk size.
Calculate it this way; stride = chunk-size / block-size
(all values in kilobytes)
For me the calculation is; 32 / 4 = 8
I must not forget to format the partition which is going to be /boot
mke2fs -j -c /dev/sda1
Instead of letting the Slackware setup mount the partitions I do it myself.
(the setup is *not* aware of raid devices anyway, so this needs to be done
manually.)
mount /dev/md0 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
Then we can run 'setup'
Do a regular install, but be sure to *not* add any partitions
to install on. Just choose;
"--- (done adding partitions, continue with setup"
I also chose simple lilo install on mbr.
When the install is done, exit 'setup' and do the following;
cp /etc/raidtab /mnt/etc/raidtab
edit /mnt/etc/fstab and add;
/dev/md0 / ext3 defaults 1 1
/dev/sda1 /boot ext3 defaults 1 2
edit /mnt/etc/lilo.conf
be sure that;
root = /dev/fd2
gets changed to;
root = /dev/md0
Then run
lilo -C /mnt/etc/lilo.conf
Now you should be able to boot the machine with / on a RAID 0 device.
When trying to follow my own write-up I had the following problem
when trying to boot up the newly installed Slackware.
(This happend once of the 4 times I tested.)
For every partition I got;
md: /dev/sda2's has invalid sb, not importing!
(Or a similar error message, at that point I didn't take notes, sorry.)
The computer halted with a Kernel Panic during boot.
I then booted from the CD again, created /etc/raidtab again
(equal to the first one), and reran mkraid /dev/md0.
After that I could mount /dev/md0, and everything looked
ok there. Slackware was installed.
I did reboot, and everything came up as it should.
I still wonder if I followed this write-up to the letter or if
something strange happened.
Suggestions and error corrections are welcome.
Karl Magnus Kolst๘ karl.kolsto@geo.uib.no
Thanks to John Jenkins and Erik Jan Tromp for looking through this doc
and comming with suggestions.
# end of file
Get it from : http://userlocal.com/articles/raid0-slackware-linux.php
๑๐/๒๘/๒๕๕๒
INSTALLING SLACKWARE LINUX version 8.1 WITH ROOT PARTITION ON A SOFTWARE RAID level 0 DEVICE.
tune2fs
tune2fs - adjust tunable filesystem parameters on ext2/ext3 fi
lesystems
SYNOPSIS
tune2fs [ -l ] [ -c max-mount-counts ] [ -e errors-behavior ]
[ -f ] [
-i interval-between-checks ] [ -j ] [ -J journal-optio
ns ] [ -m
reserved-blocks-percentage ] [ -o [^]mount-options[,...]
] [ -r
reserved-blocks-count ] [ -s sparse-super-flag ] [ -u user ] [
-g group
] [ -C mount-count ] [ -E extended-options ] [ -L volume-name
] [ -M
last-mounted-directory ] [ -O [^]feature[,...] ] [ -T t
ime-last-
checked ] [ -U UUID ] device
DESCRIPTION
tune2fs allows the system administrator to adjust various
tunable
filesystem parameters on Linux ext2/ext3 filesystems.
๑๐/๒๑/๒๕๕๒
เรียกใช้ตัวอักษรหรือตัวอักขระพิเศษด้วยปุ่ม Alt
เคย เห็นไหมครับ ว่าเวลาที่คุย IM ไม่ว่าจะเป็น MSN, Live Messenger, Skype, Goolgle Talk, Yahoo Messenger หรือโปรแกรมสนทนาออนไลน์อื่นๆ เราจะเห็นว่าบางคนหรือคู่สนทนาของเราพิมพ์สัญลักษณ์ต ัวอักษร หรือตัวอักขระพิเศษๆ แปลกๆส่งมา หรือแม้กระทั่งตกแต่งเว็บ Social หรือบล็อกต่างๆ เช่น Facebook, Myspace, Hi5, Exteen, Bloggang เป็นต้น แล้วเราจะเรียกใช้ตัวอักษรหรือตัวอักขระพิเศษเหล่านั ้นได้อย่างไร?
วันนี้ผมจะมาแนะนำวิธีเรียกใช้งานตัวอักษร หรือตัวอักขระพิเศษเหล่านั้นด้วยปุ่ม Alt คีย์ ซึ่งมีวิธีการดังต่อไปนี้
วิธี การ ก็คือ ให้กดปุ่ม Alt คีย์ค้างไว้ ตามด้วยกดปุ่มตัวเลข 4 หลักบนคีย์บอร์ด เมื่อกดปุ่มตัวเลข 4 หลักบนคีย์บอร์ดที่ต้องการเรียบร้อยแล้ว ให้ปล่อยปุ่ม Alt คีย์ที่กดค้างไว้ จากนั้นคุณก็จะเห็นตัวอักษร หรือตัวอักขระพิเศษ ปรากฏขึ้นมาแล้วหล่ะครับ
ยกตัวอย่าง เช่น: Alt-0169 = © or Alt-0174 = ® or Alt-0153 = ™
|
1. ให้ไป Start > Programs > Accessories > System Tools > Character Map
2. หรือไปที่ Start > Run > จากนั้นพิมพ์ว่า Charmap แล้ว OK หรือกดปุ่ม Enter
3. หลังจากที่เปิดโปรแกรมขึ้นมาเรียบร้อยแล้ว ให้เลือกรูปแบบตัวอักษร แล้วคลิกที่ตัวอักษรพิเศษที่คุณต้องการ จากนั้นก็คลิก Copy แล้วเอาไปวางในโปรแกรมที่คุณต้องการ
เห็นไหมหล่ะครับ วิธีการง่ายๆเพียงเท่านี้ คุณก็จะสามารถใช้งานตัวอักษรหรือตัวอักขระพิเศษได้แล ้วหล่ะครับ
เครดิต:Webmonster
ที่มา http://webmonster.sapaan.net/archives/90#comment-282
หรือจะลองดูตารางอันนี้ประกอบด้วยได้ครับ
Special Characters — Alt Keyboard Sequences
ที่มา http://tools.oratory.com/altcodes.html
๗/๑๓/๒๕๕๐
Death Blue Screen (จอฟ้ามหาภัย และรหัสแก้ไข)
ได้อ่าน คิดว่าน่าจะเป็นแนวทางในการแก้ไขปัญหา ได้บ้าง รหัสที่แจ้งของ Blue Screen จริงๆมีเกินร้อยตัว
1.(stop code 0X000000BE) Attempted Write To Readonly Memory
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดจากการลง driver หรือ โปรแกรม หรือ service ที่ผิดพลาด เช่น ไฟล์บางไฟล์เสีย ไดร์เวอร์คนละรุ่นกัน ทางแก้ไขให้ uninstall โปรแกรมตัวที่ลงก่อนที่จะเกิดปัญหานี้ ถ้าเป็นไดร์เวอร์ก็ให้ทำการ roll back ไดร์เวอร์ตัวเก่ามาใช้ หรือ หาไดร์เวอร์ที่ล่าสุดมาลง (กรณีที่มีใหม่กว่า) ถ้าเป็นพวก service ต่างๆที่เราเปิดก่อนเกิดปัญหาก็ให้ทำการปิด หรือ disable ซะ
2.(stop code 0X000000C2) Bad Pool Caller
สาเหตุและแนวทางแก้ไข:
ตัวนี้จะคล้ายกับตัวข้างบน แต่เน้นที่พวก hardware คือเกิดจากอัฟเกรดเครื่องพวก Hardware ต่าง เช่น ram ,harddisk การ์ดต่างๆ ไม่ compatible กับ XP ทางแก้ไขก็ให้เอาอุปกรณ์ที่อัฟเกรดออก ถ้าจำเป็นต้องใช้ก็ให้ลงไดร์เวอร์ หรือ อัฟเดท firmware ของอุปกรณ์นั้นใหม่ และคำเตือนสำหรับการจะอัฟเดท ให้ปิด anti-virus ด้วยนะครับ เดียวมันจะยุ่งเพราะพวกโปรแกรม anti-virus มันจะมองว่าเป็นไวรัส
3.(stop code 0X0000002E) Data Bus Error
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดจากการส่งข้อมูลที่เรียกว่า BUS ของฮาร์ดแวร์เสียหาย ซึ่งได้แก่ ระบบแรม ,cache L2 ของซีพียู , เมมโมรีของการ์ดจอ, ฮาร์ดดิสก์ทำงานหนักถึงขั้น error (ร้อนเกินไป) และเมนบอร์ดเสีย
4.(stop code 0X000000D1)Driver IRQL Not Less Or Equal
สาเหตุและแนวทางแก้ไข:
อาการไดร์เวอร์กับ IRQ(Interrupt Request ) ไม่ตรงกัน การแก้ไขก็เหมือนกับ error ข้อที่ 1
5. (stop code 0X0000009F)Driver Power State Failure
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดจาก ระบบการจัดการด้านพลังงานกับไดรเวอร์ หรือ service ขัดแย้งกัน เมื่อคุณให้คอมทำงานแบบ"hibernate" แนวทางแก้ไข ถ้าวินโดวส์แจ้ง error ไดร์เวอร์หรือ service ตัวไหนก็ให้ uninstall ตัวนั้น หรือจะใช้วิธี Rollback driver หรือ ปิดระบบจัดการพลังงานของวินโดวส์ซะ
6.(stop code 0X000000CE) Driver Unloaded Without Cancelling Pending Operations
สาเหตุและแนวทางแก้ไข:
อาการไดร์เวอร์ปิดตัวเองทั้งๆ ทีวินโดวส์ยังไม่ได้สั่ง การแก้ไขให้ทำเหมือนข้อ 1
7.(stop code 0X000000F2)Hardware Interrupt Storm
สาเหตุและแนวทางแก้ไข:
อาการที่เกิดจากอุปกรณ์ฮาร์ดแวร์ เช่น USB หรือ SCSI controller จัดตำแหน่งกับ IRQ ผิดพลาด สาเหตุจากไดร์เวอร์หรือ firmware การแก้ไขเหมือนกับข้อ 1
8.(stop code 0X0000007B)Inaccessible Boot Device
สาเหตุและแนวทางแก้ไข:
อาการนี้จะมักเจอตอนบูตวินโดวส์ จะมีข้อความบอกว่าไม่สามารถอ่านข้อมูลของไฟล์ระบบหรือ boot partitions ได้ ให้ตรวจฮาร์ดดิสก์ว่าปกติหรือไม่ สายแพหรือสายไฟที่เข้าฮาร์ดดิสก์หลุดหรือไม่ ถ้าปกติดีก็ให้ตรวจไฟล์ boot.ini อาจจะเสีย หรือไม่ก็มีการทำงานแบบmulti OS ให้ตรวจดูว่าที่ไฟล์นี้อาจเขียน config ของ OS ขัดแย้งกัน
อีกกรณีหนึ่งที่เกิด error นี้ คือเกิดขณะ upgrade วินโดวส์ สาเหตุจากมีอุปกรณ์บางตัวไม่ compatible ให้ลองเอาอุปกรณ์ที่ไม่จำเป็นหรือคิดว่ามีปัญหาออก เมื่อทำการ upgrade วินโดวส์ เรียบร้อย ค่อยเอาอุปกรณ์ที่มีปัญหาใส่กลับแล้วติดตั้งด้วยไดร์เวอร์รุ่นล่าสุด
9. (stop code 0X0000007A) Kernel Data Inpage Error
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดมีปัญหากับระบบ virtual memory คือวินโดวส์ไม่สามารถอ่านหรือเขียนข้อมูลที่ swapfile ได้ สาเหตุอาจเกิดจากฮาร์ดดิสก์เกิด bad sector, เครื่องติดไวรัส, ระบบ SCSI ผิดพลาด, RAM เสีย หรือ เมนบอร์ดเสีย
10. (stop code 0X00000077) Kernel Stack Inpage Error
สาเหตุและแนวทางแก้ไข:
อาการและสาเหตุเดียวกับข้อ 9
11.(stop code 0X0000001E) Kmode Exception Not Handled
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดการทำงานที่ผิดพลาดของไดร์เวอร์ หรือ service กับ หน่วยความจำ และ IRQ ถ้ามีรายชื่อของไฟล์หรือ service แสดงออกมากับ error นี้ให้ทำการ uninstall โปรแกรมหรือทำการ roll back ไดร์เวอร์ตัวนั้น
ถ้ามีการแจ้งว่า error ที่ไฟล์ win32k สาเหตุเกิดจาก การ control software ของบริษัทอื่นๆ (Third-party) ที่ไม่ใช้ของวินโดวส์ ซึ่งมักจะเกิดกับพวก Networking และ Wireless เป็นส่วนใหญ่
Error นี้อาจจะเกิดสาเหตุอีกอย่าง นั้นคือการ run โปรแกรมต่างๆ แต่หน่วยความจำไม่เพียงพอ
12.(stop code 0X00000079)Mismatched Hal
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดการทำงานผิดพลาดของ Hardware Abstraction Layer (HAL) มาทำความเข้าใจกับเจ้า HAL ก่อน HAL มีหน้าที่เป็นตัวจัดระบบติดต่อระหว่างฮาร์ดแวร์กับซอฟท์แวร์ว่าแอปพลิเคชั่นตัวไหนวิ่งกับอุปกรณ์ตัวไหนให้ถูกต้อง ยกตัวอย่าง คุณมีซอฟท์แวร์ที่ออกแบบไว้ใช้กับ Dual CPU มาใช้กับเมนบอร์ดที่เป็น Single CPU วินโดว์ก็จะไม่ทำงาน วิธีแก้คือ reinstall วินโดวส์ใหม่
สาเหตุอีกประการการคือไฟล์ที่ชื่อ NToskrnl.exe หรือ Hal.dll หมดอายุหรือถูกแก้ไข ให้เอา Backup ไฟล์ หรือเอา original ไฟล์ที่คิดว่าไม่เสียหรือเวอร์ชั่นล่าสุดก๊อปปี้ทับไฟล์ที่เสีย
13.(stop code 0X0000003F)No More System PTEs
สาเหตุและแนวทางแก้ไข:
อาการนี้เกิดจากระบบ Page Table Entries (PTEs) ทำงานโดย Virtual Memory Manager (VMM) ผิดพลาด ทำให้วินโดวส์ทำงานโดยไม่มี PTEs ซึ่งเป็นสิ่งจำเป็นสำหรับวินโดวส์ อาการนี้มักจะเกิดกับการที่คุณทำงานแบบ multi monitors
ถ้าคุณเกิดปัญหานี้บ่อยครั้ง คุณสามารถปรับแต่ง PTEs ได้ใหม่ ดังนี้
1. ให้เปิด Registry ขึ้นมาแก้ไข โดยไปที่ Start > Run แล้วพิมพ์คำสั่ง Regedit
2. ไปตามคีย์นี้ HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management
3. ให้ดูที่หน้าต่างขวามือ ดับคลิกที่ PagedPoolSize ให้ใส่ค่าเป็น 0 ที่ Value data และคลิก OK
4. ดับเบิลคลิกที่ SystemPages ถ้าคุณใช้ระบบจอแบบ Multi Monitor ให้ใส่ค่า 36000 ที่ Value data หรือใส่ค่า 40000 ถ้าเครื่องคุณมี RAM
128 MB และค่า 110000 ในกรณีที่เครื่องมี RAM เกินกว่า 128 MB แล้วคลิก OK
รีสตาร์ทเครื่อง
14.(stop code 0X00000024) NTFS File System
สาเหตุและแนวทางแก้ไข:
อาการนี้สาเหตุเกิดจากการรายงานผิดพลาดของ Ntfs.sys คือไดร์เวอร์ของ NTFS อ่านและเขียนข้อมูลผิดพลาด สาเหตูนี้รวมถึง การทำงานผิดพลาดของ controller ของ IDE หรือ SCSI เนื่องจากการทำงานของโปรแกรมสแกนไวรัส หรือ พื้นที่ของฮาร์ดดิสก์เสีย คุณๆสามารถทราบรายละเอียดของerror นี้ได้โดยให้เปิดดูที่ Event Viewer วิธีเปิดก็ให้ไปที่ start > run แล้วพิมพ์คำสั่ง eventvwr.msc เพื่อเปิดดู Log file ของการ error โดยให้ดูการ error ของ SCSI หรือ FASTFAT ในหมวด System หรือ Autochk ในหมวด Application
เมื่อ: 10 กันยายน 2006, 1406
________________________________________
15.(stop code 0X00000050)Page Fault In Nonpaged Area
สาเหตุและแนวทางแก้ไข:
อาการนี้สาเหตุการจากการผิดพลาดของการเขียนข้อมูลในแรม การแก้ไขก็ให้ทำความสะอาดขาแรมหรือลองสลับแรมดูหรือไม่ก็หาโปรแกรมที่ test แรมมาตรวจว่าแรมเสียหรือไม่
16.(stop code 0Xc0000221)Status Image Checksum Mismatch
สาเหตุและแนวทางแก้ไข:
อาการนี้สาเหตุมาจาก swapfile เสียหายรวมถึงไดร์เวอร์ด้วย การแก้ไขก็เหมือนข้อ 15
17.(stop code 0X000000EA) Thread Stuck In Device Driver
สาเหตุและแนวทางแก้ไข:
อาการของ error นี้คือการทำงานของเครื่องจะทำงานในแบบวนซ้ำๆ กันไม่สิ้นสุด เช่นจะรีสตร์ทตลอด หรือแจ้งerror อะไรก็ได้ขึ้นมาไม่หยุด ปัญหานี้ สาเหตุอาจจะเกิดจาก bug ของโปรแกรมหรือสาเหตุอื่นๆ เป็นร้อย การแก้ไขให้พยายามทำตามนี้
1.ให้ดูที่ power supply ของคุณว่าจ่ายกำลังไฟเพียงพอกับความต้องการของคอมคุณหรือไม่ ให้ดูว่าในเครื่องคุณมีอุปกรณ์มากไปไม่เหมาะกับ power supply ของคุณ ก็ให้เปลื่ยนตัวใหม่ให้กำลังมากขึ้น ปัญหานี้ผมเคยมีประสพการณ์แล้ว 2 ครั้ง คือ
2. ให้คุณดูที่การ์ดจอว่าได้ใช้ไดร์เวอร์ตัวล่าสุด ถ้าแน่ใจว่าใช้ตัวล่าสุดแล้วยังมีอาการ ก็ให้ทำการ Rollback ไดร์เวอร์ตัวก่อนที่จะเกิดปัญหา
3. ตรวจดูการ์ดจอและเมนบอร์ดว่าเสียหรือไม่เช่น มีรอยไหม้, ลายวงจรขาด มีชิ้นสวนบางชิ้นหลุดจากตำแหน่งเดิม เป็นต้น
4. ดูที่ bios ว่าส่วนของ VGA slot เลือกโหมด 4x,8x ถูกตามสเปกของการ์ดหรือไม่
5. เช็คดูที่ผู้ผลิตเมนบอร์ดว่ามีไดร์เวอร์ตัวใหม่หรือไม่ ถ้ามีให้โหลดลงใหม่ซะ
6. ถ้าคุณมีการ์ดแลนหรือเมนบอร์ดของคุณมี on board อยู่ให้ disable ฟังก์ชั่น "PXE Resume/Remote Wake Up" โดยไปปิดที่ BIOS
18. (stop code 0X0000007F) unexpected Kernel Mode Trap
สาเหตุและแนวทางแก้ไข:
อาการนี้ส่วนใหญ่จะเป็นกับนัก overclock (ผมก็คนหนึ่ง) เป็นอาการ RAM ส่งข้อมูลให้ CPU ไม่สัมพันธ์กันคือ CPU วิ่งเร็วเกินไป หรือร้อนเกินไปสาเหตุเกิดจากการ overclock วิธีแก้ก็คือลด clock ลงมาให้เป็นปกติ หรือ หาทางระบายความร้อนจาก CPU ให้มากที่สุด
19. (stop code 0X000000ED)Unmountable Boot Volume
สาเหตุและแนวทางแก้ไข:
อาการที่วินโดวส์หาฮาร์ดดิสก์ไม่เจอ (ไม่ใช่ตัวบูตระบบ) ในกรณีที่คุณมีฮาร์ดดิสก์หลายตัว หนึ่งในนั้นคุณอาจใช้สายแพของฮาร์ดดิสก์ผิด เช่น ฮาร์ดดิสก์เป็นแบบ 33MB/secound ซึ่งต้องใช้สายแพ 40 pin แต่คุณเอาแบบ 80 pin ไปต่อแทน
ที่มา http://pc-thai.net โดยคุณ Uncle
๖/๒๖/๒๕๕๐
ท่านั่งที่เหมาะสมสำหรับผู้ใช้งานคอมพิวเตอร์
การปรับเก้าอี้และท่านั่งให้เหมาะสม
นั่งให้สะโพกอยู่ชิดพนักเก้าอี้ให้มากที่สุด
ปรับความสูงของเบาะให้พอเหมาะ เพื่อให้ฝ่าเท้าวางราบไปกับพื้นได้และหัวเข่าอยู่ในระดับเดียวกันหรือต่ำกว่าสะโพก
ปรับพนักเก้าอี้ให้เอนไปประมาณ 100-110 องศา ทำให้มั่นใจว่าหลังของน้องๆทั้งส่วนบนและล่างถูกรองรับโดยพนักพิงจ้า
ปรับที่วางแขนจนรู้สึกได้ว่าไม่เกร็งไหล่
การวางคิย์บอร์ด
อย่าวางคีย์บอร์ดให้ไปเกะกะการเอื้อมหยิบสิ่งของอื่นที่อยู่รอบๆ
นั่งให้ชิดกับคีย์บอร์ด หรือไม่ก็ดึงคีย์บอร์ดมาชิดตัวน้อง
จัดให้คีย์บอร์ดอยู่ตรงกับลำตัว หรืออาจจะเป็นส่วนที่ใช้งานบ่อยที่สุด เช่น ฝั่งตัวเลข ก็เลื่อนเอาฝั่งนั้นมาให้อยู่ตรงหน้าเราพอดี
ถ้ามีที่พักฝ่ามือ ก็จะดีแต่ควรใช้เฉพาะเวลาหยุดพิมพ์เท่านั้น เราไม่แนะนำให้ใช้ระหว่างพิมพ์นะจ๊ะรวมถึงความกว้างของที่พักฝ่ามือ ไม่ควรจะกว้างเกินไปและก็ไม่ควรจะสูงกว่า space bar ของคีย์บอร์ดด้วย
ตำแหน่งของจอภาพ เอกสารต่างๆ และ เครื่องโทรศัพท์
จัดตำแหน่งของจอภาพให้อยู่ตรงหน้าน้องพอดี หรือก็คือ อยู่ตรงกับคีย์บอร์ดนั่นเอง
ปรับความสูงของจอภาพให้ ขอบบนอยู่สูงกว่าระดับสายตาเวลานั่งขึ้นไป 2-3 นิ้ว
นั่งให้ห่างจากจอภาพประมาณ 1 ช่วงแขนแล้วค่อยปรับความชัดของจอให้พอดีกัน
วางเอกสารต่างๆ เช่น ต้นฉบับที่จะพิมพ์ตาม ให้อยู่ตรงหน้าพอดี หรือก็คือ วางไว้ระหว่างคีย์บอร์ดกับหน้าจอ แต่ถ้าไม่มีที่จริงๆ สามารถวางบนที่วางเอกสารติดกับหน้าจอก็ได้
วางโทรศัพท์ให้อยู่ภายในระยะที่เอื้อมถึงได้ง่าย
เลือกใช้ headset หรือ เปิด speaker เพื่อหลีกเลี่ยงการหนีบหูโทรศัพท์ขณะพิมพ์งาน
หยุดพักซะบ้าง
หยุดพัก ผ่อนคลายกล้ามเนื้อเป็นเวลาสั้นๆ ซัก 1-2 นาทีเมื่อนั่งทำงาน (หรือนั่งเล่นเกม) ติดต่อกันนาน 20-30 นาทีแล้ว รวมถึง หยุดพัก 5-10 นาทีทุกชั่วโมง และหลีกเลี่ยงการอยู่หน้าคอมฯในเวลาพักเที่ยงด้วย
ป้องกันอาการล้าทางสายตา โดยมองไปที่อื่นไกลๆ เป็นระยะๆ
พักสายตาโดยหาอะไรมาปิดตาไว้ เช่น ฝ่ามือของน้องๆเองก็ได้ ประมาณ 10-15 วินาที
๕/๓๑/๒๕๕๐
Chinese Professor Cracks Fifth Data Security Algorithm
Chinese Professor Cracks Fifth Data Security Algorithm
SHA-1 added to list of "accomplishments"
| Central News Agency | Jan 11, 2007 |
TAIPEI—Within four years, the U.S. government will cease to use SHA-1 (Secure Hash Algorithm) for digital signatures, and convert to a new and more advanced "hash" algorithm, according to the article "Security Cracked!" from New Scientist . The reason for this change is that associate professor Wang Xiaoyun of Beijing's Tsinghua University and Shandong University of Technology, and her associates, have already cracked SHA-1.
Wang also cracked MD5 (Message Digest 5), the hash algorithm most commonly used before SHA-1 became popular. Previous attacks on MD5 required over a million years of supercomputer time, but Wang and her research team obtained results using ordinary personal computers.
In early 2005, Wang and her research team announced that they had succeeded in cracking SHA-1. In addition to the U.S. government, well-known companies like Microsoft, Sun, Atmel, and others have also announced that they will no longer be using SHA-1.
Two years ago, Wang announced at an international data security conference that her team had successfully cracked four well-known hash algorithms—MD5, HAVAL-128, MD4, and RIPEMD—within ten years.
A few months later, she cracked the even more robust SHA-1.
Focus and Dedication
According to the article, Wang's research focusses on hash algorithms.
A hash algorithm is a mathematical procedure for deriving a 'fingerprint' of a block of data. The hash algorithms used in cryptography are "one-way": it is easy to derive hash values from inputs, but very difficult to work backwards, finding an input message that yields a given hash value. Cryptographic hash algorithms are also resistant to "collisions": that is, it is computationally infeasible to find any two messages that yield the same hash value.
Hash algorithms' usefulness in data security relies on these properties, and much research focusses in this area.
Recent years have seen a stream of ever-more-refined attacks on MD5 and SHA-1—including, notably, Wang's team's results on SHA-1, which permit finding collisions in SHA-1 about 2,000 times more quickly than brute-force guessing. Wang's technique makes attacking SHA-1 efficient enough to be feasible.
MD5 and SHA-1 are the two most extensively used hash algorithms in the world. These two algorithms underpin many digital signature and other security schemes in use throughout the international community. They are widely used in banking, securities, and e-commerce. SHA-1 has been recognized as the cornerstone for modern Internet security.
According to the article, in the early stages of Wang's research, there were other researchers who tried to crack it. However, none of them succeeded. This is why in 15 years hash research had become the domain of hopeless research in many scientists' minds.
Wang's method of cracking algorithms differs from others'. Although such analysis usually cannot be done without the use of computers, according to Wang, the computer only assisted in cracking the algorithm. Most of the time, she calculated manually, and manually designed the methods.
"Hackers crack passwords with bad intentions," Wang said. "I hope efforts to protect against password theft will benefit [from this]. Password analysts work to evaluate the security of data encryption and to search for even more secure … algorithms."
"On the day that I cracked SHA-1," she added, "I went out to eat. I was very excited. I knew I was the only person who knew this world-class secret."
Within ten years, Wang cracked the five biggest names in cryptographic hash algorithms. Many people would think the life of this scientist must be monotonous, but "That ten years was a very relaxed time for me," she says.
During her work, she bore a daughter and cultivated a balcony full of flowers. The only mathematics-related habit in her life is that she remembers the license plates of taxi cabs.
With additional reporting by The Epoch Times.
๔/๑๙/๒๕๕๐
| Subject: Re: Visual Basic Binary file access Answered By: theta-ga on 02 Nov 2002 09:14 PST Rated: |
Reading binary data in VB is really quite easy. I'm am providing some
example code here, with pointers to articles you might refer to in
case you want more examples or explainations.
Here, I will try to read a record ExampleData from a binary file.
Since you say that you already know the binary file record structure,
you can substitute my ExampleData structure with your own record
structure.
I have included code for both VB 6 & VB 7.NET
Explaination of code snippets : I try to read/write a fixed length
record from/to a binary file.The record contains a fixed length string
of 10 chars and an integer value. I first write one record of this
type to the file and then read one record from the file in binary
mode.I also show you how to get the length of an open file in VB.
CODE SNIPPETS FOR VB5/VB6
--------------------------
'Define ExampleData structure
Type Exampledata
Name as String * 10 'This is a fixed length string of 10
characters
Age as Integer
End Type
Dim myData As ExampleData ' Declare variable of type ExampleData
...
'Open Binary File
'FOr Binary Access, The Open function has the following format :
'Open filename For Binary As filenumber
Open "c:\BinaryFile.bin" For Binary As #1
'When writing to a binary file, we use the Put statement.
'Put #FileNumber, ByteNumber, VariableName
'ByteNumber is the file pos from which we start writing the data
Put #1,,myData ' Writes mydata in file at the current position
'Close the file
Close #1
....
'Read data from the file
Open "c:\BinaryFile.bin" For Binary As #1
'To read data, use the Get function
'Get #FileNumber, ByteNumber, VariableName
'Data is read from the binary file position specified by ByteNumber
Get #1,,myData 'Read in data from the current file pos
'Print Data
Debug.Print myData.Name
Debug.Print myData.Age
'To get the length of file, use the LOF(filenumber) function
Debug.Print "Length of the Binary File = " & LOF(1)
'Close File
Close #1
RELATED LINKS
-------------
- Binary Files - File Access by James Crowley
A very good tutorial On using Binary Files under VB. Highly
recommended!
( http://www.developerfusion.com/show/85/1/ )
- MSDN Help topic: "Using Binary File Access"
The standard MS Help Article on Binary files in VB 6
( http://msdn.microsoft.com/library/devprods/vs6/vbasic/vbcon98/vbconusingbinaryfileaccess.htm
)
- MS KnowledgeBase Q257794 - HOWTO: Use Binary File Access with
Visual Basic
Adds to the above MSDN Article. Provides example code for
variable length records access in a binary file using VB.
( http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q257794&
)
- MS Support : File Access with Visual Basic® for Applications
Although for VBA, the same code works for VB6. Provides a list of
all the functions that can be used with the Binary file Access mode in
VB.Also provides example code.
( http://support.microsoft.com/default.aspx?scid=/support/excel/content/fileio/fileio.asp
)
======================
CODE SNIPPETS FOR VB7.NET
-------------------------
'Define ExampleData structure
Structure Exampledata
Name as String 'Fixed length string of 10
characters
Age as Integer
End Type
Public myData As ExampleData ' Declare variable of type
ExampleData
...
'Open Binary File
'For Binary Access, use the FileOpen function which has the form :
'FileOpen(FileNumber, FileName, OpenMode.Binary)
FileOpen (1,"c:\BinaryFile.bin", OpenMode.Binary
'When writing to a binary file, we use the FilePut() function.
'FilePut( FileNumber,VariableName)
FilePut(1,myData) ' Writes mydata in file at the current position
'Close the file
FileClose(1)
....
'Read data from the file
FileOpen (1,"c:\BinaryFile.bin", OpenMode.Binary
'To read data, use the FileGet function
'FileGet (FileNumber, VariableName)
FileGet(1,myData) 'Read in data from the current file pos
'Display length of open file using the func. LOF(filenumber)
Debug.WriteLine(LOF(1))
'Close File
FileClose(1)
RELATED LINKS
-------------
- MSDN VB.NEt File Functions Reference
- FileOpen()
( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmopen.asp
)
- FilePut()
( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmput.asp
)
- FileGet()
( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctget.asp)
- LOF()
( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctlof.asp
)
MSDN Article : Binary File Access
( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaconopeningfileforbinaryaccess.asp
)
===========================
I hope the above answer will satisfy your needs.
If you need any clarifications, just ask.
Till the, Happy Coding !
:)