Archive for November, 2004
.NET memory management (and ghosts from the past)
Channel9 of Microsoft published a two-part interview with Jason Zander, the Product Unit Manager for CLR. The half-hour discussion revolved around most of the possible .NET-related topics, including an interesting and insightful overview of .NET overall structure. Without rehashing everything said on the interview (part 1, part 2), a couple of performance-related things are worth […]
November 28, 2004
· Jouni Heikniemi · No Comments
Posted in: .NET
You can't just ignore technology you don't like
Well, it's been a while since the last rant-style post, so let me de-pressurize myself some. :-) Two incidents lately: One web designer half-jokingly stating "Non-IE browsers are for hippies". Another very open source -oriented freelance .NET software developer not remembering the name of Visual Studio and totally dissing the idea of using an IDE […]
November 25, 2004
· Jouni Heikniemi · One Comment
Posted in: General
Hex representations for byte arrays and ints
"4A 4F 55 4E 49 20 48 45 49 4B 4E 49 45 4D 49"? Today, among other things, I wrote a C# method that converts byte arrays to their hex representations. That's very simple actually – ToString does most of the grunt work, but some parameterizations help in customizing things. public static string ToHexString( […]
November 20, 2004
· Jouni Heikniemi · 2 Comments
Posted in: .NET
SQL Server 2005 and CLR
Another interesting MSDN article has been published. Using CLR Integration in SQL Server 2005 is a broad (and verbose) description of key aspects of CLR/T-SQL integration. Among the questions answered are: Stored procedures: managed code vs. T-SQL? How do I write stored procedures and functions in C# (or VB or whatever)? How to access and […]
November 17, 2004
· Jouni Heikniemi · One Comment
Posted in: .NET
REpad is here
I finally finished (yeah right!) my personal Regex testing tool. With REpad, you can easily test both match/capture-type regexps and replacements. And when you've polished your regexp, you can easily do some string conversions (from/to C# strings and regex literals) through the context menu. If you need this sort of tool, get the binaries or […]
November 15, 2004
· Jouni Heikniemi · No Comments
Posted in: .NET
JHLib is out
I've finally gathered some of the example code I've posted on this blog as well as some other snippets from my code library. They are now available as a free code library, JHLib. The library currently contains the CSV Parser, ProperCase algorithm, HTTP upload code and a Pop3 client with an Rfc822 compliant header parser. […]
November 14, 2004
· Jouni Heikniemi · 2 Comments
Posted in: .NET
No more target="_blank"
Firefox 1.0 with all its hype is here. Without going into musings about browser markets, let me pick up a single feature that's relatively new in the Firefox family. Go into the advanced configuration in about:config and switch the property called browser.tabs.showSingleWindowModePrefs to true. Now open the Tools/Options/Advanced dialog, and see what you've got: Now […]
November 13, 2004
· Jouni Heikniemi · 3 Comments
Posted in: Web
Often overlooked specialized collections
The lost treasures of .net class library, part I: The System.Collections.Specialized namespace has a few excellent classes that can help you (at least until you get generics, that is). Too bad many coders have never even heard of them. Here's a short introduction: HybridDictionary and ListDictionary are just perf-tweaked Hashtable implementations. Fine, but not earth-shattering. […]
November 4, 2004
· Jouni Heikniemi · One Comment
Posted in: .NET