随笔- 295  文章- 0  评论- 9  阅读- 46万 
06 2012 档案
Semaphore and Mutex
摘要:In my project of sina spider as well as the course of Operating System, I come up with the use ofSemaphore and Mutex, I make a note here for my study and my work.DefinitionIn computer science, a semaphore is a variable or abstract data type provides a simple but useful abstraction controlling access 阅读全文
posted @ 2012-06-27 11:19 Jiang, X. 阅读(236) 评论(0) 推荐(0) 编辑
pyqt编程
摘要:1 # -*- coding: utf-8 -*- 2 from PyQt4.QtGui import * 3 from PyQt4.QtCore import * 4 import sys 5 6 QTextCodec.setCodecForTr(QTextCodec.codecForName("utf8")) 7 8 class Progess(QDialog): 9 def __init__(self,parent=None):10 super(Progess,self).__init__(parent)11 self.setWindowT... 阅读全文
posted @ 2012-06-20 14:29 Jiang, X. 阅读(765) 评论(0) 推荐(0) 编辑
根据json文件读取json信息
摘要:import json jsonobject = json.load(file('1222508030.json')) cnt = 0 for ele in jsonobject['result']: cnt = cnt + 1 print("\n%d#" % cnt) print(ele['content']['text']) raw_input() 阅读全文
posted @ 2012-06-19 21:53 Jiang, X. 阅读(228) 评论(0) 推荐(0) 编辑
java cookie全解析
摘要:摘要:虽然session机制在web应用程序中被采用已经很长时间了,但是仍然有很多人不清楚session机制的本质,以至不能正确的应用这一技术。本文将详细讨论session的工作机制并且对在Java web application中应用session机制时常见的问题作出解答。目录:一、术语session二、HTTP协议与状态保持三、理解cookie机制四、理解session机制五、理解javax.servlet.http.HttpSession六、HttpSession常见问题七、跨应用程序的session共享八、总结参考文档一、术语session在我的经验里,session这个词被滥用的程度 阅读全文
posted @ 2012-06-19 12:56 Jiang, X. 阅读(941) 评论(0) 推荐(0) 编辑
Myeclipse中导入jar包的方法
摘要:方法1:工程右键--Build Path--Configure Build Path -- Java Build Path --Libraries -- Add External JARs方法2:工程--Referenced Libraries右键--Build Path--Configure Build Path -- Java Build Path --Libraries -- Add External JARs 阅读全文
posted @ 2012-06-19 00:39 Jiang, X. 阅读(17232) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示