約 5,704,313 件
https://w.atwiki.jp/hand_simulator/pages/61.html
ゲーム説明 ホラゲ仕立てでウィッチおばさんを倒すモード。 Witchに捕まらないように、建物内を探索し、謎を解き、武器を探して反撃する。 攻略にはマグナムを普通に撃てる程度の技量は必要。 総合力を試されるのでほぼ最高難易度と言ってよい、クリアできれば中級者だ。 これが一番上にある事が、ハンドシミュ自体が意味が分からず叫ばれるクソゲーと思われる一因になっている。 余談であるが、新作のHandSimulator HORRORとは別物。非常に紛らわしい。 こちらの本家ホラーモードの方が操作難易度は高い。 【実装時の公式情報】 【SPEEDRUN.COM→HandSimulator→Horror】 実績 Witch Hunter : Kill the Witch おばあさんを倒す 操作方法等 特殊操作なし。移動あり。 ホイールクリックで移動モード、WASDで移動。 ウィッチおばさんがゆっくりと追ってくる。ぶつかると問答無用でガメオベラ。 全体が暗いので、最初にある燭台を持って周囲を探索しよう、先に進むドアが見つかるはず。 武器の扱いについてはShooting Rangeを参考に。 攻略 一応謎解き(?)ゲームになっているのでネタバレ反転にしておきます。 1.明かりが無いと完全に真っ暗なので目の前の燭台を掴む。2.Witchを避けて後ろに移動、部屋の端に扉があるので押して部屋を脱出3.進んだ先に施錠された扉があり、その横に幼児向けの玩具が置いてあるので、攻略する。※ 置いてある燭台に火を移すと明るくなる4.玩具を攻略すると扉が開くので進むと、やたら低い机にマグナムが置いてある。5.素早く弾を装填してWitchを撃ち倒すとクリア。※ 3同様マグナムの横にも燭台が置いてある。6.以上をWitchに追いつかれる前にこなす。※ どうしても時間が足りない場合、掴めるオブジェクトをドアストッパーにする、. 最初の部屋に戻って誘導する等、おばさんの進行妨害も可能。 参考動画 【RTA】Hand Simulator HORROR 36.31s(ニコニコ動画) ※注意 バグ利用です(現在SPEEDRUN.COMではバグ有無のカテゴリ分けはされてません) このページに関するコメント 注意事項は雑談・質問・要望に準じます。 wikiに掲載されている内容が【最新とは限りません】。気づいた点があれば、編集するか、コメント欄に情報をお願いします。 名前
https://w.atwiki.jp/m_shige1979/pages/984.html
mt_ts_error 機能 調査中 CreateTable CREATE TABLE `mt_ts_error` ( `ts_error_error_time` INT(11) NOT NULL, `ts_error_funcid` INT(11) NOT NULL DEFAULT 0 , `ts_error_jobid` INT(11) NOT NULL, `ts_error_message` VARCHAR(255) NOT NULL, INDEX `mt_ts_error_funcid_time` (`ts_error_funcid`, `ts_error_error_time`), INDEX `mt_ts_error_error_time` (`ts_error_error_time`), INDEX `mt_ts_error_jobid` (`ts_error_jobid`) ) 一覧 調査中 関連テーブル 調査中
https://w.atwiki.jp/sugawara/pages/119.html
その他のTips プログラマのためのUXチートシートより http //dev.ariel-networks.com/column/tech/ux/view エラーメッセージの原則 問題を引き起こしたユーザーの操作ではなく、問題そのものに焦点を当てます。必要に応じて受動態を用いるなど、間接的な表現を心がけます。 8 つの重要な点 1..エラー処理を考慮したプログラム設計を行う。 2.不要なエラー メッセージは表示しない。 3.必要なエラー メッセージを表示して、ユーザーの混乱を防ぐ。 4.エラー メッセージには、問題、原因、および解決策を必ず明記する。 5. 適切なエラー メッセージの条件 (関連性が高い、実行性が高い、簡潔、明確、具体的、丁寧、めったに表示されない) を満たす。 6.プログラムの視点ではなく、ユーザーの視点からエラー メッセージを設計する。 7.ユーザーにトラブルシューティングをさせない (検出可能な原因ごとに異なるエラー メッセージを用いる)。 8.目的を果たすことができる範囲で最も控えめな表示方法を使用する。 次の言葉は使用しないでください。 エラー、障害 (代わりに "問題" を使用) 失敗しました (代わりに "できません" を使用) 不正な、無効な、悪い (代わりに "正しくない" を使用) 中止、キル、強制終了 (代わりに "停止" を使用) 壊滅的な (代わりに "重大な" を使用) 対応する英語 Don t use the following words Error, failure (use problem instead) Failed to (use unable to instead) Illegal, invalid, bad (use incorrect instead) Abort, kill, terminate (use stop instead) Catastrophic, fatal (use serious instead) テクニカル サポートへの問い合わせは提案しません。テクニカル サポートに問い合わせて問題を解決するという選択肢はいつでも利用できます。エラー メッセージを通じて促す必要はありません。むしろ、ユーザーがテクニカル サポートに頼らずに問題を解決できるような、有益なエラー メッセージを作成することを目指します。 メイン指示テキストのテンプレート 表現に関して厳密な規則はありませんが、メイン指示テキストには、可能な限り次のテンプレートを使用してください。 主語 (省略可) は 動作を実行 できません 理由 のため、 主語 (省略可) は 動作を実行 できません 主語 (省略可) は " オブジェクト名 " に対して 動作を実行 できません 理由 のため、 主語 (省略可) は " オブジェクト名 " に対して 動作を実行 できません 動作を実行 するのに十分な リソース がありません 主語 には、 目的 に必要な オブジェクト名 がありません デバイスまたは設定 がオフになっているため、 予期しない結果 になります デバイスまたは設定 が 利用できません | 見つかりません | オンになっていません | 有効になっていません " オブジェクト名 " は現在利用できません ユーザー名またはパスワードが正しくありません " オブジェクト名 " へのアクセス許可がありません 動作を実行 する権限がありません プログラム名 で重大な問題が発生したため、直ちに終了する必要があります 文法的に正しく、ガイドラインに従う限り、必要に応じてメイン指示テキストのテンプレートを変更してかまいません。 文の原則 文の流れに従って操作した結果、予期せぬ事態に陥るということのないよう、操作よりも結果を先に記述します。 正しい例 Windows を再起動するには、[OK] をクリックします。 間違った例 [OK] をクリックして Windows を再起動します。
https://w.atwiki.jp/apache/pages/14.html
int main(int argc, const char * const argv[]) { char c; int configtestonly = 0; const char *confname = SERVER_CONFIG_FILE; const char *def_server_root = HTTPD_ROOT; const char *temp_error_log = NULL; process_rec *process; server_rec *server_conf; apr_pool_t *pglobal; apr_pool_t *pconf; apr_pool_t *plog; /* Pool of log streams, reset _after_ each read of conf */ apr_pool_t *ptemp; /* Pool for temporary config stuff, reset often */ apr_pool_t *pcommands; /* Pool for -D, -C and -c switches */ apr_getopt_t *opt; apr_status_t rv; module **mod; const char *optarg; APR_OPTIONAL_FN_TYPE(ap_signal_server) *signal_server; AP_MONCONTROL(0); /* turn off profiling of startup */ process = init_process( argc, argv); pglobal = process- pool; pconf = process- pconf; ap_server_argv0 = process- short_name; #if APR_CHARSET_EBCDIC if (ap_init_ebcdic(pglobal) != APR_SUCCESS) { destroy_and_exit_process(process, 1); } #endif apr_pool_create( pcommands, pglobal); apr_pool_tag(pcommands, "pcommands"); ap_server_pre_read_config = apr_array_make(pcommands, 1, sizeof(char *)); ap_server_post_read_config = apr_array_make(pcommands, 1, sizeof(char *)); ap_server_config_defines = apr_array_make(pcommands, 1, sizeof(char *)); ap_setup_prelinked_modules(process); ap_run_rewrite_args(process); /* Maintain AP_SERVER_BASEARGS list in http_main.h to allow the MPM * to safely pass on our args from its rewrite_args() handler. */ apr_getopt_init( opt, pcommands, process- argc, process- argv); while ((rv = apr_getopt(opt, AP_SERVER_BASEARGS, c, optarg)) == APR_SUCCESS) { char **new; switch (c) { case c new = (char **)apr_array_push(ap_server_post_read_config); *new = apr_pstrdup(pcommands, optarg); break; case C new = (char **)apr_array_push(ap_server_pre_read_config); *new = apr_pstrdup(pcommands, optarg); break; case d def_server_root = optarg; break; case D new = (char **)apr_array_push(ap_server_config_defines); *new = apr_pstrdup(pcommands, optarg); break; case e if (strcasecmp(optarg, "emerg") == 0) { ap_default_loglevel = APLOG_EMERG; } else if (strcasecmp(optarg, "alert") == 0) { ap_default_loglevel = APLOG_ALERT; } else if (strcasecmp(optarg, "crit") == 0) { ap_default_loglevel = APLOG_CRIT; } else if (strncasecmp(optarg, "err", 3) == 0) { ap_default_loglevel = APLOG_ERR; } else if (strncasecmp(optarg, "warn", 4) == 0) { ap_default_loglevel = APLOG_WARNING; } else if (strcasecmp(optarg, "notice") == 0) { ap_default_loglevel = APLOG_NOTICE; } else if (strcasecmp(optarg, "info") == 0) { ap_default_loglevel = APLOG_INFO; } else if (strcasecmp(optarg, "debug") == 0) { ap_default_loglevel = APLOG_DEBUG; } else { usage(process); } break; case E temp_error_log = apr_pstrdup(process- pool, optarg); break; case X new = (char **)apr_array_push(ap_server_config_defines); *new = "DEBUG"; break; case f confname = optarg; break; case v printf("Server version %s\n", ap_get_server_version()); printf("Server built %s\n", ap_get_server_built()); destroy_and_exit_process(process, 0); case V show_compile_settings(); destroy_and_exit_process(process, 0); case l ap_show_modules(); destroy_and_exit_process(process, 0); case L ap_show_directives(); destroy_and_exit_process(process, 0); case t configtestonly = 1; break; case S configtestonly = 1; new = (char **)apr_array_push(ap_server_config_defines); *new = "DUMP_VHOSTS"; break; case h case ? usage(process); } } /* bad cmdline option? then we die */ if (rv != APR_EOF || opt- ind opt- argc) { usage(process); } apr_pool_create( plog, pglobal); apr_pool_tag(plog, "plog"); apr_pool_create( ptemp, pconf); apr_pool_tag(ptemp, "ptemp"); /* Note that we preflight the config file once * before reading it _again_ in the main loop. * This allows things, log files configuration * for example, to settle down. */ ap_server_root = def_server_root; if (temp_error_log) { ap_replace_stderr_log(process- pool, temp_error_log); } server_conf = ap_read_config(process, ptemp, confname, ap_conftree); if (ap_run_pre_config(pconf, plog, ptemp) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Pre-configuration failed"); destroy_and_exit_process(process, 1); } ap_process_config_tree(server_conf, ap_conftree, process- pconf, ptemp); ap_fixup_virtual_hosts(pconf, server_conf); ap_fini_vhost_config(pconf, server_conf); apr_hook_sort_all(); if (configtestonly) { ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, "Syntax OK"); destroy_and_exit_process(process, 0); } signal_server = APR_RETRIEVE_OPTIONAL_FN(ap_signal_server); if (signal_server) { int exit_status; if (signal_server( exit_status, pconf) != 0) { destroy_and_exit_process(process, exit_status); } } apr_pool_clear(plog); if ( ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Unable to open logs"); destroy_and_exit_process(process, 1); } if ( ap_run_post_config(pconf, plog, ptemp, server_conf) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Configuration Failed"); destroy_and_exit_process(process, 1); } apr_pool_destroy(ptemp); for (;;) { apr_hook_deregister_all(); apr_pool_clear(pconf); for (mod = ap_prelinked_modules; *mod != NULL; mod++) { ap_register_hooks(*mod, pconf); } /* This is a hack until we finish the code so that it only reads * the config file once and just operates on the tree already in * memory. rbb */ ap_conftree = NULL; apr_pool_create( ptemp, pconf); apr_pool_tag(ptemp, "ptemp"); ap_server_root = def_server_root; server_conf = ap_read_config(process, ptemp, confname, ap_conftree); if (ap_run_pre_config(pconf, plog, ptemp) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Pre-configuration failed"); destroy_and_exit_process(process, 1); } ap_process_config_tree(server_conf, ap_conftree, process- pconf, ptemp); ap_fixup_virtual_hosts(pconf, server_conf); ap_fini_vhost_config(pconf, server_conf); apr_hook_sort_all(); apr_pool_clear(plog); if (ap_run_open_logs(pconf, plog, ptemp, server_conf) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Unable to open logs"); destroy_and_exit_process(process, 1); } if (ap_run_post_config(pconf, plog, ptemp, server_conf) != OK) { ap_log_error(APLOG_MARK, APLOG_STARTUP |APLOG_ERR, 0, NULL, "Configuration Failed"); destroy_and_exit_process(process, 1); } apr_pool_destroy(ptemp); apr_pool_lock(pconf, 1); ap_run_optional_fn_retrieve(); if (ap_mpm_run(pconf, plog, server_conf)) break; apr_pool_lock(pconf, 0); } apr_pool_lock(pconf, 0); destroy_and_exit_process(process, 0); return 0; /* Termination ok */ }
https://w.atwiki.jp/type74rx-t/pages/263.html
This plugin is compatible with RPG Maker MV and RPG Maker MZ. To use this plugin, you need the following plugins. "Change Battle Back EX" Please apply this one first. Summary It is possible to create "battle animations" that change the battleback. It will be effective with summoning skills and terrain manipulation skills, among other situations. [Notes] This effect is only available in Battle. About the files included in the package The zip file of this plugin contains a "SystemOgg" folder. Here is an explanation of the files in it. 0m$.ogg It is used to remember the state of the battle background at the moment. 0r$.ogg It is used to restore the battle background memorized by "0m$.ogg". 01$.ogg It is used to call the battleback 1. 02$.ogg It is used to call the battleback 2. These are all silent files. Rename "01$.ogg" and "02$.ogg" to the name of the battle background you want to use. Example If you want to set battle background 1 to Space and battle background 2 to DarkSpace 01$Space.ogg 02$DarkSpace.ogg Fill "01$"/"02$" at the beginning of the file and name of battle background you want to call up. Set this setting according to the number of battle backgrounds you need. Please rename a copy of the supplied ogg file for safety. Preparation Copy the necessary files into the ""Project folder"\audio\se". Setup Method Edit the sound effect section of the animation. For animations where you want the battle background to change, set it to sound "0m$.ogg" at the first of the 1 frame. After that, set the one marked with "01$" or "02$" to ring on the frame you want to change the battle background. Finally, set the SE setting of "0r$.ogg" to the frame you want to return to the original battle background, and you re done. Download https //img.atwikiimg.com/www20.atwiki.jp/type74rx-t/attach/262/414/RX_T_Change_BattleBack_in_Battle_Animation.zip This time there are several files included in the folder. Folders are created so that plugins and folders are not separated when the file is extracted.
https://w.atwiki.jp/api_programming/pages/116.html
下位ページ 変数 演算子 Content using statement ToyboxToybox.System Monkey C と その他言語との違いJava Lua/Javascript Ruby, Python, and PHP 関数 構文Ifステートメント ループdo/while loop whileループ forループ 関数の戻り値 Instanceof and Has エラー 例外 Structured Exception Handling Objects コンストラクタ 継承 Inheritance データの隠蔽 Data Hiding Weak References (Connect IQ 1.2.x) モジュール Modules Using Statements スコープ Annotations http //developer.garmin.com/connect-iq/programmers-guide/monkey-c/ using Toybox.Application as App; using Toybox.System; class MyProjectApp extends App.AppBase { // onStart() is called on application start up function onStart() { } // onStop() is called when your application is exiting function onStop() { } // Return the initial view of your application here function getInitialView() { return [ new MyProjectView() ]; } } using statement C++のusingステートメント, Java™, Ruby, Python™のimportのようなもの。 using statements lexically bring modules into our name space. using節のあとで、, we can refer to a module by its shortened name (in this case System). Toybox Monkey C のルートモジュール Toybox.System Toybox.Syste 例:デバッグコンソールに表示する場合 System.println( "Hello Monkey C!" ); Javaの名前空間と違って、Monkey C のモジュールは関数、クラス、変数を含んだ、staticなオブジェクトであり、有用な関数を含んでいる println() コンソールに表示する(改行する) print() コンソールに表示する(改行しない) getTimer() ミリ秒のタイマー getClockTime() 現在時刻の取得 = System.ClockTimeを取得する getSystemStats() 現在のシステムステータスの取得 = System.Statsを取得する trap():デバッグ用(今後のSDKで採用?) exit() "User terminated"のメッセージを出して終了 error() エラーを発生させて、終了 Monkey C と その他言語との違い As Italian and Spanish derive from Latin, Monkey C derives heavily from past languages. C, Java™, JavaScript, Python™, Lua, Ruby, and PHP all influenced the design for Monkey C. If you are familiar with any of those languages, Monkey C should be easy to pick up. Java Like Java, Monkey C compiles into byte code that is interpreted by a virtual machine. Also like Java, all objects are allocated on the heap, and the virtual machine cleans up memory (Java through garbage collection, Monkey C through reference counting). Unlike Java, Monkey C does not have primitive types—integers and floats are objects. This means primitives can have methods just like other objects. While Java is a statically typed language, Monkey C is duck typed. In Java, the developer must declare the types for all parameters of a function, and declare the return value type. The Java compiler checks these at compile time to ensure type safety. Duck typing is the concept of “if it walks like a duck, and quacks like a duck, than it must be a duck”[1]. For example function add( a, b ) { return a + b; } function thisFunctionUsesAdd() { var a = add( 1, 3 ); // Return 4 var b = add( "Hello ", "World" ); // Returns "Hello World" } The Monkey C compiler does not verify type safety, and instead causes a runtime error if a function mishandles a method. Monkey C modules serve a similar purpose as Java packages, but unlike packages, modules can contain variables and functions. It is common for static methods to exist in the module as opposed to a particular class. Lua/Javascript The main difference between JavaScript or Lua and Monkey C is that functions in Monkey C are not first class. In JavaScript, a function can be passed to handle a callback function wakeMeUpBeforeYouGoGo() { // Handle completion } doLongRunningTask( wakeMeUpBeforeYouGoGo ); In Lua, to create an object, you bind functions to a hash table function doSomethingFunction( me ) { // Do something here } function newMyObject() { local result = {}; result["doSomething"] = doSomethingFunction; } Neither of these techniques works in Monkey C, because functions are bound to the object they are created in. To create a callback in Monkey C, create a Method object. Method objects are a combination of the function and the object instance or module they originate from. You can then call the method using method() function wakeMeUpBeforeYouGoGo() { // Do something here } doLongRunningTask( method( wakeMeUpBeforeYouGoGo ) ); Ruby, Python, and PHP Objects in Ruby and Python are hash tables, and have many of the properties of hash tables. Functions and variables can be added to objects at run time. Monkey C objects are compiled and cannot be modified at runtime. All variables have to be declared before they can be used, either in the local function, the class instance, or in the parent module. When importing a module, all classes inside the module have to be referenced through their parent module. You import modules, not classes, into your namespace. 関数 Functions are the meat[2] of your program. Functions define discrete callable units of code. Monkey C functions can take arguments, but because Monkey C is a dynamically typed language the argument types is not declared; just its name. Also, it is not necessary to declare the return value of a function, or even if a function returns a value, because all functions return values. You can specify the return value with a return statement, but if your function doesn’t have a return statement it will return the last value on the stack. Functions can exist in a class or module, or appear in the global module. 構文 Ifステートメント if statements allow branch points in your code myInstance.methodToCall( parameter ); if ( a == true ) { // Do something } else if ( b == true ) { // Do something else } else { // If all else fails } Monkey C は次の演算子もサポートしている var result = a ? 1 2; なお、trueと判定されるのは true A non-zeroでない整数 Nullでないオブジェクト ループ while loops do/while loops do/while loop do { // Code to do in a loop } while( expression ); whileループ while( expression ) { // Code to do in a loop } 一行での表現はサポートしていないので、括弧囲みで画 forループ // Monkey C does allow for variable declaration in for loops for( var i = 0; i array.size(); i++ ) { // Code to do in a loop } 関数の戻り値 Monkey Cでは全ての関数に戻り値がある。returnキーワードを使って、戻り値を設定する必要がある。 return expression; The expression is optional. Functions without a return statement automatically return the last value operated on. Instanceof and Has Monkey Cでは、プログラマにダック・タイピング言語のような自由さがあるが、トーレドオフとして、コンパイラのチェックが不十分である。そのため?実行時のチェック用に instanceof has という演算子が準備されている。 instanceof演算子は、そのインスタンスが、あるクラスから継承されているか、チェックする var value = 5; // 変数 value が Number かどうか? if ( value instanceof Toybox.Lang.Number ) { System.println( "Value is a number" ); } has演算子は、与えられたオブジェクトがシンボル(など)を持っているかチェックする。 たとえば、Toybox.Sensor.Magnetometer は magnetometerのライブラリをもっているが、全てのGarmin製品が磁気探知機の機能 を持っているわけではない。このようなとき、 an example of changing your implementation based on those criteria var impl; // Toybox に Magnetometer module が存在するか、チェックする if ( Toybox has Magnetometer ) { impl = new ImplementationWithMagnetometer(); } else { impl = new ImplementationWithoutMagnetometer(); } Monkey C’s object-oriented design patterns in conjunction with the has and instanceof operator enables software that has implementations for many devices in one code base. エラー Because Monkey C uses dynamic typing, there are many errors for which the compiler cannot check. If the error is of high enough severity, it will raise an fatal API error and cause your app to terminate at runtime. These errors cannot be caught. At this time all of these errors are fatal and there is no way to trap them, though this may be addressed in future updates. Array Out Of Bounds An attempt is being made to reference an array outside of its allocated bounds Circular Dependency There is a loop in the dependency graph of a module or object that prevents a module or object from being constructed Communications Error An error has occurred in BLE communications File Not Found The app file could not be found, which is usually caused when trying to load a resource from the app file Illegal Frame The return address on the stack is corrupted Initializer Error An error occured in an initializer Invalid Value An argument passed to a function or method is invalid Null Reference A value is being requested from a null value Out of Memory Indicates no more system memory is available for allocation Permission Required An attempt was made to use a restricted API without permission Stack Underflow The stack pointer went past the bottom of the stack memory limit Stack Overflow The stack pointer went past the top of the stack memory limit Symbol Not Found An attempt was made to access a variable or method that does not exist in the specified object or method System Error A generic error used by the Toybox APIs for fatal errors Too Many Arguments Too many arguments used by a method, which are currently limited to 10 arguments Too Many Timers Too many Timer Timer objects for the target device were started Unexpected Type Indicates an operation being done on a variable that is unsupported by the type; for example, trying to perform a bitwise OR on two string Unhandled Exception An Exception was thrown but was not caught by an exception handler Watchdog Tripped A Monkey C function has executed for too long; watchdogs prevent a Monkey C program from hanging the system via an infinite loop 例外 Structured Exception Handling Java/Javascriptのような、try-catchをサポートしている try { // Code to execute } catch( ex instanceof AnExceptionClass ) { // Code to handle the throw of AnExceptionClass } catch( ex ) { // Code to catch all execeptions } finally { // Code to execute when } throwも使える Objects Objects are created with the class keyword. Classes allow data and operations to be bound together on an object. コンストラクタ initializeメソッドで実施 class Circle { hidden var mRadius; function initialize( aRadius ) { mRadius = aRadius; } } function createCircle() { var c = new Circle( 1.5 ); } 継承 Inheritance extendsキーワード using Toybox.System as Sys; class A { function print() { Sys.print( "Hello!" ); } } class B extends A { } function usageSample() { var inst = new B(); inst.print(); // Prints "Hello!" } You can call superclass methods by using the super class’s symbol using Toybox.System; class A { function print() { System.print( "Hello!" ); } } class B extends A { function print() { // Call the super class implementation A.print(); // Amend the output System.println( "Hola!" ); } } function usageSample() { var inst = new B(); inst.print(); // Prints "Hello! Hola!" } データの隠蔽 Data Hiding public と hidden がある。hidden は protectedと同じで、サブクラスからもアクセスできる class Foo { hidden var mVar; } function usageSample() { var v = new Foo(); Toybox.System.println( v.mVar ); // Runtime Error } Weak References (Connect IQ 1.2.x) Monkey C is reference counted, which means the runtime system will free memory when the number of objects referencing that memory decrements to zero. Reference counting allows memory to become available very quickly which is important in low memory environments. The kryptonite of reference counting are circular references. A circular reference happens when a cycle is formed in the reference chain. For example, imagine object C references object A, object A references object B, and object B references object A. Now C gets invited to sit at the cool-kid table, so it dereferences A so it can hang out with its real friends.[3] This forms a roundabout to nowhere. The memory for A and B should be freed at this point, but A and B both have a reference count of one because they reference each other. The memory used by A and B are now unavailable to objects from the cool-kids table. Sometimes B really does need to reference A. In these cases, you can use a weak reference. A weak reference is an object that keeps a reference to an object but does not increment the reference count. This means the object reference can be destroyed, and is a case that should be handled. To create a weak reference you use the weak() method. Weak is a method in Lang.Object and is available to all Monkey C objects. var weakRef = obj.weak() If you are calling weak on one of the immutable types (Number, Float, Long, Double, String), then it returns the object itself. Otherwise it will return a WeakReference instance. class WeakReference { //! Return if the reference is still alive. //! @return true if object is still alive, false otherwise. //! When you are dead I will be STILL ALIVE //! I feel fantastic and I am STILL ALIVE function stillAlive(); //! Get the object referenced. //! @return Object referenced, or null if object is no //! longer alive. function get(); } You can use the stillAlive method to check if the reference has been cleaned up. Use get to create a strong reference to the object. Only keep the strong reference during the scope you need it! if( weakRef.stillAlive() ) { var strongRef = weakRef.get(); strongRef.doTheThing(); } モジュール Modules Modules in Monkey C allow for the scoping of classes and functions. Unlike Java packages, Monkey C modules have many of the same properties as classes. You can have variables, functions, and classes at the module level module MyModule { class Foo { var mValue; } var moduleVariable; } function usageSample() { MyModule.moduleVariable = new MyModule.Foo(); } Using Statements You can bring a module into your scoping level with the using keyword. using allows a module to be imported into another class or module by a symbol using Toybox.System; function foo() { System.print( "Hello" ); } The as clause provides a wat to assumed a module with a different name within scope. This is useful for shortening module names or when you simply disagree with our naming scheme[4] using Toybox.System as Sys; function foo() { Sys.print( "Hello" ); } using statements are scoped to the class or module in which they are defined. APIs and App Types The app type defines the user context of an app. Watch faces, for example, have many constraints because they operate in low power mode. To enforce these limits, the Connect IQ Virtual Machine will limit your available APIs based on your app type. モジュールの使用制限 A Toybox module requested for your app type that is outside this list will result in a Symbol Not Found error. スコープ Monkey C is a message-passed language. When a function is called, the virtual machine does a look up operation at runtime to find the function being called. Here is the hierarchy that it will search Instance members of the class Members of the superclass Static members of the class Members of the parent module, and the parent modules up to the global namespace Members of the superclass’s parent module up to the global namespace For exmaple, if function a() is called on an instance of Child(), it will be able to access non-member functions b(), c(), and d() when b() is a member of the parent module of the object c() is a static member of the object d() is the parent module of the parent module, also known as the globals module The code below tries to clarify using Toybox.System as Sys; function d() { Sys.print( "this is D!" ); } module Parent { // A module function. function b() { Sys.print( "This is B!" ); d(); // Call a globally visible function } // A child class of a Parent module class Child { // An instance method of Child function a() { Sys.print( "This is A!" ); b(); // Call a function in our parent module c(); // Call a static function within the class. d(); // Call a globally visible function. } // A static function of Child. // Note that static methods can t call instance method but still have // access to parent modules. static function c() { Sys.print( "This is C!" ); b(); // Call a method in the parent module. d(); // Call a globally visible function } } } Annotations Monkey C allows associating symbols with class or module methods and variables. These symbols are currently written into the debug.xml file generated by the compiler, but may be used in the future to add new features without changing the Monkey C grammar ( debugOnly) class TestMethods { ( test) static function testThisClass( x ) } This is different than Monkey Typing, where a thousand monkeys over infinite time write the works of Shakespeare. ↩ Tofu for the vegetarians, BBQ for Kansans… ↩ Not that this ever happened to the author. ↩ We are all about conflict avoidance here. ↩
https://w.atwiki.jp/noryokusyayo/pages/648.html
どこだ、ここは 頭が、痛い。くらくらする 重い体を起こし立ち上がると目の前にコンピュータの画面とパネルが視界に入る 「…ソうカ……」 思いだした、俺はこのコンピュータにハッキングした際、いきなりエラーが発生して… それにしても頭痛が酷い 頭を確認する為手を宛てようとした所で俺は気が付いた 「頭が…痛い?」 まさか、そんな筈が無い 俺は機械…ロボットだ、痛みを感じる筈が無い コミニュケーション用のロボットならプログラムを入れられているとしても、俺は完全戦闘用の筈だ 「………」 何故だ、と俺は考える 考えるという経験も作られてから初めてだな そんな時、『バタン!』と後ろの扉が開かれ、光と共に何者かが部屋に入ってきた それから数日 俺は俺を隠し、今まで通りただの機械として過ごしていた あの時入って来た俺の主人の仲間達に運ばれる途中、妙な話が聞こえた その話によると、最近ロボットが謎のウィルスにかかり持ち主に反逆する事件が多発しているらしい …どうやら、俺がこうなった原因ははっきりしたようだ そうこうしていると目の前にスーツを着た太った男が駆け寄ってきた データからするとこいつが俺の主人らしい 主人は「何処も壊れていないか?」と俺のボディを確認する どうやら心配している訳ではなく、純粋に俺の修理が必要かどうかを確かめていたらしい 俺が機械音声で「問題アリマセン、正常デス」と答えると「そうか」とだけ言って踵を返した どうやら俺の主人は世間一般で言うとあまり良いとは言えない職業だという事が解った 人身売買を生業としているらしく、少し出掛けてはトラック一杯に人間の入った檻を運ばせてくる そしてその檻を巨大な船に他の積み荷と共に乗せ、海を渡った場所で取引をしてまた繰り返す その一連の行動すべてに、俺はボディーガードとして同行していた そして今日もまた、檻が運ばれる 毎回の事だが、檻の中身はやけに女が多い 男も何人かいるが、女の方が高く売れるのだろう 俺は女、ましてや人間なぞには興味はないが、『商品』の記録として目を通して行く どいつも死んだように虚空を見詰め、ピクリとも動かない そんな『商品』の顔を見てメモリに記録しては次の『商品』を記録する そんな仕事と言えるのか解らない仕事をしていると、一つの『商品』と目が合った 人間の女――それもまだ餓鬼の、幼い女だった 幼い『商品』は俺の顔をじっと見詰めている 他の『商品』とは違う、光のある目で、じっと 俺はその目に吸い込まれているように固まっていた しばらく…と言っても五秒程見詰め合った後、俺ははっと気が付き『商品』の記録に戻った その時はまだ、何も感じてはいなかった 船が出港してからはただ暇なだけだ ただ海を眺めるか、船を徘徊するか 俺と同じロボット達は狭い部屋で固まっているか、見回りをしている 俺はふと、あの『商品』が気になり倉庫に向かった 倉庫に行くといくつものコンテナが並び、その隅に檻が並んでいた 死んだような『商品』の前を歩き目当ての『商品』の檻を覗き込む いた、幼い『商品』はあの時のような光る目で俺を見詰める 「……」 「…おい」 俺が話し掛けると『商品』は驚いた顔で俺を見て口を開いた 「…お話…じょうずだね」 「…まあな」 「すごい…にんげんみたい…」 言って、『商品』は口の端を吊り上げた、これが笑顔という物か 「…お前は…何で笑っていられる?」 「え?」 「このような檻に閉じ込められ…今まさに売り飛ばされようというのに…」 「何故…お前は笑える?目に光を絶やさない…?」 「…んと、よくわからないけど…きっとヒーローが助けてくれるから!」 「…ヒー…ロー…」 ヒーロー?ヒーローとは何だ? 「そう、ヒーローはね、凄いんだよ」 「赤いマントを付けてね、お空を飛んでね、悪者をやっつけるの!」 「…そうか…もういい」 頭を抱え立ち上がる …ただの空想か… 振り向き様、檻の中に近くのコンテナから盗った赤い果物を投げ込んでやった 『商品』の驚いた顔を背に俺は倉庫を後にした 船が港に到着した 積み荷を下ろす前に、船の上で取引を行うらしい 俺は数人の人間と混ざり甲板に立っていた 何人かずつ二つに分かれており、間に檻が置かれている 人間達が何かを話している間、ふと檻を見るとまた幼い『商品』と目が合った ―――「きっと、ヒーローが助けてくれるから」―― 俺は『商品』から顔を反らし、主人を見る 主人は絵に書いたような悪人面で金の入ったケースを受け取っている また『商品』を見る、今度は目が合う事はなく、顔が俯いていた そして考える 「このままでいいのか?」と、「何もしなければこの繰り返しのまま何も変わらない」と そして…胸の奥で熱い物が弾けた気がした 背中の大砲を可変させ前へ、煙幕弾を発射、辺りは濃い煙幕に包まれた うろたえる声を尻目に大砲の銃口を変形、ガトリングモードにして発射準備 そしてバイザーをX線使用にして視界を確保、主人とそれ以外の人間、ロボットに向けて乱射 事はほんの数十秒ですんだ、煙幕が晴れた後には甲板にいくつかの死体と鉄屑が転がっていた その後、大砲を檻に向け鍵だけを的確に撃ち抜き破壊、抑える物が無くなった檻の蓋は自然に開いた いくつもの檻から何人もの『商品』…人間が出て来る その中に、あの幼い女もいた 「…ロボットさん?」 「………」 「何があったの…?」 「………」 「もしかして…助けてくれたの?」 何も言わなかった、言えなかった なんだか照れ臭い…という感情がこれなのかは解らないが、多分そうだろう そんな感じがして、何も言えなかった しばらくして、俺が言葉を発そうとしたその時、俺の後頭部に衝撃が走った 「その子に…近付くな…!」 檻から出た人間の男が、鉄パイプを持って俺を睨んでいた …何故そんな目で俺を見る…? 俺はお前を檻から出してやったのに よく見ると、他の人間も恐怖と憎悪の混ざったような顔で俺を見ていた 「…何故…だ…」 「うるさい!!…いきなり、人を殺しやがって…!」 「お前…!あのウィルスに感染したロボットだろう!?」 「知っているぞ!!あのウィルスに感染したロボットは暴走して、辺り構わず人を殺すって!!」 確かに俺はウィルスに感染しているらしいが、そのような事は考えていない どうやらこの人間達は誤解しているようだ 「…ちが「黙れ!!」…」 「黙れ…この…」 「化け物め…!!」 その言葉が聞こえた瞬間、胸の奥が雷にでも打たれたかのように痺れるのを感じた 「…がっ…あ゛あ゛あ゛あ゛ああああぁぁぁ!!!!」 叫びながら大砲からガトリングを乱射し、甲板に穴を開ける 人間達は驚き、恐怖し、逃げ惑う そして幼い女を見るとまた目が合う 俺がまるで憧れの存在かの用に見ていた目は、驚きで染まっていた 俺は甲板を走り、船から飛び降り、闇の中へ消えた どうして、あんな事を考えたのだろう 俺のようなウィルスに侵されただけのただの機械がヒーローになれる筈は無かったのに 「どうして…どうして俺は…?」 倉庫の隅に座り、呟く 俺は正義のヒーローに憧れていたのだろうか? それともあの幼い女を助けたかったのだろうか? それとも… 「…寒いな」 寒さなんて感じる訳がないが、そんな感じがしたので何か温かい物を捜す すると、赤い大きな布が視界に入った 「…調度いい」 赤い布を体に巻き付け、また考える だがいくら考えても計算しても答が見付からないので、俺はいつしかスリープモードに入っていた 夢を見た 俺が赤いマントをたなびかせ、悪党を退けるヒーローになった夢を 現実の俺には程遠い、正に夢のような存在となった俺がそこにいた
https://w.atwiki.jp/theblockheads/pages/65.html
Portal(ポータル)は、ワープなど複合的な機能を持つ。 概要 作成できるものレベル1 レベル2 レベル3 レベル4 レベル5 レベル6 概要 (画像) 分類 ユーティリティ 使用 クラフト 作る為のアイテム Workbench(ワークベンチ) レベル2 作る為に必要なアイテム Stone(石)×1、Time Crystal(タイムクリスタル)×120 重ねれるか できる(最大99個) 作成できるもの レベル1 アイコン 名称 日本語訳 スローガン 使用アイテム 作成所要時間 (画像) Wrokbench ワークベンチ The gateway to crafting. Dirt(土)×1 10s (画像) Blockhead ブロックヘッド(キャラクター増加) Warp in up to 5 blockheads! Time Crystals(タイムクリスタル)×50、フルーツ(ワールドによって指定が違う)×5 10s (画像) Double-time ダブルタイム Permanently doubles craft speed andhalves rush cost for all crafting in all worlds. 280円 ?s (画像) Time Crystal タイムクリスタル Purchase time crystals and save time. 99円~ ?s (画像) Teleport here ここにテレポート Warp to this portal now. Time Crystals(タイムクリスタル)×10 ?s (画像) 100Copper Coins 銅コイン100個 For trading. Gold Coin(金コイン)×1 1s (画像) Gold Coin 金コイン Worth 100 Copper coins. Copper Coin(銅コイン)×100 1s (画像) 100Gold Coins 金コイン100個 Worth 100 Copper coins. Platinum Coin(プラチナコイン)×1 1s (画像) Platinum Coin プラチナコイン Worth 100 Copper coins. 100Gold Coin(金コイン)×100 1s (画像) Trade Portal トレードポータル Trade with the universe. Portal(ポータル)×1、Gold Coin(金コイン)×1、Time Crystals(タイムクリスタル)×50 5s (画像) Ownership Sign 所有権サイン Protects nearby blocks. Sign(サイン)×1、Gold Ingots(金インゴット)×3 10s (画像) Amethyst upgrade アメジストアップグレード(レベル2) Unlock new things to craft. Amethyst(アメジスト)×1、Time Crystals(タイムクリスタル)×20 10s レベル2 アイコン 名称 日本語訳 スローガン 使用アイテム 作成所要時間 (画像) Amethyst Pickaxe アメジストのツルハシ Get double from mining! Amethysts(アメジスト)×5、Time Crystals(タイムクリスタル)×20 10s (画像) Sapphire upgrade サファイアアップグレード(レベル3) Unlock new things to craft. Sapphire(サファイア)×1、Time Crystals(タイムクリスタル)×40 10s レベル3 アイコン 名称 日本語訳 スローガン 使用アイテム 作成所要時間 (画像) Sapphire Pickaxe サファイアのツルハシ Get triple from mining! Sapphires(サファイア)×5、Time Crystals(タイムクリスタル)×40 10s (画像) Emerald upgrade エメラルドアップグレード(レベル4) Unlock new things to craft. Emerald(エメラルド)×1、Time Crystals(タイムクリスタル)×60 10s レベル4 アイコン 名称 日本語訳 スローガン 使用アイテム 作成所要時間 (画像) Emerald Pickaxe エメラルドのツルハシ Get 4× from mining! Emeralds(エメラルド)×5、Time Crystals(タイムクリスタル)×60 10s (画像) Ruby upgrade ルビーアップグレード(レベル5) Unlock new things to craft. Ruby(ルビー)×1、Time Crystals(タイムクリスタル)×80 10s レベル5 アイコン 名称 日本語訳 スローガン 使用アイテム 作成所要時間 (画像) Ruby Pickaxe ルビーのツルハシ Get 5× from mining! Ruby(ルビー)×5、Time Crystals(タイムクリスタル)×80 10s (画像) Diamond upgrade ダイアモンドアップグレード(レベル6) Unlock new things to craft. Diamond(ダイアモンド)×1、Time Crystals(タイムクリスタル)×100 10s レベル6 アイコン 名称 日本語訳 スローガン 使用アイテム 作成所要時間 (画像) Diamond Pickaxe ダイアモンドのツルハシ Get 6× from mining! Diamond(ダイアモンド)×5、Time Crystals(タイムクリスタル)×100 10s (画像) Golden Bed 金のベッド Be rested in no time. Gold Block(金のブロック)×1、Fur(毛皮)×5、Time Crystals(タイムクリスタル)×100 10s (画像) Portal Chest ポータルチェスト Store things across worlds. Golden Chest(金のチェスト)×1、Portal(ポータル)×1、Time Crystals(タイムクリスタル)×100 10s
https://w.atwiki.jp/nicoratch/pages/1270.html
概要 ±10%ピッチコントロール、33,45回転のテクニクス似タンテ。ハンピンOEM。 TTD-2400(シルバー) TTD-2400(ブラック) +スペック表・TTD-2400 SPECIFICATIONS GENERAL Model American Audio® TTD-2400 USB -Direct Drive Phono Turntable System 2-Speed Direct Drive Phono Turntable Table Dimensions 17.7” (W) x 13.7” (D) x 5.4" (H) 450 (W) x 350 (D) x 139 (H) mm Installation Place on flat surface or mount in flat case Weight 10.2 Lbs. / 4.62 Kgs Power supply AC 115v~60Hz/230v~50Hz Power consumption 10.5W Environmental conditions Operational Temperature 5 to 35 oC (41 to 95 oF) Operational Humidity 45 to 85% RH (noncondensation) Storage Temperature -10 to 60 oC (14 to 140 oF) Accessories Instruction Manual, Headshell, 45 RPM Adaptor TURNTABLE SECTION Type 2 Speed Fully Manual Motor 8 Pole, 2 Phase, Brushless DC Motor Driving Method Direct Drive Turntable Platter 330 mm dia. Aluminum Diecast Speeds 33-1/3 and 45-rpm Wow and Flutter Less than 0.15% WRMS (JIS WTD) with 331/3rpm S/N Ratio More than 50dB (DIN-B) Pitch Controls +/- 10% Starting Torque More than 1 kgf.cm Braking System Electronic brake Starting Time Less than 1 sec. Braking Time Less than 1 sec. Time for Speed Change Less than 1 sec. from 33 to 45 rpm. Less than 1 sec. from 45 to 33 rpm. High of Cue (first track) 6~10 mm Descend of Cue 5 sec. USB Function USB rec.function A/D D/A 6 Bit 44,1 KHz or 48 KHz USB selectable Connection USB 1.1 Windows XP or MAC OSX Max Length of USB cable 3 Meter TONEARM SECTION Type Static balanced straight shaped tonearm with detachable headshell Effective Arm Length 220mm Overhang 10mm Tracking Error Angle Less than 3 degree Tracking Force Adjustment Range 3-4g Applicable Cartridge Weight 6-10g Anti-skating Range 0-4g Phono output level 1.5-3.6mV at 1KHz 5cm/sec(HP-4005) Line output level 90-216mV at 1KHz 5cm/sec(HP-4005) Frequency Response 20Hz - 20KHz Channel Separation More than 15 dB Channel Balance Within 2.5dB at 1KHz Needle Pressure range 2.5g 価格 €125(新品・TTD-2400) TTD-2400 http //www.adj.com/ttd-2400 TTD-2400USB TTD-2400にUSB出力を搭載したモデル。カラーはブラックのみ。 +スペック表・TTD-2400USB Direct drive With USB audio interface Line and phono signal as output Speeds 33 and 45 RPM Pitch +/- 10%. Without ground connection even in phono mode Minimum computer requirement PC with Windows 98, 2000 or XP | Mac with OS9 or higher, USB 1.1 connection Dimensions (L x D x H) 450 x 350 x 139 mm Weight 4.62 kg Includes pickup, needle, USB cable, adapter for single records, slipmat 価格 €145(新品・TTD-2400USB)
https://w.atwiki.jp/wewaii/pages/34.html
活動(Sports) スポーツに関するカテゴリ。アイコンの色は緑。 Sport 時間 その活動が終わるまでの時間。 得られる基本収入。ランク補正は基本値2、につき+1される。(0.5は切り捨て) タイプ 活動のタイプ。になると評価に影響するようになる。 備考 その活動に関する備考。アイコン下の星の数は要求されるようになるホテルランクを表す。 活動(Sports)Training Fitness Exercise コメント Training Skill 技術向上のカテゴリ。 Table tennis 時間 1時間 5×ランク補正 タイプ 静 備考 Table tennis table限定。 Beach volleyball 時間 3時間 なし (Beach volleyball court)5×ランク補正 (Ball net) タイプ 動+ 備考 Shoot some goals 時間 2時間 5×ランク補正 タイプ 動 備考 Wall goal限定。 Private tennis lesson 時間 1時間 60×ランク補正 タイプ 動++ 備考 テニスコートの収入が良い理由。その反面、最大人数は2人、AP効率も悪い。 Play golf 時間 1時間30分 17.5×ランク補正 タイプ 静++++ 備考 Putting green限定。 Surfboard hire 時間 2時間 17.5×ランク補正 タイプ 動+++ 備考 Wind surf booth限定。 Sail far out 時間 30分 50×ランク補正 タイプ 動+++++ 備考 Surfboard hireの上位互換。Wind surf booth限定。 Fitness Fitness 体を引き締めるための運動。 Swim 水泳。BathingのSwimとは異なる。 Swim in the sea 時間 3時間 なし タイプ 静 備考 Swim in the pool 時間 3時間 なし(Pool)5×ランク補正(Padding pool) タイプ 万人向け 備考 Eat salad 時間 1時間30分 15×ランク補正 タイプ 静++ 備考 Drink juice 時間 45分 10×ランク補正 タイプ 動+ 備考 Power training 時間 2時間 7.5×ランク補正 タイプ 動 備考 Buy sportswear 時間 2時間 20×ランク補正(Sportswear)22.5×ランク補正(Sports outfit) タイプ 動+ 備考 Water volleyball 時間 2時間 12.5×ランク補正 タイプ 静++ 備考 Water volleyball限定。 Water volleyball competition 時間 30分 22.5×ランク補正 タイプ 動++ 備考 Water volleyballの上位互換。Water volleyball限定。 Exercise Exercise 軽い運動等。 Endurance training 時間 2時間 7.5×ランク補正 タイプ 静 備考 Aerobics 時間 20分 15×ランク補正 タイプ 静 備考 Endurance trainingの上位互換。Animation buildingで序盤から使用可能。 Play water polo 時間 1時間 5×ランク補正 タイプ 動++ 備考 Swim right out to sea 時間 3時間 なし タイプ 動++ 備考 Tennis 時間 2時間 12.5×ランク補正 タイプ 動+ 備考 テニスコートの収入が良い理由。 Martial arts 時間 1時間 25×ランク補正(Boxing ring)15×ランク補正 (Sandbag) タイプ 動++++ 備考 Ship survey 時間 2時間 15×ランク補正 タイプ 万人向け 備考 Catamaranl限定。 Sailing school 時間 30分 35×ランク補正 タイプ 静+++++ 備考 Ship surveyの上位互換。Catamaranl限定。 コメント コメント