Immediate Window Equivalent in Eclipse

Well, I use the Immediate Window in Visual Studio a lot; so at first I had some problems getting used to Eclipse. However, It appears that Eclipse also has this feature =) and unlike VS it allows you to write a long piece of code and execute it.(As far as I know, in VS you enter 1 line of code and it executes it, so there is no group code executing)

While in VS it was easier to use(you have to select the code, right click it and select execute,display or inspect in Eclipse), it still is a great asset.
This functionality is hidden under the Display tab, which is not visible at first. So, you have to enable it from Window/Show View/Other.. and select the Display tab.

Below is a screenshot of it:

displaytab1

Advertisements

Create/delete/start/stop a service from command-line

For some reason, I just needed to do something like this, so here is a quick how-to:

There is a tool named sc.exe in the Win 2K Resource Kit, however I believe it also exists in Windows XP, as I did not have to do anything, and was able to access it from command-line.

Using this tool, you can see the list of the services that are currently running, add, delete, create or stop services.

The syntax for creating a service is like this:

Read the rest of this entry »

Start MS Outlook in Safe mode

Just a quick tip to let you know that you can start Outlook in safe mode by doing either of the following:

  • Hold Ctrl key as you click the Outlook shortcut
  • Add a command-line argument to the shortcut – /safe (i.e. run it with this command-line argument)

The first option also works on other Microsoft Office applications, dunno about the second one though.

Windows 7 Public Beta Released

Well, as you probably know the Windows 7 Public Beta is released yesterday. I downloaded both 32-bit and 64-bit images and will try them when I get the chance.

You can get it here by the way:

http://www.microsoft.com/windows/windows-7/beta-download.aspx

Read the rest of this entry »

Happy new year everyone!!