Welcome to weblogs.com.pk Sign in | Join | Help

March 2005 - Posts

mySQL :: Client does not support authentication protocol requested by server

If you are using pre 4.1 client (PHP 4.x) you might get an error ''Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL'' This happens due to the reason that mySQL 4.1+ has new authentication

Implementing Security :: Code Access Security & Role Based Security

Let’s assume; we have couple of Controllers (for different business facades) and we want that certain users can access certain controllers. Using central factory approach ; one might has to implement following extensions: public class ControllerFactory
Posted by khurram | 2 Comments
Filed under: ,

Implementing Security :: Central Factory

The approach introduced in my last post ; have few problems. In this post I am discussing one problem which is If you want to implement multiple controllers in the library; the code of validating the credentials will be duplicated; which is against OOP
Posted by khurram | 3 Comments
Filed under: ,

Implementing Security

Security is critical. We as software developers and architect should take necessary steps to ensure end to end security. Security in general is a cross-cutting concern. Implementing security in the solution results changes in many places. Consider an
Posted by khurram | 2 Comments
Filed under:

The first year of blogging!

I just have noticed; its been a year since I am blogging! Wow! Time passes so quickly. Anyways; happy birthday (little belated) to http://weblogs.com.pk team!
Posted by khurram | 2 Comments
Filed under:

Getting Assembly Version

I have adopted a habit to log the assembly versions. Its very useful if you are maintaining multiple versions or involved in maintenance phase of the Software Development Life Cycle (SDLC) Here is how you can find the assembly version in .NET public static
Posted by khurram | (Comments Off)
Filed under:

MD5 hashing

.NET base class library is very rich. Here is the code snippet which hashes the give data. It’s recommended to store the hash of the sensitive data like user’s password. public static string GetMD5Hash( string data) { System.Text.Encoder enc
Posted by khurram | (Comments Off)
Filed under:

Disconnected (ADODB) Recordset

The good thing about .NET is its inter-operateability with older technologies; like COM. If you are stuck with old platforms (like me J ) you may find this post useful. Here you will find how to use ADODB (The classic ADO ) with .NET ADODB expects integer
Posted by khurram | (Comments Off)
Filed under: , ,

Phalanger

Phalanger ( http://www.php-compiler.net ) the PHP Language Compiler for .NET Framework From http://channel9.msdn.com/ShowPost.aspx?PostID=48906 They even demonstrated PHPNuke; a very famous portal kit of PHP platform running with Phalanger. I will definitely
Posted by khurram | (Comments Off)
Filed under: ,

Time Sheet Templates

I am looking for templates for the time sheets being used in local software houses. I will be glad if anyone can share it; or have any comments. I am also looking for feedbacks about how to measure the work activities in the following areas. Software
Posted by khurram | 1 Comments
Filed under:

Creating COM-Aware Component in C#

If you want to create a COM in C# (.NET) you might have to follow these steps. Create a class project. Create couple of GUIDs, you will be needing atleast two, 1 for interface and other for implementation. Create an Interface class. Decorate it using
Posted by khurram | (Comments Off)
Filed under: ,

Visual Studio Wishlist

The last few weeks were damn busy. My son has just got admission in pre-school, and we all had been busy to set this new routine. No more late night TV/Computer. Early to bed; early to rise J Go office in time, I am supposed to come back home by 6 to
Posted by khurram | 1 Comments
Filed under: