自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Learn the hard way

Do what you think

  • 博客(88)
  • 收藏
  • 关注

转载 命令行中复制移动时显示进度条

from:here“世间最痛苦的事莫过于等待”,相信使用过Shell中cp或者mv命令操作大文件的朋友们都有这种感慨。要是能显示复制或者移动的进度,把无尽的等待变成有限的期待,那该多好呀!其实,确实有显示进度条的方法,而且方法还不止一种:使用打补丁的cp和mv:Advanced Copy1234567891

2012-03-16 17:01:33 7537

原创 ThinkPad T420-RW1 安装 Mac OS X Lion 10.7.3

所有的安装过程都是参考PCBeta>>T420配置:处理器:         I5-2540M (2.6-3.3Ghz)主板:             intel QM67显卡:             NVIDIA Quadro NVS 4200M+Intel GMA HD网卡芯片:     Intel 82579LF 千兆以太网卡/英特尔®1000BGN声卡芯片:

2012-03-12 17:24:03 7532 10

转载 Programmers are born not made

from:herechinese version:hereProgrammers are a special breed, good programmers especially – our craft is more an art than we like to admit when trying to wrestle it into a Hard Engineeri

2012-03-09 18:38:34 1270

转载 将mac系统安装盘标记为AF

>> 打开windows下cmd>> 输入diskpart>> 当光标前面变成DISKPART>之后,输入select disk 0(mac系统安装盘)>> 输入list partition找到mac安装盘的分区号>> 输入select partition x, x为mac安装盘分区号>> 输入set ID=AF

2012-02-27 15:50:56 1842

转载 Nvidia drivers for Ubuntu 11.10 Oneiric

sudo apt-add-repository ppa:ubuntu-x-swat/x-updatessudo apt-get updatesudo apt-get install nvidia-currentfrom: here

2012-02-27 00:31:27 529

转载 Prepare a DSDT

form: hereDSDT is an acronym for Differentiated System Description Table. I've already wrote about it. Please readthis article first as an introduction and to get some general infos. Modifying

2012-02-26 20:21:43 1251

原创 ubuntu grub 修复

下载 ubuntu 9.10 以后LiveCD 启动sudo apt-get install grub2sudo mount /dev/sdaX(挂载到/的那个分区) /mnt可以用 sudo fdisk -l 查看 /挂载到那个分区如果/boot是单独分区的话还要sudo mount /dev/sdaX(挂载到/boot的那个) /mnt/boot然后:sudo grub

2012-02-26 05:53:56 596

转载 So You’re Coming to a Career Fair

from: herechinese version: hereI went to a career fair at Big Ivy University recently, and talked to fifty or so computer science undergrads who were looking for internships or full-time j

2012-02-24 17:23:34 664

原创 fix dell latitude D630 wifi in ubuntu 11.10

sudo apt-get updatesudo apt-get install firmware-b43-installersudo apt-get remove bcmwl-kernel-sourcesudo reboot

2011-12-31 23:59:41 968

原创 Latex 自定义颜色

\definecolor{orange}{rgb}{1,0.5,0}\definecolor{aa}{RGB}{34,139,34}\definecolor{darkgreen}{rgb}{0,0.35,0}

2011-12-15 03:01:21 6338

原创 Latex 给一段文字加边框

\fbox{% \parbox{\textwidth}{% \begin{center} aaa\\ bbb \end{center} }%}

2011-12-15 02:46:12 44342 2

转载 Pidgin 连接 Google Talk 的配置

在 Pidgin 中添加新的帐号时,就会打开“Add Account”对话框。为了能够与 Google Talk 连接,其设置要点如下:>> 在基本标签页:Protocol:选择 XMPPScreen name:填写 Gmail 帐号 @ 之前的内容Server:填写 gmail.comResource:PidginPassword:填写 Gmail 帐号的密码来源: 这里

2011-12-06 16:37:07 1118

原创 install auto-complete-mode in emacs

>> Download from Auto Complete Mode top page.>> extracttar xvjf auto-complete-1.3.1.tar.bz2>> run emacsM-x load-file RETNote that if you want to upgrade auto-complete-mode, you have to i

2011-11-30 21:47:31 707

原创 ubuntu 中删除旧的内核

dpkg --get-selections|grep linux列出当前内核,其中带 image 的即是已经安装的内核。然后用 apt-get 就可以删除。比如:sudo apt-get remove linux-image-3.0.0-12-generic

2011-11-27 17:52:33 475

原创 Use emacs without X

emacs -nwM-`  access the menus

2011-11-24 17:39:23 781

转载 Linux 中安装 Dropbox

注册点这里:链接1 (你我各额外获得250M容量)Kubuntu安装看这里:链接1, 链接2Ubuntu下安装点这里:链接1Lubuntu安装点这里:链接1 开机启动看这里:链接1Debian下编译看这里:链接1 有代理的话看这里:链接1翻墙看这里:链接1增加容量:链接1本人安装过程:debian(64bit)>> 下载 Dropbo

2011-11-24 01:30:36 2400

原创 nohup 不产生 nohup.out

nohup yourprogram >/dev/null 2>/dev/null &e.g.nohup dolphin ~/ >/dev/null 2>/dev/null &

2011-11-23 04:37:07 1048

原创 如何去掉 subfigure 中标注 a, b, c 等

导言区加上\makeatletter\renewcommand{\@thesubfigure}{\hskip\subfiglabelskip}\makeatother

2011-11-22 22:18:05 9319 18

原创 Beamer 中指定 item 前面的符号

\begin{itemize} \setbeamertemplate{itemize items}{\color{red}$\bullet$} \item one \item two \item three \end{itemize}$\bullet$ 可换成任何符号, 比如 \checkmark或者\setbeamertemplate{items}[ball]

2011-11-22 16:33:11 10766

转载 一个chrome插件--新消息提醒助手

不用打开网页,随时提醒您的Gmail, Hotmail, Yahoo邮箱, 网易邮箱新收到的邮件;并自动提醒新浪微博, 百度空间, Facebook,以及未来任意自定义网站新收到的消息或通知。显示来自Gmail, Hotmail, Yahoo Mail, Facebook, 新浪微博, 百度, 网易邮箱的未读邮件和未读消息数。并可以在提示框直接点击打开查看。地址:这里来源:这里

2011-11-21 16:09:29 5063

转载 删除gnome-keyring

cd .gnome2/keyringsrm default.keyring重新Logout再Login,再提示让你输入的时候不输直接确定,选择“Unsafe Storage"即不安全方式存储密码。这样就可以了。来源:这里

2011-11-18 03:32:10 1991

转载 Emacs Dired Mode 批量打开文件的方法

------------------------------------------------------------------------------------------------------------------------------------最初想找下批量打开文件的方法,结果发现了下面的文章,总结得很全面。批量打开文件的方法:进入 dired-mode后,*-

2011-11-15 22:56:19 871

原创 利用matlab对文件批量重命名

>> matlab 中 strrep 函数可以更改文件扩展名。>> matlab 中 unix system ! 都可以让你在 matlab 中执行系统命令。比如:!mv a.tex b.texunix('mv a.tex b.tex')system('mv a.tex b.tex')>> 再加上 dir 函数 以及一个 for-loop 就可以对文件进行批量重命名了。当然

2011-11-15 22:16:51 4569

转载 wget 使用技巧

wget 是一个命令行的下载工具。对于我们这些 Linux 用户来说,几乎每天都在使用它。下面为大家介绍几个有用的 wget 小技巧,可以让你更加高效而灵活的使用 wget。$ wget -r -np -nd http://example.com/packages/这条命令可以下载 http://example.com 网站上 packages 目录中的所有文件。其中,-np 的作用是

2011-11-14 05:50:53 537

转载 让你提升命令行效率的 Bash 快捷键 [完整版]

生活在 Bash shell 中,熟记以下快捷键,将极大的提高你的命令行操作效率。编辑命令Ctrl + a :移到命令行首Ctrl + e :移到命令行尾Ctrl + f :按字符前移(右向)Ctrl + b :按字符后移(左向)Alt + f :按单词前移(右向)Alt + b :按单词后移(左向)Ctrl + xx:在命令行首和光标之间移动Ctrl + u :从光标处删除至命令

2011-11-14 05:46:05 901

转载 卸载各种ubuntu的桌面环境

Note, this applies only to Ubuntu 11.10 (Oneiric). If you're using 11.04, go here. If you're using 10.10, go here. If you're using 10.04, go here.These removal commands were created based on wha

2011-11-11 17:58:27 19864

转载 Bash Color Escape Codes

Echo (echo -e) the following escape codes inside \e[ESCCODEm to colorize text in Bash:Black 0;30Dark Gray 1;30Blue 0;34Light Blue 1;34Green 0;32Light Green 1;32Cyan 0;36Light Cyan 1;36Red 0;31Ligh

2011-11-10 04:28:12 1053

原创 beamer 中设置 item 之间的间距

>> 方法1\begin{itemize} \item item1 \vspace{.5cm} \item item2\end{itemize}>> 方法2\begin{itemize} \setlength{\itemsep}{.5cm} \item item1 \item item2\end{itemize}来源:google

2011-11-08 05:05:19 7981

原创 matlab中用spline代替solve/finvers求反函数

example:Cg=sym('exp(-((-log(u))^alpha + (-log(v))^alpha)^(1/alpha))');cu=diff(Cg,'u');c=subs(cu,{'u','alpha'},[0.8,2]);vr=linspace(0,1,1000);tr=subs(c,'v',vr);t=rand(100,1);v=spline(tr,vr

2011-11-03 01:14:07 6095

原创 利用 ssh -X 登录服务器打开 xterm 等

>> 首先确保 /etc/ssh/sshd_config 中X11Forwarding yes>> 然后在 host 上 check DISPLAYecho $DISPLAY如果显示 :0then,export DISPLAY=urworkstationIP:0.0urworkstationIP 就是你想要显示 xterm 的客户端的IP。

2011-11-02 17:35:01 2831

原创 KDE 桌面环境下自定义快捷键

左下角菜单键 >> system settings >> shortcuts and gestures >> custom shortcuts然后,edit 就可以新建了。支持鼠标手势!!

2011-11-01 03:31:31 2242

转载 Ubuntu 新建用户并添加到管理组

1、输入用户管理的命令,新建用户(以test为例):sudo useradd test修改 test 用户的密码:sudo passwd test2、将新用户添加到管理组:sudo gpasswd -a test admin3、给 test 用户创建自己的目录:cd /homesudo mkdir testsudo chown test /home/

2011-11-01 01:02:34 3373

原创 Ubuntu 下安装使用 OpenSSH

Ubuntu中OpenSSH client 是默认安装好的。>> 然后服务器上需要安装 openssh-server。sudo apt-get install openssh-server>> 启动服务器。sudo /etc/init.d/ssh restart>> 确认服务器正常是否运行。netstat -tlp>> 接下来就可以在客户端用ss

2011-10-31 19:01:08 830

原创 ubuntu 下切割合并PDF的工具 pdftk

安装 pdftksudo apt-get install pdftk相关例子看这里。

2011-10-27 03:45:24 4070

原创 linux 下用 emacs + octave 代替 matlab

EOS基本介绍和使用请看这里。emacs 19.35 以后的版本是不需要自己安装 EOS(Emacs Octave Support) 了。>>M-x run-octaveorM-x inferior-octave可以在 emacs 中运行 octave。>>用emacs编辑 m 文件。C-x C-f 打开 m 文件。然后,

2011-10-25 01:39:22 4259

原创 安装subfigure宏包(ubuntu)

>> 到CTAN上下载宏包>> 解压后用latex编译dtx文件,得到sty文件unzip subfigure.zipcd subfigurelatex subfigure.dtx>> 复制到/usr/share/texmf/tex/latex/sudo mv subfigure /usr/share/texmf/tex/latex/>> 刷新

2011-10-22 22:41:15 5780

转载 Linux下查看文件和文件夹大小的df和du命令

当磁盘大小超过标准时会有报警提示,这时如果掌握df和du命令是非常明智的选择。df可以查看一级文件夹大小、使用比例、档案系统及其挂入点,但对文件却无能为力。du可以查看文件及文件夹的大小。两者配合使用,非常有效。比如用df查看哪个一级目录过大,然后用df查看文件夹或文件的大小,如此便可迅速确定症结。下面分别简要介绍df命令可以显示目前所有文件系统的可用空间及使用

2011-10-20 19:27:47 465

原创 Ubuntu 11.10 3D Unity 任务栏不显示ibus 图标解决办法

启动项添加ibus-daemon -r -d -x

2011-10-20 02:54:21 2143

转载 Ubuntu下编译安装 ibus-sunpinyin

sunpinyin项目主页http://code.google.com/p/sunpinyin/1.首先去这里下载两个包http://code.google.com/p/sunpinyin/downloads/listibus-sunpinyin-2.0.3.tar.gz 和 sunpinyin-2.0.3.tar.gz然后用 tar zxvf 解压。

2011-10-20 02:51:46 976

转载 Example uses of the Linux Command ftp

The following examples illustrate typical uses of the command ftp for remotely copying, renaming, and deleting files.ftp abc.xyz.eduThis command will attempt to connect to the ftp server at ab

2011-10-19 19:38:29 491

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除