just_a_coder

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年12月18日

摘要: linux下对xml的操作 阅读全文
posted @ 2010-12-18 19:58 justacoder 阅读(297) 评论(0) 推荐(0) 编辑

2010年7月27日

摘要: Linux下的时间设置,每次重启都不正确  最近在工作中遇到一个非常奇怪的问题,是关于设置时间。设定好系统时间后,重新启动我的RedHat5.2,时间居然还是错了。由于数据库要在特定的时间点进行数据转移,所以这个时间必须设定好,不能每次重启都自己重新设定。  秉着凡事不会问google的原则,搜索了下,发现可能是硬件时间与系统时间不一致导致的。所以立即尝试,首先设定好系统时间,然后hwclock ... 阅读全文
posted @ 2010-07-27 23:19 justacoder 阅读(1168) 评论(0) 推荐(0) 编辑

2010年5月31日

摘要: const int a a是内容不可改变的int类型int const a a是内容不可改变的int类型const int* a a是指向const int的指针int const *a a是指向const int的指针int* const a a是指向int的常指针const int* const a a是指向const int的常指针网上还出现了另外一种用法int const * a cons... 阅读全文
posted @ 2010-05-31 18:08 justacoder 阅读(223) 评论(0) 推荐(0) 编辑

2010年4月21日

摘要: crontab的简单实用方法 阅读全文
posted @ 2010-04-21 11:57 justacoder 阅读(196) 评论(0) 推荐(0) 编辑

摘要: 中文hadoop job的编写说明 阅读全文
posted @ 2010-04-21 11:39 justacoder 阅读(1793) 评论(0) 推荐(0) 编辑

2010年4月17日

摘要: python学习笔记 阅读全文
posted @ 2010-04-17 20:33 justacoder 阅读(2272) 评论(0) 推荐(0) 编辑

2010年4月14日

摘要: 一 造成segment fault,产生core dump的可能原因1.内存访问越界a) 由于使用错误的下标,导致数组访问越界b) 搜索字符串时,依靠字符串结束符来判断字符串是否结束,但是字符串没有正常的使用结束符c) 使用strcpy, strcat, sprintf, strcmp, strcasecmp等字符串操作函数,将目标字符串读/写爆。应该使用strncpy, strlcpy, str... 阅读全文
posted @ 2010-04-14 23:14 justacoder 阅读(97669) 评论(0) 推荐(8) 编辑

2010年4月5日

摘要: 代码清洁之道笔记 阅读全文
posted @ 2010-04-05 22:56 justacoder 阅读(330) 评论(0) 推荐(0) 编辑