Category Archives: Cocktail

Cocktail category holds mixture of all web development, we design issues and solutions. General place for all kind of issues related to web development.

Generate n-bits sequence code in Javascript

on

Recently, I came across code challenge to generate n-bits sequence code in Javascript. The challenge was need to create a function to print the n-bit sequence codes by given number. I’m just sharing the coding experience here, so someone will get benifited in feature visitor. Example : 2-bit code sequences Input : 2 Output : […]

Read more..

Pre populate form in ionic 2

on

This small tutorial explains how to pre-render or pre-populate the data in the form in ionic 2. Mostly we do this while editing form. I am using typscript and Ionic 2 framework. I am considering you already having project setup. Cordova CLI: 6.4.0 Ionic Framework Version: 2.0.0-rc.0 Ionic CLI Version: 2.1.7 Ionic App Lib Version: […]

Read more..

css single day calender widget

on

We are going to see a short tutorial to create the single day calendar widget using css. It very simple widget with using few lines of css and html code. Lets see how to create that. HTML 03 Oct CSS div.cal { height: 70px; width: 70px; border-right: 5px solid #fff; border-bottom: 5px solid #fff; box-shadow: […]

Read more..

External category filter plugin for jquery datatables

on

jQuery datatables is providing us feature to create reach future data grid with search, filter,  sorting, pagination and etc. Still real world applications need extended requirement, fortunately jQuery datatables providing the option to extend the features for us. Let’s see how to create the external category filter with below explanations. External category filter In many cases, […]

Read more..

solr date range queries

on

Apache solr date range queries may be confusing the person who handles it. I just listed few of the useful solr date range queries below. That all helps to fetch/search the published posts from certain time interval. 1) Today published post pub_date: [NOW/DAY TO NOW] 2) Last week published post pub_date:[NOW-7DAY/DAY TO NOW] 3) Previous […]

Read more..