Trip to Udupi, Kundapura, Murudeswara, Yana, Mirjana Fort-Karnataka

This was my first unplanned trip with my colleagues that was a sudden decision after the initial plan for a planned trip was cancelled. Here is how it went.


We are in the office. I was sad for the cancellation of the planned trip due to the only few people joining the trip and cost per head being high. The guy who cancelled at the last moment, Mr. Kevin was sitting in front of me. It was supposed to cover Yana, Gokarna, Karwar, Murudeswara. Then my colleague, Manjunatha S asked me if I wanted to go to some other places instead. I agreed at a moment without thinking of the place we were going to visit. Finally with input from my manager, Mr. Ali Sadhik Sheikh we planned to go to Udupi, a small town near to coastal Karnataka, famous for the Krishna temple.

Image result for udupi krishna temple

There was one more colleague of mine who came packed just like me to the office, Mr. Jogendra Majhi who also joined us. Finally we booked the bus to Udupi from Majestic Bus Station. Me and Jogendra boarded the bus from Majestic at 10:30 PM and Manju boarded the bus at Yeshwantpur bus depot and finally felt like we are on trip….

Had late night talks on random topics, not at all work related, mostly on travelling and relationships.


We reached Udupi at around 7 in the morning. The weather was cold and foggy. Felt so good. Had morning tea/coffee. And we moved towards the famous Krishna Temple. Freshened up and went to visit the temple. It was covering a large area with so many sections inside the temple. Manju started telling the history of the temple. Bought prasadam and we came out of the temple.

We were hungry, it felt sweet though; That’s the hunger out of travelling.

Went to a vegeterian hotel inside the temple premises. Had Dosa, Idli, Vada, Puri etc. We had so much. Divine food…

From Udupi we went to a nearby beach called Malpe, known for 2 things:

  1. The smell of dried fish(which I like by the way being a Bengali)
  2. St. Mary’s Island(which is a boat trip from the beach Rs. 300 /- per head)

Being at a beach always refreshes the mind. Few water sport were there

Image result for malpe beach water sportsImage result for malpe beach water sports


Next we took the boat ride to St. Mary’s Island. Took around half an hour. Here are some pics.

We stayed there for around 2 hours. Returned to Malpe beach and came back to Udupi. It was 5 o’clock. We took a room and stayed for the night. Planned to go to Agumbe the next day early morning.


We woke up late. It was already 11 and late for going to Agumbe. We got ready and rushed to the bus depot. Nothing planned. Thought to go to Gokarna which would take 4-5 hours from Udupi and we would reach in the evening by the next bus, hence not a good option. Then we looked for other options and it was Kundapura. We took the bus and in 1 and a half hour we reached there. From there we had options for 2 beaches: Kodi Beach and Maravanthe Beach. Took bus and went to Maravanthe Beach. Some snaps below.

Next destination Murudeswara, famous for the majestic Shiva temple. Took bus from Maravanthe. Reached Murudeswara at 8 PM. Took a room, had dinner, went for a walk. Met 2 guys who suggested to visit a fort called Mirjana Fort on the way to Gokarna.


Woke up, freshened up and went to visit the temple. Few snaps below.

Next destination Gokarna. So we reached to Kumta. From there we had options to go to Yana. As we had ample time, thought to cover Yana and Mirjana fort was on the way to Gokarna. So took the bus to Yana. Reached in 1.5 hour. The road was through the hill. Loved it.

The bus reached Yana. From there it was a 1 KM trek to visit the grand Asteroid rock formation and the Parvathi temple. Few snaps from there:

Time to leave from Yana. Talked to a local guy to leave us to Mirjana Fort in his Maruti Omni. Some snaps of car wash 🙂 and the departure.

We reached Mirjana Fort. Few snaps from there.

Next destination Gokarna. Took bus from Mirjana Fort. Took 1 hour to reach Gokarna. Visited the shiva temple, took blessings and went to the beach.

Took bus to Bangalore at 8 and reached at 6:30 in the morning.

Now when I look back to all the memories I feel like unplanned trips are better because u dont know where you are heading next and you may come across the unexpected.

Time to get back to work…

Image result for work



Regex useful tricks with Lookahead and Lookbehind

Lookahead and Lookbehind in regex : Lookahead and lookbehind, collectively called “lookaround” is a very useful concept at times which would be otherwise next to impossible to solve by any other means. Found a great article explaining the cases where we can use this: Regex – Lookahead and Lookbehind Zero-Length Assertions

Few useful bits to understand the concept :

Related image

Image result for lookahead and lookbehind in regex

Image result for lookahead and lookbehind in regex

%Q, %q, %W, %w, %x, %r, %s

You can find some useful shortcuts in this article for rails.

Simple Ruby on Rails

%Q | %q | %W | %w | %x | %r | %s

This is an alternative for double-quoted strings, when you have more quote characters in a string.Instead of putting backslashes in front of them, you can easily write:

>> %Q(Joe said: "Frank said: "#{what_frank_said}"")
=> "Joe said: "Frank said: "Hello!"""

The parenthesis “()” can be replaced with any other non-alphanumeric characters and non-printing characters (pairs), so the following commands are equivalent:

>> %Q!Joe said: "Frank said: "#{what_frank_said}""!
>> %Q[Joe said: "Frank said: "#{what_frank_said}""]
>> %Q+Joe said: "Frank said: "#{what_frank_said}""+

You can use also:

>> %/Joe said: "Frank said: "#{what_frank_said}""/
=> "Joe said: "Frank said: "Hello!"""

Used for single-quoted strings.The syntax is similar to %Q, but single-quoted strings are not subject to expression substitution or escape sequences.

>> %q(Joe said: 'Frank said: '#{what_frank_said} ' ') => "Joe said: 'Frank said: '#{what_frank_said} '…

View original post 131 more words

Google Recaptcha With Ruby On Rails Integration.

Web Technology Guide By Gurudath BN

Google Recaptcha With Ruby On Rails Integration.

Google Recaptcha protects the websites you love from spam and abuse.

Below the steps to be followed to develop a sample ROR application with Google Recaptcha:-
Step 1. Create a Ruby on Rails application:-

a)Open a terminal, navigate to a directory where you have rights to create application and type:
rails new recap

b)After you create the application, switch to its folder:
cd recap

c)Type and run bundle install:
bundle install

Step 2. Create models, views, and controllers:-

a)For this application we will generate a scaffold, which is a starter template provided by Rails that bundles a model, a controller, and the relevant views for our application:
rails generate scaffold User name:string

b)After generating the scaffold we need to create the actual User table in our development database so we need to run migration:
rake db:migrate

c)To start the application run below command…

View original post 321 more words

A Bluetooth beacon in your fridge could help you eat less


Most applications for beacon technology so far have been targeted towards retailers and marketers — for instance, beacons have been used to push coupons for McNuggets when you walk by a McDonalds. Taking a different approach to the Bluetooth Low Energy protocol, a new free app from developer Brian Mueller employs beacons to help you eat less.carrot-hunger-screneshotCarrot Hunger, which launched for iOS on Thursday, has a nifty feature that requires a beacon in your fridge. Like a digital version of a “nothing feels as good as skinny feels” magnet on your fridge, the Carrot Hunger app can push a notification when you’re nearby a iBeacon reminding you to log the food you’re about to eat — effectively, a reminder not to stuff your face. Carrot Hunger recommends sticking the beacon in a fridge, but you can also stick a iBeacon in, say, your office’s kitchen.

carrot screenshot ibeacon

Unfortunately, Carrot won’t provide an iBeacon. You’ll have to bring your own beacon hardware — some iBeacon-capable beacons cost as little…

View original post 206 more words

My Experience with AngularJS: A Sound Framework of JavaScript

AngularJS is a sound JavaScript framework, and it makes the job of the programmer really easy and helps the programmer deliver a good UI(User Interface) with a great UX(User Experience) in a short span of time. Some of the great features of angularJS are as follows-

1. It’s an MVC framework of JavaScript:

It separates the developments in 3 sections: Model, View and Controller.

Model: The collection of data. AngularJS provides a special variable called $scope which is used to make the data available to the view.

View: This is the html template. In view we use a concept called “data binding” which facilitates use of the the data(in the model, i.e. $scope).

Controller: This is where the business logic is kept that explains how the data needs to be handled

2. Data Binding:

This is the most frequently used feature of angularJS that reduces the programmers job of handling the the reflection of change of data in the view. Consider the following code snippet


No of employees: <div>{{employees.length}}</div>

In this code we want to reflect in view as and when the count of employees change in the model. In case you had used JQuery to achieve the same you might have to do the DOM manipulation in your javascript code like as follows:


<div id="emp_count"></div>



and run this JS code as and when the employees count changes. So you need to keep track when this variable is changing which is a huge overhead. AngularJS even gives us a method called $watch which helps to keep track any change in the variable or object and handle the change in the $watch function block block

This examples shows you how simple it is with angularJS.

3. Directives:

You can define behaviour of a DOM element using directive. With its help you can define custom DOM elements, attributes for your project and define their behaviour in your angularJS code.


     <ang-alert alert-text="clicked 1">click me</ang-alert>
     <ang-alert alert-text="clicked 2">click me</ang-alert>


angular.module("myApp", []).
directive("angAlert", function () {
    return {
        restrict: 'E',
        link: function (scope, element, attributes) {
            //setting style
            $(element).css("display", "block");
            //defining event handler
            $(element).on("click", function () {

See demo here:

In this code ang-alert is a directive whose behaviour is defined completely in the javascript code. so HTML is kept clean of any event handler. and the html code itself is self-explanatory. This way the programmer can cocentrate on the module he is developing i.e. either the UI or the javascript and the final product is a clean code. Which is the best thing about angularJS.

Here comes the benefits of using AngularJS in you code:

  • Code becomes cleaner and maintainable: Its sound MVC framework governs you a good coding standard to follow throughout your code, which was not given by some other framework like Backbone.js.
  • Code becomes self-explanatory: Even a non-technical person can understand the high level logic by going through the code if written properly.
  • Increased Reusability of components: The directives provide you a  way to make reusable components without any alteration most of the time.
  • Unit testing becomes easy: If you use a Directives, many times in you application, a bug found in one section for the directive code, needs to be fixed only once, and the bug will be fixed in all the places wherever the directive is used
  • It provides the control for animation: Setting css animation rules on the classes that get applied on the DOM elements while transition happens for the rule set by the directives, you can achieve animation easily. For more check AngularJS animation documentation.

If this made you like angularJS, please read more on There are lot more in this magical framework.


Using jsFiddle with AngularJS


AngularJS is an awesome framework and its google group is very active. AngularJS community figured out quite early that it is so much easier to collaborate having a live code snippet.

There are many code snippet sharing tools out there but the jsfiddle is great and is used very often by the AngularJS community.

This post tries to dive into several usage scenarios of jsfiddle with AngularJS framework. The aim here is to make sure that people can quickly and easily prepare their jsfiddle which is crucial for getting help from  the AngularJS community.

Start safe

The easiest way to have a working jsfiddle with AngularJS is to start from a template prepared by the AngularJS team: The jsfiddle under this URL is updated with each release so you can just bookmark it and use it a starting point for your fiddles.

One remark: when using a stating point make sure to fork it instead of editing the original one.

View original post 797 more words