锘??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-鎵€鏈夐殢绗斿尯http://www.67529968.com/all涓撴敞浜嶫ava鎶€鏈?/description>zh-cnMon, 25 Feb 2019 15:15:45 GMTMon, 25 Feb 2019 15:15:45 GMT60浠垮井淇¡ç殑IM鑱婂¤©鏃堕棿鏄剧¤º鏍煎紡(鍚玦OS/Android/Web瀹炵幇)[鍥炬枃+婧愮爜]http://www.67529968.com/jb2011/archive/2019/02/23/433651.htmlJack JiangJack JiangSat, 23 Feb 2019 08:54:00 GMThttp://www.67529968.com/jb2011/archive/2019/02/23/433651.htmlhttp://www.67529968.com/jb2011/comments/433651.htmlhttp://www.67529968.com/jb2011/archive/2019/02/23/433651.html#Feedback0http://www.67529968.com/jb2011/comments/commentRss/433651.htmlhttp://www.67529968.com/jb2011/services/trackbacks/433651.html闃?#29831;?#37711;¨æ枃

]]>
java future 绾跨¨‹妯¡å紡http://www.67529968.com/yangjunwei/archive/2019/02/18/433642.html鏉?#37712;涘¨鏉?#37712;涘¨Mon, 18 Feb 2019 02:08:00 GMThttp://www.67529968.com/yangjunwei/archive/2019/02/18/433642.htmlhttp://www.67529968.com/yangjunwei/comments/433642.htmlhttp://www.67529968.com/yangjunwei/archive/2019/02/18/433642.html#Feedback0http://www.67529968.com/yangjunwei/comments/commentRss/433642.htmlhttp://www.67529968.com/yangjunwei/services/trackbacks/433642.htmlpublic interface Data {
String getResult();
}
public class FutureData implements Data{
protected Data data=null;
protected boolean f=false;
public synchronized void setData(Data data) {
if(f) {
return;
}
f=true;
this.data=data;
notifyAll();
}
@Override
public synchronized String getResult() {
while (!f) {
try {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return data.getResult();
}
}
public class RealData implements Data{
protected  String s;
public RealData(String name) {
StringBuffer sb=new StringBuffer("");
for (int i = 0; i < 10; i++) {
sb.append(name);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
s=sb.toString();
}
@Override
public String getResult() {
// TODO Auto-generated method stub
return s;
}
}
public class Client {
public Data request(final String ss) {
final FutureData f=new FutureData();
new Thread() {
public void run() {
RealData r=new RealData(ss);//妯¡æ嫙澶?#37833;‚ç殑鏁版嵁灏佽?#21613;拰澶勭悊
f.setData(r);
};
}.start();
return f;
public static void main(String[] args) {
Client client=new Client();
Data d = client.request("123");
System.out.println(d.getResult());
}
}
public class FutureTest {
public static void main(String[] args) throws InterruptedException, ExecutionException {
ExecutorService e=Executors.newFixedThreadPool(11);
FutureTask<String> f=new FutureTask<>(new Callable<String>() {
@Override
public String call() throws Exception {
Thread.sleep(5000);
return "aa";
}
}); 
e.submit(f);
System.out.println(f.get());
}
}


]]>
POSIX 绾跨¨‹璇?#29785;? 涓€绉嶆敮鎸佸?#21613;­˜鍏?#27996;«ç殑?#30045;鎹峰伐鍏?#37510;?#26462;?#37510;?/title><link>http://www.67529968.com/xiaomage234/archive/2019/02/16/433640.html</link><dc:creator>灏忛©¬姝?/dc:creator><author>灏忛©¬姝?/author><pubDate>Sat, 16 Feb 2019 03:37:00 GMT</pubDate><guid>http://www.67529968.com/xiaomage234/archive/2019/02/16/433640.html</guid><wfw:comment>http://www.67529968.com/xiaomage234/comments/433640.html</wfw:comment><comments>http://www.67529968.com/xiaomage234/archive/2019/02/16/433640.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/xiaomage234/comments/commentRss/433640.html</wfw:commentRss><trackback:ping>http://www.67529968.com/xiaomage234/services/trackbacks/433640.html</trackback:ping><description><![CDATA[     鎽樿¦: from:https://www.ibm.com/developerworks/cn/linux/thread/posix_thread1/index.htmlhttps://www.ibm.com/developerworks/cn/linux/thread/posix_thread2/index.htmlhttps://www.ibm.com/developerworks/cn/linux/t...  <a href='http://www.67529968.com/xiaomage234/archive/2019/02/16/433640.html'>闃?#29831;?#37711;¨æ枃</a><img src ="http://www.67529968.com/xiaomage234/aggbug/433640.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/xiaomage234/" target="_blank">灏忛©¬姝?/a> 2019-02-16 11:37 <a href="http://www.67529968.com/xiaomage234/archive/2019/02/16/433640.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣¡¨璇勮®º</a></div>]]></description></item><item><title>MySQL鍔犻攣鍒嗘瀽銆?#26462;?#37510;?/title><link>http://www.67529968.com/xiaomage234/archive/2019/02/13/433636.html</link><dc:creator>灏忛©¬姝?/dc:creator><author>灏忛©¬姝?/author><pubDate>Wed, 13 Feb 2019 09:07:00 GMT</pubDate><guid>http://www.67529968.com/xiaomage234/archive/2019/02/13/433636.html</guid><wfw:comment>http://www.67529968.com/xiaomage234/comments/433636.html</wfw:comment><comments>http://www.67529968.com/xiaomage234/archive/2019/02/13/433636.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/xiaomage234/comments/commentRss/433636.html</wfw:commentRss><trackback:ping>http://www.67529968.com/xiaomage234/services/trackbacks/433636.html</trackback:ping><description><![CDATA[     鎽樿¦: from:http://www.fanyilun.me/2017/04/20/MySQL%E5%8A%A0%E9%94%81%E5%88%86%E6%9E%90/MySQL鍔犻攣鍒嗘?#24878;洰?#32141;鍓?#29815;€MySQL?#27537;閿佸¦‚浣?#37836;¥ç湅浜?#37716;¡ç殑鍔犻攣?#20751;鍐?#28051;?#37722;?#29831;?#37721;¥ç殑鍔犻攣?#20751;鍐?. 鏌?#29831;?#37723;?#28051;?#38001;氱?#22249;储?#32041;锛?#28051;?#38335;?#32497;¢å紩锛?. 鏌?#29831;?#37723;?#28051;­å敮涓€绱¢å紩3. 鏌?#29831;?#37723;?#28051;?#27996;?#32510;?#32497;¢å紩锛堥潪?#25966;涓€绱¢å紩锛?. 鏌?#29831;?#23052;?#37832;?#37723;?#28051;?#32497;¢å紩5. 瀵?#32497;¢å紩閿?#37706;?#37832;?#28103;®æ敼6. 鎻?#37711;?#37825;版嵁闅愬紡?#25891;涓€...  <a href='http://www.67529968.com/xiaomage234/archive/2019/02/13/433636.html'>闃?#29831;?#37711;¨æ枃</a><img src ="http://www.67529968.com/xiaomage234/aggbug/433636.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/xiaomage234/" target="_blank">灏忛©¬姝?/a> 2019-02-13 17:07 <a href="http://www.67529968.com/xiaomage234/archive/2019/02/13/433636.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣¡¨璇勮®º</a></div>]]></description></item><item><title>鏁寸悊浜?#37832;€杩戠櫨骞寸殑钘忓?#21976;?#29256;嵁?#32029;鍋?#27996;?#28051;?#37711;¬å巻钘忓巻鏄?#28751;勭殑灏忓伐鍏?/title><link>http://www.67529968.com/emu/archive/2019/01/30/433627.html</link><dc:creator>emu</dc:creator><author>emu</author><pubDate>Wed, 30 Jan 2019 05:34:00 GMT</pubDate><guid>http://www.67529968.com/emu/archive/2019/01/30/433627.html</guid><wfw:comment>http://www.67529968.com/emu/comments/433627.html</wfw:comment><comments>http://www.67529968.com/emu/archive/2019/01/30/433627.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/emu/comments/commentRss/433627.html</wfw:commentRss><trackback:ping>http://www.67529968.com/emu/services/trackbacks/433627.html</trackback:ping><description><![CDATA[@import url(http://www.67529968.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); 杩囧幓涓?#39582;?#28051;€鐩?#38318;藉湪?#30241;骞?#38040;忓?#21976;?#26495;勾鍓嶈?#28844;硶鎷垮?#29256;柊涓€骞寸殑钘忓?#21976;?#29256;嵁鏇存柊鍒拌嚜宸辩殑<a href="https://github.com/stonelf/zangli">涓€涓猤ihub椤?#37929;?/a>閲岄潰?#32029;浠婂勾涓?#26473;戣?#24531;?#21976;?#26495;勾?#32029;鍗?#37721;戠幇浠?#23536;€?#27537;寰?#28598;氳?#24531;巻缃戠珯閮?#23052;?#37832;?#37831;存柊鏄庡?#23544;殑鏁版嵁浜†ï紝姝?#28610;藉紕鍒?#27996;?#37832;€杩?#28051;€?#27368;骞寸殑钘忓?#21976;?#29256;嵁?#32029;鑺?#27996;嗙‚¹鏃堕棿鍏?#38318;?#38318;?#37831;存柊浜?#26473;涘幓?#32029;椤轰究<span style="caret-color: #444444; color: #444444; font-family: Tahoma, Arial, Helvetica, sans-serif; background-color: #ffffff;">鐢?#29831;?#27996;?#28051;€涓?#26473;?#28051;?#38335;™ç殑?#29017;鍚?zangli.pro?#32029; </span>鍙?#29999;?#27996;?#28051;€涓ªæ柊缃戠珯<a href="https://www.zangli.pro">?#27368;骞?#38040;忓巻</a>?#32029;鏂?#28186;垮¤§瀹堕殢鏃?#37836;?#29831;?#37812;?#38000;呭湪?#22172;宸辩殑浜§å搧涓?#37929;存帴?#32041;?#25956;钘忓巻鍏¬å巻?#27537;鎹?#32480;楄剼鏈?#37510;?img src ="http://www.67529968.com/emu/aggbug/433627.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/emu/" target="_blank">emu</a> 2019-01-30 13:34 <a href="http://www.67529968.com/emu/archive/2019/01/30/433627.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣¡¨璇勮®º</a></div>]]></description></item><item><title>java.lang.ClassCastException 涓?#28051;?#28051;€鏍风殑绫?#28051;?#38003;藉己杞?/title><link>http://www.67529968.com/jlin/archive/2019/01/30/433626.html</link><dc:creator>fly</dc:creator><author>fly</author><pubDate>Wed, 30 Jan 2019 03:30:00 GMT</pubDate><guid>http://www.67529968.com/jlin/archive/2019/01/30/433626.html</guid><wfw:comment>http://www.67529968.com/jlin/comments/433626.html</wfw:comment><comments>http://www.67529968.com/jlin/archive/2019/01/30/433626.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.67529968.com/jlin/comments/commentRss/433626.html</wfw:commentRss><trackback:ping>http://www.67529968.com/jlin/services/trackbacks/433626.html</trackback:ping><description><![CDATA[<div>绯荤粺鎶?#38335;™ï細 java.lang.ClassCastException: com.entity.Job cannot be cast to com.entity.Job<br /><br />spring boot 椤?#37929;®å紩鍏?#27996;?spring?#27537;devtools 缁忓父浼?#27996;?#37922;?#26473;?#28051;?#38338;?#26864;?nbsp; ?#32029;褰撴妸杩?#28051;ªå紩鍏?#37721;?#23057;?#28751;?#28051;?#28028;氬嚭?#24135;浜?/div><div></div><div> <span style="white-space:pre"> </span><dependency></div><div>            <groupId>org.springframework.boot</groupId></div><div>            <artifactId>spring-boot-devtools</artifactId></div><div>        </dependency> </div><div></div><div></div><img src ="http://www.67529968.com/jlin/aggbug/433626.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.67529968.com/jlin/" target="_blank">fly</a> 2019-01-30 11:30 <a href="http://www.67529968.com/jlin/archive/2019/01/30/433626.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣¡¨璇勮®º</a></div>]]></description></item><item><title>vimhttp://www.67529968.com/yangaiyou/archive/2019/01/29/433625.html鏉¨ç埍?#24376;鏉¨ç埍?#24376;Tue, 29 Jan 2019 05:59:00 GMThttp://www.67529968.com/yangaiyou/archive/2019/01/29/433625.htmlhttp://www.67529968.com/yangaiyou/comments/433625.htmlhttp://www.67529968.com/yangaiyou/archive/2019/01/29/433625.html#Feedback0http://www.67529968.com/yangaiyou/comments/commentRss/433625.htmlhttp://www.67529968.com/yangaiyou/services/trackbacks/433625.html1. 鍒犻櫎琛?#37723;?#28000;?/span>
dd: 鍒犻櫎?#29238;鏍?#37813;€?#28266;?#27537;涓€鏁磋¡Œ(?#29238;?#25956;)
ndd: n涓?#37825;板瓧銆?#37714;犻櫎鍏?#37837;?#37813;€?#28266;?#27537;鍚?#28051;‹n琛岋紝渚?#28641;?0dd鍒?#37828;?#37714;犻櫎鍏?#37837;?#37813;€?#28266;?#27537;鍚?#28051;?0琛?br /> d1G: 鍒犻櫎鍏?#37837;?#37813;€?#28266;鍒?#32471;?#28051;€琛岀殑鎵€鏈?#37825;版嵁
dG: 鍒犻櫎鍏?#37837;?#37813;€?#28266;鍒?#37832;€鍚?#28051;€琛岀殑鎵€鏈?#37825;版嵁
d$: 鍒犻櫎鍏?#37837;?#37813;€?#28266;澶„ï紝鍒?#29831;?#29723;岀殑鏈€鍚?#28051;€涓?#28699;?#32471;?br /> d0: 閭?#28051;?#37828;?#37825;板瓧0,鍒犻櫎鍏?#37837;?#37813;€?#28266;鍒?#29831;?#29723;岀殑鏈€鍓嶉潰?#27537;涓€涓?#28699;?#32471;?br /> x,X: x鍚?#37722;?#37714;犻櫎涓€涓?#28699;?#32471;?鐩稿綋浜嶽del]鎸夐敭),X鍚?#37715;?#37714;犻櫎涓€涓?#28699;?#32471;?鐩稿綋浜嶽backspace]鍗?#38315;€鏍?#38335;? 
2. 鎻?#37711;?#37723;?#28000;?br />
I ?#28266;?#32139;鍓嶈?#23684;¦–鎻?#37711;?br /> A ?#28266;?#32139;鍓嶈¡Œ灏炬彃鍏?br /> o ?#28266;?#32139;鍓嶈¡Œ涔?#37722;庢彃鍏?#28051;€琛?br /> O ?#28266;?#32139;鍓嶈¡Œ涔?#37715;嶆彃鍏?#28051;€琛?/div>
3. 绉?#37716;?#37723;?#28000;?br />
w 鍚?#37715;?#32457;?#37716;?#28051;€涓?#37719;?#29831;?#38171;?#37711;?#37837;?#37707;滃湪鍗?#29831;嶉¦–閮?#38171;夛紝濡傛灉宸?#37714;拌¡Œ灏¾ï紝鍒?#26462;?#38007;?#28051;?#28051;€琛岃?#23684;¦–銆傛­¤鍛?#28000;?#36423;«ï紝鍙?#28000;?#28000;?#37831;¿l鍛?#28000;?#37510;?br />
b 鍚?#37722;?#32457;?#37716;?#28051;€涓?#37719;?#29831;?nbsp;2b 鍚?#37722;?#32457;?#37716;?涓?#37719;?#29831;?br /> 鍒版寚瀹氳?#23691;紝鍐?#37721;?琛?#37721;øP紝鍥?#26462;¦ï紝姣斿?#20637;Ÿ©鍒?40琛?#28751;?#37828;?nbsp;:240鍥?#26462;?br /> Ctrl + e 鍚?#28051;?#23114;?#37716;?#28051;€琛?br /> Ctrl + y 鍚?#28051;?#23114;?#37716;?#28051;€琛?br /> Ctrl + f 鍚?#28051;?#23114;?#37716;?#28051;€灞?br /> Ctrl + b 鍚?#28051;?#23114;?#37716;?#28051;€灞?nbsp;   
4. 鎷疯礉?#25328;绮樿创
yy 鎷疯礉?#32139;鍓嶈¡Œ
nyy 鎷疯礉?#32139;鍓?#37722;庡紑濮嬬殑n琛岋紝姣斿¦‚2yy鎷疯礉?#32139;鍓嶈¡Œ鍙婂…¶涓?#28051;€琛?#37510;?br />p  ?#28266;?#32139;鍓嶅厜鏍?#37722;?#32494;樿创,濡傛灉涔?#37715;?#28003;跨敤浜唝y鍛?#28000;?#37833;?#28598;?#37714;?#28051;€琛岋紝閭?#28052;?#28751;卞湪?#32139;鍓嶈?#23680;殑涓?#28051;€琛岀?#27199;创銆?br />shift+p ?#28266;?#32139;鍓嶈¡Œ鍓?#32494;樿创
...


]]>Neuroph寮€鍙?#26473;囩¨‹http://www.67529968.com/zhuyuanxiang/archive/2019/01/28/433623.html鏈?#26473;?#32520;?/dc:creator>鏈?#26473;?#32520;?/author>Sun, 27 Jan 2019 16:28:00 GMThttp://www.67529968.com/zhuyuanxiang/archive/2019/01/28/433623.htmlhttp://www.67529968.com/zhuyuanxiang/comments/433623.htmlhttp://www.67529968.com/zhuyuanxiang/archive/2019/01/28/433623.html#Feedback0http://www.67529968.com/zhuyuanxiang/comments/commentRss/433623.htmlhttp://www.67529968.com/zhuyuanxiang/services/trackbacks/433623.html

涓?#26462;藉?#26495;潃
  • neuroph-core-2.94?#32048;寮€鍙戠殑鏍稿績鍖?
  • neuroph-samples-2.94?#32048;浣跨敤杩?#28051;ªæ?#21976;?#21057;殑渚?#28699;?
  • Eclipse?#27537;瀹?#29761;咃細寤?#29825;?#37828;痡ava 2018-09浠?#28051;婄殑?#22679;鏈?
    • ?#21412;缃?#37413;淲indows?#21835;Preferences?#21835;Java?#21835;Build Path?#21835;User Libraries?#21835;New鈥?#28051;€涓?#37413;渘europh-2.94鈥濓紝鍐?#37413;淎dd External Jars鈥?#28751;?#37721;?#28000;?#37814;?#37929;?#37711;崇殑鍖?#37711;?#38318;?#28729;?#28052;夊湪杩?#28051;?#37721;?#38322;?#28051;嬮潰銆?
    • 涔熷彲浠?#28003;跨敤Maven?#21412;缃?#37510;?
  • 寤?#32468;?#26916;?#37929;?/h3>
    • ?#28266;Eclipse涓?#37714;涘缓涓€涓狫ava椤?#37929;?#37510;?

    ?#24714;瑙?#37808;熺煡鏈虹殑浠£ç爜

  • 鍗曞?#20635;?#29114;煡鏈猴細neuroph-samples-2.94.jar涓璷rg.neuroph.samples.PerceptronSample.class
    public SinglePerceptronAND() {
      // create training set (logical AND function)?#32048;鍒涘缓璁?#32513;冮泦锛?#32471;?#37722;?#38315;昏緫涓庡嚱?#26271;锛?/span>
      DataSet trainingSet = new DataSet(2, 1);trainingSet.addRow(...);
      // create perceptron neural network?#32048;鍒涘缓鎰熺煡鏈?涓?#28051;?#37711;¥ï紝涓€涓ªå嚭?#32029;灏?#37828;?#37832;€?#30045;鍗曠殑鍗曞眰涓€涓ªç?#28853;»鍏ƒç殑¼œ炵?#24533;綉缁?
      NeuralNetwork myPerceptron = new Perceptron(2, 1);
      // learn the training set?#32048;瀛?#28052;?#26473;?#28051;?#29825;?#32513;冮泦?#32029;灏?#37828;?#28051;?#27996;?#23536;?#37714;扮?#28853;?#24533;綉缁滅殑鍙傛暟
      myPerceptron.learn(trainingSet);
      // test perceptron?#32048;?#31092;璇?#26473;?#28051;?#37808;熺煡鏈猴紝‹‚€楠?#28729;?#29825;?#32513;ƒç殑鍙傛暟鏄?#37722;?#23005;?#32429;?/span>
      myPerceptron.setInput(trainingSet.get(0).getInput());
      myPerceptron.calculate();
      System.out.print("Input: " + Arrays.toString(trainingElement.getInput()));
      System.out.println(" Output: " + Arrays.toString(networkOutput));
    }
    


  • ]]>
    ÁùºÏͼ¿âͼֽӡˢÍø
    <optgroup id="iaykq"><small id="iaykq"></small></optgroup>
    <menu id="iaykq"></menu>
    <bdo id="iaykq"><nav id="iaykq"></nav></bdo>
  • <optgroup id="iaykq"><small id="iaykq"></small></optgroup>
    <menu id="iaykq"></menu>
    <bdo id="iaykq"><nav id="iaykq"></nav></bdo>