Month: April 2016

Ubuntu 16.04 安装 Openjdk for Aptana How can I install Openjdk on Ubuntu 16.04?

Since I upgrade to the latest version of Ubuntu, cannot install Java OpenJDK needed to compile android custom roms, when I run sudo apt-get install openjdk-7-jdk appear the following error: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that

Ubuntu 16.04 安装第三方Apps Can’t Install Third-Party Apps on Ubuntu 16.04? You’re Not Alone

Having trouble installing third-party .debs on Ubuntu 16.04? You, my friend, are far from alone. A huge number of you have pinged us about a big ol’ bug in the Xenial Xerus’ new Software app. A bug that leaves you unable to install popular apps like Steam, Google Chrome, and Nylas N1, using .deb files. Double-clicking on a .deb installer opens the Softwar…

Ubuntu 16.04 安装 LAMP Install Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04

Verified and Tested 03/1/16 Introduction In this How-To, we install LAMP on an Ubuntu 16.04 Server. LAMP is a simple software bundle made of 4 components, Linux, Apache, MySQL, and PHP. Linux the core of the platform, in this case, we are using Ubuntu 16.04. Apache is the web server, majority of the web servers in the world

Ubuntu 16.04 安装 player Install Flash Player for Watching Video in Ubuntu 16.04 Xenial Xerus (LTS)

Install Flash Player for Watching Video in Ubuntu 16.04 Xenial Xerus (LTS), Ubuntu 15.10 wily werewolf, Ubuntu 15.04 vivid Vervet, ubuntu 14.10 Utopic Unicorn, Ubuntu 14.04 Trusty Tahr (LTS) and Other Ubuntu Derivative System 使用Adobe® 闪存 ®播放器是一个轻量级的浏览器插件和丰富的互联网应用程序运行时,提供一致的和引人入胜的用户体验,令人惊叹的音频/视频播放,和令人兴奋的游戏。 Flash Player安装在超过13亿个系统上,是提供… Read More

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

Magento: addAttributeToFilter 和 addFieldToFilter 的区别 Difference between addAttributeToFilter and addFieldToFilter

addAttributeToFilter is used to filter EAV collections and will filter the products based on the attributes that you’ve included in your collection. EAV-models: product, customer, sales, etc. addFieldToFilter is used to filter Non-EAV collections and will filter the products based on columns in the database from the table catalog_product_en… Read More

JavaScript 语言基础知识点总结(思维导图)

目录[-] (1)javascript 数组 (2)函数基础 (3)运算符 (4)流程语句 (5)正则表达式 (6)字符串函数 (7)数据类型 (8)变量 (9)window 对象 (10)DOM基本操作 (11)一图知晓整个Javascript ES5语法 推荐阅读:   (1)javascript 数组   (2)函数基础   (3)运算符   (4)流程语句   (5)正则表达式   (6)字符串函数   (7)数据类型   (8)变量   (9)window 对象   (10)DOM基本操作   (11)一图知晓整个Javascript ES5语法 &n… Read More

Magento : 调用文件上传 upload file frontend

bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = false [, resource $context ]]] ) $pathname should be the server path to the file and not a url Try $path = Mage::getBaseDir('media') . DS; You should try using Varien_File_Uploader include_once Mage::getBaseDir() . '/lib/Varien/File/Uploader.php'; /* Starting upload */ $uploader = n… Read More