Friday, April 26, 2013

Kill Task in XP

taskkill /pid /F

Force to kill aspwp.exe and then delete all C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

Then rebuild .NET solution all will look a lot clearner.
When you work in distributed environment you probably use remote desktop session as you primary method of sql server machines administration. When critical windows updates are installed or when you install system or sql server service pack installation wizard promts you to restart the box in order to complete the installation. And it happens from time to time that this machine hangs on reboot process for some reason and you can no longer connect it via remote desktop. If it was you local computer you could enter into your server room and press the reset button but if it stand thousands miles away from you it becomes a real problem.How to restart or shutdown remote machine
If you can ping this machine from other computer and you have administrators rights on that machine you may use windows utility.

On a computer that has connection to the server which needs to be restarted or shutdown go to Start -> Run and type shutdown -i



This window will show up. Press Add and type either IP or DNS of remote server.

Select shutdown or restart and press OK. That 's it. For your convenience you may run from command line constanct ping (ping servername -t) when the server actually stopped to respond to pings and when it started again.

Alternatively you can go to command prompt (start -> run -> cmd) on your workstation and Type
shutdown -r -m \\x.x.x.x
Replace x.x.x.x with the IP address or computer name of the remote machine. -r option is for restart, don't use -r if want to just shut down the system.

Demystify SQL Debugging with with Visual Studio

Here is what I did to fix this issue "FINALLY"




http://www.asp.net/data-access/tutorials/debugging-stored-procedures-vb



#1 Connect using Windows Authentication as the same account on the local machine that must have sysadmin rights in the Instance of SQL Server.



#2 They use Server Explorer and connect with that same account and then once connect right click on the DB and check "Application Debuggin. I am posting this to my blog.



Great posts. By the way I feel the pain of remote individuals, my answer tell your management that if you want fast, rapid code to fork up the dough for SQL Developer Edition and do all you coding locally with a quality source control.



Robert.

Wednesday, April 24, 2013

Try Catch VB.NET and C#

Try + Enter blows out exception method for vb.net

Try tab tab tab C# for Exception method

Provided by Daniel Bivens

Opacity on Images for Web Development

CSS Style --
        input[type="image"].disabled {
         /* Required for IE 5, 6, 7 */
         /* ...or something to trigger hasLayout, like zoom: 1; */
         /*/width: 100%; */
  
         /* Theoretically for IE 8 & 9 (more valid) */ 
         /* ...but not required as filter works too */
         /* should come BEFORE filter */
         -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
 
         /* This works in IE 8 & 9 too */
         /* ... but also 5, 6, 7 */
         filteralpha(opacity=35);
 
         /* Older than Firefox 0.9 */
         -moz-opacity:0.35;
 
         /* Safari 1.x (pre WebKit!) */
         -khtml-opacity0.35;
    
         /* Modern!
         /* Firefox 0.9+, Safari 2?, Chrome any?
         /* Opera 9+, IE 9+ */
         opacity0.35;
 
            cursor:default;
        }
 
 
 function enableElement(element) {
        $(element).removeClass('disabled').prop('disabled'false);
    }
 
 
    function disableElement(element) {
        var obj = $(element);
        obj.prop('disabled'true);
        if (obj.prop('tagName') === 'INPUT' && obj.prop('type') === 'image') {
            obj.addClass('disabled');
        }
    }
 
 
Thanks Josh Horton...  Web Developer GURU....

Thursday, April 11, 2013

Code Academy - Good Stuff


HTTP Status Codes
A successful request to the server results in a response, which is the message the server sends back to you, the client.
The response from the server will contain a three-digit status code. These codes can start with a 1, 2, 3, 4, or 5, and each set of codes means something different. (You can read the full list here). They work like this:
1xx: You won't see these a lot. The server is saying, "Got it! I'm working on your request."
2xx: These mean "okay!" The server sends these when it's successfully responding to your request. (Remember when you got a "200" back from Codecademy?)
3xx: These mean "I can do what you want, but I have to do something else first." You might see this if a website has changed addresses and you're using the old one; the server might have to reroute the request before it can get you the resource you asked for.
4xx: These mean you probably made a mistake. The most famous is "404," meaning "file not found": you asked for a resource or web page that doesn't exist.
5xx: These mean the server goofed up and can't successfully respond to your request.

Wednesday, April 10, 2013

Keyboard shortcuts

Instructions

  1. Select one word by placing your cursor at one end of the word. Hold down the "Ctrl" key and the "Shift" key. Press the right arrow key to select the word to the right, or press the left arrow key to select the word to the left.
  2. Select one character at a time by holding down the "Shift" key and and using either arrow key (right or left). Select an entire line of text by holding down the "Shift" key and pressing "End", if you are at the beginning of the line, or "Home" if you are at the end of the line. 
  3. Select an entire paragraph by placing your cursor at either the beginning or the end of that paragraph. Hold down the "Shift" key and press the up arrow, if you are at the end of the paragraph, or the down arrow, if you are at the beginning. If you are in any other section of the paragraph, this shortcut will allow you to select the remainder of the paragraph from your cursor to the end or beginning.
  4. Select the text from wherever your cursor is placed to one screen up, or one screen down by holding down the "Shift" key and pressing the "Page Up" button (to move up) or the "Page Down" button (to move down). These buttons may say "Pg Up" and "Pg Dn" on your keyboard.

  5. Select all of the text in your document or on your screen by holding down the "Ctrl" key and pressing the letter "A".



Read more: How to Select Text Using Keyboard Shortcuts | eHow.com http://www.ehow.com/how_4493907_select-text-using-keyboard-shortcuts.html#ixzz2Q54uO1Dt

Wednesday, April 03, 2013

Walt's Words of Wisdom - "Entity Framework"

To know:

If you ware working with Entity Framework be sure to know the following...  Thank you Sir Walt.

1. If you are developing for 4.0 ensure all your projects in your solution are set to the same Framework
2. Install by right clicking the project and Manager NuGet Packages and install Entity Framework (Yes Nuget is smart enough to put the correct version, but to verify do the following. Do this for all projects in yoru solution (It will prevent headaches later).

Look at your App.config or Web.config and look for

.NET 4.0 =  EntityFramework, Version=4.4.0.0
.NET 4.5 =  EntityFramework, Version=5.0.0.0