Thursday, September 22, 2011

Configure Max Transfer Unit (MTU) size in Windows 7


奇怪, 作為一個web developer/programmer...
但我記錄的都是system support 的事....................................


回正題吧, 今天想把 PC 的 Network 的 MTU 調教一下...

在Windows 7 / Vista , 用command "netsh" 就可以完成

先輸入 >netsh 
再輸入 >interface ipv4 show subinterfaces
這個是把現在所有的interface show 出來




這個就是改 MTU 的command
 輸入 >interface ipv4 set subinterface "Wireless Network Connection" mtu=1400 store=persistent

 1. 要把那個Wireless Network Connection 換成當前需要更改的 Interface Name e.g. Local Area Network
 2. MTU=1400 這個就是你要把MTU 改成多少
 3. store=persistent 這個可以是(active || persistent)
   active 就是 這個變動只維持至next boot, 即是當重啟電腦後, 原本的設定會回復
   persistent 當然就是永久性的, keep 落去 ~

 

..這就 OK 了


Wednesday, August 31, 2011

Mysql Workbench crashed on startup in Windows 7 - 64bit


在家安裝了Mysql Workbench 5.2
當開啟時, 就crashed 了. 如下圖




.... 問題天天都多 :(
先update 一下java 吧... 用java 寫的...很多時也是java的版本影響
更新後... 結果一樣

於是走到 Event Log 看看...又如下圖


始乎反而是關 ATI 跟direct X 的driver 吧....!@*&^#*#$&#$

不理了, 到 ati.amd.com 找最新又stable的...更新一下... 我找到的是 11.8 

update後... 順利開啟 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!~~~~~~~~~~



computer config:

Display Card : ATI 4850
OS: Windows 7 Ultimate 64bit

ATI 的 driver 真夠廢... 這次好運地有個新版本是fixed 的....

Monday, August 29, 2011

Resizing Partition in Mac OS X


今天需要resize partition in Mac OS

事緣該Macbook Air 用bootcamp setup 了... windows 及 Mac OS X...
但日子久了, User也習慣地使用windows... 令windows那邊 not enough space.
於是打算把mac os 那邊閒著的space, 分給windows...

partition magic 那類軟件似乎support 不了hfs , 也沒花太多時間找軟件,
反正Mac OS X 本身就有resizing partition 的program.

我不知道有GUI 的... 於是就在command line 完成了...
(事後才發覺有GUI 的... 不用找command 那麼麻煩啦...)

先 open up "Console"

> diskutil list
輸入這個以顯示partition 的名稱編號, 留意一個identifier 
e.g. disk1s1 & disk1s2

當分別到那個是mac os 的partition, 就可以resize 了
> diskutil resizeVolume disk1s2 40G

單看 command 也可以理解 
disk1s2 這個按個別情況, 有所不同, 
40G 就是resize 完成後, 這個partition 會變成多大

resize 完成後, 輸入
> disktool -r
以refresh 狀態... 

當然也可以restart 整個電腦,最後我回到windows , 再用resize partition 的軟件,
把空間 join 回 windows 的partition , 就完成了

by the way, GUI 的 diskutil 
就在 application > Utilities > Disk Utility > Partition

這個簡單太多了~ 

不過這個始終是partition 的事情... take your own risk


Thursday, August 25, 2011

The service did not respond to the start or control request in a timely fashion.



今天在iis 安裝完 SMTP Service 後, 在iis內無法啟動 SMTP
並出現以下的錯誤訊息
"The service did not respond to the start or control request in a timely fashion."
在 Event Log 內一點相關的東西也沒有...

在MS 的 KB 中, 找到這兩個有關聯的
http://support.microsoft.com/default.aspx?scid=kb;en-us;319133
http://support.microsoft.com/default.aspx?scid=kb;en-us;296086

but no luck...

在 run > iisreset 後, 看reset 後, 會否有其他訊息
但結果也一樣....

最後發覺是一個白痴的問題...

在 services.msc 內, SMTP 的 services 不知為何default 是 disable 了...

start 返 "Simple Mail Transfer Protocol" Service, 就正常了!