FTP is an unsafe protocol. avoid using FTP as much as possible; never use the credentials of the hosting customer account for FTP, even though many hosts allow that to be used for FTP as well; use the file manager provided within cPanel for uploading files, as a secure option; test out the WebDisk feature [...]

Continue reading about Security Best Practices for Web Administrators of Shared Linux Hosting

Peng Zhang on April 2nd, 2012

set up a folder outside of the public_html folder so that it is not accessible from the web, and backup files are not included in backups; place a sh script in the folder; I call it back-www.sh; in the sh file, I include cd /home/useraccount/folder-for-backup;tar czf sitename-$(date +%Y%m%d).tar.gz -C / home/useraccount/public_html if “-C /” is [...]

Continue reading about Set up Crob Job for Backing Up

Peng Zhang on July 13th, 2011

Based on this article on setInterval’s syntax, setInterval should take either a reference to a function or a javascript code that will be evaluated – basically a string. For some reason, Firefox does not like the “string” version of the setInterval statement. Based on my testing, IE works with both the direct reference or code [...]

Continue reading about setInterval and Firefox

One of the challenges we face as a global organization is that we have to account for a wide spectrum of bandwidths available to our users. On islands of Maldives, Bora Bora and Seychelles, and even at some land-based locations in Thailand, the bandwidth available is fairly low by today’s standards. These low-bandwidth locations roughly [...]

Continue reading about Delivering Different Bit-rate MP4 Videos with a Bandwidth Detector

I have been using FlowPlayer for delivering web video in FLV for the last couple of years. And lately, I have switched from flv to mp4/H.264 videos. As there is the demand for supporting iPad, I started looking at libraries such as MediaElement.js and VideoJS for their support for HTML5 video. And in the past [...]

Continue reading about Web Video for Flash-enabled Browsers and Ipad – from MediaElement.js, and videojs back to FlowPlayer

Peng Zhang on April 16th, 2011

For one of our Flash-based projects, I have asked for a MP4 video with the .H264 encoding from our videographer.  I was naturally expecting a video file ending in .mp4 file extension.  But it came back as a MOV file, which I think is also a legitimate .h264 file extension, but is it mp4 file? [...]

Continue reading about Video Formats for the Web – F4V, MOV, or MP4?