Wednesday, 2 February 2011

ANTLR's plugin in Eclipse

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

Saturday, 22 January 2011

Captain Beefheart - Trout Mask Replica

Tuesday, 11 January 2011

LateX packages on Ubuntu

To install LateX packages on Ubuntu:
- Download the package from CTAN, the Comprehensive TeX Archive Network
All files should be placed in the same directory, so it can be found by LateX. This will also allow to move everything in one go, if you want to build up a new system. To be found by LateX, the following directory tree must be respected.
- Create a folder in your home directory called texmf/tex/latex/packagefoldername (if you have multiple users on the same computer, you'll need to create a folder on every home directory):
e.g. texmf/tex/latex/listings
- If your package is a made of a single file with .sty extension, just place it in the folder and that's it. It will be accessed by LateX.
- If the package is made of several files, copy all files into the folder you've just created, or at least the file with the .ins extension, and run "latex filename.ins", this will create the filename.sty file. In my case, it was "latex listings.ins"
- Finally run "texhash ~/texmf" for LateX to recognise the new package.

You can now include your package in your .tex files in the preamble, such as:
\usepackage{listings}

link to documentation

Thursday, 6 January 2011

Pinhole Photography

First snapshots done with the body of a Soviet Zenith XP12 and a pinhole in a tin can. It's taking me back to the beginning of the camera obcura, at least conceptually. Was thinking of Niépce. What about back to developing in a cupboard?

Pinhole - English landscape #1 - Birchfields
Pinhole Photography

Pinhole - English landscape #2 - Levenshulme
Pinhole Photography

Tuesday, 21 December 2010

Japan










Firefox Flash player Ubuntu 10.10 LTS 64bit

In order to get the Flash player for Firefox under Ubuntu 10.10 64bit, it can easily be installed at the command prompt, typing:
sudo add-apt-repository ppa:sevenmachines/flash && sudo apt-get update && sudo apt-get install flashplugin64-installer.
You can refer to https://help.ubuntu.com/community/RestrictedFormats/Flash#installation for more detailed information.

Thursday, 2 December 2010

Installing Apache Tomcat on Windows7

- Installing tomcat on Windows 7
- Download Apache Tomcat from the website http://tomcat.apache.org/index.html
- Unzip it
- Place the folder in a directory suitable for your system
e.g. C:\Program Files\Whatever
- If the classpath is correctly set, at the command prompt, navigate to the \bin folder of your apache-tomcat- (If not there's a previous post that will tell you how to do that).
- run startup.bat to start it up
- shutdown.bat to stop the server
- check with your browser if the server is correctly running, by typing in the address bar, http://localhost:8080
- Apache's Tomcat web page should load with no problem
- Now you're ready to develop your best web apps.

Photobucket

How to set the Java Classpath

In Windows 7:
Control Panel->System->advanced system settings->environment variables->system variables:
Create new variables:
->click new
variable name: CLASSPATH, variable value: C:\Program Files\Java\jdk1.6.0_22
variable name: JAVA_HOME, variable value: C:\Program Files\Java\jdk1.6.0_22
variable name: Path, variable value: ...;...;C:\Program Files\Java\jdk1.6.0_22\bin; (append it to the existing path, don't forget the semi-columns(;))