摘要: 自学android ,刚刚制作了登陆页面参考http://blog.csdn.net/wjw_java_android/article/details/9763557Android客户端如何与服务器交互呢?参考http://blog.umeng.com/index.php/2012/01/2012-1-5/从那两幅图中可知Android客户端与服务器交互和我们在浏览器中提交数据一样--通过url【get/post】那呢如何保证安全性呢?参考http://www.cnblogs.com/japanbbq/archive/2011/09/01/2161650.html和浏览器访问一样,我们通过se 阅读全文
posted @ 2013-12-12 14:52 yuluhuang 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 男 女 radio: 获取 var sex = $(":radio[name=sex]:checked").val(); var sex =$("input[name=sex]:checked").val(); 设置 $(".man").attr("checked", t... 阅读全文
posted @ 2013-12-09 16:57 yuluhuang 阅读(168) 评论(0) 推荐(0) 编辑
摘要: id: node id, which is important to load remote datatext: node text to showstate: node state, 'open' or 'closed', default is 'open'. When set to 'closed', the node have children nodes and will load them from remote sitechecked: Indicate whether the node is checked sele 阅读全文
posted @ 2013-11-30 10:50 yuluhuang 阅读(130) 评论(0) 推荐(0) 编辑
摘要: mysql>SETcharacter_set_client=utf8;mysql>SETcharacter_set_connection=utf8;mysql>SETcharacter_set_database=utf8;mysql>SETcharacter_set_results=utf8;mysql>SETcharacter_set_server=utf8;mysql>SETcollation_connection=utf8;mysql>SETcollation_database=utf8;mysql>SETcollation_server= 阅读全文
posted @ 2013-11-14 15:04 yuluhuang 阅读(90) 评论(0) 推荐(0) 编辑
摘要: from django.conf import settings 阅读全文
posted @ 2013-11-06 15:22 yuluhuang 阅读(196) 评论(0) 推荐(0) 编辑
摘要: encode 编码,以不同方式编码为bytes .encode('utf-8')decode 解码 .decode('utf-8') 阅读全文
posted @ 2013-11-05 12:40 yuluhuang 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Ctrl-Z不是结束进程,而是挂起进程,也就是让它暂时休眠。在 shell 下,使用fg可以把该进程(组)放到前台接着跑,使用bg来让其在后台接着跑。要中止一个进程,请使用Ctrl-C。sudo netstat -tulpn | grep :端口号命令查出端口被哪个进程占用了 然后用kill -9 [PID]也可以用这个命令查出某端口被哪个程序占用了:$ lsof -i:端口号$ kill -9 [PID] 阅读全文
posted @ 2013-11-05 10:29 yuluhuang 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.null[True or False]2.blank[True or False]3.choicesfrom django.db import modelsclass Person(models.Model): GENDER_CHOICES = ( (u'M', u'Male'), (u'F', u'Female'), ) name = models.CharField(max_length=60) gender = models.CharField(max_length=2, choices=GENDER_CHOICES)4 阅读全文
posted @ 2013-10-31 18:17 yuluhuang 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://www.starming.com/index.php?action=plugin&v=wave&tpl=union&ac=viewgrouppost&gid=73&tid=17981martch和search的区别Python提供了两种不同的原始操作:match和search。match是从字符串的起点开始做匹配,而search(perl默认)是从字符串做任意匹配 正则表达式是' ^ '开头时,match与search是相同的。match只有当且仅当被匹配的字符串开头就能匹配或从pos参数的位置开始就能匹配时才会成功re.s 阅读全文
posted @ 2013-10-23 09:34 yuluhuang 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 为Ubuntu安装翻译词典(星际译王)发表于2012 年 7 月 31 日由Sam在使用工作中我们经常需要用去查询一些英文单词的意义、对于像我这类从事计算机相关行业的朋友更是如此、windows下时候一直在用有道词典、因为Google翻译没桌面版、这次换到Ubuntu下面之后为了安装词典弄了很长时间、linux并不缺少词典软件、但是缺少词库、所有的词典软件都需要自己下载安装词库、所以找词库成了一件麻烦的事情。1.在Ubuntu软件中心搜索stardict安装辞典(也可以搜索星际译王)2.在应用程序下的附件可以找到安装的stardict3.到http://abloz.com/huzheng/st 阅读全文
posted @ 2013-10-22 10:28 yuluhuang 阅读(400) 评论(0) 推荐(0) 编辑