2010 EC2 setup

Started this again. Lots has changed, so blogging again.

1) Get new version of Ubuntu. These guys make it easy.

2) I chose ami-714ba518 since it has EBS and that means it remembers the instance between reboots

3) Fire it up and then log in

4) Log in as ubuntu and the server is the public DNS entry of the EC2 server

5) Start the updates & install Java JDK

# sudo add-apt-repository ‘deb http://archive.canonical.com/ lucid partner’

# sudo apt-get update

# sudo apt-get install sun-java6-jdk

# java -version

java version “1.6.0_20″Java(TM) SE Runtime Environment (build 1.6.0_20-b02)Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

6) Now install Tomcat

# sudo apt-get install tomcat6

7) Test Tomcat

Enter this in a browser http://<public DNS>:8080

Up and running.

Next is to shut down 8080 and set up Apache with proxy to Tomcat

Installing log4FX

This may seem odd, but there are no good install howto’s for log4fx. Log4FX is a Flex equivalent of lof4J, but allows you to do remote logging.

Install:

1) Download the latest from here

2) Download the license file from the same location as above (Look at the bottom, there are license files

3) Start Eclipse

4) Go to Software updates

5) Add an Archive and select the ZIP file

6) Select all the files and install

7) Restart Eclipse when prompted to do so

======

Set up Log4FX on a project

1) Right click on your project -> Log4FX -> Add Dependencies

2) You get a warning about the license. Select Yes to manage the license

3) Install the license and restart

FlexUnit Assert Message Meanings

ASSERTION METHOD MEANINGS
assertEquals Asserts that two values are equal.
assertContained Asserts that the first string is contained in the second one.
assertNotContained Asserts that the first string is not contained in the second one.
assertFalse Asserts that a condition is false.
assertTrue Asserts that a condition is true.
assertMatch Asserts that a string matches a regular expression (regexp).
assertNoMatch Asserts that a string doesn’t match a regexp.
assertNull Asserts that an object is null.
assertNotNull Asserts that an object is not null.
assertNotUndefined Asserts that an object is defined.
assertUndefined Asserts that an object is undefined.
assertStrictlyEquals Asserts that two objects are strictly identical.
assertObjectEquals Asserts that two objects are equal.
Follow

Get every new post delivered to your Inbox.