When I upgraded by site template, I forgot to re-add div class to format source code.
Code snippet I use is from http://bguide.blogspot.com/
/*
Custom CSS class to display code snippets.
http://bguide.blogspot.com/
2008 Feb 03
*/
.mycode
{
white-space:pre;
font-family:monospace;
font-size:9pt;
line-height: 10pt;
height:auto;
width:auto;
padding:5px;
margin-left:10px;
overflow:auto;
}
Collection of unedited thoughts and bits of knowledge I can't seem to remember
Search This Blog
Monday, May 16, 2011
How to Implement a wait() in VB6
Here is how I created a Wait() for VB6.
Needed for a project to allow form code to pause while still allowing a 3rd party control to upload a file to a server.
Needed for a project to allow form code to pause while still allowing a 3rd party control to upload a file to a server.
Public Sub Wait(milliseconds As Integer)
Dim dTimer As Double
dTimer = Timer
Do While Timer dTimer + CDbl(milliseconds / 1000)
DoEvents
Loop
End Sub
Dim dTimer As Double
dTimer = Timer
Do While Timer dTimer + CDbl(milliseconds / 1000)
DoEvents
Loop
End Sub
Thursday, May 12, 2011
Mainstream support phases for .NET
Microsoft has published a new article about .NET 3.x support policy:
Mainstream support phases will end as follows:
.NET 2.0: 4/12/2011
.NET 3.0: 4/12/2011
.NET 3.5: 4/12/2011
.NET 3.5 SP1: 1/13/2015 (part of Windows 7)
.NET 4.0: ? at least 3/31/2015
Beginning with .NET 3.5 SP1, the .NET Framework is considered a Component of the Windows OS. Components follow the Support Lifecycle policy of their parent product or platform.
Mainstream support phases will end as follows:
.NET 2.0: 4/12/2011
.NET 3.0: 4/12/2011
.NET 3.5: 4/12/2011
.NET 3.5 SP1: 1/13/2015 (part of Windows 7)
.NET 4.0: ? at least 3/31/2015
Beginning with .NET 3.5 SP1, the .NET Framework is considered a Component of the Windows OS. Components follow the Support Lifecycle policy of their parent product or platform.
Wednesday, May 11, 2011
Determine if .net 2.0 framework service packs are installed.
To determine if a service pack is installed on a specific framework version :
- open the registry editor(regedit)
(All versions are listed to the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\)
- Look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\vX.X.XXXXX
(Where the X means the version to check
- Look at the key SP, the value is the service pack installed
In exemple, for the framework 2.0
Path : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
Key SP value : 1
This information means the Framework 2.0 sp1 is installed
- open the registry editor(regedit)
(All versions are listed to the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\)
- Look at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\vX.X.XXXXX
(Where the X means the version to check
- Look at the key SP, the value is the service pack installed
In exemple, for the framework 2.0
Path : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
Key SP value : 1
This information means the Framework 2.0 sp1 is installed
Tuesday, May 10, 2011
Windows Password Reset Tool
http://pogostick.net/~pnh/ntpasswd/
- This is a utility to reset the password of any user that has a valid (local) account on your Windows NT/2k/XP/Vista/Win7 etc system.
- You do not need to know the old password to set a new one.
- It works offline, that is, you have to shutdown your computer and boot off a floppydisk or CD or another system.
- Will detect and offer to unlock locked or disabled out user accounts!
- There is also a registry editor and other registry utilities that works under linux/unix, and can be used for other things than password editing.
Subscribe to:
Posts (Atom)