2013年4月11日 星期四

2013年3月23日 星期六

windows 8 更新出現8024800A的錯誤而無法完成更新

windows 8 更新出現8024800A的錯誤,可參考如下的做法:

1.使用管理員權限打開命令提示字元
2.輸入net stop wuauserv後按enter
3.輸入ren c:\windows\SoftwareDistribution softwaredistribution.old後按enter
4.輸入net start wuauserv後按enter
5.輸入exit後按enter
6.重新執行windows update

資料來源:
http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_update/window-update-fails-with-code-8024800a/84d5d997-35a4-4035-b6e0-5de60d7aee39

2013年3月5日 星期二

jquery .height在chrome/safari無法抓到正確的數值

當使用jquery的$height()時.發現在chrome及safari無法抓到正常的高度.
經過google查詢.發現$(document).ready() 改用為$(window).load()就正常了.
兩個的差異如下:
$(document).ready()代表DOM已經完成讀取但不表示圖片已經讀取完成.
$(window).load()觸發在$(document).ready()之後且所有圖片已讀取完成.

資料來源:
http://littleshell-multimedia.blogspot.tw/2012/11/jquery-height-problem-in-chromesafari.html

2013年1月18日 星期五

Classic ASP Err Object相關參考

相關參考:

http://developer.earthskater.net/asp/asp_error_object.asp

http://blog.csdn.net/sophiawang/article/details/4276950

http://blog.yam.com/cenota/article/1068638

http://www.7537.org/Yuchao/vb-asp-err-number.html

http://support.microsoft.com/kb/300043/zh-tw

另外的參考
ADO的相關資訊
http://www.borg.com.tw/Eip/books/doc/run9903.htm




2013年1月16日 星期三

使用BESR無法完成備份並出現錯誤 EBAB03F1: 伺服器存放空間不足,無法處理此命令。

這幾天發現伺服器的BESR沒有備份成功,
錯誤訊息顯示:
錯誤 E7D1001F: 無法寫入檔案。
錯誤 EBAB03F1: 伺服器存放空間不足,無法處理此命令。
錯誤 E7D10046: 無法設定檔案大小。
錯誤 EBAB03F1: 伺服器存放空間不足,無法處理此命令。

拜請Google大神後,輾轉看到Symantec的技術服務中心中的文章.
有提到該問題的解法,解法如下:
A.  On the Options page of the BESR or SSR backup job, click the "Advanced" button.  Select the option to "Divide into smaller files to simplify archiving" and specify a 4 GB file size.  This will result in the backup being split into multiple file that are each below the file system limitation on the destination.

B.  If backup software other than BESR or SSR is also being used to backup the same computer, confirm that the other backup software specifies that the Microsoft VSS Provider should be used for its backups.  Look in the Related Articles section below for links to technotes about how to configure Symantec Backup Exec or Microsoft NTBackup to use the Microsoft VSS Provider for their backups.  If other backup software is being used, please contact the software vendor for information on configuring them to specify the correct VSS Provider.


原文出處:
http://www.symantec.com/business/support/index?page=content&id=TECH158113


目前採用A解法,希望可以備份成功.

已成功完成備份.持續觀察後續狀況.(2013/01/17)

另外有看到另一篇技術文章,文章連結如下:
http://www.symantec.com/business/support/index?page=content&id=TECH55684

如A解法無效的話,再使用此文中的解法,將路徑改為\\<ip address>\<share name>
而不用\\<server name>\<share name>



2012年12月26日 星期三

Codeigniter相關參考

http://fuunkao-sekai.blogspot.tw/2011/11/codeigniter-baseurl.html

http://smartpg.pixnet.net/blog/post/25357570

https://sites.google.com/site/ageechen/work_notes/web-developing-in-php/codeigniter-mvc

http://blog.wu-boy.com/2009/08/codeigniter-%E5%88%86%E4%BA%AB%E4%B8%AD%E6%96%87%E5%AE%98%E6%96%B9%E7%B6%B2%E7%AB%99%E7%AF%84%E4%BE%8B%E7%A8%8B%E5%BC%8F%E7%A2%BC/

http://www.mrmu.com.tw/2009/10/07/codeigniter-%E5%BB%BA%E7%AB%8B%E7%B0%A1%E5%96%AE%E7%9A%84mvc%E6%9E%B6%E6%A7%8B%E7%AF%84%E4%BE%8B/

http://stackoverflow.com/questions/12808063/remove-index-php-of-codeigniter-on-iis

http://zeroplex.blogspot.tw/2012/06/codeigniter.html

http://www.hkpug.net/2008/03/03/%E6%95%99%E5%AD%B8%E6%96%87%E4%BB%B6%EF%BC%9Acodeigniter-%E5%BF%AB%E9%80%9F-php-%E6%87%89%E7%94%A8%E9%96%8B%E7%99%BC/

物件導向Object-Oriented的相關參考

http://expect7.pixnet.net/blog/post/38697222

http://www.php5.idv.tw/html.php?mod=article&do=show&shid=73

http://net.tutsplus.com/tutorials/php/object-oriented-php-for-beginners/comment-page-1/#comments

http://samueltsai.com/2012/01/18/php-object-oriented/

http://www.slideshare.net/jaceju/php-1104882

http://phpwolf.blogspot.tw/2011/05/php.html

敏捷開發法的逆襲的相關資訊

敏捷開發法的逆襲的讀後感及相關心得、scrum的相關參考資料
作者的blog
http://teddy-chen-tw.blogspot.tw/

讀後感
http://www.cash.idv.tw/wordpress/?p=7107
http://w1a2d3s4q5e6.blogspot.tw/2012/09/blog-post_13.html

scrum其他的參考
http://blog.longwin.com.tw/2006/12/learn_scrum_2006/


2012年12月19日 星期三

CodeIgniter網址移除index.php(IIS設定法)

最近也開始嘗試使用CodeIgniter這個framework.
其中有一個問題就是怎麼移除網址中的index.php.
google上大多是apache的作法.
Stackoverflow的討論串提到的IIS的設定方法如下:
1.在CI所在的目錄下建立一個web.config檔
2.web.config的內容如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>

    <system.webServer>

        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>

        <rewrite>
        <rules>
            <rule name="RuleRemoveIndex" stopProcessing="true">
                <match url="^(.*)$" ignoreCase="false" />
                <conditions>
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                </conditions>
                <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true"/>
            </rule>
        </rules>
        </rewrite>

    </system.webServer>

    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>

</configuration>


3.存檔後,網址就可以不用包含index.php了

原文來源:
http://stackoverflow.com/questions/12808063/remove-index-php-of-codeigniter-on-iis


2012年12月18日 星期二

利用PHPMailer發信

PHP內建的mail函示僅能從php.ini設定SMTP Server並不支援指定SMTP的方式

因此強大的PHPMailer就派上用場了

以下是參考來源:

PHPMailer元件下載位置:
http://sourceforge.net/projects/phpmailer/

使用教學:
教學一:B E L L E A Y A 雜七雜八創作小窩

教學二:艾瑞克的回憶錄

教學三:寶尼

2012年12月2日 星期日

Internet Explorer 無法從 SSL 網站開啟 Office 文件

今天有客戶反應無法從網站下載xls報表.但之前都是正常的.
經過一番測試發現原來是SSL的影響.
之前網站尚未安裝SSL憑證.
報表的程式裡面有防止快取的程式碼
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1

把這些註解掉.IE在SSL的協定下就可以正常的下載xls報表了
參考:
http://support.microsoft.com/kb/316431




2012年11月22日 星期四

IIS7安裝憑證無法成功且出現CertEnroll::CX509Enrollment::p_InstallResponse: ASN1 bad tag value met. 0x8009310b (ASN: 267)

今天在幫公司伺服器(Windows Server 2008)更新到期的SSL憑證時,出現了如下的錯誤訊息,無法完成憑證安裝:














只好開始Google
第一個找到的是微軟的技術支援中心
http://support.microsoft.com/kb/959216
遺憾的是裡面提到的解決方案完全無法解決我的問題.
唯一有用的大概就是知道windows server 2008 SP3會解決這個問題....

最後在這裡找到了我要的解決方式:
http://blogs.msdn.com/b/vijaysk/archive/2008/11/25/certenroll-cx509enrollment-p-installresponse-asn1-bad-tag-value-met-0x8009310b.aspx

實際操作的過程如下:
1.開始->執行->MMC->嵌入兩個憑證單元(我的使用者帳戶、電腦帳戶)

2.查看目前的使用者下的其他人(other people)是否有你安裝的憑證,有的話把他拉到本機電腦中的個人憑證下.

3.查看你的憑證的詳細資料頁,其中有一個憑證指紋,將憑證指紋的字串複製下來

4.開始->執行->certutil –repairstore my “00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f”,其中的“00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f”,替換成你的憑證指紋,按下確定

5. 在IIS管理員中的伺服器憑證就可以看到安裝好的憑證了

如果在第一個步驟沒看到資料夾或憑證,可以直接自憑證供應商所取得的憑證檔案,右鍵選擇安裝憑證,用精靈完成憑證安裝,就可以在步驟一看到你的憑證了.

附上其他在google找到的參考
1.http://forums.iis.net/p/1150372/1874095.aspx

2.http://blogs.msdn.com/b/webtopics/archive/2009/01/03/asn1-bad-tag-value-met-error-when-processing-a-certificate-request-in-iis-7.aspx

3.http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/53c2d669-c03e-4f80-87d8-6c378ca80059/

2012年8月27日 星期一

mediaelement.js 延伸用法

mediaelement.js 是一個非常好用的播放器.
幾乎想的到的平台都支援.

再做某個案子的時候需要有播放列表以及輪撥功能.

剛好stackoverflow上有這樣的討論.就收來做參考.

參考資源:

mediaelement.js官網
http://mediaelementjs.com/

mediaelement.js and custom playlist
http://stackoverflow.com/questions/11867779/mediaelement-js-and-custom-playlist

超好用的撰寫jQuery技巧

再找資料的時候無意見逛到的~

真的是還不錯的觀念.

就收起來當參考啦~

參考來源:http://ithelp.ithome.com.tw/question/10021702

原始參考來源:http://haineault.com/blog/84/


2012年7月30日 星期一

window.open在ie顯示錯誤訊息為不正確的引數解決方式

最近在實作案子測試的時候發現window.open這個method.
在IE不能正常的運作,但其他的瀏覽器正常(FireFox,Chrome)
google了一下找到解答.原來是在IE的時候window.open的name Parameter不能有空白.

資料來源:
window.open in IE (invalid argument)

參考:
Window open() Method

jQuery radio buttons的Change event在IE8不能正常運作的解法

今天實作某個案子的時候發現jQuery 中的radio button change event在IE8中不能正常的運作.
在google上找到了如下的寫法,可以解決這個問題;

$("#myid").bind($.browser.msie ? 'propertychange': 'change', function(){...});


資料來源:
http://www.jamesrandell.com/?p=223

2012年7月11日 星期三

PHP教學參考網站

1.參考資源一
http://emn178.pixnet.net/blog/post/78014066

待續....

線上寫Code的服務

1.JS
http://jsfiddle.net/

2.PHP
http://codepad.viper-7.com/

待續....

關閉小視窗並 Refresh 母視窗

來源:http://it.nekounya.com/javascript-close-window-and-refresh-parent-window.html

有兩個寫法

1.寫法一

<Script>
window.opener.location.reload(true);
window.self.close();</Script>


2.相容性比較高的寫法
window.opener.location.reload(true);
window.opener=null; window.open("","_self");window.close();

2012年5月21日 星期一

將SQL Server 2005設定為允許遠端連接

每次都會忘記怎麼設定.
再這邊筆記一下.
參考資料:

HowTo:將SQL Server 2005設定為允許遠端連接

安裝完SQL SERVER2008後,登不進去
(組態工具內 建議將IPALL項目都改成1433其餘上方PORT全改成0)

啟用 SQL Server 2008 遠端連線(Enable Remote Connection)