約 5,705,683 件
https://w.atwiki.jp/memo77/pages/55.html
SetACLのマニュアルを和訳してみるテスト SetACL by Helge Klein Homepage http //setacl.sourceforge.net Version 2.0.2.0 Copyright Helge Klein License GPL OPTIONS -on ObjectName -ot ObjectType -actn Action -ace "n Trustee;p Permission;s IsSID;i Inheritance;m Mode;w Where" -trst "n1 Trustee;n2 Trustee;s1 IsSID;s2 IsSID;ta TrusteeAction;w Where" -dom "n1 Domain;n2 Domain;da DomainAction;w Where" -ownr "n Trustee;s IsSID" -grp "n Trustee;s IsSID" -rec Recursion -op "dacl Protection;sacl Protection" -rst Where -lst "f Format;w What;i ListInherited;s DisplaySID" -bckp Filename -log Filename -fltr Keyword -clr Where -silent -ignoreerr PARAMETERS ObjectName Name of the object to process (e.g. c \mydir ) ObjectType Type of object file Directory/file reg Registry key srv Service prn Printer shr Network share Action Action(s) to perform ace Process ACEs specified by parameter(s) -ace trustee Process trustee(s) specified by parameter(s) -trst . domain Process domain(s) specified by parameter(s) -dom . list List permissions. A backup file can be specified by parameter -bckp . Controlled by parameter -lst . restore Restore entire security descriptors backed up using the list function. A file containing the backup has to be specified using the parameter -bckp . The listing has to be in SDDL format. setowner Set the owner to trustee specified by parameter -ownr . setgroup Set the primary group to trustee specified by parameter -grp . clear Clear the ACL of any non-inherited ACEs. The parameter -clr controls whether to do this for the DACL, the SACL, or both. setprot Set the flag allow inheritable permissions from the parent object to propagate to this object to the value specified by parameter -op . rstchldrn Reset permissions on all sub-objects and enable propagation of inherited permissions. The parameter -rst controls whether to do this for the DACL, the SACL, or both. TrusteeAction Action to perform on trustee specified remtrst Remove all ACEs belonging to trustee specified. repltrst Replace trustee n1 by n2 in all ACEs. cpytrst Copy the permissions for trustee n1 to n2 . DomainAction Action to perform on domain specified remdom Remove all ACEs belonging to trustees of domain specified. repldom Replace trustees from domain n1 by trustees with same name from domain n2 in all ACEs. cpydom Copy permissions from trustees from domain n1 to trustees with same name from domain n2 in all ACEs. Trustee Name or SID of trustee (user or group). Format a) [(computer | domain)\]name Where computer DNS or NetBIOS name of a computer - name must be a local account on that computer. domain DNS or NetBIOS name of a domain - name must be a domain user or group. name user or group name If no computer or domain name is given, SetACL tries to find a SID for name in the following order 1. built-in accounts and well-known SIDs 2. local accounts 3. primary domain 4. trusted domains b) SID string Domain Name of a domain (NetBIOS or DNS name). Permission Permission to set. Validity of permissions depends on the object type (see below). Comma separated list. Example read,write_ea,write_dacl IsSID Is the trustee name a SID? y Yes n No DisplaySID Display trustee names as SIDs? y Yes n No b Both (names and SIDs) Inheritance Inheritance flags for the ACE. This may be a comma separated list containing the following so sub-objects sc sub-containers np no propagation io inherit only Example io,so Mode Access mode of this ACE a) DACL set Replace all permissions for given trustee by those specified. grant Add permissions specified to existing permissions for given trustee. deny Deny permissions specified. revoke Remove permissions specified from existing permissions for given trustee. b) SACL aud_succ Add an audit success ACE. aud_fail Add an audit failure ACE. revoke Remove permissions specified from existing permissions for given trustee. Where Apply settings to DACL, SACL, or both (comma separated list) dacl sacl dacl,sacl Recursion Recursion settings, depends on object type a) file no No recursion. cont Recurse, and process directories only. obj Recurse, and process files only. cont_obj Recurse, and process directories and files. b) reg no Do not recurse. yes Do Recurse. Protection Controls the flag allow inheritable permissions from the parent object to propagate to this object nc Do not change the current setting. np Object is not protected, i.e. inherits from parent. p_c Object is protected, ACEs from parent are copied. p_nc Object is protected, ACEs from parent are not copied. Format Which list format to use sddl Standardized SDDL format. Only listings in this format can be restored. csv SetACL s csv format. tab SetACL s tabular format. What Which components of security descriptors to include in the listing. (comma separated list) d DACL s SACL o Owner g Primary group Example d,s ListInherited List inherited permissions? y Yes n No Filename Name of a (unicode) file used for list/backup/restore operations or logging. Keyword Keyword to filter object names by. Names containing this keyword are not processed. REMARKS Required parameters (all others are optional) -on (Object name) -ot (Object type) Parameters that may be specified more than once -actn (Action) -ace (Access control entry) -trst (Trustee) -dom (Domain) -fltr (Filter keyword) Only actions specified by parameter(s) -actn are actually performed,regardless of the other options set. Order in which multiple actions are processed 1.restore 2.clear 3.trustee 4.domain 5.ace, setowner, setgroup, setprot 6.rstchldrn 7.list VALID PERMISSIONS a) Standard permission sets (combinations of specific permissions) Files / Directories read Read write Write list_folder List folder read_ex Read, execute change Change profile = change + write_dacl full Full access Printers print Print man_printer Manage printer man_docs Manage documents full Full access Registry read Read full Full access Service read Read start_stop Start / Stop full Full access Share read Read change Change full Full access b) Specific permissions Files / Directories traverse Traverse folder / execute file list_dir List folder / read data read_attr Read attributes read_ea Read extended attributes add_file Create files / write data add_subdir Create folders / append data write_attr Write attributes write_ea Write extended attributes del_child Delete subfolders and files delete Delete read_dacl Read permissions write_dacl Write permissions write_owner Take ownership Registry query_val Query value set_val Set value create_subkey Create subkeys enum_subkeys Enumerate subkeys notify Notify create_link Create link delete Delete write_dacl Write permissions write_owner Take ownership read_access Read control
https://w.atwiki.jp/ohden/pages/585.html
buildするとWarning -7235が出る InstallShield Limited Edition Windows 7 Professional Visual Studio 2013 InstallShieldのプロジェクトを作ると以下のようなwarningが出る。 ISEXP warning -7235 InstallShield could not create the software identification tag because the Tag Creator ID setting in the General Information view is empty. : : Express\SingleImage - 0 error(s), 1 warning(s) warningなのでbuild自体は出来るが、気分が悪いので消したい。 内容読むと、『General Information』の『Tag Creator ID』の設定が空なので『Software Identification Tag』を作れなくて困ってるらしい。 調べてみても『Software Identification Tag』についてイマイチ分からん。 必要か不要かもよう分からんので、生成するの止めてもらう。 生成をoffにするには、『General Information』の[Software Identification Tag]-[Use Software Identification Tag]を『No』に変更すればok。 buildしてみると... Express\SingleImage - 0 error(s), 0 warning(s) 消えました。(`・ω・´) 更新日: 2014年07月08日 (火) 16時31分49秒 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/ssr3/pages/17.html
Table of Contents + ... Table of Contents Introduction Setting up online play1. Requirements 2. Setting up melonDS 2.5 Optional melonDS settingsControl Configuration JIT Configuration Graphics Options 3. melonDS online setup1. Go to the network menu 2. Clear the WFC ID 3. Finding melonAP 4. AltWFC DNS configuration 5. Finishing up 6. Searching for a match Applying the English patch ENG Patch Translation Progress Where to go from here Discord Server Introduction Welcome to the SSR3 wiki! This wiki will be a centralized source of information for competitive online SSR3 PvP. It will include many resources aimed at helping you to play and understand the game. Setting up online play This section will help you set-up online play using melonDS. ※This section will only cover how to play online with melonDS, since it s the most optimal option for PvP. 1. Requirements Before using melonDS, make sure that your PC meets requirements similar to these CPU AMD FX-8350 Graphics Card Nvidia GTX750 ti RAM 4GB DDR3 melonDS is still a relatively new emulator, so it isn t as optimized as older emulators like DeSmuME. These specs will allow you to play SSR3 at a solid 60FPS. However, there ll be an upcoming JIT feature in a new version of the emulator which can provide a significant speed boost (although it s not guaranteed that you ll reach 60FPS). 2. Setting up melonDS ※It is illegal to link DS BIOS files or ROMs. First download melonDS from here melonDS - 0.9 After you ve downloaded the file, extract it with a program like 7-Zip/WinRAR Once the folder has been extracted, place the BIOS and Firmware files into the melonDS folder and rename them to bios7.bin, bios9.bin and firmware.bin like so ※The BIOS and Firmware files are not included in the download since it is illegal to link ROM files. Then, put the SSR3 ROM into the melonDS folder ※The ROM file will NOT be included in the download since it is illegal to link them. Next, download the corresponding save files for your game SSR3 - Black Ace SSR3 - Red Joker Place them in the melonDS folder and give them the same name as the ROM Launch melonDS and setup the proper BIOS/Firmware paths by going to Config Emu Settings You can also configure your controls by going to Input Hotkeys and make sure to go to Config Video Settings and set the 3D renderer to OpenGL since it s faster than Software Rasterizer. Now that we have configured melonDS, it s time to set-up online play. 2.5 Optional melonDS settings (※This step is optional) Here are some optional melonDS settings which you may find helpful. Control Configuration You can configure the controls of melonDS by going to Config Input and hotkeys like so JIT Configuration If your game is slow and under 60FPS, then you can use JIT to try and speed the game up. There s no guarantee that you ll reach 60FPS, but it can help. You can access JIT by going to Config Emu Settings CPU Emulation. Make sure to untick Branch Optimisations as it can cause some issues. Set the Maximum JIT block size to 10 first, then keep increasing it until you get 60FPS. 32 is the maximum block size you can have. Graphics Options You can can improve the way the game looks via upscaling This can be done by going to Config Video Settings I) Select OpenGL. II) Select the desired upscaled resolution. 3. melonDS online setup Load up the game by pressing File Open ROM. Choose the SSR3 ROM which you just placed in the folder. Once you re in-game, follow these instructions 1. Go to the network menu I II Click on the bottom right button. III You will be asked to save your game, press the left option twice. IV Choose the bottom option to go to the WFC WiFi menu. 2. Clear the WFC ID (※Skip this step if the middle option in picture III is greyed out). I Click on the bottom option in the WiFi menu. It will ask you to save before going into the network setup, choose the left option twice. II Choose the orange button. III Click the middle option. IV V Click/press A twice to clear the WFC ID. The emulator will shutdown afterwards, launch the game again and go to the network menu. 3. Finding melonAP I Go to the online setup again and this time around, choose the blue option. II Choose the first WiFi setup box. III Press the blue button at the top to search for an access point. IV You should find melonAP, click on it or press A. V Press A again. VI There will be a connection test performed. It should fail and give you error code 20100 or 20110. Press A to exit the menu and go back to the previous WiFi menu with the WiFi setup boxes. 4. AltWFC DNS configuration I Go to the first WiFi setup box which had previously failed to connect. II Scroll down until you find the Auto-Obtain DNS option. III Set it to false. IV Click on the right option near the primary DNS address to edit it. V Input 172.104.88.237 and then press the bottom right option. VI Press/Click A to save the DNS address. VIII Repeat the same process for the secondary DNS address. 5. Finishing up I Press the top right option to perform a connection test. II It should succeed. III After it succeeds, press the bottom right option to save the WiFi set-up. Now keep pressing B until you re at the WFC online menu. 6. Searching for a match I Press the top option. You will get a prompt which complains about the cartridge and save data not matching, ignore this option and keep pressing the left option until it starts saving. II Choose the top-left option with the question mark to search for opponents. III Click both options once and search for your opponent. This concludes the online setup section of this page. You won t have to repeat this again after doing it for the first time or for other games which use WFC like SSR2 or Mario Kart DS for example. Applying the English patch Before you start, make sure that your ROM file is ABSOLUTELY CLEAN and hasn t been modified with anything before. First, download the patch from here SSR3 ENG PATCH Then, follow the instructions shown in the following picture ENG Patch Translation Progress This still a WIP, but this is what has currently been translated Content Progress Battle card names/descriptions 100% Omega-Xis weapon names descriptions 100% Noise Card ability names 100% Rezon card names 100% Rezon brother card names 100% In-battle dimmer names 100% In-battle Finalize Level text 100% In-battle SSS/MS text 95% In-battle Brother text 95% Other things such as the WFC menus, the folder edit menu, the profile menu and so on are partly translated for now. This is still a WORK IN PROGRESS so there will be a few small mistakes here and there which will be corrected after some time. Where to go from here Now that you have successfully setup melonDS for online play, you should first read the Rules & Regulations page. After that, it s recommended to first grab a pre-made save from the Custom Builds page and learn the game by reading through the ▼Basics part of the Gameplay Mechanics section. However, if you re already familiar with most of the game s systems, you can head straight to the Save Editing section after reading the Rules & Regulations page. Discord Server You can join a SSR3 Discord server to play with other people or ask for help with any issues which you may be having International Discord Server JP Discord Server
https://w.atwiki.jp/satoschi/pages/4814.html
* |Niger-Congo languages|Atlantic-Congo languages|Volta-Congo languages|Kwa languages| 言語類型 現用言語 使用文字 type living language writing system ISO 639-3 【doy】 言語名別称 alternate names Dumpo Ndmpo 方言名 dialect names 参考文献 references WEB ISO 639-3 Registration Authority - SIL International the LINGUIST List Ethnologue
https://w.atwiki.jp/ddr_dp/pages/3813.html
Settin' the Scene(踊) 曲名 アーティスト フォルダ 難易度 BPM NOTES/FA(SA) その他 Settin' the Scene U1 night style GP/A3 踊8 110 185 / 4 先行プレー特典 STREAM VOLTAGE AIR FREEZE CHAOS 38 32 12 19 6 楽譜面(3) / 踊譜面(8) / 激譜面(11) / 鬼譜面(-) 属性 譜面 https //livedoor.blogimg.jp/yanmar195/imgs/1/8/18c617a0.png 譜面動画 https //www.youtube.com/watch?v=H1i46PRe_6o (x3.5, NOTE) 解説 2022/08/10追加。コントローラ購入者特典楽曲パックとして先行プレー可能になる特典曲。 特典を得るには2022/09/04までにDDR GPをプレーする必要がある。 DDR GPのベーシックコース加入&『DanceDanceRevolution 専用コントローラ』を購入でプレー可能。 CS DDR フルフル♪パーティーからの移植曲。 名前 コメント コメント(私的なことや感想はこちら) 名前 コメント
https://w.atwiki.jp/diablo3_2ch/pages/70.html
効果 Unlocked at level 16Cost 10 Discipline Summon a raven companion. Your raven companion will periodically peck at enemies for 21 - 28 damage.仲間のカラスを召喚する。カラスは敵を21 - 28ダメージで攻撃してくれる。 Alabaster Ferret CompanionSummons ferrets instead of a raven. The ferrets collect gold for you and increase gold found on monsters by 40%.カラスの代わりにフェレットを召喚する。フェレットはゴールドを集め、発見するゴールドの量を40%増加させる。 Crimson Spider CompanionSummons a spider instead of a raven. The spiders s attacks also slows the movement of targets by 50% for 9 - 11 seconds.カラスの代わりに蜘蛛を召喚する。蜘蛛の攻撃は目標の移動速度を9 - 11秒間 50%低減させる。 Golden Bat CompanionSummons a bat instead of a raven. The bat grants you 4.0 Hatred per second.カラスの代わりに蝙蝠を召喚する。蝙蝠はHatredを毎秒4.0回復してくれる。 Indigo Boar CompanionSummon a boar instead of a raven. The boar strikes multiple enemies with every swing for 43 - 75 damage.カラスの代わりに猪を召喚する。猪は複数の敵をなぎ払い、一振り毎に43 - 75ダメージを与える。 Obsidan Wolf CompanionSummon a powerful but temporary wolf ally rather than a long-term raven companion. The wolf will fight with you for 55 seconds and attacks enemies for 50 - 82 damage.カラスの代わりに効果時間が短いが強力な狼を召喚する。狼は55秒間一緒に戦い、50 - 82ダメージを与える。 評価 使い方 その他 コメント 名前 コメント Demon Hunter Skills Active Skills Offensive Hungering Arrow、Entangling Shot、Evasive Fire、Fan of Knives、Bola Shot、Grenades、Chakram、Impale、Spike Trap、Elemental Arrow、Multishot、Cluster Arrow、Rapid Fire、Strafe、Rain of Vengeance Descipline Caltrops、Vault、Marked for Death、Smoke Screen、Companion、Shadow Power、Sentry Utility Preparation Passive Skills Brooding、Thrill of the Hunt、Vengeance、Steady Aim、Cull the Weak、Fundamentals、Hot Pursuit、Archery、Perfectionist、Custom Engineering、Grenadier、Sharpshooter、Ballistics
https://w.atwiki.jp/glzon/pages/60.html
レポート作成リクエストの一覧を取得する。 MWSレポート作成チュートリアルの「事前準備」ができてること前提。 リクエストパラメータ作成 MarketplaceWebService_Model_GetReportRequestListRequestオブジェクトを作成する。 $request = new MarketplaceWebService_Model_RequestReportRequest(); $request- setMerchant(MERCHANT_ID); ReportRequestIdの値を指定する場合 レポート作成時に取得したReportRequestIdの値を指定することができる。 その場合、他のリクエストパラメータに指定した条件は無視される。 $request- setReportRequestIdList( 123456789 ); ちなみにReportRequestIdを複数指定することもできる。(まわりくどくて面倒だが・・・) $idList = array( 123456789 , 987654321 , 999999999 ); $reportRequestIdList = new MarketplaceWebService_Model_IdList(); $reportRequestIdList- setId($idList); $request- setReportRequestIdList($reportRequestIdList); レポートの種類を指定する場合 $reportType = new MarketplaceWebService_Model_TypeList(); $reportType- setType( _GET_MERCHANT_LISTINGS_DATA_LITE_ ); $request- setReportTypeList($reportType); ちなみに、$reportType- setType()の引数に配列を渡すことで、複数の種類を指定することもできる。 その他のパラメータ めんどいので試してない・・・。 // ReportProcessingStatusList // レポートの処理ステータスを指定 // 値は、_SUBMITTED_、_IN_PROGRESS_、_CANCELLED_、_DONE_、_DONE_NO_DATA_ // デフォルトは全て $request- setReportProcessingStatusList( _DONE_ ); // 複数指定する場合は、MarketplaceWebService_Model_StatusListオブジェクトを作ってごにょごにょ // MaxCount // レスポンスで取得するレポートリクエストの最大数を1~100の間で指定。 // デフォルトは10 $request- setMaxCount(100); // RequestedFromDate // レポート作成リクエストを送信した日付範囲の開始日 $request- setRequestedFromDate(new DateTime( -7 day )); // RequestedToDate // レポート作成リクエストを送信した日付範囲の終了日 $request- setRequestedToDate(new DateTime( now )); リクエストを送信 $response = $service- getReportRequestList($request); $service はMarketplaceWebService_Clientオブジェクト。 レスポンスを確認 if ($response- isSetGetReportRequestListResult()) { $getReportRequestListResult = $response- getGetReportRequestListResult(); $reportRequestInfoList = $getReportRequestListResult- getReportRequestInfoList(); foreach ($reportRequestInfoList as $reportRequestInfo) { if ($reportRequestInfo- isSetReportRequestId()) { $reportRequestId = $reportRequestInfo- getReportRequestId(); } if ($reportRequestInfo- isSetReportType()) { $reportType = $reportRequestInfo- getReportType(); } if ($reportRequestInfo- isSetReportProcessingStatus()) { $reportRequestInfo- getReportProcessingStatus(); } } } ReportRequestInfoの値が「_DONE_」になってれば、レポートの作成は完了。 対象のデータがなかった場合は「_DONE_NO_DATA」。 例) ?php require_once( .config.inc.php ); $serviceUrl = "https //mws.amazonservices.jp"; $config = array ( ServiceURL = $serviceUrl, ProxyHost = null, ProxyPort = -1, MaxErrorRetry = 3, ); $service = new MarketplaceWebService_Client( AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, $config, APPLICATION_NAME, APPLICATION_VERSION ); $reportRequestIdList = new MarketplaceWebService_Model_IdList(); $reportRequestIdList- setId( 123456789 ); // ReportRequestId $request = new MarketplaceWebService_Model_GetReportRequestListRequest(); $request- setMerchant(MERCHANT_ID); $request- setReportRequestIdList($reportRequestIdList); try { $response = $service- getReportRequestList($request); if ($response- isSetGetReportRequestListResult()) { $getReportRequestListResult = $response- getGetReportRequestListResult(); $reportRequestInfoList = $getReportRequestListResult- getReportRequestInfoList(); foreach ($reportRequestInfoList as $reportRequestInfo) { print_r($reportRequestInfo); } } } catch (MarketplaceWebService_Exception $ex) { print_r($ex); } ? 次はレポートのIDを取得(GetReportList)
https://w.atwiki.jp/aerocats/pages/49.html
標準Linuxの/etc/init.d/内にある。 スクリプト スクリプト詳細configure関数 set_defaultGw関数 set_defaultIp関数 set_defaultIf関数 set_dns関数 start関数 stop関数 スクリプト本体 スクリプト #!/bin/sh # # start/stop network deamons # # DHCPCD=/sbin/dhcpcd BASE=`basename $DHCPCD` LOCK=/var/lock/networking . /usr/local/bin/kuro_lib if [ -f /etc/netinfo ]; then . /etc/netinfo fi # for dhcpcd.exe export INTERFACE=$ENETNAME configure() { echo "create network files.." echo "IP=[$my_ipaddress], netmask=[$my_subnetmask], dgw=[$my_dgw], dns1=[$my_dns1], dns2=[$my_dns2]" if [ "$my_ipaddress" = "" ]; then my_ipaddress=$DEFAULT_IP my_subnetmask=255.255.255.0 my_dgw= fi touch /etc/resolv.conf } set_defaultGw() { if [ "$my_dgw" = "" ]; then route del default else route add default gw $my_dgw fi } set_defaultIp() { echo "** setting default ip" /sbin/ifconfig $ENETNAME $DEFAULT_IP netmask 255.255.255.0 # delete default gw my_dgw= } set_defaultIf() { TMP=`cat /proc/net/route |awk {print $4} |grep 0003` if [ "$TMP" = "" ]; then echo "add default if" #route add -net 255.255.255.255 netmask 255.255.255.255 $ENETNAME route add -net default $ENETNAME fi } set_dns() { echo "Configuration resolv.conf" cat /dev/null /etc/resolv.conf if [ "$my_dns1" != "" ]; then echo "nameserver $my_dns1" /etc/resolv.conf fi if [ "$my_dns2" != "" ]; then echo "nameserver $my_dns2" /etc/resolv.conf fi } start() { configure /sbin/ifconfig lo up killall $BASE rm -f /etc/dhcpc/dhcpcd-eth0.pid # delete default gw while do /sbin/route del default if [ $? -ne 0 ]; then break fi done sleep 1 echo "Configuration network interface lo $ENETNAME" ## ## change mtu (frame-size 1518,4100,7418) ## if [ "$mtu" = "4102" ] ; then mtu=4084 elif [ "$mtu" = "7422" ] ; then mtu=7404 elif [ "$mtu" = "9694" ] ; then mtu=9676 else mtu=1500 fi /sbin/ifconfig $ENETNAME mtu $mtu multicast if [ $? -ne 0 ]; then echo "mtu fail" /sbin/ifconfig $ENETNAME mtu 1500 multicast fi if [ "$my_ipaddress" = "dhcp" ]; then if [ "$my_dgw" != "" ]; then echo "--- set static dgw" DHCP_GW="-G $my_dgw" fi ## see also /etc/dhcpc/dhcpcd.exe echo "DHCPCSTATE=requesting" /var/tmp/dhcpcstate ## echo "requesting DHCP tout=30[s]" $DHCPCD -L /etc/dhcpc -h `hostname` $DHCP_GW -t 15 $ENETNAME if [ $? -ne 0 ]; then echo "** dhcp fail" echo "DHCPCSTATE=fixip" /var/tmp/dhcpcstate set_defaultIp set_defaultGw # wait linkup delay sleep 4 fi else echo "DHCPCSTATE=fixip" /var/tmp/dhcpcstate echo "/sbin/ifconfig $ENETNAME $my_ipaddress netmask $my_subnetmask" /sbin/ifconfig $ENETNAME $my_ipaddress netmask $my_subnetmask if [ $? -ne 0 ]; then set_defaultIp fi set_defaultGw set_dns fi ## set_defaultIf ## set ipaddress in /etc/hosts /etc/init.d/sethostname.sh #/usr/local/bin/change_notify.sh network } stop() { echo "Deconfiguration network interface lo $ENETNAME" killall $BASE /sbin/ifconfig $ENETNAME down /sbin/ifconfig lo down } # for NFS TMP=`grep /dev/root /proc/mounts|grep nfs` if [ "$TMP" != "" ]; then echo "nfs root mode. skip $ENETNAME network configuration." exit 0 fi # lock_file check lock_file create case "$1" in start) start ;; stop) stop ;; restart) stop sleep 1 start ;; *) echo "Usage $0 {start|stop|restart}" ;; esac lock_file delete exit 0 スクリプト詳細 ブロックごとに見てみる。 #!/bin/sh # # start/stop network deamons # # シェルにshを指定。ネットワークデーモンの開始/停止のコメント。 DHCPCD=/sbin/dhcpcd BASE=`basename $DHCPCD` LOCK=/var/lock/networking DHCPCDという変数を用意し、そこに/sbin/dhcpcdを代入。 BASEという変数を用意し、そこに basename /sbin/dhcpcd を代入。 LOCKという変数を用意し、そこに/var/lock/networkingを代入。 . /usr/local/bin/kuro_lib /usr/local/bin/kuro_libをサブシェルで走らせる。 kuro_lib内の DEFAULT_IP変数(=192.168.11.150) ENETNAME変数(=eth0) lock_file関数 を使用するためだ。 if [ -f /etc/netinfo ]; then /etc/netinfoが存在すれば(/etcにnetinfoというファイルがあれば)以下を実行。 . /etc/netinfo /etc/netinfoをサブシェルで走らせる。 netinfo内の my_ipaddress変数 my_subnetmask変数 my_dgw変数 my_dns1変数 my_dns2変数 mtu変数 を使用するためだ。 fi /etc/netinfoの存在の有無の条件分岐を終了。 # for dhcpcd.exe /etc/dhcpc/dhcpcd.exeのために、というコメント。 export INTERFACE=$ENETNAME 環境変数を設定するexportコマンドで、INTERFACE変数にeth0を代入している。 ここからは7つの関数の記述になる。 configure関数 configure() { configure関数の定義が始まる。 echo "create network files.." echo "IP=[$my_ipaddress], netmask=[$my_subnetmask], dgw=[$my_dgw], dns1=[$my_dns1], dns2=[$my_dns2]" 画面に create network files.. IP=[IPアドレス値], netmask=[ネットマスク値], dgw=[デフォルトゲートウェイ値], dns1=[DNS1値], dns2=[DNS2値] と表示される。 if [ "$my_ipaddress" = "" ]; then my_ipaddress変数に何も設定されていなければ以下を実行。 my_ipaddress=$DEFAULT_IP my_subnetmask=255.255.255.0 my_dgw= my_ipaddress変数にDEFAULT_IP変数の値、my_subnetmask変数に255.255.255.0、my_dgw変数は空、とそれぞれの変数に値を代入。 fi my_ipaddress変数が空かどうかの条件分岐を終了。 touch /etc/resolv.conf /etcにresolv.confというファイルを作成。 } configure関数はここまで。 set_defaultGw関数 set_defaultGw() { set_defaultGw関数の定義ここから。 if [ "$my_dgw" = "" ]; then my_dgw変数が空であれば以下を実行。 route del default routeコマンド?でデフォルト経路情報を削除。 デフォルト経路とは、自分の経路情報に記録されていない宛て先のパケットを送るためのものだ。 一般的にはルーターを指す。 else my_dgw変数が空でなければ以下を実行。 route add default gw $my_dgw routeコマンド?で、デフォルト経路としてmy_dgw変数の内容を経路テーブルに追加。 fi my_dgw変数が空かどうかの条件分岐を終了。 } set_defaultGw関数はここまで。 set_defaultIp関数 set_defaultIp() { set_defaultIp関数はここから。 echo "** setting default ip" /sbin/ifconfig $ENETNAME $DEFAULT_IP netmask 255.255.255.0 画面上に「** setting default ip」と表示。 ifconfigコマンド?でeth0にDEFAULT_IP変数の値とnetmaskを255.255.255.0を設定。 # delete default gw my_dgw= デフォルトゲートウェイを削除する、というコメントの後にmy_dgw変数に空を代入している。 } set_defaultIp関数はここまで。 set_defaultIf関数 set_defaultIf() { set_defaultIf関数はここから。 TMP=`cat /proc/net/route |awk {print $4} |grep 0003` TMPという変数を用意して、そこに「cat /proc/net/route |awk {print $4} |grep 0003」の結果を代入している。 3つの命令をパイプでつないでいるのだが、ひとつづつ見てみる。 cat /proc/net/route /proc/net/routeを読み込んで次の命令に渡す。 この/procにはprocファイルシステムがマウントされていて、カーネルの各種統計情報を閲覧することができるが、/proc/net/routeにはIP経路情報が記載されている。 このコマンドを実行してみると Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT eth0 0001A8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 eth0 00000000 0101A8C0 0003 0 0 0 00000000 0 0 0 というように出力された。 awk {print $4} awkコマンド?で第4パラメータを抜き取って次の命令へ。 第4パラメータとは、上の表から「Flags」のことだとわかる。 grep 0003 「0003」という文字列を検索している。 実際に「0003」という文字列があったので、この場合、TMP変数には「0003」と入る。 フラグ「0003」とは「経路は有効でゲートウェイを使用する」という内容だ。 今の例で言うなら、宛て先が「0.0.0.0/0」なので選ばれた経路はデフォルト経路である。 つまり、この一連の命令は「デフォルト経路をeth0が持っているかどうか」を調べていたのだ。 なければ空白が入る。 if [ "$TMP" = "" ]; then TMP変数が空なら以下を実行。 echo "add default if" 画面に「add default if」と表示。 #route add -net 255.255.255.255 netmask 255.255.255.255 $ENETNAME route add -net default $ENETNAME routeコマンド?でeth0経由のネットワーク255.255.255.255を追加する、はコメントアウトされ、routeコマンド?でeth0にデフォルト経路を追加している。 コメントアウトされている255.255.255.255/32の経路情報は「ローカルブロードキャスト」と呼ばれるもので、ルーターを超えないLAN内に一斉にパケットを送信する手段である。 fi TMP変数の内容の条件分岐を終了する。 } set_defaultIf関数はここまで。 set_dns関数 set_dns() { set_dns関数はここから。 echo "Configuration resolv.conf" 画面に「Configuration resolv.conf」と表示する。 cat /dev/null /etc/resolv.conf /etc/resolv.confの内容を消去している。 if [ "$my_dns1" != "" ]; then my_dns1変数が空でなければ以下を実行。 echo "nameserver $my_dns1" /etc/resolv.conf 「nameserver my_dns1変数の値」を/etc/resolv.confに追記。 fi my_dns1変数が空かどうかの条件分岐を抜ける。 if [ "$my_dns2" != "" ]; then my_dns2変数が空でなければ以下を実行。 echo "nameserver $my_dns2" /etc/resolv.conf 「nameserver my_dns2変数の値」を/etc/resolv.confに追記。 fi my_dns2変数が空かどうかの条件分岐を終了する。 } set_dns関数はここまで。 start関数 start() { start関数の定義が始まる。 configure configure関数の実行。 /sbin/ifconfig lo up ifconfigコマンド?でlo(ループバック)デバイスを始動する。 killall $BASE killallコマンド?で「basename /sbin/dhcpcd」を停止する、という内容だが、basenameコマンド?で/sbin/dhcpcdを「dhcpcd」と削ってkillallコマンド?に渡している。 結果的には「killall dhcpcd」となる。 rm -f /etc/dhcpc/dhcpcd-eth0.pid /etc/dhcpc/dhcpcd-eth0.pidをrmコマンド?で消去する。 # delete default gw デフォルトゲートウェイを削除する、とのコメント。 while do /sbin/route del default if [ $? -ne 0 ]; then break fi done while文による無限ループだ。 /sbin/route del default routeコマンド?でデフォルト経路を削除し if [ $? -ne 0 ]; then break fi routeコマンド?がエラーの終了ステータス「1」を返すまでbreak文でループから抜けられない。 sleep 1 1秒数えたあと echo "Configuration network interface lo $ENETNAME" 画面上に「Configuration network interface lo eth0」と表示。 ## ## change mtu (frame-size 1518,4100,7418) ## mtuの変更、とのコメント。 if [ "$mtu" = "4102" ] ; then mtu=4084 elif [ "$mtu" = "7422" ] ; then mtu=7404 elif [ "$mtu" = "9694" ] ; then mtu=9676 else mtu=1500 fi mtu変数が 4102であればmtu変数に4084を代入 7422であればmtu変数に7404を代入 9694であればmtu変数に9676を代入 それ以外ならmtu変数に1500を代入 という内容だ。 /sbin/ifconfig $ENETNAME mtu $mtu multicast ifconfigコマンド?でeth0のmtuを上で判別した値に設定しマルチキャストフラグを立てる。 if [ $? -ne 0 ]; then echo "mtu fail" /sbin/ifconfig $ENETNAME mtu 1500 multicast fi ifconfigコマンド?がエラーの場合、画面上に「mtu fail」と表示し、eth0のmtuを1500に設定しマルチキャストフラグを立てる。 if [ "$my_ipaddress" = "dhcp" ]; then my_ipaddress変数が「dhcp」であれば以下を実行。 if [ "$my_dgw" != "" ]; then my_dgw変数が空でなければ以下を実行。 echo "--- set static dgw" DHCP_GW="-G $my_dgw" 画面上に「--- set static dgw」と表示。 DHCP_GWという変数を用意し、「-G $my_dgw」を代入。 fi my_dgw変数が空かどうかの条件分岐を終了する。 ## see also /etc/dhcpc/dhcpcd.exe echo "DHCPCSTATE=requesting" /var/tmp/dhcpcstate /etc/dhcpc/dhcpcd.exeを参照、とのコメント。 /var/tmp/dhcpcstateに「DHCPCSTATE=requesting」を書き込み。 ## echo "requesting DHCP tout=30[s]" 画面上に「requesting DHCP tout=30[s]」と表示する。 $DHCPCD -L /etc/dhcpc -h `hostname` $DHCP_GW -t 15 $ENETNAME /sbin/dhcpcd -L /etc/dhcpc -h `hostname` $DHCP_GW -t 15 eth0 を実行。 if [ $? -ne 0 ]; then エラーが返れば以下を実行。 echo "** dhcp fail" 画面上に「** dhcp fail」と表示する。 echo "DHCPCSTATE=fixip" /var/tmp/dhcpcstate /var/tmp/dhcpcstateに「DHCPCSTATE=fixip」と書き込む。 set_defaultIp set_defaultGw set_defaultIp関数とset_defaultGw関数を実行する。 # wait linkup delay sleep 4 リンクが始動するのを4秒間待つ。 fi dhcpcdコマンドがエラーを返すかどうかの条件分岐を終了する。 else my_ipaddress変数が「dhcp」でなければ以下を実行。 echo "DHCPCSTATE=fixip" /var/tmp/dhcpcstate /var/tmp/dhcpcstateに「DHCPCSTATE=fixip」と書き込む。 echo "/sbin/ifconfig $ENETNAME $my_ipaddress netmask $my_subnetmask" /sbin/ifconfig $ENETNAME $my_ipaddress netmask $my_subnetmask /sbin/ifconfig eth0 $my_ipaddress netmask $my_subnetmask を実行。 if [ $? -ne 0 ]; then エラーが返れば以下。 set_defaultIp set_defaultIp関数を実行。 fi エラーかどうかの判別終了。 set_defaultGw set_dns set_defaultGw関数、set_dns関数の実行。 fi my_ipaddress変数が「dhcp」かどうかの条件分岐を終了する。 ## set_defaultIf set_defaultIf関数を実行する。 ## set ipaddress in /etc/hosts /etc/init.d/sethostname.sh /etc/hostsにIPアドレスを設定する、というコメント。 /etc/init.d/sethostname.shの実行。 #/usr/local/bin/change_notify.sh network /usr/local/bin/change_notify.sh networkの実行はコメントアウトだ。 } start関数はここまで。 stop関数 stop() { stop関数はここから。 echo "Deconfiguration network interface lo $ENETNAME" 画面上に「Deconfiguration network interface lo eth0」と表示する。 killall $BASE killallコマンド?で「basename /sbin/dhcpcd」を停止する、という内容だが、basenameコマンド?で/sbin/dhcpcdを「dhcpcd」と削ってkillallコマンド?に渡している。 結果的には「killall dhcpcd」となる。 /sbin/ifconfig $ENETNAME down ifconfigコマンド?でeth0を停止している。 /sbin/ifconfig lo down ifconfigコマンド?でlo(ループバック)デバイスを停止している。 } stop関数はここまで。 スクリプト本体 # for NFS NFS用の分岐。NFSとは「Network File System」の略。 ネットワーク上のデバイスを自分のファイルのように扱えるファイルシステムだ。 TMP=`grep /dev/root /proc/mounts|grep nfs` TMPという変数を用意し、そこに「grep /dev/root /proc/mounts|grep nfs」を代入している。 1つめのgrep /proc/mountsから/dev/rootという文字列を検索している。その結果を次に渡す。 2つめのgrep 渡された結果からnfsという文字列を検索している。 これらはつまり「/dev/rootがnfs形式でマウントされているかどうか」を調査しているということだ。 この結果は「(空)」か「nfs」というどちらか2つしかない。 if [ "$TMP" != "" ]; then TMP変数が空でなければ以下を実行。 つまり/dev/rootがnfs形式でマウントされていれば、という条件だ。 echo "nfs root mode. skip $ENETNAME network configuration." 画面上に「nfs root mode. skip eth0 network configuration.」と表示。 exit 0 終了ステータスに正常を示す「0」を設定しスクリプトを終了する。 fi TMP変数が空かどうかの条件分岐を終了。 lock_file check /usr/local/bin/kuro_libのlock_file関数にcheckという引数を付けて実行。 lock_file関数を見てみる。 lock_file関数 lock_file(){ lock_file関数はここから。 case $1 in 第1引数の内容で処理内容を分岐する。 checkの場合 check) [ -f "${LOCK}" ] echo "${THIS_SCRIPT} already runnign" /var/lock/networkingが存在すれば、画面上に「${THIS_SCRIPT} already runnign」と表示する。 ちなみに行末の「runnign」は「running」のスペルミスだろう。 return 1 ;; 戻り値に「1」を設定しlock_file関数を終了する。 createの場合 create) echo "${THIS_SCRIPT}" $2 ${LOCK} ;; 「${THIS_SCRIPT} 第2引数」と/var/lock/networkingに書き込む。 deleteの場合 delete) rm -f ${LOCK} ;; /var/lock/networkingを消去する。 delete_logの場合 delete_log) rm -f ${LOCK}.log ;; /var/lock/networking.logを消去する。 それ以外の場合 *) ;; 何もしない。 esac 第1引数の内容による処理振り分けを終了する。 } lock_file関数はここまで。 lock_file create case "$1" in start) start ;; stop) stop ;; restart) stop sleep 1 start ;; *) echo "Usage $0 {start|stop|restart}" ;; esac lock_file delete exit 0
https://w.atwiki.jp/freebsd/pages/106.html
FDをマウントするとInput/Output error! htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 FDをマウントすると Input/Output error! って出ます。 htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 377 そうですか。で、質問は? htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 なんで? htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 379 ディスクが壊れているかドライブが壊れているか ディスク形式が悪いのかmountのコマンドを間違えたか 運が悪いか htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 379 わかった! 日本語メッセージカタログをインストールしてないか、 またはLANG=Cにしてるのが原因。 日本語メッセージカタログをインストールして、 LANG=ja_JP.eucJPにすれば、ちゃんと、 「入力/出力エラー!」 と表示されるよ。 htmlプラグインエラー このプラグインを使うにはこのページの編集権限を「管理者のみ」に設定してください。 m9(^Д^)ト゛ララー
https://w.atwiki.jp/amslracing/pages/43.html
gmapping ROSに標準で実装されているSLAMのパッケージであるgmapping(http //www.ros.org/wiki/gmapping)についてのちょっとした説明. Grid mapを構築する為のSLAMであり,このアルゴリズム自体は非常に代表的なアルゴリズムで実装されている. OpenSLAMプロジェクトのソースを利用しているらしく, http //openslam.org/gmapping.html も参照している. このページに書かれているように,元になった論文は Giorgio Grisetti, Cyrill Stachniss, and Wolfram Burgard Improved Techniques for Grid Mapping with Rao-Blackwellized Particle Filters, IEEE Transactions on Robotics, 2006 Giorgio Grisetti, Cyrill Stachniss, and Wolfram Burgard Improving Grid-based SLAM with Rao-Blackwellized Particle Filters by Adaptive Proposals and Selective Resampling, In Proc. of the IEEE International Conference on Robotics and Automation (ICRA), 2005 である. 次に本SLAMのアルゴリズムの簡単な説明をする. アルゴリズムの説明 このSLAMはParticleフィルタのフレームワークを用いたGrid mapベースのSLAMアルゴリズムである. よって,FastSLAM2.0のフレームワークといえる. ここで,FastSLAM1.0ではない理由は,Scan matchによって遷移モデルの再サンプリングをしているからである. 大まかなアルゴリズムの説明を以下に載せる. アルゴリズム ロボットの運動モデルに従ってパーティクルを遷移させる 遷移したパーティクルそれぞれにScan matchをかけて位置を補正する 各パーティクルに対してレーザスキャンデータと地図との尤度を計算し,Particle FilterのImportance Weightsを計算する. 地図を更新 Sequential Importance Resampling(SIR)(おそらく)によってリサンプリング 1に戻って各パーティクルを運動モデルによって遷移させる このアルゴリズムではScan matchingをすることによって,遷移させたパーティクルの分布をより確からしい位置に補正を欠けているため,少ないパーティクルでも良い結果が得られやすい. このコンセプトはFastSLAM2.0と同様なものである. Scan matchingのアルゴリズムはICPではなく,CARMENのVascoが実装されている. なので,比較的いScan matchができている. gmappingパラメータ SLAMを行う上で必要なパラメータが幾つかある. ここでは簡単なパラメータの説明を行う. gmappingのページにも説明が載っているので参考に. またslam_gmapping.cppのコメントにも記載されており,こちらのほうが分かりやすいかも. 以下,slam_gmapping.cppのコメントより (以下,編集中) Parameters used by GMapping itself ~throttle_scans [int] throw away every nth laser scan ~base_frame [string] the tf frame_id to use for the robot base pose ~map_frame [string] the tf frame_id where the robot pose on the map is published ~odom_frame [string] the tf frame_id from which odometry is read ~map_update_interval [double] time in seconds between two recalculations of the map Laser Parameters ~/maxRange [double] maximum range of the laser scans. Rays beyond this range get discarded completely. (default maximum laser range minus 1 cm, as received in the the first LaserScan message) ~/maxUrange [double] maximum range of the laser scanner that is used for map building (default same as maxRange) ~/sigma [double] standard deviation for the scan matching process (cell) ~/kernelSize [double] search window for the scan matching process ~/lstep [double] initial search step for scan matching (linear) ~/astep [double] initial search step for scan matching (angular) ~/iterations [double] number of refinement steps in the scan matching. The final "precision" for the match is lstep*2^(-iterations) or astep*2^(-iterations), respectively. ~/lsigma [double] standard deviation for the scan matching process (single laser beam) ~/ogain [double] gain for smoothing the likelihood ~/lskip [int] take only every (n+1)th laser ray for computing a match (0 = take all rays) Motion Model Parameters (all standard deviations of a gaussian noise model) ~/srr [double] linear noise component (x and y) ~/stt [double] angular noise component (theta) ~/srt [double] linear - angular noise component ~/str [double] angular - linear noise component Others ~/linearUpdate [double] the robot only processes new measurements if the robot has moved at least this many meters ~/angularUpdate [double] the robot only processes new measurements if the robot has turned at least this many rads ~/resampleThreshold [double] threshold at which the particles get resampled. Higher means more frequent resampling. ~/particles [int] (fixed) number of particles. Each particle represents a possible trajectory that the robot has traveled Likelihood sampling (used in scan matching) ~/llsamplerange [double] linear range ~/lasamplerange [double] linear step size ~/llsamplestep [double] linear range ~/lasamplestep [double] angular setp size Initial map dimensions and resolution ~/xmin [double] minimum x position in the map [m] ~/ymin [double] minimum y position in the map [m] ~/xmax [double] maximum x position in the map [m] ~/ymax [double] maximum y position in the map [m] ~/delta [double] Grid mapのGridの一辺のサイズ [m]