Posted
over 14 years
ago
by
brett s hallett
Reading Randal Schwarts' excellent comments, I had to take the last paragraph's challenge and rewrite his Squeak
solution into gst!.
" Randal Schwartz's modified md5 squeak code modified to gst"
desiredLength := 20.
sourceCharacterSet :=
|
Posted
over 14 years
ago
by
brett s hallett
Rewriting a script into a callable method
After you have written your small test script and tested it interactively, it is often useful to convert it to a reusable method. The whole point about Methods is provide further modularization
of your
|
Posted
over 14 years
ago
by
brett s hallett
When first trying Smalltalk I always found it difficult to obtain simple complete programs to use as a reference tool. Smalltalkers just love showing code 'snippets', but learners need complete examples so they can see the total program. Hopefully
|
Posted
over 14 years
ago
by
Stephen Woolerton
I recommend you browse the NetClients package to see methods to show POP mail attributes, e.g. sender, destination, content.
POP mail snippet
popHost := 'ourPOPHost.com'.
popUsername := 'popUser'.
popPassword := 'POPpassword'.
client
|
Posted
over 14 years
ago
by
Stephen Woolerton
And here's one to navigate through a home directory folder and change ownership of all folders to the home directory owner.
This script was required after the home directories got copied onto another server with a different operating system.
This
|
Posted
over 14 years
ago
by
Stephen Woolerton
And here's another one with some regular expression comparisons.
The occasion being a requirement to link some OS X mailservers together. Unfortunately Apple didn't compile LDAP into Postfix so we're using output from the Apple Directory to generate
|
Posted
over 14 years
ago
by
Stephen Woolerton
Here is an example of how to make a system call from a script and get console output.
The call is asynchronous - it returns after a time whether the process has completed or not.
display_etc
| pipe |
pipe := FileStream popen: 'ls -l /etc' dir:
|
Posted
over 14 years
ago
by
Stephen Woolerton
I've begun using GNU Smalltalk for scripting purposes. The more I use it, the more I like it. Scripts pass the "its six months later can I understand what I did here" test easily, and errors usually result in a stack trace or a line number so
|
Posted
over 14 years
ago
by
Olivier Blanc
I am in the process of writing a documentation / explanation on OpenGL Package. For the time being it is in French, as soon as the first French version is done, I will translate all those pages.
I also take some pictures of the openGL / smalltalk examples.
Here is the link to my blog : http://www.olivier.blanc.name/blog
Regards,
Olivier
|
Posted
almost 15 years
ago
by
Paolo Bonzini
Here come the pictures:
This is a resizer grip widget:
This is an ellipsis widget:
This is the stack/flow layout manager in action. The four buttons are in the same GtkHBox, but they wrap to the following line:
read more
|