Re: [google-appengine] Re: Brazil IP

2019-08-28 Thread Manu Campos
Hi,
My VM zone is southamerica-east1-b, but the external IP I received is
35.199.93.41 which is located in California.
I need an IP from Brazil.
Can you help me?


Livre
de vírus. www.avast.com
.
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Em ter, 27 de ago de 2019 às 13:38, 'George (Cloud Platform Support)' via
Google App Engine  escreveu:

> Hello Manu,
>
> To get an IP from Brazil, you have the option to choose region
> southamerica-east1 a, b, c Osasco (São Paulo), Brazil, from the Regions and
> Zones list .
> Practical details are to be found on the "Reserving a Static External IP
> Address" documentation page
> .
> It may be worthwhile reading related information on the "Best practices for
> Compute Engine regions selection" page
> 
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/ac7c35d7-bf87-4759-a3c7-0423bfa232e8%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CACSgnbOWE-6wXiHW8udyS-2kAggrKy3GPtKzhDXkXjNi2GUkcQ%40mail.gmail.com.


Re: [google-appengine] Brazil IP

2019-08-26 Thread Manu Campos
Ok! I will add u at night!
Tnks

Em seg, 26 de ago de 2019 14:31, Saravana Kumar 
escreveu:

> My skype Id is techiesaravana
>
> On Mon, 26 Aug 2019, 10:40 pm Manu Campos, 
> wrote:
>
>> Hi Techie,
>> How can I ping you?
>>
>>
>> Em seg, 26 de ago de 2019 às 14:07, Saravana Kumar <
>> techiesar...@gmail.com> escreveu:
>>
>>> Hey
>>> Yes I can set it up for you
>>> Can you ping me
>>>
>>> On Mon, 26 Aug 2019, 10:31 pm Manu Campos, 
>>> wrote:
>>>
>>>> Hello guys!
>>>> I need a virtual machine with IP from Brazil.
>>>> Does anyone know how to set up?
>>>>
>>>> Thanks
>>>>
>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to google-appengine+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/google-appengine/e84b191b-9fdc-4c4d-becf-bd293d6bdf11%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/google-appengine/e84b191b-9fdc-4c4d-becf-bd293d6bdf11%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengine+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/CAGkJLb-ycd04gFUtSbD6tnVNoM8B5KaKjgbSYm3HzSS37urKHw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/google-appengine/CAGkJLb-ycd04gFUtSbD6tnVNoM8B5KaKjgbSYm3HzSS37urKHw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/CACSgnbOhaiKRRPm2HQ0f7nbmfnn8Zet%3D48aCFEsM0AA8OKecHQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-appengine/CACSgnbOhaiKRRPm2HQ0f7nbmfnn8Zet%3D48aCFEsM0AA8OKecHQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/CAGkJLb-tyXtFKKnk0UNN7ks8uws78ZSTqeQMTZHzHLxy0pHRGg%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-appengine/CAGkJLb-tyXtFKKnk0UNN7ks8uws78ZSTqeQMTZHzHLxy0pHRGg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CACSgnbNfD-EL9x5suYSDQOOk8Hh0%3DohDyxQM_pBrnDF_QBU54A%40mail.gmail.com.


Re: [google-appengine] Brazil IP

2019-08-26 Thread Manu Campos
Hi Techie,
How can I ping you?


Em seg, 26 de ago de 2019 às 14:07, Saravana Kumar 
escreveu:

> Hey
> Yes I can set it up for you
> Can you ping me
>
> On Mon, 26 Aug 2019, 10:31 pm Manu Campos, 
> wrote:
>
>> Hello guys!
>> I need a virtual machine with IP from Brazil.
>> Does anyone know how to set up?
>>
>> Thanks
>>
> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/e84b191b-9fdc-4c4d-becf-bd293d6bdf11%40googlegroups.com
>> <https://groups.google.com/d/msgid/google-appengine/e84b191b-9fdc-4c4d-becf-bd293d6bdf11%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/CAGkJLb-ycd04gFUtSbD6tnVNoM8B5KaKjgbSYm3HzSS37urKHw%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-appengine/CAGkJLb-ycd04gFUtSbD6tnVNoM8B5KaKjgbSYm3HzSS37urKHw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CACSgnbOhaiKRRPm2HQ0f7nbmfnn8Zet%3D48aCFEsM0AA8OKecHQ%40mail.gmail.com.


[google-appengine] Brazil IP

2019-08-26 Thread Manu Campos
Hello guys! 
I need a virtual machine with IP from Brazil. 
Does anyone know how to set up?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e84b191b-9fdc-4c4d-becf-bd293d6bdf11%40googlegroups.com.


[google-appengine] Policy prevented put operation

2012-06-18 Thread campos

I got the following issue.

500 Server Error

/admin/list-admin.jsp
com.google.appengine.api.memcache.stdimpl.GCacheException: Policy prevented put 
operation


I did some research and found that the reason was that memcache over 1MB. 
Currently I only have access to admin console. Can anyone point me what is 
the fastest way to solve it and make my app works?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/sqcwwJETZ4sJ.
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: Datastore quota madness

2012-03-30 Thread João Campos
A bit of an update from my application:

   - I still can't see the indexes size on the Datastore Statistics, even 
   after the stable release of the SDK 1.6.4. I guess it shows only composite 
   indexes (not the default) and I have none of those;
   - My Billing History reports keep saying that I'm using only 0.01 GB 
   (rather than the 1GB+ that is shown on the Dashboard).

In the meantime, I've created a new application and copied all my data 
there. The new application has been working fine since, but then again the 
original had been working fine for well more than a year and moving to a 
new application might not be a solution at all for some.

Has anyone filed a production ticket yet?

On Thursday, March 22, 2012 10:46:11 AM UTC, Константин Сабуров wrote:

 Hello!

 i have an application on master/slave datastore and recently noticed 
 really strange things: datastore size on the dashboard is much bigger than 
 expected. in my app i proactively deleting all unused info to stay below 
 1Gb quota (and there is not many users) but datastore size do not going 
 down, it going up instead and for now it is over 4Gb. 
 and this is not only mine point of view: datastore admin page and 
 datastore statistics both shows numbers which much easier to believe
 i attached screenshots, may be i overlooked something... i just whant to 
 delete invisible entities which take all of my billable space
 please help! :)


On Thursday, March 22, 2012 10:46:11 AM UTC, Константин Сабуров wrote:

 Hello!

 i have an application on master/slave datastore and recently noticed 
 really strange things: datastore size on the dashboard is much bigger than 
 expected. in my app i proactively deleting all unused info to stay below 
 1Gb quota (and there is not many users) but datastore size do not going 
 down, it going up instead and for now it is over 4Gb. 
 and this is not only mine point of view: datastore admin page and 
 datastore statistics both shows numbers which much easier to believe
 i attached screenshots, may be i overlooked something... i just whant to 
 delete invisible entities which take all of my billable space
 please help! :)


On Thursday, March 22, 2012 10:46:11 AM UTC, Константин Сабуров wrote:

 Hello!

 i have an application on master/slave datastore and recently noticed 
 really strange things: datastore size on the dashboard is much bigger than 
 expected. in my app i proactively deleting all unused info to stay below 
 1Gb quota (and there is not many users) but datastore size do not going 
 down, it going up instead and for now it is over 4Gb. 
 and this is not only mine point of view: datastore admin page and 
 datastore statistics both shows numbers which much easier to believe
 i attached screenshots, may be i overlooked something... i just whant to 
 delete invisible entities which take all of my billable space
 please help! :)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/szaIW0VYsLcJ.
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: Datastore quota madness

2012-03-24 Thread João Campos
@Константин, you don't need to set indexed = true to get default indexes, 
if you don't set indexed = false you get the a default index on the 
property anyway.

@David, You can specify index direction on custom indexes 
(http://code.google.com/appengine/docs/python/config/indexconfig.html) just 
not on default ones, I think.

My datastore is M/S (not HDR) and I don't use the Pipeline library.

The Logs Storage doesn't seem to be related either -- I've got another app 
with an even smaller log storage size that also shows as 100% of the Total 
Logs Storage for Version on the Logs section and its datastore size value 
on the Quota Details is within the expected bounds.

In the meantime I've updated the application with the 1.6.4 pre-release SDK 
(https://groups.google.com/d/topic/google-appengine/JKC07lp8q5g/discussion), 
since it's supposed to show the indexes size on the Statistics. Can't find 
them there for now but their last update might not be recent enough.

I'm also waiting for the Billing History report for the 23rd because that's 
when, apparently, the datastore size jumped to 1GB (or at least when I 
noticed it). For the previous days the datastore storage value on the 
Billing History usage reports is always 0.02GB.

Thanks everyone for the support.


On Saturday, March 24, 2012 12:11:47 PM UTC, David Hardwick wrote:

 Is it really two indexes for both asc and desc for each simple 
 property that is indexed?  If so, then it would be great if we could 
 specify if we only wanted ASC or only DESC to sames some unwanted 
 writes. 

 With HRD and indexing, the writes add up real quick (especially using 
 the Pipeline library[1]) 

 rock on, 
-hardwick 

 [1] - 
 http://code.google.com/p/​appengine-pipeline/http://code.google.com/p/appengine-pipeline/
  


 On Mar 23, 12:45 pm, Jeff Schnitzer wrote: 
  If you have not optimized your indexes, they will almost always 
  account for the bulk of your data storage. 
  
  Most of the datastore APIs (python db, ndb, java low-level, jdo/jpa, 
  etc) default to creating two indexes (asc and desc) on every property. 
   Each of these index entries represents another row in a BigTable 
  tablet; for small entities, each of these rows are only slightly 
  smaller than the master blob.  So 5 indexed properties could easily 
  cause a 5-10X expansion in your total stored data volume. 
  
  You can't vacuum these indexes; unlike multi-property indexes defined 
  in datastore-indexes.xml/yaml, single-property indexes are established 
  when you save an entity and are only deleted by resaving the entity. 
  
  If you are concerned about space (or datastore write operations), you 
  should go through your data model and flag any properties you aren't 
  querying on as unindexed.  Then you will need to resave your entities 
  to reclaim index space. 
  
  Jeff 
  
  
  
  
  
  
  
  

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/cntJWnN_aMkJ.
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: Datastore quota madness

2012-03-23 Thread João Campos
I'm experiencing the same. Datastore statistics tell me the application's 
using 15MB but on Dashboard stored data's on 1GB. It's seems to have 
increased really fast because I don't remember seeing the stored data size 
ever near that value. I've also tried to delete data but to no avail.

Does anyone have an explanation for this? What can be done to solve it?

On Thursday, March 22, 2012 10:46:11 AM UTC, Константин Сабуров wrote:

 Hello!

 i have an application on master/slave datastore and recently noticed 
 really strange things: datastore size on the dashboard is much bigger than 
 expected. in my app i proactively deleting all unused info to stay below 
 1Gb quota (and there is not many users) but datastore size do not going 
 down, it going up instead and for now it is over 4Gb. 
 and this is not only mine point of view: datastore admin page and 
 datastore statistics both shows numbers which much easier to believe
 i attached screenshots, may be i overlooked something... i just whant to 
 delete invisible entities which take all of my billable space
 please help! :)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/jln8sdAQ-HEJ.
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: Datastore quota madness

2012-03-23 Thread João Campos
Thanks for your reply.

Even if logs do account for data storage, I've got a little less than 115MB 
of those. With the 15MB of application data that would make up for a 130MB 
total.

I've also ran a vacuum_indexes and I've got not custom indexes and a very 
simple data model (only 3 entities).

With such a simple data model and such small amount of data, can the 
indexes really be responsible for the missing 894MB (1024-130)?


On Friday, March 23, 2012 11:40:53 AM UTC, de Witte wrote:

 Indexes and logs also consume data storage.

 Op donderdag 22 maart 2012 11:46:11 UTC+1 schreef Константин Сабуров het 
 volgende:

 Hello!

 i have an application on master/slave datastore and recently noticed 
 really strange things: datastore size on the dashboard is much bigger than 
 expected. in my app i proactively deleting all unused info to stay below 
 1Gb quota (and there is not many users) but datastore size do not going 
 down, it going up instead and for now it is over 4Gb. 
 and this is not only mine point of view: datastore admin page and 
 datastore statistics both shows numbers which much easier to believe
 i attached screenshots, may be i overlooked something... i just whant to 
 delete invisible entities which take all of my billable space
 please help! :)



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/s00-DD85r4cJ.
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.



Re: [google-appengine] Re: Datastore quota madness

2012-03-23 Thread João Campos
It still sounds somewhat unlikely since with 15MB we're talking of a more 
than 60x total expansion. The application has about 15 unindexed properties 
(I had already set a lot of properties to unindexed, precisely to save 
storage quota) and according to the datastore statistics, most of the data 
is on the large properties.

Is there anywhere where you can see the space effectively being consumed by 
indexes?

One thing I noticed -- when I'm 500 server errors from the dashboard -- 
is that on the Logs section it says that the app's using 100% of logs 
storage (which is not true, because I'm using only ~115MB and the first 1GB 
are supposed to be free -- 
http://googleappengine.blogspot.pt/2012/02/app-engine-163-released.html). I 
can't find the logs storage size anywhere else on the dashboard, quota 
details or billing history.

Could this be the reason?

On Friday, March 23, 2012 4:45:17 PM UTC, Jeff Schnitzer wrote:

 If you have not optimized your indexes, they will almost always
 account for the bulk of your data storage.

 Most of the datastore APIs (python db, ndb, java low-level, jdo/jpa,
 etc) default to creating two indexes (asc and desc) on every property.
  Each of these index entries represents another row in a BigTable
 tablet; for small entities, each of these rows are only slightly
 smaller than the master blob.  So 5 indexed properties could easily
 cause a 5-10X expansion in your total stored data volume.

 You can't vacuum these indexes; unlike multi-property indexes defined
 in datastore-indexes.xml/yaml, single-property indexes are established
 when you save an entity and are only deleted by resaving the entity.

 If you are concerned about space (or datastore write operations), you
 should go through your data model and flag any properties you aren't
 querying on as unindexed.  Then you will need to resave your entities
 to reclaim index space.

 Jeff




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/tH1GjO7dBo8J.
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.



[appengine-java] Storing blob with Struts 2. How to

2012-02-06 Thread Jesus Martinez-Campos Martinez
Hi, I have developed an application using Struts 2 but I need store files 
into the blob store ( 1Mega files).

In docs appear this:

form action=%= *blobstoreService.createUploadUrl(/upload) *% 
method=post enctype=multipart/form-data
input type=text name=foo
input type=file name=myFile
input type=submit value=Submit
 /form

if the url is an Struts action (ex: myAction.action) doesn´t work, but if 
you put index.jsp works fine.

One thing I have solved is include constant 
name=struts.action.excludePattern value='/_ah/.*'/ in struts.xml file to 
exlcue urls wich starts with _ah.

In conclusion:

I think the problem is that I put an action into createUploadUrl Method but 
the callback refers to _ah/upload/KEY and this can´t be find as an action, 
Any IDEA??

Thanks alot!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/vdGGCBs66JEJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Re: Downtime on 6 Dec?

2011-12-06 Thread campos
Maintenance finished? Mine is still read only.

On Dec 7, 9:26 am, John jwb...@gmail.com wrote:
 We've seen some announcements, but one would hope there would be something
 about planned downtime on the status 
 pagehttp://code.google.com/status/appengine.
 Is the datastore still going to maintenance mode at 5:30?

-- 
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: Downtime on 6 Dec?

2011-12-06 Thread campos
My domain is down now?

I am ready to change my hosting. Google is charging me over $150 a
week but is providing non-stable hosting!

On Dec 7, 10:31 am, campos huwen...@gmail.com wrote:
 Maintenance finished? Mine is still read only.

 On Dec 7, 9:26 am, John jwb...@gmail.com wrote:







  We've seen some announcements, but one would hope there would be something
  about planned downtime on the status 
  pagehttp://code.google.com/status/appengine.
  Is the datastore still going to maintenance mode at 5:30?

-- 
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: Quota details: how can i get past data?

2010-01-04 Thread campos
I'm looking forward a solution as well. Anyone could help?

On Dec 9 2009, 3:06 pm, fhtino fht...@gmail.com wrote:
 Hello,

 QuotaDetalis page is very useful. But it's reset every 24 hours.  Is
 there a way to get past data?
 I know there are some info under BillingHistorybut data underQuota
 Details is more detailed.

    fabrizio

--

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-appeng...@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 is possible to recover my latest project from App engine?

2009-10-28 Thread campos

Hello group,

I had a java application running on App Engine. I had my project
version 2.0 in my own svn server. Then I released version 2.2 and
submitted to App Engine. All these were done in eclipse. When I was
ready to commit version 2.2 to my own svn, my hard disk was damaged
suddenly. I tried 2 weeks to recover it but failed. Now I'm using new
hardisk. I'm wondering if I can recover v 2.2 from App Engine. I have
no idea about that.

Thanks in advance!
--~--~-~--~~~---~--~~
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: Problem in Image Process

2009-05-27 Thread campos

sorry System.arraycopy() is not correct.

modified getBytes() method:

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

int readLength, totalLength = 0;
while ((readLength = inputStream.read(buffer, 0, bufferLength)) = 0)
{
for (int i = 0; i  readLength; i++)
list.add(buffer[i]);
}

byte[] retArray = new byte[list.size()];
for (int i = 0; i  list.size(); i ++)
retArray[i] = list.get(i);
return retArray;
}

On May 26, 11:23 am, campos huwen...@gmail.com wrote:
 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];
         ArrayListbyte[] list = new ArrayListbyte[]();

         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] 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];
ArrayListbyte[] list = new ArrayListbyte[]();

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] Re: DataStore timeout

2009-04-06 Thread campos

I had the same problem since couple of days before. It all worked fine
previously. My app has a somewhat high frequency, about 30 request/
sec. Is that the cause? How to solve it?

On Apr 5, 3:56 pm, cc c...@gamegiants.net wrote:
 We are seeing the same issue today. No problem in the past.
 Somebody tweaked something!

 On Apr 3, 5:31 am, DarkCoiote darkcoi...@gmail.com wrote:

  Getting a bad number of datastore timeout... and the operation is
  'simple', is a put in simple model;...

  Traceback (most recent call last):
    File /base/python_lib/versions/1/google/appengine/ext/webapp/
  __init__.py, line 501, in __call__
      handler.get(*groups)
    File /base/data/home/apps/naval-war/1.332510333196150921/main.py,
  line 218, in get
      person.put()
    File /base/python_lib/versions/1/google/appengine/ext/db/
  __init__.py, line 669, in put
      return datastore.Put(self._entity)
    File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 166, in Put
      raise _ToDatastoreError(err)
    File /base/python_lib/versions/1/google/appengine/api/
  datastore.py, line 1965, in _ToDatastoreError
      raise errors[err.application_error](err.error_detail)
  Timeout

  person model:
  class Person(db.Model):
    id = db.StringProperty()
    score = db.IntegerProperty(default=0)
    currentFleet = db.IntegerProperty(default=0)
    availableShots = db.IntegerProperty(default=0)
    maxShots = db.IntegerProperty(default=0)
    shipsSunk = db.ListProperty(int,verbose_name=Sunken ships list,
  default=[0,0,0,0,0])
    shipsLost = db.ListProperty(int,verbose_name=Lost ships list,
  default=[0,0,0,0,0])
    lastAccess = db.DateTimeProperty(auto_now_add=True)

  see... no references or anything complicated

  any tips on how to reduce the number of datastore timeouts??
--~--~-~--~~~---~--~~
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] DistributionNotFound When Deploying App to GAE

2008-11-10 Thread campos

Hi,

I'm just following http://code.google.com/p/appengine-monkey/wiki/Pylons
to create a pylons featured GAE application. One thing I changed is
that I specified the pylons version to 0.9.6.2 because pylons==0.9.7
requires webob==0.9.4, but latest GAE only provides webob==0.9.0,
there's a conflict on the version. I can't get it sovled.

So I used pylons 0.9.6.2, and modified setup.py to set the
pylons=0.9.6.2 to pylons==0.9.6.2 so as not to get the latest pylons
version. Then everything works fine locally on my machine (Windows
XP). But when I
upload the app onto GAE, there's an error.

Error loading application:
Traceback (most recent call last):
  File /base/data/home/apps/ddviolinshop/1.29/paste-deploy.py, line
50, in module
app = loadapp(CONF_FILE)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 204, in
loadapp
return loadobj(APP, uri, name=name, **kw)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 225, in
loadobj
global_conf=global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 249, in
loadcontext
global_conf=global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 280, in
_loadconfig
return loader.get_context(object_type, name, global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 413, in
get_context
global_additions=global_additions)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 509, in
_pipeline_app_context
APP, pipeline[-1], global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 417, in
get_context
section)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 440, in
_context_from_use
object_type, name=use, global_conf=global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 368, in
get_context
global_conf=global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 249, in
loadcontext
global_conf=global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 292, in
_loadegg
return loader.get_context(object_type, name, global_conf)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 570, in
get_context
object_type, name=name)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
pastedeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py, line 591, in
find_egg_entry_point
pkg_resources.require(self.spec)
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
setuptools-0.6c9-py2.5.egg/pkg_resources.py, line 626, in require
needed = self.resolve(parse_requirements(requirements))
  File /base/data/home/apps/ddviolinshop/1.29/Lib/site-packages/
setuptools-0.6c9-py2.5.egg/pkg_resources.py, line 524, in resolve
raise DistributionNotFound(req)  # XXX put more info here
DistributionNotFound: buttons

buttons is the app name.

Please help me to solve this problem.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: DistributionNotFound When Deploying App to GAE

2008-11-10 Thread campos

yes I have. But still this error after uploading.

On Nov 11, 1:08 am, Walter Cruz [EMAIL PROTECTED] wrote:
 Have you tried python setup.py develop (using the python from virtualenv)?
 --
 []'
 - Walter
 waltercruz.com
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---