When multi factor authentication stops being multi
Making user accounts secure on the internet has been a struggle since there was the Internet. There always were and always will be malicious actors trying to...
I’m Berislav - software engineer and consultant from Zadar, Croatia. I’ve spent the last 20 years building and running web applications and the infrastructure behind them: currently Senior Engineer/SRE at SessionLab, previously at Intuo (now Unit4) and BetterDoc, and before that as an independent consultant for startups. On this blog I write about Ruby on Rails, DevOps and infrastructure, business, productivity, and life in general. I also like cycling along the Croatian coast and swimming in the sea.
Making user accounts secure on the internet has been a struggle since there was the Internet. There always were and always will be malicious actors trying to...
I just completed a long data migration on production and while monitoring the pending migration, I noticed an interesting trend in our database usage metrics...
When we are thinking about disaster recovery, a complex picture forms in our heads. Many data centres, in many locations, so our product can reach customers ...
Last few years I’ve been consulting for a company whose main product is a workshop planning tool. Some time ago we were starting to discuss a mobile app for ...
Keeping data consistent, compliant and true is pretty hard nowadays. We are aware of legacy code and tech debt problems, but rarely concern ourselves with da...
I absolutely hate when someone starts prematurely extracting stuff into micro services. Long live the great monolith architecture and all that. But there com...
When you are building a product on the internet, you should aim to get it out as soon as humanly possible. Things you don’t want to care that moment include ...
Exactly two months ago I was out on my very usual bike route and I heard the radar warning me that a car was behind me, then I heard the car braking hard and...
I wrote about migrating the Redis database from AWS ElastiCache to another provider a few years ago . In my case it was Azure, but it doesn’t matter. I used ...
When building any product or business, you want to make it as resilient as possible. You should do that from the very beginning, but sometimes this is hard, ...
During my career in software development, proper communication (or lack of it) has been crucial in instigating some creative discussions and/or flame wars du...
Usually when we run scheduled jobs we like to bunch a few things together for convenience. Let’s say that you have hourly, daily, weekly, monthly task list t...
I’m a huge proponent of server rendered apps. As someone that started with cluttered desktop apps close to two decades ago, and did his best to push as much ...
Regardless whether you are starting out or a seasoned veteran in your field of work, one thing is constant: Customers will want to hop on calls with you to g...
When I say databases, I think about relational database systems. It doesn’t matter which flavour of relational database you choose. They are all fine and str...
When you would rather have something properly documented than fixed.
“Ignoramus” (“We don’t know”, Latin)
Companies are discovering that hiring people to mollify critics and disappointed customers is cheaper (in the short run) than changing things, learning fr...
How to choose the best stack for your app?
Everything is a process, whether we document it or not.
I was listening to a podcast with Jason Fried the other day and heard this term: “The Joy of Missing Out” or JOMO. It took me a couple of days to process wha...
Not while I have two healthy hands.
I never lose, I either win or learn. Nelson Mandela
I’ve been doing a migration of our whole infrastructure from AWS to Azure recently. One of the services we use is Redis, which we use for caching purposes an...
Recently I’ve been notified that we need to move our operations away from AWS to Azure. One of the steps I found interesting (and never did before) was migra...
As a senior reliability engineer I’m tasked with solving weird issues on a weekly basis. Issues you could sometimes classify as heisenbugs, at other times th...
If you are reading this, chances are that you are using Ruby on Rails as your framework of choice. There have always been two main options in the past for de...
I’ve been installing servers, deploying code to them, and exposing them to customers for most of my career. I started doing it by myself in the start. Those ...
I plan to (let’s see how it pans out) write a series of articles on what I learned (and am still learning) during my stay at intuo. There is so much stuff I ...
I don’t know much about corporate culture in the past, but from what I saw, inter-departmental wars were business as usual. Marketing coming up with their id...
In order to make sure our customer data is as safe as possible, we decided to implement encryption at rest. Although we tried a few different approaches, we ...
When was the last time you’ve stopped and took a break? Not a weekend or 3-4 days, but a proper vacation. Something that lasts at least a week or two., a mon...
I’ve been limited to a 13” screen to do my work on for ages and ages, well since July 2013 at least. The only person who did the limiting was myself. One of ...
How many times did you create a UI with a specific user flow in mind, and most of the time your users did something else? Did you ever experience users ignor...
So, my MacBook crashed yesterday. It didn’t really crash, just that it went black after logging in. Although I have a suspect, I won’t name it here because I...
In my last post I touched on the topic of quitting, and how easy it is to take the easy path instead of the hard one and quit. Most of us quit all the time, ...
I remember when I was in my late teens, although I rode on the bicycle around a lot, I never did anything longer than a few kilometres in one go. I had an ol...
Every developer aspires to create great things, but often the most important issue is not just the quality of your code, but many other and obscure things th...
If you are an engineer you probably don’t see much use from LinkedIn as a service. It is full of recruiters, who can be very annoying from time to time. You ...
All of the Ember.js internal code, and most of the stuff you write while creating an Ember.js app runs with the help of the run loop. It is used to batch, or...
If you are a somewhat regular reader, you have probably noticed that I’ve changed the domain name from babinho.net to berislavbabic.com. Maybe you didn’t not...
It is really hard starting something new. Just consider the first time you sat down at the computer to write a “Hello World!” program. Following the tutorial...
When building Rails applications, a lot of focus goes into optimisation. One of those optimizations is using Rails counter_cache columns. The reasoning behin...
When building Ember.js apps you will try to avoid code duplication as much as possible. One of the ways of doing that is using Ember components. Components a...
In almost any web application you create, the question of generating PDF files will pop up pretty soon. There are a couple of options while using Ruby on Rai...
When doing Object-oriented programming, we are always seeking ways to reduce the duplication in the code we write. Reusing existing code is something that ev...
The approach with refreshing regular web applications after deployment is pretty straightforward, you click on a link, it goes to the server, server renders ...
I really like Heroku for fast deployments and everything they offer for a small Ruby on Rails or node.js apps. It’s so easy to deploy a web app there, and it...
If you are using ActiveRecord and keeping your models pretty thin and properly normalized, you will surely reach for the very nice has_one relationship. It’s...
We have read enough about TDD and it’s demise in the last year. Since David published his post about how TDD is dead there have been a couple of flame wars c...
In an average month, there is a lot of stuff you will have to do. Stuff like paying the bills, taking care of inventory for home/company, budgeting, and your...
If you are only an occasional writer, as I surely am, you don’t have to look at the analytics screen all the time. It’s a really nice thing to look at the re...
I was working with my dad in the orchard last Saturday, and after a while we sat down, had a beer and a great discussion. It’s the discussion that pushed me ...
When you start doing something, especially if that something is brand new to you, there is always a dark cloud of failing hovering over you. The probability ...
Is your Ruby on Rails application slow for end users? Maybe you are sending a lot of data through the network. As we rarely test performance on our basic ser...
Two months ago I found out that Nathan Barry has a 24 hour product contest, in which he aimed to produce a real product, in the form of an email course, in 2...
While reading a lot of stuff about freelancing, consulting and business in general, I stumble upon a lot of suggestions and advices to niche down, become a s...
I’ve recently read a great book, recommended by Merlin Rebrovic in one of his blog posts. I’ve always seen design as something abstract, something you need t...
I never wondered about this topic, but going through some old newsletters I signed up for and never followed through, I found a really great email course on ...
I tend to read a lot, averaging at least one book per week. Remembering back, I think the reading started when I was a kid, during the war, being in a shelte...
I have recently read the book Zero to One by Peter Thiel and it really changed my overview on the business world, and the projects/products I want to work on...
I have a few quite obnoxious habits and a few really good ones. I have tried to get rid of some of them, and succeeded in most cases, but some or most of the...
Ever since I first heard of Ember.js (even before the 1.0 days), I’ve been wanting to learn it. But the learning curve of the framework always veered me off ...
It’s the beginning of a new year and the best time to look back on the one behind us. As writing reviews of the past times is generally a good thing, because...
In the last few weeks, I have been approached by a couple of people who are interested in learning Ruby and/or Ruby on Rails. And for their sake, and for my ...
As the title says, I attended my first (and definitely not last) Coderetreat. And we also made history, because it was the first one in Croatia. It was organ...
While doing my best to understand Emacs, that I have been using as a primary development, writing, and play environment, I have felt the need to learn Emacs ...
It’s been a couple of weeks without a (public) weekly review. And the main reason for that is, I’ve had almost nothing to report for them. Family, school, co...
Have you ever been in a situation where you want to do anything but the thing you are supposed to do? Maybe there is a task of life importance, and you just ...
I was having an interesting twitter conversation a few days ago. The tweet that started it all claims that most male programmers don’t have beautiful, or eve...
There are probably many reasons people will say caused them to quit their job, but if you try to differentiate between all of them, you will probably find on...
Are you a consultant, or maybe you have a SAAS product. You are really good at what you do (programming/design), or your SAAS it the best and simplest in its...
I’ve been brought up in a country where piracy was (and probably still is) imposed to you right from the start. Software licences being really expensive, and...
Have you been doing programming for a long time, in some old and boring, non-intuitive language or technology? Have you found that new technology everyone is...
I didn’t do much beside regular work this week. I underestimated the size of Benjamin Franklin: An American Life, so I’m still reading it, and it’s great. I ...
We have all heard about the Minimum viable product, and it is a great thing to strive for, if you are doing software development (or design). What in hell ar...
This is probably be one of those rant posts, so beware. I was listening to one of the podcasts I try to regularly listen, and heard a good description of a w...
Are you like me, and have a couple ideas (blog posts, products, applications) lingering in your head? Are you also like me, and do nothing whatsoever about t...
I’m trying to do my best in organizing myself, hence these weekly reviews I’m planning to do more often, hopefully on a weekly basis. The posts probably won’...
Are you one of the many people who don’t track all of their working time? Or maybe you just forget to do it all the time? Are you aware how much money are yo...
On almost every application I’ve worked on, there was a similar user story:
If you are a full time freelancer, you have, or surely will encounter a famine period, because only thing sure in freelancing is uncertainty. Of course, with...
Do you know that feeling when you are starting to learn something new? The feeling of being lost in all that stuff that you can not grasp? Feeling like an id...
Have you encountered a website with a very slow response? How do you feel when you have to wait for 5 or more seconds, for the page to even start responding?...
Are you feeling like an impostor in your team? Are you achieving things other members of your team appraise you for, but you live in fear, day in and day out...
I recently read the book Authority by Nathan Barry, and I wanted to share what I have learned from it. The book is basically a course on how to self-publish ...
I’ve always had a love-hate relationship with HAML, partly because if the css is clean, it can be a great thing, and if it isn’t then your markup will look r...
As you can notice, I’ve been blogging very sporadically over the years. And I’m trying my best to amend that. There have been times of super productivity, an...
So, I’ve started using emacs in my daily development and writing process, after a couple of years using vim exclusively. Why did i do it? Mostly curiosity, a...
I’m using a basic elasticsearch-rails setup on one of the applications I’m working on. The thing is, we sometimes need to make changes to the ES index, add n...
I’ve attended a hackathon yesterday, that was the first “real” one in my life, and i’m still a bit under the influence. It was organised by the great people ...
So, you have decided to start freelancing? I am really happy for you! It is a great choice, one of the best work related decisions I’ve made in my life. You ...
You are surely tired of your commute, every day, waking up way before it’s convenient for you, cramming in public traffic, with people around you, wasting yo...
So what are your top reasons you want to become a freelancer? Feel free to leave them in the comments section below. I will briefly give you my reasons for d...
Let’s say you are building a web app that has some secure user data involved in the picture. You have to secure it with https, that is a necessity. So what h...
Let’s get this clear, this is not a rant against anyone, this is just a statement. But you must realize this, it is not easy and this is not a one week fix. ...
Surely there has been a instance when you are creating an application that has a sidebar and a main content div. In the case of content being too long, the u...
As the social part of the sites is growing stronger, everyone of us has to include a user’s location of some sort into the application. There can be many rea...
So you want to do integration testing for your application, good for you. If you have chosen MiniTest and it’s specing DSL MiniTest::Spec as your test frame...
So, you want to develop your big Point Of Sale(POS) solution on android but don’t know how to print the receipts. You have a few options:
If you are considering about using some kind of pagination like will_paginate or some pagination of your own flavor, and you are stuck using Oracle i have a ...
We are all excited in a new addition to rails plugins family that is turbolinks. If you have tried to include it in your application, you may have noticed th...
Have you ever wondered why is there no remote option for will_paginate gem? It’s too complex and data dependent to handle all possible situations. I have mad...
We have a new product ready and it is a Ruby on Rails webshop bundled with an ERP software written on Oracle Forms 6i. I will not go into the details of this...
If you are a software developer like me, every once in awhile comes the opportunity to install your new development machine. Some of the causes can be a new ...
Due to some legacy issues, and HP workstations being shit that you can’t turn the hardware virtualization on, I had an issue with one client regarding speed ...
I have encountered a problem with users on a webapp that i co-created. The users would click back after entering data in a form, or close the current tab or ...
I was surprised to know that i am presenting a product this week at the oracle user conference HROUG.hr
If you are considering the upgrade to Rails 3.1.x and you wish to include the JQuery-UI in your web application follow these simple steps: Load jquery-ui in ...
I have encountered a problem where I needed to disable some checkboxes on my forms. As you know, a disabled html item by design isn’t going to be posted back...
As I have written in my previous post, I’m playing with autocompletion in my web app. I have found some new tricks, that will speed up the process. Never lik...
Almost every time you create a web application you will have to add at least one autocomplete field in your application. Here is one of the possible ways of ...
As I have written before, I use Ubuntu for my rails development, and have been using it as my main OS last 10 months. I have been trying all the rails 3.1 be...
As I am exploring different languages and platforms for web development, I have encountered(a few months ago) ruby on rails. It has impressed me so much that...
I have encountered a problem with oracle database that it does not reuse lob data. So, if you have 5000 rows of some lob data, and you delete them from the t...
As I am working on Oracle database at my day job, I have found something that is by default on sqlserver but not in oracle. That is the datediff function tha...
My best man asked me a few months ago to create him an app that would allow him to send a predefined sms to a predefined number on a click of a button using ...
I have encountered a problem in class today, we needed our Contact Manager application only to run one instance of every MDI child form, so the user will not...
This is a first in a series of posts, as I will try to build ASP.NET MVC application against Oracle XE database, but this example can be used for any Oracle ...
I am creating a backup application and have to get the list of files in some directory here is the simple way to do it. If you only need contents of one dire...