ちょっと前まで、IEかどうかを判別する世界最短のコードは、「IEは垂直タブ(\\v)を理解しない」バグを利用した以下のコードでしたが、 '\v'=='v' // 9byte via Ajaxian その後 7byte 版が登場し、去年まではこれが世界最短とされていました。 !+"\v1" // 7byte via webreflection.blogspot.com そこで IEでは、var ary = [1,2,]; ary.length == 3; が成立するため、これを利用したより短い判別コードを考えてみました。 [,]!=0 // 6byte(IEでtrue, IE以外でfalse) +[1,] // 5byte(IE以外で1, IEでNaN) 6byte版で、世界最短かなぁ〜とか思ったのですが、念のため調べてみたら、 webreflection.blogspot.com の 20
Web開発者のためのサードパーティCookieやらトラッキングやらの問題点について三回ぐらいに分けて書きます。 この文章は個人的に書いていますので、おい、お前のところのサービスがサードパーティCookieに依存してるじゃねーかというツッコミがあるかもしれないが、そういうことを気にしているといつまで経っても公開できないという問題が出てしまうので、そんなことはお構いなしに書く。ちなみに例外なく自社サービスに対してもサードパーティCookieに依存するな死ねと言っている。これはWebプログラマー観点で、自分がサービス開発に関わる上で知っておかねばならないだろう知識として十数年間だらだらとWebを見ていて自然に知っていたものと、あるいは興味を持って率先して調べたものが含まれている。ググッて直ぐに分かる程度の用語の定義的なことは書かない。あくまでWebサイト制作者側からの観点なので、ブラウザ開発関係
新野淳一 Publickey 2009/11/27 オペラソフトウェア(以下、オペラ)は、グーグルやモジラと同じように積極的にHTML5への取り組みを見せる企業だ。同社はなぜHTML5を支持し、実装するのだろうか オペラは、当初からHTML5策定に深くかかわっていた 現在、HTML5の仕様策定としてW3CのHTMLチームでエディタを勤めるグーグルのイアン・ヒクソン(Ian Hickson)氏は、元オペラの社員であり、HTML5の策定母体となったWHATWG(Web Hypertext Application Technology Work Group)の設立当初はオペラに所属していました。 この話が象徴するように、オペラはHTML5の策定に当初から深くかかわる企業の1つであり、現在もその姿勢は変わらず、積極的にHTMLを実装し、また普及にも積極的です。同社はHTML5について、いまどう考え
数ヶ月前から既定のブラウザをFirefoxからChromeに変更しました。 ChromeはFirefoxなどと比べ、まだまだ機能的に劣るところもありますが、 他のブラウザにない便利な機能も備えています。 Chromeとか単純にシンプルなだけでしょ、はいはい。と思っていましたが、 最近になっていろんな機能が拡張されています。 今では90%Chrome, 10%Firefox くらいの利用頻度です。 Firefoxはリーダーを読むときだけ利用しています(アドオンがあるとブクマとかがやっぱり便利) ただ通常のブラウジングはChromeがほとんどです。 以下に、Chromeの便利な機能や気に入っているところを紹介します。 私のChromeのホーム画面です。 他のブラウザと違い、いろんなボタンがないのでごちゃごちゃしてません。 非常にシンプル! ちなみに最近になり、Chromeテーマが用意されました
open()メソッドの2番目の引数に、この送信するデータを指定します。ただし、これだけでは、うまく送信されません。send()メソッドでsend(null)として始めて期待通りデータが送信されます。もし、UNIXなどでsend(null)でうまくいかない場合にはsend("")としてみてください。(実際のサンプルを実行する) <html> <head> <meta http-equiv="content-type" content="text/html;charset=shift_jis"> <title>GETメソッドでデータを送信する(日本語を含まない)</title> <script type="text/javascript" src="xmlhttp.js"></script> <script type="text/javascript"><!-- function dataSa
有名どころでは、about:configから直接いじる方法がありますね。 FirefoxやThunderbirdのメモリ消費量を劇的に減らす方法 - GIGAZINE 日本語圏で紹介されていなかったようだから、書いてみますよ。 使用するのは自己責任ってことでお願いしますね。とはいっても、たくさんの人に使ってもらってレビューを書いてほしいです。私はやりました(以下、実験にて)。実体がわかったので、コメントや追記を見てください。 #追記+コメントは要参照。 Firefox Ultimate Optimizer(以下、FUO)とは メキシコ発のMozilla Firefoxのメモリ消費量を劇的に減らす(あるサイトではdramaticallyではなくdrasticallyと紹介されている。それくらいに凄い。)ツール。Rafael Felipe Sarabia Caravantesっていう19歳の青
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く