license: (ISC)重要开源协议的比较(BSD,Apache,GPL,LGPL,MIT) – 整理

← Continue Reading
当Adobe、Microsoft、Sun等一系列巨头开始表现出对”开源”的青睐时,”开源”的时代即将到来! 最初来自:sinoprise.com/read.php?tid-662-page-e-fpage-1.html(遗憾的是这个链接已经打不开了),我基本未改动,只是进行了一些排版和整理。 参考文献:http://www.fsf.org/licensing/licenses/ 现今存在的开源协议...

warning: LF will be replaced by CRLF问题解决方法

← Continue Reading
warning: LF will be replaced by CRLF问题解决方法 git crlf rails 开发环境: 操作系统: windows xp ruby 1.9.2 rails 3.1.3 git version 1.7.8.msysgit.0 问题描述: 启动GIT: 新建了一个rails工程 Ruby代码  收藏代码 $ rails new blog 当切换到blog目录下执...

Github上传代码菜鸟超详细教程 windows版

← Continue Reading
Github上传代码菜鸟超详细教程 02 Feb 2016 最近需要将课设代码上传到Github上,之前只是用来fork别人的代码。 这篇文章写得是windows下的使用方法。 第一步:创建Github新账户 第二步:新建仓库 第三部:填写名称,简介(可选),勾选Initialize this repository with a README选项,这是自动创建REAMDE.md文件,省的你再...

sphinx的–rotate运行机制

← Continue Reading
[导读]如果sphinx在运行中,要indexer时,需要加上--rotate参数,这样索引完就直接生效了。 原因是sphinx的searchd在启动时会创建一个 .spl 锁文件,并在关闭时会删除它。在indexer创建索引时如果发现有 .spl文件,则不会创建新索引,因为这时已经标志sphinx正在运行中,除非使用 –rotate。 rotate运行机制 ->indexer完成索引 -&...

python中多线程的使用

← Continue Reading
本文以实例形式较为详细的讲述了Python中多线程的用法,在Python程序设计中有着比较广泛的应用。分享给大家供大家参考之用。具体分析如下: python中关于多线程的操作可以使用thread和threading模块来实现,其中thread模块在Py3中已经改名为_thread,不再推 荐使用。而threading模块是在thread之上进行了封装,也是推荐使用的多线程模块,本文主要基于thre...

sphinx 添加增量索引小结

← Continue Reading
coreseek/sphinx 实时索引 1. 建表 用来做主索引和增量索引的区分点 create table ph_counter( counter_id int auto increment primary key, max_doc_id int )ENGINES=MYISAM  DEFAULT CHARSET=utf8; 2.vim  csvf.conf #添加 sql_query_pre ...

Sphinx高亮故障的解决

← Continue Reading
  关于BuildExcerpts失效问题 1.字符高亮不显示,注意关注参数:single_passage{Whether to highlight exact query phrase matches only instead of individual keywords. Boolean, default is FALSE}   2.关于标题正常,内容不显问题。参考下列内容...

linux sphinx/coreseek 安装实例

← Continue Reading
如何创建增量索引:     http://wayde.org/?p=1038 sphinx安装完,不总结了直接copy资源: 一个文档包含了安装、增量备份、扩展、api调用示例,省去了查找大量文章的时间。 搭建coreseek(sphinx+mmseg3)安装 [第一步] 先安装mmseg3 cd /var/install wget http://www.coreseek.cn/uploads/...

PHP android ios相互兼容的AES加密算法

← Continue Reading
PHP的AES加密算法: <?php class MCrypt { private $hex_iv = '00000000000000000000000000000000'; # converted JAVA byte code in to HEX and placed it here private $key = 'U1MjU1M0FDOUZ.Qz'; #Same as in JAVA f...

macbook开机启动nginx和php

← Continue Reading
1. 开机启动nginx: 在 /Library/LaunchDaemons/ 目录新建 org.macports.nginx.plist 文件: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTD...

完美解决mac 10.11 phpize 报错问题!

← Continue Reading
Mac 10.11下phpize报以下错误: grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h:...