[google-appengine] Re: Calculating percentile

2009-05-25 Thread indra

Hi,

For percentile, you can calculate rank of an item using


http://googleappengine.blogspot.com/2009/01/google-code-jams-ranking-library.html

and use the total no. of items ranked to calculate percentile.

Regards,
Indraneel
www.wikiaata.com

On May 26, 4:04 am, Oliver Zheng  wrote:
> Also, how would the calculation of frequency distribution be amortized
> as new values come in?
>
> On May 25, 3:25 pm, Oliver Zheng  wrote:
>
> > For aggregate functions like sum or average, it has been recommended
> > that they be calculated at the time of saving each new or old entry. But
> > how would one go about calculating percentile?
>
> > Is it mathematically possible to spread out the calculation of
> > percentiles over new entries as they come in?
>
> > If not, I can think of only one other way, that is to enumerate through
> > all entries in sorted order, 1000 by 1000 (since that's the limit), and
> > grab the entries at the percentile I want. Of course, I'd still have to
> > aggregate the count for each write as they come in. But this is probably
> > impractical given a large dataset of > 1M.
>
> > Is calculating percentiles inherently infeasible on GAE?
>
> > Thanks,
> > Oliver
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] memcache in remote api

2009-05-25 Thread Ben Nevile

Just wanted to mention that I created a new issue requesting support
for memcache in the remote api console.  I searched but didn't find
any existing similar requests.

http://code.google.com/p/googleappengine/issues/detail?id=1596


Would be a big help.  If this is of interest to you, please give 'er a
star.

Ben
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Problem in Image Process

2009-05-25 Thread campos

Hi,

I'm now switching Java. Given a URL for an image, my application wants
to read the contents of the image and get to image height & width via
Image API.

Here's my code. But the format is not correct parsed by Image Service.

String strUrl = "http://lh5.ggpht.com/_7zgrL7SM-9s/SVeaMu07FKI/
AaE/r1fP9ufeCpg/s800/add_to_chart.jpg";

InputStream inputStream = HttpRequest.getResponseStream(strUrl);
byte[] content = HttpRequest.getBytes(inputStream);
Image image = ImagesServiceFactory.makeImage(content);


public static InputStream getResponseStream(String url)
{
try
{
HttpURLConnection connection = (HttpURLConnection)new URL
(url).openConnection();
connection.setRequestMethod("GET");
connection.setDoInput(true);

connection.connect();
return connection.getInputStream();
}
catch (IOException e)
{
e.printStackTrace();
}
return null;
}


public static byte[] getBytes(InputStream inputStream) throws
IOException
 {
int bufferLength = 1024;
byte[] buffer = new byte[bufferLength];
ArrayList list = new ArrayList();

int readLength, totalLength = 0;
while ((readLength = inputStream.read(buffer, 0, bufferLength)) >= 0)
{
if (readLength == bufferLength)
{
list.add(buffer);
}
else
{
byte[] temp = new byte[readLength];
System.arraycopy(buffer, 0, temp, 0, readLength);
list.add(temp);
}

totalLength += readLength;
}

byte[] returnBytes = new byte[totalLength];
for (int i = 0, pos = 0; i < list.size(); i ++)
{
byte[] currentArray = list.get(i);
System.arraycopy(currentArray, 0, returnBytes, pos,
currentArray.length);
pos += currentArray.length;
}
return returnBytes;
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Warning Your application is exceeding a quota.

2009-05-25 Thread condor

Hi,

My application has only one index.
But when I tried update_indexes, "Server Error 500" occur again.

Then these messages displayed my applications dashboard.

  Billing Status: Free - Settings
  Quotas reset every 24 hours. Next reset: 5 hrs
  warning Your application is exceeding a quota: Workflow Readonly
Call Count
  warning Your application is exceeding a quota: Datastore Indices
Count

What means is these messages?
and tel me how to upload to avoid these error please .


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



答复: [google-appengine] Re: urlfetch... Impl ementing my own cache? Memcache?

2009-05-25 Thread chenbaiping

This may be more efficient.
1. First, Check memcache , if hit, done.
2. If not, do a  url fetch. If the return has a 'Last-Modified' header, cache 
it in memcache. done


-邮件原件-
发件人: google-appengine@googlegroups.com 
[mailto:google-appeng...@googlegroups.com] 代表 Bennomatic
发送时间: 2009年5月26日 0:49
收件人: Google App Engine
主题: [google-appengine] Re: urlfetch... Implementing my own cache? Memcache?


Hi Jordisan,

I'm working on something very similar, and yes, I do use both memcache
and the datastore, to ensure that the cached data lasts as long as I
want it to.  Memcache, IIUC, is not guaranteed to hold onto your data
for as long as you specify.  So my code looks like this:

on request for data:
 - Check memcache to see if I have it stored (the identifier is the
URL path).  This way, oft-requested files are served most quickly.
 - If not, check the datastore.  This way, I don't have to hit the
originating site for any non-updated data.
 - If not, do a URL fetch and grab it, caching it in memcache and
datastore.


For my purposes, I don't store posts--since they're usually dynamic
CGI script requests on the sites I'm using it with, and I don't cache
gets that have query strings.  Eventually, I'm going to build a
management app that will allow me to specify cache time, purge stored
data manually, etc., but right now it's set up as described above.

-Ben

On May 25, 2:49 am, jordisan  wrote:
> Hi.
> I'm developing an application which connects to external APIs
> (delicious) via URLFETCH. Currently every request to my application
> causes one (or more) calls to that external APIs.
>
> I want to implement some kind of INTERMEDIATE CACHE BETWEEN MY APP AND
> EXTERNAL APIS to speed up response time and avoid bothering too much
> external systems.
>
> I'm not sure MEMCACHE is a good solution since every external call may
> be different depending on the request (typically it will be different
> for every user).
>
> Is there any easy-to-use solution for implementing that cache? Should
> I implement my own system? Is it a good idea to use Memcache?
>
> Thanks :)
> __
> jordisanhttp://jordisan.net






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Is there a max number of project files?

2009-05-25 Thread ogterran

Hi,
Is there a max number of project files you can upload in Google App
Engine?
I have a lot of images for my site and I want to know if I can host
all of them on GAE.
I have more than 30k images.

Thanks in advance
Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Calculating percentile

2009-05-25 Thread Oliver Zheng

Also, how would the calculation of frequency distribution be amortized
as new values come in?

On May 25, 3:25 pm, Oliver Zheng  wrote:
> For aggregate functions like sum or average, it has been recommended
> that they be calculated at the time of saving each new or old entry. But
> how would one go about calculating percentile?
>
> Is it mathematically possible to spread out the calculation of
> percentiles over new entries as they come in?
>
> If not, I can think of only one other way, that is to enumerate through
> all entries in sorted order, 1000 by 1000 (since that's the limit), and
> grab the entries at the percentile I want. Of course, I'd still have to
> aggregate the count for each write as they come in. But this is probably
> impractical given a large dataset of > 1M.
>
> Is calculating percentiles inherently infeasible on GAE?
>
> Thanks,
> Oliver
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Calculating percentile

2009-05-25 Thread Oliver Zheng

For aggregate functions like sum or average, it has been recommended
that they be calculated at the time of saving each new or old entry. But
how would one go about calculating percentile?

Is it mathematically possible to spread out the calculation of
percentiles over new entries as they come in?

If not, I can think of only one other way, that is to enumerate through
all entries in sorted order, 1000 by 1000 (since that's the limit), and
grab the entries at the percentile I want. Of course, I'd still have to
aggregate the count for each write as they come in. But this is probably
impractical given a large dataset of > 1M.

Is calculating percentiles inherently infeasible on GAE?

Thanks,
Oliver

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Cannot figure out remote_api

2009-05-25 Thread johntray

I have updated my app for remote_api, copied the appengine_console.py
file from the documentation, updated the sys.path lines, and put that
in my app's root directory. When I run appengine_console.py with my
app id, I get the python prompt OK. BUT...

When I try to import my main.py file, I get a python error, I get an
error for the line where it imports webapp.

from google.appengine.ext import webapp
  File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 68, in 
import webob
ImportError: No module named webob

The app runs on the development server, of course, so I know that this
"missing" webob module *does* exist. Can anyone help me figure out
what I am doing wrong here?
john

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Appcfg.py Update Hangs After Login

2009-05-25 Thread Bobby

Oops my fault, i had Fiddler open, it was probably intercepting the
appcfg.py request.

At least now this is documented :).

Thanks

Bobby

On May 25, 4:10 pm, Bobby  wrote:
> I've tried "appcfg.py rollback" as well, it also hangs after logon.
>
> Bobby
>
> On May 25, 4:05 pm, Bobby  wrote:
>
>
>
> > Hi, i'm trying to update a site on the AppEngine using "appcfg.py
> > update" but it hangs after i enter my login information - it doesn't
> > fail or throw an error, it just sits there.
>
> > I updated the SDK to the latest version in case that was the problem
> > but i still get the same behavior - this in Windows.
>
> > It has worked in the past and the command is the very same (it's
> > inside a .bat). Any insight on what's happening?
>
> > Bobby- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Appcfg.py Update Hangs After Login

2009-05-25 Thread Bobby

I've tried "appcfg.py rollback" as well, it also hangs after logon.

Bobby

On May 25, 4:05 pm, Bobby  wrote:
> Hi, i'm trying to update a site on the AppEngine using "appcfg.py
> update" but it hangs after i enter my login information - it doesn't
> fail or throw an error, it just sits there.
>
> I updated the SDK to the latest version in case that was the problem
> but i still get the same behavior - this in Windows.
>
> It has worked in the past and the command is the very same (it's
> inside a .bat). Any insight on what's happening?
>
> Bobby
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Appcfg.py Update Hangs After Login

2009-05-25 Thread Bobby

Hi, i'm trying to update a site on the AppEngine using "appcfg.py
update" but it hangs after i enter my login information - it doesn't
fail or throw an error, it just sits there.

I updated the SDK to the latest version in case that was the problem
but i still get the same behavior - this in Windows.

It has worked in the past and the command is the very same (it's
inside a .bat). Any insight on what's happening?

Bobby
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: urlfetch... Implementing my own cache? Memcache?

2009-05-25 Thread Bennomatic

Hi Jordisan,

I'm working on something very similar, and yes, I do use both memcache
and the datastore, to ensure that the cached data lasts as long as I
want it to.  Memcache, IIUC, is not guaranteed to hold onto your data
for as long as you specify.  So my code looks like this:

on request for data:
 - Check memcache to see if I have it stored (the identifier is the
URL path).  This way, oft-requested files are served most quickly.
 - If not, check the datastore.  This way, I don't have to hit the
originating site for any non-updated data.
 - If not, do a URL fetch and grab it, caching it in memcache and
datastore.


For my purposes, I don't store posts--since they're usually dynamic
CGI script requests on the sites I'm using it with, and I don't cache
gets that have query strings.  Eventually, I'm going to build a
management app that will allow me to specify cache time, purge stored
data manually, etc., but right now it's set up as described above.

-Ben

On May 25, 2:49 am, jordisan  wrote:
> Hi.
> I'm developing an application which connects to external APIs
> (delicious) via URLFETCH. Currently every request to my application
> causes one (or more) calls to that external APIs.
>
> I want to implement some kind of INTERMEDIATE CACHE BETWEEN MY APP AND
> EXTERNAL APIS to speed up response time and avoid bothering too much
> external systems.
>
> I'm not sure MEMCACHE is a good solution since every external call may
> be different depending on the request (typically it will be different
> for every user).
>
> Is there any easy-to-use solution for implementing that cache? Should
> I implement my own system? Is it a good idea to use Memcache?
>
> Thanks :)
> __
> jordisanhttp://jordisan.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problems with the logging system?

2009-05-25 Thread 风笑雪
I'm using Python environment, just import it and call its function.
But in Java environment, you need to config the logging system.

2009/5/25 Marcelo Alcantara 

> Do you mean in the class?
>
> I got a logger with the full class name and used logger.info(). Used it
> from the java.util.logging.
>
> The logging console is working fine for you?
>
> On Mon, May 25, 2009 at 4:50 AM, 风笑雪  wrote:
>
>> Have you set logging level?
>>
>> 2009/5/25 Marcelo Alcantara 
>>
>> Somebody knows if there is a problem with the logging system?
>>>
>>> I am trying to log but my messages never appear there.
>>>
>>> The requests just appear when I selected show requests only on the combo.
>>> If I mark the checkbox to show requests nothing appears.
>>>
>>> Very strange behaviour.
>>>
>>> Thanks.
>>>
>>> Marcelo
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Marcelo Alcantara
> Senior Developer/Architect
> 
> mar...@gmail.com
> +55 11 81968823
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: "java.io.IOException: Unknown" trying to fetch URL via SDC

2009-05-25 Thread Thor

Thanks Jeff,

I had completely overlooked the debug query possibility. When I use
this, I get the following in the response:
  sdc_routing : Internet
  sdc_internet_routing : USER_NOT_HOSTED
  response_sdc_status : Error in fetching this resource from the
Internet.

Additionally, the request_user, request_url, request_service and
request_appId all match my configuration.

So the question is, what does "USER_NOT_HOSTED" mean? Is this because
the app is accessed at http://appspot.com and not on my own domain
via a CNAME entry?

Btw, the Health Check Gadget is connecting fine (hosted on a Google
Site I created for just that purpose):
  sdc_routing : SDC
  sdc_internet_routing : TO_WOODSTOCK
  response_sdc_status : ok
  response_latency : 1206
  response_content_size : 2


Regards,
Thorsten

On May 22, 2:16 am, "Jeff S (Google)"  wrote:
> Hi Thorsten,
>
> From theSDCtutorial, it looks like there are some debug settings
> which you can enable which might help track down the issue. It sounds
> like you might also want to try the health check gadget since it
> sounds like requests are not making it through:
>
> http://code.google.com/securedataconnector/docs/tutorials/appengine.htmlhttp://code.google.com/securedataconnector/docs/debug.html#DebugQueryhttp://code.google.com/securedataconnector/docs/debug.html#HealthChec...
>
> Please let me know how it goes, the secure data connector is pretty
> new to me as well.
>
> Cheers,
>
> Jeff
>
> On May 20, 3:39 am, Thor  wrote:
>
> > Hi,
>
> > I am trying to set up a proof-of-concept on using the Secure Data
> > Connector to fetch data from behind a firewall. I have theSDCitself
> > installed and configured correctly and it successfully connects to the
> > Google App Engine.
>
> > However, when I try to fetch a URL from my application using the
> > following code snippet, it always throws an IOException with just the
> > message "Unknown" - not very helpful :(
>
> > -
> > URLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();
>
> > URL dataURL = new URL("http://a_url_behind.the.firewall/...";);
> > req.setHeader(new HTTPHeader("use_intranet","yes"));
>
> > HTTPResponse resp = fetcher.fetch(req);
> > -
>
> > Judging from theSDClog, the request is not getting through (I assume
> > the log would show if it did).
>
> > Has anyone else tried this? Any idea what to look for?
>
> > Regards,
> > Thorsten
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Need some design related help

2009-05-25 Thread Tim Hoffman

Hi

For offline mode, and local stores/sync  of barcodes you might like to
have a look at google gears.

Rgds


T

On May 25, 6:05 pm, vijay  wrote:
> HI All,I am working on a application using GWT and AppEngine (Java with
> datastore) , got stuck in design phase.
>
> The application need to take input from barcode reader and will fill up
> some text boxes with information corresponding to the barcode. You can
> assume it to be a bookstore selling application which can fill up the book
> details like book name and  price from the barcode when preparing the bill.
> Now my worries are:
>
> 1. As the information can change on server by admin the individual seller
> should be in sync with server. but it would be very time taking if for every
> barcode readed I send a request to server so I think we should store the
> information on client side and keep it in sync with the server as the
> changes are not expected to be very often.
>
> 2. If I keep all information on client side it is not possible to keep all
> barcodes information in memory as they can be in huge numbers may be
> millions, is there a effective way to keep all information on client side or
> any other way instead of storing it on client side.
>
> 3. Also i don't want my user to loose any information if there is any
> disruption in internet connectivity.so can i use something like a offline
> mode which will store all information locally if internet is not connected
> and as soon as connection is there it gets sync with server similar to java
> web start.
>
> I am beginner, it would be great if you guys can tell me about any others
> issues I should be aware of while developing such application with GWT and
> AppEngine.
>
> Thanks,
> Vijay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problems with the logging system?

2009-05-25 Thread Marcelo Alcantara
Do you mean in the class?

I got a logger with the full class name and used logger.info(). Used it from
the java.util.logging.

The logging console is working fine for you?

On Mon, May 25, 2009 at 4:50 AM, 风笑雪  wrote:

> Have you set logging level?
>
> 2009/5/25 Marcelo Alcantara 
>
> Somebody knows if there is a problem with the logging system?
>>
>> I am trying to log but my messages never appear there.
>>
>> The requests just appear when I selected show requests only on the combo.
>> If I mark the checkbox to show requests nothing appears.
>>
>> Very strange behaviour.
>>
>> Thanks.
>>
>> Marcelo
>>
>>
>>
>
> >
>


-- 
Marcelo Alcantara
Senior Developer/Architect

mar...@gmail.com
+55 11 81968823

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Path from Key

2009-05-25 Thread hawkett

Hi,

   There is a method Key.from_path() - which lets you supply the path
to construct the key.  Is there a way to retrieve the path from a key
object? i.e. Key.path()?  If not, is there a way to determine the path
from the key?  Is recursively calling Key.parent() until you get
'None' the only way to do this?  It would be nice to make a single
call to get a list of the keys to the parent.

   Thanks,

Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Need some design related help

2009-05-25 Thread vijay
HI All,I am working on a application using GWT and AppEngine (Java with
datastore) , got stuck in design phase.

The application need to take input from barcode reader and will fill up
some text boxes with information corresponding to the barcode. You can
assume it to be a bookstore selling application which can fill up the book
details like book name and  price from the barcode when preparing the bill.
Now my worries are:

1. As the information can change on server by admin the individual seller
should be in sync with server. but it would be very time taking if for every
barcode readed I send a request to server so I think we should store the
information on client side and keep it in sync with the server as the
changes are not expected to be very often.

2. If I keep all information on client side it is not possible to keep all
barcodes information in memory as they can be in huge numbers may be
millions, is there a effective way to keep all information on client side or
any other way instead of storing it on client side.

3. Also i don't want my user to loose any information if there is any
disruption in internet connectivity.so can i use something like a offline
mode which will store all information locally if internet is not connected
and as soon as connection is there it gets sync with server similar to java
web start.

I am beginner, it would be great if you guys can tell me about any others
issues I should be aware of while developing such application with GWT and
AppEngine.


Thanks,
Vijay

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] urlfetch... Implementing my own cache? Memcache?

2009-05-25 Thread jordisan

Hi.
I'm developing an application which connects to external APIs
(delicious) via URLFETCH. Currently every request to my application
causes one (or more) calls to that external APIs.

I want to implement some kind of INTERMEDIATE CACHE BETWEEN MY APP AND
EXTERNAL APIS to speed up response time and avoid bothering too much
external systems.

I'm not sure MEMCACHE is a good solution since every external call may
be different depending on the request (typically it will be different
for every user).

Is there any easy-to-use solution for implementing that cache? Should
I implement my own system? Is it a good idea to use Memcache?

Thanks :)
__
jordisan
http://jordisan.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] which approach to lists of references?

2009-05-25 Thread Matt

Hello.  I'm writing an app in which I'm storing a list of keys in one
of the models.  I'm trying to figure out the best approach.  The other
approach I thought of was to store a list of integer values (storing
the ID property).

But since I am passing a custom key name (to allow a nice use of
get_or_insert elsewhere in the app) I am not getting ID values.

The reason I ask is b/c I tested on the development version and I was
able to store 4,000 keys in a ListProperty(db.Key)

item_list = ListProperty(db.Key).

Can anyone shed some light on which would be faster and/or more space
efficient for querying?

k1 = Key("foo")
MyModel.gql("WHERE item_list = :1", k1)

vs using  ListProperty(int)

I like being able to use custom key names, but I'd much rather trade
better peformance or storage efficiency for it.

Thoughts would be much appreciated...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Problems with the logging system?

2009-05-25 Thread 风笑雪
Have you set logging level?

2009/5/25 Marcelo Alcantara 

> Somebody knows if there is a problem with the logging system?
>
> I am trying to log but my messages never appear there.
>
> The requests just appear when I selected show requests only on the combo.
> If I mark the checkbox to show requests nothing appears.
>
> Very strange behaviour.
>
> Thanks.
>
> Marcelo
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---