Skype logs archiving on linux

I keep migrating my Skype logs from installation to installation and they are getting pretty large. As they are binary files there is no easy way to split them properly. However I’ve found this tool which parses the logs and outputs the entries. The output however it’s not that usable. For this reason I’ve wrote a python script which organizes the output from the previous tool and generates files in the form: logs/skype-name/date....

April 14, 2012 · len

Timelapse videos

To create timelapse videos as the one in the previous post or this one here are some simple steps: 1. connect the camera (Canon 450d in my case) to the computer and turn it on 2. unmount it if it’s mounted automaticaly 3. run the following script (timelapse.sh) to capture images to the computer: <pre lang="bash">#!/bin/bash for i in $(seq 900); do no=$(printf "%04d" $i) gphoto2 --capture-image-and-download --filename="timelapse-$no.jpg" sleep 15s; done You can adjust the number of images or the sleep interval....

March 27, 2012 · len

Insert blob in Oracle

Assuming you have the following Oracle table: <pre lang="sql">create table icon(id number(19), icon blob); these are 2 methods I found for inserting the value of a file in the icon.icon column. Method 1 This is the most commonly found method: <pre lang="sql">CREATE OR REPLACE PROCEDURE load_icon (imagefile VARCHAR2) IS src_file BFILE; dst_file BLOB; icon_id NUMBER(19,0); BEGIN src_file := bfilename('TEMP', imagefile); -- insert a NULL record to lock INSERT INTO icon (ID, ICON) VALUES (icon_sequence....

January 26, 2012 · len

motp html5 app

After the Adobe Flex incident I spent a lot of time searching for a real RIA experience library and I found none. The truth is that I could not find any library which allows for the same ease of development, rich interface, multi-platform stability and advanced OOP language. Being fueled by marketing and buzz is not enough to have something solid to develop any kind of real RIA with ease....

January 8, 2012 · len

Backup, backup, backup

This is a short collection of subjects related to preventing, detecting and fixing a broken hdd from a raid1 array. Which drive is broken? 1. Check for messages in dmesg [ 1040.470282] ata1.00: device reported invalid CHS sector 0 [ 1040.470287] ata1: EH complete [ 6373.208104] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen [ 6373.214488] ata1.00: failed command: FLUSH CACHE EXT [ 6373.221215] ata1.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0 [ 6373....

December 20, 2011 · len

Change thunderbird default http browser in Xfce

Since I migrated to Xfce it seems thunderbird does not uses the default browser setting nor the /etc/alternatives/x-www-browser. The solution to change the default browser to chrome for example is to go to Preferences/Advanced/Config editor and change the network.protocol-handler.warn-external.http to true. This way next time you will open a link you will be prompted to select a browser and you can choose to remember the setting. Comments: ghantoos - Apr 1, 2012 Thanks for the share!...

November 30, 2011 · len

xubuntu

Why? After having, and not using, Ubuntu 11.10 on my laptop for some time, trying in vain to get used to it, I realized I cannot resist the urge to update so I decided to search for alternatives. One was xubuntu which has an xfce4 based interface which I could customize in about 15 mins to look and feel exactly as I was used to. As such I migrated to xubuntu 11....

November 12, 2011 · len

How to skip SPF checking for an user with Postfix

This shows how to do special SPF checks for a special recipient. Since the man pages contain wrong examples I’ve decided to read the code myself, from /usr/lib/python2.6/dist-packages/policydspfuser.py. This applies to Ubuntu 10.04. 1. Create a text file containing the exceptions. I created a file called: /etc/postfix-policyd-spf-python/userconf. The man page gives the following example which is wrong: postmaster@example.com,{'Mail_From_reject'='No_Check'|'PermEr‐ ror_reject'= 'False'|'HELO_reject'='SPF_Not_Pass'|'defaultSeedOnly'= 1|'debugLevel'= 5|'skip_addresses'='127.0.0.0/8,::ffff:127.0.0.0//104,::1//128'| 'Tem‐ pError_Defer'='False'} the correct format is: Mail_From_reject=No_Check|PermError_reject=False|HELO_reject=SPF_Not_Pass|defaultSeedOnly=1|debugLevel=5|skip_addresses=127.0.0.0/8,::ffff:12\ 7.0.0.0//104,::1//128|TempError_Defer=False 2....

November 8, 2011 · len

Why I will probably not use Ubuntu 11.10 Oneiric Ocelot

Each time a new Ubuntu version appeared I was writing an article on how I upgraded and tested it on my laptop. It was not the case for the last version, since ever since Lucid Lynx it seemed everything is on a descending slope as far as I am concerned. Yet these days, in one of my iterations for features I tried to install evince 3 (finally pdf bookmarks!) and realized that so many new versions and unmet dependencies exist, that it might be time to update....

October 16, 2011 · len

libvirtError: Unable to deny all devices for

While trying to setup a bunch of virtual machines to test some multi-machine configuration I run into this strange error: libvirtError: Unable to deny all devices for mcc1, no such file or directory There are some threads on the net for this problem and they all relate to cgroups but I don’t have either cgroups-bin or libpam-cgroups installed. I had however this configured in rc.local: mkdir -p /dev/cgroup/cpu mount -t cgroup cgroup /dev/cgroup/cpu -o cpu mkdir -m 0777 /dev/cgroup/cpu/user echo "/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent Unmount cgroup did not fixed the problem either and a new problem occured: cannot create cgroup for mcc1....

September 5, 2011 · len