Wednesday, January 5, 2011

Object Oriented Javascript

Object Constructor
function Cat(name) {
  this.name = name;
  this.talk = function() {
     alert( this.name + " say meeow!" )
  }
}

Creating Objects
  • using constructor of defined object
    myCat = new Cat("Kuting");
    
  • using new Object()
    person = new Object()
    person.name = "Bel"
    person.run = function() {
      this.state = "running"
      alert( this.name + " is running!" )
    }
  • using literal notation
    person = {
       name : "Bel",
       siblings : ["Ana", "Marie"],
       run : function(){this.state = "running"; alert( this.name + " is running!" )}
    };
Prototyping - attaching a method to an object
Cat.prototype.changeName = function(name) {
   this.name = name;
}

References:
http://www.javascriptkit.com/javatutors/oopjs.shtml

Sunday, January 2, 2011

Javascipt Basics

javascript

Getting started with Ext JS

Ext JS is a client-side, JavaScript framework for building web applications.
  1. Download most current Ext JS release
    - http://www.sencha.com/products/js/download.php
  2. Set the URL of s.gif
    Ext.BLANK_IMAGE_URL = '/images/ext/resources/images/default/s.gif';

Reference:
http://www.sencha.com/learn/Learn_About_the_Ext_JavaScript_Library

Monday, December 6, 2010

Installing Eclipse Plugins

  • Copy and Paste
    1. extract package
    2. copy the contents of the "features" into the "features" folder of eclipse and copy the contents of the "plugins" into the "plugins" folder of eclipse

  • Using Update Manager (existing Eclipse software site)
    1. click Help->Install New Software...
    2. select the update site of you eclipse' version from the dropdown folder
    3. find the feature you want from the list and install

  • Using Update Manager (new software site)
    1. click Help->Install New Software... and click on Available Software tab
    2. add the download site
    3. select the update/download site from the dropdown
    4. find the feature you want from the list and install
    Ex.
    Drools - http://download.jboss.org/drools/release/5.5.0.Final/org.drools.updatesite/

    Some update sites are dependent on the version of eclipse.
    Ex. http://www.jboss.org/tools/download.html

  • Using Extension - to separate your plugins from other users
    1. create an extension folder with eclipse folder, e.g. C:\extension\eclipse
    2. copy the features and plugins folder of the plugin inside the eclipse folder (for additional plugins, do the Copy and Paste method above)
    3. open Update Manager and Add Site
    4. in Add Site window, click Local and specify the location of the extension folder, e.g. C:\extension
    5. browse and check the plugin you want to install in the Available Software list and click Install

  • Using Link
    1. http://www.venukb.com/2006/08/20/install-eclipse-plugins-the-easy-way/

Tuesday, November 30, 2010

Using FileZilla

  1. Open FileZilla
  2. Click File->Site Manager
  3. Enter host, leave the port blank
    Server type: SFTP
    Username: SID
    Password: orangewins
  4. Click Connect

Wednesday, November 3, 2010

Adding new SVN repository / Check out

SVN must already be installed in your Eclipse before this.

  1. Open 'SVN Repository Exploring' Perspective. On the 'SVN Repositories' View, click on 'New Repository Location' button.
  2. Enter URL, username and password, and finish.
  3. Select the project and right click. Click on 'Find/Check Out As...'
  4. Choose 'Check out as a project configured using the New Project Wizard' to ensure that the project is check out as an eclipse project (allow setting of build paths)
  5. Proceed and complete the check out.