Blog

From ThorstensHome

Jump to: navigation, search

Contents

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.

Personal tools