[Lift] Fwd: [scala-internals] Re: Scala advertising at Stack Overflow

2009-12-19 Thread Jorge Ortiz
Lift might be interested in this too. --j Forwarded conversation Subject: [scala-internals] Scala advertising at Stack Overflow From: *Daniel Sobral* dcsob...@gmail.com Date: Sat, Dec 19, 2009 at 8:29 AM To: scala-internals scala-intern...@listes.epfl.ch Should EPFL

Re: [Lift] foursquare.com now basically all on Lift

2009-11-17 Thread Jorge Ortiz
I've been MIA from the Lift community recently, but I've gotta say I love Foursquare and use it almost every day. It gives me even more warm fuzzies to know that it's using Lift under the hood :) Thanks for a great app! --j On Tue, Nov 17, 2009 at 12:16 PM, harryh har...@gmail.com wrote: I've

Re: Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)

2009-07-24 Thread Jorge Ortiz
No, sorry. I haven't spent any more time on this. --j On Thu, Jul 23, 2009 at 10:13 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Any update on this? On Mon, Jun 22, 2009 at 10:55 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 7:51 PM, Jorge Ortiz

[Lift] Re: http://wiki.liftweb.net request

2009-07-11 Thread Jorge Ortiz
All you have to do is register for an account. Anonymous edits aren't allowed. --j On Fri, Jul 10, 2009 at 11:09 PM, DFectuoso santiago1...@gmail.com wrote: How can people get editing power on the wiki? Is it intended to be used as a (real) wiki? Who is responsable right now for hosting that

[Lift] Re: Using Mapper outside Lift?

2009-06-23 Thread Jorge Ortiz
I've used Mapper in desktop apps too. It works fine. --j On Tue, Jun 23, 2009 at 9:56 AM, Naftoli Gugenhem naftoli...@gmail.comwrote: I used mapper in an offline (demo) app. You have to include the util and http jars IIRC but it's a desktop app. If you're subcribed to scala-user, I posted

[Lift] Re: Using Mapper outside Lift?

2009-06-23 Thread Jorge Ortiz
and just work with JPA right away if he knows from the start that he will have tricky data ORM tasks. Cheers, Tim On 23/06/2009 18:28, Jorge Ortiz jorge.or...@gmail.com wrote: I've used Mapper in desktop apps too. It works fine. --j On Tue, Jun 23, 2009 at 9:56 AM, Naftoli Gugenhem

Lift + Scala 2.8 (Was: Re: [Lift] Re: Is there any eclipse setup that actually works for lift?)

2009-06-22 Thread Jorge Ortiz
I just spent all afternoon trying to get stuff to compile with Scala 2.8. Since Lift depends on Specs, and Specs depends on Scalacheck, I started trying to port Scalacheck to 2.8 so I could port Specs to 2.8 so I could port Lift. It was unable to get Scalacheck to compile due to bugs which cause

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

2009-06-17 Thread Jorge Ortiz
In Derek's defense, it's not how objects in classes work but how Lift RequestVars work. Scala objects in classes aren't global singletons, just per-class-instance singletons. But a Lift ReuqestVar object in a class is pretty much a global singleton (unless you do some hacking like Derek did). --j

[Lift] Re: Cheap Hosting

2009-06-15 Thread Jorge Ortiz
Another option is http://prgmr.com/xen/ You can get as much RAM as Slicehost for only $8/mo (but slightly less storage and data transfer). The support will be much more barebones, though. --j On Mon, Jun 15, 2009 at 2:01 PM, Mark Lynn m...@sabado.com wrote: I want to thank everyone that

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread Jorge Ortiz
In addition to the Lift Workshop, I also co-taught a ten-week (1.5hrs/wk) course at Stanford on Scala. It was targeted at advanced undergrads and graduate students. Most were programming language enthusiasts, so the course focused more on the interesting parts of Scala from a programming language

[Lift] Re: Switch to Scala 2.7.5 for 1.1 ?

2009-06-03 Thread Jorge Ortiz
In general I thought the plan for 1.1 was to compile against 2.8. If anything we might want a 1.0.1 against 2.7.5. --j On Wed, Jun 3, 2009 at 1:26 PM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: Hi, I wonder if we should switch to Scala 2.7.5. I do not know whether the actor

[Lift] Re: JTA

2009-05-29 Thread Jorge Ortiz
I, too, would like to see Transactions be monadic. --j On Fri, May 29, 2009 at 3:54 PM, Meredith Gregory lgreg.mered...@gmail.comwrote: Jonas, i applaud the effort. i agree with DPP sentiments regarding annotations. That said, i feel pretty comfortable that transactions fit entirely in a

[Lift] Re: **IMPORTANT** Lift 1.1-SNAPSHOT now compiled against Scala 2.7.4

2009-04-25 Thread Jorge Ortiz
I had nothing to do with it. David beat me to it. --j On Sat, Apr 25, 2009 at 11:34 AM, Timothy Perrett timo...@getintheloop.euwrote: Sweet! Well done Jorge / David for getting this out so quickly with the announcement of 2.7.4 --~--~-~--~~~---~--~~ You

[Lift] Re: directives versus snippets

2009-04-10 Thread Jorge Ortiz
Huh? lift: snippet, surround, embed, ignore, comet, children, a, form, loc, and with-param are all built-in in liftTagProcessing. Yes, they're overrideable, but imo it'd be nicer if they were Just A Snippet, like, say, lift:msgs. lift:bind is just bad naming. it's not actually a directive, it's

[Lift] Google App Engine

2009-04-08 Thread Jorge Ortiz
Google App Engine just released support for Java/Scala. I just sent in my laptop for repairs and won't get it back for a while. Anyone want to try Lift on GAE and report back? --j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Newbie Scala syntax question re: parameterized types with bounds

2009-04-03 Thread Jorge Ortiz
On Fri, Apr 3, 2009 at 12:53 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Apr 1, 2009 at 8:06 PM, Kris Nuttycombe kris.nuttyco...@gmail.com wrote: Something that occurred to me recently along these lines - perhaps someone can disabuse me of this notion. In Java, such

[Lift] Re: Advice on Ramping Up

2009-04-03 Thread Jorge Ortiz
Aside: I think the preferred abbreviation for Programming in Scala is PinS, not PiS. Just fyi, --j On Fri, Apr 3, 2009 at 4:15 PM, Timothy Perrett timo...@getintheloop.euwrote: My advice, if your generally / vaugly familiar with Scala from reading PiS (that truly is a very unfortunate

[Lift] Re: Proposed URL Shortening widget

2009-04-02 Thread Jorge Ortiz
What about easily turning any lift app into a url shortener service? Wouldn't be too hard... Granted, some services (bit.ly) add statistics, visualization, conversation tracking, etc. which aren't just url shortening. --j On Thu, Apr 2, 2009 at 12:13 PM, Tim Perrett

[Lift] Re: The Lift 1.1 list

2009-04-01 Thread Jorge Ortiz
I propose we migrate to Joda Time for 1.1. In particular, I propose that Record ditch Java Date/Time entirely in favor of Joda Time. Since migrating from Mapper to Record will involve a port anyway, what's one more breaking change among friends? Lift's other uses of Date/Time should be

[Lift] Re: The Lift 1.1 list

2009-04-01 Thread Jorge Ortiz
I also propose we start thinking seriously about 2.8. In particular, 2.8 will probably add support for named and default arguments. This places extra burdens on library and framework designers, as method -argument- names will be just as much a part of a library/framework's API as class, method,

[Lift] Re: MappedDateTime - Do we have a Date? Or is it a timestamp?

2009-03-31 Thread Jorge Ortiz
I was on IRC trying to help Clemens with this. The name (MappedDateTime), targetSQLType (java.sql.Types.TIMESTAMP), and type (extends MappedField[java.util.Date, _]) of this class suggests millisecond precision (java.sql.Timestamp and java.util.Date have millisecond precision). However, methods

[Lift] Re: Decoupling Lifts Template System

2009-03-19 Thread Jorge Ortiz
I hadn't thought about localization. That makes things a bit trickier. Part of my goal was to make methods that allow you to easily access template functionality programmatically. For example: def lift_surround(template: Box[String], at: Box[String])(child: NodeSeq): NodeSeq def

[Lift] Re: Lift Web, why no download of a zipped archive on the website?

2009-03-19 Thread Jorge Ortiz
If you want the sources, GitHub makes them available here: http://github.com/dpp/liftweb/downloads If you want the binaries... We'll, you'll want to use Maven anyway. Just get that, really. --j On Thu, Mar 19, 2009 at 1:34 PM, BerlinBrown berlin.br...@gmail.com wrote:

[Lift] FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
Anyone know what these two types: type FieldType : KeyType type ForeignType : KeyedMapper[KeyType, Other] in trait MappedForeignKey are doing? They're never fully defined and never used, but somehow were causing compile problems in someone's code. If they're useless, can they be axed? --j

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
type FieldType in trait MappedForei gnKey with bounds : Nothing : Long is not defined [WARNING] object owner extends MappedLongForeignKey( this , User ) [WARNING] ^ --j On Tue, Mar 17, 2009 at 5:42 PM, Jorge Ortiz jorge.or...@gmail.com wrote: Anyone know what these two types

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
feeder.of.the.be...@gmail.com wrote: What version of Scala? On Tue, Mar 17, 2009 at 5:45 PM, Jorge Ortiz jorge.or...@gmail.comwrote: And if they're useful, can subclasses of MappedForeignKey define them more exactly? Errors looked like this: [WARNING] C:\workspace\liftapp\src\main\scala\com

[Lift] Re: Custom Boot Class

2009-03-16 Thread Jorge Ortiz
On Mon, Mar 16, 2009 at 1:31 PM, Jorge Ortiz jorge.or...@gmail.comwrote: Folks, I'm trying to specify a custom Boot class, as per Chapter 3 of the Lift Book. To my web.xml I've added: context-param param-namebootloader/param-name param-valuebootstrap.liftweb.Brat/param-value

[Lift] Re: Custom Boot Class

2009-03-16 Thread Jorge Ortiz
. :/ On Mon, Mar 16, 2009 at 2:58 PM, Derek Chen-Becker dchenbec...@gmail.com wrote: I wonder if this is something that broke when we moved to a Filter... Derek On Mon, Mar 16, 2009 at 7:02 AM, Jorge Ortiz jorge.or...@gmail.comwrote: I get the same error, unfortunately. --j On Mon, Mar

[Lift] Re: Why does HelloWorld index.html contain a snippet rather than a complete XHTML page?

2009-03-13 Thread Jorge Ortiz
Yes, if index.xhtml is a compliant XML (preferably XHTML) document, it will just be served up as-is. The lift:... / tags define transformations that are applied to your document before it is served up. --j On Fri, Mar 13, 2009 at 3:40 PM, Marc Boschma

[Lift] Re: Record and JSON

2009-03-06 Thread Jorge Ortiz
Hey Folks, I wrote a Json AST and parser/serializer for unrelated reasons yesterday. This could be the basis of a Record -- Json tool. --j On Wed, Mar 4, 2009 at 9:11 AM, David Pollak feeder.of.the.be...@gmail.comwrote: On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote:

[Lift] Re: ORM Framework

2009-02-22 Thread Jorge Ortiz
I've used Mapper on desktop apps that don't do http. You lose a lot of the features but it's still usable and sometimes even convenient. YMMV, --j On Sun, Feb 22, 2009 at 4:23 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Feb 22, 2009 at 3:45 PM, Paulo Cheque

[Lift] Re: Weird Mapper type error

2009-02-19 Thread Jorge Ortiz
List(). Derek On Thu, Feb 19, 2009 at 2:35 AM, Jorge Ortiz jorge.or...@gmail.comwrote: Yup, this is a type inference bug. If I'm not mistaken then override def fieldOrder: BaseOwnedMappedField[Transaction] = txtime :: amount :: summary :: Nil should also work. In any case, I'd

[Lift] Re: Fwd: [jquery-dev] Re: Namespace failure

2009-02-16 Thread Jorge Ortiz
? Then doing a scrape using jQuery(.gc) would be just as feasible. Would it solve the problem or can it be extended to solve it fully? On Mon, Feb 16, 2009 at 10:37 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Feb 16, 2009 at 1:36 PM, Jorge Ortiz jorge.or...@gmail.comwrote

[Lift] Re: IMPORTANT: Library Upgrades

2009-02-12 Thread Jorge Ortiz
You're right, I completely forgot about Blueprint and YUI. I'll get those right away. Although it seems like the latest version of Blueprint still has issues with Opera, IE 6, and IE 5.5 (!!!). See: http://wiki.github.com/joshuaclayton/blueprint-css/browser-compatibility-list --j On Thu, Feb

[Lift] Re: IMPORTANT: Library Upgrades

2009-02-12 Thread Jorge Ortiz
Ok, two more upgrades. Do note that Blueprint changed it's directory layout. If you're using the CSS.Blueprint / snippet you should be fine though. Blueprint CSS 0.6 - 0.8 YUI 2.5.1 - 2.6.0 --j On Thu, Feb 12, 2009 at 11:58 AM, Jorge Ortiz jorge.or...@gmail.com wrote: You're right, I

[Lift] Re: Using Quaere in Scala

2009-02-05 Thread Jorge Ortiz
You may want to look at this http://szeiger.de/blog/2008/12/21/a-type-safe-database-query-dsl-for-scala/ --j On Thu, Feb 5, 2009 at 11:21 AM, Meredith Gregory lgreg.mered...@gmail.comwrote: Scalads and lasses and Lifted, Does anyone have any experience with using Quaere under Scala? In

[Lift] Fwd: [scala] Jane Street Summer Program

2009-02-02 Thread Jorge Ortiz
If you're a student, Jane Street Capital can give you money to work on functional programming for a summer... --j -- Forwarded message -- From: James Iry james...@gmail.com Date: Mon, Feb 2, 2009 at 9:36 AM Subject: [scala] Jane Street Summer Program To: Scala list

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Jorge Ortiz
I don't really know much about JPA, but just a quick observation on the code you posted: Your code has line: abstract class EnumvType(val et: Enumeration with EnumTrait) extends UserType { whereas JPA Demo has line: abstract class EnumvType(val et: Enumeration with Enumv) extends UserType {

[Lift] Re: JPA is killing me. Enumeration hell.

2009-01-22 Thread Jorge Ortiz
Ahh, I see what the problem might be. There was another change to EnumvType: Replace this line: return et.valueOf(value) With this line: return et.valueOf(value).getOrElse(null) I'm sorry this is causing you so much trouble Chas. I made changes to classes in JPADemo and didn't realize they

[Lift] Re: Writing tests for actors

2009-01-19 Thread Jorge Ortiz
Hey Tim, Testing concurrent code is an Open Problem. That said, keeping pairs of (Message, Response) where you send an actor a Message and get a Response is not a bad idea. However, I see two problems with this approach. Fist, with many uses of actors, when you send a message you don't expect a

[Lift] Re: Lift compiles with 2.7.3.RC2

2009-01-10 Thread Jorge Ortiz
, Have you done any stress tests to make sure that the Actors memory leak thing is fixed? If not, I'll work some up on Monday. Thanks, David On Fri, Jan 9, 2009 at 11:01 PM, Jorge Ortiz jorge.or...@gmail.comwrote: I've made two Git branches which compile Lift against Scala 2.7.3-SNAPSHOT

[Lift] Re: Can or Box or something else

2009-01-07 Thread Jorge Ortiz
You're talking about algebraic data types. The rest of us are discussing classes and inheritance. When someone says that a Dog is an Animal, they clearly don't mean is isomorphic to. --j On Tue, Jan 6, 2009 at 6:46 PM, Tony Morris tonymor...@gmail.com wrote: Jorge Ortiz wrote: For most

[Lift] Re: Can or Box or something else

2009-01-07 Thread Jorge Ortiz
And, by the way, squares and triangles are isomorphic ( http://en.wikipedia.org/wiki/Topological_isomorphism). --j On Tue, Jan 6, 2009 at 6:44 PM, Tony Morris tonymor...@gmail.com wrote: related to a combination of Option and Either I'm not sure how I am missing that point since that is

[Lift] Re: Can or Box or something else

2009-01-06 Thread Jorge Ortiz
It depends on what the meaning of is is. If Option were not sealed, Can could be implemented as an Option... by adding Failure and Empty as subclasses of None. In this (OO) sense, a Can is an option. In the algebraic sense, then you're probably right that a Can is not an Option. --j On Tue,

[Lift] Re: Can or Box or something else

2009-01-06 Thread Jorge Ortiz
- it is not, not even close. Poor Oliver was all confuzzled when he popped this one to me the other day. -- Tony Morris http://tmorris.net/ S, K and I ought to be enough for anybody. Jorge Ortiz wrote: It depends on what the meaning of is is. If Option were not sealed, Can could be implemented

[Lift] Re: query about current status of MySQL support

2009-01-04 Thread Jorge Ortiz
I would highly recommend Aqua Data Studio --j On Sun, Jan 4, 2009 at 11:47 PM, Matt Harrington mbh.li...@gmail.comwrote: On Sun, Jan 4, 2009 at 8:14 PM, O'Rorke Paul p...@ororke.com wrote: An advantage of MySQL on the Mac is that there is a free, reasonably nice GUI database tool

[Lift] Re: *** Minor breaking change *** - Lift HTTP authentication

2008-12-29 Thread Jorge Ortiz
Why Box[List[Role]] instead of just List[Role]? Is there a semantic difference between Empty and Full(Nil)? --j On Mon, Dec 29, 2008 at 7:33 AM, Marius marius.dan...@gmail.com wrote: Hi, If you use so far the HTTP authentication support in Lift, you code would likely break. So far we

[Lift] Re: Can or Box or something else

2008-12-28 Thread Jorge Ortiz
Promise has a specific technical meaning in the context of concurrency. See: http://en.wikipedia.org/wiki/Futures_and_promises --j On Sun, Dec 28, 2008 at 2:46 PM, stephen goldbaum stephen.goldb...@gmail.com wrote: One last suggestion... Promise with Fulfilled, Empty, and Broken (my other

[Lift] Re: Fwd: [scala-announce] Scala 2.7.3 RC1

2008-12-23 Thread Jorge Ortiz
It takes a day or so for hudson to pick up new Scala releases (I think DavidB had a bad experience with a -final release that wasn't really final), but as soon scala-tools.org picks it up I'm on it. --j On Tue, Dec 23, 2008 at 11:11 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Jorge,

[Lift] Re: todo_steps feedback

2008-12-23 Thread Jorge Ortiz
Not that I am aware of, but then I am in Australia and these days almost anything could be mucking about with my internet connectivity, but I digress... Bit of a sore point, eh? At least in Australia they tell you about the mucking. In the US that's all state secrets or somesuch. It's so

[Lift] Re: Can or Box or something else

2008-12-21 Thread Jorge Ortiz
If you want to use ? in your own code, you can always do: type ?[T] = Can[T] var s: ?[String] = Empty s = Full(Hello, world!) You can put it somewhere and import it anywhere you want to use it. That said, I think it'd be a really bad idea to do this in Lift's source. Scala gets enough

[Lift] Github pages

2008-12-18 Thread Jorge Ortiz
http://github.com/blog/272-github-pages --j --~--~-~--~~~---~--~~ 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

[Lift] Re: behind the scenes with Maven?

2008-12-16 Thread Jorge Ortiz
Yup, you've about got it right. As I understand it, Hudson uses Maven to fetch the latest code from Github, compile, test, and deploy it. (By 'deploy' I mean: put jars, scaladocs, and archetypes on scala-tools.org) When commits are made to Github, it takes about an hour for changes to appear on

[Lift] Re: Fwd: [scala-user] Is there a memory leak in 2.7.2 Actors?

2008-12-12 Thread jorge . ortiz
Can do On 12/12/08, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, Who has time to do testing, etc. with 2.7.3? Thanks, David -- Forwarded message -- From: Philipp Haller philipp.hal...@epfl.ch Date: Fri, Dec 12, 2008 at 6:42 AM Subject: Re: [scala-user] Is

[Lift] Re: maven problem - can't make ToDo example work - or even get off the ground.

2008-12-10 Thread Jorge Ortiz
You need to cd into the project directory cd todo --j On Wed, Dec 10, 2008 at 5:30 PM, mike beckerle [EMAIL PROTECTED] wrote: Lifters, I tried to follow David Pollack's ToDo example to start trying out lift. It dies on me before we even get started. I am running maven 2.0.9 on

[Lift] Re: Debugging CometActors?

2008-12-10 Thread Jorge Ortiz
to this List */ var failureFuncs: List[(Actor, Throwable) = Unit] = logActorFailure _ :: startAgain _ :: Nil this.start this.trapExit = true } Which CometActors link themselves to on startup? On Wed, Dec 10, 2008 at 7:32 PM, Jorge Ortiz [EMAIL PROTECTED]wrote: Is there a good way

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Jorge Ortiz
Seems like prime opportunity for an abstraction... Why not make them (*gasp*) mutable data structures with prepend/append methods? --j On Tue, Dec 9, 2008 at 1:35 PM, Marius [EMAIL PROTECTED] wrote: Hi. Unfortunatelly only some vars that are essentially Lists of something are private and

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Jorge Ortiz
is finished. The permutation methods should throw exceptions post-boot On Dec 9, 2008 11:39 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: Seems like prime opportunity for an abstraction... Why not make them (*gasp*) mutable data structures with prepend/append methods? --j On Tue, Dec 9, 2008 at 1

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Jorge Ortiz
::: List(r) } } } Br's, marius On Dec 9, 10:12 pm, Jorge Ortiz [EMAIL PROTECTED] wrote: Hm... I can think of situations where such mutations are useful after Boot (app/prependSnippet comes to mind). Maybe they can be made immutable (.toList) as necessary? --j On Tue

[Lift] Re: How does lift wrap the templates

2008-12-06 Thread Jorge Ortiz
Try: case badger :: Nil = Left(() = demo) An Either[A, B] means it can be either a Left[A] or a Right[B]. --j On Sat, Dec 6, 2008 at 12:35 PM, Tim Perrett [EMAIL PROTECTED] wrote: Sorry, the code should have been: object ExampleLoader { def template: LiftRules.ViewDispatchPF = {

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Jorge Ortiz
types get their own .class file. Structural types use reflection. --j On Tue, Dec 2, 2008 at 12:33 PM, Alex Boisvert [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 10:24 AM, Jorge Ortiz [EMAIL PROTECTED]wrote: If you add (non-overriden) fields to a val, they'll always be invoked via reflection

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Jorge Ortiz
2, 8:51 pm, Jorge Ortiz [EMAIL PROTECTED] wrote: class Foo // type is singleton type Bar.type object Bar extends Foo { def exc = (new Exception).printStackTrace } // type is structural type Foo{def exc: Unit} val Baz = new Foo { def exc = (new Exception

[Lift] Re: Compile problems with lift

2008-12-01 Thread Jorge Ortiz
It might be the type checker getting confused. Try: val models: List[MetaMapper] = List(User, Game, GameUser, Hull, Ship, StarSystem) You can also call schemify with: Schemifier.schemify(true, Log.infoF _, models :_*) Instead of the foreach stuff --j On Mon, Dec 1, 2008 at 3:44 PM, Juha

[Lift] Re: Upgrading to Manifest[C] from Class[C]

2008-11-28 Thread Jorge Ortiz
Oops... forgot I was working on a branch. Pushed now. --j On Thu, Nov 27, 2008 at 11:38 PM, Marius [EMAIL PROTECTED] wrote: Nice ! ... is this committed anywhere? On Nov 28, 4:57 am, Jorge Ortiz [EMAIL PROTECTED] wrote: Folks, First, I've deprecated the containsClass method

[Lift] Upgrading to Manifest[C] from Class[C]

2008-11-27 Thread Jorge Ortiz
Folks, First, I've deprecated the containsClass method in ClassHelpers. It was only being used once in the entire Lift codebase, and it was basically equivalent to a very short call to List.exists. If you're using containsClass and have some objection to using List.exists instead, let me know and

[Lift] Testing for well-formed XML

2008-11-26 Thread Jorge Ortiz
Folks, One of the concerns raised at the Lift Workshop on Saturday was that ill-formed XML files in your templates will fail at run time instead of compile time, often with cryptic errors. To correct for this, I've added a simple test to lift-archetype-basic and lift-archetype-blank that will

[Lift] Re: Testing for well-formed XML

2008-11-26 Thread Jorge Ortiz
= failed.size if (numFails 0) { val fileStr = if (numFails == 1) file else files val msg = Malformed XML in + numFails + + fileStr + : + failed.mkString(, ) println(msg) fail(msg) } } On Wed, Nov 26, 2008 at 4:58 PM, Jorge Ortiz [EMAIL PROTECTED] wrote: Folks

[Lift] Re: JsCmd

2008-11-25 Thread Jorge Ortiz
You're almost there. The second parameter to ajaxCheckbox is a function that gets called on the server when the checkbox changes: SHtml.ajaxCheckbox(thing.isActive, (toggled: Boolean) = {thing.setActive(toggled); Noop}) The Noop is needed because ajaxCheckbox expects a Boolean = JsCmd

[Lift] Re: JsCmd

2008-11-25 Thread Jorge Ortiz
And David beat me to it... Oh well :) On Tue, Nov 25, 2008 at 5:04 AM, Jorge Ortiz [EMAIL PROTECTED] wrote: You're almost there. The second parameter to ajaxCheckbox is a function that gets called on the server when the checkbox changes: SHtml.ajaxCheckbox(thing.isActive, (toggled: Boolean

[Lift] Re: Error on compile with 2.7.2

2008-11-18 Thread Jorge Ortiz
turned what should have been a compile time error into a runtime error. That said, do you think there is a problem with the compiler? Chas. Jorge Ortiz wrote: That's a bug in the Scala compiler. Try to comment out code and reduce the bug to it's minimal form to file a bug report: http

[Lift] [ANN] Lift nightlies upgraded to Scala 2.7.2

2008-11-17 Thread Jorge Ortiz
I've just upgraded Lift's trunk to work with the newest release of Scala (2.7.2), Specs (1.4.0), and Scalacheck (1.5). These changes are available in the source code immediately, and should be reflected in the binaries posted to http://scala-tools.org/repo-snapshots/ in about an hour or so. Use

[Lift] Re: SHtml form inputs and attributes/labels

2008-11-17 Thread Jorge Ortiz
Try: SHtml.text(user.name, user.name = _) % (size, 24) % (maxlength, 48) % (id, user_name) % (title, Enter your name) That should work. --j On Mon, Nov 17, 2008 at 12:21 PM, Charles F. Munat [EMAIL PROTECTED] wrote: I spend a lot of time writing % new UnprefixedAttribute(...) to add

[Lift] Re: SHtml form inputs and attributes/labels

2008-11-17 Thread Jorge Ortiz
Oops, it might be: SHtml.text(user.name, user.name = _) % (size - 24) % (maxlength - 48) % (id - user_name) % (title - Enter your name) One or both of those should work. --j On Mon, Nov 17, 2008 at 12:27 PM, Jorge Ortiz [EMAIL PROTECTED] wrote: Try: SHtml.text(user.name, user.name

[Lift] Re: Recommended tools ?

2008-11-15 Thread Jorge Ortiz
To search the wiki, I suggest using using the site:liftweb.net keyword in google. That will search all pages within liftweb.net We should probably change the wiki search to do that automatically. The built-in MediaWiki search is pathetic anyway. --j On Sat, Nov 15, 2008 at 8:53 AM, Oscar Picasso

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Jorge Ortiz
A NodeSeq is really just a Seq[Node]. And a List[Node] is also a Seq[Node]. Hence a List[Node] is a NodeSeq. scala import scala.xml.NodeSeq import scala.xml.NodeSeq scala val n: NodeSeq = List(spanA/span, spanB/span, spanC/span) n: scala.xml.NodeSeq = spanA/spanspanB/spanspanC/span --j On Thu,

[Lift] Olio

2008-11-13 Thread Jorge Ortiz
There's a new Apache Incubator project called Olio: Olio is a is a web2.0 toolkit to help evaluate the suitability, functionality and performance of web technologies. Olio defines an example web2.0 application ( an events site somewhat like yahoo.com/upcoming) and provides three initial

[Lift] Re: Latest NetBeans plugin and NB 6.5 RC2 is wicked great

2008-11-07 Thread Jorge Ortiz
Lift on 2.7.2 works just fine as of RC3. I unfortunately haven't been keeping up with the flurry of RCs. What RC is the Eclipse plugin currently released against? I can update the branch of Lift tracking 2.7.2 to that RC. But whenever 2.7.2 is released (any day now *crosses fingers*) Lift will

[Lift] Re: PayPal Example Application

2008-11-07 Thread Jorge Ortiz
I've renamed the PayPalIPN trait to PaypalIPN. Macs have unfortunate issues with case sensitive file names. The generated .class files for the PayPalIPN trait were clashing with the PaypalIPN singleton. I've also renamed the PayPalPDT trait to PaypalPDT for consistency. --j On Fri, Nov 7, 2008

[Lift] Re: MIME Types?

2008-10-22 Thread Jorge Ortiz
Yeah, that's a really bad backwards incompatibility, but fortunately the fix is fairly easy: SHtml.submit(Submit, println(here)) I'd encourage you to stay on SNAPSHOT. The APIs might suffer a little instability (that are always announced to the mailing list) but there are several in-production

[Lift] Re: MIME Types?

2008-10-22 Thread Jorge Ortiz
/sites/example I believe). Happy Lifting! --j On Oct 22, 12:36 am, Jorge Ortiz [EMAIL PROTECTED] wrote: Yeah, that's a really bad backwards incompatibility, but fortunately the fix is fairly easy: SHtml.submit(Submit, println(here)) I'd encourage you to stay on SNAPSHOT. The APIs might

[Lift] Re: Lifecycle of a Lift Snippet Class

2008-10-22 Thread Jorge Ortiz
To add to Derek's explanation, if you want to keep some server-side state that gets updated with AJAX calls, take a look at some of the stuff in liftweb/sites/example. You can use a SessionVar (as in Count.scala) or a StatefulSnippet (as in CountGame.scala or ArcChallenge.scala). --j On Wed, Oct

[Lift] Re: Lift Scala 2.7.2-rc3

2008-10-21 Thread Jorge Ortiz
Sasha, I've been sitting on a bunch of unpushed commits to the RC3 branch. Due to a bug in GitHub, the lift twitter stream gets awfully spammed every time I do a push. I've been meaning to push in the middle of the night when some twitter spam hopefully won't be as annoying, but keep forgetting.

[Lift] Re: addDispatchBefore case matching 4 times per request

2008-10-19 Thread Jorge Ortiz
It's a Scala gotcha, unfortunately. Anything you put in the matching part of a pattern matching expression should be side-effect free. (Side effects are things like printing to screen, writing to files, changing a database, changing global state, etc.) Because of the way the compiler optimizes

[Lift] Re: JPA questions (was Re: SnippetFailure)

2008-10-15 Thread Jorge Ortiz
Derek, With the upcoming release of 2.7.2, you can update all this classOf[T] stuff to use scala.reflect.Manifest[T], which handles all that stuff for you almost automagically. I've been meaning to blog about this, but haven't found the time. The short example is: def find[A](id:

[Lift] Re: A stupid question

2008-10-15 Thread Jorge Ortiz
Also check out CanSpec.scala to get an idea of how Cans can be used. --j On Wed, Oct 15, 2008 at 9:33 AM, David Pollak [EMAIL PROTECTED] wrote: Charles, A Can is a container... it can contain a thing or be empty. You can transform the contents of a Can from one thing to another using

[Lift] Re: Welcome Derek to the Lift committers

2008-10-06 Thread Jorge Ortiz
Awesome! On Mon, Oct 6, 2008 at 10:12 AM, David Pollak [EMAIL PROTECTED] wrote: Folks, Derek Chen-Becker has just joined the Lift committers. One might ask What took so long? Derek's been an awesome contributor to the Lift community for more than a year and it's good to see that he's

[Lift] Re: Simple Build Tool

2008-10-05 Thread Jorge Ortiz
I don't see a downside to providing an alternative build system to people who are very Maven-averse (as long as I don't have to maintain it!, heh) But yeah, replacing Maven at this point seems unwise, unless there are very compelling reasons. --j On Sun, Oct 5, 2008 at 12:15 PM, David

[Lift] Re: Dates from database

2008-10-04 Thread Jorge Ortiz
A MappedDateTime wraps a java.util.Date, just like a MappedInt wraps an Int. There is an implicit conversion that automatically turns MappedDateTime into a Date, or you can invoke it directly by using the is method. --j On Sat, Oct 4, 2008 at 1:47 PM, Charles F. Munat [EMAIL PROTECTED] wrote:

[Lift] Re: Please Welcome Al Thompson to the Lift committers

2008-10-02 Thread Jorge Ortiz
Awesome! Welcome, Al. --j On Thu, Oct 2, 2008 at 5:14 PM, David Pollak [EMAIL PROTECTED]wrote: Folks, I've know Al Thompson for longer than any of the other Lift committers. Cast you mind back to '97... I was doing crazy things with browser-based, multi-user spreadsheets. Al was my

[Lift] Re: Eclipse

2008-09-27 Thread Jorge Ortiz
There's a branch of Lift on Git that is compatible with Scala 2.7.2.RC2, and so with the Eclipse Plugin. See this thread for details: http://groups.google.com/group/liftweb/browse_thread/thread/f9e862b6f4e8da4c --j On Sat, Sep 27, 2008 at 1:07 PM, Charles F. Munat [EMAIL PROTECTED] wrote:

[Lift] Re: [ANN] Compiling Lift with Scala 2.7.2.RC2 and Eclipse Plugin

2008-09-25 Thread Jorge Ortiz
Can you try the 1.5 branch of Git? (Is anyone else getting this problem?) --j On Thu, Sep 25, 2008 at 2:40 PM, DavidV [EMAIL PROTECTED] wrote: I'm using the latest version - 1.6.0.2 for windows. I got it from this website: http://code.google.com/p/msysgit/downloads/list I figured it was

[Lift] [ANN] Compiling Lift with Scala 2.7.2.RC2 and Eclipse Plugin

2008-09-24 Thread Jorge Ortiz
DISCLAIMER Nothing is this e-mail is meant to imply that any future public version of Lift will compile with Scala 2.7.2. At the moment, all future public versions of Lift will compile with Scala 2.7.1 until DavidP says otherwise. /DISCLAIMER Here are the instructions for compiling Lift under

[Lift] Re: About _root_

2008-09-24 Thread Jorge Ortiz
Indeed. For compatibility with the upcoming version of Specs (the one we'll need for Scala 2.7.2 compatibility), and more importantly, to plug potential security vulnerabilities, I've _root_'ed most imports and references in Lift's code. I definitely got all the imports, I think, but I may have

[Lift] Re: About _root_

2008-09-24 Thread Jorge Ortiz
assumption of the scala compiler to consider the import paths relative and not have a better way of expressing absolute path but with _root_. Br's, Marius On Sep 25, 12:20 am, Jorge Ortiz [EMAIL PROTECTED] wrote: Indeed. For compatibility with the upcoming version of Specs (the one

[Lift] Re: Lift Wiki search issues

2008-09-21 Thread Jorge Ortiz
You can use Google to get better search results, just add site:liftweb.net to your query (without the quotes) to restrict the search to the wiki. For example, a query for site:liftweb.net many-to-many yields the following: http://www.google.com/search?q=site%3Aliftweb.net+many-to-many Maybe we

[Lift] Re: Source file encoding ...

2008-09-21 Thread Jorge Ortiz
. Br's, Marius On Sep 21, 8:52 pm, Jorge Ortiz [EMAIL PROTECTED] wrote: well, heh, so the relevant test is: encode a string replacing non-ASCII characters by their unicode value in { niƱa.encJs must_== 'ni\\u00f1a' } --j On Sun, Sep 21, 2008 at 3:46 AM, Marius [EMAIL

[Lift] Re: JPA and enumerations

2008-09-20 Thread Jorge Ortiz
On Sat, Sep 20, 2008 at 9:14 AM, Oliver Lambert [EMAIL PROTECTED] wrote: I need this too so I might have a go at implementing it. Does lift persist enumerations (cant see a mapper it) There's a MappedEnum class in MappedInt.scala --j --~--~-~--~~~---~--~~ You

[Lift] Re: Deprecations / compilation failure on 0.10-SNAPSHOT

2008-09-17 Thread Jorge Ortiz
Kris, There were no changes to the 'bind' function. What changed was the way in which BindParams (which bind takes as arguments) are generated. The deprecated code for generating BindParams (using --) is on lines 123-156 of BindHelpers.scala The new code for generating BindParams (using -) is

[Lift] Re: Template questions

2008-09-11 Thread Jorge Ortiz
I believe scala.xml._ has an implicit conversion from Seq[Node] to NodeSeq. If he were using a Scala Seq it would just work. --j On Wed, Sep 10, 2008 at 11:23 PM, Marius [EMAIL PROTECTED] wrote: On Sep 11, 1:11 am, Jorge Ortiz [EMAIL PROTECTED] wrote: Group won't work, as it too needs

[Lift] Re: bind() and lift:embed

2008-09-11 Thread Jorge Ortiz
There's some parallels between Lift's templates and lazy evaluation. In the examples below, the code inside the snippets is lazy, it doesn't get evaluated until it is needed. Maybe what we need is a way to programmatically force evaluation of some template-code? Then if a snippet has an embed

  1   2   >