Blog

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

Jump to: navigation, search

Contents

2013-07-13

2011-11-26

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.

2011-09-28

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.

2011-08-06

2011-02-27

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

2011-02-26

  • 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

N900

I want to run kdepim on my Nokia N900.

  • snapshot

http://files.kolab.org/local/maemo -> README.html Did not work -> Programmmanager -> Kataloge

  • experimental
  • testing

2011-02-25

  • dinner at Rampendahl

2011-02-19

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     
  8/109
<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
URL: http://www.staerk.de/thorsten/
Distribution: SUSE Linux
Vendor: -
Packager: Thorsten Staerk

%description
hello greets the world

%prep
%setup

%build
make 

%install
make install prefix=$RPM_BUILD_ROOT

%files 
%defattr(-, root, root)
"/usr/local/bin/hello"
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.

https://build.opensuse.org/project/show?project=home%3Atstaerk

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
URL: http://www.staerk.de/thorsten/krep
Distribution: SUSE Linux
Vendor: -
Packager: Thorsten Staerk

%description
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.

%prep
%setup

%build
rm CMakeCache.txt && cmake . && make 

%install
make install DESTDIR=%buildroot

%files 
%defattr(-, root, root)
"/usr/local/bin/krep"
<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 http://en.opensuse.org//openSUSE:Build_Service_Collaboration

2010-12-11

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

2010-11-01

German: Informationslogistik

2010-06-28

Why IOPS rocks

2010-06-04

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."

2010-04-18

great day. Wrote bold component for mediasyntax plugin:

<?php
/**
 * Mediasyntax Plugin, bold component: Mediawiki style bold text
 * 
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Thorsten Staerk
 */
 
// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');
 
/**
 * 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'  => 'dev@staerk.de',
      'date'   => '2010-04-18',
      'name'   => 'Mediasyntax Plugin, bold component',
      'desc'   => 'Mediasyntax style bold text',
      'url'    => 'http://wiki.splitbrain.org/plugin:mediasyntax',
    );
  }

  function getType() { return 'substition'; }
  function getSort() { return 32; }
 
  function connectTo($mode) 
  {
    $this->Lexer->addSpecialPattern('\'\'\'',$mode,'plugin_mediasyntax_bold');
  }
 
  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>";
        $bold=true;
      }
      else
      {
        $renderer->doc .= "</b>";
        $bold=false;
      }
      return true;
    }
    return false;
  }

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

2010-04-03

improved mediasyntax plugin for dokuwiki

2009-12-29

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.