SXSSFWorkbook merge相同資料區的演算法

Workbook workbook = new SXSSFWorkbook(1000);private void merge(Workbook workbook,int sheetCount){for(int i =0;i<sheetCount;i++){Sheet sheetMeger = workbook.getSheet("報表頁-"+i);int lasetRowNum =  sheetMeger.getLastRowNum(); if(lasetRowNum >

mobile HTML5安全

把應用的端擴充到mobile自然而然會帶來安全的隱患,特別是對於我們基於HTML5來做跨平台的開發更是如此。HTML5提供了很多特性,各個平台都在努力的實現這些特性,開發人員也努力地在使用這些特性,以此求得不一樣地體驗。然而,事情都有兩面性,大多數web應用的安全措施都是基於傳統的HTML,沒有覆蓋到HTML5的新特性,下面來看看由於HTML5新特性而帶來的安全隱患:XSSCORS & CSRFClickjackingWeb storageWebSocketDesktop

基於Amazon EC2反向 ProxyGoogle App Engine

近來想重拾一下GAE(Google App Engine),可是GAE在中國被牆,我能想到的解決方案是找一個沒有被牆的伺服器做GAE的reserved proxy,於是乎我想到了Amazon EC2(其實有點沒事找事,如果真要建站直接在EC2上搞就得了,何必繞一圈)。這裡就不管這種解決方案是否最優,就權當作是一次對EC2的初步實戰的例子而已了。第一步:註冊EC2免費帳號在http://aws.amazon.com/free/註冊即可,

http 請求的資料格式

51 public HttpResponseMessage() {52 headers.put("Server", "HttpServer (" + Server.VERSION_STRING + ')');53 headers.put("Cache-Control", "private");54 headers.put("Content-Type", "text/html; charset=iso-8859-1");55

VI的一些 進階用法

今天看VIM手冊,又發現了一些很有用的操作.1. vimdiff filename1 filename2可以很方便的比較兩個檔案的不同.使用 [c 和 ]c 可以查看上一個或者下一個不同處.2. normal模式下 * 命令可以用於搜尋游標下的單詞.3. :split 用於水平分割視窗,   :vsplit 用於垂直分割視窗.Ctrl-W {j i k l} 可以在不同的視窗間切換4. syntax enable 開啟文法高亮.syntax off 關閉文法高亮.5. fx

前段架構的介紹

You should familiarize yourself with the following:·        JQuery http://jquery.com/·        Backbone http://backbonejs.org/·        Underscore http://underscorejs.org/·        HAML http://haml.info/·        Mustache http://mustache.github.com/·    

ajaxfileupload 檔案錯誤的解決

ajaxForm問題集錦,一個神奇的問題:使用ajaxForm提交表單上傳檔案後伺服器端返回json資料IE瀏覽器無法解析部落格分類: WEB前端J2EEjuqery form      最近做一個額照片上傳後裁剪的功能,用到 jquery form的ajaxform提交圖片儲存,然後根據返回的JSON字串直接在頁面上顯示出上傳的照片,並且使用jcrop進行裁剪儲存:JS代碼如下 Js代碼   $('#form_portrait').ajaxForm({  ataType: 'json',   

oracle_DBA 管理員的常用指令

oracle_DBA 管理員的常用指令1,運行SQLPLUS工具並以os的身份串連、並顯示目前使用者名    sqlplus    /as sysdba         show user2,直接進入sqlplus :sqlplus /nolog 在命令提示字元以os身份串連: connect /as sysdba3, 顯示目前使用者哪些列表:select * from tab;   顯示使用者名稱和賬戶的狀態:select username,account_status from

tomcat debug ,weblogic debug remote

tomcat server: export JPDA_ADDRESS=8000export JDPA_TRANSPORT=dt_socketexec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"tomcat client:   ip:   port:  weblogic: Locate startWSL.cmd and add the following variable DEBUG_OPTS:set DEBUG_OPTS = -Xdebug

lucene 和關聯式資料庫的使用

主要介紹如何周期性盡量即時地從RDBMS爬資料然後建索引,不涉及AOP或ORM Framework的listener方式。先決條件:Lucene索引是從無到有的,一開始所有資料都是儲存在RDBMS(Oracle)中。資料表有一列是updateTime或稱為lastModifiedTime用來儲存最後一次更新時間,並建有db索引主表必須要有主鍵,這個主鍵也用來唯一確定一個Lucene document。該策略大致可以分為以下幾個部分:1.索引結構2.初始化索引3.增量索引4.補償操作5.刪除檢測6

移動端本機存放區方案

雖然資料都有Server端提供,但移動程式開發一般都需要支援offline使用模式,因此需要移動用戶端本機存放區資料,我按資料類型不同分為三種實現方案:簡單資料(key-value):HTML5 Web Storage複雜資料(SQL):HTML5 Web SQL Database二進位檔案(File):File API & Phonegap plugin1)簡單資料(key-value)對於一般的簡單資料存放區,我推薦用key-value,一個是保持資料結構簡單,另外就是HTML5

經常訪問的網站

http://www.oschina.net/http://blog.csdn.net/v_JULY_vhttp://rdc.taobao.com/blog/cs/http://www.infoq.com/cn/zones/baidu-salon/http://open-open.com/http://www.iteye.com/http://www.csdn.net/https://www.ibm.com/developerworks/cn/http://developer.51cto.com

一些國外的it 網站

最近有些讀者給我來信說很喜歡這個網站上的文章,並且也想通過翻譯學習英文,他們詢問我這些文章的英文原文是從哪裡找到的?外刊IT評論上的翻譯的英文來源很雜,我總結了一下,大概有幾個集中的出處,下面列舉出來供大家學習參考:1.TheServerSide這是一個老牌的IT資訊網站,從名稱上你就能看出,它是關注伺服器端編程的,以Java和Java周邊資訊為主,不過最近它也有向用戶端和微軟產品擴充的趨勢。這個網站最初是以免費發放《Mastering Enterprise

GC 參數介紹

作者:Ken WuEmail: ken.wug@gmail.com轉載本文檔請註明原文連結 http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm! 本文是基於最新的SUN官方文檔Java SE 6 Hotspot VM

tomcat 7 管理員設定

  401 Unauthorized401 UnauthorizedYou are not authorized to view this page. If you have not changed any configuration files, please examine the fileconf/tomcat-users.xml in your installation. That file must contain the credentials to let you use

一些技術的參考網站

Required ReadingSkip to end of metadataAttachments:1Added by jan.drake, last edited by Andrew Bliven on Feb 27, 2013  (view change)Go to start of metadataThis is an annotated reading list for technical background on technologies and principles used

mongo db replication process

[tom@Agilysys:data]$mongod --replSet myapp --dbpath ~/mongoreplicate/data/node1 --port 4000[tom@Agilysys:data]$mongod --replSet myapp --dbpath ~/mongoreplicate/data/node2  --port 4001[tom@Agilysys:data]$mongod --replSet myapp --dbpath

lucence 的一些翻譯

封裝一個使用Lucene API的通用搜尋函數public interface DocFetcher<T> {public T get (Document doc);}private IndexSearcher searcher;private Analyzer analyzer; /** * @param fields - fields that this search bases on * @param keywords * @param flags - indicates

how to set up tomcat https

How to set up Tomcat for HTTPSSkip to end of metadataAdded by Rebecca Fink, last edited by Rebecca Fink on Mar 29, 2013Go to start of metadataThe simple fast way to enable SSL connections with server certificate:1) Generate keystore and self-signed

datanucleus 最好的實踐sql 和no sql 資料庫

http://www.datanucleus.org/products/accessplatform/features.htmlhttp://www.datanucleus.org/project/usage.htmlJDO vs JPAOne of the main reasons for choosing DataNucleus in particular is that it is really the only full-featured (and free open source)

總頁數: 61357 1 .... 13631 13632 13633 13634 13635 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.