[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* Date: Sat, Dec 19, 2009 at 8:29 AM To: scala-internals Should EPFL endeavor to get some free advertising for Scala at

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 wrote: > I've been a bit coy

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 wrote: > Any update on this? > > > On Mon, Jun 22, 2009 at 10:55 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >> >> On

[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 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 > and keeping it up

[Lift] Re: Using Mapper outside Lift?

2009-06-23 Thread Jorge Ortiz
ve the recoding time 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" wrote: > > > I've used Mapper in desktop apps too. It works fine. >

[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 wrote: > > 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 it (I think last w

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 t

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

2009-06-16 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 wrote: > > I want to thank everyone that replied on this.

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 p

[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 wrote: > Jonas, > > i applaud the effort. i agree with DPP sentiments regarding annotations. > That said, i feel pretty comfortable that transactions fit entirely in a > monadic context. Sinc

[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 wrote: > > Sweet! Well done Jorge / David for getting this out so quickly with > the announcement of 2.7.4 > > > --~--~-~--~~~---~--~~ You received this messag

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

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

[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 wrote: > > > My advice, if your generally / vaugly familiar with Scala from reading PiS > (that truly is a very unfortunate acronym!) just dive into

[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 wrote: > > > On Wed, Apr 1, 2009 at 8:06 PM, Kris Nuttycombe > wrote: > >> >> Something that occurred to me recently along these lines - perhaps >> someone can disabuse me of this notion. In Java, such recursive types >> are necessary because you don

[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 wrote: > > Guys, > > I've b

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

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

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

[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 wrote: > > http://liftweb.net/download.html > > Call

[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_snippet(

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
lak wrote: > What version of Scala? > > > On Tue, Mar 17, 2009 at 5:45 PM, Jorge Ortiz wrote: > >> And if they're useful, can subclasses of MappedForeignKey define them more >> exactly? >> >> Errors looked like this: >> >> [WARNING] >&g

[Lift] Re: FieldType and ForeignType

2009-03-17 Thread Jorge Ortiz
impossible, since 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 wrote: > Anyone know what these two types:

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

[Lift] Re: Custom Boot Class

2009-03-16 Thread Jorge Ortiz
>> >> Derek >> >> >> On Mon, Mar 16, 2009 at 9:04 AM, Viktor Klang wrote: >> >>> No, it was working when we switched to the filter. :/ >>> >>> >>> On Mon, Mar 16, 2009 at 2:58 PM, Derek Chen-Becker < >>>

[Lift] Re: Custom Boot Class

2009-03-16 Thread Jorge Ortiz
; Sergey > > > On Mon, Mar 16, 2009 at 1:31 PM, Jorge Ortiz wrote: > >> 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: >> >> >> bootloader >> boo

[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 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 > wrote: > > Hi Mal, > > That aspect of the lift temp

[Lift] Re: Proposed localization change to S

2009-03-09 Thread Jorge Ortiz
Nulls are really bad form in idiomatic Scala. If nulls are just treated as the empty string, why can't the user just pass in the empty string ""? It's less typing, and it's more clear how it'll be handled. --j On Fri, Mar 6, 2009 at 11:41 PM, Derek Chen-Becker wrote: > I think that adding an ove

[Lift] Re: Record and JSON

2009-03-06 Thread Jorge Ortiz
And I forgot the link: http://paste.pocoo.org/show/106757/ --j On Fri, Mar 6, 2009 at 12:11 PM, Jorge Ortiz wrote: > 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 &

[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 wrote: > > > On Wed, Mar 4, 2009 at 9:08 AM, Marius wrote: > >> >> Hi, >> >> I was thinking that it might be

[Lift] Re: Incomplete Site: Missing JavaDoc

2009-03-04 Thread Jorge Ortiz
The ScalaDocs are there. They're just hard to find. And they're split up by module. For example: http://scala-tools.org/mvnsites/liftweb/lift-util/scaladocs/index.html http://scala-tools.org/mvnsites/liftweb/lift-webkit/scaladocs/index.html http://scala-tools.org/mvnsites/liftweb/lift-mapper/scala

[Lift] Re: Tracking the latest with maven.. but not too quickly

2009-03-03 Thread Jorge Ortiz
You can run Maven in offline mode with the -o flag. That should stop it from fetching anything. --j On Tue, Mar 3, 2009 at 5:34 PM, Lee Mighdoll wrote: > I've a local copy of the lift sources that I'd like to build and debug my > app against. So I currently reference the 1.1-SNAPSHOT artifact

[Lift] Re: Issue with http://liftweb.net site design (IE7 / Opera 9.63)

2009-02-28 Thread Jorge Ortiz
Done. --j On Sat, Feb 28, 2009 at 3:15 AM, Tim Perrett wrote: > > Guys, > > I've just committed the CSS patches for liftweb.net - I've also > updated some of the content. > > Can someone get that onto the live box please? > > I've checked it in Opera, FF, Safari and IE7 > > Thanks > > Tim > > >

[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 wrote: > > > On Sun, Feb 22, 2009 at 3:45 PM, Paulo Cheque wrote: > >> >> Thanks by the fast answer D

[Lift] UPDATED jQuery to 1.3.2 (eom)

2009-02-22 Thread Jorge Ortiz
--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 liftweb+unsubscr...@googlegroups.com For m

[Lift] Re: populate DB table upon creation

2009-02-20 Thread Jorge Ortiz
Your tables will be created during the call to Schemifier.schemify. If you want to add data to the tables, your best bet is to do so in Boot.scala after the call to schemify. --j On Fri, Feb 20, 2009 at 9:18 AM, DavidV wrote: > > I wondering how to populate rows of a DB table upon it's creatio

[Lift] Re: A round of thanks to Marius for better GC

2009-02-20 Thread Jorge Ortiz
I still see some lift:when attributes in Lift output. Is this expected? (I seem to remember them being around long before the gc code went in.) --j On Thu, Feb 19, 2009 at 6:29 PM, David Pollak wrote: > Folks, > Marius made some patches to Lift's GC support today. He removed the > lift:gc tag

[Lift] Re: Weird Mapper type error

2009-02-19 Thread Jorge Ortiz
ome point, it gets confused. > Please use List(). > > >> >> >> Derek >> >> >> On Thu, Feb 19, 2009 at 2:35 AM, Jorge Ortiz wrote: >> >>> Yup, this is a type inference bug. If I'm not mistaken then >>> >>> override

[Lift] Re: Weird Mapper type error

2009-02-19 Thread Jorge Ortiz
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 probably just stick with the List(...) syntax. --j On Wed, Feb 18, 2009 at 10:23 PM, Derek Chen-Bec

[Lift] Re: Truncate?

2009-02-19 Thread Jorge Ortiz
Yeah, a 1.1 branch seems like a good idea. --j On Wed, Feb 18, 2009 at 5:20 PM, Tim Perrett wrote: > > Will do. > > Shall I create a 1.1 branch of lift so we can continue dev whilst the > 1.0 feature freeze is on? > > Cheers, Tim > > On Feb 19, 12:50 am, David Pollak > wrote: > > We don't have

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

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

2009-02-16 Thread Jorge Ortiz
Can lift:gc be renamed lift_gc until the bug is addressed? On Mon, Feb 16, 2009 at 9:20 AM, David Pollak wrote: > > > On Mon, Feb 16, 2009 at 9:04 AM, Tim Perrett wrote: > >> >> What's the impact overall? > > > The impact is: use innerHTML directly rather than going through jQuery's > HTML re-w

[Lift] Re: thanks

2009-02-12 Thread Jorge Ortiz
On Thu, Feb 12, 2009 at 2:54 PM, Oliver wrote: > > Thanks for all the help and support over the last few months. During > that time, I've developed several > Lift applications that are now successfully running in production at > the company I work for. > > One of the things that has impressed me

[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 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 wrote: > You're right, I completely fo

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

[Lift] IMPORTANT: Library Upgrades

2009-02-12 Thread Jorge Ortiz
I've upgraded the dependencies for all of the Lift components and sample projects. I used the latest backward-compatible version that was available on public Maven repositories. (See below for the complete list.) PLEASE CHECK YOUR APPS to make sure nothing breaks. You only have a couple of weeks to

[Lift] Re: *** BREAKING CHANGES ***

2009-02-10 Thread Jorge Ortiz
Try (without the = sign): LiftRules.exceptionHandler.prepend { case (mode, state, ex) => RedirectResponse("/error") } --j On Mon, Feb 9, 2009 at 10:47 PM, Oliver wrote: > > If I try to use the following, I get a reassignment to Val error - any > ideas? > > LiftRules.exceptionHandler.prepend

[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 wrote: > Scalads and lasses and Lifted, > Does anyone have any experience with using Quaere under Scala? In > particular, i'm wondering i

[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 Date: Mon, Feb 2, 2009 at 9:36 AM Subject: [scala] Jane Street Summer Program To: Scala list This caught my eye and might b

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

2009-01-22 Thread Jorge Ortiz
;d already made that fix on > other sites. I don't know how I missed it. Tired, I guess. > > Pressure off now for a moment at least. > > Chas. > > Jorge Ortiz wrote: > > Ahh, I see what the problem might be. There was another change to > EnumvType: > > >

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

[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 { I

[Lift] Re: Heartbeat

2009-01-22 Thread Jorge Ortiz
Summary: DPP: I can haz heartbeat? Marius: Heartbeat? I dunno... that sounds ugly... DPP: It comes with GC too! Marius: Oh hellz yeah! --j On Thu, Jan 22, 2009 at 10:30 AM, Marius wrote: > > > > On Jan 22, 8:20 pm, David Pollak > wrote: > > On Thu, Jan 22, 2009 at 9:35 AM, Marius wrote: > >

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

[Lift] Re: Can only throw throwable objects?

2009-01-18 Thread Jorge Ortiz
com/dpp/liftweb/blob/67a89ceafa6d7f86028eccfe8958b20c30ec1b3f/sites/JPADemo/JPADemo-spa/src/main/scala/net/liftweb/jpademo/model/Enumv.scala --j On Sun, Jan 18, 2009 at 11:06 AM, Jorge Ortiz wrote: > Yes, sorry. Scala 2.7.3 added a method to Enumeration with type signature: > valueOf(String): Option[Value] > > We

[Lift] Re: Can only throw throwable objects?

2009-01-18 Thread Jorge Ortiz
Yes, sorry. Scala 2.7.3 added a method to Enumeration with type signature: valueOf(String): Option[Value] We previously had a trait Enumv in net.liftweb.jpademo.model which had a helper method for enumerations with type signature: valueOf(String): Value // returns null if not found Becaus

[Lift] Re: Lift compiles with 2.7.3.RC2

2009-01-10 Thread Jorge Ortiz
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 wrote: > >> I've made two Git branches which compile Lift against Sc

[Lift] Lift compiles with 2.7.3.RC2

2009-01-09 Thread Jorge Ortiz
I've made two Git branches which compile Lift against Scala 2.7.3-SNAPSHOT and 2.7.3.RC2. As soon as Scala 2.7.3 goes final we'll release Lift 1.0.RC1. --j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" grou

[Lift] Re: AppTest.scala in lift-archetype-basic

2009-01-09 Thread Jorge Ortiz
Good catch, I've committed your patch. Thanks Marc! --j On Fri, Jan 9, 2009 at 2:55 PM, Marc Boschma > wrote: > I've just noticed that the test in AppTest.scala for XML and XHTML etc > doesn't take into account Html entities... > > > > > > > > So I suggest the following change (as a diff -c) a

[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 wrote: > > "related to a combination of Option and Either" > I'm not sure how I am missing that point since that is exactly the > code I

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

[Lift] Re: Can or Box or something else

2009-01-06 Thread Jorge Ortiz
this notion of "Well Can is a something", > then I have already pointed out a suggestion. Try to think of others, > but do not say that Can is an Option - it is not, not even close. Poor > Oliver was all confuzzled when he popped this one to me the other day. > > -- > Tony M

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

[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 wrote: > > On Sun, Jan 4, 2009 at 8:14 PM, O'Rorke Paul wrote: > > > An advantage of MySQL on the Mac is that there is a free, reasonably > > nice GUI database tool (CocoaMySQL). > > I could use Derby

[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 wrote: > > Hi, > > If you use so far the HTTP authentication support in Lift, you code > would likely break. So far we could assign a single r

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

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

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

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

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

[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions

2008-12-13 Thread Jorge Ortiz
Not to beat a dead horse, but... what's the rationale, again, for throwing an exception after boot? Is there a real danger to some or all RulesSeqs being mutable after boot? If some, then those rules should selectively be protected. Even if they're all dangerous, there are better (i.e., type safe)

[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 wrote: > Folks, > > Who has time to do testing, etc. with 2.7.3? > > Thanks, > > David > > -- Forwarded message -- > From: Philipp Haller > Date: Fri, Dec 12, 2008 at 6:42 AM > Subject: Re: [scala-user] Is there a memory leak in 2.7.2 Actors? > T

[Lift] Re: Debugging CometActors?

2008-12-10 Thread Jorge Ortiz
; } > > /** >* If there's something to do in addition to starting the actor up, > pre-pend the >* actor to this List >*/ > var failureFuncs: List[(Actor, Throwable) => Unit] = logActorFailure _ :: > startAgain _ :: Nil > > this.start &

[Lift] Debugging CometActors?

2008-12-10 Thread Jorge Ortiz
Is there a good way to debug CometActors? Right now if a CometActor throws an exception, it gets swallowed silently, kills the actor, and Lift hangs waiting for a response from the now-dead actor until the timeout kicks in. If there aren't any debug mechanisms, are there any objections to me commi

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

2008-12-09 Thread Jorge Ortiz
} > > def prependRule(r: T) { >safe_? { > rules = r :: rules >} > } > > def appendRule(r: T) { >safe_? { > rules = rules ::: List(r) >} > } > } > > Br's, > marius > > On Dec 9, 10:12 pm, "Jorge Ortiz&q

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Jorge Ortiz
t; > On Dec 9, 10:01 pm, "David Pollak" <[EMAIL PROTECTED]> > wrote: > > And we should freeze the lists after Boot is finished. The permutation > > methods should throw exceptions post-boot > > > > On Dec 9, 2008 11:39 AM, "Jorge Ortiz" <

[Lift] Re: LiftRules consolidation

2008-12-09 Thread Jorge Ortiz
r Boot 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 wit

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

[Lift] Re: How does lift wrap the templates

2008-12-06 Thread Jorge Ortiz
im Perrett <[EMAIL PROTECTED]> wrote: > > A - thats some scala Voodoo - never seen the Either construct > before! > > Thanks Jorge > > On Dec 6, 6:39 pm, "Jorge Ortiz" <[EMAIL PROTECTED]> wrote: > > Try: > > > > case "badger&

[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
s it is a very good observation ! > > Br's, > Marius > > On Dec 2, 8:51 pm, "Jorge Ortiz" <[EMAIL PROTECTED]> wrote: > > class Foo > > > > // type is singleton type Bar.type > > object Bar extends Foo { > > def exc = (new Except

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Jorge Ortiz
I guess that's a bit misleading. new Foo { ... } gets it's own .class file too, but at the level of types, it doesn't get it's own type, hence the need for reflection. On Tue, Dec 2, 2008 at 12:51 PM, Jorge Ortiz <[EMAIL PROTECTED]> wrote: > class Foo > >

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

[Lift] Re: Record small paradigm shift

2008-12-02 Thread Jorge Ortiz
If you add (non-overriden) fields to a val, they'll always be invoked via reflection, which takes a performance hit. Objects, on the other hand, define their own class so reflection isn't necessary. I don't expect this to be an issue in 99% of situations, but it's another "gotcha" to be aware of.

[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: JPA and Record

2008-11-29 Thread Jorge Ortiz
Just wanted to chime in real quick... > type Getter = () => MyType // Can this be by-name in any way? > No. By-names are not first-class types. It's gotta be () => MyType --j --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

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

[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] Re: Testing for well-formed XML

2008-11-27 Thread Jorge Ortiz
ely help me avoid my own dumb errors. > > I'm just throwing this out there, but would it make sense to try to make > this a Maven build plugin in the future? That way you could control where > it runs in the lifecycle if you wanted to. > > -Josh > > > On Wed, Nov 2

[Lift] Re: Testing for well-formed XML

2008-11-26 Thread Jorge Ortiz
} } wellFormed(new java.io.File("src/main/webapp")) val numFails = failed.size if (numFails > 0) { val fileStr = if (numFails == 1) "file" else "files" val msg = "Malformed XML in " + numFails + " " + fileStr + ":

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

[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(t

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

[Lift] Re: Error on compile with 2.7.2

2008-11-18 Thread Jorge Ortiz
then later an extra ) which > 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

[Lift] Re: Error on compile with 2.7.2

2008-11-18 Thread Jorge Ortiz
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://lampsvn.epfl.ch/trac/scala/ --j On Tue, Nov 18, 2008 at 2:44 PM, Charles F. Munat <[EMAIL PROTECTED]> wrote: > > I changed the Scala version to 2.7.2, blew away .m2,

[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

  1   2   >