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….
Solved CORS policy: No 'Access-Control-Allow-Origin'
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…
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…
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…
Difference between AdWords and AdSense
This is a commonly asked question and yet sometimes poorly answered, so here's the long and the short. Google AdWords Google AdWords allows you to create advertisements which appear in…
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…
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…
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…
How to Install Synfig on Ubuntu
Synfig is an open-source animation editing software that is free to download. Assuming you require a Debian distribution package, follow these simple steps for installation. To get started, open your…
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:…









