Madhawa Learns To Blog

.net, c#, sql, OOAD and more mad memory dumps...

Friday, October 28, 2005

Love your job but never fall in love with your company, because you never know when the company stops loving you!

"Love your job but never fall in love with your company, because you never know when the company stops loving you!"

It’s the truth. Isn't it?
Do you believe in this? Well… I do and I think you better do.

What do you think?

Skills, knowledge, abilities and experiences are only useful if you are at the right place

I got this wonderful story today morning by an email from one of my good friends. It’s little bit old & circulating since some time. But I thought it's worth to share.

A mother and a baby camel were lazing around, and suddenly the baby camel asked....

Baby: Mother, mother, may I ask you some questions?

Mother: Sure! Why son, is there something bothering you?

Baby: Why do camels have humps?

Mother: Well son, we are desert animals, we need the humps to store water and we are known to survive without water.

Baby: Okay, then why are our legs long and our feet rounded?

Mother: Son, obviously they are meant for walking in the desert, you know with these legs I can move around the desert better than anyone does! Said the mother proudly.

Baby: I see. So the hump is to store water when we are in the desert, the legs are for walking through the desert and these eyelashes protect my eyes from the desert...
Then what the hell are we doing here in the Zzzoooooo!

Moral of the story is:
"Skills, knowledge, abilities and experiences are only useful if you are at the right place"



Monday, October 24, 2005

We gonna start a company blog...

Well.. well.. guess what? We gonna start a company blog server. :)

We are using "telligentsystems Community Server", the best community server at all time. We are doing config things today & most probably blogs will be available tomorrow afternoon.

mmm... then I can host my blog there...right... But it's very sad to leave Blogger... :(
It's almost one & half years I'm blogging here. Anyway I haven't decided whether I'm gonna maintain one blog at company blog server or maintain blogger one also.

You may can reach my company blog at http://community.kandysoftglobal.com/blogs/madhawa/default.aspx from tomorrow.

Friday, October 21, 2005

Installed Visual Studio 2005 Release Candidate

Yesterday night I was bit busy with installing Visual Studio 2005 Release Candidate. I couldn’t install it in the win 2003 server since I haven’t got sp1 installed. So I tried with Win Advance server 2000. Its already got VS 2003 installed. After installed VS 2005 both works fine. No conflicts. :)
mmm now it's time to play with VS 2005. I hadn’t got enough time with beta releases because of heavy office works.

Thursday, October 20, 2005

Hexadecimal Display in debugging in VS 2003

Nalin, one of my colleague informed me that when he debugging in Visual Studio 2003, variable values are displaying in hexadecimal. Everybody confused. Some guys told it is problem with the mc, virus etc…
But guess what had happened? I found that there is no problem but in “Options -> Debugging -> General” he had enabled "Hexadecimal Display". He was telling that he didn’t do that. I also couldn’t think he would do that kinda thing.
By the way if he didn’t do that how it could be happened??? :)

Wednesday, October 19, 2005

Mixing Forms and Windows Security in ASP.NET

Well... In a asp.net application that I'm working on these days I have to implement both Forms and Windows authentications. If user got windows credentials we have to capture the Windows username, if possible, and otherwise redirect users to a login screen.

Seems difficult ha... yes it is. But luckily I found a good article that describing how to do that.

Check this out
http://msdn.microsoft.com/asp.net/articles/security/default.aspx?pull=/library/en-us/dnaspp/html/mixedsecurity.asp#mixedsecurity_topic1

Custom development ???

Custom development is that murky world where a customer tells you what to build, and you say, "are you sure?" and they say yes, and you make an absolutely beautiful spec, and say, "is this what you want?" and they say yes, and you make them sign the spec in indelible ink, nay, blood, and they do, and then you build that thing they signed off on, promptly, precisely and exactly, and they see it and they are horrified and shocked, and you spend the rest of the week reading up on whether your E&O insurance is going to cover the legal fees for the lawsuit you've gotten yourself into or merely the settlement cost. Or, if you're really lucky, the customer will smile wanly and put your code in a drawer and never use it again and never call you back....

http://www.joelonsoftware.com/articles/SetYourPriorities.html

Did u ever feel the pain of "Custom development"? I bet u did...

Tuesday, October 18, 2005

It works on my machine...

This is bit old one but really cool :D. One of my friends had e-mailed me today.

Top 20 replies by Programmers to Testers when their programs don't work

20. That's weird...
19. It's never done that before.
18. It worked yesterday.
17. How is that possible?
16. It must be a hardware problem.
15. What did you type in wrong to get it to crash?
14. There is something funky in your data.
13. I haven't touched that module in weeks!
12. You must have the wrong version.
11. It's just some unlucky coincidence.
10. I can't test everything!
9. THIS can't be the source of THAT.
8. It works, but it hasn't been tested.
7. Somebody must have changed my code.
6. Did you check for a virus on your system?
5. Even though it doesn't work, how does it feel?
4. You can't use that version on your system.
3. Why do you want to do it that way?
2. Where were you when the program blew up?

And the Number One Reply by Programmers when their programs don't work:


"It works on my machine"

Friday, October 14, 2005

Tech.Ed

Tech.ed is over now. I attended first 2 days and it’s awesome. This was the first and only this kind of event I have attended. Mainly I attended “Database, Mobility & Embedded” sessions and found Gaurav Khanna’s and Vinod Kumar’s sessions were great. Even though I was not into embedded devices programming I had to attend those sessions ‘cos someone in our company had to catch new trends in embedded development. Any way I attended those sessions but not to my favorites with a little bit annoyed mind.

But from the first session by Gaurav I was really impressed and thought I’ll continue with this stream in tech.ed. Then it was vinod kumar and he also great. Only problem with him to me was he is not ending his sessions on time. Because of this, some times we didn’t get enough breaks among sessions. Any way I think vinod got a bit tight schedule & he covered lot of things in a very short time.

I attended one session of Wiliam tay and boy its great. (But I really felt in difficulties on getting what he is saying because of his accent) That session was abt “Transactions in Web Services and WS-OtherThings Developers Love to Hate”.

And end of the second day we got an entertainment night and we all had lot of fun. And 2 of my colleagues (Panduka, Buddhima) got gifts and we drank and danced till the end. Our ex colleague Ludmal (e-solution) & my friend Munasinghe (virtusa) joined us.

From this tech.ed we learned lot of things. We should thanks to all who put their shoulders on Tech.Ed including our MVP’s. And another thing I’m not satisfied with is welcome kit we got. That bag and T-shirt were not in good quality. Lot of guys couldn’t wear that t-shirt (too small) even though it had labeled as large. :)

Couldn't upload more images because of the slow connection speed. I'll add more pics in next week.

Tuesday, October 11, 2005

Singapore jails bloggers

Two chinese men who penned racist slurs about Malays on their interweb blogs have been jailed by a Singapore court.
Animal shelter worker Benjamin Koh Song Huat, 27, was jailed for one month while Nicholas Lim Yew, an unemployed 25-year-old, was jailed for a day and fined £1500.


Guys, be careful.... It could happen here also. :)

full story

Spring.NET - Dependency Injection and more...

Spring.NET is an application framework focused on helping build enterprise .NET applications. It provides a wide range of functionality such as Dependency Injection, Aspect Oriented Programming (AOP), data access abstractions, and ASP.NET integration.

Based on the Spring Framework for Java, the core concepts and values found in Spring.Java have been applied to .NET. The 1.0 release of Spring.NET contains a full featured Inversion of Control container and an AOP library. Subsequent releases will contain support for ASP.NET, Remoting, and data access.

Guys this is really cool, believe me... I checked that "Dependency Injection" using Spring.Net couple of weeks ago. Hadn't got time to explore the depth.

You can download Spring.NET from
http://www.springframework.org/

Here is the home.
http://www.springframework.net

Be on alert! I'll post wut I experience.

I wonder wut to do...

mmm...
5 more days to the project delivery…(wut I’m on @ work)
gogula will cover ma back...:) (thx man)
6 more days to the exam...(I hate those things)
nothing have done :( (it's usuall)
go to hell bloody exams
anyway I’m gonna fail…
one more day to tech.ed
so folks, I'll be there :D

Sunday, October 09, 2005

China Plans Its Own Next-Gen DVD Format

From a previous post I talked abt the war between Sony corp and Toshiba on HD-DVD formats right... (Toshiba is now backed by Universal Studies along with Intel and Microsoft)

Guess wut will be da next party to join ....
Check this out.

http://www.sci-tech-today.com/news/China-Plans-Own-Next-Gen-DVD-Format/story.xhtml?story_id=013001G932RQ

Saturday, October 01, 2005

Sponsored by the Employer

Well… Today I got an email from Merill stating that I’m gonna get 25% off from Tech.Ed ticket. Reason to this offer was, I’m one of the top posters of the dotnetform.lk. I’m very happy to hear that although I couldn’t able to post on the forum recently as I used to, because of the new responsibilities I got in my work place.

Anyway no use of that offer to me since I’m sponsored by my employer. :)