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
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…
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
项目地址: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
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
In this tutorial, we are going to see all the different form fields we can use in admin forms.
Magento has many different type of field available by default, so lets see the syntax of using each of these fields. This tutorial is in continuation of the previous tutorial so the same classes will be used
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
The url for customer page in the admin panel. index.php/admin/customer/edit/id/7
echo Mage::helper('adminhtml')->getUrl('adminhtml/customer/edit/index/id',array('id'=>7));
The url for catalog product page in the admin panel. index.php/admin/catalog_product/edit/id/166
echo Mage::helper('adminhtml')->getUrl('adminh… Read More
Overview
Datejs is an open source JavaScript Date library for parsing, formatting and processing.
The last ‘official’ release was Alpha-1 on November 19th, 2007. The project has been mostly dormant since that early release, but steps are being taken to revive the project.
A test suite is available online at http://datejs.com/test/.
Getti… Read More
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