Great article. Gives some very valuable information on implementing sets with a finite universe. It doesn’t suit my requirements - I need to represent sets where the universal set might be infinite - like, say the set of strings. The trouble starts with trying to implement the set complement operation - you can’t obviously list an infinite set, so the trick is to represent it as a cofinite set.

Read more →

And now I need to roll out my own version of a set datastructure library. C# has hashmaps - they come close but aren’t really sets. You can use them to implement sets, but that’s about it. Also, I want my sets to conform to one of the standard collection interfaces so that they can interoperate with code. And I REALLY REALLY need set intersection, set union and set difference!

Read more →

I’ve this need to calculate a file fingerprint in VB6. So the need to access CrptoAPI in vb6. Didnt want to do win32 calls from VB and thankfully MS has a COM layer over cryptoAPI called CAPICOM. Useful stuff…​as the MSDN site says "Summary: CAPICOM is a new security technology from Microsoft that allows Microsoft Visual Basic, Visual Basic Script, ASP, and C++ programmers to easily incorporate digital signing and encryption into their application.

Read more →

ASPAlliance.com : ASP and ASP.NET Tutorials : The LogonUser API Finally found a way to allow ASPNET user access to the LogonUser api. Guess what, WinXP and above, no specific permissions are required! Cool.

Read more →

I was trying out WSE2.0 SP2 Hands on lab on security and hit this really strange problem. I needed to install the sample certificates supplied with WSE, typically located in C:\Program Files\Microsoft WSE\v2.0\Samples\Sample Test Certificates. As given in the Hands on lab manual, I installed the Server Certificate.pfx (server’s private key) to the LocalMachine\Personal store and the Client Certificate.pfx (client’s private key) to the CurrentUser\Personal store. The trouble started when I wanted to install the Server’s public key to the Current User’s\Other People store as directed.

Read more →

Back to work....

general

Am back today after a long time. Been down with viral fever and doing nothing more than warming the bed with my backside :(. Really depressing! Anyway am back today - but feeling quite tired. This thing’s thrown a spanner in the works in more than one thing - was supposed to go to the finale of the Aero India show here and couldn’t make it - thanks to the viral!

Read more →

I had this problem last week - needed to generate . My method was to use an entity declaration <?xml version="1.0"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> <!-- white space in XSL --> ]> Sadly, this doesn’t work with MSXML3 or MSXML4. The generated HTML has a space ' ' character rather than After some googling, found the answer and a workaround on the xsl list

Read more →

Am back on XML/XSL now. I’m in need of a good XSL editor - good being defined as Support intellisense Have a decent XPATH visualizer Debugging (optional) FREE :)) Editor with regexp support for search/replace (We all write XHTML. But if you need to start of with an existing HTML page, 99 times out of hundered, its not going to be XHTML)

Read more →

Came across this article on some advances to NUnit that I found missing! Great stuff, but I guess I’ll have to wait until this gets into NUnit. Very useful article - explores points where unit testing doesn’t work well enough (atleast the normal set of tools available). The Code Project - Advanced Unit Testing, Part I - Overview - C# Programming

Read more →

Pretty useful stuff. Just used this to send out personalized invitation emails to all my friends. Email message attachments in Perl Additional note: If you’re using a MS Exchange server like me, most likely, you will not be able to send out email outside your organization. To work around this, you need to use the sign in to your SMTP server using the auth method in Net::SMTP. Give your domain username (just the username) and the password in the call to auth.

Read more →