Sunday, August 16, 2009

Wiki Compilers

Wiki compilers are great for those less blessed people who has an account in a web server but only with static pages( i.e University , Corporate Home pages). They work the same way a compiler works, produces ( actually compiles the wiki syntaxes into static html) offline contents of the static site beforehand.

Wiki Compilers
  1. Wiko
  2. ikiwiki
  3. WikiWikiWftk!
I like the Wiko one a lot. See the creator's(Pau Arumi) page generated by this wiki engine. And the syntax is very similar to Wikipedia and Markdown.

Emacs-Muse
You can also use Emacs-Muse to manage a static web site. Alex Ott maintains a nice web site with Muse.

Markdown

This is the simplest approach, it just generates html from markdown files. Markdown syntax is very easy to work with, and it can readily convert simple text files to html files with footnotes, references, links, etc.

Org-Mode
Emacs' Org-mode can generate htmls (as well as lots of other formats, I use it to take my notes and generate technical documentation for softwares, it helps me to generate info/pdf/html/text documents from a single source. Very handy).

Thursday, June 4, 2009

Save your emacs Fingers

To save my emacs fingers, I swapped all CTRL and ALT keys in the keyboard, and also mapped the CAPS LOCK key to the ALT.

Here is the xmodmap code in my Thinkpad T41p for swapping CTRL and ALT keys.

These keycodes are system-specific. Use `xev` to find out the keycodes in your system before applying this `xmodmap` script.


!
! This is an `xmodmap' input file for
! PC 105 key, wide Delete, tall Enter (XFree86; US) keyboards.
! Automatically generated on Sat Nov 22 23:28:24 2008 by xxxxx with
! XKeyCaps 2.47; Copyright (c) 1991-1999 Jamie Zawinski; 2005-2006 Christoph Berg.
! http://www.jwz.org/xkeycaps/
!
! This file presupposes that the keyboard is in the default state, and
! may malfunction if it is not.
!
remove Lock = Caps_Lock
remove Control = Control_L Control_R
remove Mod1 = Alt_L Alt_R
remove Mod4 = Meta_L Meta_R
remove Mod5 = Scroll_Lock

keycode 0x42 = Alt_L Meta_L
keycode 0x25 = Alt_L Meta_L
keycode 0x40 = Control_L
keycode 0x71 = Control_R
keycode 0x6D = Alt_R Meta_R

add Control = Control_L Control_R
add Mod1 = Alt_R Alt_L 0x009C Alt_L Alt_R Alt_L Alt_L
add Mod4 = 0x007F 0x0080
add Mod5 = Mode_switch ISO_Level3_Shift
!
! For Mouse Swap.
!# pointer = 3 2 1 4 5


Check more tips at , http://steve.yegge.googlepages.com/effective-emacs

Friday, May 22, 2009

I just wanted to beat other boys

G. H. Hardy on his book A Mathematicians Apology:
I cannot remember ever having wanted to be anything but a mathematician. I suppose that it was always clear that my specific abilities lay that way, and it never occurred to me to question the verdict of my elders. I do not remember having felt, as a boy, any passion for mathematics, and such notions as I may have had of the career of a mathematician were far from a noble. I thought of mathematics in terms of examinations and scholarships: I wanted to beat other boys, and this seemed to be the way in which I could do so most decisively.

Source :
A mathematician's apology,
By Thomas Hardy
PDF: A Mathematician's Apology.pdf

Monday, February 2, 2009

HaHa! I am better than you.

Stan Marsh to Butters Stoch on "You Got F'd in The A" in South Park
But that isn't the point, Butters!
The point is that this is now! It's
on! And there are people who need you
to step up! Look, nobody likes having
to rise to a challenge. But competing
against other people and getting in
their faces saying "Haha! I'm better
than you!" is part of life. And if you
can't face that, then you might as well
sit here and play Leggos until you're
an old man.

Saturday, October 18, 2008

Excerpts from 10 Commandments

You shall not covet your neighbour’s house; you shall not covet your neighbour’s wife, or male or female slave, or ox, or donkey, or anything that belongs to your neighbour.

Thursday, September 18, 2008

I Will Stop Procrastinating Tomorrow



Here is one of my favorite videos from Dan Ariely, writer of Predictably Irrational. I am really looking forward to read the book. But right now, I am just watching the videos.

My favorite is one where StarBuck Coffees were involved. I will post that video some day in my blog.

Thursday, July 31, 2008

My Favorite book : Cosmos

One of my favorite book. I really enjoyed this book by Carl Sagan in my teen. I am planning to read it again, found an online copy in scribd.