Time of Update: 2015-08-14
標籤:postgres regress test PostgresSQL regress test最近看了下pg中的迴歸測試相關內容,現在將看到的內容記錄下來。1. 先來一個例子[[email protected] regress]$ make checkmake -C ../../../src/port allmake[1]: Entering
Time of Update: 2015-08-14
標籤:##思路,截取時可以判斷字元位置,如果含有多個,則可以一次截取字串後有多少位,再用len函數減去後字串的長度,截取剩餘欄位執行個體:01.001.005截取為01.001函數 select top 3 left(fnumber,LEN(fnumber)-CHARINDEX(‘.‘,fnumber)-1) ,LEN(fnumber)-CHARINDEX(‘.‘,fnumber)-1 右起,CHARINDEX(‘.‘,fnumber) 右起 from t_ICItem ##或反轉,
Time of Update: 2015-08-14
標籤:spring與thrift整合,可以使服務調用和發布更方便。本文代碼是在上篇基礎上改進,部分代碼介紹請參考上一篇Thrift的java和php資料互動(http://my.oschina.net/penngo/blog/489311)伺服器端spring配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/bean
Time of Update: 2015-08-14
標籤:hdu 拓撲排序 圖論 確定比賽名次 Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 37 Accepted Submission(s) : 28Problem
Time of Update: 2015-08-14
標籤:Triangle LOVETime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3496 Accepted Submission(s): 1357Problem DescriptionRecently, scientists find that
Time of Update: 2015-08-14
標籤:using System;using System.Collections.Generic;namespace ConsoleApplication6{ /// <summary> /// 從字面意思就可以明白,備忘錄模式就是對某個類的狀態進行儲存下來, /// 等到需要恢複的時候, /// 可以從備忘錄中進行恢複。生活中這樣的例子經常看到, /// 如備忘電話通訊錄,備份操作作業系統,備份資料庫等。 /// </summary>
Time of Update: 2015-08-14
標籤:昨天學習了楊寧老師的TCP/IP協議原理第一講和第二講,主要介紹了OSI模型,整理如下: OSI是open system innerconnection的簡稱,即開放式系統互聯參考模型,它把網路通訊協定從邏輯上分為了7層。即如所示:1.物理層:主要定義物理裝置標準,如網線的介面類型、光纖的介面類型、各種傳輸介質的傳輸速率等。它的主要作用是傳輸位元流(就是由1、0轉化為電流強弱來進行傳輸,到達目的地後在轉化為1、0,也就是我們常說的數模轉換與模數轉換)。這一層的資料叫做位元。2.
Time of Update: 2015-08-14
標籤: 偶然的機會,接觸到了AutoHotkey這個東西,覺得不錯,便花時間瞭解了一下。以此來記錄我在學習AutoHotkey時遇到的各種問題,以及我對其的解釋(有可能不專業甚至出錯)。 Time:2015-08-13開始接觸AutoHotkey. Q:為什麼多行熱鍵需要return,而單行熱鍵卻不需要? A:其實,單行熱鍵也有return語句,只不過在最後省略了而已。對比單行和多行,可以查看其中的差別: ;單行熱鍵#n::run notepad;多行熱鍵#n:: run
Time of Update: 2015-08-14
標籤:做了個小的DataGrid通過DataSet儲存為xml_測試,現在有一些問題,xml檔案一直為空白,DataGrid通過DataSet儲存為xml_測試綁定的DataSet不能添加到XML檔案中,請朋友們幫忙看看。類ItemList代碼<主要是一些ITEM屬性和dataSet的writexml方法>:using System;using System.Collections.Generic;using System.Linq;using System.Text;using
Time of Update: 2015-08-14
標籤: 題意:汽水瓶有三個部分cap+plastic bottle+ label(瓶蓋-瓶身-瓶底),給出資料:n為原瓶數,x,y,z為這三個部分可以用相應的數字換取新瓶子,求最大總瓶數。 類比(暴力) 1 //汽水瓶有三個部分-cap+plastic bottle+ label 2 //n為原瓶數 3 //x,y,z為這三個部分可以用相應的數字換取新瓶子,求最大總瓶數 4 #include<iostream> 5 #include<cstring> 6
Time of Update: 2015-08-14
標籤:ControlTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2247 Accepted Submission(s): 940Problem Description You, the head of Department of Security,
Time of Update: 2015-08-14
標籤: <select name="expireDay" id="expireDay" class="form-control" onchange="searchChange(this.options[this.options.selectedIndex].value);"><!-- <option value="" >---請選擇---</option>
Time of Update: 2015-08-14
標籤:原文:http://weibo.com/p/1001643874615465508614 微博平台研發作為微博的底層資料及業務支撐部門,已經經曆了5年的發展曆程。伴隨著從資料及業務暴髮式增長,我們在海量資料存放區方面遭遇了諸多挑戰,與此同時也伴隨著豐富經驗的積累。
Time of Update: 2015-08-14
標籤:通道題意:一棵樹,每個節點有一個點值(字元),問u子樹的深度為k的所有節點群組成的字串是否為迴文思路:搜出dfs序及該節點的深度,那麼u節點深度為K的那一段肯定在dfs序[l,r]區間內,然後對於迴文的處理,要麼這段異或和為0,要麼lowbit(x)=x代碼:#include <bits/stdc++.h>using namespace std;const int maxn = 500005;typedef pair <int, int> PII;vector
Time of Update: 2015-08-14
標籤:http://poj.org/problem?id=2186給定n頭牛,m個關係,每個關係a,b表示a認為b是受歡迎的,但是不代表b認為a是受歡迎的,關係之間還有傳遞性,假如a->b,b->c 則a->c,問有多少頭牛被其他所有的牛歡迎.統計出度為0的點,如果不為1,則表示不存在這樣的牛,為1的話就輸出這個集合點的數量. 1 #include <iostream> 2 #include <cstdio> 3 #include
Time of Update: 2015-08-14
標籤:開發詳解 wechat4j架構 發送訊息:基於上面access_token的邏輯,在構造發送訊息對象的時候請按照如下代碼.wechat4j和強力推薦的方法CustomerMsg customerMsg = new CustomerMsg(toUserOpenId);CustomerMsg發送訊息的方法sendText 發送簡訊sendImage 發送圖片訊息sendVoice 發送語音訊息sendVideo
Time of Update: 2015-08-14
標籤:leetcode原題Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.You may assume that the array is non-empty and the majority element always exist in the
Time of Update: 2015-08-14
標籤:Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.合并兩個有序鏈表/** * Definition for singly-linked list. * struct ListNode { * int val;
Time of Update: 2015-08-14
標籤:c++ stl 容器 set 紅/黑樹狀結構 set集合容器是使用紅/黑樹狀結構[一種二叉檢索樹的資料結構]來組織泛化的元素資料。元素資料的檢索使用的是二叉檢索樹的中序遍曆演算法,檢索的效率高於vector、deque、和list等容器,由於採用中序遍曆演算法可以將二叉檢索樹中的索引值由小到大遍曆出來,所以set集合容器蘊
Time of Update: 2015-08-14
標籤:最後一個字元正在挑戰一個CrackMe的你,把需要填寫的前面幾位密碼都正確猜出了,可是這最後一位密碼,好像藏得有點深。CrackMe的作者還挑釁般的在裡面藏了個.tar.gz檔案,解壓縮出來,裡面寫道你要的最後一個字元就在下面這個字串裡。這個字元是下面整個字串中第一個只出現一次的字元。