You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
連載最終回、いよいよAzureにデプロイして定期的にPVをつぶやくよう設定します。 連載目次 はじめに 第1回 Google Analytics APIの利用準備 第2回 Google AnalyticsからPVを取得する 第3回 Twitter APIの利用準備 第4回 Twitterに投稿する 第5回 Webアプリケーションにまとめる 最終回 Azureへのデプロイ Azureポータルにログイン 新しいAzureポータルにログインします。 Microsoft Azure 新しいWeb Appの作成と設定 画面左上の「新規」ボタンを押すと、作成する機能の一覧が表示されますので「Web + モバイル」-「Web App」を選択します。 Web Appの作成画面では適当にURLを指定します。 App Serviceプラン、リソースプランも適当に、価格レベルは一番安いB1 Basicを選択しま
C# の WPF を利用して、タスクトレイに常駐するアプリケーションのひな形を開発してみます。 チュートリアルに近い形で順を追って作成できるようにしてみました。 概要 ここでは、タスクトレイ常駐アプリとして最低限と思われる以下の機能を実装します。 実装機能 タスクトレイに「常駐アプリのアイコン」を表示する 「常駐アプリアイコン」を右クリックでコンテキストメニューを表示する コンテキストメニューには以下の項目が表示される 表示 終了 コンテキストメニュー「表示」をクリックでウィンドウが立ち上がる コンテキストメニュー「終了」で常駐アプリを終了する 実行イメージ プロジェクト の 作成 プロジェクト自体は特に気にすることはなく、ウィザードに従って "WPFアプリケーション" のプロジェクトを作成します。
Removal of "Learn Python in Y Minutes" from free-programming-books.md and addition to free-programming-cheatsheets.md Co-authored-by: Eric Hellman <eric@hellman.net> Index ABAP Ada Agda Alef Android APL Arduino ASP.NET Assembly Language Non-X86 AutoHotkey Autotools Awk Bash Basic BETA Blazor C C# C++ Chapel Cilk Clojure COBOL CoffeeScript ColdFusion Component Pascal Cool Coq Crystal CUDA D Dart DB
New I/O の非同期処理を実装する時にいつも使うパターンの個人的設計まとめ。非同期 I/O はアプリ要件によって設計を柔軟に変える必要があるので定石というわけではありませんし、安全に組み替えるにはそれなりの知識が必要です。 この記事が説明のベースにしているサンプルソースは My Design Pattern for Asyncronous I/O · GitHub に置いてあります。 非同期 I/O といえば 1 つのスレッドで複数のソケット I/O を管理する方法です。 非同期 I/O を生かした設計というものは必ず Producer/Consumer 型、イベント駆動型設計となります。これはパフォーマンスと引き換えにオブジェクト指向の汎用設計化を低下させ、特定の困難なバグを生む余地を増やします。個人的には C10K 問題を想定する必要がない程度 (同時に扱うソケット数が 1000
あるリンクのレスポンスが独自スキーマ(google play storeのmarket://など)である場合、ブラウザでそのコールバック内容を確認できません。確認したい場合は以下の手立てが考えられます。 WebViewでWebViewClient#shouldOverride(url)でURLを表示する Socket通信でリクエストの返り値を表示する このうちSocket通信はjavaのAPIとしてあり、容易に実装できます。ちょっと注意点もあるので、まとめてみました。 実装のポイント 1.ネットワークリクエストはUIスレッドから投げない 何も考えずにソケットをつくろうとすると、NetworkOnMainThreadExceptionが発生してしまいます。 UIスレッドでネットワーク通信が許可されてないからです。(Android 3.0以降) 今回はリクエストを受け取ることも考えてAsync
Webアプリケーションでのデータ構造デファクトスタンダードがJSONなので、.NETというかC#でJSONを読みたいことがままあります。 みんな同じようなことを思うので、ライブラリがちゃんとあって、周辺環境も色々と整備されています。 基本的にはぐぐればおよその情報が出てくるので、メモ程度です。 あ、前の記事で艦これのやりとりするJSONデータが取れたんで、それを料理しましょうって話です。 ライブラリ .NET Frameworkは3.5から標準ライブラリにJsonReaderWriterFactoryとDataContractJsonSerializerの二つが入りました(どちらもSystem.Runtime.Serialization.Json)。これら二つが実装される前は、 Json.NETというライブラリを使うのが安牌だったようです*1。 簡単に使えるのないかなーと探すと4.0以降で
yield句について最初から読みたい方はこちらからどうぞ。 今回は、foreach文を中断する為の構文、yield breakについて解説します。 といっても簡単なので早速以下のコードを御覧ください。 class BreakableClass { public IEnumerator<int> GetEnumerator() { for (int i = 0; i < 10; i++) { if (i == 5) { // iが5になったらループを抜ける yield break; } // ループカウンタの値を返す yield return i; } } } class Program { static void Main(string[] args) { var breakClass = new BreakableClass(); foreach (int n in breakClass
(これは2013-05-13に書いた故OCNブログの記事を加筆修正したものです) Windowsストア アプリ(Windowsランタイム アプリ、WinRTアプリ)や、Outlook.com、OneDrive(旧SkyDrive)などで採用されている、Modern UI(旧称Metro UI)は、他のMS製デスクトップ アプリでもスタイルとして採用されていて、Visual Studio 2012/2013やOffice 2013はかなりすっきりしたデザインになっています。タイルUIとかフラットUIとかいう呼称もあります。Windows 8のデスクトップ用Win32コモン コントロール自体も、XP/Vista/7のグラデーションや半透明効果を多用した比較的リッチで立体的なLuna/Aeroコントロールとは趣を変えて、シンプルな外観のコントロール(内部名はAero2らしい)になってます。実はI
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く