CREATE USER 'USER'@'11.22.33.44' IDENTIFIED BY 'password'; GRANT EXECUTE, PROCESS, SELECT, SHOW DATABASES, SHOW VIEW, ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE TEMPORARY TABLES, CREATE VIEW, DELETE, DROP, EVENT, INDEX, INSERT, REFERENCES, TRIGGER, UPDATE, CREATE USER, FILE, LOCK TABLES, RELOAD, REPLICATION CLIENT, REPLICATION SLAVE, SHUTDOWN, SUPER ON *.* TO 'abcd'@'111.222.333.444' W..
ffmpeg 썸네일 추출http://stackoverflow.com/questions/10240972/create-thumbnail-image-from-video-in-server-in-php - flow player 플레이 - jwplayerhttp://www.wowza.com/forums/content.php?484-How-to-use-JW-Player-with-Wowza-Streaming-Engine 그리고, nimblehttp://blog.wmspanel.com/2013/11/streaming-vod-digitalocean-nimble-streamer.html
http://www.journaldev.com/dev/java/j2ee
DELETE cine21 PUT /cine21{ "settings": { "analysis": { "analyzer": { "korean_analyzer" : { "type" : "custom", "tokenizer": "korean_tokenizer", "filter" : ["stop", "lowercase", "trim", "synonym"] }, "ngram_analyzer" : { "type" : "custom", "tokenizer" : "ngram_tokenizer", "filter" : ["lowercase", "trim","synonym"] }, "edge_ngram_analyzer" : { "type" : "custom", "tokenizer" : "edge_ngram_tokenizer"..
curl -XGET 'http://localhost:9200/cine21/_analyze?analyzer=korean_analyzer&pretty=true' -d '멀티플레이어를 자처'curl -XGET 'http://localhost:9200/cine21/_analyze?analyzer=ngram_analyzer&pretty=true' -d '멀티플레이어를 자처'curl -XGET 'http://localhost:9200/cine21/_analyze?analyzer=edge_ngram_analyzer&pretty=true' -d '멀티플레이어를 자처'
DELETE cine21 PUT /cine21{ "settings": { "analysis": { "analyzer": { "korean_analyzer" : { "type" : "custom", "tokenizer": "korean_tokenizer", "filter" : ["stop", "lowercase", "trim"] }, "ngram_analyzer" : { "type" : "custom", "tokenizer" : "ngram_tokenizer", "filter" : ["lowercase", "trim"] }, "edge_ngram_analyzer" : { "type" : "custom", "tokenizer" : "edge_ngram_tokenizer", "filter" : ["lowerc..
보호되어 있는 글입니다.
http://www.blueprintinteractive.com/blog/how-instagram-api-fancybox-simplified AuthenticationThe first thing we need is an access token. Instagram uses OAuth 2.0 protocol for simple, but effective authentication. I could tell you how to retrieve access tokens but then I'd have to kill you (And everything I've done is documented on Instagram's Developer page). Instead, to make your lives easier, ..
http://crm.vpscheap.net/knowledgebase.php?action=displayarticle&id=291. Delete Existing RulesBefore you start building new set of rules, you might want to clean-up all the default rules, and existing rules. Use the iptables flush command as shown below to do this.iptables -F (or) iptables --flush2. Set Default Chain PoliciesThe default chain policy is ACCEPT. Change this to DROP for all INPUT, F..
8. 매핑8.1 매핑(_mapping) API예제 8.1 books 인덱스의 매핑 확인curl 'http://localhost:9200/books/_mapping?pretty' 예제 8.2 books/book 인덱스/타입에 read 필드 추가curl -XPUT 'http://localhost:9200/books/_mapping/book' -d ' { "book" : { "properties" : { "read" : { "type" : "boolean" } } } }' 예제 8.3 read 필드 추가 후 books 인덱스의 매핑 확인curl 'http://localhost:9200/books/_mapping?pretty' 8.2 내장필드예제 8.4 인덱스 생성 시 내장필드 설정PUT / -d ' { "ma..
7. 질의(QueryDSL)7.1 쿼리7.1.1 텀, 텀즈 쿼리예제 7.1 title 필드 값이 prince인 도큐먼트를 텀 쿼리로 검색curl 'localhost:9200/books/_search?pretty' -d ' { "query" : { "term" : { "title" : "prince" } } }' 예제 7.2 Prince로 검색하면 저장된 텀과 다르므로 결과에 나타나지 않음curl 'localhost:9200/books/_search?pretty' -d ' { "query" : { "term" : { "title" : "Prince" } } }' 예제 7.3 텀즈 쿼리를 이용해서 prince, king 텀 검색curl 'localhost:9200/books/_search?pretty' -d..
6.1 페이셋예제 6.1 hotels 인덱스 매핑 설정curl -XPUT http://localhost:9200/hotels/ -d ' { "mappings" : { "hotel" : { "properties" : { "name" : { "type" : "string" }, "stars" : { "type" : "long" }, "rooms" : { "type" : "long" }, "location" : { "type" : "geo_point" }, "city" : { "type" : "string" }, "address" : { "type" : "string" }, "internet" : { "type" : "boolean" }, "service" : { "type" : "string", "index..
5. 검색예제 5.1 5_1_books.json 파일 내용을 벌크 API로 입력curl -XPOST localhost:9200/_bulk --data-binary @5_1_books.json curl -XPOST localhost:9200/_bulk --data-binary @5_2_magazines.json 5.1 검색(_search) API예제 5.2 books 인덱스, book 타입에서 hamlet 검색curl 'localhost:9200/books/book/_search?q=hamlet&pretty' 예제 5.3 books 인덱스에서 hamlet 검색curl 'localhost:9200/books/_search?q=hamlet&pretty' 예제 5.4 books, magazines 인덱스에서 t..
템플릿 같은거 있으면 좋긴 할텐데;;; https://github.com/joshcam/PHP-MySQLi-Database-Class InitializationTo utilize this class, first import MysqliDb.php into your project, and require it.require_once ('MysqliDb.php');After that, create a new instance of the class.$db = new MysqliDb ('host', 'username', 'password', 'databaseName');Its also possible to set a table prefix:$db->setPrefix ('my_');Next, prepare your..
https://www.youtube.com/user/sentdex
https://github.com/guari/eclipse-ui-theme
□ Repetition metacharacters Regex: /apples*/String: "apple apples applesssssss" Regex: /apples+/String: "apple apples applesssssss" Regex: /apples?/String: "apple apples applesssssss" Regex: /\d\d\d\d*/String: "123456789 1234 123 12" Regex: /\d\d\d+/String: "123456789 1234 123 12" Regex: /[a-z]+\d[a-z]*/String: "abc9xyz"String: "a9xyz"String: "9xyz" Regex: /[a-z]+\d[a-z]*/String: "abc9xyz"String..
□ Defining a character setMatches single, lowercase vowelsRegex: /[aeiou]/ : aeiou 중에 하나String: "Bananas Peaches Apples" Regex: /gr[ea]y/String: "grey gray" Regex: /gr[ea]t/String: "great" Regex: /gr[ea][ea]t/String: "great graet greet graat" □ Character ranges Regex: /[ABCDEFGHIJKLMNOPQRSTUVWXYZ]ello/String: "Hello" Regex: /[A-Z]ello/ String: "Hello" Regex: /[A-Za-z]/String: "Hello"- [a-ek-ou-y..