原创 [題解] ZOJ1002 -- Fire Net

因爲 N <= 4,所以算法選擇了回溯(暴搜= =)。 實現則是用了遞歸(迭代次數不會太深)。 從左上角開始依次枚舉每一個點,尋找空地(即未被佔用 / 未被火力封鎖) 1. 找到後,此點設爲fire,然後依次掃描四個方向直線上的點,並設

原创 nutch on hadoop 遇到 ls: 無法訪問data/segments: 沒有那個文件或目錄

將nutch部署在hadoop上運行 bin/crawl hdfs://localhost:9000/user/hadoop/urls data http://localhost:8983/solr/ 1 在generator完成

原创 nutch + solr —— 搭建初探

一. 環境: apache-nutch-1.8 solr-4.7.0 二. nutch配置提示: 1. 配置 nutch-site.xml <property> <name>http.agent.name</name> <va

原创 nutch + tomcat7 ——探索中

1.  附錄: http://www.cnblogs.com/skyme/archive/2012/06/13/2548239.html solr+tomcat配置+中文分詞IK配置  http://hpi-ls.blog.163

原创 彙編與接口——串口通信篇

彙編與接口(御姐控...= = 萬惡的搜狗輸入法) 學習FPGA + Verilog 的同學們,推薦一門書 《FPGA Prototyping by Verilog Examples》。 非常經典!裏面的講解,代碼很到位。 今天在調C

原创 Hadoop Error Log

1. 《Hadoop實戰》書中錯誤,運行WordCount例程的代碼應爲: javac -classpath hadoop-core-1.2.1.jar:lib/commons-cli-1.2.jar -d FirstJar WordCo

原创 Java串口通信——Error: no rxtxSerial

JAVA 寫完Java串口通信程序,運行,報錯: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDrive 解決: 把rxtxSerial.

原创 VS——dll放在哪?

新建工程之後,需要使用第三方庫。 DLL放在哪? 在資源管理器欄,右擊資源文件,添加項,將dll添加進來即可。

原创 Linux Play Log

1. 怎麼看Linux的位數 Terminal 輸入 uname -a 即可看到其架構。 ps. X86-64  -> 64位 2. Linux 下如何打開rar http://www.rarlab.com/download.htm 1

原创 Java串口通信——Notepad與Eclipse之迷

配置: 操作系統:WIndows 7-64 java -version: java version "1.7.0_45" 串口通信第三方庫RXTX: RXTXcomm.jar rxtxSerial.dll rxtxParallel.d

原创 IT博文推薦

1. UML建模學習 2. 人工智能,機器學習,模式識別,數據挖掘,信息檢索 看了一些文章之後的結論是: ML 主要指讓機器自己學習,不斷改進自己。 AI 是設計好的算法,讓機器自動做決策,一般來說還是人給機器設定規則。 DM 就比較偏

原创 [題解][LeetCode][Valid Parentheses]

題目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is

原创 [題解][LeetCode][Palindrome Number]

題目: Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers b

原创 [題解][LeetCode][Sort Colors]

題目: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacen

原创 [題解][LeetCode][Divide Two Integers]

題目: Divide two integers without using multiplication, division and mod operator. 題解: 位運算 最簡單的方法當然是直接 被除數減除數,直到爲0. 這樣太慢