Quantcast
Channel: Stephen Woolerton's blog
Browsing latest articles
Browse All 11 View Live
↧

System calls

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 |...

View Article


Scripting example - regular expressions and Dictionaries

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...

View Article


Scripts - file and folder enumeration

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...

View Article

Mail scripting

I recommend you browse the NetClients package to see methods to show POP mail attributes, e.g. sender, destination, content.POP mail snippet PackageLoader fileInPackage: 'NetClients'. popHost :=...

View Article

Intro to Packages and NameSpaces

In GNU Smalltalk package loading and namespaces are separate.If like me you've come from Java, it takes an example to see what this means in practice.Here is a very simple example using sockets (found...

View Article


Figuring out a new library

One thing I've come across with open source Smalltalks is that there is often no formal documentation for a Library.So, coming from Java and commercial programming, I'm like "where is the documentation...

View Article

Observations on the development process

When using other scripting languages for server scripting, the result has been a file (sometimes large), but generally a single file.I'm finding I now do things differently and I think better in GST....

View Article

Smalltalk problem for someone - extract firstname,lastnames

The issue is to extract the firstname and lastNames from a string called fullname.e.g. fullname of "michael john horatio bassett" -> firstname "michael" and lastnames "john horatio bassett"Below is...

View Article


C Callouts

I've posted an intro on how to do C Callouts from GNU Smalltalk...here

View Article


C Callouts #2

And here is a second tutorial on C callouts from GNU Smalltalk.http://artinamessage.wordpress.com/2013/07/07/gnu-smalltalk-with-c-callo...

View Article
Browsing latest articles
Browse All 11 View Live