个人的Emacs配置,环境是archlinux,参考了不少网上资料,因为太多,就不一一列举了,在这里感谢那些作者的辛苦经验劳动。(custom-set-variables
;; custom-set-variables was added by Custom. ;; If you edit it b...
分类:
其他好文 时间:
2014-06-02 19:22:56
阅读次数:
379
在Linux中,进程的创建由系统调用fork和vfork完成。它们生成一个子进程并且子进程是父进程的一个复制品。Fork系统调用对应的kernel函数是sys_fork,此函数简单的调用kernel函数do_fork。一个简化版的do_fork执行如下:(1)alloc_pid()。给新的进程分配一...
分类:
系统相关 时间:
2014-06-02 19:04:43
阅读次数:
355
如何你的DispatcherServlet拦截"*.do"这样的有后缀的URL,就不存在访问不到静态资源的问题。
如果你的DispatcherServlet拦截"/",为了实现REST风格,拦截了所有的请求,那么同时对*.js,*.jpg等静态文件的访问也就被拦截了。
要解决这个问题。
目的:可以正常访问静态文件,不可以找不到静态文件报404。
方案一:激活Tom...
分类:
编程语言 时间:
2014-06-02 19:00:10
阅读次数:
353
Best Time to Buy and Sell Stock IISay you have
an array for which theithelement is the price of a given stock on dayi.Design an
algorithm to find the ...
分类:
其他好文 时间:
2014-06-02 15:01:53
阅读次数:
305
You can Solve a Geometry Problem tooTime Limit:
2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total
Submission(s): 6932Accepted S...
分类:
其他好文 时间:
2014-06-02 12:40:04
阅读次数:
325
【题目】
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n) space is pretty straight forward. Could you devise a constant space solution?
confused what "{1,#,2,3}" ...
分类:
其他好文 时间:
2014-06-02 10:38:17
阅读次数:
246
Given a linked list, determine if it has a
cycle in it.Follow up:Can you solve it without using extra
space?求链表是否有环的问题,要考虑链表为空的情况,定义一个快指针和一个慢指针,如果快指针和...
分类:
其他好文 时间:
2014-06-02 08:05:16
阅读次数:
255
#include"HelloWorldScene.h"
#include"MyLayer.h"
usingnamespacecocos2d;
CCScene*HelloWorld::scene()
{
CCScene*scene=NULL;
do
{
//‘scene‘isanautoreleaseobject
scene=CCScene::create();
CC_BREAK_IF(!scene);
//‘layer‘isanautoreleaseobject
HelloWorld*layer=HelloW..
分类:
移动开发 时间:
2014-06-02 07:53:45
阅读次数:
339
Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it
without using extra space?借用博...
分类:
其他好文 时间:
2014-06-02 07:32:33
阅读次数:
291
1.批量建立redolog裸设备脚本(非条带)
#!/usr/bin/ksh
i=1
while(($i<=9));
do
mklv-ylv_redo"00$i"_1g-traw-wn-rn-u1oltpvg1
i=$(expr$i+1);
done
2.建立stripesize为1M,stripewidth为14,lv大小为8G的裸设备,
hdiskpower1=92160M
#!/usr/bin/ksh
i=1
while[$i-lt..
分类:
其他好文 时间:
2014-06-02 03:05:19
阅读次数:
281