①file/new/other/androd Application 
Poject,选择SDKDemo,复制到workspace②申请amap的key,名字在res/values/strings/的demo_title:为AMapsD 
Demo③run-as可以在模拟器里也可以在手机上。
                            
                            
                                分类:
其他好文   时间:
2014-05-05 21:48:01   
                                阅读次数:
257
                             
                    
                        
                            
                            
                                文件存储的用途:
A File object is suited to reading or writing large amounts of data in start-to-finish order without skipping around. For example, it's good for image files or anything exchanged over a netw...
                            
                            
                                分类:
移动开发   时间:
2014-05-05 13:01:21   
                                阅读次数:
339
                             
                    
                        
                            
                            
                                这篇对应的是习题16,读写文件
# -*- coding: utf-8 -*-
#对文件更多操作复制A文件的内容到B文件
#from sys import argv
from os.path import exists
prompt = "> "
from_file = raw_input("please input the filename where you want to copy...
                            
                            
                                分类:
编程语言   时间:
2014-05-05 12:54:02   
                                阅读次数:
402
                             
                    
                        
                            
                            
                                这两天遇到了这样一个问题,网上下载的别人导出的.unitypackage包。如果双击打开,则会出现“Failed importing package ”的错误。
    为此很头疼,查了一些资料,需要将.unitypackage包复制到Editor\Standard Packages文件夹下, 然后ctrl+9打开 Asset Store, 点击下载然后找到刚刚复制的包名,点击Impor...
                            
                            
                                分类:
其他好文   时间:
2014-05-04 00:05:32   
                                阅读次数:
431
                             
                    
                        
                            
                            
                                使用jquery-file-upload,可以通过js来上传多个文件,并且支持端电脑续传。
    使用jqplay可以播放MP4、MP3等视频和音频文件,速度快,支持linux、windows等系统和各种浏览器。...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 17:30:50   
                                阅读次数:
337
                             
                    
                        
                            
                            
                                1.File的用于创建目录、用于表示目录、用于创建文件、用于表示文件和用于删除文件或目录。
2.字符流:abstract class Reader和Writer操作的是文本文件
3.缓冲字符流(BufferedReader和BufferedWriter)每次读取或写入一行
缓冲流(BufferedInputStream和BufferedOutputStream)每次读取或写入一个数组的大小。
4.打印字符流属于处理流,不能和介质直接相连...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 17:21:40   
                                阅读次数:
401
                             
                    
                        
                            
                            
                                Ubuntu 14.04下启动模拟设备Android 4.2.2的时候报错:failed to load libgl.so先用locate 命令定位libGL库, 然后添加一个链接即可:dean@dean-Aspire-V7-481G:~$ locate libGL
/opt/android-sdk-linux/tools/lib/libGLES_CM_translator.so
/opt/and...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 16:17:54   
                                阅读次数:
483
                             
                    
                        
                            
                            
                                1、具体错误如下
2014-5-2 21:38:29 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error
严重: Exception occurred during processing request: null
java.lang.NullPointerException
	at com.you.file.upload.actio...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 16:08:37   
                                阅读次数:
353
                             
                    
                        
                            
                            
                                添加Expires和Cache-control头部
Expire和Cache-control实际上是HTTP中的缓存控制头部,它主要影响客户端的请求行为和服务器端的响应。
一.缓存的基本概念
这里的缓存,单指web的缓存。当web请求抵达缓存时,如果本地有缓存的副本且缓存未过期,那么就可以从本地读取数据或文档,这样便可以:
1.        减少冗余的数据传输,一定程度上减少服务器的流量...
                            
                            
                                分类:
Web程序   时间:
2014-05-03 15:51:40   
                                阅读次数:
380
                             
                    
                        
                            
                            
                                linux源码升级内核当前环境:[root@localhost~]#uname-r
2.6.18-348.el5配置流程:1、准备yum库安装g++gcc[root@localhost~]#cat/etc/yum.repos.d/rh_5.9.repo
[rhel-server]
name=Redserver
baseurl=file:///misc/cd/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-..
                            
                            
                                分类:
系统相关   时间:
2014-05-03 14:40:08   
                                阅读次数:
500