`
hankgong
  • 浏览: 196284 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
Step 1 of 2 : On local machine: Generate Authentication Keys Authentication keys are a pair of private and public keys. Your public key is also a 2-3 lines long gibberish word. The public key is like your login and becomes your identity. Your private key are like your password, but much longer ...
实验室新买了一台file server来做备份,实验室一个学生的硬盘前几天坏了,所以我也设一下自动备份的功能。   首先要看file server是什么类型的,其实如果file server是用linux系统搭建的(带ssh的那种),就可以直接用rsync来实现。   但是如果file server是普通ftp的,lftp就是一个不错的选择了,网上也有一些中文的lftp的例子可以参考了,其实我只用到了mirror的这个功能。   lftp -u username,password -e "mirror -R --only-newer path/to/source_direc ...
大概半年前我把办公室的电脑从ubuntu8.10又重新装成了Vista,具体原因也不完全记得了,大概是从8.04升级以后有这样那样的问题让我觉得不爽了吧。8.04其实我个人还是比较满意的,虽然有一些小问题,但因为对编程比较方便,而且用latex写文档的时候编译速度比windows快的不是一个级别的,所以我用了前后有一年的时间。有些东西比如网上银行的支付这样非要windows不可的时候,我就用virtualbox装了一个windows xp,反正大部分时候都是可以对付过去了,实在不行的时候,大不了就用家里还有一台vista的台式机就是了。ubuntu的非稳定版确实不应该装,问题太多,以后吸取这个教 ...
去年的时候我在网络中找过类似的软件还找不到,今天偶然一找发现免费的还不少!   http://sites.google.com/site/tex4ppt/   使用方法很简单,只要在一个textbox中输入公式,然后选择"Latex it"就可以了,非常简单吧!
1) mkdir -p ~/.config/compiz && echo SKIP_CHECKS=yes >> ~/.config/compiz/compiz-manager 2)备份原来的xorg.conf,替换为下面的部分 (http://forum.ubuntu.org.cn/viewtopic.php?t=127472&sid=1da966168cfa6f7da187dc488b88ac9c) ############################################################################# ...
i had this problem too when i upgraded to hardy. heres the fix: open up a terminal and type: sudo apt-get install libflashsupport (or search for "libflashsupport" in the synaptics package manager, right click on the package and choose "mark for installation", then click "a ...
This is because evince uses the value of the LC_PAPER locale setting, for en_US.UTF-8 this defaults to letter. You can override this setting by using an LC_PAPER environment variable, if you want to do the change system wide you can add LC_PAPER= "en_GB.UTF-8" (defaults to A4) to /etc/envir ...
在网上看到有人讲如何设ubuntu成Mac的效果,似乎很漂亮,我也跟着试了一下。 第一步就是要安装Compiz 就是ubuntu的特效功能。我笔记本默认就没有安装,在网上找到解决方法是安装一个xserver-xgl,装完之后logout再login,开启desktop effects后确实感觉到不一样了。 点图表会有一个动画效果 移动窗口会有动画 窗口的边缘都有修饰 不过速度一下子慢了好多。使用了一下之后,我决定还是还原成以前的比较舒服!
主要是rmvb或者rm格式,其他的系统遇到不能播放的自己更新就可以了,网上有不少解决方案,我觉得最简单的是: 1)sudo apt-get remove totem-gstreamer 2) sudo apt-get install totem-xine totem-mozilla totem 3) 下载win32codecs然后双击安装 http://www.debian-multimedia.org/pool/main/w/w32codecs/w32codecs_20071007-0.1_i386.deb
症状就是每次让x31自己休眠后再启动后放音乐或者电影没声音,程序也不能正常退出。简单的解决方法就是 alsa force-reload 还有更复杂但是应该差不多是全自动的方法   After pulling hair trying to figure out what's going on, I've found a slightly more elegant solution to the problem. The big hint is the fact that nothing under /etc/acpi/resume.d or /etc/acpi/suspend.d is act ...

Wireless-phy.cc

    博客分类:
  • NS2
The main difference is the added interference model. cpp 代码 if (isInterferenceEnabled()){        //printf ("pktRx=%ld, p=%ld, expiration=%f, now=%f\n", (long)pktRx_, (long)     , expiration_, NOW);        if (pktRx_) {            if (expiration_ <= NOW) {      ...
cpp 代码 // dumb-agent.cc       #include "dumb-agent.h"       static class DumbAgentClass : public TclClass {    public:      DumbAgentClass() : TclClass("Agent/DumbAgent") {}      TclObject* create(int, const char*const*) {        return (new  ...
从NS3开始知道有Scons这个工具用来管理编译项目,昨天晚上打印了一份它的文档,在睡觉之前仔细看了看,发现确实有它的过人之处。Scons是用python编成的,所以就有了完整的程序的能力。在它的主页上,Doom3这样的大项目就是用它来管理项目的,厉害把。 以前在Linux用来管理生成项目只有用make,稍微复杂一点的项目可以用automake和autoconf,后面的我没有试过,makefile我自己写过简单的,大的makefile我修改过,确实不是很容易使用。Dependance的关系总是有点模糊,记得完全没有道理的一点是在makefile里面Tab和space有时候是不能相互替换的。 下面 ...
不知道别人跟我一样的毛病,我自己常用的软件,常常很关心软件的发布,隔两天我就要去相应的网站上看看有没有新的版本出来。我常用的功能,我常常在网上找各式各样的软件来适用,在google里面搜来一个一个的适用,以前用破解软件的时候还要去下相应的破解补丁。有时候一弄就是一天,心里自己也觉得浪费时间,但是常常有控制不住自己的感觉。 仔细想想,这样跟洁癖其实很像,不断不断的洗手,都是一种强迫症。虽然没有到影响自己的心情的地步,但是确实浪费不少时间。 仔细反省一下,时间管理应该是解决之道,如果能够分出自己要干事情的轻重,应该就能克服这个问题。
ruby 代码 #!/usr/local/bin/ruby    require 'mathn'     files = Dir.glob("udpsink*.txt")       interval=ARGV[0]       if ARGV.size <=1        interval = 49    end      files.each do |f|        dl = []         ps=[]           udpinde ...
Global site tag (gtag.js) - Google Analytics