Monday, 6 February, 2012

Books read in 2012

How Things Exist: Teachings on Emptiness by Lama Zopa Rinpoche

The Path is The Goal by Chogyam Trungpa

Fearless Simplicity by Tsoknyi Rinpoche

The Art of Disappearing by Ajahn Brahm

Tags: spiritual, compassion, meditation, mind, book, Amazon, kindle


Posted in Personal , Buddhism


Saturday, 28 January, 2012

Wesnoth - Under the Burning Suns

Under the Burning Suns is my favourite Wesnoth mainline campaign. It has included RPG elements in the game. My favourite scenario is Across the Harsh Sands. It contains a number of surprises along the battle. It also keeps you on your toes with the ghosts that keep reappearing, although these ghosts sometimes ended up helping you fight against the enemies instead.

Two very important units will join your team in this scenario. First is the ultra cool Dust Devil and second is Elyssa the Fire Mage. You do not want to lose either of these two units.

Video replay of Across the Harsh Sands. I play the campaign in nightmare difficulty.


The next scenario A Stirring In The Night is probably the most difficult and epic scenario. It is also my next favourite scenario in this campaign. I barely complete this with the minimum of 6 camps still surviving. I have misunderstood the instruction and thought that as long as I control 6 camps at any time, it will be fine. This is not the case, as long as any enemy has captured the camp, the camp is considered lost even if you re-captured it later. I would have lost when the orcs capture my north-western camp, only the replay from the previous turn allow me to secure the camp.

I also needed to replay for Garak to survive the onslaught of Deathblade and Chocobone, and also for Dust Devil to survive. My Desert horseman Naru is the most luckiest unit in the whole campaign. Zyara, the Desert champion is the one that kept alive the north-western camp. He is killed by the Orcish ruler eventually.


Tags: fantasy, Game, strategy, rpg, video


Posted in Linux , Personal , Game , Open-Source


Monday, 2 January, 2012

Buddhism Dharma Mind Map

From Mind map

Original pen version

Tags: spiritual, compassion, meditation, mind, equanimity, honesty, impermanence, joy, karma, love, nature, peace, Buddha, mind-map


Posted in Personal , Buddhism


Saturday, 31 December, 2011

Books read in 2011

Harry Potter and the Half-Blood Prince by J. K. Rowling

If a Pirate I Must Be...: The True Story of Black Bart, King of the Caribbean Pirates by Richard Sanders

The Autobiography of Benjamin Franklin by Benjamin Franklin

Poke the Box by Seth Godin

My Stroke of Insight by Jill Bolte Taylor

Brain Rules: 12 Principles for Surviving and Thriving at Work, Home, and School by John Medina

You've Gone Too Far This Time, Sir! by Danny Bent

The heart of simple living by Wanda Urbanska

The Mindful Path Through Shyness by Jeffrey Brantley and Steve Flowers

The Wonder of Presence And The Way of Meditative Inquiry by Toni Packer

Healing Breath by Ruben L.F. Habito

Ordinary Mind by Barry Magid

Buddhism, the religion of no-religion by Alan Watts

The Path of The Human Being by Dennis Genpo Merzel Roshi

Wholesome Fear by Lama Zopa Rinpoche and Kathleen Mcdonald

Meditation: advice to beginners by Bokar Rinpoche

Pure and Simple by Upasika Kee Nanayon

The Mind And The Way by Ajahn Sumedho

Being Dharma: The Essence of the Buddha's Teachings by Ajahn Chah

The Experience of Insight by Joseph Goldstein and Jack Kornfield

Seeking the Heart of Wisdom: The Path of Insight Meditation by Joseph Goldstein

The Heart of Compassion by Dilgo Khyentse Rinpoche

The Heart of The Buddha by Chogyam Trungpa

True Perception by Chogyam Trungpa

Comfortable with Uncertainty by Pema Chodron

Traveling to the Other Shore by Venerable Master Hsing Yun

The Diamond Sutra&The Sutra of Hui-Neng translated by A.F. Price and Wong Mou Lam

鹿鼎记 by 金庸

Suzuka by Seo Kouji


Related:

Books read in 2010

Tags: spiritual, compassion, meditation, mind, philosophy, history, cycling, environment, book, story, Amazon, kindle, comic, 金庸


Posted in Personal , Buddhism , Science


Monday, 19 December, 2011

Battle for Wesnoth in Android

Battle for Wesnoth is now available in the Android market. There is a free version and a paid one. For now, it is better to download and install the free Battle for Wesnoth version. The free version only contains the tutorial, it does not come with any other campaigns. But you can simply copy the missing campaigns and resources files from the same game in other computer systems like Linux, Windows etc.

The missing data files that are needed can be copied from these folders (in Linux):
/usr/share/wesnoth/data/campaigns
/usr/share/wesnoth/data/core/images
/usr/share/wesnoth/data/core/music
/usr/share/wesnoth/data/core/units

These files are copied to your Android folder
/mnt/sdcard/Android/data/com.androthsoft.battlefree/files/data (The data folder contains the sub-folders campaigns and core)


A screenshot

Tags: fantasy, Game, strategy, installation, Android


Posted in Linux , Personal , Game , Open-Source


Wednesday, 26 October, 2011

Sun Yat Sen Nanyang Memorial Hall

Photos of my visit to Sun Yat Sen Nanyang Memorial Hall

Tags: Singapore, China, history, Photos, 孙中山, 晚晴园


Posted in Chinese-中文 , Photos , Personal


Wednesday, 25 May, 2011

Cannot Import SQLite with Python 2.6 in Ubuntu Natty

I am compiling Python 2.6 on Ubuntu Natty. All the sqlite3 development headers and libraries are already installed.


$ make
.. .. ..
Failed to find the necessary bits to build these modules:
_bsddb _sqlite3 bsddb185
dbm gdbm sunaudiodev
zlib
To find the necessary bits, look in setup.py in detect_modules() for the module'
s name.

Failed to build these modules: crypt nis

After some checking, it turns out that the libsqlite3.so file is not in the /usr/lib dir, instead it is found in the /usr/lib/i386-linux-gnu dir. According to Barry Warsaw (The impact of multiarch on upstream Python), the .so files are moved to arch-specific directories, e.g. libsqlite3 to /usr/lib/x86_64-linux-gnu.  Ubuntu's Python packages broke because Python's build process does not look in the arch directories when it tries to figure out which extension modules it can build. There is a Python issue: Building Python on multiarch Debian and Ubuntu.

The easy solution is to create some symlinks in the /usr/lib dir:

$ cd /usr/lib
$ sudo ln -s i386-linux-gnu/libsqlite3.so.0.8.6 libsqlite3.so
$ sudo ln -s i386-linux-gnu/libz.so libz.so
$ sudo ln -s i386-linux-gnu/libcrypt.so libcrypt.so
$ sudo ln -s i386-linux-gnu/libnsl.so libnsl.so
After that, make will be able to compile those modules.

$ make
.. .. ..
Failed to find the necessary bits to build these modules:
_bsddb bsddb185 dbm
gdbm sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module'
s name.

$ sudo make install

Tags: Ubuntu, installation, Linux, Python


Posted in Python , Linux