VIM中字符编码的设置 2008-07-24 12:54:18分类:
VIM中,我们可以通过修改/etc/vimrc文件来设置VIM的encoding,我们可以通过:help
encoding来察看vim中关于encoding的一些帮助,:help encoding-values可以看到vim支持的...
分类:
其他好文 时间:
2014-04-29 18:00:46
阅读次数:
533
vim toolis a commom editor, for the sake of
improving effeicient, it is necessary to configurate vim config file. The
following comands will help you....
分类:
其他好文 时间:
2014-04-29 17:58:49
阅读次数:
502
2014.04.28module 首测1)环境:Centos release 6.5 (Final)
kernel:
2.6.32-358.23.2.e16.centos.plus.i6862)源文件及Makefile源文件:是一个入门的Hello.c文件,网上到处可以找得到。Makefile...
分类:
系统相关 时间:
2014-04-29 17:25:50
阅读次数:
634
2014-04-28 23:35题目:最大子数组和问题。解法:O(n)解法。代码: 1 //
17.8 Find the consecutive subarray with maximum sum in an array. 2 // O(n)
online algorithm. 3 #include...
分类:
其他好文 时间:
2014-04-29 16:35:28
阅读次数:
429
cd ~/.ssh/如果目录不存在就新建一个 mkdir ~/.ssh制作公匙
ssh-keygen -t rsa默认会生成id_rsa.pub的公匙将公匙推送到指定的服务器 scp id_rsa.pub
username@server:~/.ssh/id_rsa.pub登录到服务器 ssh use...
分类:
系统相关 时间:
2014-04-29 16:01:32
阅读次数:
625
2014-04-28
23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the
occurrences of any given words in it. 2 // Answer: 3 // 1....
分类:
其他好文 时间:
2014-04-29 16:00:32
阅读次数:
388
先确保本地Linux服务器SSH服务开启,如果没有开启直接执行指令:service sshd
start然后我们使用ssh指令进行远程登陆ssh username@ip-address输入passwd指令修改旧密码修改默认账号rootvi
/etc/passwd按i键进入编辑状态修改第1行第1个ro...
分类:
系统相关 时间:
2014-04-29 15:51:22
阅读次数:
586
需求1:打包成Linux上可执行程序a.
先下载pyinstaller程序,我当前下载的是PyInstaller-2.1的版本进行如下操作:pythoner@pythoner-virtual-machine:~/PyInstaller-2.1$
sudo python2.7 setup.py ins...
分类:
其他好文 时间:
2014-04-29 15:48:16
阅读次数:
501
使用三台虚拟机器, Ubuntu1(nginx) 192.168.226.128
Ubuntu2(php-fpm+memcached)192.168.226.132 CentOS(MySQL)192.169.226.130PHP
框架使用CakePHP,这个是很常用的MVC 框架,基于事件的分...
分类:
Web程序 时间:
2014-04-29 15:24:41
阅读次数:
477
2014-04-29
00:04题目:给定一个整数数组,找出所有加起来为指定和的数对。解法1:可以用哈希表保存数组元素,做到O(n)时间的算法。代码: 1 // 17.12
Given an array of integers and target value, find all pairs in ...
分类:
其他好文 时间:
2014-04-29 15:08:13
阅读次数:
469