Friday, January 27, 2012

Installing VirtualBox Guest Additions

Download VirtualBox guest additions on the guest OS from : https://www.virtualbox.org/wiki/Downloads and run autorun.sh. Below is a screen shot of Ubuntu Linux inside Windows 7


Thursday, January 26, 2012

Power of Slickdeals.net

6H7UQ7UK7B76

Tuesday, January 17, 2012

Windows 7 inside VMPlayer on Ubuntu

Go to VMPlayer Downloads



Click on Download



Login or register


Click on 'Manually Download'

Once VMPlayer is downloaded and installed 'Create a new Virtual Machine'

Insert Windows 7 DVD and provide the path to VMPlayer

VMPlayer will recognize Windows 7 and choose 'Easy Install'








When Windows 7 is installed make sure Internet is working 



Go to Control Panel > System and Security > System and scroll to the bottom 

Activate Windows

Enter license key and activate windows







Google Maps image stitching gone bad!


Compare the ground level pillars of 100 & 200. Looks like the 200 is falling and barely standing with the support of 100. Also, 100 is missing the part of its structure to accommodate the fountain beneath.



Monday, January 16, 2012

Installing codecs on Ubuntu

https://help.ubuntu.com/community/Medibuntu

ejvyas@ejvyas:~$ sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
[sudo] password for ejvyas:
--2011-02-27 19:28:17--  http://www.medibuntu.org/sources.list.d/gutsy.list
Resolving www.medibuntu.org... 88.191.127.22
Connecting to www.medibuntu.org|88.191.127.22|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-02-27 19:28:17 ERROR 404: Not Found.

ejvyas@ejvyas:~$ sudo aptitude install totem-gstreamer ubuntu-restricted-extras
sudo: aptitude: command not found
ejvyas@ejvyas:~$ sudo apt install totem-gstreamer ubuntu-restricted-extras
apt: invalid flag: install
Usage: apt <apt and javac options> <source files>
where apt options include:
  -classpath <path>          Specify where to find user class files and annotation processor factories
  -cp <path>                 Specify where to find user class files and annotation processor factories
  -d <path>                  Specify where to place processor and javac generated class files
  -s <path>                  Specify where to place processor generated source files
  -source <release>          Provide source compatibility with specified release
  -version                   Version information
  -help                      Print a synopsis of standard options; use javac -help for more options
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system
  -A[key[=value]]            Options to pass to annotation processors
  -nocompile                 Do not compile source files to class files
  -print                     Print out textual representation of specified types
  -factorypath <path>        Specify where to find annotation processor factories
  -factory <class>           Name of AnnotationProcessorFactory to use; bypasses default discovery process
See javac -help for information on javac options.

ejvyas@ejvyas:~$ sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
--2011-02-27 19:30:33--  http://www.medibuntu.org/sources.list.d/maverick.list
Resolving www.medibuntu.org... 88.191.127.22
Connecting to www.medibuntu.org|88.191.127.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 286 [text/plain]
Saving to: `/etc/apt/sources.list.d/medibuntu.list'

100%[======================================>] 286         --.-K/s   in 0s    

2011-02-27 19:30:34 (39.0 MB/s) - `/etc/apt/sources.list.d/medibuntu.list' saved [286/286]

Get:1 http://extras.ubuntu.com maverick Release.gpg [72B]
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://security.ubuntu.com maverick-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US
Hit http://extras.ubuntu.com maverick Release
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/ maverick/main Translation-en_US
Get:2 http://dl.google.com stable Release.gpg [197B]
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US
Hit http://security.ubuntu.com maverick-security Release
Get:3 http://packages.medibuntu.org maverick Release.gpg [197B]
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu/ maverick/main Translation-en_US
Hit http://ppa.launchpad.net maverick Release
Hit http://archive.canonical.com maverick Release.gpg
Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en
Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://extras.ubuntu.com maverick/main Sources
Hit http://ppa.launchpad.net maverick Release
Hit http://security.ubuntu.com maverick-security/main Sources
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ lucid/partner Translation-en
Ign http://archive.canonical.com/ lucid/partner Translation-en_US
Hit http://archive.canonical.com maverick Release
Ign http://packages.medibuntu.org/ maverick/free Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main amd64 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick-updates Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Hit http://extras.ubuntu.com maverick/main amd64 Packages
Hit http://security.ubuntu.com maverick-security/restricted Sources
Hit http://security.ubuntu.com maverick-security/universe Sources
Hit http://security.ubuntu.com maverick-security/multiverse Sources
Hit http://security.ubuntu.com maverick-security/main amd64 Packages
Hit http://security.ubuntu.com maverick-security/restricted amd64 Packages
Hit http://security.ubuntu.com maverick-security/universe amd64 Packages
Hit http://security.ubuntu.com maverick-security/multiverse amd64 Packages
Hit http://archive.canonical.com lucid Release
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main amd64 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Ign http://packages.medibuntu.org/ maverick/free Translation-en_US
Hit http://archive.canonical.com maverick/partner Sources
Hit http://archive.canonical.com maverick/partner amd64 Packages
Get:4 http://us.archive.ubuntu.com maverick-proposed Release.gpg [198B]
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en_US
Hit http://archive.canonical.com lucid/partner Sources
Hit http://archive.canonical.com lucid/partner amd64 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick-backports Release.gpg
Ign http://packages.medibuntu.org/ maverick/non-free Translation-en
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/multiverse Translation-en
Ign http://packages.medibuntu.org/ maverick/non-free Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release
Hit http://us.archive.ubuntu.com maverick-updates Release
Get:5 http://dl.google.com stable Release.gpg [197B]
Get:6 http://us.archive.ubuntu.com maverick-proposed Release [31.4kB]
Get:7 http://packages.medibuntu.org maverick Release [6,857B]
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en
Ign http://packages.medibuntu.org maverick Release
Hit http://us.archive.ubuntu.com maverick-backports Release
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_US
Get:8 http://dl.google.com stable Release [1,347B]
Hit http://us.archive.ubuntu.com maverick/main Sources
Hit http://us.archive.ubuntu.com maverick/restricted Sources
Get:9 http://packages.medibuntu.org maverick/free amd64 Packages [3,257B]
Hit http://us.archive.ubuntu.com maverick/universe Sources
Hit http://us.archive.ubuntu.com maverick/multiverse Sources
Hit http://us.archive.ubuntu.com maverick/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick/universe amd64 Packages
Hit http://us.archive.ubuntu.com maverick/multiverse amd64 Packages
Get:10 http://dl.google.com stable Release [1,347B]
Hit http://us.archive.ubuntu.com maverick-updates/main Sources
Hit http://us.archive.ubuntu.com maverick-updates/restricted Sources
Hit http://us.archive.ubuntu.com maverick-updates/universe Sources
Hit http://us.archive.ubuntu.com maverick-updates/multiverse Sources
Get:11 http://packages.medibuntu.org maverick/non-free amd64 Packages [6,513B]
Hit http://us.archive.ubuntu.com maverick-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/multiverse amd64 Packages
Get:12 http://us.archive.ubuntu.com maverick-proposed/restricted amd64 Packages [14B]
Get:13 http://us.archive.ubuntu.com maverick-proposed/main amd64 Packages [39.4kB]
Get:14 http://dl.google.com stable/main amd64 Packages [1,095B]
Get:15 http://us.archive.ubuntu.com maverick-proposed/multiverse amd64 Packages [1,122B]
Get:16 http://us.archive.ubuntu.com maverick-proposed/universe amd64 Packages [17.8kB]
Hit http://us.archive.ubuntu.com maverick-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/universe amd64 Packages
Get:17 http://dl.google.com stable/main amd64 Packages [761B]
Fetched 112kB in 3s (30.7kB/s)
Reading package lists...
W: GPG error: http://packages.medibuntu.org maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EBC26B60C5A2783
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libjna-java junit4 libglew1.5 javahelp2 libfelix-framework-java
  libservlet2.5-java libfelix-main-java libswing-layout-java visualvm
  libhamcrest-java libequinox-osgi-java libnb-platform12-java
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  medibuntu-keyring
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 3,448B of archives.
After this operation, 49.2kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  medibuntu-keyring
Authentication warning overridden.
Get:1 http://packages.medibuntu.org/ maverick/free medibuntu-keyring all 2008.04.20 [3,448B]
Fetched 3,448B in 0s (12.0kB/s)
Selecting previously deselected package medibuntu-keyring.
(Reading database ... 263863 files and directories currently installed.)
Unpacking medibuntu-keyring (from .../medibuntu-keyring_2008.04.20_all.deb) ...
Setting up medibuntu-keyring (2008.04.20) ...
OK
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 0 KiB

Get:1 http://dl.google.com stable Release.gpg [197B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_US
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/ maverick/main Translation-en_US
Hit http://security.ubuntu.com maverick-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US
Hit http://extras.ubuntu.com maverick Release.gpg
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://archive.canonical.com maverick Release.gpg
Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en
Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en_US
Get:2 http://dl.google.com stable Release.gpg [197B]
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/ubuntu-on-rails/ppa/ubuntu/ maverick/main Translation-en_US
Hit http://ppa.launchpad.net maverick Release
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en
Hit http://us.archive.ubuntu.com maverick Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Ign http://dl.google.com/linux/talkplugin/deb/ stable/main Translation-en_US
Get:3 http://dl.google.com stable Release [1,347B]
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US
Hit http://security.ubuntu.com maverick-security Release
Hit http://extras.ubuntu.com maverick Release
Hit http://ppa.launchpad.net maverick Release
Hit http://archive.canonical.com lucid Release.gpg
Ign http://archive.canonical.com/ lucid/partner Translation-en
Ign http://archive.canonical.com/ lucid/partner Translation-en_US
Hit http://archive.canonical.com maverick Release
Get:4 http://dl.google.com stable Release [1,347B]
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick-updates Release.gpg
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main amd64 Packages
Get:5 http://dl.google.com stable/main amd64 Packages [1,095B]
Get:6 http://packages.medibuntu.org maverick Release.gpg [197B]
Hit http://extras.ubuntu.com maverick/main Sources
Hit http://archive.canonical.com lucid Release
Hit http://security.ubuntu.com maverick-security/main Sources
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main amd64 Packages
Get:7 http://dl.google.com stable/main amd64 Packages [761B]
Hit http://extras.ubuntu.com maverick/main amd64 Packages
Hit http://archive.canonical.com maverick/partner Sources
Hit http://archive.canonical.com maverick/partner amd64 Packages
Hit http://security.ubuntu.com maverick-security/restricted Sources
Hit http://security.ubuntu.com maverick-security/universe Sources
Hit http://security.ubuntu.com maverick-security/multiverse Sources
Hit http://security.ubuntu.com maverick-security/main amd64 Packages
Hit http://security.ubuntu.com maverick-security/restricted amd64 Packages
Hit http://security.ubuntu.com maverick-security/universe amd64 Packages
Hit http://security.ubuntu.com maverick-security/multiverse amd64 Packages
Ign http://packages.medibuntu.org/ maverick/free Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick-proposed Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en
Hit http://archive.canonical.com lucid/partner Sources
Hit http://archive.canonical.com lucid/partner amd64 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en
Ign http://packages.medibuntu.org/ maverick/free Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick-backports Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/multiverse Translation-en_US
Ign http://packages.medibuntu.org/ maverick/non-free Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-backports/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release
Hit http://us.archive.ubuntu.com maverick-updates Release
Hit http://us.archive.ubuntu.com maverick-proposed Release
Ign http://packages.medibuntu.org/ maverick/non-free Translation-en_US
Hit http://us.archive.ubuntu.com maverick-backports Release
Hit http://us.archive.ubuntu.com maverick/main Sources
Hit http://us.archive.ubuntu.com maverick/restricted Sources
Hit http://us.archive.ubuntu.com maverick/universe Sources
Hit http://us.archive.ubuntu.com maverick/multiverse Sources
Get:8 http://packages.medibuntu.org maverick Release [6,857B]
Hit http://us.archive.ubuntu.com maverick/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick/universe amd64 Packages
Hit http://us.archive.ubuntu.com maverick/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/main Sources
Hit http://us.archive.ubuntu.com maverick-updates/restricted Sources
Hit http://us.archive.ubuntu.com maverick-updates/universe Sources
Hit http://packages.medibuntu.org maverick/free amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/multiverse Sources
Hit http://us.archive.ubuntu.com maverick-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com maverick-updates/multiverse amd64 Packages
Hit http://packages.medibuntu.org maverick/non-free amd64 Packages
Hit http://us.archive.ubuntu.com maverick-proposed/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick-proposed/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick-proposed/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com maverick-proposed/universe amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com maverick-backports/universe amd64 Packages
Fetched 5,142B in 2s (2,409B/s)
Reading package lists...
ejvyas@ejvyas:~$ sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list
ejvyas@ejvyas:~$ sudo apt-get --yes install app-install-data-medibuntu apport-hooks-medibuntu
Reading package lists... Done
Building dependency tree    
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjna-java junit4 libglew1.5 javahelp2 libfelix-framework-java
  libservlet2.5-java libfelix-main-java libswing-layout-java visualvm
  libhamcrest-java libequinox-osgi-java libnb-platform12-java
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  app-install-data-medibuntu apport-hooks-medibuntu
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.5kB of archives.
After this operation, 164kB of additional disk space will be used.
Get:1 http://packages.medibuntu.org/ maverick/free app-install-data-medibuntu all 10.10.0 [8,944B]
Get:2 http://packages.medibuntu.org/ maverick/free apport-hooks-medibuntu all 1medibuntu1 [2,592B]
Fetched 11.5kB in 0s (12.9kB/s)              
Selecting previously deselected package app-install-data-medibuntu.
(Reading database ... 263867 files and directories currently installed.)
Unpacking app-install-data-medibuntu (from .../app-install-data-medibuntu_10.10.0_all.deb) ...
Selecting previously deselected package apport-hooks-medibuntu.
Unpacking apport-hooks-medibuntu (from .../apport-hooks-medibuntu_1medibuntu1_all.deb) ...
Processing triggers for software-center ...
Processing triggers for python-central ...
Setting up app-install-data-medibuntu (10.10.0) ...
Setting up apport-hooks-medibuntu (1medibuntu1) ...
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 0 KiB

ejvyas@ejvyas:~$ sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list
ejvyas@ejvyas:~$ sudo apt-get install libdvdcss2
Reading package lists... Done
Building dependency tree    
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjna-java junit4 libglew1.5 javahelp2 libfelix-framework-java
  libservlet2.5-java libfelix-main-java libswing-layout-java visualvm
  libhamcrest-java libequinox-osgi-java libnb-platform12-java
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  libdvdcss2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.1kB of archives.
After this operation, 111kB of additional disk space will be used.
Get:1 http://packages.medibuntu.org/ maverick/free libdvdcss2 amd64 1.2.10-0.3medibuntu1 [38.1kB]
Fetched 38.1kB in 0s (66.6kB/s)
Selecting previously deselected package libdvdcss2.
(Reading database ... 263881 files and directories currently installed.)
Unpacking libdvdcss2 (from .../libdvdcss2_1.2.10-0.3medibuntu1_amd64.deb) ...
Setting up libdvdcss2 (1.2.10-0.3medibuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB

Total disk space freed by localepurge: 0 KiB

ejvyas@ejvyas:~$ sudo apt-get install w32codecs
Reading package lists... Done
Building dependency tree    
Reading state information... Done
E: Unable to locate package w32codecs
ejvyas@ejvyas:~$

Adobe security pop up


function onload(){


window.open('','_self','');

win2= window.open("http://server/AppName/Input.do?number=<%= num%>&submit_button=Submit&autoPrint=true","win2","status=1"); 


return true;

}



function CloseWindow()

{  

win2.close();

window.close();


return true;


}

Using Groovy scripts to select Dispatch actions in soapUI



You can use the power of Groovy for selecting MockResponses in soapUI
If your request is of the format :-
<ns1:foo>
  <ns3:data>
    <ns3:CustomerNumber>1234</ns3:CustomerNumber>
  </ns3:data>
</ns1:foo>








You can use the following script :-


def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def req = new XmlSlurper().parseText(mockRequest.requestContent)
log.info "Customer #${req.foo.data.CustomerNumber}"
context.result = req.foo.data.CustomerNumber


 

Here we are using mockRequest.requestContent to get the request soap envelope. We then use the XmlSlurper to parse this. XmlSlurper does not care about namespaces and it can parse XML into a document tree that may be traversed similar to XPath expressions. Doc : http://groovy.codehaus.org/api/groovy/util/XmlSlurper.html

context.result ensures that the MockResponse whose name =CustomerNumber (in this case 1234) is selected as a response.


log.info is for logging and can be tested in the “script log” tab below when you send a request


<SCRIPT LOG PIC>


Other variables that can be used are : mockOperation to select responses based on operation, requestContext and context.


You can have fancy scripts which contain if statements, connect to database, files, inlist etc whatever Groovy supports!


You may also pass back calculations by parsing parameters from request and converting them:-


Sample Response


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ=http://example.org/math/>
   <soapenv:Header/>
   <soapenv:Body>
      <typ:AddResponse>
         <result>${result}</result>
      </typ:AddResponse>
   </soapenv:Body>
</soapenv:Envelope>



Script


def request = new XmlSlurper().parseText(mockRequest.requestContent)
def a = request.Body.Add.x.toDouble()
def b = request.Body.Add.y.toDouble()
context.result = a + b


You can use XmlHolder as well if you care for namespaces:-


Request


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
   <soapenv:Body>
      <tem:RunScript>
         <!--Optional:-->
         <tem:optionObject>
            <tem:EntityID>5</tem:EntityID>
            <tem:Facility>98</tem:Facility>
              <Forms>
               <FormObject....


Script


def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( mockRequest.requestContent ) 
holder.declareNamespace( 'tem', 'http://tempuri.org/')
context.Facility = holder.getNodeValue( "//tem:Facility")
context.EntityID = holder.getNodeValue( "//tem:EntityID")

But in this case you will have to explicitly declare namespaces.

Forza Motorsport 4 Review






Forza Motorsport 4 on XBox Kinect is boring. It has a wide range of vehicle selection, track selection, laps etc but its not fun playing with hands by just adjusting the direction of the car. There is no control for speed, acceleration, gears. This is one of those games that needs a controller to be more fun. I found that if you pick a fairly fast car like a McLaren or Ferrari you can easily beat the opponents to first place. There are some cars like Ford that are very sensitive to direction as you can see in one of the videos below. 

The tracks and circuits are awesome but there is hardly any difference other than the turns and altitude variations. The game has 4 modes: Quick Race, Hot Lap, Split Screen and Autovista. 
The Autovista feature allows user to see fine details of the car. Quick Race is for one player racing. Hot Lap is practice session without opponents and Split Screen is two player. I tested split screen but Kinect had a hard time differentiating between the two players. 

Overall it was a no-brainer and easy game to play on Kinect. 





Saturday, January 14, 2012

Tuesday, January 10, 2012

Install VMPlayer on Ubuntu

VMPlayer is not available in Ubuntu Software Center. Hence to install VMPlayer on Ubuntu you need to manually download and install it from vmware






  1. To download VMware Player, go to http://www.vmware.com/go/downloadplayer/ and click on Download
  2. On the next page, log in with your existing VMware account or create a new one
  3. On the download page, select the right VMware Player for your architecture (32-bit or 64-bit) and click on the Download button





  4. Then open a terminal and run the following command to install some packages needed by the VMware Player installer:  sudo apt-get install build-essential linux-headers-`uname -r`
  5. Go to Download directory in Terminal /home/<user>/Downloads
  6. Check Attributes of VMPlayer:   ll VM*
  7. If not executable make the file executable using: chmod 777 VM*
  8. Execute the setup using: sudo ./VM*
  9. This will launch VMPlayer setup. Follow the instructions to install VMPlayer
  10. Once the player is installed you might have to restart host PC and enable VT (vitualization) in BIOS and disable 'trusted execution'

Blogger draft error

I received the following error while editing HTML code in one of my draft blog posts. I cannot use that post now but I have recovered it by other means. 


Monday, January 09, 2012

HP Laptop Partitions

My HP Laptop came with 3 partitions - SYSTEM, RECOVERY, WINDOWS. I partitioned Windows and installed Ubuntu. Merged RECOVERY into Ubuntu. Now I am still left with the following partitions - SYSTEM, Windows, Ubuntu and others.



Does anyone have idea how I can move towards just 2 partitions -
1. Ubuntu
2. Data

Laptop should boot into Ubuntu. I dont care about recovery or factory reset. Laptop is out of warranty now. I dont need Windows.

Error

If you ever get the following error or something similar to this:-


ERROR: parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/tmp/d20100827-5439-1wrj2by" (parent directory mode 40777)


sudo chmod go+rwx /tmp/

and then runs the command again, everything works fine