07 2014 档案

Python 性能剖分工具
摘要:Python 性能剖分工具 眼看着项目即将完成,却被测试人员告知没有通过性能测试,这种情况在开发中屡见不鲜。接下来的工作就是加班加点地找出性能瓶颈,然后进行优化,再进行性能测试,如此这般周而复始直到通过性能测试。尽管丰富的工作经验有助于性能优化,但只有科学地应用工具才能在最短的时间内找... 阅读全文

posted @ 2014-07-24 16:15 胡永光 阅读(172) 评论(0) 推荐(0)

串口编程
摘要:串口编程:#define DEV_GPS_NAME "/dev/ttyS1"#define GPS_BAUD_RATE 9600int speed_arr[] = {B115200,B38400, B19200, B9600, B4800, B2400, B1200, B300, B... 阅读全文

posted @ 2014-07-03 15:22 胡永光 阅读(162) 评论(0) 推荐(0)

拼音输入法实现
摘要:拼音输入法实现:#include #include #include struct PY_index { char *PY; char *PY_mb; }; //"拼音输入法汉字排列表,码表(mb)" char PY_mb_a[] ={"阿啊"}; char PY_mb... 阅读全文

posted @ 2014-07-02 17:14 胡永光 阅读(299) 评论(0) 推荐(0)

linux C 获取与修改IP地址
摘要:主要有两种方法:一种是用system执行shell命令,如:system("ifconfig usb0 192.168.1.188"); 另一种用ioctl系统调用:int usb_chann_setip(char *ip){ struct ifreq temp; struct sockad... 阅读全文

posted @ 2014-07-01 16:00 胡永光 阅读(1775) 评论(0) 推荐(0)

导航