2024 Developer survey is here and we would like to hear from you!
はじめに もりやまです。 先月の震災の日の記事以来となってしまいました。まずは被災されたみなさまに、心からお見舞い申し上げます。 弊社ではだにーが宮城県出身なのですが、ご家族には大事なかったようで一安心です。 昨夜も大きな余震があってまだまだ落ち着かないですが、みんなでまた再建しましょう! さて今回は、導入されたのは Rails 2.3 なのでもう目新しくもないですが、has_many :through で多対多に関連付けされたモデルを、Nested Object Forms を使って編集する方法がようやく理解できたのでまとめてみました。 そもそも Nested Object Forms って何? あるモデルを編集するためのフォームの中に、そのモデルと has_many 等で関連付けされた別のモデルを合わせて編集できるようにするための機能です。 これを自力でやろうとすると、 関連付けされた
pik is a tool to manage multiple versions of ruby on Windows. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash. C:\>pik help commands add Adds another ruby location to pik. benchmark|bench Runs bencmarks with all versions that pik is aware of. default Switches to the default ruby. gem Runs the gem command with all versions that pik is aware of. help Displays
■ [ruby] Ruby 1.9ではハッシュをJavaScriptっぽく書けます (※12月の1日から25日まで、日替わりでRubyのTipsを紹介するイベント、Ruby Advent Calendar jp: 2009参加記事です。) ご存じない(あるいは、忘れている…)方もいると思いますが、Ruby 1.9ではハッシュリテラルをJavaScriptのオブジェクトリテラルのように簡潔に書ける 文法が追加されています。 例えば、 {:a => 1, :b => 2} の代わりに {a: 1, b: 2} と書くことができます。キーはSymbol限定とはいえ、これは短い! Railsでよくあるオプションなんかも: has_many :moves_from, :class_name => "Move", :foreign_key => :account_id_from このように、短くなりま
Ruby on Rack #1 - Hello Rack! Published over 2 years ago Ruby community is coming up with new frameworks almost every week, but in midst of that, Rack isn’t getting enough attention. Attention that it deserves. And also, the next stable release of Rails after 2.2 will have a better public facing interface for taking full advantage of Rack. Rack was initially inspired from pythons’s wsgi and it qu
Link Data is a nicely done Web site to help people produce RDF data from simple excel spreadsheets. It appears to be the work of researchers at the RIKEN BASE group at the RIKEN Yokohama Institute in Japan. The approach is straightforward and consists of three steps: creating a template, downloading it as an excel spreadsheet and adding your data, and uploading the result to the site for conversio
自宅のCentOSマシンでyum updateを実行すると 以下のようなエラーが発生してupdateに失敗するようになっていた。 $ sudo yum update Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.yz.yamagata-u.ac.jp * extras: www.ftp.ne.jp * rpmforge: ftp-stud.fht-esslingen.de * updates: www.ftp.ne.jp Setting up Update Process Resolving Dependencies --> Running transaction check ---> Packa
The forthcoming 3.2.x release series will be the last branch of Rails that supports Ruby 1.8.7. There’s a new 3-2-stable branch in git to track the changes we need until 3.2.0 final is release and for managing point releases after that. So for now you should stop floating on rails/master if your application is not compatible with Ruby 1.9.3. We have updated the version numbers to indicate this bac
ストレスは生きていく上で必要なものです。ストレスを克服することで、人は成長していきます。とはいえ、必要以上のストレスは、心身にとってよいことはありません。感じなくてすむストレスは、できるだけ排除したいです。 ストレスをためない技術 本書には、ストレスと向き合うための具体的なテクニックが数多く紹介されています。私自身の経験と合わせて、これは効く!という方法をピックアップして紹介します。 近づかない 一番効果の大きい方法は、ズバリ「ストレスの原因になるものに近づかない」です。必要がなければ、あらゆる手を尽くして、嫌いな人、モノ、場所には接触しないように工夫しましょう。 最初は気になるかもしれませんが、時が経って慣れてくると、自分からあえてストレス源に向かう必要性を感じなくなります。人生において、何もかも好きになることは不可能です。世の中の安定のためにも、各人がある程度の割り切りを認めることは必
homebrewを使っていて、ちょっとわからなかったことや覚えておくと良いコマンドをまとめてみました。 もしかして、みなさん知っている情報だったらすみません…。 homebrewのヘルプは brew -h で見られるのだけど、マニュアルは brew man ではなくて man brew。…いつまで経ってもマニュアル見られないわけですね。 homebrewのアップデート homebrewそのものが更新された場合や、Formulaが追加・変更された場合に実行するコマンドはこちら。 ときどき実行すると良いかもしれません。更新されていた場合はgithubからインストールされます。 $ brew update (追記 2011-08-04)「エラーが出ちゃった!」というときは。 上のコマンドを実行したら、エラーが出ちゃってあわわわわ! そんなときは、以下のページを参考にしてみてください。 http:
■F#とは F#は、マイクロソフト社製のプログラミング言語で、Visual Studio 2010から標準搭載されている。まずは、F#がどのような言語なのかを見てみよう。 ●マルチパラダイム言語「F#」 F#は複数のパラダイムをサポートするマルチパラダイム言語だ。F#がサポートするパラダイムには、 手続き型 関数型 オブジェクト指向プログラミング などがある。 マルチパラダイム言語であるため、C#やVB(Visual Basic)といった従来の.NET言語を置き換える形でF#を使うこともできる。しかし、本記事ではF#のメインとなるパラダイムである「関数型」にフォーカスを当てて紹介していく。 ●関数型言語「F#」 F#は、静的型付けの関数型言語である「OCaml」に強い影響を受けている。そのため、F#の主となるパラダイムは関数型プログラミングになる。 さて、関数型言語とは何だろうか? この問
capybara-webkit Development has been suspended on this project because QtWebKit was deprecated in favor of QtWebEngine, which is not a suitable replacement for our purposes. We instead recommend using the Selenium or Apparition drivers. Qt Dependency and Installation Issues capybara-webkit depends on a WebKit implementation from Qt, a cross-platform development toolkit. You'll need to download the
Platforms and Operating Systems Android Google AI Chrome Google Cloud Firebase Frameworks, IDEs, and SDKs Jetpack Compose Android Studio Flutter Project IDX Google AI Studio Services and Integrations Gemini API Vertex AI Identity Google Pay API Google Workspace Growth and Monetization Google Play Google AdMob Google Ads Chrome Extensions Google Search Central Groups Google Developer Groups Google
As of March 30, 2019, the goo.gl URL shortener was shut down. Please see this blog post for alternatives. Below, we walk you through the steps to interact with the Google URL Shortener API. This is the programmatic side of the web site at goo.gl. To begin, you should read the section on Authentication. After that, you can skip ahead to the section describing whichever action you would like to perf
この記事は賞味期限切れです。(更新から1年が経過しています) Overview – Google URL Shortener API – Google Code Google製の短縮URLサービス「goo.gl」のAPIが公開されたそうなので、 試しに使ってみたメモ。 必要なもの 短縮してみよう 展開してみよう めんどくさいのでクラスにしてみる (おまけ) JavaScriptで展開する 必要なもの APIのURLを控えておく https://www.googleapis.com/urlshortener/v1/url APIキーを取得しておく Google APIs Consoleで 「URL Shortener API」をアクティブにしてAPIキーを控えて来る 今回は、PHP+cURLでやってみることに。 とりあえず持っている情報を変数につっこむ。 $api_url = "https:
以前からコンビニとかで買い物をしてる時によく感じることに、こんな風に気軽に買ってしまう感覚ってアプリにはないなぁ、ということがある。そして以下を読んだ。 たかだか100円のアプリケーション購入を躊躇するのはなぜ? | スラッシュドット・ジャパン400円のカフェラテを買ったり、本当に必要か定かではないガジェットに5万円出したりするのに、100円のアプリケーションの購入を躊躇してしまうのは何故なのだろうか? 本当に必要か定かではないガジェット・・・確かに(^^;;他にもコミックとか、私はアプリより気軽に買う傾向がある気がする。これは人それぞれでしょうね。 ほんと、どうしてなんだろう。何だか不思議・・・・と思ったので、色々と調べてみたメモ。 マズローの欲求段階説 何かを欲しいと思うのは欲求があるってことだから、という感じで調べてみたら、以下を見つけた。 自己実現理論 - Wikipediaマズロ
is a totally awesome idea still being worked on. Check back later.
<BODY BGCOLOR="#ffffff" LINK="#ffffff" VLINK="#ffffff" ALINK="#ebc83d"> <P> <IMG SRC="fig-t8a/gb-bar-introduction.gif" ALT="テクニカルライティングの効果" ALIGN=bottom width="540" height="26"><BR> <IMG SRC="fig-t8a/tw8a-ttl.gif" ALT="文書品質の向上と文書作成時間の短縮" ALIGN=bottom width="570" height="150"><HR> <H1 style="line-height: 150%"><span style="font-weight: 400; letter-spacing: -1pt"> 「<font color="#800000">考えが文にまとまらない<
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く