技術者派遣の技術日誌ブログ

October 30, 2009

Struts 2 AJAX Autocomplete dropdown example : Struts-2-Developers

struts form, struts 2 ajax autocomplete drop down code example, Struts2 ajax autocomplete tutorial with sample code, struts 2 ajax auto complete drop down code download, struts training, apache struts training online …

struts form, struts 2 ajax autocomplete drop down code example, Struts2 ajax autocomplete tutorial with sample code, struts 2 ajax auto complete drop down code download, struts training, apache struts training online …

Read the original:
Struts 2 AJAX Autocomplete dropdown example : Struts-2-Developers

October 29, 2009

Newsflash: No more MySQL? « Wings of Wind Software

From a windows platform, the statement ‘ oracle didnt kill mysql ‘ appears to be complete garbage. So they designed the successor to 5.1 to crash all the time, huh ?

Go here to read the rest:
Newsflash: No more MySQL? « Wings of Wind Software

October 27, 2009

ASP.NET 3.5+jQuery Ajax実践サンプル集

Filed under: .NET Framework, Ajax, Asp.Net — Tags: , — SixYo @ 8:46 pm

概 要

ASP.NET、ASP.NET MVC、ASP.NET AJAXの開発者すべてに贈る、jQueryの基礎と活用サンプル満載の実践解説書です。JavaScriptのライブラリ「jQuery」を使えば、わずか数行のコードを記述するだけでアニメーションなどのエフェクトを組み込むことができます。さらにユーザーインターフェースに特化したプラグイン「jQuery UI」なども用意されています。本書では、ASP.NETでWebアプリケーションを開発した経験のある開発者を対象に、jQueryの基礎知識と、ASP.NET/ASP.NET AJAXにjQueryのプラグインを組み込んだサンプルについて解説します。メニュー、スタイルシート、ListView、AJAXなどのカテゴリごとに役立つサンプルが満載です! サンプルプログラムとjQueryセレクタテストツールのダウンロードサービス付き。 (more…)

EC Warned Of Oracle MySQL Dangers | eWEEK Europe UK

Filed under: MS SQL Server, MYSQL, Oracle — Tags: , , , , , , , — Sayuri @ 7:51 am

The main competitor is Microsoft [ SQL Server ], and that’s okay by us.” Mueller said he thought it was interesting that Oracle spoke up to say that MySQL doesn’t compete with its own products only after the EC issued questions about the …

Original post:
EC Warned Of Oracle MySQL Dangers | eWEEK Europe UK

October 26, 2009

C言語についての質問です(汗「Nを別途定義する記号定数として、1からNまでの階…

Filed under: C言語 — Tags: , — citiszo @ 6:52 pm

C言語についての質問です(汗
「Nを別途定義する記号定数として、1からNまでの階乗(1 * 2 *
… * N)の値を求めて表示するプログラムを int 型の変数と
for 分を用いて作成せよ」

お願いします。100枚出します。 (more…)

October 25, 2009

Python: 正規表現の基本 – 繰り返し「*」「+」「?」

Filed under: LAMP, Python — Tags: — Sayuri @ 2:49 am
Python: 正規表現の基本 - 繰り返し「*」「+」「?」
# coding: Shift_JIS

import re # 正規表現を扱うモジュールのインポート

# 正規表現のチェックプリント用の関数
def PrintRegMatch(pat, txt):
    #   書式: re.match(パターン, テキスト)
    m = re.match(pat, txt) # パターンにマッチしなかった場合はNoneを返す
    if m != None: print 'パターン"%s"はテキスト"%s"にマッチ「する」' % (pat, txt)
    else: print 'パターン"%s"はテキスト"%s"にマッチ「しない」' % (pat, txt)

txt = 'ABCDEFGH' # 探索される文字列をテキスト
                 # 探索する 文字列をパターン

# 「*」: 直前の文字の0回以上の繰り返しにマッチ
PrintRegMatch('.*CDE', txt)
PrintRegMatch('A.*H', txt)
PrintRegMatch('A*BC', txt)
PrintRegMatch('A.*BC', txt)
PrintRegMatch('A*', '')
print

# 「+」: 直前の文字の1回以上の繰り返しにマッチ
PrintRegMatch('.+DEF', txt)
PrintRegMatch('A.+H', txt)
PrintRegMatch('A+BC', txt)
PrintRegMatch('A.+BC', txt)
PrintRegMatch('A+', '')
print

# 「?」: 直前の文字の0or1回の繰り返しにマッチ
PrintRegMatch('^A?.+$', txt)
PrintRegMatch('^B?$', '')
PrintRegMatch('^C?E', 'E')
PrintRegMatch('A.?H', txt)
PrintRegMatch('BBB?C', 'BBC')

実行結果

パターン".*CDE"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A.*H"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A*BC"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A.*BC"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A*"はテキスト""にマッチ「する」

パターン".+DEF"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A.+H"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A+BC"はテキスト"ABCDEFGH"にマッチ「する」
パターン"A.+BC"はテキスト"ABCDEFGH"にマッチ「しない」
パターン"A+"はテキスト""にマッチ「しない」

パターン"^A?.+$"はテキスト"ABCDEFGH"にマッチ「する」
パターン"^B?$"はテキスト""にマッチ「する」
パターン"^C?E"はテキスト"E"にマッチ「する」
パターン"A.?H"はテキスト"ABCDEFGH"にマッチ「しない」
パターン"BBB?C"はテキスト"BBC"にマッチ「する」

October 24, 2009

Consuming ASP.net WebServices, WCF Services and static Page …

Filed under: ADO.NET, Ajax, Asp.Net — Tags: , , , , , , , — Sayuri @ 10:43 pm

,ASP.NET,JAVASCRIPT,JQUERY

The Microsoft ASP.NET AJAX platform, known previously as ATLAS and ASP.NET 2.0 AJAX Extensions and fully rolled into ASP.NET 3.5, offers rich functionality but in certain scenarios the the required .ASPX client page and ScriptManager …

The Microsoft ASP.NET AJAX platform, known previously as ATLAS and ASP.NET 2.0 AJAX Extensions and fully rolled into ASP.NET 3.5, offers rich functionality but in certain scenarios the the required .ASPX client page and ScriptManager …

Original post:
Consuming ASP.net WebServices, WCF Services and static Page …

WindowsXP・Windows7 RC・Ubuntu9.04のトリプルブート環境

Filed under: LAMP — Tags: , , , — Sayuri @ 3:44 pm

パソコンが1台しか無いので3種類のOSが共存する事になりました。
私的にはUbuntu9.04があれば特に不自由は感じないのですが、妻がXP環境でないと困ってしまいます。
それと先日公開のWindows7 RCも使ってみたいのでトリプルブートする事にしました。
正確には2段階のデュアルブートですね。
これはインストールするOSの順番さえ間違わなければ難しくはないです。
最初がXP、次にWin7rc、最後にUbuntuの順番です。
デュアルブートだけならWin7→Ubuntu9.04の順番。 (more…)

October 22, 2009

Excel VBA: 指定した行、列内のテーブルのセルに乱数を格納

Filed under: ALL — Tags: , — citiszo @ 7:51 am


今回のネタは乱数でサンプルデータを生成したいときなどに使えますかね。

ソースコード

01.Sub randloop()
02.    Randomize ' シードの設定(引数省略でシステムタイマーの値)
03.    Const GYO_S As Integer = 1 ' 開始行
04.    Const RETSU_S As Integer = 1 ' 開始列
05.    Const GYO_E As Integer = 10 ' 終了行
06.    Const RETSU_E As Integer = 5 ' 終了列
07.    Const UPPER As Integer = 100 ' 乱数の最大値
08.    Const LOWER As Integer = 0 ' 乱数の最小値
09.  
10.    ' 指定された行、列のテーブル内のセルに乱数を格納
11.    For i = GYO_S To GYO_E
12.        For j = RETSU_S To RETSU_E
13.            ' Rndは[0, 1)の範囲の値を返す
14.            Cells(i, j).Value = Int((UPPER - LOWER + 1) * Rnd + LOWER)
15.        Next j
16.    Next i
17.End Sub

実行結果は上図のように0~100の範囲の乱数(今回は整数)が格納されます。
上記のコードの要の式は

(upper - lower + 1) * Rnd + lower

です。簡単に意味を説明しますと括弧内の+1はRndの戻り値の範囲が1未満の為の補正で、式の最後の+lowerはRndの戻りが0の場合の補正、と捉えます。

October 20, 2009

mySQL founders fork on the post-Oracle future | Open Source …

Filed under: MS SQL Server, MYSQL, Oracle — Tags: , , , , , , , , — midori @ 12:19 pm

The co-founders of mySQL have profound disagreements on the future of the open source database following Oracle’s takeover. Monty Widenius wants my.

The rest is here:
mySQL founders fork on the post-Oracle future | Open Source …

Older Posts »

このページの上部に戻る

Powered by WordPress