Image blur filter
Posted by Cătălin on Wed, 22 Mar 2017How to apply a Gaussian blur to an image.
CSS The value of ‘radius’ defines the value of the standard deviation to the Gaussian function, or how many pixels on the screen blend into each other, so a larger value will create more blur. If...
Read More...dental website
Encrypt files on OS X
Posted by Cătălin on Thu, 9 Mar 2017Encrypt any files on OS X with openssl
Encrypt openssl enc -aes-256-cbc -e -in /Users/name/Desktop/file.pdf -out /Users/name/Desktop/file_encrypted.pdf Decrypt openssl enc -aes-256-cbc -d -in /Users/name/Desktop/file_encrypted.pdf -out...
Read More...dental website
How to force HTTPS using the .htaccess file
Posted by Cătălin on Wed, 8 Feb 2017How to force HTTPS using the .htaccess file using mod_rewrite.
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] To force a specific domain to use HTTPS, use the following lines of code in the .htaccess file...
Read More...dental website
CentOS cleaning Yum cache
Posted by Cătălin on Wed, 8 Feb 2017How to lean the cache of YUM on your CentOS?
yum clean packages Now remove any cached XML-based metadata yum clean metadata Remove any cached database files yum clean dbcache Following this you will want to clean all the files to confirm...
Read More...dental website
Useful library repository
Posted by Cătălin on Thu, 26 Jan 2017Useful CDN Javascript and CSS library repository
CDNJS* is a library repository which hosted on cloudflare.com. It’s freely available CDN for common Javascript and CSS libraries. Currently there are 2756 libraries, check it out at: https://cdnjs...
Read More...dental website
Encrypt sensitive data with PHP
Posted by Cătălin on Sat, 7 Jan 2017Encrypt sensitive data with PHP and MySQL
Class created with construct now add methods to encrypt and decrypt: class Encryption { const CIPHER = MCRYPT_RIJNDAEL_128; // Rijndael-128 is AES const MODE = MCRYPT_MODE_CBC; ...
Read More...dental website