Recent Web Log Entries By Mehdi Mousavihttp://mehdi.biz/blog
Programming Tips & TricksThu, 31 Oct 2013 16:31:09 +0000en-UShourly1http://wordpress.org/?v=3.5.1An introduction to MongoDBhttp://mehdi.biz/blog/2011/02/28/an-introduction-to-mongodb/?utm_source=rss&utm_medium=rss&utm_campaign=an-introduction-to-mongodb
http://mehdi.biz/blog/2011/02/28/an-introduction-to-mongodb/#commentsMon, 28 Feb 2011 12:44:00 +0000Mehdi Mousavihttp://localhost:10265/?p=3310 years ago we have had no social network service in such a scale we used to see these days. Facebook, for instance, has got more than 600 million active users who modify their personal profiles, exchange messages, play games and the like every single day. Consider the total committed transactions per second caused [...]]]>http://mehdi.biz/blog/2011/02/28/an-introduction-to-mongodb/feed/8Developing an ASP.NET ColorPicker Server Control using jQueryhttp://mehdi.biz/blog/2010/05/16/developing-an-asp-net-colorpicker-server-control-using-jquery/?utm_source=rss&utm_medium=rss&utm_campaign=developing-an-asp-net-colorpicker-server-control-using-jquery
http://mehdi.biz/blog/2010/05/16/developing-an-asp-net-colorpicker-server-control-using-jquery/#commentsSun, 16 May 2010 13:10:00 +0000Mehdi Mousavihttp://localhost:10265/?p=32As the title implies, today’s post is dedicated to developing a custom ASP.NET server control that lets the user pick up a given color from a predefined color set. Please note that I’m not going to mimic Adobe Photoshop’s color picker, since it’s what jPicker and colorPicker do.

I just wanted a simple, [...]]]>

http://mehdi.biz/blog/2010/05/16/developing-an-asp-net-colorpicker-server-control-using-jquery/feed/2Having fun with jQuery and HTML 5http://mehdi.biz/blog/2010/02/26/having-fun-with-jquery-and-html-5/?utm_source=rss&utm_medium=rss&utm_campaign=having-fun-with-jquery-and-html-5
http://mehdi.biz/blog/2010/02/26/having-fun-with-jquery-and-html-5/#commentsFri, 26 Feb 2010 17:51:00 +0000Mehdi Mousavihttp://localhost:10265/?p=31Hi folks, The idea of this post came into my mind when I was navigating the web to find some images for coloring (albeit for my 28 month old son, not myself!) This is not meant however to be an all-in-one tutorial for HTML 5. If you need to learn what HTML5 offers, please [...]]]>http://mehdi.biz/blog/2010/02/26/having-fun-with-jquery-and-html-5/feed/19‘Vertical Tabs’ for jQuery lovers!http://mehdi.biz/blog/2010/02/05/vertical-tabs-for-jquery-lovers/?utm_source=rss&utm_medium=rss&utm_campaign=vertical-tabs-for-jquery-lovers
http://mehdi.biz/blog/2010/02/05/vertical-tabs-for-jquery-lovers/#commentsFri, 05 Feb 2010 00:42:00 +0000Mehdi Mousavihttp://localhost:10265/?p=30Hello folks, Well, I was just wondering how to start this post and how to write words worth a thousand pictures. However, I believe giving a jQuery plugin a live try, worthes a thousands words. So, hover below and give Vertical Tabs a try.

If it suits your needs, read on.

#vtab { [...]]]>http://mehdi.biz/blog/2010/02/05/vertical-tabs-for-jquery-lovers/feed/104Mehdi Returns!http://mehdi.biz/blog/2010/02/01/mehdi-returns/?utm_source=rss&utm_medium=rss&utm_campaign=mehdi-returns
http://mehdi.biz/blog/2010/02/01/mehdi-returns/#commentsMon, 01 Feb 2010 08:56:00 +0000Mehdi Mousavihttp://localhost:10265/?p=29Hello, Well, as you have noticed, the new site is up and running. In my previous post, I was hoping to design my blog from scratch but I soon realized that I need to learn the nuts and bolts of Google Blogger soon or later. So I decided to understand the subtle nuances of [...]]]>http://mehdi.biz/blog/2010/02/01/mehdi-returns/feed/1SQL Server Savepointshttp://mehdi.biz/blog/2009/01/06/sql-server-savepoints/?utm_source=rss&utm_medium=rss&utm_campaign=sql-server-savepoints
http://mehdi.biz/blog/2009/01/06/sql-server-savepoints/#commentsTue, 06 Jan 2009 11:25:00 +0000Mehdi Mousavihttp://localhost:10265/?p=27There are some conditions when you need to rollback an implicit or explicit transaction to a given point inside the transaction. There are two ways to address such a need:

1. You can use the T-SQL to address such a problem:

2. Use the SqlTransaction’s Save method within your code. Please note that this method [...]]]>

http://mehdi.biz/blog/2009/01/06/sql-server-savepoints/feed/2Empty Fieldshttp://mehdi.biz/blog/2008/05/03/empty-fields/?utm_source=rss&utm_medium=rss&utm_campaign=empty-fields
http://mehdi.biz/blog/2008/05/03/empty-fields/#commentsSat, 03 May 2008 19:22:00 +0000Mehdi Mousavihttp://localhost:10265/?p=26Hi folks, There are some cases when you need to pass an empty EventArgs to an event handler. I’ve been seeing the following code (which makes me really sick) lately over and over again:

Take a look at MSDN and you’ll see there’s a static read only field named Empty in the EventArgs class [...]]]>

http://mehdi.biz/blog/2008/05/03/empty-fields/feed/1How to suppress the flicker issue in .NET’s ListView?http://mehdi.biz/blog/2008/04/15/how-to-suppress-the-flicker-issue-in-nets-listview/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-suppress-the-flicker-issue-in-nets-listview
http://mehdi.biz/blog/2008/04/15/how-to-suppress-the-flicker-issue-in-nets-listview/#commentsTue, 15 Apr 2008 20:48:00 +0000Mehdi Mousavihttp://localhost:10265/?p=25Hi folks, I’ve been recently asked to explain how to suppress the flicker issue in C#’s ListView. As far as you know if you try to modify the list contents, the background of the control will be redrawn – which is the source of the flickering problem.

To stop this, you need to subclass [...]]]>

http://mehdi.biz/blog/2008/04/15/how-to-suppress-the-flicker-issue-in-nets-listview/feed/0The C# counterpart of MFC’s CWaitCursorhttp://mehdi.biz/blog/2008/04/06/the-c-counterpart-of-mfcs-cwaitcursor/?utm_source=rss&utm_medium=rss&utm_campaign=the-c-counterpart-of-mfcs-cwaitcursor
http://mehdi.biz/blog/2008/04/06/the-c-counterpart-of-mfcs-cwaitcursor/#commentsSun, 06 Apr 2008 11:50:00 +0000Mehdi Mousavihttp://localhost:10265/?p=24Hi, For those who are not familiar with MFC, the CWaitCursor class provides a way to show a wait cursor, which is usually displayed as an hourglass, while you’re doing a lengthy operation. There are plenty of ways to modify the pointing device’s cursor under C#, however, the one I’m going to bring up [...]]]>http://mehdi.biz/blog/2008/04/06/the-c-counterpart-of-mfcs-cwaitcursor/feed/0Notepad Unicode Problem!http://mehdi.biz/blog/2008/03/03/notepad-unicode-problem/?utm_source=rss&utm_medium=rss&utm_campaign=notepad-unicode-problem
http://mehdi.biz/blog/2008/03/03/notepad-unicode-problem/#commentsMon, 03 Mar 2008 10:16:00 +0000Mehdi Mousavihttp://localhost:10265/?p=23Hi folks, I’ve just read an article written in Farsi (the link is unfortunately broken) about an interesting bug in Microsoft’s Notepad. Here’s the story: Open Notepad. Type AAAA BBB CCC DDDDD (or any other 4-3-3-5 alphanumeric combination). Save the document and close the notepad. Open the saved file.