Category Archives: Smalltalk

Installing Pharo with Seaside walkthrough

After downloading the one-click experience from the seaside.st site I wanted to make a developer image myself. I chose to write down my experienc, cause I had to find some stuff on the web which isn’t obvious to everyone.

What I did on my Windows platform:

  1. Load the pharo win32 setup from http://gforge.inria.fr/frs/?group_id=1299
    Look under the “Pharo Win32 Setup” section. Select the most recent version.
  2. Install the pharo image, it will start when you don’t uncheck the box run pharo in the end.
    Shows up as follows:

    Pharo after it starts up

    Pharo after it starts up

  3. Now you can update the pharo image: press left mouse button, select from the menu:   Tools -> Transcript
    Type in the transcript :  Utilities updateFromServer select it and press alt-d(o it). (also referred to as: evaluate <code>)
    After a while it will finish and you are up to date with your Pharo image.
  4. How to get seaside loaded into the image correctly?
    In the Transcript evaluate ScriptLoader loadSeaside30

    First I strolled around at http://www.seaside.st/download/squeak, but this lead only to older versions of Seaside (2.8.*) while I was looking for Seaside 2.9.*

    I found a mail thread on the web saying you should evaluate ScriptLoader loadSeaside30 in a workspace and Pharo will load seaside3.0 alpha. Neat !

  5. After the Seaside control panel shows up, right click on its top panel and add an adaptor. Choose a port (8080 is default) and press start, make sure you selected the adaptor before pressing start.
    Pharo_Seaside_Control_Panel_Adaptor
    When the adaptor finishes starting, open a webbrowser and enter http://localhost:8080/seaside. You should be seeing something like
    Testing_Seaside_Installation
  6. Done!

I hope this little walkthrough is helpful if you would like to setup your own Pharo with Seaside development environment.

Advertisements

Images of ESUG09 online

Hi all,

As I am attending ESUG 2009 in Brest, France, I also took some pictures of the speakers and the accomodation.

If you are interested have a look at: http://picasaweb.google.com/yuri.vrancken/Esug2009#

Some people might object to have there photo being put on the web without their permission. If you want a picture removed you’re on, or I should blur so you become unrecognizeable, don’t hesitate to reply to me.

More pictures are available at:

VAStGoodies with Graphical statistics using GoogleChart

I have used GoogleChart in VASmalltalk to create a nice graphic about the usage of the site in terms of down- and uploads.

One thing you should keep in mind when working with GoogleChart is that the x-axis labels will be positioned on a 0 to 100 scale independent of the data you provided for the chart. So you have to figure out where your labels need to be positioned yourself and do some math to determine where to place your labels.

Now go over to VAStGoodies.com, click on the statistics link and take a look yourself! Or, feel free to upload some nice goodie yourself 😉

Seaside Googlechart port to VASmalltalk

I have ported the Seaside binding of GoogleChart in Squeak made by Lukas Renggli, Adriaan van Os and Philippe Marshall to VASmalltalk 8.0 beta1. Since this was the first time I performed a port from Squeak to VAST this was new (and thus fun) to do for me. I would like to thank Adriaan van Os for his support during this exercise.

While porting I ran across the following issue:
In Squeak GoogleChart the methods GCChart>>#encodeSimple: and #encodeSimple:max:on: used the convenient or:or: implementation. To keep the code portable I rewrote this to regular or: statements resulting in or:[ or:[]].
All this is available in version yv.51 in the squeaksource repository (http://www.squeaksource.com/seachart).

In VAST I just had to reimplement 3 methods:

  • CgRGBColor>>#alpha
  • Color>>#fromString (class method)
  • Color>>#hex (class method)

Of course I uploaded this piece of work to VASTGoodies.com so surf on over and download it or use the nice features Ernest Micklei made to import from VASTGoodies directly 😉