Friday, August 9, 2013

Tuesday, July 2, 2013

Meteor and permanent session

You need to store session value which will available after page refresh.

Use amplify package (html5 local storage) and underscore (not mandatory)
$ meteor add amplify
$ meteor add underscore
and create AmplifiedSession from original Session
AmplifiedSession = _.extend({}, Session, {
    keys: _.object(, function (value, key) {
        return [key, JSON.stringify(value)];
    set: function (key, value) {
        Session.set.apply(this, arguments);, value);
Usage is same as using standard Meteor Session.
Template.yourTemplate.valueFromSession = function() {
	return AmplifiedSession.get('storedValue', 'valueOfSession');

Wednesday, June 26, 2013

I bought Blogsy

I decided to write blog posts about meteor in czech :-) so be prepared for czech meteor guide ;-)


Monday, November 26, 2012

Integration test on Grails 2.2.0 RC2

Creating integration test

You need to start with grails console
grails create-integration-test YourTest

Create test logic and tests..

Run your perfect, shiny and excellent test :-P
grails test-app integration: YourTest -echoOut

The most interesting thing is "-echoOut" it enables show your app logs in test running and second thing all test are running as ONE transaction and after finish it's rolled back

More information can be found in manuals

Monday, November 19, 2012

Tuesday, September 25, 2012

GitStat on MacOS

GitStat + MacOS

GitStats are perfect tool for git statistics, you can see example.
I have been inspired by tutorial.
I need to install XQuartz project, XQuartz is officially supported by Apple , statement by Apple

Sunday, September 23, 2012

PUBlic NOTEs: Hints for Grails app running on Cloudbees

We're running on cloud.. Using Cloudbees .. Hints can be found here...

PUBlic NOTEs: Hints for Grails app running on Cloudbees: Here are my most used commands I use during development and deployment of Grails  application which is running on Cloudbees . D...