i have such a long time fall in love with ubuntu , but i found it's much unconfortable for me with a lenovo y460n , that owning a intel display card a...
分类:
其他好文 时间:
2014-08-08 23:39:17
阅读次数:
379
可以在 链接样式中,直接写屏幕的宽度@media screen and (max-width:1880px) { #minm .autocw { width: 1180px; }}@media screen and (max-width:1250px) { #minm .autocw { w...
分类:
Web程序 时间:
2014-08-08 20:54:26
阅读次数:
251
设置好内部状态,然后依据不同的函数作为行为模式,进行状态转换。有点像Finite Automata算法,两者的思想是一样的。会Finite Automata,那么这个设计模式就非常easy了。#pragma once#include #include #include #include enum S...
分类:
其他好文 时间:
2014-08-08 17:35:16
阅读次数:
197
winform当前的屏幕除任务栏外的工作域大小this.Width=System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;this.Height=System.Windows.Forms.Screen.PrimaryScreen.Wo...
.aspx文件、.aspx.cs文件和.aspx.designer.cs的一些说明 .aspx文件:(页面)书写页面代码。存储的是页面design代码。只是放各个控件的代码,处理代码一般放在.cs文件中。 .aspx.cs文件:(代码隐藏页)书写类代码。存储的是程序代码。一般存放与数据库连接...
分类:
Web程序 时间:
2014-08-08 09:35:15
阅读次数:
242
本题难处好像是在于 可以把一些灯泡换成电压更高的灯泡以节省电源的钱 ,所以也才有了对最优方案的探求
好的处理方法是按照电压从小到大排序,只能让前面的换成后面的,也就满足了把一些灯泡换成电压更高的灯泡
的要求;
一种电压的灯泡,要么不换,要换则应该全换:换,说明用当前的电源不值;而既然不值则应该全部换掉以避免使用当前电源,不然即增加了灯泡费用又没节省电源费用,亏大了。。。
状态转移详见代码
...
分类:
其他好文 时间:
2014-08-07 19:02:38
阅读次数:
267
magento的布局文件layout.xml文件详解解析顺序布局xml文件一般位于app/design/{area}/{package}/{theme}/layout/目录下。Layout文件一般包含block、reference、action三种标签。对于Magento系统,首先会将系统中相关相关...
分类:
其他好文 时间:
2014-08-07 12:38:40
阅读次数:
261
设计模式概述 设计模式(英文全称为Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。之所以提倡设计模式,根本原因在于根本原因是为了代码复用,增加可维护性。前面设计模式六大原则中也简单了解了设计模式需要遵循以下原则: 单一职责原则; 里氏替换原则; 依赖...
分类:
其他好文 时间:
2014-08-07 03:04:18
阅读次数:
203
Best Time to Buy and Sell Stock IISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ...
分类:
其他好文 时间:
2014-08-07 00:20:17
阅读次数:
257
工厂模式看英文书的时候挺纠结的,Head First里面感觉讲得很乱,都快看不下去了,看中文别人总结的,一条主线马上就出来了。工厂模式主要分三种1) simple factory model (static factory model) 2)factory method model 3)abstar...
分类:
其他好文 时间:
2014-08-06 22:43:16
阅读次数:
305