Posts

Showing posts from December, 2012

Mysql make user and password

First of all make database mysql> create database DBName;
See all database list mysql> show databases
mysql> use mysql
Making general user mysql> grant usage on *.* to amarokuser@localhost identified by 'amarokpasswd'; Query OK, 0 rows affected (0.00 sec) Making the user having all authorities mysql> grant all privileges on amarokdb.* to amarokuser@localhost ; Query OK, 0 rows affected (0.00 sec) commit all changes mysql> FLUSH PRIVILEGES; see allowed ip adresses SELECT Host FROM mysql.user WHERE user='root';

Lucene Tutorial(1) - How to index Lucene

I'm first in use of lucene. I think this blog is not perfect for you because I'm not professional. but what I wrote is by reading and stuying the book of Lucene in action 2. so I hope this blog is going to be useful some of you
1. Indexing (3.6.1 version)
why Use?
when i can use this lucene?
Suppose~!  you have many text-files in your local computer, window xp, 7 and so on  search programs allow you find filename but not content in textfiles.  how do search content?
so you have to use search engine like lucene

how to Index ?

explain :  
indexDir = directory that you want to index   (a.txt, b.txt, c.txt) dataDir = destination directory where indexing file will store
IndexWriter = it is like translator original file into indexed file
TextFilesFilter class = filtering file extension Document  = it is like file info class
Running this code your first experience is done.

public class Indexer { public static void main(String[] args) throws Exception { if (args.length != 2) { throw new Il…

jQuery DatePicker

http://jqueryui.com/datepicker/

easyUnderstanding jsp include

<%@include file="/jsp/common/session.jsp"%>




<jsp:include page="/jsp/common/uppermenu.jsp" flush="true">
</jsp:include>

html image size 100%

/** 백그라운드 이미지를 전체 사이즈에 맞추기**/
background: url('bg_viewbar.gif')  no-repeat center center fixed;
-webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

mobile page Basic Setting

http://www.uideveloper.co.kr/textyle/276069