blog | 逍遥郡


  • Home

  • Archives

  • Tags

  • Search

MAC学习笔记

Posted on 2005-08-25 |
Setup Firstly, MAC Framework must be built into the kernel with adding one line into the kernel configuration file:” option MAC”. When MAC Framework is built into the kernel, administrator can choose which security policy modules shoud be loaded. There are such MAC modules: mac_portacl, mac_ifoff, mac_biba, mac_bsdextended, mac_mls, which are loaded for the different demand. Unlike MAC Framework, these modules need not to be built into the kernel, which are able to loaded by updating some boot ...
Read more »

FreeBSD手记

Posted on 2005-08-12 |
- 基于FreeBSD 5.4 - 感谢FreeBSD文档的编写者和译者,他们使得我在学习使用FreeBSD的过程中有了极其完备和系统的资料可以参考,这点比起对其他操作系统的学习来说,是相当幸福的 ^_^ 设置中文环境 FreeBSD Chinese HowTo [强烈推荐,基本能解决大多中文环境问题] Linux 中文环境和中文化版FAQ How to input Chinese? [forum] 打造简体中文环境的 FreeBSD 工作站(12.10.2004更新) 添加typeture字体 FreeBSD+xfce+fcitx+mozilla中文桌面安装过程 安装新的字体 freeBSD下安装gnome或者kde之后,不带win系统下常用的simun之类的字体。常常系统显示的字体很难看。安装字体文件首先获得字体,一种是从本地之外获得;要是本地主机安装了win系统,可以直接mount。先查看win系统所在分区: fdisk 也可以在/dev目录下找到: ls /dev/ad* 然后,使用mount命令,若win分区为ntfs, ...
Read more »

阅读《STL源码剖析》

Posted on 2005-07-20 |
师兄说使用C++标准库应该了解其数据结构和内存分配方式,所以趁暑假拜读了侯捷老师的《STL源码剖析》。这本书详解了标准库代码实现背后的原理,让人感叹设计者的精妙巧思。 迭代器(iterator) 迭代器可谓范型编程的典范,这套方法是说只要对象符合一定的特征(traits),那么就能用iterator遍历。 默认的iterator_traits萃取如下特征: template<typename _Iterator> struct iterator_traits { typedef typename _Iterator::iterator_category iterator_category; typedef typename _Iterator::value_type value_type; typedef typename _Iterator::difference_type difference_type; typedef typename _Iterator::pointer pointer; typedef typena ...
Read more »

Revolution OS

Posted on 2005-06-03 |
<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid=7707585592627775409&hl=en&fs=true style=width:400px;height:326px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed> The Cathedral and the Bazaar (教堂与集市)
Read more »

windows server的双网卡问题

Posted on 2005-06-03 |
问题 快疯了,自从服务器配上两张网卡之后,就出现了一堆的问题,一直没消停过。到处咨询,也没得到什么解答。 首先是因为服务器安装的 win2003server这个破系统,买来花了五六千RMB,可是连首选网卡的设置也没有。因为其中一张网卡只是开通了国内端口,可是windows升级或者mcafee病毒库升级,还都从这张网卡上走,结果弄得每次都没法成功。只有把这张网卡先disable掉,才能成功升级,弄得极其郁闷。 另外自从第二张网卡启动之后,原来工作得好好得rmserver总是报这些错误: 事件类型: 错误 事件来源: RmaServer 事件种类: (16389) 事件 ID: 3 日期: 2005-5-17 事件: 10:06:35 用户: N/A 计算机: XXXX 描述: 用户: N/A 计算机: XXXX 描述: RMA Error Occured : 3761: Error retrieving URL `broad/200502/2020050513.mp3' (Invalid ...
Read more »

Student Skill

Posted on 2005-05-24 |
Practical hints for giving a presentation General points Timekeeping is vital and is the responsibility of the presenters. Rehearse your seminar; it is very easy to misjudge timing unless you have had a full scale rehearsal. Think about the most appropriate format for your presentation.For example: a debate, a conversation, a shared ‘lecture’. Maintaining interest Avoid simply reading out an essay. You may well rely on a script but remember one task is to maintain the interest of t ...
Read more »

Emacs笔记

Posted on 2005-05-09 |
虽然大一时就接触了Emacs,但却一直没有好好的去用过它。在linux下一直习惯用vim,因为它开始入手简单,而且一直觉得够用了——不过现在终于找到一个学习Emacs的动力了——就是发觉EmacsWiki编写Wiki很方便,而且生成的页面很漂亮,这里收集了一些Emacs学习资料。Emacs入门其实也不难,早先因为繁杂的指令望而却步的想法,其实很愚蠢的;Emacs指令上的合理设计会让你感觉非常自然。 资料 O’ reilly的《学习GNU Emacs》 smth的Emacs精华区 stid的Emacs资料 Emacs User’s Guide(中文 推荐) 这里有很多manual 李宇的EmacsWiki资料(很漂亮) 薛瑞尼的EmacsWiki技巧 wangyin老师的Elisp介绍,内容很丰富 LaTex, Emacs, etc. for your PC win32下可以用Emacs移植版21.3 [链接] 入门的最好学习资料就是Emacs自带的Tutorial,即 Ctrl+h t,学习时间大概2~3小时。 FAQ Q: 如何使用e ...
Read more »

mysql数据索引文件的修复

Posted on 2005-03-28 |
一般mysql数据库文件损坏都是因为写数据库文件的时候mysql进程退出,导致索引文件出了问题,也就是MYI文件。可以使用 myisamchk 或者 isamchk 修复。 不需要登陆到mysql,直接运行: myisamchk -r -q /mysql_data_directory/database/error.MYI 要是不奏效的话,会提示使用 myisamchk -o 或 -f。 参考: mysql中文参考文档 mysql reference manual
Read more »

防止音乐被盗链

Posted on 2005-03-24 |
因为翻看日志的时候发现有很多音乐的referer是从其他网站来的,并且给服务器造成了很大的负担,但是想要重新编写个音乐的上载系统的话,对于那些已经发布出去的链接又会造成太多麻烦,所以想到了下边的方法: 1、采用url rewrite,这个本来在apache上是很容易做的。然而可怜服务器要是用的iis,就得采用helicon的一个小软件,对于mp3的文件链接重定向,需要加上如下一行。当然,对于你想保护的其他文件可以如法炮制: RewriteRule (.*)\.(mp3) /mp3.php\?m=$1 [I,L] 2、写出mp3.php这个用来检查referer的文件,如下: <?php //getaudio.php $m=$_GET[m]; if(strpos($m,"/mp3")!=0 || strlen($m)>30){ header("location:http://www.site.com"); exit; } header("Content-type: audio/mpeg"); header("Content-disposition:i ...
Read more »

bblean取代explorer.exe

Posted on 2005-03-24 |
基于bblean 1.16 简介 bblean 是blackbox在win32下的一个port,跟古老的fluxbox是同宗的。这是一个简洁而稳定的shell,并且是free的。现在win下我用过的shell也就三种 winxp default shell aston bblean 对比起来,它比前两者更少占用资源,更加具备定制性,用它来作为shell太合适不过。自由的定义快捷键,多个虚拟工作区,细节的控制wm的各个尺寸和式样,加上n多plugin的支持,没有理由不选择它。 然而它也有些缺陷,最严重的是plugin的站点根本链接不上,不知道是封锁了国内ip,还是给盾住了 T_T。直接导致很多plugin找不到,而且很多plugin的introduction也看不到,许多发布的plugin是光秃秃的dll,没有说明文档,没有配置文件。比如bbInterface, bbIcons,于是很多设置不知道什么含义,比如 bbWinTranz 有些配置我就是看完源码才知道的。 目录结构 bblean │ blackbox.exe │ blackbox.rc ...
Read more »
1 … 17 18 19
Julian Qian

Julian Qian

记录编程、Hack和自娱自乐的一些玩意。

189 posts
60 tags
RSS
Creative Commons
© 2024 Julian Qian
Powered by Jekyll
Theme - NexT.Mist