星期六, 5月 16, 2009

[Develop] 安裝 Visual Studio 2008 Sp1 失敗~~

要用到 jquery ,所以一定要裝上 vs.net 2008 sp1,不過,下載回來安裝後卻失敗,失敗訊息為



C:\Users\ADMINI~1\AppData\Local\Temp\1\Microsoft Visual Studio 2008 SP1\VC_IA64Runtime.exe - Exe installer's log file/hint (%temp%\dd_VC_IA64Runtime*.txt|%temp%\..\dd_VC_IA64Runtime*.txt) does not exist or is invalid


Exe (C:\Users\ADMINI~1\AppData\Local\Temp\1\Microsoft Visual Studio 2008 SP1\dotnetfx35langpack_x64zh-CHT.exe) failed with 0x80070643 - Fatal error during installation



看了一下才發現是 langpack 沒有安裝....

星期五, 5月 15, 2009

[Develop]Top 10 PHP Frameworks

排名第一的是 Yii,這個framework 我還沒有用過,不過,現在正在用 CodeIgniter 排第二,呵!!




完整文章請至原文網站

[Develop]Top 10 PHP Frameworks

排名第一的是 Yii,這個framework 我還沒有用過,不過,現在正在用 CodeIgniter 排第二,呵!!

完整文章請至原文網站

星期三, 4月 22, 2009

Google Apps 標準版無法大量新增帳戶解法

昨天才有資訊組長反應,看了才發現「標準版」真的無法大量新增帳戶,改成上傳user的原有outlook 的信件。

解決的辦法有二種:
一、寫信給google(英文),請管理幫忙改成「教育版」,上次恰巧做過一次,約二天內的時間會收到回函,且改成「教育版」。
二、直接在「網域設定/一般」,點選最底下的「最新功能」,儲存設定後也可以大量新增帳戶。

把第二種方式截圖分享給大家參考~~~


































星期二, 4月 14, 2009

[漏洞]避免 INPUT 密碼自動完成漏洞

避免 INPUT 密碼漏洞 ->Turn off autocomplete for input

HTML
<input type="text" name="cc" autocomplete="off" />

.NET
<asp:textbox id="txt_userID" tabIndex="1" runat="server" Width="200px" TextMode="Password" AutoCompleteType="Disabled">



星期二, 3月 31, 2009

[FreeBSD] interrupt storm detected on "irq9:"; throttling interrupt source

今天把一台PentiumIII 的 Server 拿來重裝 FreeBSD 7.1,結果裝好了之後卻在畫面一直出現下列的錯誤訊息:

interrupt storm detected on "irq9:"; throttling interrupt source
本來以為是 BIOS 中 irq 的設定問題,結果進 BIOS 改了設定,無效,照常出現錯誤訊息。
又重新 compile 一次 kernel ,將不必要的驅動全註解掉,重開,還是無效~~~~
不得已,又求助google 大神,結果在 http://www.uplinux.com/download/doc/bsd/Handbook/acpi-debug.html 裡發現

11.16. 使用和調試 FreeBSD ACPI

撰寫人:Nate Lawson. 協力:Peter Schultz 和 Tom Rhodes.

ACPI 是在本質上是一種發現設備、管理電源使用, 提供過去由 BIOS 管理的訪問不同硬件的標準化方法。 讓 ACPI 在各種系統上都能正確使用的工作一直在進行, 但許多主板的 ACPI 機器語言 (AML) 字節代碼中的 bug, FreeBSD 的內核中資系統設計的不完善, 以及 Intel ACPI-CA 解釋器中的 bug 仍然市場會出現。

11.16.3.2. System Hangs (temporary or permanent)

Most system hangs are a result of lost interrupts or an interrupt storm. Chipsets have a lot of problems based on how the BIOS configures interrupts before boot, correctness of the APIC (MADT) table, and routing of the System Control Interrupt (SCI).

Interrupt storms can be distinguished from lost interrupts by checking the output of vmstat -i and looking at the line that has acpi0. If the counter is increasing at more than a couple per second, you have an interrupt storm. If the system appears hung, try breaking to DDB (CTRL+ALT+ESC on console) and type show interrupts.

Your best hope when dealing with interrupt problems is to try disabling APIC support with hint.apic.0.disabled="1" in loader.conf.

把 /boot/loader.conf 叫出來,然後加上 「hint.apic.0.disabled="1"」然後重開機,嘿!又是美好的一天了~~~~




[CodeIgniter] 上傳檔案無法接收???

CodeIgniter 真的好東西啊!節省人力又節省時間,不多話,今天試了一下 Upload 這個功能,結果試了半天,一直出錯,在 「 $this->load->library('upload', $config);」的下一行把 $this->upload->upload_path 印出來,結果是空值,試了二、三個小時後來放棄,原本以為是某個部分設定有誤,後來用純手工把圖片上傳,嘿!又可以~~~~~
最後..............終於找到問題了
原因是.............我在建構子中已經把 Upload 載入,結果在 do_upload() 中又載入了一次,所以.......唉!把建構子中載入Upload這一行註解掉後,正常!! 難怪程式人沒有正常的時間。

function do_upload(){
              
         $config['upload_path'] = './uploads/';
         $config['allowed_types'] = 'gif|jpg|png';
         $config['max_size'] = '100';
         $config['max_width']  = '1024';
         $config['max_height']  = '768';

         $this->load->library('upload', $config);
         // 以下略

}