サービス終了のお知らせ NAVERまとめは2020年9月30日をもちましてサービス終了いたしました。 約11年間、NAVERまとめをご利用・ご愛顧いただき誠にありがとうございました。
Asynchronous behaviour driven development for Node. There are two reasons why we might want asynchronous testing. The first, and obvious reason is that node.js is asynchronous, and therefore our tests should be. The second reason is to make tests which target I/O run much faster, by running them concurrently. Write some vows, execute them: $ vows test/* --spec Get the report, make sure you kept yo
追記: 指摘が多かったので書いておきます。勝手にSSLの証明書検証をスキップするアプリはセキュリティホールのあるアプリとして扱われるので注意してください。 標準のブラウザのようにダイアログを出したり、アプリでアクセスを許可しているドメインかどうかチェックしたりするべきでしょう。 あと、この方法を格別オススメしているわけではありません。あくまで対処法です。あしからず。 WebView で https で提供されている URL のサイトにアクセスしようとしたとき、証明書がオレオレ証明書だったり、Android にデフォルトで入っている信頼済証明書機関(trusted certificate authorities)に入っていない場合 SSL のエラーが発生し、処理がキャンセルされ white screen / empty screen (つまり真っ白画面)になります。 例えば、いくつかの CA
設定画面でWi-Fi機能をONにしてアプリを起動した直後など、Wi-Fi関連には様々なイベントが発生します。Fragmentには、イベント発生時に呼ばれるコールバック・インタフェースを用意します*1。WiFiDirectCallbackPickerとWiFiDirectCallbackというインタフェースです。このインタフェースを介してコールバックを受け取ります。 *1 本来ならば画面表示用のFragment、Wi-Fi Direct用のFragment、ゲーム用のFragment、それを統べるActivityという構成が望ましいのですが、誌面の都合により簡略化しています。また、ソースコード中に文字列をベタ記述していますが、この記述はよいスタイルではありません。多言語化を意識し、リソースXMLへ切り出すようにしましょう。 Wi-Fi Directのパッケージである「net.vvakame.
今回は、Android 4.0から追加された新機能「Wi-Fi Direct」を紹介します。デバイス同士を連携させて、◯×(マルバツ)ゲームで対戦するアプリを作成しましょう。 4.0から追加されたWi-Fi Directは、2010年にWi-Fiアライアンスが策定したもので、デバイス同士で直接通信を行うための仕様です。今回は、このWi-Fi Directを使って、デバイス同士で対戦できる○×ゲームを作成します(図1)。 Wi-Fi Directとは Wi-Fiといえば、無線LANのAP(アクセスポイント)と機器を接続する仕様ですが、Wi-Fi Directでは、APを介さずに機器同士で通信を実現できる点が特徴です。APを介さない類似の例には、PSP(PlayStation Portable)やニンテンドーDSなどのゲーム機で使われるAd Hoc(アドホック)通信がありますが、こちらはAd
linq.js ver.3 and JavaScript in Visual Studio 2012 - Download as a PDF or view online for free
TL;DR In sass 3.2 there’s a new kind of selector called a placeholder selector for use with @extend. Mixins and functions can now take any number of arguments and be defined in nested contexts. You can now pass a block of styles to a mixin for placement by the @content directive. Numbers will have now 5 digits of precision instead of 3. But that’s not all. Read on for the details. CSS3 keeps getti
In the past I mentioned and even recommended HTML5 developers give WebStorm a shot, this is the IDE I use personally when working in JavaScript, but I realized I never actually said why. One of the big reasons is, its just a good solid text editor, with good project management and solid code completion, which is an area most tools fail at. But one of the biggest reasons is, it gives a rock solid
1 pixel|サイバーエージェント公式クリエイターズブログ サイバーエージェントのクリエイターの取り組みを紹介するオフィシャルブログです。最新技術への挑戦やサービス誕生の裏話、勉強会やイベントのレポートなどCAクリエイターの情報が満載です。 こんにちは、ピグディビジョンでフロントエンドのプログラムを書いています。maginemu (@maginemu) です。 どこでもピグライフとは弊社の提供しておりますPC向けソーシャルゲーム「ピグライフ」をスマートフォン向けに移植したサービスです。『ピグライフのお庭をスマートフォンでも』を目標に移植を行いました。 (「どこでもピグライフ」はPCで「ピグライフ」を開始し、「いちごジュースを作ってみて!」というクエストをクリアするとお使い頂けるようになります) PC版ピグライフはFlashでつくられていますが、どこでもピグライフはHTML5/CSS3/J
Sublime Text 2でensimeを利用してみたが… ■ Use Sublime Text 2 for Scala Development « A Pinoy Programmer in Japan http://blog.hugeaim.com/2012/03/22/use-sublime-text-2-for-scala-development/ It seems that the validation is not yet perfect, so I would still use this in combination with an SBT build こんな記述もあるわけだし、完璧ではないのは承知の上。 エラーがあるのか無いのかよくわからないこともあり、sbtも導入しておくのがよさそう。 sbt Build ■ SBT Build in Sublime Text
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く