Saturday, 30 April 2011
Friday, 29 April 2011
Friday, 22 April 2011
Vision Topics 23:34
#1 - Photography doesn't picture what we are seeing, or what we had in mind at the time that we were seeing. Are we seeeing the world differently than a camera does?
Maybe we don't understand what we're seeing.
Need to define what we see, make up some rules. What is it that we see or what do we want something to look like.
It doesn't match what I wanted it to look like, my mind was interpreteing it in a different way than it really is.
Define what I want. I want it to look like that.
Maybe we don't understand what we're seeing.
Need to define what we see, make up some rules. What is it that we see or what do we want something to look like.
It doesn't match what I wanted it to look like, my mind was interpreteing it in a different way than it really is.
Define what I want. I want it to look like that.
Labels:
Photography
Sunday, 3 April 2011
Tuesday, 15 March 2011
Bean considerations 23:10
Wrong, a Java bean has a constructor with no arguments !!!!
e.g.
public class PersonBean implements java.io.Serializable {
private String name;
private boolean deceased;
......
/** No-arg constructor (takes no arguments). */
public PersonBean() {
}
Question: Do we have to modify the code for a longer one for the sake of standards? Couldn't we use a "Hybrid bean"? a hybrid bean ...
e.g.
public class PersonBean implements java.io.Serializable {
private String name;
private boolean deceased;
......
/** No-arg constructor (takes no arguments). */
public PersonBean() {
}
Question: Do we have to modify the code for a longer one for the sake of standards? Couldn't we use a "Hybrid bean"? a hybrid bean ...
Labels:
Computing
Wednesday, 2 February 2011
ANTLR's plugin in Eclipse 13:53
How to get Antlr working in Eclipse
From the ANTLR website, you must get eclipse's plugin:
- Go to WIKI (on top of the page)
ANTLR - WIKI
- Then click Integration with Development Environments (on the right side)
Integration with Development Environments

- Go to the Eclipse's section.
There are two choices under Eclipse: antlrDT and antlr IDE
- choose antlr IDE
- And click on the link to source forge
Source Forge

- In Eclipse go to help, install new software
- Choose Helios - http://download.eclipse.org/releases/helios from the list of Software Sites
- Uncheck Group Items by category
- In the search box type Dynamic Languages

- Check Dynamic Languages Toolkit - Core Frameworks.
- Then type GEF.
- Check Graphical Editing Framework.
- Type Zest.
- And check Graphical Editing Framework Zest Visualization Toolkit.
- Click next, the three chosen options should appear in the window
- Click next and complete the installation.
Go back to the source forge website Source Forge
- Click the Download/Install tab
- And copy the address at "via Update Manager" (http://antlrv3ide.sourceforge.net/updates)
In Eclipse, go to "help" then "install new software" and add a new location in the list of software sites:
e.g. Antlr IDE at http://antlrv3ide.sourceforge.net/updates
- Check ANTLR IDEv2.1.1.
- Click next twice, accept the licence and click finish That should start the installation of the plugin.
- Restart eclipse.
In the Window menu, go down to preferences.
- Click ANtlr in the menu on the left side.
- Then Builder.
- Click add and browse to the directory where we put the ANTLR jar.
- Next, select "Code Generator" and choose "Project relative folder" and input a name such as "antlr-generated" that will keep the grammars in a separated directory.
- Check "append java package to output folder".

For more complete detailed information, you should check Scott Stanchfield's page on Vimeo. ANTLR 3.x Tutorial
From the ANTLR website, you must get eclipse's plugin:
- Go to WIKI (on top of the page)
ANTLR - WIKI
- Then click Integration with Development Environments (on the right side)
Integration with Development Environments

- Go to the Eclipse's section.
There are two choices under Eclipse: antlrDT and antlr IDE
- choose antlr IDE
- And click on the link to source forge
Source Forge

- In Eclipse go to help, install new software
- Choose Helios - http://download.eclipse.org/releases/helios from the list of Software Sites
- Uncheck Group Items by category
- In the search box type Dynamic Languages

- Check Dynamic Languages Toolkit - Core Frameworks.
- Then type GEF.
- Check Graphical Editing Framework.
- Type Zest.
- And check Graphical Editing Framework Zest Visualization Toolkit.
- Click next, the three chosen options should appear in the window
- Click next and complete the installation.
Go back to the source forge website Source Forge
- Click the Download/Install tab
- And copy the address at "via Update Manager" (http://antlrv3ide.sourceforge.net/updates)
In Eclipse, go to "help" then "install new software" and add a new location in the list of software sites:
e.g. Antlr IDE at http://antlrv3ide.sourceforge.net/updates
- Check ANTLR IDEv2.1.1.
- Click next twice, accept the licence and click finish That should start the installation of the plugin.
- Restart eclipse.
In the Window menu, go down to preferences.
- Click ANtlr in the menu on the left side.
- Then Builder.
- Click add and browse to the directory where we put the ANTLR jar.
- Next, select "Code Generator" and choose "Project relative folder" and input a name such as "antlr-generated" that will keep the grammars in a separated directory.
- Check "append java package to output folder".

For more complete detailed information, you should check Scott Stanchfield's page on Vimeo. ANTLR 3.x Tutorial
Labels:
Computing


