ubuntu 12.04:edit file: /etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT="xxx"-> GRUB_CMDLINE_LINUX_DEFAULT="xxx text"CentOS :edit file: /etc/inittab# init...
分类:
其他好文 时间:
2014-07-19 19:06:03
阅读次数:
172
求最大连续子序列一开始想到的一种O(n^2)的算法,应该会超时运用动态规划的思想,想出了下面的方法#include using namespace std;struct DP{ int sum,sta,end; void init(int su,int st,int en){ sum=su; sta...
分类:
其他好文 时间:
2014-07-19 18:04:36
阅读次数:
230
1.原题展示:一根棒子上有n个环(n 2 #include 3 #include 4 #define size 3 5 #define mod 200907 6 struct Mat 7 { 8 long long num[size][size]; 9 };10 Mat init,r;//定义全局变...
分类:
其他好文 时间:
2014-07-19 00:19:38
阅读次数:
202
1、如果init:0则重启后系统自动关闭。2、如果init:1 则重启后系统进入单用户模式,默认提示符为 sh-3.00#,输入tty得到的结果是/dev/console , 输入runlevel 得到的结果是1 S,其中1 表示运行级别为1,S表示运行模式为Single,即单用户...
分类:
系统相关 时间:
2014-07-18 15:24:12
阅读次数:
428
资源介绍:创建一个主类public class Main extends Sprite在构造函数中监听舞台的初始化if (stage) init();else addEventListener(Event.ADDED_TO_STAGE, init);在init函数中创建Context3D创建成功会有...
分类:
Web程序 时间:
2014-07-18 15:06:55
阅读次数:
383
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxn = 1e6; 8 bitset prime; 9 10 void init()11 {12 int ...
分类:
其他好文 时间:
2014-07-18 13:31:49
阅读次数:
261
#include class CTestLock { public: CTestLock() { pthread_mutex_init(&mutex_t_, NULL); pthread_cond_init(&cond_t_, NULL); ...
分类:
其他好文 时间:
2014-07-18 12:01:59
阅读次数:
202
systemdsystemd 是 Linux 的系统和服务管理程序,替换了 RedHatEnterpriseLinux 之前的发行本中使用的 SysV。systemd 与 SysV 和 Linux 标准基本 init 脚本兼容。systemd 比其他程序有下列优势:强大的平行化功能。使用插槽和 D-...
分类:
系统相关 时间:
2014-07-18 10:34:23
阅读次数:
352
neutron-openvswitch-agent代码分析neutron.plugins.openvswitch.agent.ovs_neutron_agent:main# init ovs first by agent_config:# setup plugin_rpc, state_rpc, m...
分类:
其他好文 时间:
2014-07-18 00:28:37
阅读次数:
434
git 上传本地文件到github
1 git config --global user.name "Your Real Name"
2 git config --global user.email you@email.address
git init
git add .
git commit -m 'Test'
git re...
分类:
其他好文 时间:
2014-07-17 19:13:25
阅读次数:
222