follow me on Twitter

    Subscribe to
    Posts [Atom]


    Make an odbc connection with Oracle Instant Client

    Thursday, July 15, 2010

    This how you do it:

    download client basic from oracle
    download odbc client from oracle from here http://www.oracle.com/technology/software/tech/windows/odbc/index.html
    combine unzipped file into a single directory in same directory
    create a path to directory
    create tns service string with host: port: sid (remember to use fully qualified names (com.foo.app)

    create an odbc connection under administrativee tools > ODBC connections
    Data source name: (tns name) server.foo.com
    //host.foo.com:1533/sid.foo.com

    Labels:


    How to reset xcode

    Monday, May 10, 2010

    To reset Xcode to its factory settings for the logged-in user, run these commands in Terminal:

    > defaults delete com.apple.Xcode
    > rm -rf ~/Library/Application\ Support/Xcode

    Create InfoPath Wizard Application

    Wednesday, February 10, 2010

    You can see the article how here: http://blogs.msdn.com/infopath/archive/2006/04/20/wizards-and-we-re-not-talking-harry-potter.aspx


    Open you form in design mode
    Open the Views task pane
    Click Add New View for each section in your form
    Copy and paste each section to its own view
    Open the Controls task pane
    Insert two Buttons
    Double click each button to open Button Properties
    Change the label for each button to "<< Back" or "Next >>"
    Click Rules to open the Rules dialog
    Click Add to add a rules
    Click Add Action to add an action
    For the Action, select Switch Views
    Select the view to switch to
    Copy and paste your button pairs to each view and update the rules to switch to different views.

    Labels: ,


    Avatar in 3D Review

    Saturday, December 19, 2009


    I saw Avatar at 12:01 on the night of it's debut. From an innovation standpoint I knew that Avatar was going to be pushing the envelope on several different levels. The birth of Simul-Cam, the revolutionizing of the facial camera rigs, and the performance capture of the actors being grafted onto the bodies of their Avatars are all the first fruits of the new 3D arena. I thought the story might suffer because of the emphasis on the breakthrough technology that movie would be showcasing but this was hardly the case. In fact the story, in my opinion, is only believable because of the fact that the Avatars and Na'vi characters in the film are so life like.

    Jake Sully is a paraplegic marine who takes the place of his twin brother as the inhabiter of an Avatar body. He is commissioned by his commanding officer Col. Miles Quaritch to live amongst the Na'vi race (the indigenous inhabitants of the Pandora planet) to live and learn from them. The leading scientist on Avatar technology is Dr. Grace Augustine (Sigourney Weaver) who is at first opposed to sending in a replacement for Jake Sully's PHD and accolade decorated brother. She later becomes a Sully proponent when in true Donnie Brasco form Sully joins the Na'vi ranks and becomes one of them in his heart. It might have something to do with him falling in love with Na'vi princess Neytiri or his deeper understanding of the interconnectedness of life and the universe at the crux of the Na'vi ideology.

    Avatar the movie, clearly has parallels to imperialism of all kinds. The most obvious theme that runs through the movie is U.S. dependency on petroleum as an energy source. There is also the display of the American mantra of manifest destiny especially apparent in the early history of the U.S. The allegories were apparent and politically charged. These did not overshadow the axioms that none of us can deny including our interconnectedness as inhabitants of this planet, monogamous love, and a reverence for life of all kinds.

    Now you ask how can a "Cartoon" accomplish these type of themes and empathy? Well it can't, but Avatar is far from a cartoon. The writer and director of the film James Cameron has been quoted as saying that he has had the idea for Avatar for over a decade but was just waiting for the technology to catch up to his vision. In an interview with Popular Mechanics, Cameron explains that the vitality of the movie lies in what he has coined "Performance Capture". In the past, in movies like King Kong and Lord of The Rings the animated characters weren't "human enough". This lie in the fact that recording the actors playing the animations was done using Motion Capture. The actor is filmed with reference points on the face and body and then expression is added later by an animation shop. The result is something computer generated and no where near the portrayal of human emotion. Cameron explains that the only way to accomplish this is by mapping the true expression of the face. This is daunting task considering the face has about 100 expression muscles. If you neglect anyone of these you lose that realistic look and feel. Cameron's solution was to have the actors wear a camera in front of their face attached to a headband that would record their every expression. The setup is called a Rig and maps to every pour of the human face. The rig reads in the data set unique only to that actor and begins to perform complex algorithms to rationalize the functioning of the actors expressions. This can take almost a year of extracting expression data from the actors performance but once collected is relatively easily to render in film. Once captured the actors facial performance is then grafted to the body of the Avatar. Filming the movement of the actors body for rendering the performance of the Avatar is mainstream technology used in most films these days and is no uncharted territory.

    Avatar to me is the first 3d movie to make the imaginative world painted on the screen actually believable. I attribute this to the life likeness of the Avatars in the film. This and much of the other technology in the film didn't exist or was not mature enough before the development of Avatar. For any breakthrough, world changing venture you have to make your own trail and blaze it. This is no where more apparent than James Cameron's transmutation of his imagination to the reality that is Avatar.

    Labels: , ,


    Developing and Publishing an Android App

    Thursday, December 10, 2009

    Getting Started
    1. Download and install the SDK starter package from here http://developer.android.com/sdk/index.html.
    2. Execute the AVD manager
    3. In the AVD manager add a platform version (Android 1.0, 2.0, etc).
    4. Intall the AVD Plugin for Eclipse

    Development
    1. In Eclipse create a new Android project.
    2. A skeleton Android app is generated including Java class, XML, properties and manifest files.
    3. Once code is written, the application can be executed by clicking on the root of the project and clicking Run As > Android Application.
    4. An Android simulator will pop up and automatically run your executed application.

    Publishing
    1.Version your application to a production version. This is a feature of the Android plugin for eclipse..
    2. A private key must be generated on the local machine.
    3. If your app uses google maps you must register for the Google Maps API key.
    4. You must compile your application in release mode. This is done in Eclipse and results in the generation of a .apk file.
    5. An Android app must then be signed with the private key to distinguish the author of the application.
    7. A icon, label, version code and version name must all be bundled in the applications manifest file.

    Publishing To The Android Market Server
    1. You need to register your application with the Android Market Service using a Google account.
    2. After registering you can upload your application to the Android Market Server by going here: http://market.android.com/publish/signup

    Publishing Internally For An Enterprise
    1. You can upload the .apk file to the website of your choice.
    2. After setting the mime type to application/vnd.android.package-archive users who visit this site from an Android phone will be prompted to download the application.

    Labels: , ,


    Augmented Reality

    Tuesday, November 17, 2009

    Augmented Reality on a Desktop Environment
    Augmented reality is a way of blending the real and virtual world. By using your computer monitor and a webcam objects can be recognized and given context through augmented reality. The basic idea of augmented reality is to superimpose graphics, audio and other sensory enhancements over a real-world environment in real time (1). Through augmented reality algorithms applications can recognize objects in the real world.

    Augmented Reality on a Mobile Device
    Mobile devices leverage augmented reality technology by using the camera as a window to the world with enhanced functionality. The built in GPS and magnetometer (compass) allow for location awarness in the application and allow for superimposing images and data on the camera view for augmented reality effect.

    Microsoft XNA
    Ohan Oda and Steve Feiner have created several applications using a framework they developed called Goblin XNA. It is built on top of Microsoft's XNA Game Studio and Framework. The applications use different objects adorned with datagrams that are then recognized by a webcam as a controller. The controller in turn controls an object such as a car on a board with datagrams acting as fiduciary markers or references points upon which a virtual landscape is built. This landscape can be controlled from an auxiliary application and change the games landscape dynamically.


    Augmented Reality Videos
    MIT Sixth Sense: http://www.ted.com/talks/pattie_maes_demos_the_sixth_sense.html
    Ohan Oda and Steve Feiner Augmented Reality App http://www.youtube.com/watch?v=6AKgH4On65A

    Mobile Apps
    Layar
    Yelp Monocle
    Le Bar Guide
    Pocket Universe
    Dish Pointer
    Thedolite
    Car Finder


    Interesting AR Articles
    augmented reality on the iPhone - http://www.morethantechnical.com/2009/07/01/augmented-reality-on-the-iphone-using-nyartoolkit-w-code/

    Ideas
    Ability to rotate a spherical device and discover info about planets
    Ability to fly a rocket through the universe and discover info about different planets


    Terms
    Goblin XNA
    Microsoft XNA Game Studio 3.0
    Location based services
    Fiduciary Marker
    Fiducial Tracking

    (1) http://computer.howstuffworks.com/augmented-reality1.htm

    Box.net Test

    Wednesday, November 11, 2009