ホーム » 2017 » 12月

月別アーカイブ: 12月 2017

2017年12月
 12
3456789
10111213141516
17181920212223
24252627282930
31  

カテゴリー

アーカイブ

ブログ統計情報

  • 77,354 アクセス



vector::assign

…\VC98\Include\VECTOR

	void assign(_It _F, _It _L)
		{erase(begin(), end());
		insert(begin(), _F, _L); }
Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

SketchUp から …

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

IGES ファイル

どこまで対応可能か不明だが,IGES の仕様書を読んで自分用にまとめている途中…
https://mish.myds.me/Iwao/Doc/spec/3d/iges/iges.html

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

WordPress サイドバーにテキスト追加

<hr/>
<div style="text-align : center ;" >
  <iframe src='/3D_Data/scene_js/cube_sj.html' name='frm_1' width='65%'> </iframe>
  <script src="/_lib/js/i_lib/2017.12/c_qr_img.js" > </script>
  <script> call_qr_img_href() ; </script>
  <hr/>広告<br/>
  <!-- admax sp --> <script src="//adm.shinobi.jp/s/4c50d8bcfb7ba3cdc7dd08d34af646cf"> </script>
  <!-- admax pc --> <script src="//adm.shinobi.jp/s/81f09af7fdcffc43a2018c06df975139"> </script>
</div>
Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

opkg install tree

以前 DS115j には tree コマンドを入れていたが,DS116 はまだだったので…

Iwao@DS116:/tmp/http$ sudo -i
Password:

root@DS116:~# opkg install tree
-ash: opkg: command not found

root@DS116:~# cd /var/services/homes/Iwao/
root@DS116:/var/services/homes/Iwao# source ./set_ds_inc.sh
root@DS116:/var/services/homes/Iwao# opkg -v
opkg version 0.1.8
root@DS116:/var/services/homes/Iwao# opkg install tree
Installing tree (1.7.0-1) to root...
Downloading http://pkg.entware.net/binaries/armv7/tree_1.7.0-1_armv7soft.ipk
Collected errors:
 * opkg_install_pkg: Package tree md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
 * opkg_install_cmd: Cannot install package tree.
root@DS116:/var/services/homes/Iwao# opkg update
Downloading http://pkg.entware.net/binaries/armv7/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/packages
root@DS116:/var/services/homes/Iwao# opkg install tree
Installing tree (1.7.0-1) to root...
Downloading http://pkg.entware.net/binaries/armv7/tree_1.7.0-1_armv7soft.ipk
Configuring tree.
root@DS116:/var/services/homes/Iwao# tree
.
├── gcc_test
│   ├── 20170922.out
│   ├── a.out
│   ├── editad
│   ├── EditAd.cpp
│   ├── edit_ad.php
│   └── T_P_ini.cpp
├── set_ds_inc.sh
├── Temp
│   └── rc.local
└── www
    └── dmp_   .php

3 directories, 9 files
tree コマンド実行
Synology NAS tree
Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

QR コード挿入のテスト

<div style=”text-align: center;”>
<script src =”/_lib/js/i_lib/2017.12/c_qr_img.js” > </script>
<script> call_qr_img_href() ; </script>
</div>



Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

html がダウンロードに…

html から php を呼出す様にするために,.htaccess に次の内容を追加.
 AddType application/x-httpd-php .php .html
一部の環境ではうまく動作するように見えたが,幾つかの環境でダウンロードになってしまう.


.htaccess を削除して,再度 html を開くと,またダウンロードになってしまう.
別のサーバ名(//mish.myds.me ではなく//ds116)から入ると,正しく表示出来る.
原因はブラウザのキャッシュで,クリアして正しく表示出来る様になった.

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

QR コード生成

QRコードをどこかで使えないかと思いちょっと調べてみた.


先ず読取りから.
moto g5 や 107SH での読取りは,「公式QRコードリーダー”Q”」が良さそう.
 「機能一覧」には「読み取り内容コピー」とある.


今度は生成.
15 年位前に一度調べて,何か面倒そうなイメージがあったが…
検索すると,Y.Swetakeさんの「QR code CGI & PHP scripts」が多くヒットする.
QRcode Perl CGI & PHP scripts ver. 0.50」が最新の様で,「ver. 0.50j ( 2013/5/18)」をダウンロード.
それを解凍し,//ds115j/…/qr/qr_img/ 以下にコピー.
//…/php/qr_img.php を開くと,
 Fatal error: QRcode : Data do not exist. in /…/qr/qr_img/php/qr_img.php on line 88
 「QRcode Perl … トラブルシューティング」を見ると,qr_img.php?d=address とする必要があるとのこと.
 README.sjis にもちゃんと書いてある.


読取りでアドレスをメールなどで送信する方法は見つけた.
「設定」の中の「開く前に確認メッセージを表示」にチェックを付ける.
読取り後の確認画面に,「コピー」や「共有」のメニューが表示される.


2018/01/26 JavaScript 経由で,qr_img.php を呼び出し


2021/07/14 qr_img.php を呼出す JavaScript を修正



* QRコードは(株)デンソーウェーブの登録商標です.

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.

Connection to iwao.synology.me has been lost since 2017-12-01 14:07:12 +09:00

メールを確認していると,次の様な内容が
Dear user,
Connection to iwao.synology.me has been lost since 2017-12-01 14:07:12 +09:00. Please check the network connection of your DiskStation, and make sure its DDNS service is enabled.
Sincerely,
Synology Account


なぜかわからないが,192.168.11.1 の方が「デフォルトゲートウェイ」になっている.
192.168.11.1 は,Wi-Fi 接続側.
「コントロールパネル」のいろいろな設定を見ると確かに 192.168.11.1 の方が選択されている.
チェックを外したり,順番を入替えたりしても「有線」の方に変更できない.
結局,「ワイヤレス」-「ネットワークマップ」で,「ワイヤレスAP」に一度設定して戻すことで対応.

Is this 投稿 useful? Useful Useless 0 of 0 people say this 投稿 is useful.