HttpFilters, HttpModules, and HttpWastedABunchOfTime#

I was just about to make a post talking about the switch over to dasBlog.  I was going to talk about what I liked and didn't like and whatever, but mostly I was going to talk about the work I have been putting in on writing code that will filter out code and format it nicely.

I wrote and tested an HttpModule which loads a Reponse Filter that parses the Html looking for <code> tags and formats the code inside those nicely.

So I go to write my first post, and I am looking for a hyperlink button in the texteditor, but instead I see this icon that look like a C# file.  "No, I did not just waste all that time" I thought. 

public bool IsTimeWasted(String name){
    return true;
}

Public Function IsWasted(ByVal time As TimeSpent) As Boolean
  If time IsNot Nothing Then
    Return True
  Else
    Return False
  End If
End Function

var s;
s = 'asdf';
document.getElementById("asdf"); /* comment */

SELECT * FROM
ThingsToDo
WHERE
WastedTime <> 1
AND
Task = 'Writing HttpFilter'


0 rows returned

So you can see I basically wasted my time doing all that.

This tool doesn't provide an HTML code type, and I used J# in place of Javascript, but it works ok I guess.

The on thing it is really lacking is that it doesn't maintain indents!?!?  I manually restored the indents above, otherwise my vb code would look like this:

Public Function IsWasted(ByVal time As TimeSpent) As Boolean
If time IsNot Nothing Then
Return True
Else
Return False
End If
End Function

Which is weird, b/c it looks fine in the preview window... I will have to look into that.

 

 

Categories:  |  | 
Saturday, April 08, 2006 6:54:09 PM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Querying an Excel database with OleDB#
This DonXML article, and this Microsoft article both discuss ways to query an excel file from OleDB using the OleDB .net provider.
Categories:
Thursday, April 14, 2005 5:49:16 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Indexing Services Search App#
This application is a nice front end to the Indexing search.
Categories:
Wednesday, March 09, 2005 8:08:31 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

Using HotArea's in MapPoint.NET#
This article shows a little about how to use hotareas on an image returned by the MapPoint.NET webservice.
Categories:
Friday, December 12, 2003 8:18:57 AM (Central Standard Time, UTC-06:00) #    Comments [0]  | 

 

All content © 2008, Christopher May, Inc
Open Job Positions
On this page
Google Ads
This site
Calendar
<December 2008>
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 1.9.6264.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: