- 博客(28)
- 资源 (8)
- 收藏
- 关注
原创 化学结构式检索obabel
1、mol文件追加到检索库sdf 2、生成索引文件fs babel default1.sdf -ofs 3、精确检索 Smiles;inchi; 两个格式结果等同,但Smiles效率应该略高,采用的索引。 Smiles: Babel search.mol -osmi obabel default1.fs -O out.svg -s
2017-09-18 19:02:23
3707
转载 如何生成静态页面的五种方案
方案1: /// /// 传入URL返回网页的html代码 /// /// URL /// public static string getUrltoHtml(string Url) { errorMsg = ""; try { System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url); //
2011-12-23 14:53:57
690
转载 C#,sql数据库的增删改查
数据库的增删改查,我通常的做法是: 通常新建一个config配置文件用来保存数据库连接字符串 然后再建一个专门用来连接数据库的类DBHelper using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Sq
2011-12-15 10:51:08
1969
转载 身份证验证
private bool CheckCardId(string id) { int[] wQuan = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 }; string checkWei = "10X98765432";
2011-12-14 10:32:26
752
1
转载 C#多线程的使用
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ConsoleApplication1 { class Program {
2011-12-14 10:11:58
734
1
原创 如何给NSMutableArray添加空对象
有的时候,需求需要,得给数组添加空的对象。而NSMutableArray,不支持添加。 此时可以这么来达到效果, 这时可以使用 NSNull 来做这件事: [myArray addObject:[NSNull null]];
2011-12-12 09:41:15
2249
原创 uitable的交替背景色
注: uitable在 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 设定颜色,是无效的。 正确设定颜色的位置是: - (void)tableView:(UITableView *)tableView willDisplayCe
2011-12-08 16:22:50
723
原创 好用的 excel导出导入 C# aspx
注:需要影响附件里的,Applibrary.dll AppLibrary.WriteExcel.XlsDocument doc = new AppLibrary.WriteExcel.XlsDocument(); doc.FileName = "Report.xls"; string SheetName = string
2011-11-23 16:58:11
2045
转载 导入EXCEL
//导入EXCEL public void ImportExcel(string file) { //string file = "d:\\123.xls"; string excelStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + file + ";Extended Properties=Excel 8.0;"
2011-11-21 11:42:11
573
转载 demo for iphone
http://developer.apple.com/iphone/library/samplecode/Reachability/Reachability.zip http://developer.apple.com/iphone/library/samplecode/avTouch/avTouch.zip http://developer.apple.com/iphone/librar
2011-11-21 09:16:34
704
转载 iphone获取通讯录
这段代码示范如何读取iphone的Address book 就透过AddressBook相关的SDK取出就行了 view plaincopy to clipboardprint? ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef allPeople = ABAddressBookC
2011-11-09 11:36:07
963
原创 iphone类型判断
判断页面上某一控件的类型: for (UIView *tmp_view in self.window.subviews) { if ([tmp_view isMemberOfClass:[bookEdit class]]) { return; } }
2011-11-09 11:35:46
787
转载 两张图片的交换,以及放大缩小的动画
在IPhone SDK开发范例大全中,有很多的范例码 下面这段范例码,示范了两张图片的交换,以及放大缩小的动画 动画效果请参照下图 view plaincopy to clipboardprint? #import #define IMAGE_VIEW_1 100 #define IMAGE_VIEW_2 101
2011-11-09 11:35:25
799
原创 iphone uitable+长按事件
表格:可以使内容分层显示 #pragma mark - #pragma mark Table Delegate Methods - (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath 表格:可以使内容的选择,现实两种动画效果
2011-11-09 11:35:01
809
转载 iphone杂集
一,修改状态栏: 1.加入[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];但此方法只是不显示状态条,状态条所占用的空间仍然存在。 2.可以修改Info.plist文件,在info.plist文件中加入一条新键值,命名为:UIStatusBarHidden;选择Valuetype为Boolean,
2011-11-09 11:34:08
834
转载 iphone pdf 解析
iphone PDF 解析 #import @class PDFTestViewController; @interface PDFView : UIView { //这个类封装了PDF画图得所有信息 CGPDFDocumentRef pdf; //PDFDocument 中得一页 CGPDFPageRef page; //总共页数 int tot
2011-11-09 11:33:27
645
转载 iphone 文件保存策略
文件保存策略: 一般有三中方法:1,属性列表,2,对象归档,3,iphone的嵌入式数据库库(sqLite3) 1,属性列表 存储文件: //获取文档目录,NSDocumentDirectory表示我们查找Documents目录的路径,NSUserDomainMask表示我们的搜索范围只能在我们的应用程序沙盒当中, NSArray *
2011-11-09 11:31:42
807
转载 制作一个简单的动画
12.制作一个简单的动画: - (IBAction)curlAction:(id)sender { //开始一个动画 [UIView beginAnimations:nil context:NULL]; //设置动画得时间间隔 [UIView setAnimationDuration:kTransitionDuration]; //设置动画得旋转方式 [UIVie
2011-11-09 11:29:02
750
原创 取得用户的电话本
//取得用户的电话本 代码 -(void)getUserAddressBook{ //reDic = {"7":"数码先锋","1":"最爱街拍"} //打开电话本数据库 ABAddressBookRef addressRef=ABAddressBookCreate(); //返回所有联系人到一个数组中 CFArrayRef personArray
2011-11-09 11:26:47
501
原创 object-c 拓展nsstring方法
添加文件"stringtest.h" #import @interface NSString(addprestr) -(NSString*)add_pre; @end 添加文件"stringtest.m" #import "stringtest.h" @implementation NSString(addprestr) -(NSString*)add_pre
2011-10-21 17:17:46
515
翻译 respondsToSelector的妙用
respondsToSelector方法对不同ios版本有类似动态支持的功能 例如在ios4.0以后中eagleView中新增了对 iphone4 Retina高清屏幕支持的成员变量scaleContent,在4.1sdk下可以直接使用self.scaleContent = 2,但是如果换用3.2sdk,这样编译马上就会报错,提示eagleView中没有这样的成员变量,这里报错也是自然,因为3.
2011-10-21 16:58:59
2661
原创 iphone UIWEBVIEW JS回调交互
1. 一般调用 将本地数据,封装,直接作为JS的返回值。如:获取软件的APPCode //获取APPCode NSArray *_plist_paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirector
2011-10-18 10:45:35
3511
原创 iphone Android JS的使用
android 与iphone都可以在webview控件里面潜入JS代码。但由于两种JS添加方式的不同。 Android 的JS添加,需要添加到指定的对象中去.如: webView.addJavascriptInterface(new Object() {
2011-10-17 11:43:00
1029
原创 iphone数据的建立与表的操作
1.应用程序-》实用工具-》终端 2.终端常用命令:ls列举改目录下的文件 cd+文件夹名,进入改文件夹 cd+空格+点点(..)返回上一层目录 sqlite3 +【数据库名】启动数据库操作命令,并操作某一数据库,没有的话,则自动创建
2011-10-09 18:36:35
539
原创 iphone数据库的增删改查
#import "DataBaseOperate.h" @implementation DataBaseOperate @synthesize databaseName; #pragma mark # #pragma mark DataBase Operate
2011-10-09 18:08:09
538
原创 iphone获取下载文件大小
1.需要引进项目的文件:下载 2.使用方法: 2.1把下载包的文件,添加到项目中去[22个文件] 2.2引用头文件 #import "ASIHTTPRequest.h" 2.3获取文件大小的函数 2.4添加该事件的代理[处理获取值或者获取
2011-09-29 16:51:50
1109
ps钢笔工具使用方法教程
2011-11-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅