首页 > 其他
小菜学设计模式——装饰模式
背景 ? ? 很多时候你会发现子类在不断增加,有时候甚至难以控制,虽然继承是面向对象的一大特征,但是继承并不是项目中所提倡,合成复用设计原则就告诉我们能够使用合成的地方尽量不要使用继承。对于继承来说还...
分类:其他   时间:2015-06-05 12:32:54    收藏:0  评论:0  赞:0  阅读:203
beego分页类
go count, _ := models.M("logoperation").Alias(`op`).Field(`count(op.id) as count`).Where(where).Count() if count > 0 { pagesize := 10 p := tools.NewPaginator(this.Ctx.Request, pagesize, count) l...
分类:其他   时间:2015-06-05 12:32:34    收藏:0  评论:0  赞:0  阅读:288
Struts2_ValueStack,OGNL详解
一、ValueStack ?? ?1.ValueStack是一个接口,在struts2中使用OGNL(Object-Graph Navigation Language)表达式实际上是使用 ?? ??? ?实现了ValueStack接口的类OgnlValueStack.它是ValueStack的默认实现...
分类:其他   时间:2015-06-05 12:32:24    收藏:0  评论:0  赞:0  阅读:297
9999二进制 及 x=x&(x-1)问题
题目:以下代码结果是多少? # include <iostream> using namespace std; int?func(int?x) { ????int?count?=?0; ????while(x) ????{ ????????count?++; ????????x=x&(x-1); ...
分类:其他   时间:2015-06-05 12:32:14    收藏:0  评论:0  赞:0  阅读:2258
solr 修改端口号
solr 端口号默认是:8983 修改端口号需修改两个配置文件: 一、修改solr.xml ? ??solr-4.4.0\example\solr\solr.xml <solr> ??<solrcloud> ????<str?name="host">${host:}</str> ????<int?name=...
分类:其他   时间:2015-06-05 12:31:54    收藏:0  评论:0  赞:0  阅读:424
ContentType大全
类型 ContentType的 ".*"="application/octet-stream" ".001"="application/x-001" ".301"="application/x-301" ".323"="text/h323" ".906"="application/x-906" ".907"="drawing/907" ".a11"="application/x-a11...
分类:其他   时间:2015-06-05 12:31:44    收藏:0  评论:0  赞:0  阅读:421
UIView
1.alpha 设置视图的透明度.默认为1. ??? // 完全透明 ??? view.alpha = 0; ??? // 不透明 ?? view.alpha = 1; 2.clipsToBounds ?// 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显...
分类:其他   时间:2015-06-05 12:31:34    收藏:0  评论:0  赞:0  阅读:233
Femap 11.2 新功能:建模
在上篇中,我们介绍了Femap 11.2在几何编辑方面的功能增强,本次我们将进一步来了解Femap 11.2 在有限元建模方面的功能改进,更多功能欢迎访问西门子Femap官方网站 http://www.plm.automation.siemens.com/zh_cn/...
分类:其他   时间:2015-06-05 12:31:24    收藏:0  评论:0  赞:0  阅读:383
Hexo搭建Github静态博客
1. 环境环境 1.1 安装Git 请参考【1】 1.2 安装node.js 下载:http://nodejs.org/download/ 可以下载?node-v0.10.33-x64.msi 安装时直接保持默认配置即可。 2. 配置Github 1.1 建立Repository 建立与你用户名对应...
分类:其他   时间:2015-06-05 12:31:04    收藏:0  评论:0  赞:0  阅读:415
很抱歉,程序停止运行
public?class?MainActivity?extends?Activity{?? ?? ????private?Button?btn1;?? ????private?Button?btn2;?? ????private?Button?btn3;?? ????private?ListView?listVie...
分类:其他   时间:2015-06-05 12:30:44    收藏:0  评论:0  赞:0  阅读:566
常看的博客
常看的博客: http://blog.isming.me/ http://stormzhang.com/ Android开源项目汇总?http://www.wandoujia.com/apps/com.cjg.android ?...
分类:其他   时间:2015-06-05 12:30:24    收藏:0  评论:0  赞:0  阅读:271
centos 设置防火墙(记录)
######Generated by iptables-save v1.4.7 on Thu Jun 4 18:32:00 2015 *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [22:2312] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT...
分类:其他   时间:2015-06-05 12:29:54    收藏:0  评论:0  赞:0  阅读:264
Objectivie-C 消息转发及类型编码备忘
// 1 + (BOOL)resolveInstanceMethod:(SEL)sel + (BOOL)resolveClassMethod:(SEL)sel // 2 - (id)forwardingTargetForSelector:(SEL)aSelector // 3 - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSe...
分类:其他   时间:2015-06-05 12:29:44    收藏:0  评论:0  赞:0  阅读:244
canvas学习之-七色板
效果图 html <canvas?id="canvas"?class="canvas"?width="600"?height="600"></canvas> css ??html,body{margin:?0;padding:?0} ??.canvas{display:?block;?margin-left:auto;margin-right:auto;marg...
分类:其他   时间:2015-06-05 12:29:34    收藏:0  评论:0  赞:0  阅读:214
HDFS_1.2.1_0: ./bin/hadoop namenode -format
又回来看HDFS 1.2.1 版本了,首先要执行hadoop namenode -format --- 执行脚本./hadoop namenode -format 后,脚本最后执行的核心部分是: exec?"$JAVA"?-Dproc_$COMMAND?$JAVA_HEAP_MAX?$HADOOP_OPTS?-clas...
分类:其他   时间:2015-06-05 12:29:24    收藏:0  评论:0  赞:0  阅读:398
Project Euler:Problem 42 Coded triangle numbers
The nth term of the sequence of triangle numbers is given by, tn = ½n(n+1); so the first ten triangle numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ... By converting each letter in a word to a...
分类:其他   时间:2015-06-05 12:28:24    收藏:0  评论:0  赞:0  阅读:237
Instrument调试内存泄漏-leaks
原创Blog,转载请注明出处 blog.csdn.net/hello_hwc欢迎关注我的iOS SDK详解专栏 blog.csdn.net/column/manage.html?alias=huangwenchen-ios-sdk前言:计划是7月份更新Instrument以及调试相关的博客,不过今天刚好遇到个内存泄漏的问题。五月份的数据持久化部分还有三篇左右没更新,六月份集中在多线程开发上。所...
分类:其他   时间:2015-06-05 12:28:04    收藏:0  评论:0  赞:0  阅读:443
CodeForces 486C Palindrome Transformation(贪心)
CodeForces 486C Palindrome Transformation(贪心) CodeForces 486C 题目大意:  将一个不是回文的字符串通过最少的操作使之成为回文串。  操作,左移1位,右移1位,字母+1,字母-1,这些操作到达边界时是有循环的效果的,例如位置到达最后一位往右移动,那么就到达了第一位。 解题思路:  首先需要统计一下有多少个位置是不匹...
分类:其他   时间:2015-06-05 12:27:54    收藏:0  评论:0  赞:0  阅读:194
Multithreading: How to Use the Synchronization Classes
在多线程间同步资源是在写多线程时经常遇到的问题。有二个以上的线程来访问同一数据时,经常会导致不可预知的问题。 例如,在同一时间,一个线程在写该数据,而另一个线程在读该数据,这将不知道读线程究竟读出的是什么数据,是老的数据,还是新写入的数据,也或是读出的一部分是老数据、另一部分是新数据。 MFC提供了一些同步和同步控制类来帮助解决这种问题。这篇主题一是阐述这些类,二是阐述如何来使用这些类创建线程安全的典型多线程程序。...
分类:其他   时间:2015-06-05 12:27:44    收藏:0  评论:0  赞:0  阅读:307
出现security ioError 安全沙箱问题
客户端安全沙箱 通配策略 crossdomain http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> domain="*" headers="*" /> 服务器安全沙箱   默认flashplayer会先去请求843端口 然后再链接socket  回复是否允许我们的swf链接访问...
分类:其他   时间:2015-06-05 12:27:34    收藏:0  评论:0  赞:0  阅读:244
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!