Posts Tagged ‘tinker’

Status RSS plugin for pidgin

As a pidgin user I am used at not expecting many fancy things but one of the features I’ve wished for some time is a plugin which updates the status automatically to the last entry in a RSS feed. As an example I’d like to update the status to the last post on my blog. So, even if I don’t like perl too much here is a simple plugin which does just that. It’s inspirationaly called: Status RSS :)

(more…)

Delete self-pings

It seems that self-pings are bad for Google page ranking. Well, I have never spended too much time thinking about SEO but I find them a bit clutering and thus I’ve decided to remove them. There are some plugins which block new self-pings but none which deletes the existing ones. So here is a mysql command which does just that:

Warning: don’t execute sql commands on your db if you don’t know anything about what sql is, it might ruin your base.

SELECT count(*) FROM {prefix}_comments WHERE comment_type = 'pingback' AND
    locate((SELECT option_value FROM {prefix}_options WHERE option_name = 'siteurl'), comment_author_url) = 1;
DELETE FROM {prefix}_comments WHERE comment_type = 'pingback' AND
    locate((SELECT option_value FROM {prefix}_options WHERE option_name = 'siteurl'), comment_author_url) = 1;

Replace the {prefix} with your db tables prefix.

Cum sa izolezi casa cu furnici

Pentru a raspunde noilor tendinte de tip: casa verde si casa ecologica va propunem spre evaluare o metoda inovativa pentru a realiza o izolare de inalta calitate a locuintei dumneavoastra. Testele efectuate au aratat rezultate de 99.99% in majoritatea cazurilor. O cerinta importanta o consta amplasamentul locuintei intr-o zona frecventata de furnici. Din fericire furnicile se gasesc in majoritatea habitatelor si formeaza intre 15-25% din masa animala terestra (vezi sursa).

Metoda de izolare consta in a introduce in interiorul locuintei o sursa dulce si apoi a o monitoriza cu atentie pe parcursul a cateva zile. Se va observa mai intai aparitia catorva furnici ce studiaza zona si apoi a unor intregi caravane de furnici. Prin urmarirea cu atentie a acestora se va putea identifica zona unde izolatia locuintei nu este perfecta (rosturi, imbinari tevarie, etc.). Se va proceda apoi la refacerea izolatiei folosind metode traditionale: tencuiala, silicon, etc. Se vor culege furnicile prin metode nedistructive si vor fi mutate in exteriorul locuintei. Se va continua monitorizarea. In scurt timp o noua caravana se va forma respectiv indicand o noua zona de izolatie imperfecta. Se va repeta procedura anterioara de cate ori este nevoie avand in vedere ca metoda reuseste sa detecteze probleme de izolatie cu diamentrul de pana la 1mm. Se va considera locuinta izolata cand in timp de 7 zile nu se va observa un nou flux de furnici.

Aceasta metoda are un cost scazut in raport cu metodele complicate de detectie a problemelor de izolatie si in plus are avantajul ca orice problema va fi imediat detectata prin aparitia unui nou aflux de furnici nefiind nevoie decat de reaplicarea procedurii descrise anterior pentru a reface problema aparuta.

Python xml namespace parsing with libxml2

The goal of this tinkering was simple: to parse a KML file for further interpretation and use using python and libxml2. (more…)

Tethered capture with ubuntu and D450

Shooting a photo and the imediately seeing it on a large monitor is a feature I’ve always wished. I don’t say live view on a display but instant copy and display would suffice. And actually, as I found out, it’s quite easy to achieve on Ubuntu Linux (10.04) with a Canon D450. (more…)

Holux M-241 GPS

Read track via USB

gpsbabel -t -w  -i m241 -f /dev/ttyUSB0 -o gpx -F test.gpx

(more…)

Ubuntu Lucid Lynx

There was not much I expected from the new ubuntu Lucid Lynx as I was happy enough with the existing version already. But I a good tradition and because I woke up at 8:30 this Saturday I decided to go ahead and install it on my Dell D820.

The install

The install went smoothly, everything was detected, installed the upgrades, the nvidia drivers and some day to day packages: mozilla-thunderbird, pidgin, emacs.

(more…)

asdoc pain

Running asdoc should have been a breeze. Just create an ant task which calls the asdoc executable with the given parameters and voila! Well, it was not.

<target name="compile">
<exec executable="${asdoc}" failonerror="true">
<arg line="-doc-sources ${src.dir}"/>
<arg line="-window-title "My Application""/>
<arg line="-output ${asdoc.output}"/>
</exec>
</target>
 (more...)

Habits

Today I’ve decided to install an updated version of a complicated perl webapp (won’t name it). After compiling libraries, installing packages, installing cpan packages, recompiling, matching version, checking for compilation errors I realized almost 4h had passed and I was still at the dependencies. 1h later the application was installed but still a bug had to be found. So I began searching on the web again. Then it struck me. How much time did I loose in my life compiling, installing, searching for bugs and incompatibles versions? I think it was too much. So I decided to enjoy my weekend and closed the computer. 30 mins later I was opening it again …

JBoss migration 4.2.2-GA to 5.1.0-GA

In my stupidity innocence I just hoped that deploying the application on the new JBoss (from 4.2.2-GA to 5.1.0-GA) should be just a simple matter of changing paths in ant. Here are some problems I encountered and was able to fix. (more…)

Related Posts with Thumbnails