set path=%path%+;C:\Program Files\Java\jre7\bin
set classpath=C:\Program Files\Java\jre7\lib
save as *.bat file and run
ref:http://registerboy.pixnet.net/blog/post/24370560-windows7下關於jdk-環境變量-常見問題
set path=%path%+;C:\Program Files\Java\jre7\bin
set classpath=C:\Program Files\Java\jre7\lib
save as *.bat file and run
ref:http://registerboy.pixnet.net/blog/post/24370560-windows7下關於jdk-環境變量-常見問題
quote from:
http://www.ehow.com/how_5942169_convert-bootable-iso-bootable-usb.html
1
Insert your USB drive into the USB slot in your computer. Open a command prompt window by going through the “Start” menu and searching for “command prompt.” Type “diskpart” into command prompt and press “Enter.” Enter in “list disk” and see what disk number your USB flash drive is. Enter in “select disk #” with # being the disk number of your USB drive. If your USB is disk 3, you would enter in “select disk 3.” Type in “clean” and your USB drive will be erased.
2
Type in “create partition primary” followed by “select partition 1.” Type in “active” and then “format fs=fat32.\" Finally enter in “assign” and type in “exit.” Your USB is now ready to have the ISO put onto it. Copy and paste your bootable ISO file into your USB flash drive. Alternatively, you can mount the ISO file as a virtual drive with Daemon Tools, which is available in the resource section of this guide. Once mounted, open a new command prompt window and enter in “xcopy d:\\*.* /s/e/f e:\\.” The drive letter “d” is the mounted ISO drive and the drive letter “e” is the USB drive. If your ISO is drive X and USB is Y, the command will be “xcopy x:\\*.* /s/e/f y:\\.”
3
Reboot your computer and enter into the BIOS settings by pressing the “F2” button when you see your computer manufacturer’s name. Go to “Boot Options,” and set your USB drive as 1st priority. Press the “F10” button to save your settings, and your computer will reboot from the USB drive.
Possible:
Mount
Umount /dev/sda1
Used by RAID
mdadm -S /dev/md1
|
|
|
|
|
|
|
|
|
|
|
/etc/profile.d/term.sh
#!/bin/bash |
Refer:http://fasterdata.es.net/host-tuning/ms-windows/
|
|
|
import math for n in range(2, 100): o = n s = set() i = 2 j = math.floor(n) while i < j: if o % i == 0: s.add(i) o //= i else: i+=1 if len(s): print(n, ':' ,','.join(str(v) for v in sorted(s))) else: print(n, ' is a prime number')
2 is a prime number 3 is a prime number 4 : 2 5 is a prime number 6 : 2,3 7 is a prime number 8 : 2 9 : 3 10 : 2,5 11 is a prime number 12 : 2,3 13 is a prime number 14 : 2,7 15 : 3,5 16 : 2 17 is a prime number 18 : 2,3 19 is a prime number 20 : 2,5 21 : 3,7 22 : 2,11 23 is a prime number 24 : 2,3 25 : 5 26 : 2,13 27 : 3 28 : 2,7 29 is a prime number 30 : 2,3,5 31 is a prime number 32 : 2 33 : 3,11 34 : 2,17 35 : 5,7 36 : 2,3 37 is a prime number 38 : 2,19 39 : 3,13 40 : 2,5 41 is a prime number 42 : 2,3,7 43 is a prime number 44 : 2,11 45 : 3,5 46 : 2,23 47 is a prime number 48 : 2,3 49 : 7 50 : 2,5 51 : 3,17 52 : 2,13 53 is a prime number 54 : 2,3 55 : 5,11 56 : 2,7 57 : 3,19 58 : 2,29 59 is a prime number 60 : 2,3,5 61 is a prime number 62 : 2,31 63 : 3,7 64 : 2 65 : 5,13 66 : 2,3,11 67 is a prime number 68 : 2,17 69 : 3,23 70 : 2,5,7 71 is a prime number 72 : 2,3 73 is a prime number 74 : 2,37 75 : 3,5 76 : 2,19 77 : 7,11 78 : 2,3,13 79 is a prime number 80 : 2,5 81 : 3 82 : 2,41 83 is a prime number 84 : 2,3,7 85 : 5,17 86 : 2,43 87 : 3,29 88 : 2,11 89 is a prime number 90 : 2,3,5 91 : 7,13 92 : 2,23 93 : 3,31 94 : 2,47 95 : 5,19 96 : 2,3 97 is a prime number 98 : 2,7 99 : 3,11 |