摘要: 转:http://blog.csdn.net/zyz511919766/article/details/18355827Django默认会在配置文件setting.py的TEMPLATE_LOADERS中开启'django.template.loaders.filesystem.Loader',开启... 阅读全文
posted @ 2014-09-23 09:23 JimMoriarty 阅读(663) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/hicjiajia/archive/2011/01/20/1940154.htmlLinux下Fork与Exec使用一、引言 对于没有接触过Unix/Linux操作系统的人来说,fork是最难理解的概念之一:它执行一次却返回两个值。fork函数是Uni... 阅读全文
posted @ 2014-06-26 10:05 JimMoriarty 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 下载DevStackgit clone https://github.com/openstack-dev/devstack.git更改pip源#vim ~/.pip/pip.conf [global] index-url = http://pypi.douban.com/simple 更改devst... 阅读全文
posted @ 2014-06-20 10:18 JimMoriarty 阅读(4229) 评论(2) 推荐(0) 编辑
摘要: http://ubuntuforums.org/archive/index.php/t-1771058.htmlI accidentally discovered a fix for this while trying to solve a different problem.edit~/.conf... 阅读全文
posted @ 2014-05-29 10:23 JimMoriarty 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/johnnycode/article/details/17848291经常在Ubuntu下安装绿色软件,之前只能将快捷方式放到桌面上,感觉不方便。其实设置很简单,总结一下,好脑子不如烂笔头!1.在/usr/share/applications 目录下增加 s... 阅读全文
posted @ 2014-05-29 10:04 JimMoriarty 阅读(574) 评论(0) 推荐(0) 编辑
摘要: http://www.netroby.com/view.php?id=3630#.U4aRT_mSzVoPersist dns nameserver for ubuntu 14.04If you are using ubuntu 14.04, you may find you can not set... 阅读全文
posted @ 2014-05-29 09:48 JimMoriarty 阅读(3696) 评论(0) 推荐(0) 编辑
摘要: apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal修改~/.vnc/xstartup#!/bin/sh export XKL_XMODMAP_DISABLE=1unset SESSION... 阅读全文
posted @ 2014-05-28 22:00 JimMoriarty 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: http://czmmiao.iteye.com/blog/1751408GPT概述全局唯一标识分区表(GUID Partition Table,缩写:GPT)是一个实体硬盘的分区结构。它是可扩展固件接口标准的一部分,用来替代BIOS中的主引导记录分区表。传统的主启动记录 (MBR) 磁盘分区支持最... 阅读全文
posted @ 2014-04-16 19:08 JimMoriarty 阅读(873) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/uid-26833883-id-3198114.html一、什么是缓存I/O(Buffered I/O)缓存I/O又被称作标准I/O,大多数文件系统默认I/O操作都是缓存I/O。在Linux的缓存I/O机制中,操作系统会将I/O的数据缓存在文件系统的页缓存(page cache)中,也就是说,数据会先被拷贝到操作系统内核的缓冲区中,然后才会从操作系统内核的缓冲区拷贝到应用程序的地址空间。1.缓存I/O有以下优点:A.缓存I/O使用了操作系统内核缓冲区,在一定程度上分离了应用程序空间和实际的物理设备。B.缓存I/O可以减少读盘的次数,从而提高性 阅读全文
posted @ 2014-04-02 09:35 JimMoriarty 阅读(295) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/cowbane/article/details/6630298 首先,先稍微了解系统调用的概念: 系统调用,英文名system call,每个操作系统都在内核里有一些内建的函数库,这些函数可以用来完成一些系统系统调用把应用程序的请求传给内核,调用相应的的内核函数完成所需的处理,将处理结果返回给应用程序,如果没有系统调用和内核函数,用户将不能编写大型应用程序,及别的功能,这些函数集合起来就叫做程序接口或应用编程接口(Application Programming Interface,API),我们要在这个系统上编写各种应用程序,就是通过这个API接口来. 阅读全文
posted @ 2014-03-31 20:13 JimMoriarty 阅读(252) 评论(0) 推荐(0) 编辑