摘要: 配置文件: 阅读全文
posted @ 2016-07-26 14:27 shaivas 阅读(244) 评论(0) 推荐(0) 编辑
摘要: NBB_PUT_SHORT 这个宏是按char* 类型算指针的实际工作中,没有注意这一点,输入指针类型 强转为了 SHORT* 导致 填充的内容错误这是第一次在工作中遇到 指针类型相关的问题值得记录一笔 1 // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include 6 #... 阅读全文
posted @ 2016-06-25 12:50 shaivas 阅读(386) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common sudo apt-get build-dep vim-gnome sudo apt-get install liblua5 阅读全文
posted @ 2016-02-11 20:56 shaivas 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1、专有承载类型设置: AT+CGDSCONT=2,1 (参数1:专有承载的Cid,参数2:linked缺省承载的Cid)注:AT命令中承载的Cid从1开始,设置Cid为2的专有承载,实际建立的是Cid为1的承载。2、TFT设置: AT+CGTFT=2,1,1,"172.168.70.151.255... 阅读全文
posted @ 2014-06-20 09:27 shaivas 阅读(1702) 评论(15) 推荐(0) 编辑
摘要: import urllibimport urllib2import socket import re import sys import os req_header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept':'text/html;q=0.9,*/*;q=0.8', 'Accept-Charset':& 阅读全文
posted @ 2013-10-27 10:47 shaivas 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 因为无法直接使用遨游的图片保存工具,所以自己用python写了一个。保存文件和文件名生成参考了别人的代码,加上了用BeautifulSoup解析网页内容的部分。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#coding=utf-8fromBea... 阅读全文
posted @ 2010-11-28 16:12 shaivas 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: JavaScriptc++pythoncobjective-c 阅读全文
posted @ 2010-11-27 17:25 shaivas 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 为了实现某个功能,需要安装pywin32、BeatifulSoup、wxPython等模块但是安装过程中总是出现问题,严重打击了我的兴趣python:2.7wxpython:wxPython2.8-win32-unicode-py27 comtypes:comtypes-0.6.2.win32.exewindows XP:以下列举之:最先安装的是python2.7,然后安装了wxpython,结果... 阅读全文
posted @ 2010-11-24 20:22 shaivas 阅读(1011) 评论(0) 推荐(0) 编辑