Blogs

Making my Osmocom Smalltalk packages available for Pharo

Tagged:  •  

In the last two years I have developed some Smalltalk packages that help me with (mobile) communication related tasks and I began making them available for Pharo as well. I'm using the gst-convert utility to do the conversion and the goal is to have this work as automatically as possible.


  • OsmoLogging is another logging framework modeled after the framework we developed for C. Besides having multiple backends (Transcript, syslog) and log levels there are some unique features.

What to do about GNU?

Tagged:  •    •    •  

About a month ago, I released GNU sed version 4.2.2 and included in the release a "rant" (more of a criticism, perhaps—I'm not a native speaker) about the state of the GNU project.

I made it clear that I had no philosophical disagreement with FSF; in fact, that's likely the reason why almost no one took my post as an occasion to attack the FSF and Richard Stallman. To the few that did: guys, you clearly missed the point. I wrote that text because I want free software and the FSF to be successful. My concern is that if GNU loses, the FSF loses—even if some other piece of free software happens to win.

GNU Smalltalk deployment with images and image resumption

Once up on a time I was sitting in a cold hall at the Barcelona exhibition ground, a power outage has taken down several DVB-H platforms (racks consisting of servers, streamers, RF equipment...) and once power was restored red LEDs were blinking, systems not coming up automatically, hordes of engineers trying to boot the right kernel, trying to remember the multicast routes they had typed in by hand, chaos, hectic. It was interesting to witness that as we could lay back, continue with our work, as our platform was configured to come up automatically and it did.

Simple XML Creator

Tagged:  •  

Hello,

This is an extremely simple XML creator to create simple XML files quickly. The usage is like this:

html := XMLNode new: 'html'.

body := html add: (XMLNode new: 'body').
body at: 'bgcolor' put: '#ff0000'.

h1 := body add: (XMLNode new: 'h1').
h1 value: 'My Heading'.

p := body add: (XMLNode new: 'p').
p value: 'My paragraph'.

html fileOut: '/home/myhome/sample.xml'.

Which creates an XML file with the following content:

<html>
        <body bgcolor="#ff0000">
                <h1>My Heading</h1>
                <p>My paragraph</p>
        </body>
</html>

You can download the package via:

gst-package --download SimpleXMLCreator -t ~/.st

or from:

Creating custom stock items in GTK+

Tagged:  •    •    •  

Let's say you want to put a tool button with a custom image, which is not among the stock items, to the toolbar of your GTK+ application. Here is the code for creating additional stock items from custom images:

"Variously sized versions of an image is held inside an icon set and icon sets are held inside icon factories. You may put one size of an image inside an icon set and GTK+ will scale it appropriately for your usage."

"First create an icon factory."
myIconFactory := GtkIconFactory new.

"Add that factory as a default icon factory so that the icons inside it can be found by the application."
myIconFactory addDefault.

"The image we want to create the icon from."
myImage := GtkImage newFromFile: 'Path/To/My/Image.png'.

Syndicate content

User login