September 2004 - Posts

MSFT UK's Tim S is off to new pastures

Tim Sneath the well known 2000/yukon/.net expert in the UK .Net Dev community, and someone who I have personally seen present a number of times, has just announced that he's leaving Microsoft UK to join the Big Boss in Seattle. Good luck Tim.

http://blogs.msdn.com/tims/archive/2004/09/23/233569.aspx

Barca and .Net Developer Memory Loss

I've not had a chance to post for a short while as I have been away enjoying the delights of Barcelona for my stag doo with 17 of my friends. I won't go into details of this as that's not what this Blog is for, but I thought I'd make my excuses anyway (and if you get the change to go to Barca I highly recommend it.......anyway coming back and catching up on things I found this excellent little document at http://www.reflectionit.nl/DotNetLog.aspx which gives you quick access to all those little .Net bits than you can never remember when you need to. Will be sitting on my desktop from now on.

Oracle Text ctx_ddl.optimizeindex

I've been doing a fair amount of work with Oracle Text in 9i and especially with indexing PDF's. I'd been struggling with performance of searching as the index was added to.

A context index is structred as below (This is taken from the Oracle text manual)

"Word" DOC1 DOC3 DOC5

where the word contains a list of documents containing that word. However when you add a new document to the index you get the following

"Word" DOC1 DOC3 DOC5
"Word" DOC9
"Word" DOC10
"Word" DOC11

As you can see a new row is added each time the index is updated, and this will continue as the index is sync'd with new documents. This of course slows searching of the index due to the fragmentation.

I have though managed to stumble across the ctx_ddl.optimizeindex method which tidies up new entries to the index by removing duplicates so taking the above example becomes

"Word" DOC1 DOC3 DOC5 DOC9 DOC10 DOC11

Means a more lean mean indexing machine :-)

No Gmail Invites here

I've got 6 4 1 going if anybody needs one. Post your email address in feedback.

 

all gone sorry.

Look at your code, and then make it better

I'm currently reading this book by Martin Fowler on refactoring. I have to say I'm fairly new to this subject but it does seem to make a lot of sense and I for one will be using this approach in all my .net development in the future. Now all I need is to master the art of test driven development and I'll be happy.

VS.Net 2005 at MSFT UK

I attended a 1 day seminar on this yesterday at MSFT's UK campus in August so I thought I'd post some brief thoughts on the day, and overall I have to say it was very good.

There were 4 dev talks from Microsoft folks covering:
  • new features in c# and vb.net (Gotta love Generics)
  • Winforms 2 (1 Click deployment) - Looks to good to be true ;-)
  • asp.net 2 (Loads of new goodies) such as Masterpages, Personalisation, ADO.NET extras which should all help produce more effect web apps.
  • VS.Net Team System (The new addition to VS.Net)
    Still very raw but the obvious benefits are there to see, will be good once I can have a proper play with the bits and pieces.
I also got a copy of 2005 beta 1 and that will be installed on my Dev box to play with.

It's all looking very nice.

    c# coding standards

    A must for any .net developer from Lance Hunt.

    >> here

    __doPostBack

    At work I was facing a problem of filtering .pdf documents when they are selected using a fileupload field. I chose to do this client side as I though it would be quicker and simpler, ha I was a little wrong on that count.

    Basically I could access the file upload field fine and detect the file type, however due to security restrictions you cannot actually reset the value of the field. Ouch.

    Fortunately a fileupload field clears its contents on a page refresh, so using the built in asp.net __doPostBack function I could force the page to refresh and clear the field if the user doesn't select a .pdf extension, bit of a hack but it works....phew.

    Hello is there anybody out there.

    Traditional first post hello.

    I'll post bits and pieces from work (mainily .net stuff [geek]) and life. Let's see if I use it. Thanks to Donny and the DNJ team for setting me up!