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.
This article will help you solving browser compatibility issue. To make detection more robust, here included browser-specific characteristics which is different according to browser. Opera 8.0+ var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; Firefox 1.0+ var isFirefox = typeof InstallTrigger !== 'undefined'; Safari 9.1.3+ var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || safari.pushNotification); Internet Explorer 6-11 var isIE = /*@cc_on!@*/false || !!document.documentMode; Chrome 1+ var isChrome = !!window.chrome && !!window.chrome.webstore; Successfully tested
Recently we had a good Retrospective. I loved the outcome of this retrospective. First we had an Ice breaker session, Empathy Snap followed by PLEASURE AND GAIN retrospective. Empathy Snap Is a nice Ice breaking team building exercise. We did empathy snap for the big hitter + big blow and through this exercise team really came to know, how well they can empathise with each other So it was a nice start, everyone opened up and ready for the retrospective. Joy is not in things; it is in us. PLEASURE AND GAIN retrospective was nice way to see how we can
Table Print on Rails Console TablePrint shows objects in nicely formatted columns for easy reading. It even lets you nest other tables of related objects, contextualizing data across tables. It's incredibly flexible, yet simple, making it easy to see exactly the data you care about. Installation Install as a standalone gem $ gem install table_print Or install within rails In your Gemfile: gem "table_print" $ bundle install Usage Outside rails $ irb > require 'table_print' > tp array_of_objects, options Inside rails, the gem has already been required by your Gemfile so all you need to do
In Rails 5 Active Record provide two finder methods to specify JOIN on associated tables, joins left_outer_joins Suppose in our application we have Article and Comment. Here comments belong to an article, while article have many comments. Now if we want to show list of all articles along with number of comments, we need join to Article and Comment by left_outer_join. In rails 4.x, Active Record does not have support for outer joins. So we need to add SQL for left outer join manually. articles = Article.join('LEFT OUTER JOIN "comments" ON "
API testing - Its a testing of an API which is a set of instructions which used to exchange the data in between two systems. What is an API ? Two systems or softwares use the API is used for communication and an exchange of information. What is an API testing ? API testing is basically done for the system which has number of API’s and meant to be used for data or information exchange. Below things need to be taken into consideration for API testing - Testing the minimum and maximum values supported to make sure that test suite has
Dependency Injection MVC design pattern enables separation of concerns. Helping us to develop more independent components in our application. This is how we can implement loose coupling, and it helps testing and maintenance of our application easy. So Dependency Injection helps in making your application’s components more loosely coupled. There are software design patterns out of which Dependency Injection(DI) is the one that allows us to develop loosely coupled code, which greatly reduces tight coupling between developed components. DI enables us to manage changes and other complexity in our application. The purpose of DI is to make code
Raising our Emotional Quotient We all have different personalities, different wants and needs, and different ways of showing our emotions. Navigating through this takes tact and cleverness – especially if we hope to succeed in life. This is where Emotional Quotient (EQ) or Emotional Intelligence (EI) becomes important. EI is the ability to recognize your emotions, understand, and realize how your emotions affect people around us. It also involves our perception of others: when we understand how they feel, this allows us to manage relationships more effectively. Let us look at the following five elements that defines EQ or EI. Self-Awareness
autolink-js is a small (about half a kilobyte), simple, and tested JavaScript tool that takes a string of text, finds URLs within it, and hyperlinks them. autolink-js adds an autoLink() method to JavaScript's String prototype, so you can use it on any JavaScript string. Take a look at the tests, but essentially, after including either autolink.js or autolink-min.js to your page, it works like this: Input : "This is a link to Google http://google.com".autoLink() Output : "This is a link to Google <a href='http://google.com'>http://google.com</a&
While development, a software application is divided into different logical or functional modules for better management. When each module is developed, it is also tested for functionality known as Unit testing. Once all modules are developed and they are integrated and Integration testing is carried out to discover the issues which arise as different modules are interacting with each other. Generally speaking, this phase is also called the System Integration Testing. There are several kinds of testing that involve or overlap or may even be synonymous with integration testing, like regression testing, system testing, compatibility testing, platform testing, risk-based testing,
Recently I was looking at various ways to create a constants in Elixir. I come from ruby background, where it is very easy to create and think of constant. You can create constant by assigning a value to constant name. Constant name should begin with capital letter in ruby. Concept of constant is bit twisted in ruby as we can reassign constant to different value. I_AM_CONSTANT = "though i can be reassigned :)" Ohh! Just remembered this is a post about Elixir and not Ruby. Being in love with Ruby, I can't stop talking about it. I guess