Browse by Tags

All Tags » .NET (RSS)

Playing Around with Managed Extensibility Framework (MEF)

Wow, long time no blog :). Busy at work, hehehe. MEF is a new (to be released as part of .NET Framework 4.0) open source extensibility framework. You can find the latest drop at this CodePlex site. The easiest way to explain MEF is to think about it as...
Posted by Jimmy Chandra | 3 comment(s)
Filed under: ,

Globalization / Localization Strikes Again

To assume, as they said it, is to make an ass of u (you) and me . And that's exactly what happened recently on one of my side projects. I created a stock quote component that will retrieve stock data in form of a CSV from Yahoo! Finance. Take a look...
Posted by Jimmy Chandra | 1 comment(s)
Filed under: , ,

Taking Linux For a Spin

Was tasked to install Informix on a Linux recently. I've never really play around Linux that much. Occassionally, downloaded a distribution like Ubuntu or Mandrake (now Mandriva) and installed them on a VM and just looked around what the OS is about...
Posted by Jimmy Chandra | with no comments
Filed under: , ,

Operation could destabilize the runtime

I was trying to reproduce Repository pattern that Rob Conery was using in his MVC Store Front project in my own project. Continuing with the interface programming style hype, I decided to make everything implement some sort of an interface. So my domain...

Apparently VS 2008 SP 1...

Apparently, if you install Visual Studio 2008 Service Pack 1, you don't need to install .Net Framework 3.5 SP 1 anymore (already included). It also installed .Net Framework 2.0 SP 2 and .Net Framework 30. SP 2... Apparently. Btw. What's in the...
Posted by Jimmy Chandra | with no comments
Filed under: ,

How to Make Yet Another Forum.Net to Work with Telligent Graffiti CMS

In a recent project that I was handling, there was a requirement to have a forum on top of an existing Graffiti CMS . Instead of building one from scratch I decided to look for an open source .NET forum engine alternative. That's when I ran into Yet...
Posted by Jimmy Chandra | 3 comment(s)
Filed under: ,

DataSet Xml Deserialization Data / Schema Load Order

Note to self: When deserializing a dataset from xml, make sure to execute ReadXmlSchema before executing ReadXml, otherwise you'll have problem when you try casting your data into the correct data type. using System; using System.Data; using System...
Posted by Jimmy Chandra | with no comments
Filed under: ,

Back to Basic: C# Using statement, Return and IDisposable

In day to day coding, I found myself using a lot of disposable objects like DbConnection, Font, etc. And so, naturally, putting this code block inside a using statement is common sense. In theory, I know that when you use a using block in your code, your...
Posted by Jimmy Chandra | with no comments
Filed under: , , ,

Back to Basic: Debug.Assert(...)

I wonder how many of us litter our code with this particular line? How do you use them? Do you know what you need to watch out when you do use them? Is it necessary to put this line of code in our code? What is the consequence of putting this line into...
Posted by Jimmy Chandra | 1 comment(s)
Filed under: , ,

Detecting If a Number has a Decimal Fraction

This seems like pretty basic functionality of a number type, but I can't seem to be able to find any built-in function in any of .Net number type that support decimal (decimal, double) or the System.Math class to do this. In any case, if you find...
Posted by Jimmy Chandra | 4 comment(s)
Filed under: ,

On Activator.CreateInstance...

When you use .NET Activator.CreateInstance to create a new object of a certain type, make sure you reference the Project / DLL that contain the type definition or load it manually somehow to an AppDomain . Otherwise your call will fail. Say you have the...
Posted by Jimmy Chandra | with no comments
Filed under: ,

How Do I Serialize / Deserialize Tidbits...

How do I serialize / deserialize between (XML Schema) XSD:Duration from and to .NET TimeSpan? Apparently, there is no obvious way to do this like you could when dealing with DateTime object conversion to and from XSD:DateTime. With DateTime you can do...
Posted by Jimmy Chandra | with no comments
Filed under: , ,

Playing Around with Anonymous Type, Extension Method, LINQ, and Generic

I was reading this particular entry from AlexJ's blog, in which he discussed how to use anonymous type returned from one function in another function. I strongly recommend you read it first before reading any further. Basically, most people would...

Lesson Learnt: Building & Running Application as Non Admin

Wow, it's been awhile since I add an entry to this blog. Been busy at work. I was contacted by one of my friends a couple days back. "I have a problem, " he said. "I have a smart client application that is storing its settings in the...
Posted by Jimmy Chandra | with no comments
Filed under: , ,

Coding Katamari

As usual, I started my day perusing hundreds RSS subscription (I used to use Outlook for this, but I am getting to like Google Reader more and more). Lots of neat stuffs you can find just reading other people's writing. For example: http://thewpfblog...
Posted by Jimmy Chandra | with no comments
Filed under: , , , ,
More Posts Next page »