VellBibi
一个程序猿的世界观

导航

 

2014年3月25日

摘要: 复习下数据结构常用的排序算法,更多内容上wiki快速排序(不稳定 O(n log n))快速排序(Quicksort)是对冒泡排序的一种改进。由C. A. R. Hoare在1962年提出。它的基本思想是:通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行,以此达到整个数据变成有序... 阅读全文
posted @ 2014-03-25 21:17 VellBibi 阅读(248) 评论(0) 推荐(0) 编辑
 
摘要: 安装Pygments语法高亮On OS X Leopard, Snow Leopard1$ sudo easy_install PygmentsAlternatively on OS X with MacPorts:1$ sudo port install python25 py25-pygmentsOn Archlinux1$ sudo pacman -S python-pygmentsOn U... 阅读全文
posted @ 2014-03-25 21:16 VellBibi 阅读(625) 评论(0) 推荐(0) 编辑
 
摘要: Install rvm123$ curl -L get.rvm.io | bash -s stable$ source ~/.bashrc$ source ~/.bash_profile修改 RVM 的 Ruby 安装源到淘宝1$ sed -i -e 's/ftp\.ruby-lang\.org\/pub\/ruby/ruby\.taobao\.org\/mirrors\/ruby/g' ~/.r... 阅读全文
posted @ 2014-03-25 21:15 VellBibi 阅读(200) 评论(0) 推荐(0) 编辑
 
摘要: 学校现在上网全部要拨号,加上我在宿舍用的是无线路由,也就是要在ubuntu下实现连接wifi后再拨号,这个功能在默认的ubuntu网络设置里面是没有的,里面有dsl但是对有线网络使用的,有点小郁闷。不过总是有解决方法的,我这就介绍我的一种实现方法:dsl-providerubuntu12.04默认就安装了dsl-provider,直接上命令行设置dsl-provider:1sudo pppoeco... 阅读全文
posted @ 2014-03-25 21:14 VellBibi 阅读(476) 评论(0) 推荐(0) 编辑
 
摘要: 今天我总算是使用上了高大上的octopress了,不容易啊,现在我把之前的博客全部搬到了octopress上了,在github上办博客让我不用再担心流量和广告了!~~~爽啊我使用octopress时遇到的问题汇总:Error: Permission denied (publickey)说明:我第一次使用rake deploy命令,总是有一个错误,提示说Error: Permission denie... 阅读全文
posted @ 2014-03-25 21:13 VellBibi 阅读(483) 评论(0) 推荐(0) 编辑
 
摘要: 今天突然有感觉复习下C语言了,发现已经好久没有用过C编程了,话说最近都没有编过程序了都,趁现在还有点时间,好好学习下C了。话不多说上题目请定义一个宏,比较两个数a、b的大小,不能使用大于、小于、if语句分析:要不使用符号比较数的大小,第一个想到的应该是最原始的方法,就是数的二进制表示(第一位为1表示这是一个负数),以及对二进制的操作步骤:得到当前系统的位数:sizeof函数将1左移位数减一位得到一... 阅读全文
posted @ 2014-03-25 21:12 VellBibi 阅读(174) 评论(0) 推荐(0) 编辑
 
摘要: VSim [a racing-simulator by vell001]This is my first project about Racing. I am a Chinese with bad English, and today is my first time to use English to write a post, Sorry for my bad Engilsh first…I ... 阅读全文
posted @ 2014-03-25 21:11 VellBibi 阅读(406) 评论(0) 推荐(0) 编辑
 
摘要: hello, I am using github to write a post, I am so exciting… 原文地址: http://vblog.vell001.ml/2014/03/08/hello_world.html written by VellBibi posted at http:/... 阅读全文
posted @ 2014-03-25 21:10 VellBibi 阅读(176) 评论(0) 推荐(0) 编辑
 
 
By VellBibi