Total Pageviews

Wednesday, December 7, 2011

Shortcut keys for special characters

http://www.nouilles.info/keyboard_shortcuts.html

Saturday, December 3, 2011

Online safe HTML encoder

If you want to post XML or HTML source code into your blog, try use the encoder/formatter/converter below:

Generate md5 hash in command line

Sunday, November 20, 2011

Switch to HEX edit mode using VIM

  • Enter hex edit mode:
    %!xxd
  • Exit hex edit mode:
    %!xxd -r

Re-map HOME END keys on Mac OS

Edit ~/Library/KeyBindings/DefaultKeyBinding.dict:


"\UF729"  = "moveToBeginningOfLine:";                   /* Home         */
"\UF72B"  = "moveToEndOfLine:";                         /* End          */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";       /* Shift + End  */

See also


Saturday, November 12, 2011

DOKUWIKI: modify arctic template to support mobile devices

1. Create arctic_mobile.css. The aim of the mobile CSS is to : 
  • Reduce all margins and paddings. 
  • Remove all float (right or left). There will be only one collumn with sidebar in the bottom. 
  • Maximize the width of the div.
body {
  margin: 0.1em;
}
 
div#wrapper {
  width: 98%;
  padding: 0.1em;
}
 
div.dokuwiki div.right_sidebar, div.dokuwiki div.left_sidebar {
  float: none;
  width: 99%;
}
 
div.dokuwiki div.right_page, div.dokuwiki div.left_page {
  padding: 0;
  width: 99% !important;
}
 
div.dokuwiki div.toc {
  float: none;
  width: 99%;
  margin: 0.1em;
}

2. Modify main.php
 
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />
<link rel="stylesheet" media="only screen and (max-device-width: 599px)" type="text/css" href="<?php echo DOKU_TPL?>arctic_mobile.css" /> 
Orgin from: http://blog.slucas.fr/en/oss/dokuwiki-arctic-mobile