These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
||||||||||||||||||||||||||||||||||||||||||||||||
この平日の借りを週末で、というような、 まるで借金を返すような感覚で睡眠を考えるのは間違い。まさしく、これを実践してました。
仕事から帰ってきて体がだるいとき、 確かに熱い風呂に入ればすっきりするでしょう。しかし、 それは疲れが取れた、というのとは違う。むしろ逆です。 だるいのは、体が眠りの準備を始めたというサインなのに、 熱い風呂に入ると、体温が上がって体が活動的な状態になってしまう。 これではせっかく眠りの準備が台無しで、良い眠りに入れるわけがありません。寝る直前に熱いお風呂に入っていましたが、逆効果なのですね ただ、ぬるいお湯は、お風呂から上がった後が寒いので、 冬の間は、できれば熱いお湯に入りたいのですが…
Hobbit's PDF Libraryは,Javaを使って PDF(Portable Document Format)ファイルを 手軽に作成するためのパッケージライブラリです.
yoya@awm.jp% sh j2sdkee-1_4-beta-linux.sh Using /var/tmp as temporary directory... Searching for Java(TM) 2 Platform, Standard Edition... Initializing InstallShield Wizard... ERROR: could not initialize interface awt - exception: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.VNC のウィンドウで実行して、 聞かれるにボタンを押していってインストール完了です。
/${HOME}/j2sdkee1.4となっていましたので、
/usr/java/j2sdkee1.4に変更しました。
[yoya@ns axis]$ java org.apache.axis.client.AdminClient samples/userguide/example3/deploy.wsdd - Exception: java.lang.NullPointerException at org.apache.commons.discovery.resource.ClassLoaders.getAppLoaders(ClassLoaders.java:206) <略> at org.apache.axis.client.Service.getEngineConfiguration(Service.java:731) at org.apache.axis.client.Service.getAxisClient(Service.java:140) at org.apache.axis.client.Service.<init>(Service.java:149) at org.apache.axis.client.AdminClient.<init>(AdminClient.java:123) at org.apache.axis.client.AdminClient.main(AdminClient.java:339)こういう場合は、100発100中 CLASSPATH が悪いと思い、 CLASSPATH のファイルを一気に減らしてみました。
cd lib mkdir java.taihi mv java/* java.taihi/. . ~/.bashrc尚、.bashrc では lib/java/*.jar を片っ端から CLASSPATH にいれる処理をしてます
yoya@awm.jp% java org.apache.axis.client.AdminClient samples/userguide/example3/deploy.wsdd - Processing file samples/userguide/example3/deploy.wsdd - <Admin>Done processing</Admin>問題ありません。 ここから、少しずつ CLASSPATH に追加していきます。
mv java.taihi/[A-m] java/.↑言ってる事とやってる事が違ってる気もしますが…
yoya@awm.jp% java org.apache.axis.client.AdminClient samples/userguide/example3/deploy.wsdd <ERROR 時:分:秒,518 AdminClient:347> Exception: java.lang.NullPointerException at org.apache.commons.discovery.resource.ClassLoaders.getAppLoaders(Clas sLoaders.java:206) <略># 「時:分:秒」は実際の作業時間の値が入ります。
mv java/[h-g]* java.taihi/.
yoya@awm.jp% java org.apache.axis.client.AdminClient samples/userguide/example3/deploy.wsdd - Exception: java.lang.NullPointerException at org.apache.commons.discovery.resource.ClassLoaders.getAppLoaders(ClassLoaders.java:206)これで、[A-g]*.jar 内に犯人候補を絞りこめました。
mv java/commons-discovery.jar java.taihi/.
yoya@awm.jp% java org.apache.axis.client.AdminClient samples/userguide/examp le3/deploy.wsdd - Processing file samples/userguide/example3/deploy.wsdd - <Admin>Done processing</Admin>こいつのようです。
cd ~/lib/java yoya@awm.jp% rm commons-discovery.jar yoya@awm.jp% rm commons-logging.jar yoya@awm.jp% rm log4j-1.2.4.jar yoya@awm.jp% rm saaj.jar yoya@awm.jp% rm wsdl4j.jarごみ掃除が終わり、すがすがしい気分で deploy を実行。
yoya@awm.jp% java org.apache.axis.client.AdminClient samples/userguide/example3/deploy.wsdd yoya@awm.jp%あれ…? 何も返事がありません…
yoya@awm.jp% java samples.userguide.example3.Client こんにちは You typed : こんにちは少し気持ち悪いのですが、これで動くので解決した事にします。
my $fh; open($fh, "〜");↑このコードでは特定のバージョンの perl でエラーが出るので、
my $fh = new FileHandle; open($fh, "〜");↑こちらに変更した件について説明したところ、 new FileHandle しないと open できない状況には誰もなった事が無いらしいそうで。
my $fh = new FileHandle; $fh->open("〜");もしくは、
my $fh = new FileHandle "〜";ですので、中途半端ではありますが…
yoya@alt% rmiregistry
yoya@alt% rmid Activation.main: an exception occurred: File too large java.io.IOException: File too large at java.io.RandomAccessFile.setLength(Native Method) at sun.rmi.log.ReliableLog.initializeLogFile(ReliableLog.java:472) at sun.rmi.log.ReliableLog.openLogFile(ReliableLog.java:452) at sun.rmi.log.ReliableLog.snapshot(ReliableLog.java:313) at sun.rmi.log.ReliableLog.<init>(ReliableLog.java:134) at sun.rmi.log.ReliableLog.<init>(ReliableLog.java:158) at sun.rmi.server.Activation.startActivation(Activation.java:143) at sun.rmi.server.Activation.main(Activation.java:1977)もしかして、NetBSD1.6J + JDK1.3 の組み合わせで、 rmi は動かせないのでしょうか‥
use Time::HiRes; my $now = Time::HiRes::time;これでマイクロ秒単位の時間の取得できます。 *1
前回の番組後、北朝鮮大使館から脅迫を受けました。 私たちが大胆にも北で何が起きているかを報じたためです。 この脅迫は北朝鮮の犯罪的性質の活動を証明しています。 だからこそ、現代の“偉大な指導者”金正日について放映する必要があります
yoya@awm.jp% su Password: # apt-get upgrade パッケージリストを読みこんでいます... 完了 依存情報ツリーを作成しています... 完了 以下のパッケージがアップグレードされます: cvs mew mew-common telnet telnet-server wget 6 個のアップグレードパッケージ, 0 個の新規パッケージ, 0 個の削除/リプレースパッケージ, 0 個の保留パッケージがあります。 取得パッケージ: 2204kB のアーカイブを取得します。インストール後は 12.9kB が解放されます。 続行しますか? [Y/n]y 取得:1 http://www.t.ring.gr.jp 2.6/i386/updates telnet 0.17.6x-23vl1 [45.0kB] 取得:2 http://www.t.ring.gr.jp 2.6/i386/updates cvs 1.11.2-0vl3 [1148kB] 取得:3 http://www.t.ring.gr.jp 2.6/i386/updates mew 2.3-0vl1 [509kB] 取得:4 http://www.t.ring.gr.jp 2.6/i386/updates mew-common 2.3-0vl1 [146kB] 取得:5 http://www.t.ring.gr.jp 2.6/i386/updates telnet-server 0.17.6x-23vl1 [27.8kB] 取得:6 http://www.t.ring.gr.jp 2.6/i386/updates wget 1.8.1-0vl4 [328kB] 取得完了: 2204kB を 0s (3224kB/秒) <略>
File file = new File("〜"); file.delete();といった感じでしょうか。
java -Dnet.jxta.tls.principal=yoya -Dnet.jxta.tls.password=<秘密のパスワード> net.jxta.impl.peergroup.Boot <略> JXTA>ぉぉっ。これで、GUI 無しで JXTA shell をいじれますし、 標準入力からコマンドを流し込んで、バッチ的な処理も出来そうです。
yoya@awm.jp% cd ~ yoya@awm.jp% mkdir -p ~/net/jxta/impl/shell/bin/test/ yoya@awm.jp% cat > ~/net/jxta/impl/shell/bin/test/test.java package net.jxta.impl.shell.bin.test; import net.jxta.impl.shell.ShellApp; public class test extends ShellApp { public int startApp (String[] args) { println("This is TEST. a.b.c.."); return 0; } } ^d yoya@awm.jp% javac ~/net/jxta/impl/shell/bin/test/test.java yoya@awm.jp% ls ~/net/jxta/impl/shell/bin/test/ test.class test.java実行
java -Dnet.jxta.tls.principal=yoya -Dnet.jxta.tls.password=<秘密のパスワード> net.jxta.impl.peergroup.Boot Jxta is now taking off. Please fasten your seat belts and extinguish all smoking materials. <略> JXTA>test This is TEST. a.b.c.. JXTA>man <略> test No description available for this ShellAppxs <略>man で表示する情報を与えていません。 getDescription メソッドを追加します。
public class test extends ShellApp { <略> public String getDescription() { return "TEST command. (c) yoya"; } }もう一度 man を実行 *1 。
JXTA>man <略> test TEST command. (c) yoya JXTA>man test No help available for this ShellApp今度は、help メソッドを追加
public void help() { println("without arguments"); }
JXTA>man test withiout arguments
家庭のパソコンを常時接続できるADSL(非対称デジタル加入者線)を使って 電話をかける仕組みで、IP電話から固定電話への通話は全国一律3分8円となる→ 続く
<ERROR ??:??:??,143 ServletHttpTransport:588> Error starting HTTP server: java.io.IOException: Problem starting Jetty: org.mortbay.util.MultiException\ [java.net.BindException: Address already in use]これだ…
# $SIG{'CHLD'} = sub { shift; while( waitpid(-1,&WNOHANG)> 0) { } }; $SIG{'CHLD'} = 'IGNORE';
import java.io.*; import java.util.*; import net.jxta.peergroup.*; import net.jxta.peer.*; import net.jxta.impl.protocol.*; public class JxtaShell { public static void main(String []args) { JxtaShell test = new JxtaShell(); } public JxtaShell() { try { ResourceBundle jxtaRsrcs = ResourceBundle.getBundle( "net.jxta.impl.config" ); String platformPGClassName = jxtaRsrcs.getString( "PlatformPeerGroupClassName" ).trim(); String stdPGClassName = jxtaRsrcs.getString( "StdPeerGroupClassName").trim(); PeerGroupFactory.setPlatformClass(Class.forName(platformPGClassName)); PeerGroupFactory.setStdPeerGroupClass(Class.forName(stdPGClassName)); PeerGroup p = PeerGroupFactory.newPlatform(); p.startApp(null); } catch( Throwable e ) { e.printStackTrace(); } } }こんなので良いみたいです。
${WORK_DIR}/net/jxta/impl/shell/bin/rdvadd/rdvadd.javaに、以下のコードを置き、コンパイルを実施しました。 実行結果
JXTA>rdvstatus <略> Rendezvous Connection Status: ____________________________ Is Rendezvous : [true] Rendezvous Connections : [None] Rendezvous Disconnections : [None] Rendezvous Client Connections : [None] JXTA>rdvadd http://alt.awm.jp:9700 <INFO 18:19:58,423 Shell:589> BEGINING OF COMMAND : rdvadd http://alt.awm.jp:9700 <INFO 18:19:58,437 HttpClientMessageSender:218> Ping OK from : alt.awm.jp:9700 <INFO 18:19:58,442 HttpClientMessageSender:218> Ping OK from : alt.awm.jp:9700 JXTA><INFO 18:19:58,454 WireFormatMessageBinary:471> sending class net.jxta.endpoint.NewMessage{63} to stream <INFO 18:20:00,934 Shell:589> BEGINING OF COMMAND : JXTA>rdvstatus <INFO 18:20:02,774 Shell:589> BEGINING OF COMMAND : rdvstatus Rendezvous Connection Status: ____________________________ Is Rendezvous : [true] Rendezvous Connections : [None] Rendezvous Disconnections : [None] Rendezvous Client Connections : [None] JXTA>増えてくれません (ρ_;
Feb 15 17:08:41 cl◯ver /kernel: de0: system error: reserved #7 Feb 15 17:09:43 cl◯ver /kernel: de0: system error: reserved #7 Feb 15 17:13:46 cl◯ver /kernel: de0: system error: reserved #7…壊れたかも…
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 ether 00:90:cc:??:??:?? media: Ethernet autoselect (100baseTX <full-duplex>) status: active ※ ?? はプライバシーの問題で隠してます。:)動きました。
「メニュー」 → 「オプション」→「プラグイン」 →「Output」→「Crossfading DirectSound output v1.3」 →「高度な設定」→「ギャップレスモード」にチェックを入れると、隙間がなくなるのですね。 f(^^;
あれ? パラレルだったっけ、ほんとに。 USB 接続じゃないよね。という風に、途中で確認した事自体に確信が持てなくなり、 購入に踏み切れませんでした。
お前はボイスレコーダーを買ったんだろ?という突っ込みを受けそうなので、 ボイスレコーダーの出来について書きますと…
<e> ビットレート下限があるんで仕方ないかと <e> ステレオ 44kで64kは厳しいはずなるほど…
yoya@awm.jp% strace java -Dnet.jxta.tls.principal=yoya \ -Dnet.jxta.tls.password=<内緒> JxtaShell >& jxtashell.strace
yoya@awm.jp% grep properties jxtashell.strace lstat64("/usr/java/j2sdk1.4.1_01/jre/lib/logging.properties", {st_mode=S_IFREG|0444, st_size=2245, ...}) = 0 open("/usr/java/j2sdk1.4.1_01/jre/lib/logging.properties", \ O_RDONLY|O_LARGEFILE) = 5 <略> stat64("/usr/java/j2sdk1.4.1_01/lib/net/jxta/user_ja_JP.properties", \ 0xbfffbb84) = -1 ENOENT (No such file or directory) stat64("/usr/java/j2sdk1.4.1_01/jre/lib/net/jxta/user_ja_JP.properties", \ 0xbfffbb84) = -1 ENOENT (No such file or directoryこのように grep を書けているので、もしかしたら見逃しているのも あるかもしれません。m(__)m
net/jxta/impl/config.properties net/jxta/impl/config_ja.properties jxta.properties net/jxta/user.properties net/jxta/user_ja.properties net/jxta/user_ja_JP.propertiesLog4J の properties
log4j.propertiescryptix の properties
cryptix/asn1/lang/lang.properties cryptix-lib/Cryptix.properties Cryptix.properties META-INF/Cryptix.properties cryptix/Cryptix.properties cryptix-lib/Local.properties Local.properties META-INF/Local.properties cryptix/Local.properties cryptix/asn1/encoding/encoding.propertiesJava 自身の properties
logging.properties sun/awt/resources/awt_ja_JP.properties
# JXTA Properties # How long (in millis) the sessions/leases are for relay leases. RelayServer.LeaseLength = 1800000 # The minimum and maximum size of the thread pools for the http server HttpServer.MinThreads = 10 HttpServer.MaxThreads = 200 # how long (in millis) an http request has to finish transferring before the # http server discards the request (in millis) HttpServer.MaxRequestReadTime = 60000 # how long (in millis) a thread in the thread pool is allowed to be idle before # it is reclaimed HttpServer.MaxThreadIdleTime = 120000
In order to have an advertisement recognized upon discovery, it needs to be registered through the AdvertisementFactory registerAssoc method, that reads in the net/jxta/impl/config.properties files to get all the AdvertisementInstanceTypes.だそうです。
# Amount of time in minutes after which a connection is considered idle and may # be scavenged. impl.endpoint.tls.connection.idletimeout=20 # Amount of time in minutes a connection must be idle before a reconnection # attempt will be considered. impl.endpoint.tls.connection.minidlereconnect=5 # Amount if time in minutes which retries may remain queued for retrasmission. impl.endpoint.tls.connection.maxretryage=10各、Revision の history を見る限り、 チューニングが必要なパラメータを、impl.〜 で設定して、 デフォルトの値を決めたら、パラメータの設定を廃止するといった 使いかたをしているように見えます。# あまり根拠の無い推測。
localhost:xxx → mail.awm.jp:smtp localhost:yyy → mail.awm.jp:imapの設定にして、ssh port forwarding をするようになってから メールを書いている途中でセーブすると、 100% Netscape Messenger が落ちる症状に出くわして、 何度もメールを一から書き直すはめになる事がありました。
「メニュー」→「編集」→「設定」→「メールとグループ」→ 「コピーとフォルダ」→「下書きとテンプレートの保存」→ 「下書きの保存」→「フォルダの選択」ここで、デフォルトでは、
右の Drafts フォルダ <ホスト名>となっています。そこで試しに、
その他 <フォルダ名>を指定して。明示的にフォルダ名を指定したところ、 Drafts にメールを保存しても、Netscape が落ちなくなりました。
Method Not Allowed The requested method POST is not allowed for the URL /flets/customer/const/index.html.
The platform, security, shell, cms, instantp2p and myjxta2 code bases have been tagged with the CVS tag: JXTA_2_0_Candidate_Release_20030215という文章から考えると、cvs で持っていけという事でしょう。 自分(yoya)の場合は、
yoya@awm.jp% for module in platform security shell cms instantp2p myjxta2 > do > cvs -d :pserver:yoya@cvs.jxta.org:/cvs checkout -rJXTA_2_0_Candidate_Release_20030215 $module > doneのようにして取得しました *1 。
yoya@awm.jp% for module in platform security shell cms instantp2p myjxta2 ; do > do > zip -r9 $module.zip $module > done
cd ${MODULE}/binding/java ant cp dist/*.jar ${JXTALIB}/. # instantp2p は dist でなく lib に出来ますが…です。
cd platform/binding/java ant <略> [javac] /home/yoya/cvs/platform/binding/java/impl/src/net/jxta/impl/peergroup/Configurator.java:792: \ 警告: net.jxta.protocol.PeerAdvertisement の setDescription(java.lang.String) は推奨されません。 [javac] advertisement.setDescription("Platform Config Advertisement created by : " + Configurator.class.getName() ); [javac] ^ [javac] /home/yoya/cvs/platform/binding/java/impl/src/net/jxta/impl/pipe/PipeServiceImpl.java:485: \ 警告: net.jxta.pipe.PipeService の createMessage() は推奨されません。 [javac] public Message createMessage() { [javac] ^ [javac] /home/yoya/cvs/platform/binding/java/impl/src/net/jxta/impl/pipe/PipeServiceImpl.java:279: \ 警告: net.jxta.pipe.PipeService の createOutputPip e(net.jxta.protocol.PipeAdvertisement,java.util.Enumeration,long) は推奨されません。 [javac] public OutputPipe createOutputPipe(PipeAdvertisement adv, [javac] ^ [javac] 警告 3 個 <略> jar: [jar] Building jar: /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/platform/binding/java/dist/jxta.jar警告が3つ程表示されている *2 *3 なのですが…
cp dist/jxta.jar ~/lib/java/jxta2/.
yoya@awm.jp java% echo $JXTA_LIB /home/yoya/lib/java/jxta yoya@awm.jp java% ant [javac] /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/net/DiscoveryHelper.java:242: シンボルを解決できません。 [javac] シンボル: メソッド getAdvertisements () [javac] 場所 : net.jxta.protocol.DiscoveryResponseMsg の クラス [javac] enum = res.getAdvertisements(); [javac] ^ [javac] /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/search/PersonSearch.java:281: \ シンボルを解決できません。 [javac] シンボル: メソッド getAdvertisements () [javac] 場所 : net.jxta.protocol.DiscoveryResponseMsg の クラス [javac] for (Enumeration r = res.getAdvertisements(); [javac] ^ [javac] /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/PipeHelper.java:360: \ シンボルを解決できません。 [javac] シンボル: メソッド getAdvertisements () [javac] 場所 : net.jxta.protocol.DiscoveryResponseMsg の クラス [javac] Enumeration responses = res.getAdvertisements(); [javac] ^ count = 0, total = 6 [javac] /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/search/GroupSearch.java:202: \ シンボルを解決できません。 [javac] シンボル: メソッド getAdvertisements () [javac] 場所 : net.jxta.protocol.DiscoveryResponseMsg の クラス [javac] Enumeration enum = res.getAdvertisements(); [javac] ^ [javac] /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/config/JxtaBuilder.java:244: \ net.jxta.impl.protocol.HTTPAdv の setPort(java.lang.String) は (int) に適用できません。 [javac] httpAdv.setPort(Integer.parseInt(httpPort)); [javac] ^ [javac] /home/yoya/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/config/JxtaBuilder.java:413: \ シンボルを解決できません。 [javac] シンボル: メソッド setLevel (org.apache.log4j.Level) [javac] 場所 : org.apache.log4j.Logger の クラス [javac] jxtaLogger.setLevel(Level.toLevel(debugLevel)); [javac] ^ [javac] エラー 6 個.bashrc を編集して
#export JXTA_LIB=$JAVA_LIB/jxta export JXTA_LIB=$JAVA_LIB/jxta2
yoya@awm.jp% . ~/.bashrc yoya@awm.jp% echo echo $JXTA_LIB /home/yoya/lib/java/jxta2 yoya@awm.jp% ant <略> [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/ChatSession.java:308: \ 警告: net.jxta.pipe.PipeService の createMessage() は推奨されません。 [javac] msg = pipeService.createMessage(); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/ChatSession.java:310: \ 警告: net.jxta.endpoint.Message の newMessageElement(java.lang.String,net.jxta.document.MimeMediaType,java.io.InputStream) は推奨されません。 [javac] msg.addElement(msg.newMessageElement(SENDERMESSAGE, null, ip)); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/ChatSession.java:310: \ 警告: net.jxta.endpoint.Message の addElement(net.jxta.endpoint.MessageElement) は推奨されません。 [javac] msg.addElement(msg.newMessageElement(SENDERMESSAGE, null, ip)); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/ChatSession.java:311: \ 警告: net.jxta.endpoint.Message の setString(java.lang.String,java.lang.String) は推奨されません。 [javac] msg.setString(SENDERNAME, myPeerName); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/ChatSession.java:312: \ 警告: net.jxta.endpoint.Message の setString(java.lang.String,java.lang.String) は推奨されません。 [javac] msg.setString(SENDERGROUPNAME, peerGroup.getPeerGroupName()); [javac] ^ count = 0, total = 6 [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/GroupChat.java:307: \ 警告: net.jxta.pipe.PipeService の createMessage() は推奨されません。 [javac] Message msg = pipe.createMessage(); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/GroupChat.java:308: \ 警告: net.jxta.endpoint.Message の setString(java.lang.String,java.lang.String) は推奨されません。 [javac] msg.setString(SENDERMESSAGE, gram); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/GroupChat.java:309: \ 警告: net.jxta.endpoint.Message の setString(java.lang.String,java.lang.String) は推奨されません。 [javac] msg.setString(SENDERNAME, userName); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/bi nding/java/src/net/jxta/myjxta2/chat/GroupChat.java:310: \ 警告: net.jxta.endpoint.Message の setString(java.lang.String,java.lang.String) は推奨されません。 [javac] msg.setString(SENDERGROUPNAME, group.getPeerGroupName()) ; [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/GroupChat.java:329: \ 警告: net.jxta.endpoint.Message の getElement(java.lang.String) は推奨されません。 [javac] MessageElement elem = msg.getElement(tag); [javac] ^ [javac] /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/src/net/jxta/myjxta2/chat/GroupChat.java:332: \ 警告: net.jxta.endpoint.Message の removeElement(net.jxta.endpoint.MessageElement) は推奨されません。 [javac] msg.removeElement(elem); [javac] ^ count = 0, total = 6 [javac] 警告 11 個 <略> [jar] Building jar: /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/build/lib/myjxta.jar <略> [jar] Building jar: /home2/yoya/mitou/cvs/JXTA_2_0_Candidate_Release_20030215/myjxta2/binding/java/build/lib/myjxta-images.jar main: BUILD SUCCESSFUL Total time: 11 seconds警告は大量に出ますが build は通ります。
yoya@awm.jp% java net.jxta.instantp2p.desktop.InstantP2P <略> <ERROR 22:57:52,330 PeerGroupFactory:239> Platform.init failed : java.lang.NoClassDefFoundError: COM/claymoresystems/ptls/SSLDebug at net.jxta.impl.endpoint.tls.TlsConfig.init(TlsConfig.java:112) at net.jxta.impl.peergroup.Configurator.configureTls(Configurator.java:288) <略>jar が足りないようです。 しかも、設定を全く保存せずに死にます… (ρ_;
yoya@awm.jp% cp ./platform/binding/java/lib/jxtaptls.jar ~/lib/java/. yoya@awm.jp% . ~/.bashrc yoya@awm.jp% java net.jxta.instantp2p.desktop.InstantP2P <略> <FATAL 23:11:05,952 TlsConfig:193> Cert generation failed java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider at net.jxta.impl.endpoint.tls.TlsConfig.init(TlsConfig.java:186) at net.jxta.impl.peergroup.Configurator.configureTls(Configurator.java:288) at net.jxta.impl.peergroup.Configurator.<init>(Configurator.java:215) <略>今度は jce ですか。 今度は、securityタブの設定以外は、一通り保存しれます。
yoya@awm.jp% cp ./platform/binding/pjava/lib/jce.jar ~/lib/java/. yoya@awm.jp% . ~/.bashrc yoya@awm.jp% java net.jxta.instantp2p.desktop.InstantP2P <略> <ERROR 23:16:16,262 ServletHttpTransport:324> Failure during initialization: java.lang.NoClassDefFoundError: org/mortbay/util/MultiException at net.jxta.impl.endpoint.servlethttp.ServletHttpTransport.init(ServletHttpTransport.java:272) <略>まだまだ…
yoya@awm.jp% cp ./platform/binding/java/lib/org.mortbay.jetty-jdk14.jar ~lib/java/. yoya@awm.jp% . ~/.bashrc yoya@awm.jp% java net.jxta.instantp2p.desktop.InstantP2P <ERROR 23:20:17,677 ServletHttpTransport:324> Failure during initialization: java.lang.NoClassDefFoundError: javax/servlet/ServletOutputStream at net.jxta.impl.endpoint.servlethttp.HttpMessageReceiver.<init>(HttpMessageReceiver.java:194) at net.jxta.impl.endpoint.servlethttp.ServletHttpTransport.init(ServletHttpTransport.java:272)そろそろめげそう…
yoya@awm.jp% ./platform/binding/java/lib/javax.servlet.jar ~/lib/java/. yoya@awm.jp% . ~/.bashrc yoya@awm.jp% . ~/.bashrc <FATAL 23:23:42,363 TlsConfig:193> Cert generation failed java.lang.NoClassDefFoundError: cryptix/util/mime/Base64InputStream at net.jxta.impl.endpoint.tls.PeerCerts.genCert(PeerCerts.java:370) at net.jxta.impl.endpoint.tls.PeerCerts.genPeerRootCert(PeerCerts.java:131)いい加減疲れて来たので、 platform の jar を丸ごとコピーします… # 挫折
yoya@awm.jp% cd JXTA_2_0_Candidate_Release_20030215 yoya@awm.jp% cd ./platform/binding/java/lib/*.jar ~/lib/java/jxta2/.
src/usr.bin/audio/record/record.cこれですね。
yoya@alt yoya% cp -r <略>/curr/src/usr.bin/audio/record/record.c ~/prog/. yoya@alt yoya% cd ~/prog/. yoya@alt yoya% gcc record.c record.c:50: libaudio.h: No such file or directory record.c:51: auconv.h: No such file or directory…
yoya@alt% cp -r <略>/curr/src/usr.bin/audio ~/prog/. yoya@alt% cd ~/prog/audio/. yoya@alt% make <略> cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wswitch -Wshadow \ -Wcast-qual -Wwrite-strings -Werror -I/home/yoya/prog/audio/record/../common -c record.c cc -o audiorecord record.o -L/home/yoya/prog/audio/common -laudio groff -Tascii -mtty-char -mandoc audiorecord.1 > audiorecord.cat1.tmp && \ mv audiorecord.cat1.tmp audiorecord.cat1audio ディレクトリを丸ごと作業ディレクトリにコピーする事で、 コンパイルが可能になりました。
\78,000円…
yoya@cam$ audiorecord audiorecord: failed to open /dev/sound0: Device not configuredあれ… 何のサウンドカード挿したんだっけ… (汗 サウンドブラスター系だという記憶だけはあるけど…
PeerGroup group; <略> group.startApp(null);だけで良いようです。
import net.jxta.peergroup.PeerGroup; import net.jxta.peergroup.PeerGroupFactory; import net.jxta.exception.PeerGroupException; public class RunJxtaShell { public static void main(String[] args) { try { PeerGroup group = PeerGroupFactory.newNetPeerGroup(); new RunJxtaShell(group); } catch(PeerGroupException e) { e.printStackTrace(); } } public RunJxtaShell(PeerGroup group) { group.startApp(null); } }
yoya@awm.jp% javac RunJxtaShell yoya@awm.jp% java -Dnet.jxta.tls.principal=yoya -Dnet.jxta.tls.password=<略> RunJxtaShell
The Java implementation of the shell uses two system properties to configure its graphics: SHELLNOWINDOW SHELLFONTSIZEとあり、
SHELLNOWINDOW If true, then no AWT window is creaetd; the shell will run in the current terminal window.↑この記述が前々から気になっていたので、試してみる。
yoya@awm.jp% java -DSHELLNOWINDOW=true \ -Dnet.jxta.tls.principal=yoya -Dnet.jxta.tls.password=<略> RunJxtaShell <略> JXTA>以上…
測定サイト http://speedtest.excite.co.jp/ v1.13 測定時刻 2003/02/22 03:36:48 ホスト名/IPアドレス FLH1Aal149.kng.mesh.ad.jp/220.144.161.149 プロバイダ/回線/地域 BIGLOBE/Bフレッツ ニューファミリータイプ/神奈川県 推定最大スループット 49.1Mbps(6284kB/s)
測定サイト http://speedtest.excite.co.jp/ v1.13 測定時刻 2003/02/22 03:42:23 ホスト名/IPアドレス 15.16.111.219.st.excite.co.jp/219.111.16.15 プロバイダ/回線/地域 BB.excite/Bフレッツ ニューファミリータイプ/神奈川県 推定最大スループット 49.55Mbps(6342kB/s)
for(my $i=0; $i<360; $i+=10) { my ($r, $g, $b) = hsv2rgb($i, 0.1, 255); <略>( ソースコード )
sub str_hash { my $value = 0; foreach my $str (@_) { foreach my $c (split('', $str)) { $value += unpack("c", $c) * 5; $value = $value * 5 + 11; } } return $value; }本気でやるなら MD5 とか SHA とか使うのでしょうけど、 上記の方法だとデータに合わせてチューニングしやすいメリット *1 があります。 ( ソースコード )
yoya@alt% ifconfig -a <略> pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492 inet 220.144.161.149 -> 218.227.247.101 netmask 0xff000000 inet6 fe80::250:8bff:fe66:248e%pppoe0 -> prefixlen 64 scopeid 0xb yoya@alt% ping 220.144.161.149 PING FLH1Aal149.kng.mesh.ad.jp (220.144.161.149): 56 data bytes <無反応> ^c yoya@alt yoya% ping 218.227.247.101 PING 218.227.247.101 (218.227.247.101): 56 data bytes <無反応> ^c20分程待ってみても繋がらないので、試しに、
yoya@alt% ifconfig pppoe0 down yoya@alt% ifconfig pppoe0 upとした所、復旧しました。
sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5 sb1: Creative SB AWE64 PnP Audio: dsp v4.16 audio0 at sb1: full duplex, mmap, independent
isapnp0: <Creative SB AWE64 PnP, CTL0022, , WaveTable> port 0x620/4 not configuredキニシナイ‥ キニシナイ‥
bash-2.05$ mpg123 <略>_L.mp3 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3. Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! <略> Directory: data/ Playing MPEG stream from <略>_L.mp3 ... MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo音も鳴りました
audioctl -w record.gain=127とパラメータを変えて、以下のコマンドで録音が出来ました。
audiorecord -F wav rectest.wav*2 ただ… 噂では聞いていましたが、本当にひどい雑音がのります。
Audible Magicのソフトはデータストリームの内部まで深く入り込むことのできる 新世代のツールで、ネットワーク管理者は具体的に何のファイルが交換されているのか を知ることが可能。 ワイオミング大学では学生が交換しているファイルの内容と量を調べ、 例えばある24時間の例を取ると、Gnutellaネットワーク経由で最も多く交換されて いたのはラップアーティストBig TymersのMP3ファイルで、回数は188回に上っていた。
PCの電源アースを十分にとってみてはいかがでしょうか? PC本体の設計思想は、もともとノイズの発生を想定していて 電源コードでアースをとるようになっています、 しかし日本の環境は電源アースが十分にとれず様々の問題が起きています。 PCの電源コードにアースピンがあるのは、 リークした電流の除去/ノイズの消去などのためです。我が家には、アース線は存在しません。(ρ_;
yoya@alt% ifconfig pppoe0 down yoya@alt% ifconfig pppoe0 upで復旧。
jigdo='http://us.cdimage.debian.org/jigdo-area/3.0_r1/jigdo/i386/woody-i386-1.jigdo' debianMirror='ftp://ftp.dti.ad.jp/pub/Linux/debian/' nonusMirror='' tmpDir='.' jigdoOpts='--cache jigdo-file-cache.db' wgetOpts='--passive-ftp --dot-style=mega --continue --timeout=30' scanMenu=''
yoya@awm.jp% ls -l debian-30r1-i386-binary-1.iso -rwxr--r-- 1 yoya yama 612073472 Feb 23 14:24 debian-30r1-i386-binary-1.iso* yoya@awm.jp% md5sum debian-30r1-i386-binary-1.iso 16c8650697ac9b04c0d3072d2d146368 debian-30r1-i386-binary-1.iso
今後、関東地域に予想以上に厳しい寒波が到来した場合、 供給が間に合わず大停電が起こる可能性もある。
以下のパッケージがアップグレードされます: TrueType-base TrueType-kochi XFree86 XFree86-100dpi-fonts XFree86-75dpi-fonts XFree86-Xnest XFree86-Xvfb XFree86-cyrillic-fonts XFree86-devel XFree86-doc XFree86-gl XFree86-gl-devel XFree86-legacy XFree86-libs XFree86-tools XFree86-twm XFree86-xdm XFree86-xf86cfg XFree86-xfs libpcap perl tcpdump tetex tetex-extra
alt# mount -r -t ufs -o ufstype=44bsd /dev/hda1 /mnt/hda mount: fs type ufs not supported by kernelinstall に用いた cdrom から drivers.tgz を探して、 その中の ufs.o を /lib/modules/〜/fs/ にコピーして、 insmod してと…
alt# mount -r -t ufs -o ufstype=44bsd /dev/hda1 /mnt/hda mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems (could this be the IDE device where you in fact use ide-scsi so that sr0 or sda or so is needed?)
yoya@alt% make <略> gcc -I.. -I/usr/X11R6/include -O2 -Wall -c argsresources.c argsresources.c:26: X11/Xaw/Toggle.h: No such file or directory make[1]: *** [argsresources.o] Error 1 make[1]: Leaving directory `/home/yoya/vnc/vnc-3.3.6-unixsrc/vncviewer' make: *** [all] Error 1カーネルが 2.2 系の為か、rpm でバイナリを入れても、 libc6 が無い等と叱られて起動できない。
LILO 22.2 Loading LinuxEBDA too big .でも起動できず…
独自に node リスト(プロトコル://ホスト/ポート番号)の 共有サービスを作成して、お互いの持っているノード情報を 共有し、文字列を取得して uniq を取って、 各ノードは、その node リストを元に特定の数の コネクションを保持するように動く。 勿論、FireWall の中か外かで、プロトコル、ホスト/ポート番号 等が使えるか変わるので、Ping で反応の無い奴を一定特定時間で expire したり、優先度を下げるような処理が必要だけど。とまぁ、そういった独自のプロセスがあっても良いのではないか? connectToRdv メソッドで rdv を追加できる事ですし。
alt# cd /usr/src/sys/i386/conf alt# cp GENERIC PPPOEKERNEL <identity の GENERIC を PPPOEKERNEL に変更> <options NETGRAPH を追加> alt# config PPPOEKERNEL Kernel build directory is ../compile/PPPOEKERNEL Don't forget to do a ``make depend'' alt# cd ../compile/PPPOEKERNEL/ # 4.x 系と場所が違う… alt# make depend rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ -I@/dev -I@/. ./include -I/usr/include /usr/src/sys/modules/vesa/../../i386/isa/vesa.c \ /usr/src/sys/modules/vesa/../../dev/syscons/scvesactl.c alt# make <略> awk -f /usr/src/sys/modules/vesa/../../conf/kmod_syms.awk vesa.kld \ /usr/src/sys/i386/compile/YOYAKERNEL/modules/usr/src/sys/modules/vesa/export_syms | \ xargs -J% objcopy % vesa.kld ld -Bshareable -d -warn-common -o vesa.ko vesa.kld alt# make install <略>
Feb 27 23:27:24 alt ppp[225]: tun0: Warning: deflink: Device (PPPoE:eth0) must begin with a '/', a '!' or contain at least one ':'
alt# cd /usr/local/etc alt# cp dhcpd.conf.sample dhcpd.conf alt# vi dhcpd.conf <パラメータの名前等を変更> alt# /usr/local/sbin/dhcpd fxp1 Internet Software Consortium DHCP Server V3.0.1rc11 Copyright 1995-2003 Internet Software Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP old name service update routine line 11: illegal expression relating different t ypes if (defined (ddns-fwd-name) and ddns-fwd-name != ^ can't parse standard ddns updater!サンプルをそのまま使って起動しても同じエラーになります…
The PEER_ADDRESS structure specifies the information about the IP address. typedef struct peer_address_tag { DWORD dwSize; SOCKADDR_IN6 sin6; } PEER_ADDRESS, *PPEER_ADDRESS; Members dwSize Specifies the size of this structure. sin6 Specifies the IP address of the node in the peer-to-peer infrastructure.SOCKADDR_IN6 って… まさかね…
以前から一部で話題になってた、C. Huitema の PNRP(Peer Name Resolution Protocol) が実装されている様子です。
他に気になるのは、Pastry(http://research.microsoft.com/~antr/Pastry/)が 実装されているのかどうか、つー所です。はぅっ… 見逃してました…
if (System.getProperty("STARTJXTASHELL").equals("true")) { group.startApp(null); }としていたが、API ドキュメントを見ると、
if (Boolean.getBoolean("STARTJXTASHELL") { group.startApp(null); }の方がどうもお勧めらしい。
*default release=cvs tag=RELENG_4一方、standard-supfile は、
*default release=cvs tag=RELENG_5_0なので、後者を利用する。
yoya@alt% su Password: alt# cd
alt# /usr/share/examples/cvsup/standard-supfile . alt# vi standard-supfile <CHANGE_THIS.FreeBSD.org を cvsup2.jp.freebsd.org 等に変更> alt# cvsup -g -L 2 standard-supfile > & cvsup.log & alt# tail -f cvsup.log Parsing supfile "standard-supfile" Connecting to cvsup2.jp.freebsd.org Connected to cvsup2.jp.freebsd.org Server software version: SNAP_16_1f Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-all/cvs Edit src/UPDATING <略>
alt# cp ~yoya/java/NetBSD/bsd-jdk131-patches-7.tar.gz /usr/ports/distfiles/. alt# cp ~yoya/java/j2sdk-1_3_1-src.tar.gz /usr/ports/distfiles/. alt# cd /usr/ports/java/jdk13 alt# make ===: Command not found. alt# ===> Verifying install for /usr/X11R6/lib/libXm.so in /usr/ports/x11-too lkits ===: Command not found. alt# /open-motif /open-motif: Command not found. alt# >> openmotif-2.2.2.tgz doesn't seem to exist in /usr/ports/distfiles/openmotif. alt# >> Attempting to fetch from ftp://openmotif.opengroup.org/pub/openmotif/R2.2/tarう〜ん
>> Checksum OK for j2sdk-1_3_1-src.tar.gz. >> Checksum OK for bsd-jdk131-patches-7.tar.gz. ===> jdk-1.3.1p7_2 depends on executable: gm4 - found ===> jdk-1.3.1p7_2 depends on executable: zip - found ===> jdk-1.3.1p7_2 depends on file: /usr/X11R6/lib/libXm.so - found ===> jdk-1.3.1p7_2 depends on file: /usr/local/linux-sun-jdk1.3.1/bin/javac - not found ===> Verifying install for /usr/local/linux-sun-jdk1.3.1/bin/javac in \ /usr/ports/java/linux-sun-jdk13 ===> linux-sun-jdk-1.3.1.06_1 You must manually fetch the Java 2 Development \ Kit 1.3.1.06 archive (j2sdk-1_3_1_06-linux-i586.bin) from \ http://java.sun.com/webapps/download/Display?BundleId=7163, download \ the Linux GNUZIP Tar shell script into /usr/ports/distfiles and then \ run make again. *** Error code 1 Stop in /usr/ports/java/linux-sun-jdk13. *** Error code 1 Stop in /usr/ports/java/jdk13.linux-sun-jdk-1.3.1.06_1 を取ってこないといけないのですが、 http://java.sun.com/j2se/1.3/ j2se1.3 download では、linux-sun-jdk-1.3.1.07_1 しか見付かりません。