2014年6月18日
摘要:
通过重新安装lightdm并启用lightdm作为桌面管理方式。启动lightdm的相关命令:sudo start lightdmsudo restart lightdm
阅读全文
posted @ 2014-06-18 07:25
merryfreespace
阅读(831)
推荐(0)
2014年6月6日
摘要:
shell> vi /etc/profile在文件最后添加:alias vi=vim然后:shell> source /etc/profile这是一个全局配置,所有用户都将生效。
阅读全文
posted @ 2014-06-06 01:32
merryfreespace
阅读(327)
推荐(0)
2014年6月5日
摘要:
碰到了个问题, rc.local 中启动memcached 的命令没有执行, 手动输入却可以. memcached 改成绝对路径之后就好了.究其原因在于:rc.local 在PATH环境变量指示的路径中寻找 memcached. 在rc.local 执行时, PATH 中还不包括 /usr/loca...
阅读全文
posted @ 2014-06-05 03:06
merryfreespace
阅读(287)
推荐(0)
2014年6月3日
摘要:
文档注释,无非“//”和“/**/”两种 ,自己写代码,就那么点,适当写几句就好了;但是一个人总有融入团队的一天,团队的交流不是那几句注释和一张嘴能解决的,还需要通用的注释标准。PHPDoc是PHP文档注释的一个标准,可以帮助我们在注释文档时有规范,查看别人的代码时更方便。下面的表格是我翻译的WIK...
阅读全文
posted @ 2014-06-03 04:52
merryfreespace
阅读(267)
推荐(0)
2014年5月23日
摘要:
在防火墙阻挡rsync端口的情况下使用,而且绕开了rsync的认证机制,直接使用ssh的认证:rsync -avz --delete -e ssh remoteuser@remotehost:/remote/dir /this/dir/
阅读全文
posted @ 2014-05-23 07:54
merryfreespace
阅读(282)
推荐(0)
2014年3月20日
摘要:
首先运行KMS Server:python server.py然后:cd %ProgramFiles%\Microsoft Office\Office15cscript ospp.vbs /sethst:127.0.0.2(不能是127.0.0.1)cscript ospp.vbs /actcscript ospp.vbs /dstatuscscript ospp.vbs /remhst需要修改key,通过命令:cscript ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT最后一条命令是删除激活服务器设置(对应第一条)
阅读全文
posted @ 2014-03-20 23:49
merryfreespace
阅读(869)
推荐(0)
摘要:
可以采用如下模块:https://drupal.org/project/authcache同时可以配置varnish的参数。
阅读全文
posted @ 2014-03-20 21:27
merryfreespace
阅读(134)
推荐(0)
2014年3月19日
摘要:
可以参考drupal的theme_render_template函数function theme_render_template($template_file, $variables) { // Extract the variables to a local namespace extract($variables, EXTR_SKIP); // Start output buffering ob_start(); // Include the template file include DRUPAL_ROOT . '/' . $template_file; // End b
阅读全文
posted @ 2014-03-19 22:31
merryfreespace
阅读(290)
推荐(0)
2014年3月11日
摘要:
显示电脑上的所有无线配置文件,在命令提示符下,键入:netsh wlan show profiles删除配置文件,在命令提示符下,键入:netsh wlan delete profile name="ProfileName"显示安全密钥,在命令提示符下,键入:netsh wlan show profile name="ProfileName" key=clear
阅读全文
posted @ 2014-03-11 12:56
merryfreespace
阅读(200)
推荐(0)
2014年2月18日
摘要:
Office 2013激活备份方法: 把C:Windows\System32\spp\store文件夹备份 Office 2013激活还原方法: 把备份的store文件夹,覆盖到C:Windows\System32\spp\store
阅读全文
posted @ 2014-02-18 03:21
merryfreespace
阅读(211)
推荐(0)