Archive

Archive for July, 2008

Arrive. RAISE HELL. Leave

I think it was about 1 year ago when I was watching WWE Wrestle Mania XXIII. Stone Cold Steve Austin came up as a guest referre for the match  between Vince McMahon and Donald Trump with a band and there I saw these wonderful words comming up: Arrive. RAISE HELL. Leave. And God, I’m so inspired by this. To me this just sums up the whole kind of an attitude a man needs to have if he wants to be successful.

The first thing that you need to do in any situation in life is to:

Arrive:

Normally I’ve seen many people taking a step back when they see some thing big comming up. People start thinking about the consequence and most of the time people are not ready to pay the price. That price usually comes in terms of loneliness and hardwork. People get afraid of that and start behaving sheepishly.

If you really wanna be the man, you need to first arrive with all ends up, with full devotion and willingness to do whatever it takes to get to that position where you wanna be. You ARRIVE like a lion who wants to conquer the jungle and turn it into his kingdom.

RAISE HELL:

Now that you have ARRIVED at the situation, you’ll most probably find yourself facing lots of difficulties. Try to get youself in a mode where you start enjoying those. Whenever it gets really nasty, just laugh at the situation. Think that you’re facing these because you’re capabale of handling them. Now is the time to raise some serious hell.

LEAVE:

When you’ve raised some serious amount of hell, God willingly you’ll find yourself at the top of your game. That will be your time. Savour it, Enjoy it as much as you can. But its a fact of life that everything has to end at some stage, every one has to leave at a point in life. So when you see that moment comming. Dont hesitate. Leave the situation with honor and dignity. Try finding some new places to ARRIVE…RAISE HELL and LEAVE

In the end, I just wanna say that no matter how good you do in life. Its always up to Allah’s will to give you the reward for it. You by yourself are not capable of success or failure. All your capable of doing is to give the best you can. Remember that you’ve been sent over to this mother earth only once. There wont be no second chance, so if you want to achive something: the time to start working is NOW.

How to reseed the identity value of a table?

I was working on a project and there was a lookup table in that which needed to be populated and its identity values needed to strictly match with the database at my client’s end. At first when I tried to insert data from another table it turned in to an error, the rows didnt get inserted but the identity value increased due to a lost transaction. So I ran this script in order to reset the indentity value in that table. Please note that to start the identity values from 1 you need to reseed it to zero. The other important thing is that you should delete the rows with a higher identity value because it will not skip that, but it will try to overwrite it which would result in an error.

dbcc checkident (mytableName, reseed, 0)

(Wo)Man Diet. Probably something that men should also do

Read this article on MSN.com, some woman wrote this question:-

I’ve been married for eight years, I have a 5-year-old child — and I’m madly in love with my colleague, who’s also married. About two years ago, we had a month-long affair, but he wants to stay with his wife and barely talks to me now.

Even though my husband and I get along, I don’t feel anything for him anymore. It’s been months since I’ve seen or talked to my colleague, but I think about him all day. Therapy and antidepressants haven’t helped me let go of the man I’m in love with. Any tips?

What you need to do is go on a man diet. Just as a regular diet involves cutting down on junk food, the man diet involves cutting down on thoughts of your colleague. So stop replaying your good old times together. Stop wondering what he’s doing. Stop trying to figure out what could have gone differently. And stop listening to drippy love songs that remind you of him. Just stop. Channel your inner tough chick.


Read this article on MSN.com and I was left wondering that’s so so true about men also who have had a bad experience in their lives

How to do this? Break the days into manageable bits. Tell yourself you won’t think about him for half an hour, or 15 minutes, or even five minutes. The moment the thought of him enters your mind, switch the station. Imagine yourself trying out for American Idol. Try to remember the name of all the kids in your third-grade class. Anything works.

To help with this process, you’ll need to reframe the way you describe this man to yourself. Stop thinking of him as “the man I’m in love with.” That phrase alone reinforces the connection. Years down the road you may be able to look back and gain insight from the nature of your relationship, but for now, he’s just that messed-up guy at work you had an ill-advised fling with. Make the thing you had with this clown smaller in your memory. Don’t sanctify it in any way. Eventually, time will work its reliable magic and you’ll find that an hour passes and you haven’t given him a single thought. Then a day will go by, then a week. Eventually, you’ll find that you’ve let go.

Which leaves the question of your lack of feelings for your husband. You don’t sound as if you’re eager to get a divorce, and you shouldn’t quite yet. It’s not necessary at the moment to do anything more than stick to your man diet and realize that your colleague was nothing more than your favorite mistake. And since you do get along with your husband, perhaps you can allow for the possibility that one day the love you once felt for him may return.

Read more…

How to get the special characters from keyboard?

July 27, 2008 Imran Akram 1 comment

ANSI secrets

 

Ever wondered how to get special characters like ©, ® or ™ in your document? You don’t need any special software installed. Windows has it’s own inbuilt character map utility, which you can use to identify individual special characters. Using copy and paste you can insert them into your document. However, this is a very slow procedure, and it is much quicker to use the ALT key for those characters which are used frequently.

 

For example, [CTRL]+[ALT]+[C] gives ©. Similarly, [CTRL]+[ALT]+[R] gives ® and [CTRL]+[ALT]+[T] gives ™ .

 

Special characters are usually entered using the numeric keypad and a 4-digit ANSI code. Each character is allocated a particular slot, and the character in that slot can be inserted by pressing the corresponding key on the keyboard, or by holding down the Alt key and tapping 0 followed by ‘nnn’ on the numeric keypad where ‘nnn’ is the 3-digit code for each special character.

 

For e.g., to get the pound symbol (£):

  • Press and hold the [ALT] key
  • Type 0163 on the numeric keypad on the right
  • Release the [ALT] key to see the symbol

 

More:

List of ASCII Symbols

Ill treatment with Applicants at the Swedish Embassy in Islamabad

I’ve received the news from the Swedish Migration board that my document haven’t reached there although it’s in their record that they’ve been submitted on May 21, 2008. When I tried calling the Swedish embassy at Islamabad I received a very rude response, that call us between 2 – 3 pm and guess what, the lines are never open at that time. I’ve mailed them 3 days ago and still I havent got any response.

To my surprise, when I mistakenly mailed the Sweden embassy in India. I got the response on that same day. What these morons are doing here is completely not understandable and also not acceptable for me one single bit. I have no idea where my documents are and now I feel some day or the other, some one needs to take some legal action against this bullshit… but wait a minute… whose gonna give us justice???

How to access data from two different tables in SQL Server 2005?

howdy,

well I was having a problem where I needed to populate the table of my SQL Express 2005 database from another table in another database. So I wrote the query in the following fashion:

INSERT INTO debtdb.SchemaName.TableName (column1, column2….)

SELECT Column1, column2…

FROM dbName.SchemaName.TableName

 

my sample query was this

Insert into db2.dbo.tblNationality(NationalityName) 

Select

Name FROM db1.dbo.tblNationality

what it does is that it takes the data from the database called db1 and inserts it into another database –on the same server, called ‘db2′.

Changing a Column to Identity after creation.

July 17, 2008 Imran Akram 1 comment

Today I had to change the Primary key columns in tables so that they can become identity columns but I couldn’t do it using Alter Table x Alter column y IDENTITY(1,1) command. So I found out that you can’t use ALTER TABLE to change a column into IDENTITY column (except on SQL Server CE!). One way is to rename the table, create a new and move over the data. You need to have SET IDENTITY_INSERT
on for the table when you move the data.

You can also do it in Enterprise Manager – which will rename and move data behind the scenes.

Thanks to this thread

Properties in .NET

Property in C#:

Property ? it is a special method that can return a current object?s state or set it. Simple syntax of properties can see in the following example:

public int Old 
{
   get {return m_old;}
   set {m_old = value;}
 } 
public string Name 
{
   get {return m_name;} 
}

Here are two types of properties. A first one can set or get field of class named m_old, and the second is read only. That?s mean it can only get current object?s state.

The significance of these properties is its usability. These properties need not be called with any function names like objectname.get or objectname.set etc., But they can be directly assigned the values or retrieve the values.

The VB .NET Syntax of declaring a property is as follows:-

Public Property X() As Integer
Get
     Return
x
End
Get
Set(ByVal Value As Integer
)
     x = value
End
Set
End Property

Enumerations in .NET

The enum keyword is used when you require a enumeration. A enumeration is a distinct type that consists of a set of named constants called the enumetor list. Every enumeration type has an underlying type which can be all integral times except that of a char type.Where:

Declaration syntax:

  • attributes (optional) – this is additional declarative information, look under index A for more information
  • modifiers (optional) – permissible modifiers include: new, public, protected, internal and private ( the 4 access modifiers)
  • base-type (optional) – underlying type for the storage allocated for each enumerator, any integral type except char (default is int)
  • enumerator-list – the enumerators identifiers which are seperated by commas (optionally including a value assignment)

Key Points:

The default underlying type of the elements in the enumeration is int as previously mentioned. The first enumerator begins at 0 by default and each enumerator following is increased by 1. Explicit casts are required to convert from enum type to an integral type.

enum Months {Jan, Feb, March, April,
May, June, July, August, Sept, Oct, Nov, Dec};

// same as above EXCEPT forced to start sequence
// from 1 instead of 0 (default)
enum Months2 {Jan = 1, Feb, March, April,
May, June, July, August, Sept, Oct, Nov, Dec};
   
public void Page_Load(object sender, EventArgs e)
{
    // notice the explicit cast required
    int x = (int) Months.Feb;
    int y = (int) Months.Oct;
   
    Response.Write(“
Feb is month #” + x);
    Response.Write(“
Oct is month #” + y);
   
    // sequence forced to start with 1 i.e Jan = 1 (in the declaration)
    x = (int) Months2.Feb;
    y = (int) Months2.Oct;
   
    Response.Write(“
Feb is now month #” + x);
    Response.Write(“
Oct is now month #” + y);
   

}

[attributes] [modifiers] enum identifier [:base-type] {enumerator-list};

How To Increase The Google Crawl Rate For Your Website

It is every important to understand one simple concept and it is that, you can never force or cheat Googlebot into crawling your website. But you can always employ certain steps, that would ensure that Googlebot gets attracted to your content and crawls it. Here are a few ways to do just exactly that:

  • You should always update your content as soon as possible, because this effort really helps. You should update or add new content to your website at least 3 times a week (minimum) and then should immediately ‘ping’ (notify) Google.
  • Page load time is another critical factor to be taken care of. If the crawler spends too much time crawling your huge images or PDF files, there will be no time left for it to visit your other pages.
  • Double check your internal link structure. That means keep an open eye for any duplicate content that might arise via different URLs.
  • It is imperative that your server should always return correct header response.
  • Another great way to invite Googlebot is to assign unique title and meta-tags for each of your pages.
    For full list, visit SEJ.

Following these steps, would make your content look attractive to Googlebot and will compel it to crawl your website.

This text is taken from:- 

http://www.websitenotes.com/2008/0625.html