[Lift] Re: Schemifier for Record?

2009-07-28 Thread marius d.
Nope. Record currently has nothing to do with RDBMS. It is a higher level of model abstraction that allows various implementations. RDBMS will likely be implemented but likely other models as well such Cassandra and ZooKeeper thru Dave's GoatRodeo. Br's, Marius On Jul 29, 9:16 am, Heiko Seeberge

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Heiko Seeberger
Hi all, This is a very good discussion! As I am trying to provide OSGi support for Lift, I already encountered this booting/resolving issue. If we could go for OSGi-only this would be a straightforward task (like Stephen described), but we have to support both worlds: Static monolithic non-OSGi an

[Lift] Re: Help on "Build from source"

2009-07-28 Thread nile black
Thanks everyone for replies! I've checked my jdk,classpath,maven,but the problem go on. D:\user\liftweb>set ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\Administrator\Application Data APR_ICONV_PATH=D:\Program Files\Subversion\iconv classpath=.;D:\opt\Java

[Lift] Re: Help on "Build from source"

2009-07-28 Thread nile black
Nile Black On Wed, Jul 29, 2009 at 2:31 AM, David Pollak wrote: > > > On Tue, Jul 28, 2009 at 11:05 AM, Naftoli Gugenheim > wrote: > >> >> If it thinks import java.xxx is a relative import of net.java.xxx, then it >> must be you're somehow building it with a net.java package in the classpath.

[Lift] Re: Help on "Build from source"

2009-07-28 Thread nile black
Hi,Everyone i try to fix the problem eg: [WARNING] D:\user\liftweb\lift-util\src\main\scala\net\liftweb\util\ConcurrentLock.scala:16: error: value util is not a member of package net.java [WARNING] import java.util.concurrent.locks._ i use import _root_.java.util.concurrent.locks._ instead of im

[Lift] Schemifier for Record?

2009-07-28 Thread Heiko Seeberger
Hi, Is there something like Schemifier for lift-record? Heiko -- My blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: www.scalamodules.org Lift, the simply functional web framework: liftweb.net --~--~-~--~~~---~--~~ You received this mes

[Lift] Re: Lift runtime stats snippet

2009-07-28 Thread DFectuoso
Funny thing to display in a website Mixing that with the runmode and displaying a div with that information could be useful for development(im doing this with twitter api request limit status, i will add it there =) ) On Jul 28, 5:18 pm, David Pollak wrote: > This snippet is located in the sit

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Naftoli Gugenheim
You might get a clearer picture of memory usage by calling System.gc after each request, so you can see if there is a memory leak somewhere. - David Pollak wrote: Peter, I was running demo.liftweb.net with a heap size of 32MB. I am using the "jetty_instance

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-28 Thread David Pollak
I'd do the REST API thing. The mechanisms that Lift has for handling API calls from the browser are numerous, but they are associated with a session (you can do ajaxCall or a S.buildJsonFunc). If your client is going to be disconnected, periodically wake up, make an HTTP call on your app and then

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread David Pollak
Peter, I was running demo.liftweb.net with a heap size of 32MB. I am using the "jetty_instance" found in http://github.com/dpp/lift-samples/tree/master 32MB for the heap size is just fine except every once in a while, we get 2,000 new sessions opened up and that pushed the heap past the 32MB lev

[Lift] Re: New features

2009-07-28 Thread David Pollak
THis is all very good stuff. Thanks for contributing this excellent stuff to Lift! On Mon, Jul 27, 2009 at 12:57 PM, Naftoli Gugenheim wrote: > > I committed some code last night, which can help building mapper-based view > snippets, with G-d's help. It includes the following classes: > (1-2) ne

[Lift] Re: Lift runtime stats snippet

2009-07-28 Thread David Pollak
This snippet is located in the sites/example code, not in Lift itself. Look for the RuntimeStats.scala file. On Tue, Jul 28, 2009 at 3:47 PM, Ewan wrote: > > Just finally noticed the runtime stats on the demo site and have tried > to include them in my own using the following tags which are cop

[Lift] Re: Stamped Trait question

2009-07-28 Thread fbettag
So far it looks like this: trait Stamped[OwnerType <: Stamped[OwnerType] with LongKeyedMapper [OwnerType] with IdPK] { this: OwnerType => private val thisTyped = this.asInstanceOf[MapperType] override def afterSave { createActionLog("create", this.getCla

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
Yep, that's what I figured. I should add the memory usage seems to have stabilized at approximately 55% of all memory. Looking at the logs I see that starting about an hour and a half from launch lots of sessions regularly expire. I assume a session is being created per POST and then expires some

[Lift] Re: Modularization of Lift code

2009-07-28 Thread stephen goldbaum
Classpath management is one of OSGi's features. Another is dynamic service registry and dependency management. So following that route, the Lift framework would define an interface that exposes much of what is currently found in Boot. Modules (OSGi bundles) would create implementations of that

[Lift] Re: Mapper and Primary Keys

2009-07-28 Thread Derek Chen-Becker
Did you override the dirty_? def? Derek On Tue, Jul 28, 2009 at 3:09 PM, Peter Robinett wrote: > > Sorry to bump this, but does anyone have any idea why my mac column is > not being saved to the database, despite the save method returning > true? > > On Jul 22, 9:19 am, Peter Robinett wrote: >

[Lift] Lift runtime stats snippet

2009-07-28 Thread Ewan
Just finally noticed the runtime stats on the demo site and have tried to include them in my own using the following tags which are copied from the example default template except the snippets don't exist in lift/src/main/scala/net/liftweb/builtin/snippet.            Stats: Total Memory:        

[Lift] Re: erro: MappedDouble is not mapped to 'double precision' datatype in PostgreSQL?

2009-07-28 Thread Derek Chen-Becker
OK, I've pushed 1.0.1-SNAPSHOT to the repo with something that should fix the PostgreSQL stuff. Can you update your POM to 1.0.1-SNAPSHOT and try it? Thanks, Derek On Tue, Jul 28, 2009 at 11:40 AM, JanWillem Tulp wrote: > > Hi Derek, > > I am using liftweb version 1.0 > > Thanks! > > > > On Jul

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Ross Mellgren
If it's a left-to-right sawtooth (e.g. increasing linearly over time and then sharply dropping) then that's probably garbage accumulating then the GC running. -Ross On Jul 28, 2009, at 6:23 PM, Peter Robinett wrote: > > Nope, haven't touched any of the files. As for the increases, they do >

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
Nope, haven't touched any of the files. As for the increases, they do not appear to, since requests happen approximately every second and the length of each spike is around one minute. Peter On Jul 28, 3:16 pm, Naftoli Gugenheim wrote: > It would redeploy if you were using mvn jetty:run and you

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Naftoli Gugenheim
It would redeploy if you were using mvn jetty:run and you changed files in the webapp. Do the increases correspond to (specific) requests? - Peter Robinett wrote: Thanks, Naftoli. After running for an hour the app is using 45-60% of my (very little) memory.

[Lift] Re: Hear podcast interview with David Pollack about Lift

2009-07-28 Thread Peter Bliznak
Truly enjoyed that one! From: DFectuoso To: Lift Sent: Tuesday, July 28, 2009 4:31:05 PM Subject: [Lift] Re: Hear podcast interview with David Pollack about Lift Cheers! That was a great podcast! On Jul 28, 11:48 am, David Pollak wrote: > I had a great t

[Lift] Re: New features

2009-07-28 Thread Naftoli Gugenheim
Did you update your source jar? Try deleting it from your repository just to be sure, then mvn dependency:sources etc. Either way you can access the source on github. - glenn wrote: Naftoli, The ManyToMany class is in the new lift-mapper jar, but the source

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
Thanks, Naftoli. After running for an hour the app is using 45-60% of my (very little) memory. It appears that memory is being used in a sawtooth pattern, with the baseline gradually creeping upwards.[1] I don't see any mention in the logs of any redeployments. Peter [1]: http://www.bubblefoundr

[Lift] Re: New features

2009-07-28 Thread glenn
Naftoli, The ManyToMany class is in the new lift-mapper jar, but the source is not available in 1.1-SNAPSHOT-sources. Could you provide? Thanks, Glenn... On Jul 27, 3:50 pm, Naftoli Gugenheim wrote: > I committed it last night, so I think it should be there. > To use many-to-many, simply mix M

[Lift] Re: scala+maven

2009-07-28 Thread ph
Maybe better question would be: How to run scala artifact from maven repository (local and/or private remote)? On Jul 28, 3:28 pm, Timothy Perrett wrote: > Hey there, > > I wrote an article previously about how to use launchers with maven- > scala-plugin, find it here:http://is.gd/1RuLQ > > Does

[Lift] Re: scala+maven

2009-07-28 Thread ph
That allows to pre-set arguments and main class to launch, but to get there I need first to be able to specify scala plugin in maven's settings.xml, which I'm struggling to do right now... And maven-scala-plugin manual is here http://scala-tools.org/mvnsites/maven-scala-plugin/, but id describes

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Andrew Scherpbier
-1 from me on this. To me that smells too much of J(2)EE and happens to be one of my personal reasons to stay away from anything that requires (custom) deployment descriptors.  I'd rather stick with configuration by convention or explicit init calls in Boot.scala. The cost of lift searching

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Naftoli Gugenheim
You can monitor it with jconsole. Is the memory building up gradually and not being garbage collected? Is it being redeployed without restarting jetty? - Peter Robinett wrote: Thanks all for the comments and suggestions. I'm totally new to the Java world, so

[Lift] Re: Mapper and Primary Keys

2009-07-28 Thread Peter Robinett
Sorry to bump this, but does anyone have any idea why my mac column is not being saved to the database, despite the save method returning true? On Jul 22, 9:19 am, Peter Robinett wrote: > Because it's unique across systems and maps directly to hardware I'm > tracking. But thanks for the equation

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Peter Robinett
Thanks all for the comments and suggestions. I'm totally new to the Java world, so thanks for mentioning all these various options. First, my system: MySQL is the database I'm using with my Lift app (and some other very low traffic apps) and is tuned pretty aggressively to use little memory. It s

[Lift] Re: Automatic background AJAX: best way to do it?

2009-07-28 Thread Peter Robinett
I would do the first option, which I don't see as 'unLifty', but perhaps someone who knows Lift better than I do can comment on your options. Peter Robinett On Jul 28, 10:57 am, "Nolan Darilek" wrote: > I have a project that will use the geolocation API in Firefox 3.5, > Google Gears and other

[Lift] Re: Hear podcast interview with David Pollack about Lift

2009-07-28 Thread DFectuoso
Cheers! That was a great podcast! On Jul 28, 11:48 am, David Pollak wrote: > I had a great time on the podcast... the pondjumpers are a cool pair of > dudes. > > On Mon, Jul 27, 2009 at 11:40 AM, Goldfish wrote: > > > Visithttp://pondjumpers.com/2009/07/27/episode-2-interview-about-lift/ > >

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
The first suggestion was reflection... I'm not pushing the idea, just throwing in an alternative. But the xml route doesn't have to be xml--it could be a plain text file like /META-INF/.liftboot etc. Or you could search all jars for net.liftweb.BootXX or net.liftweb.XX that implements a trait On

[Lift] User validation by admin

2009-07-28 Thread Naftoli Gugenheim
Hi. I would like to customize the way that user registration is validated by email. For example, require the admin to validate users. Here are some possible approaches: 1. Set skipEmailValidation to true and build the mechanism from scratch in the subclass. 2. Override signup, and implement it s

[Lift] Moving the wiki...

2009-07-28 Thread Timothy Perrett
Hey guys, We had a discussion within the team and taken the decision to move to the github wiki - a fresh start for a fresh new wiki with lots of up- to-date information to replace our legacy wiki / documentation. I've started to move stuff across and supply some brand new documentation, do take

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Timothy Perrett
Hey Naftoli, Lift has a general aversion to xml configs... Is there another route? Cheers, Tim On 28/07/2009 20:47, "Naftoli Gugenheim" wrote: > > What I was suggesting is that instead of having to write Lib.init in Boot, > Lift should look in Lib.jar for say /boot.xml which would tell Lift

[Lift] Re: New features

2009-07-28 Thread Naftoli Gugenheim
In the meantime, if there are any scaladoc comments that could be improved or clarified, please tell me! - marius d. wrote: Would you please add some examples on the wiki so that people can actually visualize how these things can be used? As far as XmlMenu

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
The jar should be in lib I guess, and use the path relative to the jar file (the path in the jar). I added /tableeditor/default.html to lift-mapper.jar, so you would include it with lift:embed what="/tableeditor/default" . - glenn wrote: Say I just wanted to

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
What I was suggesting is that instead of having to write Lib.init in Boot, Lift should look in Lib.jar for say /boot.xml which would tell Lift to execute Lib.init for you on startup. I think that would accomplish what you want, at the cost of lift searching through the jars. -

[Lift] Re: scala+maven

2009-07-28 Thread Timothy Perrett
Hey there, I wrote an article previously about how to use launchers with maven- scala-plugin, find it here: http://is.gd/1RuLQ Does that help? Cheers, Tim On Jul 28, 7:32 pm, ph wrote: > Is there a good recourse on how to setup/use scala project with maven? > > I've installed maven that comes

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Timothy Perrett
Im just spitballing - I knew Heiko was working on a bunch of modules and such for Lift so wondered if it was possibly a route forward (im not really up to speed with OSGi) Cheers, Tim On Jul 28, 8:20 pm, glenn wrote: > My understanding about OSGi is that is allows for dynamic classpath > depend

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
My understanding about OSGi is that is allows for dynamic classpath dependencies through a jar's META-INF file. But wouldn't that require launching an OSGi implementation with your main Lift application. Glenn... On Jul 28, 12:11 pm, Timothy Perrett wrote: > I've been having a think about this

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
It's not related to ResourceServer. Just use the jar-relative path in the embed tag etc. - glenn wrote: Hi, Ross, So, with the changes, where would templates need to be placed in jar files in order to be found - or can they be put in any directory as long a

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Naftoli Gugenheim
If the xml is in the jar file then it would only require the user of the library to drop thr jar in. It would only be an extra step for the library author. The question is whether the extra line saved in Boot is worth the time it takes for Lift to search the jars whenever you deploy.

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Timothy Perrett
I've been having a think about this, and are we overlooking something stupid here? Perhaps OSGi could yield a good solution? Thoughts? Cheers, Tim On 28/07/2009 20:04, "glenn" wrote: > > Tim, > > My last post may be dismissed as adding more complication than simply > editing Boot.scala

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
Hi, Ross, So, with the changes, where would templates need to be placed in jar files in order to be found - or can they be put in any directory as long as the resource is noted in ResourceServer? Glenn... On Jul 28, 9:39 am, Ross Mellgren wrote: > http://github.com/dpp/liftweb/commit/0f60807dd

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
Tim, My last post may be dismissed as adding more complication than simply editing Boot.scala. But keep in mind that a consistent, uniform and robust procedure for modularization across the Lift universe is to be favored over the ad-hoc approach, as exists now. In my view, opening a project and e

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
Tim, Here's a thought. GWT uses to identify and initialize modules. Perhaps something similar could be hooked into LiftFilter and an entry point class identified in web.xml. There should be little objection to xml configuration, as opposed to using Java reflection. Glenn... On Jul 28, 9:36 am

Re: Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)

2009-07-28 Thread David Pollak
After we get the next milestone out the door, we'll focus more on the 2.8 parallel branch. I had a chat with Martin and it doesn't look like 2.8 is going to be out in September, so we've got time. On Fri, Jul 24, 2009 at 12:40 PM, Naftoli Gugenheim wrote: > > The reason I asked is that paulp rec

[Lift] Re: Hear podcast interview with David Pollack about Lift

2009-07-28 Thread David Pollak
I had a great time on the podcast... the pondjumpers are a cool pair of dudes. On Mon, Jul 27, 2009 at 11:40 AM, Goldfish wrote: > > Visit http://pondjumpers.com/2009/07/27/episode-2-interview-about-lift/ > to hear a podcast interview with David Pollack about Lift. > > > > -- Lift, the simply

[Lift] scala+maven

2009-07-28 Thread ph
Is there a good recourse on how to setup/use scala project with maven? I've installed maven that comes with lift. Project is created with Eclipse maven plugin (q4e http://code.google.com/p/q4e/). I build and install scala project to local repository fine. I can also run project using "mvn scala:r

[Lift] Re: Help on "Build from source"

2009-07-28 Thread David Pollak
On Tue, Jul 28, 2009 at 11:05 AM, Naftoli Gugenheim wrote: > > If it thinks import java.xxx is a relative import of net.java.xxx, then it > must be you're somehow building it with a net.java package in the classpath. > The question is why maven is building it with a different classpath than it > u

[Lift] Re: Help on "Build from source"

2009-07-28 Thread Naftoli Gugenheim
If it thinks import java.xxx is a relative import of net.java.xxx, then it must be you're somehow building it with a net.java package in the classpath. The question is why maven is building it with a different classpath than it uses for everyone else, and why those imports don't start with _root

[Lift] Re: Custom login

2009-07-28 Thread Naftoli Gugenheim
I think you have to override loginXhtml and/or screenWrap. - David Pollak wrote: On Mon, Jul 27, 2009 at 3:12 AM, MrWHO wrote: > > > Hi all! > > Again a probably silly question, but I haven't been able to find a > clue anywhere. > > I'd like to use my own

[Lift] Automatic background AJAX: best way to do it?

2009-07-28 Thread Nolan Darilek
I have a project that will use the geolocation API in Firefox 3.5, Google Gears and other JS frameworks. It will need to keep the user's position updated using the watchPosition API, fetching nearby POIs and such whenever the position changes. I'm actually fairly new to AJAX, and am trying to

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Spencer Uresk
I'm not sure about how much overhead Jetty adds to the mix (I'd assume it would be small, but I could be wrong), but on my production server, a small Lift app added only 30 - 40 mb or so to the memory usage of my Tomcat instance. Based on my experience with running Java and Groovy based application

[Lift] Re: erro: MappedDouble is not mapped to 'double precision' datatype in PostgreSQL?

2009-07-28 Thread JanWillem Tulp
Hi Derek, I am using liftweb version 1.0 Thanks! On Jul 27, 10:27 pm, Derek Chen-Becker wrote: > This looks like an issue with PostgreSQLDriver. The type should be "DOUBLE > PRECISION". What version of Lift are you using? Let me know and I'll put a > fix in the proper place. > > Derek > > On

[Lift] Re: Custom login

2009-07-28 Thread David Pollak
On Mon, Jul 27, 2009 at 3:12 AM, MrWHO wrote: > > > Hi all! > > Again a probably silly question, but I haven't been able to find a > clue anywhere. > > I'd like to use my own login page for an application. I can get as > far as creating my own form - and posting to "/user_mgt/login" and if > t

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Ross Mellgren
http://github.com/dpp/liftweb/commit/0f60807dd64b7fe1430919738b46f2ebe1758f22 ... From: feeder.of.the.be...@gmail.com Subject:[Lift] Re: ResourceServer problem Date: July 22, 2009 12:07:14 PM EDT To: liftweb@googlegroups.com Reply-To: liftweb@googlegroups.com On Tue, Ju

[Lift] Re: Modularization of Lift code

2009-07-28 Thread Timothy Perrett
Glenn, You have my full attention - this is something I've been sitting on for quite some time but just not quite sure what the best route forward is. When im creating these modules, I essentially just build a normal jar project with maven, and as you say, if I have JS or whatever that I need

[Lift] Re: Modularization of Lift code

2009-07-28 Thread glenn
Hi, Tim, So, what you do is put all new LiftRules, Schemifier and ResourceServer stuff in an init function and run it after the Boot.scala defaults. Sounds simple enough. When creating your modules, do you just strip out all the stock webapp files (those that come with the maven lift archetypes)

[Lift] Re: Object Relationships and the .obj method

2009-07-28 Thread Kevin Wright
m, wine vinegar... Bit of salad, spot of olive oil and we've got us an appetizer :) On Tue, Jul 28, 2009 at 4:42 PM, Derek Chen-Becker wrote: > My pleasure. I'll be the first to admit that the book still needs a lot of > work, so anyone with feedback is more than welcome to submit it. I've sl

[Lift] Re: Object Relationships and the .obj method

2009-07-28 Thread Derek Chen-Becker
My pleasure. I'll be the first to admit that the book still needs a lot of work, so anyone with feedback is more than welcome to submit it. I've slowly been working through the backlog of feedback that we've already received, so the quality, breadth and depth of the book should continue to improve.

[Lift] Re: Help on "Build from source"

2009-07-28 Thread TylerWeir
"why i cann't see my post at group?" All new members are moderated to start with. On Jul 27, 11:56 pm, nile black wrote: > why i cann't see my post at group? > > > > On Tue, Jul 28, 2009 at 11:48 AM, Nile Black wrote: > > [INFO] Building Lift Utils > > [INFO]    task-segment: [install] > > [I

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Timothy Perrett
Agreed; its pretty light to run all those services. I have a lift based app that's been running for quite some time and its using around 250mb of RAM on average. A raw lift app will probably use 128mb RAM as minimum. Cheers, Tim On 28/07/2009 10:08, "marius d." wrote: > BTW 256mb seems to me ri

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread marius d.
So the machine has 256 mb of RAM but did you configure the JVM max heap size? .. How much MySql eats up out of 256 mb ? (let's live the swap out for a bit) Are you running the JVM with -server option? BTW 256mb seems to me ridiculous small for a server side application. Br's, Marius On Jul 28,

[Lift] Re: Help on "Build from source"

2009-07-28 Thread Timothy Perrett
Can you provide some enviroment details What version of maven are you using? What JDK? What maven command did you run? Cheers, Tim On Jul 28, 4:48 am, Nile Black wrote: > [INFO] Building Lift Utils > [INFO]    task-segment: [install] > [INFO] > -

[Lift] Re: Minimizing Memory Usage

2009-07-28 Thread Timothy Perrett
What version of Lift are you using? Are you using scala.actors code within your application at all? Cheers, Tim On Jul 28, 2:47 am, Peter Robinett wrote: > Hi all, > > I'm running Lift on the smallest Slicehost VPS available (256 mb RAM, > plus 512 mb swap) and I've recently run into some memor

[Lift] Re: the question abount HelloForm2 of example darwin

2009-07-28 Thread koji
Thank you Tim, That helps me. koji On 7月28日, 上午6時40分, Timothy Perrett wrote: > Hey Koji, > > So I took  a look at your problem and made an example, please check > the code here under "basic-forms": > > http://github.com/timperrett/lift-examples/tree/master > > I have a feeling that S.param used