ShowUsYour<Blog>
Irregular expressions regularly
-
Timing Split; getting a handle on things.
Tonight I decided that, before I attempt to match the speed of Split, I'd better measure it out to see how fast it is. Here's the results of some simple tests...
-
WordWrap. Faster than Split?
At lunchtime today I was discussing my WordWrap component with a fellow developer which - of course - led us into discussions as to the merit of the task and also how "optimal" we could make the underlying "wrapping" algorithm. When I started talking about my current algorithm we discovered that I'm doing several
Split
's and then speculated as to what the faster algorithm might be. We decided that it would be good to benchmark our final wrapping algorithm against the time it takes to perform a singleSplit()
operation against the same input. It will be interesting to see how close we can get toSplit()
time. -
MarkItUp.Components.WordWrap
About 6 months ago I enabled comments on the RegexLib.com site. Basically users can leave comments against individual patterns (there's actually an Rss feed for them too: http://www.regexlib.com/RssComments.aspx). One of my requirements was that people should be able to leave code samples which would then render correctly (line-breaks, spaces, etc). Because I'm basically a lazy guy I implemented the quickest, dirtiest thing that I could think of... yep, you guessed it, the good old PRE tag :-)
-
Msdn Connection - some more details
Frank has just blog'ged some more info about the Msdn Connection program:
-
Enjoying a good reputation.
Yesterday I blogged about the MSDN Connection programme and mentioned that I thought that it would be a good thing to get involved in and today I thought that I might expand upon that a little - just so that I can't be accused of being a .NET shill! :-) But seriously, many people have asked in the past how it is that people become MVP's or ASPInsiders or whatever, and it got me thinking...
-
Msdn Connection - sounds good to me!
Frank is doing a great job of keeping us Aussie blog'gers posted as to what's happening on the developer scene. Recently he announced a new initiative:
-
How does the Speed of Light work again?
-
How to use FindStr
Following on from my post yesterday about FindStr.exe I noticed that kayodeok's Weblog have dug up the online link to FindStr documentation, here it is:
How to Use Findstr -
FindStr.exe an egrep-like tool
I've long thought of writing a little tool like grep (or egrep) which would allow me to quickly use regex to search for text within files. This weekend while reading an article about Standard I/O and Console Applications I discovered the Windows command-line tool FindStr.
-
Some new stuff I learnt about the Console
It's amazing how often related events seem to occur close to one another. Often I'll be working on a project and I'll need some code to do something I've never done before ( for example, writing an Ftp client ) and on the same day someone will post some cool code which does exactly what I need, or I'll stumble upon an article which does. It happened again this weekend.