[Self-Mods] iTunes 8.2 for Windows 2003

Posted on the June 30th, 2009 under Uncategorized by demenzia

The current iTunes 8.2 that you download from Apple is not compatible with Windows 2003. It will show an error saying your OS needs to be XP or later.

I dont update my iTunes on a regular basis, but since iPhone OS 3.0 can only be installed with 8.2, it had to be done.

Please try looking at this thread first:
http://discussions.apple.com/thread.jspa?threadID=2044496&tstart=0

That is my reference. It didnt work for me though and I kept getting the 2229 error, so I had to mod my own. If the installers or steps there do not work for you, then use mine.

My mod removed all LaunchCondition tables in the msi files, thus erasing all pre-installation OS version checks, and other checks.

Download the file here.

How to install:
1. Uninstall iTunes, AppleMobileDeviceSupport, Bonjour, Apple Software Update, then Restart.
2. Download and then Extract all the files
3. Install AppleMobileDeviceSupport
4. Then install iTunes

The iTunes msi file will install everything else.

[VB.net] Download File from URL

Posted on the May 1st, 2009 under VB.net by demenzia

Function GetFilePathFromUrl(ByVal url As String) As String
Dim webC As New System.Net.WebClient
Dim fileName As String = url.Split(”/”)(url.Split(”/”).Length - 1)
fileName = “../FileFolder/” & Guid.NewGuid().ToString & “_” & fileName
webC.DownloadFile(url, Server.MapPath(fileName))
Return Server.MapPath(fileName)
End Function

[Windows] How to embed Windows Media Player in HTML

Posted on the April 29th, 2009 under Windows by demenzia

http://www.streamalot.com/wm-embed.shtml

[Javascript] return false vs. event.returnValue=false

Posted on the April 22nd, 2009 under Javascript by demenzia

if (window.confirm(”確定刪除資料嗎?”) != true) {event.returnValue=false;}
alert(”執行完畢!”);

if (window.confirm(”確定刪除資料嗎?”) != true) {return false;}
alert(”執行完畢!”);

event.returnValue=false 還是會執行下面的其他動作像 alert。
return false 不會執行 alert 或以下的任何動作。

所以還是建議用return false。

[DOS] 用AT指令做排程工作

Posted on the April 1st, 2009 under DOS by demenzia

at 02:00 /every:M,T,W,Th,F,S,Su C:backup.bat

02:00 = 上午 02:00

AT的相關資料: http://support.microsoft.com/kb/313565

[DOS] 不用回答確認訊息刪除資料夾裡的所有檔案

Posted on the April 1st, 2009 under DOS by demenzia

echo y | del *.*

or

echo y | del [folder name]*.*

[DOS] 取得年月日的值

Posted on the April 1st, 2009 under DOS by demenzia

echo 年: %date:~0,4%
echo 月: %date:~5,2%
echo 日: %date:~8,2%
echo 星期: %date:~10,6%
echo 小時: %time:~0,2%
echo 分: %time:~3,2%
echo 秒: %time:~6,2%
echo 毫秒: %time:~9,2%
echo 年月日: %date:~0,4%%date:~5,2%%date:~8,2%

[VB.net] 重新命名檔案 Rename a File

Posted on the March 17th, 2009 under VB.net by demenzia

Imports System.IO
File.Move(”C:Folder1New.txt”, “C:Folder1Old.txt”)

[ASP.net] 如何指定命名空間 (Namespace)

Posted on the March 11th, 2009 under ASP.net by demenzia

Namespaces 如 System.XX.XX…

方法1:
在vb檔的頂端加 Imports

eg:

Imports System.IO

Partial Class NewPage
Inherits System.Web.UI.Page
……

方法2:
在aspx檔內加

eg:
<%@ Page Language=”VB” Debug=”true” %>
<%@ Import Namespace=”System.IO” %>

方法3:
在web.config檔裡面加

<pages>
<namespaces>
<clear />
<add namespace=”System.IO” />
……
</namespaces>
</pages>

[VB.net] 斷行

Posted on the March 11th, 2009 under VB.net by demenzia

Dim Message As String

Message = Message.Replace(Environment.NewLine, “<br>”)

or

Message = Message.Replace(vbCrLf, “<br>”)