Time of Update: 2015-04-02
標籤:使用Spring整合 @Resource JdbcTemplate tm; /** * * @Title: save * @Description: 批量儲存,大量刪除與此方法類似 * @author * @param * @return v
Time of Update: 2015-04-02
標籤:spring security filter 原創文章,歡迎轉載!轉載時務必保留:作者:jmppok ;出處http://blog.csdn.net/jmppok/article/details/448335451.applicationContext-secrity.xml配置<?xml version="1.0"
Time of Update: 2015-04-02
標籤:直接湊了個公式帶入,沒想到直接ac了,至於題解中的期望可加性可以參考機率論相關知識 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #include<cstring> 5 #include<cmath> 6 #include<queue> 7 using namespace std; 8 #define for0n
Time of Update: 2015-04-02
標籤:準備轉型做點spark相關的事情,開始學習scala,對於初學者來講,用eclipse開發scala有點太重了,因此用上sublime text1)參考資料:http://developer.51cto.com/art/201401/426592.htmhttp://heipark.iteye.com/blog/20412052)安裝步驟 a) jdk 安裝,注意scala 2.9.3貌似不能用jdk 1.8,使用的是jdk1.7 b)
Time of Update: 2015-04-02
標籤:c語言 sizeof strlen sizeof是C/C++中的關鍵字,它是一個運算子,其作用是取得一個對象(資料類型或者資料對象)的長度(即佔用記憶體的大小,以byte為單位)。當參數分別如下時,sizeof返回的值表示的含義如下:
Time of Update: 2015-04-02
標籤:#include<iostream>using namespace std;int a[20000],label[5000];//素數篩選int main(){ int n,max,j,t; while(cin>>n){ max=-1; for(int i=0;i<n;i++){ cin>>label[i]; if(label[i]>max)
Time of Update: 2015-04-02
標籤:SequenceTime Limit: 6000MS Memory Limit: 65536KTotal Submissions: 7762 Accepted: 2565DescriptionGiven m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a
Time of Update: 2015-04-02
標籤:DescriptionYou are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked to write a new data structure that would be able to return quickly k-th order statistics in the
Time of Update: 2015-04-02
標籤: 刪除鏈表中倒數第n個節點,需要考慮的細節:鏈表為空白時,鏈表只有一個節點時,n=1時。 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; *
Time of Update: 2015-04-02
標籤:代碼的管理,在日常開發中是很重要的環節,程式員的修鍊三部曲——版本控制,單元測試,項目自動化。本篇就簡單的說說通過msysGit來管理GitHub中的代碼,實現版本控制。svn與git 說到版本控制,就不得不提它的發展曆史。最開始流行的版本控制工具是cvs,但是cvs有個缺點,就是必須連網使用集中的程式碼程式庫;於是SVN登上曆史舞台,到現在很多公司都在使用SVN,它是一款集中式的管理代碼的工具,可以使多個人共同協助開發一款產品,並有很強大的分支標籤功能。 但S
Time of Update: 2015-04-02
標籤:openstack;殭屍執行個體openstack的執行個體記錄在nova資料庫的instances表中,最簡單的方式就是刪除該記錄。1.回收浮動IP解除綁定nova remove-floating-ip vm_name xx.xx.xx.xx放入ip池nova floating-ip-delete
Time of Update: 2015-04-02
標籤: 讀完了《wireshark網路分析就這麼簡單》。 關於技術的書也可以寫的這麼的妙趣橫生,我是像讀《盜墓筆記》一樣把它讀完的(筆者是盜迷),從第一章起,我就被裡面的內容深深吸引住了,我從來沒想過要改一改子網路遮罩,也從來沒想過改了之後能夠發生如此有趣的事情。作者林沛滿先生知識淵博而又幽默,把一個個技術難題寫得像生動的小說。
Time of Update: 2015-04-02
標籤:預設情況下我們需要將資料庫的編碼設定為lanin1.alter database hive character set latin1;但為了以下是為了支援hive建表時插入中文注釋 需要在mysql中做如下設定://修改欄位注釋字元集alter table COLUMNS_V2 modify column COMMENT varchar(256) character set utf8; //修改表注釋字元集alter table TABLE_PARAMS modify column
Time of Update: 2015-04-02
標籤:總結一下tableView的知識點1.tableView的建立 //tableView的建立 //1.初始化 UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStylePlain]; //2.設定屬性(行高, 分割線, 表頭, 表尾) tableView.rowHeight = 60;
Time of Update: 2015-04-02
標籤:時間格式基礎{dede:field name=‘pubdate‘ function=‘strftime("%Y年%m月%d日 %H:%M:%S","@me")‘ /}2007年1月1日 18:30:02{dede:field name=‘pubdate‘ function=‘strftime("%Y-%m-%d %H:%M:%S","@me")‘ /}2007-1-1 18:30:02{de
Time of Update: 2015-04-02
標籤:業務需求:將當天產生的資料寫入Hive分區表中(以日期作為分區)業務分析:利用MapReduce將資料寫入Hive表實則上就是將資料寫入至Hive表的HDFS目錄下,但是問題在於寫入至當天的分區,因此問題轉換為:如何事先建立Hive表的當天分區解決方案:1. 建立Hive表# 先建立分區表rcmd_valid_pathhive -e "set mapred.job.queue.name=pms;drop table if exists
Time of Update: 2015-04-02
標籤:c++ 多線程 c++11 cpp 並行 在最簡單最基礎的層面上說,並行是指兩個或更多的動作在同一時間發生,我們遇到的並行是生活中自然存在的,我們可以邊說話邊走或者每隻手都進行不同的動作,當然我們每個人都是我們的生活中彼此獨立的,你可以去看足球比賽當我遊泳的時候,等等。1.1.1
Time of Update: 2015-04-02
標籤:latex sublime 1.安裝Mik Tex2.安裝sublime text 3.03.安裝Sublime外掛程式LatexTool1)安裝Package Control 參考前一篇文章http://blog.csdn.net/turn88/article/details/448345912)在Sublime中,按Ctrl+Shift+P按鍵組合,輸入install,選擇Package
Time of Update: 2015-04-02
標籤:突然發現好久沒寫blog了,上一篇還是14年10月更新的,不是這段時間沒編碼,而是恰恰相反,這段時間實在太忙了,所以沒有時間更新項目中經常要製作報表而完全自己用poi產生報表太繁雜了,於是想用製作好的execl 替換資料實現報表的產生.我對這各功能做好了封裝,請看代碼:package com.newnewbank.utils.doc;import java.io.File;import java.io.FileInputStream;import
Time of Update: 2015-04-02
標籤:這道題目麻煩在輸出的時候需要按照字典序輸出,不過寫了 Compare 函數還是比較簡單的因為是裸的 Kruscal ,所以就直接上代碼了~ Source Code : //#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include <stdio.h>#include <iostream>#include <fstream>#include