Technology Learning

导航

2016年10月29日

如何查看屏幕touch driver是否在正常工作

摘要: 1. adb shell cat proc/bus/input/devices查看touch对应的是哪个event,如是event3: 2. adb shell getevent dev/input/event3 然后去触摸屏幕,看看是否反应 阅读全文

posted @ 2016-10-29 16:56 浔阳渔夫 阅读(416) 评论(0) 推荐(0) 编辑

2013年8月15日

python 核心编程课后练习(chapter 6)

摘要: 6-1 1 #6-1 2 3 #help(string) 4 import string 5 6 str = "helloworld" 7 substr = "h1e" 8 9 if string.find(str, substr) != -1:10 print"substr=%s is part of %s" % (substr, str)11 else:12 print"not substring" View Code 6-2 1 #6-2 2 import string 3 import keyword 4 阅读全文

posted @ 2013-08-15 19:26 浔阳渔夫 阅读(429) 评论(0) 推荐(0) 编辑

2013年8月5日

python 核心编程课后练习(chapter 5)

摘要: 5-21 #5-22 def mul(x, y):3 return x * y4 5 print mul(4,5) View Code 5-3 1 #5-3 2 def value_score(num): 3 if 90 a[j]:20 a[i], a[j] = a[j], a[i]21 22 print"New arrary:"23 show_all(a) View Code 阅读全文

posted @ 2013-08-05 19:48 浔阳渔夫 阅读(295) 评论(0) 推荐(0) 编辑

2013年8月2日

python 核心编程课后练习(chapter 3)

摘要: 3-8 1 #3-8 2 "makeTextFile.py -- create text file" 3 4 import os 5 ls = os.linesep 6 7 #get filename 8 fname = raw_input() 9 while True:10 11 if os.path.exists(fname):12 print "ERROR: '%s' already exists" % fname13 else:14 break15 all = []16 print "\nEnter lines ( 阅读全文

posted @ 2013-08-02 09:58 浔阳渔夫 阅读(283) 评论(0) 推荐(0) 编辑

2013年7月31日

python 核心编程课后练习(chapter 2)

摘要: 2-41 #2-4(a)2 print "enter a string"3 4 inputstring = raw_input()5 6 print"the string is: ", inputstringView Code 1 #2-4(b)2 print "enter a number:"3 4 num = raw_input()5 6 print "the number is: ", int(num)View Code 2-5#2-5(a)i = 0while i 0: 9 print "a po 阅读全文

posted @ 2013-07-31 20:36 浔阳渔夫 阅读(204) 评论(0) 推荐(0) 编辑

2013年5月11日

WIN32::OLE操作之excel

摘要: 工作关系,近期有用perl来处理大量.c/.h里特殊字串,并统计到一张excel中。也着实体验了一把perl处理文本的高效,4-5days的工作量在5-6mins就给做好了。因为是新手,以下的demo code难免一些抄袭的痕迹(heh),至此向那些share这块经验的高手致敬。View Code 1 use strict; 2 use Cwd; 3 4 #引入OLE模块 5 use Win32::OLE qw(in with); 6 use Win32::OLE::Const 'Microsoft Excel'; 7 8 9 # use existing insta... 阅读全文

posted @ 2013-05-11 21:48 浔阳渔夫 阅读(963) 评论(0) 推荐(0) 编辑

2011年3月4日

使用 yum 命令安装本地安装QQ

摘要: 有很多种情况适合进行本地安装,比如为了节省下载时间使用光盘中的软件包,或者以前已经下载好了某个 RPM 包……不过使用 yum 进行安装的最大优点还是 —— yum 会在自动检测并尽可能地为你解决软件包依赖性这个麻烦事 (讲到手动解决依赖性的时候,你就会知道它真的很麻烦了 :D) 这一节就以 QQ 为例,学习 yum 的本地安装功能吧。 首先到腾讯官方网站下载 QQ Linux 版的 RPM 包:下载 QQ for Linux。可直接保存到默认路径,即 /home/lugir/Downloads。(如果使用其它路径,运行 yum 命令时记得使用你自己的路径) 打开 “应用程序 -> 系统 阅读全文

posted @ 2011-03-04 16:30 浔阳渔夫 阅读(3900) 评论(0) 推荐(0) 编辑

gcc安装

摘要: 直接命令行下,执行yum install gcc -y 这个会把gcc相关的包全部下装安装 阅读全文

posted @ 2011-03-04 15:26 浔阳渔夫 阅读(196) 评论(0) 推荐(0) 编辑

2010年9月15日

给无边框窗体添加任务栏右键菜单

摘要: SetWindowLong(Handle,GWL_STYLE,WS_SYSMENU); 阅读全文

posted @ 2010-09-15 08:53 浔阳渔夫 阅读(316) 评论(0) 推荐(0) 编辑

2010年8月5日

删除非空目录

摘要: function DeleteDirectory(mSource: string): Boolean; var vSHFileOpStruct: TSHFileOpStruct; begin FillChar(vSHFileOpStruct, SizeOf(vSHFileOpStruct), 0); with vSHFileOpStruct do begin Wnd := Ap... 阅读全文

posted @ 2010-08-05 14:56 浔阳渔夫 阅读(414) 评论(1) 推荐(0) 编辑