Wednesday, May 30, 2018

VirtualBox on Windows 10 (surprisingly painful)

Go to start of metadata

After a week worth of effort to get this working but HyperV though disabled, was causing issues where the CentOs VM in VirtualBox reported following during startup. VT-X also was enabled in BIOS.
00:00:08.071077 HM: HMR3Init: Falling back to raw-mode: VT-x is not available
00:00:08.136616 CPUM: SetGuestCpuIdFeature: Enabled Hypervisor Present bit
00:00:08.982281   HTT - Hyper-Threading Technology                        = 0 (1)
00:00:08.982309   HVP - Hypervisor Present (we're a guest)                = 1 (1)
00:00:09.032906 VMSetError: Raw-mode is unavailable courtesy of Hyper-V.
00:00:09.048381 Power up failed (vrc=VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT, rc=E_FAIL (0X80004005))

Following PowerShell command reported True, which shouldn't be the case as HyperV is disabled using "Turn Windows features on or off", "bcdedit /set hypervisorlaunchtype off" and "PS C:\> Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All"
PS C:\> (gcim Win32_ComputerSystem).HypervisorPresent

Then I came across this post and disabled Device Guard using DG_Readiness_Tool_v3.4. Hooray !! CentOS starts with no issues.

Wednesday, May 09, 2012

Struts2 - DISABLED vs READONLY

Lucky learning for today before I spent few hours nail biting on this !!

A struts2 form with input textfields with disabled=true, do not get posted on submit; whereas readonly=true, do get posted; so use them wisely.

Monday, June 13, 2011

The Tuxnetworks Linux Bible: DEPRECIATED: Setting the hostname in gnome termina...

The Tuxnetworks Linux Bible: DEPRECIATED: Setting the hostname in gnome termina...: "If you SSH to another host you might want to display the hostname of the remote host in the gnome terminal title bar Put this code in your ..."

Do this for all hosts you ssh to, as well.

Monday, February 14, 2011

Eclipse deleting svn all-wcprops and entries files

I even switched from desktop to laptop to get away from this issue .. but obviously it "followed" me.

This post regarding MyEclipse lead me to the fix which is to remove following from your .project.
org.eclipse.wst.jsdt.core.javascriptValidator
org.eclipse.wst.jsdt.core.jsNature

Wednesday, August 04, 2010

Get the "Synchronize with Google" option to show up in Mac OS X Address Book.

Thanks to this post in macosxhints forum, I could keep my Nexus One is sync with Google and MBP. Quoted below from the forum post.

a) If you don't have this file, copy the following into a text file and save it with the name com.apple.ipod.plist. Put the file in your Preferences directory inside your home directory.

{ Devices = { red-herring = { 'Family ID' = 10001; }; }; }

b) If you have the file and don't have an iPhone or iPod touch, you need to add some information to this file. I used Apple's plist editor to add the information, and that worked for me. This terminal command should work as well.

defaults write com.apple.iPod Devices -dict-add red-herring '{ "Family ID" = 10001; }'

Monday, August 02, 2010

An application based on Spring / JPA / Hibernate stack started causing following error when the Oracle JDBC library was upgraded from ojdbc14.jar to ojdbc6.jar.

java.lang.IllegalAccessException: Class org.hibernate.dialect.Oracle8iDialect can not access a member of class oracle.jdbc.driver.OracleTypes with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:349)
at java.lang.Class.newInstance(Class.java:308)
at org.hibernate.dialect.Oracle8iDialect.registerResultSetOutParameter(Oracle8iDialect.java:367)

Caused by oracle.jdbc.driver.OracleTypes class being deprecated and replaced by oracle.jdbc.OracleTypes and Oracle8iDialect (line 397) class referring to a private member of OracleTypes class.

  1. Fix is to use a hibernate distro with the fix that is also compatible to Spring 3 stack.
  2. Thanks to Google and grepcode; found the fix been applied for Hibernate 3.3.2 (line 432)
  3. Also realized in this research that there exists NO spring-framework-3.0.3.RELEASE-dependencies.zip at Spring download site :-;( which makes it all the more difficult to find a spring bundle with the fix.

Thursday, December 10, 2009

Shashi Tharoor on India's 'soft power'

Shashi Tharoor on India's 'soft power' - wow what a take from Shashi Tharoor about India's soft power. 3 cheers to Shashi Tharoor.

I am well fed with these !!