All Blogs
Written by Kiprosh, team of passionate and disciplined craftsmen turning your ideas into reality.
Kiprosh
is now part of
LawLytics
Written by Kiprosh, team of passionate and disciplined craftsmen turning your ideas into reality.
Recently while working on one of our app there was a scenario where I was expecting text-field input as multiple values from predefined list of values in database. Also, user should get suggestion for matching values from database as he types in that text-field and value which do not exist in database should not be allowed to enter. I found one perfect solution on this scenario, that is [jquery-tokeninput][1] What I did to integrate plugin is very simple and as follows- Add jquery.tokeninput.js to your javascripts folder. Add token-input-facebook.css or token-input.css (You can add any
Recently, I added a global search feature in out Ember Application. As it was a global search, it was linked from most of the pages of the application. User can click on search icon in the right-top corner and he will be redirected to search page. But now how to go back to the page we came from? as User can go to search from any of the page of the application. Here we will see how we can know about last visited route in ember application. We can find our previous route as follows: import Ember from 'ember'; export
In simple html pages, we can easily create link to div tag or any other tag on same page and even on different pages. For example: Heading Text Refer it as: Link text Now how we can achieve it in Ember.js using {{link-to}} helper? Lets take as example: -> Consider we have a page "/faq" and it has following content: faq.hbs .. What kinds of items can be donated? .. -> Now we want to visit page "faq" and scroll it down to the above question. -> Simply, we can achieve it using
It's about a year working and being an associate at Kiprosh. Last one year has gone really fast for me. I experienced so many good things: course-correction for my bad habits on coding style, honing my inter-personal skills, stretching myself beyond my known boundaries and so on. In this post, I would like to talk about culture at Kiprosh and reflect on how does it feel like being a Kiprosher Culture at Kiprosh At first glance it felt like, it will be difficult for me to work with this high energy and fast paced team. But, Kiproshers are by nature
Many times websites get hit by unreliable sources which can mainly be automated scripts that continuously hits a web url which can cause DOS(Denial of Service) attack. In Rails, we are handle such types of attacks by restricting the requests at Rack level. Rack is a middleware which can serve as "a way to filter a request and response". For this, we can use [rack-attack][1]. Example: Rack::Attack.blacklist('allow2ban rapid send_verification_code') do |req| if req.post? && req.path == '/api/v1/verification/send_verification_code.json' Rack::Attack::Allow2Ban.filter(req.ip, maxretry:
In our current app we are using kalendae datepicker plugin. Lately, we wanted to add a 'today' button that is visible to the user in all the datepicker popovers(used for numerous date fields throughout the app). As the name suggests on clicking this button, the current date gets selected and is displayed in the corresponding field. Github link of kalendae - https://github.com/ChiperSoft/Kalendae We can do this by writing function to add button in popup and then we can use it wherever we need. function setTodaysDate(kalendae_popup){ var inputToAdd = $("", { type : "button", id : "set_today_date"
If you have an application which creates notes, learning how to integrate evernote to sync notes will be very handy. You may refer this ruby gem - [evernote_oauth][1] which has useful methods to access your existing evernote notebooks, create notebooks and notes, etc. The gem is well documented. Refer this blog to understand and see code to create note on evernote - [Create Note on Evernote][2] If you refer the code in the above blog to create a note - just this particular snippet - n_body = "" n_body += "" n_body += "#{note_
We have integrated Chargify in one of our web application for recurring subscription payments. Recently we observed that few of our test users, that are more than 6 months old, are unable to login in our staging site, which is connected to Chargify TEST Mode. We noticed that auto cancellations are happening (once a day) for these users in their Chargify subscription records. This was a strange behaviour. We thought either this is happening due to our Dunning settings in Chargify or due to unpaid state changes for credit card expiry. After debugging and verifying everything in our Chargify settings,
If you are using Sidetiq to set recurrence to schedule background jobs, then you may want to be aware of this known and reported issue with recurrence. BTW, recurrence schedule is done using ice_cube gem This is likely an issue in Ruby 1.9.3 but I have posted comments on this article here along with git issue to clarify if its an issue with Ruby 2.0 and above. References at the bottom of this email. Issues: We generally set recurrence daily or hourly in our app/workers/job_name.rb like this recurrence do daily end recurrence
I was working on ActiveAdmin views and as we are using html editor for some of our text fields so we wanted to make sure when we are showing that html content in the application. It should be readable and without html tags. To do that generally it is mentioned to use a block for the field and use .html_safe method. However I did not like this approach, as we have too many fields where I have to call html_safe method and I was not keen to write block for each fields. I know :) I am lazy in