Category: Web Development

Installing nodejs on CentOS 7 with NVM

Naveen Nayak November 8, 2018 No Comments Javascript, Web Development ,

Using NVM(Node Version Manager) we can have multiple nodejs versions and switch between them quickly. I am doing this on CentOS 7. # install nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash # open a new terminal and check the version nvm –version # install latest node LTS and check version nvm install –lts node –version npm […]

Adding a Self Signed Certificate to Trusted Certificate on Linux

Naveen Nayak January 14, 2016 No Comments Linux, Web Development , ,

Some times, when we generate self signed certificates, some libraries need it to be a part of the operating systems trusted certificates I am doing this on CentOS 7 and for openSSL This will only work for apps/libraries that use OpenSSLs trusted certificate list I already have my self signed certificate in /etc/pki/tls/certs/my-self-signed-cert.crt cp /etc/pki/tls/certs/devinviteright.crt […]

PHP 5.6 and Self Signed Certificates for Soap, file_get_contents

Naveen Nayak November 18, 2015 No Comments LAMP, Web Development ,

Operating System: CentOS 7 PHP: 5.6 This is only for local machine and local development – use at your own risk I a using a self signed SSL certificate on my local development machine and many functions in PHP refuse to work with self signed certificates. Some of the functions are file_get_contents() fopen() SoapClient() my […]

Ajax File Upload without iframe

Naveen Nayak February 10, 2015 No Comments Javascript, LAMP, Web Development

The Invisible I-frame File Upload method works in almost all browsers. This post explains using FormData to submit forms that is supported by most new browsers. <? if( isset($_POST) && ! empty($_POST) ) { $file = $_FILES[‘myfile’]; $output =”Response From the Server\n”; $output .= “myInput = “.$_POST[‘myInput’]; $output .= “\n”.’File Name: ‘.$file[‘name’]; $output .= “\n”.’File […]

DataTables with Twitter Bootstrap FixedColumns not working

Naveen Nayak July 11, 2013 No Comments Tips and Tricks, Web Development

DataTables integrates very well with Twitter Bootstrap and the results look amazing. I was tinkering with the two and ran into a problem when using the FixedColumns plugin. Whenever I used bootstrap.css, the horizontal scroll bar would disappear. After searching around for a long time, found that bootstrap table property of max-width is the culprit. So just […]

Simple PHP encrypt and decrypt

Naveen Nayak March 12, 2013 72 Comments Web Development

You need to have openssl encrypt installed and running. Check this thread if you dont have it already http://stackoverflow.com/questions/11525524/why-cant-i-use-openssl-encrypt /** * simple method to encrypt or decrypt a plain text string * initialization vector(IV) has to be the same when encrypting and decrypting * PHP 5.4.9 ( check your PHP version for function definition changes […]

Page 1 of 2