[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 wrote: > Folks, > > Any idea why NetBeans doesn't like the new Lift pom structure? > > Thanks, > > David > > -- > L

[Lift] Re: catch a URL

2009-10-23 Thread Chris Lewis
Great suggestions - thanks guys! Jeppe Nejsum Madsen wrote: > Timothy Perrett 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 wan

[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: 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, Dav

[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 wrote: > 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 part of TimeSpa

[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 lif

[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

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jim Barrows
On Fri, Oct 23, 2009 at 3:28 PM, Viktor Klang wrote: > On Sat, Oct 24, 2009 at 12:23 AM, Jim Barrows wrote: > >> On Fri, Oct 23, 2009 at 3:17 PM, Viktor Klang wrote: >> >>> But if you name your method: "ashiuahsdyasdasd" what does it do? >>> >> >> Oh Bloddy Ell... that caused Cthulu to appear on m

[Lift] Re: A Critique On Lift

2009-10-23 Thread Viktor Klang
On Sat, Oct 24, 2009 at 12:23 AM, Jim Barrows wrote: > > > On Fri, Oct 23, 2009 at 3:17 PM, Viktor Klang wrote: > >> 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 > Chtuluh ftagn! ;D > >

[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 to

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jim Barrows
On Fri, Oct 23, 2009 at 3:17 PM, Viktor Klang wrote: > 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 wrote: > >> >> >I'll repeat: there are no operators

[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 unsub

[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: 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 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._ > > val a =

[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 wrote: > I'm pretty much 100% linux at home. I can test any o

[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 wrote: > 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

[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, Oc

[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: 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 wrote: > > Seeing a great many of these on my postgresql logs: > > 2009-1

[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 wrote: > 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

[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 somethi

[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 with

[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 wrote: > 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 > JodaHelpers, Jod

[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 wrote: > 100%. Just curious. :) > > > On Fri, Oct 23, 2009 at 4:05 PM, David Pollak < > feeder.of.the.be...@gma

[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 wrote: > > > On Fri, Oct 23, 2009 at 12:10 PM, Naftoli Gugenheim > wrote: > >> 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 aw

[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 wrote: > 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 list can still get h

[Lift] Re: Testing for SQL Server drivers

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 12:10 PM, Naftoli Gugenheim wrote: > 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 encouraged. > > > O

[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 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 > group at http://groups.googl

[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 wrote: > Don't you have a Windows machine that you can install SQL Server Express > on? > > > On Wed, Oct 21, 2009 at 6

[Lift] Re: How to create an rss?

2009-10-23 Thread wibblecp
Hi Glenn thanks for your reply. It seems to work for me :-) I was confused between AtomResponse, Box[NodeSeq] and LiftResponse. I am at beginning of this journey. regards, wibblecp. On 23 Ott, 18:49, glenn wrote: > I don't know if this will help, but I use a simple createTag to just > enclose t

[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: catch a URL

2009-10-23 Thread Jeppe Nejsum Madsen
Timothy Perrett 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 > // intercept.

[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 wrote: > Hi, > I've made some changes to Mapper to better support SQL Server, > particularly with Unicode text. Does anyone out there use SQL Server that > would be

[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 th

[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 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, Empty) > > This

[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 = John John Smith

[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: 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) = { {in} } and then showArticles would call into a feed wrapper, passing in the result of yield, like this for an Atom feed: //Reacts to G

[Lift] Re: A Critique On Lift

2009-10-23 Thread David Pollak
On Fri, Oct 23, 2009 at 9:29 AM, Jim Barrows wrote: > > On Fri, Oct 23, 2009 at 9:15 AM, Chris Lewis wrote: > >> >> 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 L

[Lift] Re: A Critique On Lift

2009-10-23 Thread Jim Barrows
On Fri, Oct 23, 2009 at 9:15 AM, Chris Lewis wrote: > > 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 thought was "Y

[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

[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, i

[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 instruct

[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 fo

[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 yo

[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 in

[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: 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

[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] 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" :: _ ::

[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] 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 wrote: > My personal interpretation is "sh!t I don't know here or don't care what it > is" > > > On Fri, Oct 23, 2009

[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 committers

[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 m

[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 gi

[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 wrote: > > 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" lov

[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... http://channel9.msdn.com/shows/Going+Deep/C9-Lectures-Dr-Erik-Meijer-Functional-Programming-Fundam