[google-appengine] Re: App Gallery no longer available

2010-11-05 Thread Sargis Dallakyan
I wish it could be restored too. I noticed that when my traffic went
down for http://food-prints.appspot.com. Hope we'll get a message from
GAE team as to why they shut it down.

On Friday, November 5, 2010 3:24:46 PM UTC-7, MLTrim wrote:I know :-/,
it's a brutal way to dismiss such a good service..
hope to see some explanation soon..

Michele


On Nov 5, 9:44 pm, nickmilon  wrote:
> This is not a good thing if it isn't down by a mistake or something.
> Developers contributed there, then out of a sudden see their writings
> disappearing !
>
> On Nov 4, 11:14 pm, MLTrim  wrote:
>
> > Do you know why App Gallery is no longer available?
>
> >http://appgallery.appspot.com
>
> > thanks
> > Michele
>
>

-- 
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] Re: App Gallery no longer available

2010-11-06 Thread Sargis Dallakyan
On Saturday, November 6, 2010 2:21:04 PM UTC-7, nickmilon wrote:Julian:
- I do agree that some contents of the gallery were garbage or
spam application not even running on GAE, along with some really cute
applications. . This was a real problem but instead of fixing it (not
a very difficult task) they just dropped it without notice.


My guess is that this was done to generate more traffic towards Google
Apps for Business Marketplace. Since App Gallery was no longer linked
from the main site, it seems that instead of "don't be evil", they
throw the baby out with the bath water. I appreciate the hard work GEA
team did to build the App Gallery; it really needed more attention to
make it spam free. I would like to hear from other developers as well.
Maybe if enough developers would notice this and voice they concern,
they might consider restoring the site temporarily until further
notice. Cheers!

-- 
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] Datastore Small Operations

2011-11-07 Thread Sargis Dallakyan
Greetings,

Does anyone know what Datastore Small Operations means and where I can
find more info about it. I'm currently getting over the quota on this
after Nov 7 update: 100% - 0.05 of 0.05 Million Ops.

I've searched the web and documentations, but can't find anything
about this in the release notes or in the documentations.

Thanks,
Sargis

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

2011-11-07 Thread Sargis Dallakyan
Thank you Brian and Stacy. I can now see from the error log
that .count() method was consuming all my quota. I'll now need to use
len or some other method of counting to avoid going over the quota.

Thanks,
Sargis


On Nov 7, 2:29 pm, "Stacy (Google)"  wrote:
> This is best explained 
> here:http://code.google.com/appengine/kb/postpreviewpricing.html#operation...
> Small operations are neither reads nor writes, but are key allocations, 
> returning
> keys from a query, or counts.
> Your "Billing History" usage reports can tell you if you are using a 
> substantial
> number of these operations now.
>
> Stacy

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



Re: [google-appengine] Re: Google App Engine Master/Slave Datastore Deprecation

2012-08-24 Thread Sargis Dallakyan
Thanks for the discussion. Now I understand this from Google's perspective, 
but it's no clear what happens if I do not migrate. Will all my data be 
lost? Thanks.

On Friday, August 24, 2012 7:00:58 AM UTC-7, barryhunter wrote:
>
> While it appears M/S should be around until April 20, 2015 - guessing 
> Google are just trying to push people over. 
>
> The less time they can spend applying band-aids to the M/S serving 
> infestructure (and also many new features still have to be be tested 
> against M/S - the code common to the two platforms) - the more time they 
> can work on new stuff. 
>
> It's not a 'threat', its a begging letter. They want to kill M/S sooner*.
>
>
>
> *(and I imagine it will happen. Keeping M/S will become a serious material 
> technical burden before 2015. )
>
>
>
> On Fri, Aug 24, 2012 at 2:39 PM, Joshua Smith 
> 
> > wrote:
>
>> Yeah, yeah, I know that many of my old M/S applications are running on 
>> the officially deprecated database. And I know that they might suffer a 
>> little more downtime as a result. But I also know that they are working 
>> just fine, and I'm not particularly interested in going through the pain of 
>> migrating (particularly working around all those annoying consistency 
>> things -- I've done that twice now, and each time it took quite a lot of 
>> programming to hide this stuff from the users).
>>
>> So the question: Is this notice just a helpful reminder, or is there an 
>> implicit "or else" between the lines that I'm not seeing?
>>
>> -Joshua
>>
>> On Aug 24, 2012, at 9:10 AM, Google App Engine 
>> > 
>> wrote:
>>
>> Dear App Engine Developer, 
>>
>> We’ve noticed that you are running at least one application configured to 
>> use the Master/Slave (M/S) datastore. This application configuration was 
>> officially 
>> deprecatedon
>>  April 4, 2012, in accordance with our deprecation 
>> policy , in 
>> favor of the more reliable High Replication Datastore (HRD). HRD uses the 
>> Paxos 
>> algorithmto
>>  serve your application out of multiple datacenters, meaning better 
>> redundancy in the face of datacenter issues, more consistent datastore 
>> performance, and no planned downtime. 
>>
>> When we deprecated the M/S datastore, we introduced a migration 
>> toolthat
>>  allows you to easily migrate all your datastore and blobstore data to 
>> a new HRD application. Migrating your application will not require you to 
>> change your application’s URL, whether it serves from appspot.com or a 
>> custom domin. Please note that even if your application does not store any 
>> data in the datastore, it will still benefit from the automated datacenter 
>> failover that is only available to HRD applications. 
>>
>> Before migrating your application, you should read about the differences 
>> between M/S and HRD, and understand how the consistency policy for 
>> HRDmight
>>  affect the queries in your application. 
>>
>> All HRD applications that have billing enabled are covered by App 
>> Engine’s 99.95% uptime SLA . 
>> Along with the substantial reliability improvements, many new App Engine 
>> features are only being made available to HRD applications, including the 
>> Python 2.7 language option, Full Text Search (FTS), and Page Speed 
>> integration. 
>>
>> We strongly encourage you to migrate your applications as soon as 
>> possible. If you have technical questions about HRD or the migration 
>> process, you can post them to Stack 
>> Overflow. 
>> Any general migration discussions can be posted to our Google 
>> Group.
>>  
>>
>>
>>
>> Thank You,
>>
>> The App Engine Team 
>>
>> © 2012 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043 
>> You have received this mandatory email service announcement to update you 
>> about important changes to your Google App Engine account. 
>>
>>
>>  -- 
>> 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-a...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> google-appengi...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>

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

[google-appengine] RedirectTooLongError

2010-04-03 Thread Sargis Dallakyan
Greeting,

I'd like thank GAE team for making a great product before I describe
the error message. The error message I'm getting is
RedirectTooLongError and its caused by Google Friend Connect. Did
anyone else got a similar error or knows how to fix this? Here is the
full message:

/?container=friendconnect&mid=0&nocache=0&view=profile&parent=http%3A
%2F%2Ffood-prints.appspot.com%2F&url=http%3A%2F%2Fwww.google.com
%2Ffriendconnect%2Fgadgets
%2Ffriendbar.xml&communityId=14391792993796922712&caller=http%3A%2F
%2Ffood-prints.appspot.com%2F%3Fcontainer%3Dfriendconnect%26mid
%3D0%26nocache%3D0%26view%3Dprofile%26parent%3Dhttp%253A%252F%252Ffood-
prints.appspot.com%252F%26url%3Dhttp%253A%252F%252Fwww.google.com
%252Ffriendconnect%252Fgadgets%252Ffriendbar.xml%26communityId
%3D14391792993796922712%26caller%3Dhttp%253A%252F%252Ffood-
prints.appspot.com%252F%253Fcontainer%253Dfriendconnect%2526mid
%253D0%2526nocache%253D0%2526view%253Dprofile%2526parent%253Dhttp
%25253A%25252F%25252Ffood-prints.appspot.com%25252F%2526url%253Dhttp
%25253A%25252F%25252Fwww.google.com%25252Ffriendconnect%25252Fgadgets
%25252Ffriendbar.xml%2526communityId
%253D14391792993796922712%2526caller%253Dhttp%25253A%25252F%25252Ffood-
prints.appspot.com%25252F%25253Fcontainer%25253Dfriendconnect%252526mid
%25253D0%252526nocache%25253D0%252526view%25253Dprofile%252526parent
%25253Dhttp%2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F
%252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.google.com
%2525252Ffriendconnect%2525252Fgadgets%2525252Ffriendbar.xml
%252526communityId%25253D14391792993796922712%252526caller%25253Dhttp
%2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F
%252526rpctoken%25253D738204277%2526rpctoken%253D1195246813%26rpctoken
%3D94139494&rpctoken=965785636 500 39ms 0cpu_ms 0kb Mozilla/5.0
(compatible; Konqueror/4.4; Linux) KHTML/4.4.0 (like Gecko) Fedora/
4.4.0-9.fc12,gzip(gfe)
See details

84.92.192.145 - - [16/Mar/2010:07:28:11 -0700] "GET /?
container=friendconnect&mid=0&nocache=0&view=profile&parent=http%3A%2F
%2Ffood-prints.appspot.com%2F&url=http%3A%2F%2Fwww.google.com
%2Ffriendconnect%2Fgadgets
%2Ffriendbar.xml&communityId=14391792993796922712&caller=http%3A%2F
%2Ffood-prints.appspot.com%2F%3Fcontainer%3Dfriendconnect%26mid
%3D0%26nocache%3D0%26view%3Dprofile%26parent%3Dhttp%253A%252F%252Ffood-
prints.appspot.com%252F%26url%3Dhttp%253A%252F%252Fwww.google.com
%252Ffriendconnect%252Fgadgets%252Ffriendbar.xml%26communityId
%3D14391792993796922712%26caller%3Dhttp%253A%252F%252Ffood-
prints.appspot.com%252F%253Fcontainer%253Dfriendconnect%2526mid
%253D0%2526nocache%253D0%2526view%253Dprofile%2526parent%253Dhttp
%25253A%25252F%25252Ffood-prints.appspot.com%25252F%2526url%253Dhttp
%25253A%25252F%25252Fwww.google.com%25252Ffriendconnect%25252Fgadgets
%25252Ffriendbar.xml%2526communityId
%253D14391792993796922712%2526caller%253Dhttp%25253A%25252F%25252Ffood-
prints.appspot.com%25252F%25253Fcontainer%25253Dfriendconnect%252526mid
%25253D0%252526nocache%25253D0%252526view%25253Dprofile%252526parent
%25253Dhttp%2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F
%252526url%25253Dhttp%2525253A%2525252F%2525252Fwww.google.com
%2525252Ffriendconnect%2525252Fgadgets%2525252Ffriendbar.xml
%252526communityId%25253D14391792993796922712%252526caller%25253Dhttp
%2525253A%2525252F%2525252Ffood-prints.appspot.com%2525252F
%252526rpctoken%25253D738204277%2526rpctoken%253D1195246813%26rpctoken
%3D94139494&rpctoken=965785636 HTTP/1.1" 500 124 "http://food-
prints.appspot.com/?
container=friendconnect&mid=0&nocache=0&view=profile&parent=http%3A%2F
%2Ffood-prints.appspot.com%2F&url=http%3A%2F%2Fwww.google.com
%2Ffriendconnect%2Fgadgets
%2Ffriendbar.xml&communityId=14391792993796922712&caller=http%3A%2F
%2Ffood-prints.appspot.com%2F%3Fcontainer%3Dfriendconnect%26mid
%3D0%26nocache%3D0%26view%3Dprofile%26parent%3Dhttp%253A%252F%252Ffood-
prints.appspot.com%252F%26url%3Dhttp%253A%252F%252Fwww.google.com
%252Ffriendconnect%252Fgadgets%252Ffriendbar.xml%26communityId
%3D14391792993796922712%26caller%3Dhttp%253A%252F%252Ffood-
prints.appspot.com%252F%253Fcontainer%253Dfriendconnect%2526mid
%253D0%2526nocache%253D0%2526view%253Dprofile%2526parent%253Dhttp
%25253A%25252F%25252Ffood-prints.appspot.com%25252F%2526url%253Dhttp
%25253A%25252F%25252Fwww.google.com%25252Ffriendconnect%25252Fgadgets
%25252Ffriendbar.xml%2526communityId
%253D14391792993796922712%2526caller%253Dhttp%25253A%25252F%25252Ffood-
prints.appspot.com%25252F%2526rpctoken%253D738204277%26rpctoken
%3D1195246813&rpctoken=94139494" "Mozilla/5.0 (compatible; Konqueror/
4.4; Linux) KHTML/4.4.0 (like Gecko) Fedora/4.4.0-9.fc12,gzip(gfe)"
"food-prints.appspot.com"

Thanks!

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

[google-appengine] High Cpu Http Requests

2009-10-07 Thread Sargis Dallakyan

Greetings,

I just checked my app and noticed a new entry called High Cpu Http
Requests in the Dashboard. When I click on Quota Details, it's listed
under Other Quotas With Warnings: These quotas are only show when they
have warnings. Could you please let me know where I can find more info
about "High Cpu Http Requests".

Here are more details about this issue:
High Cpu Http Requests98%  9031218452753634304 of
9223372036854775808  This resource is currently experiencing a short-
term quota limit.
Erratic App Behavior 170%  0 of 9223372036854775808  This resource
is currently experiencing a short-term quota limit.
Erratic App Behavior 180%  0 of 9223372036854775808

Thanks,
Sargis
--~--~-~--~~~---~--~~
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: High Cpu Http Requests

2009-10-07 Thread Sargis Dallakyan

I'm now down to 94% for "High Cpu Http Requests". Lets hope it
disappears by tomorrow.

On Oct 7, 6:57 pm, "B.J."  wrote:
> Me, too.
>
> On Oct 7, 8:47 pm, Brandon Thomson  wrote:
>
>
>
> > Hmm, I see the same thing...
>
> > On Oct 7, 9:43 pm, Sargis Dallakyan  wrote:
>
> > > Greetings,
>
> > > I just checked my app and noticed a new entry called High Cpu Http
> > > Requests in the Dashboard. When I click on Quota Details, it's listed
> > > under Other Quotas With Warnings: These quotas are only show when they
> > > have warnings. Could you please let me know where I can find more info
> > > about "High Cpu Http Requests".
>
> > > Here are more details about this issue:
> > > High Cpu Http Requests    98%  9031218452753634304 of
> > > 9223372036854775808  This resource is currently experiencing a short-
> > > term quota limit.
> > > Erratic App Behavior 17    0%  0 of 9223372036854775808  This resource
> > > is currently experiencing a short-term quota limit.
> > > Erratic App Behavior 18    0%  0 of 9223372036854775808
>
> > > Thanks,
> > > Sargis- 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: bulkload_client.py not working

2008-11-28 Thread Sargis Dallakyan

I had the same problem with bulk load; removing 'login: admin' from
app.yaml solved the problem. Its strange that this works on Linux and
fails on Windows. This might have something to do with copy/paste on
cmd window.

Regarding CSV data format, csv module in python lets you choose
delimiter http://www.python.org/doc/2.5.2/lib/csv-examples.html and it
would be nice if this can be passed as a command line option for
bulkload_client.py. I was able to modify my local App Engine SDK to
have '|' as a delimiter, for instance, but when it was time to upload
data to appspot.com, I replaced '.' with ':' in my data with a simple
python script [1].

Also bulkload_client.py can;t handle Unicode so you'll need to replace
them with ASCII. You can convert them back to Unicode with Data Viewer
later on if needed.

[1] Here is the script that I used to convert ',' to ':'. Note that my
input file has delimiter='|'.

import sys, csv
fileName = sys.argv[1]
reader = csv.reader(open(fileName, "rb"), delimiter='|',)
out = open('mod_'+fileName,'w')
for row in reader:
for item in row[:-1]:
out.write(item.replace(',',':'))
out.write(',')
out.write(row[-1].replace(',',':'))
out.write('\n')
out.close()

On Nov 18, 10:34 pm, Gampesh <[EMAIL PROTECTED]> wrote:
> Thanks a lot Marzia i really appreciate your troubleshooting you are
> great :) thanks
>
> Now data is importing comma separated CSV file but what if in my data
> have ","   as a content.
>
> Thanks
>
> On Nov 19, 12:14 am, Gampesh <[EMAIL PROTECTED]> wrote:
>
> > it shows error to me if i remove login:admin from app.yaml
>
> > On Wed, Nov 19, 2008 at 12:42 AM, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> > > Does it work when you remove the login: admin from the app.yaml for this
> > > handler?
>
> > > -Marzia
>
> > > On Tue, Nov 18, 2008 at 10:53 AM, Gampesh <[EMAIL PROTECTED]> wrote:
>
> > >> hi,
>
> > >> i did it in different browser but was not lucky i am very frustrate. i am
> > >> burning my time since last two days, still burning.
>
> > >> thanks Marzia for your kind help.
>
> > >> Thanks
>
> > >> On Wed, Nov 19, 2008 at 12:18 AM, Marzia Niccolai <[EMAIL 
> > >> PROTECTED]>wrote:
>
> > >>> Might be worth temporarily removing the admin restriction from the
> > >>> handler, omitting the cookie, and then trying to upload.  If this 
> > >>> works, you
> > >>> know there is a problem with the cookie, so then you can sign out of 
> > >>> your
> > >>> account, flush the browser cache, and try to re-generate a cookie for 
> > >>> the
> > >>> site.
>
> > >>> -Marzia
>
> > >>> On Tue, Nov 18, 2008 at 10:34 AM, Gampesh <[EMAIL PROTECTED]> wrote:
>
> >  yes i am getting same error that
>
> >  302 Moved
> >    The document has moved
> >    here.
> >    ERROR 2008-11-17 13:16:43,453 bulkload_client.py] Import failed
>
> >  On Tue, Nov 18, 2008 at 11:45 PM, Marzia Niccolai <[EMAIL 
> >  PROTECTED]>wrote:
>
> > > Is the error still 302? Or did it generate another error? The 302
> > > definitely indicates that the authentication isn't working, but a 
> > > different
> > > error would mean something else.
>
> > > Also, reading over the docstring for bulkload, it seems you can
> > > simplify this code by just having the file be:
>
> > > inventory = bulkload.Loader('Inventory', [("name", str),("quantity",
> > > int)])
>
> > > if __name__ == "__main__":
> > >   bulkload.main(inventory)
>
> > > -Marzia
>
> > > On Tue, Nov 18, 2008 at 9:50 AM, Gampesh <[EMAIL PROTECTED]> wrote:
>
> > >> hi,
> > >> but i have passed --cookie which is generated after visiting "
> > >> famousandspicy.appspot.com/load" but still it is not working.
>
> > >> thanks
>
> > >> On Tue, Nov 18, 2008 at 11:01 PM, Marzia Niccolai <[EMAIL 
> > >> PROTECTED]>wrote:
>
> > >>> Hi,
>
> > >>> The 302 means that login is required, so you need to make sure you
> > >>> are passing in the correct --cookie parameter to the command line.
>
> > >>> Visit famousandspicy.appspot.com/load in the browser to retrieve the
> > >>> cookie to use for the bulkuploader.
>
> > >>> -Marzia
>
> > >>> On Mon, Nov 17, 2008 at 8:44 PM, Gampesh <[EMAIL PROTECTED]> wrote:
>
> >  My app.yaml is
>
> >  handlers:
> >  - url: /load
> >   script: loader.py
> >   login: admin
> >  - url: /.*
> >   script: main.py
>
> >  loader.py is
>
> >  from google.appengine.ext import bulkload
>
> >  class InventoryLoader(bulkload.Loader):
> >     def __init__(self):
> >         fields = [
> >             ("name", str),
> >             ("quantity", int)
> >         ]
>
> >         bulkload.Loader.__init__(self, "Inventory", fields)
>
> >  if __name__ == "__main__":
> >     bulkload.main(InventoryLoader())
>
> >  my inventory.csv is in the c:/ and i fire a command that

[google-appengine] Re: SWFObject, dynamic URIs and flash.

2009-03-13 Thread Sargis Dallakyan

You'll need to tell GEA to server swf as a static file.
http://code.google.com/appengine/docs/python/gettingstarted/staticfiles.html

For an example see this page that I created:
http://food-prints.appspot.com/static/html/calculator.html

Please let me know if you need more information.
Sargis

On Mar 12, 3:20 am, Tim Bull  wrote:
> Hi,
>
> I'm new to Google Appengine and Python programming and I've been
> having a problem that's just plain driving me nuts!
>
> I want to implement a RESTful style API, such that when I enter:
>
> http:///trend/
>
> A page loads and displays information about the trend.
>
> I've already successfully implemented Open Flash Chart 2 and SWFObject
> for a "basic" root URL.
>
> e.g. http:///somepage?parameter=xyz
>
> Some of the logic is inside Django templates, but the end result of
> the relevant code outputed is this.
>
>   
>   
>   swfobject.embedSWF(
>   "OFC.swf", "graph",
>   "450", "450", "9.0.0", "expressInstall.swf",
>   { "data-file": "api/graph/LISTALLTIME" });
>   
>
> So far so good.  The relevant "bit" here is the "OFC.swf" reference
> which is the Open Flash Chart 2 SWF object we are executing.
>
> The problem comes when I move to a "dynamic" URL.
>
> Here's some of my APP.YAML and the WSGIApplication call.
>
> handlers:
> - url: /OFC.swf
>   static_files: flash/OFC.swf
>   upload: flash/OFC.swf
>
> - url: /.*
>   script: twendly.py
>
> application = webapp.WSGIApplication(
>  [('/', MainPage),
>   (r'/trend/(.*)', GraphTrend),
>   (r'/api/graph/(.*)/(.*)',
> GraphTrendValues),
>   (r'/api/graph/(.*)',
> GraphValues),
> ], debug = True)
>
> So when I call http:///trend/ everything seems to
> work as it should and I end up with this in my HTML
>
>   
>   
>   swfobject.embedSWF(
>   "/OFC.swf", "graph",
>   "450", "450", "9.0.0", "expressInstall.swf",
>   { "data-file": "api/graph/LIST1HR/watchmen" });
>   
>
> Looks good BUT it it's not locating the OFC.swf file successfully.
>
> This has bugged me for days and tonight I figured I get rid of the
> "trend" directory and do it as a top level URI e.g. change my
> WSGI.Application call to this instead:
>
> application = webapp.WSGIApplication(
>  [('/', MainPage),
>   (r'/(.*)', GraphTrend),
> < NOTE CHANGE ON THIS LINE
>   (r'/api/graph/(.*)/(.*)',
> GraphTrendValues),
>   (r'/api/graph/(.*)',
> GraphValues),
> ], debug = True)
>
> And call http:///
>
> Everything works! Graph loads etc. - this all makes me think it's got
> something to do with relative URL paths, but I would of expected /
> OFC.SWF to load it from the root where the APP.YAML is redirecting.
>
> For reasons of elegance (and not getting stumped) I really want to
> implement it with the "trend" key word as part of the URI, but this
> seems to be a no go at the moment.
>
> I'm guessing I need a different configuration for my APP.YAML, but I'm
> really stuck.
>
> Can anyone help me out?
>
> Thanks!
>
> Tim

--~--~-~--~~~---~--~~
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: SWFObject, dynamic URIs and flash.

2009-03-13 Thread Sargis Dallakyan

Tim,

In your app.yal you wrote:

- url: /OFC.swf
  static_files: flash/OFC.swf
  upload: flash/OFC.swf

replace this with the followoing if you want to serve OFC.swf from /

- url: /OFC.swf
  static_files: /OFC.swf
  upload: /OFC.swf

If you are planning to add other static files, and unless you have to
put them in /, its better to declare static_dir and put this kind of
files there. Adding static_files is ok for files like sitemap or
robot.txt, but to avoid adding new lines for every new .swf  added, it
better to keep them under static dir.

Cheers,
Sargis



On Mar 13, 2:57 pm, Tim Bull  wrote:
> Sargis,
>
> Thanks for answering -- I've already tried this a few times.  My current
> APP.YAML is included above, is this incorrectly specifying the SWF as a
> static file?
>
> Cheers,
>
> Tim
>
> On Fri, Mar 13, 2009 at 11:27 AM, Sargis Dallakyan wrote:
>
>
>
>
>
> > You'll need to tell GEA to server swf as a static file.
>
> >http://code.google.com/appengine/docs/python/gettingstarted/staticfil...
>
> > For an example see this page that I created:
> >http://food-prints.appspot.com/static/html/calculator.html
>
> > Please let me know if you need more information.
> > Sargis
>
> > On Mar 12, 3:20 am, Tim Bull  wrote:
> > > Hi,
>
> > > I'm new to Google Appengine and Python programming and I've been
> > > having a problem that's just plain driving me nuts!
>
> > > I want to implement a RESTful style API, such that when I enter:
>
> > > http:///trend/
>
> > > A page loads and displays information about the trend.
>
> > > I've already successfully implemented Open Flash Chart 2 and SWFObject
> > > for a "basic" root URL.
>
> > > e.g. http:///somepage?parameter=xyz
>
> > > Some of the logic is inside Django templates, but the end result of
> > > the relevant code outputed is this.
>
> > >   
> > >   
> > >   swfobject.embedSWF(
> > >   "OFC.swf", "graph",
> > >   "450", "450", "9.0.0", "expressInstall.swf",
> > >   { "data-file": "api/graph/LISTALLTIME" });
> > >   
>
> > > So far so good.  The relevant "bit" here is the "OFC.swf" reference
> > > which is the Open Flash Chart 2 SWF object we are executing.
>
> > > The problem comes when I move to a "dynamic" URL.
>
> > > Here's some of my APP.YAML and the WSGIApplication call.
>
> > > handlers:
> > > - url: /OFC.swf
> > >   static_files: flash/OFC.swf
> > >   upload: flash/OFC.swf
>
> > > - url: /.*
> > >   script: twendly.py
>
> > > application = webapp.WSGIApplication(
> > >                                      [('/', MainPage),
> > >                                       (r'/trend/(.*)', GraphTrend),
> > >                                       (r'/api/graph/(.*)/(.*)',
> > > GraphTrendValues),
> > >                                       (r'/api/graph/(.*)',
> > > GraphValues),
> > > ], debug = True)
>
> > > So when I call http:///trend/ everything seems to
> > > work as it should and I end up with this in my HTML
>
> > >   
> > >   
> > >   swfobject.embedSWF(
> > >   "/OFC.swf", "graph",
> > >   "450", "450", "9.0.0", "expressInstall.swf",
> > >   { "data-file": "api/graph/LIST1HR/watchmen" });
> > >   
>
> > > Looks good BUT it it's not locating the OFC.swf file successfully.
>
> > > This has bugged me for days and tonight I figured I get rid of the
> > > "trend" directory and do it as a top level URI e.g. change my
> > > WSGI.Application call to this instead:
>
> > > application = webapp.WSGIApplication(
> > >                                      [('/', MainPage),
> > >                                       (r'/(.*)', GraphTrend),
> > > < NOTE CHANGE ON THIS LINE
> > >                                       (r'/api/graph/(.*)/(.*)',
> > > GraphTrendValues),
> > >                                       (r'/api/graph/(.*)',
> > > GraphValues),
> > > ], debug = True)
>
> > > And call http:///
>
> > > Everything works! Graph loads etc. - this all makes me think it's got
> > > something to do with relative URL paths, but I would of expected /
> > > OFC.SWF to load it from the root where the APP.YAML is redirecting.
>
> > > For reasons of elegance (and not getting stumped) I really want to
> > > implement it with the "trend" key word as part of the URI, but this
> > > seems to be a no go at the moment.
>
> > > I'm guessing I need a different configuration for my APP.YAML, but I'm
> > > really stuck.
>
> > > Can anyone help me out?
>
> > > Thanks!
>
> > > Tim- 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: SWFObject, dynamic URIs and flash.

2009-03-13 Thread Sargis Dallakyan

> - url: /OFC.swf
>   static_files: /OFC.swf
>   upload: /OFC.swf

Sorry, there is should be
 - url: /OFC.swf
   static_files: OFC.swf
   upload: OFC.swf

No slashes in 2nd and 3rd line.

> If you are planning to add other static files, and unless you have to
> put them in /, its better to declare static_dir and put this kind of
> files there. Adding static_files is ok for files like sitemap or
> robot.txt, but to avoid adding new lines for every new .swf  added, it
> better to keep them under static dir.
>
> Cheers,
> Sargis
>
> On Mar 13, 2:57 pm, Tim Bull  wrote:
>
>
>
> > Sargis,
>
> > Thanks for answering -- I've already tried this a few times.  My current
> > APP.YAML is included above, is this incorrectly specifying the SWF as a
> > static file?
>
> > Cheers,
>
> > Tim
>
> > On Fri, Mar 13, 2009 at 11:27 AM, Sargis Dallakyan 
> > wrote:
>
> > > You'll need to tell GEA to server swf as a static file.
>
> > >http://code.google.com/appengine/docs/python/gettingstarted/staticfil...
>
> > > For an example see this page that I created:
> > >http://food-prints.appspot.com/static/html/calculator.html
>
> > > Please let me know if you need more information.
> > > Sargis
>
> > > On Mar 12, 3:20 am, Tim Bull  wrote:
> > > > Hi,
>
> > > > I'm new to Google Appengine and Python programming and I've been
> > > > having a problem that's just plain driving me nuts!
>
> > > > I want to implement a RESTful style API, such that when I enter:
>
> > > > http:///trend/
>
> > > > A page loads and displays information about the trend.
>
> > > > I've already successfully implemented Open Flash Chart 2 and SWFObject
> > > > for a "basic" root URL.
>
> > > > e.g. http:///somepage?parameter=xyz
>
> > > > Some of the logic is inside Django templates, but the end result of
> > > > the relevant code outputed is this.
>
> > > >   
> > > >   
> > > >   swfobject.embedSWF(
> > > >   "OFC.swf", "graph",
> > > >   "450", "450", "9.0.0", "expressInstall.swf",
> > > >   { "data-file": "api/graph/LISTALLTIME" });
> > > >   
>
> > > > So far so good.  The relevant "bit" here is the "OFC.swf" reference
> > > > which is the Open Flash Chart 2 SWF object we are executing.
>
> > > > The problem comes when I move to a "dynamic" URL.
>
> > > > Here's some of my APP.YAML and the WSGIApplication call.
>
> > > > handlers:
> > > > - url: /OFC.swf
> > > >   static_files: flash/OFC.swf
> > > >   upload: flash/OFC.swf
>
> > > > - url: /.*
> > > >   script: twendly.py
>
> > > > application = webapp.WSGIApplication(
> > > >                                      [('/', MainPage),
> > > >                                       (r'/trend/(.*)', GraphTrend),
> > > >                                       (r'/api/graph/(.*)/(.*)',
> > > > GraphTrendValues),
> > > >                                       (r'/api/graph/(.*)',
> > > > GraphValues),
> > > > ], debug = True)
>
> > > > So when I call http:///trend/ everything seems to
> > > > work as it should and I end up with this in my HTML
>
> > > >   
> > > >   
> > > >   swfobject.embedSWF(
> > > >   "/OFC.swf", "graph",
> > > >   "450", "450", "9.0.0", "expressInstall.swf",
> > > >   { "data-file": "api/graph/LIST1HR/watchmen" });
> > > >   
>
> > > > Looks good BUT it it's not locating the OFC.swf file successfully.
>
> > > > This has bugged me for days and tonight I figured I get rid of the
> > > > "trend" directory and do it as a top level URI e.g. change my
> > > > WSGI.Application call to this instead:
>
> > > > application = webapp.WSGIApplication(
> > > >                                      [('/', MainPage),
> > > >                                       (r'/(.*)', GraphTrend),
> > > > < NOTE CHANGE ON THIS LINE
> > > >                                       (r'/api/graph/(.*)/(.*)',
> &

[google-appengine] Re: Error sending email

2009-03-15 Thread Sargis Dallakyan

The sender must be the email address of a registered administrator for
the application, or the address of the current signed-in user:
http://code.google.com/appengine/docs/python/mail/emailmessagefields.html


On Mar 15, 6:28 pm, Ronn Ross  wrote:
> I'm trying to send an email using the following code:
>           message = mail.EmailMessage(sender="supp...@myappname.com",
>                             subject="this is the subject")
>                 message.to = "John Doe "
>                 message.body = "this is the body"
>
>                 message.send()
>
> and here is the error I'm getting from app engine:
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
> line 503, in __call__
>     handler.post(*groups)
>   File "/base/data/home/apps/lavortaro/1.332099322772630499/lavortaro.py",
> line 40, in post
>     message.send()
>   File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> line 477, in send
>     raise ERROR_MAP[e.application_error](e.error_detail)
> InvalidSenderError
>
> I'm new to app engine and python. Can someone please help?
>
> Thanks
--~--~-~--~~~---~--~~
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: Lost source code --help retrieving

2009-03-17 Thread Sargis Dallakyan

I came across this nice app recently:
http://enter.appspot.com

I would try the following, if I was in your place:
Register another app with the same account and upload this app and
maybe this one for debugging:
http://con.appspot.com

Your app engine files are located at "/base/data/home/apps/"+app_id
+"/"+version_id. You can find your
app_id and version_id by logging into App Engine and checking your
Dashboard url:

See if you can list your app egine directory from another app, you
created, and let us know if you succeed.


On Mar 17, 1:12 pm, Geetha  wrote:
> Hi
>
> I have uploaded my code into appspot.com and i lost my source code
> unfortunately..
>
> is there anyway i can get my source code from my running site>?
>
> any help..
>
> Thanks,
--~--~-~--~~~---~--~~
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] Blocking bad IPs

2009-03-21 Thread Sargis Dallakyan

I've got a user with 61.175.215.214 IP address (registered in China)
tring to hack my app and I was wandering what would be the best way to
handle this kind of users? I've searched and found issue 718:
http://code.google.com/p/googleappengine/issues/detail?id=718

But, for now, I'm thinking of redirecting them either to a login page
or to some other URL. What would be the best URL to redirect
unauthorized users who are trying  to harm your app?

Thank you,
Sargis
--~--~-~--~~~---~--~~
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: Blocking bad IPs

2009-03-22 Thread Sargis Dallakyan

Thank you for starring these issues. I've got another spammer today
with IP  address 194.8.75.147. This one is from UK.

Cheers,
Sargis

On Mar 22, 4:07 am, xml2jsonp  wrote:
> I starred the issues 718 and 644.
>
> --
> Web Blue Screen of Deathhttp://pyoohtml.appspot.com/web-blue-screen-of-death
>
> On Mar 22, 4:50 am, Sargis Dallakyan  wrote:
>
>
>
> > I've got a user with 61.175.215.214 IP address (registered in China)
> > tring to hack my app and I was wandering what would be the best way to
> > handle this kind of users? I've searched and found issue 
> > 718:http://code.google.com/p/googleappengine/issues/detail?id=718
>
> > But, for now, I'm thinking of redirecting them either to a login page
> > or to some other URL. What would be the best URL to redirect
> > unauthorized users who are trying  to harm your app?
>
> > Thank you,
> > Sargis- 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: Sitemaps

2009-04-04 Thread Sargis Dallakyan

Sitemap does need to be an xml file, however, you need to tell GAE
that its a static file by include a statement similar to this one in
your app.yaml

- url: /sitemap
  static_files: sitemap
  upload: sitemap

Replace sitemap with sitemap.xml, if needed.

On Apr 4, 1:01 pm, Nora  wrote:
> Hello,
> I need to develop a sitemap for my application.  I understand that it
> is an xml file.  Do I add a link to this file in my website.  I keep
> getting that google crawler is unable to find this sitemap.xml in my
> application.  I created the file autmoatically using google tools and
> just left it with the rest of the filesCould anyone please let me
> know how to handle this sitemap file?
>
> Thank you very much.
--~--~-~--~~~---~--~~
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: Sitemaps

2009-04-04 Thread Sargis Dallakyan

> Sitemaps can be plain text files as well:http://sitemaps.org/protocol.php

Thank you for pointing this out. I meant to write that it doesn't need
to be an xml file.


> On Sat, Apr 4, 2009 at 10:31 PM, Sargis Dallakyan wrote:
>
>
>
>
>
>
>
> > Sitemap does need to be an xml file, however, you need to tell GAE
> > that its a static file by include a statement similar to this one in
> > your app.yaml
>
> > - url: /sitemap
> >  static_files: sitemap
> >  upload: sitemap
>
> > Replace sitemap with sitemap.xml, if needed.
>
> > On Apr 4, 1:01 pm, Nora  wrote:
> > > Hello,
> > > I need to develop a sitemap for my application.  I understand that it
> > > is an xml file.  Do I add a link to this file in my website.  I keep
> > > getting that google crawler is unable to find this sitemap.xml in my
> > > application.  I created the file autmoatically using google tools and
> > > just left it with the rest of the filesCould anyone please let me
> > > know how to handle this sitemap file?
>
> > > Thank you very much.
>
> --
>
> Alkis- 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] Urgent - Potential Vulnerability Issues with HTTP_X_ZOO

2010-12-23 Thread Sargis Dallakyan
I was using Webmaster Tools to check for links to my site and I was
surprised to see that one of the sites was making the exact copy of my
site. It wasn't web scraping, since changes made to my site would
appear immediately on a copy site. I tried to search for possible
clues in blacklists and the log, but couldn't find anything that would
show me how they do that. I searched the web and this forum and no one
seems to be reporting similar problem.

I wouldn't be concerned with this, as they kept my AdSense id, but
since this has negative impact on my Google search ranking, I decided
to investigate this further. Long story short, I logged my
self.request.environ and found this (I'm showing here only relevant
part):

{''HTTP_HOST': 'nutricion.kicksmx.com', 'HTTP_X_ZOO': 'app-id=food-
prints,domain=kicksmx.com', 'HTTP_X_APPENGINE_DEFAULT_NAMESPACE':
'kicksmx.com', 'SERVER_NAME': 'nutricion.kicksmx.com',
''HTTP_X_GOOGLE_APPS_METADATA': 'domain=kicksmx.com',
'APPLICATION_ID': 'food-prints' '}

So to fix this problem I added the following code in my
BaseRequestHandler:

if self.request.environ['SERVER_NAME'] != "food-
prints.appspot.com":
logging.error(self.request.environ)
self.redirect("http://food-prints.appspot.com";)

I'm posting this here hoping that GAE team would fix this so that only
authorized domains would be able to server the requests.

Thanks,
Sarkis

__
http://www.google.com/profiles/dallakyans#about

-- 
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] Re: Urgent - Potential Vulnerability Issues with HTTP_X_ZOO

2010-12-23 Thread Sargis Dallakyan
Thank you for the message Nick. It's nice to know that it's a feature
and not a bug. I'll need to learn more about pros and cons of this
feature.

Also, my widgets from Google Friend Connect where not rendering
because of the difference in the URL.

Happy Holidays!
Sargis


On Dec 23, 4:41 pm, "Nick Johnson (Google)" 
wrote:
> Hi Sargis,
>
> This is known and expected behaviour - anyone can add any App Engine app to
> their domain in Google Apps. They are not running a copy of your site - they
> are merely pointing their domain at your site. If you wish to prevent it,
> you can include hostname checks in your app, as you demonstrate.
>
> -Nick Johnson
>
> On Fri, Dec 24, 2010 at 3:08 AM, Sargis Dallakyan wrote:
>
>
>
> > I was using Webmaster Tools to check for links to my site and I was
> > surprised to see that one of the sites was making the exact copy of my
> > site. It wasn't web scraping, since changes made to my site would
> > appear immediately on a copy site. I tried to search for possible
> > clues in blacklists and the log, but couldn't find anything that would
> > show me how they do that. I searched the web and this forum and no one
> > seems to be reporting similar problem.
>
> > I wouldn't be concerned with this, as they kept my AdSense id, but
> > since this has negative impact on my Google search ranking, I decided
> > to investigate this further. Long story short, I logged my
> > self.request.environ and found this (I'm showing here only relevant
> > part):
>
> > {''HTTP_HOST': 'nutricion.kicksmx.com', 'HTTP_X_ZOO': 'app-id=food-
> > prints,domain=kicksmx.com', 'HTTP_X_APPENGINE_DEFAULT_NAMESPACE':
> > 'kicksmx.com', 'SERVER_NAME': 'nutricion.kicksmx.com',
> > ''HTTP_X_GOOGLE_APPS_METADATA': 'domain=kicksmx.com',
> > 'APPLICATION_ID': 'food-prints' '}
>
> > So to fix this problem I added the following code in my
> > BaseRequestHandler:
>
> >        if self.request.environ['SERVER_NAME'] != "food-
> > prints.appspot.com":
> >            logging.error(self.request.environ)
> >            self.redirect("http://food-prints.appspot.com";)
>
> > I'm posting this here hoping that GAE team would fix this so that only
> > authorized domains would be able to server the requests.
>
> > Thanks,
> > Sarkis
>
> > __
> >http://www.google.com/profiles/dallakyans#about
>
> > --
> > 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.
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047

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