原地址:http://www.cnblogs.com/U-tansuo/p/ios_basis_info.html1、获取设备类型 (Iphone/ipad
几?)#import "sys/utsname.h"-(NSString*)getDeviceVersion{ struct utsname ...
分类:
移动开发 时间:
2014-05-12 17:44:02
阅读次数:
546
1.概念Cache-control用于控制HTTP缓存(在HTTP/1.0中可能部分没实现,仅仅实现了Pragma:
no-cache)数据包中的格式:Cache-Control:cache-directivecache-directive可以为以下:request时用到:|
"no-cache"|...
分类:
其他好文 时间:
2014-05-12 16:25:03
阅读次数:
245
这篇对应的是习题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
方法1 .1在开始运行输入regedit打开注册表
2.定位到HKEY_LOCAL_MACHINE------SYSTEM------ControlSet001-------Control-------
GraphicsDrivers-------Configuration ...
分类:
其他好文 时间:
2014-05-04 11:50:46
阅读次数:
246
第八章 用户界面(二)
在 WinForm 上使用控件
控件就是类,派生自 System.Windows.Forms.Control,由此类派生出的任何类都能显示在窗体上,只要将它添加到窗体对象的 Controls 集合中。
现在我们看一下用控件画树形的方法。WinForms 库定义了 TreeView 类,这是专门用于显示树形结构的;自然,我们就用这个控件来显示树。使...
分类:
其他好文 时间:
2014-05-04 00:08:55
阅读次数:
322
ping是基于ICMP(Internet Control Message Protocol)协议实现的,而ICMP协议是在IP层实现的。
ping实际上是发起者发送一个Echo Request(type = 8)的,远程主机回应一个Echo Reply(type = 0)的过程。
为什么用ping不能测试某一个端口
刚开始接触网络的时候,可能很多人都有疑问,怎么用ping来测试远程主机的某个...
分类:
其他好文 时间:
2014-05-04 00:04:34
阅读次数:
381
1.[root@rusky ~]# id #显示当前用户的主组和备用组uid=0(root)
gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)[root@rusky ~]#
groups #显...
分类:
其他好文 时间:
2014-05-03 23:23:18
阅读次数:
647
Playback control of audio/video files and streams is managed as a state machine. The following diagram shows the life cycle and the states of a MediaPlayer object driven by the supported playback cont...
分类:
移动开发 时间:
2014-05-03 21:36:21
阅读次数:
568
添加Expires和Cache-control头部
Expire和Cache-control实际上是HTTP中的缓存控制头部,它主要影响客户端的请求行为和服务器端的响应。
一.缓存的基本概念
这里的缓存,单指web的缓存。当web请求抵达缓存时,如果本地有缓存的副本且缓存未过期,那么就可以从本地读取数据或文档,这样便可以:
1. 减少冗余的数据传输,一定程度上减少服务器的流量...
分类:
Web程序 时间:
2014-05-03 15:51:40
阅读次数:
380
1.列表框中标题栏(Column)的添加创建一个List
Control,其ID为IDC_LIST,在其Styles属性项下的View项里选择Report、Align项里选择Top、Sort项里选择None.然后在该List所在对话框的类(头文件)里创建ClistCtrl的一个对象m_list然后在...
分类:
其他好文 时间:
2014-05-02 01:50:52
阅读次数:
420