約 1,587,247 件
https://w.atwiki.jp/ros-j/pages/18.html
Thinkpad X61 tabletで USBメモリ(swap 1GB, ext3 7GB)上にUbuntu 9.04 をインストール。 http //pr.willowgarage.com/wiki/ROS/Installation に従いインストール rosmake move_base_stage 成功 roscd move_base_stage roslaunch move_base_fake_localization_2.5cm.launch terminate called after throwing an instance of Ogre RenderingAPIException what() OGRE EXCEPTION(3 RenderingAPIException) Zero sized texture surface on texture NavViewMapTexture0 face 0 mipmap 0. Probably, the GL driver refused to create the texture. in GLTexture _createSurfaceList at OgreGLTexture.cpp (line 394) [ INFO] 14.000000000 Received a 2332 X 1825 map at 0.025000 m/pix [nav_view-6] process has died [pid 27857, exit code -6]. log files /home/ogutti/ros/ros/log/f0bc0f54-7e3b-11de-aad8-0013e8ec4023/nav_view-6*.log プロセスが起動せず動かない rosmake 2dnav_stage roscore roscd 2dnav_stage roslaunch 2dnav_stage_fake_localization_wavefront.launch [nav_view-6] process has died [pid 28584, exit code -6]. log files /home/ogutti/ros/ros/log/00820b88-7e27-11de-aad8-0013e8ec4023/nav_view-6*.log GUIが出るが、プロセス死亡により動かない rosmake 2dnav_gazebo [ 75%] Building CXX object CMakeFiles/axis.dir/src/libaxis_cam/axis_cam.o /home/ogutti/ros/ros-pkg/drivers/cam/axis_cam/src/libaxis_cam/axis_cam.cpp 33 から include されたファイル中 /home/ogutti/ros/ros-pkg/drivers/cam/axis_cam/include/axis_cam/axis_cam.h 33 23 error curl/curl.h No such file or directory sudo apt-get install libcurl4-gnutls-dev rosmake 2dnav_gazebo Linking CXX shared library ../lib/libtrex_ros_o.so /usr/bin/ld cannot find -lUtils_o collect2 ld はステータス 1 で終了しました apt-get install jam apt-get install sun-java-jdk roscd 2dnav_gazebo configure WARNING Need to be able to run coin-config to figure out how to build and link against the Coin library. To rectify this problem, you most likely need to a) install Coin if it has not been installed, b) add the Coin install bin/ directory to your PATH environment variable. configure error couldn t compile and link against Coin make *** [installed] エラー 1 [rosmake] (145 of 159) error while building soqt in /home/ogutti/ros/ros-pkg/openrave_planning/soqt. aborting... sudo apt-get install libcoin60-dev roscd 2dnav_gazebo # /home/ogutti/ros/ros-pkg/openrave_planning/soqt checking value of the QTDIR environment variable... empty checking for moc-qt4... false configure WARNING QTDIR environment variable not set -- this might be an indication of a problem configure WARNING the ``moc-qt4 Qt pre-processor tool not found checking for moc... false configure WARNING QTDIR environment variable not set -- this might be an indication of a problem configure WARNING the ``moc Qt pre-processor tool not found Found no manner in which the Qt moc utility could be run. Make sure Qt is properly installed on your system. Did you perhaps forget to set up the environment variable QTDIR to the base of the Qt installation directory? Or if it was already set up, double check to see that it is pointing at the correct directory. configure error aborting make *** [installed] エラー 1 sudo apt-get install libqt4-dev ディスク容量が不足。 sudo apt-get autoremove ... もうだめぽ
https://w.atwiki.jp/chunnomi/pages/14.html
http //code.google.com/p/threedbattle/source/checkout 自作 http //chunnomi.blog.shinobi.jp/ ブログ
https://w.atwiki.jp/touhoukashi/pages/1994.html
【登録タグ C めらみぽっぷ 凋叶棕 恋色マジック 曲 音】 【注意】 現在、このページはJavaScriptの利用が一時制限されています。この表示状態ではトラック情報が正しく表示されません。 この問題は、以下のいずれかが原因となっています。 ページがAMP表示となっている ウィキ内検索からページを表示している これを解決するには、こちらをクリックし、ページを通常表示にしてください。 /** General styling **/ @font-face { font-family Noto Sans JP ; font-display swap; font-style normal; font-weight 350; src url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/10/NotoSansCJKjp-DemiLight.woff2) format( woff2 ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/9/NotoSansCJKjp-DemiLight.woff) format( woff ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/8/NotoSansCJKjp-DemiLight.ttf) format( truetype ); } @font-face { font-family Noto Sans JP ; font-display swap; font-style normal; font-weight bold; src url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/13/NotoSansCJKjp-Medium.woff2) format( woff2 ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/12/NotoSansCJKjp-Medium.woff) format( woff ), url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2972/11/NotoSansCJKjp-Medium.ttf) format( truetype ); } rt { font-family Arial, Verdana, Helvetica, sans-serif; } /** Main table styling **/ #trackinfo, #lyrics { font-family Noto Sans JP , sans-serif; font-weight 350; } .track_number { font-family Rockwell; font-weight bold; } .track_number after { content . ; } #track_args, .amp_text { display none; } #trackinfo { position relative; float right; margin 0 0 1em 1em; padding 0.3em; width 320px; border-collapse separate; border-radius 5px; border-spacing 0; background-color #F9F9F9; font-size 90%; line-height 1.4em; } #trackinfo th { white-space nowrap; } #trackinfo th, #trackinfo td { border none !important; } #trackinfo thead th { background-color #D8D8D8; box-shadow 0 -3px #F9F9F9 inset; padding 4px 2.5em 7px; white-space normal; font-size 120%; text-align center; } .trackrow { background-color #F0F0F0; box-shadow 0 2px #F9F9F9 inset, 0 -2px #F9F9F9 inset; } #trackinfo td ul { margin 0; padding 0; list-style none; } #trackinfo li { line-height 16px; } #trackinfo li nth-of-type(n+2) { margin-top 6px; } #trackinfo dl { margin 0; } #trackinfo dt { font-size small; font-weight bold; } #trackinfo dd { margin-left 1.2em; } #trackinfo dd + dt { margin-top .5em; } #trackinfo_help { position absolute; top 3px; right 8px; font-size 80%; } /** Media styling **/ #trackinfo .media th { background-color #D8D8D8; padding 4px 0; font-size 95%; text-align center; } .media td { padding 0 2px; } .media iframe nth-of-type(n+2) { margin-top 0.3em; } .youtube + .nicovideo, .youtube + .soundcloud, .nicovideo + .soundcloud { margin-top 0.75em; } .media_section { display flex; align-items center; text-align center; } .media_section before, .media_section after { display block; flex-grow 1; content ; height 1px; } .media_section before { margin-right 0.5em; background linear-gradient(-90deg, #888, transparent); } .media_section after { margin-left 0.5em; background linear-gradient(90deg, #888, transparent); } .media_notice { color firebrick; font-size 77.5%; } /** Around track styling **/ .next-track { float right; } /** Infomation styling **/ #trackinfo .info_header th { padding .3em .5em; background-color #D8D8D8; font-size 95%; } #trackinfo .infomation_show_btn_wrapper { float right; font-size 12px; user-select none; } #trackinfo .infomation_show_btn { cursor pointer; } #trackinfo .info_content td { padding 0 0 0 5px; height 0; transition .3s; } #trackinfo .info_content ul { padding 0; margin 0; max-height 0; list-style initial; transition .3s; } #trackinfo .info_content li { opacity 0; visibility hidden; margin 0 0 0 1.5em; transition .3s, opacity .2s; } #trackinfo .info_content.infomation_show td { padding 5px; height 100%; } #trackinfo .info_content.infomation_show ul { padding 5px 0; max-height 50em; } #trackinfo .info_content.infomation_show li { opacity 1; visibility visible; } #trackinfo .info_content.infomation_show li nth-of-type(n+2) { margin-top 10px; } /** Lyrics styling **/ #lyrics { font-size 1.06em; line-height 1.6em; } .not_in_card, .inaudible { display inline; position relative; } .not_in_card { border-bottom dashed 1px #D0D0D0; } .tooltip { display flex; visibility hidden; position absolute; top -42.5px; left 0; width 275px; min-height 20px; max-height 100px; padding 10px; border-radius 5px; background-color #555; align-items center; color #FFF; font-size 85%; line-height 20px; text-align center; white-space nowrap; opacity 0; transition 0.7s; -webkit-user-select none; -moz-user-select none; -ms-user-select none; user-select none; } .inaudible .tooltip { top -68.5px; } span hover + .tooltip { visibility visible; top -47.5px; opacity 0.8; transition 0.3s; } .inaudible span hover + .tooltip { top -73.5px; } .not_in_card span.hide { top -42.5px; opacity 0; transition 0.7s; } .inaudible .img { display inline-block; width 3.45em; height 1.25em; margin-right 4px; margin-bottom -3.5px; margin-left 4px; background-image url(https //img.atwikiimg.com/www31.atwiki.jp/touhoukashi/attach/2971/7/Inaudible.png); background-size contain; background-repeat no-repeat; } .not_in_card after, .inaudible .img after { content ; visibility hidden; position absolute; top -8.5px; left 42.5%; border-width 5px; border-style solid; border-color #555 transparent transparent transparent; opacity 0; transition 0.7s; } .not_in_card hover after, .inaudible .img hover after { content ; visibility visible; top -13.5px; left 42.5%; opacity 0.8; transition 0.3s; } .not_in_card after { top -2.5px; left 50%; } .not_in_card hover after { top -7.5px; left 50%; } .not_in_card.hide after { visibility hidden; top -2.5px; opacity 0; transition 0.7s; } /** For mobile device styling **/ .uk-overflow-container { display inline; } #trackinfo.mobile { display table; float none; width 100%; margin auto; margin-bottom 1em; } #trackinfo.mobile th { text-transform none; } #trackinfo.mobile tbody tr not(.media) th { text-align left; background-color unset; } #trackinfo.mobile td { white-space normal; } document.addEventListener( DOMContentLoaded , function() { use strict ; const headers = { title アルバム別曲名 , album アルバム , circle サークル , vocal Vocal , lyric Lyric , chorus Chorus , narrator Narration , rap Rap , voice Voice , whistle Whistle (口笛) , translate Translation (翻訳) , arrange Arrange , artist Artist , bass Bass , cajon Cajon (カホン) , drum Drum , guitar Guitar , keyboard Keyboard , mc MC , mix Mix , piano Piano , sax Sax , strings Strings , synthesizer Synthesizer , trumpet Trumpet , violin Violin , original 原曲 , image_song イメージ曲 }; const rPagename = /(?=^|.*
https://w.atwiki.jp/mynote/pages/58.html
Introduction Plplot Plplotとは、Windows、Linux、Mac等で使えるデータ可視化ソフト X11環境で動くよ! Demo Demoは/opt/local/share/plplot5.9.2/examples/f95にあります、Macの場合はここで $sudo make をしてやるとコンパイルできます。 $./x12f [return] saitoudaisuke-no-mac-mini ~ saitoudaisuke$ sudo port install plplot Password Fetching cmake Attempting to fetch cmake-2.6.3.tar.gz from http //distfiles.macports.org/cmake Verifying checksum(s) for cmake Extracting cmake Configuring cmake Building cmake Staging cmake into destroot Installing cmake @2.6.3_0 Activating cmake @2.6.3_0 Cleaning cmake Fetching expat Attempting to fetch expat-2.0.1.tar.gz from http //distfiles.macports.org/expat Verifying checksum(s) for expat Extracting expat Configuring expat Building expat Staging expat into destroot Installing expat @2.0.1_0 Activating expat @2.0.1_0 Cleaning expat Fetching zlib Attempting to fetch zlib-1.2.3.tar.bz2 from http //nchc.dl.sourceforge.net/libpng Verifying checksum(s) for zlib Extracting zlib Applying patches to zlib Configuring zlib Building zlib Staging zlib into destroot Installing zlib @1.2.3_2 Activating zlib @1.2.3_2 Cleaning zlib Fetching freetype Attempting to fetch freetype-2.3.9.tar.bz2 from http //nchc.dl.sourceforge.net/freetype Attempting to fetch freetype-doc-2.3.9.tar.bz2 from http //nchc.dl.sourceforge.net/freetype Verifying checksum(s) for freetype Extracting freetype Applying patches to freetype Configuring freetype Building freetype Staging freetype into destroot Installing freetype @2.3.9_0+macosx Activating freetype @2.3.9_0+macosx Cleaning freetype Fetching gperf Attempting to fetch gperf-3.0.4.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/gperf Verifying checksum(s) for gperf Extracting gperf Configuring gperf Building gperf Staging gperf into destroot Installing gperf @3.0.4_0 Activating gperf @3.0.4_0 Cleaning gperf Fetching libiconv Attempting to fetch libiconv-1.12.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/libiconv Verifying checksum(s) for libiconv Extracting libiconv Applying patches to libiconv Configuring libiconv Building libiconv Staging libiconv into destroot Installing libiconv @1.12_2 Activating libiconv @1.12_2 Cleaning libiconv Fetching fontconfig Attempting to fetch fontconfig-2.6.0.tar.gz from http //distfiles.macports.org/fontconfig Verifying checksum(s) for fontconfig Extracting fontconfig Applying patches to fontconfig Configuring fontconfig Building fontconfig Staging fontconfig into destroot Installing fontconfig @2.6.0_2+macosx Activating fontconfig @2.6.0_2+macosx Cleaning fontconfig Fetching freefont-ttf Attempting to fetch freefont-ttf-20060126.tar.gz from http //ftp.riken.go.jp/pub/FreeBSD/distfiles/ Verifying checksum(s) for freefont-ttf Extracting freefont-ttf Configuring freefont-ttf Building freefont-ttf Staging freefont-ttf into destroot Installing freefont-ttf @20060126_0 Activating freefont-ttf @20060126_0 Cleaning freefont-ttf Fetching gmp Attempting to fetch gmp-4.2.4.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/gmp Verifying checksum(s) for gmp Extracting gmp Configuring gmp Building gmp Staging gmp into destroot Installing gmp @4.2.4_3 Activating gmp @4.2.4_3 Cleaning gmp Fetching lzmautils Attempting to fetch lzma-4.32.7.tar.gz from http //distfiles.macports.org/lzmautils Verifying checksum(s) for lzmautils Extracting lzmautils Configuring lzmautils Building lzmautils Staging lzmautils into destroot Installing lzmautils @4.32.7_1 Activating lzmautils @4.32.7_1 Cleaning lzmautils Fetching mpfr Attempting to fetch patch01 from http //distfiles.macports.org/mpfr/2.4.1 Attempting to fetch patch02 from http //distfiles.macports.org/mpfr/2.4.1 Attempting to fetch patch03 from http //distfiles.macports.org/mpfr/2.4.1 Attempting to fetch patch04 from http //distfiles.macports.org/mpfr/2.4.1 Attempting to fetch mpfr-2.4.1.tar.lzma from http //distfiles.macports.org/mpfr/2.4.1 Verifying checksum(s) for mpfr Extracting mpfr Applying patches to mpfr Configuring mpfr Building mpfr Staging mpfr into destroot Installing mpfr @2.4.1-p4_1 Activating mpfr @2.4.1-p4_1 Cleaning mpfr Fetching gcc43 Attempting to fetch gcc-core-4.3.3.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU//gcc/gcc-4.3.3 q--- Attempting to fetch gcc-fortran-4.3.3.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU//gcc/gcc-4.3.3 Attempting to fetch gcc-g++-4.3.3.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU//gcc/gcc-4.3.3 Attempting to fetch gcc-java-4.3.3.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU//gcc/gcc-4.3.3 Attempting to fetch gcc-objc-4.3.3.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU//gcc/gcc-4.3.3 Verifying checksum(s) for gcc43 Extracting gcc43 Configuring gcc43 Building gcc43 Staging gcc43 into destroot Installing gcc43 @4.3.3_0 Activating gcc43 @4.3.3_0 Cleaning gcc43 Fetching ncursesw Attempting to fetch ncurses-5.7.tar.gz from http //mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/ncurses Verifying checksum(s) for ncursesw Extracting ncursesw Configuring ncursesw Building ncursesw Staging ncursesw into destroot Installing ncursesw @5.7_0 Activating ncursesw @5.7_0 Cleaning ncursesw Fetching ncurses Verifying checksum(s) for ncurses Extracting ncurses Configuring ncurses Building ncurses Staging ncurses into destroot Installing ncurses @5.7_0 Activating ncurses @5.7_0 Cleaning ncurses Fetching gettext Attempting to fetch gettext-0.17.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/gettext Verifying checksum(s) for gettext Extracting gettext Applying patches to gettext Configuring gettext Building gettext Staging gettext into destroot Installing gettext @0.17_4 Activating gettext @0.17_4 Cleaning gettext Fetching perl5.8 Attempting to fetch perl-5.8.9.tar.bz2 from http //distfiles.macports.org/perl5.8 Verifying checksum(s) for perl5.8 Extracting perl5.8 Applying patches to perl5.8 Configuring perl5.8 Building perl5.8 Staging perl5.8 into destroot Installing perl5.8 @5.8.9_3 Activating perl5.8 @5.8.9_3 Cleaning perl5.8 Fetching perl5 Verifying checksum(s) for perl5 Extracting perl5 Configuring perl5 Building perl5 Staging perl5 into destroot Installing perl5 @5.8.9_0 Activating perl5 @5.8.9_0 Cleaning perl5 Fetching p5-locale-gettext Attempting to fetch gettext-1.05.tar.gz from http //distfiles.macports.org/perl5 Verifying checksum(s) for p5-locale-gettext Extracting p5-locale-gettext Applying patches to p5-locale-gettext Configuring p5-locale-gettext Building p5-locale-gettext Staging p5-locale-gettext into destroot Installing p5-locale-gettext @1.05_0 Activating p5-locale-gettext @1.05_0 Cleaning p5-locale-gettext Fetching help2man Attempting to fetch help2man-1.36.4.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/help2man Verifying checksum(s) for help2man Extracting help2man Applying patches to help2man Configuring help2man Building help2man Staging help2man into destroot Installing help2man @1.36.4_1 Activating help2man @1.36.4_1 Cleaning help2man Fetching m4 Attempting to fetch m4-1.4.13.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/m4 Verifying checksum(s) for m4 Extracting m4 Applying patches to m4 Configuring m4 Building m4 Staging m4 into destroot Installing m4 @1.4.13_0 Activating m4 @1.4.13_0 Cleaning m4 Fetching autoconf Attempting to fetch autoconf-2.63.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/autoconf Verifying checksum(s) for autoconf Extracting autoconf Configuring autoconf Building autoconf Staging autoconf into destroot Installing autoconf @2.63_0 Activating autoconf @2.63_0 Cleaning autoconf Fetching automake Attempting to fetch automake-1.10.2.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/automake Verifying checksum(s) for automake Extracting automake Configuring automake Building automake Staging automake into destroot Installing automake @1.10.2_0 Activating automake @1.10.2_0 Cleaning automake Fetching jpeg Attempting to fetch jpegsrc.v6b.tar.gz from http //distfiles.macports.org/jpeg Attempting to fetch droppatch.tar.gz from http //distfiles.macports.org/jpeg Verifying checksum(s) for jpeg Extracting jpeg Applying patches to jpeg Configuring jpeg Building jpeg Staging jpeg into destroot Installing jpeg @6b_3 Activating jpeg @6b_3 Cleaning jpeg Fetching libpng Attempting to fetch libpng-1.2.35.tar.bz2 from http //nchc.dl.sourceforge.net/libpng Verifying checksum(s) for libpng Extracting libpng Configuring libpng Building libpng Staging libpng into destroot Installing libpng @1.2.35_0 Activating libpng @1.2.35_0 Cleaning libpng Fetching libtool Attempting to fetch libtool-2.2.6a.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/libtool Verifying checksum(s) for libtool Extracting libtool Configuring libtool Building libtool Staging libtool into destroot Installing libtool @2.2.6a_0 Activating libtool @2.2.6a_0 Cleaning libtool Fetching pkgconfig Attempting to fetch pkg-config-0.23.tar.gz from http //distfiles.macports.org/pkgconfig Verifying checksum(s) for pkgconfig Extracting pkgconfig Configuring pkgconfig Building pkgconfig Staging pkgconfig into destroot Installing pkgconfig @0.23_1 Activating pkgconfig @0.23_1 Cleaning pkgconfig Fetching xorg-bigreqsproto Attempting to fetch bigreqsproto-1.0.2.tar.bz2 from http //distfiles.macports.org/xorg-bigreqsproto Verifying checksum(s) for xorg-bigreqsproto Extracting xorg-bigreqsproto Configuring xorg-bigreqsproto Building xorg-bigreqsproto Staging xorg-bigreqsproto into destroot Installing xorg-bigreqsproto @1.0.2_0 Activating xorg-bigreqsproto @1.0.2_0 Cleaning xorg-bigreqsproto Fetching xorg-inputproto Attempting to fetch inputproto-1.5.0.tar.bz2 from http //distfiles.macports.org/xorg-inputproto Verifying checksum(s) for xorg-inputproto Extracting xorg-inputproto Configuring xorg-inputproto Building xorg-inputproto Staging xorg-inputproto into destroot Installing xorg-inputproto @1.5.0_0 Activating xorg-inputproto @1.5.0_0 Cleaning xorg-inputproto Fetching xorg-kbproto Attempting to fetch kbproto-1.0.3.tar.bz2 from http //distfiles.macports.org/xorg-kbproto Verifying checksum(s) for xorg-kbproto Extracting xorg-kbproto Configuring xorg-kbproto Building xorg-kbproto Staging xorg-kbproto into destroot Installing xorg-kbproto @1.0.3_0 Activating xorg-kbproto @1.0.3_0 Cleaning xorg-kbproto Fetching xorg-xproto Attempting to fetch xproto-7.0.15.tar.bz2 from http //distfiles.macports.org/xorg-xproto Verifying checksum(s) for xorg-xproto Extracting xorg-xproto Configuring xorg-xproto Building xorg-xproto Staging xorg-xproto into destroot Installing xorg-xproto @7.0.15_0 Activating xorg-xproto @7.0.15_0 Cleaning xorg-xproto Fetching xorg-libXau Attempting to fetch libXau-1.0.4.tar.bz2 from http //distfiles.macports.org/xorg-libXau Verifying checksum(s) for xorg-libXau Extracting xorg-libXau Configuring xorg-libXau Building xorg-libXau Staging xorg-libXau into destroot Installing xorg-libXau @1.0.4_0 Activating xorg-libXau @1.0.4_0 Cleaning xorg-libXau Fetching xorg-libXdmcp Attempting to fetch libXdmcp-1.0.2.tar.bz2 from http //distfiles.macports.org/xorg-libXdmcp Verifying checksum(s) for xorg-libXdmcp Extracting xorg-libXdmcp Configuring xorg-libXdmcp Building xorg-libXdmcp Staging xorg-libXdmcp into destroot Installing xorg-libXdmcp @1.0.2_0 Activating xorg-libXdmcp @1.0.2_0 Cleaning xorg-libXdmcp Fetching xorg-xcmiscproto Attempting to fetch xcmiscproto-1.1.2.tar.bz2 from http //distfiles.macports.org/xorg-xcmiscproto Verifying checksum(s) for xorg-xcmiscproto Extracting xorg-xcmiscproto Configuring xorg-xcmiscproto Building xorg-xcmiscproto Staging xorg-xcmiscproto into destroot Installing xorg-xcmiscproto @1.1.2_0 Activating xorg-xcmiscproto @1.1.2_0 Cleaning xorg-xcmiscproto Fetching xorg-xextproto Attempting to fetch xextproto-7.0.5.tar.bz2 from http //distfiles.macports.org/xorg-xextproto Verifying checksum(s) for xorg-xextproto Extracting xorg-xextproto Configuring xorg-xextproto Building xorg-xextproto Staging xorg-xextproto into destroot Installing xorg-xextproto @7.0.5_0 Activating xorg-xextproto @7.0.5_0 Cleaning xorg-xextproto Fetching xorg-xf86bigfontproto Attempting to fetch xf86bigfontproto-1.1.2.tar.bz2 from http //distfiles.macports.org/xorg-xf86bigfontproto Verifying checksum(s) for xorg-xf86bigfontproto Extracting xorg-xf86bigfontproto Configuring xorg-xf86bigfontproto Building xorg-xf86bigfontproto Staging xorg-xf86bigfontproto into destroot Installing xorg-xf86bigfontproto @1.1.2_0 Activating xorg-xf86bigfontproto @1.1.2_0 Cleaning xorg-xf86bigfontproto Fetching xorg-xtrans Attempting to fetch xtrans-1.2.3.tar.bz2 from http //distfiles.macports.org/xorg-xtrans Verifying checksum(s) for xorg-xtrans Extracting xorg-xtrans Configuring xorg-xtrans Building xorg-xtrans Staging xorg-xtrans into destroot Installing xorg-xtrans @1.2.3_0 Activating xorg-xtrans @1.2.3_0 Cleaning xorg-xtrans Fetching xorg-libX11 Attempting to fetch libX11-1.2.1.tar.bz2 from http //distfiles.macports.org/xorg-libX11 Verifying checksum(s) for xorg-libX11 Extracting xorg-libX11 Configuring xorg-libX11 Building xorg-libX11 Staging xorg-libX11 into destroot Installing xorg-libX11 @1.2.1_0 Activating xorg-libX11 @1.2.1_0 Cleaning xorg-libX11 Fetching xpm Attempting to fetch libXpm-3.5.7.tar.bz2 from http //distfiles.macports.org/xpm Verifying checksum(s) for xpm Extracting xpm Configuring xpm Building xpm Staging xpm into destroot Installing xpm @3.5.7_0 Activating xpm @3.5.7_0 Cleaning xpm Fetching gd2 Attempting to fetch gd-2.0.35.tar.bz2 from http //distfiles.macports.org/gd2 Verifying checksum(s) for gd2 Extracting gd2 Applying patches to gd2 Configuring gd2 Building gd2 Staging gd2 into destroot Installing gd2 @2.0.35_4 Activating gd2 @2.0.35_4 Cleaning gd2 Fetching bison Attempting to fetch bison-2.4.1.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/bison Verifying checksum(s) for bison Extracting bison Configuring bison Building bison Staging bison into destroot Installing bison @2.4.1_0 Activating bison @2.4.1_0 Cleaning bison Fetching gsed Attempting to fetch sed-4.1.5.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/sed Verifying checksum(s) for gsed Extracting gsed Applying patches to gsed Configuring gsed Building gsed Staging gsed into destroot Installing gsed @4.1.5_4 Activating gsed @4.1.5_4 Cleaning gsed Fetching apr Attempting to fetch apr-1.3.3.tar.bz2 from ftp //ftp.infoscience.co.jp/pub/net/apache/dist/apr Verifying checksum(s) for apr Extracting apr Configuring apr Building apr Staging apr into destroot Installing apr @1.3.3_1 Activating apr @1.3.3_1 Cleaning apr Fetching db46 Attempting to fetch patch.4.6.21.1 from http //distfiles.macports.org/db4/4.6.21_5 Attempting to fetch patch.4.6.21.2 from http //distfiles.macports.org/db4/4.6.21_5 Attempting to fetch patch.4.6.21.3 from http //distfiles.macports.org/db4/4.6.21_5 Attempting to fetch db-4.6.21.tar.gz from http //distfiles.macports.org/db4/4.6.21_5 Verifying checksum(s) for db46 Extracting db46 Applying patches to db46 Configuring db46 Building db46 Staging db46 into destroot Installing db46 @4.6.21_5 Activating db46 @4.6.21_5 Cleaning db46 Fetching readline Attempting to fetch readline-6.0.tar.gz from http //distfiles.macports.org/readline Verifying checksum(s) for readline Extracting readline Applying patches to readline Configuring readline Building readline Staging readline into destroot Installing readline @6.0.000_1 Activating readline @6.0.000_1 Cleaning readline Fetching sqlite3 Attempting to fetch sqlite-3.6.13.tar.gz from http //distfiles.macports.org/sqlite3/3.6.13 Verifying checksum(s) for sqlite3 Extracting sqlite3 Configuring sqlite3 Building sqlite3 Staging sqlite3 into destroot Installing sqlite3 @3.6.13_0 Activating sqlite3 @3.6.13_0 Cleaning sqlite3 Fetching apr-util Attempting to fetch apr-util-1.3.4.tar.bz2 from ftp //ftp.infoscience.co.jp/pub/net/apache/dist/apr Verifying checksum(s) for apr-util Extracting apr-util Configuring apr-util Building apr-util Staging apr-util into destroot Installing apr-util @1.3.4_1 Activating apr-util @1.3.4_1 Cleaning apr-util Fetching openssl Attempting to fetch openssl-0.9.8k.tar.gz from http //distfiles.macports.org/openssl Verifying checksum(s) for openssl Extracting openssl Applying patches to openssl Configuring openssl Building openssl Staging openssl into destroot Installing openssl @0.9.8k_0 Activating openssl @0.9.8k_0 Cleaning openssl Fetching bzip2 Attempting to fetch bzip2-1.0.5.tar.gz from http //distfiles.macports.org/bzip2 Verifying checksum(s) for bzip2 Extracting bzip2 Applying patches to bzip2 Configuring bzip2 Building bzip2 Staging bzip2 into destroot Installing bzip2 @1.0.5_2 Activating bzip2 @1.0.5_2 Cleaning bzip2 Fetching pcre Attempting to fetch pcre-7.8.tar.bz2 from http //nchc.dl.sourceforge.net/pcre Verifying checksum(s) for pcre Extracting pcre Configuring pcre Building pcre Staging pcre into destroot Installing pcre @7.8_3 Activating pcre @7.8_3 Cleaning pcre Fetching apache2 Attempting to fetch httpd-2.2.11.tar.bz2 from ftp //ftp.infoscience.co.jp/pub/net/apache/dist/httpd Verifying checksum(s) for apache2 Extracting apache2 Applying patches to apache2 Configuring apache2 Building apache2 Staging apache2 into destroot Creating launchd control script ########################################################### # A startup item has been generated that will aid in # starting apache2 with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup # # sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist ########################################################### Warning apache2 requests to install files outside the common directory structure! Installing apache2 @2.2.11_0+darwin_9 Activating apache2 @2.2.11_0+darwin_9 Cleaning apache2 Fetching gawk Attempting to fetch gawk-3.1.6.tar.bz2 from ftp //ftp.dti.ad.jp/pub/GNU/gawk Verifying checksum(s) for gawk Extracting gawk Configuring gawk Building gawk Staging gawk into destroot Installing gawk @3.1.6_0 Activating gawk @3.1.6_0 Cleaning gawk Fetching autoconf213 Attempting to fetch autoconf-2.13.tar.gz from ftp //ftp.dti.ad.jp/pub/GNU/autoconf Verifying checksum(s) for autoconf213 Extracting autoconf213 Configuring autoconf213 Building autoconf213 Staging autoconf213 into destroot Installing autoconf213 @2.13_1 Activating autoconf213 @2.13_1 Cleaning autoconf213 Fetching curl Attempting to fetch curl-7.19.4.tar.bz2 from http //distfiles.macports.org/curl Verifying checksum(s) for curl Extracting curl Configuring curl Building curl Staging curl into destroot Installing curl @7.19.4_0 Activating curl @7.19.4_0 Cleaning curl Fetching libmcrypt Attempting to fetch libmcrypt-2.5.8.tar.bz2 from http //distfiles.macports.org/libmcrypt Verifying checksum(s) for libmcrypt Extracting libmcrypt Configuring libmcrypt Building libmcrypt Staging libmcrypt into destroot Installing libmcrypt @2.5.8_1 Activating libmcrypt @2.5.8_1 Cleaning libmcrypt Fetching libxml2 Attempting to fetch libxml2-2.7.3.tar.gz from http //ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/libxml2/2.7/ Attempting to fetch libxml2-2.7.3.tar.gz from ftp //ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/libxml2/2.7/ Attempting to fetch libxml2-2.7.3.tar.gz from http //distfiles.macports.org/libxml2 Verifying checksum(s) for libxml2 Extracting libxml2 Configuring libxml2 Building libxml2 Staging libxml2 into destroot Installing libxml2 @2.7.3_0 Activating libxml2 @2.7.3_0 Cleaning libxml2 Fetching libxslt Attempting to fetch libxslt-1.1.24.tar.gz from http //distfiles.macports.org/libxslt Verifying checksum(s) for libxslt Extracting libxslt Configuring libxslt Building libxslt Staging libxslt into destroot Installing libxslt @1.1.24_2 Activating libxslt @1.1.24_2 Cleaning libxslt Fetching mhash Attempting to fetch mhash-0.9.9.9.tar.bz2 from http //nchc.dl.sourceforge.net/mhash Verifying checksum(s) for mhash Extracting mhash Configuring mhash Building mhash Staging mhash into destroot Installing mhash @0.9.9.9_0 Activating mhash @0.9.9.9_0 Cleaning mhash Fetching tiff Attempting to fetch tiff-3.8.2.tar.gz from ftp //ftp.jp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ Verifying checksum(s) for tiff Extracting tiff Applying patches to tiff Configuring tiff Building tiff Staging tiff into destroot Installing tiff @3.8.2_3+macosx Activating tiff @3.8.2_3+macosx Cleaning tiff Fetching php5 Attempting to fetch php-5.2.9.tar.bz2 from http //distfiles.macports.org/php5 Verifying checksum(s) for php5 Extracting php5 Applying patches to php5 Configuring php5 Building php5 Staging php5 into destroot Warning php5 requests to install files outside the common directory structure! Installing php5 @5.2.9_1+apache2+macosx To customize php, copy /opt/local/etc/php.ini-dist (if this is a development server) or /opt/local/etc/php.ini-recommended (if this is a production server) to /opt/local/etc/php.ini and then make changes. cd /opt/local/apache2/modules /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so Activating php5 @5.2.9_1+apache2+macosx Cleaning php5 Fetching python_select Attempting to fetch select-0.2.1.tar.gz from http //svn.macports.org/repository/macports/contrib/select/ Verifying checksum(s) for python_select Extracting python_select Configuring python_select Building python_select Staging python_select into destroot Installing python_select @0.2.1_0+darwin_9 Activating python_select @0.2.1_0+darwin_9 Cleaning python_select Fetching ruby Attempting to fetch ruby-1.8.7-p160.tar.bz2 from ftp //ftp.iij.ad.jp/pub/lang/ruby/1.8 Verifying checksum(s) for ruby Extracting ruby Applying patches to ruby Configuring ruby Building ruby Staging ruby into destroot Installing ruby @1.8.7-p160_1+thread_hooks Activating ruby @1.8.7-p160_1+thread_hooks Cleaning ruby Fetching swig Attempting to fetch swig-1.3.39.tar.gz from http //nchc.dl.sourceforge.net/swig Verifying checksum(s) for swig Extracting swig Configuring swig Building swig Staging swig into destroot Installing swig @1.3.39_0+perl+php5+python+ruby Activating swig @1.3.39_0+perl+php5+python+ruby Cleaning swig Fetching tcl Attempting to fetch tcl8.5.6-src.tar.gz from http //nchc.dl.sourceforge.net/tcl Verifying checksum(s) for tcl Extracting tcl Configuring tcl Building tcl Staging tcl into destroot Installing tcl @8.5.6_0 Activating tcl @8.5.6_0 Cleaning tcl Fetching xorg-renderproto Attempting to fetch renderproto-0.9.3.tar.bz2 from http //distfiles.macports.org/xorg-renderproto Verifying checksum(s) for xorg-renderproto Extracting xorg-renderproto Configuring xorg-renderproto Building xorg-renderproto Staging xorg-renderproto into destroot Installing xorg-renderproto @0.9.3_0 Activating xorg-renderproto @0.9.3_0 Cleaning xorg-renderproto Fetching xrender Attempting to fetch libXrender-0.9.4.tar.bz2 from http //distfiles.macports.org/xrender Verifying checksum(s) for xrender Extracting xrender Configuring xrender Building xrender Staging xrender into destroot Installing xrender @0.9.4_5 Activating xrender @0.9.4_5 Cleaning xrender Fetching Xft2 Attempting to fetch libXft-2.1.13.tar.bz2 from http //distfiles.macports.org/Xft2 Verifying checksum(s) for Xft2 Extracting Xft2 Configuring Xft2 Building Xft2 Staging Xft2 into destroot Installing Xft2 @2.1.13_1 Activating Xft2 @2.1.13_1 Cleaning Xft2 Fetching xorg-libXext Attempting to fetch libXext-1.0.5.tar.bz2 from http //distfiles.macports.org/xorg-libXext Verifying checksum(s) for xorg-libXext Extracting xorg-libXext Applying patches to xorg-libXext Configuring xorg-libXext Building xorg-libXext Staging xorg-libXext into destroot Installing xorg-libXext @1.0.5_1 Activating xorg-libXext @1.0.5_1 Cleaning xorg-libXext Fetching xorg-scrnsaverproto Attempting to fetch scrnsaverproto-1.1.0.tar.bz2 from http //distfiles.macports.org/xorg-scrnsaverproto Verifying checksum(s) for xorg-scrnsaverproto Extracting xorg-scrnsaverproto Configuring xorg-scrnsaverproto Building xorg-scrnsaverproto Staging xorg-scrnsaverproto into destroot Installing xorg-scrnsaverproto @1.1.0_0 Activating xorg-scrnsaverproto @1.1.0_0 Cleaning xorg-scrnsaverproto Fetching xorg-libXScrnSaver Attempting to fetch libXScrnSaver-1.1.3.tar.bz2 from http //distfiles.macports.org/xorg-libXScrnSaver Verifying checksum(s) for xorg-libXScrnSaver Extracting xorg-libXScrnSaver Configuring xorg-libXScrnSaver Building xorg-libXScrnSaver Staging xorg-libXScrnSaver into destroot Installing xorg-libXScrnSaver @1.1.3_0 Activating xorg-libXScrnSaver @1.1.3_0 Cleaning xorg-libXScrnSaver Fetching tk Attempting to fetch tk8.5.6-src.tar.gz from http //nchc.dl.sourceforge.net/tcl Verifying checksum(s) for tk Extracting tk Configuring tk Building tk Staging tk into destroot Installing tk @8.5.6_1 Activating tk @8.5.6_1 Cleaning tk Fetching plplot Attempting to fetch plplot-5.9.2.tar.gz from http //nchc.dl.sourceforge.net/plplot Verifying checksum(s) for plplot Extracting plplot Applying patches to plplot Configuring plplot Building plplot Staging plplot into destroot Installing plplot @5.9.2_1+gcc43 Activating plplot @5.9.2_1+gcc43 Cleaning plplot saitoudaisuke-no-mac-mini ~ saitoudaisuke$
https://w.atwiki.jp/scurly/pages/5.html
更新履歴 @wikiのwikiモードでは #recent(数字) と入力することで、wikiのページ更新履歴を表示することができます。 詳しくはこちらをご覧ください。 =>http //atwiki.jp/guide/17_117_ja.html たとえば、#recent(20)と入力すると以下のように表示されます。 取得中です。
https://w.atwiki.jp/scurly/pages/10.html
コメントプラグイン @wikiのwikiモードでは #comment() と入力することでコメントフォームを簡単に作成することができます。 詳しくはこちらをご覧ください。 =>http //atwiki.jp/guide/17_60_ja.html たとえば、#comment() と入力すると以下のように表示されます。 名前 コメント
https://w.atwiki.jp/pocketmine-mp/pages/18.html
導入方法 なにか理由がない限り、インストーラーの使用をおすすめしますインストーラー インストーラーでインストール後は、ステップ2に移動してください 手動でインストールをするならば、ステップ1に移動してください 導入準備(インストーラーを使用するなら、ステップ1に移動してください) PocketMine MPを動作させるには、以下のソフトが必要になります PHP 5.3.3以上のPHPPHP4.4.xが推奨される 通信関連 Socket SQLite3 cURL pthreads 一通りインストールし終えたらステップ1に移動してください ステップ1 まず、PocketMine MPをダウンロードし、インストールしますインストーラー形式 Zip形式 インストール後、最新のサーバーソースをGithubからダウンロードすること ステップ2 start.cmd か PocketMine-MP.php を起動 サーバーが起動し、設定ファイルを生成します コンソールで"stop"と入力し、サーバーを終了させます ステップ3 server.propertiesを設定します ステップ4 "update.cmd" か "install.cmd" を起動し、アップデートを行う 出来が酷いので、だれか加筆修正キボンヌ コメント、編集相談 わかりずらい -- (まろん) 2015-01-16 23 21 10 naose mazide wakaran -- (maron) 2015-01-16 23 22 17 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/imops-forth/pages/25.html
概念的説明 † 再帰関数をご存知なら、この区画は飛ばしてかまいません。 再帰関数(リカーシブ ファンクション)は計算理論に用いられて、計算機科学でもよく取り上げられるようだ。 このリカーシブ recursiveの日本語訳としては"帰納"もある。数学的帰納法の帰納であるが、これは論理的な推論としての帰納(induction)ではないので混乱する。高校数学で出会う"漸化式"もリカーシブ リレーションである。 名詞の"再帰"は電算系ではrecursion、動詞の"再帰する"はrecurであり、forthのワードrecurseは英単語ではないようである。 これは要するに数列である。数列は、順番を表す整数ないし自然数を定義域とした、ステップ番号値の関数として考えられるわけだが、その場合に、数列の各値が、当の数列の前のステップの値(複数もあり得る)との数式的関係によって定まるものが、再帰関数である。そこに初期値を与えると、その数式的関係に従って一挙に数列全体が決まり、関数が定義されるというわけである。 数列やステップ関数が出てくるのは、ひとつには漸化式、また数学的帰納法の関連、そして解析学の数列(級数)がある。これらは番号付き系列という意味で形式的には似ているが、着目点がだいぶ異なる。解析学(微分積分)では数列や級数が収束するかどうかが非常に重要な要素である。他方、漸化式では、再帰的な関係を解いてステップ値nだけの関数に還元してしまうことが主な問題であり、数学的帰納法では初期値を与えれば全体が決まる関係を示すというところが重要である。 計算機的に見れば、漸化式タイプのものが対象ということになるだろう。漸化式を人が解くには、nだけの式に還元しないと手間がかかってしょうがないが、計算機は計算がメチャクチャ速い一方、工夫して解く能力は無いので、ベタで計算してしまおうという話になる。これを実現するのが再帰である。 Forthの再帰 (RECURSE) 多くのプログラミング言語では、現在定義中の関数を、その定義内で呼び出すことを認めている。 これに対して、forthでは、現在定義中のワードの中から、当のワードを呼び出すことは禁止されている。他方で再帰的な関数定義を実現するためRECURSEというワードが定義されている。当の関数を呼び出したい場所に、RECURSEと書くのである。これは、同じ名前のワードを再定義するとき、既存の同名のワードを呼び出し可能にしておけば変更部分だけを追加するだけで済むので便利だから、という判断である。定義中のワードが呼び出せてしまったら、同名の新しい定義の中から古い定義には接近できなくなってしまうので、名前を変えるなど操作しないといけなくなるからである。 以下、簡単なforthのコードは読めるということを前提として、比較的単純な再帰的定義の例を解説し、関数呼び出しが可能な場合との比較を行う。続いて、数学風の漸化式から始めて、それをforthの再帰に解体する方法を示す。さらに、計算機に対する負担が極めて重い再帰を回避して、漸化式をforthのループ計算に落とす方法について述べる。 フィボナッチ数列 フィボナッチ数列は、手前二つの項の和が次の項になるという関係の数列で、初期値は、0ベースにすれば、0,1である。 数列の第n項をで表せば、 という関係になる。 これを実現するforthワードfibの定義は、次の通りである: fib ( n -- n ) dup 1 if 1- dup RECURSE swap 1- RECURSE + then ; 短い。そして、一見、暗号にしか見えず、recurseがcurseに思えてくる(苦笑)。 まず、最後の then は、if文の"括弧閉じ"であって、"条件が成り立つとき"という意味ではないというのはforthの基本である。混乱するという理由で、end-ifに改名して使っている人も多い。 このif括弧は脱出条件を定めている。入力が0のときは0、1のときは1を返すだけで抜けてしまう。それより大きい入力のときだけ中身を実行するのである。再帰的定義には、脱出条件が不可欠であって、これが無いと、理論上は永久に計算が止まらず、実際上はスタックオバーフローでアプリケーションがクラッシュするまで続行される。 なお、ifは判定値をひとつスタックから消費する。 脱出条件を取り除いた内容面を考察する。 1- dup RECURSE swap 1- RECURSE + まず、RECURSEは要するに、fibを呼び出すということである。なので、fibと書き換えてみる: 1- dup fib swap 1- fib + 入力をnとしてときのスタックの状態を追ってみよう。 n \ 入力 1- \ -- (n-1) dup fib \ -- (n-1) [(n-1)fib]=fib(n-1) swap \ -- fib(n-1) (n-1) 1- \ -- fib(n-1) (n-2) fib \ -- fib(n-1) [(n-2)fib]=fib(n-2) + \ -- fib(n-1)+fib(n-2) と、このように紛れもないフィボナッチ数列の定義である。 ポイントは、ワードfibが1入力1出力のワードであるので、RECURSEのところでトップスタックの入力値一個と結合して、それにfibを適用した出力値に入れ替わる、と考えるところである。後は、スタック操作を工夫するくらいである。 ところで、実はforthでも定義中のワードを定義内で呼び出せるようにもできる。というのも、定義中は名前を検索から隠しているに過ぎないからである。それを露にするだけで呼び出しは可能となる。それをするのがRECURSIVE宣言である。Forth標準ではないが、gforthにあるようだ。iMopsにも定義してある。定義が始まってから、初めにRECURSIVEと書けば、そのワード限りで、定義内からそれ自身を呼び出すことができる。フィボナッチ数列なら、次のようになる。 fib ( n -- n ) RECURSIVE dup 1 if 1- dup fib swap 1- fib + then ; しかし、あまり分り易くなったとはいえない。forthのように入力をスタックから取る場合は関数の適用は見えにくい。むしろRECURSEと書いた方が再帰に気づき易いように思う。 他方、変数を用いて、パラメターを明示的に書く言語では、定義中の関数と同じ名前で関数呼び出すことで、見やすくなるであろう。しかし、基本的には、言語に関係なく、やることは同じである。まず、脱出条件を、対応する値を返すように書いて、内容は、再帰呼び出しによる計算の結果値をリターンすれば良いわけである。 漸化式のforth-recurse化 まず、漸化式を適当に書いて、それをforthのRECURSEで実装してみる。 ここでは、次の式にしてみる。特に意味はなく、適当に決めた。 n-3の項まで関連するので、初期値は3つ必要である。0から始めて順に0,1,2、とでもしておこう。 ワード名はseq1としておこう。まず、脱出条件を書く。 seq1 ( n -- n ) dup 0 = if drop 0 EXIT then dup 1 = over 2 = or ?EXIT (途中) 入力が0以下のときは、入力を落として0を返して抜ける。EXITというのはこのワードの処理を抜けるワードである。Forthではif-thenの入れ子はコードを読みにくくするとされ、EXITを比較的愛用する。 入力が1か2のときには、そのまま抜ける。overは、ひとつ飛んだ下の値をコピーしてトップに置くワードである。等号条件判定の真偽値を飛び越えて、入力値をコピーするのである。?EXITは、"if EXIT then"の短縮形である。Forth標準規格ではないので定義されていない環境もあるかも知れない。いちいちdupしているのは、条件判定後にも入力値を残すためである。ifも?EXITも、比較演算の結果をひとつ、条件成就のいかんに関わらず消費するので、このプロセスを過ぎた後は、必ず入力値がひとつ、スタックに残っている。 さて、本体にうつろう。 定義式をf(n)=という形に書き換える。単純な移項である。 この右辺を実現すれば良い。 右辺は、f(n)を三個含むので、RECURSEも三個必要である。スタック上の掛け算、足し算、引き算をなるべく線形にできるように順序を考えると、まずn-2にfを適用し、次にn-3にfを適用して3倍して、前の値から引いてから2倍、最後にn-1にfを適用して足す、というのが簡単そうである。かくして本体は、 dup 2 - RECURSE over 3 - RECURSE 3 * - 2* swap 1- RECURSE + となる。意外に簡単! 使用するスタック上の値をいつも上2つぐらいに止めておくと作業が楽である。3つは苦しくなる。4つは厳しい。だいたいforthの標準ワード内で作業しようとすると、そのような感じになる。多過ぎるときは、リターンスタックや局所変数に一時退避させて調整する。 かくして、まとめて定義すれば、 seq1 ( n -- n ) dup 0 = if drop 0 exit then dup 1 = over 2 = or ?exit dup 2 - recurse over 3 - recurse 3 * - 2* swap 1- recurse + ; となる。 このワードは3つも再帰しているので、計算機への負担は、入力が大きくなると爆発的に増加する。seq1を試す場合は、入力は30程度までに止めておいた方が無難である(インタープリタが固まってしまう)。 ループへの翻訳 再帰関数は計算効率が悪い。これは、関数の呼び出しが嵩み、スタックフレームが大量に消費されることとか、呼び出しの際のパラメターのsave/restoreのせいでメモリーアクセスが増えること、呼び出しそのものが時間のかかる処理であること、などのような、こともある。しかし、実はそれだけではない。再帰は、後でも述べるが、本当はしなくても良い計算を無駄に何回も繰り返しているのである。そこで、無駄に計算をしない、単純な繰り返しループに書き換えるという考えが出てくる。効率化方法としてよくいわれるテイル・リカースとかテイル・コール最適化という方法は、最後にある呼び出しはリターン手続を省略できるという話のようであり、無駄な計算そのものを減らすという話ではないようである。 問題状況を分解してみよう。 例えば、フィボナッチ数列の場合、再帰は、まず、fib(n-1)を0から計算する。さて次は...?、となって、fib(n-2)といわれると「え〜〜?またかよ!」とばかりに、またfib(n-2)を0から計算し始めるのである。そして、両方が出来上がったところで、改めて足し算をしてfib(n)の値として返す。しかし、fib(n-1)を計算した途中にfib(n-2)は手に入れたはずである。fib(n-2)が分っているなら、fib(n-1)に足すだけで、一回でfib(n)が得られるはずなのだが、コンピュータはfib(n-1)を得た時点で、それ以前のことをキレイサッパリ忘れてしまうのである。おバカにもほどがある! 本当は上の書き方は控えめである。もっと多くの無駄な計算が実施されている。 というのは、上のような0からのやり直しは、各段階で起こっているのである。つまり、f(3)からf(4)を求めるのに、f(2)を0から求め、f(3)に足す; f(4)からf(5)を求めるのに、f(3)をもう一回0から計算してf(4)に足す;f(5)からf(6)を求めるのに、f(4)をもう一回0から計算してf(5)に足す、 というのである。 そして、「もう一回0から計算して」というのが、そのような各段階がまさに同じように繰り返されるということを意味しているのである! 足し算の計算回数はになるようである(但し、n=0のときは0回)。効率は規模ということになる(細かくいうとくらい?)。 このように考えてみると、計算結果を記憶しておくことが、再帰を回避して、結果にリニアーに到達するための鍵になるのではないかと思われてくる。もしも、再帰関数が、2つ手前までの値に関連するなら、それら2つの結果を保存しておけば足りるであろう。 一般に、漸化式でf(n)が依存するf(n-x)と同じ個数の値を保存しておけば十分である。最後になってから要らないものを捨てれば良い。 そのような考えで、上でRECURSEで実装した漸化式を繰り返しループで実装してみる。あまり創意工夫せず、見え易いようにやってみる。 上の漸化式は、依存項数が3つであるから、値を3つ取っておけば良い。これに入力値を繰り返し回数として加えると4つになるので、上で触れたように、ちょっとスタックアイテム数が多い。そこで、一時退避にリターンスタックを用いることとする。上手く工夫すれば要らないのかも知れないが。 ワード名はseq2としよう。 まず、本体を考える。 初めに、初期値を順に並べて、それに漸化式操作を加え、3つの値が全体として一段階スライドする計算をすればよいわけである。この段階でスタック項目が既に多くなり過ぎるので、リターンスタックを使うが、ともかく、書いてみる。 0 1 2 \ 初期値 -- (n-3) (n-2) (n-1) rot 3 * \ (n-2) (n-1) 3(n-3) R over \ (n-2) (n-1) (n-2) R - 2* \ (n-2) (n-1) 2((n-2)-3(n-3)) over + \ (n-2) (n-1) 2((n-2)-3(n-3))+(n-1)=(n) 以上である。 見ての通り、 Rはデータスタックのトップをリターンスタックに移動して隠す。R は、それをまたデータスタック上に取り出すのである。 2行目からの手続を繰り返し適用すれば、数列はどんどん先にシフトしていく。入力値をむしろ計算繰り返し回数と解釈するわけであるが、3のときに一回処理すれば良いというわけだから、2を引いてループ回数を決めれば良い。この処理の頭に初期値を置くが、forthのループにループ回数を喰わせないといけないので、上で触れたように、ここでもリターンスタックを迂回のために使う。 これらと、計算なしに抜けるための脱出条件に対応する部分を組み合わせると: seq2 ( n -- n ) dup 0 = if drop 0 exit then dup 1 = over 2 = or ?exit 2 - r 0 1 2 r FOR rot 3 * r over r - 2* over + NEXT NIP NIP ; となる。 FOR NEXTはforth標準ではないが、FORがスタックからひとつ値を取って、その回数だけNEXTとの間を繰り返す、簡便なループである。 FORを"0 DO"に、NEXTを"LOOP"に置き換えれば、forth標準で実質同じ内容になる。一番下の行の冒頭で入力値から2を引いてループ回数にし、いったんリターンスタックに隠す。そして、0, 1, 2と初期値をおいた後、リターンスタックから取り出してFOR-NEXTに循環回数として与えるのである。そして、FOR-NEXTに挟まれた、上で述べた数列の前進操作を、必要な回数作用させる。 NIPはforth標準だが、"swap drop"と同値のスタック操作子である。要するに、最後に下の2つの値を落として一番上の必要な項だけ残すのである。 seq2はseq1と比べると劇的に速い。 seq1に40を入力したときは、計算が終わらなくて、待ち切れずiMops強制終了してしまったが、seq2なら50程度でも一瞬である。(ちなみに、40前後でもう4バイト数を越えている。) このアルゴリズムの効率は、明らかにである。 この数列は、適当に作ったわりには挙動が面白く、5個毎に符号を替えながら、次第に振幅を拡大していく。拡大するギザギザグラフである。 手で計算してみたけど、10番目でもう間違えたよ。あー。 ちなみに、同じ発想でフィボナッチ数列のワードも書いてみれば良い。 一応、ひとつの例をfib2として挙げておく: fib2 ( n -- n ) dup 1 if 1- 0 1 rot FOR swap over + NEXT nip then ; これも入力値がある程度大きくても極めて速い。 教訓: 最適化コンパイラによる高速化は、せいぜい数倍、多くは数十パーセント止まりだが、アルゴリズム改良による高速化は、数十倍、ときには100倍以上にもなる。 再帰的処理一般 とはいえ、再帰的処理は漸化式計算に限るわけではない。例えば、Mopsにおいては、多重継承クラスが可能である。そのインスタンスを初期化する際、継承関係のツリー構造を遡って、枝の先(葉)— つまり最上位クラス(むしろ根と考えるのが普通だが) — から順に当クラスの初期化メソッドを実行しなければならないが、そのために再帰的処理を用いている。しかし、そこではワードRECURSEは使っていない。DEFER(MopsではFORWARD)の機構を用いて、互いに呼び出し合う2つのワードによって再帰が実現されている。 このように、あらかじめ構造が確定していない構造木の結節点全てについて処理しようとするような場合には、再帰的処理がもっとも簡単である。そしてこの場合には無駄な処理があるわけではない。再帰処理そのものが「おバカ」なのではない。最適な使用場面もあるのである。「一つ覚え」的な使い方が「おバカ」を招く、と。 iMopsでの多重継承クラスインスタンスの初期化のアルゴリズムについて、ひとつの例として簡単に説明しておこう。継承ツリーの根元から始める。 word1 分枝のリストをチェック、空ならば脱出する リストから取り出された枝データにword2を適用 適用後の枝を切り落とし、1に戻る word2 渡された枝をひとつ遡り、word1を適用 現在の位置の処理(初期化メソッド)を適用 以上である(実際は、インスタンス変数の初期化があるので、もう少し込み入っているが)。 RECURSEを用いた上の計算と考え合わせると、再帰(Recursion)はツリー構造と密接に関わるものであることがわかる。ツリー構造の総当たり手続、といった感じである。もっとも、それもループでできないことはない。しかしそうすると、上で初期化メソッド適用後に前の分岐点に退却するためのデータを保存しておく必要がある。実行速度やコードの書きやすさ、などの比較で決めれば良い。上の例の場合は、初めはループで書いたが、再帰の方がコードが簡単になった。 ここでも、再帰をループに書き換えるポイントは"記憶"である!けれども、ツリー探索の場合、再帰による"自動的記録"が役に立っている。 次 XT(エグゼキューション・トークン) Forth言語概説
https://w.atwiki.jp/briah/pages/779.html
バンクェット2008に参戦したBネツ部隊のひとつ。 対ぽいづん戦にラグアーマーを用いた事で一躍有名となった。 公式大会においてラグアーマーを使用し公然と勝利を掴み、批判に対しては部隊員が この大会については勝てばなんでもいいと思ってやってた。 そのために、グレーゾーンのラグ(クソ回線)を使ってたのは今更いうまでもない。 俺からすれば別に違反でもなんでいのに何で騒いでるわけ? FEZの穴をついただけだと思うんだけど? という日記をSNSに残している。(該当記事は既に削除済みのようだ この事をSNSに書いたSweet_Rampageは 運営によって今後のバンクェットへの出場権を剥奪されたようである http //fesns.com/?m=pc a=page_fh_diary target_c_diary_id=1034894 元々、勝つ為なら不正でも工作でも何でもやるというBネツの評価を底辺にまで貶め、 更なる不正推奨国家としてその地位を不動のものとさせた。 (参考動画→)ttp //zoome.jp/neko2w/diary/13/ また、これにより公式サイドが「何の対処もできません;;」と認めてしまっており、 公式での対処方法は今のところ示されてはいないものの、処罰が下された時点で 公式から不正行為として認められており、今後の動きに注目をされたい。 +BBSなどのログ 573 :名無しさん@ゴーゴーゴーゴー!:2008/08/04(月) 02 20 38 ID ED1YTcNE0 不正チーム Kill or Cure 公式大会でラグア全開 Sweet_Rampage お豆さま サカタハルミ NeeType ナルコレプシー Myrddin_Ermys かおりんたん すあっと DaddySage 参考動画 ttp //zoome.jp/neko2w/diary/13/ 574 :名無しさん@ゴーゴーゴーゴー!:2008/08/04(月) 02 24 09 ID fCt8GTbR0 まだブログの記事読める。335のところ数字変えろ。 http //www.usamimi.info/~clash/cgi-bin/blog/log/eid335.html http //s02.megalodon.jp/2008-0804-0159-54/www.usamimi.info/~clash/cgi-bin/blog/log/eid335.html どこぞの鯖のどこぞの国のキャラがlv35になりました。 http //s03.megalodon.jp/2008-0804-0204-47/www.usamimi.info/~clash/cgi-bin/blog/log/eid170.html 04 13 (****) ナルコなんかに煽られるのが悔しくて仕方ないんだけど http //s03.megalodon.jp/2008-0804-0212-42/www.usamimi.info/~clash/cgi-bin/blog/log/eid329.html 火皿 だでiー http //s01.megalodon.jp/2008-0804-0216-32/www.usamimi.info/~clash/cgi-bin/blog/log/eid342.html 初戦10kill-1dead(5分)でした http //s01.megalodon.jp/2008-0804-0219-34/www.usamimi.info/~clash/cgi-bin/blog/log/eid345.html asa.が集中できないなら今日はもう辞めたほうがいいんじゃね。 http //s02.megalodon.jp/2008-0804-0221-25/www.usamimi.info/~clash/cgi-bin/blog/log/eid349.html win (E鯖闘技場ロビーでasaも試合後に「win」と発言している) 確定だ。 2008.8.8未明にこれらの事件に関する項目や内容があちこちから削除、改変された。 トップページでそれを指摘したコメントも削除されたため、wiki管理人か それに近い人物の関与が指摘されている。(→参照?)冬華繚乱 トップページのコメは誰でも削除できるぞw ↑ 隠蔽して得するのはだーれ? ↑トップページのコメは誰でも削除できる。 ↑wikiの編集解説読んでみろよ 無知って恥ずかしいなww
https://w.atwiki.jp/jw68o8by4d/pages/19.html
拡張 Color Extension EOL Extension Graph log extension Mercurial Queues Extension Rebase Extension Color Extension 概要 Mercurialの出力が色分けされる。 有効化 設定ファイルに [extensions] color = と記述するだけで良い。 利用 有効化していれば特に設定しなくても自動でMercurialの出力を色分けしてくれる。 有効にする前は「hg status」や「hg diff」の出力が のように色分けされないが、有効にすると のように色分けされる。 配色など様々な設定もできるので、興味があればここを参照すること。 ▲ EOL Extension 概要 環境によって異なる改行コードを統一する拡張。 ファイルごとに改行コードを設定できるようになっている。 有効化 設定ファイルに [extensions] eol = と記述するだけで良い。 利用 プロジェクトの直下に.hgeolファイルを作成して改行コードのルールを指定する。 [patterns] **.java = NATIVE **.xml = LF この場合は拡張子がJavaをNATIVE、拡張子がpomをLFと設定している。 改行の設定は以下の四種類がある。 LF UNIXの改行コードに変換する CRLF Windowsの改行コードに変換する BIN 改行コードの変換を行わない(バイナリファイル用) NATIVE 稼動環境に応じた改行(リポジトリへの記録は常にLFで、作業領域への取り出しは稼働環境に応じた改行コード) .hgeolがあれば、コミットや比較をする時に自動で改行コードを変換してくれる。 詳細はここやここを参照すること。 ▲ Graph log extension 概要 ログをアスキーアートのグラフで確認できる。 「hg log」での出力は このようにブランチを分けたりマージした場合に把握するのが難しい。 Graph log extensionを利用した出力は このように左側にグラフが表示される。 有効化 設定ファイルに [extensions] graphlog = と記述するだけで良い。 利用 「hg glog」でログを出力する。 チェンジセットの部分に色が付いているのはColor Extensionを有効化しているため。 そのままではチェンジセットの内容を何行も使って出力するのでテンプレートを使って見やすくすると良い。 設定ファイルに [defaults] glog = --template チェンジセット {rev} {node|short} , {branch} {tags}\n要約 {desc|firstline|fill68|tabindent|tabindent}\n\n と記述すれば「hg glog」でチェンジセットの内容が二行になる。 Color Extensionを使っていても色分けされていないのがわかる。 詳細はここやここを参照すること。 ▲ Mercurial Queues Extension 概要 有効化 設定ファイルに [extensions] mq = と記述するだけで良い。 ▲ Rebase Extension 概要 有効化 設定ファイルに [extensions] rebase = と記述するだけで良い。 ▲