05 2012 档案

dosfstools linux 下 vfat 文件系统检测
摘要:fsck.vfat man dosfsck ,找到维护人 http://www.hodek.net/maintain.html ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/ 这个版本太旧了。 后来找到这个: http://www.daniel-baumann.ch/software/dosfstools/ ... 阅读全文

posted @ 2012-05-31 17:07 katago 阅读(1146) 评论(0) 推荐(0) 编辑

perl 协议,端口号,服务名之间的转换方法
摘要:perl 协议,端口号,服务名之间的转换方法 2011年12月04日 ⁄ Perl进阶 ⁄ 暂无评论 ⁄ 被围观 352 次+ 之前我们已经看过了IP和主机名之间的转换,现在我们来看以下协议,端口号,服务名之间的转换方法。 首先我们看几个函数的功能及使用: $number = getprotobyname($protocol) ($name,$ali... 阅读全文

posted @ 2012-05-30 11:36 katago 阅读(284) 评论(0) 推荐(0) 编辑

使用事件驱动模型实现高效稳定的网络服务器程序
摘要:使用事件驱动模型实现高效稳定的网络服务器程序 几种网络服务器模型的介绍与比较 http://www.ibm.com/developerworks/cn/linux/l-cn-edntwk/# 使用 libevent 和 libev 提高网络应用性能 管理多个 UNIX 网络连接 http://www.ibm.com/developerworks/cn/aix/library/... 阅读全文

posted @ 2012-05-29 15:22 katago 阅读(241) 评论(0) 推荐(0) 编辑

轻量级 Web 服务器
摘要:轻量级 Web 服务器 作为 Apache 和其他市场领头产品的补充的专用 HTTP 应用程序 http://www.ibm.com/developerworks/cn/web/wa-ltwebserv/ http://www.acme.com/software/thttpd http://www.lighttpd.net 阅读全文

posted @ 2012-05-29 14:19 katago 阅读(194) 评论(0) 推荐(0) 编辑

提高 Linux 上 socket 性能
摘要:http://www.ibm.com/developerworks/cn/linux/l-hisock.html 使用 SCTP 优化网络 流控制传输协议结合了 TCP 和 UDP 的优点 http://www.ibm.com/developerworks/cn/linux/l-sctp/ Linux 套接字编程中的 5 个隐患 在异构环境中开发可靠的网络应... 阅读全文

posted @ 2012-05-28 16:10 katago 阅读(184) 评论(0) 推荐(0) 编辑

css选择器
摘要:CSS 元素选择器 http://www.w3school.com.cn/css/css_selector_type.asph1 {color:blue;}选择器分组 http://www.w3school.com.cn/css/css_selector_grouping.asph1,h2,h3,h4,h5,h6 { color: green; }所有的标题元素都是绿色的通配符选择器CSS2... 阅读全文

posted @ 2012-05-25 13:48 katago 阅读(4018) 评论(0) 推荐(0) 编辑

html a name href
摘要:<a name="top" href="#bottom">Go to bottom</a> <a name="bottom" href="#top">Go to top</a> 阅读全文

posted @ 2012-05-24 18:34 katago 阅读(186) 评论(0) 推荐(0) 编辑

由于没有公钥,无法验证下列签名 ppa
摘要:W: GPG签名验证错误: http://ppa.launchpad.net karmic Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY FA9C98D5DDA4DB69的解决办法 出现以上错误提示时,只要把后八位拷贝一下来,并在[终端]里输入以下命令并加上这八位数字回车即可! sudo apt-key adv --recv-keys --keyserver... 阅读全文

posted @ 2012-05-21 15:14 katago 阅读(7391) 评论(1) 推荐(0) 编辑

How do I use software from a PPA?
摘要:How do I use software from a PPA? To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA. Important: The contents of Personal Pac... 阅读全文

posted @ 2012-05-21 15:12 katago 阅读(371) 评论(0) 推荐(0) 编辑

Ubuntu Tweak
摘要:搜索 Ubuntu Tweak ppa sudo apt-add-repository ppa:tualatrix/ppa sudo apt-get update sudo apt-get install ubuntu-tweak 阅读全文

posted @ 2012-05-21 15:03 katago 阅读(150) 评论(0) 推荐(0) 编辑

添加删除PPA (Personal Package Archives for Ubuntu)
摘要:添加一个PPA源 sudo add-apt-repository ppa:user/ppa-name 如添加cairo-dock到weekly update源 sudo add-apt-repository ppa:cairo-dock-team/weekly/ubuntu 删除 rm对应文件 /etc/apt/sources.list.d 阅读全文

posted @ 2012-05-21 14:57 katago 阅读(752) 评论(0) 推荐(0) 编辑

add-apt-repository
摘要:也许你早已注意到,我们在介绍软件的时候,在安装这块一般都提供 PPA 源安装方式,这是一种快速方便的软件安装方法,但对于一些新手来说,对 PPA 并不是很熟悉,下面我们就详细介绍一下。 # 我们先了解一下 PPA 的定义: PPA 全称为 Personal Package Archives(个人软件包档案),是 Ubuntu Launchpad 网站提供的一项服务,当然不仅限于 Laun... 阅读全文

posted @ 2012-05-21 14:12 katago 阅读(11813) 评论(1) 推荐(3) 编辑

ubuntu java
摘要:搜索 java ppa//sudo apt-add-repository ppa:flexiondotorg/javasudo apt-add-repository ppa:sun-java-community-team/sun-java6sudo apt-get updatesudo apt-get install sun-java6-jre sun-java6-pluginsudo apt-get install sun-java6-jdk设置当前默认的java解释器和编译器: (如果没有安装多个java虚拟机的话可以跳过这一步。)sudo update-alternatives --co 阅读全文

posted @ 2012-05-21 14:02 katago 阅读(354) 评论(0) 推荐(0) 编辑

1长数组使用
摘要:void * GdItemAlloc(unsigned int size) { return (void *)calloc(size, 1); } typedef struct { MWGDIOBJHDR hdr; int width; /* width*/ int height... 阅读全文

posted @ 2012-05-18 10:07 katago 阅读(212) 评论(0) 推荐(0) 编辑

nsswitch.conf文件详解
摘要:一、nsswithch.conf:服务搜索顺序 文件/etc/nsswitch.conf(name service switch configuration,名字服务切换配置)规定通过哪些途径以及按照什么顺序通过这些途径来查找特定类型的信息。还可以指定某个方法奏效或失效时系统将采取什么动作。 Nsswitch.conf中的每一行配置都指明了如何搜索信息,每行配置的格式如下: Inf... 阅读全文

posted @ 2012-05-17 15:42 katago 阅读(18371) 评论(1) 推荐(1) 编辑

ping: bad address 'www.baidu.com'
摘要:1.检查路由 route add default gw 192.168.73.1 dev eth0 2.nsswitch配置 # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # passwd: db files gro... 阅读全文

posted @ 2012-05-17 15:37 katago 阅读(6989) 评论(0) 推荐(0) 编辑

UNIX 系统上的文本操作简介
摘要:简介 UNIX 的基本哲学之一就是创建只做一件事并将这一件事做好的程序(或进程)。这一哲学要求认真考虑接口以及结合这些更小(有望更简单)流程的方法,以产生有用的结果。文本数据通常是在这些接口之间流动。多年以来,越来越高级的文本处理工具和语言已经开发出来。从语言上来讲,早期专门处理文本的语言有 perl,后来又出现了 python 和 ruby。虽然这些语言以及其他语言都是非常强大的文本处理器,但... 阅读全文

posted @ 2012-05-16 15:13 katago 阅读(965) 评论(0) 推荐(0) 编辑

qt 实现单例
摘要:头文件: class ConnectionManager { public: static ConnectionManager *instance(); }; 实现文件: Q_GLOBAL_STATIC(ConnectionManager, connectionManager) ConnectionManager *ConnectionManager::inst... 阅读全文

posted @ 2012-05-14 11:16 katago 阅读(960) 评论(0) 推荐(0) 编辑

Linux下crontab的使用
摘要:每五分钟执行 */5 * * * * 每小时执行 0 * * * * 每天执行 0 0 * * * 每周执行 0 0 * * 0 每月执行 0 0 1 * * 每年执行 0 0 1 1 * 详细用法可以参考该博文http://yangqijun.iteye.com/blog/1173016 1.作用 使用cron... 阅读全文

posted @ 2012-05-11 15:41 katago 阅读(47185) 评论(0) 推荐(0) 编辑

编译MV78460 内核
摘要:设置好工具链的PATH 下载官方内核,覆盖LSP之后,make armada_xp_defconfig 却提示找不到 修改linux的Makefile ARCH ?= arm CROSS_COMPILE ?= arm-marvell-linux-gnueabi- 或者是设置环境变量: export PATH=`pwd`/armv7-marvell-linux-gn... 阅读全文

posted @ 2012-05-10 15:47 katago 阅读(810) 评论(0) 推荐(0) 编辑

SMP AMP BMP
摘要:SMP是对称多处理。 AMP是指非对称多处理,非对称多处理是指各核的结构并非对称,用处自然有区别,一般来说,指令集可能不一样,但不排除也可以指令集一样。 AMP一图: SMP一图: SMP就是只有跑一个OS,由OS来给各个APP分配CPU core。 阅读全文

posted @ 2012-05-10 14:25 katago 阅读(1482) 评论(0) 推荐(0) 编辑

程序获取rtc时间
摘要:strace hwclock看到ioctl调用 读取rtc时间 int fd; struct rtc_time rtc_tm; int ret; fd = open("/dev/rtc0", O_RDONLY, 0); // the ioctl command RTC_RD_TIME is used to read the cur... 阅读全文

posted @ 2012-05-10 11:49 katago 阅读(1154) 评论(0) 推荐(0) 编辑

linux 启动logo
摘要:1:准备png图片; 2:安装netpbm apt-get install netpbm 3:制作 ppm图片 保存一个png图片logo.png,按如下方式操作: #pngtopnm logo.png > linuxlogo.pnm # pnmquant 224 linuxlogo.pnm > linuxlogo224.pnm # pnmtoplainpnm linuxlogo22... 阅读全文

posted @ 2012-05-09 10:58 katago 阅读(661) 评论(0) 推荐(0) 编辑

svn移动目录后日志丢失
摘要:log界面时,左下角的“复制/改名时终止”不要勾 阅读全文

posted @ 2012-05-07 09:37 katago 阅读(1320) 评论(0) 推荐(0) 编辑

OpenGL: Couldn't get an RGB, Double-buffered Visual
摘要:http://www.starnet.com/xwin32kb/Couldnt_get_an_RGB_Double_buffered_Visual When running an OpenGL application, the app may fail with the following error "Error: couldn't get an RGB, Double-buffered v... 阅读全文

posted @ 2012-05-03 16:49 katago 阅读(1671) 评论(0) 推荐(0) 编辑

Source Insight in Ubuntu+Windows+Samba:has been changed outside of the editor. Do you want to reload the file?
摘要:sourceinsight3.50.0051的更新日志中找到如下更新日志: Fix: Sometimes files were said to be modified outside of SI, but they were not. This most likely happened on network drives. Under some conditions, the Windows d... 阅读全文

posted @ 2012-05-03 11:06 katago 阅读(1204) 评论(0) 推荐(0) 编辑

程序里边加入版本号
摘要:http://www.qtcentre.org/wiki/index.php?title=Version_numbering_using_QMake 如果是日期和时间的话,为什么不直接在代码中使用 __DATE__ __TIME__ 的宏? 如果是SVN版本号的话,为什么不直接使用 svn:keywords 的 $Rev$ http://hi.baidu.com/cyrist/... 阅读全文

posted @ 2012-05-02 15:05 katago 阅读(235) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示