[Lift] BLOBs, MappedBinary, Images and Uploads

2009-05-26 Thread Joe Wass
Hi, I'm new to Lift and I'm scoping it out for a project. I'm asking here because I haven't found any obvious documentation on the matter. How easy would it be to accept an image from an upload, store it in a MappedBinary (I assume that would be the correct type?) and then be able to return

[Lift] Re: BLOBs, MappedBinary, Images and Uploads

2009-05-26 Thread Joe Wass
Apologies, I searched everything but this list! The following threads are relevant: http://groups.google.com/group/liftweb/browse_thread/thread/a4a04b145128e6f8/cb5e7026cb361fa6?lnk=gstq=image#cb5e7026cb361fa6

[Lift] Speed of Jetty start-up

2009-05-26 Thread Joe Wass
I've been looking at lift since yesterday morning (and scala for a week or so) and I'm very pleased with what I see. I'm a little frustrated though, Jetty appears to be breathtakingly slow to start and stop occasionally. Sometimes the pause before this: [INFO] Started Jetty Server [INFO]

[Lift] Re: Speed of Jetty start-up

2009-05-26 Thread Joe Wass
slow box. Is your CPU at 100%? What kind of machine is hosting your ubuntu VM? On Tue, May 26, 2009 at 11:18 AM, Joe Wass j...@folktunefinder.com wrote: I've been looking at lift since yesterday morning (and scala for a week or so) and I'm very pleased with what I see. I'm a little

[Lift] Deploying with Jetty (and Apache too?)

2009-05-27 Thread Joe Wass
Hi everyone. I'm planning to deploy a Lift app on a virtual host (Slicehost) with Jetty. I'm also running one or two sites on the side, but nothing too heavy. I want to try running with 256 MB RAM (I could go to 512 but I'd rather not pay for that if I don't have to!). I currently use virtual

[Lift] Re: Deploying with Jetty (and Apache too?)

2009-05-27 Thread Joe Wass
for #1. By the time you're serving up enough pages to push the limits of SliceHost, you're probably serving 60+ pages/second and might have a real business. On Wed, May 27, 2009 at 12:20 PM, Joe Wass j...@folktunefinder.com wrote: Hi everyone. I'm planning to deploy a Lift app

[Lift] Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Is there an idiomatic way to represent the following? I've done it many times before manually in PHP, but never with ORM. I suppose I know how I'd do it in Lift long-hand (I'm very new) but there might be a 'Lift' way of doing it. Subject could be an enum or a table. Entity: School Entity:

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
Mapper (by default) On May 27, 11:03 pm, Timothy Perrett timo...@getintheloop.eu wrote: What persistance mech are you using Mapper or JPA? The solution differs depending on your choice. Cheers, Tim On May 27, 10:38 pm, Joe Wass j...@folktunefinder.com wrote: Is there an idiomatic way

[Lift] Re: Relationships -- just a quick ORM question

2009-05-27 Thread Joe Wass
On 27/05/2009 23:08, Joe Wass j...@folktunefinder.com wrote: Mapper (by default) On May 27, 11:03 pm, Timothy Perrett timo...@getintheloop.eu wrote: What persistance mech are you using Mapper or JPA? The solution differs depending on your choice. Cheers, Tim On May 27, 10:38 pm

[Lift] How important is AJAX to you?

2009-05-29 Thread Joe Wass
This may be heresy on this list, but I'll ask it anyway. A general point for discussion which I'm raising because the Lift Book mentions AJAX early on in the PocketChange app. How important is AJAX and all the associated Web 2.0 stuff to you and to your projects? I'm quite happy without

[Lift] Re: Future of the Lift wiki

2009-06-01 Thread Joe Wass
I agree that the wiki needs a clear remit. I have found it very useful for learning (especially the cheat sheet). But the first thing I ever did with lift (which was only last week) was firstly to read the 'getting started' document but secondly to RTFS (only some of it!), in particular Mapper.

[Lift] sharing models?

2009-06-02 Thread Joe Wass
Hi everyone, I have three sites that hang off a single database: One central site to edit information and two browse-only sites which aggregate the information. Previously I have been doing this by exposing a simple web service on the central site and having the other two sites consume and

[Lift] Re: sharing models?

2009-06-02 Thread Joe Wass
Thanks. I'll give that a go once I'm au fait with maven. Joe On Jun 2, 6:46 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I'd create a Maven project with the models in it. You can use the resulting JAR file with other projects. On Tue, Jun 2, 2009 at 9:44 AM, Joe Wass j

[Lift] Re: Useless error messages if template parsing fails?

2009-06-03 Thread Joe Wass
I'm getting this too (on Ubuntu). I thought it was standard behaviour to see a stack trace... obviously not! On Jun 3, 7:23 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote: I'm curious: Am I the only one getting rather useless error messages in the browser when Lift fails to parse the

[Lift] Re: NULLable MappedForeignKey

2009-06-04 Thread Joe Wass
Just to check -- are you familiar with the difference between option types and null references in scala? It's an important distinction and it's very important with Lift. Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Lift] fall-through redirect

2009-06-05 Thread Joe Wass
Hello everyone, I want to be able to handle requests that don't fall within the sitemap. I have a site with members, and, providing that a user id doesn't conflict with any part of a sitemap path, I want site.com/ member to redirect to site.com/user/member. I've done this kind with Rails, but

[Lift] Re: fall-through redirect

2009-06-05 Thread Joe Wass
On Fri, Jun 5, 2009 at 1:47 AM, Joe Wass j...@folktunefinder.com wrote: Hello everyone, I want to be able to handle requests that don't fall within the sitemap. I have a site with members, and, providing that a user id doesn't conflict with any part of a sitemap path, I want site.com

[Lift] Re: fall-through redirect

2009-06-06 Thread Joe Wass
appreciated! Cheers Joe On Jun 6, 12:28 am, Timothy Perrett timo...@getintheloop.eu wrote: Joe, You might enjoy my article on URL rewriting:http://is.gd/wq4K Does that help? Cheers, Tim On Jun 5, 6:37 pm, Joe Wass j...@folktunefinder.com wrote: I'm after re-writing, not a re-direct (although

[Lift] YA menu question: separate menus

2009-06-08 Thread Joe Wass
Sorry for yet another menu question. I have scoured this list first, I promise! I'm trying to do something I think is quite simple: Two [or any nuumber of] menus (with children). Two different templates. One menu and children shows up on one template, one shows up on another. They are each

[Lift] Re: YA menu question: separate menus

2009-06-08 Thread Joe Wass
to apply expandAll=true attribute not just to lift:Menu.builder.../ but to lift:Menu.group name=mygroup/ and lift:Menu.item name=myMenu/, or, as Joe requests below, to any siteMap that is not the root siteMap. Glenn... On Jun 8, 2:06 pm, Joe Wass j...@folktunefinder.com wrote: Sorry for yet

[Lift] Winstone servlet container?

2009-06-11 Thread Joe Wass
Re this: http://winstone.sourceforge.net/ Has anyone used Winstone? I have been using it for personal dev work (since before I even knew about lift) and it seems to do the job. It runs my Lift app without complaint. I'm currently doing a soak test to see if it holds up to the (relatively low)

[Lift] Downloading...

2009-06-20 Thread Joe Wass
I'm trying to compile my Lift application but it seems that every time I do it tries to download something or other. Case in point, just now: Downloading: http://scala-tools.org/repo-releases/org/igniterealtime/smack/smack/3.1.0/smack-3.1.0.pom Downloading:

[Lift] Re: Downloading...

2009-06-21 Thread Joe Wass
attempting to download the distinct modules smack and smackx Maven behaviour is to attempt all known repositories until a given artifact was found, in this case you had two known repos: scala-tools.org and repo1.maven.org On Sat, Jun 20, 2009 at 10:14 PM, Joe Wass j...@folktunefinder.com

[Lift] Using Mapper outside Lift?

2009-06-23 Thread Joe Wass
Good afternoon (at least in England), I'm writing an application which has a significant Lift manifestation, but also some stand-alone Scala (maybe even Java but I'll exclude this from the conversation). The stand-alone code is a set of tools that hang off the database and do some heavy-lifting

[Lift] Re: Using Mapper outside Lift?

2009-06-23 Thread Joe Wass
, Joe Wass j...@folktunefinder.com wrote: Good afternoon (at least in England), I'm writing an application which has a significant Lift manifestation, but also some stand-alone Scala (maybe even Java but I'll exclude this from the conversation). The stand-alone code is a set of tools

[Lift] Your message will appear in Lift momentarily.

2009-07-07 Thread Joe Wass
This has been bugging me for some time. When you make a post on the Google group, you get the message Your message will appear in Lift momentarily. The meaning of that sentence is that the message will appear for a brief period of time. I hope they didn't mean that! Perhaps they meant 'shortly'?

[Lift] MIME type help?

2009-07-20 Thread Joe Wass
Hi, This is really a servlet question, but I'll ask here because it is a Lift project I'm having a problem with. I have some media files (MP3s) which aren't being given the correct MIME headers. I have other binary files (GIFs, PNGs, JPGs) which work fine but when I visit the URL for the MP3

[Lift] Image problems...

2009-07-25 Thread Joe Wass
I'm completely stumped. I'll give the background for the sake of completeness but I'm not sure if it will help or not. It's more of a Jetty problem but perhaps someone here can help. Standard Jetty set-up running one Lift instance. Mac OS X. I have a snippet which transforms the XML input,

[Lift] Re: Image problems...

2009-07-26 Thread Joe Wass
in a database etc? Cheers, Tim On Jul 25, 7:28 pm, Joe Wass j...@folktunefinder.com wrote: I'm completely stumped. I'll give the background for the sake of completeness but I'm not sure if it will help or not. It's more of a Jetty problem but perhaps someone here can help. Standard Jetty

[Lift] Re: Image problems...

2009-07-26 Thread Joe Wass
On Jul 26, 1:43 pm, Joe Wass j...@folktunefinder.com wrote: I won't post code because the render is making calls to external programs so it wouldn't really help. What happens is: - data extracted and written to a text file on disc with the name of the guid (under images/) - external

[Lift] Package building...

2009-08-08 Thread Joe Wass
Hi, I just pulled the latest Mac installer and tried to build an existing project to a package and this happened... $ mvn package [INFO] Scanning for projects... [INFO] [INFO] Building XX [INFO]task-segment:

[Lift] Re: Package building...

2009-08-10 Thread Joe Wass
ideas? Is there an installer for a previous version? Joe On Aug 9, 11:09 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Please do mvn -v If you're using Maven prior to 2.0.9, you'll see problems. On Sat, Aug 8, 2009 at 9:53 AM, Joe Wass j...@folktunefinder.com wrote: Hi, I just

[Lift] Re: Package building...

2009-08-10 Thread Joe Wass
* else try with maven 2.0.9 or 2.0.10 /davidB On Mon, Aug 10, 2009 at 08:00, Joe Wass j...@folktunefinder.com wrote: No, that's not it... Apache Maven 2.2.0 (r788681; 2009-06-26 14:04:01+0100) Java version: 1.5.0_13 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0