lift

PermGen problems with Lift and Jetty

徘徊边缘 提交于 2019-11-28 15:22:50
问题 I'm developing on the standard Lift platform (maven and jetty). I'm repeatedly (once every couple of days) getting this: Exception in thread "7048009@qtp-3179125-12" java.lang.OutOfMemoryError: PermGen space 2009-09-15 19:41:38.629::WARN: handle failed java.lang.OutOfMemoryError: PermGen space This is in my dev environment. It's not a problem because I can keep restarting the server. In deployment I'm not having these problems so it's not a real issue. I'm just curious. I don't know too much

Scala framework for a Rest API Server? [closed]

坚强是说给别人听的谎言 提交于 2019-11-28 14:58:08
We are thinking on moving our Rest API Server (it is inside the web service, on Symfony PHP) to Scala for several reasons: speed, no overhead, less CPU, less code, scalability, etc. I didn't know Scala until several days ago but I've been enjoying what I've been learning these days with the Scala book and all the blog posts and questions (it's not so ugly!) I have the following options: build the Rest API Server from scratch use a tiny Scala web framework like Scalatra use Lift Some things that I will have to use: HTTP requests, JSON output, MySQL (data), OAuth, Memcache (cache), Logs, File

Liftweb: create a form that can be submitted both traditionally and with AJAX

情到浓时终转凉″ 提交于 2019-11-27 23:33:04
问题 Is it possible in Lift web framework to create forms (and links) that react via AJAX, but also work without Javascript support? If so, how? When I build the form using <lift:form.ajax> , the form's action is set to javascript:// so that it no longer submits without JS. If I build the form without explicit AJAX support, I don't know how to insert the AJAX functionality. I suppose I could build a RESTful interface (we'll have to build that anyway) and write custom Javascript to submit the form

Different Scala Actor Implementations Overview

瘦欲@ 提交于 2019-11-27 19:45:59
问题 I'm trying to find the 'right' actor implementation. I realized there is a bunch of them and it's a bit confusing to pick one. Personally I'm especially interested in remote actors, but I guess a complete overview would be helpful to many others. This is a pretty general question, so feel free to answer just for the implementation you know about. I know about the following Scala Actor implementations (SAI). Please add the missing ones. Scala 2.7 (difference to) Scala 2.8 Akka (http://www

Is PHP or PHP based web framework stateful or stateless? [closed]

谁说我不能喝 提交于 2019-11-27 18:55:26
问题 Along the same lines that for java centric applications, Play framework is stateless and lift framework is stateful as is any servlet or Java EE container like Tomcat or GlassFish is statefull, is PHP web framework like zend or cake php stateless or stateful and why? 回答1: PHP by itself has no state. Each request is completely unique. It's very close to the bare metal of HTTP in this regard. To implement state on top of that you can use sessions, databases, shared memory, files or anything

How can I construct and parse a JSON string in Scala / Lift

ぐ巨炮叔叔 提交于 2019-11-27 16:54:36
I am attempting to use JSON to send data between the browser and my app. I am attempting to use Lift 1.0 to create and parse JSON strings, but for some reason I am unable to parse the JSON I just constructed: scala>import scala.util.parsing.json.JSON._ import scala.util.parsing.json.JSON._ scala> import net.liftweb.http.js._ import net.liftweb.http.js._ scala> import net.liftweb.http.js.JE._ import net.liftweb.http.js.JE._ scala> val json = JsObj(("foo", 4), ("bar", "baz")).toJsCmd json: String = {'foo': 4, 'bar': 'baz'} scala> parseFull(json) res3: Option[Any] = None How do I programmatically

Why would I use Scala/Lift over Java/Spring? [closed]

限于喜欢 提交于 2019-11-27 16:34:56
I know this question is a bit open but I have been looking at Scala/Lift as an alternative to Java/Spring and I wonder what are the real advantages that Scala/Lift has over it. From my perspective and experience, Java Annotations and Spring really minimizes the amount of coding that you have to do for an application. Does Scala/Lift improve upon that? Let's assume we're equally comfortable in Scala and Java, and ignore the (huge) language differences except as they pertain to Spring or Lift. Spring and Lift are almost diametrically opposed in terms of maturity and goals. Spring is about five

Scala framework for a Rest API Server? [closed]

▼魔方 西西 提交于 2019-11-27 08:56:50
问题 We are thinking on moving our Rest API Server (it is inside the web service, on Symfony PHP) to Scala for several reasons: speed, no overhead, less CPU, less code, scalability, etc. I didn't know Scala until several days ago but I've been enjoying what I've been learning these days with the Scala book and all the blog posts and questions (it's not so ugly!) I have the following options: build the Rest API Server from scratch use a tiny Scala web framework like Scalatra use Lift Some things

Why should one use a http server in front of a framework web server?

蹲街弑〆低调 提交于 2019-11-26 19:45:21
问题 Web applications frameworks such as sinatra (ruby), play (scala), lift (scala) produces a web server listening to a specific port. I know there are some reasons like security, clustering and, in some cases, performance, that may lead me to use an apache web server in front of my web application one. Do you have any reasons for this from your experience? 回答1: Part of any web application is fully standardized and commoditized functionality. The mature web servers like nginx or apache can do the

How can I construct and parse a JSON string in Scala / Lift

半世苍凉 提交于 2019-11-26 18:47:58
问题 I am attempting to use JSON to send data between the browser and my app. I am attempting to use Lift 1.0 to create and parse JSON strings, but for some reason I am unable to parse the JSON I just constructed: scala>import scala.util.parsing.json.JSON._ import scala.util.parsing.json.JSON._ scala> import net.liftweb.http.js._ import net.liftweb.http.js._ scala> import net.liftweb.http.js.JE._ import net.liftweb.http.js.JE._ scala> val json = JsObj(("foo", 4), ("bar", "baz")).toJsCmd json: