一个TextView使用不同的颜色:textview中首先需要已经有内容了public static void ColorFormatTextView(TextView tv,int color,String textStr){ if (TextUtils.isEmpty(textSt...
分类:
其他好文 时间:
2015-07-16 19:38:41
阅读次数:
142
public int active(){ int ret; dictTable m_dictTable = new DictTable(tableNum(Dbwork)); dictField m_dictField; int i; ; for (i =1 ;i <=m_dictTable.fiel...
分类:
其他好文 时间:
2015-07-16 19:37:30
阅读次数:
138
装饰者模式(DecoratorPattern)
分类:
其他好文 时间:
2015-07-16 19:37:41
阅读次数:
196
http://www.happiness.net46.net/?sort=9&page=2http://iw3c.com/archive/877/http://hyry.dip.jp/tech/slice/slice.html/16用guiqwt制作实时波形绘图程序+PYQT#coding=gbk#...
分类:
其他好文 时间:
2015-07-16 19:36:16
阅读次数:
815
暑假记录datework2015/7/13-2015/7/14win下安装scrapy 安装流程: 重新安装python2.7 安装pip,easy_install 使用pip安装lxml,pyOpenSSL,Zope.Interface,twisted,pywin32 注意所有的系统版本...
分类:
其他好文 时间:
2015-07-16 19:37:16
阅读次数:
170
// 显示缓存大小//NSDocumentDirectory Document目录中的数据 //NSCachesDirectory 缓存中的数据- ( float )filePath{ //NSDocumentDirectory Document目录中的数据 //...
分类:
其他好文 时间:
2015-07-16 19:37:27
阅读次数:
134
大endian和little endian 一般Intel处理器或X86平台是小端 ,只是有点老了摩托罗拉的处理器将采用大端,掌握一下小端序。 小端序一般指低地址存低字节。高地址存高字节。。。简称 “低低高高”举个C语言的样例:#includeunion u{ int i; char j[2];.....
分类:
其他好文 时间:
2015-07-16 19:34:55
阅读次数:
167
1、安装JDK,配置环境变量2、下载maven,修改本地repo库地址,配置环境变量3、下载eclipse,修改maven库配置4、下载subclipse插件,复制到eclipse的features和plugins文件夹下,重启eclipse5、eclipse环境初始化设定: 1) 默认编码修改 ....
分类:
其他好文 时间:
2015-07-16 19:36:09
阅读次数:
129
首先本文不对SOAP有过多的解释,你只需知道它是--简单对象访问协议,一种轻量的、简单的、基于 XML 的协议。举个例子,WebService其实就基于SOAP的。再简单的说一下,SOAP就是打包-->发送-->收包-->处理-->返回包等一系列流程,在ASP.NET中可以使用MSXML2中的XML...
分类:
其他好文 时间:
2015-07-16 19:35:02
阅读次数:
175
主要参考 http://www.zhihu.com/question/29580448/answer/45218281https://projecteuler.net/thread=10;page=5 Lucy_Hedgehog的代码如果不用map,自己写hash函数会更快// 计算 Π(n-1)c...
分类:
其他好文 时间:
2015-07-16 19:35:37
阅读次数:
166
PyQt4.QtCore.QtMsgTypePyQt4.QtCore.QtDebugMsgPyQt4.QtCore.QtWarningMsgPyQt4.QtCore.QtCriticalMsgPyQt4.QtCore.QtFatalMsgPyQt4.QtCore.QtSystemMsgPyQt4.Q...
分类:
其他好文 时间:
2015-07-16 19:34:41
阅读次数:
6346
importsysfromPyQt4importQtGuiclassIcon(QtGui.QWidget):def__init__(self,parent=None):QtGui.QWidget.__init__(self,parent)self.setGeometry(300,300,250,15...
分类:
其他好文 时间:
2015-07-16 19:35:16
阅读次数:
185
参考:http://blog.csdn.net/angelazy/article/details/38489293海伦公式:http://zhidao.baidu.com/question/470074593点到线段最短距离的运算与点到直线的最短距离的运算二者之间存在一定的差别,即求点到线段最短距离...
分类:
其他好文 时间:
2015-07-16 19:34:06
阅读次数:
151
1 #include "bits/stdc++.h" 2 using namespace std; 3 int T; 4 5 int dp[40000]; 6 int totene[40000]; 7 8 int N, E; 9 int val[20], ene[20], cond[20];1...
分类:
其他好文 时间:
2015-07-16 19:33:01
阅读次数:
96
$(function () { $('#search_button').button({ icons : { primary : 'ui-icon-search', }, }); $('#reg').dialog({ autoOpen : true, modal : true, re...
分类:
其他好文 时间:
2015-07-16 19:34:23
阅读次数:
168
#-*-coding:cp936-*-importsysfromPyQt4importQtGuiclassCenter(QtGui.QWidget):def__init__(self,parent=None):QtGui.QWidget.__init__(self,parent)self.setWi...
分类:
其他好文 时间:
2015-07-16 19:33:19
阅读次数:
122
html-->id选择器class类选择器你好js/***CreatedbyAdministratoron2015/4/40004.*/$(function(){$('#div1').css('color','red')});$(function(){$('.div2').css('color','...
分类:
其他好文 时间:
2015-07-16 19:32:30
阅读次数:
182