Software engineering and personal development

Month: April 2019

Find time differences quickly and easily in Ruby using TimeDifference gem

Img source: timeanddate.com

It is hard to think about a project where you do not have dates and timestamps involved in it. You may need to find the day when a user has performed a particular action, or when an event has occurred and many other cases. TimeDifference is a really helpful gem that makes it really easy to calculate the difference between two time periods. It allows you to calculate the difference in years, months, weeks, days, hours, minutes and seconds.

Continue reading

Save up a lot of time by switching between Chrome tabs using shortcuts


Img source: Medium

A couple of weeks ago I learned a really great shortcut for Chrome that I really enjoy using. It is about jumping between tabs by only using my keyboard. Yes, I knew how to switch to certain tabs using Cmd + a number, like Cmd + 3, to switch to the third tab, but I usually have a lot of tabs open and there are no sufficient single digit integers that I can use to switch to those tabs. Aside from that, I am also not sure about the number, so I needed to learn this new shortcut. At least, I know that I needed, as I have found it very helpful, and I hope that you will find it helpful too.

Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑