Tuesday, June 17, 2014

Fixing "This desktop does not support the requested display protocol." error in VMWare View Client in OSX Mavericks

Earlier I couldn't connect to a Microsoft XP remote desktop via VMware View Client in OSX Mavericks even though I could connect fine from a Windows 7 machine (using VMware View Client).

I managed to fix it by installing "Microsoft Remote Desktop Connection for Mac" from here:
http://www.microsoft.com/en-au/download/details.aspx?id=18140

Note: If you google the error, you will get a wide variety of causes/triggers for the error. In my case not having this MS remote connector was the cause.


Friday, April 11, 2014

Oracle APEX, set value of shuttle via javascript


In Oracle APEX Javascript API, you would typically set the value of page item by 

$x('P1_ITEM').value = 5;

This would work with textfields, select list. But for more complex input items like shuttle, it would not work.

If one examines an APEX shuttle item with Firebug or Chrome Dev tools, one can see its composed of 2 items fields, suffixed with "_LEFT" and "RIGHT".


Solution is to use apex.item("<<name of item>>")>setValue(<<value>>); which takes into consideration the item type.

apex.item( "P1_ITEM" ).setValue( "10" );

You can read more about apex.item in the Oracle documentation for APEX's JavaScript API:
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/javascript_api.htm#AEAPI29494

Saturday, April 5, 2014

Upgrade Java to 1.7 in OEL

1) Look-up up packages 

yum search java | grep 'java-'
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
cairo-java-devel.i386 : Compressed Java source files for cairo-java.
cairo-java-devel.x86_64 : Compressed Java source files for cairo-java.
glib-java-devel.i386 : Compressed Java source files for glib-java.
glib-java-devel.x86_64 : Compressed Java source files for glib-java.
java-1.4.2-gcj-compat.x86_64 : JPackage runtime scripts for GCJ
java-1.4.2-gcj-compat-devel.i386 : JPackage development scripts for GCJ
java-1.4.2-gcj-compat-devel.x86_64 : JPackage development scripts for GCJ
java-1.4.2-gcj-compat-javadoc.x86_64 : API documentation for libgcj
java-1.4.2-gcj-compat-src.x86_64 : Source files for libgcj
libgconf-java-devel.i386 : Compressed Java source files for libgconf-java.
libgconf-java-devel.x86_64 : Compressed Java source files for libgconf-java.
libglade-java-devel.i386 : Compressed Java source files for libglade-java.
libglade-java-devel.x86_64 : Compressed Java source files for libglade-java.
libgnome-java-devel.i386 : Compressed Java source files for libgnome-java.
libgnome-java-devel.x86_64 : Compressed Java source files for libgnome-java.
libgtk-java-devel.i386 : Compressed Java source files for libgtk-java.
libgtk-java-devel.x86_64 : Compressed Java source files for libgtk-java.
libvte-java-devel.i386 : Compressed Java source files for libvte-java.
libvte-java-devel.x86_64 : Compressed Java source files for libvte-java.

2) Install the package:
yum install java-1.7.0-openjdk.x86_64

Monday, March 24, 2014

Install Oracle REST Data Services for Oracle Apex in Apache Tomcat 7

1) Download Oracle REST data services from http://www.oracle.com/technetwork/developer-tools/rest-data-services/downloads/index.html

2) Unzip the content of the ZIP directory
3) Rename the ords.war to apex.war if you want the URL in the format of http://hostname/apex
mv ords.war apex.war

4) Before you configure the WAR file you will need to specify where the config files should be kept. Create a directory where you want the config files to be kept. Suppose its in /home/oracle/apex_config

5) Run the following:
java -jar apex.war configdir "/home/oracle/apex_config"

6) Next run the setup, it will write the config files to directory specified in parameter in step 5 above:
java -jar apex.war setup

7) Copy this apex.war file to <<tomcat home>> /webapps directory

8) Copy the Apex Images to <<tomcat home>>/webapps/images directory and rename this directory to i so the path to images directory is 
<<tomcat home>>/webapps/i

9) Startup Tomcat