To find the size of a directory including files and folders therein, run the following command in the terminal: du -h /path/to/your/directory/ The -h flag stands for "human" which gives…
Find folder/directory size Linux
Separate Cron log Ubuntu
By default Ubuntu logs cron results to: /var/log/syslog Should you want a dedicated Cron log you can do the following: nano /etc/rsyslog.d/50-default.conf Uncomment the following line: #cron.* /var/log/cron.log Restart rsyslog:…
Google Drive on Linux
Even though OverGrive is a closed-source paid application, you'll want to give it a look. At $5 per Google account, you can access all the features available on the application.But…
Open large text files Ubuntu Vim
Opening large log files with the default text editor or nano very quickly becomes a resource hogging nightmare. To solve this install Vim: sudo apt-get install vim Open the file…
Solved – Could not get lock /var/lib/dpkg/lock
From time to time you might receive the following error when trying to install something: Could not get lock /var/lib/dpkg/lock To fix this you can run the following command: sudo…
Difference between an Argument and Parameter
Although trivial, the difference between a parameter and an argument can often be a point of confusion for developers. A parameter can be defined as a variable in a method…
Add Google reCaptcha to Java Spring
Preventing bots from submitting forms on a website or web app is an absolute must, especially when you're receiving hundreds of emails about highheel specials in Russia 🙂 For some…
Truncate a string in jQuery without cutting off word
If you'd like to display a preview of some text without cutting ending the preview in the middle of a word you can use the following snippet: jQuery.trim("This is a…
Solved CORS policy: No 'Access-Control-Allow-Origin'
Let's start by understanding why you receive the following error message: XMLHttpRequest cannot load … has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource….
How to Install Kdenlive on Ubuntu
Kdenlive is a free to download open source multi-platform video editing software. Assuming you require the Debian distribution package, follow these simple steps. To get started, open your terminal with:…
