Re: [google-appengine] Re: App serving HTTP 500 out of nowhere

2011-10-03 Thread Stephen Johnson
That's excellent news! Let's hope it lasts. Please let me know. Thx. On Mon, Oct 3, 2011 at 1:57 AM, Bernd F bernd.fi...@gmail.com wrote: Just want to let you know that the app, including the new memcache code, survived the first night. On 3 Okt., 02:31, Stephen Johnson onepagewo

Re: [google-appengine] Re: App serving HTTP 500 out of nowhere

2011-10-02 Thread Stephen Johnson
You don't mention if you have threadsafe on. If so, you might be experiencing some sort of deadlock or something with the way you are creating your JCache on every request. I'd try moving away from JCache and accessing the MemcacheService directly. I create a MemcacheService object for each thread

Re: [google-appengine] Re: App serving HTTP 500 out of nowhere

2011-10-02 Thread Stephen Johnson
very much for your suggestion!! On 2 Okt., 23:24, Stephen Johnson onepagewo...@gmail.com wrote: You don't mention if you have threadsafe on. If so, you might be experiencing some sort of deadlock or something with the way you are creating your JCache on every request. I'd try moving away

Re: [appengine-java] Quiz

2011-09-29 Thread Stephen Johnson
That's easy. You are not supposed to return a value in the finally block since it overwrites any previous return values and also any exceptions that are thrown. Return statements in a finally block are a big NO-NO. Stephen CortexConnect.com On Thu, Sep 29, 2011 at 3:36 PM, gk

Re: [appengine-java] Quiz

2011-09-29 Thread Stephen Johnson
So the answer is false. Forgot to actually state that. On Thu, Sep 29, 2011 at 3:44 PM, Stephen Johnson onepagewo...@gmail.comwrote: That's easy. You are not supposed to return a value in the finally block since it overwrites any previous return values and also any exceptions that are thrown

Re: [appengine-java] Cronjob every 1 minutes executes every 2 minutes

2011-09-28 Thread Stephen Johnson
Sounds like you need to add synchronized to the schedule, thus every 1 minutes synchronized, to get it what you want to do if I'm understanding you correctly. Stephen CortexConnect.com On Wed, Sep 28, 2011 at 8:38 AM, dimi dimitri.beck...@gmail.com wrote: Hi guys, I define my cron job with

Re: [appengine-java] Cronjob every 1 minutes executes every 2 minutes

2011-09-28 Thread Stephen Johnson
Great! Glad it worked for you. On Wed, Sep 28, 2011 at 10:38 AM, dimi dimitri.beck...@gmail.com wrote: Thanks Stephen, works like a charm! I don't really understand the explanation about synchronized in the manual, so I didn't try it out. But it works,... as long as the request doesn't

Re: [appengine-java] Servlet Mapping not working as expected

2011-09-26 Thread Stephen Johnson
My guess is that Google is interpreting them as static files and Google's infrastructure is handling them before it reaches your app. So, read up on excluding static files so they aren't served up by Google's infrastructure at http://code.google.com/appengine/docs/java/config/appconfig.html Also,

Re: [google-appengine] Faster than get_by_key_name

2011-09-20 Thread Stephen Johnson
If you're using HRD and using STRONG consistency, you can increase the speed of the get by key by using EVENTUAL consistency. Of course with the possible ramifications that incur with using EVENTUAL consistency. Stephen On Tue, Sep 20, 2011 at 3:21 PM, Steve Sherrie st...@wasteofpaper.comwrote:

Re: [google-appengine] Re: Why can't I get only 1 instance enabled?

2011-09-02 Thread Stephen Johnson
That's only for idle instances but if they are actively serving request due to a denial of service which is Brandon is talking about then you will be charged. There definitely needs to be a maximum setting. On Fri, Sep 2, 2011 at 10:54 AM, prgmratlarge yossiele...@gmail.com wrote: Quoting from

Re: [google-appengine] Re: Why can't I get only 1 instance enabled?

2011-09-02 Thread Stephen Johnson
I mean a Maximum Active Setting (not the idle setting which is useless against a denial of service attack). On Fri, Sep 2, 2011 at 10:59 AM, Stephen Johnson onepagewo...@gmail.comwrote: That's only for idle instances but if they are actively serving request due to a denial of service which

Re: [google-appengine] Re: Why can't I get only 1 instance enabled?

2011-09-02 Thread Stephen Johnson
, Sep 2, 2011 at 11:07 AM, Philip philip.mates...@driggle.com wrote: I would think that we can still specify an upper limit for instance hours but some clarification would be nice. On Sep 2, 7:59 pm, Stephen Johnson onepagewo...@gmail.com wrote: I mean a Maximum Active Setting (not the idle

Re: [google-appengine] Re: Why can't I get only 1 instance enabled?

2011-09-02 Thread Stephen Johnson
budget. No need to worry about that. On Sep 2, 8:23 pm, Stephen Johnson onepagewo...@gmail.com wrote: There still needs to be a maximum. A daily rate can still be exhausted by a denial of service. Worse yet when AppEngine has issues such as datastore issues, memcache issues, task queue issues

Re: [google-appengine] Re: Filter query by key name

2011-08-30 Thread Stephen Johnson
You definitely can do queries by your keys. I'm not a Python person but it looks to me like your problem is that you've forgotten the = part of the query so you get the _slides objects because _slides is _blocks. You also get faq, default, shipping etc. because the underscore character is less

Re: [google-appengine] Re: Filter query by key name

2011-08-30 Thread Stephen Johnson
I meant __key__ not __key. On Tue, Aug 30, 2011 at 2:51 PM, Stephen Johnson onepagewo...@gmail.comwrote: You definitely can do queries by your keys. I'm not a Python person but it looks to me like your problem is that you've forgotten the = part of the query so you get the _slides objects

Re: [google-appengine] Re: Filter query by key name

2011-08-30 Thread Stephen Johnson
I meant _key__ not __key++. Damn fingers. On Tue, Aug 30, 2011 at 2:52 PM, Stephen Johnson onepagewo...@gmail.comwrote: I meant __key__ not __key. On Tue, Aug 30, 2011 at 2:51 PM, Stephen Johnson onepagewo...@gmail.comwrote: You definitely can do queries by your keys. I'm not a Python

Re: [google-appengine] Re: Filter query by key name

2011-08-30 Thread Stephen Johnson
Your welcome. Glad to be of help! On Tue, Aug 30, 2011 at 3:20 PM, S.Prymak spry...@gmail.com wrote: Thank you, Stephen! You are totally right! That's solved my problem! That was my stupid, stupid assumption about string comparision algoritm :( -- You received this message because you

Re: [appengine-java] how to set text to the com.google.appengine.api.datastore.Text in app engine

2011-08-29 Thread Stephen Johnson
Uh...perhaps you might want to say what the error is or per chance even a stack trace or should we get out the crystal ball. Stephen www.cortexconnect.com On Fri, Aug 26, 2011 at 7:27 AM, Sundi sundi...@gmail.com wrote: i am trying to append charcters to the

Re: [google-appengine] Updating problem with unkowned relation

2011-08-29 Thread Stephen Johnson
I don't know if this is it but your problem could be that you are using setters to set first and last name which is the way you are supposed to do it (so that the enhancer can find all places where properties may be modified) but you are directly setting the student property instead of using a

Re: [appengine-java] Upload attachments Google Sites

2011-08-23 Thread Stephen Johnson
A File object isn't really the file, it's a reference to the file and you can use it to get its associated metadata (permissions,size,etc.) The example Ikai is referring to creates a new file on disk which isn't allowed on AppEngine so this isn't going to work. Nicolo, perhaps you can create your

Re: [appengine-java] Re: GWT will serialize java.util.Hashet and won't serialize org.datanucleus.sco.backed.HashSet from JDO. Why?

2011-08-23 Thread Stephen Johnson
Brandon, did you try making your object transient by using the makeTransient call? Not sure if that would do the trick for you or not. Just curious. Stephen www.cortexconnect.com On Tue, Aug 23, 2011 at 2:43 PM, Brandon Donnelson branflake2...@gmail.comwrote: The workaround for GWT HashSet

Re: [appengine-java] Upload attachments Google Sites

2011-08-23 Thread Stephen Johnson
On Tue, Aug 23, 2011 at 2:42 PM, Stephen Johnson onepagewo...@gmail.comwrote: A File object isn't really the file, it's a reference to the file and you can use it to get its associated metadata (permissions,size,etc.) The example Ikai is referring to creates a new file on disk which isn't

Re: [appengine-java] Re: GWT will serialize java.util.Hashet and won't serialize org.datanucleus.sco.backed.HashSet from JDO. Why?

2011-08-23 Thread Stephen Johnson
I wasn't sure detachCopy would work but I figured makeTransient should. Glad to see detachCopy does the trick for you! On Tue, Aug 23, 2011 at 3:08 PM, Brandon Donnelson branflake2...@gmail.comwrote: Wow, that worked, your my best friend :) How I got it to work: if (j != null) {

Re: [appengine-java] Re: GWT will serialize java.util.Hashet and won't serialize org.datanucleus.sco.backed.HashSet from JDO. Why?

2011-08-23 Thread Stephen Johnson
Good to know. Not sure what all the low-level difference between the two is either but glad one of them worked. On Tue, Aug 23, 2011 at 3:19 PM, Brandon Donnelson branflake2...@gmail.comwrote: Ah, I thought they were both the same at first, so after you said that I tried pm.makeTransient(j);

Re: [appengine-java] appengine complained can't seriialize javax.faces.component.UIParameter object???

2011-08-22 Thread Stephen Johnson
Hi, The local dev stores session information in memory so you won't get the NotSerializableException on local dev because the local dev doesn't need to serialize the objects that are in the session. I think that may also be the case with glassfish and tomcat if you haven't set up a database to

Re: [google-appengine] most efficient bulk delete code?

2011-08-02 Thread Stephen Johnson
Change your query to something like this: Query query = pm.newQuery(select ek from + UploadedContent.class .getName()); Where ek is the entity key name you use in you JDO class. For example, mine is defined like the following: @PrimaryKey @Persistent(valueStrategy =

Re: [google-appengine] most efficient bulk delete code?

2011-08-02 Thread Stephen Johnson
I use the low-level datastore to do the delete by keys. On Tue, Aug 2, 2011 at 10:52 AM, Carter Maslan car...@maslan.com wrote: thanks; what delete do you use? It looked like deletePersistentAll() accepted only entities (rather than key values) On Tue, Aug 2, 2011 at 9:46 AM, Stephen

Re: [google-appengine] Re: Stackoverflow

2011-08-02 Thread Stephen Johnson
It is done. On Tue, Aug 2, 2011 at 2:29 PM, Ikai Lan (Google) ika...@google.com wrote: So I saw this in my Google Alerts earlier, and I thought, what the heck, people ask development questions on Yahoo Answers? http://answers.yahoo.com/question/index?qid=20110726102419AAFUzgy Can someone

Re: [appengine-java] Re: Blobstore and upload question

2011-07-28 Thread Stephen Johnson
There is a 1MB limit for entities in the datastore so if your data fits within that limit than the datastore is a good option. My app stores all its data in the datastore including videos, audio files, images, pdf's, etc. I started it before the blobstore existed. So, if your data is greater than

Re: [appengine-java] Re: Blobstore and upload question

2011-07-28 Thread Stephen Johnson
If your data is never more than 32K in size then the datastore is definitely the way to go. Way easier and simpler IMHO. On Thu, Jul 28, 2011 at 10:30 AM, GeorgeS sxoutt...@gmail.com wrote: Stephen, thanks for the information! I had started to put the text into a Datastore but somehow the

Re: [appengine-java] Server error while doing a large loop

2011-07-28 Thread Stephen Johnson
bump once it has run several times. On Thu, Jul 28, 2011 at 4:30 PM, Stephen Johnson onepagewo...@gmail.comwrote: You'll probably want to look at and test backends where you can pick your processor speed to see what kind of performance you can get. I think the front-end instances are configured

Re: [google-appengine] authentication for non web based python apps

2011-07-28 Thread Stephen Johnson
Hi Ruoshui, You're app can use https regardless of whether or not you use any type of login authentication. https causes the http data transmission to be encrypted, it doesn't have anything to do with actually logging in to your app or not. So, when your python app makes the http request, replace

Re: [google-appengine] Re: TransactionFailedError: Is the transaction committed or not?

2011-07-28 Thread Stephen Johnson
This does seem to be a conundrum. I'll offer up an idea for those instances where this behavior is of concern. It's not a great solution but if you need to guarantee that a transaction definitely succeeds and your transaction is idempotent then maybe this or some variation will help. First off,

Re: [google-appengine] Re: TransactionFailedError: Is the transaction committed or not?

2011-07-28 Thread Stephen Johnson
Oops, I meant that your transaction is NOT idempotent, duh. On Thu, Jul 28, 2011 at 10:31 AM, Stephen Johnson onepagewo...@gmail.comwrote: This does seem to be a conundrum. I'll offer up an idea for those instances where this behavior is of concern. It's not a great solution but if you need

Re: [google-appengine] TransactionFailedError: Is the transaction committed or not?

2011-07-28 Thread Stephen Johnson
I should have mentioned that the re-fetch should be done in a transaction, which should take away the eventually part since from what I've gathered I think you're reading directly from the master transaction log. As for the continuous timing out due to datastore issues then you'd have to fallback

Re: [google-appengine] 回复:Re: authentication for non web based python apps

2011-07-28 Thread Stephen Johnson
Your welcome Ruoshui and thank you for the code sample Ernesto, I use Java on the server side so wouldn't have been much help with the Python. On Thu, Jul 28, 2011 at 2:03 PM, liu ruos...@aquamw.com wrote: Hi Ernesto and Stephen, Thank you both so much. Your comments clear up my confusion

Re: [google-appengine] remote_api and java - put in batches

2011-07-26 Thread Stephen Johnson
Hi Fred, Lists/Sets implement the Iterable interface, so create any list type (ArrayList/LinkedList) you want and then just add them to that. ListEntity entities = new ArrayListEntity(); while (more entities) { entities.add(entity); } datastore.put(entities); Stephen CortexConnect

Re: 回复:Re: [google-appengine] Total Stored Data is larger than the actual use.

2011-07-25 Thread Stephen Johnson
The thing to note is that doing this won't affect any of the current data. You'll need to either delete the current data and re-upload with those properties set to unindexed or you need to create your model with the properties set to unindexed and then iterate over the current data and retrieve

Re: [google-appengine] Bad Performance for Dedupe of 2 million records using mapreduce on Appengine

2011-07-21 Thread Stephen Johnson
Hi, I'll take a stab at trying to help you out. I think I understand what you are attempting to do. Using mapreduce: The way I would do this is to create (if you don't already have one) is a composite index on your four fields of name, phone, address and fathername. With that being said, since

Re: [appengine-java] Why use servlets?

2011-07-11 Thread Stephen Johnson
JSP's get converted to servlets before execution, so when your using JSP's you're using servlets. Many people, myself included, use servlets for the business logic and use JSP's for the presentation (generating the html). So, in my servlets and filters I'll determine if the user is logged in, has

Re: [google-appengine] Re: Weekend project: keep your app warm

2011-07-11 Thread Stephen Johnson
Hi Jeff, I believe that with the new pricing that may have already happened. If you keep your app warm with no one using it you're going to be paying for it. A lot of users will probably want their instances to shutdown faster rather than stay up and be either billed or use up their free quota.

Re: [google-appengine] eventual consistency

2011-07-10 Thread Stephen Johnson
You can use STRONG consistency on HR and if you get by key then that should work with what you describe. There was just a discussion on this and you can see a related post by Ikai which may also help you from a reply of his to this other discussion:

Re: [google-appengine] Re: eventual consistency

2011-07-10 Thread Stephen Johnson
Hi Kyle, You should read the link I provided with Ikai's discussion. Gets by key with EVENTUAL consistency on HR can go to a replica datastore that may not have the latest info. Also, see the discussion we just had where this was discussed. Subject was ReadPolicy.Consistency.EVENTUAL under HR The

Re: [google-appengine] Re: eventual consistency

2011-07-10 Thread Stephen Johnson
do a get(), put(), or a transaction, you will always see the most recently written data. http://code.google.com/appengine/docs/java/datastore/hr/overview.html On Jul 10, 5:41 pm, Stephen Johnson onepagewo...@gmail.com wrote: Hi Kyle, You should read the link I provided with Ikai's discussion

Re: [google-appengine] Eventual consistency and JPA (was Re: eventual consistency)

2011-07-10 Thread Stephen Johnson
I don't use JPA, but the way I understand it is that a get is by key which can also be a batch get by key. Whereas a query, queries for the entity keys using an index and then gets the entities by key. So, the way I understand it is below, but this is just my understanding so I could be wrong:

Re: [google-appengine] ReadPolicy.Consistency.EVENTUAL under HR?

2011-07-08 Thread Stephen Johnson
. An eventually consistent fetch goes to the fastest datastore node and returns whatever version it has. Robert On Thursday, July 7, 2011, Stephen Johnson onepagewo...@gmail.com wrote: Hi Pete, Yes, I've also tested this and the speed improvement is VERY noticeable. With the way

Re: [google-appengine] Session/user management approach for multiple servlets in GWT/GAE app

2011-07-08 Thread Stephen Johnson
I'm assuming this is on production not dev? Do you have sessions-enabled true/sessions-enabled in your appengine-web.xml? Are you seeing the sessions persisted to the datastore in _ah_Session? Stephen On Fri, Jul 8, 2011 at 3:54 AM, Alex Dobjanschi alex.dobjans...@gmail.comwrote: Hi, I've

Re: [google-appengine] No more free lunch for poor people?

2011-07-08 Thread Stephen Johnson
LOL! Hopefully it will be happy music! On Fri, Jul 8, 2011 at 10:51 AM, Gregory D'alesandre gr...@google.comwrote: Heh, watching that almost makes me want to have dramatic music play the first time you look at the side-by-side bills :) Greg On Fri, Jul 8, 2011 at 9:48 AM, Stephen Johnson

Re: [google-appengine] ReadPolicy.Consistency.EVENTUAL under HR?

2011-07-08 Thread Stephen Johnson
, 2011 at 9:37 AM, Stephen Johnson onepagewo...@gmail.comwrote: Hi Robert, This is what I kind of thought but I didn't want to go that far in a statement without official clarification. If that is the case then I think the documentation should clarify this then because under the Usage Notes

Re: [google-appengine] ReadPolicy.Consistency.EVENTUAL under HR?

2011-07-08 Thread Stephen Johnson
Or you could view it the other way and that EVENTUAL consistency is 10x cheaper :) You can also use both consistencies in your app. Do you really need STRONG consistency for every query and fetch. For example, if your selling products, does the descriptions of the products change that often. I

Re: Re: Re: [google-appengine] Total Storage Data Limited Question

2011-07-07 Thread Stephen Johnson
Glad to be of help! On Thu, Jul 7, 2011 at 6:24 AM, BarrenTeam barren8...@gmail.com wrote: Thank you again Stephen! :) We have solved many of our doubts thanks to your answers :) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view

Re: [google-appengine] JDO's getObjectById(keyString) does not look at the *whole* keyString?

2011-07-07 Thread Stephen Johnson
Have you tried using the two parameter getObjectById that takes the JDO entity class type as the first parameter which I would presume (but not verified) then doesn't need to inspect the supplied string to determine the entity kind? On Thu, Jul 7, 2011 at 10:38 AM, Carter jcmas...@gmail.com

Re: [google-appengine] JDO's getObjectById(keyString) does not look at the *whole* keyString?

2011-07-07 Thread Stephen Johnson
I'd suggest posting some real code for us to help you make a determination. On Thu, Jul 7, 2011 at 11:03 AM, Stephen Johnson onepagewo...@gmail.com wrote: Have you tried using the two parameter getObjectById that takes the JDO entity class type as the first parameter which I would presume

Re: [google-appengine] ReadPolicy.Consistency.EVENTUAL under HR?

2011-07-07 Thread Stephen Johnson
Hi Pete, Yes, I've also tested this and the speed improvement is VERY noticeable. With the way that the documentation explains the difference between the HR datastores STRONG and EVENTUAL settings you would assume that getting by the key value would be the same speed because according to the

Re: [google-appengine] JDO's getObjectById(keyString) does not look at the *whole* keyString?

2011-07-07 Thread Stephen Johnson
@Extension(vendorName=datanucleus, key=gae.pk-name, value=true) private String counter; On Thu, Jul 7, 2011 at 11:07 AM, Stephen Johnson onepagewo...@gmail.com wrote: I'd suggest posting some real code for us to help you make a determination. On Thu, Jul 7, 2011 at 11:03 AM, Stephen

Re: Re: [google-appengine] Total Storage Data Limited Question

2011-07-06 Thread Stephen Johnson
To avoid automatic property index creation with JDO use the following on properties you don't want indexed. @Extension(vendorName = datanucleus, key = gae.unindexed, value=true) One caveat is that if you plan to use that property as a composite index then you'll need to have that property

Re: [google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-05 Thread Stephen Johnson
the workaround will be to replace each java.util.logging.Logger with my own, serializable logger? Best, Dave Donohue On Mon, Jul 4, 2011 at 6:29 PM, Stephen Johnson onepagewo...@gmail.com wrote: Also, make sure that anything referenced by anything that is put in to session is also

Re: [google-appengine] Total Storage Data Limited Question

2011-07-05 Thread Stephen Johnson
Hi, Even though you only have one composite index on __key__ (desc), there are also other indexes you may have. For example, every __key__ has an ascending index and every property that you have indexed (which may have been done automatically for you unless you specified otherwise for example if

Re: [google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-05 Thread Stephen Johnson
Again, I'm not sure why your Loggers are instance variables, but I just make mine a final static variable of that class private static final Logger log = Logger.getLogger(Whatever.class.getName()); On Tue, Jul 5, 2011 at 8:59 AM, Stephen Johnson onepagewo...@gmail.com wrote: Awesome

Re: [google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-05 Thread Stephen Johnson
Just to be clear, then since it's static it won't be serialized and this would solve your issue as well. On Tue, Jul 5, 2011 at 9:17 AM, Stephen Johnson onepagewo...@gmail.com wrote: Again, I'm not sure why your Loggers are instance variables, but I just make mine a final static variable

Re: [google-appengine] Naked domain for App engine

2011-07-04 Thread Stephen Johnson
In your astrotution.com apps control panel, you need to remove Google Sites, then add the App Engine and specify your appengine appspot.com domain. It will take a while for google sites to stop responding and app engine to start responding. Stephen On Sat, Jul 2, 2011 at 9:57 AM, Test37

Re: [google-appengine] Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread Stephen Johnson
Do you have sessions enabled in your appengine-web.xml file?? sessions-enabledtrue/sessions-enabled Stephen On Sun, Jul 3, 2011 at 3:49 AM, David Donohue drdono...@gmail.com wrote: Hello!  We have spent many hours working on a Wicket-based Java web application for Google App Engine.

Re: [google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread Stephen Johnson
Sorry can't help much since don't know what's occurring inside these methods. My suggestion was only based on you stating that Session is null but no way to know for sure if Session is really null. Perhaps it is something that is being put into the Session and that is coming back out as null. Are

Re: [appengine-java] Big Entities vs Small Entities

2011-06-28 Thread Stephen Johnson
Why not use a single int or long value (depending on the number of String values) where each bit position determines if that value was modified? Bit 0 for value1, bit 1 for value2, etc. Then if you want to know if any of the values have been modified, for example, in a query then just query to see

Re: [appengine-java] Problem with using OpenSSL-generated RSA key on App Engine Java

2011-06-27 Thread Stephen Johnson
Glad you were able to solve it. On Sun, Jun 26, 2011 at 2:16 PM, Dado Colussi dado.colu...@gmail.com wrote: On 26 June 2011 11:36, Stephen Johnson onepagewo...@gmail.com wrote: If private.der is in binary format then why are you reading it in as a String using Scanner??? Because I'm

Re: [appengine-java] Problem with using OpenSSL-generated RSA key on App Engine Java

2011-06-26 Thread Stephen Johnson
If private.der is in binary format then why are you reading it in as a String using Scanner??? On Sun, Jun 26, 2011 at 8:02 AM, Dado Colussi dado.colu...@gmail.com wrote: On 25 June 2011 14:51, Stephen Johnson onepagewo...@gmail.com wrote: I'm no expert on this sort of thing, but I think you

Re: [appengine-java] Problem with using OpenSSL-generated RSA key on App Engine Java

2011-06-25 Thread Stephen Johnson
I'm no expert on this sort of thing, but I think you need to base-64 decode your string. Stephen On Fri, Jun 24, 2011 at 5:27 PM, Dado Colussi dado.colu...@gmail.com wrote: I have generated an RSA key pair with OpenSSL, and I am successfully using it in App Engine Java SDK 1.5 on Mac OS X

Re: [google-appengine] No session created in AppEngine

2011-06-24 Thread Stephen Johnson
Glad that did the trick! On Fri, Jun 24, 2011 at 5:10 AM, Mikael Hakman mikael.hak...@gmail.com wrote: That did the trick. Thank you very much Stephen. Mikael -Original Message- From: google-appengine@googlegroups.com [mailto:google- appeng...@googlegroups.com] On Behalf Of Stephen

Re: [google-appengine] What's the syntax to schedule a cron every 100 minutes?

2011-06-24 Thread Stephen Johnson
Did you try 1.67 hours? For some reason I think sometime long long ago it was brought up that decimals could be used to solve a problem like this. Not sure though. Stephen On Fri, Jun 24, 2011 at 4:18 PM, Brandon Wirtz drak...@digerat.com wrote: Cron every 10 minute Increment Cron Counter

Re: [google-appengine] No session created in AppEngine

2011-06-22 Thread Stephen Johnson
Do you have sessions-enabledtrue/sessions-enabled in your appengine-web.xml? Stephen On Wed, Jun 22, 2011 at 9:18 AM, Mikael Hakman mhak...@dkab.net wrote: In a GWT RPC servlet I use HttpRequest.getSession(true) to create a session. In another place in the same servlet I check for session by

Re: [appengine-java] can i load web form and then submit it, after showing only form's captcha on screen?

2011-06-18 Thread Stephen Johnson
You can do it several ways. The best way IMHO is to show the form and the captcha together and they fill in the form fields and the captcha and submit both together. Or as your question implies, you want a two-step process for some reason where they fill in the form and then you show a different

Re: [appengine-java] two accounts

2011-06-18 Thread Stephen Johnson
If you set up your domain through Google Apps then remove Google Sites from the account where you set up your domain name and add App Engine to that account specifying your appengine id. I think that if you used Google Apps to add your domain then your DNS settings should be fine, but I can't

Re: [appengine-java] two accounts

2011-06-18 Thread Stephen Johnson
Log into your apps account: www.google.com/a/YOURDOMAIN.com On your dashboard remove Google Sites, then click Add More Services to add your App Engine account On Sat, Jun 18, 2011 at 2:30 PM, Steve steve.flenni...@gmail.com wrote: I like the idea of switching some settings so I can use my

Re: [appengine-java] two accounts

2011-06-18 Thread Stephen Johnson
Cool. Your welcome. On Sat, Jun 18, 2011 at 4:45 PM, Steve steve.flenni...@gmail.com wrote: Thank you.  I was able to remove the default site and add my app engine id to my new domain. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-20 Thread Stephen Johnson
, Stephen Johnson onepagewo...@gmail.com wrote: Vik, Post your code where you're creating the ByteArrayOutputStream and creating the PDF with it. It'll be more helpful then what you've posted. I'm a little concerned you still don't have this part correct since you're still using out

Re: [google-appengine] Static Files: Here is a real Problem. Can I solve it with GAE?

2011-05-20 Thread Stephen Johnson
As a theoretical exercise and not knowing for one second if this would in anyway work, but... Don't use Python. Use Java. Store file in instance memory. Should be able to serve it with latency of 25ms or even less. So 40 requests per second for just one thread. Should be able to get at least 20

Re: [google-appengine] Still confused about Storage reported for billing and Datastore

2011-05-19 Thread Stephen Johnson
Hi Brandon, Different Steve here. Anyway, when I mentioned in a different thread about indexes, you also have to count your property indexes as well. For each property that you have indexed (and these wouldn't show up in your configured indexes) you have two indexes defined: one ascending and one

Re: [google-appengine] Still confused about Storage reported for billing and Datastore

2011-05-19 Thread Stephen Johnson
. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Stephen Johnson Sent: Thursday, May 19, 2011 10:42 AM To: google-appengine@googlegroups.com Subject: Re: [google-appengine] Still confused about Storage reported for billing

Re: [google-appengine] Still confused about Storage reported for billing and Datastore

2011-05-19 Thread Stephen Johnson
built a test case, do you happen to know if all types write/read at the same speed assuming they are the same size? -Brandon -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Stephen Johnson Sent: Thursday, May 19, 2011 11

Re: [google-appengine] Re: NotSerializableException

2011-05-18 Thread Stephen Johnson
If u store objects in the Session they must be serializable because this data gets saved to the datastore in _ah_session so that it can be shared across multiple instances, etc. However the dev server doesn't need to do this since it's only one machine and it keeps the session info in

Re: [google-appengine] Re: NotSerializableException

2011-05-18 Thread Stephen Johnson
Your welcome. On Wed, May 18, 2011 at 4:41 PM, Steve Fisher dr.s.m.fis...@gmail.com wrote: Stephen, Thanks for the explanation Steve On 18 May 2011 21:45, Stephen Johnson onepagewo...@gmail.com wrote: If u store objects in the Session they must be serializable because this data gets

Re: [appengine-java] Simple Google App Engine Datastore operation taking too long: causing DeadlineExceededException/DatastoreTimeoutException

2011-05-17 Thread Stephen Johnson
I use JDO but I don't use the built in relationship handling. I manage my own relationships and use JDO just for the property/entity mapping part of it. It seems to make life a lot simpler when trying to get around these types of situations. If you can make the Orders not be children of the

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-17 Thread Stephen Johnson
);          System.out.println(Sucessfully Sent mail to All Users); Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, May 17, 2011 at 9:30 PM, Stephen Johnson onepagewo...@gmail.com wrote: Vik, Post your code where you're creating the ByteArrayOutputStream

Re: [google-appengine] NotSerializableException

2011-05-17 Thread Stephen Johnson
You need to make sure that the class implements the java.io.Serializable interface. There are no methods to this interface: class MyClass implements java.io.Serializable { } Stephen On Tue, May 17, 2011 at 4:39 PM, Steve Fisher dr.s.m.fis...@gmail.com wrote: I have a small application (using

Re: [google-appengine] FAQ for out of preview pricing changes

2011-05-17 Thread Stephen Johnson
Greg, Still not clear on the datastore costs. For this you say, This means the cost of your queries will be tied exclusively to the size of your result set. Is this the same whether you return just the keys (keys only query) or also the entities. It seems like it should not be the same since a

[appengine-java] Map Reduce

2011-05-16 Thread Stephen Johnson
I have two questions on the Java version of mapreduce since the docs seem pretty sparse. 1.) Is it possible to use mapreduce over a namespace and if so, how do you configure it? 2.) Is only inputing entity keys and not the entire values supported on the Java version and if so, how do I configure

Re: Vs: Re: Vs: Re: [appengine-java] Should JDO use be synchronized in threadsafe=true application?

2011-05-16 Thread Stephen Johnson
Thinking out loud...What's strange about that issue (not this current one but the one from the past) and the supposed solution is that until just recently with the introduction of the threadsafe property supposedly only one request could executing at a time and you can't create your own additional

Re: [appengine-java] Simple Google App Engine Datastore operation taking too long: causing DeadlineExceededException/DatastoreTimeoutException

2011-05-16 Thread Stephen Johnson
Hi Ashley, This isn't the way I would go about structuring this if I'm understanding the way you've set up your classes. There are a few issues right away that I see. For one, if you have a couple thousand Order children under the Account parent and you call getOrders() in your addOrder() method

Re: Vs: Re: Vs: Re: Vs: Re: [appengine-java] Should JDO use be synchronized in threadsafe=true application?

2011-05-16 Thread Stephen Johnson
Ah, I missed the point about it being tasks and didn't realize the threadsafe only applied to user requests and not tasks. If indeed that was the case. On Mon, May 16, 2011 at 10:44 PM, Juha K juha.kosk...@gmail.com wrote: The datanucleus issue has a comment Then, when my tasks run in

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
You're writing the PDF as your web page output. Use a ByteArrayOutputStream instead. On Sun, May 15, 2011 at 7:16 AM, Vik vik@gmail.com wrote: Hie Just a little question. I am using this pdfJet thing. The requirement for us is to create a pdf and then mail it to a user. So i am done

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Stephen Johnson
You should be able to use the RequestDispatcher object to do what you want but you'll have to have mappings in web.xml for each of the servlets your forwarding to for instance MyGalleryApp would have mappings that all start with /MyGalleryApp/ (or something similar) so GalleryServlet would map to

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
. Please advise Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, May 15, 2011 at 9:56 PM, Stephen Johnson onepagewo...@gmail.comwrote: You're writing the PDF as your web page output. Use a ByteArrayOutputStream instead. On Sun, May 15, 2011 at 7:16

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
://www.sakshum.org http://blog.sakshum.org On Sun, May 15, 2011 at 10:16 PM, Stephen Johnson onepagewo...@gmail.comwrote: Hi Vik, Call toByteArray() method on ByteArrayOutputStream when finished with creating PDF and then MimeBodyPart attachment = new MimeBodyPart

Re: [appengine-java] Re: open source pdf engine for GAE

2011-05-15 Thread Stephen Johnson
://www.sakshum.org http://blog.sakshum.org On Sun, May 15, 2011 at 11:15 PM, Stephen Johnson onepagewo...@gmail.comwrote: The code snippet is from the link I provided. Replace the attachmentData in the code snippet with the byte[] array returned from toByteArray(). You do not convert

Re: [google-appengine] Dynamic urls

2011-05-15 Thread Stephen Johnson
I would have all products have a URL pattern like mysite.com/product/mini-shop-vac (or similar). Then, map mysite.com/product/* to a ProductServlet or similar that generates the product page. You can find out what product they are viewing by using getRequestURI() method and stripping off the

Re: [google-appengine] Numbers that don't quite add Up?

2011-05-14 Thread Stephen Johnson
Well, the Datastore Statistics don't add in any indexing, etc. whereas the quota details does add that in. On Sat, May 14, 2011 at 9:37 PM, Brandon Wirtz drak...@digerat.com wrote: This isn’t a big deal, but the numbers don’t sum what I’d have expected… Both of these are about 2.5x in

Re: [appengine-java] This application does not exist (app_id=u'application-id').

2011-05-13 Thread Stephen Johnson
Uh...check your spelling. You've got vph-epr and vph-erp On Fri, May 13, 2011 at 1:23 AM, horid121 horid...@netkiller.com wrote: Hello~ When I deploy to Google App Engine, I received a error message. Error message: java.io.IOException: Error posting to URL:

Re: [appengine-java] Vs: This application does not exist (app_id=u'application-id').

2011-05-13 Thread Stephen Johnson
Uh...check your spelling. You've got vph-epr and vph-erp On Fri, May 13, 2011 at 1:55 AM, Juha K juha.kosk...@gmail.com wrote: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=vph-epr version=6 *But*, it's exist now.

Re: [appengine-java] Object visibility between threads (running requests)

2011-05-13 Thread Stephen Johnson
There's no guarantee that both those threads are running on the same instance. They can be on two different machines in two different data centers. On Fri, May 13, 2011 at 5:22 AM, Samuel Erdtman sam...@erdtman.se wrote: Hi I have created an application that works fin in the eclipse app engine

Re: [google-appengine] HR applications and Cache Control/Pragma/Expires headers

2011-05-11 Thread Stephen Johnson
I'm confused. I have an HR app and this is what I see when I look at the headers using Firebug for one of my images. You're saying this should be different? On Wed, May 11, 2011 at 9:36 AM, Francois Masurel f.masu...@gmail.comwrote: What is rather strange is that cache headers work perfectly

  1   2   3   >