I got this error when trying to install docker on my ubuntu using the curl command. The issue is that your current user does not have the permission to write to the /usr/local/bin/ directory....
If you need a fresh start and completely uninstall docker, just run the following commands[source]. sudo apt-get purge docker-engine sudo apt-get autoremove –purge docker-engine rm -rf /var/lib/docker # This deletes all images, containers, and...
By default, when you do Model.all in rails, it returns data based on whatever order was returns by the database. But sometimes thats not what you want. For example, if I had a model...
Just type the following command in your rails console to see the sql output of your rails commands ActiveRecord::Base.logger = Logger.new(STDOUT) NOTE: You will probably have to do this for every session. To avoid that, add...
By default find_field in capybara only finds an enabled field. To find a disabled field, you can pass in a second argument as an options hash. For example, to find a field that is...
I recently wanted to rename all my jpg files to png files in one folder on my ubuntu device. The following command did the trick for me. rename ‘s/.jpg$/.png/’ *.jpg
You will need to add events tracking to your site. If your site has visitors from the chromebox it will appear at the following place in Google Analytics Reporting -> Behavior -> Events ->...
Follow three simple steps to trim a video in vlc : 1) Set the default directory location where you want to store the trimmed video by going to Go to VLC Preferences —> Input...
The following command will create a new user and grant them all the permissions on a database. grant all privileges on database_name.* to ‘username’@’localhost’ identified by ‘secure_password’; To list the permissions granted to a...
Recent Comments