[Lift] Re: **Important** Migration guide Scala Actors - Lift Actors

2009-10-23 Thread Heiko Seeberger
One small step for Lift and Akka, one giant leap for Scala! Thanks, David and Jonas! Heiko 2009/10/22 Marius marius.dan...@gmail.com Just Simple Beautiful ! ... Nice work Dave and Jonas. Br's, Marius On Oct 22, 9:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I

[Lift] Re: catch a URL

2009-10-23 Thread Jeppe Nejsum Madsen
Chris Lewis burningodzi...@gmail.com writes: Hi list, I'm working on an appengine app, and need to store some user information. I authenticate the user with their google account, and I need to create their local entity only if it's their first time logging in. When a user logs in via

[Lift] Re: A Critique On Lift

2009-10-23 Thread jlist9
Ross, Personally I think that Python is great for small simple things, but as soon as you start to scale the lack of statically checked guarantees starts to bite you. What you said about the problems with dynamically typed scripting language is very true. Python is so powerful but the code

[Lift] Re: A Critique On Lift

2009-10-23 Thread Ross Mellgren
On Oct 23, 2009, at 2:31 AM, jlist9 wrote: Regarding () and {} BTW, you can replace a single-argument argument list with {}, e.g. def myFunction(a: String): Unit = println(a) myFunction(foobar) myFunction { foobar } I find the following three lines of code do the same thing. Thanks for

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jonas Bonér
I love the _ operator. 2009/10/22 Timothy Perrett timo...@getintheloop.eu: I think this is a bit of a running joke in the scala comunity right now - your right, underscore really does have a number of meanings; I think this will be changed in some future Scala release. Your also

[Lift] Re: A Critique On Lift

2009-10-23 Thread Joni Freeman
I love it too. While it is used in many different places it always means stuff that I do not care to name. BTW. high priest of the lambda calculus loves it too :) It has its roots in Haskell...

[Lift] Re: A Critique On Lift

2009-10-23 Thread Viktor Klang
My personal interpretation is sh!t I don't know here or don't care what it is On Fri, Oct 23, 2009 at 9:08 AM, Joni Freeman freeman.j...@gmail.comwrote: I love it too. While it is used in many different places it always means stuff that I do not care to name. BTW. high priest of the lambda

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
I *think* you're referring to a thread I started some time ago: http://www.nabble.com/functional-newbie,-domain-entities-td22957479.html It turned out to be a lively discussion. On a related note, Jonas Boner gisted this in August: http://gist.github.com/173921 It's not full code, but it

[Lift] Re: Welcome Dirk Louwers to the Lift committers

2009-10-23 Thread Dirk Louwers
Hi all, Sorry for the late update. Had a few busy weeks business wise. I am a Dutch self taught software writer. I am running my own company from home and planning to use lift to make rich web applications. Meanwhile I work part time as a coder for a healthcare company to pay the bills. I have

[Lift] Announcing the Lift Announce group/mailing list **IMPORTANT**

2009-10-23 Thread David Pollak
Folks, After yesterday's issues surrounding the breaking changes in Lift, I've decided to create a low volume group called Lift Announce. You can see the group at http://groups.google.com/group/lift-announce?lnk=gcimh This group is an announce-only group which means that only the Lift

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jeremy Day
All, the _ name is also used frequently in C++ for template-based lambdas. At least it is in many of the Boost libraries. Jeremy On Fri, Oct 23, 2009 at 2:37 AM, Viktor Klang viktor.kl...@gmail.comwrote: My personal interpretation is sh!t I don't know here or don't care what it is On

[Lift] Re: Welcome Dirk Louwers to the Lift committers

2009-10-23 Thread Michel Klijn
Welkom Dirk, Je moet de HU ook echt te makkelijk vinden? je zit nu in de tweede? I'll continue in english ;) . As a fellow Dutchman I couldn't resist googlening you. I found out that we're going to the same School (HU). I'm a third year student and doing my internship in the US atm. I'll be back

[Lift] How to create an rss?

2009-10-23 Thread wibblecp
hi guys, I'm looking for a way to generate an rss feed with lift, I'm working on something like this (from lift-book): object OwnRssFeed extends XMLApiHelper { def dispatch: LiftRules.DispatchPF = { case Req(rss :: Nil, , GetRequest) = () = showArticles() case Req(rss :: _ :: Nil, ,

[Lift] Re: A Critique On Lift

2009-10-23 Thread bob
i believe that one of the best ways to learn a new programming language is to read software written in it when reading Scala code, I rarely say i don't understand how that works and when I do, there's usually a good explanation of it somewhere on the web. usually I find myself asking where is

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
bob wrote: i believe that one of the best ways to learn a new programming language is to read software written in it when reading Scala code, I rarely say i don't understand how that works and when I do, there's usually a good explanation of it somewhere on the web. usually I find

[Lift] Problem to process a PUT request in a lift API

2009-10-23 Thread GA
Hello guys, I have created an API to process a PUT request and a GET request. The GET works perfectly fine, but with the PUT the XML seems to be lost in its way. I have the following code: def dispatch: LiftRules.DispatchPF = { case Req(api :: person :: userName :: Nil, ,

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Thanks for that link, however it doesn't seem like rewrite rules fire for paths that are mapped in the SiteMap. Can anyone confirm that? I could have the redirect point to a non-existing URL, and do logic + rewrite there. I'm curious though, are rewrites considered if the URL matches a page

[Lift] Re: catch a URL

2009-10-23 Thread Timothy Perrett
Chris, SiteMap deals with what pages you are saying should be visible. Here, I term page as the physical xhtml file that represents the stuff the users sees - its a file on your system. Rewritten URLs dont need to feature in SiteMap because lift is clever enough to know that the page you

[Lift] Foreign Key Constraints in PostgreSQL through MappedLongForeignKey fields?

2009-10-23 Thread yk
I was running the models of One-To-Many example from WiKi (http:// wiki.github.com/dpp/liftweb/how-to-work-with-one-to-many- relationships) against PostgreSQL hoping to see a foreign key constraint on the Book table. I got an index instead. Is there a way to get schemifier to acknowledge the

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Hi Tim, I don't specifically want to rewrite anything. What I want is to be able to run some initialization code when a specific page is requested. As I said, I'm writing a google app engine app that uses google's authentication service to auth users (using their google account). I'm

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
My head just exploded. Twice. ngocdaothanh wrote: Because Lift's ad is so good. *boom* For example: Lift is the only new framework in the last four years to offer fresh and innovative approaches to web development. It's not just some incremental improvements over the status quo, it

[Lift] Re: catch a URL

2009-10-23 Thread Timothy Perrett
Ah. In that case, does this help: Menu(Loc(Some, List(some,page), Some, EarlyResponse(() = { // do some response here, // return Empty if you dont want // a response but a filter style // intercept. Empty }) )) Does that

[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 David Pollak
On Fri, Oct 23, 2009 at 9:29 AM, Jim Barrows jim.barr...@gmail.com wrote: 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... :)

[Lift] Re: How to create an rss?

2009-10-23 Thread glenn
I don't know if this will help, but I use a simple createTag to just enclose the full xml so it has a root element: def createTag(in: NodeSeq) = { apbul_apii{in}/apbul_api } and then showArticles would call into a feed wrapper, passing in the result of yield, like this for an Atom

[Lift] Re: A Critique On Lift

2009-10-23 Thread jlist9
It's often hard to describe some (I'd say most) of the Scala syntax if you want to search for an answer online. It would be great if the eclipse plugin can tell you what the code is trying to do and what kind of syntax is that, for example, linking an operator back to a method name. On Fri, Oct

[Lift] Re: Problem to process a PUT request in a lift API

2009-10-23 Thread GA
I have printed Req in the log and it looks like the XML is really empty: Req(List(), Map(), ParsePath(List(api, person),,true,false), , PutRequest, Empty) This is how I send the XML: def post(url:URL):String = { val message = person userNameJohn/userName

[Lift] Re: Problem to process a PUT request in a lift API

2009-10-23 Thread David Pollak
In order to trigger XML parsing, you have to set the Content-Type to text/xml On Fri, Oct 23, 2009 at 10:30 AM, GA my_li...@me.com wrote: I have printed Req in the log and it looks like the XML is really empty: Req(List(), Map(), ParsePath(List(api, person),,true,false), , PutRequest,

[Lift] Re: A Critique On Lift

2009-10-23 Thread Chris Lewis
jlist9 wrote: It's often hard to describe some (I'd say most) of the Scala syntax if you want to search for an answer online. I can't relate with that. I've been coding scala for 3-4 months, and I've never had any problem finding method definitions. Most of this probably had to do with

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Naftoli Gugenheim
Don't you have a Windows machine that you can install SQL Server Express on? On Wed, Oct 21, 2009 at 6:02 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Hi, I've made some changes to Mapper to better support SQL Server, particularly with Unicode text. Does anyone out there use SQL

[Lift] Re: catch a URL

2009-10-23 Thread Jeppe Nejsum Madsen
Timothy Perrett timo...@getintheloop.eu writes: Ah. In that case, does this help: Menu(Loc(Some, List(some,page), Some, EarlyResponse(() = { // do some response here, // return Empty if you dont want // a response but a filter style //

[Lift] Re: A Critique On Lift

2009-10-23 Thread bob
I'll repeat: there are no operators in scala s/operators/methods-with-operator-like-names/ anywhere, here's a typical case: import some.library.package.foo._ val a = bar 42 val b = a ~!~ 3.14159 you can't easily tell that bar is being imported via foo._ . what is bar's return type? what does

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Derek Chen-Becker
I have one virtual Win2K instance for some legacy software, but looking at the requirements that doesn't seem to be supported. On Fri, Oct 23, 2009 at 1:10 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Don't you have a Windows machine that you can install SQL Server Express on? On Wed,

[Lift] Re: Announcing the Lift Announce group/mailing list **IMPORTANT**

2009-10-23 Thread Naftoli Gugenheim
Will non-committers be able to reply on a thread? On Fri, Oct 23, 2009 at 9:07 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, After yesterday's issues surrounding the breaking changes in Lift, I've decided to create a low volume group called Lift Announce. You can see the

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 12:10 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Don't you have a Windows machine that you can install SQL Server Express on? Even if Derek does have such a machine, he's been doing an awful lot of work on Lift. Recruiting people from the community to help is

[Lift] Re: Announcing the Lift Announce group/mailing list **IMPORTANT**

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 1:04 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Will non-committers be able to reply on a thread? We'll cross-post to the Lift list. People can discuss on that list. The point of the announce list is so that people who don't have the bandwidth to track the Lift

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Naftoli Gugenheim
100%. Just curious. :) On Fri, Oct 23, 2009 at 4:05 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Oct 23, 2009 at 12:10 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Don't you have a Windows machine that you can install SQL Server Express on? Even if Derek does

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Derek Chen-Becker
I'm pretty much 100% linux at home. I can test any other database (Oracle, MySQL, PostgreSQL, etc), but SQL Server is the exception :) On Fri, Oct 23, 2009 at 2:14 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: 100%. Just curious. :) On Fri, Oct 23, 2009 at 4:05 PM, David Pollak

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

2009-10-23 Thread David Pollak
On Wed, Oct 21, 2009 at 7:20 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: It sounds like you're pretty set against making separate impl traits and would prefer just putting things directly on TimeHelper. I'm OK with that, but I would really like to add a lift-joda module that contains the

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

2009-10-23 Thread Derek Chen-Becker
Well, I had intended to write a JodaHelpers trait that is the same as Helpers except with JodaTimeHelpers and JodaTimeFormats replacing TimeHelpers and TimeFormats, respectively. The main reason is that I would like to have the time DSL be based on Periods instead of millisecond durations, and

[Lift] unnecessary COMMITs?

2009-10-23 Thread harryh
Seeing a great many of these on my postgresql logs: 2009-10-23 21:35:02 UTC WARNING: there is no transaction in progress 2009-10-23 21:35:02 UTC STATEMENT: COMMIT Any idea what might be causing this? I can filter them out but a) that would be a little annoying b) vaguely worried that

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

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 2:35 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Well, I had intended to write a JodaHelpers trait that is the same as Helpers except with JodaTimeHelpers and JodaTimeFormats replacing TimeHelpers and TimeFormats, respectively. The main reason is that I would

[Lift] Re: unnecessary COMMITs?

2009-10-23 Thread David Pollak
When an connection is finished on a thread, if no exception has happened, the connection is committed This will be fixed after I finish with defect 129 (I'm currently working on it) On Fri, Oct 23, 2009 at 2:36 PM, harryh har...@gmail.com wrote: Seeing a great many of these on my postgresql

[Lift] NetBeans is barfing on the new pom.xml structure

2009-10-23 Thread David Pollak
Folks, Any idea why NetBeans doesn't like the new Lift pom structure? 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 Surf the harmonics

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

2009-10-23 Thread Derek Chen-Becker
Period is field-based, and therefore deals with non-linear time changes like daylight savings time. Periods can be converted to millisecond durations based on standard field durations (60 seconds == 1 minute, etc) if needed, so it's a superset of the current functionality of TimeSpan. On Fri, Oct

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

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 2:55 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Period is field-based, and therefore deals with non-linear time changes like daylight savings time. Periods can be converted to millisecond durations based on standard field durations (60 seconds == 1 minute, etc)

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread Timothy Perrett
Ahhh sorry I didn't see this before - I'm using lift mapper with SQL server at work. I can test this no worries. Just let me know what I should try ;-) Cheers, Tim Sent from my iPhone On 23 Oct 2009, at 21:18, Derek Chen-Becker dchenbec...@gmail.com wrote: I'm pretty much 100% linux at

[Lift] Re: A Critique On Lift

2009-10-23 Thread Viktor Klang
But if you name your method: ashiuahsdyasdasd what does it do? On Fri, Oct 23, 2009 at 9:47 PM, bob rbpas...@gmail.com wrote: I'll repeat: there are no operators in scala s/operators/methods-with-operator-like-names/ anywhere, here's a typical case: import some.library.package.foo._

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

2009-10-23 Thread aw
That's pretty much my take. The whole Java Calendar/Date/Timezone impl is poorly designed, hence Joda Time. I like Joda Time too, and used to be apprehensive about integrating it as a dependency into my projects -- at least for simple things that I could probably do with Date/Calendar, just

[Lift] Re: Security Explained

2009-10-23 Thread aw
Thank you for this, and so quickly! I was able to leverage this for what I needed. --~--~-~--~~~---~--~~ 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

[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: SLF4J Logging for my classes

2009-10-23 Thread aw
Sure, I could create a trait as you suggested... But, this sounds like a common problem -- does this not already exist? I see discussions about adding it to Scala, but I don't think it exists. And Lift already has a logging infrastructure (i.e. LogBoot as you suggest). Does it not make sense

[Lift] Re: A Critique On Lift

2009-10-23 Thread Viktor Klang
On Sat, Oct 24, 2009 at 12:23 AM, Jim Barrows jim.barr...@gmail.com wrote: 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

[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] Re: Are we willing to make a breaking change for Joda Time?

2009-10-23 Thread Derek Chen-Becker
I could do that, but I would still have an ambiguous definition of now, today, epoch, etc if I want to use Joda Time and the requirement is that an import Helpers._ cannot conflict. The whole reason that I want to write a separate trait is that Lift currently has some nice convenience methods and

[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: Are we willing to make a breaking change for Joda Time?

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 3:53 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: I could do that, but I would still have an ambiguous definition of now, today, epoch, etc if I want to use Joda Time and the requirement is that an import Helpers._ cannot conflict. now, today and epoch are not

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

2009-10-23 Thread Derek Chen-Becker
I'll make these changes and work on improving the internal implementation of TimeSpan and TimeHelpers to work better within the existing method signatures, but I want to be clear that I'm extremely unhappy that I can't be accommodated otherwise. Thanks, Derek On Fri, Oct 23, 2009 at 5:05 PM,

[Lift] Playing around with Loc

2009-10-23 Thread Kris Nuttycombe
Hi, all, I've been messing around with Loc a bit to try to tighten up the type safety of the parameterized type and add authentication LocParams that can be aware of the current value encapsulated by the Loc. I've put up some changes on the kjn-loc-wip branch and would really like some feedback.

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Great suggestions - thanks guys! Jeppe Nejsum Madsen wrote: Timothy Perrett timo...@getintheloop.eu writes: Ah. In that case, does this help: Menu(Loc(Some, List(some,page), Some, EarlyResponse(() = { // do some response here, // return Empty if you dont

[Lift] Re: NetBeans is barfing on the new pom.xml structure

2009-10-23 Thread Kris Nuttycombe
I ran into that -it's a missing version number in the root pom. Fixed in my kjn-loc-wip branch if you just want to grab it from there. On Fri, Oct 23, 2009 at 3:41 PM, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Any idea why NetBeans doesn't like the new Lift pom structure?