[Lift] Re: Lift newbie - Horizontal scaling of Lift servers
Thanks for the answer David. There's a second implication to this - having a hot backup is nice in case an app server goes down. Ikai --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] We need a wiki gardener
Folks, The Lift wiki has a lot of weeds growing in it. We really need a wiki gardener who will go through an remove or re-write all the code examples based on old versions of Lift. Any takers? Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] How do you get Jorge's LinkShare Comet example to work?
I realize this is two years old: http://scala-blogs.org/2007/12/dynamic-web-applications-with-lift-and.html First things first, S is now SHtml, but now I am having problems with this line: [WARNING] error: wrong number of parameters; expected = 0 [WARNING] { SHtml.submit(Submit, ignore = (LinkStore ! AddLink (url, title))) } I'm trying to look for API documentation, but the API Documentation link is not terribly helpful (http://scala-tools.org/mvnsites/ liftweb/). Does anyone have any tips on how I can get all the code in this example to work or what else might have changed between when the post was written and now? --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: How do you get Jorge's LinkShare Comet example to work?
On Sun, Mar 1, 2009 at 2:01 PM, Ikai Lan ikai@gmail.com wrote: I realize this is two years old: http://scala-blogs.org/2007/12/dynamic-web-applications-with-lift-and.html First things first, S is now SHtml, but now I am having problems with this line: [WARNING] error: wrong number of parameters; expected = 0 [WARNING] { SHtml.submit(Submit, ignore = (LinkStore ! AddLink (url, title))) } Try: { SHtml.submit(Submit, () = LinkStore ! AddLink(url, title)) } I'm trying to look for API documentation, but the API Documentation link is not terribly helpful (http://scala-tools.org/mvnsites/ liftweb/). Does anyone have any tips on how I can get all the code in this example to work or what else might have changed between when the post was written and now? -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift newbie - Horizontal scaling of Lift servers
David, I'm in the same boat. I have an app I originally coded in Rails. Then I recoded it in Merb (much better, but now I'm unhappy with the merb-rails merger). I'm testing out lift now to see about recoding it once again before the app gets too complex. I also have another app or two to build and would like a single framework to grow with. I'm not interested in ditching ruby/merb for performance reasons as merb is ok for my needs. I'm interested in lift as I would like one go forward language (I've been tracking scala for a few years now) and am not compeltely happy with ruby or its frameworks. Hope this list doesn't mind me peppering it with noob questions as I spend the next week or two seeing if I can quickly recode my app with lift. thanks, Jon On Feb 28, 6:21 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan ikai@gmail.com wrote: Hi, I'm looking to learn Lift coming from working with Ruby on Rails for a while and I've been voraciously consuming the documentation and tutorials that are available on the internet. There are a few things I really like about Lift so far: - Out of the box Comet support - Rapid development (incremental compiles are awesome) - Being able to design without having to think of the request/response cycle* I'm putting an asterisk on the last item because I'm a bit confused how this will work in a production application running two or more load balanced Lift instances of the same application. You need a load balancer that's either JSESSIONID aware or can be tuned to work with Lift's feature that re-writes URLs in such a way that it's easy to have a load balancer send the requests back to the specific server that houses the Lift session. The fact that form processing can happen without inspecting GET/POST params or dealing with data that needs to life longer than a standard request cycle is pretty neat, but it raises questions about horizontal scalability. Where is the session data stored? In the app server where the session was initialized. If it is in-memory by default, are there any best practices for sharing session data across application servers, or is the recommended solution to use load balancer affinity? The latter. With all this being said, I have significant operational experience with the highest volume RoR powered site. A quad-core Intel/AMD box running Lift could have handled all of its traffic. So, unless you're expecting to have significantly more traffic than Twitter... unless you're site is saturating a gigabit ethernet card, you can run it on a single server with Lift. Thanks, David Ikai -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: url encoded javascript
Lee, If you want to include a JavaScript script on the page, the easiest mechanism is: import net.liftweb.http._ import js._ import JsCmds._ import JE._ Script(JsRaw(a String containing the raw script)) This will create a script tag on the page and put a // ![CDATA[ in it followed by your script followed by //]] and the closing /script tag. If this is not what you were looking to do, please let us know. Thanks, David On Thu, Feb 26, 2009 at 11:28 AM, Lee Mighdoll leemighd...@gmail.comwrote: I'd like to make a bookmarklet snippet. So I want to take a short javascript file, encode it as url, and then include it in a snippet. Any suggestions? Not sure whether to solve this with mvn or lift -- I'm new to both. -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift newbie - Horizontal scaling of Lift servers
On Sun, Mar 1, 2009 at 2:43 PM, Jon Hancock shellsha...@gmail.com wrote: David, I'm in the same boat. I have an app I originally coded in Rails. Then I recoded it in Merb (much better, but now I'm unhappy with the merb-rails merger). I'm testing out lift now to see about recoding it once again before the app gets too complex. I also have another app or two to build and would like a single framework to grow with. I'm not interested in ditching ruby/merb for performance reasons as merb is ok for my needs. I'm interested in lift as I would like one go forward language (I've been tracking scala for a few years now) and am not compeltely happy with ruby or its frameworks. Hope this list doesn't mind me peppering it with noob questions as I spend the next week or two seeing if I can quickly recode my app with lift. Keep peppering. Perhaps you and Charles Munat could team up and write the Lift for recovering Rails developers guide. thanks, Jon On Feb 28, 6:21 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan ikai@gmail.com wrote: Hi, I'm looking to learn Lift coming from working with Ruby on Rails for a while and I've been voraciously consuming the documentation and tutorials that are available on the internet. There are a few things I really like about Lift so far: - Out of the box Comet support - Rapid development (incremental compiles are awesome) - Being able to design without having to think of the request/response cycle* I'm putting an asterisk on the last item because I'm a bit confused how this will work in a production application running two or more load balanced Lift instances of the same application. You need a load balancer that's either JSESSIONID aware or can be tuned to work with Lift's feature that re-writes URLs in such a way that it's easy to have a load balancer send the requests back to the specific server that houses the Lift session. The fact that form processing can happen without inspecting GET/POST params or dealing with data that needs to life longer than a standard request cycle is pretty neat, but it raises questions about horizontal scalability. Where is the session data stored? In the app server where the session was initialized. If it is in-memory by default, are there any best practices for sharing session data across application servers, or is the recommended solution to use load balancer affinity? The latter. With all this being said, I have significant operational experience with the highest volume RoR powered site. A quad-core Intel/AMD box running Lift could have handled all of its traffic. So, unless you're expecting to have significantly more traffic than Twitter... unless you're site is saturating a gigabit ethernet card, you can run it on a single server with Lift. Thanks, David Ikai -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift newbie - Horizontal scaling of Lift servers
if I can get a lift version of my app http://shellshadow.com done in a few weeks, I could go for it. I am very happy to release the source to the rails, merb, and lift version so folks would have a real app to compare. Jon On Mar 1, 4:49 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Mar 1, 2009 at 2:43 PM, Jon Hancock shellsha...@gmail.com wrote: David, I'm in the same boat. I have an app I originally coded in Rails. Then I recoded it in Merb (much better, but now I'm unhappy with the merb-rails merger). I'm testing out lift now to see about recoding it once again before the app gets too complex. I also have another app or two to build and would like a single framework to grow with. I'm not interested in ditching ruby/merb for performance reasons as merb is ok for my needs. I'm interested in lift as I would like one go forward language (I've been tracking scala for a few years now) and am not compeltely happy with ruby or its frameworks. Hope this list doesn't mind me peppering it with noob questions as I spend the next week or two seeing if I can quickly recode my app with lift. Keep peppering. Perhaps you and Charles Munat could team up and write the Lift for recovering Rails developers guide. thanks, Jon On Feb 28, 6:21 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan ikai@gmail.com wrote: Hi, I'm looking to learn Lift coming from working with Ruby on Rails for a while and I've been voraciously consuming the documentation and tutorials that are available on the internet. There are a few things I really like about Lift so far: - Out of the box Comet support - Rapid development (incremental compiles are awesome) - Being able to design without having to think of the request/response cycle* I'm putting an asterisk on the last item because I'm a bit confused how this will work in a production application running two or more load balanced Lift instances of the same application. You need a load balancer that's either JSESSIONID aware or can be tuned to work with Lift's feature that re-writes URLs in such a way that it's easy to have a load balancer send the requests back to the specific server that houses the Lift session. The fact that form processing can happen without inspecting GET/POST params or dealing with data that needs to life longer than a standard request cycle is pretty neat, but it raises questions about horizontal scalability. Where is the session data stored? In the app server where the session was initialized. If it is in-memory by default, are there any best practices for sharing session data across application servers, or is the recommended solution to use load balancer affinity? The latter. With all this being said, I have significant operational experience with the highest volume RoR powered site. A quad-core Intel/AMD box running Lift could have handled all of its traffic. So, unless you're expecting to have significantly more traffic than Twitter... unless you're site is saturating a gigabit ethernet card, you can run it on a single server with Lift. Thanks, David Ikai -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] incremental or live dev with lift
I was under the impression that in development mode, I could modify my lift files and see the changes without restarting jetty. I have created the helloworld sample app from the lift book. It seems to run fine (command line, not ecplise, as I'm following the docs closely to get started). In HelloWorld.scala I change the line: def howdy = spanWelcome to helloworld at {new java.util.Date}/span to: def howdy = spanWelcome to NOW helloworld at {new java.util.Date}/ span and refresh my browser. nothing. I still get the old version. Am I doing something wrong? Or does lift not support this and I have to restart the server to test each change? thanks, Jon --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] eclipse plugin and scala shell
Does the eclipse plugin support the scala interactive shell? I would like to be able to develop my lift app in eclipse and interactively test model and controller behavior with the shell. How do others do this with lift?? thanks, Jon --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: eclipse plugin and scala shell
The eclipse plugin does mostly support the interactive shell, but the integration isn't that great right now (I'm allowed to crtique it, as I added it). I'm working on upgrading for better functionality. In the meantime, if you're not using windows, you should be able to run the interpreter via right clicking on a project in the Package explorer and selecting Scala - Create interpreter in XYZ On Sun, Mar 1, 2009 at 6:30 PM, Jon Hancock shellsha...@gmail.com wrote: Does the eclipse plugin support the scala interactive shell? I would like to be able to develop my lift app in eclipse and interactively test model and controller behavior with the shell. How do others do this with lift?? thanks, Jon --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: eclipse plugin and scala shell
I see what you mean. Just tried it and the shell cranks up but doesn't seem to work at all. I'm on OS X 10.5.6 typing :help doesn't work typing 1 + 2 also doesn't do anything. any idea when you might have a new release? Jon On Mar 1, 5:36 pm, Josh Suereth joshua.suer...@gmail.com wrote: The eclipse plugin does mostly support the interactive shell, but the integration isn't that great right now (I'm allowed to crtique it, as I added it). I'm working on upgrading for better functionality. In the meantime, if you're not using windows, you should be able to run the interpreter via right clicking on a project in the Package explorer and selecting Scala - Create interpreter in XYZ On Sun, Mar 1, 2009 at 6:30 PM, Jon Hancock shellsha...@gmail.com wrote: Does the eclipse plugin support the scala interactive shell? I would like to be able to develop my lift app in eclipse and interactively test model and controller behavior with the shell. How do others do this with lift?? thanks, Jon --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift newbie - Horizontal scaling of Lift servers
Oh, yeah! I'll see if my clone has any free time... :-) Seriously though, I'm drowning right now, but if there's any way I can help that doesn't require too much time, I'll do it. (I'm actually writing a couple of tiny Merb sites this week (I hope), in part to see how Merb differs, and in part because with luck I can offload a bit of work onto my brother, who is a Rails programmer.) Chas. David Pollak wrote: On Sun, Mar 1, 2009 at 2:43 PM, Jon Hancock shellsha...@gmail.com mailto:shellsha...@gmail.com wrote: David, I'm in the same boat. I have an app I originally coded in Rails. Then I recoded it in Merb (much better, but now I'm unhappy with the merb-rails merger). I'm testing out lift now to see about recoding it once again before the app gets too complex. I also have another app or two to build and would like a single framework to grow with. I'm not interested in ditching ruby/merb for performance reasons as merb is ok for my needs. I'm interested in lift as I would like one go forward language (I've been tracking scala for a few years now) and am not compeltely happy with ruby or its frameworks. Hope this list doesn't mind me peppering it with noob questions as I spend the next week or two seeing if I can quickly recode my app with lift. Keep peppering. Perhaps you and Charles Munat could team up and write the Lift for recovering Rails developers guide. thanks, Jon On Feb 28, 6:21 pm, David Pollak feeder.of.the.be...@gmail.com mailto:feeder.of.the.be...@gmail.com wrote: On Sat, Feb 28, 2009 at 2:37 PM, Ikai Lan ikai@gmail.com mailto:ikai@gmail.com wrote: Hi, I'm looking to learn Lift coming from working with Ruby on Rails for a while and I've been voraciously consuming the documentation and tutorials that are available on the internet. There are a few things I really like about Lift so far: - Out of the box Comet support - Rapid development (incremental compiles are awesome) - Being able to design without having to think of the request/response cycle* I'm putting an asterisk on the last item because I'm a bit confused how this will work in a production application running two or more load balanced Lift instances of the same application. You need a load balancer that's either JSESSIONID aware or can be tuned to work with Lift's feature that re-writes URLs in such a way that it's easy to have a load balancer send the requests back to the specific server that houses the Lift session. The fact that form processing can happen without inspecting GET/POST params or dealing with data that needs to life longer than a standard request cycle is pretty neat, but it raises questions about horizontal scalability. Where is the session data stored? In the app server where the session was initialized. If it is in-memory by default, are there any best practices for sharing session data across application servers, or is the recommended solution to use load balancer affinity? The latter. With all this being said, I have significant operational experience with the highest volume RoR powered site. A quad-core Intel/AMD box running Lift could have handled all of its traffic. So, unless you're expecting to have significantly more traffic than Twitter... unless you're site is saturating a gigabit ethernet card, you can run it on a single server with Lift. Thanks, David Ikai -- Lift, the simply functional web frameworkhttp://liftweb.net http://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 http://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: eclipse plugin and scala shell
Depends on when I get enough free time to work out the remaining bugs! I try to keep my work public and up-to-date here: http://github.com/jsuereth/scala-plugin/tree/master See the interpreter-dev branch. I believe the current interpreter only works on ubuntu, but that branch should fix for all platforms (assuming you have the right run configuration setup) On Sun, Mar 1, 2009 at 6:49 PM, Jon Hancock shellsha...@gmail.com wrote: I see what you mean. Just tried it and the shell cranks up but doesn't seem to work at all. I'm on OS X 10.5.6 typing :help doesn't work typing 1 + 2 also doesn't do anything. any idea when you might have a new release? Jon On Mar 1, 5:36 pm, Josh Suereth joshua.suer...@gmail.com wrote: The eclipse plugin does mostly support the interactive shell, but the integration isn't that great right now (I'm allowed to crtique it, as I added it). I'm working on upgrading for better functionality. In the meantime, if you're not using windows, you should be able to run the interpreter via right clicking on a project in the Package explorer and selecting Scala - Create interpreter in XYZ On Sun, Mar 1, 2009 at 6:30 PM, Jon Hancock shellsha...@gmail.com wrote: Does the eclipse plugin support the scala interactive shell? I would like to be able to develop my lift app in eclipse and interactively test model and controller behavior with the shell. How do others do this with lift?? thanks, Jon --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: eclipse plugin and scala shell
Not too bad (it's more how much memory should you give), If I have some time to test on windows, the new patch may work. On Sun, Mar 1, 2009 at 7:33 PM, Miles Sabin mi...@milessabin.com wrote: On Mon, Mar 2, 2009 at 12:27 AM, Josh Suereth joshua.suer...@gmail.com wrote: See the interpreter-dev branch. I believe the current interpreter only works on ubuntu, but that branch should fix for all platforms (assuming you have the right run configuration setup) I don't think it's distro-specific ;-) Works fine for me on Fedora ... How difficult would it be to just fix the OOMs on Mac OS and Windows? Cheers, Miles -- Miles Sabin tel:+44 (0)1273 720 779 mobile: +44 (0)7813 944 528 skype: milessabin --~--~-~--~~~---~--~~ 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 this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---