Tuesday, August 29, 2006

Bushenll 3200 Elite 10 X 40 Tactical

SWT (Squeak Widgets Toolkit) - Something to show

After about (Few (very few)) days of vacation, I returned to work harder and to prove it, I show that state is the development of LiveWiki I promised to do. Using JS2JS, I am now developing a set of widgets for web browsers. This first version is very simple, but it has enough to see the full picture: Smalltalk code is written and run in Web browsers (after conversion ST> JS). You can download the current version SqueakSource .
This is a method SWTExampleApplication class that creates a simple (and boring) text.
SWTExampleApplication>>


created

eSimpleTexts

addWidget: (

SWTHeader addWidget:
level:

2 contents: 'Simple texts' ). root
(

SWTText


'some plain text. bla, bla, bla, bla, bla.'


).
onClick:
root addWidget: (

SWTText contents: 'text in red'

).
root lastWidget color: S2SColor

red . root
addWidget: ( SWTText contents: 'text in blue / green' ). root lastWidget color:
S2SColor blue; backgroundColor: S2SColor green .
root
addBreak . The method is then shown as event management. Is clearly the use of Smalltalk blocks (which are mapped to functions of JS): SWTExampleApplication>> createButtons
root addHorizontalRule
. root addWidget: (
SWTHeader
level: 2 contents: 'Buttons' ). root
addWidget: ( SWTButton
caption: 'inspect event'
onClick:
[ : event
[
: event
[:


event
http://www.consultar.com/DiegoGomezDeck/papers/Squeak - A world to learn /
asString
].
button onClick: [: event

S2SColor
blue ; backgroundColor: S2SColor blue

muchLighter . button
onFocus: [: event S2SColor red ; backgroundColor: S2SColor red muchLighter
]. button onBlur: [: event blue; backgroundColor: S2SColor blue muchLighter ].
If there is something interesting about this first version is that I'm playing with the widgets "Edit In Place" (Edit In Place) which I use to live LiveWiki modification. This is the method that creates some texts "EditInPlace" and also created a button to create more editable text.
SWTExampleApplication>> createEditableTexts ( SWTHeader level: 2 contents: 'Edit-In-Place texts' ). root addWidget: (

SWTButton
caption: 'add a new edit-in-place text' onClick: [ : event ( SWTEditInPlaceText

contents: 'One edit-in-place text, click on me to edit' ). root addBreak . root
addWidget: ( SWTEditInPlaceText contents: 'Another edit-in-place text (with background color), double click on me to edit' ). root lastWidget editOnDblClick ; backgroundColor: S2SColor blue muchLighter
. root addBreak . root addWidget: ( SWTEditInPlaceText contents: 'Just another edit-in-place text (with background color), move mouse over me to edit' ). root lastWidget

editOnMouseOver
; backgroundColor:
S2SColor red muchLighter .
root addBreak . root

addWidget:
( SWTEditInPlaceText contents: 'And just another edit-in-place text (with background color), move mouse over me to edit' ).
root lastWidget
editOnMouseOver ; backgroundColor: S2SColor
green muchLighter . Root addBreak
.

Bagos For always (they do not want to install anything on their Squeaks) I got a 100% autonomous HTML that includes all the JavaScript code generated from Smalltalk (126Kb). The next steps in development, is to integrate widgets with Asteroid (Comet Implementation for Squeak) to implement an Observer Pattern (aka a MVC ) distributed between Squeak and Internet browsers .

Denise Milani Lookalike

Project submitted to the UN LinEx

Yes, before the UN
.
See more information in the blog of Jesus Rubio .

Motorcycle Wheel Builders Georgia

The computer is misused, but NO only in the classroom!

I was fortunate to participate for the second time in one summer courses organized by the Universidad Internacional de Andalucía . The course was impeccably organized by Jordi Adell . I regretted not being able to videotape my speech, since it is one of the few times that I have enough time to show the entire presentation. well why not, the event is well covered by journalists from different media (Besides the course of 3 hours, say 3 to various media reports). One media was Europa Press. The Europa Press coverage was reproduced by different media (Extremadura Day,
Evidalia
, El Periódico de Extremadura , Granada Journal, etc). A game mode "phone" (or, in Spain, "Phone Off"), the transcript of the interview is not 100% accurate. When I said that computers are not being used well, I was not referring only to use are given in the classroom. I meant to use is given in general, inside or outside the classroom. Of course I did not speak on that one region or another work best or worse use of computers (as Extremadura holds Journal or Extremadura Network the holder of the notes.) What I said is what I always say in my talks: The computers are being used (mostly) as if it were an ancient form of expression. The observation is not exclusive use is given, computers in the classroom or (still much less) on the use made by regions. If you are interested to know more in detail my opinion, you can read the introductory chapter of the book " Squeak: A World to Learn
." HTML version of the chapter is in:



Tuesday, August 15, 2006

Stroke In Dogs Symptoms

The mailing list has risen Small-Land!

The
mailing list
Small-Land has risen!
if not because of the computer project 100USD, in which Argentina is party. Or if it is due to hot summer in Europe. The point is that the list is getting more movement ... but, above all, the important thing now is that teachers / teachers who speak!
I leave a link to a very interesting mail released today: http://groups.yahoo.com/group/small_land/message/1650