10 2012 档案

摘要:Linux系统中scp命令的用法. scp就是secure copy的简写,用于在linux下进行远程拷贝文件的命令,和它类似的命令有cp,不过cp只是在本机进行拷贝不能跨服务器. 有时我们需要获得远程服务器上的某个文件,该服务器既没有配置ftp服务器,也没有做共享,无法通过常规途径获得文件时,只需要通过简单的scp命令便可达到目的。 一、将本机文件复制到远程服务器上scp /home/admin... 阅读全文
posted @ 2012-10-30 21:17 benhuan 阅读(501) 评论(0) 推荐(0)
摘要:grep 命令用于搜索由 Pattern 参数指定的模式,并将每个匹配的行写入标准输出中。 这些模式是具有限定的正则表达式,它们使用 ed 或 egrep 命令样式。grep 命令使用压缩的不确定算法。如果在 File 参数中指定了多个名称,grep 命令将显示包含匹配行的文件的名称。对 shell 有特殊含义的字符 ($, *, [, |, ^, (, ), / ) 出现在 Pattern 参... 阅读全文
posted @ 2012-10-30 20:20 benhuan 阅读(1401) 评论(0) 推荐(0)
摘要:在网上找了很多,但是都不能处理文件或文件夹包含空格的情况,于是追本溯源查看每条命令的man手册,xargs 的手册里面说的很清楚:不能处理包含空格的情况但是给出了解决方案,于是继续探索,得出最终解决方案,记录在此与大家分享:查找当前目录包含 aes_main 的txt文件find . -type f -name "*.txt" -print0 | xargs -0 grep -c "aes_mai... 阅读全文
posted @ 2012-10-30 19:48 benhuan 阅读(495) 评论(0) 推荐(0)
摘要:直接传输发送者$nc -l sender-port < send.file 接收者$nc sender-IP sender-port > rece.file 压缩传输发送者: tar -cf - send.file | nc -l sender-port 接收者: nc sender-IP sender-port | tar -xf - 谁发送谁做服务器 阅读全文
posted @ 2012-10-29 22:25 benhuan 阅读(135) 评论(0) 推荐(0)
摘要:随笔测试正文1 ifs.getline(buffer, MAX_LINE_LENGTH); //get the name of node2 lq_line = buffer;3 cfg.node[vector_no].index = vector_no;4 cfg.node[vector_no].name = lq_line; 阅读全文
posted @ 2012-10-29 22:13 benhuan 阅读(91) 评论(0) 推荐(0)
摘要:Find the matlab installation ISO is the primary thing , just don't forget the Google that will help you .After that you need to mount it to get the file from the ISO , sudo mount -o loop,iocharset=gb2... 阅读全文
posted @ 2012-10-27 21:59 benhuan 阅读(152) 评论(0) 推荐(0)
摘要:http://benhuan.files.wordpress.com/2012/10/big_6d77fbb7bde4011fdf01df45fef8d0dd9ddcbdd5.jpg 阅读全文
posted @ 2012-10-24 22:00 benhuan 阅读(112) 评论(0) 推荐(0)
摘要:http://benhuan.files.wordpress.com/2012/10/361766103.jpg 阅读全文
posted @ 2012-10-24 21:58 benhuan 阅读(104) 评论(0) 推荐(0)
摘要:The Top 50 ‘Pictures of the Day’ for 2011Posted by Sifter in GALLERIES, PICTURE OF THE DAYEvery day at 5pm the Sifter posts the Picture of the Day. Below you will find a collection of the Sifter’s Top... 阅读全文
posted @ 2012-10-22 10:00 benhuan 阅读(219) 评论(0) 推荐(0)
摘要:After the positive reception from last year’s “Top 50 ‘Pictures of the Day’ for 2011“, we promised to highlight the top 25 ‘Pictures of the Day’ at the end of every quarter, eventually culminating in ... 阅读全文
posted @ 2012-10-22 02:05 benhuan 阅读(240) 评论(0) 推荐(0)
摘要:首先安装wine最新版本,然后用winetricks 安装comctl32,dotnet40,flash,gdiplus,gecko,ie6,msls31,msxml3,msxml4,msxml6,pngfilt,riched20,riched30,vcrun2008,vcrun2010,最后安装有道,一定要选择本地增强版,这个有本地词典,安装过程中可能字体都是乱码,先不用管等到安装结束,将win... 阅读全文
posted @ 2012-10-21 06:41 benhuan 阅读(507) 评论(0) 推荐(0)
摘要:As root edit the file /etc/modprobe.d/blacklist.conflook for the line that says "blacklist pcspkr" and comment it out.just like this# blacklist pcspkrthen as root do this to load the modulemodprobe pc... 阅读全文
posted @ 2012-10-17 05:49 benhuan 阅读(137) 评论(0) 推荐(0)
摘要:今天实在是头脑不听使唤了,没力气看书,写代码了。写点总结吧。 都说算法是内功,究竟练到什么程度才算修成了呢? 为什么要学习,强化算法? 首先强调的是,下面的原因均是建立在算法熟练到一定程度后的效果。不熟的话,未见得能达到效果。这些原因很现实。但很多程序员却不知道或不以为然。 比较世俗的方面,顶级软件公司笔试,面试会问到。别说你不想去谷歌,百度,微软,如果真的没想过,我希望你能想想自己是否具备进入的... 阅读全文
posted @ 2012-10-15 15:56 benhuan 阅读(305) 评论(0) 推荐(0)
摘要:Tutorial Take a spare 3D graphics card and hook it up to your laptopBy Neil Mohrfrom PCFormat Issue 247January 3rd 2011Laptop graphics have always been something of a joke performance wise. Nvidia ... 阅读全文
posted @ 2012-10-12 23:24 benhuan 阅读(213) 评论(0) 推荐(0)
摘要:话说从前有位秀才,有天随妻子回娘家,向岳父拜寿,因一时高兴贪杯,当场醉倒,被人搀扶送回书房休息。没多久,他的小姨子到书房拿东西,看见姐夫睡的枕头掉在地上,便替他捡了起来,并顺势扶正他的脖子,帮他置好枕头。没想到秀才人醉心不醉,一见机会难得,便拉着小姨子不放,小姨子用力挣脱后,愤怒之际,就在墙上题诗一首,以泄余愤:“好心来扶枕,为何拉我衣?若非姐姐面,一定是不依。该死!该死!”秀才等小姨子走后,下床... 阅读全文
posted @ 2012-10-03 08:22 benhuan 阅读(315) 评论(0) 推荐(0)
摘要:这个破烂系统最破烂之处在于上面的功能模块无法进入,我查看了一下源代码,其实每个模块单独运行都是没问题的,下面给出主要模块的进入方法:1,首先登录是必须的:http://jwpt.tjpu.edu.cn:8081/(教务处主页经常性无法访问的对应策略)2,登录页面之后处于"概览"界面,"个人管理"模块直接忽略,"选课管理"可以通过"概览"页面右上方的链接"本学期课表"直接进入3,"教学评估"模块可以... 阅读全文
posted @ 2012-10-03 06:09 benhuan 阅读(369) 评论(0) 推荐(0)
摘要:Do you want to save time when installing Windows 7? You can create a customized installation disc and have it perform an installation without asking you questions, integrate updates and drivers, tweak... 阅读全文
posted @ 2012-10-02 11:06 benhuan 阅读(306) 评论(0) 推荐(0)