WebDriverとは WebDriverはWebブラウザを操作するためのJavaライブラリだ。WebアプリケーションのUIテストツールとして使用することが想定されており、JavaScriptを多用しリッチなUIを提供するアプリケーションのテストに効果を発揮する。 サポートするブラウザはFirefox、Safari(MacOS Xのみ)、Internet Explorer(Windowsのみ)となっている。また、実際のブラウザは使わずHtmlUnitを使用することも可能だ。この場合、Rhino(Javaで実装されたJavaScriptエンジン)を使用してブラウザ上で動作するJavaScriptの動作もエミュレートすることもできる。また、試験的にiPhone用のドライバの実装も進められているようだ。 同種のテストツールとしてはすでにSeleniumなどがあり、多くのユーザに利用されている。し
JGraphT JGraphTは、Javaのグラフライブラリです。グラフの描画ではなく、グラフ理論のモデルとアルゴリズムの方にフォーカスしています。とても使いやすかったので、紹介してみます。 無向グラフ UndirectedGraph<String, DefaultEdge> g = new SimpleGraph<String, DefaultEdge>( DefaultEdge.class); g.addVertex("a"); g.addVertex("b"); g.addVertex("c"); g.addEdge("a", "b"); g.addEdge("b", "c"); System.out.println(g.vertexSet()); System.out.println(g.edgeSet()); System.out.println(g.edgesOf("c"));
eclipse/pluginsの中にcom.sun.jna_3.0.5なるものが。class郡を覗くとJNIを呼ぶためのラッパっぽい感じなので気になって検索かけたら発見。https://jna.dev.java.net JNIなしでネイティブライブラリにJavaから直接アクセスできるものらしい。対応OSも充実している*1。 JNAはかなり便利にできている。もうJNI使わなくて良し。ライブラリに対応するインターフェースを用意して、その中に関数を定義しておき、そのインターフェース型を指定してネイティブライブラリをロードするという芸当ができる。メソッドに勝手にマッピングしてくれて実装したクラスインスタンスを作ってくれちゃうのだ! 以下はWin32APIのメッセージボックスだけの例。 import com.sun.jna.Native; import com.sun.jna.WString; im
Java Native Access (JNA): access native libraries with pure Java code.Unsigned types use the same mappings as signed types. A full list of mappings may be found here. Top Using Pointers and Arrays Primitive array arguments (including structs) are represented by their corresponding Java types. For example: // Original C declarations void fill_buffer(int *buf, int len); void fill_buffer(int buf[], i
Messages from the Original Author December 12, 2021: Hey, Justin, here. My career changed and I let the domain lapse. Over 10 years since the last release, I noticed that the project was still in use but had been forked a couple of times. I have a new need for syslog-based logging, so, I paid to get the domain back. Over the next few months, I intend to revisit the code base. December 10, 2021: Sy
Getting Started: Java This tutorial describes how to develop and deploy a simple Java project with Google App Engine. The example project, a guest book, demonstrates how to use the Java runtime environment, and how to use several App Engine services, including the datastore and Google Accounts. This tutorial has the following sections: Introduction Installing the Java SDK Creating a Project Using
デフォルトでは java.util.logging だけが core Tomcat で利用可能である。 Tomcat は,その [java.util.logging の] logger に向けて [処理をリダイレクトするように] ハードコードされた logging 実装の改名したパッケージを使っているからである。 代替的な logger の使用は,extra コンポーネントの構築後に利用可能である [言い回しがくどいのですが原文も Usage of alternative ... is available ... です] (extras components ドキュメンテーションを参照)。 extra コンポーネントは完全な commons-logging 実装を含んでいる。 [要するに,デフォルトでは java.util.logging 専用の簡易版 commons-logging
日頃より、アレスネットをご愛顧いただきまして誠にありがとうございます。 「ホームページサービス」のサービス提供は2016年1月31日をもちまして終了させていただきました。 これまで長らくご利用いただき、誠にありがとうございました。 今後も、皆様によりよいサービスをご提供させていただけるよう、サービス品質向上に努めて参りますので、何卒、ご理解いただけますようお願 い申し上げます。 <アレスネットをご契約のお客様へ> 後継サービスとして「userwebサービス」を提供させていただいております。 詳しくは、以下のリンクをご参照ください。 ▼「userwebサービス」のご案内 http://www.ejworks.info/userhp/alles/index.html 今後ともアレスネットをご愛顧いただけますようお願い申し上げます。 株式会社イージェーワークス アレスネット カスタマーサポート
良いコ-ドへの道―普通のプログラマのためのステップアップガイド 第5回メタプログラミング―Excelを使ったDSLを作ろう―その1 メタプログラミングとは? おっす、おらメタプログラマ! 前回まで「良いコードとは?」という観点から、「名前付け」「スコープ」「処理の分割」といったプログラミングで必須の基礎内容を解説してきました。今回は少し趣向を変えてメタプログラミングを取り上げます。メタプログラミングは「プログラミングをプログラムする」と言われますが、なんだかつかみどころがない概念に感じませんか? 実際、「メタプログラミングとは何ですか?」と聞くと、人によって回答がまちまちです。そんなメタプログラミングですが、使いこなすとたいへん強力です。それでは、メタプログラミングについて考えを深めていきましょう。 メタプログラミングの悩み まずは毎回好例、各界の代表者にメタプログラミングについて
リスト2 Step2:メタ情報をExcelに移動したコード public static void main(String[] args) throws Exception { byte[] bytes = FileUtils.readFileToByteArray( new File("data.txt")); DataTable config = new XlsReader( ┓ new File("config.xls")).read().getTable(0); ┛① MessageParser parser = new MessageParser(bytes, config); parser.parse(); } private static class MessageParser { ... private DataTable config; pu
Step1:ベタなコードで書いてみる まずはDSLなどを使わずにべたにコードを書くとリスト1のようになります。 まず①で固定長電文のファイルを読み込み、バイト配列に変換しています。バイト配列はそのままでは「配列の一部を取り出す操作」などが面倒です。ですので、②③で「ByteArray」という自作ユーティリティクラスを使用して、バイト配列を扱いやすくラップしています。 parseメソッドはデータの読み込み処理です。データがなくなるまで読み込み処理を繰り返します。④でそれぞれのデータ項目のサイズだけ順番にデータを読み込んでいます。同時にDate型への変換(toDate)や両端文字列の除去(trim)、Integer型への変換(toInteger)を行っています。⑤で1件分のデータを標準出力へ出力しています。実際に実行してみると図2の出力が得られます。 リスト1 Step1:ベタなコード p
良いコ-ドへの道―普通のプログラマのためのステップアップガイド 第5回メタプログラミング―Excelを使ったDSLを作ろう―その4 Step3:リフレクションAPIで変換ルールを動的に適用する Step3:リフレクションAPIで変換ルールを動的に適用する Step3ではいよいよ読み取ったデータの変換処理を組み込みます。変換ルールはデータ項目に応じて異なるので、リフレクションAPI(コラム参照)を使用して動的に変換処理を適用する必要がでてきます。 下ごしらえとして、変換ルール用のConverterというインタフェースを用意し、変換ルールごとにConverterを実装するクラスを用意します(リスト3~6)。ここでは、IntegerConverter、DateConverter、TrimConverterの3つのクラスを作成しました。これらはStep1のstaticメソッドtoInteg
2026-03-17: ICU 78.3 is now available — releases/tag/release-78.3 — Maven: com.ibm.icu / icu4j / version 78.3 This is a maintenance release. It supersedes ICU 78.1 and 78.2. ICU 78 updates to Unicode 17 (blog), including new characters and scripts, emoji, collation & IDNA changes, and corresponding APIs and implementations. It also updates to CLDR 48 (blog) locale data with new locales, and variou
Get an email when there's a new version of Flow-Based Programming ** Deprecated ** Important! All of the software on this web site has been deprecated, and has not been maintained since 2014. All of this software is now being maintained on Github - and can be obtained from https://github.com/jpaulm . Changes and enhancements are still ongoing, and while older software should still work, newer feat
id:n_shuyo:20060814:1155547412 と id:n_shuyo:20060815:1155613198 の続き。 pure Java な SSH-2 実装である JSch で ssh のコマンド実行を実装してみたが、Ganymed SSH-2 と比べてもコーディング上の特に大きな違いはなかった。 一方、ファイル転送では2つのライブラリの違いが大きく出る。 Ganymed では scp が実装されているが、JSch では scp の実装は行われていない( ChannelScp とやらを実装すれば対応できそうだし、実際 sample ディレクトリには ChannelExec を使って scp を記述した場合のサンプルコードが納められているので、おそらくポリシーとしてあえて scp は実装していないのだろう)。その代わりというのも変だが、sftp が実装されており、かなり
- Java can be used to implement SSH. JSch is a Java library that implements the SSH-2 protocol, allowing shell, exec, scp, and port forwarding functionality in Java applications. - JSch was developed solely by JCraft, Inc. and has been included in Eclipse and NetBeans IDEs since around 2005 to enable secure communication over SSH. - It sees widespread use in Apache projects and other software incl
JSch is a pure Java implementation of SSH2. JSch allows you to connect to an sshd server and use port forwarding, X11 forwarding, file transfer, etc., and you can integrate its functionality into your own Java programs. JSch is licensed under BSD style license. Why JSch? Originally, our motivation to develop this stuff is to allow users of our pure java X servers, WiredX, to enjoy secure X session
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く