k4200’s notes and thoughts

Programmer side of k4200

Lift

ちょい前にLift 2.4が出たので眺めてみた

はじめに Scalaのフレームワークを使おうと・・・ 最近はPHPとJavaScriptにどっぷり浸かってしまったんだけど、新しいサイトを作ろうと思ってるので、Scalaのフレームワークをいじろうと思ってる。先日のScala勉強会in渋谷で、Play! 2.0が実用段階に入るには…

SiteMap examples

SiteMap is powerful, but a bit complex. If you're using Lift, you might have had hard time using SiteMap. Yes, I'm one of those.It's really powerful and an easy-to-read DSL, though it's a bit complex and requires quite a bit of Scala knowl…

Email related settings in Lift

I think Lift's MegaProtoUser is a good starting point when you want to create a web site that requires user management. It basically gives you the basic features for those sites, such as sign-up form, confirmation email and password reset.…

Lift with sbt 0.10

Background People around me have talked about sbt 0.9 and then 0.10 for the past few months. As you may know, I like something new, so I decided to try it out for no reason.I started playing around with it around two weeks ago. sbt 0.10 is…

Liftアプリのテストその1

Liftアプリをテストしたい 一度に複数のことを勉強できないので、引き続きLift関係を触ったり勉強したりしてる。今回はLiftアプリのテストに関して少し書こうかなと。LiftのプロジェクトのテンプレートだとSpecsが使えるようになってるので、とりあえずSpecs…

Lifthub status (Mar 1st)

Background of Lifthub The idea of creating a hosting site for Lift applications came up to mind maybe at the beginning of this year. At the time, I was still learning Lift and making a small web application just for my learning. After fini…

LiftでMySQLとかを使う

タイトル通り。Lift MySQLで検索すると、お馴染み武田ソフトさんのエントリが出てくる。そこに書いてある通り、基本的にはやることは以下の2つ propertiesファイルの作成 LiftProject.scalaにドライバの追加 propertiesファイルのファイル名や置き場所に関し…

Liftで画像を表示する

Scalaをやってる人なら恐らく誰でも知っているであろう武田ソフトさんのブログの以下のエントリが元ネタ。LiftでJCaptcha → Liftでバイナリデータをレスポンスする方法分かる人はこのエントリだけで分かるんだろうけど、ちょっとあっさりし過ぎているので、…

LiftのAJAXのタイムアウト、リトライ回数を変更

LiftではAJAXがフレームワークにシームレスに組み込まれているのが魅力の一つで、従来のWebフレームワークのようにAJAXの為に特別何かコードを書く場面が少ない。今までは自前でやらなければいけなかった面倒な処理のかなりの部分が最初からフレームワークに…

Turn a Lift project into an sbt sub project.

Goal I'm working on a Lift project and now want to have some background jobs for management tasks etc. I posted a question on the Lift Google Group and got an answer that I should go for sub projects.I read an entry about sub projects on t…