July 2007 Entries
First of all, take a look at the following code:
private string _targetText;
private int _maxLines;
private int _maxSize;
public int Lines
{
get
{
if (_targetText ==...
I love/hate regular expressions. I love them for their flexibility and amount of time you can save using RegEx as opposed to manipulating strings manually. I hate them, because writing them is such a pain in the... you get the point. Today I had to quickly assemble a small tool that would replace certain elements in text file. To be more accurate it had to read lots small text files that were kind of bilingual, meaning English/Chinese, and change them to true Unicode bilingual. I said kind of, because files were written in plain ASCII with English text written normally,...
I came to work today, only to see that my PC was restarted, when I left it running with some files open (thankfully saved). I learned from little nice green shield in my tray that it downloaded some updates and needed to restart so... it did. Automatic update is a great feature, as long as it works as I expect it to, and I expect it to never restart my PC without my explicit permission! I found it kind of odd, that my PC at work restarted automatically, while my home PC never does it. I did some digging and here's...
In order to avoid accusation for doing crypto-advertisement, I honestly admit, that I have received for free professional licence for NDepend (worth EUR 299) from Patrick Smacchia (dev lead and inventor of the tool). It's kind of weird - I knew about the tool for some time, I even once downloaded its free version, but I got lost when I saw its interface and I didn't actually play with it much then and I ended up thinking that it's another crazy/fancy tool for PMs or whoever and I didn't really see how I might benefit from using it. Then...