Welcome to Geekdojo Sign in | Join | Help

November 2003 - Posts

using Aliased.Namespace = Namespace.Dont.Want.To.Use.Or.Cant.Use;

I had read the using directive usage for aliasing namespace in Eric Gunnerson's book when I started learning the C# syntax. Yesterday, I had to use it to avoid class name collision (I had two classes named Helper in two different namespaces and I needed
posted by richardhsu | (Comments Off)
Filed Under:

"..Connection Closed.." error while connecting to a Web Service

I was repeatedly getting a "Connection closed" error while accessing a web service from a windows client application. This wasn't hapenning on my development machine but on two of the other machines where I am testing. I was totally baffled and my limited
posted by richardhsu | 2 Comments
Filed Under:

My first silly XML mistake

My first silly XML mistake, perhaps this is one of those things that are labeled as 'classic' (like '=='& '=' in C/C++)I needed to capture the data that I was sending to a web service and see what it looked like, so, the best way that seemed interesting
posted by richardhsu | 1 Comments
Filed Under:

Don'ts in API design (FxCop shows me some Don'ts)

NOT COOL :-1) Properties Should Not Return ArraysWhy ??.NET Framework SDK Documentation :-You should use collections to avoid code inefficiencies. In the following code example, each call to the myObj property creates a copy of the array. As a result,
posted by richardhsu | (Comments Off)
Filed Under:

Knoppix distribution of GNU/Linux really cool!!

I have had Knoppix CD with me for sometime now, every now and then I insert it into the CD Drive and boot into the world of GNU/Linux. Don't get me wrong, I am still a total GNU/Linux newbie and am still learning to do basic editing in Emacs. What happened
posted by richardhsu | 1 Comments
Filed Under:

Working with COM Exe in C#

Credit goes to Peter A. Bromberg for this one. In his article, he talks about creating dynamic excel workbooks in C# within an ASP.NET page. What I learnt from the article was how we can properly release a COM object. There are two methods that we are
posted by richardhsu | 4 Comments
Filed Under: ,

Why limit the password to <= 8 characters ?

We at Core use the services of Net4Domains for our website and emails. They have provided us with fairly good service so far. Enough for me to recommend it to others. But one thing about their system has been irking me sometime now and it has to do with
posted by richardhsu | 2 Comments
Filed Under:

as and is

I read the following from Brad Adams' blog sometime back, I didn't need it then but kind of kept it in mind. Today I needed this one and I actually used it :-). So, hopefully I'll remember it from now on. Yet another 'key of C#' lesson for me. “is should
posted by richardhsu | (Comments Off)
Filed Under:

ArrayList.ToArray(Type) usage

I was using ArrayList.CopyTo(Array) to convert arraylist to a type[] array. I thought ArrayList.ToArray(Type) was for intrinsic types (int, string etc.) but forgot that one the facilitites of OOP is that types that we define can be treated as instinsic
posted by richardhsu | 26 Comments
Filed Under:

"dynamic applications should be dynamic on the client" - Chris Anderson (MSFT)

Chris Anderson writes :- “My not-to-hidden agenda here is simple - dynamic applications should be dynamic on the client. The server should send data - either through web services, database access, or any other wire protocol - and the client should consume
posted by richardhsu | 1 Comments
Filed Under:

My WinForms App finally talking to WebServices at Brinkster.com

Two days ago, I completed and successfully deployed an application using Windows Forms as a client to web services on our site hosted with Brinster.com. Its a typical database app where information about people are entered online. I managed to get .Net
posted by richardhsu | 1 Comments
Filed Under:

Nikhil Kothari's Server Control Book

After months of waiting, I have finally got myself a copy of Nikhil Kothari's ASP.NET Server Controls book . Nikhil's Home PageAs expected its fairly power packed, with a lot of deep explanations. So far, the most valuable lesson I have learnt is when
posted by richardhsu | (Comments Off)
Filed Under:

Code Generator, oh how I miss you!!

Over a period of time, I have totally become a 'component-oriented' programmer. Now, whenever I write any application, general purpose or database, I inevitably think in terms of classes and 'components' (since a control is more than just a class). Further,
posted by richardhsu | (Comments Off)
Filed Under:

An excel based pay-slip generating app

Yesterday (7-Oct-2003), I finished and previewed a mini payroll solution built on Excel/VBA/Word combination.Excel is used as the data store, I used VBA to extract the data and generate a Word Doc containing pay slips.It took maybe about 1-2 hours to
posted by richardhsu | 3 Comments
Filed Under:

Things I learnt today

Never put string literal values that is likely to change into the page code, put them into the Web.Config file instead, else you'll have hell of time recompiling the code, uploading the dll, for a little change in text.... Also split the project into