[Lift] Re: customizing my SiteMap

2009-06-29 Thread David Persons

Thank Bryan, exactly what I needed!

David

On 29 jun, 02:21, Bryan germ...@gmail.com wrote:
 Oops.  I forgot to add home into the menu.

 Usage:
 div id=menu
   ul
     lift:MyMenu.select active:class=current_page_item
 default=home localize=true
       limenu:bind name=home //li
       limenu:bind name=about //li
       limenu:bind name=photos //li
       limenu:bind name=links //li
       limenu:bind name=contact a:id=contact //li
     /lift:MyMenu.select
   /ul
 /div

 On Jun 28, 8:08 pm, Bryan germ...@gmail.com wrote:

  Hi David,

  I created a custom snippet, MyMenu, to do 
  this:http://paste.pocoo.org/show/EVKLV81FdRuz257apvS7/.  See its select
  method.  I just happened to rewrite the code this morning and haven't
  gotten around to testing it, so I hope it still works.

  Usage:
  div id=menu
    ul
      lift:MyMenu.select active:class=active default=home 
  localize=true
        limenu:bind name=photos //li
        limenu:bind name=links //li
        limenu:bind name=contact a:id=contact //li
      /lift:MyMenu.select
    /ul
  /div

  This assumes that home, photos, links, and contact are defined as Loc
  names in your SiteMap.

  Let me know if you have any questions.

  Regards,
  Bryan Germann

  On Sun, Jun 28, 2009 at 2:47 PM, David Personsdhwpers...@gmail.com wrote:

   Hello guys,

   For a project, we use a pre-defined html / css template. This template
   displays the menu as follows:

   div id=menu

          ul

                  li class=current_page_itema href=#home/a/li

                  lia href=#photos/a/li

                  lia href=#about/a/li

                  lia href=#links/a/li

                  lia href=#contact/a/li

          /ul

   /div

   How can I retrieve this 'current page item' and generate the html
   shown above? Can somebody try to give a code example?

   regards,
   David Persons
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: how to serve html fragments

2009-06-29 Thread David Persons

The problem seems to be a known stupid bug in IE6.. see:
http://www.webdeveloper.com/forum/showthread.php?t=1658

On 29 jun, 02:39, David Persons dhwpers...@gmail.com wrote:
 I spend a lot of time today on (close to) the same problem.. IE 6 was
 not showing my site in strict mode.. with the strict doctype set
 correctly I thought.. :

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

 The problem was the order of the two lines.. Seems that to have IE
 pick up the correct doctype, the html HAS TO START with the doctype.
 Changing the order makes IE show my website perfectly:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 ?xml version=1.0 encoding=UTF-8?

 How to change the order in my code so that Lift spits out my pages
 correctly?

 regards,
 David Persons

 On 6 jun, 17:13, fatu fab...@gmail.com wrote:

  Thanks a lot for the info David, then I'll consider reverting to 2.7.4
  until Lift integrates the latest Scala Actors lib (and fixes).

  Fabio

  On 6 Giu, 15:58, David Pollak feeder.of.the.be...@gmail.com wrote:

   Lift is 2.7.4.  We have not upgraded to 2.7.5 as the delta is actor fixes 
   in
   response to lift-related tickets that we solved with our own actor impl.
   I'm talking to Philipp Haller today at the Lift Off about how to proceed.

   On Jun 6, 2009 6:49 AM, fatu fab...@gmail.com wrote:

   2.7.5 right now (and a fresh maven repo too) but I think (not sure
   though) I had it with 2.7.4 as well. Seems to expect a refSet field in
   ActorGC which i couldn't find in 2.7.5 sources.

   Fabio

   On 5 Giu, 18:10, David Pollak feeder.of.the.be...@gmail.com wrote:  Are
   you using Scala 2.7.4 or...

On Fri, Jun 5, 2009 at 7:37 AM, fatu fab...@gmail.com wrote:   

   Fantastic, it works great!  ...
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread Walter Chang
nice, thanks for sharing.

On Mon, Jun 29, 2009 at 7:05 AM, Meredith Gregory
lgreg.mered...@gmail.comwrote:

 All,

 The talk i recently gave on this topic is now available 
 onlinehttp://www.vimeo.com/5318303
 .

 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com




-- 
...__o
...\,
( )/ ( )...

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] So, how to get from format to hosting a lift app?

2009-06-29 Thread DFectuoso

I'm having a lot of trouble getting some code into production in my
wiredtree VPS where i use apache and other stuff; so I decided to
leave that host alone. I started playing with comet and some dispatch
hacks that dont work on the GAE; so I decided to leave GAE alone.

So I need a new hosting to run a couple of lift apps that I will be
creating in the next weeks!

I checked out SliceHost and it seems pretty cool, cheap and hard to
configure, so...

David said he prefers to use nginx and then jetty. I have no idea how
to install, configure and deploy multiple apps in multiple domains in
a webserver that only haves the OS installed(which I think is the case
of slicehost).

So, my first question would be if you know of a better hosting than
slicehost.
Anyway if I go with slicehost, what OS should I use?
What do i need to install to have nginx and jetty running all the time
with multiple apps and domains?
How do I deploy? (ssh?, ftp? what?)

Thank you very much guys!

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread Jonas Bonér

Great talk. Thanks.
Could you post the slides? It was a bit hard to see them.
/Jonas

2009/6/29 Meredith Gregory lgreg.mered...@gmail.com:
 All,

 The talk i recently gave on this topic is now available online.

 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com




-- 
Jonas Bonér

twitter: @jboner
blog:http://jonasboner.com
work:   http://crisp.se
work:   http://scalablesolutions.se
code:   http://github.com/jboner

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: preso on monadic design patterns for the web

2009-06-29 Thread Timothy Perrett

+1 would love to read the slides properly.

Cheers, Tim

On Jun 29, 8:59 am, Jonas Bonér jbo...@gmail.com wrote:
 Great talk. Thanks.
 Could you post the slides? It was a bit hard to see them.
 /Jonas

 2009/6/29 Meredith Gregory lgreg.mered...@gmail.com:





  All,

  The talk i recently gave on this topic is now available online.

  Best wishes,

  --greg

  --
  L.G. Meredith
  Managing Partner
  Biosimilarity LLC
  1219 NW 83rd St
  Seattle, WA 98117

  +1 206.650.3740

 http://biosimilarity.blogspot.com

 --
 Jonas Bonér

 twitter: @jboner
 blog:    http://jonasboner.com
 work:  http://crisp.se
 work:  http://scalablesolutions.se
 code:  http://github.com/jboner
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Writing Facebook applications in Lift (cookies, Javascript GC, example code)

2009-06-29 Thread Timothy Perrett

Steven,

Welcome to lift.

Lift doesn't use the JSESSIONID in the URL... that is, lift does not
require it (at least this is my understanding, if im wrong please
correct me someone) - so you should have no problems with the requests
being re-written.

Regarding the GC stuff, it was added to improve memory usage of
applications that run over a long period and to keep the heap size
down. Marius or DPP would probably be able to give you more specifics
but I think if your users are moving from page to page and you can
cope with a slightly larger heap size then it shouldn't be too much of
a problem. We did after all do without the GC stuff for quite sometime
as it was only added recently.

Hope that helps

Tim

On Jun 28, 8:52 pm, Steven Murdoch sjmurd...@gmail.com wrote:
 Hi,

 I've been looking at Scala and Lift recently, and so far have been
 generally impressed. I'd like to write a Facebook application, both
 because I need one, and so I can learn more about Lift and Scala. I do
 have a few questions though, and I haven't been able to find answers
 in the documentation or mailing list.

 The first is about cookies and state. Facebook canvas applications
 return pages which are re-written by the Facebook servers, so the
 JSESSIONID cookie will not be present. As I understand it, that means
 I'll need to manage state myself. I was therefore thinking about
 returning pages from LiftRules.statelessDispatchTable (as described in
 the Lift book, 3.13).

 The problem here is that I'd need to return a LiftResponse directly,
 and wouldn't be able to use most of the Lift infrastructure. Is this
 the right way to do things? Is there some other way to suppress
 cookies
 and/or use Lift without them in the Facebook application context?

 My second question is also because Facebook suppresses Javascript when
 it processes web pages written in FBML. This means that the
 client-side code to do garbage collection of widgets won't run. I can
 disable the insertion using LiftRules.enableLiftGC, but will this
 trigger other problems?

 Finally, is there example code available for lift-facebook? It's great
 that Lift supports Facebook, but other than a small mention in the
 Lift book, I haven't been able to find any documentation. Some example
 code would be very useful in getting started. Is there any available?

 Thanks in advance,
 Steven Murdoch.

 --http://www.cl.cam.ac.uk/users/sjm217/
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: preso on monadic design patterns for the web

2009-06-29 Thread Eric Bowman

Here?
http://svn.biosimilarity.com/src/open/talks/MonadicDesignPatternsForTheWeb.pdf

Timothy Perrett wrote:
 +1 would love to read the slides properly.

 Cheers, Tim

 On Jun 29, 8:59 am, Jonas Bonér jbo...@gmail.com wrote:
   
 Great talk. Thanks.
 Could you post the slides? It was a bit hard to see them.
 /Jonas

 2009/6/29 Meredith Gregory lgreg.mered...@gmail.com:





 
 All,
   
 The talk i recently gave on this topic is now available online.
   
 Best wishes,
   
 --greg
   
 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117
   
 +1 206.650.3740
   
 http://biosimilarity.blogspot.com
   
 --
 Jonas Bonér

 twitter: @jboner
 blog:http://jonasboner.com
 work:  http://crisp.se
 work:  http://scalablesolutions.se
 code:  http://github.com/jboner
 
 
   


-- 
Eric Bowman
Boboco Ltd
ebow...@boboco.ie
http://www.boboco.ie/ebowman/pubkey.pgp
+35318394189/+353872801532


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Writing Facebook applications in Lift (cookies, Javascript GC, example code)

2009-06-29 Thread marius d.



On Jun 29, 1:13 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Steven,

 Welcome to lift.

 Lift doesn't use the JSESSIONID in the URL... that is, lift does not
 require it (at least this is my understanding, if im wrong please
 correct me someone) - so you should have no problems with the requests
 being re-written.

Actaully Lift is no different then a regular JEE web app. If you turn
off cookies from the container you'll witness URL rewriting and
JSESSIONID will be part of the URL.


 Regarding the GC stuff, it was added to improve memory usage of
 applications that run over a long period and to keep the heap size
 down. Marius or DPP would probably be able to give you more specifics
 but I think if your users are moving from page to page and you can
 cope with a slightly larger heap size then it shouldn't be too much of
 a problem. We did after all do without the GC stuff for quite sometime
 as it was only added recently.

Essentially Lift GC is about de-referencing unseen bound functions if
a certain period of time exceeds. There is a lightweight heart beat
mechanism where Ajax requests are sent to keep functions alive. Of
course bound function are associated with a generated page-id.


 Hope that helps

 Tim

 On Jun 28, 8:52 pm, Steven Murdoch sjmurd...@gmail.com wrote:

  Hi,

  I've been looking at Scala and Lift recently, and so far have been
  generally impressed. I'd like to write a Facebook application, both
  because I need one, and so I can learn more about Lift and Scala. I do
  have a few questions though, and I haven't been able to find answers
  in the documentation or mailing list.

  The first is about cookies and state. Facebook canvas applications
  return pages which are re-written by the Facebook servers, so the
  JSESSIONID cookie will not be present. As I understand it, that means
  I'll need to manage state myself. I was therefore thinking about
  returning pages from LiftRules.statelessDispatchTable (as described in
  the Lift book, 3.13).

  The problem here is that I'd need to return a LiftResponse directly,
  and wouldn't be able to use most of the Lift infrastructure. Is this
  the right way to do things? Is there some other way to suppress
  cookies
  and/or use Lift without them in the Facebook application context?

  My second question is also because Facebook suppresses Javascript when
  it processes web pages written in FBML. This means that the
  client-side code to do garbage collection of widgets won't run. I can
  disable the insertion using LiftRules.enableLiftGC, but will this
  trigger other problems?

  Finally, is there example code available for lift-facebook? It's great
  that Lift supports Facebook, but other than a small mention in the
  Lift book, I haven't been able to find any documentation. Some example
  code would be very useful in getting started. Is there any available?

  Thanks in advance,
  Steven Murdoch.

  --http://www.cl.cam.ac.uk/users/sjm217/
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread Viktor Klang
Best presentation I've seen so far this year.
Filled in the gaps I got from reading the PDF perfectly.

Thanks for enriching my mind!

On Mon, Jun 29, 2009 at 1:05 AM, Meredith Gregory
lgreg.mered...@gmail.comwrote:

 All,

 The talk i recently gave on this topic is now available 
 onlinehttp://www.vimeo.com/5318303
 .

 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com




-- 
Viktor Klang
Scala Loudmouth

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread Christos KK Loverdos
This is one of the presentations after (or during) which one may  
easily wonder What was (is) he talking about? and then wake up 20  
years later and recall that some guy Greg Meredith already did that.

So pay attention everyone! At least, let those stuff stack at the back  
of your head. You never know...

Greg is peaking...

Christos
On Jun 29, 2009, at 2:05 AM, Meredith Gregory wrote:

 All,

 The talk i recently gave on this topic is now available online.

 Best wishes,

 --greg

 -- 
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com

-- 
  __~O
-\ ,   Christos KK Loverdos
(*)/ (*)  http://ckkloverdos.com






--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread Viktor Klang
On Mon, Jun 29, 2009 at 2:48 PM, Christos KK Loverdos lover...@gmail.comwrote:

 This is one of the presentations after (or during) which one may easily
 wonder What was (is) he talking about? and then wake up 20 years later and
 recall that some guy Greg Meredith already did that.


I still have yet to experience the moment where the shape of the paradoxical
combinator suddenly unravels to me :)



 So pay attention everyone! At least, let those stuff stack at the back of
 your head. You never know...

 Greg is peaking...

 Christos

 On Jun 29, 2009, at 2:05 AM, Meredith Gregory wrote:

 All,

 The talk i recently gave on this topic is now available 
 onlinehttp://www.vimeo.com/5318303
 .

 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com


 --
  __~O
 -\ ,   Christos KK Loverdos
 (*)/ (*)  http://ckkloverdos.com








-- 
Viktor Klang
Scala Loudmouth

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: So, how to get from format to hosting a lift app?

2009-06-29 Thread TylerWeir

There was a thread about hosting a while ago, in summary, give
http://prgmr.com/xen/ a shot.

On Jun 29, 3:10 am, DFectuoso santiago1...@gmail.com wrote:
 I'm having a lot of trouble getting some code into production in my
 wiredtree VPS where i use apache and other stuff; so I decided to
 leave that host alone. I started playing with comet and some dispatch
 hacks that dont work on the GAE; so I decided to leave GAE alone.

 So I need a new hosting to run a couple of lift apps that I will be
 creating in the next weeks!

 I checked out SliceHost and it seems pretty cool, cheap and hard to
 configure, so...

 David said he prefers to use nginx and then jetty. I have no idea how
 to install, configure and deploy multiple apps in multiple domains in
 a webserver that only haves the OS installed(which I think is the case
 of slicehost).

 So, my first question would be if you know of a better hosting than
 slicehost.
 Anyway if I go with slicehost, what OS should I use?
 What do i need to install to have nginx and jetty running all the time
 with multiple apps and domains?
 How do I deploy? (ssh?, ftp? what?)

 Thank you very much guys!
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread David Pollak
I'm still working with CalPop on the issue, but it looks to me like they
disabled the port on the router and didn't enable it until Derek called.
The good news is that I've got pingdom monitoring the machine.  The bad news
is that I was out of cell phone range so I didn't get the alerts.

Thanks Derek for calling CalPop!

On Sat, Jun 27, 2009 at 9:05 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:

 OK, CalPop checked it and said that the network cable was bad. I'm a
 network engineer and in my experience cables don't generally go bad, but it
 seems to be working now so I don't feel like complaining too loudly ;)

 Derek


 On Sat, Jun 27, 2009 at 9:54 AM, Derek Chen-Becker 
 dchenbec...@gmail.comwrote:

 Hi all,
 DPP gave me access to the primary Xen server that everything else runs
 on, but I'm unable to reach it. This may either be a network failure or a
 total hardware failure, but it's unclear at this point. I'm going to call
 CalPop, the hosting provider, and see if they can look at the box.

 Derek



 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread Kevin Wright
Is this going to be made available as a download somewhere?
I have an IPod touch and a long daily commute...


On Mon, Jun 29, 2009 at 2:10 PM, Viktor Klang viktor.kl...@gmail.comwrote:



 On Mon, Jun 29, 2009 at 2:48 PM, Christos KK Loverdos 
 lover...@gmail.comwrote:

 This is one of the presentations after (or during) which one may easily
 wonder What was (is) he talking about? and then wake up 20 years later and
 recall that some guy Greg Meredith already did that.


 I still have yet to experience the moment where the shape of the
 paradoxical combinator suddenly unravels to me :)



 So pay attention everyone! At least, let those stuff stack at the back of
 your head. You never know...

 Greg is peaking...

 Christos

 On Jun 29, 2009, at 2:05 AM, Meredith Gregory wrote:

 All,

 The talk i recently gave on this topic is now available 
 onlinehttp://www.vimeo.com/5318303
 .

 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com


   --
  __~O
 -\ ,   Christos KK Loverdos
 (*)/ (*)  http://ckkloverdos.com








 --
 Viktor Klang
 Scala Loudmouth


 


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread Jeremy Day
David,

On Mon, Jun 29, 2009 at 8:28 AM, David Pollak feeder.of.the.be...@gmail.com
 wrote:

 The good news is that I've got pingdom monitoring the machine.  The bad
 news is that I was out of cell phone range so I didn't get the alerts.


What?  You're not allowed to relax!

Jeremy

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread David Pollak
On Mon, Jun 29, 2009 at 6:39 AM, Jeremy Day jeremy@gmail.com wrote:

 David,

 On Mon, Jun 29, 2009 at 8:28 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 The good news is that I've got pingdom monitoring the machine.  The bad
 news is that I was out of cell phone range so I didn't get the alerts.


 What?  You're not allowed to relax!


No, I'm not.  Last family vacation, scala-tools.org was DoSed.  This family
vacation, the network connection to the machine got hosed.  Sigh.






 Jeremy


 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: So, how to get from format to hosting a lift app?

2009-06-29 Thread David Pollak
On Mon, Jun 29, 2009 at 12:10 AM, DFectuoso santiago1...@gmail.com wrote:


 I'm having a lot of trouble getting some code into production in my
 wiredtree VPS where i use apache and other stuff; so I decided to
 leave that host alone. I started playing with comet and some dispatch
 hacks that dont work on the GAE; so I decided to leave GAE alone.

 So I need a new hosting to run a couple of lift apps that I will be
 creating in the next weeks!

 I checked out SliceHost and it seems pretty cool, cheap and hard to
 configure, so...

 David said he prefers to use nginx and then jetty. I have no idea how
 to install, configure and deploy multiple apps in multiple domains in
 a webserver that only haves the OS installed(which I think is the case
 of slicehost).

 So, my first question would be if you know of a better hosting than
 slicehost.
 Anyway if I go with slicehost, what OS should I use?
 What do i need to install to have nginx and jetty running all the time
 with multiple apps and domains?
 How do I deploy? (ssh?, ftp? what?)


If you pull http://github.com/dpp/lift-samples/tree/master you'll find a big
tarball with a Jetty instance in it.  You can deploy your app by putting the
WAR file in the webapp directory (please rename it to root.war).  You can
start and stop Jetty with ./start_prod.sh and ./stop_prod.sh

This will give you a jetty instance running on port 9910.  To deploy apps,
scp the WAR file to your home directory.  ssh onto the box, cd into the
jetty directory.  Stop the server.  Copy the WAR file from your home
directory into webapp (remembering to rename it to root.war.)

In terms of going from raw box to box that has Nginx, Java, etc... you ssh
-AX into the box.  If you're running Ubuntu, you can install synaptic using
apt-get install synaptic  Once you've got synaptic installed, type
synaptic and you'll get a nice GUI package installer.  Make sure you
enable all the repositories (e.g., Multiverse, etc.).  Find the jdk-6 (or
jdk-1.6), NGinix, etc. packages and install them.  Create a non-root user
and add that user to the sudoers file.  Always log in via that user.

You'll have to wire up Nginx to proxy http requests to localhost:9910 to go
against your running Jetty instance.

You might also look at http://stax.net There are also providers or Tomcat
hosting and similar VPS for the JVM world that will make things a lot
easier.

Thanks,

David




 Thank you very much guys!

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread Derek Chen-Becker
I smell a conspiracy!

On Mon, Jun 29, 2009 at 7:54 AM, David Pollak feeder.of.the.be...@gmail.com
 wrote:



 On Mon, Jun 29, 2009 at 6:39 AM, Jeremy Day jeremy@gmail.com wrote:

 David,

 On Mon, Jun 29, 2009 at 8:28 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 The good news is that I've got pingdom monitoring the machine.  The bad
 news is that I was out of cell phone range so I didn't get the alerts.


 What?  You're not allowed to relax!


 No, I'm not.  Last family vacation, scala-tools.org was DoSed.  This
 family vacation, the network connection to the machine got hosed.  Sigh.






 Jeremy






 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp

 


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: [scala] preso on monadic design patterns for the web

2009-06-29 Thread TylerWeir

You can find the avi link on the bottom right of the vimeo page.  It's
about 600 megs.

On Jun 29, 9:33 am, Kevin Wright kev.lee.wri...@googlemail.com
wrote:
 Is this going to be made available as a download somewhere?
 I have an IPod touch and a long daily commute...

 On Mon, Jun 29, 2009 at 2:10 PM, Viktor Klang viktor.kl...@gmail.comwrote:



  On Mon, Jun 29, 2009 at 2:48 PM, Christos KK Loverdos 
  lover...@gmail.comwrote:

  This is one of the presentations after (or during) which one may easily
  wonder What was (is) he talking about? and then wake up 20 years later 
  and
  recall that some guy Greg Meredith already did that.

  I still have yet to experience the moment where the shape of the
  paradoxical combinator suddenly unravels to me :)

  So pay attention everyone! At least, let those stuff stack at the back of
  your head. You never know...

  Greg is peaking...

  Christos

  On Jun 29, 2009, at 2:05 AM, Meredith Gregory wrote:

  All,

  The talk i recently gave on this topic is now available 
  onlinehttp://www.vimeo.com/5318303
  .

  Best wishes,

  --greg

  --
  L.G. Meredith
  Managing Partner
  Biosimilarity LLC
  1219 NW 83rd St
  Seattle, WA 98117

  +1 206.650.3740

 http://biosimilarity.blogspot.com

    --
   __~O
  -\ ,       Christos KK Loverdos
  (*)/ (*)      http://ckkloverdos.com

  --
  Viktor Klang
  Scala Loudmouth


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Modify CRUDify XHTML

2009-06-29 Thread Derek Chen-Becker
If you look at the default _viewTemplate:


   1.def _viewTemplate =
   2.lift:crud.view
   3.   table id={viewId} class={viewClass}
   4. crud:row
   5.   tr
   6. tdcrud:name//td
   7. tdcrud:value//td
   8.   /tr
   9. /crud:row
   10.   /table
   11./lift:crud.view


You'll see that it uses the binding tags of lift:crud.view /, crud:row
/, and crud:name /. Those are used to fill in the values for a given
instance. I would base whatever new template you want off of that.

Derek

On Fri, Jun 26, 2009 at 7:39 PM, Peter Robinett pe...@bubblefoundry.comwrote:


 Thanks, Derek and Jeppe, your responses were very helpful. I
 implemented Jeppe's solution and added my own snippet tag within
 _viewTemplate.  Unfortunately, I spent the whole day trying to figure
 out how pass the current CRUDified object to my snippet. Do I retrieve
 it in _viewTemplate from S.params and add an attribute to the snippet
 tag? Or just retrieve it from S in the snippet? I think I'm missing
 something fundamental with the S object and snippets. As you can tell,
 I'm very new to Lift! Any advice is much appreciated.

 Peter

 On Jun 24, 11:01 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
  On 24 Jun 2009, Peter Robinett wrote:
 
   Hi all,
 
   I'm using CRUDify on one of my models and I'd like to display some
   additional data on the view template. I believe that I need to
   override one of the model definitions with some sort of reference to
   my own XHTML file. Which one? _viewTemplate? Or perhaps the
   viewTemplate method?
 
  If you look at the source to CRUDify, you'll see
 
  def viewTemplate(): NodeSeq = pageWrapper(_viewTemplate)
 
  where
 
  def pageWrapper(body: NodeSeq): NodeSeq =
lift:surround with=default at=content
  {
body
  }
/lift:surround
 
  def _viewTemplate =
lift:crud.view
  table id={viewId} class={viewClass}
crud:row
  tr
tdcrud:name//td
tdcrud:value//td
  /tr
/crud:row
  /table
/lift:crud.view
 
  So the simplest thing is to override _viewTemplate with something similar
  to the above. This should be done on the companion objects where CRUDify
  is mixed in
 
  /Jeppe

 


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: preso on monadic design patterns for the web

2009-06-29 Thread Timothy Perrett

Just finished watching this - it was an interesting exploration...
although id love to hear some thoughts from greg in some distilled
form as to how he sees semantic monadic patterns being applicable...

Cheers, Tim
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread David Pollak
The answer from CalPop:

I just checked the cable and the clip on the RJ45 is missing, I slightly
touched the cable and it came loose again. It could be that another
colocated customer was working in that area during the time the server went
down.



On Mon, Jun 29, 2009 at 7:08 AM, Derek Chen-Becker dchenbec...@gmail.comwrote:

 I smell a conspiracy!

 On Mon, Jun 29, 2009 at 7:54 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Mon, Jun 29, 2009 at 6:39 AM, Jeremy Day jeremy@gmail.com wrote:

 David,

 On Mon, Jun 29, 2009 at 8:28 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 The good news is that I've got pingdom monitoring the machine.  The bad
 news is that I was out of cell phone range so I didn't get the alerts.


 What?  You're not allowed to relax!


 No, I'm not.  Last family vacation, scala-tools.org was DoSed.  This
 family vacation, the network connection to the machine got hosed.  Sigh.






 Jeremy






 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread Viktor Klang
C'est sabotage?

On Mon, Jun 29, 2009 at 5:58 PM, David Pollak feeder.of.the.be...@gmail.com
 wrote:

 The answer from CalPop:

 I just checked the cable and the clip on the RJ45 is missing, I slightly
 touched the cable and it came loose again. It could be that another
 colocated customer was working in that area during the time the server went
 down.



 On Mon, Jun 29, 2009 at 7:08 AM, Derek Chen-Becker 
 dchenbec...@gmail.comwrote:

 I smell a conspiracy!

 On Mon, Jun 29, 2009 at 7:54 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Mon, Jun 29, 2009 at 6:39 AM, Jeremy Day jeremy@gmail.comwrote:

 David,

 On Mon, Jun 29, 2009 at 8:28 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 The good news is that I've got pingdom monitoring the machine.  The bad
 news is that I was out of cell phone range so I didn't get the alerts.


 What?  You're not allowed to relax!


 No, I'm not.  Last family vacation, scala-tools.org was DoSed.  This
 family vacation, the network connection to the machine got hosed.  Sigh.






 Jeremy






 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp

 



-- 
Viktor Klang
Scala Loudmouth

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: lift presentation

2009-06-29 Thread David Pollak
On Thu, Jun 25, 2009 at 5:24 AM, Jeremy Day jeremy@gmail.com wrote:

 Guys,

 I just want to say that I haven't started using Lift yet but I already love
 it.  This community is very supportive and responsive.  Keep up the awesome
 work!


Grin!  This is the kind of message (and thread) that makes coming home from
vacation a very good thing!

My most recent Lift/Scala preso is the dpp_osb.odp file in
http://github.com/dpp/lift-samples/tree/61c376dc9f0d99113229894d4a5b8b4de0041470/presentations/2009_dpp_qcon_tss

Also, please see http://liftweb.blip.tv

Basically, the preso is building the chat app in 40 lines of code in front
of people, then discussing the Scala language features that make it
possible.




 Jeremy


 On Thu, Jun 25, 2009 at 7:21 AM, Wilson MacGyver wmacgy...@gmail.comwrote:


 heheh, no problem. I did the one on Scala back in Feb. :)

 On Thu, Jun 25, 2009 at 7:31 AM, Francois Armandfan...@gmail.com wrote:
 
 
  I did a presentation some weeks ago, the slides are under a creative
 common
  licence, so use them if you want !
 
 
 http://fanf42.blogspot.com/2009/06/tour-of-scala-ossgtp-paris-oss-user.html
 
 
  OK, just ignore this message, it was a *Scala* presentation, not a
  *Lift* one - sorry, I read your post too quickly - and no, the fact
  that we were in Lift ml didn't make me find that strange :)
 
 
  --
  --
  Francois Armand
  http://fanf42.blogspot.com/
 
  
 



 --
 Omnem crede diem tibi diluxisse supremum.




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: lift presentation

2009-06-29 Thread Wilson MacGyver
Thank you for the links. I'll be borrowing those too. :) And thanks forthe
lift. :) (ducking from incoming tomatoes)

On Mon, Jun 29, 2009 at 12:31 PM, David Pollak 
feeder.of.the.be...@gmail.com wrote:



 On Thu, Jun 25, 2009 at 5:24 AM, Jeremy Day jeremy@gmail.com wrote:

 Guys,

 I just want to say that I haven't started using Lift yet but I already
 love it.  This community is very supportive and responsive.  Keep up the
 awesome work!


 Grin!  This is the kind of message (and thread) that makes coming home from
 vacation a very good thing!

 My most recent Lift/Scala preso is the dpp_osb.odp file in
 http://github.com/dpp/lift-samples/tree/61c376dc9f0d99113229894d4a5b8b4de0041470/presentations/2009_dpp_qcon_tss

 Also, please see http://liftweb.blip.tv

 Basically, the preso is building the chat app in 40 lines of code in front
 of people, then discussing the Scala language features that make it
 possible.




 Jeremy


 On Thu, Jun 25, 2009 at 7:21 AM, Wilson MacGyver wmacgy...@gmail.comwrote:


 heheh, no problem. I did the one on Scala back in Feb. :)

 On Thu, Jun 25, 2009 at 7:31 AM, Francois Armandfan...@gmail.com
 wrote:
 
 
  I did a presentation some weeks ago, the slides are under a creative
 common
  licence, so use them if you want !
 
 
 http://fanf42.blogspot.com/2009/06/tour-of-scala-ossgtp-paris-oss-user.html
 
 
  OK, just ignore this message, it was a *Scala* presentation, not a
  *Lift* one - sorry, I read your post too quickly - and no, the fact
  that we were in Lift ml didn't make me find that strange :)
 
 
  --
  --
  Francois Armand
  http://fanf42.blogspot.com/
 
  
 



 --
 Omnem crede diem tibi diluxisse supremum.








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp


 



-- 
Omnem crede diem tibi diluxisse supremum.

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: scala-tools.org down

2009-06-29 Thread David Pollak
On Mon, Jun 29, 2009 at 9:28 AM, Viktor Klang viktor.kl...@gmail.comwrote:

 C'est sabotage?


Nah... it's the you get what you pay for CalPop hosting... mostly
awesome...




 On Mon, Jun 29, 2009 at 5:58 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 The answer from CalPop:

 I just checked the cable and the clip on the RJ45 is missing, I slightly
 touched the cable and it came loose again. It could be that another
 colocated customer was working in that area during the time the server went
 down.



 On Mon, Jun 29, 2009 at 7:08 AM, Derek Chen-Becker dchenbec...@gmail.com
  wrote:

 I smell a conspiracy!

 On Mon, Jun 29, 2009 at 7:54 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Mon, Jun 29, 2009 at 6:39 AM, Jeremy Day jeremy@gmail.comwrote:

 David,

 On Mon, Jun 29, 2009 at 8:28 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 The good news is that I've got pingdom monitoring the machine.  The
 bad news is that I was out of cell phone range so I didn't get the 
 alerts.


 What?  You're not allowed to relax!


 No, I'm not.  Last family vacation, scala-tools.org was DoSed.  This
 family vacation, the network connection to the machine got hosed.  Sigh.






 Jeremy






 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp








 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp





 --
 Viktor Klang
 Scala Loudmouth


 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Modify CRUDify XHTML

2009-06-29 Thread David Pollak
On Fri, Jun 26, 2009 at 6:39 PM, Peter Robinett pe...@bubblefoundry.comwrote:


 Thanks, Derek and Jeppe, your responses were very helpful. I
 implemented Jeppe's solution and added my own snippet tag within
 _viewTemplate.  Unfortunately, I spent the whole day trying to figure
 out how pass the current CRUDified object to my snippet. Do I retrieve
 it in _viewTemplate from S.params and add an attribute to the snippet
 tag? Or just retrieve it from S in the snippet?


I've just made Loc.foundParam public.  If you get the Loc from the Req from
S (for {req - S.request; loc - req.location}) you can access foundParam
which contains the current crudified object.

Thanks,

David


 I think I'm missing
 something fundamental with the S object and snippets. As you can tell,
 I'm very new to Lift! Any advice is much appreciated.

 Peter

 On Jun 24, 11:01 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
  On 24 Jun 2009, Peter Robinett wrote:
 
   Hi all,
 
   I'm using CRUDify on one of my models and I'd like to display some
   additional data on the view template. I believe that I need to
   override one of the model definitions with some sort of reference to
   my own XHTML file. Which one? _viewTemplate? Or perhaps the
   viewTemplate method?
 
  If you look at the source to CRUDify, you'll see
 
  def viewTemplate(): NodeSeq = pageWrapper(_viewTemplate)
 
  where
 
  def pageWrapper(body: NodeSeq): NodeSeq =
lift:surround with=default at=content
  {
body
  }
/lift:surround
 
  def _viewTemplate =
lift:crud.view
  table id={viewId} class={viewClass}
crud:row
  tr
tdcrud:name//td
tdcrud:value//td
  /tr
/crud:row
  /table
/lift:crud.view
 
  So the simplest thing is to override _viewTemplate with something similar
  to the above. This should be done on the companion objects where CRUDify
  is mixed in
 
  /Jeppe

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA, Hibernate, c3p0

2009-06-29 Thread Ryan Donahue

Thanks, there's no rush.  I'm starting a week-long vacation tomorrow,
so I wouldn't be able to try any changes until then anyway.

On Jun 26, 11:20 am, Derek Chen-Becker dchenbec...@gmail.com wrote:
 I'll look at adding a hook.

 Derek

 On Fri, Jun 26, 2009 at 6:43 AM, Ryan Donahue donahu...@gmail.com wrote:

  I'm using JPA and Hibernate for persistence, and I've configured
  Hibernate to use c3p0 for connection pooling.  I'm using scalajpa as
  follows:

  object em extends LocalEMF(persistenceUnit) with ThreadLocalEM

  When Tomcat reloads the app, the following is logged:

  A C3P0Registry mbean is already registered. This probably means that
  an application using c3p0 was undeployed, but not all
  PooledDataSources were closed prior to undeployment. This may lead to
  resource leaks over time. Please take care to close all
  PooledDataSources.

  So I thought I would just add a function to LiftRules.unloadHooks to
  close the EntityManagerFactory, however I can't find any way to access
  the underlying factory.  LocaEMF has an emf val, but it is private.

  Any ideas?

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: lift presentation

2009-06-29 Thread marius d.

I had it last Thursday  ... it was a ~ 40 Java  people ...very few
(colleagues of mine) that heard and try Scala  Lift ... I think it
went ok cause I got plenty of questions + some Java jokes about
Scala's syntax and principles but I expected that.

I guess most of the functional concept are hard to grasp by an
imperative mind ... at least not in 2 hours presentation :D

Br's,
Marius

On Jun 29, 7:35 pm, Wilson MacGyver wmacgy...@gmail.com wrote:
 Thank you for the links. I'll be borrowing those too. :) And thanks forthe
 lift. :) (ducking from incoming tomatoes)

 On Mon, Jun 29, 2009 at 12:31 PM, David Pollak 



 feeder.of.the.be...@gmail.com wrote:

  On Thu, Jun 25, 2009 at 5:24 AM, Jeremy Day jeremy@gmail.com wrote:

  Guys,

  I just want to say that I haven't started using Lift yet but I already
  love it.  This community is very supportive and responsive.  Keep up the
  awesome work!

  Grin!  This is the kind of message (and thread) that makes coming home from
  vacation a very good thing!

  My most recent Lift/Scala preso is the dpp_osb.odp file in
 http://github.com/dpp/lift-samples/tree/61c376dc9f0d99113229894d4a5b8...

  Also, please seehttp://liftweb.blip.tv

  Basically, the preso is building the chat app in 40 lines of code in front
  of people, then discussing the Scala language features that make it
  possible.

  Jeremy

  On Thu, Jun 25, 2009 at 7:21 AM, Wilson MacGyver 
  wmacgy...@gmail.comwrote:

  heheh, no problem. I did the one on Scala back in Feb. :)

  On Thu, Jun 25, 2009 at 7:31 AM, Francois Armandfan...@gmail.com
  wrote:

   I did a presentation some weeks ago, the slides are under a creative
  common
   licence, so use them if you want !

 http://fanf42.blogspot.com/2009/06/tour-of-scala-ossgtp-paris-oss-use...

   OK, just ignore this message, it was a *Scala* presentation, not a
   *Lift* one - sorry, I read your post too quickly - and no, the fact
   that we were in Lift ml didn't make me find that strange :)

   --
   --
   Francois Armand
  http://fanf42.blogspot.com/

  --
  Omnem crede diem tibi diluxisse supremum.

  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Git some:http://github.com/dpp

 --
 Omnem crede diem tibi diluxisse supremum.
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Which is newer

2009-06-29 Thread David Pollak
On Sun, Jun 28, 2009 at 7:01 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:

 Maven seems to think that 1.1-M1 is newer. [1.1-SNAPSHOT, ) uses M1.


Dunno... I'd suggest using 1.1-SNAPSHOT so you know what version you're
getting.




 On Sun, Jun 28, 2009 at 7:51 PM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:

 Yes.  1.1-SNAPSHOT is the build against the current trunk head.  1.1
 Milestone 1 was a stable build done at the beginning of May.  There'll be a
 1.1 M3 build out this week (what happened to M2... long story.)

 On Sun, Jun 28, 2009 at 4:47 PM, Naftoli Gugenhem 
 naftoli...@gmail.comwrote:


 Is 1.1-SNAPHOT newer than 1.1-M1?





 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: preso on monadic design patterns for the web

2009-06-29 Thread Meredith Gregory
Everyone,

Thanks for all the positive feedback. Eric Bowman found the link to the
slides.

Best wishes,

--greg

On Mon, Jun 29, 2009 at 1:51 AM, Eric Bowman ebow...@boboco.ie wrote:


 Here?

 http://svn.biosimilarity.com/src/open/talks/MonadicDesignPatternsForTheWeb.pdf

 Timothy Perrett wrote:
  +1 would love to read the slides properly.
 
  Cheers, Tim
 
  On Jun 29, 8:59 am, Jonas Bonér jbo...@gmail.com wrote:
 
  Great talk. Thanks.
  Could you post the slides? It was a bit hard to see them.
  /Jonas
 
  2009/6/29 Meredith Gregory lgreg.mered...@gmail.com:
 
 
 
 
 
 
  All,
 
  The talk i recently gave on this topic is now available online.
 
  Best wishes,
 
  --greg
 
  --
  L.G. Meredith
  Managing Partner
  Biosimilarity LLC
  1219 NW 83rd St
  Seattle, WA 98117
 
  +1 206.650.3740
 
  http://biosimilarity.blogspot.com
 
  --
  Jonas Bonér
 
  twitter: @jboner
  blog:http://jonasboner.com
  work:  http://crisp.se
  work:  http://scalablesolutions.se
  code:  http://github.com/jboner
 
  
 


 --
 Eric Bowman
 Boboco Ltd
 ebow...@boboco.ie
 http://www.boboco.ie/ebowman/pubkey.pgp
 +35318394189/+353872801532http://www.boboco.ie/ebowman/pubkey.pgp%0A+35318394189/+353872801532


 



-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Pagination in lift?

2009-06-29 Thread David Pollak
On Sun, Jun 28, 2009 at 1:06 PM, Timothy Perrett timo...@getintheloop.euwrote:


 You don't mention if your using JPA or Mapper - if your using mapper
 then the answer is no we don't have any built in support but its not
 to difficult to display limited lists. You could grab all the results
 then do some manipulation on the list in memory if you only have a
 small dataset, alternatively you could craft your own queries using
 limiting / offsetting.


Tim,

Selecting a subset of stuff with Mapper is pretty simple:

Users.findAll(OrderBy(User.id, Ascending), StartAt(50), MaxRows(10))





 Alternatively, if your using JPA, you can use the stuff built into
 jpa; more info here: http://is.gd/1hfCg

 Cheers, Tim

 On Jun 28, 8:44 pm, Naftoli Gugenhem naftoli...@gmail.com wrote:
  Does lift have built in support for pagination -- breaking up a query and
 continuing it across multiple pages, and clicking the headers to sort?
  If not how hard is it?
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: how to serve html fragments

2009-06-29 Thread David Pollak
I just pushed a patch that will flip the DocType and ?xml version=1.0
encoding=UTF-8? if the browser is IE6

On Mon, Jun 29, 2009 at 12:20 AM, David Persons dhwpers...@gmail.comwrote:


 The problem seems to be a known stupid bug in IE6.. see:
 http://www.webdeveloper.com/forum/showthread.php?t=1658

 On 29 jun, 02:39, David Persons dhwpers...@gmail.com wrote:
  I spend a lot of time today on (close to) the same problem.. IE 6 was
  not showing my site in strict mode.. with the strict doctype set
  correctly I thought.. :
 
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 
  The problem was the order of the two lines.. Seems that to have IE
  pick up the correct doctype, the html HAS TO START with the doctype.
  Changing the order makes IE show my website perfectly:
 
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
  ?xml version=1.0 encoding=UTF-8?
 
  How to change the order in my code so that Lift spits out my pages
  correctly?
 
  regards,
  David Persons
 
  On 6 jun, 17:13, fatu fab...@gmail.com wrote:
 
   Thanks a lot for the info David, then I'll consider reverting to 2.7.4
   until Lift integrates the latest Scala Actors lib (and fixes).
 
   Fabio
 
   On 6 Giu, 15:58, David Pollak feeder.of.the.be...@gmail.com wrote:
 
Lift is 2.7.4.  We have not upgraded to 2.7.5 as the delta is actor
 fixes in
response to lift-related tickets that we solved with our own actor
 impl.
I'm talking to Philipp Haller today at the Lift Off about how to
 proceed.
 
On Jun 6, 2009 6:49 AM, fatu fab...@gmail.com wrote:
 
2.7.5 right now (and a fresh maven repo too) but I think (not sure
though) I had it with 2.7.4 as well. Seems to expect a refSet field
 in
ActorGC which i couldn't find in 2.7.5 sources.
 
Fabio
 
On 5 Giu, 18:10, David Pollak feeder.of.the.be...@gmail.com wrote:
  Are
you using Scala 2.7.4 or...
 
 On Fri, Jun 5, 2009 at 7:37 AM, fatu fab...@gmail.com wrote:  
 
 
Fantastic, it works great!  ...
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Error attempting to persist Mapper

2009-06-29 Thread David Pollak
What version of Lift are you using?

On Thu, Jun 25, 2009 at 7:33 PM, Jonathan Ferguson j...@spiralarm.comwrote:


 Hi all,
  I'm attempting to persist a Mapper used to join two tables.

 java.lang.NullPointerException: Trying to open an empty Box
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370)
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366)
at net.liftweb.mapper.MetaMapper$$anonfun$12.apply(MetaMapper.scala:
 583)
at net.liftweb.mapper.MetaMapper$$anonfun$12.apply(MetaMapper.scala:
 578)
at net.liftweb.mapper.DB$.use(DB.scala:305)
at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:577)

 The empty box is in the update statement, which confuses me as I
 should be performing an insert.( from MetaMapper )

val ret: Boolean = DB.prepareStatement(UPDATE
 +dbTableName+ SET +whatToSet(toSave)+ WHERE +indexMap.open_! +
 = ?, conn)

 I am assuming it is something to do with my understand of how to use a
 non-keyed Mapper.
 The exception is thrown when save is called in the join function.

 class AB extends Mapper[AB] {

def getSingleton = AB

object A  extends MappedLongForeignKey(this, A) { override def
 dbColumnName = a_Bs_id }
object B  extends MappedLongForeignKey(this, B) { override def
 dbColumnName = B_id }
object index  extends MappedInt(this) { override def dbColumnName =
 Bs_idx }

 }
 object AB extends AB with MetaMapper[AB]
 {
   override def dbTableName = A_B

  def join (a : A, b : B):Boolean = {
val list = AB.findAll(By(AB.a,a))
val i = list.isEmpty match {
  case true = 0
  case false = list.size
}
this.create.A(a).B(b).index(i).save
}

 }


 Any pointers would be appreciated, I can't change the data structure
 as the table is used by other applications.

 Jono


 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Package in snippet tag

2009-06-29 Thread Naftoli Gugenhem

Normally you write the snippet tag lift:MySnippet, and you add my.package to 
the searched packages.
Can you just add my and write the tag lift:package.MySnippet etc.?

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Package in snippet tag

2009-06-29 Thread David Pollak
On Mon, Jun 29, 2009 at 12:24 PM, Naftoli Gugenhem naftoli...@gmail.comwrote:


 Normally you write the snippet tag lift:MySnippet, and you add my.package
 to the searched packages.
 Can you just add my and write the tag lift:package.MySnippet etc.?


No... sorry.




 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Pagination in lift?

2009-06-29 Thread Timothy Perrett


 Tim,

 Selecting a subset of stuff with Mapper is pretty simple:

 Users.findAll(OrderBy(User.id, Ascending), StartAt(50), MaxRows(10))

Oh wow, really didnt know that was possible... i'll shut my jpa-using
mouth in future ;-) hehe.

Cheers, Tim
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Which is newer

2009-06-29 Thread Timothy Perrett

Yeah this isnt ideal, but for now just change the version in your
pom.xml to be:

version[1.1-SNAPSHOT]/version

Can you just check that you dont have both releases and snapshot
repositories defined in your pom.xml... the M1 release is only in the
releases repository so if you remove that as an option then it wont be
able to download M1 and will then only be able to find the 1.1-
SNAPSHOT.

Should fix your problem.

Cheers, Tim

On Jun 29, 7:00 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Sun, Jun 28, 2009 at 7:01 PM, Naftoli Gugenheim 
 naftoli...@gmail.comwrote:

  Maven seems to think that 1.1-M1 is newer. [1.1-SNAPSHOT, ) uses M1.

 Dunno... I'd suggest using 1.1-SNAPSHOT so you know what version you're
 getting.







  On Sun, Jun 28, 2009 at 7:51 PM, David Pollak 
  feeder.of.the.be...@gmail.com wrote:

  Yes.  1.1-SNAPSHOT is the build against the current trunk head.  1.1
  Milestone 1 was a stable build done at the beginning of May.  There'll be a
  1.1 M3 build out this week (what happened to M2... long story.)

  On Sun, Jun 28, 2009 at 4:47 PM, Naftoli Gugenhem 
  naftoli...@gmail.comwrote:

  Is 1.1-SNAPHOT newer than 1.1-M1?

  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Git some:http://github.com/dpp

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Java alternatives?

2009-06-29 Thread samreid

My group may not be able to commit to Scala within the next year or
so, so I have 2 related questions:

(1) What's the best non-Lift framework?  We are leaning toward
something on the JVM and I've heard David speak fondly of Wicket.

(2) Is there any possibility of writing Java source to run under
lift?  I'm finding it difficult to even create a NodeSeq from Java,
and we may have to write Scala adapters to reach some of the Lift
functionality.  I know this seems like an awkward approach (and
probably some level of competence with Scala would probably be
necessary in order to read docs, etc.), but this might be a way we
could get the benefits of Lift platform without the costs associated
with Scala.  Or would this be significantly worse than just picking
another framework?

Thanks,
Sam Reid

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Hudson issue

2009-06-29 Thread Derek Chen-Becker
Hudson barfed just now complaining about too many open files:

Caused by: java.io.IOException: Cannot run program git (in directory
/home/scalatools/hudson/.hud
son/jobs/Lift/workspace): java.io.IOException: error=24, Too many open
files

I've restarted Hudson and it appears to be working now. I'm going to
research this to see if it's a Hudson bug or possibly and issue with our
machine config, so I was wondering if anyone has seen something like this
before?

Thanks,

Derek

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Hudson issue

2009-06-29 Thread David Bernard
I'd got the problem in previous server. I don't remember the solution (I
thought a version of hudson fixed this)
Try :
* to increase the ulimit of open file for the account running hudson
* to diseable build of the mvnsites/javadoc/scaladoc (or move it into an
other job)
* to cron a daily restart of hudson

/davidB

On Mon, Jun 29, 2009 at 23:15, Derek Chen-Becker dchenbec...@gmail.comwrote:

 Hudson barfed just now complaining about too many open files:

 Caused by: java.io.IOException: Cannot run program git (in directory
 /home/scalatools/hudson/.hud
 son/jobs/Lift/workspace): java.io.IOException: error=24, Too many open
 files

 I've restarted Hudson and it appears to be working now. I'm going to
 research this to see if it's a Hudson bug or possibly and issue with our
 machine config, so I was wondering if anyone has seen something like this
 before?

 Thanks,

 Derek

 


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Hudson issue

2009-06-29 Thread Viktor Klang
ulimit -n

http://stackoverflow.com/questions/114914/how-do-you-fix-too-many-open-files-problem-in-hudson



On Mon, Jun 29, 2009 at 11:15 PM, Derek Chen-Becker
dchenbec...@gmail.comwrote:

 Hudson barfed just now complaining about too many open files:

 Caused by: java.io.IOException: Cannot run program git (in directory
 /home/scalatools/hudson/.hud
 son/jobs/Lift/workspace): java.io.IOException: error=24, Too many open
 files

 I've restarted Hudson and it appears to be working now. I'm going to
 research this to see if it's a Hudson bug or possibly and issue with our
 machine config, so I was wondering if anyone has seen something like this
 before?

 Thanks,

 Derek

 



-- 
Viktor Klang
Scala Loudmouth

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Java alternatives?

2009-06-29 Thread David Pollak
Sam,

On Mon, Jun 29, 2009 at 1:49 PM, samreid samrr...@gmail.com wrote:


 My group may not be able to commit to Scala within the next year or
 so, so I have 2 related questions:


Bummer...




 (1) What's the best non-Lift framework?  We are leaning toward
 something on the JVM and I've heard David speak fondly of Wicket.


Depends on what you want to do.  For stateful web sites, I think Wicket's
the best choice.  I'm not sure about REST frameworks.



 (2) Is there any possibility of writing Java source to run under
 lift?  I'm finding it difficult to even create a NodeSeq from Java,
 and we may have to write Scala adapters to reach some of the Lift
 functionality.  I know this seems like an awkward approach (and
 probably some level of competence with Scala would probably be
 necessary in order to read docs, etc.), but this might be a way we
 could get the benefits of Lift platform without the costs associated
 with Scala.  Or would this be significantly worse than just picking
 another framework?


I would recommend picking another framework.  I'm not sure what you think
the benefits of Lift are (I have my list, but yours may differ), but I think
a lot of the value of Lift is based on Scala's Function and PartialFunction
classes.  It'd be hellish to replicate this functionality by hand in Java.

Thanks,

David




 Thanks,
 Sam Reid

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: preso on monadic design patterns for the web

2009-06-29 Thread Jonas Bonér

Thanks

2009/6/29 Eric Bowman ebow...@boboco.ie:

 Here?
 http://svn.biosimilarity.com/src/open/talks/MonadicDesignPatternsForTheWeb.pdf

 Timothy Perrett wrote:
 +1 would love to read the slides properly.

 Cheers, Tim

 On Jun 29, 8:59 am, Jonas Bonér jbo...@gmail.com wrote:

 Great talk. Thanks.
 Could you post the slides? It was a bit hard to see them.
 /Jonas

 2009/6/29 Meredith Gregory lgreg.mered...@gmail.com:






 All,

 The talk i recently gave on this topic is now available online.

 Best wishes,

 --greg

 --
 L.G. Meredith
 Managing Partner
 Biosimilarity LLC
 1219 NW 83rd St
 Seattle, WA 98117

 +1 206.650.3740

 http://biosimilarity.blogspot.com

 --
 Jonas Bonér

 twitter: @jboner
 blog:    http://jonasboner.com
 work:  http://crisp.se
 work:  http://scalablesolutions.se
 code:  http://github.com/jboner

 



 --
 Eric Bowman
 Boboco Ltd
 ebow...@boboco.ie
 http://www.boboco.ie/ebowman/pubkey.pgp
 +35318394189/+353872801532


 




-- 
Jonas Bonér

twitter: @jboner
blog:http://jonasboner.com
work:   http://crisp.se
work:   http://scalablesolutions.se
code:   http://github.com/jboner

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Error attempting to persist Mapper

2009-06-29 Thread Jonathan A Ferguson
I knew there would be at least one thing I would forget.

version 1.0.



On 30/06/2009, at 3:51 AM, David Pollak wrote:

 What version of Lift are you using?

 On Thu, Jun 25, 2009 at 7:33 PM, Jonathan Ferguson  
 j...@spiralarm.com wrote:

 Hi all,
  I'm attempting to persist a Mapper used to join two tables.

 java.lang.NullPointerException: Trying to open an empty Box
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370)
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366)
at net.liftweb.mapper.MetaMapper$$anonfun 
 $12.apply(MetaMapper.scala:
 583)
at net.liftweb.mapper.MetaMapper$$anonfun 
 $12.apply(MetaMapper.scala:
 578)
at net.liftweb.mapper.DB$.use(DB.scala:305)
at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala: 
 577)

 The empty box is in the update statement, which confuses me as I
 should be performing an insert.( from MetaMapper )

val ret: Boolean = DB.prepareStatement(UPDATE
 +dbTableName+ SET +whatToSet(toSave)+ WHERE +indexMap.open_! +
 = ?, conn)

 I am assuming it is something to do with my understand of how to use a
 non-keyed Mapper.
 The exception is thrown when save is called in the join function.

 class AB extends Mapper[AB] {

def getSingleton = AB

object A  extends MappedLongForeignKey(this, A)  
 { override def
 dbColumnName = a_Bs_id }
object B  extends MappedLongForeignKey(this, B)  
 { override def
 dbColumnName = B_id }
object index  extends MappedInt(this) { override def  
 dbColumnName =
 Bs_idx }

 }
 object AB extends AB with MetaMapper[AB]
 {
   override def dbTableName = A_B

  def join (a : A, b : B):Boolean = {
val list = AB.findAll(By(AB.a,a))
val i = list.isEmpty match {
  case true = 0
  case false = list.size
}
this.create.A(a).B(b).index(i).save
}

 }


 Any pointers would be appreciated, I can't change the data structure
 as the table is used by other applications.

 Jono






 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp

 


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Error attempting to persist Mapper

2009-06-29 Thread David Pollak
Fixed in 1.1-SNAPSHOT

THere's an ill-fated 1.0.1 that's kinda going nowhere.  Is it important to
backport it to 1.0.1?

On Mon, Jun 29, 2009 at 3:18 PM, Jonathan A Ferguson j...@spiralarm.comwrote:

 I knew there would be at least one thing I would forget.
 version 1.0.



 On 30/06/2009, at 3:51 AM, David Pollak wrote:

 What version of Lift are you using?

 On Thu, Jun 25, 2009 at 7:33 PM, Jonathan Ferguson j...@spiralarm.comwrote:


 Hi all,
  I'm attempting to persist a Mapper used to join two tables.

 java.lang.NullPointerException: Trying to open an empty Box
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370)
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366)
at
 net.liftweb.mapper.MetaMapper$$anonfun$12.apply(MetaMapper.scala:
 583)
at
 net.liftweb.mapper.MetaMapper$$anonfun$12.apply(MetaMapper.scala:
 578)
at net.liftweb.mapper.DB$.use(DB.scala:305)
at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala:577)

 The empty box is in the update statement, which confuses me as I
 should be performing an insert.( from MetaMapper )

val ret: Boolean = DB.prepareStatement(UPDATE
 +dbTableName+ SET +whatToSet(toSave)+ WHERE +indexMap.open_! +
 = ?, conn)

 I am assuming it is something to do with my understand of how to use a
 non-keyed Mapper.
 The exception is thrown when save is called in the join function.

 class AB extends Mapper[AB] {

def getSingleton = AB

object A  extends MappedLongForeignKey(this, A) { override def
 dbColumnName = a_Bs_id }
object B  extends MappedLongForeignKey(this, B) { override def
 dbColumnName = B_id }
object index  extends MappedInt(this) { override def dbColumnName =
 Bs_idx }

 }
 object AB extends AB with MetaMapper[AB]
 {
   override def dbTableName = A_B

  def join (a : A, b : B):Boolean = {
val list = AB.findAll(By(AB.a,a))
val i = list.isEmpty match {
  case true = 0
  case false = list.size
}
this.create.A(a).B(b).index(i).save
}

 }


 Any pointers would be appreciated, I can't change the data structure
 as the table is used by other applications.

 Jono






 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp





 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Error With CRUDify's Select Field for MappedLongForeignKey

2009-06-29 Thread Peter Robinett

In my app I have Datacenters which can have many Nodes. Accordingly, I
added a foreign key in the Node model to link to its Datacenter.
However, when I would go to the create or edit pages it would say
Can't change for the field. Based upon an old mailing list post
(http://groups.google.com/group/liftweb/msg/63523ca1432e7bd7) I added
the following :
object datacenter extends MappedLongForeignKey(this, Datacenter) {
override def validSelectValues: Box[List[(Long, String)]] = Full
(Datacenter.findAll.map(d = (d.id.is, d.name.is)))
}

I now have a select box with the correct values. Great. However, when
I select a value and hit edit I get an error:
Message: java.lang.Exception: Do not have permissions to set this
field
net.liftweb.mapper.MappedField$class.set(MappedField.scala:425)
net.liftweb.mapper.MappedString.set(MappedString.scala:38)

Any idea what's wrong here? The database tables are correctly
configured (I'm using MySQL) and I'm running 1.1-SNAPSHOT. Thanks in
advance for your help.

Peter Robinett

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Managed child entities

2009-06-29 Thread Naftoli Gugenhem

I wrote a similar implementation for many-to-many. Again, very untested, but it 
works as much as I've used it.
David suggested I create a project on GitHub where the community can contribute 
useful code that could then be integrated into lift proper. So far the actual 
project is empty but it's at github.com/nafg/lift-incubator .


-
David Pollakfeeder.of.the.be...@gmail.com wrote:

Wow!

On Mon, Jun 22, 2009 at 9:30 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:

 I was working on something to help make it easier to deal with one to many
 relationships. I'm attaching it (OneToMany.scala) along with a class that
 uses it (partially work in progress), although it's a bit verbose (partially
 because my class names are very long). Advantages include access to the
 children like a collection, and ability to add and remove children but defer
 actually saving it, as well as adding the children before the parent was
 saved and got an id.
 It's not test very thoroughly, and of course any suggestions for
 improvement are more than welcome. I'm planning to try to make something
 similar for many to many soon.


 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp



--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] can a Snippet call a Snippet?

2009-06-29 Thread g-man

I am enhancing the Todo app by adding tags.

I have retained the TD.scala snippet to manage the Todos on my page,
and added a TG.scala snippet to handle tags on the same page, which
works well for creating new and listing in both cases.

Now I want to filter my Todos list by a Tag instance I select from my
list, and therefore need to pass the id of the selected tag over from
the TG snippet to the TD snippet, where it can be used as a filter
argument for a find method.

The problem is that scala says it cannot find snippet TD, whose method
I am calling as TD.list from the TG.scala snippet. I have tried all
kinds of explicit importing, but no luck.

So,  can a snippet call a snippet, or is that controlled only from the
web page?




--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: can a Snippet call a Snippet?

2009-06-29 Thread Naftoli Gugenhem

I don't have such a clear picture of what you're trying to do. If you need to 
refer to the instance of a snippet that exists on the same page, it looks to me 
like that data is private in S.snippetForClass.
Maybe you can nest the Tag tags in the ToDo snippet tag, have it instantiate a 
Tag instance, and call its xml processing functions directly, so that its SHtml 
setters etc. will refer to variables in the outer snippet's scope, i.e. the Tag 
instance it owns.

-
g-mangregor...@gmail.com wrote:


I am enhancing the Todo app by adding tags.

I have retained the TD.scala snippet to manage the Todos on my page,
and added a TG.scala snippet to handle tags on the same page, which
works well for creating new and listing in both cases.

Now I want to filter my Todos list by a Tag instance I select from my
list, and therefore need to pass the id of the selected tag over from
the TG snippet to the TD snippet, where it can be used as a filter
argument for a find method.

The problem is that scala says it cannot find snippet TD, whose method
I am calling as TD.list from the TG.scala snippet. I have tried all
kinds of explicit importing, but no luck.

So,  can a snippet call a snippet, or is that controlled only from the
web page?






--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Rendering a View from a Snippet

2009-06-29 Thread fbettag

Hey guys,

i was wondering how one would go about rendering a View from a
Snippet. I guess i could Load the XML, but i am not sure if this is
the best way. Also if it is, what would be the best way to get the
path to the view?

best regards
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Rendering a View from a Snippet

2009-06-29 Thread fbettag

Argh, i forgot something ;)
The idea is to load several views and return them as one.

On Jun 30, 6:05 am, fbettag fr...@bett.ag wrote:
 Hey guys,

 i was wondering how one would go about rendering a View from a
 Snippet. I guess i could Load the XML, but i am not sure if this is
 the best way. Also if it is, what would be the best way to get the
 path to the view?

 best regards
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Error attempting to persist Mapper

2009-06-29 Thread Jonathan A Ferguson
It would be nice,  is it a lot of effort to backport to 1.0.1 ?

What is the state of 1.1 - If we stick with 1.0 functionality should  
APIs be fixed?
I'll become an endangered species if I move us otherwise.

Jono


On 30/06/2009, at 9:50 AM, David Pollak wrote:

 Fixed in 1.1-SNAPSHOT

 THere's an ill-fated 1.0.1 that's kinda going nowhere.  Is it  
 important to backport it to 1.0.1?

 On Mon, Jun 29, 2009 at 3:18 PM, Jonathan A Ferguson j...@spiralarm.com 
  wrote:
 I knew there would be at least one thing I would forget.

 version 1.0.



 On 30/06/2009, at 3:51 AM, David Pollak wrote:

 What version of Lift are you using?

 On Thu, Jun 25, 2009 at 7:33 PM, Jonathan Ferguson j...@spiralarm.com 
  wrote:

 Hi all,
  I'm attempting to persist a Mapper used to join two tables.

 java.lang.NullPointerException: Trying to open an empty Box
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:370)
at net.liftweb.util.EmptyBox.open_$bang(Box.scala:366)
at net.liftweb.mapper.MetaMapper$$anonfun 
 $12.apply(MetaMapper.scala:
 583)
at net.liftweb.mapper.MetaMapper$$anonfun 
 $12.apply(MetaMapper.scala:
 578)
at net.liftweb.mapper.DB$.use(DB.scala:305)
at net.liftweb.mapper.MetaMapper$class.save(MetaMapper.scala: 
 577)

 The empty box is in the update statement, which confuses me as I
 should be performing an insert.( from MetaMapper )

val ret: Boolean = DB.prepareStatement(UPDATE
 +dbTableName+ SET +whatToSet(toSave)+ WHERE +indexMap.open_! +
 = ?, conn)

 I am assuming it is something to do with my understand of how to  
 use a
 non-keyed Mapper.
 The exception is thrown when save is called in the join function.

 class AB extends Mapper[AB] {

def getSingleton = AB

object A  extends MappedLongForeignKey(this, A)  
 { override def
 dbColumnName = a_Bs_id }
object B  extends MappedLongForeignKey(this, B)  
 { override def
 dbColumnName = B_id }
object index  extends MappedInt(this) { override def  
 dbColumnName =
 Bs_idx }

 }
 object AB extends AB with MetaMapper[AB]
 {
   override def dbTableName = A_B

  def join (a : A, b : B):Boolean = {
val list = AB.findAll(By(AB.a,a))
val i = list.isEmpty match {
  case true = 0
  case false = list.size
}
this.create.A(a).B(b).index(i).save
}

 }


 Any pointers would be appreciated, I can't change the data structure
 as the table is used by other applications.

 Jono






 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp









 -- 
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp

 


--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] grabbing rss or other type of feeds within lift

2009-06-29 Thread Mark Essel

trying to conjure up a similar functioning piece of code in scala to
grab my status from twitter.

(php)
$username = victusfate;
$feed = http://search.twitter.com/search.atom?q=from:; . $username .
rpp=1;
//echo $feed;
function parse_feed($feed) {
$stepOne = explode(content type=\html\, $feed);
$stepTwo = explode(/content,$stepOne[1]);
$tweet = $stepTwo[0];
$tweet = str_replace(lt;, , $tweet);
$tweet = str_replace(gt;, , $tweet);
return $tweet;
}
$twitterFeed = file_get_contents($feed);
echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes
($suffix);

(.scala file)
  var username = victusfate
  var feed = http://search.twitter.com/search.atom?q=from:; +
username + rpp=1
  span{ feed }/span

stuck here tried Rome, and various other feed fetching libraries
without much luck (very new to the language and setup)

--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Problem with jQuery/JavaScript and Liftweb because of Doctype

2009-06-29 Thread fbettag

Hey guys, i've been having troubles with jQuery and Firefox/Safari due
to the missing Doctype all night long:

Uncaught exception: [Exception... Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER)
[nsIDOMNSHTMLElement.innerHTML]“  nsresult: “0×80004003
(NS_ERROR_INVALID_POINTER)”  location: “JS frame :: 
http://yourserver/include/jquery.js
:: anonymous :: line 11″  data: no]

The issue is described here, altho it kinda is somehow faulty xml on
my part: 
http://fitzsimmons.ca/jquery-xhtml-11-strict-and-ns_error_invalid_pointer/

Is there any way to prepend a DocType? Searching the group didn't turn
anything useful up.

Best regards
--~--~-~--~~~---~--~~
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 more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---