Ensure You Use The Release Version Of Library

September 1, 2010 14:56 by Anton

Yesterday I had an interesting experience, the web that we develop  suddenly became not responding. We predicted that this is because either database locking or too may request.

It turned out that an assertion from 3rd party library (PdfSharf) failed! So we need to click OK in web server pc first, then web continued as usual.

Honestly, I’ve never used Debug.Assert to check the state of my code, so this behavior surprises me.

It is a good practice to use the release version of 3rd party library.


My Dream Of Buying Mascherano’s Inter Shirt Is Over Now

August 28, 2010 14:11 by Anton

I was planning buy Mascherano’s Inter away shirt before he joined Barca yesterday. Imagine if he played alongside Cambiasso in center position. Both of them are the best defensive midfielder right now imo.

inter-nike-away-shirt

The new away shirt does impress me, and I believe it is one of the best jersey I’ve ever seen


The Expendables

August 22, 2010 07:26 by Anton

 

expendables 

It is a brainless action movie, full blood. it delivers more than Rambo 4 in term of violence.

The poll below (taken from kaskus.us) justifies that.

expendables-kaskus-resized 

It is just what I expected and I’m happy that I’ve watched it.

BAM BOOOM BAMM, 7.5/10


Bad Experience With Assembly.LoadFile

August 21, 2010 18:41 by Anton

I’m working on web application with ASP.NET MVC and I use Castle MikroKernel as DI container. This is not my first time using MikroKernel,  but everything had been fine before.

This time the property injection didn’t work :( .

As a note, I develop custom XML schema to suit my need, so I don’t use Windsor’s XmlInterpreter class.  I  was sure that my component registration is ok, but I found that every time I build my application I need to close the existing Cassini web server. When I open my web , it said that one of my assemblies is still used by other process ?!

Something must be wrong with my dynamic loading. I checked my previous work and there I used Assembly.LoadFrom , not Assembly.LoadFile to load my plug-ins. But they sound similar, aren’t they?

Then I binged and I found this


You should never use Assembly.LoadFile()
Use LoadFrom() if you know where the assembly is located, use Load() to let .NET figure out where the assembly is located. 
Using Load() should be your preference but may require a .config file to help .NET find the assembly.

Technology Will Change Our Life

August 21, 2010 18:10 by Anton

I’m a man who believes in technology. I hope technology will lead us to better life.

Just now I shaved my face and I started wondering, why the hell I should clean my razor everytime I shave. Hopefully this will change soon