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

October 31, 2008

Generic XML Display Utility for JavaScript : FromDev

There are many a times when we require to display the XML at client side using JavaScript . Most of the time when we are interacting with the web services the response is an XML response. The utility I have created is useful to display a …

There are many a times when we require to display the XML at client side using JavaScript . Most of the time when we are interacting with the web services the response is an XML response. The utility I have created is useful to display a …

There are many a times when we require to display the XML at client side using JavaScript . Most of the time when we are interacting with the web services the response is an XML response. The utility I have created is useful to display a …

There are many a times when we require to display the XML at client side using JavaScript. Most of the time when we are interacting with the web services the response is an XML response. The utility I have created is useful to display a …

There are many a times when we require to display the XML at client side using JavaScript . Most of the time when we are interacting with the web services the response is an XML response. The utility I have created is useful to display a …

Go here to see the original:
Generic XML Display Utility for JavaScript : FromDev

October 29, 2008

Oracle SQL Developer Debian Package « DJS Consulting Tech Blog

Filed under: JAVA, MYSQL, Oracle — Tags: , , , , , , , , , , , — midori @ 1:17 pm

Oracle SQL Developer is a Java-based tool that provides a graphical interface to a database. While it’s main focus is Oracle (of course), it can be hooked up, via JDBC, to many other databases, such as MySQL , PostgreSQL, and SQL Server .

Here is the original post:
Oracle SQL Developer Debian Package « DJS Consulting Tech Blog

October 22, 2008

Ensuring that your JavaScript Silverlight applications work with …

Filed under: Ajax, Asp.Net, JAVA, Javascript/Xhtml/Css, PHP — Tags: , , , , , — midori @ 1:35 am

Silverlight Blog ASP.NET PHP Java UX NextWeb Web2.0 JavaScript AJAX.

Silverlight Blog ASP.NET PHP Java UX NextWeb Web2.0 JavaScript AJAX.

Silverlight Blog ASP.NET PHP Java UX NextWeb Web2.0 JavaScript AJAX.

Silverlight Blog ASP.NET PHP Java UX NextWeb Web2.0 JavaScript AJAX.

Silverlight Blog ASP.NET PHP Java UX NextWeb Web2.0 JavaScript AJAX.

Read the rest here:
Ensuring that your JavaScript Silverlight applications work with …

October 21, 2008

Free Database Library For Ms Sql Server ,oracle And Mysql – C And …

any nice code that cleanly shows how to interact with a rdbms database such as ms access, oracle , ms sql server and mysql from a borland c++ will be appreciated. please let me know the needed libraries,include files and functions/objects …

Read more here:
Free Database Library For Ms Sql Server ,oracle And Mysql – C And …

October 20, 2008

Rhino + JavaScript + Swing, Look Ma No Java – Kyle Cordes

A while back I was discussing the future of programming languages with a colleague, and we agreed that for all its foibles, JavaScript will continue to enjoy very wide and increasing use in the coming years. …

A while back I was discussing the future of programming languages with a colleague, and we agreed that for all its foibles, JavaScript will continue to enjoy very wide and increasing use in the coming years. …

A while back I was discussing the future of programming languages with a colleague, and we agreed that for all its foibles, JavaScript will continue to enjoy very wide and increasing use in the coming years. …

A while back I was discussing the future of programming languages with a colleague, and we agreed that for all its foibles, JavaScript will continue to enjoy very wide and increasing use in the coming years. …

A while back I was discussing the future of programming languages with a colleague, and we agreed that for all its foibles, JavaScript will continue to enjoy very wide and increasing use in the coming years. …

View post:
Rhino + JavaScript + Swing, Look Ma No Java – Kyle Cordes

AjaxWorld Talk: Building a Great Ajax application from Scratch …

Now it is time to add a little ajax fun to the site. Notice as I page through the items I am getting a little blink

Now it is time to add a little ajax fun to the site. Notice as I page through the items I am getting a little blink? That is because the page is doing a full post-back to the server when only the images are changing. …

Read the original post:
AjaxWorld Talk: Building a Great Ajax application from Scratch …

October 10, 2008

VSTO 上で Win フォームの DataGridView のデータを渡す方法

Filed under: .NET Framework — Tags: , , — Sayuri @ 6:13 pm

VSTO も当然ながら、Win フォームのコンポーネントを作成して、ドキュメントや作業ウィンドウから Win フォームを起動することができます。
作業ウィンドウで操作してしまえばよい部分はありますが、やはり、領域の問題などもあり、どうしても Win フォームを呼び出してから、値を取得しドキュメント上で利用するケースもあるかと思います。

このあたりは .NET の開発者であれば、あまり問題はないのかなと思いますが、.NET の開発がこれからという方にとっては不明な点があるかと思います。

今回は VSTO のドキュメント上から、Win フォームを呼び出して、DataGridView のデータをドキュメントに渡す方法についてご紹介したいと思います。

動き的には以下のような感じです。

手順:

1. コンテンツコントロールを3つ配置した Word ドキュメントを用意します。

2. Word 2007 ソリューションドキュメント上にボタンコントロールを配置します。

3. ソリューションで Windows フォームを作成し DataGridView を作成します。

※それぞれのボタンにDiaLog Result プロパティの値を設定します。

4. Form Load イベントに以下のような、DataGridView のデータを配置するコードを記述します。

private void Form1_Load(object sender, EventArgs e)
{

[Excel 開発]グラフの要素名と値を取得する方法

Filed under: C# — Tags: , , , , — Sayuri @ 2:54 pm

取得した名前から、DB や Web サービスから情報を追加で取得して、分析をおこなうようなシナリオも考えられます。

※一番右の要素をクリックした際のメッセージボックス

※一番左の要素をクリックした際のメッセージボックス

Excel VSTO でグラフと連動した動的なアプリケーションを作成する際に有効です。

以下手順です。

手順:

1. 任意のグラフ付きのブックを用意します。

2. VSTO で読み込み、以下のコードを記述します。

Sub elementChart_MouseDownHandler(ByVal Button As Integer, ByVal Shift As Integer, _

October 9, 2008

[C#] Nullable 型のボックス化

Filed under: C# — Tags: , , , — Sayuri @ 12:26 pm

窓際プログラマーの独り言 -C#の話題を中心に:Nullable型のType より


int? a = 10;
Type type = a.GetType();
Console.WriteLine(type.Name);

を実行すると、

Int32

って表示されるんだ。



a = null;
type = a.GetType();

だと、
「オブジェクト参照がオブジェクト インスタンスに設定されていません。」
と、例外が発生する。



へー、そんな動きするんですね。
ちょっと調べてみましたところ、CLR の動作によるもののようでした。

まず、GetType メソッドは Object クラスで定義されている非仮想メソッドなので、GetType メソッドを値型に対して呼び出す際はボックス化が必要になります (Nullable 型は値型です) 。
そして、Nullable 型をボックス化する際、CLR は特別な動作をします。
Nullable 型が (論理的に) null である場合、ボックス化を行わず (正真正銘の) null を返します。
Nullable 型が (論理的に) null でない場合、Nullable 型が保持している生 (?) の値をボックス化して返します。
ということで、Nullable 型に対して GetType メソッドを呼び出しても、生の値、あるいは null に対して呼び出されてしまうというわけです。

[ .NET ] .NET Framework JIT 最適化にも負けずに呼び出し元のメソッドを取得する方法

Filed under: C# — Tags: , — Sayuri @ 12:04 pm

StackFrame クラス (System.Diagnostics) を使用すると、呼び出し元メソッドを取得することができる。しかし、Release ビルドされたアセンブリでは JIT 最適化により呼び出し元メソッドがインライン化されている可能性がある。
例えば、次のコードの実行結果を Debug ビルドと Release ビルド (非デバッグ実行) とで比較すると一目瞭然だ。

using

Older Posts »