Open/save dialog goes to “recently used” list by default

Hi folks, I thought I’d stop by my blog to rant about a little GTK+ issue that has come up recently. GTK+ is known for its thoughtful design. For example, when you open a file chooser dialog box to open or save a file, the directory it initially displays is the last directory you used. …

Continue reading ‘Open/save dialog goes to “recently used” list by default’ »

Desktop Linux security complacency

Whenever the topic of viruses comes up on any tech-oriented public forum, we are often told by clueless commenters that Linux doesn’t have viruses because it is secure by design. When pressed, such people will talk of privilege separation in Linux. Sure, Windows has privilege separation too, and it has filesystem ACLs enabled by default, …

Continue reading ‘Desktop Linux security complacency’ »

Measuring memory usage with strace

In the tradition of abusing high-level Linux tools to produce useful low-level data, I present a method for estimating peak memory usage in Linux by text-processing the output from strace: measure-memory This Perl script invokes an arbitrary command via strace. It adds up memory allocated by mmap2() with no location hint and the file handle …

Continue reading ‘Measuring memory usage with strace’ »