摘要: 技术博客地址: "fivezh.github.io" 以后本博客只会更新技术之外的个人兴趣文章,或转发。感谢博客园陪我走过的五年。 阅读全文
posted @ 2016-03-27 22:37 .小武. 阅读(243) 评论(2) 推荐(1) 编辑
摘要: 概述:Python中这三种形式的定义相近,易于混淆,应注意区分. 一、字典Dictionary 语法形式:aDict={'a':1, 'b':2, 'c':3, 'd':4, 'e':5} Python手册说明: "https://docs.python.org/2.7/library/stdtyp 阅读全文
posted @ 2016-02-15 11:12 .小武. 阅读(2560) 评论(1) 推荐(1) 编辑
摘要: 之前对Daemon线程理解有偏差,特记录说明: 一、什么是Daemon A thread can be flagged as a “daemon thread”. The significance of this flag is that the entire Python program exit 阅读全文
posted @ 2016-02-14 23:29 .小武. 阅读(15376) 评论(3) 推荐(1) 编辑
摘要: Git "Git rebase" Linux "鸟哥的 Linux 私房菜 基础学习篇" "鸟哥的 Linux 私房菜 服务器架设篇" JQuery "highcharts 绘图插件" "daterangepicker 时间区间选择插件" 阅读全文
posted @ 2015-11-15 21:43 .小武. 阅读(203) 评论(0) 推荐(0) 编辑
摘要: ## getopt()函数## getopt_long函数### 函数原型(function prototype)```c #include int getopt(int argc, char * const argv[], const c... 阅读全文
posted @ 2015-05-17 22:58 .小武. 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 源码分析共享地址:https://github.com/fivezh/WebBench下载源码后编译源程序后即可执行:sudo make cleansudo make & make install1. 使用方法five@master:~/github/OpenCCode/WebBench$ ./we... 阅读全文
posted @ 2015-05-05 21:52 .小武. 阅读(2387) 评论(0) 推荐(0) 编辑
摘要: 不同版本标准差异总结(图片来源:http://www.crifan.com/summary_c_language_version_c89_amd1_c99_c11):以下为转载:【K&R C】1978 年,Dennis Ritchie 和 Brian Kernighan 合作推出了《The C Pr... 阅读全文
posted @ 2015-05-04 23:05 .小武. 阅读(40187) 评论(2) 推荐(3) 编辑
摘要: 浏览器不断发展,js的很多脚本需要跟进才能适应,目前多数代码对新版本浏览器(IE11, Firefox 27)无法适用,特关注跟进。推荐代码1适用浏览器:IE11(windows 8.1), Firefox 37.0.1(windows 8.1),不适用浏览器:IE6(windows xp),测试代... 阅读全文
posted @ 2015-04-18 12:57 .小武. 阅读(3194) 评论(0) 推荐(0) 编辑
摘要: 在博客园阅读了很多优秀的博文,内容清晰,结构合理,开篇还有目录索引,自己也用博客园很长时间了,今天补充下如何自己手动生成博文的章节目录索引。阅读目录:1.文章撰写2.添加锚点3.添加目录并建立锚点链接4.附录1.文章撰写把需要的文章内容先写完整,章节标题添加标题3的样式(在TinyMCE编辑器下,标... 阅读全文
posted @ 2015-03-21 15:35 .小武. 阅读(691) 评论(0) 推荐(1) 编辑
摘要: 阅读目录:在Windows 8.1系统的应用程序商店中安装程序时,总是提醒“挂起”状态。无法进行后续安装,看了下国内不少用户有这个困扰,特此总结自己的解决方案。1.确保Windows update服务是启动的。2.如果windows update服务已启动请忽略此步,直接按照3操作;若windows... 阅读全文
posted @ 2015-03-21 13:58 .小武. 阅读(6730) 评论(0) 推荐(1) 编辑
摘要: 使用方式很简单,简单测试代码如下: Check 如果希望自定义提示信息的位置,使用errorPlacement参数,修改后,代码如下: Check 其中errorPlacement中如果添加了修改,则需要if/else完整语句,因jquery.validation.js源码中,如果判断到已设置errorPlacement则按照其配置方式来处理。所以,如果仅在errorPlacement中增加的if语句,而没有对其他条件(else)处理,则仅当满足if条件时显示提示信息,其他无... 阅读全文
posted @ 2013-12-31 10:49 .小武. 阅读(2488) 评论(0) 推荐(0) 编辑
摘要: 题目:有序数组中加入一个新的数据,需保持数组有序,如何操作?方式A :for循环将后续数组依次后移。方式B :内存拷贝代码:/******************************************************************************* Name:20130424-arrayCopy.c** 有序数组内插入新的数据,而后续数据向后移动,传统作为for操作,改进方式使用内存拷贝** Author:Fivezh** Date:20130424** Copyright (c) 2013,All Rights Reserve... 阅读全文
posted @ 2013-12-13 11:26 .小武. 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: 之前对Ubuntu的更新支持,LTS没有深入理解,一直使用ubuntu 10.10 maverick,资源占用,效率都很满意。今天使用sudo apt-get install 无法安装软件,错误提示如下:W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz 404 Not FoundW: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/So.. 阅读全文
posted @ 2013-02-01 19:22 .小武. 阅读(13718) 评论(0) 推荐(2) 编辑
摘要: <UNIX环境高级编程(第二版)> 线程学习P287-P297#include <pthread.h>//新建线程int pthread_create(pthread_t *restrict tidp, const pthread_attr_t *restrict attr, void *(*start_rtn)(void *), void *restrict arg);//线程终止void pthread_exit(void *rval_ptr);//线程自身主动退出int pthread_join(pthread_t tid, void **rval_ptr);// 阅读全文
posted @ 2013-01-23 19:48 .小武. 阅读(9007) 评论(0) 推荐(1) 编辑
摘要: TinyOS 2.1.2 is now officially released; you can download it from the debian packages on tinyos.stanford.edu. In SVN, the tags are release_tinyos_2_1_2 and release_tinyos_tools_1_4_2. Manual installation with RPMs with the instructions on docs.tinyos.net will be forthcoming soon. 2.1.2 includes: ... 阅读全文
posted @ 2012-08-21 10:29 .小武. 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 文章来源:左岸读书大学生们又该忙找工作了。我作为一个人到中年的职场油子谈谈招聘,希望能对大家的择业有所帮助吧。首先要解开一个误区,那就是应届的大学毕业生很难找工作。对于我而言,我这么多年从来没有歧视过应届毕业生。而且我身边的很多公司,包括我的同行,也都不歧视。这点大家大可放心。通常来说,一个公司的业务模块无外乎两大块。一大块是商务性的业务模块,包括了销售、市场、客户管理等等,有的公司把项目管理也划到了这一块,也有的公司反之。而我这么多年一直从事的工作,就是市场部的工作。除了商务性的业务模块之外,剩下的就是生产、研发性的业务模块了。比如系统开发、测试、项目实施、项目管理、系统集成等等。除了商务、 阅读全文
posted @ 2012-08-18 03:16 .小武. 阅读(359) 评论(0) 推荐(1) 编辑
摘要: Omnetpp 4.2.2编译运行程序报错:Simulationterminatedwithexitcode:-1073741511Workingdirectory:D:/wsn/omnetpp-4.2.2/samples/xfive/MCCP/simulationsCommandline:../src/MCCP.exe-r0-n../src;.omnetpp.iniEnvironmentvariables:PATH=;D:\wsn\omnetpp-4.2.2\bin;D:\wsn\omnetpp-4.2.2\msys\bin;D:\wsn\omnetpp-4.2.2\mingw\bin;D: 阅读全文
posted @ 2012-08-09 09:35 .小武. 阅读(1626) 评论(4) 推荐(1) 编辑
摘要: 一直使用Ubuntu10.10作为桌面的,但开机输入密码时,小键盘等总是灭的(off),密码有数字,每次按Num Lock多有不便。主要步骤:1.安装numlockx软件:sudoapt-getinstallnumlockx2.Ubuntu系统编辑文件/etc/gdm/Init/Default,在exit 0前加入下列代码:if[-x/usr/bin/numlockx];then/usr/bin/numlockxonfi 3.重启,验证,虽然指示灯不亮,但小键盘开启成功,正常输入数字登录成功。参考:1.Activating Numlock on Bootuphttps://wiki.archl 阅读全文
posted @ 2012-05-16 20:28 .小武. 阅读(6440) 评论(0) 推荐(0) 编辑
摘要: 1.下载最新版本Fcitx4.2.2[fcitx-4.2.2.tar.xz,下载地址:https://code.google.com/p/fcitx/downloads/detail?name=fcitx-4.2.2.tar.xz]后,编译安装成功。安装过程参考解压缩目录下的INSTALL文件。2.安装可视化配置工具 [ fcitx-configtool-0.4.2.tar.xz,下载地址:https://code.google.com/p/fcitx/downloads/detail?name=fcitx-configtool-0.4.2.tar.xz ],编译安装后,重启Fcitx后,运行 阅读全文
posted @ 2012-05-06 20:24 .小武. 阅读(6868) 评论(0) 推荐(0) 编辑
摘要: Avril Lavigne:I love youRachel Ruth:You are so beautiful.Amy Diamond:Heartbeats虾米widget: 阅读全文
posted @ 2012-04-22 21:45 .小武. 阅读(232) 评论(0) 推荐(0) 编辑