当前位置: 编程技术>综合
本页文章导读:
▪UISegmentedControl ......
▪ORA-00093: pga_aggregate_target must be between 10M and 4096G-1 SQL> startup
ORA-00093: pga_aggregate_target must be between 10M and 4096G-1
SQL> startup nomount
ORA-00093: pga_aggregate_target must be between 10M and 4096G-1这时,我才发现,前面修改的如下语句少了一个“M”:
SQL> alter.........
▪android开发中常见的不当处理导致“ANR” 1.耗时的数据库操作没有采用异步的方式去做处理(比如thread+handler,异步queryhandler等);
2.广播的onReceive里面有耗时操作;
3.handler的handlemessage里面有耗时操作;
4.初始化的数据和控件太.........
[1]UISegmentedControl
来源: 互联网 发布时间: 2013-11-05
- (void)viewDidLoad {
NSArray *segmentedArray = [[NSArray alloc]initWithObjects:@"1",@"2",@"3",@"4",nil];
//初始化UISegmentedControl
UISegmentedControl *segmentedTemp = [[UISegmentedControl alloc]initWithItems:segmentedArray];
segmentedControl = segmentedTemp;
segmentedControl.frame = CGRectMake(60.0, 10.0, 200.0, 50.0);
[segmentedControl setTitle:@"two" forSegmentAtIndex:1];//设置指定索引的题目
[segmentedControl setImage:[UIImage imageNamed:@"lan.png"] forSegmentAtIndex:3];//设置指定索引的图片
[segmentedControl insertSegmentWithImage:[UIImage imageNamed:@"mei.png"] atIndex:2 animated:NO];//在指定索引插入一个选项并设置图片
[segmentedControl insertSegmentWithTitle:@"insert" atIndex:3 animated:NO];//在指定索引插入一个选项并设置题目
[segmentedControl removeSegmentAtIndex:0 animated:NO];//移除指定索引的选项
[segmentedControl setWidth:70.0 forSegmentAtIndex:2];//设置指定索引选项的宽度
[segmentedControl setContentOffset:CGSizeMake(10.0,10.0) forSegmentAtIndex:1];//设置选项中图片等的左上角的位置
//获取指定索引选项的图片imageForSegmentAtIndex:
UIImageView *imageForSegmentAtIndex = [[UIImageView alloc]initWithImage:[segmentedControl imageForSegmentAtIndex:1]];
imageForSegmentAtIndex.frame = CGRectMake(60.0, 100.0, 30.0, 30.0);
//获取指定索引选项的标题titleForSegmentAtIndex
UILabel *titleForSegmentAtIndex = [[UILabel alloc]initWithFrame:CGRectMake(100.0, 100.0, 30.0, 30.0)];
titleForSegmentAtIndex.text = [segmentedControl titleForSegmentAtIndex:0];
//获取总选项数segmentedControl.numberOfSegments
UILabel *numberOfSegments = [[UILabel alloc]initWithFrame:CGRectMake(140.0, 100.0, 30.0,
[2]ORA-00093: pga_aggregate_target must be between 10M and 4096G-1
来源: 互联网 发布时间: 2013-11-05
SQL> startup ORA-00093: pga_aggregate_target must be between 10M and 4096G-1 SQL> startup nomount ORA-00093: pga_aggregate_target must be between 10M and 4096G-1这时,我才发现,前面修改的如下语句少了一个“M”:
SQL> alter system set pga_aggregate_target=500 scope=spfile; 系统已更改。苦了,创建pfile到指定位置,例如“c:\initorcl.ora”。
SQL>create pfile='c:\initorcl.ora' from spfile;修改initorcl.ora文件中pga_aggregate_target配置错误的值. 然后:
SQL> create spfile from pfile='c:\oracle\dbs\initorcl.ora'; SQL> startup
作者:huang_xw 发表于2013-1-5 12:42:48 原文链接
阅读:53 评论:0 查看评论
[3]android开发中常见的不当处理导致“ANR”
来源: 互联网 发布时间: 2013-11-05
1.耗时的数据库操作没有采用异步的方式去做处理(比如thread+handler,异步queryhandler等);
2.广播的onReceive里面有耗时操作;
3.handler的handlemessage里面有耗时操作;
4.初始化的数据和控件太多(不正确和低效率的初始化);
5.在onpostexecute里面有耗时操作;
6.频繁的创建线程或者其它大对象;
7.频繁的调用notifydatadetchanged方法;
8.主线程中加载过大数据和图片;
9.主线程中对大数据排序和循环操作;
10.过多的广播和滥用广播;
11.多个较为耗时的操作的叠加变成更耗时;
12.大对象的传递和共享;
作者:androidzhaoxiaogang 发表于2013-1-5 12:40:43 原文链接
阅读:55 评论:0 查看评论
最新技术文章: