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 building few microservices and apps in Elixir and deploying it to heroku, we realised that heroku was not very cost effective for us and also we can't get into every nuts and bolt of how heroku manages our app. As a part of learning things related to deploying to our own server and to save some bucks we decided to look for other options and we decided to experiment deploying one of our app to Digital ocean. One thing we were worried about, was whether we can make deployment as easy as heroku makes it for us. After some
In rails one of the way to execute raw query is use of ActiveRecord::Base.connection.execute We are going to see if we use this option to execute raw query and we are working with pg database then what result it provides and what operations can be performed on that result. results = ActiveRecord::Base.connection.execute('select * from purposes') It returns PG::Result object : #<PG::Result:0x007fd5a09686d8 status=PGRES_TUPLES_OK ntuples=3 nfields=5 cmd_tuples=3> We can verify it simply using .class as we normally do in ruby. results.class => PG::Result This
Imagine this You are working on a mission critical task, with a delivery date soon approaching. Along with that, the task even asks for a lot of interdepartmental collaboration, bringing the Stakeholders on-board with the developments, and delivering on the challenges that the technology being used has to offer. So you call for an All Party meeting with a set agenda. Everyone shows up and after an hour of electrifying brainstorming, you all together chalk out a plan to tame the beast! -by deciding the who’s who, the whats and the whens! Now as the delivery date nears you
Method Missing Method Missing is one of the concepts of metaprogramming ruby. Although metaprogramming is very powerful it too has some shortcomings especially speed. A normal method is comparatively 1.5x times faster than a missing method. One of our users complained about our calendar page being very slow - on inspecting we found request was taking more than 30 seconds for loading the month view of the calendar and eventually request timed out. The user had lots of activities on that calendar - 2000+. On further inspection, we found our DB query was quite fast but each activity was
In this article I am going to show you how to create and customise animated off-canvas side menu in ember with ember-burger-menu. In your ember application just install ember-burger-menu by ember install ember-burger-menu It will also install ember-cli-sass , After installing this package we need to add the following code to get menu template in application.hbs {{#burger-menu as |burger|}} {{#burger.menu itemTagName="li" as |menu|}} <button {{action burger.state.actions.close}}>Close</button> <ul> {{#menu.item}} {{link-to 'Home' 'index'}} {{/menu.item}} {{#menu.item}} {{link-to 'Books' 'books'}} {{/menu.item}} {{#menu.item}} {{link-to 'Create
Team Synergy# Team synergy is a very important factor for a successful project and thus organization. Over the years while I worked on various international projects and worked with different individuals I noticed that if we lack team synergy then many things go for a toss. Sometimes it can impact recent or current releases and sometimes it can have a bigger impact across organization. There are many team synergy issues which we come across at workplace. However important is to identify those issues and proactively resolve them rather than just leaving them in limbo. Many times it happens such issues
String encoding is something that we don't really think until we see Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT Or when users complains about missing special characters like "’" (apostrophe copied from Microsoft Word) or when "菜医生" becomes "иЏњеЊ»з”џ". Before we go into encoding problems, lets understand what encoding is. A string can be considered as an array of bytes: irb(main):001:0> "world".bytes => [119, 111, 114, 108, 100] Here 119 means w, 111 means o and so on. This relationship between bytes and characters is
UISlider is a control used to select a single value from a continuous range of values. Default UISlider just provides track and thumb with default color having minimum value to maximum value. You can drag the thumb from the start point to the endpoint continuously in the range set. Default UISlider If you are using this control in your project, you need to customize the control to make your screen attractive(as per the design). Now let's customize the UISlider: You can customize color, thumb image, and track color easily. Basic customization can be done in two ways:- From
To start with, Annotations are an example of declarative programming in action. Rather than write out the procedural code to make something happen everywhere you need it, you write the code once and then declare (through an annotation) where you want that code to be run. You may not have to even write a lines of the code: It might be part of the framework code runs inside of. It's a great way to handle crosscutting concerns (things that are needed in many places in the application but not in every place). It sounds like the way that attributes are
URL previews are a way of organizing the URLs in the textarea in such a way that the URL is visible in a more organized way to the user instead of a just plain link. The plain URL makes no sense most of the time because of the advent of URL shorteners. With the increasing usage of social media websites and social media share plugins it becomes very difficult to identify spammy and non-spammy posts on the internet and with URL previews we could help such websites differentiate on our apps by showing URL previews every time someone shares a