Railsはエラーページをもともと用意してくれていて本番で動かすと そこに飛ばしてくれるので、まぁいいっちゃいいのですが、 簡単に設定できるのでやってしまえばいいかと。 (レイアウトとかそのまま使えてサイト内ページっぽくなるし) ■環境 Rails 4.0.3 Ruby 2.1.1 とりあえずローカルで見たいのでWEBric(rails s)を本番設定で起動して確認します。 (developmentのままだといつもの赤いページが表示されます) まず、ActionController::RoutingErrorを拾うためにroutesに設定が必要です。 # config/routes.rb # どこにも当てはまらなかったものを取得するので最終行に書いて下さい。 get '*path', to: 'application#render_404' class ApplicationControl
Libuv is a great cross-platform library that abstracts various types of I/O by using callbacks. So when I started writing H2O - a high-performance HTTP server / library implementation with support for HTTP1, HTTP2 and websocket, using libuv seemed like a good idea. But recently, I have stopped using it for sereval reasons. This blog post explains them. ■No Support for TLS Although libuv provides a
Send some text and read it back: $ echo just testing! | nc termbin.com 9999 https://termbin.com/test $ curl https://termbin.com/test just testing! Send file contents: $ cat ~/some_file.txt | nc termbin.com 9999 Send list of files in the current directory: $ ls -la | nc termbin.com 9999 There is only one requirement to use this service: netcat. To check if you already have it installed, type in ter
RubyHiroba 2014 the play field for Rubyists — Sep 21 at CyberAgent, Inc. SHIBUYA MARK CITY WEST 13th floor RubyHiroba 2014, the play field for Rubyists — September 21 A big thanks to everyone who attended RubyHiroba 2014 and to all the sponsors who supported this year's event. This year's RubyHiroba went off without any major issues thanks to all your help. Unfortunately, one presentation at this
技術部の高井です。 最近、日本でもマイクロサービスという言葉が流行しつつあります。 今回は、なぜクックパッドがマイクロサービスを選択したのか、また実際にどのようなやり方をしているのかということを紹介します。 Conwayの法則 ここ数年の間、クックパッドはレシピの投稿・検索サービスから「食を中心とした生活のインフラ」として事業領域を拡大しつつあります。海外レシピサービスの買収による海外展開は、単なる金銭的な関係にとどまらず、人的・技術的な交流も含めて本格化しつつあります。また、「モバイルファースト」を標語とするモバイルアプリケーションへの取り組みも加速してきました。 事業領域の拡大やグローバル展開、モバイルファーストといったビジネス要求の変化に応じて、会社の組織構造も変化しています。そして、Conwayの法則 として知られているように、組織構造とソフトウェアアーキテクチャには密接な関係があ
Less than one year after its iOS launch, French startup ten ten has gone viral with a walkie talkie app that allows teens to send voice messages to their close… While all of Wesley Chan’s success has been well-documented over the years, his personal journey…not so much. Chan spoke to TechCrunch about the ways his life impacts how he invests in startups.
Attribute Modules (AM) is a technique for using HTML attributes and their values rather than classes for styling elements. In doing so, each attribute effectively declares a separate namespace for encapsulating style information, resulting in more readable and maintainable HTML & CSS. It's not a framework or a library, it's a style that better describes the components you're building. For an intro
稲川淳二の本職が凄いと話題に! 「バーコードリーダー」や「車どめ」はこの人のデザイン 1 名前: シャイニングウィザード(dion軍)@\(^o^)/:2014/09/07(日) 19:10:34.72 ID:5sczSXXi0●.net この人に話をさせたらどんな普通の話も怖い話に聞こえてしまうというくらい、怖い話で定着している稲川淳二。そんな稲川淳二は有名な工業デザイナーというもう1つの顔を持つ。むしろそっちが本業で過去には「車どめ」や「バーコードリーダー」、新幹線の「検札機」などを手がけている。 「車どめ」はグッドデザイン賞も受賞しておりそのほかは、飲食店の建物のデザインなどを手がける。その謎の人物像から意外な一面が見られ驚いている人も多いだろう。「車どめ」の型番には「JI-○○」と付く物が多くおそらくInagawa Junjiの頭文字から取ったと思われる。 また、奥さんとは20年以
The Modern Platform for Technical Computing A single place for modeling, simulation, and user built applications with the Julia language. Designed with access to CPUs and GPUs for multi-threading, parallel and distributed computing, JuliaHub's supercomputing infrastructure allows teams to model breakthrough science and technology. The next-generation platform for model-based design Leverage Scient
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く