首先打开source\function下的function_core.php找到如下代码:if($type == 'forum_forumdisplay') { list(,,, $fid, $page, $extra) = func_get_args(); $r = a...
分类:
其他好文 时间:
2014-08-21 22:23:14
阅读次数:
217
flume-ng 中 selector的使用
在最近的项目中,需要用到flume。使用的是非常常见的结构:netcat source开启监听端口,接收发送来的报文消息,通过memory channel与sink(重写的roll file sink)写到本地磁盘。特别的是,这里需要根据报文的类型来发往不同的sink(暂且命名为sink1与sink2)。根据该需求,考虑有两种解决方案。...
分类:
其他好文 时间:
2014-08-21 17:08:14
阅读次数:
1607
Android为不同类型的进程分配了不同的内存使用上限,如果应用进程使用的内存超过了这个上限,则会被系统视为内存泄漏,从而被kill掉。Android为应用进程分配的内存上限如下所示:位置: /ANDROID_SOURCE/system/core/rootdir/init.rc 部分脚本# Defi...
分类:
其他好文 时间:
2014-08-21 16:49:14
阅读次数:
194
环境配置:为方便起见,我们可以在每次打开终端时让系统自动配置好ROS环境变量,方法如下: echo "source /opt/ros/hydro/setup.bash" >> ~/.bashrc //如果直接source /opt/ros/hydro/setup.bash ...
分类:
其他好文 时间:
2014-08-21 16:27:34
阅读次数:
314
在mysql中查询不区分大小写重复的数据,往往会用到子查询,并在子查询中使用upper函数来将条件转化为大写。如:select * from staticcatalogue WHERE UPPER(Source) IN (SELECT UPPER(Source) FROM staticcatalog...
分类:
数据库 时间:
2014-08-21 14:59:34
阅读次数:
277
1、背景色选择 要改变背景色Options->preference->windows background->color设置背景色 2、解决字符等宽对齐问题。 SIS默认字体是VERDANA,很漂亮。这网页上应该也是用的VERDANA字体。但由于美观的缘故,VERDANA字体是不等宽的。比如下面两行...
分类:
其他好文 时间:
2014-08-21 14:48:34
阅读次数:
214
1,安装ProFTPD
在ftp://ftp.proftpd.org/下可以找到官方发布的各个ProFTPD版本,本人使用ftp://ftp.proftpd.org/historic/source/proftpd-1.3.0a.tar.gz
root@kali:~# wget ftp://ftp.proftpd.org/historic/source/proftpd-1.3.0a.tar.gz...
分类:
系统相关 时间:
2014-08-21 11:32:14
阅读次数:
293
class IntroToLINQ{ static void Main() { // The Three Parts of a LINQ Query: // 1. Data source. int[] numbers = n...
分类:
其他好文 时间:
2014-08-21 01:28:53
阅读次数:
207
一.samba的安装:sudoapt-getundatesudoapt-getinsallsambasudoapt-getinstallsmbfs二.创建共享目录:mkdir/home/phinecos/sharesoduchmod777/home/phinecos/share三.创建Samba配置文件:1.保存现有的配置文件sudocp/etc/samba/smb.conf/etc/samba/smb.conf.bak2.修改现配置文件su..
分类:
其他好文 时间:
2014-08-21 00:22:13
阅读次数:
186
1、转换文件内容编码Windows下天生的纯文本文件,其中文编码为GBK,在Ubuntu下显示为乱码,可以使用iconv命令进行转换:iconv -f gbk -t utf8 source_file > target_file2、转换文件名编码Windows下压缩的zip文件,在 Ubuntu下解开...