Hunter的大杂烩 技术学习笔记

2018-06-01

c# 出现 未能加载文件或程序集 的调试方法

Filed under: 技术话题 — hunter @ 12:28 pm

注册表中增加:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
Add:
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
DWORD EnableLog set value to 1
String LogPath set value to folder for logs (e.g. C:\FusionLog\)

重新运行程序,然后在C:\FustionLog 目录下找相关日志文件查看
 (more...)

wordpress apache 2.4 下正确静态化语法

Filed under: 技术话题 — hunter @ 12:22 pm

要增加%{DOCUMENT_ROOT}

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index.php$ – [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
LogLevel trace5
</IfModule>

2018-05-25

Apache 2.2 升级到 2.4 的变化

Filed under: 技术话题 — hunter @ 4:06 pm

一、编译

1. 去掉了一些模块: mod_authn_default, mod_authz_default, mod_mem_cache.

2. 不同的load balance 类型需要在运行时额外加载对应的模块,比如 . mod_lbmethod_bybusyness

3. DSO模式是缺省编译选项;

4. 缺省编译 大部分(”most” )模块,但不自动加载,需要在配置文件中取消对应的LoadModule的注释

5. Event 在linux下是缺省的MPM模式

6. 去掉了一些老旧操作系统的支持,比如BeOS

(more…)

apache httpd 2.4编译参数

Filed under: 技术话题 — hunter @ 12:21 pm

CC=gcc CFLAGS=”-O2″ ./configure –prefix=/data/install/httpd24 –enable-proxy \
–enable-proxy-ajp –enable-proxy-balancer –enable-expires –enable-headers \
–disable-asis –disable-autoindex –disable-userdir –enable-rewrite \
–disable-cgi –disable-cgid –enable-charset-lite –enable-deflate \
–enable-ssl=static –with-ssl=/usr/local/openssl –with-apr=/usr/local/apr \
–with-apr-util=/usr/local/apr-util –with-pcre=/usr/local/pcre/ \
–with-z=/usr/local/zlib –sysconfdir=/data/appconf/httpd

2018-05-24

获取第三方页面动态数据的方法

Filed under: 技术话题 — hunter @ 7:54 pm

要抓取第三方页面内动态数据,遇到获取数据的方式是加密的,无法伪造,且不好确定数据加载完成事件,则可以用以下 2种js hijack的方法

1. 替换掉页面内原有的数据调用函数

 
[code language=”javascript”]
<script language="javascript">
function doSomeQueryData() {
do some query data ….;
}

let orgQuery = doSomeQueryData;

doSomeQueryData = function() {
orgQuery();
//数据加载完了,可以干活
}
</script>
[/code]
(more…)

« Newer PostsOlder Posts »

Powered by WordPress