http://fyyy.tv/index/index.htm

piaoling  2012-12-05 11:45:25

http://fyyy.tv/index/index.htm......

类别 :  默认(739)  |  浏览(4536)  |  评论(0)

S.O.L.I.D.类设计原则

piaoling  2012-12-04 13:46:17

本文是由敏捷宣言签署人之一、《 Clean Code(代码整洁之道)》一书的作者Robert C. Martin为他的《Applying Principles and Patterns》这本书搜集整理而来。 单一责任原则(SRP) 只有一个理由去修改一个类。例如,如果一个业务规则的改变会导致这个类的修改,那么,数据库、界面、报表格式或系统任何其它的部分的改变都不该迫使这个类做修改。 http://davidhayden.com/blog/dave/archive/2005/05/29/1066.aspx http://c2.com/cgi/wiki?SingleResponsibilityPrinciple 《Head First 设计模式》 ......

类别 :  PHP(78)  |  浏览(4536)  |  评论(0)

show popup

piaoling  2012-11-23 16:41:56

wogerWarningPopup = {     inBody: false,     popupNode: '<div id="jqmWarningPopup" class="jqmWindow"><div class="jqmClose"></div><div class="jqmnContent"></div></div>',     init: function(){         $('body').append($(this.popupNode));     },     show: function(title, message){         if(!this.inBody){             this.init();    &......

类别 :  默认(739)  |  浏览(3877)  |  评论(0)

清华差生10年奋斗经历

piaoling  2012-11-22 16:54:26

资深电信营销和战略专家王煜全解读创业战况 包凡一:如何写好留学文书 如何用微博开展平台活动 汤敏:如何培养想象力 导语:清华“差生”10年奋斗经历,只写事业,不写女人。作者从2004年本科毕业写到2012年,近10年的奋斗经历。反正一字一句看完后,各种反省各种彻悟。不要老去抱怨别人“天时地利人和”,做好当下,后来人或许还会羡慕嫉妒恨你。 我的故事里有三个人:我自己、我大学同宿舍的哥们、我第一个公司的直接领导......

类别 :  默认(739)  |  浏览(3929)  |  评论(0)

和大家分享一下MYSQL索引,写了一上午,还有好多要写,特别是优化这块,以后有时间再写吧。希望能对大家理解索引有帮助。

piaoling  2012-11-19 12:00:16

和大家分享一下MYSQL索引,写了一上午,还有好多要写,特别是优化这块,以后有时间再写吧。希望能对大家理解索引有帮助。 一.什么是索引 索引是用来快速地寻找那些具有特定值的记录,所有MySQL索引都以B-树的形式保存。如果没有索引,执行查询时MySQL必须从第一个记录开始扫描整个表的所有记录,直至找到符合要求的记录。表里面的记录数量越多,这个操作的代价就越高。如果作为搜索条件的列上已经创建了索引,MySQL无需扫描任何记录即可迅速得到目标记录所在的位置......

类别 :  默认(739)  |  浏览(5150)  |  评论(0)

[转] 14个史上最牛的脑筋急转弯,过来see see吧!

piaoling  2012-10-31 16:32:10

1. 有两个人到海边去玩,突然被一阵浪卷走了。被卷走的那个人叫小明,请问剩下的那个人叫什么? 2. 透明的剑是什么剑? 3. 一只小白猫掉进河里了,一只小黑猫把它救了上来。请问:小白猫上岸后的第一句话是什么? 4. 是太阳叫公鸡起床,还是公鸡叫太阳起床? 5. 五成熟的牛排碰到八成熟的牛排,他们为什么不打招呼? 6. 一个人从四楼掉下来跟从四十楼掉下来有什么不同? 7. 巧克力和西红柿打架~巧克力赢了,为什么? 8. 一只鲨鱼吃下一颗绿豆,......

类别 :  默认(739)  |  浏览(3754)  |  评论(0)

如何优化MySQL insert性能

piaoling  2012-10-30 13:34:42

来源:tigernorth 的博客 对于一些数据量较大的系统,面临的问题除了是查询效率低下,还有一个很重要的问题就是插入时间长。我们就有一个业务系统,每天的数据导入需要4-5个钟。这种费时的操作其实是很有风险的,假设程序出了问题,想重跑操作那是一件痛苦的事情。因此,提高大数据量系统的MySQL insert效率是很有必要的。 经过对MySQL的测试,发现一些可以提高insert效率的方法,供大家参考参考。 1. 一条SQL语句插入多条数据。 常用的插入语句如: INSERT ......

类别 :  Mysql(6)  |  浏览(4418)  |  评论(0)

Magento Eav Collection Bug

piaoling  2012-10-26 10:53:40

When product attribute has no default value, but in a specific store level or website level the attribute has value. When get Product Collection with the store level, it will not get the value. bug in: Mage_Catalog_Model_Resource_Eav_Mysql4_Collection_Abstract :: _getLoadAttributesSelect() $select = $this->getConnection()->select() ->from(array('default'=>$table), array($entityIdField, 'attribute_id', 'default_value'=>'value')) ->joinLeft( array('store'=>$table), ......

类别 :  magento(258)  |  浏览(4210)  |  评论(0)

test

piaoling  2012-10-25 16:45:02

SELECT `default`.`entity_id`, `default`.`attribute_id`, `default`.`value` AS `default_value`, `store`.`value` AS `store_value`, IF(store.value_id>0, store.value, default.value) AS `value` FROM `catalog_product_entity_varchar` AS `default` LEFT JOIN `catalog_product_entity_varchar` AS `store` ON store.attribute_id=default.attribute_id AND store.entity_id=default.entity_id AND store.store_id=2 WHERE (default.entity_type_id=4) AND (default.entity_id in (866)) AND (default.attribute_id in ('60', '75', '76', '86', '100', ......

类别 :  默认(739)  |  浏览(3274)  |  评论(0)

Test of modules

piaoling  2012-10-25 10:44:16

1,Out Bannaer Test(all of these case should be tested with multiple browsers:IE versions, Firefox ,Chrome) Set images for homepage,catalog page,product page to see whether it can dispaly normally. Set big images for homepage,catalog page,product page to see whether it can dispaly normally. Set small images for homepage,catalog page,product page to see whether it can dispaly normally. See specail page such as checkout page to see whether it dispaly: it should not display. Disable the images status to see whether id display or not:it should not display. Set M......

类别 :  工作(23)  |  浏览(3814)  |  评论(0)
  • Page:15/144  1439 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类