摘要: Linux内核提供函数 ioctl 用于控制底层设备与描述符。参数KDSETLED指示小键盘灯的状态,0x01为scroll lock灯亮,0x02为num lock灯亮, 0x04为caps lock灯亮。#include <stdio.h>#include <fcntl.h>#include <unistd.h>#include <sys/stat.h>#include <linux/kd.h>#include <sys/types.h>#include <sys/ioctl.h>int ERROR=-1; 阅读全文
posted @ 2011-05-23 16:47 liyropt 阅读(1472) 评论(1) 推荐(0) 编辑
摘要: Astronomical Magnitude Systems Astronomical Magnitude SystemsContents: Definitions of astronomical magnitude systems The solar absolute magnitude in various bands Conversion from AB magnitudes toJohnson magnitudes Photon Flux Filter Transformations Night Sky BrightnessesDefinitions of astronomical . 阅读全文
posted @ 2011-04-22 13:55 liyropt 阅读(2890) 评论(2) 推荐(1) 编辑
摘要: Latex宏包就是模板,分为class(以.cls为后缀,在documentclass命令中使用)和style(以.sty为后缀,在usepackage命令中使用),如常见的book,article类;以及graphicx,caption包等。Latex提供了专门的工具doc/docstrip来编写宏包。简单的包完全可以自己动手写,先看一个简单的例子,我们的目的是最终写出一个完整的毕业论文模板thesis.cls。编写thesis.cls内容如下:\NeedsTeXFormat{LaTeX2e}[2007/10/19]\ProvidesClass{thesis}[2011/04/05 v0.1 阅读全文
posted @ 2011-04-07 15:20 liyropt 阅读(12466) 评论(1) 推荐(2) 编辑
摘要: 在撰写文章或著作时,大家喜欢在章节开头或末尾添加名言引用,这可以通过下面的包来实现。EpigraphsquotchapmemoirKoma-script其中Epigraphs比较简单,下面是得到的一个效果:\setlength{\unitlength}{1pt}\setlength{\epigraphwidth}{8cm}\chapter{引言}\label{chap:introduction}\epigraphhead[0]{%\epigraph{\textsf{No path leads from a knowledge of that which is to that which sho 阅读全文
posted @ 2011-04-06 16:17 liyropt 阅读(4176) 评论(1) 推荐(1) 编辑
摘要: Linux System and Performance MonitoringDarren Hoch翻译:李彦荣如有错误,多多指正。--------------------------------------------------------------------------------------------------------1. 性能监控介绍性能优化是找出系统的瓶颈并优化操作系统来消... 阅读全文
posted @ 2010-11-16 11:37 liyropt 阅读(2858) 评论(0) 推荐(1) 编辑
摘要: yEd是一个强大的图表编辑工具,可以快速以及有效地制作高质量的图表,包括编程语言中常用的流程图。yEd是公开免费的,用Java语言编写,几乎可以在所有的系统上运行。yEd由yWorks公司维护,安装也及其容易。yEd产生的图表比较漂亮,内嵌很多常用的图表单元,方便使用。用过yEd以后,就会觉得Linux下的Dia简直不堪入目。 阅读全文
posted @ 2010-11-01 17:59 liyropt 阅读(1173) 评论(3) 推荐(1) 编辑
摘要: OpenGL输出PS/EPS可以利用公开的GL2PS库,基于C语言实现。由比利时Liège大学电气工程和计算科学系的Geuzaine教授编写。基于C++语言的库有GLP,但在2001年就已经停止开发。所以GL2PS是唯一目前公开的OpenGL转PS/EPS的库。GL2PS源码下载地址为http://www.geuz.org/gl2ps/。Google一下GL2PS就可以查到。其中主文... 阅读全文
posted @ 2010-10-27 17:13 liyropt 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: PBS_Server: Resource temporarily unavailable (11) in PBS_Server出错的原因一般是server_name与mom设置的name不一致,修改server_name与mom一致即可。server_name文件在PBS或torque的目录下。如果用rpm包安装的torque, 可以用下面的命令查询qsub: Job exceeds queue ... 阅读全文
posted @ 2010-10-25 16:28 liyropt 阅读(11872) 评论(0) 推荐(0) 编辑