Betrayed by adobe

In the last few days I tried to find as much information as possible on the Adobe Flash decision to stop developing flash on mobile platforms. Some called it “the death of flash” even if the statement issued by Adobe is much unclear to me. After reading and reading posts and comments all over the net I got increasingly frustrated and decided to write down some of my thoughts on the subject....

November 21, 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

Enable ehcache debug in jboss

I’ve been trying to setup ehcache clustering in JBoss and unless there is a problem I’ve noticed there is little logging involved. So enabling logging should be a straightforward operation, I said. And it sure is if you bother to consider that the default ehcache distribution uses slf4j which is packed only with the jdk logger. So by default no matter how much you configure log4j no logging will be done....

November 9, 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

Call Oracle procedure from hibernate

After debuging for a few hours I’ve found the proper way of calling an Oracle function from hibernate and to use the return parameters. Here is the solution. The Oracle SQL function which returns -1 or 0: <pre lang="sql">create or replace function checkLastNPass (userId IN number, ... other params) RETURN SYS_REFCURSOR is st_cursor SYS_REFCURSOR; prevId number:= userId; ... other scope variables begin ... OPEN st_cursor FOR select -1 as retVal from DUAL; return st_cursor; ....

October 17, 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

Quickly combine pdf files

Quickly combine pdf files in 2 easy steps: 1. Install required packages apt-get install gs<del> pdftk</del> 2. Combine 1.pdf and 2.pdf into out.pdf gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=out.pdf -dBATCH 1.pdf 2.pdf Comments: Adi - Aug 3, 2011 So.. at which point did you use pdftk? :) len - Aug 3, 2011 @adi -sDEVICE=pdfwrite :) Adi - Aug 3, 2011 Actually, pdfwrite is part of gs len - Aug 4, 2011 You are right, I stand corrected :)...

August 5, 2011 · len

Cut, reverse and combine GPS tracks

When I plan a cycling trip I search for tracks in the target area and try to maximize the “fun factor”. Thus I often end up with a bunch of tracks from which I want to use parts. The difficult task is to cut, sometime reverse and combine the source tracks into a planned track. Most of the times this seems a too much waste of time since it involves a number of operations in qlandkarte (cutting and combining) and gpsbabel (reversing)....

August 2, 2011 · len

When is the old hardware nothing more than junk?

Do you still have your first computer? Your first laptop? As years go by we tend to accumulate a lot of old hardware which, at least in our mind, hold some value, at least a sentimental one. Yes, I still have my first laptop but I also have many generations of hardware of all types in between. How can I throw away that server which I used for 3 years, it must be still usable somehow!...

July 22, 2011 · len