Blog

Blog Post Image
Vue.js and HTML5 contenteditable attribute gotchas

HTML5 contenteditable is a simple and handy option for rich text editing features on web pages. Say, for example

Read More
Blog Post Image
Install AWS EC2 discovery plugin in Elasticsearch

To increase the performance in Elasticsearch, many times we add new nodes to Elasticsearch cluster and manually change the configuration file with new IP address, etc. so that it gets added into the cluster. This takes up our time too. To make it efficient, we deceided to use AWS EC2 discovery plugin which discovers the Elasticsearch EC2 instances automatically through the host provider ‘ec2’. This plugin made our task so simple. The below changes are first tested in staging and then carefully executed in production without any issues. It takes less than an hour to install AWS EC2 plugin with the upgrade.

Read More
Blog Post Image
Machine Learning - Convolution for image processing

In normal dense network or multi layer perceptron all the neurons in one layer is connected to all neurons in the next layer, which means the weight params of the network is the multiplication product of number of neurons in the connected layers, so if we were to process the image of higher resolutions the network params will be very high and require higher computational power and won’t scale for larger images. No one wants to train millions of params for the small images.

Read More
Blog Post Image
Build your own Image classifier with Tensorflow and Keras

We have already seen why convolutional neural network is suitable for image Processing. Now we can build our own image classifier using Convolutional neural network. We are implementing this using Python and Tensorflow.

Read More
Blog Post Image
Postgres’s NumericValueOutOfRange

When you run into an error something like this,

Read More
Blog Post Image
Speed up kubernetes build trigger Artifacts with cache in Google cloud

Kubernetes is getting popular these day because of its strong community and smoother container orchestrations.

Read More
Blog Post Image
Deploying Rails onto Kubernetes

As a forward thinking organisation, we have deployed most of our apps onto Kubernetes recently, of course with the consent and acceptance from the clients.

Read More
Blog Post Image
Indexing ElasticSearch documents in Rails

The simplest way to index documents in production/staging environments using Ruby on Rails framework is using the following command.

Read More
Blog Post Image
Ruby gsub for capture and reinsert sub-matches on the string

In ruby, sub and gsub are very useful and powerful string operators.

Read More
Blog Post Image
Google Cloud Storage and CORS

With the advent of Rails 5.2, As passionate Rails developers, we want to be on top of it.

Read More
Blog Post Image
Quick way to add swap memory in Ubuntu/Linux

It is not uncommon to see a Jenkins build failure due to a memory choke now and then while running thousands and thousands of rspec examples. The examples may be too much for the memory allocated within the EC2 instance. One simple solution is to enable Swap memory. Going through the typical EC2 route you need to have a dedicated Swap Partition. However if you feel you don’t want to go through that route, you can simply do it via a swap file.

Read More
Blog Post Image
Elasticsearch scaling and same node id problem

Currently we index huge amount of data using elasticsearch every 3 months. As a devops, I always have to setup Elasticsearch EC2 instance manually. Each time, when we need to scale the elasticsearch nodes for indexing, I have to launch the ec2 instance and manually install java, ElasticSearch etc. and of course this is time consuming task taking 20 mins per node. To avoid this manual intervention, we want to run the entire process of scaling the elasticsearch nodes automatically.

Read More