Hubspot CRM - how, what and benefits

Recently while working on one of our project we came across requirement where we wanted Hubspot integration with our application for ease of sales team to manage user's data and understand their interactions and trends in application. I will quickly explain few things about Hubspot here in my article. What is Hubspot? In brief, Hubspot is a CRM which helps you monitor and fine tune many things regarding your application. Based on my analysis I will shortly list down few most important of them in order to give you more insights about it - Closely monitoring user interactions with your

The jQuery Mockjax Plugin for mocking or simulating ajax requests and responses

Currently I've been working on writing acceptance test cases for my project in which there were lot of scenarios where I'd to use mocking/stubbing for which I used MockJax plugin of jquery. So I'm sharing some examples which might be useful to someone. A simple mock request using mockjax plugin can be written as $.mockjax({ url: '/posts/1', responseTime: 500, responseText: { status: 'success', post: 'Mockjax Plugin for mocking or simulating ajax requests and responses' } }); Here we can specify the time it will take to get the response and the text which we'll be getting in the response. This

Working Of Yarn and npm

As an Ember developer, discovering Yarn package manager by Facebook was the best that could happen to me. Whenever one of my fellow developers encountered “Broccoli Plugin failed…” I used to say ‘rm -rf node_modules’, that’s what my seniors told me and I continued the tradition. That was very frustrating and as a beginner, I use to blame it all on Ember as I didn’t understand much of what was happening. As time passed I realized npm was the culprit. But a few months back I discovered this Yarn package manager. When I found it, I read

JQuery Performance Tip - Native functions instead of their Helper Counterparts

Recently, I had come across a situation where I had to make 2 ajax calls sequentially, i.e. fetch address from GeoLocation API and send it to Fedex API for fetching the transit time. For this, I needed to convert the address from GeoLocation in particular format using loop to send it to Fedex. Initially, I used '$.each()' method of jquery on an address array to convert it in desired format. This is common approach that we follow and it took 1.12ms for the processing. I wanted to reduce this processing time. After a bit of research,

Regular Expressions - Greedy vs non-greedy

By default, regular expression matching is greedy, which means they try to match as many matches as possible in a given string. Lets see an example considering HTML snippet - <p>Hello</p><span>Awesome</span><p>World</p>. Our task is to extract first p tag. i.e pattern matching should return <p>Hello</p>. Immediate solution is to write regex - /<p>.*<\/p>/. But it would match the whole string. Greedy The reason it matches whole string is

Interesting feature of Elixir: Documentation as Tests

One of the coolest feature I came across in Elixir - our code documentation becomes our unit tests. I was amazed by its simplicity when I saw it in action in sample app I was writing. I feel this is one of the most incredibly and helpful feature I saw in any modern programming language in recent times. (Python has similar functionality using Python’s doctest.) Let me explain this by giving a quick demo using few simple examples: Math functions sum and multiply. Lets say this is our Maths module defmodule Maths do def sum(num1, num2) do num1

Add new instance methods to existing types using Extension in Swift

Extensions add new functionality to an existing type. Type can be class, structure, enumeration or protocol. This includes the ability to extend types for which you do not have access to the original source code. Extensions in Swift can add computed instance properties and computed type properties. Extension helps to use more usable method by declaring it once in extension which means no need to redeclare and repeat same method in every class. Extension Syntax Declare extensions with the extension keyword: extension SomeType { // new functionality to add to SomeType goes here } This example adds method to Swift's build-in UIViewController type,

Inspiring Article - Loved this...Hope you all like it.

Hello Everyone, I am excited to start this new journey as my role of HR Executive in Kiprosh 2.0 initiative and I hope I live upto your expectations. This is my very first week and I am happy to know you all during introductions. This is my very first blog post here and I thought to share this very interesting story that I came across. In 1968, Spencer Silver was working at 3M trying to create super strong adhesives for use in the aerospace industry in building planes. Instead of a super strong adhesive, he accidentally managed to create

Adding new column with default value to high volume database table

Almost all Ruby on Rails developers might come across scenario where they need to add a new column with a default value to one of the database tables. Most of us (including me) would write following migration statement - add_column :table_name, :column_name, :boolean, default: false This is a good practice but would cause downtime if the table has large number of records. It took 3 secs when I ran the migration for a table having 50k records. -- add_column(:table_name, :column_name, :boolean, {:default=>false}) -> 3.3695s 3 secs is a long

Hero’s Journey Retrospective

Hero’s Journey Retrospective We had an awesome retrospective session recently. As the topic of this retro was little different, everyone in the team was excited. The retrospective was about the Hero's Journey , where we discussed about our journey relating to the current project state. Running Retrospective: 1). Our first focus was to understand areas of our journey. So we came up with the following areas : ⦁ Hero : Who completed/working on the major features. ⦁ Guide : Who guides to complete the features. ⦁ Cavern : The challenges faced/The challenges ahead/ Sad about. ⦁ Treasure : Achievements / Happy about. 2). Then participants wrote their notes