mario



Install ‘Tools required for building Ruby Gems’ using Plesk installer Download the latest version of “Redmine” from its official website . Browse to Domains > example.com > File Manager and Upload .zip file from step 1. Extract it and copy all the extracted content to httpdocs . Rename config/database.yml.example to config/database.yml Browse to Domains > example.com > Databases and create a database. Browse […]

Add Redmine domain in Plesk






To change files name recursively you can combine the commands find and rename, as in these ways: To add suffix (e.g. ‘_mysuffix’) find . -name “*.jpg” -exec rename -v ‘s/\.jpg$/\_mysuffix.jpg/i’ {} \; To remove suffix find . -name “*.jpg” -exec rename -v ‘s/\_mysuffix.jpg$/\.jpg/i’ {} \; To add prefix (e.g. ‘myprefix_’) find […]

Recursively files renaming on Linux cli



Changing Classes with JavaScript To dynamically change class(es) of an html element using Javascript, you can use classList method: document.getElementById(“MyElement”).classList.add(‘MyClass’); document.getElementById(“MyElement”).classList.remove(‘MyClass’); if ( document.getElementById(“MyElement”).classList.contains(‘MyClass’) ) { … } document.getElementById(“MyElement”).classList.toggle(‘MyClass’); To change all classes for an element: document.getElementById(“MyElement”).className = “MyClass”; document.getElementById(“MyElement”).className = “MyClass1 MyClass2”; The above commands will overwrite the existing classes; […]

Change an html element’s class with JavaScript and jQuery





As jQuery official documentation reports, the .serialize() method creates a text string in standard URL-encoded notation. It can act on a jQuery object that has selected individual form controls. The .serialize() method creates a text string in standard URL-encoded notation. It can act on a jQuery object that has selected […]

Convert ampersands before serialize()