Day: April 26, 2016

Magento: 判断是否为手机浏览 Optimise Web’s Mobile Detect Class for Magento

项目地址:Optimise Web’s Mobile Detect Class for Magento Optimise Web’s Mobile Detect Class for Magento MobileDetect.net is a lightweight PHP class for detecting mobile devices. Optimise Web’s Magento extension allows using Mobile Detect’s functions from within Magento. Usage Mage::helper(‘mobiledetect’)-… Read More

HTML转义字符对照表, HTML特殊字符编码对照表, HTML 字符集, HTML Character Codes – ASCII Entity and Unicode Symbols

HTML 字符集 如需正确地显示 HTML 页面,浏览器必须知道使用何种字符集。 万维网早期使用的字符集是 ASCII。ASCII 支持 0-9 的数字,大写和小写英文字母表,以及一些特殊字符。 由于很多国家使用的字符并不属于 ASCII,现代浏览器的默认字符集是 ISO-8859-1。 如果网页使用不同于 ISO-8859-1 的字符集,就应该在 <meta> 标签进行指定。   ISO 字符集 ISO 字符集是国际标准组织 (ISO) 针对不同的字母表/语言定义的标准字符集。 下面列出了世界各地使用的不同字符集: 字符集 描述 使用范围 ISO-8859-1 Latin alphabet part 1 北美、西欧、拉丁美洲、加勒比海、… Read More

Linux 下载youtube视频 How to save YouTube videos on Linux

Have you ever found interesting videos on YouTube, and wanted to download and save them on your hard drive (for offline access or archiving purpose)? There is a handy open-source Linux tool that does exactly that: download YouTube videos. A tool called youtube-dl is a command-line program written in Python that downloads videos from various online