hns - 日記自動生成システム - Version 2.19.9

先月 2014年05月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2014年05月27日(火) 旧暦 [n年日記] [更新:"2014/08/01 09:34:51"]

#1 [Windows] LINK : fatal error LNK1104: ファイル 'uuid.lib' を開くことができません

 LINK : fatal error LNK1104: ファイル 'uuid.lib' を開くことができません。
最近これでなやんでいて、Cygwin の find で探しても見つからない、
と思っていたが、Uuid.lib というものなら、いくつかあることが分った。
三台の Win7 Professional SP1 64bit に、(自分では)同じように用意している つもりのものが、ある一台だけ上記問題が出て、しかも、find で探して 「そのような名前のものはない」と思っていたのだけれど、Uuid.lib なら、 多分三つとも入っている(らしい)ということが分った。
それで、その問題の出るやつの current directory に Uuid.lib を写しておくと kernel32.lib がない、という。何か環境変数的あるいは設定的な lib を探す PATH が設定不足だ、ということが分った。(例えば)
C:\Programs Files (x86)\Windows Kits\8.1\Lib\winv6.3\
のあたりにある。あるいは、
m08@makoto 13:46:48/140527(~)% find /cygdrive/c -name Uuid.lib
/cygdrive/c/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Lib/x64/Uuid.lib
By adding option to nvcc argument,
 --library-path "C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64" \
Now it works with this work around.

#2 [健康] あさひ眼科

左目にきずがあるので、ゴロゴロと感じるのだとの診察
(ただし、いつきずがついたかは心当りなし)
診察、検査、投薬料 2,590 円
薬代                 510 円

#3 [zsh] expr を使って log を rotate

21:28:38/140527(..log/httpd)%  foreach i ( 6 5 4 3 2 1 0)            
sudo mv /var/log/maillog.$i.gz  /var/log/maillog.`expr $i + 1`.gz
end
(( )) のようなやり方を以前に使った気がするのだけれど。


2014年05月21日(水) 旧暦 [n年日記] [更新:"2014/05/23 10:55:12"]

#1 [Cygwin] /var/empty problem on Cygwin sshd (Windows 7)

2013/04/01 にも同じようなことを書いているが
/var/empty must be owned by root and not group or world-writable.
/var/empty は root 所有で world/group writable ではいけない問題
以下は Windows 7 Professional (64bit) の話。これは
何回か Windows update と再起動を繰返すと、SP1 になると理解しているが、 その前の無印 Win 7 の話。また以下の操作は、 Cygwin Terminal を右クリックで「管理者の権限で起動」した窓での話。
Cygwin terminal での文字化け
の話も、問題が何なのかを見るのに必要。
  • chown や chmod が必ずしも期待通り動かない
  • root を userid に加えるのはどうするか
    /etc/passwd を手で変更するのも一つの方法の気がする
  • /usr/sbin/sshd と入力した時と、net start sshd と入力した時では 少し動作が違う(前者の方が寛容)
  • chown -f my_userid /var/empty
    chmod -f 700 /var/empty
    
    すると、確かに 700 になる。つまり chown 自分にした後だと ( ls -lagn /var/empty で自分になっていなくても) chmod が効く。
    ls -lagdn /var/empty
    
    で、思い通りに変更されていなくても、 結構いけるような気がする
    $ ls -lagn /var/empty
    total 0
    drwx------+ 1   0 0 May 21 20:20 .
    drwxr-xr-x+ 1 513 0 May 21 20:20 ..
    
    $ ls -lag  /var/empty
    total 0
    drwx------+ 1 root 0 May 21 20:20 .
    drwxr-xr-x+ 1 None 0 May 21 20:20 ..
    
    が、これだと、net start sshd が効かない

/usr/bin/ssh-host-config をやり直したら:

/usr/bin/ssh-host-config を
(priviledge separation yes) で
やり直したら、net start sshd でも無事動くようになった。
Windows XP での SSH の構成 (ibm.com) に何か色々書いてある が、まだ読んでいない


2014年05月18日() 旧暦 [n年日記] [更新:"2014/05/19 02:35:47"]

#1 [spam] www サーバ上で 任意の bash or perl script を実行

www サーバ上で 任意の bash or perl script を実行
されていた気がする。www 権限で。 何故か (どこから入られたか) 不明。一応心当りは手当をしたけれど。


2014年05月13日(火) 旧暦 [n年日記] [更新:"2014/05/13 22:13:54"]

#1 [Phone] WX02SH の着信音の設定

何故か WX02SH の着信音を黒電話の音にする、という課題が発生した
まず内蔵の選択肢には黒電話は無さそう。
音自体は、 にはありそうだが、このページの中には、ダウンロードボタンが見つからない

*.mp3 形式を見つける:

それで、これとは別の NHK ではなくて、どこからか *.mp3 を見つけて来て、(自分の) Web に置き、download すると サウンドフォルダに入ってくれる
しかし、着信音を「サウンド」の中から選ぼうとしても、 「サウンドにはファイルはありません」と言われる

着信音に設定出来るファイルの形式:

そこで、シャープさんのカスタマ・サポートに電話をする。(15:20)
電話口では、すぐには答えは分らず、 後ほど(一時間以内に)担当者から連絡を下さるということで待つ。
それで電話がかかって来て、(16:08) 利用出来るのは
  • .midi または .mid
  • feelsound 形式 (.dxm)
  • Voicedata (.amr)
だとのこと。実は待たなくても ここに書いてあった。
さて、いろいろ探すが mp3 を(今時)これらに変換するのはなかなかない。 そのうちに

というのを見つけて amr 形式に変換。これをやはり Web に置いて、ダウンロード しようとしたが、音だとは思わないのでダウンロード出来ない。
名前を、例えば *.mp3 に変えると、ダウンロードは出来るが、サウンドフォルダには入れられない

*.amr を SD カードで転送:

そこで SD カードを使って、他の計算機で書いておいて読ませようとした。
しかし、単純な msdos 形式の初期化ではだめ。それで、一度電話機側でカードを初期化して、 もう一度別の計算機で見ると
DCIM/PRIVATE/MYFOLDER/Sound のようになっている(これは記憶で書いているので不正確)。
これに sound.amr のように書いて、今度は(電話側で) 直接着信音の設定から探したら、 やっと設定してくれた。


2014年05月12日(月) 旧暦 [n年日記] [更新:"2014/05/12 08:30:36"]

#1 [openssl] git clone openssl

modena@makoto 08:26:53/140512(/export/git-work)% \
git clone https://github.com/openssl/openssl.git
Cloning into 'openssl'...
remote: Reusing existing pack: 139023, done.
remote: Counting objects: 72, done.
remote: Compressing objects: 100% (72/72), done.
Receiving objects: 100% (139095/139095), 42.04 MiB | 957.00 KiB/s, done.
remote: Total 139095 (delta 41), reused 0 (delta 0)
Resolving deltas: 100% (110319/110319), done.
Checking connectivity... done.
modena@makoto 08:27:54/140512(/export/git-work)% 
commit b3ef742cbbc1c8bf0e33dca60f08c65031647b07
Author: Andy Polyakov <appro@openssl.org>
Date:   Sun Sep 15 21:59:25 2013 +0200

    Add support for Cygwin-x86_64.
    
    PR: 3110
    Submitted by Corinna Vinschen.
modena@makoto 08:30:05/140512(..git-work/openssl)% \
git show  b3ef742cbbc1c8bf0e33dca60f08c65031647b07 |wc
     205     851    8384


2014年05月11日() 旧暦 [n年日記] [更新:"2014/05/11 23:09:44"]

#1 [pkgsrc][Cygwin] Just for the record on security/p5-Net-SSLeay

/cygdrive/g/WRKOBJDIR/security/p5-Net-SSLeay/work/.buildlink/lib/libcrypto.a
  (e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:(.text+0x62b):
  undefined reference to `rc4_md5_enc'

/cygdrive/g/WRKOBJDIR/security/p5-Net-SSLeay/work/.buildlink/lib/libcrypto.a
  (e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:(.text+0x62b):
  relocation truncated to fit: R_X86_64_PC32 against undefined
  symbol `rc4_md5_enc'

/cygdrive/g/WRKOBJDIR/security/p5-Net-SSLeay/work/.buildlink/lib/libcrypto.a
  (e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:(.text+0x6bc):
  undefined reference to `rc4_md5_enc'

/cygdrive/g/WRKOBJDIR/security/p5-Net-SSLeay/work/.buildlink/lib/libcrypto.a
   (e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:(.text+0x6bc):
relocation truncated to fit: R_X86_64_PC32 against undefined
symbol `rc4_md5_enc'

/usr/bin/ld: /cygdrive/g/WRKOBJDIR/security/p5-Net-SSLeay/work/.buildlink/lib/libcrypto.a
   (e_rc4_hmac_md5.o): bad reloc address 0x18 in section `.data'

collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /cygdrive/g/WRKOBJDIR/security/p5-Net-SSLeay/work/Net-SSLeay-1.58


2014年05月10日() 旧暦 [n年日記] [更新:"2014/05/10 21:01:50"]

#1 [pkgsrc] lang/tcl on Cygwin

After some modifications are applied, I've got:
...
configure:3331: checking for cross-compile version of gcc
configure:3387: result: no
configure:3423: checking for Windows native path bug in windres
configure:3427: windres -o conftest.res.o C:\cygwin64\tmp\conftest.rc
gcc: error: C:cygwin64tmpconftest.rc: No such file or directory
gcc: warning: '-x c' after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
windres: preprocessing failed.
configure:3430: $? = 1
configure:3435: result: yes
configure:3452: checking for mingw32 version of gcc
configure:3477: gcc -c -O -I/usr/pkg/include -I/usr/pkg/include conftest.c >&5
configure:3483: $? = 0
configure:3487: test -z 
                         || test ! -s conftest.err
configure:3490: $? = 0
configure:3493: test -s conftest.o
configure:3496: $? = 0
configure:3508: result: no
configure:3511: error: gcc cannot produce win32 executables.
Seems backslashes are stripped out. No, it is the function of windres ;-(


2014年05月06日(火) 旧暦 [n年日記] [更新:"2014/05/07 00:22:01"]

#1 [pkgsrc] wip/pulseaudio 5.0

ryo_on (Onodera San) updated pulseaudio to 5.0. Just making package now.
    CPPFLAGS:                      -I/usr/pkg/include
    				   -I/usr/include
				   -I/usr/X11R7/include
				   -I/usr/X11R7/include/freetype2
				   -I/usr/X11R7/include/libdrm
				   -DFASTPATH -D_FORTIFY_SOURCE=2

    LIBS:                          -lgdbm -lpthread -lm -lossaudio

    Enable X11:                    yes
    Enable OSS Output:             yes
    Enable OSS Wrapper:            yes
    Enable EsounD:                 yes
    Enable Alsa:                   no
    Enable CoreAudio:              no
    Enable Solaris:                no
    Enable WaveOut:                no
    Enable GLib 2.0:               yes
    Enable Gtk+ 3.0:               no
    Enable GConf:                  no
    Enable Avahi:                  yes
    Enable Jack:                   no
    Enable Async DNS:              no
    Enable LIRC:                   no
    Enable Xen PV driver:          no
    Enable D-Bus:                  yes
      Enable BlueZ 4:              no
      Enable BlueZ 5:              no
    Enable udev:                   no
      Enable HAL->udev compat:     no
    Enable systemd login:          no
    Enable systemd journal:        no
    Enable TCP Wrappers:           no
    Enable libsamplerate:          yes
    Enable IPv6:                   yes
    Enable OpenSSL (for Airtunes): yes
    Enable fftw:                   no
    Enable orc:                    no
    Enable Adrian echo canceller:  yes
    Enable speex (resampler, AEC): yes
    Enable WebRTC echo canceller:  no
    Enable gcov coverage:          no
    Enable unit tests:             no
    Database
      tdb:                         no
      gdbm:                        yes
      simple database:             no

    System User:                   pulse
    System Group:                  pulse
    Access Group:                  pulse-access
    Enable per-user EsounD socket: yes
    Force preopen:                 no
    Preopened modules:             all

    Legacy Database Entry Support: yes
音が出るもの
  • (command) paplay *.wav
  • native HTML5 player on Firefox.
--- /usr/pkg/share/examples/pulseaudio/default.pa.orig	2014-05-06 22:46:18.000000000 +0900
+++ /usr/pkg/share/examples/pulseaudio/default.pa	2014-05-06 23:53:25.000000000 +0900
@@ -29,6 +29,7 @@
 
 .fail
 
+load-module module-oss device="/dev/audio1" sink_name=output source_name=input
 ### Automatically restore the volume of streams and devices
 load-module module-device-restore
 load-module module-stream-restore
@@ -50,9 +51,9 @@
 #load-module module-pipe-sink
 
 ### Automatically load driver modules depending on the hardware available
-.ifexists module-detect.so
+.ifexists module-udev-detect.so
 ### Use the static hardware detection module (for systems that lack udev support)
-load-module module-detect
+load-module module-udev-detect
 .endif
 
 ### Automatically connect sink and source if JACK server is present
@@ -108,7 +109,7 @@
 load-module module-intended-roles
 
 ### Automatically suspend sinks/sources that become idle for too long
-load-module module-suspend-on-idle
+load-module module-suspend-on-idle timeout=0
 
 ### If autoexit on idle is enabled we want to make sure we only quit
 ### when no local session needs us anymore.



2014年05月03日() 旧暦 [n年日記] [更新:"2014/05/03 10:57:39"]

#1 [無線][radio] CQ WW 2013 160m result (in Japan)

Unofficial results:
 JH2FXK 1.8A 42,280 226 21 49
 JI3KDH 1.8  25,680 199 19 41
 JA1XMS 1.8  11,044 106 17 27
 JK1OPL 1.8A  8,160  73 19 29
 JA5BZL 1.8   6,615  58 16 29

 JH6QFJ 1.8   4,998  57 17 25
*JA1SVP 1.8A  3,885  47 14 23
 JA1KVT 1.8   3,500  47 15 20
 JE2OTM 1.8   3,196  43 13 21
 JA1PTJ 1.8   2,970  41 11 19

*JE1SPY 1.8   1,656  57  9  9
 JL4DJM 1.8   1,560  22 13 17
Diary on 2013/11/25

LCR, Log Checking Report:

     109 Claimed QSO before checking (does not include duplicates)
     106 Final   QSO after  checking reductions

     272 Claimed QSO points
     251 Final   QSO points

      27 Claimed countries
      27 Final   countries

      17 Claimed zones
      17 Final   zones

      44 Claimed mults
      44 Final   mults

   11968 Claimed score
   11044 Final   score

    7.7% Score reduction
    2.8% Error Rate based on claimed and final qso counts
       2 (1.8%) calls copied incorrectly
       1 (0.9%) exchanges copied incorrectly
       0 (0.0%) band change violations
       0 (0.0%) not in log
       2 (1.8%) duplicates (Removed without penalty)
       2 (1.8%) calls unique to this log only (not removed)

********************** Results By Band ***********************

             Band   QSO  QPts  Zone Cty Mult

   Claimed   160M   109   272    17  27   44
   Final     160M   106   251    17  27   44
   ....
   Claimed    All   109   272    17  27   44  Score    11968
   Final      All   106   251    17  27   44  Score    11044

********************* Incorrectly copied *********************

 1815 CW 2013-11-24 1306 JA1XMS          25 W6XD             3 correct     W6XB        
 1812 CW 2013-11-24 1954 JA1XMS          25 DD2MR           14 correct     DD2ML       

*************** Incorrect Exchange Information ***************

 1815 CW 2013-11-24 1233 JA1XMS          25 K5QY             4 correct    5

************* Unique Calls Worked (not removed) **************

 1815 CW 2013-11-24 1255 JA1XMS          25 W0HA             4
 1815 CW 2013-11-24 1304 JA1XMS          25 R5HXJ           16

*******************  Multipliers by band  ********************

160M multiplier total 44

5B    9A    BV    BY    DL    ES    HA    HL    HS    JA    
JT K     KH0   KH2   KH6   KL    LY    LZ    OK    S5
SM SP    UA    UA9   UR    VE    VR

  1  3  4  5 14 15 16 17 18 19 20 23 24 25 26 27 31


2014年05月01日(木) 旧暦 [n年日記] [更新:"2014/05/06 23:51:38"]

#1 [pkgsrc] Audio status NetBSD desktop で音に関する状況(単に僕の理解)

機械 (host machine)HP ML115 G1
音の装置USB audio 下記参照
/netbsd: uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
/netbsd: uaudio0 at uhub0 port 8 configuration 1 interface 0
/netbsd: uaudio0: Burr-Brown from TI USB Audio CODEC, rev 1.10/1.00, addr 4
/netbsd: uaudio0: audio rev 1.00
/netbsd: audio1 at uaudio0: full duplex, playback, capture, independent
/netbsd: uhidev3 at uhub0 port 8 configuration 1 interface 3
/netbsd: uhidev3: Burr-Brown from TI USB Audio CODEC, rev 1.10/1.00, addr 4, iclass 3/0
/netbsd: uhid1 at uhidev3: input=1, output=0, feature=0
音が出るもの
  • audioplay -d /dev/audio1 hoge.wav
  • audacity (wip, audacity-devel 2.0.5) /dev/audio1 を選ぶ
  • fldigi 3.21.76
    • Configure -> Sound Card -> OSS -> /dev/audio1
    • Configure -> Sound Card -> PortAudio -> /dev/audio1
    • Configure -> Sound Card -> pulseaudio -> Server strings (empty)
      (You need to start pulseaudio as 'pulseaudio --verbose')
(まだ)音が出ないもの
  • FireFox (+ adobe-flash-plugin-11.2.202.332)
    PKG_OPTIONS.adobe-flash-plugin+= pulseaudio
    
    (単に pulseaudio の使い方が分らないだけ ?)
  • Skype
    使えるのは pulse だけ (?)
pulseaudio は、少しさわったら、次の方法で起動するようになった。
pulseaudio --verbose
--- /usr/pkg/etc/pulse/default.pa.orig	2014-01-31 17:51:28.000000000 +0900
+++ /usr/pkg/etc/pulse/default.pa	2014-05-01 11:40:37.000000000 +0900
@@ -42,14 +42,15 @@
 ### (it's probably better to not load these drivers manually, but instead
 ### use module-udev-detect -- see below -- for doing this automatically)
 #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
+load-module module-oss device="/dev/audio1" sink_name=output source_name=input
 #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
 #load-module module-null-sink
 #load-module module-pipe-sink
 
 ### Automatically load driver modules depending on the hardware available
-.ifexists module-detect.so
+.ifexists module-udev-detect.so
 ### Use the static hardware detection module (for systems that lack udev support)
-load-module module-detect
+load-module module-udev-detect
 .endif
 
 ### Automatically connect sink and source if JACK server is present

pulseaudio status:

March 2014
2014-03-03: PulseAudio 5.0 has been released. (Changes)
June 2013
2013-06-03: PulseAudio 4.0 has been released. (Changes)
December 2012
2012-12-18: PulseAudio 3.0 has been released. (Changes)
pkgsrcDISTNAME
audio/pulseaudio2.1
wip/pulseaudio3.0
meta-pkgs/pulseaudio-tools

server string on fldigi for pulseaudio is empty:

Now my setup for fldigi, config -> sound card: pulse audio is checked with server string is empty, it functions.



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、10 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)