上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 300 下一页
2013年9月16日

css中border-width 属性

摘要: border-width属性可能的值值描述thin定义细的边框。medium默认。定义中等的边框。thick定义粗的边框。length允许您自定义边框的宽度。inherit规定应该从父元素继承边框宽度。例子 1border-width:thin medium thick 10px;上边框是细边框右边框是中等边框下边框是粗边框左边框是 10px 宽的边框例子 2border-width:thin medium thick;上边框是 10px右边框和左边框是中等边框下边框是粗边框例子 3border-width:thin medium;上边框和下边框是细边框右边框和左边框是中等边框例子 4bord 阅读全文
posted @ 2013-09-16 19:36 you Richer 阅读(395) 评论(0) 推荐(1)

iOS开发之Objective-c的MD5/SHA1加密算法的实现

摘要: Objective-c实现MD5和SHA1算法相对还是比较简单的,可以直接调用系统的C/C++共享库来实现调用 MD5即Message Digest Algorithm 5(信息-摘要算法 5),用于确保信息传输完整一致。是计算机广泛使用的杂凑算法之一 SHA即Secure Hash Algorithm(安全散列算法) 是美国国家安全局 (NSA) 设计,美国国家标准与技术研究院 (NIST) 发布的一系列密码散列函数。 使用方式如下: MD5加密方式 -(NSString *) md5{ const char *cStr = [self UTF8String]; unsi... 阅读全文
posted @ 2013-09-16 19:34 you Richer 阅读(384) 评论(0) 推荐(0)

(3)选择元素——(4)css选择器(CSS selectors)

摘要: The jQuery library supports nearly all of the selectors included in CSSspecifications 1 through 3, as outlined on the World Wide Web Consortium'ssite: http://www.w3.org/Style/CSS/specs. This support allows developersto enhance their websites without worrying about which browsers (particularlyInt 阅读全文
posted @ 2013-09-16 19:30 you Richer 阅读(172) 评论(0) 推荐(0)

CreateThread与_beginthread, _beginthreadex创建线程的基本概念和区别(1)

摘要: 这三个函数都可以创建新的线程,但都是如何创建的呢?当然MSDN文档最权威:Creates a thread to execute within the virtual address space of the calling process.在调用进程的虚拟地址空间里创建一个线程用CreateThread;To create a thread that runs in the virtual address space of another process, use theCreateRemoteThreadfunction.如果在另一进程的虚拟地址空间创建线程用CreateRemoteThr 阅读全文
posted @ 2013-09-16 19:29 you Richer 阅读(136) 评论(0) 推荐(0)

HDU 4741 Save Labman No.004 2013 ACM/ICPC 杭州网络赛

摘要: 传送门:http://acm.hdu.edu.cn/showproblem.php?pid=4741题意:给你两条异面直线,然你求着两条直线的最短距离,并求出这条中垂线与两直线的交点。需要注意的是,不知道为什么用double就WA了,但是改为long double就AC了。AC代码:#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespac 阅读全文
posted @ 2013-09-16 19:26 you Richer 阅读(179) 评论(0) 推荐(0)

Android Input设备debug技巧

摘要: 一、驱动层 检查是否有点上报 adb shell getevent -l /dev/input/eventX 检查input设备支持的属性值 adb shell getevent -i /dev/input/eventX 二、Native层 检查驱动上报的点是否被InputReader转发给上层 在TouchInputMapper::sync(nsecs_t when)函数中,打印相关的变量值,检查报点路径是否正常。驱动已经报点,但是上层收不到点的情况大致有以下几种: a. 设备模式被设为禁用模式,mDeviceMode == DEVICE_MO... 阅读全文
posted @ 2013-09-16 19:23 you Richer 阅读(444) 评论(0) 推荐(0)

Android中如何判断是否联网

摘要: 首先在AndroidManifest.xml中添加与连接网络相关的权限:[xhtml] view plain copyimport android.net.ConnectivityManager;import android.net.NetworkInfo; 判断联网的代码如下: [java] view plain copy ConnectivityManagerconnectivityManager=(ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE); NetworkInfonetwork... 阅读全文
posted @ 2013-09-16 19:20 you Richer 阅读(241) 评论(0) 推荐(0)

paip.tree 生成目录树到txt后的折叠查看

摘要: paip.tree 生成目录树到txt后的折叠查看 作者Attilax , EMAIL:1466519819@qq.com 来源:attilax的专栏 地址:http://blog.csdn.net/attilax Tree命令自动生成目录树到txt tree d:\xxx /f >tree.txt 导出txt文件... 但是,目录树要是可以结构化折叠查看走Ok兰... 测试累挂notepad++ ,editplus都不行...不能直接折叠查看... 替换tab符号为空格,在np,ep里面走可以折叠查看兰..左侧的显示孪折叠符号 ... 阅读全文
posted @ 2013-09-16 19:19 you Richer 阅读(446) 评论(0) 推荐(0)

hdu 4737 A Bit Fun

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4737 这个题一开始是输入一个n和一个p,n是说有n个数,p是里面用二进制 或 运算,其中最后结果不大于p,看最多能运算几个。最后输出最多运算的个数。 AC代码: #include#include#includeusing namespace std;int main(){ int t,k; __int64 sum; __int64 n,i,j,p,nu; __int64 a[100001]; scanf("%d",&t); k = 0; while(... 阅读全文
posted @ 2013-09-16 19:16 you Richer 阅读(145) 评论(0) 推荐(0)

FLASH ROM与EEPROM的区别

摘要: EEPROM,虽然也叫“非易失性数据存储器”,但它不能直接参与ALU运算,只是用于掉电不丢失的数据存储。 EEPROM和片内RAM 类似,也属于数据存储器,它的特点是数据掉电可保持,而程序存储器一般指ROM,用于存储用户程序代码。 EEPROM和FLASH基本都是非易失性存储器。EEPROM应属于数据存储器,但是它制造工艺和FLASH更近似。 FLASH是用于存储程序代码的,有些场合也可能用它来保存数据,当然前提是该单片机的FLASH工艺是可以自写的(运行中可擦写),但要注意FLASH的擦写次数通常小于一万次,而且通常FLASH只能按块擦除。EEPROM不能用来存程序,通常单片... 阅读全文
posted @ 2013-09-16 19:14 you Richer 阅读(2369) 评论(0) 推荐(0)
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 300 下一页