【题目】
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relati...
分类:
其他好文 时间:
2014-06-29 07:27:17
阅读次数:
210
从gallery中获取图片
步骤:
步骤一:
// 激活系统图库应用,选择一张图片
Intent intent = new Intent();
// 活动操作:选择一个项目从数据,返回被选中
intent.setAction(Intent.ACTION_PICK);
// 设置意图的类型
intent.setType("image/*");
// 设置开启意图
// 设...
分类:
移动开发 时间:
2014-06-20 11:22:45
阅读次数:
308
获取Exif信息
代表的是文件的头信息;
步骤:
步骤一:
// 获取指定的文件的头信息对象
ExifInterface exif = new ExifInterface("/sdcard/x.jpg");
步骤二:
获取指定的头信息:
// 获取指定的信息
// 获取拍摄时间
String time =exif.getAttribute(ExifInterface.TAG_D...
分类:
移动开发 时间:
2014-06-20 10:19:51
阅读次数:
335
在软件系统中,IO速度比内存速度慢,IO读写在很多情况下会是系统的瓶颈。
在java标准IO操作中,InputStream和OutputStream提供基于流的IO操作,以字节为处理单位;Reader和Writer实现了Buffered缓存,以字符为处理单位。
从Java1.4开始,增加NIO(New IO),增加缓存Buffer和通道Channel,以块为处理单位,是双向通道(可读可写,类似RandomAccessFile),支持锁和内存映射文件访问接口,大大提升了IO速度。
以下例子简单测试常见IO操作...
分类:
编程语言 时间:
2014-06-07 15:49:03
阅读次数:
283
string
sql="";dbhelper.ExecuteNonQuery(sql);DataTable dt =
dbhelper.GetDataTable(sql);if (dt != null && dt.Rows.Count > 0){
SqlBulkCopy bcp = new SqlB...
分类:
数据库 时间:
2014-06-07 07:17:20
阅读次数:
229
PS C:\Users\setup.moss> Set-SPLogLevel
-TraceSeverity verboseexPS C:\Users\setup.moss> New-SPLogFilePS
C:\Users\setup.moss> New-SPLogFilePS C:\Users\s...
分类:
其他好文 时间:
2014-06-07 07:15:56
阅读次数:
281
public static void WriteLog(string msg) { string
appPath = AppDomain.CurrentDomain.BaseDirectory; string ServerPath = appPath +
@"\Log" + DateTime.No....
分类:
其他好文 时间:
2014-06-07 07:15:18
阅读次数:
292
在声明公共变量的位置加上这句就可以了Dim WithEvents NewButton As
Buttonform_load中添加NewButton = New Button NewButton.Text = "close"
Me.Controls.Add(NewButton)调用事件: Privat...
分类:
其他好文 时间:
2014-06-07 07:06:56
阅读次数:
202
StringBuilder s = new StringBuilder();
s.Append(""); Type cstype = this.GetType(); ClientScriptManager cs =
Page.ClientScript; string sname = "lt"; if...
分类:
Web程序 时间:
2014-06-07 06:54:53
阅读次数:
318
无线电发射机输出的射频信号,通过馈线(电缆)输送到天线,由天线以电磁波形式辐射出去。电磁波到达接收地点后,由天线接收下来(仅仅接收很小很小一部分功率),并通过馈线送到无线电接收机。因此在无线网络的工程中,计算发射装置的发射功率与天线的辐射能力非常重要。
Tx 是发射(Transmits)的简称...
分类:
数据库 时间:
2014-06-07 06:18:08
阅读次数:
249