Searching in a Radius using Postgres Creating a GEO application has never been easier. You can have a fully working "What's close to me" in a matter of minutes using some great open-source tools. Postgres has lots of features. With the biggest i…
This is the last in a series of Postgres posts that Pat Shaughnessy wrote based on his presentation at the Barcelona Ruby Conference. You can also watch the video recording of the presentation. The series was originally published on his personal blog…
from:http://blogs.msdn.com/b/ericwhite/archive/2010/04/28/searching-external-data-in-sharepoint-2010-using-business-connectivity-services.aspx Business Connectivity Services (BCS) are a set of services and features that provide a way to connect Share…
当构建一个Web应用时,经常被要求加上搜索功能.其实有时候我们也不知道我要搜索个啥,反正就是要有这个功能.搜索确实很重要的特性,这也是为什么像Elasticsearch和Solr这样基于Lucene的数据库越来越流行.这两个是好用,但是在构建Web应用时,有时候感觉像是杀鸡用牛刀.所以我们需要选择轻量好用的东西来搜索. 如何定义足够好用? 足够好用的搜索引擎需要有以下几点特征: Stemming 关键词,词干 Ranking/Boost 排名和权重分配 多语言支持 错误纠正/模糊查询 口音支持…
起源 之前做的很多项目都使用solr/elasticsearch作为全文检索引擎,它们功能全面而强大,但是对于较小的项目而言,构建和维护成本显然过高,尤其是从关系数据库/文档数据库到全文检索引擎的数据同步工作非常繁琐,且容易出错. 记得很久以前就知道postgresql数据库内置全文检索,最近发现这个数据库越来越火,于是就又研究了一番,欣喜的发现居然支持ef core,于是对其进行了一些研究,并整理心得如下. 前提 本文假设读者熟悉entity framework core的基本概念和基本使用.…
续上一篇,解决了上一篇中的问题后,启动成功,但是在数据库中操作会存在一些问题,一些操作报一下异常: Table './mysql/proc' is marked as crashed and should be repaired 解决方案: repair table mysql.proc;…
背景:修改pg内核,在创建表时,表名不能和当前的用户名同名. 首先我们知道DefineRelation此函数是最终创建表结构的函数,最主要的参数是CreateStmt这个结构,该结构如下 typedef struct CreateStmt { NodeTag type; RangeVar *relation; /* relation to create */ List *tableElts; /* column definitions (list of ColumnDef) */ List *i…
标签: java radius协议   linux radius认证服务器   转自: http://blog.csdn.net/sun93732/article/details/5999274 由RFC2865,RFC2866定义,是目前应用最广泛的AAA协议. RADIUS协议最初是由Livingston公司提出的,原先的目的是为拨号用户进行认证和计费.后来经过多次改进,形成了一项通用的认证计费协议. 创立于1966年Merit Network, Inc.是密执安大学的一家非营利公司,其业务…
marked.js简易手册 本文介绍的是marked.js.秉持"来之即用"的原则,对它进行简要的翻译和归纳, 安装 在网上引用或者是引用本地文件即可.要么就用命令行: npm install marked --save 最简单用法 var rendererMD = new marked.Renderer(); marked.setOptions({ renderer: rendererMD, gfm: true, tables: true, breaks: false, pedant…
解决mysql Table 'xxx' is marked as crashed and should be repaired的问题. 某个表在进行数据插入和更新时突然出现Table 'xxx' is marked as crashed and should be repaired这个异常,随后整个表无法查询,表数据全部丢失. 解决办法: 切换至mysql bin目录 ./myisamchk -c -r 数据库表MYI文件的路径 例如:./myisamchk -c -r /home/mysql/…