Chris Pietschmann

husband, father, hacker, entrepreneur, futurist, innovator, autodidact


Color the background of items in a Dropdown box in your HTML pages.

Color the background of items in a Dropdown box in your HTML pages. It's very easy to do, just look at the below example. Highlight Black Gray DarkGray LightGray White Aquamarine Blue Navy Purple DeepPink Violet Pink DarkGreen Green YellowGreen Yellow Orange Red Brown BurlyWood Beige <select> <option value="">Highlight</option> <option value="#000000" style="background-color: Black;color: #FFFFFF;">Black</option> <option value="#808080" style="background-color:... [More]

Is Planning and Testing really that important in Software Development???

When you wrote essays in school, didn’t you plan out what you were going to write about before you started writing? The same needs to be done with software development.   Specifications documents need to be written out for all new features/enhancements, before any development begins.  That way the developers have a blueprint to work with of how the feature/enhancement is to work. This should be written from the original description that is gotten from the client that is request... [More]

VB.NET 2005's "My" namespace for Mono

Today, I started creating my own implementation of the VB.NET 2005 “My“ namespace. The target platforms for my implementation are .NET v1.1 and Mono v1.x  Heck, maybe eventually I could convince the folks over at the Mono project to put my code into their implementation of the .NET Framework, but I suppose I'll have to get alot more done on it first. If you don't know what the “My” namespace is check this out: [More]

How do you call a Console application from ASP.NET and get the results??

Here is a VB.NET version of a C# example that I found to do just that. It's really simple to do. <%@ Page Language="vb" %><%@ Import Namespace="System.Diagnostics" %><%       ''Get a file name relative to the current Web app.       Dim file As String = Server.MapPath("Program.exe")       Dim info As ProcessStartInfo = new ProcessStartInfo(file, "/arguments")       ''Redirect output... [More]

I just got Visual Studio 2005 Beta 1 (Whidbey)

I went to the MSDN Event in Milwaukee yesterday, and got the FREE DVD with Visual Studio 2005 Beta 1. This is just awesome, anyone attending the MSDN Events in August - September 2004 get this DVD. If you're not an MSDN subscriber, but want to get your hands on VS2005 Beta 1, just go to one of these MSDN Events. Hell, even if you are an MSDN subscriber, go to one of these events. Very informative.

Prevent Windows Kernel From Using The Page File (PagingExecutive Function)

DescriptionPlacing the Windows (2000/XP) Kernel into RAM is quicker than allowing it to be paged.DirectionsIf you system has more than 256MB of RAM, then you should try this tweak. In theory, the kernel (and thus Windows) should run faster if it kept in RAM instead of the slower page memory.This involves editing the registry so make a registry backup before trying this. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\DisablePagingExecutive Setti... [More]

True Programming Language Independent IDE

I watch a video on about how we will be able to mix C++, C# and VB.NET code files within the same project in Visual Studio 2005. Watch the video here: I have an idea to take this one step further. It would be cool if the IDE would be able to convert C#, VB.NET and C++.NET code to any of the others. This way a VB.NET developer could load a C# application, edit in VB.NET, then save it back to C#. Then a C++.NET developer... [More]

Write to the Event Log in .NET (VB.NET and C#.NET)

It is as simple as this to write to the Windows Event Log in .NET Declaration: Imports System.Diagnostics Code: Public Function WriteToEventLog(ByVal Entry As String, _ Optional ByVal AppName As String = "APlusFeeCalc", _ Optional ByVal EventType As EventLogEntryType = EventLogEntryType.Information, _ Optional ByVal LogName As String = "Application") As Boolean      Dim objEventLog As New EventLog      Try... [More]

HVD: Holographic Versatile Disc

A Japanese company has achieved the world's first reliable recording and playback of digital movies on a transparent holographic recording disc. Optware plans to offer reader/writer players and 200Gbyte holographic versatile discs (HVD) in 2006 for enterprise users. Much less expensive consumer versions could be on the market by 2007, said Yasuhide Kageyama, manager of business development and marketing at Optware. The company has developed a collinear holographic data storage s... [More]

Why do we need to handle the RowUpdated event of our DataAdapter in order to reflect the ID in a Primary/Foriegn key relationship??

Why do we need to handle the RowUpdated event of our DataAdapter in order to reflect the ID in a Primary/Foriegn key relationship?? Well, anyway here is a page that tells you how to do this. AddHandler daChargeAttendance.RowUpdated, AddressOf FeeChargeAttendanceRowUpdated Private Sub FeeChargeRowUpdated(ByVal sender As Object, ByVal e As SqlRowUpdatedEventArgs)     Dim oCmd As SqlCommand = New SqlCommand("SELECT @@IDENTITY", e.Command.Connection)    ... [More]

Fill DataSet with multiple Tables and update them with DataAdapter

One way to fill a DataSet with multiple tables is to send the database multiple requests. Another way to do this is to use multiple SELECT statements in a single request. There are a couple of problems with doing it this way: The DataTables don't have the same name as the tables in the database, you have to set them yourself You can't update/save the tables to the database; to do that you must use a seperate DataAdapter for each table. Dim myAdapter as SqlDataAdapter = new SqlDataAdapter( ... [More]

JavaScript: How to get value from nested form in iframe?

Here is an example of how to get a value from a nested form in an iframe. It works in IE6, but not Netscape 7.1. PageOne.htm<html><head><script language='JavaScript'>  function Search() {  alert(document.frames("PageTwo").document.forms("Members").elements("Search").value); } </script></head><body><input type='button' value='Search' onclick='Search();'><iframe name='PageTwo' src="PageTwo.htm" width='100%' height='100'></bo... [More]

Create your very own Supercomputer with MPICH

Early supercomputers used parallel processing and distributed computing and to link processors together in a single machine. Using freely available tools, it is possible to do the same today using inexpensive PCs - a cluster. Glen Gardner liked the idea, so he built himself a massively parallel Mini-ITX cluster using 12 x 800Mhz nodes. The machine runs FreeBSD 4.8, and MPICH After working with his machine and running some basic tests, Glen's cluster looks to be equivalent to at least 4... [More]

Windows XP Service Pack 2 Available

I installed SP2 Final yesterday. I had SP2 RC2 installed since it was released to the public. I hadn't encountered a single problem with RC2. The enhancements of the WiFi support is awesome. Before SP2 I wasn't able to use WPA encryption, but now I can!! Yippee!! I love the popup blocker in IE, and I'm sure there are alot of other fixes that I'll just never have to worry about now. Download it at: [More]

The .NET Show: Introduction to Visual Studio 2005 (Whidbey)

I watch the latest episode of the .NET Show today. All I can say is just awesome. The ASP.NET team set and succeeded at their goal of reducing the amount of code you have to write by 70%!! Check this video out and see the new features of VS2K5. They are also building in the ability to do unit tests. I'm not going to explain everything here, just go watch the episode and see for yourself.

Web Based Alternative to SQL Enterprise Manager

I introduce you to Web Data Administrator from Microsoft. It is an ASP.NET application like SQL Enterprise Manager. It's pretty neet, you can put it up on a web server and access any SQL Server from Anywhere. Web Data Administrator:

My Function Guide is finally ported over to SQL Server

I finally got my Function Guide ported over from the mySQL database it used on my old hosting provider to the SQL Server 2000 database on my new/current hosting provider. In the Function Guide you will find information on Windows API, and other function calls. At this time I am focusing on the Win32 API's, but in the future I also plan to incorporate other type of function calls. Function Guide:

Windows System Properties - Add Custom Manufacturer Properties

Here is a pretty neat edit you can do to add your own manufacturer information and logo to the System Properties dialog. Show Computer Manufacturer and Support Information (All Windows) This tip lets you include company and support information on the System Properties page in Control Panel. This is especially useful if you run a computer store and want your customers to be reminded where they bought their PC and where to get technical support. To add the manufacturer and support i... [More]

MSN WebMessenger

There is now a web version of MSN Messenger. Pretty neet, I think. I like the idea of a web application working and acting just like a windows application. The current Web Messenger isn't as feature full as the Windows application, but I would imagine they are working on it, since it is still in Beta. Check it out at  System Requirements: A web browser: Microsoft Internet Explorer 5.0 or later, Netscape 7.0 or later, or Mozilla 1.6 or later, running in M... [More]

OpenOffice - Fee MS-Office alternative

There is a Free Open Source alternative to MS-Office. Open Office is a professional quality application suite unlike most of the open source projects I've seen. It has all the features of MS-Office and you can even open and save all the MS Document Formats. Open Office even has a couple really neat features that MS-Office doesn't have: Writer can save to PDF and Impress can save SWF (Macromedia Flash). It is currently at Version 1.1, and 2.0 is currently in development. I haven't looked very ind... [More]

WinXP SP2 limits max. number of TCP connections/second

Apparently, to reduce the spread of worms like Sasser, Windows XP Service Pack 2 will limit the maximum number of TCP connections your computer can have at one time. I can see what they are thinking, but I wont mind unless some of my applications (like my multi-threaded port scanner) wont work correctly with this new setting. I guess I'll hold off on increasing the max. untill an application generates an error because of it. Here is a registry edit you can do to increase the... [More]