我的Struts+Spring+Hibernate 架構

                  好久沒上來寫東西了,這些天業餘時間基本上就是2件事:打星際,如果有喜歡的朋友可以一起玩。另一件事就是參看網上開源的和我們公司的產品,自己打了一個簡單的架構,我想如果想瞭解,這個應該是最好的方式了,一步一步來,直到今天,我的架構已經可以正常運行了,IOC,AOP,交易管理,,都用在上面了,也是我瞭解了很多,當然主要感謝我的一個同事小韋,沒有他幫忙,不知道要多花多少時間。下一步我想我要在頁面顯示上作些文章,要把ajax(buffalo實現)用進來。  

MSN Space 遇到了 google page

                       Google Page 挑戰 MSN Space     今天,我的google page 帳號申請成功了,google 好像總是這樣,走Gmail之路,不會讓所有人想什麼時候註冊就什麼時候註冊,給人的感覺得到太容易,放棄的也太容易,很有意思哦。     剛剛上去看了下,還沒有時間去做,感覺和MSN Space 差不多,不過沒有msn做得好。不過我們需要等待,等待google給我們的驚喜,因為google太有創意了。    

asmlinkage 意義

linux 中很多系統調用的api 在函式宣告的地方都有一個: asmlinkage http://kernelnewbies.org/FAQ/asmlinkage  中說:The asmlinkage tag is one other thing that we should observe about this simple function. This is a #define for some gcc magic that tells the compiler that the

Floyd-Warshall 演算法

     Floyd-Warshall 演算法用來找出每對點之間的最短距離。它需要用鄰接矩陣來儲存邊,這個演算法通過考慮最佳子路徑來得到最佳路徑。 注意單獨一條邊的路徑也不一定是最佳路徑。 從任意一條單邊路徑開始。所有兩點之間的距離是邊的權,或者無窮大,如果兩點之間沒有邊相連。 對於每一對頂點 u 和 v,看看是否存在一個頂點 w 使得從 u 到 w 再到 v 比己知的路徑更短。如果是更新它。 不可思議的是,只要按排適當,就能得到結果 // dist(i,j)

任意長度正整數加法

   

Longest Common Subsequence

       遞迴的解法是:#include <stdio.h>int inline max(int a,int b){        return a >= b ? a : b;}int lcs(char * a, int la, char *b, int lb){        if(la < 0 || lb < 0 ) return 0;        if(a[la] == b[lb]) return 1 + lcs(a,la-1,b,lb-1);     

ClassLoader 與 設定檔

                    ClassLoader 與 設定檔   現在,無論是公司專屬應用程式還是小型項目,為了產品的靈活性、擴充性,   設定檔越來越多,以我自己嘗試的一個web應用來說,在xml設定檔中,   添加自己的配置參數或初始化參數時遇到的關於“參數的路徑與處理這個參數的類的classloader有關”,   比如,在我前面做的(小架構中),   <bean id="placeholderConfig"

一個分糖果遊戲的解法

 所有學生以圓形圍著老師,每個學生開始時均有偶數塊糖果,老師每吹一次哨子,每位學生拿出手中一半糖果給右側的同學,對任何一個學生,吹哨後,當手中的糖果數為奇數塊時,由老師補一塊給他(她),這樣下去,當每個學生手中的糖果數相同時,遊戲結束.輸入要求:遊戲測試不止一個,對於每個遊戲測試,輸入學生人數N,開始時每個學生手中的糖果數分別為多少(EVEN),輸入學生人數為"0"時,測試結束.輸出要求:對每個遊戲測試,輸出老師吹了幾次哨後,學生手中的糖果數相同,並且在同一行輸出學生手中相同的糖果數是多少.標準

s3c2440 支援 480X272 屏

 拿來的 s3c2440 的開發部帶的kernel 都是 800X640 的,而touch panel 只有 480X272通過查看代碼 mach_utu2440.c 中發現,其中已經定義了 #if    defined(CONFIG_FB_S3C2410_480X272)static struct s3c2410fb_mach_info utu2440_lcdcfg __initdata = {    .regs    = {        .lcdcon1 =   

git 打包的一個bash 函數

Here is my bash alias. The argument is the <branch name> to export.An example: cd /path/to/foo/ _gittar masterThe output is (time in ISO 8601 / UTC): ../foot-YYYYMMDD.HHMM.tar.gzfunction _gittar (){ local name=$(pwd) name=${name#

Longest Increasing Subsequence

   傳統上解決longest incresing subsequence 的演算法的時間複雜度是O(n^2)

HttpPost發送Json

1.public static JSONObject post(String url,JSONObject json){ 2. HttpClient client = new DefaultHttpClient(); 3. HttpPost post = new HttpPost(url); 4. JSONObject response = null; 5. try { 6. StringEntity s =

oneway in aidl

The oneway keyword means that if that call results in an IPC (i.e. the caller and callee are in different processes) then the calling process will not wait for the called process to handle the IPC. If it does not result in an IPC (i.e. they're both

一個典型的動態規規劃用

 DP 有兩種類型,一種是:Top-Down 一種是:Bottom-Up 。 DP 的典型的應用有幾種: 1、Coin change : is the problem of finding the number of ways of making changes for a particular amount of cents,n, using a given set of denominations d[1...m].    The problem is defined follows:   

5 升 3 升 容器,產生任何數量的水的演算法實現

You have a five-quart jug, a three-quart jug, and an unlimited supply of water (but no measuring cups). How would you come up with exactly four quarts of water? Note that the jugs are oddly shaped, such that filling up exactly "half" of the jug

HttpGet &&HttpPost方法發送header,params, Content

public static JSONObject post(String url,JSONObject json,Map<String, String> headers){ HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(url); JSONObject response = null;

Revser single link example code

      單鏈表倒序:

獲得手機內的視頻資訊集合

package com.sms.read;import java.io.File;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.database.Cursor;import android.os.Bundle;import android.os.Environment;import android.provider.MediaStore;import

判斷一個數字是否是迴文

據說是HuaWei 面試試題,不知道真假了。#include <stdio.h>int check(int m){        int n =m ,i,d = 0;        while(n)        {                d = d * 10 + n %10;                n /= 10 ;        }        return (d == m);}int checkstr(char * str){        int len, 

switch-case 這樣的文法

          第一次見到這種switch-case 的文法是在linux source code 中,自己模擬寫了一個小測試程式。#include <stdio.h>int main(){ int nr =rand() % 128; int *idx = &nr; switch (nr) {  case   1        : *idx = 0; break;  case   2    4: *idx = 1; break;  case   5   16: *idx 

總頁數: 61357 1 .... 12963 12964 12965 12966 12967 .... 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.