Extending an LVM volume

The following commands adds a new partition to an existing lvm volume. Tested on Ubuntu 10.04. First, find out your volume name using: sudo vgdisplay

Afatech 9015 in Linux

I recently got a noname USB DVB-T receiver which I’ve been trying to get to work on my Debian GNU/Linux laptop. While inserting the device, here’s syslog output:

Dovecot process gone bezerk

Today I’ve had some serious battles with Dovecot running on a wild cpu time spending spree. I recently made an apt-get upgrade on my Debian system. Somwhere in there things went awkward. An imap process simply wouldn’t stop on /etc/init.d/dovecot stop nor kill -9 [dovecot-pid] The process took 100% cpu and eventually the whole system, including kernel, froze. Had to cold reboot it via IPMI three times! Thank god for IPMI.. Anyways I found this mailing thread with the same issue. What seems to have solved to problem for me was to upgrade Debian from lenny to unstable, including the latest Debian kernel (2.6.32.2-686) and Dovecot 1:1.2.10-1 and keeping my fingers crossed while rebooting. I also noticed some complaints for a missing “cpusieve” plugin. Uncommenting plugin = cmusieve in dovecot.conf was necessary.

Writing a simple jQuery slideshow plugin

I needed to write a simple slideshow plugin for jQuery which basically showed all content inside of a div one by one. This plugin will list all child elements of the selector and make them clickable. ;(function(jQuery) { jQuery.fn.tinyslideshow = function(settings) { var config = {path:’’}; if (settings) jQuery.extend(config, settings); var imgs; var currentIndex=-1; function _next() { if (currentIndex == imgs.length-1) currentIndex = 0; else currentIndex++; _goto(currentIndex); } function _prev() { if (currentIndex == 0) currentIndex = imgs.length-1; else currentIndex–; _goto(currentIndex); } function _goto(i) { try { currentIndex = i; imgs.hide(); jQuery(’.ts-nav-link’).css(‘color’,’#696969’).eq(i).css(‘color’,’#4092ca’); imgs.eq(currentIndex).fadeIn(); } catch (e) {} } this.each(function(e) { imgs = jQuery(this).children(); imgs.click( function(e) { e.preventDefault(); _next() } ); var html = ‘’; html += ‘’; for (var i=0; i<imgs.length; i++) html +=  ‘ ‘+(i+1)+’   ‘; html += ‘’; html += ‘’; jQuery(html).appendTo(jQuery(this)); jQuery(this).find(’.ts-nav-link’).click( function(e) { e.preventDefault(); _goto(jQuery(this).attr(‘rel’)); }); jQuery(this).find(’.ts-nav-next’).click( function(e) { e.preventDefault(); _next(); } ); jQuery(this).find(’.ts-nav-prev’).click( function(e) { e.preventDefault(); _prev(); } ); _goto(0); }); return this; }; })(jQuery);

Datalagringen - eller om sju systrar och makten framför allt

Följetången om datalagringsdirektivet fortsätter och övervakningssamhället kryper allt närmare. Igår visade (MP) och (V) att man sätter makten framför allt, även när det innebär att gå emot egna ideal och svika sina väljare. Man är beredda att rösta för datalagringsdirektivet i riksdagen. Thomas Bodström (S) är förstås nöjd, som själv varit drivande i EU för att ta fram direktivet. Böter väntar nu Sverige som dömts i EU-domstolen för att varit senfärdiga med att införa direktivet i svensk lag. Den borgerliga regeringen vågar inte ta i frågan före valet, det säger man nästan rakt ut. Man vill helt enkekt inte ha en ny FRA-debatt såhär pass nära inpå valet. Nu råder det konsensus i riksdagen, datalagringsdirektivet ska införas, det är samtliga 7 riksdagspartier överens om. Likväl kommer svenska skattebetalare tvingas stå för notan för ett politiskt spel. Skicka notan till partihögkvarteren istället.