2012-01-01から1年間の記事一覧
I tried to use the TableSorter Lift Widget (lift 2.4M5). According to the tutorial (http://oss.infoscience.co.jp/scala/www.assembla.com/wiki/show/liftweb/TableSorter.html), I could have activated it by this code. TableSorter("#table_id")So…
MappedDateTime, MappedDate and MappedTime's format methods use LiftRules.dateTimeConverter's format methods (formatDateTime(d : Date), formatDate(d) and formatTime(d)) which use the following formatters respectively.def formatDateTime -> d…
Lift 2.4M5 Scala 2.9.1S.addCookie(HTTPCookie("your.cookie.name", Full(S.locale), Full(S.hostName), Full(S.contextPath), Full(2629744), Full(1), Empty, Empty)) doesn't work.S.addCookie(HTTPCookie("your.cookie.name", S.locale).setPath(S.cont…
i18nで使われる国際規格をまとめる。 言語:ISO 639、あるいはJavaのロケール http://java.sun.com/javase/ja/6/docs/ja/technotes/guides/intl/locale.doc.html 国:ISO 3166-1 (+ISO 3166-3) Google MapsではccTLDが使われてる。 地域:ISO 3166-2 通貨:I…
確率過程(Stochastic Process)有名な確率過程をメモ。 Bernoulli process Dirichlet process (←ノンパラベイズ) Gaussian process Ito process Markovian process Ornstein-Uhlenbeck process Poisson process Wiener process
USA [0-9]{4}\\-?[0-9]{5} C1 UK [A-Z][0-9][A-Z][ ]?[0-9][A-Z][0-9] C184 Sweden [0-9]{3}[ ]?[0-9]{2} C167 Germany [0-9]{5} C65 Australia (0?|[1-9])[0-9]{3} C10 Austria [0-9]{4} C11 Japan [0-9]{3}\\-?[0-9]{4} C85 China [0-9]{6} C37 Taiwan [1-…
以下のページが参考になったので備忘録としてコピペしておく。 http://ameblo.jp/one-of-the-wnet/entry-10112121909.html <dependency> <groupId>groupId_name(何でもいい)</groupId> <artifactId>artifactId_name(何でもいい)</artifactId> <version>version_No(何でもいい)</version> <scope>system</scope> <systemPath>jarのあるパス</systemPath> </dependency> jarのパスは…
Lift2.4-M4でWebアプリをインターネット上に公開しながら開発する環境を作った。 「ファイル転送にGitを使う。」 Gitを使ってサーバにファイルのアップロードをすると高速。SSHで公開鍵認証するので安全。FTP(&NCFTP)も入れてみたけどいらないね。 「SSHから…
_root_.net.liftweb.mapper.Countriesのval C1-C272の中身を一覧にする。 C1 United States C2 Afghanistan C3 Albania C4 Algeria C5 Andorra C6 Angola C7 Antigua and Barbuda C8 Argentina C9 Armenia C10 Australia C11 Austria C12 Azerbaijan C13 Bah…
mvn archetype:generate \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic_2.9.1 \ -DarchetypeVersion=2.4-M4 \ -DarchetypeRepository=http://scala-tools.org/repo-releases \ -DremoteRepositories=http://scala-tools.o…