Login to Members Area

Choose the service you want to log in
24x7x365 Presence
Live Chat

Hosting Blog


HTML vs HAML - some differences

1) HTML: <tag> random text </tag>

HAML: %tag random text

2) For inner tags (please note: whitespace indentations here are meaningful in HAML, unlike in HTML):

HTML: <tag> random text

             <subtag> other text </subtag>


HAML: %tag random text

               %subtag other text

3) For the CSS selector "class" with a random HTML element, say <ul>:

HTML: <ul class="ACSSClass"> random text </ul>

HAML: %ul.ACSSClass random text

4) For the CSS selector "id" with a random HTML element, say <article>:

HTML: <article id="ACSSID"> random text </article>

HAML: %article#ACSSID random text

5) For the CSS selector "class" with the div HTML element:

HTML: <div class="randomclass"> some text </div>

HAML: .randomclass some text

6) For the CSS selector "id" with the div HTML element:

HTML: <div id="randomid"> some text </div>

HAML: #randomid some text

7) For combining two CSS classes in the same tag -

HTML: <div class="class1 class2"> some random text </div>

HAML: .class1.class2 some random text

8) For embedded Ruby code -

HTML: <%= yield %>

HAML: = yield

Note: You can always write normal HTML code in a HAML document.

JODO | Thursday 26 December 2013 - 4:38 pm | | Default | No comments

How to update the license key in the Parallels Plesk control panel

Sometimes we face the warning below in the Plesk control panel:-

"Warning: You are currently operating within the grace period of your product license. To update your product license, select the Retrieve Keys option on the License Management page."

Here, we need to follow the steps below to retrieve the new license key:-

1.  Login to your Plesk client as an admin.
2.  Click on the "Tools & Settings" option and then click the "License Management" option or click on the "License Management page" option on the warning message.
3.  Click "Retrieve Keys".
4.  You should be directed to the "Key Update Status" page with a new key expiration date.
That's all.
After this you'll see that a new key has been updated in the Plesk control panel.

Sachin | Tuesday 17 December 2013 - 06:23 am | | Default | No comments

JavaScript vs HTML (some differences)

JavaScript is a declarative language (it communicates intent). HTML is an imperative language (concerned with the look and how it is all rendered).

JODO | Friday 13 December 2013 - 4:43 pm | | Default | No comments

Directives in AngularJS

Directives label DOM elements (much like CSS classes, attributes or element names). They allow AngularJS's HTML compiler ($compile) to associate certain behavior with the element. AngularJS comes with many such directives already (starting with ng-, like ng-controller) and you can even create your own directives.

JODO | Friday 13 December 2013 - 4:27 pm | | Default | No comments

Dependency Injection in AngularJS

AngularJS applications have no "main" method - dependencies drive the application forward. The view component (the DOM) is the main driver behind the application. The view creates an instance of the controller with the ng-controller tag and the controller needs the model. The model is the easiest component to test because it does not depend on other components.

JODO | Friday 13 December 2013 - 4:18 pm | | Default | No comments

AngularJS with Ruby on Rails - some notes

AngularJS acts as the frontend, whereas Rails acts as the backend and provides the RESTful API.

With JavaScript frameworks like AngularJS, JSON is generally the language used to receive messages from the server (rather than XML).

The Devise and OmniAuth Ruby gems can take care of authentication and user logins.

JODO | Friday 06 December 2013 - 1:57 pm | | Default | Two comments