How To Use Image_tag In Rails With Mustache Template

Recently I have been working on one rails project, In which I have used Mustache.js. Moustache is a logic-less template used for client-side dynamic template rendering. You can check this link, Mustache, for more details. As a rails developer, it’s common to use image_tag for displaying images in rails, so I preferred to use image_tag … Continue reading How To Use Image_tag In Rails With Mustache Template

ProTips: Elastic Search & Rails

In this blog post, I will not tell you how to set up an elastic search with Rails. There are plenty of blog posts available for that, and I referred to this blog post, to begin with, elastic search and rails.

In this blog post, I will be showing how to set the “ignore malformed” option. This may sound trivial, but unfortunately, the usage is neither in the ES-rails documentation, nor I could find any content on the web.

I spent a few hours digging into the ES-rails code and deciphered it. I hope this helps you save time.

PROBLEM

Recently we started using elastic search in our project. One of the tables had around 9 Million records. After configurations/settings, we started the indexing. Monitored a few thousand records, and indexes were correctly getting generated. However, in the end, the indexing of 5k documents failed. I was puzzled. Why only…

Shweta Kale's avatarLearn with fun

In this blog post I am not going to tell you about how to setup elasticsearch with Rails. There are plenty of blog posts available for that. I referred this blog post to begin with elastic search and rails.

In this blog post, I will be showing how to set “ignore malformed” option. This may sound trivial but unfortunately the usage is neither in the ES-rails documentation nor I could find any content on the web.

I spent a few hours digging in the ES-rails code and finally deciphered it. Hope this helps you save the time.

Problem

Recently we started using elastic search in our project. One of the table had around 9 Million records. After configurations/setting we started the indexing. Monitored a few thousand records and indexes were correctly getting generated. However, at the end found out that the indexing of 5k records failed.  I was puzzled, why only…

View original post 566 more words

Steps To Follow For SQLite Storage In Ionic 2

In my last blog, I promised to provide a step-by-step guide to implementing phone storage. The main purpose of storing data on the phone (offline support) is to reduce load time and optimize downloads.

In this blog, I am sharing my experience using storage with Ionic 2.

There are different ways of integrating storage with the Ionic 2 app. I was considering two options, 1) use local storage, a collection of key-value pairs within the application or 2) use SQLite database. I chose the SQLite database. The reason is that local storage has a key-value structure, it’s hard to query a large amount of data, plus it has a limitation of 10 MB of data.

There are a few other blogs, but I found them convoluted. So, I tried to simplify the steps. Let’s see the step-by-step procedure.

STEP 1: BASIC INSTALLATION

Install the latest version of Ionic and Cordova by –

STEP 2: START…

Summary Not Applicable

techblog2017's avatarTech Blog

In my last blog I promised to provide step by step guide to implement on phone storage. The main purpose of storing data on phone (offline support) is to reduce load time and optmize the downloads.

In this blog I am sharing my experience on how to use storage with Ionic 2.

There are different ways of integrating storage with Ionic 2 app. I was considering two options, 1) use local-storage which is collection of key-value pairs within application or 2) use SQLite database. I chose SQLite database. The reason being,  local storage has key value structure, its hard to query large amount of data, plus it has limitation of 10 MB data.

There are few other blogs, but I found them little convoluted. So, I tried to simplify steps. Let’s see, step by step procedure.

Step 1: Basic Installation

Install latest version of Ionic and Cordova by –

Step 2: Start…

View original post 550 more words