當台灣媽媽因為小朋友會背99乘法高興的同時,印度小孩已經在背1919乘法了!
難怪近幾年印度進步得那麼快~
印度的九九乘法表是從1背到19(→19X19乘法?),不過您知道印度人是怎麼記11到19的數字嗎?
我是看了下面這本書之後才恍然大悟的。
「 印 度 式 計 算 訓 練 」
介紹了加、減、乘、除的各種快速計算方法,不過在這裡我只介紹印度的九九乘法。
- Apr 10 Wed 2013 09:01
[生活]19x19 乘法
- Oct 18 Thu 2012 09:07
設定 MySQL root 密碼
MySQL 預設是沒有 MySQL root 密碼,這是相當大的安全性風險。您必須要設定 MySQL root 密碼。
#mysqladmin -h localhost -u root password your-new-password
- Oct 18 Thu 2012 09:05
重新設定 MySQL root 密碼
MySQL 的 root 密碼,可以透過以下方法重新設定:
1. 停止 MySQL server。
# /etc/init.d/mysql stop
2. 啟動 MySQL server,並加上 –skip-grant-tables 參數,便可以略過輸入密碼的過程:
# mysqld_safe --skip-grant-tables --user=root &
3. 用 root 連接到 MySQL server,輸入:
#mysql -u root
4. 進入 MySQL server 後,輸入以下幾行 SQL 語句:
- Sep 05 Wed 2012 00:23
Xen VM boot from cd/dvd
進入Xen Server console
執行
xe vm-param-set HVM-boot-policy="BIOS order" uuid=vm_uuid
完成之後,一定要改回來
xe vm-param-set HVM-boot-policy="" uuid=vm_uuid
- Sep 05 Wed 2012 00:12
CentOS 出現Kernel panic解決方法
1. 使用RHEL/CentOS光碟開機.
2. 在進入光碟畫面後,按「F5」進入Rescue mode.
3. 接著在Command Line下輸入「linux rescue」.
4. 進入一連串的設定中,我通常不會啟動Networking,然後其他選向接選預設值.
5. 接著會進入光碟Rescue mode的OS中, 要下「chroot /mnt/sysimage」.
6. 然後再下指令「fsck -y -A -f」
7. 修復完成後重開機就ok了.
- Aug 27 Mon 2012 11:38
IIS 7.5 FTP 出現 No mapping for the Unicode character exists in the target multi-byte code page
Windows Server 2008 內建的IIS 7.5 FTP, 預設允許使用 UTF-8, 但如果使用 Windows 7內建的檔案總管當成 FTP Client, 確會發生無法上傳中文檔案的問題. 會出現如下訊息:
451 No mapping for the Unicode character exists in the target multi-byte code page
但用 Filezilla 確又是正常的
解決方法:
打開 IIS 7.5 FTP 進階屬性設定: 將 "允許 UTF-8" 設為 False 就可以正確使用中文檔案了
- Aug 24 Fri 2012 11:19
Linux Quota 設定筆記
第1步:設定檔案系統支援Quota,以下是需要二選一:
- 利用mount 指令:
[root@localhost ~]# mount -o remount,usrquota,grpquota /home - 設定/etc/fstab:
[root@localhost ~]# vi /etc/fstab
修改
/dev/sda2 /home ext3 defaults,usrquota,grpquota 1 2
- 看結果:
- Aug 20 Mon 2012 10:27
移除 Active Directory 中已經不存在的網域主控站資料
AD (Active Directory) 環境中原本有三台 網域主控站 (Domain Controller ; DC),但其中有一台無預警的掛掉了,還有另外兩台 DC 可以正常運作,因此對整體 AD 環境沒啥影響;但是掛掉的DC的紀錄並不對自動從 AD 中移除,必須強制移除這個 DC 伺服器資料的方法。
在 Windows Server 2008 或 Windows Server 2008 R2 要刪除無效的 DC 是非常容易的,透過 GUI 介面就能順利刪除這些資料,以下是刪除的簡單 3 步驟:
1. 開啟 Active Directory 站台及服務
2. 展開樹狀結構到你想刪除的那台 DC 伺服器,並且展開到 NTDS Settings 節點,你必須先從刪除 NTDS Settings 節點,才能真正刪除那一台無效的 DC 伺服器物件!
3. 此時你才能接著刪除那個無效的 DC 伺服器物件
- Aug 08 Wed 2012 15:03
Install HP SNMP Agent on Citrix XenServer 6
1. Go to hp.com and support & drivers. Search for your hardwares drivers, for example HP ProLiant DL380 G7. When selecting operating system select Citrix XenServer 6.x. Dowload “HP SNMP Agents for Citrix XenServer “. The file that you download is named hp-agents-xs.iso.
2. Upload hp-agents-xs.iso to your XenServer host. For example via FileZilla:
Address: XenServers IP-address och hostname.
Username: root
Password: <root password>
Port: 22
Create a folder named iso in /. Upload hp-agents-xs.iso to the iso folder.
3. Mount the iso image on the XenServer host.
- Jul 11 Wed 2012 11:32
Linux 開機後自動執行script
將要執行的script 寫號,並完成測試
然後
vi /etc/rc.local
把要執行的script完整路徑放進去
下次重開機就會跑了