March 2005 - Posts
31 March 2005
Using an HttpHandler to Forward Requests to a New Domain
One of the hardships of moving to a new domain is intercepting and forwarding traffic from the old domain name over to the new one (without losing any traffic/google ranking/etc). Custom HttpHandlers in .Net make this scenario ridiculously easy to overcome. Pre-.Net, you would have had to roll your own ISAPI filter (in C++ no less) to accomplish something this seemingly trivial (though there is probably lots of pre-rolled code floating around out there, and more than likely some pre-baked turnkey 3rd party solutions as well). Anyone who’s worked with custom ISAPI stuff knows that it has a habit of making trivial stuff not so trivial anymore…it’s a total PITA. Enter the IHttpHandler interface, which in my opinion makes ASP.NET one of the most powerful web frameworks out there in how easy it allows developers to write their own IIS Http Handlers. I’ve utilized it quite a bit in my development forrays, and it hasn’t failed me yet. In this specific case (migrating from zerotrilogy.gotdns.com...
Read More...
31 March 2005
jayBlog is Moving -- Update Your Links/RSS Feeds to JaysonKnight.com
I am finally ready to flip the switch on JaysonKnight.com and have completed all the necessary dirty work to do so (I think/hope). I am also migrating to Community Server in the process…yes, originally I said that I would not but I changed my mind (might as well get it all done at the same time), mainly because of the search feature in CS. Old links will work; I’ve written some code to properly redirect requests from zerotrilogy.gotdns.com over to jaysonknight.com. My blog will be located at JaysonKnight.com/blog (RSS is at JaysonKnight.com/blog/rss.aspx). I’ll skin CS whenever I’ve got some time, but for now the homepage will be the generic CS one. I will leave the zerotrilogy address up for a while, though everything should redirect correctly over to my new site whenever a request is made. I can finally mark this off my list of things to do. Thank god it’s done. Sidenote: Feel free to sign up for membership on CS…it’ll enable such things as...
Read More...
31 March 2005
Hello From JaysonKnight.com/Community Server 1.0!
It's been a long day, but I have finally moved everything over to JaysonKnight.com (and over to Community Server 1.0). I've written code to automatically forward all HTTP/RSS requests for the old domain to the appropriate page on my new domain (and it's working better than I thought it would; any RSS subscribers will have duplicates of my last 20 or so posts :-)), but that's still no excuse to not update any links you have to my old domain as invariably I will turn the zerotrilogy.gotdns.com site off within the next week or so. I'll also post the code I wrote to forward all requests to the new domain (implementing IHttpHandler made it incredibly simple) in a future post. Enjoy the new site...and if you encounter any exceptions/strangeness please drop me a line so I can fix it. I also recommend getting yourself an account in CS; I promise I won't sell your email address to anyone (unless the price is right...split it with you?). Cheers.
Read More...
27 March 2005
Coder Turned Courier (and I don't mean the font)
Here’s a great commentary piece about a coder who got out of cubeland and onto a bike as a courier. Long, but a great read. Besides skiing, cycling is my absolute favorite sport. Unfortunately, I haven’t owned a bike in years…I had a fantastic Cannondale for a while; like an idiot I self-locked it one day and someone (I’m assuming) drove off with it. I actually used to race competitively many many moons ago when I was a young teenager…never won a race but was usually not too far back. It was more for the fun of it than anything else. The author is indeed correct though, it’s not if , it’s when you will wreck or be hit by a car (or as I’ve done on several occasions, peddle into the back of a parked car by not paying attention). I have some crazy stories about crashes I’ve survived, and it still amazes me that I’ve never broken a bone while riding (maybe I’m made out of tupperware, who knows). Actually, I’ve never broken a bone period, but that’s another post. The funniest (if you can say...
Read More...
26 March 2005
Incredible Desktop Shots
Go check out the pictures on this site (requires Flash). Very nice stuff. via Roy Osherove .
Read More...
26 March 2005
Gizoogle Yo B to the L to the izog
This really made my morning .
Read More...
26 March 2005
Managed Palindrome Code -- Update
I’ve refactored my C# palindrome code (yeah, was a little bored) to be even quicker than my previous solution (as well as being a standalon class). I’ve posted my new code here . It does a billion iterations in ~1 minute (2.0ghz proc, 1gig RAM on v1.1 of .Net). Anyone got a quicker algorithm? Bring it on.
Read More...
26 March 2005
Adding System Uptime to .Text
Want to show off how long your .Text web server has been up and running (time since the last machine reboot) on your .Text header (in the blog stats section)? Here’s how: Add the following code to your [skin name] \Controls\BlogStats.ascx file: [asp:Literal ID="SystemUptime" Runat = "server" /] (use wickets instead of brackets of course). To your DotText.Framework\Data\DataHelper.cs file: using System.Diagnostics; public static BlogConfig LoadConfigData(IDataReader reader) {... PerformanceCounter pc = new PerformanceCounter( "System" , "System Up Time" ); pc.NextValue(); To your Dottext.Framework\Configuration\BlogConfig.cs file: private TimeSpan _systemUptime; public TimeSpan SystemUptime { get { return this ._systemUptime;} set { this ._systemUptime = value ;} } And finally, to your DottextWeb\UI\Controls\BlogStats.cs file: protected System.Web.UI.WebControls.Literal SystemUptime; protected override void OnLoad(EventArgs e) {... SystemUptime.Text = string .Format( "{0}d {1}h {2...
Read More...
25 March 2005
Looking for Some New Blogs
What’s the coolest/neatest/most informative blog you read (besides your own of course)? They don’t have to be technical in nature, though of course that’s always nice. Send me your links! For the record, the blogs I can’t live without are (in no particular order): Raymond Chen (even though I usually have no idea what he’s talking about…he’s about as brilliant as they come though, and the comments are always nice and well thought out). Cyrus' Blather (nice blend of tech and humor). The DailyWTF (go subscribe now!). Don Box . Bring it on! Sidenote: I have finally had to unsubscribe from Scoble (not gonna link…should I even have to?), the s/n ratio on his blog is just too high, plus I’m not a fan of metablogging. Sorry Scoble.
Read More...
25 March 2005
ASP.NET Validation Controls in Firefox
I actually figured this out with Bob a while back, but just to reiterate, the following code can get client side validation controls to work correctly in Firefox (or you can always do server side validation at the expense of postbacks): C# Page.Validate(); if ( !Page.IsValid ) { return ; } //Continue Your code VB.NET Page.Validate() If Not Page.IsValid Then Return End If 'Continue Your code Via Sushila Patel .
Read More...
More Posts
Next page »
Home
Contact
The [K]nightly Build
Blog | JK [DOT] COM
RSS for Posts
Atom
RSS for Comments
Search Site
Go
Recent Posts
Site Migration to Azure: Azure Front Door is the Key to Speedy and Secure Websites
How To: Configure Ubiquiti Unifi Wireless Authentication With Windows NPS And RADIUS
Default Interface Methods in C#: What Are Traits, and Why Are They Needed?
Dashlane Password Manager: The One Password Manager to Rule Them All
The Web Is The New Desktop: Microsoft Announces Chromium To Power Edge
Post Topics
.Net (151)
Being Jayson (60)
C# (4)
Charlotte (38)
Community Server (127)
CS Tidbits (29)
Design Patterns (3)
F# (1)
Firefox (33)
Gameage (30)
General (293)
Irks (51)
Languages (2)
Life Inside Microsoft (2)
Links and News (214)
Medical Student (1)
Metablog (31)
Mono and Linux (4)
Music (36)
Opinions (152)
Photos (12)
Programming Paradigms (6)
Python and Django (1)
RSLS (3)
Ruby and Rails (1)
School (2)
Site News (53)
SQL Server (7)
SubText (2)
Suggestion Box (1)
Tech Articles (14)
Technology and Internet (411)
TFS (1)
Tools and Resources (173)
Trinkets (4)
TV and Movies (20)
Vista and WinFX (22)
Visual Studio (31)
Web Frameworks and CMS (2)
Windows (3)
Windows Live Writer (4)
Yoga (1)
Archives
March 2019 (1)
December 2018 (3)
March 2018 (1)
August 2017 (1)
February 2015 (1)
March 2013 (1)
January 2013 (4)
December 2012 (1)
September 2012 (3)
August 2012 (1)
August 2010 (1)
December 2009 (1)
December 2008 (1)
November 2008 (2)
October 2008 (1)
September 2008 (3)
July 2008 (1)
May 2008 (2)
March 2008 (2)
January 2008 (1)
November 2007 (1)
October 2007 (2)
September 2007 (4)
August 2007 (3)
July 2007 (4)
June 2007 (5)
May 2007 (4)
April 2007 (11)
March 2007 (7)
February 2007 (13)
January 2007 (20)
December 2006 (14)
November 2006 (25)
October 2006 (26)
September 2006 (19)
August 2006 (32)
July 2006 (19)
June 2006 (26)
May 2006 (31)
April 2006 (19)
March 2006 (22)
February 2006 (21)
January 2006 (29)
December 2005 (32)
November 2005 (33)
October 2005 (25)
September 2005 (18)
August 2005 (31)
July 2005 (29)
June 2005 (27)
May 2005 (25)
April 2005 (41)
March 2005 (20)
February 2005 (16)
January 2005 (17)
December 2004 (23)
November 2004 (15)
October 2004 (24)
September 2004 (16)
August 2004 (22)
July 2004 (5)
June 2004 (10)
May 2004 (4)
April 2004 (6)
March 2004 (7)
February 2004 (3)
January 2004 (7)
December 2003 (19)
November 2003 (8)
October 2003 (9)
Site Navigation
Home
Blogs
Media
Wikis
News
Contact
About
Anonymous comments have been disabled until I can implement a better comment spam fighting strategy. New comments are now enabled via DISQUS.COM.
My Sites
Home
Corporate
Creative
Blog Subscription
Email Notifications
Go
/Blogs/
.Net Weblog Archives
aBlogByGus
BizTalk Core Engine
Blog by Bob
Brad Abrams
cbrumme's WebLog
Chris Pratley
Cyrus' Blather
Dan Fernandez's Blog
Dave Navarro
DevNinja
Dino Esposito
Don Box's Spoutlet
Eric Gunnerson's C# Compendium
Eric Lippert's Blog
Erik Meijer
Extreme RAD
FeedDemon
Frans Bouma's blog
Fredrik Normén's Blog
GotDotNet Blogs
IntraVNews | Home
ISerializable
Jacob Stohler
James Avery
Jason Zander
Jayson Knight's Old Blog
Jeff Key
jeremyk
Joe Beda's 80%
Larry Osterman
LonghornBlogs.com
Luca Bolognese
Lutz Roeder
Maoni's WebLog - CLR Perf
Mark Sparling
Mark Wagner
Matt Hawley
Matt Warren
Matthew Reynolds
Matusow's Blog
Microsoft Community Blogs
Microsoft Monitor
Mike Grass
Rick Shaut
Rico Mariani's WebLog
Robert Hensing
Robert McLaws
Robert Stribley
Rory Blyth
RoudyBob.net
Sam Gentile's Blog
Scobleizer
ScottGu's Blog
Sheep News
SimpleGeek
Scott Mitchell
Scott Watermasysk
Technical Careers @ Microsoft
The Daily WTF
The Old New Thing
The Sandbox [Non-tech]
The Sell's Spout
Tim Marman
Weblogs @ ASP.NET
WebTransports's WebLog
you've been HAACKED
/CS::Bloggers/
Keyvan Nayyeri
The Souplog
CodeVerity.com
Eicar -- Sites using CS
Off Shot Thoughts
Intensive Design
Community Server Forums
/Comics/
B.C.
Dilbert
Get Fuzzy
Peanuts
Pearls Before Swine
/Etc/
20 Questions
F*ckedCompany.com
Guide to Electronic Music
InternalMemos.com
Kuro5hin
My Tunes -- 2,548 tunes, 16.9 gigs
Stuff for Smart Masses
/Humor/
A No Nothing Production
BBSpot -- Satire for Smart People
Bored at Work
Carrier Pigeon Internet Protocol
Engrish (Hilarious)
Excessive Penguin Abuse
Fark.com
Intercal Reference Manual
More Excessive Penguin Abuse
Postal Experiments
Random Programming Languages
Resign Patterns
Star Wars Gangsta Rap
Star Wars Kid
The Bastard Operator from Hell
This is True
/Local Stuff/
Carolina Nightlife
Charlotte Forums
Charlotte Mix
LazyDay.NET
Liquid Lounge
Menage
Mythos'
Sky Lounge
Sleepless in Charlotte
The Steeple
Tonic Lounge
Urban Evolution
Eden
/My Pubs/
Internet Explorer Downloads
Introduction to XEN
Tech - Articles/Opinions
Becoming an Architect
Matching Tools to Developers
Software Engineering, Not Computer Science
The C# Design Process: A Conversation with Anders Hejlsberg
The IT Industry is Shifting Away from Microsoft
Tech - Books
The Pragmatic Programmer
Tech - Code["Mine"]
Exception Logging Block (WIP)
Tech - Code["Other"]
Dynamic Invocation (Plugin Support)
Tech - Devel
.NET Developers
An Extensive Examination of User Controls
ASP.NET
C# v 2.0 Spec
CLR Memory Performance Counters
Code Project
Dictionary of Programming Languages
DotNetBips
Microsoft .NET Framework Performance
MIT CompSci
MS Application Blocks
MS DHTML Reference
MS Longhorn SDK
MSDN TV
Operating .NET-Based Applications
P/Invoke.net
Performance Counters for ASP.NET
SSCLI (Rotor)
The .NET Show
Writing Faster Managed Code
Tech - Misc
AnandTech
Microsoft Employee Biographies
Original Macintosh Commercial
Quite Possibly the Most Insane Machine I've Ever Seen
Research Topics at MS
Tech - News
/.
Artima Developer Community
BetaNews | Inside Info
CNET News Headlines
MSDN News Headlines
Neowin.net
OSNews.com
Paul Thurott's Site
TheServerSide.NET
Tech - Tools/DL's
Assortment of Tools
Chris' free developer tools
CLR Performance Profiler
Excellent web.config Editor
GotDotNet Tools and Resources
IDesign .NET Process Solutions
Lutz Roeder's Programming.NET
NUnit
Research DL's from MS
Sharp Toolbox
Snippet Compiler
Windows Server 2003 System Services Reference