Submitted by peter on Sat, 09/11/2010 - 17:33
A small IronPython script that I used to find files that names were to long to copy to my Windows XP computer.
import clr
import System
import System.IO
# A small IronPython script to copy files and check for filename length violations on windows xp.
def CheckFilesRecursively(target):
"""
DirectoryInfo target
"""
#directory info
for x in target.GetDirectories():
CheckFilesRecursively(x)
if len(x.FullName) > 200:
print x.FullName, "lenth:", len(x.FullName)
#FileInfo
for x in target.GetFiles():
Submitted by peter on Thu, 09/02/2010 - 22:24
I hate spam. That is all.
Submitted by peter on Sat, 08/14/2010 - 21:23
I have uploaded a new msi package of DeVeDe 3.16.9 Build 2. It has disabled the percentage progress on what I believe is everything and now only has pulsing progress bars. This should alleviate all dead lock issues when running DeVeDe on Windows; at least I hope it does as I hardly ever run into the issue it is hard to tell. Over the coming weeks (months) I am hoping to re-enable the percentage progress bars. I figure it is better to have working program then one that only works partially.
Submitted by peter on Sat, 08/07/2010 - 01:53
Ubuntu 10.04 64bit Windows Vista 64bit SP2 Despite all the bad things I have heard people say about Vista I like it way better then any modern Linux when using it as a desktop system. All Linux distros I have ever tried all have the same basic flaws. One thing works on one distro but is broken on the next. Not one Linux distribution ever has everything working.
Submitted by peter on Thu, 08/05/2010 - 21:17
When you need to free up space on a virtual machine (Windows XP/2003/Vista/7) use sdelete (Zero free space) http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx.
Boot the vm. Defrag the drive.
Run:
sdelete -c c:\
Shut down the vm
Using VirtualBox do the following:
VBoxManage modifyvdi "/path/to/vmDisk.vdi" --compact
The path must be the full path.
Submitted by peter on Thu, 08/05/2010 - 01:07
Submitted by peter on Fri, 07/16/2010 - 14:36
Sample code for exporting scripts to drop and recreate all user defined Stored Procedures and Functions in a database.
The code uses SQL 2005/2008 Server Management Objects to accomplish this task. It loops through all functions and SPs and writes drop command for each of them then loops through and appends the create scripts for them to the same file. All commands are appended to the "c:\SomePath\SPExport.sql" file.
Update (2010/07/29): Added IronPython example.
C# Code
using Microsoft.VisualBasic;
using System;
using System.Collections;
Submitted by peter on Mon, 07/12/2010 - 23:42
Submitted by peter on Sat, 07/03/2010 - 22:09
My Screen Video Capture software works perfect on my home computer (64-bit Windows Vista) but crashes almost immediately on my work computer (64-bit Windows 7).
I have been running it in the debugger for a while now and have fixed one error. I am also logging all exceptions properly now so that should help if I get any errors on another computer.
Watching the task manager it appears that I also have a GDI leak that could be causing numerous problems. In fact after watching it hit the default limit (10000) it does indeed cause bad things to happen.
Submitted by peter on Fri, 07/02/2010 - 00:03
I have finished reading Design Patterns Explained. Moving onto finishing code complete 2.
Pages
Recent comments