Posted in TED Talks

Asking for help is a strength, not a weakness

Enjoyed this TED Talk:
Asking for help is a strength, not a weakness by Michele L. Sullivan

Michele shares her experience how she got help from her family, her friends, her colleagues and many strangers. She is feeling good that she has a friendly support system. She says, “Asking for help is a strength, not a weakness.”

Continue reading “Asking for help is a strength, not a weakness”

Posted in Angular, Code Snippets

Make bootstrap button group to work with Angular

Many developers face the trouble to make the Twitter Bootstrap’s button group, toggle buttons to work with Angular. For instance, following is the code for button group – btn-group

<div class="btn-group">
         Radio 1
         Radio 2
         Radio 3

But ng-model doesn’t seem to work with this.

Continue reading “Make bootstrap button group to work with Angular”

Posted in Bible, Verse Explanation

இயேசு – ஜீவவிருட்சத்திற்கு போகும் வழி

புசிக்கவேண்டாம் என்று சொன்ன விருட்சத்தின் கனியை புசித்ததால் (ஆதியாகமம் 2:17), ஆதாமையும் ஏவாளையும் தேவன் சபித்து ஏதேன் தோட்டத்திலிருந்து துரத்திவிட்டார் (ஆதியாகமம் 3:23). மேலும், ஜீவவிருட்சத்தின் கனியையும் பறித்து, புசித்து, என்றைக்கும் உயிரோடிராதபடிக்குச் செய்யவேண்டும் என்று, ஜீவவிருட்சத்துக்குப் போகும் வழியைக் காவல்செய்ய கேருபீன்களையும், வீசிக்கொண்டிருக்கிற சுடரொளி பட்டயத்தையும் வைத்தார் (ஆதியாகமம் 3:24).

Continue reading “இயேசு – ஜீவவிருட்சத்திற்கு போகும் வழி”

Posted in Bible, Thoughts

Jesus – Way to the Tree of Life

Once Adam and Eve ate the fruit from the tree of knowledge which God commanded not to eat (Genesis 2:17), God cursed the mankind and banished him from the Garden of Eden (Genesis 3:23). God also placed cherubim and a flaming sword flashing back and forth to guard the way to the tree of life (Genesis 3:24) preventing him to reach out his hand and take also from the tree of life and eat, and live forever.

Continue reading “Jesus – Way to the Tree of Life”

Posted in Angular, Code Snippets

AngularJS: Recursive function with deferred promise

Deferred promise is a great way to handle async calls synchronously. When we use recursive function, we may wonder how to handle the defer variable. It is as simple as:

some_function = function(some_var1, some_var2, def) {
    var deferred = def || $q.defer(); // Use def when it is recursive call
        url: url,
        method: "POST",
    }).success(function(result) {
    }).error(function(result, status) {
        some_function(some_var1, some_var2, deferred);
    return deferred.promise;

Bold texts are those that needs to be added to handle deferred promise in recursive calls.

Continue reading “AngularJS: Recursive function with deferred promise”