Rails::Generator destroys Namespaces

The cool thing is that Rails’ script/generator script can be invoked via an API call Rails::Generator::Scripts::Generate.new.run(%w(controller blog), :destination => ‘/tmp’) so you can create assets in your code, or test the generator. Where is my JavascriptGenerator? The bad thing is, that after you used Rails::Generator, you can’t rely on autoloading anymore, at least for classes… Continue reading Rails::Generator destroys Namespaces

Skype complains “can’t write to file” when receiving upload

When a friend tried to upload some files via Skype to my PC it kept failing, Skype 2.1.0.47 for Ubuntu complained “can’t write to file” as soon as I accepted the upload. Here’s the solution: First, I created a world-writable directory mkdir /home/nick/skype-uploads chmod 777 /home/nick/skype-uploads I opened the File Transfer dialog, clicked the sprocked… Continue reading Skype complains “can’t write to file” when receiving upload

OpenOffice Impress doesn’t show videos on Ubuntu

After copying a presentation from my laptop to my desktop box (which’s running OpenOffice.org 3.1.1) the embedded AVI videos didn’t show up anymore. The error message: “The format of the selected file is not supported.” It turned out that the JRE was missing gstreamer. The solution sudo apt-get install ubuntu-restricted-extras

Perl CGI Scripts are cached after switching to mod_perl

I recently had to port a very old perl project to a new server, which is running mod_perl- that made me some headache as I didn’t know anything about that environment. Pages with dynamic form input from CGI::param suddenly seemed to be “cached”, the script did process old variables and emitted wrong output. After diggin’… Continue reading Perl CGI Scripts are cached after switching to mod_perl

Painless text-editing with Scribes 0.4 on Ubuntu

Colleagues keep laughing at me. It seems that I missed the point in a programmer’s life where he faces a shimmering light at the end of the dark terminal tunnel, where he suddently gets enlightened… and switches to eclipse or Textmate. Being an IDE-reject I’m used to work with bare-bones text editors, which support syntax-coloring,… Continue reading Painless text-editing with Scribes 0.4 on Ubuntu