Monday, August 8, 2011

du vs df

source link
1. Ref
2. More

Thursday, February 10, 2011

Website creating: do it yourseft

Website creating

Tags: website, creator, web

KDE 3.5.5 on openSUSE 10.2 for VMware Player

VMware released a VMware Player for free with which you can run pre-built virtual machines. Here you can download a virtual machine to experience a polished KDE 3.5.5 desktop on openSUSE 10.2.
An easy and non-risky way to explore the new features of KDE 3.5 and discover openSUSE 10.2 without the need to burn a CD-ROM and reboot your machine.


The image contains a standard and fully working KDE desktop installation of openSUSE 10.2 with KDE 3.5.5 including whole KOffice 1.6 excluding non-KDE applications.




Decompress the archive and open the .vmx file with VMware Player. The virtual machine will start to boot and as user "guest" with password "guest" you can log into the KDE desktop.

Advanced Usage

The password for the "root" administrator user is "toor". The VMware tools are installed.
As "root" you can start the "YaST" system configuration and add users and install more applications of KDE and openSUSE 10.2. Installation sources are preconfigured. And many more installation sources are available.

Wednesday, January 19, 2011

Updating the HOSTS file in Windows Vista requires special instructions

Due to the restrictions imposed by UAC (Users Access Control) users are prohibited from running any batch files, so the included installer "mvps.bat" does not work unless you turn off or modify UAC (not recommended).
However I have come up with a fairly simple solution ... using the power of SendTo.
You can Update the HOSTS file via "Elevated" Command Prompt
You can use one of the Related Utilities specifically designed for this purpose ...
You can right-click on the included "mvps.bat" and select "Run as Administrator" ... more info here

Updating the HOSTS file via the SendTo method 
The first step is to create a new shortcut in your SendTo folder. Open Windows Explorer to:
Note: where "" is your login name
Start | Run (type) shell:sendto (click Ok)
Next: Right-click in the right pane and select: New > shortcut [screenshot]
In the next dialog box click Browse and navigate to: Windows\System32\drivers\etc
Click Ok and in the next dialog box name the shortcut (example) Update Hosts
In the future when you wish to update the HOSTS file, download the "", extract the included files and right-click on the included updated HOSTS file and select: SendTo > Update Hosts
Note: UAC will prompt for permission for this action, click Ok and proceed ...
Next you will see the below prompt, click Continue and proceed.
Finally you will see a prompt to Copy and Replace the existing file, click Copy and Replace.
Note: this will overwrite (delete) the existing file, so if you have any custom entries in the file I would suggest copying these prior to updating the file. Then open the HOSTS file and paste your custom entries. Alternately you can use the below method that does create a backup of your HOSTS file.
Editors Note: I know this is not a perfect solution, but given the restrictions of the new Windows version it is a workable solution until something is found that offers a better method.
Updating the HOSTS file via "Elevated" Command Prompt
You can add a right-click Folder menu option "Open Command Window Here (Administrator)",
Download cmd-admin.reg then right-click and select: Merge (Ok the prompt) ... no need to reboot.
Next extract the ""
Right-click on the newly created "hosts" folder
Select the option:
Open Command Window Here (Administrator)

Next: (type) mvps.bat (press Enter)
You should see the updated message ...
Thanks to Ramesh Srinivasan, Microsoft MVP
for the suggestion
Modify Users Access Control (Administrators only)

Control Panel > Administrative Tools
Select: Local Security Policy (when prompted, click Continue)

In the left pane, expand Local Policies and click Security Options.
In the right pane, scroll down to User Account Control:
Double-click on: "Behavior Of The Elevation Prompt For Administrators In Admin Approval Mode"

In the drop-down box on the Local Security Settings tab
Select Elevate Without Prompting, Click Apply/OK.
Run as Administrator
Once you unzip (extract) the included files in the "" ... right-click on "mvps.bat" and select: Run as Administrator ...

Next: double-click on "mvps.bat" and let the file back-up your existing and then update your HOSTS file ...
Thanks to Thomas H. for providing help on this method ...

Note: do NOT run Windows Vista/7 with UAC turned off as this also turns off the "Protected Mode" in Internet Explorer.
 Related Utilities
 By modifying the UAC I was able to get HostsMan to work and update the HOSTS file in Vista.
 You can also use HostsXpert to update the HOSTS file in Vista ...
In the event you need to edit the HOSTS file > click here

Tuesday, January 11, 2011

PERL Functions

Definition and Usage

If EXPR is numeric, then it demands that the script requires the specified version of Perl in order to continue. If EXPR or $_ are not numeric, it assumes that the name is the name of a library file to be included. You cannot include the same file with this function twice. The included file must return a true value as the last statement.
This differs from use in that included files effectively become additional text for the current script. Functions, variables, and other objects are not imported into the current name space, so if the specified file includes a package definition, then objects will require fully qualified names.
The specified module is searched for in the directories defined in @INC, looking for a file with the specified name and an extension of .pm.

Return Value

  • Nothing


Try out following example:
#!/usr/bin/perl -w

# require to demand a particular perl version.
require 5.003;

# require to include amodule.
require Module;

Tags: perl, functions