备忘录

 

前端框架:

Amaze UI:http://amazeui.org/getting-started 

Bootstrap:http://www.bootcss.com/

 

响应式布局:<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1,user-scalable=no" />

Property Description
width Width of the viewport in pixels (or device-width). If width isn’t set, it defaults to a desktop size (980px on mobile Safari).
height Height of the viewport in pixels (or device-height). Generally you don’t need to worry about setting this property.
initial-scale

(0 to 10.0) Multiplier that sets the scale of the page after its initial display. Safe bet: if you need to set it, set it

to 1.0. Larger values = zoomed in, smaller values = zoomed out

minimum-scale (0 to 10.0) The minimum multiplier the user can “zoom out” to. Defaults to 0.25 on mobile Safari.
maximum-scale (0 to 10.0) The minimum multiplier the user can “zoom in” to. Defaults to 1.6 on mobile Safari.
user-scalable (yes/no) Whether to allow a user from scaling in/out (zooming in/out). Default to “yes” on mobile Safari.

 

去重:ROW_NUMBER() OVER(PARTITION BY [] ORDER BY []) as xx

 关联表批量更新:

Update employee set hrdeptname=d.DEPTNAME
from DEPARTMENT  d  inner join employee e  on e.HRDEPTID=d.DEPTID
where 1=1;
(SQL SERVER写法,ORACLE用子查询)

复制表结构
select * into B from A where 1 = 0
复制表结构和数据
select * into B from A

  

自增列属性指定值插入,可用以下语句,临时取消

SET IDENTITY_INSERT TableName ON
INSERT INTO tableName(xx,xx) values(xx,xx)
SET IDENTITY_INSERT TableName OFF

 

360免费代备案:http://wangzhan.360.cn/news/show/id/1038 

(note:如果使用了360网站卫士的备案服务,域名备案成功后,却没使用360网站卫士作为解析,那么备案号是会被吊销的)

 

微信公众平台测试号:http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login

分享按钮插件:http://www.jiathis.com/

广告小工具:http://eqxiu.com

 

关于架构的比喻(引自豌豆荚架构师周爱民原文):

我常用过河来作例子。一个人在河的前面想过这条河,有一条船放在那里,如果你认为过河是一件事,你的第一件事是跳到船上想办法把船划过去。你遇到的第一个问题可能是你没有划船的技能。但是如果你是一个架构师,你的第一个问题是:这是什么东西?你可以定义其为一个障碍,河这个东西对你来讲是阻碍,你跨过阻碍的方法不一定是划船。我架一个桥不行吗?我直接跳下去,游泳过去不行吗?另外,这条河是不是障碍还是一个问题,如果它很浅呢?你非要认为它是障碍就制造了矛盾,系统中也许不存在这样的矛盾。所以从架构思维的角度来讲,第一件事是要看到这是一个系统,第二件事是定义问题,第三件事是看到这个问题是不是真实存在。找到这个问题跟方案之间的关系在哪里,你就会做架构了。

 

//解析xml字符串
XmlDocument xmldoc = new XmlDocument(); xmldoc.LoadXml(res);//res为xml字符串 XmlNode node = xmldoc.SelectSingleNode("result");//提取root XmlAttribute status = node.Attributes["status"]; var st= status.Value.ToString();//读取某节点属性的值

 团队协同办公工具:https://worktile.com/

LLBLGen:http://www.cnblogs.com/huashanlin/p/4288522.html

http://www.cnblogs.com/heyu5220/archive/2009/12/02/1615245.html

http://www.cnblogs.com/JamesLi2015/archive/2013/05/15/3079230.html

 

excel:NPOI

word:aspose.word/DocX

 

//todo...

 

posted @ 2015-01-20 17:25  peter cheng  阅读(278)  评论(0编辑  收藏  举报