City OKs website redesign bid http://www.austindailyherald.com/2014/07/city-oks-website-redesign-bid/ Published 10:13 am Thursday, July 24, 2014 – Austin Daily Herald The city of Austin is on the path to a new website. The Austin City Council unanimously approved a bid to redesign the city website during the council’s work session Monday. Though the…
lsyncd error terminating since out of inotify watches
echo 65536 > /proc/sys/fs/inotify/max_user_watches or sysctl fs.inotify.max_user_watches=65536 vi /etc/sysctl.conf #fix lsyncd error terminating since out of inotify watches fs.inotify.max_user_watches=65536
Install MySQL 5.5.46 on Centos 6.3, 6.5
1. Install Remi repository (as root) cd /etc/yum.repos.d/ ## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ## rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm ## CentOS 5 and Red Hat (RHEL) 5 ## rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 2. Update to MySQL 5.5.46 yum –enablerepo=remi,remi-test list mysql…
Force all traffic to be SSL
vi .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]
OpenSSL CSR Generation Centos
1. Generate CSR openssl req -nodes -newkey rsa:2048 -keyout www.domain.key -out www.domain.csr Country Name (2 letter code) [AU]: US State or Province Name (full name) [Some-State]: State Locality Name (eg, city) []: City Organization Name (eg, company) [Internet Widgits Pty Ltd]: Company Name Organizational Unit Name (eg, section) []: Webhosting…
Fix Column count of mysql.db is wrong. Expected 22, found 20 – centos
1. service httpd stop 2. service mysqld stop 3. edit /etc/my.cnf under [mysqld], add the following line: skip-grant-tables [mysqld] skip-grant-tables 4. service mysqld start 5. run command mysql_fix_privilege_tables –verbose –password=MYSQLPASSWORD 6. edit /etc/my.cnf comment out line #skip-grant-tables 7. stop and start mysqld service mysqld stop service mysqld start 8. start…
Avada Theme Tips
Change Widget Title Css Avada #sidebar .widget .heading h3 { font-size: 18px !important; color: #8496a0 !important; text-align: left !important; font-weight: bold !important; } To reduce gap under sidebar widgets and the widget titles #sidebar .widget h3 { margin-bottom: 0px !important; } For gap under the content area slider #sidebar .widget…
Php dynamic forms not caching form fields
Form Fields are not Populated after Pressing Back Button 1. Create the file: cache.html 2. chmod 666 cache.html 3. Add this code to the top of your php form page $cachefile = ‘cache.html’; $cachetime = 4 * 60; // Serve from the cache if it is younger than $cachetime if…
Scroll to top of page after form submit
<head> <script type=”text/javascript”> parent.window.scrollTo(0,0); </script> </head> Or <body onload=”parent.window.scrollTo(0,0); “>
Javascript validate empty form fields
Check for Empty Fields Using JavaScript To make the web browser check that a field is not empty, you will need to add a call to your validation function when the form is submitted. Do this by adding a “onsubmit” attribute to your FORM tag, like the following : <form…