Change Power Scheme From Windows Command Prompt

| Posted by watashii | Filed under Software

If you have a laptop, Windows provides different power schemes that you can switch (or create your own) for power management.  You can switch your power scheme the same way using the command prompt using the powercfg utility.

To list all the available power schemes, open the Windows command prompt and run powercfg /list

C:\Users\Watashii>powercfg /list

Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e  (Balanced)
Power Scheme GUID: 49ef8fc0-bb7f-488e-b6a0-f1fc77ec649b  (Dell Recommended) *
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (High performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a  (Power saver)

To change your power scheme (to Power Saver for example), run powercfg /setactive

powercfg /setactive a1841308-3541-4fab-bc81-f71556f20b4a

Tip: You can also put the above command inside a batch (.bat) file and run this conveniently like a shortcut.

Tags: , ,

Install & Uninstall Probes/Gateways on Netcool Omnibus

| Posted by watashii | Filed under Software, Unix

Installing probes & gateway for Netcool/Omnibus 7.2 and below (ie prior to 7.3) is done by using the nco_patch patch tool over an existing Netcool Omnibus installation, with the un-tarred path of the patch (Unix):

$ $NCHOME/omnibus/install/nco_patch -install /tmp/probe-nco-p-mttrapd-9_0/patch/probe-nco-p-mttrapd-9_0/

To list all the patch (ids) that has been already applied to the installation, run the following command:

$ $NCHOME/omnibus/install/nco_patch -print=id
gateway-nco-g-oracle-4_0
gateway-nco-g-remedy-8_0
probe-nco-p-mttrapd-9_0

To remove/uninstall the probe, we use the same nco_patch tool with the patch id :

$ $NCHOME/omnibus/install/nco_patch -remove probe-nco-p-mttrapd-9_0

Tags: , , ,

Windows Desktop Shortcut to Activate Screensaver

| Posted by watashii | Filed under Software

For all the power saving green freaks out there, heres how to create a handy Windows desktop shortcut to activate the screensaver immediately.

Read the rest of this entry »

Tags: , , ,

Subversion – Allow Author Name Logging

| Posted by watashii | Filed under Java, Programming, Software

To log the author name when trying to check-in files using Subversive/Eclipse over SVN, switch to SVN Repository Exploring perspective > right-click on your repository > edit the Location Properties > Advanced tab > and enable Override author name:


Read the rest of this entry »

Tags: , , , ,

IOGraph – Capture Mouse Movements Into Art

| Posted by watashii | Filed under Software

IOGraph is a simple Java application that captures your mouse cursor movements on the screen and plots them on to a blank canvas picture.  All you need to do is run the application, minimize it, then perform your usual routines on your computer.  After a while you will see a cool looking graphic art that you can export.

The capture displayed here was taken for 1 hour at work on my dual monitor computer.  The large black dots represent how long the mouse have paused;  the longer, the larger.  Notice my right monitor was hardly ever used!

Tags: , , ,

Firefox Reserved Ports Restricted For Security Reasons

| Posted by watashii | Filed under Software

When browsing to web sites based on non standard HTTP ports, such as port 636 for LDAP SSL, Firefox bans access with the above message.  By default, a number of ports are blocked from access due to a number of potential security vulnerabilities.  These banned ports are usually reserved for specific services and are not ideal for web browsing.

Read the rest of this entry »

Tags: , ,

Unable to Enable/Startup RAS

| Posted by watashii | Filed under BusinessObjects

On a BusinessObjects XIR2 (SP3) Solaris installation, the following effects may be occurring:

  1. The RAS server refuses to startup using ./ccm.sh -start ras or ./startservers commands.
  2. Performing a ./ccm.sh -enable ras will complain that the RAS object does not exist, even though it is listed within ccm.config file.
  3. When the RAS server instance is deleted from the CMC, restarting all the servers and performing ./ccm.sh -enable all or ./ccm.sh -display, the RAS entry does not show up at all.
  4. When the RAS server instance is deleted and added using the ./serverconfig.sh tool, the RAS entry does not show up at all in CMC, ./ccm.sh -enable all or ./ccm.sh -display.
  5. When the ./ccm.sh -start ras does performs successfully, related serverpid’s are created, RAS processes are running, but RAS entry does not show up in ./ccm.sh -display or CMC, and the RAS server’s tcp ports are not opened at all.

Read the rest of this entry »

Tags: , , ,

Enable & Setup Sharing Folders in VMWare Player 2.0+

| Posted by watashii | Filed under Software

vmware_shared

To enable sharing folders on VMWare Player guest OS (without Workstation etc), the following entries can be added in the .VMX file:

isolation.tools.hgfs.disable = "FALSE"

sharedFolder.maxNum = "1"

sharedFolder0.present = "TRUE"
sharedFolder0.enabled = "TRUE"
sharedFolder0.readAccess = "TRUE"
sharedFolder0.writeAccess = "TRUE"
sharedFolder0.hostPath = "C:\"
sharedFolder0.guestName = "MyHostCDrive"
sharedFolder0.expiration = "never"

Load your Windows guest OS and go to the VMWare Player menu > Sharing Folders… > Then check ‘Always Enable’

Your shared folder on Windows host OS (in this example C:\) can now be accessed on the guest OS via \\.host\Shared Folders\

To add more shared folders, increase the value of maxNum in .VMX file, and copy the same config settings for sharedFolder0.XXX into sharedFolder1.XXX…sharedFolder2.XXX and so forth.

Tags: , ,

Live Messenger 8.1/8.5 Bypass Mandatory Upgrade

| Posted by watashii | Filed under Software, Web

msnbypass00

Today when logging into my Windows Live Messenger 8.1,  I received a message forcing me to upgrade to the latest Windows Live Messenger (2009).  This was discussed on their blog less than 1 month ago (thanks for the short heads-up).  However, like many others, upgrading to the 2009 version was not ideal. That is:  it just doesn’t work at all.

For me, I ran into problems logging in (via my workplace), as I kept getting the error: “Signing in to Windows Live Messenger failed because the authentication service is not compatible with this version of the program.
Error code: 8100030f”.
And NOTHING in the online help provided any clues with this message!

So the only resolution for me was to find a way to continue using the old version.  Here I found a workaround to skip the mandatory upgrade (I’m on XP, however Vista should work also).

Read the rest of this entry »

Tags: , ,

Vacuum Database to Speedup Firefox

| Posted by watashii | Filed under Software

vacuum_firefox

Firefox performance can be improved by defragmenting the internal SQLite database.  This can be done by running a vacuum command within Firefox, as explained in Mozilla Links.   The process are as follows:

1) Open Tools > Error Console (or Press Ctrl + Shift + J)

2) In the Code text box, paste the following (in one single line)

Components.classes["@mozilla.org/browser/nav-history-service;1"].
getService(Components.interfaces.nsPIPlacesDatabase).
DBConnection.executeSimpleSQL("VACUUM"); 

Note:  Make sure the double-quotes are normal quotes and not slanted quotes

3) Press Evaluate.  Firefox will freeze for a few seconds while the database is being defragmented.

A handier add-on extension is also available to perform this action.

Tags: , ,