Dear reader,

This site finally got its much-needed overhaul. I tried to keep existing pages at their original URLs.
Should you find an error, please do tell me at contact@aspyct.org.
Feel free to visit the new website, which may contain more documentation pertaining to your search.

Thank you for visiting aspyct.org, I hope you'll find what you're looking for.

Old Aspyct.org blog

 or  go to the new site.

shutils to the rescue

| Comments

Today I had to import about ~150 file entries into an XML file. Being a good lazy geek, I could not resign myself to copy/paste this over. With the help of Rake and some custom-tailored scripts, I made it through in no time :)

APServiceBox: cross-dependency injection

| Comments

APServiceBox had a little update today (v12.08.29). Now, when you call the fill: method for the first time, APServiceBox will first scan all its dependencies and fill them as well. Thus, you can have dependencies that depend on each other. All you have to do is register both dependencies into the container before you fill: your first object. Read on for an example.

Unix signal handling example

| Comments

UNIX signals can occur in various situations. For example, when you hit ctrl-C in the terminal, a SIGINT (interrupt) is sent to the process. Likewise, when you want to kill for sure a process, you’ll send it the SIGKILL signal. Read below for an example of signal handling on UNIX systems, including sigaction, sigsuspend, sigprocmask et al.