Computers, Programming, Technology, Music, Literature

Archive for April 2013

Disable Auto Lock Computer in Windows

leave a comment »

 

I find myself doing this quite often (like a couple of times in a couple of months 😉 ) in Windows servers and workstations.

There are a few ways that I know.

Novice User:
If you are on a Windows workstation, you could uncheck the On resume, display logon screen under the Screen Saver Settings as in the screenshot below.

image 

Expert User:
Though that is not the way I like especially on our development servers. Here’s how to do it via the Group Policy Editor (take a few seconds to take effect)

Start –> Run –> gpedit.msc –> Local Computer Policy –> User Configuration –> Administrative Templates –> System –> Ctrl+Alt+Del Options –> Remove Lock Computer –> Enabled

image

Advertisements

Written by gmaran23

April 29, 2013 at 5:43 pm

VB 6.0 Watch window – how to view lengthy string values?

leave a comment »

 

Use the Immediate Window instead.

We are in the beginning or re-writing some VB 6.0 code to the .Net framework. Absolute zero business logic known to anybody but the application itself. All we have to do is to trace the VB code line by line, skim the business logic and validation, the program flow out of it, and then come up with a design for the new .Net equivalent.

We will be sitting with the Microsoft Visual Basic 6.0 IDE’s for some part of the day every day, trying to create a test environment with mock data so we could run the  VB 6 executable’s code to completion. While we are at it, we will be watching for local variables’ values. Watch window proved to be really helpful, coming from a .Net background, however, when there is a string that is larger than the size of the Watch window itself, and when you try to copy the value out of that variable from the watch window, you’d be seriously disappointed. No matter what you try, all your efforts to copy the entire string value from the watch window will be futile! [Fig 1]

Immediate Window struck me suddenly, that’s it! [Fig 2] type in print variableName and your lives would be spared 😉

 

image

[Fig 1]  – VB 6 Watch Window

image

[Fig 2] – VB 6 Immediate Window

 

 

In the new era, Visual Studio, we have so many options. The Locals Window, the Autos Window, the Watch Window (up to 4 numbers), the Immediate Window, the debugger tool tip [Fig 3].

image

[Fig 3] – Visual Studio 2010 Debugger tool tip

Written by gmaran23

April 26, 2013 at 2:41 pm

Add a custom Shutdown menu to Windows 8 Desktop context menu

leave a comment »

 

 [Image courtesy of techrepublic.com]

This Windows 8 only trick adds a custom Shut Down context menu to the windows Desktop context menu. Pretty handy options. The interesting thing about the trick is adding the registry values and tracking down the icons that are displayed in the context menu.

Check out the entire blog by Greg Shultz here – http://www.techrepublic.com/blog/window-on-windows/integrate-a-custom-shutdown-menu-into-the-windows-8-desktop-context-menu/7506?tag=nl.e064&s_cid=e064&ttag=e064

Don’t forget to read about the Icon Viewer at http://www.neuber.com/free/iconview/. Tiny little program that would remind you icons that you might have seen in Windows 95 or the previous or later versions of Windows.

Written by gmaran23

April 8, 2013 at 11:59 am

Posted in Windows

Tagged with ,