From ThorstensHome
Revision as of 08:40, 5 August 2013 by WikiSysop (Talk)

Jump to: navigation, search




Just replaced

0f 84 04 06 00 00

in /usr/bin/vlc by

90 90 90 90 90 90

and I can finally start that thing as root :) Happy :) See how I found this out.


In C++, in a constructor, call a function that is declared as QString but does not do a return call, and the program will crash.



  • breakfast: I should migrate from the deprecated kcal to kcalcore


  • dinner at tristan
  • we should really do something about the websites
    • I seem to have a mutex, I write either code or tutorials, but not both.
  • the group photo people get older

kontact plugin


I want to run kdepim on my Nokia N900.

  • snapshot -> README.html Did not work -> Programmmanager -> Kataloge

  • experimental
  • testing


  • dinner at Rampendahl


Used openSuSE build serVice to build my reposiTory and watch the statUs

tweedleburg:~/osc/home:tstaerk/hello # osc build hello.spec 
Building hello.spec for openSUSE_Factory/x86_64
Getting buildinfo from server and store to /root/osc/home:tstaerk/hello/.osc/_buildinfo-openSUSE_Factory-x86_64.xml
Getting buildconfig from server and store to /root/osc/home:tstaerk/hello/.osc/_buildconfig-openSUSE_Factory-x86_64
Updating cache of required packages                                             
100.0% cache miss. 0/109 dependencies cached.                                   
(openSUSE:Factory) aaa_base-11.4-57.1.x86_64.rpm        100% |===========================| 113 kB    00:00     
(openSUSE:Factory) acl-2.2.48-11.9.x86_64.rpm           100% |===========================|  67 kB    00:00     
(openSUSE:Factory) attr-2.4.44-10.11.x86_64.rpm         100% |===========================|  47 kB    00:00     
(openSUSE:Factory) bash-4.1-23.1.x86_64.rpm             100% |===========================| 308 kB    00:00     
(openSUSE:Factory) coreutils-8.10-2.1.x86_64.rpm        100% |===========================| 1.0 MB    00:02     
(openSUSE:Factory) diffutils-3.0-1.4.x86_64.rpm         100% |===========================| 302 kB    00:00     
(openSUSE:Factory) filesystem-11.4-14.1.x86_64.rpm      100% |===========================|  50 kB    00:00     
(openSUSE:Factory) fillup-1.42-253.11.x86_64.rpm        100% |===========================|  19 kB    00:00     
<tacit> tstaerk: You'd have hello.tar.gz and hello.spec in a directory.
<tacit> tstaerk: The package working copy.
tweedleburg:~/osc/home:tstaerk/hello # ls
.osc  Makefile  hello.spec  hello.tar.gz  main.c
tweedleburg:~/osc/home:tstaerk/hello # tar tvf hello.tar.gz 
drwxr-xr-x root/root         0 2011-02-13 22:20 hello-1.0/
-rw-r--r-- root/root       423 2011-02-13 22:20 hello-1.0/hello.spec
-rw-r--r-- root/root       396 2011-02-13 22:20 hello-1.0/hello.spec~
-rw-r--r-- root/root       130 2011-02-13 22:19 hello-1.0/Makefile
-rw-r--r-- root/root        60 2011-02-13 22:19 hello-1.0/main.c
tweedleburg:~/osc/home:tstaerk/hello # cat hello.spec 
Summary: hello greets the world
Name: hello
Version: 1.0
Release: 1
License: GPL
Group: Applications/Tutorials
Source: hello.tar.gz
Distribution: SUSE Linux
Vendor: -
Packager: Thorsten Staerk

hello greets the world



make install prefix=$RPM_BUILD_ROOT

%defattr(-, root, root)
tweedleburg:~/osc/home:tstaerk/hello # osc build openSUSE_11.3 i586 hello.spec
tweedleburg finished "build hello.spec" at Sat Feb 19 14:16:55 UTC 2011.

tweedleburg:~/osc/home:tstaerk/krep # ls
.osc  krep.spec  krep.spec~  krep.tar.gz
tweedleburg:~/osc/home:tstaerk/krep # cat krep.spec
Summary: krep is a text file viewer with filtering capabilities
Name: krep
Version: 1.0
Release: 1
License: GPL
Group: Applications/Tutorials
Source: krep.tar.gz
BuildRequires: cmake libkde4-devel
Distribution: SUSE Linux
Vendor: -
Packager: Thorsten Staerk

krep is a text file viewer with filering capabilities. While viewing a text, you can add or remove filters. Only lines matching your filter conditions will be shown.


rm CMakeCache.txt && cmake . && make 

make install DESTDIR=%buildroot

%defattr(-, root, root)
<darix> tstaerk: if you are happy with your package you might consider submitting the package to the kde:apps project
<darix> and maintain it there
<darix> osc help submitrequest
<darix> for all the details see


  • updated mediawiki from 1.11alpha (r24196) to 1.16.0. Now these Expandable tables work.


German: Informationslogistik


Why IOPS rocks


Ulf writes

"Without further defining accomplishment, I'm convinced that almost any direct, first level accomplishment,does gradually lose significance and importance if one manager does consider the particular accomplishment for inclusion in their report.Three levels up the accomplishment has either been completely removed or rewritten to no good in compliance with the manager's agenda.

Reverse engineered this means that one has to write an intentionally manipulated report to feed information to upper management that may be more appealing than what's really happening. Either that, or the employee may procrastinate and calculate the impact of this endeavor relative to 'surviving' in a game that requires a lot of people to be played well, without any significant outcome."


great day. Wrote bold component for mediasyntax plugin:

 * Mediasyntax Plugin, bold component: Mediawiki style bold text
 * @license    GPL 2 (
 * @author     Thorsten Staerk
// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
 * All DokuWiki plugins to extend the parser/rendering mechanism
 * need to inherit from this class
class syntax_plugin_mediasyntax_bold extends DokuWiki_Syntax_Plugin {

  function getInfo()
    return array(
      'author' => 'Thorsten Stärk',
      'email'  => '',
      'date'   => '2010-04-18',
      'name'   => 'Mediasyntax Plugin, bold component',
      'desc'   => 'Mediasyntax style bold text',
      'url'    => '',

  function getType() { return 'substition'; }
  function getSort() { return 32; }
  function connectTo($mode) 
  function handle($match, $state, $pos, &$handler) 
    return array($match, $state, $pos);
  function render($mode, &$renderer, $data) 
    GLOBAL $bold;
    if($mode == 'xhtml')
      if (!$bold) 
        $renderer->doc .= "<b>";
        $renderer->doc .= "</b>";
      return true;
    return false;

//Setup VIM: ex: et ts=4 enc=utf-8 :


improved mediasyntax plugin for dokuwiki


Today I wanted to compile software on my N810. It did reboot during boot, so I had to update the firmware. Now I have to re-install openssh.