Webアプリと同じプロセスにworker入れてお金が節約できる。 Webアプリは “リクエスト来る→サーバーで処理→レスポンス返す” というのを繰り返すわけだが、サーバーでの処理に時間がかかる場合にそこを別のプロセスに任せて、先にレスポンスを返しておいて、あとで結果は取りに来てよ、という実装をする事がある。 時間がかかる処理は2つに大別できる。 動画をエンコードするとか。CPU負荷が高くて時間がかかるのでWebサーバーとは別の場所で動かしたい Twitter APIを10回ぐらい使った結果をまとめて返すとか。CPU負荷は低いけどIO待ちが長い 2の方について、HerokuのRuby環境で安く上げる方法をまとめる。 手法 HerokuのcedarスタックでRuby使う時はwebサーバーとしてThinが起動する。 ThinはEventMachineの中で動いてるので、EM::defer等が使え
枕詞 Vim Advent Calendar 2012 373日目……じゃなくて、 JavaScript - Client Side - Advent Calendar 2013の8日目担当のArc Cosineです。 まだVim初心者なので、Vim Advent Calendarに参加出来ませんが、いつか参加できるようになりたいです。 さて、今回のJavascript Client Sideは、最近、(俺の中で)大人気のDropbox Datastoreについてです。 時間がない人用アジェンダ このエントリに書いてあること Dropbox Datastore APIを使えるようになるまでのチュートリアル Dropbox Datastore APIのJavaScriptコードサンプル リアルタイム同期をお手軽に見れるという事 リリースにDropboxを使うと楽だという事 独自ドメインで運用
IP アドレスからサーバーの地理的位置情報(Geolocation)を調べてくれるオンライン・サービスは、ちょっと検索すればすぐに見つかりますし、有料のサービスも山ほどあります。が、サーバーから任意の IP アドレスが引ける無料のサービスとなると、ちょっと時間をかけて検索しなければなりません。 今回は、海外からのコメント・スパムをブロックする WordPress プラグインを作りたくて、タイトルの様なサービスを調べてみました。 IP Geolocation の歴史も調べてみましたので、雑学系としてもご覧ください。 IP Geolocation の歴史 IP アドレスから ISP の位置情報を推定する技術は、1990年後半から研究されていました。DARPA がメインスポンサーの非営利団体 CAIDA(インターネット・インフラの発展のために、産学官が管理面・技術面で協力し合う非営利団体)が N
Sinatraと小さいAPIはとても相性がいい。 APIで返すものといえばJSONが最近は楽ですね。 まあ普通にrequire "json"して、#to_jsonすればよいのですが、 sinatra-contribにあるsinatra/jsonを使うのもよいかと思います。 Sinatraだけの場合 app.rb require "sinatra" require "json" get '/' do content_type :json data = { foo: "bar" } data.to_json end Sinatra::JSONを使う場合 Gemfile gem "sinatra" gem "sinatra-contrib" app.rb require "sinatra" require "sinatra/json" get '/' do data = { foo: "bar"
いつもご利用ありがとうございます。 楽天ウェブサービスお客様担当でございます。 本日、新APIのリリースと、アップデートを行いましたのでお知らせいたします。 ■ 楽天Kobo API 登場! 楽天KoboAPIは、楽天Kobo上で取り扱われている電子書籍の情報を、以下の情報から検索することができます。 キーワード (通常は書籍名・タブタイトルのみから検索になりますが, パラメータとして field=0 を設定することで検索対象に著者名、商品情報などが含まれるようになります)タイトル著者名出版社名商品番号 (Koboで管理している商品番号です)楽天Koboジャンル加えて 言語での絞込キーワード除外OR での検索を行うことができます。 まずは、テストフォームを利用して、レスポンス結果を見てみましょう。(アプリIDはダミーです。) “うどん” でキーワード検索 アフィリエイトにも対応しております
2014年に向けた JSON API の実装の方向性と X-JSON-Status 改め X-API-Status header のご提案 追記 2014/11/20 14:00:00 わりと JSON やら XML やら各種フォーマットで API を運用している環境がある場合に JSON API の時だけ X-JSON-Status にすると XML とかの時と整合性取れないし、 X-XML-Status みたいのを量産するのは困る的なレビューを頂いたので X-JSON-Status をやめて X-API-Status にしました。 へたに JSON に限定するから REST とか JSON-RPC とかいわれるんや! X-API-Status にしたら全部解決したし MessagePack な API でも使い回せるって songmu さん言ってた! XML とかからどうやって引っこ抜
Live Nation says its Ticketmaster subsidiary was hacked. A hacker claims to be selling 560 million customer records. An autonomous pod. A solid-state battery-powered sports car. An electric pickup truck. A convertible grand tourer EV with up to 600 miles of range. A “fully connected mobility device” for young urban innovators to be built by Foxconn and priced under $30,000. The next Popemobile. Ov
本日、はてなブログの記事を投稿・編集等できるAPI「はてなブログAtomPub」を公開しました。 はてなブログAtomPubは、Atom Publishing Protocolに準拠したAPIです。AtomPubを利用すると、Windows Live Writerなど、各種のブログ編集ソフトから記事の投稿等ができます。また、はてなブログ専用のクライアントや、独自サービスの開発なども可能です。どうぞご利用ください。 はてなブログAtomPubの概要 はてなブログAtomPubでは、以下の操作を実行できます。 ブログの操作 (コレクション) エントリ一覧の取得 (コレクションURIのGET) エントリの新規投稿 (コレクションURIへのPOST) エントリの操作 (メンバ) エントリの取得 (メンバURIのGET) エントリの更新 (メンバURIへのPUT) エントリの削除 (メンバURIへの
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
WEBアプリの開発で テストの為に JSONのデータをPOSTしたいことがありますが、 curl を使ってコマンドラインからデータをPOSTすることが出来ます。 いつも書き方を忘れるので 備忘録として記録。 curl で JSON データをPOST % curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"user":{"first_name":"firstname","last_name":"lastname","email":"email@email.com","password":"app123","password_confirmation":"app123"}}' http://localhost:3000/api/1/users stackoverflow.
2013年のいま、API界隈が熱い! 今年に入り、官公庁の統計データやNHKの番組情報など、今までなかなか利用できなかったデータがAPIとして扱えるようになってきました。このエントリでは現在公開されているAPIを一覧でまとめます。いま使えるAPIはこれだけ読めば大丈夫。2013年の最新マッシュアップ事情をあますとこなく網羅します! HOT! API 総務省 次世代統計利用システム(国勢調査、人口推計、就業構造、企業統計、物価統計 etc.) NHK番組表(※未公開) 行政・自治体・公共サービス 郵便番号 郵便番号検索API(郵便番号 → 住所) 郵便専門ネット(郵便番号 → 住所、郵便番号の簡易存在チェック) ぽすたん(郵便番号 → 住所、住所 → 郵便番号) IW3 PROJECT(郵便番号 → 住所、住所 → 郵便番号) 宇宙 Google+ JAXA PR(※現在一部の学生に限定公開
クラウドストレージプロバイダーであるDropboxは米国時間7月9日午前、「Dropbox Platform」を同社初の開発者会議で発表した。Dropboxの最高経営責任者(CEO)で創設者のDrew Houston氏は、Dropbox Platformが「ユーザーに代わって同期の問題を解決する新しい基盤」であることをアピールした。 Houston氏によると、Dropbox Platformには構造化データの同期の維持、オフラインでの作業、コンフリクト(競合)への対処、複数OSにわたる作業などが含まれるという。 「同期とは新しい保存のことである。われわれは決して過去を振り返らない」とHouston氏は述べ、この特定の機能がすべてのユーザーに影響を与える問題であることを付け加えた。 Dropboxは2012年11月、ユーザー数がおよそ1億人に達していた。9日の時点で、同サービスのユーザー数は
はじめに 第1回目の本稿は、Web APIの説明と、開発を行うための準備として、開発環境のインストールについて解説します。 対象読者 Androidアプリケーションの開発を始めたい方で、JavaとEclipseの基本的な知識がある方を対象とします。 Web APIとは 本連載であつかう「Web API」とはどういうものかを、まず始めに説明しましょう。 Web APIとは、ひとことで言えば、インターネット(Web)を経由して、何らかの処理を行うための、手段や決めごと(API)のことです。APIとは、Application Program Interfaceの略で、直訳すると、あるプログラムを、他のアプリケーションから利用するためのインターフェース、という意味になります。 一般的なプログラムでは、関数やサブルーチンと呼ばれるひとかたまりの処理を作成し、それをプログラム内のほかの場所から呼び出す
Twilioは簡単に言うと、「Webから電話を簡単に操作できるAPI」です。ほとんどの連絡をメールやSNSで済ませるようになった昨今、「いまさら電話?」と思った方もいるかもしれません。しかし、エンジニアの視点から、またサービス企画の視点から見て、Twilioは実に多くの可能性を秘めたAPIなのです(筆者もまた、その可能性に注目している1人です)。 Twilioを使うと何ができるのか? どんな可能性があるのか? その魅力を、連載を通じて紹介しましょう。 まずはTwilioを体験してみよう Twilioとはどんなものなのか? まずは手元の携帯電話などから以下の番号に電話をかけてみてください(通話料がかかります)。 電話につながると、ややぎこちない女性の声でメッセージが流れたと思います。実はこの自動応答システム、Twilioを使って、たった4行のコードだけで実現されています。 <?xml ver
xAPI.com is dedicated to helping you understand and implement xAPI (Experience API). Whether you want to strategize how to use xAPI in your organization or add xAPI support to your eLearning solution, this website will help you move from education to experimentation, to putting it into practice. Question? Ask us anything. What is xAPI? xAPI is an eLearning specification that makes it possible to c
移転しました http://please-sleep.cou929.nu/20130121.html
Welcome to the developer hub of Open Library. This page links you to all of the information and external resources that will help you get started accessing data from, integrating with, or contributing to the Open Library platform. Accessing Data Open Library offers free, public, low-volume Web APIs and bulk Monthly Data Dumps for accessing book and author catalog data. Here are examples of partner
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く