Saturday, 24 February 2018

Install Latest and update Node js in Ubuntu

On Ubuntu 16.04 LTS the easier way is
1 Install npm:
sudo apt-get install npm
2.Install n
sudo npm install n -g
3 Get latest version of node
sudo n latest
If you prefer to install a specific version of `node you can
4 List available node versions
n ls
5 and the install a specific version

sudo n 4.5.0

Friday, 1 December 2017

Benefit of virtual reality

Many industries are now reaping the benefits of integrating virtual reality devices into their day-to-day work.

VR makes it possible for engineers and manufacturers to experience their creations before they’re builtMark Miles, managing director, RenderMedia

many business sectors are use a virtual reality for
presenting their product,office, showrooms.

In Surat, India  one of a  young entrepreneur start a virtual reality base startup could
and they already cover a many  business sectors like a Event And Function,
Restaurants And Hotels,Showrooms,Real Estate,industries,Tourist Places
Hospital And Clinic.
If we even imagine sitting in  room and actually experiencing the sound and life of a Event And Function on the virtual reality headset, we get goosebumps. Entertainment to health, to psychology, to business: the benefits of virtual reality are approaching infinity, and it will really take the world to new places.
some real example by 360 eye virtual tour
Real Estate
RealEstate Virtual Tour Solitaire Sangini Group
Restaurants And Hotels
Hotels Hari Champa Resort Surat

Main Website

Thursday, 8 September 2016

Html Table Export To excel Using Javascript

Note : this Code is working Only Google Chrome
Note : only 2 MB data Uri in Exported  ( 1500 Record and 35 Columns ) Tested.

$("#btnExport").click(function(e) {
       //getting values of current time for generating the file name
       var dt = new Date();
       var day = dt.getDate();
       var month = dt.getMonth() + 1;
       var year = dt.getFullYear();
       var hour = dt.getHours();
       var mins = dt.getMinutes();
       var postfix = day + "." + month + "." + year + "_" + hour + "." + mins;
       //creating a temporary HTML link element (they support setting file names)
       var a = document.createElement('a');
       //getting data from our div that contains the HTML table
       var data_type = 'data:application/';
       var table_div = document.getElementById('tableDiv');
       var table_html = table_div.outerHTML.replace(/ /g, '%20');
       a.href = data_type + ', ' + table_html;
       //setting the file name = 'exported_table_' + postfix + '.xls';
       //triggering the function;
       //just in case, prevent default behaviour

Friday, 3 June 2016

English to marathi date convert

English to marathi date convert javascript

var marathiNumber = ["०","१","२","३","४","५","६","७","८","९"];
    function getMarathiDate(englishDate) {
      var englishDateArray = englishDate.split("");
      var marathiDate = "";
      englishDateArray.forEach(function(el) {
         if (isNaN(el) === false) {
           marathiDate +=  marathiNumber[el];
         } else {
           marathiDate += "-"
      return marathiDate;

marathi date picker

bootstrap date picker localization example

bootstrap date picker marathi  localization

$.fn.datepicker.dates['MA'] = {
days: ["रविवारी", "सोमवारी", "मंगळवारी", "बुधवारी", "गुरुवारी", "शुक्रवारी", "शनिवारी"],
daysShort: ["रवी", "सोम", "मंगळ", "बुध", "गुर", "शुक", "शन"],
daysMin: ["रवी", "सोम", "मंगळ", "बुध", "गुर", "शुक", "शन"],
months: ["जानेवारी", "फेब्रुवारी", "मार्च", "एप्रिल", "मे", "जून", "जुलै", "ऑगस्ट", "सप्टेंबर", "ऑक्टोबर", "नोव्हेंबर", "डिसेंबर"],
monthsShort:  ["जानेवारी", "फेब्रुवारी", "मार्च", "एप्रिल", "मे", "जून", "जुलै", "ऑगस्ट", "सप्टेंबर", "ऑक्टोबर", "नोव्हेंबर", "डिसेंबर"],
today: "आज",
monthsTitle: "महिन्यात",
clear: "साफ करा",
weekStart: 1,
format: "d/mm/yyyy"

Sunday, 22 May 2016

send push notification in android using node js?

send push notification in android ?
send push notification in android using node-gcm ?

save below code pushnotification.js

run code with this command

node pushnotification.js

register your token using  /register api call

open http://localhost:3000

send push notification
http://localhost:3000/push  (open in browser)

Friday, 15 April 2016

Remove a drop down item if it is selected ?

Remove a drop down item if it is selected  Select2.js?
Ability to hide currently selected value in dropdown ?
Ability to hide currently selected value in dropdown Select2.js ?


Hide Selected Tag Css
.select2-results__option[aria-selected="true"] {
.select2-results__option[aria-selected="false"] {

Prevent select2 dropdown open when clearing selection ?

  var ddl = selectEl.select2({  
       allowClear: true,  
       placeholder: "Select a "+columnName  
    }).on("select2:close",function() {  
    }).on('select2:unselecting', function() {  
    }).on('select2:opening', function(e) {  
      if ($(this).data('unselecting')) {  
    }).on("change", function (e) {  
       console.log("change event Call");