PIXNET Logo登入

資訊鏟

跳到主文

很懶不喜歡更新的人

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 1月 10 週六 201503:44
  • Android: One line code to have multi-image in one viewpager



Your problem is similar to one CommonWare's blog. Multiple-View ViewPager Options There are three approach. One of those is override getPageWidth() in your PagerAdapter:
@Overridepublicfloat getPageWidth(int position){return(0.5f);}
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(107)

  • 個人分類:
▲top
  • 5月 18 週六 201302:00
  • Java Code: Upload files to php server












public static void Update() throws Exception {
    HttpClient httpclient = new DefaultHttpClient();
    httpclient.getParams().setParameter(
    CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
    
    HttpPost httppost = new HttpPost("http://mpss.csce.uark.edu/~tsumar/test/upload_file.php");
    File file = new File("image.jpg");
    
    MultipartEntity mpEntity = new MultipartEntity();
    ContentBody cbFile = new FileBody(file, "image/jpeg");
    mpEntity.addPart("file", cbFile);
    
    httppost.setEntity(mpEntity);
    System.out.println("executing request " + httppost.getRequestLine());
    HttpResponse response = httpclient.execute(httppost);
    HttpEntity resEntity = response.getEntity();
    
    System.out.println(response.getStatusLine());
    if (resEntity != null) {
        System.out.println(EntityUtils.toString(resEntity));
    }
    if (resEntity != null) {
        resEntity.consumeContent();
    }
    
    httpclient.getConnectionManager().shutdown();
}



 


 
 


(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(71)

  • 個人分類:
▲top
  • 5月 13 週一 201302:21
  • how to download image from any web page in java

Image image = null;
try
    URL url = new URL("http://www.yahoo.com/image_to_read.jpg");
    image = ImageIO.read(url);
} catch (IOException e) {
}
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(72)

  • 個人分類:
▲top
  • 10月 02 週二 201210:23
  • Swap Variables in C without using Temporary Variable

Reference Link : http://offclassroom.com/off-classroom/cc/282-swap-variables-in-c-without-using-temporary-variable.html


Hello friends! Being a final year computer engineering student, I have gone through so many C programming logics as a preparation of Interview (unfortunately still haven't got a chance to face it :-)
Recently one of my friends cleared the first two rounds of aptitude & programming and then got a chance to face the interview. He was asked so many logical questions on C & C++ . One of those question was, “How many different methods do you know to swap two variables without using a temporary variable?”
From this question, we can't give a particular answer as there might be so many logical solutions that can be used to swap two variables. I certainly know three:

Method 1: Swap two variables using + & - operators
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(56)

  • 個人分類:隨手筆記
▲top
  • 2月 23 週四 201204:20
  • 1+4+9+25...+n^2 Harmonic Series with n square

Formula:
 
1+4+9+25+...+n^2 = (n(n+1)(2n+1)) / 6
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(19)

  • 個人分類:隨手筆記
▲top
  • 10月 13 週四 201105:56
  • 關閉windows 7 系統音效

b1
不知道有沒有人也跟我一樣覺得 windows 7 的系統音效很煩人 每次按下一個鍵就有聲音 常常開機會被超大聲的開機音效嚇到 其實要關閉系統音效很簡單,只需要幾個步驟 比較簡單的步驟只要開啟右下角的音量控制
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(11,274)

  • 個人分類:
▲top
  • 8月 26 週五 201102:16
  • 用chrome的擴充軟件下載FACEBOOK整本相簿

cats
2011年由Google收購的廣告DoubleClick做了一個2011年全球百大網站排行榜給客戶們作參考,Facebook榮登第一名,
  
大部分人應該都有一個Facebook帳號,如果今天你想要備份你的或你朋友的相簿,不管是想要把你的相片換到另換一個伺服器,或著是單存的想要作一個備份都可以使用chrome的擴充軟體,這個擴充軟體不需要Facebook的認證,也不用登入Facebook,只要你有權限進入的相簿你都可以下載。
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(267)

  • 個人分類:網路生活
▲top
  • 5月 29 週日 201111:29
  • Launchy 2.5 :: 超快速開啟檔案

launchy1
是否有桌面滿滿都是東西的困擾? 每次要找都找不到東西
是否有每次要開啟某某檔案,就得一個一個資料夾開找程式檔,或著在 "開始"裡面一個一個慢慢找找得很頭大?
那麼這款軟體你一定會愛不釋手
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(160)

  • 個人分類:免費軟體
▲top
  • 11月 05 週五 201012:30
  • Min.us 一個超簡單分享照片的網站

11-04-01
大家想到上傳照片分享照片,最先想到的一定都是flicker facebook 或者是 無名
但是那些上傳都要經過一道一道手續
譬如..你一定要先有一個帳號 光是申請帳號就是一件很麻煩的事了
接下來你還要去尋找他們上傳照片的地方在哪
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(1,014)

  • 個人分類:網路生活
▲top
  • 10月 17 週日 201002:55
  • 超好用的網路電視機PPS

pps-1
電視已經變人生活中不可或缺得一像產品的 不管是吃飯的時候,無聊休閒的時候,或是睡前的時候, 大部分人都會待在電視機前面,就算沒什麼好看的也拼命轉台 在這邊跟大家介紹一款方便又快速的網路電視軟體  
(繼續閱讀...)
文章標籤

techdrew 發表在 痞客邦 留言(0) 人氣(545)

  • 個人分類:免費軟體
▲top
123»

熱門文章

  • (105)中國微軟抄襲plurk微網誌
  • (23)地圖日記最近流量大增的原因?!
  • (151)MIR:ROR Violet 公司出的新產品 RFID的家用型態?
  • (642)改變你螢幕的亮度 讓你晚上看螢幕不再刺眼 和 更舒適的睡眠
  • (8)GOOGLE在上次的發表會上推出的 "Real Time Search"
  • (37)Google Square
  • (105)抄襲噗浪程式碼 微軟認了
  • (62)工研院偕台廠 推出全球第一片USB 3.0薄型記憶卡
  • (569)CHROME外掛-GOOGLE短網址生產器(goo.gl)
  • (8)Google goggles 拍立尋 將不是概念

文章分類

  • 網路生活 (6)
  • 隨手筆記 (3)
  • windows 7 (1)
  • google (6)
  • 免費軟體 (4)
  • 產品資訊 (2)
  • 未分類文章 (1)

最新文章

  • Android: One line code to have multi-image in one viewpager
  • Java Code: Upload files to php server
  • how to download image from any web page in java
  • Swap Variables in C without using Temporary Variable
  • 1+4+9+25...+n^2 Harmonic Series with n square
  • 關閉windows 7 系統音效
  • 用chrome的擴充軟件下載FACEBOOK整本相簿
  • Launchy 2.5 :: 超快速開啟檔案
  • Min.us 一個超簡單分享照片的網站
  • 超好用的網路電視機PPS

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: