[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Viktor Klang
I yield to your superiority. Seriously. 2009/6/18 Meredith Gregory > Oliver, > > Objects and monads are really not the same. At it's heart the concept of > monad is an appropriately parametric notion of composition. If you have any > experience with abstract algebra, you might recognize that the

[Lift] Lift and Goat Rodeo

2009-06-18 Thread David Pollak
Folks, At the end of the Scala Lift Off, after I finished my third beer, Martin Odersky came over to me and asked, "so, what's the future of Lift?" I gave a hand-waving answer about the features for 1.1. But Martin is not a hand-waving kind of guy and I think I owe him and the other folks in the

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread fan...@gmail.com
David Pollak a écrit : > Folks, > [...] > Over the last couple of years, I've been noticing trends in web > development, in the needs of my various consulting gigs, and in some > other projects. It's clear to me that it's time for a unified data and > data management model that goes beyond O

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread Matt Williams
This sounds very exciting David, please ensure to keep us posted on any developments. This notion of Q's - is this the method by which actors will be distributed (managed via zookeeper, i would assume)? Any reference materials you can point me to further whet my appetite? On Thu, 2009-06-18 at

[Lift] Re: Thoughts on separation of display from logic

2009-06-18 Thread Kevin Wright
How about this one then: bind(nodeseq, "prefix", ("suffix", node) -> Text("this text replaced a prefix:suffix element") ); On problem is it mucks up the Pair[String, () => NodeSeq] that bind expects, not too pretty either. One other solution I considered was an alternative overloaded version

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread Narayanaswamy, Mohan
David, Amazing, I love your PASSION. All the best. Mohan From: liftweb@googlegroups.com [mailto:lift...@googlegroups.com] On Behalf Of David Pollak Sent: 18 June 2009 15:20 To: David Pollak Subject: [Lift] Lift and Goat Rodeo Folks, At the end of the Sca

[Lift] Re: Thoughts on separation of display from logic

2009-06-18 Thread Kevin Wright
Ignore that first one, it makes no sense, really not sure what I was thinking there... On Thu, Jun 18, 2009 at 10:25 AM, Kevin Wright < kev.lee.wri...@googlemail.com> wrote: > How about this one then: > > bind(nodeseq, "prefix", > ("suffix", node) -> Text("this text replaced a prefix:suffix e

[Lift] Re: Thoughts on separation of display from logic

2009-06-18 Thread Oliver Lambert
I modified the BindHelper in the branch, I am working on some time back to allow automatic mixin binding by name. If you have in your html , then it will accept in the snippet bind("favourite", xhtml, "yourName" -> SHtml.text("show string, s => setBio(s)) and output something like if you in

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Meredith Gregory
Viktor, My co-routine yields back to yours! Hey, it's like Garrison Keillor's Tales from Lake Wobegon: where *all* of the children are above average. If you think about it, that just keeps *lift*ing the children higher and higher and higher... Speaking

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Viktor Klang
I just want to say that it's educating and awesome (in the true sense of the word) to have you on this list, enriching us with alot of good ideas, theories and concepts. 2009/6/18 Meredith Gregory > Viktor, > > My co-routine yields back to yours! > > Hey, it's like Garrison Keillor's Tales from

[Lift] BBCode2XHTML

2009-06-18 Thread Viktor Klang
Hi guys! I'm in dire need of an XSS-safe and generally harmless way of allowing end-users to add some markup to texts. In the spirit of re-use and lack of time, I wonder if any of you have any libraries to recommend that can transform a String maybe containing BBCode to the same string but with xh

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread marius d.
Dave is there a reason why writes are allowed outside a transaction boundaries ? Br's, Marius On Jun 18, 10:19 am, David Pollak wrote: > Folks, > > At the end of the Scala Lift Off, after I finished my third beer, Martin > Odersky came over to me and asked, "so, what's the future of Lift?" > >

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Meredith Gregory
Oliver, You wrote: we would have taken over Google by now. > My not-so-secret plan for taking over Google is contained in the deck i posted in response to Viktor. Part of the reason i was excited that Jonas took on t

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Oliver Lambert
Hi Greg, Thank you, I enjoyed reading that. Perhaps the Greedy Empire, should indeed, be worried. cheers Oliver 2009/6/18 Meredith Gregory > Oliver, > > You wrote: > > we would have taken over Google by now. >> > > My not-so-secret plan for taking over Google is contained in the deck i > posted

[Lift] Re: New hosting for demo.liftweb.net

2009-06-18 Thread TylerWeir
Is it just the basic slice? 128 Megatrons of RAM? On Jun 18, 1:45 am, David Pollak wrote: > Folks, > I'm trying a Xen slice on prgrm.com I'm currently > runninghttp://demo.liftweb.netthere.  Woo Hoo! > > David > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scal

[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database

2009-06-18 Thread Derek Chen-Becker
No one need fear. Greg is a benevolent evil genius ;) Seriously, it's threads like this that make me realize just how many freakin' brilliant people are on list. Derek 2009/6/18 Oliver Lambert > Hi Greg, > Thank you, I enjoyed reading that. Perhaps the Greedy Empire, should > indeed, be worried

[Lift] Re: BBCode2XHTML

2009-06-18 Thread marius d.
Isn't Lift XSS safe by default ? ... in the sense that it applies the proper escaping. Br's, Marius On Jun 18, 2:06 pm, Viktor Klang wrote: > Hi guys! > > I'm in dire need of an XSS-safe and generally harmless way of allowing > end-users to add some markup to texts. > In the spirit of re-use an

[Lift] Re: BBCode2XHTML

2009-06-18 Thread David Pollak
Lift's Textile support is what you want. See the chat window on http://demo.liftweb.net Enter I like *beer* into the window and see what happens. And yes, it's XSS safe. On Thu, Jun 18, 2009 at 4:06 AM, Viktor Klang wrote: > Hi guys! > > I'm in dire need of an XSS-safe and generally harmless wa

[Lift] Error during sign-up

2009-06-18 Thread Tobias Daub
Hi There, I just got this error when I tried to sign-up a new user with the default interface. thanks -- Exception occured while processing /user_mgt/sign_up Message: java.lang.AbstractMethodError: org.tobster.model.User$.addlQueryParams()Lnet/liftweb/mapper/MetaMapp

[Lift] error during sign-up (solved)

2009-06-18 Thread Tobias Daub
Sorry, After I did "mvn clean install" it was ok. thanks anyway --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from thi

[Lift] Re: BBCode2XHTML

2009-06-18 Thread Matt Williams
Theres a textile package available in the repository. And its now 30x faster! :) On Thu, 2009-06-18 at 13:06 +0200, Viktor Klang wrote: > Hi guys! > > I'm in dire need of an XSS-safe and generally harmless way of allowing > end-users to add some markup to texts. > In the spirit of re-use and lac

[Lift] selectObj again

2009-06-18 Thread Tobias Daub
Hi There, I'm still having problems with the selectObj method. Here's the code: */* The basic trade types are: BUY and SELL */ object tradeType extends MappedLongForeignKey(this.asInstanceOf[MapperType], TradeTypeMetaObj){ override def _toForm = Full(SHtml.selectObj

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread maku
David, that sounds really great. I tried to think about what's a good approach to be really scalable in context of data writing/reading (e.g. when you have to write an app for a huge number of users) A RDMBS approach would not be sufficient. Looking forward for further information for this subje

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread David Pollak
On Thu, Jun 18, 2009 at 4:23 AM, marius d. wrote: > > Dave is there a reason why writes are allowed outside a transaction > boundaries ? Writes are not allowed outside of transactional boundaries. You have to enter a transaction to get a TRef, a transactional reference. You can only read or w

[Lift] Re: New hosting for demo.liftweb.net

2009-06-18 Thread David Pollak
On Thu, Jun 18, 2009 at 6:21 AM, TylerWeir wrote: > > Is it just the basic slice? 128 Megatrons of RAM? It's running on the 512mb slice... at $12/mo it seemed like a reasonable price to pay. > > > On Jun 18, 1:45 am, David Pollak > wrote: > > Folks, > > I'm trying a Xen slice on prgrm.com I'

[Lift] Re: Error during sign-up

2009-06-18 Thread Derek Chen-Becker
This looks like it's related to the code that David just committed. I wonder if your maven repo is out of sync. Can you try wiping ~/.m2 and see if that fixes it? Derek On Thu, Jun 18, 2009 at 5:01 AM, Tobias Daub wrote: > > Hi There, > > I just got this error when I tried to sign-up a new user

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread TSP
Hi David, I am working in the "typical business application" space, where rdbms are quite nice solutions - lots of tables but in your application you never really need an awful lot of rows for anything other than consolidated reporting. What concerns me is that if the attention of the principal au

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread David Pollak
On Thu, Jun 18, 2009 at 8:29 AM, TSP wrote: > > Hi David, > I am working in the "typical business application" space, where rdbms > are quite nice solutions - lots of tables but in your application you > never really need an awful lot of rows for anything other than > consolidated reporting. > Wh

[Lift] Neo4J

2009-06-18 Thread Jeremy Day
Good morning, Has anyone used a graph database, such as Neo4J, as their back end in a Lift project? Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@g

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread TSP
Thanks David, That's very encouraging. Do have fun with Goat Rodeo Tim > > Tim, > > I'm not leaving Lift. ... I'm much more focused on enhancing Lift, > Lift-related technologies and contributing to the Lift community. > > Thanks, > --~--~-~--~~~---~--~~ You recei

[Lift] REST & Record

2009-06-18 Thread Marius
Hi, I think that Record framework may play a relevant role in processing REST requests. I mean picture the following model: class MyRecord extends Record[MyRecord] { def meta = MyRecordMeta object firstName extends StringField(this, "John") object lastName extends Strin

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread marius d.
Sorry Dave but something still escapes me. Transaction.write also takes a TRef parameter which is never used. Furthermore nothing seems to prevent one to call new TRef... outside a Transaction. I assume the normal usage is: val ref = new Ref(QString("")) ref.map(tref => // do transactional rea

[Lift] lift-paypal: Paypal Production PDT not working - help!

2009-06-18 Thread Dano
I trying to get our site (buyafeature.com) live today and ran into a problem with the paypal feature. I am using the lift-paypal module and things have been working just fine in development. The problem I am seeing is that when I press the "Return to Website" button in paypal, it tries to redire

[Lift] Re: Thoughts on separation of display from logic

2009-06-18 Thread Kris Nuttycombe
Though that's undeniably a bit of a rabbit hole, it would also be the fully general solution and could have really interesting applications in terms of being able to bind not just full NodeSeqs but individual attributes, and even attributes in multiple nodes. Sounds like an exciting feature to me!

[Lift] Re: lift-paypal: Paypal Production PDT not working - help!

2009-06-18 Thread Dano
More information: In my object which extends PaypalPDT, I had a line which overridded the variable pdtPath: override def pdtPath = "complete" On Jun 18, 11:58 am, Dano wrote: > I trying to get our site (buyafeature.com) live today and ran into a > problem with the paypal feature.  I am using

[Lift] Re: lift-paypal: Paypal Production PDT not working - help!

2009-06-18 Thread Dano
Sorry, my post got submitted too early. When I commented out the line: override def pdtPath = "complete" I get the same failure mode as in production. Do I need to set pdtPath or what do I change to work with the default? Thanks. Dan On Jun 18, 12:04 pm, Dano wrote: > More information: > >

[Lift] interaction with hibernate crowd?

2009-06-18 Thread Meredith Gregory
Lifted and Scalata, Has anyone had any joy engaging the hibernate crowd? i've been trying every channel i can to get someone in the hibernate know to take a look at what i believe is a bug and no one even responds at all. Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC

[Lift] Re: Lift and Goat Rodeo

2009-06-18 Thread David Pollak
Yeah... I haven't sealed things yet. You can do these things... but not for long. ;-) On Jun 18, 2009 10:36 AM, "marius d." wrote: Sorry Dave but something still escapes me. Transaction.write also takes a TRef parameter which is never used. Furthermore nothing seems to prevent one to call new

[Lift] Re: Neo4J

2009-06-18 Thread Viktor Klang
I think I was the first external committer to Neo4j.It is a really interesting product, and I had quite a few nice use-cases for it, but unfortunately their adoption of AfferoGPLv3 prohibited me from using it. Viktor, Lift Scala 18 jun 2009 kl. 17.39 Jeremy Day skrev: > Good morning, > > H

[Lift] Re: lift-paypal: Paypal Production PDT not working - help!

2009-06-18 Thread Dano
Resolved. I backed out my override on pdtPath and adjusted my paypal configuration to point to /paypal/pdt and things worked. Moral of the story: Do NOT override pdtPath!! On Jun 18, 12:07 pm, Dano wrote: > Sorry, my post got submitted too early. > > When I commented out the line: override def

[Lift] Re: interaction with hibernate crowd?

2009-06-18 Thread Viktor Klang
Gregory, send the available debug info regarding the suspected defect and I'll see what I can do. Viktor, Rogue Software Architect 18 jun 2009 kl. 21.24 Meredith Gregory skrev: > Lifted and Scalata, > > Has anyone had any joy engaging the hibernate crowd? i've been > trying every channel i

[Lift] Re: Neo4J

2009-06-18 Thread Jeremy Day
Viktor, Interesting. I'm starting the very initial development on a little commercial product and I'm thinking about using Neo4J as the back end. I'll need to eyeball their license again to make sure that it's compatible with what I want to do. Jeremy On Thu, Jun 18, 2009 at 2:53 PM, Viktor Kl

[Lift] Very basic questions

2009-06-18 Thread DFectuoso
Hi! I'm starting to use lift/scala(I don't know either) and already I have a couple of (very very basic) questions. I'm reading "The definitive guide to lift" and even tho it's been enough to actually understand some of the key elements of a lift application I am having some problems understanding

[Lift] Re: Neo4J

2009-06-18 Thread Viktor Klang
Last time I checked they had commercial licenses for sale (contact for pricing details) Viktor, Rogue Software Architect 18 jun 2009 kl. 22.10 Jeremy Day skrev: > Viktor, > > Interesting. I'm starting the very initial development on a little > commercial product and I'm thinking about usin

[Lift] Re: interaction with hibernate crowd?

2009-06-18 Thread Meredith Gregory
Viktor, i finally got someone on the hibernate IRC channel to take a look at the problem. He claims that if he removes the final declarator from a field for which i have only a getter and then adds a setter hibernate works as advertised. i will test this out. If no joy i might take you up on your

[Lift] Re: interaction with hibernate crowd?

2009-06-18 Thread Meredith Gregory
All, Can anyone recommend an alternative to hibernate for a JPA implementation? i've been stuck on this bug for several days, now; i need to move on. Best wishes, --greg On Thu, Jun 18, 2009 at 2:09 PM, Meredith Gregory wrote: > Viktor, > > i finally got someone on the hibernate IRC channel to

[Lift] Re: Very basic questions

2009-06-18 Thread Kris Nuttycombe
Hi, and welcome to Lift! On Thu, Jun 18, 2009 at 10:46 AM, DFectuoso wrote: > > Hi! I'm starting to use lift/scala(I don't know either) and already I > have a couple of (very very basic) questions. > I'm reading "The definitive guide to lift" and even tho it's been > enough to actually understand

[Lift] Re: interaction with hibernate crowd?

2009-06-18 Thread Kris Nuttycombe
Ah, this makes sense to me. Final fields in Hibernate-manage objects will almost certainly cause problems in my experience (at least using field-based access; I've no experience with property-based mappings.) Kris. On Thu, Jun 18, 2009 at 3:09 PM, Meredith Gregory wrote: > Viktor, > > i finally

[Lift] Re: interaction with hibernate crowd?

2009-06-18 Thread Derek Chen-Becker
Is this final field something that is intended to be retrieved from the DB? As far as I know, JPA doesn't support final fields, period. If this getter is really just wrapping something else, it should be marked as @Transient. Derek On Thu, Jun 18, 2009 at 4:09 PM, Meredith Gregory wrote: > Vikto

[Lift] Re: lift-paypal: Paypal Production PDT not working - help!

2009-06-18 Thread Derek Chen-Becker
It seems to me that the pdtPath should be configurable. If other people agree we should at least open an issue on GitHub to track this. Derek On Thu, Jun 18, 2009 at 3:07 PM, Dano wrote: > > Resolved. > > I backed out my override on pdtPath and adjusted my paypal > configuration to point to /pa

[Lift] Re: interaction with hibernate crowd?

2009-06-18 Thread Meredith Gregory
Derek, Kris, Thanks. The problem is more subtle. i have modified my code emitter to not mark the field as final and to add the setter. i still get the same problem. However, i've got sample code derived from the emitted code that generates the correct schema. That is the key is used, not a tinyblo

[Lift] Making MetaMegaProtoUser "templateable"

2009-06-18 Thread dflemstr
Hello everyone, I'm having some problems with making the MetaMegaProtoUser "edit" method templateable (because I believe in the concept of separating content and design) and am succeeding quite well, except for with one little detail: I can't make my changes in the edit form persistent; it seems t

[Lift] Properties Files and Databases

2009-06-18 Thread Peter Robinett
Hi all, I'm looking to switch a basic Lift install to use MySQL. I see that this has been addressed on the wiki (http://wiki.liftweb.net/index.php/ HowTo_configure_lift_with_MySQL), though it involves hardcoding the connection details in Boot.scala. I'd like something easier to deploy to various

[Lift] Re: New hosting for demo.liftweb.net

2009-06-18 Thread Derek Chen-Becker
Is it really at prgrm.com? If I go there it looks like a hacked site... http://www.prgrm.com/ Derek On Thu, Jun 18, 2009 at 9:25 AM, David Pollak wrote: > > > On Thu, Jun 18, 2009 at 6:21 AM, TylerWeir wrote: > >> >> Is it just the basic slice? 128 Megatrons of RAM? > > > It's running on the

[Lift] Re: New hosting for demo.liftweb.net

2009-06-18 Thread Alex Boisvert
Typo: http://www.prgmr.com/ On Thu, Jun 18, 2009 at 4:18 PM, Derek Chen-Becker wrote: > Is it really at prgrm.com? If I go there it looks like a hacked site... > > http://www.prgrm.com/ > > Derek > > > On Thu, Jun 18, 2009 at 9:25 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >

[Lift] Mapper and display generation

2009-06-18 Thread glenn
I'm looking for a relatively simple way to modify the form and form elements that are generated by Mapper, such as adding or modifying attributes. I've been using the following method in my model classes that extend Mapper: def mf(in: Node, name:String, value:String): NodeSeq = in match {

[Lift] Re: Thoughts on separation of display from logic

2009-06-18 Thread David Pollak
On Thu, Jun 18, 2009 at 11:27 AM, Kris Nuttycombe wrote: > > Though that's undeniably a bit of a rabbit hole, it would also be the > fully general solution and could have really interesting applications > in terms of being able to bind not just full NodeSeqs but individual > attributes, and even

[Lift] Re: lift-paypal: Paypal Production PDT not working - help!

2009-06-18 Thread David Pollak
On Thu, Jun 18, 2009 at 3:17 PM, Derek Chen-Becker wrote: > It seems to me that the pdtPath should be configurable. If other people > agree we should at least open an issue on GitHub to track this. Sure. > > > Derek > > > On Thu, Jun 18, 2009 at 3:07 PM, Dano wrote: > >> >> Resolved. >> >> I

[Lift] Re: New hosting for demo.liftweb.net

2009-06-18 Thread David Pollak
On Thu, Jun 18, 2009 at 4:32 PM, Alex Boisvert wrote: > Typo: > > http://www.prgmr.com/ > Thanks... can't spell... can't type > > > On Thu, Jun 18, 2009 at 4:18 PM, Derek Chen-Becker > wrote: > >> Is it really at prgrm.com? If I go there it looks like a hacked site... >> >> http://www.prgrm.c

[Lift] Re: Properties Files and Databases

2009-06-18 Thread David Pollak
If your username is peter, put a file in src/main/resources/props named peter.props In that file, place the following lines: db.driver=*the_name_name_of_your_driver* db.url=*the_url_to_access_your_database* db.user=*the_username* db.password=*the_db_password* test.me=true ** ** Add the following

[Lift] Re: Making MetaMegaProtoUser "templateable"

2009-06-18 Thread David Pollak
I'd suggest copying/pasting the code from ProtoUser and MegaProtoUser and munging the code so that you don't have to work around the embedded MegaProtoUser code. See http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/User.scala?r1=779789&r2=784317&diff_fo

[Lift] Re: selectObj again

2009-06-18 Thread David Pollak
Try: SHtml.selectType[TradeType]() On Thu, Jun 18, 2009 at 6:30 AM, Tobias Daub wrote: > > Hi There, > > I'm still having problems with the selectObj method. > > Here's the code: > > */* The basic trade types are: BUY and SELL */ >object tradeType extends > MappedLongForeignKey(this.asI