Hi,
For the new logging code I need a setup that I can't really see how to
achieve with Maven:
1) Both slf4j-log4j and logback-classic needs to be on the classpath
when compiling
2) Only sf4j-log4j should be on the classpath when testing
3) None should be included in the generated pom
Well you summarized pretty well what I feel about this. Essentially
the way I see it startup configuration things could exists in other
classes/objects but should be accessible through LiftRules.
A little off-topic ... I'm not at all a FactoryMaker-s fan :p
Br's,
Marius
On Feb 26, 5:01 am,
That reminds me - we need to clean up the FactoryMaker API
Cheers, Tim
Sent from my iPhone
On 26 Feb 2010, at 09:05, Marius marius.dan...@gmail.com wrote:
Well you summarized pretty well what I feel about this. Essentially
the way I see it startup configuration things could exists in other
Hi,
I need to create a response that downloads a file. The file is
generated by a 3rd party api that takes an output stream as the target
for the file. As the file can be rather large, I would like to stream
this file directly to the client.
I've looked at StreamingResponse, but this seem to
I've spoken to David off-
list and unfortunately I am not comfortable signing the particular IP assignment
contract I was sent as it appears to me (but not to David) to be ambiguous in whether it covers what I commit or also any other code I am working on in connection with Lift
(e.g. the code of
On Feb 26, 11:50 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Hi,
I need to create a response that downloads a file. The file is
generated by a 3rd party api that takes an output stream as the target
for the file. As the file can be rather large, I would like to stream
this file
Stuart,
You can still contribute to the wiki and of your findings or musings -
that is totally open.
Cheers, Tim
On Feb 26, 9:59 am, Stuart Roebuck stuart.roeb...@gmail.com wrote:
I've spoken to David off-
list and unfortunately I am not comfortable signing the particular IP assignment
Marius marius.dan...@gmail.com writes:
On Feb 26, 11:50 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Hi,
I need to create a response that downloads a file. The file is
generated by a 3rd party api that takes an output stream as the target
for the file. As the file can be rather large, I
Tim,
Thanks - that sounds like a good idea.
Stuart.
On 26 Feb 2010, at 10:50, Timothy Perrett wrote:
Stuart,
You can still contribute to the wiki and of your findings or musings -
that is totally open.
Cheers, Tim
--
You received this message because you are subscribed to the Google
On Fri, Feb 26, 2010 at 12:06 PM, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
So the thread creation/scheduling and the two times file copying could be
avoided by writing directly to the output stream. But I agree this would
have to be special cased somehow. It's not an urgent issue atm, but
Jeppe,
as far as I know this can be handled by setting the scope for slf4j-
log4j to 'test' and for logback-classic to compile.
Or am I missing your point.
What do you mean with generated POM dependencies in 3?
Cheers
Nico Tromp
On Feb 26, 9:55 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
In addition to specifying the scope of test or compile does
optionaltrue/optional help with what you want?
On Feb 26, 3:55 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
Hi,
For the new logging code I need a setup that I can't really see how to
achieve with Maven:
1) Both slf4j-log4j and
On Feb 26, 1:29 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
On Fri, Feb 26, 2010 at 12:06 PM, Jeppe Nejsum Madsen je...@ingolfs.dk
wrote:
So the thread creation/scheduling and the two times file copying could be
avoided by writing directly to the output stream. But I agree this would
On Fri, Feb 26, 2010 at 1:35 PM, Steve Swing steve.sw...@gmail.com wrote:
In addition to specifying the scope of test or compile does
optionaltrue/optional help with what you want?
Yes, I think optional can help with the third point.
/Jeppe
--
You received this message because you are
On Fri, Feb 26, 2010 at 1:53 PM, Marius marius.dan...@gmail.com wrote:
On Feb 26, 1:29 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
On Fri, Feb 26, 2010 at 12:06 PM, Jeppe Nejsum Madsen je...@ingolfs.dk
wrote:
So the thread creation/scheduling and the two times file copying could be
Sent this to dpp the other day with the idea that it might be a useful
addition to MetaMapper. Would others find this useful? (It's a tad
PostgreSQL specific in its current form).
object LockMode extends Enumeration {
type LockMode = Value
val AccessShare = Value(ACCESS SHARE)
val RowShare =
On Fri, Feb 26, 2010 at 2:10 PM, harryh har...@gmail.com wrote:
Sent this to dpp the other day with the idea that it might be a useful
addition to MetaMapper. Would others find this useful? (It's a tad
PostgreSQL specific in its current form).
object LockMode extends Enumeration {
type
Okay - I've added a page to the wiki:
http://wiki.github.com/dpp/liftweb/sitemap-basics
On Feb 26, 11:20 am, Stuart Roebuck stuart.roeb...@gmail.com wrote:
Tim,
Thanks - that sounds like a good idea.
Stuart.
On 26 Feb 2010, at 10:50, Timothy Perrett wrote:
Stuart,
You can still
Cool, great job - keep them coming :)
On 26/02/2010, at 14.36, Stuart Roebuck wrote:
Okay - I've added a page to the wiki:
http://wiki.github.com/dpp/liftweb/sitemap-basics
On Feb 26, 11:20 am, Stuart Roebuck stuart.roeb...@gmail.com wrote:
Tim,
Thanks - that sounds like a good
Either would be the purely stdlib way to go, and Naftoli is right
that it would be a lot more verbose. I would argue that the
difference isn't *so* substantial if you sprinkle in a type alias and
some implicit conversions (so that you can map/flatMap/filter over
something of type
Hi,
I would expect the following code to print at most a single line:
Vehicle.mappedFields.filter(_.dbIncludeInForm_?) foreach {f =
f match {
case Vehicle.customCategory = Log.info(Matched on field: +f.name)
case _ =
}
}
But what happens is that
Box has :
1. A rather richer API than Option
2. The Failure case that you are already aware of
= a logical existence of Box-ification.
I fail to see what is the problem that we use Box and not Option
especially that you can seamlessly convert one to the other. Is there
a law that we should have
case _ if f eq ... ?
-
Jeppe Nejsum Madsenje...@ingolfs.dk wrote:
Hi,
I would expect the following code to print at most a single line:
Vehicle.mappedFields.filter(_.dbIncludeInForm_?) foreach {f =
f match {
case Vehicle.customCategory =
Does the field know if it's the meta instance?
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
On Fri, Feb 26, 2010 at 7:05 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote:
Hi,
I would expect the following code to print at most a single line:
Hi Peter,
I read your mail, maybe you can help me. I'm wondering how I can
integrate JodaTime or scala-time into my project.
thanks.
Hannes
This is more a question for Jorge than anyone else but since it's Lift-
related I thought I'd put it here:
What's the easiest way to add scala-tools to
In what fashion do you mean integrate?
Adding this:
dependency
groupIdjoda-time/groupId
artifactIdjoda-time/artifactId
version1.6/version
/dependency
to the dependency section to your maven POM will bring in the jar files.
On Fri, Feb 26, 2010 at 10:14 AM, Hannes
Jim,
Thanks that helped!
Maybe its to late, or I don't know what, but.
Its a bit complicated to use I think. What's about scala-time? For my
purpose, I just need the the time as a number (e.g. long). How do I do that?
thanks.
In what fashion do you mean integrate?
Adding this:
On Fri, Feb 26, 2010 at 10:43 AM, Hannes hannes.flo...@gmx.li wrote:
Jim,
Thanks that helped!
Maybe its to late, or I don't know what, but.
Its a bit complicated to use I think. What's about scala-time? For my
purpose, I just need the the time as a number (e.g. long). How do I do
THANKS!
You saved my weekend
On Fri, Feb 26, 2010 at 10:43 AM, Hannes hannes.flo...@gmx.li
mailto:hannes.flo...@gmx.li wrote:
Jim,
Thanks that helped!
Maybe its to late, or I don't know what, but.
Its a bit complicated to use I think. What's about scala-time? For
I swear that I ONLY use it to compare if things are older than other
things. I think comparison of long values is faster than string or date
comparison, or?
thanks.
On Fri, Feb 26, 2010 at 10:52 AM, Hannes hannes.flo...@gmx.li
mailto:hannes.flo...@gmx.li wrote:
THANKS!
You saved
On Fri, Feb 26, 2010 at 11:12 AM, Hannes hannes.flo...@gmx.li wrote:
I swear that I ONLY use it to compare if things are older than other
things. I think comparison of long values is faster than string or date
comparison, or?
In what timezone? and for what calendar?
thanks.
On
Daniel,
Thanks for asking the question and I hope the discussion will go better than
the last time we had an in depth discussion on the topic. I'm going to
respond in a Prologue, History, Reactions, Code Examples and Conclusion.
*Prologue*
I'm not a classically trained CS guy. I've never
java.util.Date.before/after
-
Hanneshannes.flo...@gmx.li wrote:
I swear that I ONLY use it to compare if things are older than other
things. I think comparison of long values is faster than string or date
comparison, or?
thanks.
On Fri, Feb 26, 2010 at
Keep your Longs as millisecond UTC timestmaps and you should be ok.
That being said, it does make sense to keep your time information in
time-specific objects. To use scala-time add the following to the
dependencies section of your POM:
!-- for scala-time --
dependency
I am probably confused on what exactly is going on in the request /
response cycle here, but I am trying to show a table cell after a
calculation is performed, and I can't seem to get the js to run. The
JS is being called in the showResults method that is bound to the
submit action. I am
OK, thanks a lot to all of you, for helping me!
I really appreciate it!
Keep your Longs as millisecond UTC timestmaps and you should be ok.
That being said, it does make sense to keep your time information in
time-specific objects. To use scala-time add the following to the
dependencies section
Back when I was the only Lift committer (okay, maybe SteveJ had commit
rights back then... I don't remember) and I was working on the first
Lift-based app, I was experiencing a nasty issue. This was summer of 2007.
This was circa Scala 2.4 and before Either was in the language. One of the
It sometimes seems to me that people are view-ing Option as an
absolute term - a complete Maybe monad that everyone should obey.
Yeah, that's pretty much it. :-) Saying that you have a replacement
Option with totally different instances is like telling me that you
have a new definition for a
David,
I have created a ticket for it (#373). I also uploaded my test project to
http://github.com/zhaotq/playliftweb.
Thanks.
Best Regards,
Cliff Zhao
On Thu, Feb 25, 2010 at 1:15 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
On Thu, Feb 25, 2010 at 10:12 AM, Cliff Zhao
Well it looks like you are submitting a non ajax form. You can easily
use ajax forms.
something like:
def calcForm(xhtml:NodeSeq):NodeSeq = {
SHtml.ajaxForm(Helpers.bind(f, xhtml,
age - SHtml.text(ageVar.is.toString, v = ageVar(v.toInt)),
male - SHtml.text(maleVar.is.toString,
On Fri, Feb 26, 2010 at 11:55 AM, Cliff Zhao zha...@gmail.com wrote:
David,
I have created a ticket for it (#373). I also uploaded my test project to
http://github.com/zhaotq/playliftweb.
Awesome... I'll get it fixed today for 2.0-M3. Thanks for taking the time
to build a repro case!
Use Lift 1.0.3 and Scala 2.7.7
Or even better, use Lift 2.0-M2 and Scala 2.7.7
Scala Actors have notorious issues and we moved to our own Actor
implementation which avoids most of the Scala Actor issues.
On Fri, Feb 26, 2010 at 11:31 AM, Donald McLean dmclea...@gmail.com wrote:
After
including something at compile-time and not test time is a rare thing for
maven, which assumes tests also need dependencies used to compile. Of all
the scopes you can specify for dependencies *all* of them end up on the
testing classpath. (see
Oh, right--I forgot about per-session and request.
So what do you vote on this, then:
A. ConversionRules is its own singleton, but as a bonus it can also be accessed
from LiftRules.
B. Same as A but ConversionRules is private[liftweb], so there's only one path.
C. Less redundant: define (a
A ConversionRules singleton is the wrong concept.
What you want is:
case class DateHolder(date: JodaTime) {
implicit def asJt: JodaTime = date
implicit def asJavaDate: java.util.Date = // convert to Java date here
}
object DateHolder {
implicit def dateToDH(in: java.util.Date): DateHolder
Sounds good!
-
David Pollakfeeder.of.the.be...@gmail.com wrote:
A ConversionRules singleton is the wrong concept.
What you want is:
case class DateHolder(date: JodaTime) {
implicit def asJt: JodaTime = date
implicit def asJavaDate: java.util.Date = //
Josh Suereth joshua.suer...@gmail.com writes:
including something at compile-time and not test time is a rare thing for
maven, which assumes tests also need dependencies used to compile. Of all
the scopes you can specify for dependencies *all* of them end up on the
testing classpath. (see
But I am using Lift 2.0 snapshot, I got the following exception:
INFO: Illegal access: this web application instance has been stopped
already. C
ould not load
net.liftweb.http.SessionMaster$$anonfun$1$$anonfun$apply$11$$anonf
un$apply$12. The eventual following stack trace is caused by an error
This particular issue has to do with class loading in Tomcat after Tomcat
thinks the app should be terminated. This is a bug in Tomcat.
Specifically, Tomcat disallows class loading after it thinks an app should
be shut down. Scala on the other hand has lots of anonymous classes that it
uses
On Fri, Feb 26, 2010 at 5:31 PM, Naftoli Gugenheim naftoli...@gmail.com wrote:
case _ if f eq ... ?
Yeah that works, but then it might be easier to just use an if(f eq ..)
/Jeppe
--
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group,
Folks,
Code slush for 2.0-M3 is Sunday at midnight. We've done a lot over the last
3 weeks, but we've still got a lot more to do. See
https://liftweb.assembla.com/spaces/liftweb/milestones/163151-lift-2-0-m3
If you've got open tickets, please make sure they get code checked in or
that you move
Mads, thanks for bringing ticket 281 to my attention, I'll address it
in my patch.
Jeppe, that's how I plan on using it with Flot: having Flot.init
register the plugins and in the charts call toHTML as needed.
Should have everything up on my pr1001_issue_322 branch by tomorrow.
Peter
On Feb
Folks,
Today is Lift's 3rd Anniversary/Birthday!
Before I go offline for the weekend, I wanted to give a hearty thanks for
the Scala team, the Scala community, the Lift committers, and most
importantly the Lift community members new and old for making Lift possible,
fun, and challenging.
Thank
Congrats on a great framework!!
On Fri, Feb 26, 2010 at 8:26 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
Folks,
Today is Lift's 3rd Anniversary/Birthday!
Before I go offline for the weekend, I wanted to give a hearty thanks for
the Scala team, the Scala community, the Lift
Thank you.
I am waiting for the new book on Lift 2.0.
On Feb 27, 10:35 am, Josh Suereth joshua.suer...@gmail.com wrote:
Congrats on a great framework!!
On Fri, Feb 26, 2010 at 8:26 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
Folks,
Today is Lift's 3rd
55 matches
Mail list logo