Peng Zhang on August 29th, 2012

Problem Working on a project, I encountered a weird problem where the background-color of a div does not take effect. Cause The parent or ancestor element has been moved beyond its normal position involving a negative pixel amount – in my case, a negative pixel amount to move the div content up to the top; [...]

Continue reading about CSS background-color does not show

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; 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