My contemplations and diurnal novelties are publicized here

Archive for April, 2012

How to enable or restore windows 7 start menu in window 8

I fell uncomfortable, how start menu works in Windows 8, thinking to install windows 7 back but then i came around this tweak.

  1. Launch the registry editor (win+r > regedit >enter)
  2. Drill down to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
  3. Double-click on RPEnabled
  4. Change the value from 1 to  (zero)
  5. Tap enter or click OK

The change will take place immediately — just tap the Windows key on your keyboard twice to try it out (the first press will slide the Metro start screen back into view).

Unable to find RPEnabled in my Window8 now  will try adding this to registry

  1.  [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
  2. “RPEnabled”=dword:00000000

Thanks to these article:-


Disabling prevent saving changes that require the table re-creation in sql server 2008

SQL server Management Studio doesn’t allow the change to be done in table that need the table to be re-created.

Simple follow the following step to disable this feature:-

Go to Tools–>Options->Designers (un check the highlighted option)

How to get URL querystring variables from a string URL with C#

You can get query string using following code:-

Uri tempUri = new Uri("");

string sQuery = tempUri.Query;

Now you can use

string sName = HttpUtility.ParseQueryString(sQuery).Get(“Name”);

Cross-Browser CSS Gradient

 The CSS gradient feature was introduced by Webkit for about two years but was rarely used due to incompatibility with most browers. But now with the Firefox 3.6+, which supports gradient, we can style create gradient without having to create an image. This post will show you how to code for the CSS gradient to be supported by the major browsers: IE, Firefox 3.6+, Safari, and Chrome. Also, check out my updated dropdown menu (demo) using CSS gradient.

For Webkit Browsers

The following line of code is for webkit browsers such as Safari, Chrome, etc. It will display a linear gradient from top (#ccc) to bottom (#000).

background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000));

webkit gradient

For Firefox 3.6+

background: -moz-linear-gradient(top, #ccc, #000);

firefox gradient

For Internet Explorer

The following filter wlil only be read by IE:

filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000');

ie gradient filter

Cross-Browser CSS Gradient (demo)

Put the three lines of code from above together and the result is a cross-browser gradient box. Note: I added a background rule at the very top in case the user is using a browser that doesn’t support the feature.

background: #999; /* for non-css3 browsers */ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */ background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */ background: -moz-linear-gradient(top, #ccc, #000); /* for firefox 3.6+ */ 

gradient box

CSS Gradient Dropdown Menu

Below is a pure CSS gradient dropdown menu using CSS3 text-shadow, radius-border, and box-shadow (no Javascript or image)

css gradient dropdown

Internet Explorer Limitations

Internet Explorer gradient filter doesn’t support color-stop, gradient angle, and radial gradient. That means you can only specify either horizontal or vertical linear gradient with 2 colors: StartColorStr and EndColorStr.

Final Remarks

Please note not all browsers support CSS gradient. To be safe, you shouldn’t rely on CSS gradient when coding the layout. It should only be used for enhancing the layout.

COPIED from ( )

%d bloggers like this: