[Lift] Re: Need two classes to inherit from one model, database design and view issues

2009-10-06 Thread Jim Barrows
On Oct 2, 7:55 pm, Dave davidtgoldb...@gmail.com wrote: Hi all- I posted this on stackoverflow but I figure its probably relevant here too.  I checked out the post with David and Steve Yen corresponding but I am still at a loss and am curious if any progress has been made in this

[Lift] Re: lift nearly inaccessible for newby

2009-10-06 Thread Jim Barrows
On Oct 6, 12:52 am, Stefan Langer mailtolan...@googlemail.com wrote: Not ment as a offence but you are in way over your head! While I agree. Linus Torvalds was in much the same place. He has to somewhere :) A couple of things: 1. You say you are a non-programmer but I assume you do

[Lift] Question about the TreeViewDemo in the lift widgets section of the Exploring LIft pdf

2009-10-12 Thread Jim Barrows
I've interpreted the demo as the code below. However, I get this exception when I compile: /snippet/TreeViewDemo.scala:14: error: not found: value JsObj TreeView(example, JsObj(animated-90)) I'm not sure what I'm doing wrong I'd appreciate any help. Here's the code: package

[Lift] Re: Question about the TreeViewDemo in the lift widgets section of the Exploring LIft pdf

2009-10-13 Thread Jim Barrows
Tracked this down to a missing import statement: import JE._ You can recreate this by removing this import in the TreeViewDemo.scala (http://github.com/dpp/liftweb/blob/master/lift- widgets/src/test/scala/webapptest/snippet/TreeViewDemo.scala) file, and compile it. On Oct 11, 9:34 pm, Jim

[Lift] Re: Cannot get YUI text editor to work from Liftweb in Firefox or Google Chrome, works in IE

2009-10-14 Thread Jim Barrows
Both of the links work just fine on my firefox 3.0.14 on Ubuntu. On Tue, Oct 13, 2009 at 11:44 PM, philip philip14...@gmail.com wrote: Hi, I know this is not specific to liftweb, but I cannot get the YUI rich text editor to work in Firefox or Google Chrome from my Liftweb. This example:

[Lift] [Sorta Not Related] Ummm.. at the risk of crashing my browser........

2009-10-15 Thread Jim Barrows
Who wants a wave invite? Not sure how long Google will take to process them.. but I have some! I just added the lifehack list to my wave account, and I think firefox nearly died. Quite amusing.. in many ways -- James A Barrows --~--~-~--~~~---~--~~ You

[Lift] Having trouble understanding SessionVar[Box[MyClass]] and how to use it.

2009-10-18 Thread Jim Barrows
Here's a snippet: object parentOrganization extends SessionVar[Box[Organization]](Empty) def create(xhtml: NodeSeq): NodeSeq = { var name: String = def processAdd() = { if (name.isEmpty) S.error(Please provide a name) else { val organization = new

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-19 Thread Jim Barrows
I've been thinking a lot about the issue of backwards compatibility, and the trade off with good architecture. I've come to the conclusion that the only real answer is that you have to take each instance on a case by case basis and ask yourself this question: Do you want to write a thunking layer

[Lift] Re: Are we willing to make a breaking change for Joda Time?

2009-10-19 Thread Jim Barrows
On Mon, Oct 19, 2009 at 10:53 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: That's pretty much my take. The whole Java Calendar/Date/Timezone impl is poorly designed, hence Joda Time. Now I've run into another wall, this time with the TimeSpanBuilder. I can't mask the implicits from

[Lift] Re: Where is the default.props in the lift1.1-M6 and the Full method ?

2009-10-21 Thread Jim Barrows
On Wed, Oct 21, 2009 at 1:48 AM, GA my_li...@me.com wrote: Hello Neil, the file must be located in src/main/resources/props/default.props Here you have an example that it is working for us: db.driver=org.postgresql.Driver db.url=jdbc:postgresql://localhost/dbname db.user=userName

[Lift] Re: Menu generated from database?

2009-10-21 Thread Jim Barrows
On Wed, Oct 21, 2009 at 6:26 AM, philip philip14...@gmail.com wrote: Hi, How can I get a Liftweb menu to be generated from database content? The meditative answer is: functions are first class citizens in Scala. :) Alternatively, can the menu come from a XML datasource? could I load/

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Jim Barrows
Doesn't emacs already do all three? Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: Ross Mellgren dri...@gmail.com Date: Wed, 21 Oct 2009 22:18:29 To: liftweb@googlegroups.com Subject: [Lift] Re: Calling a method from other snippet Screw it, I'll just do

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jim Barrows
On Thu, Oct 22, 2009 at 9:22 AM, David Pollak feeder.of.the.be...@gmail.com wrote: On Thu, Oct 22, 2009 at 9:18 AM, Timothy Perrett timo...@getintheloop.euwrote: David, I think your response was well measured and appropriate. The analogy of linguistics is a good one :-) Without

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jim Barrows
On Thu, Oct 22, 2009 at 1:29 PM, jlist9 jli...@gmail.com wrote: Hi David, Appreciate your reply. It's definitely helpful in clearing some of my thoughts, as well as in my process of learning Scala down the road. I also think your book is very well paced and organization of the content is

[Lift] Re: A Critique On Lift

2009-10-22 Thread Jim Barrows
On Thu, Oct 22, 2009 at 2:27 PM, jlist9 jli...@gmail.com wrote: Perl's motto is There is more then one way to do it. I remember reading somewhere that part of the the design goal of Perl 6 was to make the language more sane. That says it all. For scripting language, I'd stick to Python,

[Lift] Re: **Breaking Changes** **README** **Important**

2009-10-22 Thread Jim Barrows
RrttrRrrrtrtrtrrrtrtrtrrttÞ Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: ssid j.gat...@googlemail.com Date: Thu, 22 Oct 2009 18:03:25 To: Liftliftweb@googlegroups.com Subject: [Lift] Re: **Breaking Changes** **README** **Important** Hi all,

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jim Barrows
On Fri, Oct 23, 2009 at 9:15 AM, Chris Lewis burningodzi...@gmail.comwrote: My head just exploded. Twice. That explains the wet face this morning when I woke up... thought it was the dog licking it... :) ngocdaothanh wrote: Because Lift's ad is so good. *boom* It was good. My first

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jim Barrows
On Fri, Oct 23, 2009 at 3:17 PM, Viktor Klang viktor.kl...@gmail.comwrote: But if you name your method: ashiuahsdyasdasd what does it do? Oh Bloddy Ell... that caused Cthulu to appear on my keyboard when I read it On Fri, Oct 23, 2009 at 9:47 PM, bob rbpas...@gmail.com wrote: I'll

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jim Barrows
On Fri, Oct 23, 2009 at 3:28 PM, Viktor Klang viktor.kl...@gmail.comwrote: On Sat, Oct 24, 2009 at 12:23 AM, Jim Barrows jim.barr...@gmail.comwrote: On Fri, Oct 23, 2009 at 3:17 PM, Viktor Klang viktor.kl...@gmail.comwrote: But if you name your method: ashiuahsdyasdasd what does it do? Oh

[Lift] In the spirit of Friday, anyone want to see this ruby rack ported to lift?

2009-10-23 Thread Jim Barrows
http://coderack.org/users/MetaSkills/entries/15-zombie-shotgun and yes, I'm volunteering. :) -- James A Barrows --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: Proposal : Lift ticketing system

2009-10-24 Thread Jim Barrows
ERP systen or parts, which is what I'm working over on sourceforge. Ill post a link when I get home. The models are built and just need apps in front of them. Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: jlist9 jli...@gmail.com Date: Sat, 24 Oct 2009

[Lift] Re: I am not able to save a many-to-many relationship from an API

2009-10-26 Thread Jim Barrows
On Mon, Oct 26, 2009 at 11:43 AM, GA my_li...@me.com wrote: I have made a test that worked. I have modified my code like this: newUser.save newUser.devices += newDevice newUser.save

[Lift] Re: I am not able to save a many-to-many relationship from an API

2009-10-26 Thread Jim Barrows
On Mon, Oct 26, 2009 at 12:05 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: It would be feasible to refactor ManyToMany to remove this restriction. OneToMany does not require either side to be saved first. Can you describe a use case where it would be desirable? I don't think there is.

[Lift] Re: I am not able to save a many-to-many relationship from an API

2009-10-26 Thread Jim Barrows
On Mon, Oct 26, 2009 at 2:36 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: What do you mean by that? Every primary key is unique. The pivot table is typically only 2 columns, which are the PK's for each side of the MTM. ---- ---

[Lift] Re: Anything similar as Rack::Test and rspec for lift applications?

2009-11-02 Thread Jim Barrows
Scala has 2 test frameworks (Specs http://code.google.com/p/specs/, scala test http://www.artima.com/scalatest/) that I'm aware of, and can make use of the selenium test framework http://seleniumhq.org/. You could also, I suppose use JUnit or TestNG java frameworks if you wanted, again with

[Lift] Re: Why no default with getSingleton?

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:16 PM, Vesa brut...@gmail.com wrote: By the way, why orm classes need to be aware of the companion object? Could this dependency be eliminated somehow? The Mapper/Record companion object is where the code to do all the DB stuff lives. These are all static methods,

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Jim Barrows
On Mon, Nov 2, 2009 at 1:15 PM, Vesa brut...@gmail.com wrote: Hi, I was wondering few thing while reading lift examples. Could the Link class be turned into a case class so reading would improve? new Link (a :: b :: nil, false) could be RecursiveLink(a, b) and new Link(a :: b :: Nil) could

[Lift] Re: Making use of case classes and varargs in Link

2009-11-02 Thread Jim Barrows
:: Nil Link( someStandardDir :: file :: Nil) or Link( fnThatCanCreateTheFirstBit() :: finalBit ::Nil) All of which would harder to read, your way :) Link(a :: b :: nil) vs Link(a, b)) :D - Vesa On 2 marras, 22:27, Jim Barrows jim.barr...@gmail.com wrote: On Mon, Nov 2, 2009 at 1:15 PM

[Lift] Re: beginner's question about surround/bind/bind-at/with-param

2009-11-05 Thread Jim Barrows
On Thu, Nov 5, 2009 at 3:04 PM, jhonig j...@xs4all.nl wrote: Thank you James, What I tried first was taken from http://wiki.github.com/dpp/liftweb/about-lift-tags. I don't have the code anymore. It was a surround without at attribute, and with multiple bind-at-s inside. Nothing got

[Lift] How do you set disabled/readonly attributes from a snippet?

2009-11-09 Thread Jim Barrows
I found this answer on nabblehttp://old.nabble.com/How-to-disable-a-textfield-td25969916.htmlbut it's regarding setting the values client side. I want to set them in the snippet, depending on data. This doesn't work, but will give you a better idea of what I'm trying to do: def bindPerson(xhtml:

[Lift] Where did Mapper's MappedManyToMany go?

2009-11-09 Thread Jim Barrows
I can see it herehttp://github.com/dpp/liftweb/blob/1.1-M7/lift-persistence/lift-mapper/src/main/scala/net/liftweb/mapper/ManyToMany.scalain the 1.1M7 code base, but can't find it in the jar that Maven downloaded. The trait is there, but the Mapped version is missing. The same for MappedOneToMany

[Lift] Re: ManyToMany decision

2009-11-11 Thread Jim Barrows
On Tue, Nov 10, 2009 at 2:16 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Hello. When I wrote ManyToMany a couple of months ago, I designed it to internally hold a collection of join table records, and to act as a collection of elements of the child table. For example, given Volunteer

[Lift] Re: Template help

2009-11-11 Thread Jim Barrows
On Wed, Nov 11, 2009 at 11:21 AM, aw anth...@whitford.com wrote: OK, your suggestion definitely makes the snippet code more readable, but I fear I didn't make my point clear because the snippet code still is highly coupled with the view layout. If this was a MVC type framework, I think

[Lift] Re: How do you set disabled/readonly attributes from a snippet?

2009-11-12 Thread Jim Barrows
, at 6:51 PM, Jim Barrows wrote: I found this answer on nabble but it's regarding setting the values client side. I want to set them in the snippet, depending on data. This doesn't work, but will give you a better idea of what I'm trying to do: def bindPerson(xhtml: NodeSeq, action

[Lift] Re: Problems downloading dependencies, can't get started

2009-11-14 Thread Jim Barrows
Nate there is a directory in your home directory called .m2. Delete that and retry. If that doesn't work, and nobody else jumps in, its an issue with maven. I'm mobile abd be more helpful I'm afraid. Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: Nate

[Lift] Re: Call it Lift 2.0

2009-11-16 Thread Jim Barrows
On Mon, Nov 16, 2009 at 4:01 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, There has been a large amount of new stuff and also some breaking changes since Lift 1.0. As an OSGi guy I suggest we call the next version Lift 2.0, because increasing the major version number will

Re: [Lift] Hosting problem, could PHP hosting front end the Liftweb? or is there cheap Liftweb hosting?

2009-11-17 Thread Jim Barrows
I use rackspace cloud servers (rackspacecloud.com) for my hosting. runs me about 55/month for a medium sized server. They have an API etc for autostarting servers, and shutting them down. Then you have the spring source stuffhttp://www.springsource.com/products/cloudfoundrythat runs on Amazon,

Re: [Lift] Re: Call it Lift 2.0

2009-11-17 Thread Jim Barrows
On Mon, Nov 16, 2009 at 11:13 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: I think version numbers are idiotic, and created by the marketing department, and not engineers. I strongly disagree: An appropriate version strategy is not at all about marketing but expresses valuable

Re: [Lift] Re: Call it Lift 2.0

2009-11-18 Thread Jim Barrows
On Wed, Nov 18, 2009 at 10:25 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Jim, 2009/11/17 Jim Barrows jim.barr...@gmail.com The behavior of a method, it's implementation is part of the contract I have with the library. Behavior yes, as long as agreed part of the contract

Re: [Lift] Re: Call it Lift 2.0

2009-11-18 Thread Jim Barrows
/11/18 Jim Barrows jim.barr...@gmail.com On Wed, Nov 18, 2009 at 10:25 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Jim, 2009/11/17 Jim Barrows jim.barr...@gmail.com The behavior of a method, it's implementation is part of the contract I have with the library. Behavior

Re: [Lift] Looking for the single person who owns naming in Lift

2009-11-19 Thread Jim Barrows
I'm still new to learning Lift, and Scala for that matter, but if you can't find anyone better, I'll do it. On Thu, Nov 19, 2009 at 12:37 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, There has been a lot of talk about method/class naming in Lift lately. It's a good thing(tm)

Re: [Lift] JPA and eager fetch

2009-11-20 Thread Jim Barrows
Model isn't doing much other then setting up the manager to work, so I don't think that's the issue. I don't have time to look at it this morning, but if no one has an answer for you, I'll try to help this evening. On Thu, Nov 19, 2009 at 5:40 PM, wstrange warren.stra...@gmail.com wrote:

Re: [Lift] Another List XYZ Menu Entry

2009-11-20 Thread Jim Barrows
On Fri, Nov 20, 2009 at 6:26 AM, Hannes hannes.flo...@gmx.li wrote: I meant, that I had general problems to find a way how to do it, not talking about the Lift way to do it. So I think I need a new XHTML page where I call a snippet method, that displays the table. Then, from the menu item,

Re: [Lift] Another List XYZ Menu Entry

2009-11-20 Thread Jim Barrows
On Fri, Nov 20, 2009 at 7:07 AM, Hannes hannes.flo...@gmx.li wrote: Maybe you could give a one liner, showing how to write the menu item in Boot.scala. A menu entry looks something like: Menu( Loc(helpHome, (help :: ::Nil) - true, Help)) The list ( help :: :: Nil) is the path to the the

Re: [Lift] Another List XYZ Menu Entry

2009-11-20 Thread Jim Barrows
On Fri, Nov 20, 2009 at 8:18 AM, Hannes hannes.flo...@gmx.li wrote: I read some stuff of chapter five before, but this was the extra hint, that I needed... A lot of Scala and, by extension, Lift requires some deep contemplation of what it means. a path implemented as a List makes little

Re: [Lift] Issue 201 - checkbox not returning all checked

2009-11-22 Thread Jim Barrows
On Sat, Nov 21, 2009 at 10:48 AM, Ross Mellgren dri...@gmail.com wrote: yejun on github opened up an issue: def checkbox[T](possible : Seq[T], actual : Seq[T], func : (Seq[T]) = Any, attrs : (String, String)*) Checkbox is returning a list of checkboxes? Could we at least make checkbox

Re: [Lift] Working with legacy databases

2009-11-23 Thread Jim Barrows
On Sat, Nov 21, 2009 at 8:16 PM, Donald McLean dmclea...@gmail.com wrote: We are considering porting an existing Java desktop app to a Scala/lift web app. The application works with a Sybase DB. I'm still pretty new to Scala and Lift so I'm probably overlooking something obvious but could

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
that that should be happening, but I would need to see the code for PersonSnippets to really see what's going on. Derek On Wed, Nov 25, 2009 at 4:16 PM, Jim Barrows jim.barr...@gmail.comwrote: I'm using JPA, and need to do a One-Many, or master detail view. So I tried the obvious

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
that. That's what I was trying to do. There's a list of contact mechanisms attached to each person. I was going to use the second form to add the contact mechanism to the person. Cheers, Tim On 25 Nov 2009, at 23:16, Jim Barrows wrote: I'm using JPA, and need to do a One-Many, or master detail

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-25 Thread Jim Barrows
colons not dots in xhtml On Wed, Nov 25, 2009 at 5:03 PM, Jim Barrows jim.barr...@gmail.com wrote: Here's the complete xhtml file: lift:surround with=default at=content head title lift:locEdit Person/lift:loc /title /head h1You are editing: /h1

Re: [Lift] Looking for an example of how to do master detail, on the view side

2009-11-26 Thread Jim Barrows
Excellent. He's already where I was headed :) On Wed, Nov 25, 2009 at 8:51 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Kris blogged about a really nice pattern: http://logji.blogspot.com/ On Wed, Nov 25, 2009 at 3:16 PM, Jim Barrows jim.barr...@gmail.comwrote: I'm using JPA

[Lift] Open discussion on Lift Name Calling practices

2009-12-01 Thread Jim Barrows
Lift is getting very large. We've got singular names as lists, and plural names that aren't lists. We've got people calling roses red flowers, spades diamonds and other mass chaos. Well, it's not that bad, but you get the idea. This is an attempt to come up with a series of standard names to

[Lift] Having trouble figuring out how to get a form to submit without submitting the page, using ajaxForm

2009-12-05 Thread Jim Barrows
This is the basic definition of the form that works, but submits the page: xhtml: lift:PartyContactMechanismSnippets.save form=post !-- Form fields -- contactMechanism:submit/ /lift:PartyContactMechanismSnippets.save And the binding looks like: bind(contactMechanism, xhtml, comment -

Re: [Lift] Re: Having trouble figuring out how to get a form to submit without submitting the page, using ajaxForm

2009-12-05 Thread Jim Barrows
5, 2009, at 10:55 AM, Jim Barrows wrote: This is the basic definition of the form that works, but submits the page: xhtml: lift:PartyContactMechanismSnippets.save form=post !-- Form fields -- contactMechanism:submit/ /lift:PartyContactMechanismSnippets.save

Re: [Lift] Open discussion on Lift Name Calling practices

2009-12-10 Thread Jim Barrows
Dates have changed below. I slipped everything a week. On Wed, Dec 9, 2009 at 11:59 PM, Kris Nuttycombe kris.nuttyco...@gmail.comwrote: On Tue, Dec 1, 2009 at 1:43 PM, Jim Barrows jim.barr...@gmail.com wrote: Lift is getting very large. We've got singular names as lists, and plural names

[Lift] The thread for discussing names that need to change.

2009-12-10 Thread Jim Barrows
And we can start with Kris's list! Which hopefully will start things off nicely. If any particular discussion starts getting long, I, or the discussers should move it to it's own thread. module: lift-util file: src/main/scala/net/liftweb/util/JsonCmd.scala ResponseInfoHolder = ResponseMetadata

[Lift] How to handle a redirect to your site with info for a user that still has to sign up/login?

2009-12-14 Thread Jim Barrows
I'm working on a plugin for a website. Essentially a user of the external website (we'll call it Shopify), can click on a link to add my service to their webstore. So Shopify uses a URL like:

Re: [Lift] Goals for type and method renaming for Lift 2.0 - was: Open discussion on Lift Name Calling practices

2009-12-14 Thread Jim Barrows
I snipped some stuff. On Mon, Dec 14, 2009 at 12:34 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Dec 13, 2009 at 10:39 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/12/13 Kris Nuttycombe kris.nuttyco...@gmail.com 5) Avoid using abbreviations I

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Jim Barrows
On Wed, Dec 30, 2009 at 11:29 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: 100%. But that need could be reconciled with my idea in either of two ways: 1. There is discussion taking place, just in the Google Docs file as opposed to the maling list. Anyone who wants can participate. The

Re: [Lift] Re: Lift is awesome (with reservations)

2009-12-30 Thread Jim Barrows
Note: I just realized this was gonig to the list, and individual emails as well. edited the to and cc fields. On Wed, Dec 30, 2009 at 2:22 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm confused by your reply. Firstly, I think I was clear that I'm not going to do anything that you or

Re: [Lift] Mapper question / autogenerate some number

2010-01-06 Thread Jim Barrows
You can use mapper by itself. There's a dependency on lift webkit I believe. There might be some other issues, as i don't if anyone is using it that way. As for the number, are you talking about a userId? Why would you think you can't set an arbitrary field in Mapper? On Wed, Jan 6, 2010 at

Re: [Lift] Mapper question / autogenerate some number

2010-01-06 Thread Jim Barrows
On Wed, Jan 6, 2010 at 12:15 PM, Julian Backes julianbac...@googlemail.comwrote: Thanks for your answer!! You can use mapper by itself. There's a dependency on lift webkit I believe. There might be some other issues, as i don't if anyone is using it that way. This is perfectly working

Re: [Lift] Tomcat tips

2010-01-24 Thread Jim Barrows
Freezing randomly is usually gc related. I'd look at memory settings. On Jan 24, 2010 3:10 PM, aw anth...@whitford.com wrote: I have been developing my Lift app using the Jetty plugin on Windows, but now am deploying production on a Tomcat 6 server on Solaris. I don't exactly have great details

Re: [Lift] Handle OOM

2010-02-02 Thread Jim Barrows
Not generally within your code no. The VM is out of memory, not the webapp, so the VM has to be restarted. However you could have a nagios other monitoring service auto-restart in such cases. On the other hand... you really shouldn't be getting a OOM error in Java... On Tue, Feb 2, 2010 at

Re: [Lift] Handle OOM

2010-02-02 Thread Jim Barrows
PM, Jim Barrows jim.barr...@gmail.com wrote: Not generally within your code no. The VM is out of memory, not the webapp, so the VM has to be restarted. However you could have a nagios other monitoring service auto-restart in such cases. On the other hand... you really shouldn't be getting

Re: [Lift] Handle OOM

2010-02-03 Thread Jim Barrows
: -XX:OnOutOfMemoryError=script_to_execute This will allow an auto-restart. Oh, very cool. I didn't know that. On Tue, Feb 2, 2010 at 8:43 PM, Jim Barrows jim.barr...@gmail.comwrote: Not generally within your code no. The VM is out of memory, not the webapp, so the VM has

Re: [Lift] TableEditor enhancements

2010-02-03 Thread Jim Barrows
On Wed, Feb 3, 2010 at 5:23 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: It's very different -- you edit the whole table on one screen at the same time, and changes are buffered until you click save. We're doing that in a very heavy data entry app. A really nice feature is to be able

Re: [Lift] setuid

2010-02-17 Thread Jim Barrows
On Wed, Feb 17, 2010 at 10:08 AM, Tamer Rizk tsr...@gmail.com wrote: I am using Apache as a reverse proxy forwarding traffic to Jetty on port 8181. I am under the impression that a slight performance benefit offered by Apache would be offset by the bottleneck arising from double request

[Lift] Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Jim Barrows
I'm trying to get the uservoice widget working correctly, but it doesn't like working from the server, but works from a file just fine when I view source and copy and paste to a file. Any help would be appreciated! Uservoice adds it's feedback tab via some javascript that looks like: script

Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-22 Thread Jim Barrows
*grumble smurf* Ok. I'll just use the link then, and try to get an example up. On Sat, Feb 20, 2010 at 12:26 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Feb 20, 2010 at 10:59 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: On Sat, Feb 20, 2010 at 7:36 PM, Marius

Re: [Lift] This is the style of SQL persistence that I like ...

2010-02-24 Thread Jim Barrows
On Wed, Feb 24, 2010 at 1:27 PM, Timothy Perrett timo...@getintheloop.euwrote: Agreed - its nice. The var's are a little unsettling though... shame there is not a way to make it more immutable. Wouldn't the new copy functionality of case classes in 2.8 take care of that? I've been drooling

Re: [Lift] scala-time and Lift pom.xml

2010-02-26 Thread Jim Barrows
In what fashion do you mean integrate? Adding this: dependency groupIdjoda-time/groupId artifactIdjoda-time/artifactId version1.6/version /dependency to the dependency section to your maven POM will bring in the jar files. On Fri, Feb 26, 2010 at 10:14 AM, Hannes

Re: [Lift] scala-time and Lift pom.xml

2010-02-26 Thread Jim Barrows
On Fri, Feb 26, 2010 at 10:43 AM, Hannes hannes.flo...@gmx.li wrote: Jim, Thanks that helped! Maybe its to late, or I don't know what, but. Its a bit complicated to use I think. What's about scala-time? For my purpose, I just need the the time as a number (e.g. long). How do I do

Re: [Lift] scala-time and Lift pom.xml

2010-02-26 Thread Jim Barrows
On Fri, Feb 26, 2010 at 11:12 AM, Hannes hannes.flo...@gmx.li wrote: I swear that I ONLY use it to compare if things are older than other things. I think comparison of long values is faster than string or date comparison, or? In what timezone? and for what calendar? thanks. On

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jim Barrows
On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get the display name from a property file. So your replacing code boilerplate with property file boilerplate? The boilerplate has to go

Re: [Lift] Emerging Languages Face Off: Scala, Go, Clojure and Ruby

2010-03-01 Thread Jim Barrows
Best of luck! Will you be facing off with swords or... oh wait.. never mind... ;) On Mon, Mar 1, 2010 at 10:50 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I'll be representing Scala in an emerging languages face-off at

Re: [Lift] MapperRules.nameToDisplayName?

2010-03-01 Thread Jim Barrows
On Mon, Mar 1, 2010 at 12:54 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: Jim Barrows jim.barr...@gmail.com writes: On Mon, Mar 1, 2010 at 7:19 AM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: Hi, In the interest of cutting boilerplate from mapped objects, I would like to get

Re: [Lift] Re: LiftRules.rewrite, 404 error

2010-03-04 Thread Jim Barrows
On Thu, Mar 4, 2010 at 6:34 AM, Gang wangga...@gmail.com wrote: Could somebody answer my question? If it's too stupid a question to answer, please let me know that too. It just seems to me that unless I add a link to SiteMap, the links(a tag) in my page just return 404. And I tried

Re: [Lift] Textmate bundle with codecompletion (beta)

2010-03-04 Thread Jim Barrows
You can use the E editor for windows, and with luck soon on Linux as well. It will read and use all TextMate bundles. http://www.e-texteditor.com/ On Thu, Mar 4, 2010 at 11:17 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I might have to fire up my Mac to try this out. ;-) On Wed,

Re: [Lift] Re: SQL error

2010-03-04 Thread Jim Barrows
On Thu, Mar 4, 2010 at 1:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is blob a standard reserved word or only on MySQL? If the latter this is a potential breaking change. Blob is not apparently part of the ANSI standard reserved word for SQL. I would have sworn it was. However, it

Re: [Lift] Re: SQL error

2010-03-04 Thread Jim Barrows
folks will want to upgrade to asap. Naming columns keywords in SQL is bad. On 04/03/2010, at 22.07, Jim Barrows wrote: On Thu, Mar 4, 2010 at 1:47 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Is blob a standard reserved word or only on MySQL? If the latter this is a potential breaking

Re: [Lift] Re: IdPK Model boiler-plate

2010-03-08 Thread Jim Barrows
How about: PrimaryKeyEquality which would read something like: class foo extends IdPk with PrimaryKeyEquality On Mon, Mar 8, 2010 at 10:25 AM, David Pollak feeder.of.the.be...@gmail.com wrote: I'm going to implement this as a sub-trait of IdPK (anyone got a good name for the trait). So,

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Jim Barrows
On Mon, Mar 8, 2010 at 1:00 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: I'm not 100% clear on your proposal. First of all, is what I've done (on RB) in the meantime okay (without a ticket)? Basically, I renamed ItemsListSpecs to MapperSpecs2 and put the test for issue 370 there.

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Jim Barrows
On Mon, Mar 8, 2010 at 1:59 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Currently what I did is combine ItemListSpecs with another test, so I gave it a more generic name than ItemsList, hence MapperSpecs2. The idea is that some tests really have zero to do with the vendor, but

Re: [Lift] Reorganize mapper specs?

2010-03-08 Thread Jim Barrows
On Mon, Mar 8, 2010 at 2:16 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Not sure -- it sounded like you were describing a scenario with separate test files for each combination of area being tested and driver, where I was describing combining multiple areas in one file (like MapperSpecs

Re: [Lift] Serious widget action

2010-03-09 Thread Jim Barrows
On Tue, Mar 9, 2010 at 8:45 PM, aw anth...@whitford.com wrote: It is time for me to add some serious widgets to my lift app. So far, I am most enamored by ExtJS. Another alternative could possibly be ZK. Does anybody have any experience with these frameworks? Can you comment on why