上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 1) alt+ f22) input "gnome-terminal"3) press "enter" 阅读全文
posted @ 2014-02-20 04:43 zmiao 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1, look at the sphinx.person.address.conf to see how to configure the conf file2, index the database using conf file. the format is as below: indexer --config sphinx.person.address.conf --all3, search something for fun. format as below: search --config sphinx.person.address.conf Slovenia 阅读全文
posted @ 2014-02-14 09:00 zmiao 阅读(163) 评论(0) 推荐(0) 编辑
摘要: http://www.oschina.net/question/84274_11938http://www.ibm.com/developerworks/library/os-php-sphinxsearch/1)主要配置sphinx-min.conf.ini这个文件,在里边改成自己的mysql的服务器信息,然后重命名为sphinx.conf然后放到bin这个文件夹下。2)用cmd进入bin目录下,index文件indexer --config sphinx.conf --all3)在bin目录下,输入searchd --config sphinx.conf既启动了sphinx4) try s 阅读全文
posted @ 2014-02-13 10:13 zmiao 阅读(159) 评论(0) 推荐(0) 编辑
摘要: package com.hereyouare.KickBall;import android.app.Activity;import android.app.AlertDialog;import android.app.Service;import android.content.Context;import android.content.DialogInterface;import android.content.SharedPreferences;import android.graphics.Bitmap;import android.graphics.BitmapFactory;im 阅读全文
posted @ 2014-02-12 15:39 zmiao 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1)下载wamp服务器。使用php来开发2)配置mysql服务器,主要把原来已有的数据导入到wamp服务器的mysql。改mysql的my.ini里德datadir的地址即可,将datadir设为已有数据所在的地址。3)在wamp服务器的www文件夹下编写php脚本,用php搭建网站后台操作mysql取数据显示数据的代码。最后记得工作完成后将工作机上的代码拷到自己的电脑上。 阅读全文
posted @ 2014-02-11 15:26 zmiao 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 1)编辑脚本script.sql如下ALTER TABLE `table_name` ADD FULLTEXT (`column_name`)2)在mysql console下输入命令SOURCE f:/script.sql即可。3)搜索时的sql query如下: select * from TB_NAME WHERE MATCH(col1, col2) AGAINST ('search_words'); 阅读全文
posted @ 2014-02-08 09:30 zmiao 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1)将一个txt文本(msg.txt)复制到开发目录的asset文件夹下。2)用getAssets().open()可以得到一个输入流。注意getAssets方法必须用在Activity下边。如果不是一个activity而只是一个普通class,则要将context传递到class里,然后再用getAssets()。public myClass(Context myContext) { AssetManager mngr = myContext.getAssets(); InputStream is = mngr.open("textdb.txt");}3)得到inputs 阅读全文
posted @ 2014-02-08 09:21 zmiao 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: 使用solr的DIH (data import handler) 可以操作后台数据库,前端solr自带的search ui (localhost:8983/solr/collection1/browse) 自带生成xml文件,在搜索结果的页面底端。 阅读全文
posted @ 2014-02-02 15:33 zmiao 阅读(161) 评论(0) 推荐(0) 编辑
摘要: solr使用apache的velocity来定义UI,在solr的search ui的基础上更改即可,主要改\example\solr\collection1\conf\velocity里的文件。详情可见http://crackedtownship.blogspot.com/2012/07/customize-apaches-solr-ui-using.html 阅读全文
posted @ 2014-02-02 13:55 zmiao 阅读(355) 评论(0) 推荐(0) 编辑
摘要: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ 阅读全文
posted @ 2014-01-25 18:32 zmiao 阅读(95) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页