[Lift] Re: org.mortbay.util.ajax.Continuation on GAE/J

2009-06-11 Thread Atsuhiko Yamanaka

Hi,

Now, 'hasContinuations_?' has become 'false' on GAE/J.
It seems that Google has been doing some experiments behind the scenes.
Anyway, I'll keep on checking this area.
Thank you for follow-up messages.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/

--~--~-~--~~~---~--~~
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: security

2009-06-11 Thread marius d.



On Jun 11, 2:45 am, Oliver Lambert olambo...@gmail.com wrote:
 On Wed, Jun 10, 2009 at 11:58 PM, David Pollak 



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

  On Tue, Jun 9, 2009 at 11:39 PM, marius d. marius.dan...@gmail.comwrote:

  Hi,

  For most apps cannonicalization is not really necessary as the
  character stream for form-url-encoded is UTF-8 by default as Lift uses
  UTF-8 by default. Oh and the conversion from URL encoding to plain
  UTF-8 content is really done by container and when we get the params
  from the request object they are already well formed. Now if we're
  talking about a higher level of validation that's a different story
  and IMO this is an application aspect and not much a framework one.

  And Lift does URL Decoding of the paths before presenting them as the Req()
  object.

  More broadly, Lift should provide all the features of ESAPI out of the box.
   If there are particular things that ESAPI offers that Lift doesn't, please
  flag them and we'll add them.

  I did a bunch of years as VPE and CTO at a web app security company.  In
  general, I've worked to make sure that Lift has security baked in and that
  the developer has to work to make the app insecure, rather than vice versa.
   If I missed a spot, Lift will be enhanced to make sure it does have
  security baked in.

 From my perspective Lift is secure, much more so than other frameworks I've
 used. The current set of Lift apps, that I've helped develop, have survived
 outsourced penetration testing without requiring any modifications at all.
 Great!

 I'm not a security expert, but I am being asked to consider ESAPI features.
 From my limited understanding, the UTF-8 encoding is fine and Lift protects
 the response from displaying any scripts or html that might have
 inadvertently been added to the database.  The problem is more what is being
 validated and how its being validated. I don't buy Marius's claim that this
 is somehow a higer order validation that is an application concern rather
 than a framework one. The internet has all the insecurities it has, because
 security has been left to the application developer.

The eligibility criteria from a web-string to be converted to String
object may differ greatly from application to application. This is why
so fat I disagree with you. In some contexts receiving scriptalert
('XSS')/script string is what application wants. Sometimes it is
not. Besides lift already protects us from XSS in great extent.


 As far a I can see, one problem lies when a string is obtained from the web
 page and instanciated into a String object.  For instance, if it comes in as
 scriptalert('XSS')/script, then its probably not what you want.  Why
 does it matter if something like this gets stored in your database - perhaps
 because it's one part of your security.  In addition if it comes in doubly
 encoded as

 %253Cscript%253Ealert('XSS')%253C%252Fscript%253E

 then its probably also not what you want.

 1) To stop double encoding, ESAPI suggests that you use cannonicalization to
 convert the strings to a similar format before validation.
 2) After, the input has been cannonicalized, ESAPI suggests that the input
 should be validated against a whitelist of allowed charaters.

 Now, I can't see that 1 or 2 is necessary if you are creating a number from
 the input, but perhaps it should be, if you are creating a ordinary String
 object. I also am not sure how much work would be involved in using a
 whitelist in a location aware multilingual way, but perhaps it could be done
 as a default.

I have nothing against ESAPI but as far as I'm concerned more
compelling and concrete use cases are needed for it to be incorporated
into the framework. As David said if there is a security hole
somewhere we're keen to know about it and fix it immediately.




  Br's,
  Marius

  On Jun 10, 5:43 am, Oliver Lambert olambo...@gmail.com wrote:
   Looks like I might have a requirement for implementing OWASP secure
  coding
   practices, as described by

   One thing that I definitively don't do and I believe Lift doesn't do out
  of
   the box is Canonicalize input
   before validation/filtering. I was looking into using OWASP
   ESAPIhttp://www.owasp.org/index.php/ESAPIbut I'm put off by it's use
   of
   property files and system resources.  Do any of you Canonicalize input,
  if
   so, do you use a Library? Does Lift
   need this feature, or any of the others described in the above document?

   cheers
   Oliver

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

[Lift] Winstone servlet container?

2009-06-11 Thread Joe Wass

Re this: http://winstone.sourceforge.net/

Has anyone used Winstone? I have been using it for personal dev work
(since before I even knew about lift) and it seems to do the job. It
runs my Lift app without complaint. I'm currently doing a soak test to
see if it holds up to the (relatively low) demands on my production
environment. It's tiny (of the order of 500k), does the job I want it
to and no more and all round looks quite nice. I find myself wondering
if could use it for production.

Does anyone have experience with it?

Joe

--~--~-~--~~~---~--~~
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] help! create lift project with 1.1-snapshorts

2009-06-11 Thread jfyl...@gmail.com

I will creat a lift project, the next is my command:
mvn archetype:generate -U  -DremoteRepositories=http://scala-tools.org/
repo-snapshots -DarchetypeGroupId=net.liftweb -
DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-
SNAPSHOT -DgroupId=com.test -DartifactId=mytest

but i got this error:
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from
[net.liftweb:lift-archetype-basic:RELEASE - 
http://scala-tools.org/repo-releases]
found in catalog internal

why? i am new to lift

--~--~-~--~~~---~--~~
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: Winstone servlet container?

2009-06-11 Thread David Pollak
I like Winstone (although the story of how it got its name is weird.)  Lift
works well in Winstone, but Lift's comet support works best in Jetty (and
will soon work best in in servlet 3.0 containers).

On Jun 11, 2009 6:20 AM, Joe Wass j...@folktunefinder.com wrote:


Re this: http://winstone.sourceforge.net/

Has anyone used Winstone? I have been using it for personal dev work
(since before I even knew about lift) and it seems to do the job. It
runs my Lift app without complaint. I'm currently doing a soak test to
see if it holds up to the (relatively low) demands on my production
environment. It's tiny (of the order of 500k), does the job I want it
to and no more and all round looks quite nice. I find myself wondering
if could use it for production.

Does anyone have experience with it?

Joe


--~--~-~--~~~---~--~~
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: help! create lift project with 1.1-snapshorts

2009-06-11 Thread Atsuhiko Yamanaka

Hi,

On Thu, Jun 11, 2009 at 10:01 PM, jfyl...@gmail.comjfyl...@gmail.com wrote:

 I will creat a lift project, the next is my command:
 mvn archetype:generate -U  -DremoteRepositories=http://scala-tools.org/
 repo-snapshots -DarchetypeGroupId=net.liftweb -
 DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-
 SNAPSHOT -DgroupId=com.test -DartifactId=mytest

How about 'archetype:create' instead of 'archetype:generate'?

 mvn archetype:create -U \
-DremoteRepositories=http://scala-tools.org/repo-snapshots \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-basic \
-DarchetypeVersion=1.1-SNAPSHOT \
-DgroupId=com.test -DartifactId=mytest


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/

--~--~-~--~~~---~--~~
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: Winstone servlet container?

2009-06-11 Thread Timothy Perrett

wow, never read that story before - what a brilliant history for a
name!

What's the heads up on servlet 3.0? Feels like we've been talking
about that for ages and ages now; looking forward to getting it into
lift!

Cheers, Tim

On Jun 11, 2:54 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
 I like Winstone (although the story of how it got its name is weird.)  Lift
 works well in Winstone, but Lift's comet support works best in Jetty (and
 will soon work best in in servlet 3.0 containers).

--~--~-~--~~~---~--~~
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: help! create lift project with 1.1-snapshorts

2009-06-11 Thread Timothy Perrett

You might well find this wiki entry helpful:

http://wiki.liftweb.net/index.php/Maven_Mini_Guide

Cheers, Tim

On Jun 11, 3:14 pm, Atsuhiko Yamanaka atsuhiko.yaman...@gmail.com
wrote:
 Hi,

 On Thu, Jun 11, 2009 at 10:01 PM, jfyl...@gmail.comjfyl...@gmail.com wrote:

  I will creat a lift project, the next is my command:
  mvn archetype:generate -U  -DremoteRepositories=http://scala-tools.org/
  repo-snapshots -DarchetypeGroupId=net.liftweb -
  DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=1.1-
  SNAPSHOT -DgroupId=com.test -DartifactId=mytest

 How about 'archetype:create' instead of 'archetype:generate'?

  mvn archetype:create -U \
     -DremoteRepositories=http://scala-tools.org/repo-snapshots\
     -DarchetypeGroupId=net.liftweb \
     -DarchetypeArtifactId=lift-archetype-basic \
     -DarchetypeVersion=1.1-SNAPSHOT \
     -DgroupId=com.test -DartifactId=mytest

 Sincerely,
 --
 Atsuhiko Yamanaka
 JCraft,Inc.
 1-14-20 HONCHO AOBA-KU,
 SENDAI, MIYAGI 980-0014 Japan.
 Tel +81-22-723-2150
     +1-415-578-3454
 Skype callto://jcraft/
--~--~-~--~~~---~--~~
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: multiSelectObj

2009-06-11 Thread David Pollak
Jonathan,

Please see my patch at
http://github.com/dpp/liftweb/commit/d79513340a0701f391f0ad474298f2c5bd7dd2fa

Thanks for the suggestion and welcome to the Lift community.

David

On Wed, Jun 10, 2009 at 9:19 PM, Jonathan Meeks jonathanme...@gmail.comwrote:


 Here's what I came up with. It seems to work.

 I don't know how well it will appear inlined in a posting. Let if you
 want it delivered in another fashion.

 diff --git a/lift/src/main/scala/net/liftweb/http/SHtml.scala b/lift/
 src/main/scala/net/liftweb/http/SHtml.scala
 index 22c4832..58e6069 100644
 --- a/lift/src/main/scala/net/liftweb/http/SHtml.scala
 +++ b/lift/src/main/scala/net/liftweb/http/SHtml.scala
 @@ -430,13 +430,28 @@ object SHtml {
   private[http] def secureOptions[T](options: Seq[(T, String)],
 default: Box[T],
  onSubmit: T = Unit): (Seq
 [(String, String)], Box[String], AFuncHolder) = {
 val secure = options.map{case (obj, txt) = (obj, randomString
 (20), txt)}
 -val defaultNonce = default.flatMap(d = secure.find(_._1 == d).map
 (_._2))
 +val defaultNonce = default.map(secureDefaultNonce(secure, _))
 val nonces = secure.map{case (obj, nonce, txt) = (nonce, txt)}
 def process(nonce: String): Unit =
 secure.find(_._2 == nonce).map(x = onSubmit(x._1))
 (nonces, defaultNonce, SFuncHolder(process))
   }

 +  private[http] def secureOptions[T](options: Seq[(T, String)],
 default: Seq[T],
 + onSubmit: T = Any): (Seq
 [(String, String)], Seq[String], LFuncHolder) = {
 +val secure = options.map{case (obj, txt) = (obj, randomString
 (20), txt)}
 +val defaultNonce = default.map(secureDefaultNonce(secure, _))
 +val nonces = secure.map{case (obj, nonce, txt) = (nonce, txt)}
 +def process(nonces: List[String]): Any =
 +nonces.map(nonce = secure.find(_._2 == nonce).map(x = onSubmit
 (x._1)))
 +(nonces, defaultNonce, LFuncHolder(process))
 +  }
 +
 +  private def secureDefaultNonce[T](secureOptions: Seq[(T, String,
 String)], default: T): String = {
 +secureOptions.find(_._1 == default).get._2
 +  }
 +
 +
   /**
* Create a select box based on the list with a default value and
 the function to be executed on
* form submission
 @@ -518,6 +533,22 @@ object SHtml {
   func: List[String] = Any, attrs: (String, String)
 *): Elem =
   multiSelect_*(opts, deflt, LFuncHolder(func), attrs :_*)

 +  /**
 +   * Create a select box based on the list with a default value and
 the function
 +   * to be executed on form submission
 +   *
 +   * @param options  -- a list of value and text pairs (value, text
 to display)
 +   * @param default  -- the default value (or Empty if no default
 value)
 +   * @param onSubmit -- the function to execute on form submission
 +   */
 +  def multiSelectObj[T](options: Seq[(T, String)], default: Seq[T],
 +   onSubmit: T = Unit, attrs: (String, String)*):
 Elem = {
 +val (nonces, defaultNonce, secureOnSubmit) =
 +secureOptions(options, default, onSubmit)
 +
 +multiSelect_*(nonces, defaultNonce, secureOnSubmit, attrs:_*)
 +  }
 +
   def multiSelect_*(opts: Seq[(String, String)],
 deflt: Seq[String],
 func: AFuncHolder, attrs: (String, String)*):
 Elem =


 



-- 
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] Wolfram Alpha integration for Lift

2009-06-11 Thread Timothy Perrett

Hey chaps,

Im going to start work on integration with the wolfram alpha engine
that i've of late become most obsessed with as its the coolest thing
since sliced bread... http://www.wolframalpha.com/

New branch here: http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha

Anyone else in the commit team interested in working on this with me?

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: Wolfram Alpha integration for Lift

2009-06-11 Thread marius d.

Wolfram Alpha is WAY COOL !

I wish I could help but my spare time is problematic. Maybe I could
help sporadically? Would you be ok with that?

Br's,
Marius


On Jun 11, 7:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Hey chaps,

 Im going to start work on integration with the wolfram alpha engine
 that i've of late become most obsessed with as its the coolest thing
 since sliced bread...http://www.wolframalpha.com/

 New branch here:http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha

 Anyone else in the commit team interested in working on this with me?

 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: Wolfram Alpha integration for Lift

2009-06-11 Thread TylerWeir

Sounds cool, I agree that there is much awesome in Alpha.

How do you see this integration planning out?

On Jun 11, 12:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Hey chaps,

 Im going to start work on integration with the wolfram alpha engine
 that i've of late become most obsessed with as its the coolest thing
 since sliced bread...http://www.wolframalpha.com/

 New branch here:http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha

 Anyone else in the commit team interested in working on this with me?

 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: Wolfram Alpha integration for Lift

2009-06-11 Thread marius d.

Oh and people that are not Lift committers could potentially
join?  I'm sure there are lots of talents in Lift community.

Br's,
Marius

On Jun 11, 7:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 Hey chaps,

 Im going to start work on integration with the wolfram alpha engine
 that i've of late become most obsessed with as its the coolest thing
 since sliced bread...http://www.wolframalpha.com/

 New branch here:http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha

 Anyone else in the commit team interested in working on this with me?

 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: Wolfram Alpha integration for Lift

2009-06-11 Thread Timothy Perrett

Hey Ty,

Essentially the wolfram API is a REST / XMLRPC hybrid, so my plan is
to model a scala abstraction around Apache HTTP (similar to the paypal
integration) - speaking of which, i might actually abstract some of
the common factories out of lift-paypal into lift-util if applicable.

The interesting challenge will be that with wolfram, it can return a
whole bunch of things, they could be graphs, text, sound - so i'll
need some abstract way of making that presentable - perhaps some
decoupled thing with a core communication group, then some lift
specific abstractions for hooking into bind() or something...

I've not figured it out yet in my head, so any thoughts are most
welcome.

Cheers, Tim

On Jun 11, 6:16 pm, TylerWeir tyler.w...@gmail.com wrote:
 Sounds cool, I agree that there is much awesome in Alpha.

 How do you see this integration planning out?

 On Jun 11, 12:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:



  Hey chaps,

  Im going to start work on integration with the wolfram alpha engine
  that i've of late become most obsessed with as its the coolest thing
  since sliced bread...http://www.wolframalpha.com/

  New branch here:http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha

  Anyone else in the commit team interested in working on this with me?

  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] JSON Rest API

2009-06-11 Thread Makeable

I have followed through the book and have been successful in creating
an XML API.
How would I go about utilizing a JSONResponse instead?

Kind Regards,

Matt

--~--~-~--~~~---~--~~
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: JSON Rest API

2009-06-11 Thread Timothy Perrett

Matt,

Can you provide your existing code then we can suggest the best route
forward for you - generally speaking it should be a minimal change

Cheers, Tim

On Jun 11, 6:25 pm, Makeable m...@makeable.co.uk wrote:
 I have followed through the book and have been successful in creating
 an XML API.
 How would I go about utilizing a JSONResponse instead?

 Kind Regards,

 Matt
--~--~-~--~~~---~--~~
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: Wolfram Alpha integration for Lift

2009-06-11 Thread Meredith Gregory
Tim,

Could you enlighten me on the coolness of Wolfram Alpha? My initial forays
and comparison to Google were depressingly unfavorable, but excellent if
you're looking for some humor. See the summary below.

Best wishes,

--greg

My standard test of a search engine: polyadic pi-calculus
Google result: first hit is the Edinburgh tutorial prepared by Milner, still
the best reference
Wolfram Alpha: *Wolfram|Alpha isn't sure what to do with your input.
Related inputs to try: pi.*

This test, by the way, should be right in W|A's sweet spot.

My next test: phred weasley
Google result: Did you mean: *fred*
weasleyhttp://www.google.ca/search?hl=enclient=firefox-arls=org.mozilla:en-US:officialhs=ePUei=T0gxSvHvF8nRjAfzn5S2Bwsa=Xoi=spellresnum=0ct=resultcd=1q=fred+weasleyspell=1and
then several links to Harry Potter
W|A result: *Wolfram|Alpha isn't sure what to do with your input. Related
inputs to try: Wesley.*

My next test: fred weasley
Google result: the top Harry Potter sites
W|A result:

Interpreting weasley as wesley
--
--
Assuming Fred (female) | Use Fred
(male)javascript:applyAssumption(1,'*DPClash.GivenNameE.fred-_*FredUnitedStatesMaleName-')instead
--
--
--
Input interpretation:[image: Fred (female given name) | Wesley (male given
name)]
--
--
Latest information for US births:[image: | Fred | Wesley\nrank | 985th
(1929) | 194th (2008)\nfraction | 1 in 21277 people (0.0047%) (1929) | 1 in
1058 people (0.094%) (2008)\nnumber | 54 people per year (1929) | 2033
people per year (2008)]
--
--
History for US births:Log
scalejavascript:asynchronousPod('pod.jsp?id=MSP41119646i0hb5a62fg04fe211d660aid2aas=61',%20'0300','fred+weasley','',0)
Morejavascript:asynchronousPod('pod.jsp?id=MSP41219646i0hb5a62fg058i0506e54df6b4es=61',%20'0300','fred+weasley','',0)
Fraction:[image: Fraction]

On Thu, Jun 11, 2009 at 10:35 AM, Timothy Perrett
timo...@getintheloop.euwrote:


 Hey Ty,

 Essentially the wolfram API is a REST / XMLRPC hybrid, so my plan is
 to model a scala abstraction around Apache HTTP (similar to the paypal
 integration) - speaking of which, i might actually abstract some of
 the common factories out of lift-paypal into lift-util if applicable.

 The interesting challenge will be that with wolfram, it can return a
 whole bunch of things, they could be graphs, text, sound - so i'll
 need some abstract way of making that presentable - perhaps some
 decoupled thing with a core communication group, then some lift
 specific abstractions for hooking into bind() or something...

 I've not figured it out yet in my head, so any thoughts are most
 welcome.

 Cheers, Tim

 On Jun 11, 6:16 pm, TylerWeir tyler.w...@gmail.com wrote:
  Sounds cool, I agree that there is much awesome in Alpha.
 
  How do you see this integration planning out?
 
  On Jun 11, 12:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:
 
 
 
   Hey chaps,
 
   Im going to start work on integration with the wolfram alpha engine
   that i've of late become most obsessed with as its the coolest thing
   since sliced bread...http://www.wolframalpha.com/
 
   New branch here:
 http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha
 
   Anyone else in the commit team interested in working on this with me?
 
   Cheers, Tim
 



-- 
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: lift stress tests and comet

2009-06-11 Thread David Pollak
On Thu, Jun 11, 2009 at 11:02 AM, Meredith Gregory lgreg.mered...@gmail.com
 wrote:

 Lifted,

 i know that DPP has done some extensive lift stress testing. i'm wondering
 how comet has been exercised in that testing. We're seeing comet fall over
 in a load situation that would not be acceptable for production. We'd like
 to suss out how/why this is happening and whether we can work around it.
 Does anyone have any hard test data for comet?


What app server are you using?

I've did a comet test last year with Jetty serving 700 pages/sec to 2,250
sessions and did not notice significant issues.  I haven't done stress
testing since then.




 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

 



-- 
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: Wolfram Alpha integration for Lift

2009-06-11 Thread Timothy Perrett

Hey Greg,

Im not sure that drawing comparisons to google is right? IMO, they
dont do the same job...? I see why one would see similarities, but
isnt google's purpose to find the sources of information, where as
wolfram's aim is to provide an objective set of answers based on
human input;

http://www.wolframalpha.com/about.html

Cheers, Tim

On Jun 11, 7:14 pm, Meredith Gregory lgreg.mered...@gmail.com wrote:
 Tim,

 Could you enlighten me on the coolness of Wolfram Alpha? My initial forays
 and comparison to Google were depressingly unfavorable, but excellent if
 you're looking for some humor. See the summary below.

 Best wishes,

 --greg

 My standard test of a search engine: polyadic pi-calculus
 Google result: first hit is the Edinburgh tutorial prepared by Milner, still
 the best reference
 Wolfram Alpha: *Wolfram|Alpha isn't sure what to do with your input.
 Related inputs to try: pi.*

 This test, by the way, should be right in W|A's sweet spot.

 My next test: phred weasley
 Google result: Did you mean: *fred*
 weasleyhttp://www.google.ca/search?hl=enclient=firefox-arls=org.mozilla:en...and
 then several links to Harry Potter
 W|A result: *Wolfram|Alpha isn't sure what to do with your input. Related
 inputs to try: Wesley.*

 My next test: fred weasley
 Google result: the top Harry Potter sites
 W|A result:

 Interpreting weasley as wesley
 --
 --
 Assuming Fred (female) | Use Fred
 (male)javascript:applyAssumption(1,'*DPClash.GivenNameE.fred-_*FredUnitedS 
 tatesMaleName-')instead
 --
 --
 --
 Input interpretation:[image: Fred (female given name) | Wesley (male given
 name)]
 --
 --
 Latest information for US births:[image: | Fred | Wesley\nrank | 985th
 (1929) | 194th (2008)\nfraction | 1 in 21277 people (0.0047%) (1929) | 1 in
 1058 people (0.094%) (2008)\nnumber | 54 people per year (1929) | 2033
 people per year (2008)]
 --
 --
 History for US births:Log
 scalejavascript:asynchronousPod('pod.jsp?id=MSP41119646i0hb5a62fg04fe2 
 11d660aid2aas=61',%20'0300','fred+weasley','',0)
 Morejavascript:asynchronousPod('pod.jsp?id=MSP41219646i0hb5a62fg058i05 
 06e54df6b4es=61',%20'0300','fred+weasley','',0)
 Fraction:[image: Fraction]

 On Thu, Jun 11, 2009 at 10:35 AM, Timothy Perrett
 timo...@getintheloop.euwrote:







  Hey Ty,

  Essentially the wolfram API is a REST / XMLRPC hybrid, so my plan is
  to model a scala abstraction around Apache HTTP (similar to the paypal
  integration) - speaking of which, i might actually abstract some of
  the common factories out of lift-paypal into lift-util if applicable.

  The interesting challenge will be that with wolfram, it can return a
  whole bunch of things, they could be graphs, text, sound - so i'll
  need some abstract way of making that presentable - perhaps some
  decoupled thing with a core communication group, then some lift
  specific abstractions for hooking into bind() or something...

  I've not figured it out yet in my head, so any thoughts are most
  welcome.

  Cheers, Tim

  On Jun 11, 6:16 pm, TylerWeir tyler.w...@gmail.com wrote:
   Sounds cool, I agree that there is much awesome in Alpha.

   How do you see this integration planning out?

   On Jun 11, 12:02 pm, Timothy Perrett timo...@getintheloop.eu wrote:

Hey chaps,

Im going to start work on integration with the wolfram alpha engine
that i've of late become most obsessed with as its the coolest thing
since sliced bread...http://www.wolframalpha.com/

New branch here:
 http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha

Anyone else in the commit team interested in working on this with me?

Cheers, Tim

 --
 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: JSON Rest API

2009-06-11 Thread marius d.

Just use a JsonResponse instead of XmlRresponse.
See definition:

object JsonResponse extends HeaderStuff {
  def apply(json: JsExp): LiftResponse = JsonResponse(json, headers,
cookies, 200)
}

and call it

JsonResponse(JsObj(..))

Br's,
Marius

On Jun 11, 8:25 pm, Makeable m...@makeable.co.uk wrote:
 I have followed through the book and have been successful in creating
 an XML API.
 How would I go about utilizing a JSONResponse instead?

 Kind Regards,

 Matt
--~--~-~--~~~---~--~~
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: Wolfram Alpha integration for Lift

2009-06-11 Thread Meredith Gregory
Tim,

Thanks for the response. i'll have to noodle on that one. Off the top of my
head, i'm usually in this loop

   - Initially, usually badly formulated question
   - Get information sources
   - Reformulate question
   - Loop

So, i don't really see much difference between the two, except by use. i
will think about it, though.

Best wishes,

--greg

On Thu, Jun 11, 2009 at 11:31 AM, Timothy Perrett
timo...@getintheloop.euwrote:


 Hey Greg,

 Im not sure that drawing comparisons to google is right? IMO, they
 dont do the same job...? I see why one would see similarities, but
 isnt google's purpose to find the sources of information, where as
 wolfram's aim is to provide an objective set of answers based on
 human input;

 http://www.wolframalpha.com/about.html

 Cheers, Tim

 On Jun 11, 7:14 pm, Meredith Gregory lgreg.mered...@gmail.com wrote:
  Tim,
 
  Could you enlighten me on the coolness of Wolfram Alpha? My initial
 forays
  and comparison to Google were depressingly unfavorable, but excellent if
  you're looking for some humor. See the summary below.
 
  Best wishes,
 
  --greg
 
  My standard test of a search engine: polyadic pi-calculus
  Google result: first hit is the Edinburgh tutorial prepared by Milner,
 still
  the best reference
  Wolfram Alpha: *Wolfram|Alpha isn't sure what to do with your input.
  Related inputs to try: pi.*
 
  This test, by the way, should be right in W|A's sweet spot.
 
  My next test: phred weasley
  Google result: Did you mean: *fred*
  weasley
 http://www.google.ca/search?hl=enclient=firefox-arls=org.mozilla:en..
 .and
  then several links to Harry Potter
  W|A result: *Wolfram|Alpha isn't sure what to do with your input.
 Related
  inputs to try: Wesley.*
 
  My next test: fred weasley
  Google result: the top Harry Potter sites
  W|A result:
 
  Interpreting weasley as wesley
  --
  --
  Assuming Fred (female) | Use Fred
 
 (male)javascript:applyAssumption(1,'*DPClash.GivenNameE.fred-_*FredUnitedS
 tatesMaleName-')instead
  --
  --
  --
  Input interpretation:[image: Fred (female given name) | Wesley (male
 given
  name)]
  --
  --
  Latest information for US births:[image: | Fred | Wesley\nrank | 985th
  (1929) | 194th (2008)\nfraction | 1 in 21277 people (0.0047%) (1929) | 1
 in
  1058 people (0.094%) (2008)\nnumber | 54 people per year (1929) | 2033
  people per year (2008)]
  --
  --
  History for US births:Log
 
 scalejavascript:asynchronousPod('pod.jsp?id=MSP41119646i0hb5a62fg04fe2
 11d660aid2aas=61',%20'0300','fred+weasley','',0)
 
 Morejavascript:asynchronousPod('pod.jsp?id=MSP41219646i0hb5a62fg058i05
 06e54df6b4es=61',%20'0300','fred+weasley','',0)
  Fraction:[image: Fraction]
 
  On Thu, Jun 11, 2009 at 10:35 AM, Timothy Perrett
  timo...@getintheloop.euwrote:
 
 
 
 
 
 
 
   Hey Ty,
 
   Essentially the wolfram API is a REST / XMLRPC hybrid, so my plan is
   to model a scala abstraction around Apache HTTP (similar to the paypal
   integration) - speaking of which, i might actually abstract some of
   the common factories out of lift-paypal into lift-util if applicable.
 
   The interesting challenge will be that with wolfram, it can return a
   whole bunch of things, they could be graphs, text, sound - so i'll
   need some abstract way of making that presentable - perhaps some
   decoupled thing with a core communication group, then some lift
   specific abstractions for hooking into bind() or something...
 
   I've not figured it out yet in my head, so any thoughts are most
   welcome.
 
   Cheers, Tim
 
   On Jun 11, 6:16 pm, TylerWeir tyler.w...@gmail.com wrote:
Sounds cool, I agree that there is much awesome in Alpha.
 
How do you see this integration planning out?
 
On Jun 11, 12:02 pm, Timothy Perrett timo...@getintheloop.eu
 wrote:
 
 Hey chaps,
 
 Im going to start work on integration with the wolfram alpha engine
 that i've of late become most obsessed with as its the coolest
 thing
 since sliced bread...http://www.wolframalpha.com/
 
 New branch here:
  http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha
 
 Anyone else in the commit team interested in working on this with
 me?
 
 Cheers, Tim
 
  --
  L.G. Meredith
  Managing Partner
  Biosimilarity LLC
  1219 NW 83rd St
  Seattle, WA 98117
 
  +1 206.650.3740
 
  http://biosimilarity.blogspot.com
 



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

[Lift] Re: lift stress tests and comet

2009-06-11 Thread Meredith Gregory
David,

Many thanks for the quick response. Is the test set up available anywhere?
i'd like to see what the major differences are. We're using comet with
Jetty.

Best wishes,

--greg

On Thu, Jun 11, 2009 at 11:19 AM, David Pollak 
feeder.of.the.be...@gmail.com wrote:



 On Thu, Jun 11, 2009 at 11:02 AM, Meredith Gregory 
 lgreg.mered...@gmail.com wrote:

 Lifted,

 i know that DPP has done some extensive lift stress testing. i'm wondering
 how comet has been exercised in that testing. We're seeing comet fall over
 in a load situation that would not be acceptable for production. We'd like
 to suss out how/why this is happening and whether we can work around it.
 Does anyone have any hard test data for comet?


 What app server are you using?

 I've did a comet test last year with Jetty serving 700 pages/sec to 2,250
 sessions and did not notice significant issues.  I haven't done stress
 testing since then.




 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





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

 



-- 
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] maven question

2009-06-11 Thread Meredith Gregory
Lifted,

Spse you've got a maven plugin configured with multiple executions in the
same life-cycle phase, distinguished by id. How do you invoke one of them by
id? For example, suppose i've got the maven-exec-plugin configured with two
executions in the package phase, with ids, 'one' and 'two', respectivelys.
What's the maven command line invocation that allows me to execute one
without the other?

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

--~--~-~--~~~---~--~~
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: YA menu question: separate menus

2009-06-11 Thread Derek Chen-Becker
I'm building some code right now that I think should handle all of your
cases. Since Menu.builder is already concerned with building a menu tree, I
decided that it would be better to allow you to specify a specific item or
group to Menu.builder instead of conflating tree building with the current
Menu.item and Menu.group snippets. Given a SiteMap like:

val menus =
  Menu(Loc(Home, List(index), Home Page)) ::
  Menu(Loc(Viewtest, List(ViewTest, test), View test)) ::
  Menu(Loc(InsecureViewtest, List(Insecure, test), Insecure View
test)) ::
  Menu(Loc(SelectTest, List(select), asm select test)) ::
  Menu(Loc(Help, List(help, index), Help, LocGroup(help)),
   Menu(Loc(About, List(help, about), About, LocGroup(help))),
   Menu(Loc(Version, List(help, version), Version,
LocGroup(help :: Nil

You can render just the Help tree with:

lift:Menu.builder item=Help expandAll=true /

Which will render something like:

ullia href=/testthis/help/
view-source:http://localhost:9090/testthis/help/Help/aullia
href=/testthis/help/about
view-source:http://localhost:9090/testthis/help/aboutAbout/a/lilia
href=/testthis/help/version
view-source:http://localhost:9090/testthis/help/versionVersion/a/li/ul/li/ul

Similarly, you can use a group attribute:

lift:Menu.builder group=help expandAll=true /

But notice that this won't deduplicate entries, so we would render something
like:

ullia href=/testthis/help/
view-source:http://localhost:9090/testthis/help/Help/aullia
href=/testthis/help/about
view-source:http://localhost:9090/testthis/help/aboutAbout/a/lilia
href=/testthis/help/version
view-source:http://localhost:9090/testthis/help/versionVersion/a/li/ul/lilia
href=/testthis/help/about
view-source:http://localhost:9090/testthis/help/aboutAbout/a/lilia
href=/testthis/help/version
view-source:http://localhost:9090/testthis/help/versionVersion/a/li/ul

This is currently checked in on the wip-dcb-menu-addons branch:

http://github.com/dpp/liftweb/tree/wip-dcb-menu-addons

Thoughts?

Derek



On Mon, Jun 8, 2009 at 5:49 PM, glenn gl...@exmbly.com wrote:


 Yes,

 I would like the expandAll behavior to work for groups and for non-
 root siteMaps.
 Here's a specific use-case. The MenuWidget in the lift-widgets package
 just passes everything
 through  as

 def render : NodeSeq = {
head ++ lift:Menu.builder expandAll=true top:class=
 {style.toString} /
  }

 So, even though the MenuWidget object has factory methods
 for using a  non-root siteMap, only the root siteMap is ever used.
 That's
 because Menu.builder calls a private function renderWhat, like so:

 val toRender = renderWhat(expandAll)

 which iterates through the root siteMap. There is no way, really, to
 subclass that
 to use a different siteMap.

 The problem with the Menu.group snippet is that it just works off the
 named group in
 the root siteMap, creating a parent node, but not the kids.

 It would be nice to use MenuWidget, or some subclass, to create a
 superfish-style
 nav-bar or horizontal menu for groups or non-root siteMaps just as
 easily as for the
 entire root siteMap.

 Glenn...

 On Jun 8, 3:51 pm, Joe Wass j...@folktunefinder.com wrote:
  What I really wanted was a menu group. Doing things in groups has
  solved my particular question.
 
  Glenn, can you not just use groups? Do you need the hierarchal
  behaviour of nested menus?
 
  Joe
 
  On Jun 8, 10:24 pm, glenn gl...@exmbly.com wrote:
 
   I have a similar request: namely, being able to apply expandAll=true
   attribute
   not just to lift:Menu.builder.../
 
   but to lift:Menu.group name=mygroup/ and lift:Menu.item
   name=myMenu/, or, as Joe requests below,
 
   to any siteMap that is not the root siteMap.
 
   Glenn...
 
   On Jun 8, 2:06 pm, Joe Wass j...@folktunefinder.com wrote:
 
Sorry for yet another menu question. I have scoured this list first,
 I
promise!
 
I'm trying to do something I think is quite simple:
 
Two [or any nuumber of] menus (with children). Two different
templates. One menu and children shows up on one template, one shows
up on another. They are each nested menus (i.e. I have two Menus,
 each
with child menu items). You can directly go to any page you want, but
only certain Menu items show up on certain templates.
 
I had thought I could put a guard (the last argument of the Loc) to
only show a menu when the request string contains part of the path,
but of course, that prevents you from navigating there in the first
place so that's out.
 
I've seen this post :
 http://groups.google.com/group/liftweb/browse_thread/thread/dbdf6a17b...
 
but it doesn't quite do what I want: I want to be able to show a
 whole
Menu at a time, not have to list each individual item in the
 template.
I'd like to do something like this:
 
lift:Menu.builder menuName=menu_name/
 
Any ideas? I'll accept a hack, I'm short on time!
 
Bonus marks: how do you set a menu to be expanded by 

[Lift] Re: lift stress tests and comet

2009-06-11 Thread David Pollak
Greg,

It was buy a feature proprietary code... so it's not available.

Lemme see if I can set something up.  I did notice that with a recent
version of jetty, I was seeing a 50% failiure rate when saturating the
server with std http requested... switched to tomcat and the issue went
away.

I spent time with greg wilkins of jetty fame at javaone.  I feel very
confident that greg will address any issues that we run across.

Thanks,

David

On Jun 11, 2009 11:44 AM, Meredith Gregory lgreg.mered...@gmail.com
wrote:

David,

Many thanks for the quick response. Is the test set up available anywhere?
i'd like to see what the major differences are. We're using comet with
Jetty.

Best wishes,

--greg

On Thu, Jun 11, 2009 at 11:19 AM, David Pollak 
feeder.of.the.be...@gmail.com wrote:

 On Thu, Jun 11, 2009 at 11:02 AM, Meredith Gregory 
 lgreg.mered...@gmail.com wrote:   L...

  Lift, the simply functional web framework http://liftweb.net  Beginning
 Scala http://www.apress.c...



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

--~--~-~--~~~---~--~~
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 stress tests and comet

2009-06-11 Thread Meredith Gregory
David,

Btw, i don't see a use of the Bayeux lib in lift, but want to double check
that it's not being used.

Best wishes,

--greg

On Thu, Jun 11, 2009 at 11:44 AM, Meredith Gregory lgreg.mered...@gmail.com
 wrote:

 David,

 Many thanks for the quick response. Is the test set up available anywhere?
 i'd like to see what the major differences are. We're using comet with
 Jetty.

 Best wishes,

 --greg


 On Thu, Jun 11, 2009 at 11:19 AM, David Pollak 
 feeder.of.the.be...@gmail.com wrote:



 On Thu, Jun 11, 2009 at 11:02 AM, Meredith Gregory 
 lgreg.mered...@gmail.com wrote:

 Lifted,

 i know that DPP has done some extensive lift stress testing. i'm
 wondering how comet has been exercised in that testing. We're seeing comet
 fall over in a load situation that would not be acceptable for production.
 We'd like to suss out how/why this is happening and whether we can work
 around it. Does anyone have any hard test data for comet?


 What app server are you using?

 I've did a comet test last year with Jetty serving 700 pages/sec to 2,250
 sessions and did not notice significant issues.  I haven't done stress
 testing since then.




 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





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

 



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

 +1 206.650.3740

 http://biosimilarity.blogspot.com




-- 
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: lift stress tests and comet

2009-06-11 Thread David Pollak
It's not.  We rolled our own comet pre bayeux... and our stuff is still
better for multiple open browser tabs.

On Jun 11, 2009 11:55 AM, Meredith Gregory lgreg.mered...@gmail.com
wrote:

David,

Btw, i don't see a use of the Bayeux lib in lift, but want to double check
that it's not being used.

Best wishes,

--greg

On Thu, Jun 11, 2009 at 11:44 AM, Meredith Gregory lgreg.mered...@gmail.com
wrote:   David,  ...

--~--~-~--~~~---~--~~
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: Wolfram Alpha integration for Lift

2009-06-11 Thread Jeremy Day
I haven't played much with WolframAlpha, but I get the impression that it
does better with quantitative results.  For instance, if you were inclined
to compare the number of people in Chicago to the number of people in Alaska
you might create a query like this:

http://www33.wolframalpha.com/input/?i=population+of+chicago+%2F+population+of+alaska

Jeremy

On Thu, Jun 11, 2009 at 1:31 PM, Timothy Perrett timo...@getintheloop.euwrote:


 Hey Greg,

 Im not sure that drawing comparisons to google is right? IMO, they
 dont do the same job...? I see why one would see similarities, but
 isnt google's purpose to find the sources of information, where as
 wolfram's aim is to provide an objective set of answers based on
 human input;

 http://www.wolframalpha.com/about.html

 Cheers, Tim

 On Jun 11, 7:14 pm, Meredith Gregory lgreg.mered...@gmail.com wrote:
  Tim,
 
  Could you enlighten me on the coolness of Wolfram Alpha? My initial
 forays
  and comparison to Google were depressingly unfavorable, but excellent if
  you're looking for some humor. See the summary below.
 
  Best wishes,
 
  --greg
 
  My standard test of a search engine: polyadic pi-calculus
  Google result: first hit is the Edinburgh tutorial prepared by Milner,
 still
  the best reference
  Wolfram Alpha: *Wolfram|Alpha isn't sure what to do with your input.
  Related inputs to try: pi.*
 
  This test, by the way, should be right in W|A's sweet spot.
 
  My next test: phred weasley
  Google result: Did you mean: *fred*
  weasley
 http://www.google.ca/search?hl=enclient=firefox-arls=org.mozilla:en..
 .and
  then several links to Harry Potter
  W|A result: *Wolfram|Alpha isn't sure what to do with your input.
 Related
  inputs to try: Wesley.*
 
  My next test: fred weasley
  Google result: the top Harry Potter sites
  W|A result:
 
  Interpreting weasley as wesley
  --
  --
  Assuming Fred (female) | Use Fred
 
 (male)javascript:applyAssumption(1,'*DPClash.GivenNameE.fred-_*FredUnitedS
 tatesMaleName-')instead
  --
  --
  --
  Input interpretation:[image: Fred (female given name) | Wesley (male
 given
  name)]
  --
  --
  Latest information for US births:[image: | Fred | Wesley\nrank | 985th
  (1929) | 194th (2008)\nfraction | 1 in 21277 people (0.0047%) (1929) | 1
 in
  1058 people (0.094%) (2008)\nnumber | 54 people per year (1929) | 2033
  people per year (2008)]
  --
  --
  History for US births:Log
 
 scalejavascript:asynchronousPod('pod.jsp?id=MSP41119646i0hb5a62fg04fe2
 11d660aid2aas=61',%20'0300','fred+weasley','',0)
 
 Morejavascript:asynchronousPod('pod.jsp?id=MSP41219646i0hb5a62fg058i05
 06e54df6b4es=61',%20'0300','fred+weasley','',0)
  Fraction:[image: Fraction]
 
  On Thu, Jun 11, 2009 at 10:35 AM, Timothy Perrett
  timo...@getintheloop.euwrote:
 
 
 
 
 
 
 
   Hey Ty,
 
   Essentially the wolfram API is a REST / XMLRPC hybrid, so my plan is
   to model a scala abstraction around Apache HTTP (similar to the paypal
   integration) - speaking of which, i might actually abstract some of
   the common factories out of lift-paypal into lift-util if applicable.
 
   The interesting challenge will be that with wolfram, it can return a
   whole bunch of things, they could be graphs, text, sound - so i'll
   need some abstract way of making that presentable - perhaps some
   decoupled thing with a core communication group, then some lift
   specific abstractions for hooking into bind() or something...
 
   I've not figured it out yet in my head, so any thoughts are most
   welcome.
 
   Cheers, Tim
 
   On Jun 11, 6:16 pm, TylerWeir tyler.w...@gmail.com wrote:
Sounds cool, I agree that there is much awesome in Alpha.
 
How do you see this integration planning out?
 
On Jun 11, 12:02 pm, Timothy Perrett timo...@getintheloop.eu
 wrote:
 
 Hey chaps,
 
 Im going to start work on integration with the wolfram alpha engine
 that i've of late become most obsessed with as its the coolest
 thing
 since sliced bread...http://www.wolframalpha.com/
 
 New branch here:
  http://github.com/dpp/liftweb/tree/wip-tim-wolframalpha
 
 Anyone else in the commit team interested in working on this with
 me?
 
 Cheers, Tim
 
  --
  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: Wolfram Alpha integration for Lift

2009-06-11 Thread Kris Nuttycombe

I sort of see Wolfram Alpha as simply an incredibly sophisticated
calculator instead of an information discovery tool. What were you
trying to compute about polyadic pi-calculus?

Alpha seems to be trying to put all sorts of different kinds of data
into a common, hugely high-dimensional space so that you can perform
computations on it, where your computations are expressed in a mix of
mathematical and natural language. There are certainly a lot of things
that it's not useful for yet, but it's a tremendously interesting
problem.

Kris

On Thu, Jun 11, 2009 at 12:42 PM, Meredith
Gregorylgreg.mered...@gmail.com wrote:
 Tim,

 Thanks for the response. i'll have to noodle on that one. Off the top of my
 head, i'm usually in this loop

 Initially, usually badly formulated question
 Get information sources
 Reformulate question
 Loop

 So, i don't really see much difference between the two, except by use. i
 will think about it, though.

 Best wishes,

 --greg


--~--~-~--~~~---~--~~
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: Wolfram Alpha integration for Lift

2009-06-11 Thread Meredith Gregory
All,

Thanks for all this input. It certainly helps me see the value-prop better.

Best wishes,

--greg

On Thu, Jun 11, 2009 at 2:07 PM, Kris Nuttycombe
kris.nuttyco...@gmail.comwrote:


 I sort of see Wolfram Alpha as simply an incredibly sophisticated
 calculator instead of an information discovery tool. What were you
 trying to compute about polyadic pi-calculus?

 Alpha seems to be trying to put all sorts of different kinds of data
 into a common, hugely high-dimensional space so that you can perform
 computations on it, where your computations are expressed in a mix of
 mathematical and natural language. There are certainly a lot of things
 that it's not useful for yet, but it's a tremendously interesting
 problem.

 Kris

 On Thu, Jun 11, 2009 at 12:42 PM, Meredith
 Gregorylgreg.mered...@gmail.com wrote:
  Tim,
 
  Thanks for the response. i'll have to noodle on that one. Off the top of
 my
  head, i'm usually in this loop
 
  Initially, usually badly formulated question
  Get information sources
  Reformulate question
  Loop
 
  So, i don't really see much difference between the two, except by use. i
  will think about it, though.
 
  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

--~--~-~--~~~---~--~~
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: maven question

2009-06-11 Thread Kris Nuttycombe

There may well be another way to do this that I'm unaware of, but I
would put the configuration for each of these executions in a separate
profile, with the activation based upon some property.

Kris

On Thu, Jun 11, 2009 at 12:49 PM, Meredith
Gregorylgreg.mered...@gmail.com wrote:
 Lifted,

 Spse you've got a maven plugin configured with multiple executions in the
 same life-cycle phase, distinguished by id. How do you invoke one of them by
 id? For example, suppose i've got the maven-exec-plugin configured with two
 executions in the package phase, with ids, 'one' and 'two', respectivelys.
 What's the maven command line invocation that allows me to execute one
 without the other?

 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

 


--~--~-~--~~~---~--~~
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] file upload

2009-06-11 Thread DavidV

I would like to upload a .csv file onto the web server so I can then
parse it in my webapp, and put certain fields into my database.  I
would like a Browse... button, much like the one shown on this Lift
example page:
http://demo.liftweb.net/file_upload
Can anyone point me in the right direction as to how to get started
doing this, or tell me where I can find the example code for the link
I provided?  I can't seem to locate it in liftweb in github
thanks,
David

--~--~-~--~~~---~--~~
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: file upload

2009-06-11 Thread David Pollak
All the code on demo.liftweb.net is in sites/example in the Lift source
distribution.

Please look in src/main/webapp/file_upload.html

On Thu, Jun 11, 2009 at 1:24 PM, DavidV david.v.villa...@gmail.com wrote:


 I would like to upload a .csv file onto the web server so I can then
 parse it in my webapp, and put certain fields into my database.  I
 would like a Browse... button, much like the one shown on this Lift
 example page:
 http://demo.liftweb.net/file_upload
 Can anyone point me in the right direction as to how to get started
 doing this, or tell me where I can find the example code for the link
 I provided?  I can't seem to locate it in liftweb in github
 thanks,
 David

 



-- 
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: file upload

2009-06-11 Thread Timothy Perrett

FYI - its not a streaming upload at the moment, so its great for
smallish files, but you wouldnt want to do much serious uploading with
it right now. We've had several discussions about making it streaming,
and its certainly on the todo list.

Cheers, Tim

On Jun 11, 9:24 pm, DavidV david.v.villa...@gmail.com wrote:
 I would like to upload a .csv file onto the web server so I can then
 parse it in my webapp, and put certain fields into my database.  I
 would like a Browse... button, much like the one shown on this Lift
 example page:http://demo.liftweb.net/file_upload
 Can anyone point me in the right direction as to how to get started
 doing this, or tell me where I can find the example code for the link
 I provided?  I can't seem to locate it in liftweb in github
 thanks,
 David
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---