Time of Update: 2018-12-03
最大矩陣和問題,簡單DPCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-03
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-03
今天的工作需求如下:有一個生產者負責產生來源資料,將資料插入到多個工作隊列中,每個工作隊列由一個線程池進行處理,即每個線程池中可以啟動多個線程對與其對應的工作隊列中的元素取出來進行處理。 我將業務需求抽象為一個“單生產者—多消費者叢集”模型,寫了一個類比代碼進行測試,明天打算把模型再套回到業務中去。import java.text.DateFormat;import java.util.Collection;import java.util.Date;import java.util.
Time of Update: 2018-12-03
1, Solr合并索引資料有兩種方法,第一種是1.4版本中引入的,通過CoreAdminHandler來實現,樣本如下:http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index 上述命令會將core1和core2的索引合并到core0中去,這裡最
Time of Update: 2018-12-03
1,今天收到警示資訊,說應用所在機器的硬碟空間不足了,上去一看,居然發現國慶這幾天的日誌資訊累計達到了260多G,可看了下應用下的日誌,實際只有幾十M而已,進一步check後發現是調用的第三方應用在另一個日誌路徑下打出大量的Debug資訊,回查代碼後才明白是Logback和Log4J的衝突問題,於是寫了一個類在應用啟動時將Log4J的層級調高至ERROR層級,代碼如下:public class Log4jInit {private static String
Time of Update: 2018-12-03
最近一個多月都在做身份證掃描識別,一直都用的一代證件的掃描器,今天拿到二代的了,對比下看看,果然二代的讀卡機看起來先進的多,而且還分成主從機,可以無線通訊的方式上傳資訊,果然厲害.聽說介面規範都是統一規定的,這點真是贊的。一代的(龐然大物啊)二代的(嘿,看起來像個移動硬碟吧)
Time of Update: 2018-12-03
在看jdk裡的collection framework這部分,小結一下: 1, Arrays.copyOf, System.arraycopy這兩個方法用得非常多。2, 比較兩個 Object是否相等if (o1==null ? o2 == null : o1.equals(o2))3, equals方法一般寫法 Public Boolean equals(Object o) { If (o == this) return true;
Time of Update: 2018-12-03
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/** * @author phinecos * @since 2008/10/31 */class EightQueen{ static final int MAXSIZE = 8;//棋盤大小 static int okTimes = 0; //解法個數 static int[]
Time of Update: 2018-12-03
“十年生死兩茫茫,不思量,自難忘。”東坡先生當年祭奠亡妻的句子,如今讀來依舊感人至深。人生在世如白駒過隙,歲月易逝,但真情永在,讓人回憶往昔仍有一種心靈的觸動。十年對於人的一生來說是一段時間,它並不能代表太多的變化,但也足以讓人有些回憶了。
Time of Update: 2018-12-03
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 We all know that FatMouse doesn't speak English. But now he has to beprepared since our nation will join WTO soon. Thanks to Turing
Time of Update: 2018-12-03
當然,指望憑藉一本書就可以學會如何在蘋果的App Store中賺得盆滿缽滿,顯然是不切實際的想法。不過這本書倒是可以讓你一窺蘋果App Store的發展現狀,市場營銷的策略,策劃和執行層面的流程,無論是對於開發人員,策劃,還是市場行銷人員,都是不無裨益的。社交網路的流行,免費增值模式的大行其道,以及蘋果公司自身的產品演化,包括iPhone,iPad等多個產品線的持續發展,都給廣大策劃和開發人員提供了一個實現自己想法的平台,我們可以在這個優秀平台的基礎上,認真分析市場需求,通過出色的外包和專案管理
Time of Update: 2018-12-03
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include <iostream>#include <vector>#include <algorithm> using namespace std;const int TIMEPERMOVE = 10;//每次分鐘const int MAXSIZE = 200;
Time of Update: 2018-12-03
計算幾何題,使用的數學公式參考http://topic.csdn.net/t/20050329/22/3892541.html Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-03
典型的貪心演算法,和前面1029一樣也是工作時間調度問題。Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-03
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>阿里西西網頁特效代碼示範中心-QQ線上客服代碼示範</title> </head> <body> <DIV id=divStay style="POSITION: absolute">
Time of Update: 2018-12-03
1,從前端傳過來的參數是"\u9676\u9676\u6D4B\u8BD5\u8D26\u53F701"這樣的unicode編碼,需要將其轉換為中文字串,發現java.util.Properties類中有一個loadConvert函數可以完成這件事,直接copy過來使用。public static String loadConvert(char[] in, int off, int len, char[] convtBuf) { if (convtBuf.length <
Time of Update: 2018-12-03
<HTML> <HEAD> <title>test</title> <style> #g_div{ text-align:right; overflow:hidden; } .b{ width:24px; height:16px; background:#737373; font-size:14px;
Time of Update: 2018-12-03
1,先說說今天體會最深刻的一點:寫python代碼,一個好的編輯器至關重要,這其中VIM確實是最佳選擇。由於python是根據縮排來判斷內容相關的,因此tab和空格使用不當會害死你的。一段代碼在Notepad++裡看起來對齊格式沒問題,可就是死活編譯不過,來到vim下一看,damn
Time of Update: 2018-12-03
<html> <head> <title>Tree View</title> <meta name="author" content="" /> <style type="text/css"> body{ font-size: 9pt; } .treeview-line-cross{
Time of Update: 2018-12-03
1mso-fareast-font-family:宋體;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin">,寫一本免費電子書。很早就有這個想法了,初步方向是firefoxmso-fareast-font-family:宋體;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Cal