2004-07-21 (Wed)
_ チーズケーキとキャラメルパウンドケーキ
奥さんが作ったチーズケーキとキャラメルパウンドケーキ。 ボーナスで買ったオーブンのおかけで見た目もなかなかの焼きあがり。
甘さ控えめのチーズケーキの方がおいしく感じるのは年を取ったせいか。
[ツッコミを入れる]
2005-07-21 (Thu)
_ 2.0.2にアップデート
そして、tDiaryQuoteが使えなくなった。
Refererのチェックをしないようにして、csrf_protection_keyを tDiaryQuoteで渡せるようにすればいいかな。
_ tDiaryQuoteのPOST対応
とりあえず、手もとでは上記の修正で動いたけど、csrf_protection_keyをGETで送っているので、プレビュー画面から外部へのリンクをたどるとRefererでcsrf_protection_keyが洩れてしまう。
これを防ぐにはPOSTにすればいいんだけど、どうやればいいのかわからず。 ちなみに現状は、
updateUrl +=
"?old=" + old +
";year=" + year +
";month=" + month +
";day=" + day +
";title=" +
";body=" + encodeURIComponent(body) +
";plugin_tb_url=" + encodeURIComponent(pingUrl) +
";plugin_tb_section=" +
";plugin_tb_excerpt=" +
";appendpreview=%A5%D7%A5%EC%A5%D3%A5%E5%A1%BC" +
";csrf_protection_key=" + encodeURIComponent(csrfProtectionKey);
var newTab = browser.addTab(updateUrl);
browser.selectedTab = newTab;
こんな感じ。
_ lighttpd doesn't cope with 100-continue
lighttpdは
Expect: 100-continue
というへッダがあるとリクエストを受け付けてくれないので、.NETから ActionWebServiceを使うためには、以下のようにGetWebRequest()を オーバーライドしないといけない、という話。
using System;
using System.Net;
[System.Web.Services.WebServiceBinding(Name="PostPort",Namespace="urn:ActionWebService"),
System.Diagnostics.DebuggerStepThroughAttribute(),
System.ComponentModel.DesignerCategoryAttribute("code")]
public class BlaBlaService : Service
{
protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest request = (HttpWebRequest) base.GetWebRequest(uri);
ServicePoint servicePoint = request.ServicePoint;
// lighttpd doesn't cope with 100-continue
servicePoint.Expect100Continue = false;
return request;
}
}
_ rast extension
なんてものを作ったらウケるだろうか。
class Article < ActiveRecord::Base has_rast_index :title has_rast_index :body has_rast_index :updated_on end
としておくだけで勝手にRastのインデックスに登録してくれて、 検索する時は、
articles = Article.find_by_rast('ふが')
articles = Article.find_by_rast(['title : ?', 'ほげ'],
:order => "updated_on")
だけでいいとか。
本日のツッコミ(全2件) [ツッコミを入れる]
2011-07-21 (Thu)
_ 鰻
土用の丑の日ということで、NaClシステム開発第1Gのクルー11人で大はか屋に鰻丼を食べに行った。
記憶より大分高いんですけど…前は並の金額で特上を食べられたような。
行きそびれた人が二人いるので、別の店を開拓しようかなあ。
[ツッコミを入れる]



_ babie [ウケるウケる!(とりあえず1人には)]
_ 通りすがり [ ウケるウケる!(とりあえず2人目)]