Rerender proxy clips in Kdenlive

Galeon Posted in Note to myself
0

How to render proxy clips in Kdenlive again (e.g. after you’ve change the quality settings for the proxies):

Double click the clip in the project tree and click the button “Delete proxy”. After that the proxy clip should be created again.

mysql_ Muninplugin is missing Cache::Cache

Galeon Posted in Linux, Note to myself
0

The default setup for Munin in Debian seems to miss some packages for the mysql_ plugin.

/usr/share/munin/plugins/mysql_ suggest

will give you

Missing dependency Cache::Cache at /usr/share/munin/plugins/mysql_ line 716.

The solution was easier than excpected:

aptitude install libcache-cache-perl

and done.

Beware the difference between split & tokenize

Galeon Posted in Groovy & Grails, Note to myself
0

There is a little difference between tokenize and split in Groovy:

def csv = "1,,3,4,5"

println csv.split(",")
println csv.tokenize(",")

results in

[1, , 3, 4, 5]
[1, 3, 4, 5]

Note that tokenize ignores the empty element.

Edit: I just found this blog-post covering the same topic

Resource on writing Magento plugins

Galeon Posted in Note to myself, PHP
1

I’ve poked around the web for while to find some good resource about how to add my own controller to Magento and this turned out very usful:

http://www.about-magento.com/magento-developper-guide-howto-tutorial-5

Thanks to Pierre! =)

Reset OpenVZ Web Panel password

Galeon Posted in General Stuff, Linux, Note to myself
0

Onliner found here to reset a user password for the OpenVZ Web Panel (admin in this case)

ruby /opt/ovz-web-panel/script/runner -e production 'user = User.find_by_login("admin"); user.password = "admin"; user.save(false)'

Problem installing Ubuntu 11.10

Galeon Posted in Linux, Note to myself
0

Having problems  installing Ubunut 11.10 via USB “An attempt to configure apt to install additional packages from the CD failed”

Use this:

sudo rm /usr/lib/ubiquity/apt-setup/generators/40cdrom

Runit fails on Debian vServer

Galeon Posted in Linux, Note to myself
0

I’ve setup a fresh vServer-environment for a few test and developmentmachines to play around with.

When I tried to install gitolite via aptitude everything fails and the whole system is near an explosion:

root@git:~# aptitude install git-daemon-run runit
The following partially installed packages will be configured:
  runit
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
/bin/sh: /usr/bin/apt-listchanges: not found
Setting up runit (2.1.1-6.2) ...
kill: 49: No such process

dpkg: error processing runit (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 runit
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up runit (2.1.1-6.2) ...
kill: 49: No such process

dpkg: error processing runit (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 runit

Maybe this can help someone, because below a bunch of mails on the Debian mailinglist there is a bugreport with a workaround:

If you try to install the runit package, and after the failure remove
the SV inittab entry, edit /var/lib/dpkg/info/runit.postinst and remove
the 'kill -S HUP 1', and then run 'dpkg --configure runit', does the
installation succeed, and if yes, is a runsvdir program running?

Yes it does! At least for me.

Bulk rename files (.html to .php)

Galeon Posted in Linux, Note to myself
1

I just had the case that I needed to rename all old .html-files into .php for a large website.

This little command did it for me

find . -name "*.html" -exec rename -v 's/\.html$/\.php/' {} \;

Serving static files with grasshopper in nodejs

Galeon Posted in Javascript, NodeJS, Note to myself
0
var gh = require('grasshopper');

gh.configure({
    staticsDir: 'public'
});

NodeJS on Debian

Galeon Posted in Javascript, Linux, NodeJS, Note to myself
0

Install first:

  • build-essential
  • libssl-dev (needed because of: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure –without-ssl to disable this message)

than the install will work smoothly =)