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万どころでは無いと思いますので、 懲罰的な金額を期待したいところです。
perl in malloc(): warning: recursive call. Out of memory! perl in free(): warning: recursive call. perl in free(): warning: recursive call. perl in free(): warning: recursive call. <略> perl in malloc(): warning: recursive call. Out of memory!このような warning が出力されていました。
for(〜) { my $i,$j,... <処理> }変更後
my $i,$j,... for(〜) { <処理> }
<register xmlns="http://search.jxta.org" name=[name] uri=[base endpoint for provider] description=[description]> <query-server> query-server-uri </query-server> (<query-space uri=[uri]> (<predicate> [arbitrary XML] </predicate>)* </query-space>)* </register><category> 要素が <predicate> 要素の中にで含まれている場合は常に、 カテゴリー・タグの値に対応するキーワード、 <category> 要素にテキスト置換します。
<register xmlns="http://search.jxta.org" name=[name] uri=[base endpoint for provider] description=[description]> <query-server> query-server-uri </query-server> <query-space uri=[uri]> <predicate> <and> <or> <response-schema>[schema uri 1]</response-schema> <response-schema>[schema uri 2]</response-schema> </or> [arbitrary XML] </and> </predicate> </query-space> </register>これは、JXTA ピアからの Registration の例です
<?xml version='1.0'?> <register xmlns=";http://search.jxta.org";> <title>JXTA Stock Quote Provider</title> <link>http://search.jxta.org</link> <description>Given a ticker symbol, returns a 15-minute delayed quote </description> <query-server> jxta://59616261646162614A757874614D5047CF403C5700D44AE68F9FB626DD 3F18E50000000000000000000000000000000000000000000000000000000000000401 </query-server> <query-space uri="http://search.jxta.org/text"> <predicate> <query> <text>sunw aol orcl</text> </query> </predicate> </query-space> </register>これは別の例で、O'Reilly's Meerkat から利用する ワイルドカードでの登録方法を示す、
<?xml version='1.0'?> <register xmlns=";http://search.jxta.org";> <title>O'Reilly Network</title> <link>http://meerkat.oreillynet.com/</link> <description>The Source for Open and Emerging Technologies.</description> <image> <url>http://meerkat.oreillynet.com/icons/meerkat-powered.jpg</url> <width>88</width> <height>31</height> </image> <query-server>http://www.oreillynet.com/meerkat/jxtasearch/</query-server> <query-space uri="http://search.jxta.org/text"> <predicate> <query><text></text></query> </predicate> </query-space> </register>
/dev/sd1a /temp ffs rw 1 6
bash-2.05# mkdir cap0 /temp: create/symlink failed, no inodes free mkdir: cap0: No space left on device # # # df -k . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/sd1a 57737994 2 54851092 0% /temp # mkdir cap0 # mkdir cap1 #不安な出発です…
Also, he said, "many, if not most, music and video copyrights are owned by California-based companies.要するにハリウッドは沢山の版権を保有しているから訴えてもいいって事ですね…
布団に入るときは、過度の厚着は避けましょう。 汗をかくだけでなく、脱水症状を起こしやすくします。あ。これでもかという程に厚着をしていました。 気を付けます。
Jan 14 12:00:01 alt /netbsd: SENSE KEY: Media Error Jan 14 12:00:01 alt /netbsd: ASC/ASCQ: Unrecovered Read Error Jan 14 12:00:01 alt /netbsd: Jan 14 12:00:01 alt /netbsd: sd1(ahc1:0:1:0): parity error detected in Data-in phase. SEQADDR(0x113) SCSIRATE(0xf) Jan 14 12:00:01 alt /netbsd: sd1(ahc1:0:1:0): Check Condition on CDB: 0x28 00 01 8e 90 80 00 00 20 00ディスクが悪いのかケーブルが悪いのか分かりませんが、 体が治ったら確認する事にして、とりあえず umount しました。
(医) (腹筋の断面図を見ながら) ずいぶんとお腹に筋肉が付いてるねぇ. (よ) 腰痛対策で、ずいぶん鍛えましたので、 ただ、お腹の左の方の筋肉がこの通り、 付かないんですよね (医) お腹を横に切ったからね。 縦に切るとね、癒着とかで腸閉塞になりやすいんだよね。 あと術後の痛みも強いし、 ただ、スポーツマンとかだと、 そうはいってられないので、縦に切るけど。という事だそうです。
これまでP2Pアプリケーションには二つのタイプがあった。 Napsterは音楽ファイルを検索するために中央サーバーを使って効率化した。 これに対してGnutellaは完全に分散されたピュアP2P環境を実現した。 検索速度やスケーラビリティーに関しては、 ピュアP2PよりもNapster型のほうが勝っているといわれている。 Locutusは完全な分散P2Pでありながら、非常に短い時間で何千もの コンピューターを検索することができる。 これによりP2Pアプリケーションで必要とされる帯域幅を大幅に減らすことが可能だ。 こうした技術はファイル交換ソフトに限らず、将来さまざまな用途が期待される P2Pアプリケーションへの応用が期待される。
・゜゜・.(/□\*).・゜゜・.
希少価値度100%Σ(゚Д゚;;)!!
あなたの希少価値はめちゃめちゃ高め。 いますぐ「種の保存」をおこなわないと、絶滅の恐れがあるようです。自分のような劣等種が淘汰されるのは自然の摂理ですから… (欝
契約してからトラブル一つなく快適に使えていますという感想を書いた途端に裏切ってくれるとは、さすが NTT 様だと思います。
ONU --- HUB --- PC router NetBSD | router NetGenesisの ONU や HUB 、ルータのリンクランプが点灯している事だけは確かめました。
--:--:-- LOG_INFO S03:POE: Discovery stage start. --:--:-- LOG_NOTICE S03:POE: Closed(PADI timeout). --:--:-- LOG_INFO SYS:DNS: Primary name server address changed. (0.0.0.0) --:--:-- LOG_INFO SYS:DNS: Secondary name server address changed. (0.0.0.0) --:--:-- LOG_INFO SYS:DNS: Third name server address changed. (0.0.0.0) --:--:-- LOG_INFO SYS:DNS: Fourth name server address changed. (0.0.0.0) --:--:-- LOG_INFO S03: : Disconnect successfully, duration 00:00:31.(--:--:--) --:--:-- LOG_INFO S03:POE: Open start.これのくり返しになっています。 今日はもう遅くなりましたので、 朝までに NTT 様が復旧してくれる事を信じて寝る事にします。
・゜゜・.(/□\*).・゜゜・.ぅゎぁぁあん
<略> irc.fujisawa.wide.ad.jp - - [17/Jan/2003:01:56:09 +0900] "CONNECT <略>昨晩の10時半に止まりましたので、 約3時間半の間ネットワークが止まっていたようです。
yoya@alt% du -sk cap0/2003/01/16 11991412 cap0/2003/01/16一日、一入力辺り 10G 使います。2系統記録していますので、 一日で、20G 使っています。(^^;
慣れよ、そんなもの。私の娘なんて手術してから 毎月のように胃カメラ飲んでるわよ等と話していましたが、 自分の場合、一度目より二度目、二度目より三度目の方がつらいと 感じましたので、いまだに慣れが来るとは信じられません。
まだ痩せる所があるんだねぇとは看護婦さんのお言葉。
java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/\ BouncyCastleProvider at net.jxta.impl.endpoint.tls.TlsConfig.init(TlsConfig.java:184)のエラーが出るので jce の jar を導入する事にします。
java.lang.RuntimeException: Could not boot platform at net.jxta.search.jxtastarter.JxtaStarter.getMyPeerGroup\ (JxtaStarter.java:96)というエラーが出ます。
85 public static synchronized PeerGroup getMyPeerGroup () { 86 if (group == null) { 87 bootJxta (); 88 89 /** In case group is still null, wait for the notification * */ 90 if( group == null ) { 91 try { 92 synchronized( condition ) { 93 System.out.println( "Waiting for jxta platform b oot" ); 94 condition.wait( 60000 ); 95 if( group == null ) { 96 throw new RuntimeException( 97 "Could not boot platform" );1分経っても Jxta ネットワークに継らないと判断しているのかもしれません。
yoya@awm.jp% locate gonesilent.cfg /home/yoya/jxta/search/jxtasearch-0.92-src/websearch/deployment/gonesilent.cfg…
そもそも、作業椅子にヘッドレストがいるのかと問い詰めたいとの御指摘を…
Subject: Meeting notice From: diai002 <diai002@ooon.p> To: yoya@<略>という怪しいメールが来たので、開かずに生のメールを覗いてみました。
Return-Path <知人のアドレス> <略> From: diai002 <diai002@ooon.p> <略> --KZ6867E349GBu8D097v19g47z3sJ2E07q9845 Content-Type: audio/x-wav; name=<内緒>.pif Content-Transfer-Encoding: base64 Content-ID: <Z5j8E3339i89483> TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA <略>今更、Klez ? 等と言われそうですが、 実は、メーリングリスト以外では、今回初めて Klez らしきメールを受け取りました。 友達が少ないんです。自分。
(N) これって今駆除しても、またウィルスメールが来たりして、 いたちごっこだよね。 (よ) ワクチンソフトいれたり、メーラを変えるとかしないとそうですね。 ところで、使ってるメーラーって、Outlook とかですよね (N) うん。 (よ) Outlook はデフォルトの設定だと結構危険らしいので、 一通りメーラの設定を見直すか、 思い切って別のメーラにするってのも手ですよ。 (N) メールアドレス変えた方がいいかなぁ? (よ) それは、あまり意味ないです。 (N) アドレス帳の皆にウィルスメール送っちゃったかもって 通知した方がいいかな? (よ) 仲の良い人だけ教えて、他は無視を決め込んじゃっていいんじゃないですか。 どうせ、別人の from でメールを送るんで滅多にバレませんし。(悪 (N) メールマガジンも沢山、アドレス帳に入ってるんだよねぇ。 (よ) メールマガジンのサーバでは、たいていウィルスのチェックとか してるんで、多分、大丈夫ですよ。さすがに、もう寝ます… Zzz...
LocalForward 5901 foo:5901 LocalForward 5902 baa:5902この設定で接続できました。
http://wpad.awm.jp/wpad.datを用意すれば良さそうですね。 外からアクセスされないようにアクセス制限に気をつける必要がありますが。
音声に埋め込む電子透かし技術を活用し、 インターネット上での音楽の違法利用を発見したり、いつ、 どの歌手の音楽CDが放送されたかを自動的に把握したりする実験に成功した、MP3化されたファイルでも電子透かしは有効
12月中に2週間実施された実験の結果、検出率は100%だったという。 なお、著作権情報には、著作権協会国際連合(CISAC)で定められた 世界共通の作品コード「ISWC」を利用。 また、電子透かしには、IBM、エム研、マークエニー・ジャパン、および 日本ビクターの技術を、3曲ずつに採用した。放送電波に乗せられた楽曲でも電子透かしは有効
電子透かし情報には固有のIDを振っておき、 受信した音声から抽出したIDと著作権管理情報データベースを付き合わせる形で 検証が行なわれた。実験には、米Veranceが開発した放送音源把握システム 「ConfirMedia」が利用されている。
どこ見とんじゃい。コルァっと怒鳴られてしまいました。
int foo (int a, char b) { return a * b; }といった、ANSI C 風の関数の引数の書式を、K&R 風味な
int foo (a, b) int a; char b; { return a * b; }に変換してくれます。
yoya@awm.jp% cat > test.c int foo (int a, char b) { return a * b; } ^d yoya@awm.jp% unprotoize test.c unprotoize: compiling `test.c' unprotoize: converting file `test.c' yoya@awm.jp% ls test.c test.c.save test.c~ test.o yoya@awm.jp% cat test.c int foo (a, b) int a; char b; { return a * b; } yoya@awm.jp% cat test.c.save int foo (int a, char b) { return a * b; }いまどきのソースを SunOS4.x の cc でコンパイルしないと駄目な 状況に陥った時に使えますね。
電子透かし情報を「除去」できないことの実験がなされていないなるほど。読んでいて感じた違和感はこれですか…
プログラムは起動できません。 設定ファイル"D:Documents and Setting\yoya\Application Data\sversion.ini"は このバージョンを支援しません。 インストールを確認するのにセットアップアプリケーションを開始しますか。といって怒られました。(ρ_;
D:Documents and Setting\Administrator\Application Data\sversion.iniを見たところ、Administrator の方の sversion.ini には
[Versions] StarSuite 6.0=file:///D:/Program%20Files/StarSuite6.0と書かれていた一方、「yoya」の方は空白のファイルでした、 この文字列を「yoya」の方にコピーした所、起動できました。
DHT - API Enhancements I Basic API ・publish(namespace, RID, object) ・lookup(namespace, RID) ・multicast(namespace, object)
DHT - API Enhancements II Additions ・lscan(namespace) - retrieve the data stored locally from a particular namespace ・newData(namespace) - receive a callback when new data is inserted into the local store for the namespaceという API を初めに思い付くと思いますが、
API isn’t good for: ・Range queries ・Limited multicast ? Currently, all queries must be asked at all nodes, this is the same scaling problem with Gnutella & Freenet. ・Batch Publish/Lookup operationsという問題がやはり残る訳でして。
<Text Retrieval and Hash Indexes> ・DHTs only support exact-match lookups ・Basic index scheme - Split each string to be indexed into “n-grams” - Ex : “Beethovens 9th” ? 3-grams Bee, eet, eth, tho, hov, ove, ven, ens, ns%, s%9, %9t, 9th substring lookup : “thoven” - tho, hov, ove, ven - The count of copies of each file ID is computed強引に見えますが実にシンプルな部分文字列マッチです。(^^;
中国12億人民が皆一つずつラジオやテレビを持つとして、 それらの機器に、DES 解読 CHIP を埋め込んでおく。 政府は解読したいメッセージがある時に、 平文と暗号文のペアをラジオ/テレビにブロードキャストして、 12億のチップ各々に割り当てられた鍵空間の探索をさせる。 解読に成功した機器に、 「宝くじに当選しました。〜まで御連絡下さい。」のような メッセージを出せば、政府に確実に通知される。といった仕組みです。
「数カ月前から(知的財産に関する)調査を考えていた。石をひっくり返 すと、必ずその下から何かが出てくる。Mac OS Xを解体すると、Unix Systems Laboratoriesにまでさかのぼる著作権表示がたくさん見つかる だろう。これは当社が保有している著作権だ」(McBride氏)。
ある時分断されて、その状態で、分断されている異なる peer がという考察は見当外れではないかと思う訳です、
yoya@awm.jp% javac HelloWorld.java yoya@awm.jp% rm PlatformConfig yoya@awm.jp% java HelloWorld当然、Config 用の Dialog が現れます。
yoya@awm.jp% cd 〜/cvs/myjxta2 yoya@awm.jp% cvs update <略> yoya@awm.jp% cd /binding/java/src/net/jxta/myjxta2/config/ yoya@awm.jp% ls CVS/ ui/あれ… ?
mv myjxta2/ myjxta2.taihi cvs -d :pserver:yoya@cvs.jxta.org:/cvs co -r refactor myjxta2一通り構成を見直したところ、 ディレクトリ構成がかなり変更されていて、 config ディレクトリは廃止されている事が分かりました。
yoya@awm.jp% cd myjxta2/binding/java/src/net/jxta/myjxta2/util yoya@awm.jp% ls Authenticator.java PSE.java CVS/ PortConfig.java Config.java Prefs.java Configurator.java ResourceManager.java ConversionException.java ResourceNotFoundException.java Env.java Speech.java FileUtils.java TestAuthenticator.java LDAPAuthenticator.java exec/ Log4J.javautil/Configurator.java に、AutoConf 相当の機能がありそうですので、 ソースを確認しますと、
import net.jxta.util.config.TcpConfigurator; import net.jxta.util.config.HttpConfigurator; import net.jxta.util.config.SecurityConfigurator; import net.jxta.util.config.EndpointConfigurator; import net.jxta.util.config.RelayConfigurator; import net.jxta.util.config.RdvConfigurator; import net.jxta.util.config.PlatformConfiguration; <略> public void configure() throws IllegalStateException { if (this.pAdv == null) { throw new IllegalStateException("peer adv is null"); } configurePeerAdvertisement(); configureHTTP(); configureRelay(); configureTCP(); <略> private void configureHTTP() { this.httpConf = null; try { this.httpConf = new HttpConfigurator(); } catch (Exception e) { if (LOG.isEnabledFor(Priority.WARN)) { LOG.warn("could not configure HTTP", e); } } if (this.httpConf != null) { this.httpConf.enable(); int port = this.resources.getInt(Config.HTTP_PORT, Config.Default.HTTP_PORT); this.httpConf.setPort(port); this.httpConf.setServerEnabled(false); <略>これは、僕が当初予想していた JXTA のコンフィグ API を使って、 設定ファイルを生成する方法ですね。
* $Id: Configurator.java,v 1.1.2.4 2003/01/27 22:16:59 gonzo Exp $できたてホヤホヤ。(^-^
公開許諾は、現在請求中 :-)oh... に張り付けてある文書も素敵です。 XML, RDF, SOAP, JGuru のショートコース, JXTA ...
|| ⊂⊃ || ∧ ∧ || ( ⌒ ヽ ∧||∧ ∪ ノ ( ⌒ ヽ 彡 V ∪ ノ フワーリ ∪∪昨日の晩、会社からの帰宅途中に食べた立ち食い蕎麦 *1 が体に合わなかったのか、 その後家に着くまでに、「 寒いってのにも程がある *2 」外気にあてられたせいか、 お腹がいたくて、明け方まで痛みをまぎらわすために 床の上でゴロゴロしてました。
メンバー名は既に使用されています。他の所で延長パッケージを購入出来ないかな…
関東地方の地上デジタル放送は2003年末から始まります 国の計画では、現在のテレビ放送は2011年までに地上デジタル放送に 移行する予定です。 東京・大阪・名古屋の三大都市圏では、2003年末から地上デジタル放送が始まります。 その他の地域でも、2006年から地上デジタル放送が始まります。 そして、2011年には現在の放送(アナログ放送)は終了し、 テレビ放送はすべてデジタル放送になる計画です。
22:14:04 [!] close: 44 (Connection reset by peer) 22:15:04 [!] Connect: 192.168.<略>(1602)/45 22:23:27 [!] Connect: 192.168.<略>(1620)/46 22:23:27 [!] close: 45 (Connection reset by peer) 22:29:08 [!] Connect: 192.168.<略>(1629)/47 22:29:29 [!] close: 46 (Connection reset by peer) 22:32:54 [!] Connect: 192.168.<略>(1645)/48 22:33:08 [!] close: 47 (Connection reset by peer) 22:51:06 [!] Connect: 192.168.<略>(1707)/49 22:51:10 [!] close: 48 (Connection reset by peer) 23:02:14 [!] Connect: 192.168.<略>(1728)/50 23:02:36 [!] close: 49 (Connection reset by peer)今日の行事のログを書いていまして、こう頻繁に切れると‥ 僕も切れます‥ # ← 短気な人
print $welcome_msg; my $username; my $password; while(1) { print "login: "; $username = ReadLine 0; if ($username =~ /([^\r^\n]*)/) { $username = $1; } print "Password: "; ReadMode 'noecho'; $password = ReadLine 0; if ($password =~ /([^\r^\n]*)/) { $password = $1; } ReadMode 'normal'; <略>こうしますと、直にコンソールから実行すると思ったとおり、 パスワードを入力する時に文字が隠れるのですが、inetd 経由ですと、 タイプした文字が表示されてしまいます。う〜ん…