Running ASP.NET Development Server Without Virtual Path, From Root#

I had been looking for a way to get the asp.net development server to run w/o a virtual directory settings.  It's really very stupid and short sighted to not enable this.  Just about every project I have ever worked on has some paths coded into the HTML that are based on / being the root, not the application root.  Stupid.

 

Anyway, ScottGu posted these steps on his site, and it works.  Not bad!

Step 1: Select the “Tools->External Tools” menu option in VS or Visual Web Developer.  This will allow you to configure and add new menu items to your Tools menu.

 

Step 2: Click the “Add” button to add a new external tool menu item.  Name it “WebServer on Port 8080” (or anything else you want).

 

Step 3: For the “Command” textbox setting enter this value: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE (note: this points to the web-server that VS usually automatically runs).

 

Step 4: For the “Arguments” textbox setting enter this value: /port:8080 /path:$(ProjectDir)

 

Step 5: Select the “Use Output Window” checkbox (this will prevent the command-shell window from popping up.

 

 Once you hit apply and ok you will now have a new menu item in your “Tools” menu called “WebServer on Port 8080”.  You can now select any web project in your solution and then choose this menu option to launch a web-server that has a root site on port 8080 (or whatever other port you want) for the project.

 

You can then connect to this site in a browser by simply saying http://localhost:8080/.  All root based references will work fine.

 

Step 6: The last step is to configure your web project to automatically reference this web-server when you run or debug a site instead of launching the built-in web-server itself.  To-do this, select your web-project in the solution explorer, right click and select “property pages”.  Select the “start options” setting on the left, and under server change the radio button value from the default (which is use built-in webserver) to instead be “Use custom server”.  Then set the Base URL value to be: http://localhost:8080/

Categories: Code Links | ASP.Net | VS.Net
Wednesday, April 12, 2006 1:42:57 PM (Central Daylight Time, UTC-05:00) #    Comments [3]  | 

 

Databinding in .Net 2.0 (DNR TV)#

Brian Noyes is the guest on DNR TV to cover databinding in .Net 2.0.

The video can bee seen here.

Categories: Code Links | .Net Framework | Web Site Links
Monday, April 10, 2006 6:26:51 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Project References vs. Assembly References#
In our current applications we are using Assembly References so that you can load up a project without needing to load up every project it references, and all the ones that they reference and on and on.

However MS suggests that you use Project References whenever possible, so I think when we cut over to TFS we will be switching to project references.
Categories: Code Links
Thursday, March 23, 2006 4:41:08 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

SqlDependency#
I am at a Developer event at Microsoft right now, and the presenter just talked about some a way to setup a dependency on some data from sql server.

He didn't go over it much, but it is something I should look into a bit more.

I would guess it needs to poll the DB or something, will be interesting to see how it works.
Categories: Code Links
Thursday, March 23, 2006 2:06:12 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Returning Business Objects from .NET Web Services#
There are times when it would be nice to pass a business object over a webservice and consume it on the other side.

This is made somewhat complex by microsoft auto generated proxy system that builds a stripped down version of you object for the client to consume.

You can manually go in and modify the proxy class files, which is what I had done, but now there are some other options available to you to achieve this. This article talks about how you can get customize the proxy creation, so that you can auto generate your proxies whenever you want, and you won't lose your custom code.

Here is another possible solution. But the latter link looks like it is doing a lot of mapping with the use of a wrapper class. A lot more work that I would want to do probably.
Categories: Code Links
Thursday, March 16, 2006 12:43:31 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Unit testing of Data Access Layer code#
One of the parts where Unit testing seems to fall apart, or become a giant pain at least, is in applications or parts of applications that rely heavily on data access from a large relational database like sql server.

You run some operations against the database and end up with a result set. Is that result set right? Ok it looks good, now what? Well some people would say that you should restore the DB to the point before you started this last test. This can be very painful if you are trying to run hundreds, or even simply dozens of tests.

In this article on MSDN the author goes over some options for avoiding the use of database restore. There is some talk about using mock objects in conjunction with NMock, which of course Fowler would like to remind you aren't stubs, but the majority of the article focuses on the use of DTC to rollback changes made in each test teardown.

I had some problems getting DTC to run across machines, but it worked great locally, so there was some success in my tests.
Categories: Code Links
Thursday, March 16, 2006 12:37:19 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Synchronizing the ASP.NET Cache across AppDomains and Web Farms#
This article covers an interesting topic that has shown itself in my current project: using the Cache across appdomains and web farms.

In the end his solution is basically to create a mechanism to write out cache information to files that each app domain watches for changes (or so I gleamed from glancing over it) but in our case we are storing little bits and pieces and not large things. In other words, the added overhead of reading/writing to the filesystem would probably eliminate the benefit of using the cache for our application.
Categories: Code Links
Tuesday, December 06, 2005 8:36:20 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

ASP.NET throwing OutOfMemoryException around 800+ MB, regardless of available memory#
I just read this article which seems to describe the situation I am seeing today with our application.

The solution is to boot the computer with the /3GB option to allow ASP.NET to use more memory, but I think we only have 2GB in the machine. Will need to investigate.
Categories: Code Links
Monday, December 05, 2005 4:09:23 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

NUnitASP#
I have been messing around with NUnitASP a little, it is not exactly perfect.

I haven't been able to find out if there is anything in TFS testing that can do what it does.
Categories: Code Links
Monday, December 05, 2005 2:30:53 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Expinion.net#
Expinion.net has some interesting controls.

Mainly the one I am interested in is the multi calendar control. I have no idea if these work with asp.net or not, I will need to check it out.
Categories: Code Links
Monday, December 05, 2005 1:46:28 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

GoogleRankings.com#
Google Rankings, is a pretty cool website.

You can enter a phrase and your site and it will tell you where you come up on the index. I know these are not 100% accurate in the sense that a search one day could be very different from a search the other day depending on which set of servers you hit, but it can give you some idea of where you stand.
Categories: Code Links
Monday, December 05, 2005 1:43:03 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Psyco Printer#
One of my clients was having a problem where every now and then a print job would fail, and it would eventually cause the server to die.

I found some info here: spoolsv.exe.

Stopping and restarting the print spoler service did the trick, I didn't need to clean out the files from the print attempt.
Categories: Code Links
Monday, October 03, 2005 11:57:42 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Binary Representation of Decimal Values#
More decimal issues, but unrelated to the SQL stuff. The problem being that numbers like 1/10 can be easily displayed in base 10 as 0.1. But, in base 10 we have problems with numbers like 1/3, .3333333333. Well, in binary, they have problems with some of our decimal numbers that you wouldn't expect. e.g. 0.4 - 0.1 = 0.30000000000000000000004 while 1.4-1.1 = 0.29999999999999999999998.

The problem here is with rounding. I wrote a quick JS function to round these numbers to a significant number of digits.
Categories: Code Links
Thursday, September 29, 2005 7:50:28 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

SQL Server's Stupid "Decimal" DataType#

Ok so, on a recent project, for some reason, I set up a few fields, and the corrosponding SP parameters as "decimal" datatypes. What a mistake.

After lots of rounding errors, which were partly ignored because the revised "specs" called for these figures to be integers (later changed to decimals), I found out that a Decimal datatype has no decimal places, unless you specifically declare it.

The reason for this is that a "decimal" is really just another name for a "numeric". So I guess I can understand that part... but how dumb is it that a decimal, by default, has no decimal places.

I went back and changed everything to float.

Use decimal(x,x) instead of float.  See here for the reason why.

Categories: Code Links | Programming | Database | SQL Server
Tuesday, September 27, 2005 9:42:13 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

The destruction of my ugly bar#
When my wife and I first moved into our house, the first thing we wanted to do was get rid of this ugly, and seemingly useless bar in our basement.

To be honest I have no idea what anyone would have done with this thing, but at some point someone spent a lot of time to install this thing.

The day finally came when I decided it was time to take action (mostly because I have to sell my house very quickly and this thing is ugly).

I wish I had some "before" pictures, but I didn't think about that when I started.


Some of the junk that was removed, awaiting disposal.



The newly freed space. We are going to make this where we put our TV and stuff.



This was the most interesting part for me. I had to cut some pipes running to the sink in the bar and sweat on a cap. I had never done this before so it wasn't that easy, and it was made even harder by the fact that I had about 18" of space to work with in this area behind the bar. But, it's finally done.
Categories: Code Links
Friday, September 23, 2005 8:20:18 AM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

More on AssemblyVersion and AssemblyFileVersion#
I just came across this post by Carlos J. Quintero, a .net MVP.

He explains basically what I have been encountering in dealing with versioning of assemblies.

He even points out the bug I found with auto incrementing the AssemblyFileVersion number.
Carlos J. Quintero [.NET MVP] Jun 23, 3:34 am

Newsgroups: microsoft.public.dotnet.framework
From: "Carlos J. Quintero [.NET MVP]" <carl...@NOSPAMsogecable.com> - Find messages by this author
Date: Thu, 23 Jun 2005 10:34:05 +0200
Local: Thurs, Jun 23 2005 3:34 am
Subject: Re: AssemblyVersion numbers and recompiling code
Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse

Hi Joe,


There are 2 versions that you need to take care of:


1) The version of the file: this is the version of "classic" Win32
applications or DLLs, that is, the one shown using the Properties dialog of
Windows Explorer.


It is set with the AssemblyFileVersion attribute in AssemblyInfo.vb file:


<Assembly: AssemblyFileVersion("1.0.2.4")­>


Notice that this attribute is not written by default when the file is
created so you need to add it by hand.


This is the version that should be autoincremented but, alas, using "1.0.*"
does not autoincrement it in each build. I would say this is a bug.


2) The version of the assembly: this is the version of .NET assemblies,
which is different than the file version. That is, this is the version shown
in the Property dialog of the GAC in the first tab (the second tab shows the
file version). For example, in Net Framework 1.1, System.Windows.Forms has a
file version 1.1.4322.573 and an assembly version 1.0.5000.0


It is set with the AssemblyVersion attribute in AssemblyInfo.vb file:


<Assembly: AssemblyVersion("1.0.0.0")>



Notice that this attribute is written by default when the file is created so
you don´t need to add it by hand.


This is the version that can be autoincremented using "1.0.*" but generally
you don´t want to do this because you want to keep the same assembly version
in each build until you break the backwards compatibility. I would say that
this autoincrement feature is another bug.


So:


- Change always the AssemblyFileVersion on each build.


- Change the AssemblyVersion only if you are breaking the backwards
compatibility. Do not change it for bug fixes or other minor INTERNAL
changes which won´t break clients.


- Clients can be configured through a config file to run against an exact
dll a.b.c.d or with any a.b.* build number (provided that major and minor
digits don´t change). See the .NET Framework docs about this.


--
Best regards,


Carlos J. Quintero
Categories: Code Links
Monday, September 19, 2005 11:14:55 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

The LINQ Project#
The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. It extends C# and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities.
Categories: Code Links
Monday, September 19, 2005 9:45:31 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

AJAX in ASP.NET 2.0, code name "Atlas"#
I have already been rolling my own AJAX based controls (and they are sweet, I have to say I am very proud of how OO I was able to make them on the client side). Microsoft has a set of extensions that are supposed to let you do this stuff with asp.net called Atlas. They have a website set up to talk about some of the specifics.
Categories: Code Links
Monday, September 19, 2005 9:30:28 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

FSBO#
I am still working through all the FSBO crap.

It seems that http://www.buyowner.com/ doesn't put your site in any MLS, so it doesn't show up on ChicagoTribune.com or Realtor.com.
http://www.listmefree.com looks like they DO put you in the MLS, but you have to pay a buyers commission.
This site, which I think is just an alias of nuwaymls.com seems to suggest that they get your house in the MLS and Realtor.com but you don't work with realtors to do the selling... but you use a realtor to list it?
Categories: Code Links
Sunday, September 18, 2005 11:58:32 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Device Mounts For Cars#
My brother showed me http://www.proclipusa.com/ today. It's pretty cool. They have a bunch of different clips that fit all kinds of cars and devices.
Categories: Code Links
Sunday, September 18, 2005 11:21:58 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Code Access Security#
In a project I am working on, one of the requirements was that the application be allowed to browse its own pages (e.g. programatically open up a web request and browse the html pages that are served up by the site).

Anyway, this permission is not allowed on the hosting environment they decided to use. This page talks about the permissions available in ASP.NET 2.0, and the different levels of security you can set on applications.
Categories: Code Links
Sunday, September 18, 2005 8:41:17 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Resetting a Cisco Password 2#
Here is the documentation from Cisco, but again I don't see anything about if it resets everything
Categories: Code Links
Friday, September 16, 2005 10:29:58 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Resetting a Cisco Password#
This article is supposed to show you how to reset the password from the terminal on a cisco router. Not sure if it will work or if it will erase the config. I will need to find out.
Categories: Code Links
Friday, September 16, 2005 10:29:26 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DLL Hell a possible solution (repost)#
After making some newsgroup postings and researching a bit. I found out some info that might be a contributing factor to our problems with assemblies getting referenced correctly. In our assemblyinfo file we are auto incrementing the AssemblyVersion . From my reading, this attribute is actually meant to BREAK combatibility. What we need to be using is the AssemblyFileVersion. This can be incremented w/o breaking compatibility and still help us figure out what DLL we are dealing with (which version). This blog has an entry about it.

Note: I had to repost because I accidently used some tags in my article that don't show up.
Categories: Code Links
Thursday, September 15, 2005 10:29:08 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DLL Hell, a possible solution#
After making some newsgroup postings and researching a bit. I found out some info that might be a contributing factor to our problems with assemblies getting referenced correctly.

In our assemblyinfo file we are auto incrementing the . From my reading, this attribute is actually meant to BREAK combatibility. What we need to be using is the This can be incremented w/o breaking compatibility and still help us figure out what DLL we are dealing with (which version).

This blog has an entry about it.
Categories: Code Links
Thursday, September 15, 2005 9:34:56 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

How Assembiles Are Located#
This article on MSDN details how assemblies are located by the Runtime.
Categories: Code Links
Tuesday, September 13, 2005 10:26:29 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Cool Javascript Effects#
Not sure if I have linked to http://script.aculo.us/ before, but they have some cool javascript effects on there. To top it off, they are free.
Categories: Code Links
Tuesday, September 13, 2005 9:18:06 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

.NET DLL Hell#
.NET was supposed to resolve the problem of DLL Hell.

Well that is exactly where I am right now: DLL Hell.

I have wasted so much time on stupid versioning issues and other problems that seem to have no cause whatso ever.

Right now I try to build and I get the error:
Cannot copy assembly 'ASDF.Web.Controls.DateTimeControls' to file 'C:\Data\WalshVSSRoot\ASDF.Web.Users\bin\Walshgroup.Web.Controls.DateTimeControls.dll'. The process cannot access the file because it is being used by another process.

Thats nice. No one is using the fricking file, and I haven't had this problem during my last ... oh I don't know... say ...10,000 builds, but now it is becoming an issue. Great.

My other new friend is this error:
The located assembly's manifest definition with name 'ASDF.Web.Controls.LookupControl' does not match the assembly reference.
Thats nice... manually updating the reference, removing it and readding it, rebuilding, manually copying the DLLs to the bin etc don't help. This is a POS. WTF.
Categories: Code Links
Monday, September 12, 2005 3:41:04 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Custom Controls and ASP.NET Validation (Client Side) (MORE)#
It turns out that when I said:
It turns out that when I said: Turns out it is as simple as adding [ValidationPropertyAttribute("­Text")] to your class definition for the custom control. That's easy! it really wasn't that easy, at least to get client side support for asp.net validators to work. After a lot of research, and a bunch of looking through the page output I figured out what must be done. If you have a custom server control and it is named "MyDateTime1", then the HTML element that you want to check in your client side validation must also be named "MyDateTime1". In my control, I would output a bunch of different elemnts, using things like ClientID + "_textbox" and ClientID + "_Icon" etc... All I had to do was make sure the textbox (which is what I wanted to run the client side validation against) was named simply this.ClientID and presto!
It really isn't that easy.

I think this worked before because I was created HTML elements, and not ASP.NET Webcontrols. I am trying to basically do the same thing, and let me tell you, it isn't working. I am getting an error saying that there are more than 1 control w/ the same name. The problem (I believe) is that container control is registered w/ asp.net, and when I dynamically add an asp.net textbox with the same name as the parent control, it flips out. With my other control I was just adding an HTML textbox.
Categories: Code Links
Friday, September 09, 2005 1:16:28 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Mortgages and Stuff#
Just to keep a list of what I am working through here:

I am part way done with the loan process at this place, and they seem to have the lowest price so far (I need to get tax info from Kathleen to complete it). They were 5.375 + 660 closing.
Here is another place I was looking over, those rates are from mtgcapital.com.
I haven't yet gone through this site.
Here is yahoo's list of common closing costs.
I haven't called these guys.
Categories: Code Links
Friday, September 09, 2005 10:06:38 AM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Dynamically putting a DIV over Dropdown objects#
Pretty much everyone has the problem of getting a something to show on top of a dropdown at one time or another.

I just found this solution and it appears to work for me. I made some modifications to their ideas to get it to work better for me, but the basic jist is that you dynamically create an IFRAME element and position it w/ a zindex just below the div's zindex, but it will hide the contents below the iframe because it is considered a "window" object
Categories: Code Links
Wednesday, September 07, 2005 2:58:11 PM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

"Hidden" Members#
In VB.Net it has bugged me that some members simply don't show up in intellisense. For example, in asp.net pages, Me.RegisterClientScriptBlock will not show in in intellisense. Once you have typed out the full name, THEN it will show you the required parameters, but still I didn't understand why it did this in VB, and yet C# has no problem.

So I finally did some digging and found that VB HIDES what they call "Advanced" members. I guess they are protecting us dumb VB programmers from getting overwhelmed by extra options and methods. Idiots!

In VS.Net go to Tools > Options > Text Editor > Basic > General and then uncheck Hide advanced members.
Categories: Code Links
Tuesday, September 06, 2005 11:01:55 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Modifying HTML Before Sending To Client - 2#
After further review, it looks like I probably can't use the PreSendRequestContent event w/ an http module to do what I want. Using a Filter appears to be the way to go.

However, after MORE thought, I think I probabaly will implement what I want from within the specific application. I think there would be too much processing overhead to filter out stuff on every page of every request to the site, just for a minor amount of editing.

Here is an article on someone modifying their output into XHTML, and here is the discussion on it.
Categories: Code Links
Monday, September 05, 2005 8:09:19 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Modifying HTML Before Sending To Client#
I am trying to figure a way to modify the output HTML from all pages on a site, while trying to avoid writing code into a base class.This page show the use of an HttpResponse Filter. Their example wires up the filter in the base class, but I am hopeful that I can do the same with an HttpModule, such as this page where they use the PreSendRequestContent event.
Categories: Code Links
Monday, September 05, 2005 7:17:57 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Garage#
We are looking at getting a new house, but some of the ones we are looking at don't have a 2 car garage. I am wondering about how much it would cost us to erect one. This website has some "estimates" for home additions and building.

It looks like they think it should cost 12,000 (and up). But for some reason that sounds pretty low to me. Apparently these guys are doing a lot of garages in the web suburbs, so I am going to call them to see if I can get a "real" figure. I'll also call these guys.
Categories: Code Links
Monday, September 05, 2005 6:22:02 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Cool Motion Detection#
This is pretty cool. Its an example of how to pick out motion detection on a video stream.

Coming soon: "How to find John Connor" :)
Categories: Code Links
Tuesday, August 30, 2005 9:59:26 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Back Button Problems w/ ASP.NET (Internet Explorer cannot open the internet site)#
We are getting these stupid errors every now and then on our site.

I still have no idea. I think it is a combo of the fact that we are: 1) using frames, 2) using smart nav, and 3) dynamically loading controls, probabaly in the wrong spot in the life cycle.

Some dude posted that he fixed the problem with an added closing "/" on some of his server control tags, but I don't think this is our issue:
basicly the problem arises when you fail to in sert the closing "/" in custom component tag for instance <mynamespace:mycomponent > will produce the error but <mynamespace:mycomponent /> will not. Despite the fact that this error is so simple it held me up for some time and the error message produced was of course useless in finding the solution.


I will investigate this though.
Categories: Code Links
Monday, August 29, 2005 10:26:50 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Format Code (HTML, VB.net, C#, TSQL) as HTML Markup#
I posted some of these before, but this one does a bunch of different languages and has source code available.
Categories: Code Links
Monday, August 29, 2005 8:15:52 AM (Central Daylight Time, UTC-05:00) #    Comments [2]  | 

 

Weird problem w/ Composite Controls, ID values, and Viewstate across postbacks#
I was having a problem with some textboxes that I was adding to my control dynamically not retaining their value across postback. These textboxes were of course the ones that I was attaching a whole bunch of code to for a lookup control I am writing, so there was a bunch of stuff going on.

In testing I added another textbox and it DID retain its viewstate w/ no problem.

More debugging and testing and whatnot. In looking at some of the tracing from the postbacks and posts, I saw that it was naming the form element for the newly added test textbox as a generic name "cntl_1" or something like that, whereas the textbox I cared about was "TextField", the ID I was assigning to it programatically. I found that you HAD to give a webcontrol an ID in code in order for it to assign ANY ID to it in the code, which kinda sucks. I really don't care what it's ID is in the HTML, but it would only assign a NAME to it, which doesn't help me in all my javascript programming.

So long story short, I was assigning the ID value of the textboxes in a method that was being called from the prerender event. I guess what was happening was that, in the page lifecycle, it was trying to load the viewstate back into the control, and b/c I hadn't hit the prerender event of course, my textbox didn't have the ID value that was expected.

I moved the ID assignment to the constructor and everything is working fine... so far.
Categories: Code Links
Tuesday, August 23, 2005 3:57:26 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Composite Server Control Sample#
While I am at it, this article talks about composite server controls, which is what I am doing a lot of work with.
Categories: Code Links
Tuesday, August 23, 2005 2:50:28 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Developing ASP.NET Server Controls#
I haven't linked to this page on MSDN yet, so I might as well so I don't have to go searching again next time I need it.
Categories: Code Links
Tuesday, August 23, 2005 2:49:26 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Web based XP "panel bar" code#
This article from CodeProject looks pretty slick. It shows how to create an XP panel bar, and I guess it would use javascript to dynamically hide / show the important areas, but I didn't look really hard at the code.
Categories: Code Links
Tuesday, August 23, 2005 9:40:25 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Where Is ILDASM.exe?#
Every now and then I want to decompile a dll and I want to use ILDASM instead of the Ankrino app I downloaded.

Of course it is buried in an obscure location: ( C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\ildasm.exe ) and I can never find it.
Categories: Code Links
Monday, August 22, 2005 3:57:44 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Javascript to dynamically resize an IFrame#
Here is some code that kinda works. It could still use a little tweaks, but it's a good starting point:

       function IFrameHeight(){  
                     if(document.getElementById && !(document.all)) 
                    
                           h = document.getElementById('iframename').contentDocument.body.scrollHeight; 
                           document.getElementById('iframename').style.height = h; 
                           w = document.getElementById('iframename').contentDocument.body.scrollWidth; 
                           document.getElementById('iframename').style.width = w; 
                    
                     else if(document.all) 
                    
                           h = document.frames('iframename').document.body.scrollHeight; 
                           document.all.iframename.style.height = h; 
                            w = document.getElementById('iframename').document.body.scrollWidth; 
                          document.all.iframename.style.width = w; 
                    
       }

Categories: Code Links
Monday, August 22, 2005 3:19:46 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Discount Realtors#
Ok. I'm trying to buy a house, but I don't want to pay someone 3% just to show me a few places and show up at the closing.

This place looks like they give you back 1000 per every 100,000 in home value. This site does the same thing, but they state 1% of the house, not the 1000 per 100,000 thing.

I think I used Seremak before, and they are now offering full buyers commission - $3000. Which isn't really a "2% Rebate" as they state... but its the best thing I have found so far.
Categories: Code Links
Friday, August 19, 2005 2:01:23 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

I for one welcome our new robot overlords#
On the topic of robots in our society in the future: Marshall Brain talks about his thoughts on this in an article called Robot Nation (and parts 2 and 3) , and the opportunity this presents out society. I'm betting on the darker side of options (more extreme seperation of the haves and have-nots). "Will Humanoid Robots Take All the Jobs by 2050?" is the slashdot discussion of the first part of the article, and "Distribution of Wealth in a Robot-Driven World" is the discussion of the 3rd part.

The idea is that, as robots and technology in general, take over more and more jobs, what will happen to the workforce, and to our society? It's an interesting and troubling question. A lot of people might not think this is a big deal, and follow the assumption that it will work something like this: "Well, if 90% of all fast food workers, and janitors are replaced by robots, then there will be additional jobs working for the companies that support the robots." This is clearly flawed. You don't replace humans w/ robots who required the same number of displaced humans to support them. Otherwise there would be no economical reason to replace them.

So if you can make these giant increases in efficiency, that COULD result in a giant increase in quality of life, and also less need to work. That would work like this: Jack likes to eat a McDonalds, so he works 40 hours a week to make enough money to eat every meal at McDonalds. McDonalds replaces all humans w/ robots and is able to cut the cost of their food to 1/2 its current price. Jack now only needs to work 1/2 as man hours to pay for his McDonalds, so he can enjoy an extra 20 hours of his life each week. But, I feel the way it probably would work is that Jacks employeer would suddenly have all the fast food employees begging for a job, and thus Jacks salary would drop as his value to the company will have decreased.

This is a basic economic question. Over the last 40 years many would argue that our quality of life has increased, and in some ways that is plainly clear. But 30 years ago someone working in a labor job could support a family and own a house. Factories NEEDED people. Now they don't, or they need a lot less people as robots and automation have continued to replace jobs.
Categories: Code Links
Wednesday, August 17, 2005 11:31:17 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Enterprise Library Tutorials#
DotNetJunkies has this article on the Ent Lib's DAAB and ConfAB (you basically have to use the Configuration App block if you want to use DAAB). They say they are going to have follow up articles on each of the app blocks.
Categories: Code Links
Monday, August 15, 2005 4:37:46 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Dynamic Columns in SQL Reporter#
This article shows how you can programatically alter the columns in your SQL Reporter reports.
Categories: Code Links
Monday, August 15, 2005 4:14:27 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

AJAX.Net#
I can't find much information aboiut this stuff. It looks like maybe he is enabling you to call public methods on a webpage code behind, and not really designed to consume web services.
Categories: Code Links
Friday, August 05, 2005 8:23:46 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Webservice HTC#
Even though I really don't wan to use anything MS specific, I don't have the time to code what is provided by the Webservice.HTC file, and I know that supporting non-IE is not at all important where I work, even though my main concern is with being locked down to ANYTHING, not just MS stuff. Here is a good walkthrough of using the behavior.
Categories: Code Links
Tuesday, August 02, 2005 5:56:40 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

AJAX Framework and lookup control#
The AJAX (Asynchronous JavaScript and XML) framework on this guys site is impressive. With little coding I was able to return a string from a webservice into javascript, but I am not sure how it will deal with complex types but I guess it now can pass down an XML doc, which you could pass to an object constructor in JS. The dropdown is sweet (source).
Categories: Code Links
Tuesday, August 02, 2005 5:19:59 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Another webcombo control#
This control is free, but it doesn't do any out of band lookups.
Categories: Code Links
Tuesday, August 02, 2005 4:37:11 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Protecting your images on the web#
The methods discused in this article won't really "protect" your images, only make it a pain in the butt for someone to get them. So I guess that is a level of protection. The article references the free program HTMLEncrypt which encodes your HTML and uses javascript ( I assume ) to dynamically write it out. With this method, you would have to use a tool like the accenture Rainbow frame that I worked with one time to get the dynamically generated content.
Categories: Code Links
Tuesday, August 02, 2005 7:37:19 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Validate HTML and Links (Find Broken links)#
The W3C Validator section has lots of cool tools that run online to check your documents. The header has a link to the link checker which will scan your website for bad or broken links.
Categories: Code Links
Monday, August 01, 2005 6:46:19 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Microsoft SQL Server 2005 Upgrade Advisor#
This tool from Microsoft will help you analyze your current server configuration and help you migrate to SQL Server 2005.
Categories: Code Links
Monday, August 01, 2005 11:55:54 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Javascript Popup Balloon#
This article from Code Project shows how to create a help balloon in DHTML.

Depending on how they implement it, this could be useful.
Categories: Code Links
Tuesday, July 26, 2005 9:28:04 AM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Adding Namespaces to all files#
We are redoing a big project with a ton of files where the project has a "Root Namespace."

These root namespaces are a real pain in the butt!

So I found that if you use the Find / Replace in Files and you turn on RegExp, you can search for:
"Public Class"
and replace it w/
Namespace Old.Namespace\n\nPublic Class

That should work... we will see.
Categories: Code Links
Wednesday, July 20, 2005 11:04:19 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

NUnit ASP#
NUnit ASP is a tool for working with NUnit and the presentation layer of asp.net applications.

Some articles on how to get started w/ it can be found here and here/
Categories: Code Links
Monday, July 18, 2005 9:41:10 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Single Signon#
My friend Phil sent me this snip for your .config files to allow multiple asp.net applications to share the same singon:

<!--Override the machine.config default behavior of the validation to allow authentication across apps

this is done by changing "AutoGenerate,IsolateApps"

to "AutoGenerate"-->

<machineKey validationKey="AutoGenerate"

decryptionKey= "AutoGenerate" validation="SHA1"/>

I haven't tried it in production yet, but will soon.

Categories: Code Links
Monday, July 18, 2005 8:48:52 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Iraq War Creating More Terrorists#
As if anyone didn't KNOW that the war in Iraq is doing more to hurt our security than help it, this report has come out, showing that almost everyone involved in the atacks on American troops in Iraq has come from people who had never participated in any terrorist activity.
Categories: Code Links
Monday, July 18, 2005 8:46:07 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Professional Blogger via AdSense?#
This guy is talking about how he makes more money in 1 month as a blogger, than he did in a year before!
Categories: Code Links
Sunday, July 17, 2005 12:33:30 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Funny ways to avoid work!#
This article is talking about funny ways that people use technology to avoid work (rolling back your computer clock before sending email etc).

Pretty funny, but if someone gets an email at 10:45 and it says it was sent at 4:30, won't you figure it out?
Categories: Code Links
Sunday, July 17, 2005 12:32:04 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Inheritance vs Composition#
This site has a nice little summary of Inheritance vs Composition.
Class Inheritance should be used only if instances of the new class can be used in all situations where the existing class can be used. Class Inheritance not inappropriate if the subclass needs to stub out behaviour implemented by the superclass. Use Object Composition if instances of the new class do not require the protocol of the superclass.
Categories: Code Links
Friday, July 15, 2005 8:42:48 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

O/R Mappers#
I have been messing around with a few O/R Mappers. As of now, I still am not in favor of them, but I want to at least get them KINDA working right.

Mostly the big problem I am having is w/ nulls. You can't have a null integer.

The 2 I have been using are Wilson ORMapper and NHibernate.

This page shows some sample code for Wilson, and this apge is the documentation for NHibernate, with their forms being located here.

In this blog entry Wilson claims that his handles nulls, but I haven't seen how to do that yet.
Categories: Code Links
Wednesday, July 13, 2005 5:21:58 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

SSL over DNN#
There is a free module for SSL login here.

Some have implemented Secure Login here by making the link to login use https.

Here's a thread with a javascript way to turn HTTPS on and off

Thomas Thorp's SSL Module uses an HTTP module

Also, failed passwords are sent to back to the client 's. It's this line in the Signin.ascx.vb file....
txtPassword.Attributes.Add("value", txtPassword.Text)
That re-populates the password textbox with whatever had been typed in.
Categories: Code Links
Tuesday, July 12, 2005 9:02:56 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Creating Javascript Proxies for calling webServices on the client#
This is really pretty cool.

The smart thing that this guy goes is he sets a client side javascript include to a ASPX page, who is in charge of figureing out the WSDL info and building the javascript proxy.

Neato.
Categories: Code Links
Tuesday, July 12, 2005 8:34:44 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Client Side Script for Custom Server Controls#
This is a pretty good blog entry about how to deal with client script in server controls.
Categories: Code Links
Monday, July 11, 2005 10:28:36 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Search Lite for ASP.NET v1.1.0#
I guess I haven't put in an entry for this product.

I am not sure of its ability to scale, but it seems pretty cool. It will look for links on your site (you can even setup forms auth) and it will spider your site and index files (word docs, pdfs etc).
Categories: Code Links
Friday, July 08, 2005 12:05:27 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Creating a sortable collection#
This article on MSND shows what you need to do to make a custom collection sortable by using the ICompare interface.
Categories: Code Links
Friday, July 08, 2005 11:34:55 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Custom Controls and ASP.NET Validation (Client Side)#
It turns out that when I said:
Turns out it is as simple as adding [ValidationPropertyAttribute("­Text")] to your class definition for the custom control. That's easy!
it really wasn't that easy, at least to get client side support for asp.net validators to work.

After a lot of research, and a bunch of looking through the page output I figured out what must be done.

If you have a custom server control and it is named "MyDateTime1", then the HTML element that you want to check in your client side validation must also be named "MyDateTime1". In my control, I would output a bunch of different elemnts, using things like ClientID + "_textbox" and ClientID + "_Icon" etc... All I had to do was make sure the textbox (which is what I wanted to run the client side validation against) was named simply this.ClientID and presto!
Categories: Code Links
Thursday, July 07, 2005 7:28:43 AM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Illinois Tenant Union#
Well my shady ass landlord from my apartment has still not returned my security deposit. Sounds like this might be another trip to the Illinois Tenant Union.
Categories: Code Links
Wednesday, July 06, 2005 11:08:53 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Javascript Visual Effects#
This website has some pretty cool example of various effects you can do w/ javascript.
Categories: Code Links
Wednesday, July 06, 2005 2:22:18 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Singleton#
This article is pretty good explanation of various implementations of the Singleton pattern in C#.
Categories: Code Links
Tuesday, July 05, 2005 2:17:39 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Custom Controls and ASP.NET Validators#
I was trying to find out what I needed to do to extend my custom server controls to work with the built in ASP.NET validators.

Turns out it is as simple as adding [ValidationPropertyAttribute("­Text")] to your class definition for the custom control. That's easy!
Categories: Code Links
Friday, June 24, 2005 1:32:38 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

String.Format format string#
I could have sworn that this was in here already, but I guess not.
Categories: Code Links
Wednesday, June 22, 2005 9:28:40 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Macro for fixing Dreamweaver comments in pages edited by VS.Net#
This project is supposed to help with the stupid VS.Net formatting of HTML, if you can call it that.
Categories: Code Links
Wednesday, June 15, 2005 4:43:04 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Using Amazon for Payment Gateway#
Amazon will list your items next to their and only charge a super low fee, something like 0.25 + 2.5%. This sounds too good for people who were using paypal before.
Categories: Code Links
Wednesday, June 15, 2005 6:33:11 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

SSPI Context error#
This was the stupid error I was getting through my VPN.
Categories: Code Links
Tuesday, June 14, 2005 9:42:43 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Historical Home Sales#
This application on the Baird & Warner site is really cool.

From a technical perspective it is pretty slick too, it creates a map with lots of hot spots that you can click on to get info from the client side.
Categories: Code Links
Tuesday, June 14, 2005 2:39:28 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Designing Business Entities#
I was just skipping over a good PP white paper from MS called Application Architecture for .NET: Designing Applications and Services. It had a few interesting parts that I am going to go back and read more. It also referenced an article called Designing Data Tier Components and Passing Data Through Tiers. Worth reading.
Categories: Code Links
Sunday, June 12, 2005 7:16:44 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Poker Odds Calculation#
Here is a graphical and non-graphical way of calculating odds of winning a hand.

The second link also allows you to include "dead cards" in the calculation, pretty cool.
Categories: Code Links
Sunday, June 12, 2005 6:40:12 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Test Driven D#
Testing ASP.NET Applications with NUnitASP and NUnit is an article on The Server Side.NET" that talks about implementing testing w/ ASP.NET and NUnitASP and NUnit.
Categories: Code Links
Sunday, June 12, 2005 3:55:44 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Cool Javascript Editor#
This Javascript editor looks pretty cool. It looks like it basically does the same stuff that VS does for server side code (e.g intellisense, debugging etc).
Categories: Code Links
Sunday, June 12, 2005 3:51:29 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Code Coverage w/ NCover#
NCover is a tool that you can use to get information back about your application, and specifically information about the actions against individual lines of code.
Categories: Code Links
Sunday, June 12, 2005 3:45:31 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Dynamic Text Image Generation in ASP.NET#
This article does a pretty good job in describing how to implement the creation of dynamic text in an image in asp.net.

I was working on something similar for my CAPTCHA control, but I can tweak it with some help from this article to do other stuff.
Categories: Code Links
Saturday, June 11, 2005 10:37:18 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Stuipd Namespace error#
So, even though when I use intellisense to declare a FQ type it has "Walshgroup" with a capital "W", when I declare a namespace in another assembly, I have to use lower case "w" because the main application has the lower case "w" in its default namespace declaration.

Totally totally totally dumb. I would have never figured it except for this article.
Categories: Code Links
Friday, June 10, 2005 4:13:56 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Stupid Machine.Config error#
I have been getting this stupid error every now and then, this page goes over the issue.
Categories: Code Links
Friday, June 10, 2005 4:03:52 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

SQL Server Performance Checklist#
This page basically goes through a bunch of steps and checklists for things you should do if you want to make sure you have optimal performance on your SQL Server database.
Categories: Code Links
Friday, June 10, 2005 10:36:10 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Patterns and Practices#
I often list thing on here that I don't have time to read, but am hoping to actually get back to at some point. This is one that I really need to go over. Microsoft's Patterns and Practices group produces lots of great stuff, which mostly fit into 1 of 3 groups: Patterns, Guides, or Code Blocks.

Patters are basically design patterns, not only for software development, but for other stuff like database design.

Guides are basically white papers on various topics.

Code Blocks are great components that you can use in your applications. I have only been using the Data Access blocks, but w/ the release of the Enterprise Library, there is a compelling reason to work more with them.
Categories: Code Links
Friday, June 10, 2005 7:18:45 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

HTML Codes#
I was looking all over the place trying to find how to do a Nabla symbol in HTML: ∇. Finally found it and the other stuff I needed at: this site
Categories: Code Links
Monday, June 06, 2005 9:34:40 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Module Development#
These two forum postings cover some interesting stuff: getting the current UserID and how to check user role.
Categories: Code Links
Sunday, June 05, 2005 10:37:43 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Mutliple Views in a DNN3 Module#
I have been doing a bunch of work getting modules to show multiple controls, or views in a single DNN module, w/o forcing it to enter "Edit" mode.

So far, I think the solution I have come across is working, but just in case something goes horribly wrong, this guy has put together a nice article on how he does multiple views.

Dealing with the scroll position can be an issue as well, which is covered in this blog post, pretty good idea.
Categories: Code Links
Thursday, June 02, 2005 10:32:33 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Windows Access Token Delegation#
When you are doing impersonation, the token that the server uses is an impersonation token, and in order to "hop machines" with that token, to access UNC shares for example, you need to use < a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;810572">delegation to access the resources.
Categories: Code Links
Thursday, May 26, 2005 6:18:37 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Transparent Overlay in Flash#
This article covers the methods available for making flash float and be transparent.

It's supposed to be for Flash5, but it works in MX 2004 as well.
Categories: Code Links
Wednesday, May 25, 2005 8:46:08 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Javascript (and apparently other programming languages) can't do math#
This is retarted.

You give Javascript (and according to this article C, C++, or other languges) 2 number to multiply where one of them cannot be represented as a binary floating value and it will freak out when you try to multiply them together.

Check out the example below! Click GO to see the math result. Notice that in the 2nd example, all I am doing is multiplying by 10 and dividing by 10, so really nothing.


Categories: Code Links
Monday, May 23, 2005 9:25:50 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

"The Wall" Live#
This would be a good CD, one that I should probably order or buy or something.

I have downloaded a few live Pink Flyod CDs and they all kinda suck, but this one sounds pretty good, at least the tracks I have heard on launch.
Categories: Code Links
Sunday, May 22, 2005 11:28:18 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

1000% bonus poker site?#
This place is claiming they give you a 1000% bonus up to 5000 bucks when you sign up to play with them.

Sounds too good.
Categories: Code Links
Thursday, May 19, 2005 5:47:36 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Poker Tournament Results#
I have been playing more and more sit and go tournaments and I have been winning a few so I thought I should start keeping track of how I do. This is as good a place as any. I'll just do it in the comments.
Categories: Code Links
Tuesday, May 17, 2005 1:48:49 PM (Central Daylight Time, UTC-05:00) #    Comments [19]  | 

 

Validate CSS#
This site will look over your site and figure out if your CSS is valid, and check if you are doing stupid stuff w/ it.
Categories: Code Links
Thursday, May 12, 2005 3:47:56 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Spider Test Your Site#
This page will take a url and spider it like it was a search engine, letting you know which links are being found and which are not (e.g. javascript redirects).

Pretty cool interface.
Categories: Code Links
Thursday, May 12, 2005 3:45:51 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

"Stripping off the time" from SQL Server DateTime datatypes#
SQL Servers DateTime must always contain a time value, but you can make it so that it is always set to midnight, or 00:00:00 by using the following code:

@dDate = DATEADD(d,DATEDIFF(d,0,@dDate ),0)

Not exactly pretty, but it does the trick.
Categories: Code Links
Thursday, May 12, 2005 10:45:39 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Thumbnail Extraction Using the Shell#
This article at vbaccelerator.com shows a way to use the IExtractImage interface to extract a thumbnail from any object that implements the IExtraceImage interface. This can be used for powerpoint files, word docs, and videos.
Categories: Code Links
Wednesday, May 11, 2005 12:41:47 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Cracking the Google Code... Under the GoogleScope#
This article from WWWCoder and the related http://yro.slashdot.org/article.pl?sid=05/05/10/1546207&tid=217&tid=155slashdot discussion has an overview of the patents filed by google for their new search technology (I believe its called TrustRank, as compared with PageRank which is used now).

The goal is to cut down on SEO spam and artificial links used to drive up placement.
Categories: Code Links
Tuesday, May 10, 2005 1:27:43 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Provider Design Patter#
When I have some free time (hahahha oh oh oh ok seriously that is funny, ok back to this entry) I should read this article on the provider model. It is basiclaly a way to write you applications to you can plug in a provider to abstract a section of work (e.g. error logging, or database connection)
Categories: Code Links
Tuesday, May 10, 2005 1:22:44 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Another Image Cross Fade w/ Source#
Here it is. It even has the source on the page.
Categories: Code Links
Wednesday, May 04, 2005 10:42:21 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Image Cross Fading w/ Javascript#
Here is a pretty cool example of image cross fading using javascript and DOM manipulation.
Categories: Code Links
Wednesday, May 04, 2005 10:40:58 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

VB Code to HTML Markup#
This cool little tool will convert VB code to HTML. A cool think would be to write an HTTP Handler for a blog site that would simply look for CODE sections and dynamically convert the code in those sections to nice markup. I guess you could do it on save as well, but that wouldn't be as nice for editing.
Categories: Code Links
Tuesday, April 26, 2005 2:21:21 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

CS and DNN get Integrated (Ad hock Solution) #
This posting on the Community Server forums shows a hack way to integrate the CS into DNN.
Categories: Code Links
Tuesday, April 26, 2005 12:24:41 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Find Out Webserver Info#
This site can find out information about the server hosting any website. It's easy to see if it is running windows, or a *nix, and what kind of server, apache, IIS, what version etc.
Categories: Code Links
Tuesday, April 26, 2005 10:42:35 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

CodeThat Grid - Excel Grid in Javascript#
Code That Grid is pretty amazing. Its basically a client side Excel sheet. Really neat.

I wonder how it would do with a ton of data though, if the javascript would slow to a crawl.
Categories: Code Links
Friday, April 22, 2005 1:47:25 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

More Scrollers#
Tigra Scroller Pro has nice features like the ability to pause, FF, and RW, but I can't tell if you can show more than 1 item at a time.

AJScroller is pretty cheap (30 bucks) but it isn't an asp.net control. I might be able to extend it to do what I want.

This site has code to make one yourself, that I might be able to wrap into my own control if needed. Parasoft has a nice and cheap control, but it doesn't look like you can reverse it.

Categories: Code Links
Friday, April 22, 2005 1:46:21 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Prog Studio Client Script Obfuscator#
The Client Script tool compresses Javascript and JScript. It also encodes JScript and VBScript.

I wonder how they are doing this... how the client understands the obfuscated code I mean.
Categories: Code Links
Friday, April 22, 2005 1:10:17 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

AlbumOnNet#
Album On Net offers some interesting controls for dealing with pictures, galleries and slideshows.

Its not the kind of rotator I am looking for, but could be useful on the project I am working on for Aarca.
Categories: Code Links
Friday, April 22, 2005 12:53:47 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Some interesting controls#
ActiveUp has some interesting controls, demos are here.

Some of the more interesting ones were a "Page Loading" control, which takes over the screen while a page is downloading until the page has finished. This is pretty nice, and I could seem some use for it on some of our pages that do a lot of processing, or send down a lot of data in the form of a long grid or whatever.

Also, they have a page protector control, which basically disables the ability to copy and past from the page. Also, it take the content of the page, encodes it and sends down a javascript write command, so I guess if you looked at the source it would be a long encoded string. This would really discourage the avg person, but it wouldn't be hard to convert the string back your self.

Still, pretty neat.
Categories: Code Links
Friday, April 22, 2005 12:49:01 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Going from a datagrid to excel#
Before I forget it, I wanted to make sure to put in a link to this article. It has some good ideas for how to deal with unwanted non-literal controls on the page.
Categories: Code Links
Monday, April 18, 2005 4:50:32 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

2 Good ASP.NET Custom Control References#
I was doing some work this morning involving a custom asp.net control, and I was running into some stupid problems. Both of these articles, Chapter 14 Custom and User Controls, Programming ASP.NET: Custom and User Controls (espically the second article, which is really a 5 page article (links at the bottom) ), were really nice to reference.
Categories: Code Links
Monday, April 18, 2005 7:34:57 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

WebSupergoo ABC Products#
WebSupergoo has some insteresting components. The one's that peaked my interest are the upload control, which includes a HTML progress bar and the Crypto component.

The Upload control is free if you link to their site.
Categories: Code Links
Thursday, April 14, 2005 1:13:42 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

8 Nice SQL Server Tools#
This list from FTPOnline lists 8 tools for SQL Server. The 2 that caught my eye were the program to help you generate scripts and queries and the Veritas performance insight tool.

EM already has a designer for creating queries, but maybe this would be nicer.

Maybe the Veritas product would be able to help us figure out why some equipment reports seem to take 30x longer to run on some days. On the other hand, the description of the Veritas program is one of those "it does everything by magic" product listings, so maybe it sucks. And Veritas is always really expensive.
Categories: Code Links
Thursday, April 14, 2005 11:00:30 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Creating a Distribution List Using CDOEXM and ADSI #
This article deals with creating a distribution list from ADSI/VBscript. I don' think this is the route we want to go, but it is worth looking over.
Categories: Code Links
Thursday, April 14, 2005 6:45:00 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Appforge Releases Data Synchronization Component#
Data Sync from AppForge appears to be a way for you to sync data directly between a device and and back end server. I was going to be doing this with the help of an expensive add-on, which of course I already ordered, but if I could just write 1 set of code to do it this way, it would be really worth it. It looks like it comes with the new version of Crossfire, and doesn't cost anything extra. Also, it appears to have an SDK, and to have built in encryption.
Categories: Code Links
Thursday, April 14, 2005 6:34:01 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Interview w/ SQL Server's Tom Rizzo#
FTPOnline interviews Tom Rizzo from Microsoft's SQL Server team. The discuss, of crouse, is around the upcoming SQL Server 2005.
Categories: Code Links
Thursday, April 14, 2005 6:22:41 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

ASP.NET Modal Dialog Control#
Even though I already wrote my own modal dialog control, this might be worth looking over. This guy made a control that you can drop into an asp.net page and use. There are some things that are not 100% correct in the article, like the necessity for an IFRAME, but it still might be worth a read.
Categories: Code Links
Wednesday, April 13, 2005 10:33:04 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Leverage Acitve Directory #
This product, called rDirectory is supposed to do something with AD. I really can't get a clear picture, and their "demo" is to sign up for a webdemo, which means I would have to talk to a salesman. I think it acts as a portal for accessing information stored in AD, but I should look into it further, maybe download a trial or look for a white paper.
Categories: Code Links
Monday, April 11, 2005 6:34:17 AM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Software to Maintain Distribution Lists#
I think I have already done 95% of the work needed to have my SyncAD program serve to maintain distribution lists as well, but MD sent me this link to some software that is supposed to do the same thing. Worth looking into.
Categories: Code Links
Monday, April 11, 2005 6:31:15 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

More Images In SQL Server#
Here is another article about storing images in SQL Server. In case that last one left something to the imagination.
Categories: Code Links
Monday, April 11, 2005 6:29:11 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

10 Tips To Speed Up SQL Access#
I think I already read this article in the magazine when it came out, but it's a good reference.
Categories: Code Links
Friday, April 08, 2005 6:36:57 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

HttpWebRequest#
This is a quick example of how to use the HttpWebRequest to act as a proxy for pulling down data from a URL.
Categories: Code Links
Friday, April 08, 2005 6:23:36 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

These are not moving#
WTF?
Categories: Code Links
Friday, April 08, 2005 12:33:03 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

SQL Notification Services #
I haven't seen this product before, but just ran across it while searching for some other stuff. SQL Notification Services for SQL Server 2000 and 2005.

This could be a replacment for our EPS.
Categories: Code Links
Monday, April 04, 2005 3:25:24 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Orphaned SQL Users After DB Restore#
When you restore a SQL Database, the users in that database will often be orphaned because their SID will not match the SID of the user with the same name on the server where the restore is taking place.

This is basically the problem being discussed in this thread in the MSDN newsgroups.

The one really good solution that was given was to use a free utility called Sync SQL Logins. You can tell it to match all users based on name, and it will go ahead and update all the SIDs! Pretty cool!
Categories: Code Links
Monday, April 04, 2005 2:49:42 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Indigo Webcasts#
These webcasts, totalling 7 hours, are supposed to be about microsoft's new "unified" methodology for distrubuted applications, code named Indigo.

I should probably watch them, or at least check them out. Indigo is "supposed" to allow one to create applications that would normally use .net remoting or webservices, w/o having to choose one or the other, but I really have no idea. Sounds like it might just be .net remoting over HTTP, but I will have to see.
Categories: Code Links
Monday, April 04, 2005 12:41:55 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Freezing a datagrid header and column#
This article shows an example of an extended datagrid which allows the header and columns to be "frozen", much like what I am doing with the header in the cost report. But this could lock down the left column as as well.
Categories: Code Links
Sunday, April 03, 2005 2:49:12 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Building a Better Wait Page#
This Code Project article discusses a mechanism for building a "wait" page, much like how I am presently going about it.

One major differenace is that I was planning on using a page that would repost every 5 seconds or so, while they are using an out of band callback. This might be worth looking into, but another thing is how they utilize a XMLHttpRequest object, which I didn't know existed for non IE browsers. This can be used for some of the other out of band operations that I am working with to make our pages more browser independednt.
Categories: Code Links
Sunday, April 03, 2005 2:44:39 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Querystring Class#
This article shows a class that allows the programmer to add valued pairs, which can be explored in QS format when needed.
Categories: Code Links
Sunday, April 03, 2005 2:37:25 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Images in SQL Server BLOBs#
This article deals with using an images from a blob field in a SQL Server database.

We need to do this stuff with employee pictures. This shows the code needed to save an image to a blob and how to stream an image from a blob to a browser.
Categories: Code Links
Sunday, April 03, 2005 2:35:12 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Starting Hands for Holdem#

Hold'em Hand Groupings:

  • Group 1: AA, KK, QQ, JJ, AKs
  • Group2: TT, AQs, AJs, KQs, AK
  • Group3: 99, JTs, QJs, KJs, ATs, AQ
  • Group4: T9s, KQ, 88, QTs, 98s, J9s, AJ, KTs
  • Group5: 77, 87s, Q9s, T8s, KJ, QJ, JT, 76s, 97s, Axs, 65s
  • Group6: 66, AT, 55, 86s, KT, QT, 54s, K9s, J8s, 75s
  • Group7: 44, J9, 64s, T9, 53s, 33, 98, 43s, 22, Kxs, T7s, Q8s
  • Group8: 87, A9, Q9, 76, 42s, 32s, 96s, 85s, J8, J7s, 65, 54, 74s, K9, T8, 43

Modified Hold'em Hand Groupings:

  • Group 1: AA KKQQ JJ AKs
  • Group 2: TT AQs AJs KQs AK
  • Group 3: 99 KTs QJs KJs ATs AQ
  • Group 4: A8s KQ 88 QTs A9s AT AJ JTs
  • Group 5: 77 Q9s KJ QJ JT A7s A6s A5s A4s A3s A2s  J9s T9s K9s KT QT
  • Group 6: 66 J8s 98s T8s 55 J9 43s 75s T9 33 98 64s 22 K8s K7s K6s K5s K4s K3s K2s Q8s 44 87s 97s
  • Group 7: 87 53s A9 Q9 76s 42s 32s 96s 85s J8 J7s 65 54 74s K9 T8 76 65s 54s 86s
Categories: Code Links
Saturday, April 02, 2005 11:00:23 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

More Hold Em Software Programs#
Here are some various hold em shareware programs.
Categories: Code Links
Sunday, March 27, 2005 12:09:11 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Advanced System Building#
This article from FiringSquad talks about some of the "finer" points to consider when building a machine.

Stuff like which brand of equipment, configurations, and methodology. Pretty interesting read.
Categories: Code Links
Thursday, March 24, 2005 3:35:28 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

30 Mile Cordless Phone#
This $300 phone from Samsung purports to have a cordless range of 30 miles.
This would be really cool if it in fact worked, w/o the terrible cell phone like reception.
Categories: Code Links
Monday, March 21, 2005 4:43:04 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

MS Best Practices for Exception Handling#
Exception Management Blocks and the Instramentation Framework were referenced in an article I just read on handling exceptions in managed code.
Categories: Code Links
Monday, March 21, 2005 2:15:06 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

WUS Beta Newsgroup#
This hard to locate web-group can be accessed by logging in with u: betanews\wusoepnews, p: Update.
Categories: Code Links
Monday, March 21, 2005 10:39:10 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

2 other poker programs#
The Edge and Poker Office are 2 other programs that deal with hold'em stats.
Categories: Code Links
Monday, March 21, 2005 7:29:21 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

A few free .NET tools#
Here are some pretty cool .NET tools written by a generous programmer. There are a few in here that could be pretty useful, like the XML viewer.
Categories: Code Links
Monday, March 21, 2005 6:55:11 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Wired Mag Interviews a SEO Professional#
This is an interesting article from a SEO "professional." These guys are usually regarded as scum, making crappy web pages appear near the top of searches instead of the actual results desired by an honest system. But much like spammers, they often use interesting techniques to acheive their results.
Categories: Code Links
Friday, March 18, 2005 4:43:26 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

13 Things That Don't Make Sense#
This article is really interesting. It discusses 13 things that don't make sense, or that we don't understand. The one that I have found most interesting over the years is the question of why the Pioneer spacecraft seem to be accelerating out of our solar system. The small acceleration, which was noticed on both space craft, amounts of the one ship being 400,000 Km ahead of where it should be at this point. Some propose that this could be caused by the same dark energy that seems to be at the source of our ever expanding universe.
Categories: Code Links
Friday, March 18, 2005 4:19:53 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Feb SQL Server 2005 CTP#
I had to look up again that CTP means Community Technology Preview. It can be downloaded here.
Categories: Code Links
Wednesday, March 16, 2005 5:17:40 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Programmatic Impersonation in ASP.NET#
This write up from Rick Strahl's blog is pretty cool. It was in response to something I posted to the newsgroups.

His blog is powered by dotText, or .Text, which is getting incorporated into the new Telligent Systems Community Server project. That is a cool project.
Categories: Code Links
Wednesday, March 16, 2005 9:58:21 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Various Dialogs and ASP.NET#
This blog entry, and a follow up by another chap here show some ways of implementing dialog box types in ASP.NET.

I'm not sure this is a good idea, but worth reading. I guess you could incorporate some common UI elements into your site w/ dialogs, but there aren't enough times when you need a modal yes/no/cancel that you need an abstracted control, espically when you can use confim(). But I think there is clearly a place for stuff like this to be helpful.
Categories: Code Links
Tuesday, March 15, 2005 8:11:13 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

HTTP SYS Errors#
We are getting a few errors in the IIS logs here and there. Some are no big deal, others should probably be looked into.

This page from MS ( and this one too I guess) shows basically what they all represent. The ones we are seeing are:

Connection_Abandoned_By_AppPool
A worker process from the application pool that quit unexpectedly or orphaned a pending request by closing its handle.
I'm not sure if this means "quit unexpectedly" like an exception was thrown, and handled, or if it means an unhandled exception was thrown, or the web.config was updated and the wp recycled. I guess it shouldn't be that last one actually because it is supposed to spawn a new wp and wait to kill the old one until it has completed all its requests, or varios criteria are met (like a request is in the queue for a long time, indicating a real problem anyway).

Connection_Dropped
Reserved. Not currently used.
Ha, looks like they haven't updated this doc recently. I still can't find any real info about this, but when looking through the logs it looks like these errors occurr either on pages that are known to have experienced timeouts of one kind or another (SQL timeout, or reportserver timeout), or page requests that happen very close to the a know timeout page. So maybe some page fails when trying to generate a billion page PDF report, and there are 4 more Connection_Dropped errors for "normal" pages right after that. Maybe those 4 were queued up by the thread that died?

Categories: Code Links
Tuesday, March 15, 2005 8:00:22 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Article on Role-Based Security#
There is probably nothing new in this article, but I haven't had time to look at it in like week, so I'm putting it here.
Categories: Code Links
Monday, March 14, 2005 8:45:20 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Poker Software#
Software like this is what I would think people who play online would use.
Categories: Code Links
Thursday, March 10, 2005 2:07:09 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Getting some error info from SQL Error codes#
This isn't a ton of help, but if you get an error code you can run:
SELECT *, sysmessages.*
FROM sysmessages
WHERE (error = 1934)
(assuming that 1934 was your error code) to get some information about that error.

You have to run this against the master database of course.
Categories: Code Links
Wednesday, March 09, 2005 2:34:06 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

The case for PassPhrases#
Robert Hensing's blog post discusses the case for using pass phrases in leu of passWORDS.

Very interesting. There were some comments about how passphrases could be easily cracked, if you used all common words or a common phrase. I think salting your passphrase would eliminate this.

What I mean is "one small step for man" would be easy to crack, but "one small step for man!@#$" would not be easy.

I wrote Robert about this and he replied:
Oh I absolutely understand what you're talking about - I thought I had addressed this in my blog - maybe it was in subsequent posts or discussion - it was a while ago.

The net net is that the general consensus is that if everyone starts doing this we will of course see pass-phrase cracking tools pop-up that know about the English language and it will be optimized to try only certain word combinations which actually make sense and have a list of popular / common phrases.

To counter this - you are absolutely right - your 'salt' would probably work fine and force the cracker to go into hybrid mode (try each phrase / sentence with a small brute-force attack of characters on the end to catch people who just do !@#$ at the end etc.).

That's where punctuation, mis-spelling, and slang all come in handy. :) In the south we say 'ya'll' a lot - use that. Etc.
Categories: Code Links
Wednesday, March 09, 2005 1:30:52 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Battlestar Gallactica Commentary via PODCast#
The SciFi channel is starting to offer commentary of their Battlestar Gallactica episodes via podcast. This shows started out really good, and I was very excited about it, but it has sense started to drift a bit. They are doing the thing I hate most in shows like these, not introducing any new stories / information over many episodes. Basically the last several episodes could have been wrapped up into 1 show, w/o losing information that the viewer needs to know or cares about. For example, very early on we learn that "Boomer" is really a cylon (sp?). Here we are... I don't know.... maybe 5 episodes later, and nothing new has developed from that revelation.
Categories: Code Links
Wednesday, March 09, 2005 8:29:27 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Building a PBX#
This page shows how to use a linux package called Asterisk@Home to create a PBX system w/ all kinds of cool features.
Categories: Code Links
Wednesday, March 09, 2005 8:17:18 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Blocking Brute Force Attacks#
Here is an article on CodeGuru.com that discusses avoiding brute force attacks. Their main suggestion is to randomly sleep the thread, which is no big suprise. This article on CodeProject.com discusses the creation of a CAPTCHA control for use with brute force attacks.
Categories: Code Links
Wednesday, March 09, 2005 8:05:56 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Overview of Agile Software Development#
Here is the Wikipedia page on Aglie development. I know lots of the hard and fast "rules" of Agile and XP development, but this discusses a little more of the philosophy.
Categories: Code Links
Wednesday, March 09, 2005 7:49:49 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Dynamic Controls, Viewstate, and Post Backs#
This article might shed some light on some of the random errors we are seeing on our pages that use dynamic controls.

These errors typically involve items from the viewstate being unavailable, or errors during the load and save portions of the viewstate.
Categories: Code Links
Thursday, February 17, 2005 7:03:27 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Multi Column Dropdown#
This is an example for how to create a multi column dropdown. I didn't look at the code very hard, but I think it might just emulate a dropdown with a floating layer.
Categories: Code Links
Tuesday, February 15, 2005 11:48:33 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Another autocomplete combobox control thing#
This control appears to be much like the other "google-suggest-like" auto completes that I tried earlier. Just add another one to the list.
Categories: Code Links
Monday, February 14, 2005 9:57:28 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Microsoft Port Reporter #
The Port Reporter tool from MS looks like it could do a lot of the stuff that I was using EtherReal for, but hopefully in a nicer environment.
Categories: Code Links
Monday, February 07, 2005 11:38:55 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Improving .NET Application Performance and Scalability#
This section of MSDN is pretty good, and very indepth.
Categories: Code Links
Monday, February 07, 2005 11:37:03 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

MyTracer ASP.NET Tracing App#
The MyTracer application allows you to browse to a page and at the same time see a bunch of info at the same time such as viewstate, cookies, etc.
Categories: Code Links
Monday, February 07, 2005 10:11:15 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Cost Report Updates in Excel#
Office Writer looks like it can produce Excel reports via Reporting Services that can contain script, which would serve to allow people to download their cost report into Excel, and then upload their changes later.
Categories: Code Links
Monday, January 31, 2005 1:04:43 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

.NET Rocks!#
Here is the .NET Rocks! shows archive.
Categories: Code Links
Wednesday, January 12, 2005 1:38:51 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Performance Optimization w/ VB.NET and managed code#
Categories: Code Links
Wednesday, January 12, 2005 1:32:28 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Using older drivers could solve my TV overflow?#
I guess this is worth a try at least.
Categories: Code Links
Wednesday, January 12, 2005 12:26:21 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Firefly Documentation#
I didn't realize it, but the button I want is "A" on the firefly remote. Document can be found here.
Categories: Code Links
Wednesday, January 12, 2005 12:12:04 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

TV Schedule over picture in BTV#
It looks like maybe pressing "E" does this. I can probably setup my remote to emulate this.
Categories: Code Links
Wednesday, January 12, 2005 12:03:01 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Powerstrip Resolution Modification#
Powerstrip is a program that is supposed to have a lot of granual control over screen size and resolution. Might help w/ my TV/PC problems.
Categories: Code Links
Wednesday, January 12, 2005 11:55:56 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Performance Considerations When Calling a Web Service From #
This MSDN article deals with the various issues involved with having an ASPX page calling a webservice.

It deals with the usual issues, but also talks about some that I didn't consider, like the HTTP 2 connection limit. It also has a section about setting up async calls, which I will probably want to look into.
Categories: Code Links
Monday, January 10, 2005 7:20:58 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Adding a function to the onload event#
Here is some code that can be used to add (not overwrite) the onload function of a webpage (you'll have to tab it out):
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", myInitFunction, false );
else if ( typeof window.attachEvent != "undefined" ) {
window.attachEvent( "onload", myInitFunction );
}
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
myInitFunction();
};
}
else
window.onload = myInitFunction;
}
Categories: Code Links
Wednesday, January 05, 2005 11:52:20 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

IPaq 6315 Sucks#
I guess I am going to try this update, even thought it doesn't look like it addresses any of my issues with this POS phone.
Categories: Code Links
Monday, January 03, 2005 2:39:42 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Table Mate#
I might actually order this thing. I need something to put a keyboard/mouse on down stairs, but I think it might be too narrow. Adding on a wider piece wouldn't be that hard though.
Categories: Code Links
Sunday, January 02, 2005 9:58:26 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Bears#
My god do they suck.

What is going on with this team. How come we have a team like this in the 2nd biggest NFL market, with the biggest market being split by 2 teams!?!
Categories: Code Links
Sunday, January 02, 2005 9:55:33 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Happy New Year #
My wife got drunk, went outside and screamed out the window "Bush must die! Bush Must die!"

Interesting.
Categories: Code Links
Friday, December 31, 2004 11:57:20 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Secure Query Strings#
Secure Query Strings could be usefull for me on a few pages where we are passing data between pages that we are somewhat concerned the user would change. I was going to try coding the receiving page to check the values and verify that the values are right and the user has access to use them, but this might be easier, although harder to debug for sure.
Categories: Code Links
Friday, December 31, 2004 1:12:59 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Google Site Flavored Search#
Google Site-Flavored search will allow you to have a custom Google search box on your website.

Awesome!
I should try this asap.
Categories: Code Links
Wednesday, December 29, 2004 1:24:52 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Projector Screens#
I think I I will be getting one of these screens. I have to decide how / where to mount it.
Categories: Code Links
Tuesday, December 28, 2004 1:30:42 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

ArgoUML#
ArogUML might be worth trying.
Categories: Code Links
Saturday, December 25, 2004 12:53:10 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Bugzilla#
I should revisit Bugzilla. It might be nice to let end users enter bugs directly, kinda like the help desk application, but for development. I don't think it will work w/ feature requests though, have to check.
Categories: Code Links
Saturday, December 25, 2004 11:50:38 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Video Game Audio Remixes#
Here is a site that has tons of remixed video game sound tracks. Pretty cool.
Categories: Code Links
Sunday, December 19, 2004 4:02:07 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

More overhead projector links#
Categories: Code Links
Sunday, December 19, 2004 1:45:14 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Good job G-Rod, you prick#
Our very own G-Rod has made it to Slashdot.

Cliffs Notes: Under proposed legislation, if you sell GTA to a high school senior you could spend a fucking year in jail?!?!

I know Smo has hated this guy all along, and I have always said that I didn’t know of anything he did (other than being a politician) that I had argument with. Well that has changed. WTF!?

Which party is the one that is supposed to be bitching about stuff with people swear, rappers say “ho”, bikini clad girls dance, movies have explosions, or video games have killing. Seriously I don’t know which one! In the early 90’s it was Tipper Gore leading the charge, but lately the republicans have taken the FCC to a whole new level, but now G-Rod is heading down that path. Which party is the “Fucking grow up you shit heads and stop bitching about stupid shit like violent video games and me swearing in this sentence. Change the fucking channel. Don’t let you kids play games where they pick up hookers and then kill them after sex. Get a life!!” … party? Cause that’s the one I want to vote for.

God damn I hate people like this.
Categories: Code Links
Thursday, December 16, 2004 1:03:02 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Farked#
Fark had a story today about how Geico was suing them over what appeared when people search for Geico. So I placed an AdWords ad on google on the word "Geico" and sure enough, I got the number 1 spot. Within 4 minutes, my server was farked. Pretty funny stuff.
Categories: Code Links
Tuesday, December 14, 2004 3:07:17 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Using a modal dialog with ASP.NET#
Here is a story about throwing server side events after a modal dialog is used.
Categories: Code Links
Friday, December 10, 2004 9:42:51 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Build an XGA Projector for $300#
These articles: Build an XGA Projector for $300 and Part 2 from Tom's Hardware are awesome!
Categories: Code Links
Thursday, December 09, 2004 12:02:00 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Data Access Layer Generation#
I made another attempt at working with other DAL generators, but again while many of them do some cool stuff, nothing really made my want to change my current methods.
This one looks like it could be pretty good, but I haven't tried it yet. It doesn't use the SQL Helper classes, but I don't know if that really matters or not when it comes to a code gen product. MyGeneration tool was pretty cool, creating objects that hold the data and creating SPs to access said data, but again it looked like overkill.
Categories: Code Links
Saturday, December 04, 2004 1:18:18 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Authorize and authenticate users with AD#
Here is some code for authorize and authenticate users within AD.
Categories: Code Links
Monday, November 29, 2004 3:44:19 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Pretty Good Regular Expression (RegEx) Page#
Here it is.
Categories: Code Links
Thursday, November 18, 2004 1:26:33 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Great NLB Walkthrough#
Network Load Balancing a website with Windows 2003 server.
Categories: Code Links
Tuesday, November 02, 2004 1:46:02 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

GDI Scan tool for MS Jpeg GDI Vulnerability#
GDI Scan can run a quick scan of your computer to find any dlls that are known to be susceptable (sp?) to the GDI vulnerability.
Categories: Code Links
Monday, September 27, 2004 3:41:47 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

How To Check What Ports Are Being Listened To#
I was just having a problem where I could connect to an SMTP server from the server itself, but I couldn't from a remote machine. I found that if you use the command:

netstat -an

it will show you all open connections and active ports. In my case, it was listening on 0.0.0.0:25 (which I'm assuming means only from the local machine), but not on its real IP address.
Categories: Code Links
Monday, September 13, 2004 9:58:33 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Flash Demo#
The links below show a converted powerpoint presentation including some audio.

Click Here For Full Screen or Click Here For Normal Version
Categories: Code Links
Friday, September 10, 2004 12:18:57 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Flash Charting#
Here and here
Categories: Code Links
Tuesday, August 17, 2004 9:56:15 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Using VBC.EXE to compile #
Categories: Code Links
Thursday, August 12, 2004 3:12:28 PM (Central Daylight Time, UTC-05:00) #    Comments [2]  | 

 

The right image of my outlet#
Categories: Code Links
Tuesday, August 03, 2004 10:53:01 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

20A 250V Outlet#
Here is the fricking outlet that I have:
http://www.levitonproducts.com/Catalog/Model_5821.htm
Categories: Code Links
Tuesday, August 03, 2004 10:16:18 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Skins Contest#
Some pretty cool skins here.
Categories: Code Links
Thursday, July 15, 2004 1:04:46 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Another Multiple DLL Asp.net post#
This article shows a project that somewhat automates building of some files from a vbproj. But, it doesn't quite work right, because some of the DLL references are not correct.
Categories: Code Links
Thursday, July 15, 2004 8:59:39 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Command Line Compile of ASP.NET Apps#
After trying to figure out a way to break large apps into smaller ones for more frequent updating, I came across a solution.

The following compiles a simple webapp into 2 DLLs, where one folder "CompileTest" would contain a seperate DLL.

I am sure I have some extra stuff in these lines, but they work for now.

vbc.exe /libpath:C:\TEMP\SingleSignOnWithMultipleASPNETApps\bin /r:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.drawing.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll /imports:system /rootnamespace:www.testdomain.com /target:library /out:C:\TEMP\SingleSignOnWithMultipleASPNETApps\bin\www.testdomain.com.dll C:\TEMP\SingleSignOnWithMultipleASPNETApps\*.vb C:\TEMP\SingleSignOnWithMultipleASPNETApps\CompileTest2\*.vb

vbc.exe /libpath:C:\TEMP\SingleSignOnWithMultipleASPNETApps\bin /r:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.drawing.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll,C:\TEMP\SingleSignOnWithMultipleASPNETApps\bin\www.testdomain.com.dll /imports:system /rootnamespace:www.testdomain.com /target:library /out:C:\TEMP\SingleSignOnWithMultipleASPNETApps\bin\www.testdomain.com.Compiletest.dll C:\TEMP\SingleSignOnWithMultipleASPNETApps\CompileTest\*.vb
Categories: Code Links
Thursday, July 15, 2004 8:22:05 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Web.Config location tag to get around forms auth?#
I just read a post that you can use the Location tag in a web.config file to allow users to have access to pages other than just the login page. I didn't think this was the case, but I should look into it.
Categories: Code Links
Wednesday, July 14, 2004 8:39:19 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

ASP-One Exchange Setup#
Here is a link to their setup guide.
Categories: Code Links
Monday, July 12, 2004 2:02:11 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

10 Must Have Tools#
Here are some tools that "every developer must have." Not sure about that one.
Categories: Code Links
Saturday, July 10, 2004 3:47:02 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

ADSI Terminal Server Settings#
Here is a list of properties available via ADSI scripts, but you have to run it on a 2003 server.
Categories: Code Links
Saturday, July 10, 2004 3:46:26 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Testing DNS Stuff#
Here is some stuff from ZoneEdit:
The "whois" information is often wrong, and should not be used. Go to a command prompt/console and enter the command:

nslookup -type=NS yourdomainname.com

If the response does not contain all of the correct name servers, then you should contact your registrar and have them fix it. - To check to see whether a particular server is responding, you can add the server name:

nslookup www.yourdomainname.com ns1.zoneedit.com

If the response has a bunch of 'root-servers' that means the server does not know about the domain name and is referring you elsewhere. - To look for a certain record type, like the "MX" record or the "SOA" record, you can use the parameter "-type=MX" or "-type=SOA".

nslookup -type=MX yourdomainname.com
Categories: Code Links
Friday, July 09, 2004 11:29:36 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

TTT Gallery#
TTT Gallery but Im not sure if it will work with the new version of DNN.
Categories: Code Links
Thursday, July 08, 2004 2:17:59 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Manual SMTP testing with Telnet#
Here is a full SMTP conversation:
telnet 127.0.0.1 25

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is '^]'.

220 extendnet.internal ESMTP

HELO testpc.extendnet.com

250 extendnet.internal

MAIL FROM:scottl@ExtendNet.com

250 ok

RCPT TO:esi@mcn.net

250 ok

DATA

354 go ahead

TO:esi@mcn.net

FROM:scottl@ExtendNet.com

Subject:test

See Subject

.

250 ok 928143441 qp 16779

QUIT

221 extendnet.internal

Categories: Code Links
Wednesday, July 07, 2004 4:51:06 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Prog Portal ASP.NET Directory#
Here is another one.
Categories: Code Links
Wednesday, June 30, 2004 10:37:54 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Datagrid helper class?#
Here, I haven't had time to read it.
Categories: Code Links
Tuesday, June 29, 2004 11:21:55 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

ASP.NET Directory System#
This product looks like it could be good for keeping a directory or act as a links manager.
Categories: Code Links
Tuesday, June 29, 2004 11:02:00 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

What's New in ASP.NET 2.0#
This article from MSDN talks about everything new with asp.net 2.
Categories: Code Links
Tuesday, June 29, 2004 10:59:41 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN "Must Have" Modules#
Here is a list of some "must have" modules for DNN sites.
Categories: Code Links
Monday, June 28, 2004 10:31:56 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Microsoft's 21 Rules of Software Development#
Here it is.
Categories: Code Links
Friday, June 25, 2004 5:37:52 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Online Charts Using Microsoft Office#
Here it is.
Categories: Code Links
Wednesday, June 16, 2004 9:03:44 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Getting Userinfo with an IFRAME module in DNN2#
Here is a good post on the topic.
Categories: Code Links
Tuesday, June 15, 2004 9:48:54 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Posting Data Between ASP.NET Pages#
This article talks about it. This could be useful in a lot of applications.
Categories: Code Links
Tuesday, June 15, 2004 5:08:38 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Single Login For Multiple ASP.NET Applications#
Here is a good method for allowing users of mutiple applications to have a single login on a domain.
Categories: Code Links
Friday, June 04, 2004 4:12:02 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Portal Store for DNN#
Portal Store could be worth looking into.
Categories: Code Links
Friday, May 28, 2004 2:41:10 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Some Pretty Cool Javascript Stuff#
This guy has some pretty slick javascript stuff, including a DHTML tree, some calendar stuff, draggable windows etc.
Categories: Code Links
Friday, May 28, 2004 12:04:54 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Javascript Event Handlers#
I keep looking for this every now and then and never seem to be able to remember it, or be able to find it when I want.

document.onkeypress = function fnKey(evt){ //code here }
Categories: Code Links
Tuesday, May 25, 2004 11:24:47 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN 2.x Module Architecture#
Here are 3 artciles that discuss the architecture of a DNN2.x module: 1, 2, and 3.
Categories: Code Links
Tuesday, May 25, 2004 8:04:00 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Module Development Guide#
Here is a short 1 page summary of what you need to do to make a module.
Categories: Code Links
Sunday, May 23, 2004 10:47:18 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Training / Marketing Videos#
Here but you have to buy a subscription.
Categories: Code Links
Sunday, May 23, 2004 10:32:09 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN IssueTracker Module#
Here is a module that is a port of the MS Issue Tracker starter app.
Categories: Code Links
Sunday, May 23, 2004 10:30:27 PM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Breaking up large asp.net applications to smaller DLLs#
This doesn't really have anything that new or interesting but I might as well bookmark it.
Categories: Code Links
Wednesday, May 19, 2004 12:56:55 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Hello World Tutorial#
DNN Jungle has some "templates" and a hello world tutorial for creating a DNN module.
Categories: Code Links
Tuesday, May 18, 2004 11:08:25 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Everyong Group isn't really "Everyone" when it comes to AD#
This might solve my problem.
Categories: Code Links
Sunday, May 16, 2004 7:51:01 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Modules For Search Engine Spidering#
Here is a site that offers some free modules, but you have to register.
Categories: Code Links
Sunday, May 16, 2004 12:15:41 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Testing in different browsers #
This site is pretty cool. It will load your page in a few different browsers to test what it looks like!

You can also test on a Mac by using Icapture.
Categories: Code Links
Sunday, May 16, 2004 12:11:23 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Module Project Template#
This is tool that can be used to create a templated project for a DNN module.
Categories: Code Links
Sunday, May 16, 2004 3:00:53 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

SQL Buddy#
SQL Buddy looks pretty cool.
I might have to try it for the intellisense.
Categories: Code Links
Sunday, May 16, 2004 2:58:02 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN Blog Module#
Here is the link.
Categories: Code Links
Saturday, May 15, 2004 5:57:01 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Microsoft Action Pack#
I think this is how I got it before, but I don't remember filling out all the info they require now.
Categories: Code Links
Friday, May 14, 2004 1:17:26 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

DNN News/Email Management (Opt In/Out features)#
This looks like a pretty robust solution.
Categories: Code Links
Thursday, May 13, 2004 5:02:55 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Cafe DNN#
Cafe DNN is a pretty nice site about dnn stuff.
Categories: Code Links
Thursday, May 13, 2004 2:38:28 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Another DNN2 Forum Module#
Categories: Code Links
Thursday, May 13, 2004 5:45:30 AM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Tennis Club Template w/ Flash#
This is a pretty good looking tennis club template including some cool flash.