顯示包含「系統管理」標籤的文章。顯示所有文章
顯示包含「系統管理」標籤的文章。顯示所有文章

2013年1月13日

電腦不太穩定? Windows 內置的「可靠性監視器」或可幫到你

近來家中的電腦不太穩定經常當機,才想起 Windows 內附了一套十分有用的「可靠性監視器」。

使用過Windows的人可能發覺程式在當掉時,會問你要不要回報。其實從Windows Vista、Server 2008 時開始 (到目前的Windows 7, Windows 8 等),就內建了「可靠性監視器」,當你安裝新的裝置、軟體、軟體當機、Windows更新等都會被記錄下來。正因為這樣,我們可以籍著「可靠性監視器」找出最常當機的程式,從而作進一步解決方案,如移除或者更新它,好讓系統保持穩定運行。

請到我在 iCanDo 的文章繼續閱讀…

2012年7月6日

剛買了 Win7 電腦的朋友注意了 (或擁有 Win7)

如果你係2012 年 6 月 2 日到 2013 年 1 月 31 日期間購買合格的 Windows 7 電腦 (簡單地說是倆付正版 Windows 7 的電腦),那之後便可以以 HK$119.00 元的優惠價格取得 Windows 8 專業版呢!


詳情可以看這裡,目前設有預先通知服務可登記

從 Cakewalk 網誌看 Win8 的效能提升

剛看了一篇 Cakewalk 網誌 "WINDOWS 8 – A BENCHMARK FOR MUSIC PRODUCTION APPLICATIONS"。從中看到 Win8 能顯著提升音樂軟件的效能! 這的確令我對 Win8 有多點期待。

以下是簡要一下結果:

2012年6月5日

Reset ACL (Ownership and Permission) in Windows 7

I got trouble with Cygwin 1.7 in Windows7 when I create directory.  The ACL (Ownership and Permission) of that created directory was changed to unwanted settings.  If we only need the default ACL which like what we do in Windows Explorer, below command may be helpful.

icacls /T /Q /C /RESET

NOTE:


  • /T - Performs the operation on all specified files in the current directory and its subdirectories.
  • /C - Continues the operation despite any file errors. Error messages will still be displayed
  • /Q - Suppresses success messages.
  • /RESET - Replaces ACLs with default inherited ACLs for all matching files.
Reference: Icacls

2012年3月11日

擺平了嗎? 討厭死的 Windows 藍屏!

一部用了二三年的電腦,上次加裝RAM後變得有點不穩定,一量期中總會出現藍屏,昨天按網上的文章後做了一些設定/測試,結果導致完全不能使用了,一登入便出現藍屏 (BSOD)!

2012年3月7日

解決安裝 MEGA2560 問題的一些心得

很久沒有使用 Arduino MEGA2560,當今天插上USB時便遇到大問題,結果花了我大半天才修好! 為怕忘記所以立刻寫下一些心得。

2012年1月29日

解決遠端關機 (psshutdown) 時的一些問題

我今天嘗試使用 psshutdown 軟體得一部電腦重啟另一部 Windows XP Profression SP2 的電腦,但遇到了問題。我執行 psshutdown \\192.168.1.2 -r 時,得到了:

""Make sure that the default admin$ share is enabled on..."

從網上得到的資料是因為 Windows 為了安全,一般把 admin$ 給關掉,那麼我便須要打開它,過程如下:

2011年6月3日

以後唔使怕係 Browser 入料時突然無晒所有入咗嘅資料

有沒試過喺 Browser 入料時突然無晒所有入咗嘅資料,而因為:
  1. 唔覺意回到上一頁?
  2. 唔覺意 Close 咗 Browser?
  3. Browser Halt/Crash 咗?
  4. 電腦突然 Halt/Crash 咗?
以上情況我有好幾次經驗了,有啲網站有"自動儲存"還好,可惜大部份都沒有"自動儲存"功能呢。
想一下,會不會有 browser plugin 幫手自動 save 起我打過吧內容呢?

2011年4月30日

個人(網站)密碼的管理方法

近年,互聯網發展及普及真的很快。而很多網站都須要登入才能使用。這導致密碼管理變得越來越煩人。而且,密碼太簡單又怕黑客盜用。那麼,密碼的產生及管理就變得迫切了。

所幸,現在有些免費軟件幫忙管理密碼,不過,單靠軟件還不足夠。我們須要的,是一套恆常使用的方法 -- 一套平衡了安全性跟實用性為原則的方法。

2011年4月22日

2011年4月13日

開設網站的二三事

近日,多了朋友問我有關開設 (公司) 網站的事宜。有見及此,我把一些心得寫下,方便一下大家。

思想準備

首先,你要有以下的心理準備:
  1. 開設成本可高可低,但網站維護成本絕對不可低估 -- 主要在於人力、時間方面。
  2. 網站用起來易,看似間單,背後卻可以很複雜的。 (真的須要 IT 技術人員支援呢)
  3. 網站是你的,整個架設要高度參與,不可假手於人。(這可是一般人的誤解喲~~)
  4. 網站維護是沒完沒了的.......
然後,你要清楚/問自己:
  1. 網站有什麼功能? (是一個 Blog? 網上商店?...etc)
  2. 網站給什麼人看? (即 Target Audience)
  3. 內容須要時常更新嗎? (十年都唔做更新就用得 Frontpage 啦)
  4. 瀏覽者連不上網站時有幾要緊? 又或者等太等久? 
  5. 網站資料有幾要緊? 會擔心跟另人共用一台服務器 (電腦) 嗎 ~ 即使告訴你安全的話?
  6. 須要有自己的域名嗎? (如: yourcompany.com )

開設網站主要步驟

好了,以下是開設網站的一些主要步驟:

Top 7 Myths about HTTPS

 Copied Content Below: 

Myth #7 – HTTPS Never Caches

People often claim that HTTPS content is never cached by the browser; perhaps because that seems like a sensible idea in terms of security. In reality, HTTPS caching is controllable with response headers just like HTTP.
Eric Lawrence explains this succinctly in his IEInternals blog:
It comes as a surprise to many that by-default, all versions of Internet Explorer will cache HTTPS content so long as the caching headers allow it. If a resource is sent with a Cache-Control: max-age=600 directive, for instance, IE will cache the resource for ten minutes. The use of HTTPS alone has no impact on whether or not IE decides to cache a resource. (Non-IE browsers may have different default behavior for caching of HTTPS content, depending on which version you’re using, so I won’t be talking about them.)

2009年6月8日

ZK Webflow and GenericForwardComposer

Problem:
Autowire's component/bean declared in Java class (extending GenericForwardomposer) fail to bind view's component when using ZK Webflow

Symptom:
  1. Example, there are two zul page which handled by FlowHandler. First from with 1 textbox (Login Name) and 2 buttons (Next page, Login).
  2. In the Java, there is autowire for Login Name. So, the method onClick$login() is able to get the value from the textbox when the login button is clicked.
  3. If the "Next page" button is clicked (e.g. self="@{action(next) }" is assigned). Next ZUL is show without any problem.
  4. However, if the flow go back to first page or reach end-state (in XML). For whatever I type in the textbox, the value cannot be read from the java. It will read previous data/instance I typed.
Solution:
  • Create a session managed bean (note: implements Serializable). It can be managed by either (1) Spring, or (2) FlowScope
  • Save the data from component values to a bean attributes. Handled by - on Transit.
  • If it is necessary, the bean value can be retrieved from ZUL
  • In the Java file, setup the autowire variable so it can be accessed by the class methods.
Note:
  • "session.invalidate()" mehtod will invalidate the session so the Controller class will be initialized once again. Therefore, the autowire will be setup once again too. It can be called like
  • To initialize the bean within the flowScope, place the initializer in , example:
  • To initialize the bean within Spring, put the tag in application-context.xml, example:

2009年5月28日

不要太迷信RAID 1 的保護是 100%

在電腦中,最常保護資料的技術要算是 RAID 了,當中 RAID1 (Mirroring) 的保護力是最大的。相信沒有人反對是吧。
近來看多了雜誌和廣告,她們對 RAID 有點吹捧。不是說她們不對,而是太過信任 RAID 的話可能後悔難返。
事情是這樣的,有天公司的 Server 因一些原因升級,同事估計 Server 有 RAID1 保護,所以放心的去做,當然為了安全,已經叫我把有用的資料 Backup 起來。所以我便把資料打包好,好讓同事取走。可是,升級後 Server 不能正常運作,就連救機碟都沒用。本來以為有了 RAID1 就萬無一失,誰知 RAID1 就連升級錯誤都一起 Backup 了。更不幸的,是我 Backup 的資料仍然留在 Server 裡... 以後的不用說了吧~
NOTE: RAID1,只可以保障其中一隻 Harddisk 失靈時用,資料性或Application 錯誤不保!
所以,結論是當你的資料很緊要的話,花多點錢、時間同工夫,才可以減低風臉。
以下我分享一下我的心得:
  1. 使用 Backup software,如 Windows Backup, Apple OSX Time Machine
  2. 資料要每日要做一次 Incremental Backup,每星期做一次 Full Backup
  3. Backup 要存於另一部電腦或外置儲存裝置 (如 DVD, USB Drive, NAS…etc),麻煩的話都要存 Full Backup 於外置儲存裝置,Incremental Backup 於內部 Harddisk。
  4. 系統 (即 Boot/OS 機) 跟重要資料的 Partition 要分開 (如 DATA 放 D: drive)
  5. 有錢可以用 RAID1,以避免 Harddisk 失靈 (只有其中一隻)
  6. eSATA Docking/exteneral drive 是一種不錯的外置儲存裝置
下次我會分享我使用中的例子,Good Luck!

2009年4月26日

Solution for "NameVirtualHost *:80 has no VirtualHosts"

Symptom:
## Environment: Apache2.2.9 / Ubuntu 8.10 ##
  1. After add virtual host, I got this error message from the error.log
  2. In the new vhost file:

    ServerName myhost.server.com
  3. In default vhost file:

  4. In ports.conf
    "NameVirtualHost *:80"
Solution:
  1. Make sure all VirtualHost tag match NameVirtualHost. i.e.: *.80
  2. ServerName must match the hostname.
  3. Change the new vhost file:

    ServerName myhost.server.com
  4. In default vhost file:

    ServerName www.server.com
  5. Restart, observe error.log and try to reach the site from browser
OK, Problem solved.

How to reset webmin password

The following is the procedure to reset the webmin password (in Linux)
  1. Login as root (or sudo)
  2. {webmin install path}/changepass.pl {path to web setting}
    E.g.: /usr/local/webmin/changepass.pl /etc/webmin root 1234
  3. Login to webmin and change the password

2009年4月17日

Setup VirtualBox port forwarding

The following are the how-to information for setting up the virtualbox port forwarding:

Example:
  • Host: Windows/MacOSX
  • Guess: Linux
  • Service name (any name without space): guestssh
  • Guess Port: 22
  • Host Port: 2222
  • Note: If network interface in VBox is set to Intel, use e1000 rather than pcnet
@Host, run in command line/Terminal
  1. VBoxManage setextradata {Virtual Machine Name} "VBoxInternal/Devices/{pcnet | e1000}/0/LUN#0/Config/{Service Name}/HostPort" 2222
  2. VBoxManage setextradata {Virtual Machine Name} "VBoxInternal/Devices/{pcnet | e1000}/0/LUN#0/Config/{Service Name}/GuestPort" 22
  3. VBoxManage setextradata {Virtual Machine Name} "VBoxInternal/Devices/{pcnet | e1000}/0/LUN#0/Config/{Service Name}/Protocol" TCP
- Check if it creates localhost listening port:
  • (@MacOX):
  • netstat -nlap tcp
- To connect to guess SSH, type:
  • ssh -p 2222 localhost

2009年4月1日

Another way to lock your Windows

For some reason, I need to lock my computer from remote side over Remote Desktop.  In local side, we can simply press “WIN-L” to lock to computer instantly, but it is not allowed in remote side.  So,below is another way to do this:
  1. In COMMAND windows (i.e. Run->cmd.exe)
    • Type: “rundll32.exe user32.dll, LockWorkStation”
  2. Create the short-cut
    • Right-click desktop –> New –> Shortcut
    • Place “rundll32.exe user32.dll, LockWorkStation” in the “Type the location of the item” input box.
    • Complete and save.

How is it useful?

In my AV-Computer, it need to be auto-login for DVBViewer application. Since I don’t want this computer to be used by my daugther without permission, I need to do auto-lock just after login.  So, I create the shortcut in desktop and “Startup”folder.  I also configurate the screensaver for 120min with password request option.

2009年3月2日

美國HOSTING公司都係不外如是 (Nothing special with American Hosting company)

話說我一直用開美國HOSTING公司,近來為了慳點錢,我選擇了一個較平的 Registrar ,可惜,當想買一個 Domain 時,系統卻出現問題,Send email 去 Billing service 問,竟然一個月都唔覆! 期間都 send o左三四次。好,想著開張 ticket,結果都係一樣....
最後當然係放棄,死心了。我再 check  下呢一間公司係 WebHostingStuff 既REVIEW.... OMG.. 差不多全部都係 Negative!!!

講了一大推,咁呢間係邊一間呢? 答案就係: HOSTWAY (http://www.hostway.com)

============
As I am using the America Hosting company, I switched to use a registrar to save some money.  However, I got very bad experience from this company when I tried to purchase the domain.  I got an error during the billing process. So, I send an email to billing service to resolve the problem.  I waited for a month without any response.  I sent more than 3 email to them and finally I created the service ticket.  Of course, the result is the same.

Finally, I gave up!  I therefore visit WebHostingStuff. I wonder that MOST of the reviews are negative!  So, I am not the one having this problem.

So, what is this hosting company?  The answer is: HOSTWAY (http://www.hostway.com)

2009年2月21日

Fix MacOSX boot failure

Target: OSX 10.5.6 on NC10
Symptom: Boot failure after install extension: IO80211Family.kext
** This extension is a WIFI driver but it is not suitable for NC10
==============
FIX LOG:
==============
- Boot the OS, Press F8 and use boot option "-v -s"
- In the terminal mode, enter "/sbin/fsck -fy" to check the disk
- Enter:
# /sbin/mount -uw / (mount the hard drive in read+write mod)
# cd /System/Library/Extensions
# ls -t|more (check the latest installed package)
# rm -Rf IO80211Family.kext
# exit (To go back GUI mode)

- Fixed the problem.