Let's go inside

          this blog is deprecated as a result of laziness.
          posts - 59, comments - 2, trackbacks - 0, articles - 0

          2006年11月15日

          Hi,

          My cricket events are going fine. Very soon the domestic T20 cricket league in India will start. It is a gala event. It is called the Indian Premier League. Ours is a very good team. The name of our team is Kolkata Knight Riders. Very excited. Will go to the stadium and watch the games live. Tomorrow entire team in company are going for a movie. :)
          We just completed a sprint. We follow Agile SCRUM here. We worked on Spring Webflow, jQuery, JSP. Hope you are doing fine. In each step here I realize how helpful you have been and the lessons you taught me are coming to great advantage here. Thank you! I always feel that meeting you was a part of my destiny. Tell hi to Yu Ting as well. I miss her too.

          Thanks and regards,
          Rohan Ghosh,
          IT Professional.

          ================
          Hello,
           
             yes, I haven't watched the game yet. maybe I will watch the video this weekend. I've been practicing starcraft.
          I learned how to manipulate Vulture, how to use one vulture to kill a dozen of zealots or zerglings or something alike.

          ..
          about Kobe, he scored very low in the two games before this game against Mavericks.
          and was scolded by some public commentators. but we fandom will forever support him no matter he is in low or high spirit :D

          thanks for sharing me the news link.

          you have to confess the news is not exciting at all, it's a small victory among this season, we Kobe Fandom expect more

          how's your favorite cricket event

          posted @ 2012-03-30 21:00 Earth 閱讀(220) | 評(píng)論 (0)編輯 收藏

          today.. i enabled the comment function for my blog.

          anyone can leave comment here now.

          posted @ 2012-03-30 20:57 Earth 閱讀(342) | 評(píng)論 (0)編輯 收藏

          給一個(gè)陌生人做的作業(yè),

          要求如下:
          編寫一個(gè)TCP?Socket程序,采用圖形化的界面實(shí)現(xiàn),在服務(wù)器可輸入客戶端的IP地址和端口號(hào),程序根據(jù)該IP地址和端口號(hào)與客戶端建立連接,在服務(wù)器端輸入要發(fā)送的內(nèi)容點(diǎn)擊發(fā)送按鈕,就可以發(fā)送到客戶端,客戶端只接收服務(wù)器端發(fā)送的消息。

          正好在學(xué)SWT,?就一邊學(xué)一邊寫了,可以到這里去下載源代碼http://www.eclipseworld.org/bbs/read.php?tid=10290

          憑記憶總結(jié)一下期間碰到的問題,一個(gè)是如果button要處理一個(gè)可能會(huì)阻塞或耗時(shí)的事件,那個(gè)事件處理的需要放在一個(gè)新的Thread里邊。不然的話。界面沒法響應(yīng)其它的操作。

          另外如果要在新的線程里操作SWT中的元素比如文本框。必須像下面這樣處理。
          ?display.asyncExec(new?Runnable()?{
          ??public?void?run()?{
          ???listenButton.setEnabled(false);
          ??}
          ?});
          否則會(huì)拋出好像是什么invalid?access的異常。

          最后在進(jìn)行Socket編程的時(shí)候要把防火墻關(guān)掉。否則會(huì)拋出JVM_bind之類等莫名其妙的錯(cuò)誤

          哈哈,今天又發(fā)現(xiàn)了一個(gè)問題。。就是改成keyReleased()?以后。。還是要按照那個(gè)回貼的人來做。String?text?=?sendText.getText().trim()?+?lineS;

          因?yàn)槿绻l(fā)送的消息末尾沒有l(wèi)ine.separator的話。。在客戶端

          ???????BufferedReader?in?=?new?BufferedReader(
          ?????????new?InputStreamReader(socket
          ???????????.getInputStream()));
          ???????while?(true)?{
          ????????String?str;
          ????????while?((str?=?in.readLine())?!=?null)?{
          ?????????append(lineS?+?str);
          ????????}
          ????????Thread.sleep(500);
          ???????}
          就收不到?。消息的末端必須要有斷行符!呵呵。這樣in.readLine()才算讀到行尾才會(huì)打出來?。可以做一個(gè)試驗(yàn)。輸入a,點(diǎn)按鈕,client沒反應(yīng),再輸入b,點(diǎn)按鈕,client沒反應(yīng),再輸入c,?這次用Ctrl?+?Enter發(fā)送。這樣client一次打印出abc來。。呵呵?。!!明白了?!!!!!

          posted @ 2007-01-07 21:19 Earth 閱讀(1115) | 評(píng)論 (2)編輯 收藏

               摘要:   閱讀全文

          posted @ 2006-11-15 09:29 Earth 閱讀(1158) | 評(píng)論 (0)編輯 收藏

          主站蜘蛛池模板: 永城市| 德州市| 裕民县| 卢湾区| 德清县| 湖州市| 西华县| 南乐县| 小金县| 常宁市| 确山县| 黄山市| 建德市| 新平| 前郭尔| 噶尔县| 洞口县| 丰顺县| 乌兰察布市| 临猗县| 西安市| 康平县| 安顺市| 虹口区| 无为县| 卓尼县| 怀远县| 澄江县| 石林| 方正县| 日照市| 南川市| 云龙县| 六盘水市| 阿拉尔市| 海林市| 赞皇县| 温泉县| 南和县| 饶平县| 五大连池市|