August 2016

Javascript – Number function

The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. It read more

Javascript – parseInt

The parseInt() function parses a string argument and returns an integer of the specified radix (default 10). In case the string starts with a valid read more

Javascript – check if string is number

The isNaN() function determines whether a value is NaN (Not-A-Number) or not. Note that parseInt approach may not work with strings having valid number prefix. read more

jQuery ui slider and input text box – two way binding

jQuery ui can be used to create a slider with updated value getting displayed in an input text box and any update in text box read more

jQuery ui slider and input text box – one way binding

jQuery ui can be used to create a slider with updated value also getting displayed. Syntax: Example – slider and input text box – one read more

CSS box-shadow

CSS (CSS3) box-shadow property attaches one or more drop-shadows to the box. CSS property box-shadow Few points to note: blur radius spread distance and color read more

CSS text-shadow

CSS3 text-shadow accepts a comma-separated list of shadow effects to be applied to the text of the element. CSS property text-shadow blur-radius and color are read more

CSS3 Gradient examples

A gradient is an image that smoothly fades from one color to another. These are commonly used for subtle shading in background images, buttons, and read more

Chrome – disable notifications from a site accepted earlier

In case you have accepted to get notifications from a site, it can be disabled later. These are the steps Click on Chrome settings from read more

Linux Systemd/Systemctl quick start guide

Systemd is an init system used by new Linux distributions like Ubuntu 15 and Centos 7. It intends to replace Sysv init (Ubuntu, Centos, etc) read more

Centos/RHEL – find package for a file

Centos/RHEL Linux yum command line tool can be used to find which package a file belongs to. Fine packages based filename To find package which read more

AngularJS ng-list example

AngularJS ng-list directive can be used in text input and it converts between a delimited string and an array of strings. The default delimiter is read more

Centos – save and restore iptables

Linux command iptables can be used to make changes to Linux iptables. By default these changes are not reboot-safe and will get lost on reboot. read more

Change default language on Centos/RHEL

To change default language or locale on Centos or RHEL Linux, follow these steps To see the current language: $ cat vi /etc/sysconfig/i18n LANG=”de_DE.UTF-8″ SYSFONT=”latarcyrheb-sun16″ read more

Vagarant quick start guide on Mac

Vagrant is an excellent tool to create and configure lightweight, reproducible, and portable development environments. Here is a quick start guide to use vagrant on read more

Mac – show volume icon on menu bar

To show volume icon on Mac top menu bar follow these steps: Open system preferences by using spoltlight search. Click on sound icon Select sound read more

Linux iptables and ip6tables examples

Linux iptables is a user-space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different read more

AngularJS ng-if vs ng-hide/ng-show

Angular ng-if directive removes or recreates a portion of the DOM tree based on an expression (true or false). On the other hand ng-show (or read more

AngularJS ng-href example

AngularJS directive ng-href can be used to use a template to create href. Directly using it in href can make the link broken before Angular read more