Archive for the '1' Category

How to make assembly strongname and install DLL in GAC

September 25, 2009

Steps to make assembly strong name(SN) to DLL:

Open .net command prompt.
Go to the folder contanig DLL.
Type sn -k test.snk, you can use any file name instead of test. This will create  test .snk file in that folder.
Open the assemblyinfo.cs file of project.
Type file path  in this tag [assembly:AssemblyKeyFile@"E:\hemant\practice\HP\bin\Debug\HP.snk")]

Build the applications, [...]

LINQ: What is the purpose of var ?

August 26, 2009

If you’ve never heard of var, var is a new way to declare variables in C# 3.0 that uses implicit typing. Let’s show a quick couple of examples.
Before 3.0
string myString = “hello”;
int myInt = 5;
float myFloat = 5.5f;
After 3.0
var myString = “hello”;
var myInt = 5;
var myFloat = 5.5f;
The distinction here is that var is not [...]

Difference between BlackBox and whiteBox Testing

July 15, 2009

BlackBox Testing:
Also known as functional testing. A software testing technique whereby the internal workings of the item being tested are not known by the tester. For example, in a black box test on a  software design the tester only knows the inputs and what the expected outcomes should be and not how the program arrives [...]

Google Chrome Operating System – GooOS

July 9, 2009

“Google Chrome OS is an open source, lightweight operating system that will initially be targeted at netbooks. Later this year google is going to introduce  netbooks running Google Chrome OS will be available for consumers in the second half of 2010. (…) Google Chrome OS will run on both x86 as well as ARM chips and  works [...]

Introduction to Cursors

April 16, 2009

What is a Cursor.
When a query is executed in oracle, a result set is produced and stored in the memory. Oracle allows the programmer to access this result set in the memory through cursors.
Why use a cursor?
Many times, when a query returns more than one row as a result, we might want to go through [...]

Methodology for writing small Classes and Methods

March 30, 2009

If you are developer who need to improve their ability to write OO routines, I suggest you have a look-see at this steps. I will try to summarize Jeff Bay’s approach here.
He suggests writing a 1000-line program with the constraints listed below. These constraints are intended to be excessively restrictive, so as to force developers [...]

Weekend fever…

March 26, 2009

Since the sunset too late at 8pm, i dont know what to do in the whole bunch of time in home. So decided to start scraping my daily activites in this blog.
Well, last weekend, i started playing cricket after long long ….long years, its was good experience with my physique… no idea why i was [...]

Multithreading in C#

March 26, 2009

Any Windows application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This C# .Net Tutorial tries to explain the basics of Multithreading in C# .Net.
[...]

encrypt/decrypt password string

February 25, 2009

Option Explicit

Public Function Encrypt(ByVal icText As String) As String
Dim icLen As Integer
Dim icNewText As String
icChar = “”
icLen = Len(icText)
For i = 1 To icLen
icChar = Mid(icText, i, 1)
Select [...]

Future Nanotechnology Mobiles

February 7, 2009