четверг, августа 11, 2011

liftweb 2.4 и sbt 0.10.1

В корне проекта создаем build.sbt
name := "projectname"

scalaVersion := "2.9.0"

seq(webSettings :_*)

libraryDependencies ++= Seq(
"net.liftweb" %% "lift-webkit" % "2.4-M1" % "compile->default",
"net.liftweb" %% "lift-mapper" % "2.4-M1" % "compile->default",
"net.liftweb" %% "lift-wizard" % "2.4-M1" % "compile->default")


libraryDependencies ++= Seq(
"junit" % "junit" % "4.5" % "test->default",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "jetty",
"javax.servlet" % "servlet-api" % "2.5" % "provided->default",
"com.h2database" % "h2" % "1.2.138",
"ch.qos.logback" % "logback-classic" % "0.9.26" % "compile->default"
)

старую папку project переименовываем в project-old
создаем новую папку project
в project/plugins/build.sbt пишем
resolvers += "Web plugin repo" at "http://siasia.github.com/maven2"
//Following means libraryDependencies += "com.github.siasia" %% "xsbt-web-plugin" % "0.1.1-""
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % ("0.1.1-"+v))

sbt 0.10.1 в Mac OS X

cd ~
wget http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.10.1/sbt-launch.jar
sudo mv sbt-launch.jar /usr/local/bin/sbt-launch.jar
echo "java -Xmx512M -jar /usr/local/bin/sbt-launch.jar \"\$@\"" | sudo tee /usr/local/bin/sbt
sudo chmod +x /usr/local/bin/sbt

Ссылки 2011-08

Scala

The Builder Pattern in Scala
http://www.earldouglas.com/the-builder-pattern-in-scala

Migrating to sbt 0.10: Lift
http://www.assembla.com/spaces/liftweb/wiki/Using_SBT
http://moreindirection.blogspot.com/2011/06/migrating-to-sbt-010-lift.html
http://d.hatena.ne.jp/k4200/20110711/1310354698
http://stackoverflow.com/questions/6718266/lift-does-not-build-with-sbt

Scala:match tuple with null
http://daily-scala.blogspot.com/2010/01/matching-nulls.html
http://stackoverflow.com/questions/2024841/match-tuple-with-null

Asynchronous Network I/O with Scala Continuations
http://www.earldouglas.com/asynchronous-network-io-with-scala-continuations

Introducing ElasticMQ: Scala SQS alternative
http://www.warski.org/blog/2011/08/introducing-elasticmq-scala-sqs-alternative/

Scala presentation by Aleksandar Prokopec
http://www.slideshare.net/loicd/scala-presentation-by-aleksandar-prokopec

northeast scala symposium materials
http://www.nescala.org/2011/

oAuth

Simple OAuth library for Java
https://github.com/fernandezpablo85/scribe-java

Consuming the Twitter API in Scala with Scribe
http://www.earldouglas.com/consuming-the-twitter-api-in-scala-with-scribe

OAuth using Scribe with Yahoo API
http://ashwinrayaprolu.wordpress.com/2011/05/12/oauth-using-scribe-with-yahoo-api/
https://github.com/fernandezpablo85/scribe-java/issues/99

jQuery plugin for Twitter OAuth via popup window (Facebook style)
http://zuzara.com/blog/2010/05/15/jquery-plugin-for-twitter-oauth-via-popup-window-facebook-style/

Which Google api to use for getting user's first name, last name, picture, etc?
http://stackoverflow.com/questions/2108537/which-google-api-to-use-for-getting-users-first-name-last-name-picture-etc


jQuery

Sticky - An unbelievably simple notification system for jQuery
http://thrivingkings.com/sticky/

Badger - Super sexy iOS style badges for jQuery
http://thrivingkings.com/badger/

JavaScript QrCode Generator
http://codecanyon.net/item/javascript-qrcode-generator/full_screen_preview/407938

Cross Domain

easyXDM - Cross-Domain Messaging made easy
http://easyxdm.net/wp/

Cross-domain, cross-browser IFRAME RESIZING
http://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content

Secure Cross Domain iFrame Communication
http://ternarylabs.com/2011/03/27/secure-cross-domain-iframe-communication/

Icons

http://creattica.com/icons/latest

Hadoop

Hadoop в Facebook
http://abava.blogspot.com/2011/07/hadoop.html

Usability

Web design patterns
http://patterntap.com/

Photoshop

Corporate Business – Design a Modern & Stunning Web Layout
http://www.psd.p2ptuts.com/corporate-business-design-modern-stunning-web-layout/

Human Statue Effect : Cursed by Medusa
http://www.psd.p2ptuts.com/human-statue-effect-cursed-medusa/

How to Create Skin for the Cube
http://www.psd.p2ptuts.com/create-skin-cube/

Business idea

Интернет-шоппинг в метро
http://coolidea.ru/2011/07/07/shopping-v-metro/

Finance

Доходность комодов, фьючерсов, валют и пр. за год - лучше всего показало себя серебро
http://finviz.com/futures_performance.ashx?v=16

Мой список блогов