Re: [Lift] Is there any way to set default source encoding in Lift2.0-scala280 ?

2010-02-24 Thread Atsuhiko Yamanaka
Hi,

On Wed, Feb 3, 2010 at 11:00 AM, pomu0325 pomu0...@gmail.com wrote:
 Hi, I'm quite a newbie to Lift. I'm now trying to port my first Lift
 application from Lift1.0.2 to latest Lift2.0-scala280, and faced a
 problem relating to source encoding.
...
  My problem here, is I'm using utf-8 for write *.html templates, but
 my Codec.default is MS932(Japanese characterset in Windows), so
 failing to decode my template files. I looked through Scala lib
 source, and found out Codec.default it is actually an alias to
 java.lang.Charset.getDefault(), so I just set -Djava.encoding=utf-8 to
 MVN_OPTS and solved the problem, but considering deployment, I don't
 think it's a smart way.

FYI, the reported problem was fixed at last night, thanks to hseeberger,
as follows,
  http://www.assembla.com/spaces/liftweb/tickets/364
  http://github.com/dpp/liftweb/commit/4bfe8579c5283642c9c059b55f98236155f2d423


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/
Twitter: @ymnk

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.



Re: [Lift] Welcome John De Goes as a Lift committer

2010-02-22 Thread Atsuhiko Yamanaka
Welcome John De Goes!

On Tue, Feb 23, 2010 at 5:55 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 Folks,

 Please join me in welcoming John De Goes as a Lift committer.  John burst
 onto the Lift scene a week or so ago with some excellent enhancements to the
 Lift-json stuff and the rest is history.

 Welcome John... looking forward to excellent contributions from you and your
 latest partner in crime, Kris Nuttycombe, a long-time Lift committer.

-- 
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.



Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-12-05 Thread Atsuhiko Yamanaka
Hi,

On Sat, Dec 5, 2009 at 4:29 PM, Mark Tye mark...@gmail.com wrote:
 The main obstacle to proceeding further was the lack of Maven support
 for App Engine. GAE is currently at version 1.2.8, but the latest
 version in the Google Maven repository is 1.2.1. It's been submitted
 as an issue to Google (http://code.google.com/p/googleappengine/issues/
 detail?id=1296) more than six months ago, and 76 developers have
 starred it, but ironically, the issue status is still New.

You may not satisfied with it, but I'm referring to
  http://www.mvnsearch.org/maven2

Please refer to pom.xml[1] included in  lift-gae-jdo[2] if you are
interested in it.

[1] http://github.com/ymnk/lift-gae-jdo/blob/master/pom.xml
[2] http://github.com/ymnk/lift-gae-jdo

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/
Twitter: @ymnk

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.




Re: [Lift] Please welcome Jon Hoffman to the Lift committers

2009-12-02 Thread Atsuhiko Yamanaka
Welcome Jon!

On Thu, Dec 3, 2009 at 8:25 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 Folks,

 It may or may not be true that for Jon Hoffman that Martin Odersky praises
 [his] valuable contributions. [He] can read APIs in the dark. But Jon's
 made a valuable contribution to Lift as part of the community.  Now, he's a
 committer.

 Please join me in welcoming Jon.  I'm looking forward to his S3-related
 additions to Lift and any other goodies he wants to toss into Lift.

 Jon, welcome and I'm looking forward to the grandeur of your contributions!

--
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/
Twitter: @ymnk

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.




Re: [Lift] Re: Impossible to use Mapper on GAE?

2009-11-27 Thread Atsuhiko Yamanaka
Hi,

On Sat, Nov 28, 2009 at 10:10 AM, jlist9 jli...@gmail.com wrote:
 Hmmm. I wonder how the database demo in the lift GAE demo was implemented...
 is the source available somewhere?

 http://lift-example.appspot.com/database

It is running with H2 in-memory mode.


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/
Twitter: @ymnk

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.




Re: [Lift] Welcome Ross Mellgren to the Lift Committers

2009-11-19 Thread Atsuhiko Yamanaka
Welcome Ross!

--
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/
Twitter: http://twitter.com/ymnk

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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=.




[Lift] Re: Problem with long keys in GAE using JDO

2009-11-16 Thread Atsuhiko Yamanaka

Hi,

On Mon, Nov 16, 2009 at 2:33 PM, Margaret mawei...@gmail.com wrote:

 does appengine support actor in scala?

Unfortunately, it does not.


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/
Twitter: http://twitter.com/ymnk

--~--~-~--~~~---~--~~
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: Problem with long keys in GAE using JDO

2009-11-15 Thread Atsuhiko Yamanaka

Hi,

On Sun, Nov 15, 2009 at 6:23 AM, kkarad kka...@googlemail.com wrote:
 I am currently have some problems using scala and jdo under app
 engine. More specifically, my entitity classes cannot use Long as a
 primary key. Whenever I try persisting a entity object. I get the
 following exception:
...
 Do you know how I can represent a valid jdo long primary key in scala
 code. Is this a known scala-jdo integration issue? If yes, is there
 any alternative solution?

 The entity class and the scala code which persist and object can be
 found below:

 Entity class:
 http://bitbucket.org/kkarad/lift-playground/src/tip/src/main/scala/org/kkarad/liftplayground/model/Candidate.scala

You can define that id field as java.lang.Long .


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/
Twitter: http://twitter.com/ymnk

--~--~-~--~~~---~--~~
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] XmlResponse with cookies

2009-11-11 Thread Atsuhiko Yamanaka

Hi,

I need XmlResponse with cookies, but have gotten following error.

  $ mvn scala:console

  scala import _root_.net.liftweb.http._
  import _root_.net.liftweb.http._

  scala new XmlResponse(foo /){
   |   override def cookies = S.responseCookies
   | }
  console:8: error: type mismatch;
   found   : List[net.liftweb.http.provider.HTTPCookie]
   required: object Nil
 override def cookies = S.responseCookies
 ^

It will be nice, if XmlResonse#cookies is defined as follows,

  case class XmlResponse(xml: Node) extends NodeResponse {
def docType = Empty
def code = 200
def headers = List(Content-Type - text/xml; charset=utf-8)
def cookies: List[HTTPCookie] = Nil// !!
def out = xml
  }

If it is allowed, I'll commit it after the review process.


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/
twitter: http://twitter.com/ymnk

--~--~-~--~~~---~--~~
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: Welcome Dirk Louwers to the Lift committers

2009-10-15 Thread Atsuhiko Yamanaka

Cool!  Welcome Dirk!

On Fri, Oct 16, 2009 at 12:46 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 Folks,
 Please join me in welcoming Dirk to the Lift committers.  Dirk is going to
 integrate Ext.Js (the MIT licensed part of it) into Lift.
 Welcome Dirk and we look forward to your contributions!
 Thanks,
 David

--
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: Lift 1.1 must use Scala 2.8.x ?

2009-10-14 Thread Atsuhiko Yamanaka

Hi,

On Thu, Oct 15, 2009 at 11:07 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 On Wed, Oct 14, 2009 at 6:18 PM, Neil.Lv anim...@gmail.com wrote:
  If i want to use the lift1.1 whether the scala version must greater
 than 2.8 ?

  My lift version is 2.7.4 now, so i must change to 2.8.x ?

 Scala is very brittle and versions of Scala must be exactly the same version
 as libraries compiled against Scala.  Please make sure that you have 2.7.5
 as the version of Scala you run for Lift 1.0.2 or 1.1-M5/6/SNAPSHOT.

 We will run against Scala 2.8 and we're working with the Scala team to make
 sure that Lift works well with 2.8.  Currently, there's a compiler error
 that makes compiling Lift against 2.8 impossible.

Explicitly speaking, does it mean that Lift 1.1 will also run on scala 2.7._ ?
I had guessed that Lift 1.1 will run only on scala 2.8,
because it will require hard work to support scala 2.8 and 2.7._ simultaneously.


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: CometActor timeout problem

2009-10-04 Thread Atsuhiko Yamanaka
Hi,

On Mon, Oct 5, 2009 at 8:16 AM, jack jack.wid...@gmail.com wrote:
 With the code exactly as you wrote it, how would you modify it to do
 this?

 Whenver the Comet Page gets loaded, it resets itself.

How about wrapping your CometActor page with the snippet?

Please refer to attached diff file.


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

diff -Naur src/main/scala/com/authoritude/snippet/JoopCometWrapper.scala 
src.new/main/scala/com/authoritude/snippet/JoopCometWrapper.scala
--- src/main/scala/com/authoritude/snippet/JoopCometWrapper.scala   
1970-01-01 00:00:00.0 +
+++ src.new/main/scala/com/authoritude/snippet/JoopCometWrapper.scala   
2009-10-05 04:06:00.0 +
@@ -0,0 +1,12 @@
+package com.authoritude.snippet
+
+import _root_.scala.xml.NodeSeq
+
+class JoopCometWrapper {
+  def render(node:NodeSeq) = {
+TSGetterLauncher.tick
+node
+  }
+}
+  
+  
diff -Naur src/main/webapp/test.html src.new/main/webapp/test.html
--- src/main/webapp/test.html   2009-09-29 21:09:18.0 +
+++ src.new/main/webapp/test.html   2009-10-05 04:01:42.0 +
@@ -1,7 +1,9 @@
 
 lift:surround with=default at=content
- lift:comet type=JoopComet name=Other
-auth:joop/auth:joop
-  /lift:comet
+ lift:JoopCometWrapper
+   lift:comet type=JoopComet name=Other
+  auth:joop/auth:joop
+   /lift:comet
+ /lift:JoopCometWrapper
 /lift:surround
 


[Lift] Re: CometActor timeout problem

2009-10-02 Thread Atsuhiko Yamanaka

Hi,

On Sat, Oct 3, 2009 at 1:05 PM, jack jack.wid...@gmail.com wrote:

 Atsuhiko,

 The way I have modified the code, each thread is returning its Package
 object at different times. But its seems the screen updates only when
 they all have completed. Could you tell me what piece of the code
 makes the screen update?

Can you show your code?

--~--~-~--~~~---~--~~
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: all page URLs appended with ;jsessionid=knq01t90ajh7

2009-09-18 Thread Atsuhiko Yamanaka

Hi,

On Sat, Sep 19, 2009 at 4:43 AM, David Pollak
feeder.of.the.be...@gmail.com wrote:


 Is this causing a problem?  If it is, you can disable it... I forgot how,
 but I can dig through the code to find out the appropriate LiftRules to
 change.

I had troubles.
For example,
  a href=# onlick=...click/a
was suddenly transformed to
  a href=;jsessionid=knq01t90ajh7# onlick=...click/a
and the page reload was happened unexpectedly.

Now, I have rewritten those anchor tags as
  a href=javascript:void(0) onclick=...click/a
and such troubles have disappeared. So, it is not a problem for me anymore.
This is just FYI.


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: OOME in using CometActor

2009-09-16 Thread Atsuhiko Yamanaka

Hi,

On Wed, Sep 16, 2009 at 10:33 PM, Erik Engbrecht
erik.engbre...@gmail.com wrote:
 The large number of VolatileTaskRefs is a consequence of your thread pool
 growth.  Each worker thread maintains an array of VolatileTaskRef objects.
 The VolatileTaskRef objects are reused rather than allocated for each task,
 so they will not be GC'd as long as the worker thread is alive.  You can
 tell that the they being properly cleared because size wise if they weren't
 being cleared you see what they are pointing to dominate heap usage.

 I'd suggest setting the maximum thread pool size to something reasonable for
 the number of processors and available memory you have.  If you don't, the
 scheduler will happily spawn up to 255 threads.

Thank you for your suggestion.

Do you mean system properties
  actors.corePoolSize
  actors.maxPoolSize
  actors.timeFreq
referred in scala.actors. FJTaskScheduler2?


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: OOME in using CometActor

2009-09-16 Thread Atsuhiko Yamanaka

Hi,

On Wed, Sep 16, 2009 at 11:36 PM, Erik Engbrecht
erik.engbre...@gmail.com wrote:
 Yes, particularly maxPoolSize.

Thank you for prompt reply.
I'll try lower value, for example, 50 for maxPoolSize before going to the bed.
I'll look forward to the good result in the next morning.


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: OOME in using CometActor

2009-09-16 Thread Atsuhiko Yamanaka

Hi,

On Wed, Sep 16, 2009 at 11:50 PM, Atsuhiko Yamanaka
atsuhiko.yaman...@gmail.com wrote:
 I'll try lower value, for example, 50 for maxPoolSize before going to the bed.
 I'll look forward to the good result in the next morning.

I got the good result.

By setting maxPoolSize as 50, OOME had not appeared.
With that setting, 50 FJTaskRunner instances was allocated and
204,800 FJTaskRunner$VolatileTaskRef were there in the heap.

I guess that 204,800 corresponds to 50*4096[1].  According to VisualVM, those
204,800 instances cost 2,457,600( == 50*4096*12) bytes.

So, for the default maxPoolSize(255), we will be able to prevent this
kind of OOME
by adding additional 12,533,760 bytes heap size for VolatileTaskRef.

As for the changing the implementation of CometActor in the other thread,
I think current implementation may be enough for scala 2.7.x at least,
if we can share above knowledge.

Anyway, thank for your help. Now, my lift app becomes sustainable.
It is a desktop image sharing service and heavily depends on CometActor.
If you are interested in it, it has been experimentally running at
http://lift.jcraft.com/dstream/sc...@tohoku2 .

[1] 
http://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_7_6_final/src/actors/scala/actors/FJTaskRunner.java#L244


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: StatefulComet example code?

2009-09-10 Thread Atsuhiko Yamanaka

Hi,

On Thu, Sep 10, 2009 at 5:46 PM, Somindra
Bhattacharyasomind...@gmail.com wrote:

 Hi Folks,

 Please could someone point me to any example code that uses the
 StatefulComet? It would be very helpful.


The tictac[1] included in lift-samples has demonstrated how to use
StatefulComet.

[1] http://github.com/dpp/lift-samples/tree/master/tictac


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: 1.1-SNAPSHOT broken in Google App Engine

2009-08-26 Thread Atsuhiko Yamanaka

Hi,

On Mon, Aug 17, 2009 at 9:18 AM, Mark Tyemark...@gmail.com wrote:
...
 I don't know if compatibility with App Engine is a priority for the
 Lift team, but if this doesn't get fixed, I face an ugly choice
 between remaining frozen at 1.1-M4 as Lift development moves forward,
 or migrating away from App Engine to another cloud solution. Is there
 anything I can do to assist the diagnosis/resolution of this issue?

I have found that this problem will occur if you run lift app based on 1.1-M4
and then run lift app based on 1.1-SNAPSHOT.
And then, if you clear a cookie entry for http://yourapp.appsopt.com/
in your browser,
that problem will disappear.

I think there is not a solution in the 1.1-SNAPSHOT code.

How about clearing sessions before updating to 1.1-SNAPSHOT code base?
You know that sessions have been kept in the datastore and memcache,
and following code will clear them.
I have confirmed that I could cure that problem by following code
without deleting
a cookie in my browser.

  // clearing sessions in the datastore.
  import com.google.appengine.api.datastore.{Query,
DatastoreServiceFactory, Entity}
  implicit def foo(i:java.lang.Iterable[Entity]) = new Iterator[Entity]{
val itt = i.iterator
def hasNext:Boolean = itt.hasNext
def next:Entity = itt.next
  }
  val datastore = DatastoreServiceFactory.getDatastoreService
  val results = datastore.prepare(new Query(_ah_SESSION))
  for(session - results.asIterable){
datastore.delete(session.getKey())
  }

  // clearing memcache
  import java.util.Collections
  import javax.cache._
  val cacheFactory = CacheManager.getInstance.getCacheFactory
  val cache = cacheFactory.createCache(Collections.emptyMap())
  val stats = cache.getCacheStatistics
  cache.clear


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: 1.1-SNAPSHOT broken in Google App Engine

2009-08-25 Thread Atsuhiko Yamanaka

Hi,

On Wed, Aug 26, 2009 at 6:35 AM, David
Pollakfeeder.of.the.be...@gmail.com wrote:
 Atsuhiko-san,

 Have you seen this note on the Lift list?

I have not seen such a note on this list yet and I had not tried
1.1-SNAPSHOT on
GAE/J in these days,  but today I tried it and have also encountered
the reported problem.
I'll check the code and think of what we can.


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] sample code for using JDO on GAE/J

2009-06-16 Thread Atsuhiko Yamanaka

Hi there,

I have pushed a sample code for using JDO on GAE/J to github.
It has been named as lift-gae-jdo and located at
  http://github.com/ymnk/lift-gae-jdo/tree/master

The latest version of Its README is available at
  
http://github.com/ymnk/lift-gae-jdo/blob/ac06f6460bda5013acc2dc07fd65491a2be65dc0/README

Enjoy!


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: 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: 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] org.mortbay.util.ajax.Continuation on GAE/J

2009-06-10 Thread Atsuhiko Yamanaka

Hi there,

It seems that GAE/J has changed its configuration recently,
and you may encounter the crash with
'java.lang.reflect.InvocationTargetException'.
If so, please try the latest 1.1-SNAPSHOT.

For lift committers, it seems that 'hasContinuations_?'[1] has become 'true',

  private val (hasContinuations_?, contSupport, getContinuation,
getObject, setObject, suspend, resume) = {
try {
  val cc = Class.forName(org.mortbay.util.ajax.ContinuationSupport)
  val meth = cc.getMethod(getContinuation,
classOf[HttpServletRequest], classOf[AnyRef])
  val cci = Class.forName(org.mortbay.util.ajax.Continuation)
  val getObj = cci.getMethod(getObject)
  val setObj = cci.getMethod(setObject, classOf[AnyRef])
  val suspend = cci.getMethod(suspend, _root_.java.lang.Long.TYPE)
  val resume = cci.getMethod(resume)
  (true, (cc), (meth), (getObj), (setObj), (suspend), resume)
} catch {
  case e = (false, null, null, null, null, null, null)
}
  }

This means that 'org.mortbay.util.ajax.Continuation' APIs are
available on GAE/J.
Is there a possibility to enable them without using reflection APIs
in 'checkContinuations'[2] method?


[1] 
http://github.com/dpp/liftweb/blob/50b4e8b0490929d20e9361564393e21f845dcd67/lift/src/main/scala/net/liftweb/http/LiftRules.scala#L403
[2] 
http://github.com/dpp/liftweb/blob/50b4e8b0490929d20e9361564393e21f845dcd67/lift/src/main/scala/net/liftweb/http/LiftRules.scala#L446


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: org.mortbay.util.ajax.Continuation on GAE/J

2009-06-10 Thread Atsuhiko Yamanaka

Hi,

On Thu, Jun 11, 2009 at 12:30 AM, David
Pollakfeeder.of.the.be...@gmail.com wrote:
 Unfortunately, no.  In order to do this, we'd have to have a hard dependency
 on Jetty.  It may be possible to do an external continuations module and you
 are encouraged to research this.

I agree with you that a hard dependecy on jetty is not acceptable.
I will research that.


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: your first Lift application on GAE/J

2009-06-08 Thread Atsuhiko Yamanaka

Hi,

On Mon, Jun 8, 2009 at 11:38 PM, Amit Kumar Vermacdac.a...@gmail.com wrote:
 $ mvn package
...
 ---
  T E S T S
 ---
 Running test.test.test.AppTest
 [Fatal Error] :3:4: The markup in the document following the root
 element must be well-formed.

I guess that the problem has happened in parsing your
  src/main/web/app/WEB-INF/appengine-web.xml

That message says that the problem has occurred at line 3rd and column 4th.
Please check it again.

 And what is the meaning of STEP 4 and STEP 5

 $ appengine-java-sdk-1.2.0/bin/dev_appserver.sh target/test-1.0-
 SNAPSHOT

 $ appengine-java-sdk-1.2.0/bin/appcfg.sh update target/test-1.0-
 SNAPSHOT

 where is this appengine-java-sdk-1.2.0 is located ???

You can grab it at
  
http://code.google.com/intl/en/appengine/downloads.html#Google_App_Engine_SDK_for_Java
, and the latest version is 1.2.1 at the present time.


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: Where is scalajpa.jar?

2009-05-31 Thread Atsuhiko Yamanaka

Hi,

On Sun, May 31, 2009 at 4:30 PM, Charles F. Munat c...@munat.com wrote:

 Nope. Now it just can't find the lift-jpa jar.

Liftweb project recommends to use 'lift-jpa'.
Refer to the content of its pom file[1].

scalajpa.jar 1.1 will be downloaded from
  http://scala-tools.org/repo-releases/org/scala-libs/scalajpa/1.1/

[1] 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-jpa/1.1-SNAPSHOT/lift-jpa-1.1-SNAPSHOT.pom


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
Fax +81-22-224-8773
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: Where is scalajpa.jar?

2009-05-30 Thread Atsuhiko Yamanaka

Hi,

On Sun, May 31, 2009 at 9:37 AM,  c...@munat.com wrote:

 Missing:
 --
 1) org.scala-libs:scalajpa:jar:1.1-SNAPSHOT


Instead of the artifactId for scalajpa, I think that problem will be
resolved by adding following tag,

dependency
  groupIdnet.liftweb/groupId
  artifactIdlift-jpa/artifactId
  version1.1-SNAPSHOT/version
/dependency

The 'scalajpa.jar' will be retrieved via lift-jpa.


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
Fax +81-22-224-8773
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: your first Lift application on GAE/J

2009-05-16 Thread Atsuhiko Yamanaka

Hi,

Thank you for your feedback.

On Sat, May 16, 2009 at 10:33 AM, Eric Daugherty edaughe...@gmail.com wrote:

 I think I executed all the steps correctly, but when I deploy it to
 GAE I get a Security Access Control Exception because the Actor class
 is trying to create a thread I think.

It seems the recent commit[1] has caused that exception.
I have pushed the fix to the github repository.
May I ask you to try it again?

[1] 
http://github.com/dpp/liftweb/commit/9e39859be9b8f6f4fd7c17cf503b5bcfcd5e861a#diff-2


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
Fax +81-22-224-8773
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: developing Scala/Lift using Eclipse

2009-05-07 Thread Atsuhiko Yamanaka

Hi,

On Fri, May 8, 2009 at 7:48 AM, Miles Sabin mi...@milessabin.com wrote:
 The point is that this is all of our problem ... I can help with
 generic Scala IDE problems, but Lift + Maven + GAE plugin stuff is not
 in my purview.

As for Lift + Maven + GAE/J, the following may be helpful,
  http://groups.google.com/group/liftweb/msg/c454004d15940996?hl=en


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
Fax +81-22-224-8773
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: Cannot access html files other than index.html in GAE using lift

2009-04-23 Thread Atsuhiko Yamanaka

Hi,

On Thu, Apr 23, 2009 at 9:12 PM, kkarad kka...@googlemail.com wrote:
 
 /webapp/WEB-INF/web.xml
 /webapp/WEB-INF/appengine-web.xml
 /webapp/fileupload.xthml         --- Access fails using the
 http://localhost:8080/fileupload [or with the suffix]
 /webapp/index.html                 --- Access OK

How about adding a menu entry to
  src/main/scala/bootstrap/liftweb/Boot.scala ?

I mean that

  val entries = Menu(Loc(Home, List(index), Home)) ::
 Menu(Loc(Fileupload, List(fileupload),
Fileupload, Hidden)) ::
 Nil


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
Fax +81-22-224-8773
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] your first Lift application on GAE/J

2009-04-22 Thread Atsuhiko Yamanaka

Hi there,

Let me introduce you the brief tutorial to deploy simple lift application to
Google App Engine for Java(GAE/J) . Now, Lift 1.1-SNAPSHOT code base
has included the support for GAE/J and it has become very easy to do it.

First of all, suppose that you have already signed up GAE/J account
and registered your application name as, for example, lift, at your
admin page[1]
So, at the end of this tutorial, your application will be available at
  http://lift.appspot.com/

Ok, let's start it.

1. Create the project.
As an example, we will create the project with the groupId as
'test.test.test' and
artifactId as 'test'.  So it should be done as follows,

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

Please note that artchetypeVersion is '1.1-SNAPSHOT' and
remoteRepositories is
'http://scala-tools.org/repo-snapshots'.
It seems it will fail If it is 'http://scala-tools.org/repo-releases'

2 Add appengine-web.xml
   Create a file named as 'appengine-web.xml' under 'src/main/webapp/WEB-INF'
   with your faivorite editor.

$ cd test
$ emacs -nw src/main/web/app/WEB-INF/appengine-web.xml

   Its content should be as follows,

?xml version=1.0 encoding=utf-8?
appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
  applicationlift/application
  version1/version
  system-properties
property name=in.gae.j value=true /
  /system-properties
  sessions-enabledtrue/sessions-enabled
  static-files
exclude path=/** /
  /static-files
/appengine-web-app

   Please note that the content of application tag must be the application name
   you have registered.  In this tutorial, we have used 'lift' as
described previous.
   And then, one more note.  Without 'static-files' tag setting, you
will get weired result at
   http://lift.appspot.com/index.html ; I mean that the content of
/index.html will be displayed
   without snippet processing.

3. Compile
   As you have done every day, you will be able to compile it.

$ mvn package

4. Testing
  Google App Engine for Java SDK[2] has included the local development server.

$ appengine-java-sdk-1.2.0/bin/dev_appserver.sh target/test-1.0-SNAPSHOT

   After some messages, it will wait for your access at
http://localhost:8080/ .
   Try it with your web browser.

5. Deployment
   It is really easy to deploy it to GAE/J.

$ appengine-java-sdk-1.2.0/bin/appcfg.sh update target/test-1.0-SNAPSHOT

   You will be asked for your email address on GMAIL and password for it.
   If everything works well, your first lift application must be available at
 http://lift.appspot.com/

That's all.

The comet and RDB accesses are not available on GAE/J,  but Lift's
nice functionalities
like snippet, ajax, etc. are available and it is worth of trying it, IMHO.
If it is allowed, I'll post other tutorials, for example, for Lift/JPA
and some tips to
run Lift on GAE/J and to work around some GAE/J's bugs.

Frankly to say, in Lift code base, there must be many problems and
bugs to run it there.
I hope that this tutorial becomes the first step for Lift users to try GAE/J
and contribution for finding, sharing and fixing bugs and problems.


[1] http://appengine.google.com/
[2] 
http://code.google.com/intl/en/appengine/downloads.html#Google_App_Engine_SDK_for_Java


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-20 Thread Atsuhiko Yamanaka

Hi,

On Mon, Apr 20, 2009 at 10:16 PM, 刘浩 sniperliu...@gmail.com wrote:
 Hi,

 Could anyone share the impelmentation of your JPA demo in GAE?
 Actually I encounter some problem during deploy them in GAE.

 a. The keys, GAE do not like Long as Key in OneToMany relation, So I use the
 Key type provided by GAE
 b. Model.mergeAndFlush(author) did not work as I expected. It could not
 update, and only do insert. So I changed the code
 if (author.id == null) {
Model.persistAndFlush(author)
 } else {
val tmp = Model.find(classOf[Author], author.id)
tmp.get.name = author.name
Model.mergeAndFlush(tmp.get)
 }
 I think it is some attach/detach problem.

Yes, I have also the same phenomenon, and I also have guessed that
there must be such an attache/detach problem.


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-20 Thread Atsuhiko Yamanaka

Hi,

On Sun, Apr 12, 2009 at 11:00 PM, Atsuhiko Yamanaka
 FYI, it must be trivial, but I have confirmed that Lift(org.scala_libs.jpa) 
 has
 persistence via BigTable through JPA on GAE/J by using entity classes in Java!

FYI, I have confirmed that, by using datanucleus-enhancer-1.1.2[1],
Scala can use JPA/JDO on GAE/J without writing any entity classes in Java.

[1] 
http://sourceforge.net/project/showfiles.php?group_id=222750package_id=270301


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-20 Thread Atsuhiko Yamanaka

Hi,

On Mon, Apr 20, 2009 at 11:24 PM, 刘浩 sniperliu...@gmail.com wrote:
 Thanks a lot.

 I will try.

I want to share my Author.scala and Book.scala for further references.
I have pasted them at
  http://gist.github.com/98561


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
Fax +81-22-224-8773
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] indicator.gif has not been included in lift-webkit

2009-04-15 Thread Atsuhiko Yamanaka

Hi,

The lift-webkit has included jquery-autocomplete, but indicator.gif
has not been.

That gif file will be refered as
  http://foo.com/classpath/jquery-autocomplete/indicator.gf
from the javascirpt
  http://foo.com/classpath/jquery-autocomplete/jquery.autocomplete.js

I have pushd and enabled it on my branch as follows,
http://github.com/ymnk/liftweb/commit/da75cabb82380126c5565526a603819825986d96
http://github.com/ymnk/liftweb/commit/46c406565f320ee989182ebcf07de8d2b4e89d7f

PS. GAE/J's Dashboard is really helpful to find such a glitch instantly :-)


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-14 Thread Atsuhiko Yamanaka

Hi,

On Sat, Apr 11, 2009 at 10:43 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 GAE supports JPA and there's a lot of Lift JPA support... so maybe we can
 update the example code to use JPA and we'll have persistence via BigTable.

I have integrated to JPADemo to lift_example, and everybody can try it at
  http://lift-example.appspot.com/jpademo/
  http://lift-example.appspot.com/jpademo/authors/list
  http://lift-example.appspot.com/jpademo/books/list

The data has been really stored in BigTable!
As I wrote,  it has been done by JPA with entity classes written in Java.


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-14 Thread Atsuhiko Yamanaka

Hi,

On Mon, Apr 13, 2009 at 6:08 AM, Derek Chen-Becker
dchenbec...@gmail.com wrote:
 Cool, so the ScalaJPA stuff works fine under GAE?

I have some problems.
For example, in some cases, ScalaEtityManager#find could not find the object.

I mean that it could not find an object,
  Model.find[Author](classOf[Author], id) ,
but I got it by the following,
  Mode.createNamedQuery[Author](findAllAuthors).getResultList().filter(_.getId
== id)(0)

I, however, have guessed that problem has not come from ScalaJPA.
It may be from DataNucleus or its driver for GEA's datastore.
I have encountered several weired behaviors in using that datastore.


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
Fax +81-22-224-8773
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: XML Creation

2009-04-13 Thread Atsuhiko Yamanaka

Hi,

On Mon, Apr 13, 2009 at 1:03 PM, sailormoo...@gmail.com
sailormoo...@gmail.com wrote:

 table
  % for (int i = 0; i  data.size(); i++) { %
    trtd%= data.name %/td/tr
  % } %
 /table

  I cannot find an example like this, and I don't know if it should be
 done by a single snippet with all the rows, or some list/array to
 iterate in the view.

How about the followings?

$ scala
Welcome to Scala version 2.7.3.final (Java HotSpot(TM) Client VM, Java
1.6.0_06).
Type in expressions to have them evaluated.
Type :help for more information.

scala List(1,2,3)
res0: List[Int] = List(1, 2, 3)

scala table{for(d-res0) yield trtd{d}/td/tr}/table
res1: scala.xml.Elem =
tabletrtd1/td/trtrtd2/td/trtrtd3/td/tr/table

or

scala table{res0.flatMap{case d = trtd{d}/td/tr}}/table
res2: scala.xml.Elem =
tabletrtd1/td/trtrtd2/td/trtrtd3/td/tr/table


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-12 Thread Atsuhiko Yamanaka

Hi there,

On Sun, Apr 12, 2009 at 12:46 AM, Atsuhiko Yamanaka
atsuhiko.yaman...@gmail.com wrote:
 Hi,

 On Sat, Apr 11, 2009 at 10:43 PM, David Pollak
 feeder.of.the.be...@gmail.com wrote:
 GAE supports JPA and there's a lot of Lift JPA support... so maybe we can
 update the example code to use JPA and we'll have persistence via BigTable.

 I may have missed something, but it seems that the combination of scala and
 DataNucleus(used via JPA on GAE/J) does not work, as far as I have been 
 trying.
 Are there somebody who have succeeded to use scala and JPA on GAE/J?
 Can we work around this problem by implementing entity classes in Java?

FYI, it must be trivial, but I have confirmed that Lift(org.scala_libs.jpa) has
persistence via BigTable through JPA on GAE/J by using entity classes in Java!


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
Fax +81-22-224-8773
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: [scala] Google App Engine for Scala!

2009-04-11 Thread Atsuhiko Yamanaka

Hi,

On Sat, Apr 11, 2009 at 10:43 PM, David Pollak
feeder.of.the.be...@gmail.com wrote:
 GAE supports JPA and there's a lot of Lift JPA support... so maybe we can
 update the example code to use JPA and we'll have persistence via BigTable.

I may have missed something, but it seems that the combination of scala and
DataNucleus(used via JPA on GAE/J) does not work, as far as I have been trying.
Are there somebody who have succeeded to use scala and JPA on GAE/J?
Can we work around this problem by implementing entity classes in Java?

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
Fax +81-22-224-8773
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: How do you get Jorge's LinkShare Comet example to work?

2009-03-05 Thread Atsuhiko Yamanaka

Hi there,

Please allow me to continue this thread, which nobody may be interested in.
I found a reason(or solution) for that problem.

On Wed, Mar 4, 2009 at 12:31 PM, Atsuhiko Yamanaka
atsuhiko.yaman...@gmail.com wrote:
 By the way, I found the problem in running it on IE6/7; I mean that
 the page must not be updated automatically on IE6/7.

The index.html had following html tags,
  p
lift:comet type=LinkActor
  links:viewLoading.../links:view
/lift:comet
  /p

I found that, by wrapping lift:comet with div tag, it will works
well on IE6/7; I mean that
  pdiv
lift:comet type=LinkActor
  links:viewLoading.../links:view
/lift:comet
  /div/p

You can reproduce a similar phenomenon easily. For example,
http://demo.liftweb.net/ has
following tags in src/main/webapp/templates-hidden/default.html,
   div class=widget style=text-align: center
 lift:comet type=ClockCurrent Time: clk:timeMissing
Clock/clk:time/lift:comet
   /div
If div is replaced with p, the clock will not be updated on IE6/7.

Anyway, I think this is not a problem from liftweb.  This is just a
tips or know-how, which
we should keep in our mind in using lift:comet.


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
Fax +81-22-224-8773
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
-~--~~~~--~~--~--~---