テクノロジー はてなダイアリー - つれずれなるままに… - 何かつまらなかったのでHatenaStar.jsが利用しているAPIを調べてみた。
Hermeneutics (/hɜːrməˈnjuːtɪks/)[1] is the theory and methodology of interpretation,[2][3] especially the interpretation of biblical texts, wisdom literature, and philosophical texts.[4][5] As necessary, hermeneutics may include the art of understanding and communication.[6] Modern hermeneutics includes both verbal and non-verbal communication,[7][8] as well as semiotics, presuppositions, and pre-
だいぶ遅れた反応となりますが、「呪術的オブジェクト指向用語訳」(by JRFさん)という不思議なエントリーからトラックバックをいただきました。 オブジェクト指向ってのは、なんかこう人形っつーか人型操ってドーコーする、陰陽師とかパペットマスターとかネクロマンサーなイメージなわけ。 このイメージに沿って、技術用語に漢字の訳語を提案なさっています。このテの試みのパイオニアは筧捷彦(かけひ・かつひこ)先生でしょうか。JRFさんの訳語はそれよりずっと濃ゆいものです。 さて、JRFさんの「オブジェクト指向ってのは、…」にはかなり同感です。それをネタに楽しむのもいいし、「実際そういうものだ」ってとらえ方もあるでしょう。が僕としては、ネタを離れて考えれば、「実際そういうものだ」とは思いたくない。 どうも、プログラム開発(特にオブジェクト指向)の流派とか手法(?)の一部に、根拠薄弱な精神論や神秘主義が入って
使用できる文字は英数字とハイフン(-)である。 英文字の大小は同じとして扱う。 つまり、次の文字だけが利用出来る。 -0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ それ以外の文字を使う時は、この文字との相互変換をする国際化ドメイン名という技術を用いる。 全体の名前は小→大の順で表現し、ピリオドで区切られた各名称は63文字以下、全体として255文字以下で命名される。 長さは、各部位が1文字以上であるが、セカンドレベル等、レジストラーから登録する際には各レジストリに定めるルールに従う。 例えば.jpの場合(かつてJPNIC、現JRPS)の場合、セカンドレベル以下の各名称の最低文字数は3文字である。2文字は機能用に予約(ac/ad/co/ed/go/lg/gr/ne/or)されており、1文字は未使用としている。
キーが押され続けたときの挙動 keydown について。 Firefox では押している間中リスナの関数が実行されるのに対して、Opera ではキーが押された一回のみ。 keypress では両者共通して実行され続ける。 デフォルトイベントの制御・抑止 両ブラウザで共通させるためには keypress を用いる。 document.addEventListener( 'keypress', function(e){ e.preventDefault(); }, false); これで Opera であっても、例えば vim のように Ctrl + r を redo とするようなアプリケーションが作れる。ただし Alt + f などでは、ブラウザデフォルトのメニューが開かれてしまう。一方、 Firefox では Alt 押しながら f といった操作も制御可能。ただし前述のように、この場合は押
Event オブジェクトのプロパティを紹介します。 ここでもできるだけクロスブラウザをこころがけています。 type プロパティはイベントのタイプを文字列で表します。 例えば、 onclick なら "click" と返します。 <INPUT TYPE="button" VALUE="押してね☆" ONCLICK="alert(event.type)"> IE では srcElement プロパティがオブジェクト (へのアドレス)を返します。 ネスケでは target プロパティがオブジェクトを表す文字列を返します。 こんな感じです。 <input type="button" name="btn1" value=押してね☆" onclick'test2(e);'> こんなものを返されてどうするんだという話もありますが、 とりあえず name プロパティを拾っておきましょう。 functi
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
Introduction `wheelfix' は、WM_MOUSEWHEEL イベントをポインタ直下のウィンドウへ投げることでマウスホイールの動作を修正する (マウスイベントはポインタ直下へ落ちるのが自然であるはずなので「修正」)。 X ではホイールの動作はボタン4、5のイベントとして伝わるためこのような動作になっていたが、Windows では常にフォーカスのあるウィンドウへイベントが行ってしまい気持悪い、という人向け。 同様のツール、あるいは標準で何らかの設定があるような気もするが、見当たらなかったので作成。 (Obsoleted by mouse-processor) Features 入力フォーカスに関わらず、ポインタ直下のウィンドウをホイールで操作可能 バックグラウンドにあるウィンドウをバックグラウンドのままスクロール操作等 タスクトレイに常駐し、動作の一時停止、再開が可能 Re
JavaScriptでマウスホイールイベントを扱い、スクロールも停止する方法 2006年08月17日- Mouse wheel programming in JavaScript Web applications are becoming more and more like “normal” desktop applications. Of course, they are more and more functional, but smooth user interface acts the primary role. So we have drag and drop, autocompletition, and much more. Many of those nice features got possible only with help of AJAX. JavaScriptで
前回の FirefoxのsetTimeoutの実装 - bits and bytes を書いたときには、はてなブックマークのコメントでご指摘いただいているsetTimeoutとpromptを組み合わせるとpromptが終了する前にタイムアウトハンドラが呼び出される現象を知りませんでした。この現象については [JavaScript]JavaScriptはほんとにシングルスレッドで実行されているのか? に詳しく書かれています。 FirefoxのsetTimeoutの実装 - bits and bytes だと、この現象を説明できないので、どうなっているかはっきりさせるためさらに調べてみました。 setTimeout/prompt現象とは かんたんにこの現象について説明しておきます。FirefoxやIEやOperaでは setTimeout( function () { timeout_hand
前回に引き続き、script.aculo.usに付属の ユニットテスト(unittest.js)の使い方です。 今回は、ベンチマーク関数やマウス、キーボードのシミュレート関数の使い方を解説していきます。 benchmark関数 benchmark関数は、前回挙げた assert系とはちょっと動きが異なり、その名の通り、任意の関数のベンチマーク(処理時間の計測)を取るために使います。 benchmark( func [, times] ) funcを timesで指定した回数だけ実行し、処理にかかった時間をログに表示します。timesを省略すると、一回だけ実行されます。 例えば、こんな感じで使います。 var domOperation = function(){ var div = document.createElement( 'div' ); document.body.appendCh
知らないうちに、女性型ロボットがすごいところまで進化している。しかしどうして女性型ロボットが進化するのか。そのほうが売れると見ているのか。開発者の性的欲望がそうさせるのか。ジェンダーの視点から見たらどうなるのか。 これは阪大で作られたもの。ユーチューブに上げられたもののなかではいちばん人間そっくりのように思う。 これは阪大と提携しているココロ社が作ったもの。商業ベースになるとこうなる。 サンリオが資本提供しているのはなるほどと思う。「ダイエット」「セクハラ」とかの言葉が出てきているあたりが注目点か。 これもココロ社で、動きがダイナミックである。 これはカナダの研究者が作ったものだが、 研究者の男が女性型ロボットの胸を触るシーンが収められている。開発者の性的欲望があらわになったシーンであろう。 みなさんのご意見もぜひ聞いてみたい。 ・なぜ女性型ロボットが熱心に作られるのか、それも美人系の?(
台湾の首都、台北(Taipei)にある国立台湾師範大学(National Taiwan Normal University )で、実験用のゴキブリを手に乗せる教授(2007年3月13日撮影)。(c)AFP/Sam YEH 【11月16日 AFP】ゴキブリの群れの中にゴキブリと同じ大きさのロボットを投入することで、群れ全体の集団行動に変化を生じさせられることが明らかになった。ベルギーの研究チームが、16日の米科学誌「サイエンス(Science)」に研究結果を発表した。 研究を主導したブリュッセル自由大学(Universite Libre de Bruxelles)のJose Halloy研究員らは、「このような集団統制行動は、昆虫や脊椎動物などさまざまな生物の群れで見られる。今回の研究によって、自律型ロボットにもそれが可能だと分かった」としている。 研究チームは、ゴキブリと姿は異なるが大きさ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く