Feeds:
文章
留言

A mshtml.dll module error in Windows Internet Explorer 8.0.6001.17184

 

I Surf Internet using IE 8 Beta 1 that continuously get a browser close message. It happened in the same way when I simulate IE 7 functions in IE 8 Beta 1. I believed other people have such question.

 

My Solution is Upgrade to IE 8 Beta 2. It butter than IE 8 beta 1. But I clicked “Quick Tabs” in the fortuitous use, it already cause another browser close message.

 

I hoped IE 8 would be stable in the next version.

 

How to Upgrade to IE 8 Beta 2 ?

1.      Uninstall IE 8 Beta 1

2.      Install IE 8 Beta 2

 

How to Uninstall IE 8 Beta 1 in Vista?

1.      Control Panel

2.      Add or Remove Programs

3.      View Update

4.      Below a Windows Microsoft Category

5.      Find the Windows Internet Explorer 8 and uninstall it.

 

Remove IE8

 

Below is my IE error messages

 

A mshtml.dll module problem in IE 8 beta 1

Faulting application iexplore.exe, version 8.0.6001.17184, time stamp 0x47ccc78e, faulting module mshtml.dll, version 8.0.6001.17511, time stamp 0x485cea5a, exception code 0xc0000005, fault offset 0x001ac008, process id 0xc08, application start time 0x01c91594fa32d694

 

A unknown problem when I click Quick Tabs in IE 8 beta 2

Faulting application iexplore.exe, version 8.0.6001.18241, time stamp 0x48ae8fee, faulting module unknown, version 0.0.0.0, time stamp 0x00000000, exception code 0xc0000005, fault offset 0x0bdc2a38, process id 0xe8capplication start time 0x01c9159fd07669ed

My Sidebar crashed in the Vista.

 

My Solution is key press those in the command prompt window

 

regsvr32 msxml3.dll

regsvr32 scrrun.dll

regsvr32 jscript.dll

 

Below is my sidebar error messages

Faulting application sidebar.exeversion 6.0.6001.18000time stamp 0x4791a245faulting module unknownversion 0.0.0.0time stamp 0x00000000exception code 0xc0000005fault offset 0x000000017269dc30 處理程序識別碼 0xca0application start time 0x01c91590053933e4

Visio Web UI Shapes

Save Shape File(.vss) in C:\Users\MyComputerName\Documents\My Shapes folder
中文系統存放路徑在 C:\Users\MyComputerName\Documents\我的圖形

Sketch GUI Shapesa
Wireframe stencil
a
Isometric Sitemap stencil
a
Nick Finck Wireframe Stencil
a
Nick Finck Sitemap Stencil
a
Nick Finck Process Flow Stencil
a

a

the interaction designer’s nail gun (3rd edition)
a

Visio Wireframe Stencil
a

 

Code 39 (一維條碼) 

資料字元總數共43個
字型下載http://www.squaregear.net/fonts/free3of9.shtml
Barcode Generator http://www.codeproject.com/KB/cpp/wsbarcode.aspx

QR碼資料容量 (二維條碼)
數字 最多 7,089 字元
字母 最多 4,296 字元
二進位數 (8 bit) 最多 2,953 位元
日文漢字 / 片假名 最多 1,817 字元 (採用Shift_JIS
中文漢字 最多 984 字元 (採用UTF-8
中文漢字 最多 1,800 字元 (採用BIG5

from http://zh.wikipedia.org/wiki/QR%E7%A0%81
Open Source QR Code Library http://qrcode.sourceforge.jp/

RFID TAG
字元數可達 Megabytes

Error Installing SQL Server 2005 Client Tools

I Got ERROR: The cabinet file ‘Sql.cab’ required for this installation is corrupt and cannot be used
when trying to install SQL 2005 Enterprise on a virtual server.

My virtaul dvd device with network share device or install it with network share(\\computer\sharefolder), so remove network share or copy it to client and install it again.

How To Resize Virtual Server Hard Disk Size ? (Microsoft’s VHD files) 

For a example :

Virtual Server Maximun virtual hard disk size : 20GB
Resize To 100GB  

Step 1: Use VHD Resizer Tool To Convert It
vhdResizer

Step 2:Use Acronis Disk Director Suite To Resize Hard Size
Acronis Disk Director Suite 01

Acronis Disk Director Suite 02

Acronis Disk Director Suite 03

Acronis Disk Director Suite 04

Acronis Disk Director Suite 05

ps. IDE Device cannot support to use more 120 GB. SCSI Device can support to use 4000GB

click here to download vhd resize tool
 

 

C# Get Binary from Url

using System.Net

public byte[] GetFileFromURL(string url)
        {
            int timeoutInSeconds = 60 * 10;
            // Create a web request to the URL  
            HttpWebRequest MyRequest = (HttpWebRequest)WebRequest.Create(url);
            MyRequest.Credentials = System.Net.CredentialCache.DefaultCredentials;
            MyRequest.Timeout = timeoutInSeconds * 1000;
            MemoryStream ms = new MemoryStream();
            try
            {
                // Get the web response  
                HttpWebResponse MyResponse = (HttpWebResponse)MyRequest.GetResponse();

                // Make sure the response is valid  
                if (HttpStatusCode.OK == MyResponse.StatusCode)
                {
                    // Open the response stream  
                    using (Stream MyResponseStream = MyResponse.GetResponseStream())
                    {
                        // Create a 4K buffer to chunk the file  
                        byte[] MyBuffer = new byte[4096];
                        int BytesRead;
                                                        // Read the chunk of the web response into the buffer  
                            while (0 < (BytesRead = MyResponseStream.Read(MyBuffer, 0, MyBuffer.Length)))
                            {
                                // Write the chunk from the buffer to the file  
                                ms.Write(MyBuffer, 0, BytesRead);
                            }                       
                    }
                }
            }
            catch (Exception err)
            {
                throw new Exception(“Error saving file from URL:" + err.Message, err);
            }
            return(ms.ToArray());
        } 

A BLOB is a binary large object, and a CLOB is a character large object.

The difference between characters and bytes is the Character set, i.e. the mapping between a character and the byte sequence it represents.
– With a blob, you have to use the right character set to retrive the data, e.g. if someone writes a text into a BLOB using UTF-8 and you read it back using ISO-8859-1, you do not get the same string back out.
– With a CLOB, the database takes care of the character set, you supply a String, and you get a String back, and you do not have to worry about which bytes are used to represent the characters

in Sql 2005

Large value data types: varchar(max), nvarchar(max), and varbinary(max)

Large object data types: text, ntext, image, varchar(max), nvarchar(max), varbinary(max), and xml

in Sql 2000

BLOB is a generic term that refers to text, ntext, and image data. In the 1999 SQL ANSI standard (SQL-99), BLOB refers to large binary-valued image data.

CLOB refers to large text data, and NCLOB refers to large ntext data.

BLOBs are very large variable binary or character data, typically documents (.txt, .doc) and pictures (.jpeg, .gif, .bmp), which can be stored in a database. In SQL Server, BLOBs can be text, ntext, or image data type:

text

Variable-length non-Unicode data, stored in the code page of the server, with a maximum length of 231 – 1 (2,147,483,647) characters.

ntext

Variable-length Unicode data with a maximum length of 230 – 1 (1,073,741,823) characters. Storage size, in bytes, is two times the number of characters entered. The SQL-92 synonym for ntext is national text.

image

Variable-length binary data from 0 through 231 – 1 (2,147,483,647) bytes.

–Sets in-row limit to 5,000 bytes.
sp_tableoption ‘Employees’, ‘text in row’, ‘5000’

reference :
http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part3/c1161.mspx?mfr=true
http://msdn2.microsoft.com/en-us/library/ms187752.aspx
http://www.mail-archive.com/torque-user@db.apache.org/msg03230.html

Usefully in C# 2.0 — List.Find() 很好用喔

i add six products

List<ProdItem> ProdList = new List<ProdItem>();
ProdList.Add("1","book 1","book");
ProdList.Add("2","book 2","book");
ProdList.Add("3","food 1","food");
ProdList.Add("4","food 2","food");
ProdList.Add("5","food 3","food");
ProdList.Add("6","clothes 1","clothes");

and i want to find the product about “food 1″ quickly in c# 2.0

return(ProdList.Find(delegate(ProdItem p) { return (p.ProdId == "3"); }));

 i want to find in old c# version

foreach (ProdItem p in ProdList)
{
     if (p.ProdId == "3")
     return(p)
}

my ProdItem Class

using System;
using System.Collections.Generic;//List
using System.Text;
namespace Prod.Data
{
        class ProdItem
        {
            private string _ProdId = "";
            private string _ProdName = "";
            private string _ProdType = "";
            public ProdItem() { }
            public ProdItem(string strProdId, string strProdName, string strProdType)
            {
                _ProdId = strProdId;
                _ProdName = strProdName;
                _ProdType = strProdType;
            }
            public string ProdId
            {
                get { return this._ProdId; }
            }
            public string ProdName
            {
                get { return this._ProdName; }
            }
            public string ProdType
            {
                get { return this._ProdType; }
            }
        }
   
}

Listening for a Audit Logon Event Using WMI

      using System.Management;

      static public void ListenForAuditLogonEvent()
      {
         try
         {
            // Set up an event watcher and a handler
            ManagementEventWatcher watcher = new ManagementEventWatcher( new ManagementScope(“\\root\\cimv2“),
               new EventQuery(“Select * from Win32_NTLogEvent Where Logfile = ‘Security'") );

            watcher.EventArrived += new EventArrivedEventHandler(MyEventHandler);

            // Start watching for audit logon events
            watcher.Start();

            while (true)
            {
               System.Threading.Thread.Sleep(1000);
            }
         }
         catch (Exception excep)
         {
            Console.WriteLine(“Error: " + excep.Message);
         }
      }

      static public void MyEventHandler(object sender, EventArrivedEventArgs e)
      {
         // Print out the service instance ID and error description upon receiving of the audit logon event
         Console.WriteLine(“A audit logon event has occurred!");
         Console.WriteLine(string.Format(“ServiceInstanceID: {0}", e.NewEvent[“InstanceID"]));
         Console.WriteLine(string.Format(“ErrorDescription: {0}", e.NewEvent[“ErrorDescription"]));
         Console.WriteLine(“");
      }

WMI FAQ Link: Secrets of Windows Management Instrumentation
Troubleshooting and Tips
http://www.microsoft.com/technet/scriptcenter/resources/wmifaq.mspx
another good paper : Using Wmi  to Control Computer Reboot 

http://blog.blueshop.com.tw/hammerchou/archive/2007/03/29/50315.aspx