At a new $HOME

Finally everything (hopefully) has been moved — if you read this post, the DNS you use has been updated to the new IP.

Sorry it has taken a while, this type of configuration is fairly new to me and a little bit more complex than the previous one — including the upgrade of all the software I was using, and an operating system swap.
I hope this setup will be stable for a while: it carries some of the advantages you will always hope you’ll not be using but that will be extremely useful those few times (remote reboots anyone?).

Last but not least, I’d like to thank both the people who have been hosting my old machine (you know who you are) and those hosting the “new” one.

All these people have always been extremely kind and helpful even when they had no other particular reason than friendship.
I have a long list of beers that I owe them and I’m determined to pay down my debt :)

National Internet filtering/censorship in Australia

Watch and share the video above of three of the worlds leading IT security experts talking about MANDATORY national internet filtering/censorship in Australia. This is the first test run of nationwide mandatory censorship in a western democracy. It cannot be allowed to succeed or to infect other countries. There is a war being waged once more against the open nature and collaborative power of the internet. The internet is a giant mirror held up to humankind. We should fix the root causes of our issues, rather than sweep the bits under the carpet and cripple the medium.

Interviewees:

  1. Dan Kaminsky, Director
  2. Pete Lindstrom, Director
  3. Marcus Ranum, Chief Security Officer

http://www.nodecity.com/empower

Compiling Focusblur plug-in with FFTW on OSX

In the last period I’ve been playing a lot with fake tilt shift images, waiting to be able to afford one of the expensive real TS lenses on the market.
I work on all the images using The Gimp, which is a great piece of software, full of features – but it lacked the specific effect I wanted to give to my photos.
At first I used gaussian blur, but I couldn’t quite obtain what I was looking for.

Then I discovered that wonderful plugin that is focusblur.
However, on Mac there’s no precompiled version distributed by the author.

No problem. I downloaded a copy, re-compiled The Gimp using Mac Ports (by the way, the last 1.7 version rocks!) and compiled a version of the plugin.
At that time, I did not compile it with support for FFTW, a free and fast library to compute the discrete Fourier transform.
Tonight I gave it another shot, and these are my findings and my solution:

First of all, focus blur looks (using pkg-config) for a library named “fftw3f“, while the ports installed version is called “fftw3“. It’s not a typo, and it took me a while to realize it.
The “standard” fftw package that gets installed with the ports is not suitable to be linked with the focusblur plugin, and will give you linking errors similar to these (putting them in for the search engines)

Undefined symbols:
"_fftwf_plan_dft_c2r_2d", referenced from:
_focusblur_fft_buffer_update in fftblurbuffer.o
"_fftwf_execute", referenced from:
_focusblur_fft_buffer_make_kernel in fftblurbuffer.o
_focusblur_fft_work_apply in fftblurproc.o
_focusblur_fft_work_apply in fftblurproc.o
"_fftwf_free", referenced from:
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
_focusblur_fft_work_free_buffers in fftblurproc.o
"_fftwf_plan_dft_r2c_2d", referenced from:
_focusblur_fft_buffer_update in fftblurbuffer.o
"_fftwf_destroy_plan", referenced from:
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
_focusblur_fft_buffer_clear_work in fftblurbuffer.o
"_fftwf_malloc", referenced from:
_focusblur_fft_buffer_update in fftblurbuffer.o
_focusblur_fft_buffer_update in fftblurbuffer.o
_focusblur_fft_work_add_buffer in fftblurproc.o

You will need one version that has to be compiled with these options:

./configure --enable-shared --enable-float

this will give you a version that is likable against focusblur.
I just downloaded, compiled and installed another version of fftw into /opt/local (not safe, not nice, not elegant – but it was the fastest solution).
*UPDATE*: I did not notice there is a port named “fftw-3-single”, which among the options of configure.args in the Portfile lists the two options above.
On my mac, it is in

/opt/local/var/macports/sources/rsync.macports.org\
/release/ports/math/fftw-3-single

If you happen to use it, please confirm if it works correctly (I’m too lazy).

Then, configure focusblur and check that it recognized the fftw library. It looks for it using the command

PKG_CONFIG --exists --print-errors "fftw3f"

(look for it in the configure script). To be safe, you may want to

export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/

If the compiling still gives you troubles, check that it’s linking against the new library (there should be a -lfftw3f in the compiling lines).
Last, but not least, check that the newly obtained executable is really linked against fftw:

beepbeep:src zen$ otool -L focusblur | grep fft
/opt/local/lib/libfftw3f.3.dylib (compatibility version 6.0.0, current version 6.2.0)

Then after copying the plugin to your location of choice (I prefer to keeping them inside my $HOME into .gimp-2.6/plug-ins), fire up The Gimp and enjoy the new accelerated focusblur!
Have Fun!

*UPDATE* @20090122: I didn’t put in a link to download it, which may be useful to some people.
Sorry guys, only i386 Mach-O executable… Get it here

Jon Postel, a dieci anni dalla morte

6 Agosto 1943 – 16 Ottobre 1998
http://en.wikipedia.org/wiki/Jon_Postel

Jon was a founding member of the Internet Architecture Board and
served continuously from its founding to the present. He was the
FIRST individual member of the Internet Society I know, because he
and Steve Wolff raced to see who could fill out the application forms
and make payment first and Jon won. He served as a trustee of the
Internet Society. He was the custodian of the .US domain, a founder
of the Los Nettos Internet service, and, by the way, managed the
networking research division of USC Information Sciences Institute.

Jon loved the outdoors. I know he used to enjoy backpacking in the
high Sierras around Yosemite. Bearded and sandaled, Jon was our
resident hippie-patriarch at UCLA. He was a private person but fully
capable of engaging photon torpedoes and going to battle stations in
a good engineering argument. And he could be stubborn beyond all
expectation. He could have outwaited the Sphinx in a staring
contest, I think.

I REMEMBER IANA, Vint Cerf
http://tools.ietf.org/html/rfc2468

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close