StackEdit.Io – A Live Mark-Down Editor


This is a sample markdown edited tool. It uses the live-console approach. It’s like an immediate WYSIWYG editor – quite interactive. And this editor has two features that are really keen :
1. Direct upload of document to wordpress
2. Dropbox backing store for persistent document retention.
3. Go to read more of the doc.s meself !

If you want to try it out and have a Dropbox account, please see this link: as it will give you a live taste of what this tool can do. Enjoy :-)

Written with StackEdit.

A Groovy Way to Use an H2 In-Memory Database

The H2Project

This is a short sample Groovy class with some tests to try out the H2 in-memory database feature.

Just wanted to give you a starting point to try the H2 in-memory database. I’ve used the Groovy development language here to setup a set of methods. The whole class named H2 is constructed in the style of a java class with all it’s syntax. Ok, it’s not exactly a java program. For that you would need to add more syntax.

For this demo, i’ve tried to use the most common features of the H2 grammar.

Project Layout

This project is arranged in a folder structure that’s compatible with many build systems. In this demo, i’ve used the gradle build tool. Have also included a full gradle wrapper with required bits and pieces the code needs to work correctly. These are declared within the build.gradle script.

Folder Layout

  • * build.gradle – the script gradle uses in the build process
  • * – influences the gradle build tool
  • * License – what you can/cannot do with this project
  • * – this text file
  • * build/ – a folder of all the pieces constructed when you do a gradlew build command
  • * gradle/ – everything needed to make gradle run on your system without installing gradle; Gradle will self-install any missing jars, code, scripts, etc if your system is connected to the internet the first time you do a gradle build command
  • * src/
  • * /src/main/groovy/com/jnorthr/H2.groovy – the only bit of code with samples of what can be done when working with the H2 database
  • * /src/test/groovy/com/jnorthr/H2Tests.groovy – a series of self-testing methods to confirm the H2.groovy class is running correctly.

H2 Syntax

The H2 Grammar is described here :

Groovy Koans Project

The Groovy Koans project is a collection of small exercises in the form of unit tests, designed to get Java developers up to speed on Groovy features and common idioms. It starts by teaching you basic Groovy building blocks, and gradually builds your knowledge towards metaprogramming, slurpers, and all the goodness Groovy has to offer !

Getting Started

  1. Make sure you have JDK 1.6+ installed
  2. Download and unzip the Koans (or clone the GitHub repository with $ git clone
  3. Remove the solutions from the Koans using $ ./gradlew removeSolutions
  4. Execute Koan01 with $ ./gradlew koan01 and fail (or any other Koan using $ ./gradlew koan##)
  5. Fix code, and execute again
  6. Keep going until you’re fluent at Groovy :)


I like IntelliJ. How can I use it to debug/edit the Koans?

I am forced to work behind a proxy. Can I still run the Koans?

The gradlew script downloads Groovy and Gradle for you, so you don’t have to set up anything by yourself.
To allow gradlew to work through your proxy, simply add the following parameters:

$ ./gradlew koan01 -Dhttp.proxyHost=[http proxy] -Dhttp.proxyPort=[http proxy port]

The answers are already there! What’s the point?

One of the perks of learning through Koans is that once your Koan is solved, you can compare your solution with
the ‘official’ solution and perhaps learn from that comparison as well. It is also a way to make sure that the Koans
are indeed solvable by filling in the blanks.

For optimal learning experience, however, you should first try to solve the Koans without those solutions as reference.
To remove the solutions, run $ ./gradlew removeSolutions from the root of your unzipped Koans.

Are there more Koans planned? How will I know?

These are the Koans that are currently planned:
* Embedding Groovy
* Creating your own DSL
* Creating your own builder
* Transformations
* GPars

Follow me on Twitter or GitHub for updates.

Credits and License

The Koan concept started way back in Zen practice. It was then adapted by the good folks of and perfected by Neo4j. The Groovy Koans project is licensed under the

Please feel free to leave comments and pull requests :)


Om shreem hreem kleem gloum gam ganapatye varavarada saravajanam me vashamaanaya swaahaa

Am often asked what i listen to when coding and hacking. For me, a background Sanskrit mantra – chant – adds a tone of calm to an otherwise hectic day. Translation below. Hope you may find it as healing a chant as i do. :)


This is the Maha Ganapathi Moola Manthram

What does it indicates?

Om – represents the creation, maintenance and destruction activities
that take place in the universe and the power behind and beyond all.

Shreem – indicates the chakras in the human body begining with the
Mooladhara to swadishtana the energy centres which is activated by
this mantra it is also connected with Godess Maha-lakshmi

Hreem  – represents the Mahamaya principle — Purusha and Prakriti
in the Sivate Siddandha Sivam and Sakthi.

Gloum – After referring to the universal principle and the human body
which was a direct connection with the principle and the powers behind
and beyond these, we come to the God Maha ganapathy who removes all
obstacles and helps in solving our ever many problems in our day-to-day
life and in field of activites.

Gom – Again we come to the human body and the Kudalini — the chakras have all been referred to – here Gom represents the throat which is the place through which activation of the energy going above the brain centres to activate thought and Dhyana or contermplation. These solve our innumerable problems in life, in other words: a wise man resorts to his own inherent energy and conscience, when he is comforted with challenges in life.

Ganapathye – The Lord of obstacles i.e. Ganapathi

Vara Varadaa – The Lord of whom people offer their prayers to fulfil their wishes

Sarava Janam Me - Let all these blessings of the Lord be mine – let me
be rid of my problems – for people like me and help me in my efforts


The important point to note is that people constitute the real strength behind all actions and activities and all our endeavors are only successful if people are behind such endeavors and actively participate in them.

In other words, people’s participation is the ‘Secret of Success’ in human endeavors both individual and collective. – translation courtesy of Dr.KollurIyer.


The bell-like tones of this mantra bring forth a shower of blessings from Ganesha.

In uttering them, the worshipper surrenders his ego to the Lord, seeking His protection and grace at all times.  Notice the first line which contains several seed (in Sanskrit, “beej”) mantras, single syllabic utterances from Vedic texts whose meanings vary depending on their intonation and the purpose of incantation.

Om’ for instance, is an affirmative sound, one which fuels our energies and is associated with divine protection and benevolence. ‘Shrim’ invokes love and beauty; it concerns the heart and hence, both physical and emotional health.

Hrim’ is associated with Maya, a syllable that empowers us to see through the illusory nature of the world while ‘Klim’ is forceful, stimulating and energizing; symbolically, it is represented by a thunderbolt that destroys lowly ignorance.

Glaum’ is the earth element while ‘Gam’ is the primal Seed, meaning Ganesha himself.

In chanting this mantra, the devotee seeks the grace of Ganesha in his present life and all future lifetimes.


Ok, i’m sure you read sanskrit quite well, but here is yet another sanskrit translation just in case you’re a little rusty – courtesy of Sonja Anicca Mathur:

Om Shreem Hreem Kleem Gloum
Gang Ganapataye vara vara da sarvajanamme vashamanayah swaha
Tatpurushaya vidmahe
vakrakundaya dheemahi
Thano thandir prachodayat
Om Shreem Hreem Gleem Gloum
Gang Ganapataye vara vara da sarvajanamme vashamanayah swaha
Ekadandhaya vidmahe
vakrakundaya dheemahi
Thano thandir prachodayat
Om Shreem Hreem Gleem Gloum
Gang Ganapataye vara vara da sarvajanamme vashamanayah swaha