Software engineering and personal development

Category: Science & Tech (Page 24 of 35)

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

How to quickly take screenshots on your Mac

mac, screenshot, shortcut
Img source: apple.com

I take a lot of screenshots these days. Fortunately, I use a really handful shortcut that has saved me probably many hours until now from having to explain something with words to someone else. I hope these quick shortcuts will also be beneficial for you too.

I take a lot of screenshots these days. Fortunately, I use a really handful shortcut that has saved me probably many hours until now from having to explain something with words to someone else. I hope these quick shortcuts will also be beneficial for you too.

Continue reading

Save countless hours from YouTube by hiding recommendations with this Chrome extension

Img source: DF YouTube

I have already written about a really helpful Chrome extension that can be used to hide recommended videos on YouTube, but I wanted to write about it once again, as I want to emphasize something that may have slipped unnoticed in the first article. This Chrome extension does not hide recommended videos on the right side of the video that you are watching, but also on the homepage. I learned about it only a few months after I initially started using it and the reason for that is because you have to manually go and turn on this option for yourself.

Continue reading

Load and manage your environment variables easily with dotenv gem

You will most probably need to have at least one particular case where you need to store configuration values for your Rails application. Saving these types of values in the environment is one of the principles of a twelve-factor app. It is thus recommended to use a separate file and use environment variables inside your code so that you do not have to change the same value in multiple places. This, however, is not something that you can do really easily unless you use something really helpful like dotenv.

Continue reading

How to create a direct download link for Github project using DownGit

Sometimes you may need to send someone a project and they may not have Git installed, so they may not be able to download a repository from the command line. One of the ways that they can download it is by going manually to the Github repository and pressing the Download button. Here is another way that can save up time to both those that have and those that do not have git installed.

Continue reading

Reduce the amount of time you waste online using Nudge

Img source: Chrome store

I believe that we are even not aware of our habits online. We are not aware of how much time we spend on social media and many other sites, which for a lot of us may simply be a waste of our time. We may have become so habitual that we simply open these sites without even reconsidering that decision at all. It has become as if we are obliged to do so. Here comes a really cool Chrome plugin that I have been using for the past few weeks and I am really content with it.

Continue reading
« Older posts Newer posts »

© 2024 Fatos Morina

Theme by Anders NorenUp ↑