Augmented Reality with JavaScript

Yes what u heard is true.Augmented reality is the Buzz word i heard mostly in the recent times.But i never thought JavaScript has got the capability to implement AR(Augmented Reality) . I found it astonishing and with my usual curiosity i tried to experiment with that.
First we will see the experiment then u will get an interest to know the technical Stuff behind that.
Now the experiment is for motion detection
Requirements :
1. Google Chrome Canary Browser( https://tools.google.com/dlpage/chromesxs )

2.Web cam
3.Tablet or Phone

4.Below Pic

Lets Start,

Copy the above image into your mobile or Tablet,or u can even make a print of it on a paper.

Now open the below link in the Chrome Canary Browser

http://www.html5rocks.com/en/tutorials/webgl/jsartoolkit_webrtc/AR_mediaStream.html

Allow access for the webcam.

Now show the image which i told to copy in your phone/print out to the webcam .

Make some motion like tilting it. Now you will see a lot of new images of animals.

The Final Result will be like this,

Sounds cool right?

The JavaScript which is there in that URL uses motion detection technology to show those images.

Try this out.

GMAIL’s URL Parameter – shva

Today while logging into Gmail , i observed the URL and it is like this :t

https://mail.google.com/mail/?shva=1

the parameter shva interested me. I know about the SHA-1 Algorithm for Encrypting the data,so i thought it might be related to that.

But after some googling i found that,this paramter shva is an acronym for  -“SHOULD HAVE VALID AUTHENTICATION

This comes only after the authentication is successful.

Not able to install Jdeveloper on SOA Suite 11g 11.1.1.6

After installing SOA suite 11g 11.1.1.6 version (Oracle XE, RCU, WL 10.3.6.0 and SOA suite) in 64bit windows 7 ,i tried to install Jdeveloper 11.1.1.6 ,then i got the following error.
The product maintenance level of the current installer (Weblogic Server: 10.3.5.0) is not compatible with the maintenance level of the product installed on you system (Weblogic Server: 10.3.6.0). Please obtain a compatible installer or perform maintenance on your current system to achieve the desired level

Solution :
the best solution i found is to install SOA Software and JDeveloper in totally different Middleware Homes (means different folders).
So choose a different middle ware home for jdeveloper instead of choosing the already existing Middleware home.It seems to be a bug in 11.1.1.6.0

Error while Configuring the domain “Configure JDBC Component Schema”

Recently,i tried to install oracle soa 11g in 64 bit windows 7 (i love linux though ) .Everything went fine,but when configuring the domain for weblogic server,at step  “Configure JDBC Component Schema” ,i got an error like this :
1. BAM Schema- Failed
2. SOA Infrastructure-Failed
3. User Messaging Service-Failed
4. OWSM MDS Schema-Failed
5. SOA MDS Schema-Failed

Component Schema=BAM Schema
Driver=oracle.jdbc.OracleDriver
URL=jdbc:oracle:thin:@localhost:1521/XE
User=DEV_ORABAM
Password=*******
SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type=’BAM’ and version=’11.1.1.6.0′

CFGFWK-60850: Test Failed!
CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.

Component Schema=SOA Infrastructure
Driver=oracle.jdbc.xa.client.OracleXADataSource
URL=jdbc:oracle:thin:@localhost:1521/XE
User=DEV_SOAINFRA
Password=*******
SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type=’SOAINFRA’ and version=’11.1.1.6.0′

CFGFWK-60850: Test Failed!
CFGFWK-60853: A connection was established to the database but no rows were returned from the test SQL statement.
………

Solution:
This is most irritating error developers face while installing the software. I tried many different ways,and atlast with some deep thinking i came up with a solution.
Open the sql developer and connect the respective Schema User .First i will connect to
DEV_SOAINFRA
1. Now i used the query
  select * from schema_version_registry;
to see the data in the table and figured out that there is a mismatch as the version in the table is less than the version it is comparing.
2. So i dropped the table
drop table schema_version_registry;
3. Then i created a new table and inserted a row :
create table schema_version_registry(owner varchar2(30),mr_type varchar2(10),version varchar2(50));

insert into schema_version_registry(owner,mr_type,version)values(‘DEV_SOAINFRA’,’SOAINFRA’,’11.1.1.6.0′);
4. Finally committed it.
Repeat the same step for other users as well . change the “mr_type” accordingly
And most important while doing the same for DEV_MDS you need to  give the user admin rights like this:
select username from dba_users;
grant DBA to DEV_MDS;
then simply give this query :
update schema_version_registry set version=’11.1.1.6.0′; where owner= ‘dev_mds’;

Thats all . All the best 🙂