Winbind authentication against active directoryDescriptionThis tip will describe how to configure authentication settings in CentOS to use authenticat...
修改文件 /system/core/Router.php 的方法 _parse_route()
/**
* Parse Routes
*
* This function matches any routes that may exist in
* the config/routes.php file against the URI to
* determine if th...
分类:
其他好文 时间:
2014-07-29 18:05:12
阅读次数:
211
King Robert has 7 kingdoms under his rule. He gets to know from a raven that the Dothraki are going to wage a war against him soon. But, he knows the ...
分类:
其他好文 时间:
2014-07-29 17:18:52
阅读次数:
211
Google Custom Search Engines use a timer to check the hash against a previous value, whilst the child iframe on a seperate domain updates the parent‘s location hash to contain the size of the ifram...
分类:
Web程序 时间:
2014-07-24 12:31:35
阅读次数:
289
gcc -shared -o hack.so hack.c/usr/bin/ld: /tmp/ccUZREwA.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object...
分类:
其他好文 时间:
2014-07-14 19:26:29
阅读次数:
1539
daniel@daniel-mint ~/msf/metasploit-framework $ ruby msfpayload windows/exec CMD=calc.exe NWARNING: Nokogiri was built against LibXML version 2.8.0, b...
分类:
其他好文 时间:
2014-07-12 08:35:11
阅读次数:
204
linux生成动态库时遇到了relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC错误。
由于我的系统是AMD64位的,所以需要在编译的时候添加 -fPIC选项
解决方法:
例如:
g++ -c -fPIC head.cpp ...
分类:
系统相关 时间:
2014-07-10 21:02:04
阅读次数:
16872
HDU 4770 Lights Against Dudely
题目链接
题意:给定灯,有一盏灯可以旋转,问最少几个灯可以照亮.的位置,并且不能照到#
思路:暴力求解,先枚举特殊的灯,再枚举正常的灯,要加剪枝,不然会TLE
代码:
#include
#include
#include
using namespace std;
const int INF = 0x...
分类:
其他好文 时间:
2014-07-08 18:23:55
阅读次数:
196
Description
During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels lay in a...
分类:
其他好文 时间:
2014-07-08 16:51:42
阅读次数:
506
题目链接:hdu 4770 Lights Against Dudely
题目大意:在一个N*M的银行里,有N*M个房间,‘#’代表坚固的房间,‘.‘代表的是脆弱的房间,脆弱的房间个数不会超过15个,现在为了确保安全,要在若干个脆弱的房间上装灯,普通的灯是照亮{0, 0}, {-1, 0}, {0, 1}(和题目中坐标有点出入),然后可以装一个特殊的,可以照射
{ {0, 0}, {0,...
分类:
其他好文 时间:
2014-07-08 13:34:07
阅读次数:
152