ITeye博客

I Am Nothing

kirenenko04 · 共 175 篇文章

GW 3.2 固件安装流程 - 塞尔达时之笛版

所有工具 1 . 机体内TF卡固件存放 a) 将机体内TF卡取出 b) 将机体内TF卡内容进行备份进电脑 c) 格式化TF卡(使用附件松下内存格式化工具) d) 然后用电脑将3.2固件的两个文件, 分别是 mest_区号.cia 和 Launcher.dat 复制进TF卡. e) 将 TF卡放回机体内部. 2. 把塞尔达BUG存档写入到正版塞尔达卡. a) 把正版卡插入到烧录器连入电脑 2) 使用附件中的烧录软件进行烧录 R4i SaveDongle V1.5 3. 使用塞尔达时之笛启动GW模式 a . 讲带有GW BUG存档的正版时之笛放入3DS内, 启动游戏 b. 选择BUG存档进行游戏…

2015-05-01 14:51 · 评论(0)

VMware workstation 9虚拟机中安装Ubuntu 13.04系统

http://www.server110.com/vmware/201309/1705.html

2015-01-15 08:14 · 评论(0)

Magento Add Custom Field to Customer Address

Adding Field to Admin First we need to create the address attribute. There are two ways to do this one is through your module sql file or you can do it through directly through sql query. First we will see it through the module. In your module’s config.xml file, add this in the resource tag. <globa…

2014-12-27 10:28 · php · Magento · 评论(0)

Magento export order item data

<?php class Bysoft_Export_Model_Order extends Mage_Core_Model_Abstract { protected function _construct(){ $this->_init("export/order"); $this->_write = Mage::getSingleton('core/resource')->getConnection('core_write'); } public function truncate_table() { $sql = 'truncate table bysoft_exportorder'; …

2014-12-26 14:56 · php · Magento · 评论(0)

Magento export csv conver chinese utf8 error

/** * Write item data to csv export file * * @param Varien_Object $item * @param Varien_Io_File $adapter */ function _exportCsvItem(Varien_Object $item, Varien_Io_File $adapter) { $row = array(); foreach ($this->_columns as $column) { if (!$column->getIsSystem()) { $row[] = $column->getRowFieldExpo…

2014-12-26 11:49 · php · Magento · 评论(0)

我叫你不出红叉

提莫一大早就高高兴兴的出门了,走着走着遇到了盖伦,盖伦一把抓住提莫,啪啪!抽了他两个大嘴巴,然后说:“我叫你不出红叉!” 第二天,提莫出了红叉又出门了,走着走着又遇见了盖伦,盖伦又一把抓过提莫,啪啪!抽了他两个大嘴巴:“我让你出红叉!” 提 莫非常郁闷,就跑到皇子那里去投诉盖伦,皇子听了提莫的投诉说,你放心好了,我会帮助你的。皇子找来了盖伦对他说:“盖伦啊,咱俩是多年的好朋友了,今天 上午提莫来投诉你,说你没事找事老是欺负他,你看你能不能换个理由揍他,比如你可以说‘提莫,你去给我买个眼来 !’要是他买来假眼的你就说你要真眼,要是他买来真眼的你就说你要假眼,这样你不就又可以揍他了吗?要不你就让…

2014-12-25 15:06 · 小品 · 评论(0)

Magento Adding Store View selection to your Module’s Adminhtml

While developing an extension recently I came across the need to add the ability to allow changes on a store view level. To start off with I wanted to make sure this functioned the same as the built store view selection, to make it easy on the end user (take a look at how store view is handled with…

2014-12-22 16:25 · php · Magento · 评论(0)

Magento random display same category product

public function get_random_same_cate_products() { $_product = $this->getProduct(); $categoryIds = $_product->getCategoryIds(); if(count($categoryIds) ){ foreach ($categoryIds as $cid) { $_category = Mage::getModel('catalog/category')->load($cid); if ($_category->getLevel() == 3) { $_productCollecti…

2014-12-17 18:11 · php · Magento · 评论(0)

验证密码必须由字母和数组组成并且长度是6-30位

public function checkPassword($pwd) { if (strlen($pwd)>30 || strlen($pwd)<6) { return array('status'=>false,'msg'=>$this->__('The length of password must be 6 to 30.')); } if(preg_match("/^\d*$/",$pwd)) { return array('status'=>false,'msg'=>$this->__('Password must contain letters.')); } if(preg_ma…

2014-12-16 15:39 · php · Magento · 评论(0)

Magento IE Only Stylesheet

Sometimes you want to enable IE only stylesheets for Magento. The problem is that the documentation to accomplish this is somewhat lacking. I decided to shed some light on a solution to help you out on your journey to success. It’s a simple solution for IE 6, 7, 8 and 9! In order to understand thes…

2014-12-15 13:03 · php · Magento · 评论(0)

Magento addAttributeToFilter with Mutliple Select

The solution is to use a 'Finset' query such as: $this->_productCollection->addAttributeToFilter("make", array("finset"=>"38")); A discussion can be seen here: http://www.magentocommerce.com/boards/viewthread/201312/ And a list of different options: http://www.magentocommerce.com/knowledge-base/ent…

2014-12-11 10:05 · php · Magento · 评论(0)

Magento compare products ajax

1. add compare html elem: <!-- compare box --> <div class="compare-box"> <?php echo $this->__('compare')?> <a class="compare-a <?php echo $this->getCompareClass($_product->getId());?>" to_url="<?php echo $_compare_helper->getChangeAjaxUrl($_product);?>" is_compare="<?php if($this->is_compare($_prod…

2014-12-09 14:40 · php · Magento · javascript · 评论(0)

php 正则表达式 匹配中日韩字符(GBK)

首先是这些非英文字符的编码范围: 这里是几个主要非英文语系字符范围 2E80~33FFh:中日韩符号区。收容康熙字典部首、中日韩辅助部首、注音符号、日本假名、韩文音符,中日韩的符号、标点、带圈或带括符文数字、月份,以及日本的假名组合、单位、年号、月份、日期、时间等。 3400~4DFFh:中日韩认同表意文字扩充A区,总计收容6,582个中日韩汉字。 4E00~9FFFh:中日韩认同表意文字区,总计收容20,902个中日韩汉字。 A000~A4FFh:彝族文字区,收容中国南方彝族文字和字根。 AC00~D7FFh:韩文拼音组合字区,收容以韩文音符拼成的文字。 F900~FAFFh:中日韩兼容表…

2014-12-08 13:56 · php · 评论(0)

Magento create new product attribute and create new attribute group

1.add new product attribute <?php //增加一个是否预售的属性,到所有商品 $installer = $this; /* @var $installer Mage_Core_Model_Resource_Setup */ $installer->startSetup(); $objCatalogEavSetup = Mage::getResourceModel('catalog/eav_mysql4_setup', 'core_setup'); //添加jd URL $attrCode = 'jd_url'; $label = 'JD Url'; $attrI…

2014-11-26 20:07 · php · Magento · 评论(0)

Magento clean all product in compare list ajax function

1. clean function in controller : //clecn all products in compare list public function cleanajaxAction() { $items = Mage::getResourceModel('catalog/product_compare_item_collection'); if (Mage::getSingleton('customer/session')->isLoggedIn()) { $items->setCustomerId(Mage::getSingleton('customer/sessi…

2014-11-25 11:11 · php · Magento · 评论(0)