OFSET Planet (English only)

To content | To menu | To search

Tuesday, May 17 2011

Dr. Geo release 11.06

Dr. Geo II 11.06 is ready for download. The release come with version for Linux/Windows/MacOSX and XO OLPC kid laptop. Read the change log to know more about the fixes and features.

You can watch the video presentation of Dr. Geo II 11.06:

Dr. Geo release 11.06

Dr. Geo II 11.06 is ready for download. The release come with version for Linux/Windows/MacOSX and XO OLPC kid laptop. Read the change log to know more about the fixes and features.

You can watch the video presentation of Dr. Geo II 11.06:

Download the video

Saturday, November 20 2010

Dr. Geo release 10.12

Dr. Geo version 10.12 released today for GNU/Linux, Windows, Mac OSX and OLPC laptop. It comes with a quite long list of changes, among them a preview window in the file dialog to quickly browse collection of Dr. Geo sketches:

Wednesday, August 4 2010

DrGeo release 10.08 for XO OLPC laptop

I am please to announce the Dr. Geo release 10.08 for the XO OLPC laptop. This version comes with a new user interface, more sketch examples, a lot of bugs removals and small improvements, visit the Dr. Geo home page to download and to install the new XO bundle in your XO OLPC laptop.

Discover & Enjoy!

For a nice Dr. Geo integration in the OLPC XO Sugar environment, I put a lot of energy in implementing a Sugar User Interface theme for Polymorph's Pharo Smalltalk. This works is now part of a brother project Pharo4Smalltalk.

Bellow, two screen shots taken on a XO-1 laptop:

Dr. Geo with XO on color mode

DrGeo release 10.08 for XO, color mode

Dr. Geo with XO on outdoor mode

DrGeo release 10.08 for XO, outdoor mode

Tuesday, July 20 2010

Pharo Smalltalk on XO

What is specific to the XO OLPC laptop is its usability under direct sun exposure: both its dual screen mode and its user interface (Sugar) is designed for that.

To make Pharo Smalltalk a reference development platform on XO, it must come with an user interface matching the original Sugar one. I have tested the work in progress of the Sugar theme for Pharo Smalltalk in real conditions: an XO laptop + Pharo Smalltalk with Sugar theme + direct sun exposure.

Feel free to comment and to suggest at the end of this review.

Follow a few screen shots:

The Smalltalk browser, to edit source code

IMG_3503.JPG

Details of the Smalltalk source code browser

Details of the source code browser

Widget examples

Widgets

More Widget examples

Widget examples

Saturday, July 17 2010

Sugar theme for Pharo Smalltalk

Here is a screen shot of a Sugar theme for the Pharo Smalltalk user interface.

The idea is really to get Pharo Smalltalk as a platform to develop educative application for the XO OLPC Sugar based kid notebook.

Moreover, with Pharo Smalltalk kids really get access to source code they can examine and modify while the application is running. DrGeo will also take advantage of this theme.

This UI theme try to follow the Sugar UI theme used in the laptop. There are still many points to improve, if you are interested or you want to comment please do it bellow.

The idea of this theme is to get an usable UI with a black and white screen.

phato-sugar.png

Thursday, August 28 2008

SqueakNOS, faster than light

Richie

The fastest Smalltalk booting operating system of this side of the galaxy has landed in the OLPC Association XO notebook. The landing took place under the guidance of captain in chief Girardo Richarte (a.k.a Richie) while we were all attending the ESUG 2008 conferences at Amsterdam.

The landing was recorded with a pocket camera, although the video last 23 s, only a fraction part of it is effectively related to SqueakNOS booting.

See the landing!

Keep going Richie!

PS: The video is Ogg/Theora encoded, try a real media player if needed.

Tuesday, August 5 2008

More fun with Smalltalk script

In a previous article, I introduced the Smalltalk script system used in DrGeoII. I exposed how a simple script with argument can be used to generate random numbers. Here I will demonstrate the use of script with arguments. When using argument with your script you can do complex computation and plug the result in the drawing area of DrGeoII.

A script with two points as argument

We will write a simple script to calculate the distance between two points. Note that this feature is built in DrGeoII.

To handle the arguments in our script we use the Smalltalk keyword-message. The argument of our script are two points called pointA and pointB. Before going further, I need to explain the nature of the arguments sent to script.

Nature of the argument

From the user point of view, the argument sent to a script is related to the item selected in the figure by the user. From an internal point of view, this argument is the model object of this visual item. To be accurate we have three layers to represent a geometric item: its models, its costume and its morph, the one the user see in the drawing area. The model of the items are all subclasses to the DrGMathItem.

Therefore the point arguments of our script are instances of DrGMathItem subclasses, exactly DrGPointItem.

Back to our script

Our script comes with two arguments, we can call it @distance:to:@, it is a two-keyword message. From the DrGeoII pop up menu, we open the script browser numerics>edit script and input our script content:

Un script avec deux arguments

Next, we create two points in the drawing area and we open the script wizard dialog from the menu numerics>use script.

Inserting a two arguments scipt in a drawing area

From the wizard dialog, select our distance:to: script, then select the two points, the selected points are flashing, then click somewhere in the drawing area to plug our script.

With the mouse over a script plugged in the figure, we have interesting feedback about its name and its arguments name:

Script feedback

Conclusion

In this article we have explained:

  • the nature of the arguments received by the script,
  • how to write keyword message
  • the use of script in a drawing area

In a next article, we will expose a more complex use of Smalltalk script.

Monday, August 4 2008

Fun with Smalltalk script

In DrGeo 1.1, I implemented a Scheme script plugged into a geometric figure. These scripts are written with the Scheme language and they are used to do user computation over geometric items. They are plugged into the area and they display the computed script value. See examples. I took a fresh view on how to implement it in DrGeoII, and of course I want take advantage of what Smalltalk can offer for these user script systems.

How does it work?

DrGeo handles user scripts just like any other geometric item, or more exactly as any value item inserted into the geometric figure. A script depends on:

  • a set of items in the geometric figure (its parents item). This parent collection is used as arguments for the script. To specify its parent items, the user selects them in the drawing area.
  • a script definition (or code source). The returned value of the script is printed in the drawing area, the script value.
  • a position in the drawing area is where to print the script value.

DrGeoII script revisited

Regarding DrGeoII script implementation (as of 04/08/2008), as follows:

  • the script language is Smalltalk, a script is defined as an instance method of the DrGeoUserScripts class.
  • a script owns an arbitrary number of arguments, starting with zero. Script name uses the Smalltalk convention: unary message or keyword message.
  • To create and to edit a script, the user operates with a Browser narrowed to the DrGeoUserScripts class

Step by step process to work on a script

We will give two examples, in this article one script without any arguments, and in a next article a script with two arguments. From the background menu of DrGeoII, go to numerics>edit script. A class browser window opens on the DrGeoUserScripts class. We can create and edit the script from there. You are encouraged to experiment the class browser to get your own feeling with the tool.

The browser is opened by default on the examples message category. The pane on the bottom is the place to write code. Edited code must be confirmed with the Alt+s key stroke. When confirming the code change, the method is compiled and DrGeoII is informed about the change, so the drawing area is updated.

A script without arguments

Let's say we want a random integer in ]-10 ; 10]. The method could looks like:

editScript1.png

Now you want to use this script in your drawing area. From the DrGeoII background menu, go to numerics>use script. In the newly opened wizard dialog, you can select the script:

Select a script to use in the drawing area

You may have noted the script description is the comment at the beginning of the message source code, between the double quotes.

Next, as this script owns no argument, click anywhere in the drawing area, the script value will be plugged in at this place. Now when you move this value with the mouse, you will note the script value is changing. Obviously it is at random!

Of course the script value can be used as any other item value: to define a point by coordinates, or as an argument to another script.

Conclusion

In this article, we have exposed the overall structure of the DrGeoII Smalltalk script system and how to use it. We have shown a simple script example without argument to generate random integer.

The DrGeoII Smalltalk script system completely fit in the OLPC philosophy regarding introducing programming to kid. Not only with DrGeoII kids can write code snippet but they can also do mathematical calculus. Moreover the Smalltalk environment provide an extremely friendly environment to write code: the class browser, the debugger and many more friendly tools.

Sunday, June 22 2008

Squeak/Smalltalk at RMLL 2008

The 9th Libre Software Meeting will be held at Mont de Marsan, Landes, in SW France, from the 1 to the 5 of July. LSM is an international free software event taking place in Jully, each year, in a town of France. The first event took place in 2000 at Bordeaux. This year, Squeak/Smalltalk will be largely represented with conferences and workshops.

Mont de Marsan During all the event, each day, topics related to Squeak/Smalltalk are proposed:

And during all the event, a Pharo sprint (coding-party) is organized.

The year of Squeak/Smalltalk ? At LSM 2008 definitely.

Picture Flickr.

Saturday, May 24 2008

iStoa.net lands on Olpc

iStoa.net is a pretty large project I am developing for education. It is a learning environment with emphasis on interactive activities through artifacts, recording of student activities for further analysis, curriculum modeling with oriented graphs and learner modeling. Yesterday I tested the iStoa client application on the Olpc XO notebook.

The client is pretty large as it comes with its own Squeak virtual machine, image and a large set of code specific to iStoa. Moreover it gave me the opportunity to test the iStoa persistence based on the Magma object oriented database.

I knew the client will work without much problem but I was quite unsure regarding recording the learner activity. Indeed recording is done remotely in a dedicated server on the Internet (so teacher can also review remotely the learner activities). All in all, with the wifi connexion up, the recording went smooth. Of course it is pretty slow behind an ADSL connexion but I am confident this can be improved with Chris help.

istoaOlpc.jpg

Thursday, March 13 2008

Dr. Geo for OLPC

Mont de Marsan, February 23rd, 2008 - OFSET, the organisation for free software in education and teaching, announces the release of Dr. Geo II, an interactive geometry software for the One Laptop Per Child project (OLPC).

This release has been produced with the support of TOP, the Taiwan Open Source Project, with funding from the Taiwanese Ministry of Economy. It is a jointly managed project by Gjun Information Co.,Ltd., STEPS, and the Software Liberty Association, Taiwan (SLAT). About Dr. Geo II

Dr. Geo II is an interactive geometry environment, Morphic-based and Smalltalk programmed. It can be embedded and mixed with any existing Morph user interface, elements of the Squeak OLPC environment: interactive book, multimedia document, EToys graphic programming, etc. Thus, Dr. Geo II follows the pedagogical constructive approach, promoted by the OLPC project and Squeak. http://wiki.laptop.org/go/DrGeo

About OFSET

OFSET is an organization dedicated to the development of free software for education and teaching. To do so, it develops free software for education and also documentation for the development and the use of free software. To know more about its projects visit http://www.ofset.org/projects