[Lift] Re: File uploads

2009-02-23 Thread Timothy Perrett
Chas, Why dont you simply use property configuration based on the run mode? Cheers, Tim On Feb 23, 5:42 am, Charles F. Munat c...@munat.com wrote: I am doing file uploads to several of my sites. Right now, I've hard coded the path to the directory to which the files are saved. This is a

[Lift] Re: File uploads

2009-02-23 Thread Timothy Perrett
, Timothy Perrett he...@timperrett.com wrote: Chas, Why dont you simply use property configuration based on the run mode? Cheers, Tim On Feb 23, 5:42 am, Charles F. Munat c...@munat.com wrote: I am doing file uploads to several of my sites. Right now, I've hard coded the path

[Lift] Re: File uploads

2009-02-23 Thread Timothy Perrett
never paid any attention to run mode, so I am probably running all these production sites in debug mode. How does one set the run mode? Thanks! Chas. Timothy Perrett wrote: Sorry, let me clarify that a bit more with an example... could you not dynamically set the upload path based on run

[Lift] Re: Brokety broke (ajax forms)

2009-02-26 Thread Timothy Perrett
Do you know if things have been working ok for you since the 1.3.2 update? Thanks, Tim On 26/02/2009 01:16, Charles F. Munat c...@munat.com wrote: Suddenly all my AJAX forms are not working. I get an error in Firebug: JSON is not defined lift_registerGC() liftAjax.js (line 79) (?)()

[Lift] Re: Removing xmlns:lift=http://liftweb.net/ in rendered page

2009-02-27 Thread Timothy Perrett
is processed, is there a post process operation in the pipeline anywhere ? Thanks, Ross. On Feb 27, 1:59 pm, Timothy Perrett timo...@getintheloop.eu wrote: Ross, You cannot remove this namespace as it is needed to make it valid XHTML - Scala XML processing uses a strict xml processer

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

2009-02-27 Thread Timothy Perrett
Im afraid not David, I just created some bespoke CSS. What makes you ask? Thanks, Tim On 27/02/2009 16:30, David Bernard david.bernard...@gmail.com wrote: Do you use Blueprint css to create the new site ? --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Adding bundle factory to LiftRules

2009-02-27 Thread Timothy Perrett
Don't they achieve different things? resourceNames just defines the base name for which the default java system starts looking for localizations right? Cheers, Tim On 27/02/2009 17:54, marius d. marius.dan...@gmail.com wrote: How would LiftRule.resourceNames work with type

[Lift] Re: Incomplete Site: Missing JavaDoc

2009-03-04 Thread Timothy Perrett
On a related note, whilst we appreciate this is not ideal for new users (right now), we are trying to make it better as Jorge says. The flip side of this is that whilst its more difficult to consolidate API documentation with the maven modules, its a lot more modular which is actually better for

[Lift] Re: IDE

2009-03-04 Thread Timothy Perrett
Paulo, Lots of people use netbeans and eclipse. Im sure if you have issues with the eclipse plugin its maintainers would love bug reports :-) Otherwise, I know a lot of use (myself included) just use TextMate with a compiler open in a terminal window which works great. Hope that helps Tim On

[Lift] Re: Record and JSON

2009-03-04 Thread Timothy Perrett
Interesting thread. Whats going on with Record at the moment? Now 1.0 is out, will attention shift back to making record the primary persistence mech in lift? (sorry for the thread hi-jack) Cheers, Tim On Mar 4, 5:20 pm, marius d. marius.dan...@gmail.com wrote: :) .. ok ... let me noodle for

[Lift] Re: Record and JSON

2009-03-06 Thread Timothy Perrett
POC == Proof of concept On Mar 5, 11:33 pm, Charles F. Munat c...@munat.com wrote: POC? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To

[Lift] Re: Proposed addition to LRU

2009-03-06 Thread Timothy Perrett
Scratch that, had to change to: def keys: List[KeyType] = map.keySet().toList.map(_.asInstanceOf [KeyType]) because of a type error. On Mar 6, 9:50 am, Timothy Perrett timo...@getintheloop.eu wrote: Ok - I changed it to: def keys: List[KeyType] = map.keySet().asInstanceOf[Set [KeyType

[Lift] Re: Proposed localization change to S

2009-03-06 Thread Timothy Perrett
I've just been looking at some of the other method overloads in S and it appears we already have: S.loc(String, NodeSeq) This is exactly what I need anyway - wondering if there is any need to override S.? with another method now? Cheers, Tim On Mar 6, 5:03 pm, Timothy Perrett timo

[Lift] Re: Proposed localization change to S

2009-03-06 Thread Timothy Perrett
dchenbec...@gmail.com wrote: It would be a little cleaner if there was a helper overload: def loc (key : String, default : String) = loc(key, Text(default)) Derek On Fri, Mar 6, 2009 at 12:16 PM, Timothy Perrett timo...@getintheloop.eu wrote: I've just been looking at some of the other

[Lift] Re: Proposed localization change to S

2009-03-08 Thread Timothy Perrett
({   Log.warn({() = Failed lookup of + key + for locale + S.locale})   Text(Box.!!(default).openOr()) } Cheers, Derek On Fri, Mar 6, 2009 at 4:57 PM, David Pollak feeder.of.the.be...@gmail.comwrote: On Fri, Mar 6, 2009 at 3:52 PM, Timothy Perrett timo...@getintheloop.euwrote: Isn't

[Lift] Re: Lift-friendly Web Hosting

2009-03-10 Thread Timothy Perrett
Generally, we run our own servers with root access and configure Jetty, or another servlet container to host the lift app. Its no different than hosting any other JVM based web application in that sense. Cheers, Tim On Tue, Mar 10, 2009 at 1:03 AM, Jeff Chen jeff.chen.gr...@gmail.comwrote:

[Lift] Re: SQL Server Errors

2009-03-10 Thread Timothy Perrett
Is someone able to take ownership of these tickets? Cheers, Tim On Mar 9, 5:52 pm, Tim Perrett timo...@getintheloop.eu wrote: Guys, Just logged a couple of bugs for SQL Server drivers: http://liftweb.lighthouseapp.com/projects/26102/tickets/18-sql-server...

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-10 Thread Timothy Perrett
Good question I hadn¹t thought about it like that. IMO, they need something ­ as if you want to localize it makes it nearly impossible otherwise... Cheers, Tim On 10/03/2009 16:58, Derek Chen-Becker dchenbec...@gmail.com wrote: Actually, I'm trying to remember whether COMET actors have

[Lift] Re: Google search results

2009-03-11 Thread Timothy Perrett
In short, no. We can't fix those results as they are generated by google not by our good selves. I belive this is because the wiki used to be on the lift TLD. Over time this will work itself out - appologies for any confussion this had caused. Cheers, Tim Sent from my iPhone On 11 Mar

[Lift] Re: Bug in LiftRules defaultLocaleCalculator

2009-03-11 Thread Timothy Perrett
) at scala.actors.Reaction.run(Reaction.scala:78) at scala.actors.Scheduler$$anon$2.run(Scheduler.scala:77) at scala.actors.FJTaskRunner.run(Unknown Source) On Mar 10, 5:22 pm, Timothy Perrett timo...@getintheloop.eu wrote: For sure im not sure how to write a spec test for something like

[Lift] Re: Slash and burn

2009-03-13 Thread Timothy Perrett
Within Lift, /page does what it says on the tin, whilst /page/ actually works out as: /page/index IMO, this is good. If you want them to be the same, I think you could either do a rewrite to the same content (if memory serves there is also a boolean option for defining if your using the

[Lift] Re: Slash and burn

2009-03-13 Thread Timothy Perrett
nothing else? case class ModifiedPath (path : List[String]) extends RewriteResponse(...) Derek On Fri, Mar 13, 2009 at 10:51 AM, Timothy Perrett timo...@getintheloop.euwrote: Within Lift, /page does what it says on the tin, whilst /page/ actually works out as: /page/index IMO

[Lift] Re: Slash and burn

2009-03-13 Thread Timothy Perrett
standard behavior in web servers (Apache returns a 301 from the former to the latter), so I think something that requires less user intervention would be good. Perhaps at most we would want a boolean var on LiftRules to control the behavior. Derek On Fri, Mar 13, 2009 at 12:15 PM, Timothy Perrett

[Lift] Re: Slash and burn

2009-03-13 Thread Timothy Perrett
It seems that Lift used to serve /folks/ when /folks was called, but recently it stopped. It would be nice if it looked for a *file* with that name first, but then tried directories if no file was found. Is there a downside to that? Im afraid your mistaken about it previously having

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
I agree - it does seem like we should really be doing this by default. Even chinese, hebrew and double byte languages will be good using UTF-8 right? Is there a reason someone might want to set it to another encoding / collation other than UTF-8? I cant think of one right now... @chas - from

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
Phew :) Out of interest, why do you want to use glashfish rather than jetty? Tim On 16/03/2009 10:08, Charles F. Munat c...@munat.com wrote: Just Jetty on the server. Maven/Jetty while developing. (I'm not that dumb.) :-) Chas. --~--~-~--~~~---~--~~

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
, monitor, etc. them. Chas. Timothy Perrett wrote: Phew :) Out of interest, why do you want to use glashfish rather than jetty? Tim On 16/03/2009 10:08, Charles F. Munat c...@munat.com wrote: Just Jetty on the server. Maven/Jetty while developing. (I'm not that dumb.) :-) Chas

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
, Timothy Perrett timo...@getintheloop.eu wrote: Im hosting several sites on a single jetty install - its working perfectly right now. Are you not familiar with the virtual hosting options in jetty? Its pretty well documented on their wiki and will let you host from the root context

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
Lol! Lassie?! What?! Haha. Check out this in my jetty.xml: New class=org.mortbay.jetty.webapp.WebAppContext ArgRef id=Contexts//Arg ArgSystemProperty name=jetty.home//webapps/myapplication.war/Arg Arg//Arg Set name=defaultsDescriptorSystemProperty name=jetty.home

[Lift] Re: xml parser, utf-8, special characters... kill me now

2009-03-16 Thread Timothy Perrett
So will this do the virtual hosting? (At first glance, I'm not seeing how.) Correct :-) Its all on the jetty wiki - http://docs.codehaus.org/display/JETTY/Virtual+hosts And if I need to reboot one application, do I have to reboot them all? Hmm good question - right now im not 100% sure

[Lift] Re: Where to continue after Getting Started?

2009-03-17 Thread Timothy Perrett
Chas, That took me a good 5 mins to read so i've no idea how long it took you to write!! Good work that man... a great comparison. Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this

[Lift] Re: SQL Server Errors

2009-03-17 Thread Timothy Perrett
*bump* Al, any progress on these? Cheers, Tim On Mar 10, 11:04 am, Timothy Perrett timo...@getintheloop.eu wrote: Is someone able to take ownership of these tickets? Cheers, Tim On Mar 9, 5:52 pm, Tim Perrett timo...@getintheloop.eu wrote: Guys, Just logged a couple of bugs for SQL

[Lift] Re: SQL Server Errors

2009-03-17 Thread Timothy Perrett
: I think the DateTime issue should be fixed pretty easily in MappedDateTime itself. Let me make a new branch and make a minor change. Derek On Tue, Mar 17, 2009 at 12:09 PM, Timothy Perrett timo...@getintheloop.eu wrote: *bump* Al, any progress on these? Cheers, Tim On Mar 10

[Lift] Re: SQL Server Errors

2009-03-18 Thread Timothy Perrett
no guarantees. Just to confirm, can you change your snippet to use: description - m.description.toString and see if you get the same thing? Thanks, Derek On Tue, Mar 17, 2009 at 1:05 PM, Timothy Perrett timo...@getintheloop.eu wrote: Hey Derek, Awesome - thanks. I knew

[Lift] Re: SQL Server Errors

2009-03-18 Thread Timothy Perrett
is really being stored in the field? I'm wondering if somehow the Clob is being converted to a string lower in the chain so you're just getting a string of net.sourceforge.jtds.jdbc.clobi...@aeaf68. Derek On Wed, Mar 18, 2009 at 3:45 AM, Timothy Perrett timo...@getintheloop.euwrote: Hey

[Lift] Re: SQL Server Errors

2009-03-18 Thread Timothy Perrett
dchenbec...@gmail.comwrote: Just to confirm, you're using the latest jTDS driver, right? Derek On Wed, Mar 18, 2009 at 8:39 AM, Timothy Perrett timo...@getintheloop.eu wrote: Ok thats interesting about Text/Varchar(max)... I didnt know that. Whats the JTDS support for that? Is it ok

[Lift] Redirecting a user from Comet Actor

2009-03-19 Thread Timothy Perrett
Is their any way to avoid a response shortcut exception when trying to redirect from Comet Actor? Cheers, Tim On Mar 18, 11:37 am, Tim Perrett timo...@getintheloop.eu wrote: Guys, I have a situation where by im using comet actors to watch something on a 3rd party system. Now, when the

[Lift] Re: Redirecting a user from Comet Actor

2009-03-19 Thread Timothy Perrett
fire a client-side window.location=... IIRC. Derek On Thu, Mar 19, 2009 at 3:20 AM, Timothy Perrett timo...@getintheloop.euwrote: Is their any way to avoid a response shortcut exception when trying to redirect from Comet Actor? Cheers, Tim On Mar 18, 11:37 am, Tim Perrett timo

[Lift] Re: IDE

2009-03-19 Thread Timothy Perrett
Alex, you could always use JavaRebel... This will replace the classes dynamically for you instantly (no more Jetty reboots required, just browser refresh). They do a scala only version of JavaRebel that you can download for free. Thanks Tim On 19/03/2009 15:12, Alexander Kellett

[Lift] Re: horizontal navbar drop-downs

2009-03-19 Thread Timothy Perrett
@marius: You might want to ping Debby, as I belive she setup the lighthouse account for Lift... Perhaps she is the gate keeper? Cheers, Tim On 19/03/2009 19:30, Derek Chen-Becker dchenbec...@gmail.com wrote: Feel free to take it when we let you ;). On Thu, Mar 19, 2009 at 1:16 PM, marius

[Lift] Re: JPA inheritance

2009-03-20 Thread Timothy Perrett
Chas, If you want the object to tell you what it is can you not use some form of reflection? Tim On 20/03/2009 11:03, Viktor Klang viktor.kl...@gmail.com wrote: On Fri, Mar 20, 2009 at 11:43 AM, Charles F. Munat c...@munat.com wrote: Not really. What I want to do is have the object

[Lift] Re: Mapper to Record ORM

2009-03-20 Thread Timothy Perrett
Potentially in a few version of Lift it will become deprecated, but that wont be anytime soon and it will be supported by the commit team for the foreseeable future. Cheers, Tim On 20/03/2009 13:28, Derek Chen-Becker dchenbec...@gmail.com wrote: There's no real reason to make it go away even

[Lift] Re: in a heap o' trouble

2009-03-20 Thread Timothy Perrett
The mojo's are well documented both on scala-tools maven site and in the code itself. I'm on my iPhone right now so can't paste the link (damn you apple!) but it's all on scala-tools! If been looking for specific options myself before and found it to be very well organized. Tim Sent from

[Lift] Re: Portable components of logic?

2009-03-23 Thread Timothy Perrett
Sure, I know this :) But what about CSS etc, how can they then become resolvable / includable in html (and/or scala view) code? Thanks Tim On 23/03/2009 18:08, David Pollak feeder.of.the.be...@gmail.com wrote: Tim, Look in LiftRules for SnippetDispatchPF Yes, you can dispatch snippets

[Lift] Re: Portable components of logic?

2009-03-23 Thread Timothy Perrett
You could have the CSS reference generated in the Snippet. When you say reference, are you referring to a style-sheet link or the *actual* CSS itself? You can also have views in code (see ViewDispatchPF) and do lift:embed / in your code to refer to the Scala-based view code. I've seen

[Lift] Re: Portable components of logic?

2009-03-23 Thread Timothy Perrett
Perhaps tomorrow.  I will be whipped into a mass of jello if I don't get Ch08D2 done today... along with the front matter. lol! No worries at all David. Tomorrow would be great :-) Thanks, Tim --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Adding / Updating a JsObj

2009-03-24 Thread Timothy Perrett
Hmm, I saw those methods but they are not documented so didnt know what they did! Will +* replace an object thats the same? On Mar 24, 6:45 pm, marius d. marius.dan...@gmail.com wrote: Please see def props: List[(String,JsExp)] and def +*(other: JsObj) would this suffice ? +* looks

[Lift] Re: Adding / Updating a JsObj

2009-03-24 Thread Timothy Perrett
not add some support for Map[String, JsExp] and going to to/from JsObj? IMO, it seems like its a natural fit given the key-pair nature of JsObj. Thoughts? Cheers, Tim On Mar 24, 7:10 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hmm, I saw those methods but they are not documented so didnt know

[Lift] Re: Adding / Updating a JsObj

2009-03-24 Thread Timothy Perrett
Hey Marius, Not difficult but not convenient either such as: def update(name: String, newVal: JsExp, obj: JsObj) = (for (found - obj.props if found._1 != name) yield found) ::: List(name, newVal) I think your exactly right - its doable, but it just feels dirty. lol. Personally I'm fine

[Lift] Re: Lift Authentication

2009-03-25 Thread Timothy Perrett
Chad, We have HTTP Basic Auth and HTTP Digest Auth support in Lift. The authentication is implemented as a partial function that you implement like so: LiftRules.httpAuthProtectedResource.prepend { case (ParsePath(api :: _, _, _, _)) = Full(AuthRole(admin)) }

[Lift] Re: File - Class naming

2009-03-25 Thread Timothy Perrett
Hmm - Im a little skeptical. One of the nice things about Scala is that you don't need one source file per class... that really bugs me about Java. Can you be suscint about what stuff your splitting. Right now the codebase in lift feels workable. I wouldnt want to see it split out into a jillion

[Lift] Re: Lift Authentication

2009-03-25 Thread Timothy Perrett
Further to that example, no doubt someone will laugh at me for using database access on each request... However this is just an example! In reality I actually read from an LRU cache to save the database access. Cheers, Tim On 25/03/2009 15:08, Timothy Perrett timo...@getintheloop.eu wrote

[Lift] Re: File - Class naming

2009-03-25 Thread Timothy Perrett
Ah ok I see this - so your not doing any splitting? just re-naming? What rational would you apply to decide on most significant class / object? Im not trying to be difficult or anything, id just like to fully understand what you want to chage and how that could happen. Cheers, Tim On Mar 25,

[Lift] Re: File - Class naming

2009-03-25 Thread Timothy Perrett
That is indeed a fair point! The current rational for naming is probably something along the lines of that's what felt right rather than anything more logical :( Ok, what your proposing sounds cool to me. Provided it doesn't change any FCQN then were good to go. Cheers, Tim On 25/03/2009

[Lift] Re: Lift Authentication

2009-03-25 Thread Timothy Perrett
the authentication provided by HttpAuth.  This requires server logic rather than a hard-coded auth file.   On Wed, Mar 25, 2009 at 10:20 AM, Timothy Perrett timo...@getintheloop.eu wrote: Further to that example, no doubt someone will laugh at me for using database access on each request... However

[Lift] Re: What a difference a CPU makes

2009-03-25 Thread Timothy Perrett
Also, what command are you running to constitute a ³build²? I usually run: mvn clean package install scala:doc What are you guys running as im interested in the comparison. Cheers, Tim On 25/03/2009 12:38, David Pollak feeder.of.the.be...@gmail.com wrote: Derek, What OS are you running?  

[Lift] Re: What a difference a CPU makes

2009-03-25 Thread Timothy Perrett
at 9:22 AM, Timothy Perrett timo...@getintheloop.euwrote: Also, what command are you running to constitute a “build”? I usually run: mvn clean package install scala:doc What are you guys running as im interested in the comparison. Cheers, Tim On 25/03/2009 12:38, David Pollak

[Lift] Re: Dynamic Image generation / HttpServletResponse

2009-03-25 Thread Timothy Perrett
If you'd like graphing, depending on your use case perhaps check out the flot graph widget in lift-widgets Sent from my iPhone On 25 Mar 2009, at 21:38, Thomas Rynne thomas.ry...@gmail.com wrote: Hi, I want to dynamically generate images (actually a graph). I could write a seperate

[Lift] Re: Form action URI's

2009-03-26 Thread Timothy Perrett
Sorry, let me be more accurate. Lets say your viewing the following: /catalogue?filter=marinlimit=10page=1 I then want a dropdown menu to change ³10² in limit to, say, 20. So I setup a form, but when it does the POST of course those paramaters are gone and the URL goes to: /catalogue Which

[Lift] Re: mixinAttributes help

2009-03-27 Thread Timothy Perrett
Hi Bradford, Can you just elaborate on what your trying to achieve? My assumption is that you want to set the ID of the input field? When your working with lift you dont need to define the input fields in the HTML, only on the serverside. Try this: bind(f, xhtml, query - SHtml.text(query,

[Lift] Re: openOr with a block to cover Nil in the middle of a chain?

2009-03-29 Thread Timothy Perrett
...And that's why Box rocks ;-) On 28/03/2009 15:59, Derek Chen-Becker dchenbec...@gmail.com wrote: somThing.user.map(u = u.firstName.is http://u.firstName.is ) openOr no name --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Timothy Perrett
@marius, this is slick. However, its causing my build to error now... I get the following stack trace when building the entire lift project: [INFO] Compiling 22 source files to /Users/timperrett/repositories/ lift/lift-framework/lift-record/target/classes [WARNING]

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Timothy Perrett
FYI - the job is also failing on Hudson http://scala-tools.org/hudson/job/lift/926/ On Mar 29, 9:29 pm, Timothy Perrett timo...@getintheloop.eu wrote: @marius, this is slick. However, its causing my build to error now... I get the following stack trace when building the entire lift project

[Lift] Re: Bidirectional Record - JSON conversion

2009-03-29 Thread Timothy Perrett
plugin 2.8.0 ... Sorry again and thanks for pointing it out ! Br's, Marius On Mar 29, 11:45 pm, marius d. marius.dan...@gmail.com wrote: Apologies ... fixing it now. On Mar 29, 11:34 pm, Timothy Perrett timo...@getintheloop.eu wrote: FYI - the job is also failing on Hudson http://scala

[Lift] Re: SessionVar or RequestVar example

2009-03-31 Thread Timothy Perrett
Check out the JPA example, that has some neat use of hooking JPA into lifts RequestVar On Mar 31, 10:49 pm, DavidV david.v.villa...@gmail.com wrote: I figured out what I needed by checking out the counting link on the Lift demo page.  However, I'd like to see some more examples of Session or

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

2009-03-31 Thread Timothy Perrett
chronologies (calendar systems). It's also completely immutable (oh, you didn't know java.util.Calendar isn't thread-safe? you're lucky to have never had to track down that bug). LOL!!! Its not thread safe!? Thats somewhat of an oversight isnt it...

[Lift] Re: The Lift 1.1 list

2009-04-01 Thread Timothy Perrett
I think your right Jorge... 2.8 brings some important changes that could quite possibly have some pretty significant breaking changes in the Lift API. I also agree with the JodaTime in record/field, sounds like perfect sense. Cheers, Tim --~--~-~--~~~---~--~~ You

[Lift] Re: Need for lightweight JPA archetype

2009-04-01 Thread Timothy Perrett
Glad im not the only one ;-) On Apr 1, 11:15 pm, Viktor Klang viktor.kl...@gmail.com wrote: Timmy, yeah, I can see that coming in handy. Cheers, Viktor On Wed, Apr 1, 2009 at 11:13 PM, Tim Perrett timo...@getintheloop.euwrote: Guys, Do people see room for a blank JPA archetype

[Lift] Re: Current snapshot

2009-04-01 Thread Timothy Perrett
Chas, Make sure you have: 1.1-SNAPSHOT as the version and you have http://scala-tools.org/repo-snapshots defined in the repository section. Cheers, Tim On Apr 2, 6:59 am, Charles F. Munat c...@munat.com wrote: If I want to use the MenuWidget, what is the current version I should have in my

[Lift] Re: Need for lightweight JPA archetype

2009-04-01 Thread Timothy Perrett
of things. The persistence unit could have a skeleton persistence.xml in the right place but otherwise be empty. The Lift side could have the basic Boot and perhaps a Model class set up with a placeholder persistence setup. Thoughts? Derek On Wed, Apr 1, 2009 at 3:16 PM, Timothy Perrett

[Lift] Re: The Lift 1.1 list

2009-04-02 Thread Timothy Perrett
Just my two pence, but right now I understand these things are possible with ViewDispatchPF and SnippetDispatchPF etc etc and all the other tools we have in lift for creating modular view and logic code. However, the one thing I would say is that a lot of people appear to struggle with the

[Lift] Re: Need for lightweight JPA archetype

2009-04-02 Thread Timothy Perrett
Are you eyeing up for your first commit Chas? ;-) The src of the JPA archetype is here: http://github.com/dpp/liftweb/tree/4a5d4530b407782a2f0e0e99b277432dbb41b640/lift-archetype-jpa-basic Cheers, Tim On Apr 2, 6:02 pm, Charles F. Munat c...@munat.com wrote: Where is the code for these

[Lift] Re: Need for lightweight JPA archetype

2009-04-02 Thread Timothy Perrett
on is what I say - make a branch, knock yourself out and then post to the list before merging to master Cheers, Tim On Apr 2, 7:17 pm, Charles F. Munat c...@munat.com wrote: Yup. But there seem to be a few candidates... Timothy Perrett wrote: Are you eyeing up for your first commit Chas

[Lift] Re: The Lift 1.1 list

2009-04-02 Thread Timothy Perrett
Ok no worries - personally, I dont have any burning need for it right this moment but I could certainly make serious use of it within the next month. Cheers, Tim On Apr 2, 7:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Tim, It's on my backlog. Right now I'm working on a preso for

[Lift] Re: Proposed URL Shortening widget

2009-04-02 Thread Timothy Perrett
Hey Jorge, Im not sure I 100% follow what your saying - are you proposing creating a widget that actually has a shortening algorithm? IMO, isnt it better to not re-invent the wheel and use an existing service? (take advantage of their short domain names etc) What are your thoughts on the

[Lift] Re: Advice on Ramping Up

2009-04-03 Thread Timothy Perrett
My advice, if your generally / vaugly familiar with Scala from reading PiS (that truly is a very unfortunate acronym!) just dive into making a lift app, then go from there. One of the best things about Lift is the community - if you have questions, chances are its either already in the group

[Lift] Re: Who did the hungarian translation?

2009-04-04 Thread Timothy Perrett
Hey Marius Sounds good. I just want to add an Undefined item to the Genders object in Mapper, however it needs updating in our core locale strings so just need a HU translation for Undefined Cheers, Tim On 04/04/2009 15:16, marius d. marius.dan...@gmail.com wrote: A co-worker of mine. I

[Lift] Re: The Lift 1.1 list

2009-04-05 Thread Timothy Perrett
Just looking back over the list - where are we too with the current Record implementation? I want to factor out some localization functionality into a ProtoTranslation style system, but for Record rather than mapper; i'm not sure Record is sufficiently mature however? Cheers, Tim

[Lift] Re: PhET Website

2009-04-05 Thread Timothy Perrett
Hey Sam, I'm currently working on some heavily localized lift systems that localize database content, template content and can handle both LTR languages and RTL languages (hebrew and arabic). Im making heavy use of LRU caches for string storage and management too and its super sweet. The bottom

[Lift] Re: TemplateCache

2009-04-05 Thread Timothy Perrett
Wow, derek you must be watching Github like a hawk haha ;-) Just to bring an off list convo between myself and Marius onto the list, are we looking at having some generic caching infrastructure in lift? This would be great re the localization / translation stuff im working on which currently

[Lift] Re: TemplateCache

2009-04-05 Thread Timothy Perrett
implementation as 90% of users simply wont need that functionality IMO. Cheers, Tim On Apr 5, 8:53 pm, Timothy Perrett timo...@getintheloop.eu wrote: Wow, derek you must be watching Github like a hawk haha ;-) Just to bring an off list convo between myself and Marius onto the list, are we

[Lift] Re: TemplateCache

2009-04-05 Thread Timothy Perrett
True, very true. I know DPP is generally against caching, but we all recognise the need to caching in a production environment. Perhaps, rather than asking if we should re-invent the wheel with a specific cache mech within lift, perhaps my quesiton is this: Is LRU and the KeyedCache abstraction

[Lift] Re: TemplateCache

2009-04-05 Thread Timothy Perrett
Sounds pretty awesome to me Marius - looking forward to your thoughts Cheers, Tim On 05/04/2009 22:22, marius d. marius.dan...@gmail.com wrote: These are valid questions. LRU KeyedCache utilizes org.apache.commons.collections.map.LRUMap which is not thread safe. So anyone can use them and

[Lift] Re: Who did the hungarian translation?

2009-04-06 Thread Timothy Perrett
Thanks Marius :) On Apr 6, 11:34 am, marius d. marius.dan...@gmail.com wrote: Tim, Undefined = meghatározatlan ... you may want to run native2ascii on it Br's, Marius On Apr 4, 8:36 pm, Timothy Perrett timo...@getintheloop.eu wrote: Hey Marius Sounds good. I just want to add

[Lift] Re: Thread safe configuration without abusing the session?

2009-04-06 Thread Timothy Perrett
Hey Viktor :) What¹s the overhead associated with this? Little? Much? Cheers, Tim On 06/04/2009 13:17, Viktor Klang viktor.kl...@gmail.com wrote: If the config is on a per-session basis, then SessionVar should be the way to go. But of course, put it in _one_ SessionVar, and not hundreds...

[Lift] Re: one more stupid question

2009-04-06 Thread Timothy Perrett
I think you mean: div id=sdfsd/div You have two options for setting the ID parameter: In code: divsdfsdf/div % id - badger In markup (where using bind): pfx:item pfx:id=badger / Does that help? Cheers, Tim On 06/04/2009 17:48, Tobias Daub hannes.flo...@gmx.li wrote: Hi There, I

[Lift] Re: Scala-tools.org is back online

2009-04-07 Thread Timothy Perrett
Thanks for all your hard work on this David - its much appreciated by the community. Thanks Tim On Apr 7, 4:06 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Apr 6, 2009 at 8:03 PM, etorreborre etorrebo...@gmail.com wrote: Thanks a lot David for putting the machine back

[Lift] Re: http://liftweb.net/ broken ?

2009-04-07 Thread Timothy Perrett
Francois, See the other thread about that server being DoS attached yesterday. Thanks Tim On 07/04/2009 14:01, Francois Armand fan...@gmail.com wrote: Hello, I notice that since yesterday, http://liftweb.net/ responds 403 Forbidden - nginx/0.6.32 and I was wondering if it was a known

[Lift] Re: Google App Engine

2009-04-08 Thread Timothy Perrett
Awesome! Hell yeah, i'll give this a try! On Apr 8, 8:40 am, Jorge Ortiz jorge.or...@gmail.com wrote: 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

[Lift] Re: Google App Engine

2009-04-08 Thread Timothy Perrett
Can you fwd to the lift list for those of us not on the main scala mailing lists? Thanks, Tim On Apr 8, 3:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: See my response on the scala list --~--~-~--~~~---~--~~ You received this message because you are

[Lift] Re: Google App Engine

2009-04-08 Thread Timothy Perrett
Thanks for the link - sounds pretty awesome! On Apr 8, 9:45 pm, Lincoln Stoll lstoll+li...@lstoll.net wrote: This looks like the thread:http://www.nabble.com/-scala--Google-App-Engine-for-Scala%21-td229442... --~--~-~--~~~---~--~~ You received this message

[Lift] Re: Rails - Lift

2009-04-09 Thread Timothy Perrett
On the contrary... Im coding in TextMate right now: it works perfect! I run scala:cc in a terminal window and just code away in TextMate. Job done. Tim On 09/04/2009 10:38, Alexander Kellett lypa...@gmail.com wrote: in the rails/osx world its easy: use textmate unless you have a

[Lift] Re: Rails - Lift

2009-04-10 Thread Timothy Perrett
I think a lot of people coming to scala from ruby are more familiar with the terminal and textmate style combination... using large IDE's with boat loads of features is more for people coming from a traditional java background. Thats not to say they don't have merit, of course they do, but I

[Lift] Re: Small archetype bug?

2009-04-10 Thread Timothy Perrett
Ignore me... im being dumb! Basic archetype has lib but the blank one doesnt. I'll add a lib dir to blank archetype tomorrow. Cheers, Tim On Apr 10, 12:22 pm, Tim Perrett timo...@getintheloop.eu wrote: Just looked at the blank archetype because im wanting to build another one for my own

[Lift] Re: Small archetype bug?

2009-04-10 Thread Timothy Perrett
Agreed - this is exactly what I think most people do. On 10/04/2009 20:25, David Pollak feeder.of.the.be...@gmail.com wrote: I put non-Lift related logic stuff in lib. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] Re: TemplateCache

2009-04-12 Thread Timothy Perrett
is that we can get these orthogonal behaviors through composition. Derek On Sun, Apr 5, 2009 at 2:21 PM, Timothy Perrett timo...@getintheloop.euwrote: Just taken a look over the code - looks pretty cool! I like your ideas for ConcurrentHashMap - all sounds pretty awesome

[Lift] Re: XML Creation

2009-04-13 Thread Timothy Perrett
If you want 5 items a line, you can use nested binds - checkout the chooseTemplate(...) method. Any pagination or limiting you need to do, just do that in your snippet however you want to page your result set :-) On Apr 13, 7:18 am, sailormoo...@gmail.com sailormoo...@gmail.com wrote: I

[Lift] Re: TemplateCache

2009-04-13 Thread Timothy Perrett
Just checked out the code Marius... this is good stuff! So one could use the SoftReferenceCache generically as a thread safe replacement for KeyedCache right? The template cache is pretty sweet also. Cheers, Tim On Apr 13, 7:20 am, marius d. marius.dan...@gmail.com wrote: Yes by using

[Lift] Re: Simple config for Log4J

2009-04-13 Thread Timothy Perrett
You can set different run mode logging configurations, try calling the file ³default.log4j.xml². For more information, see here: http://github.com/dpp/liftweb/blob/29f44b91e28eaceaa784322eaad8f2bb909fa9aa/ lift-util/src/main/scala/net/liftweb/util/Log.scala#L85 Thanks Tim On 13/04/2009

[Lift] Re: convention how to name classes in snippet package

2009-04-13 Thread Timothy Perrett
Tobias, There is no need to have a direct relation between snippets and model classes - why would you need to have a relationship? Snippets usually encompass a small element of functionality that might be related to one or more models - mapper or otherwise. Personally, I like that fact there

  1   2   3   4   5   6   7   8   9   10   >