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.
Category: Science & Tech (Page 24 of 35)
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.
There can be cases when you want to be able to mute a certain tab, as you are not interested in hearing any sound from it. You may simply be interested in reading a paragraph and do not want to get bothered about the sound of the autoplay videos, or ads that are part in that page.
We spend so much time on our devices. Probably the majority of the time that we are awake and get so much immersed into using them such that we may forget to blink. I recently found an app called Pomy which is like a Pomodoro for our eye health.
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.
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.
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.
With the option to work from home, many companies already have team members that are distributed in different countries, which may also have different timezones. This can make it challenging to keep track of the time, so here is a free tool can help you with that.
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.
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