These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
||||||||||||||||||||||||||||||||||||||||||||||||
それって、前から何度も言ってるじゃないか。 いまさら何いってるんだ。こいつは。という感想を持たれそうですが、頭では分かっていたつもりでしたが。 残念ながら。実践は出来ていませんでした。
yoya@awm.jp% cd myjxta2/binding/java/src/net/jxta/myjxta2/ yoya@awm.jp% ls CVS/ chat/ content/ net/ search/ util/ MyJXTA.java config/ core/ plugin/ ui/ソースコードの置き場所は、このようなディレクトリ構成になっています。
// [gonzo] don't display config dialog if a rules file is // specifiedと記されています。コードを眺めますと
String urlString = System.getProperty("net.jxta.myjxta2.config.url"); if (urlString != null) { try { configUrl = new URL(urlString); break; } catch (MalformedURLException mue) { } } else { urlString = "file:conf/PublicAdminRules.xml"; } <略> URL tryUrl = new URL( urlString );のように、コンフィグを生成する 雛型としてのルールファイルの取得元を決定するルーチンだと分かります。
private AdminRules buildRules() { AdminRules rules = new AdminRules(); rules.load(configUrl); rules.preprocess(); return rules; }
public void load(java.net.URL location) { ... FileReader fr = new FileReader(cacheFile); cachedRules = read( fr ); ... InputStreamReader isr = new InputStreamReader( location.openStream() ); adminRules = read( isr ); ... }実際の読み込み処理は、read のようです。 (例外処理をごっそり省いてます…)
import net.n3.nanoxml.IXMLParser; import net.n3.nanoxml.IXMLElement; import net.n3.nanoxml.IXMLReader; import net.n3.nanoxml.StdXMLBuilder; public IXMLElement read( Reader reader ) { IXMLParser parser = null; IXMLElement parsed = null; ... parser = XMLParserFactory.createDefaultXMLParser(); ... IXMLReader xmlReader = new StdXMLReader( reader ) parser.setBuilder( new StdXMLBuilder( new ConfigElement() ) ); parser.setReader( xmlReader); parsed = (IXMLElement) parser.parse(); ... return parsed; }また、JxtaBuilder 内での各設定項の生成処理を合わせて読みますと、 JXTA の設定ファイルが XML の形式であるという事から、 XML パーサ&ビルダを用いて、 力ずくで設定ファイルを作成しているように見えます。(汗…
// have to dig into implementation code to see if password has been configured. import net.jxta.impl.endpoint.tls.JTlsUtil; import net.jxta.impl.endpoint.tls.TlsConfig; ... void configure() { ... if (! reConfigure) { TlsConfig.init(rules.fetch("peer-config>peer-user-name"), rules.fetch("peer-config>peer-user-password")); } ...TlsConfig を使えば解決できそうです。
private void checkPassword() { // If the passwd exists, then validate it. // // We are called for three cases: // 1) Initial configuration of everything // passwd file does not exist // 2) Reconfiguration: passwd file exists // 3) Restarting the platfrom: passwd file exists String password = System.getProperty("net.jxta.tls.password"); String principal = System.getProperty("net.jxta.tls.principal"); if (password != null && principal != null) { return; } ...このように、Property の値を読み込んでチェックする必要があります。
import net.n3.nanoxml.IXMLReader; ...MyJXTA2 プロジェクトは、NanoXML のクラス郡を 「myjxta2/binding/java/lib/nanoxml-2.2.jar」に格納しています。
convert -geometry 200% src.jpg dest.jpgImageMagick 5.5.5 のドキュメント には、-resize オプションが載っていますが、 自分が使っている、covert (ImageMagick 5.2.9)は、古い為か
yoya@awm.jp% convert -resize 128x128 src.jpg dest.jpg convert: Unrecognized option (-resize).のようにオプションとして認識できませんでした。
convert -modulate 120,70 src.jpg dest.jpg
convert -gamma 2.3 src.jpg dest.jpg暗く調整する場合。
convert -gamma 0.8 src.jpg dest.jpgR/B/G について各々、1.7/1.0/0.8 の補正をかけたい場合、
convert -gamma 1.7/1.0/0.8 src.jpg test.jpg
convert -median 2 src.jpg test.jpg輪郭の明確な人物画などを 2ピクセル前後で平均化すると、 輪郭の線が不明確になり、壁紙等にしても邪魔にならなくなります。
yoya@awm.jp% wget http://www.ispras.ru/~knizhnik/goods-2.52.tar.gz <略> yoya@awm.jp% tar xvfz goods-2.52.tar.gz yoya@awm.jp% mv goods goods-2.52 yoya@awm.jp% cd goods-2.52readme.htm に従い、 ./configを実行します。
yoya@awm.jp% ./config Makefile is now prepared for generic Unix with gcc version 2.95.3 20010315 \ (release) compiler次に make & make install です
yoya@awm.jp% make cd src; make make[1]: 入ります ディレクトリ `/home/yoya/src/java/goods-2.52/src' g++ -fno-exceptions -I../inc -I. -Wall -c -O5 -g -DDEBUG_LEVEL=DEBUG_TRACE \ console.cxx <略> g++ -fno-exceptions -g -o ../bin/puturl puturl.o ../lib/libclient.a make[1]: 出ます ディレクトリ `/home/yoya/src/java/goods-2.52/src' # make install cd src; make install make[1]: 入ります ディレクトリ `/home/yoya/src/java/goods-2.52/src' mkdir -p /usr/local/goods/lib cp ../lib/* /usr/local/goods/lib mkdir -p /usr/local/goods/bin cp ../bin/* /usr/local/goods/bin mkdir -p /usr/local/goods/inc cp ../inc/* /usr/local/goods/inc make[1]: 出ます ディレクトリ `/home/yoya/src/java/goods-2.52/src'そして、実行パスに /usr/local/goods/bin/を含めます。
export GOODS_HOME=/usr/local/goods export PATH=${PATH}:${GOODS_HOME}/binインストールの作業はこれだけです。
yoya@awm.jp% cd examples yoya@awm.jp% make g++ -fno-exceptions -I../inc -I. -Wall -c -O5 -g -DDEBUG_LEVEL=DEBUG_TRACE \ cnxnPool.cxx cnxnPool.cxx: In method `nat4 Tree::pickBuggyLeaf()': cnxnPool.cxx:160: warning: control reaches end of non-void function \ `Tree::pickBuggyLeaf()' <略> g++ -fno-exceptions -I../inc -I. -Wall -c -O5 -g -DDEBUG_LEVEL=DEBUG_TRACE \ testtrans.cxx g++ -fno-exceptions -g -o testtrans testtrans.o ../lib/libclient.a以下の実行ファイルが生成されます。
bugdb guess2 spawn testdb testtrans unidb cnxnPool largedb testblob testsock tstbtree guess runtests testclu testtask tstrtreeこのうちの、guess を試します。 guess はニ択クイズのサンプルです。 覚えさせる動物を決めておいて、その動物の特徴を入力して覚えさせます。
yoya@awm.jp% goodsrv guess Initial map size of 4096 Kb allows an initial data file of 1048576 Kb, \ which exceeds the maximal limit of 262144 Kb; using 1048576 Kb as the \ maximum instead. 05:42.00 04-JAN-2003: Checkpoint 5 finished GOODS server started... server is up... >そして、同じ PC 上の別のコンソールから繋ぎます。 まずは人間の特徴を覚えさせます。
yoya@awm.jp% ./guess Think of an animal. Ready (y/n) ? y What is it ? human What is difference from other ? use advanced tools Think of an animal. Ready (y/n) ? y May be, use advanced tools (y/n) ? y May be, human (y/n) ? y It was very simple question for me... Think of an animal. Ready (y/n) ? n End of the gameこれで、人間が高度な道具を使う事を記憶させました。
yoya@awm.jp% ./guess Think of an animal. Ready (y/n) ? y May be, use advanced tools (y/n) ? n What is it ? bird What is difference from other ? fly Think of an animal. Ready (y/n) ? y May be, use advanced tools (y/n) ? n May be, fly (y/n) ? y May be, bird (y/n) ? n What is it ? insect What is difference from other ? crusty Think of an animal. Ready (y/n) ? n End of the gameそして鳥をイメージしてニ択を進めます。
yoya@awm.jp% ./guess Think of an animal. Ready (y/n) ? y May be, use advanced tools (y/n) ? n May be, fly (y/n) ? y May be, crusty (y/n) ? n May be, bird (y/n) ? y It was very simple question for me... Think of an animal. Ready (y/n) ? n End of the game辿り着きました。(^-^
unisock.cxx:18: stropts.h: No such file or directorystropts.h は SVRx系のヘッダファイルのようで、 NetBSD には存在しません。(emu の処理系は別です…)
エラー その2 (get_peer_name())#if defined(__FreeBSD__) || defined(__linux__)#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) #include <sys/ioctl.h> #else #include <stropts.h> #endif
unisock.cxx: In method `char * unix_socket::get_peer_name()': unisock.cxx:155: passing `int *' as argument 3 of \ `getpeername(int, sockaddr *,__socklen_t *)' changes signednessNetBSD の getpeername の第3引数の型である socklen_t は <sys/ansi.h> で unsigned int と定義されているのに、 int のポインタを引数で渡そうとしています。
エラーその3 (wcscoll(...))#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ > 3)#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ > 3) || \ defined(__NetBSD__) socklen_t len = sizeof(insock); #elif defined(_AIX) size_t len = sizeof(insock); #else int len = sizeof(insock); #else if (getpeername(fd, (struct sockaddr*)&insock, &len) != 0) { errcode = errno; return NULL; }
g++ -fno-exceptions -I../inc -I. -Wall -c -O5 -g -DDEBUG_LEVEL=DEBUG_TRACE \ class.cxx In file included from ../inc/class.h:14, from ../inc/goods.h:35, from class.cxx:11: ../inc/wstring.h: In method `int wstring_t::compareTo(const wstring_t &) \ const': ../inc/wstring.h:276: implicit declaration of function `int wcscoll(...)'NetBSD の <wchar.h> に wcscoll の定義はありません。 FreeBSD に合わせて NO_OS_UNICODE_SUPPORT を on にしてみます。
以下は、エラーにはなりませんが、 念のため、FreeBSD 側に処理を合わせるように修正しました。#if defined(__FreeBSD__)#if defined(__NetBSD__) || defined(__FreeBSD__) #define NO_OS_UNICODE_SUPPORT 1 #endif
inc/convert.h#if defined(__FreeBSD__)#if defined(__FreeBSD__) || defined(__NetBSD__) #include <sys/types.h> #endif
inc/ptask.h#if defined(__FreeBSD__)#if defined(__FreeBSD__) || defined(__NetBSD__) #include <sys/param.h> #define USE_HTON_NTOH #elif defined(__linux__) // // At Linux inline assembly declarations of ntohl, htonl... are available //
src/ctask.cxx:#if defined(__FreeBSD__)#if defined(__FreeBSD__) || defined(__NetBSD__) #include <sched.h> #endif
src/ptask.cxx:#if defined(__osf__) || defined(__FreeBSD__)#if defined(__osf__) || defined(__FreeBSD__) || defined(__NetBSD__) #define longjmp(b,s) _longjmp(b,s) // do not restore signal context #define setjmp(b) _setjmp(b) #endif
make install は Linux と同じです。#if !defined(__FreeBSD__)#if !defined(__FreeBSD__) || defined(__NetBSD__) struct sched_param sp; sp.sched_priority = PRI_OTHER_MIN + (PRI_OTHER_MAX - PRI_OTHER_MIN) * (pri - pri_background) / (pri_realtime - pri_background); SYSCHECK(pthread_attr_setschedparam(&t->thread_attr, &sp)); #endif
# make install cd src; make install mkdir -p /usr/local/goods/lib cp ../lib/* /usr/local/goods/lib mkdir -p /usr/local/goods/bin cp ../bin/* /usr/local/goods/bin mkdir -p /usr/local/goods/inc cp ../inc/* /usr/local/goods/incexamples はそのままコンパイルが通りますし、動作確認も Linux と同様ですので、 ここでは省略します。
さらには『健康エコナ』の製造工程で高温にさらすのでしょうか、 悪玉のトランス型不飽和脂肪酸が3.5%もあります (ヨーロッパでの分析によるもので、メーカー発表ではありません)。 これはバージンオリーブオイルの品質基準の、 たとえばオレイン酸のトランス型(エライジン酸)は0.05%以下に限る というレベルからすれば、とてもとても満足できるものではありません。 エキストラ・バージン・オリーブオイルにたくさんある抗酸化物質 (ファイトケミカルズ)も含まれておらず、生体膜を安定させるスクワレンもなく、 無味無臭の加工油がなぜ"健康"を名乗り、"特定保健用食品"に選ばれたのか 理解に苦しむところです。 これで筑波大学、鈴木正成教授や香川大学の松尾達博助教授らの実験結果のように 『血中中性脂肪が上昇しにくい』『脂肪がつきにくい』効果が確認できないとすれば、 何をか言わんやですつい最近、雪印の健康エコナのマーガリンを購入してしましました…
yoya@awm.jp% goodsrv unidb 0 Initial map size of 4096 Kb allows an initial data file of 1048576 Kb, which exc eeds the maximal limit of 262144 Kb; using 1048576 Kb as the maximum instead. 07:37.04 06-JAN-2003: Checkpoint 5 finished GOODS server started... server is up... >上記のターミナルを termina-1 と呼ぶ事にします。
yoya@awm.jp% goodsrv unidb 1 Initial map size of 4096 Kb allows an initial data file of 1048576 Kb, which exc eeds the maximal limit of 262144 Kb; using 1048576 Kb as the maximum instead. 07:38.00 06-JAN-2003: Checkpoint 1 finished GOODS server started... server is up... >この瞬間、terminal-1 に
>07:38.00 06-JAN-2003: Establish connection with server 1: "localhost:6101"の文字が出力されます。 これで、student DB から professor DB にリンクが張られました。
terminal-1> goodsrv unidb 0 terminal-2> goodsrv unidb 1と書かれていまして、 つい自分は別サーバで分散できるのではと勘違いして、つまずきました…
07:46.20 06-JAN-2003: Open session for client 'awm.jp:13933:0x808ae00'といった文字が出力されます。
yoya@awm.jp% unidb University database Total 0 student, 0 professors Menu: a) Add new student b) Add new professor c) Print information about student d) Print information about professor e) Print list of all students f) Print list of all professors g) Remove student i) Remove professor j) Transfer student k) Print advisor of student l) Print students of professor q) Quit >>まずは、生徒を追加してみます。
>> a ※ Add new student New student name: yoya Advisor name: D Diplom work: social No such professor: D <<< Press ENTER to continue >>>やはり、 存在しない教授を選んではいけないようです。
>> b ※ Add new professor New professor name: D Department: social <<< Press ENTER to continue >>> >> b New professor name: K Department: engineer <<< Press ENTER to continue >>> >> f ※ Print list of all professors Pr. D, number of students 0 Pr. K, number of students 0 <<< Press ENTER to continue >>>次に 生徒を登録します。
>> a New student name: yoya Advisor name: D Diplom work: engineer <<< Press ENTER to continue >>> >> e ※ Print list of all students yoya: engineer <<< Press ENTER to continue >>> >> k ※ Print advisor of student Student name: yoya Pr. D Department: social Number of students: 1 <<< Press ENTER to continue >>> >> l ※ Print students of professor Advisor name: D yoya: engineer <<< Press ENTER to continue >>>ついでに教授を変更をしてみます。
>> j ※ Transfer student Student name to transfer: yoya New advisor name: K <<< Press ENTER to continue >>> >> k ※ Print advisor of student Student name: yoya Pr. K Department: engineer Number of students: 1 <<< Press ENTER to continue >>>以上、unidb の簡単な動作確認でした。
yoya@awm.jp% unzip all.zip # ← jxta の daily buld <略> yoya@awm.jp% unzip jxtasearch.zip <略> yoya@awm.jp% cd search yoya@awm.jp% ls jxtasearch-59e-bin/ log/ websearch-59e-bin/ jxtasearch-shell-59e-bin/ stockprovider-59e-bin/api documents は
yoya@awm% unzip all_doc.zip yoya@awm% unzip jxtasearch_doc.zip <略> yoya@awm.jp% cd search yoya@awm.jp% ls examples/ log/ websearch/ jxtasearch/ shell/ websearch-59e-bin/ jxtasearch-59e-bin/ stockprovider-59e-bin/ jxtasearch-shell-59e-bin/ util/これで一通りのファイルを取得できました。
yoya@awm.jp$ cd websearch-59e-bin yoya@awm.jp$ ls war/ webprovider.war websearch.war yoya@awm.jp$ cp war/* $TOMCAT_HOME/webapps/ yoya@awm.jp$ ls lib/ goodsjpi.jar goodslib.jar jxta.jar jxtastarter.jar xerces.jar yoya@awm.jp$ cp lib/* $TOMCAT_HOME/common/lib/ yoya@awm.jp$ jxta.jar jxtastarter.jar xerces.jar yoya@awm.jp$ shutdown.sh ; startup.sh Using CATALINA_BASE: /usr/local/java/jakarta/tomcat-4 Using CATALINA_HOME: /usr/local/java/jakarta/tomcat-4 Using CATALINA_TMPDIR: /usr/local/java/jakarta/tomcat-4/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1_01 Using CATALINA_BASE: /usr/local/java/jakarta/tomcat-4 Using CATALINA_HOME: /usr/local/java/jakarta/tomcat-4 Using CATALINA_TMPDIR: /usr/local/java/jakarta/tomcat-4/temp Using JAVA_HOME: /usr/java/j2sdk1.4.1_01war をコピーしていますので、とりあえず画面は表示されます。
HTTP Status 500 - type Exception report message description The server encountered an internal error () that\ prevented it from fulfilling this request. exception javax.servlet.ServletException: Unable to find goods cfg file. at net.jxta.search.websearch.PreferencesService.\ getPreferencesService(PreferencesService.java:125) at net.jxta.search.websearch.OpensearchServlet.\ init(OpensearchServlet.java:136) at javax.servlet.GenericServlet.\ init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.\ loadServlet(StandardWrapper.java:924)動きませんでした。(ρ_;
URL res = c.getResource ("gonesilent.cfg"); if (res != null && res.getProtocol ().equals ("file")) { String cfgfile = res.getFile (); preferences = new PreferencesService (cfgfile); } else { throw new ServletException ("Unable to find goods cfg file."); }ここで、失敗していまして、 gonesilent.cfg をリソースで指定しないといけないようなのですが、 なにしろ、ドキュメントが見付からなくて…
- All the sources from the subprojects will be built. - The resulting .war files will be deploying to your servlet container's webapps directory - Dependent libraries (such as xerces.jar) will be deployed to your servlet container's lib directory. - A default JXTA configuration will be deployed to your servlet container's working directory. - The GOODS database configuration (goodsrv.cfg) is copied to your goods_db_home directory.あ…
yoya@awm.jp% cd /usr/local/goods/ yoya@awm.jp% ls bin/ inc/ lib/これかもしれません…
(1)"00"、もしくは"FF"をHDDの全領域に上書きする。 (2)指定したデータ(512バイト分)をHDDの全領域に上書きする。 (3)ランダムなデータ1→ランダムなデータ2→"00"の順に、HDD全領域に3回上書きする。 (4)"00"→"FF"→"00"→"FF"の順に、HDD全領域に4回上書きする。 (5)"00"→"FF"→"指定データ(512バイト)の順に、HDD全領域に3回上書きする。 (6)"00"→"FF"→"00"→"FF"→"00"→"FF"→指定データ(512バイト)の順に、HDD全領域に7回上書きする。 (3)、(4)はアメリカ国家安全保障局、(5)は米国国防総省、(6)はNATOの規格だ。 こう書いてしまうとものものしいが、 国家機密レベルでデータ消去が保証されていると思えば、心強い。
コンテンツ・プロバイダーがわれわれの用語で“アダプタ”と呼ばれるものを開発し、 JXTA Searchで検索できるようにするという課題が残っています。
JXTA Searchは、従来の検索機能を逆転させたようなものです。 これまでの検索エンジンは、インターネット上を探し回って、 すべての情報のインデックスを作成します。 JXTA Searchでは、クエリと検索を行なうメタデータを提供し、 検索サイトでヒットするものがあれば、より正確な応答を求めるようになっています。
あなた浮気したら、うちでの食事に気をつけて 私は知恵をしぼって、毒入りスープで一緒に逝こうビビっと来ました。:)
http://ime.nu/diary.awm.jp/~yoya/や
http://nun.nu/?http://diary.awm.jp/~yoya/のようにアクセスする *1 と
http://diary.awm.jp/~yoya/へのリンクを含むページが自動生成され、ime.nu では、 JavaScript が on になっていれば、自動で、該当のページに飛ばされます。
SetEnvIf REFERER "http://nun.nu" NUN SetEnvIf REFERER "http://ime.nu" IME Deny from env=NUN Deny from env=IME
#! /usr/bin/perl print 'location: ' . $ENV{'QUERY_STRING'} . "\r\n"; print "Content-type: text/html\r\n\r\n";
<a href="http://<略>/location.cgi?http://www.awm.jp/~yoya/"> http://<略>/location.cgi?http://www.awm.jp/~yoya/ </a>このようにリンクを張り実際に WinXP + IE6 でブラウズしてみました。 apache のログを確認しますと…
<IP> - - [<time>] "GET /~yoya/ HTTP/1.1" 200 1544 \ "http://<略>/location.html" \ "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)"リンク元を隠せていません。f(^^;
<html><head><title>jump</title></head> <b> <a href=飛び先の URL> <飛び先の URL> </a></b> <br>別のサイトにジャンプしようとしています。宜しければ上記のリンクをクリックしてください<br> <br><br> <hr> <ここから広告>というページを生成する機能を持ちます。
<script> ur=location.search+location.hash; URL=ur.substring(1,ur.length); document.write('<u>ページを開いています・・・</u>'); location.href=URL; </script>このスクリプトを location-href.html のようなファイルで保存して、 http で閲覧できる所に設置し、
if(top.document.referrer.search(/ax/i)==-1){ nonax=1;これは、ax が何か分かりませんので、 情報を入手し次第、考える事にします。m(__)m
okck=NGcheck(ur); if (okck) { <ページ転送処理> } else { document.bgColor='black'; document.fgColor='white'; document.write('<br>ブラックリストURLです。'); <略> } function NGcheck(URL){ blacks=new Array(<悪名高いサイトのリスト>); var i; if(URL=='')return 0; if(nonax && URL.search(/theb/i)>-1){return(1);} for(i=0;i<blacks.length;i++){ if(URL.indexOf(blacks[i])!=-1){ return(0); } } return(1); }評判の悪いサイトへのリンクには注意を促す仕掛けです。
if(URL.search(/http(s)?:\/\//)!=0)URL='http://'+URL;これってもしや、https でリンクしようとしても http に… 何の為なのかは分かりません。
#------------------ # ジャンプ用CGI #------------------ # 正規の参照元 ( 掲示板のアドレス ) $ref_right = 'http://xxx.xxx.jp/cgi-bin/bbs.cgi'; $referer = $ENV{'HTTP_REFERER'}; $query = $ENV{'QUERY_STRING'}; if (($referer =~ /$ref_right/i) && ($query =~ /http:\/\//i)) { print "Content-type: text/html\n\n"; print "<HTML><HEAD><TITLE>Hyper Link</TITLE>\n"; print "<META HTTP-EQUIV=\"refresh\" CONTENT=\"1\;url=$query\">\n"; print "</HEAD><BODY></BODY></HTML>\n"; } else { print "Location: $referer\n\n"; } exit;リンク元が自分のサイトでない場合は、Location でリンク元のページに押し戻す仕掛けです。
print "Location: $query\n\n";等として、自分の定義したホスト名以外で使う場合は、 そのまま流す事で、知らないホストでアクセスした場合は、 リンク元をばらすぞという脅しをかける事も考えましたが、
Referer が自分の定義したサイト or 空の時に no script で meta equivのようにして、あえて飛ばさない方が安全かもしれませんが、 ここまですると、おそらく使い物にならないのでしょうね。
using namespace tvmet; Vector<std::complex<double>,3> v1, v2; Matrix<std::complex<double>,3,3> m1;
v1 = 1,2,3; m1 = 1,4,7, 2,5,8, 3,6,9; v2 = m1 * v1;
無名さんの結婚適齢期は・・・24歳です あと僅か4年後ですね。う〜ん。20代前半で結婚しろという事ですか。 難しい要求ですね。
<request xmlns="http://search.jxta.org" query-space=[(required)unique URL id for query space] query-uuid=[globally unique id of this query] query-lifetime=[number of miliseconds this query is valid] max-fanout=[maximum number of providers to forward the query to] max-hits-per-provider=[return only n results from each provider] flush-after-providers=[flush the output stream to the client after receiving responses from n providers] flush-after-ms=[flush the output stream to the client after this time]'> [arbitrary valid XML] </request><request> 要素の値はいまの所、完全に任意な XML です。 query(問い合わせ)
<?xml version="1.0"> <request xmlns="http://search.jxta.org" query-space="http://search.jxta.org/text" query-uuid="1C8DAC3036A811D584AEC2C3B11E5B9A" query-lifetime='30000' max-fanout='214783647' max-hits-per-provider='5' flush-after-providers='3' flush-after-ms='2000' > <query> <text>foo bar</text> </query> </request>これは、http://bigcameraseller.com/cameraschema queryspace に問い合わせる、 より複雑な実例です:
<?xml version='1.0'?> <request xmlns="http://search.jxta.org" xmlns:cam="http://bigcameraseller.com/cameraschema" query-space="http://bigcameraseller.com/cameraschema" query-uuid="1C8DAC3036A811D584AEC2C3B11E5B9A"query-lifetime="10"> # (yoya:注) おそらく > は typo だと思いますquery-lifetime="10" flush-after="5" max-hits-per-provider="2" > <query> <and> <cam:model>canon G1</cam:model> <and> <cam:maxprice>$900</cam:maxprice> <cam:shipping>overnight</cam:shipping> </and> </and> </query> </request>
113073824, 113404512, 113735200, 114065888, 114396576, 114727264, 115057952, 115388640, 115719328, 116050016, 116379680, 116710368, 117041056, wtfs: write error for sector 16: Read-only file system
Jxta では,デバイスは自分のCPUやメモリ,ディスプレイなどに関することを XML で 記述し,ソフトウェアは動作に必要な要件をやはりXMLで記述しておくことで, 「PDA → PC → インテリジェントFAX」といった一連の処理のパイプをつくりあげて くれる。 PDAは,PCにWebの検索を依頼し,その結果を基にインテリジェントFAXが分類や集計を 行ってレポートまで作成してくれるという具合だ。今の今まで気付きませんでした… かなりショックです。
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 67658 yoya 29 0 1904K 920K RUN 0:01 5.47% 1.81% top 191 nobody -22 0 113M 37180K swread 977:26 0.15% 0.15% ntopいつのまにか nobody で ntop が走行していました。 suid bit は立っていないので、nobody で何をしようとしていたのか謎です。
<responses query-uuid=[uuid]> (<response> <data> <response-format> </response-format> </data> </response>)* </responses>例
<responses query-uuid=1e4b56738920dmke0> <response> <data> <provider> <name></name> <link></link> <description></description> <image> <url></url> <width></width> <height></height> </image> </provider> <response-format> http://search.jxta.org/webui </response-format> <hit> <detail> </detail> <link> </link> <title> </title> <image> <url> </url> <width> </width> <height> </height> </image> </hit> <hit> <detail> </detail> <link> </link> <title> </title> </hit> </data> </response> </responses>注意書き クエリレスポンスの uuid 属性は、対応するリクエストの uuid と一致する事が要求されます。
one "1.168.192.in-addr.arpa" { type master; file "named.rev"; allow-update { 192.168.1.0/24; }; };のように、書き換えを許すクライアントの IP を設定しておくと、 クライアント側で
$ nsupdate > update add moon.atmarkit.co.jp. 1200 in a 192.168.1.20 > $のように書き換えのコマンドを実行する事で、 DNS の設定が出来るようです。
今後、措置命令にも従わない場合は、 50万円以下の罰金が科される可能性もあるとありますが、経済損失は 50万どころでは無いと思いますので、 懲罰的な金額を期待したいところです。