Re: [google-appengine] Re: onowned Many2Many relationship management - how to handle

2010-01-19 Thread OvermindDL1
On Tue, Jan 19, 2010 at 1:32 AM, Siddharth Patnaik spatnai...@gmail.com wrote:
 Hi,
 Can you be little more elaborative?
 Do you mean that i should create another entity to store the
 relationship details from Tour-User and User-Tour?

Just as you might do it with SQL actually, here, some pseudo-code:

Table Tour; // definition snipped
Table User; // definition snipped

Table Tour_User_Link
{
int tour_id; // indexed
int user_id; // indexed
}

And anytime you create a many-to-many link you just create a new row
in Tour_User_Link with the id's set to the appropriate table id's.
Nothing special about it, this is how many-to-many is implemented in
any database system that I have ever seen so far...  How else could
you do it.  What were you trying to do?
-- 
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.




Re: [google-appengine] Re: onowned Many2Many relationship management - how to handle

2010-01-19 Thread OvermindDL1
On Tue, Jan 19, 2010 at 3:37 AM, Siddharth Patnaik spatnai...@gmail.com wrote:
 Hi,
 I know how to do this in a RDBMS. If i were using a OR mapping
 framework like hibernate i would have followed your apporach. However
 in GAE we are not doing OR mapping at all. In java class annotations
 we are not at all talking about Tables/columns etc etc. is n't it? We
 just know about the objects/properties and relationship. In the
 example we just know 2 objects User and Tour. I do not think we should
 create a third object called Tour_User_Link and take care of
 persistance/relationship management and querying ourselves.
 Do you agree? or Am i missing something?

Well as this is not the AppEngine Java mailing list (if you are asking
how to do this in Java, you should go there), I can not say, this is
the generic AppEngine mailing list, as such I can tell you how it is
done in the back-end, not Java, and in every RDBMS and ORM I have seen
them do link tables behind the scenes as well.  Even in a flat table
system like GAE you still need a link table.
-- 
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.




Re: [google-appengine] Re: onowned Many2Many relationship management - how to handle

2010-01-19 Thread OvermindDL1
On Tue, Jan 19, 2010 at 7:32 AM, OvermindDL1 overmind...@gmail.com wrote:
 On Tue, Jan 19, 2010 at 6:09 AM, Siddharth Patnaik spatnai...@gmail.com 
 wrote:
 This is GAE mailing list. Actually i am looking for a way how to
 achieve Many to many relationships in  GAE. Thats the reason i have
 posted my question here

 I have done it the exact same way I do it in other databases.

 I make a link table with two things of strings that I use the key of
 the other tables that I am linking together.  How else would you do
 it?

And do note what I said before, bigtable is not a relational database,
it is a flat table database, make sure you know the differences.
-- 
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.




Re: [google-appengine] Re: onowned Many2Many relationship management - how to handle

2010-01-18 Thread OvermindDL1
On Mon, Jan 18, 2010 at 10:49 PM, Siddharth Patnaik
spatnai...@gmail.com wrote:
 Hi Guys,
 This is an urgent issue for me. Can anyone of you please respond to
 this question? If the question is not clear or more info is required
 please let me know

 On Jan 17, 7:07 pm, Siddharth Patnaik spatnai...@gmail.com wrote:
 Hi,
 I have the following situation. I have 2 entities User and Tour and i
 wanted to have unowned relationship between these two. I have followed
 the the relationships article on GAE documentation. I am taking care
 of relationships at both the ends. However my problem is that only one
 side of the relationship is getting persisted. Here is my sample code:

 create a persistence manager, pm
 start transaction
 create Tour object
 set the values for this object
 add a user object //as part of this i am also adding the tour object
 to the user object
 pm.makePersistent(tour);
 commit the transaction

 My problem is,  the user object is never getting updated (with tour
 relationship info)
 How do i achieve this?


Why not just do ManyToMany like in a normal relational database.  Make
a link table that contains indexed id's to each of the others that are
linked?
-- 
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.




Re: [google-appengine] A REALLY strange problem

2010-01-17 Thread OvermindDL1
On Sun, Jan 17, 2010 at 12:48 AM, Abhinav Bhagwat
abhinavbhag...@gmail.com wrote:
 Did you try refreshing your browser cache? Press CTRL+F5 or even better go
 to browser options and clear the cache.

Actually, irritatingly, Ctrl+F5 will not clear the cache and refresh
in all browsers, but Ctrl+r generally always will.  It is best to
recommend Ctrl+r to clear the cache and refresh as I think that will
in all browsers (or the popular ones anyway).
-- 
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.




Re: [google-appengine] Stolen laptops

2010-01-17 Thread OvermindDL1
On Sun, Jan 17, 2010 at 3:05 PM, Stolen bike lady
jjkjhjkhhkjhy...@live.com wrote:
 Stolen laptops
 http://www.juststolen.net/
 Juststolen.net was created by police officers to provide the best
 possible asset tracking and property recovery services in the world.

 JustStolen.net is an innovative tool designed to easily register
 assets in order to facilitate their recovery if they are lost or
 stolen.
 Our powerful database provides consumers and business owners from all
 over the globe a place to safely record valuable information about
 their belongings. Our stolen property database of: Stolen GPS units,
 stolen laptops, stolen Ipods, stolen bikes, stolen guns, etc.. give
 law enforcement the information needed to prosecute thieves.
 If the property is lost or stolen, JustStolen.net works with law
 enforcement to return the property to the rightful owner. Once an item
 is recovered law enforcement agencies worldwide can search our
 powerful database to identify the rightful owner.
 http://www.juststolen.net/

So was this made on appengine or something?
-- 
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.




Re: [google-appengine] Total Stored Data ??

2010-01-17 Thread OvermindDL1
On Sun, Jan 17, 2010 at 9:50 AM, BIBAYA rock10061...@gmail.com wrote:
 Total Stored Data show i used 0.13 GB
 but Stored Data show i only use 3MB

 Total Stored Data show i used 0.01 GB one day ago
 and I only add 2 image about 160KB

 Total Stored Data       $0.005/GByte-day
 0%
        0%      0.13 of 201.00 GBytes   $0.00 / $1.00

 Last updated    Total number of entities        Size of all entities
 1:18:14 ago     156     3 MBytes
 Storage Space by Property Type
 pie chart
 Storage Space by Entity Kind
 pie chart
 Breakdown by Property Type Property Type        Size
 Blob    3 MBytes
 String  11 KBytes
 Integer         4 KBytes
 Date/Time       4 KBytes
 Text    633 Bytes
 User    592 Bytes
 Boolean         140 Bytes
 NULL    22 Bytes
 Metadata        29 KBytes

Remember, much of your data is going to be duplicated for each
additional index you have, my guess is that you have a lot of indexes.
-- 
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.




Re: [google-appengine] Re: This App Engine is a JOKE

2010-01-14 Thread OvermindDL1
On Thu, Jan 14, 2010 at 2:04 AM, Nickolas Daskalou n...@daskalou.com wrote:
 Wow, reading the comments on that issue scares me. Does Google really block
 App Engine access in those countries, or are those countries blocking GAE
 IPs?

It is mostly other countries blocking GAE.  If even one site on that
IP is not politically great for them, they tend to block it all.
Quite frankly I have no clue how the citizens let such a government
evolve...

GAE does block a couple due to embargos and such though I think, but
do not quote me.
-- 
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.




Re: [google-appengine] Re: This App Engine is a JOKE

2010-01-14 Thread OvermindDL1
On Thu, Jan 14, 2010 at 3:16 AM, WallyDD shaneb...@gmail.com wrote:
 Here is a page from a user in Syria;
 http://imgur.com/WGtuI

 Only China blocks GAE.
 The rest are blocked by google.

 Quite frankly I have no clue how the citizens let such a government
 evolve...
 Are we talking about the entire US government or just Hillary?

offtopic

Heh, any government I guess?

Reminds me of the quote:
  When the government fears the public, you have democracy.
  When the public fears the government, you have tyranny.
-- 
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.




Re: [google-appengine] OverQuotaError, but I have a huge allowance?

2010-01-11 Thread OvermindDL1
On Mon, Jan 11, 2010 at 10:44 AM, Emanuel emanuel.bergl...@gmail.com wrote:
 I am having problems when running an application I've built.

 I add users to my application by posting text through a regular form,
 the text is split by line breaks and then resulting array is then
 processed one entry at the time. The user is saved and afterwards a
 welcome email is sent out.

 I wanted to add 74 people to my application, but the function broke
 after 66 people had been added, just 6 people short, the page
 displayed this error:
 OverQuotaError: The API call mail.Send() required more quota than is
 available.

 This is odd because I have a huge allowance and according to the
 dashboard email quota:
 66.00 of 12000.00 Emails (1%)


 While going through the array row-by-row and processing each entry at
 the time I build up a string that will be displayed by the HTML once
 the whole list has been processed. This string is then passed on to
 the template rendering and displayed in the HTML.
 Could this affect what is taking place or would it not matter?

If is most likely that you were throttled, that is why you should
create a task to continue it in a few minutes.
-- 
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.




Re: [google-appengine] torrent-server : store and serve really big files using BitTorrent

2010-01-08 Thread OvermindDL1
On Fri, Jan 8, 2010 at 11:22 AM, Gavin  Andresen
gavinandre...@gmail.com wrote:
 I wanted to learn more about App Engine and the BitTorrent protocols,
 and I figured the best way to learn is by doing.  So I've created
 'torrent-server'; it lets you:

 Upload arbitrarily large files into the App Engine datastore (using a
 command-line python client and the App Engine remote_api, splitting
 them up into pieces smaller than the maximum datastore BLOB size).

 Download them using a BitTorrent client that supports the BitTorrent
 webseed protocols (you can also download directly via HTTP if the
 file is smaller than the 10MB App Engine response limit).  Downloading
 large, popular files this way will save you bandwidth costs, because
 the BitTorrent clients will try to get the file from each other first,
 and only use your server if they can't find other clients that have
 (or are downloading) pieces of the file.

 I also incorporated Allen Porter's open-tracker code, so torrent-
 server acts as a self-contained BitTorrent serving and tracking
 solution.

 Code is available (via svn checkout) at:  
 http://code.google.com/p/torrent-server/
 You can see it running at:  http://torrent-server.appspot.com/

Oh that is fascinating, could definitely cut down on bandwidth costs
if they share with each other too.  Do you throttle the server so it
does not send at max speed so the clients are more apt to get from
each other?
-- 
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.




Re: [google-appengine] Does GWT have a visual ui designer?

2010-01-07 Thread OvermindDL1
On Wed, Jan 6, 2010 at 10:15 PM, Haibo Huang hng...@gmail.com wrote:
 I just begin to learn about Google App Engine and GWT, and find that
 GWT is somehow similar to ASP.NET. Surely GWT uses RPC instead of HTTP
 post. I wonder is there any UI designer for GWT? Or is there any other
 tools to do this job?

How is GAE like ASP.NET at all?  GAE is just a server framework, not a
page generation framework, they are completely different domains.
-- 
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.




Re: [google-appengine] Re: Does GWT have a visual ui designer?

2010-01-07 Thread OvermindDL1
On Thu, Jan 7, 2010 at 12:08 PM, Jorge athenas...@gmail.com wrote:
 Not that I agree, but Haibo's point is probably that GAE + GWT ~
 ASP.NET

 I' ve been also looking for visual tools to develop GWT GUIs without
 success. Probably you want to take that question in a GWT forum, as
 tis is a GAE specialized forum.

Yeah, GAE has nothing to do with .NET things, maybe azure, but still,
nothing graphical, and GWT does not require GAE at all (unlike all the
nasty .NET interdependencies).
-- 
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.




Re: [google-appengine] Re: exception in min() of python

2010-01-06 Thread OvermindDL1
On Wed, Jan 6, 2010 at 7:44 PM, Wesley C (Google) wesc+...@google.com wrote:
 yep, this behavior is allowed because in Python, min is not a
 reserved word. unfortunately, this (lack of) restriction easily causes
 users to overwrite existing data and methods that are popular variable
 names.

 for future reference, aside from min, other well-known Python
 built-ins that are inadvertently used as variables include: len, str,
 list, dict, file, max, hash, type, object, set, id, dir, and buffer.

You can get a list of all built in names by __builtins__.
__builtins__ is a python list of string of everything that is at the
builtin (global) scope.
-- 
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.




Re: [google-appengine] Re: Anchor tags in server code

2010-01-04 Thread OvermindDL1
On Mon, Jan 4, 2010 at 8:38 PM, killer barney ajcha...@gmail.com wrote:
 ya, tha'ts what I figured.  The thing is, sometimes I see sites
 translate their anchor tags into url queries and I was trying to
 figure out how they did that.  Im' guessing it's all handled in the
 javascript onload that does a redireciton right?

I do that on my personal non-appengine site.  The url looks like this
on my site:
  http://mysite.com/#/user/profile/2
The entire site is controlled by a single controller, it loads up a
javascript bootstrap.  If the bootstrap fails (no xmlrpc or javascript
is disabled or something) then a meta-redirect redirects to a non
javascript version that looks like this:
  http://mysite.com/?_=/user/profile/2

The javascript version kills the meta-redirect and sends the pathname
to my server, and my server sends the parts of the page it needs.
Anytime the anchor changes it does another xmlrpc request that just
updates the parts of the pages that need to be updated.  Consequently
in javascript mode my site seems *very* fast.  In non-javascript mode
it sends the full page updates each time, but otherwise looks and acts
identically, just slower.

So yes, you need javascript to do it.  Although my server is
programmed using C++, not Python or Java or what-not slower languages.

--

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.




Re: [google-appengine] Re: Security offered by Google app engine infrastructure

2009-12-31 Thread OvermindDL1
On Thu, Dec 31, 2009 at 2:07 AM, Siddharth spatnai...@gmail.com wrote:
 Hi Wesley,
 Oh yes that helps. thanks for the clear response. I still feel there
 can be more potential risks that the application code can create in
 addition to what you have put on the link. For example a piece of code
 can keep on creating new Objects in an infinite loop causing a huge
 memory consumption. There can be many more such issues. How does the
 secured sandbox takes care of all this? i am curious to know how this
 has been addressed ?

GAE will happily kill any application that is taking too much power,
too much memory, too much anything, do not worry about that, it is
rather perfectly distributed and safe.

--

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.




Re: [google-appengine] Save storage: aggressive use of “indexed=False”

2009-12-30 Thread OvermindDL1
On Wed, Dec 30, 2009 at 10:12 AM, Dennis dennisf...@gmail.com wrote:
 I'm thinking I should use “indexed=False” aggressively to reduce the
 datastore storage expansion.
 Seems like if I'm too aggressive with it, I can always add an index
 back and rebuild the index.
 Just want to see if others are also using this strategy.

That is exactly what I was doing, works well for me.

--

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.




Re: [google-appengine] Re: Updating an object fails when accessing application through Twilio

2009-12-29 Thread OvermindDL1
On Tue, Dec 29, 2009 at 12:38 PM, mazen samir maze...@gmail.com wrote:
 plez dont seand to me any email mor

What does this phrase mean?  Where you having any issues with Twilio?

--

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.




Re: [google-appengine] GQL simple problem

2009-12-27 Thread OvermindDL1
On Sat, Dec 26, 2009 at 12:30 AM, Jonathan nyp...@gmail.com wrote:
  I'm about to go crazy... :(
 When adding the order by sorter it returns an error...
 any idea?

 greetings = db.GqlQuery(SELECT * FROM VisualBox WHERE creator
 = :wcreator 
                                      ORDER BY created DESC,
                                      wcreator='neokiko')

Is your created field indexed and have the indexes been built?

--

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.




Re: [google-appengine] authorized email senders

2009-12-26 Thread OvermindDL1
On Sun, Dec 27, 2009 at 12:49 AM, Locke locke2...@gmail.com wrote:
 The App Engine documentation says that to send an email to the users
 of my application, I must send it from the address of an authorized
 administrator.

 I need to send from an address used by someone who I DO NOT want to
 administer my application. Example: techsupp...@mycompany.com should
 certainly not have the ability to admin my app. Same applies to
 donotre...@mycompany.com.

 I would expect that I should be able to specify authorized senders
 either as an XML/YAML file or in the application management page
 (appengine.google.com), but I don't see a way. [Of course, I would
 expect the same sort of interface for specifying web domains--not
 being forced to sign up for Google Apps--but I digress.]

 How can I send email from non-administrators?

Route through some other server I would wager would be the popular
answer until they come up with something.  GAE is still beta/alpha
after all.

--

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.




Re: [google-appengine] can i get a domain 's ip address using appengine?

2009-12-24 Thread OvermindDL1
On Thu, Dec 24, 2009 at 10:14 PM, ajaxer calid...@gmail.com wrote:
 thanks.

Er... what are you talking about?  Elaborate?  Domain's IP?

--

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.




Re: [google-appengine] Re: can i get a domain 's ip address using appengine?

2009-12-24 Thread OvermindDL1
On Thu, Dec 24, 2009 at 10:34 PM, ajaxer calid...@gmail.com wrote:
 Domain's IP

But what about?

Are you wanting to do a DNS to IP lookup, that is simple to do and
python can do it itself no problem, nothing at all relating to GAE
about that, or are you talking about something else?

--

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.




Re: [google-appengine] Re: can i get a domain 's ip address using appengine?

2009-12-24 Thread OvermindDL1
2009/12/24 ajaxer calid...@gmail.com:
 how to do with python in gae?

Look at the tutorials.

And do resolve a domain name to a list of possible IP's in Python, do:

import socket
a = socket.gethostbyname_ex('google.com')


The variable a will then contain a 3-tuple, with the 3rd element
being a list of possible IP address that will resolve, so for the
above google.com lookup, it will be this:
('google.com', [], ['74.125.45.147', '74.125.45.106', '74.125.45.105',
'74.125.45.104', '74.125.45.103', '74.125.45.99'])

--

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.




Re: [google-appengine] Sessions

2009-12-21 Thread OvermindDL1
On Mon, Dec 21, 2009 at 12:44 PM, hemodroid hemodr...@gmail.com wrote:
 It seems like sessions do not last after you close your browser.
 Is it their normal behaviour?

HTTP has no concept of sessions, that is what you are supposed to do
yourself using cookies and such.  So yes, that is normal behavior on
every web server in existence.

--

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.




Re: [google-appengine] Live update - Comet app in GAE

2009-12-21 Thread OvermindDL1
On Mon, Dec 21, 2009 at 6:14 PM, William Heath wghe...@gmail.com wrote:
 GAE won't allow a permanent socket to be opened.  Live updating therefore is
 not possible.  The best you can do is poll with ajax.  I am very sad about
 this limitation with GAE.

Ditto, that is the only reason (well, one of two reasons) I am not
using GAE anymore.  No chance at all of keeping connections open for
server-push updating (ala gtalk inside gmail and such).  The other
reason is I prefer C++ to program websites in.  My little C++ web
server blows everything else out in terms of speed, and I can do all
the fancy stuff I could ever possibly imagine, like server-push and
websockets and such.

--

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.




Re: [google-appengine] gzip compression

2009-12-14 Thread OvermindDL1
On Mon, Dec 14, 2009 at 1:04 AM, HKHAIRANE hichamkhair...@gmail.com wrote:
 Hey everybody,

 i want to know how to disable  response compression in the server, i
 am requesting GAE with xmlrpc and the matter that standards xml cant
 read header when it's compressed, something like that
 any ideas
 thanks for your response

The server will not send it compressed unless the headers that you
give the server explicitly state that you can accept compressed data,
remove that and it will send it as 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-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.




Re: [google-appengine] RSS feed on Google App Engine for java

2009-12-11 Thread OvermindDL1
On Fri, Dec 11, 2009 at 11:12 AM, Rahul Jha rahul@tetrastorm.com wrote:
 Can some one help me setting up RSS feed on google app engine java
 Any related code will be of great help.

RSS is a very simple format, just stream out your RSS text with the
appropriate content type header, very simple.

--

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.




Re: [google-appengine] pretty printing

2009-12-09 Thread OvermindDL1
On Wed, Dec 9, 2009 at 10:19 AM, Martin Casey mar...@caseyis.com wrote:
 sorry if this seems like a simple question... i'm struggling a bit
 with printing the contents of a (python) object (returned from the
 data store) to the screen, just to see what's in it, much in the way
 that you might print_r on an array in php.  i've attempted to use
 the pprint (pretty print) functions, which generally reveal some
 details but not in a particularly readable fashion.  may i ask what
 other people use?

repl(some_python_object) will return a string of the python object in
an instanceable format.  You can:

print repl(something)

To get the python format of it.

--

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.




Re: [google-appengine] Re: how to delete a table/entity?

2009-12-06 Thread OvermindDL1
On Sun, Dec 6, 2009 at 7:36 PM, ajaxer calid...@gmail.com wrote:
 yes, i have tried.
 but i alway get timeouts.
 and the amount is more than millions maybe
 I uploading this data by bulk uploading for more than a day.

 I think it is very important to be able delete a table in a single act
 on the panel

You are thinking about this wrong.
GQL does not have a relational database design, it is an indexed blob
database, there is no concept of table as there is in SQL and such.
Instead you create 'kinds', which are more analogous to a message in
Google Protocol Buffers.  The things you specify as 'indexes' are
actually just those things pulled from the 'message'.  Each index you
specify creates a whole new 'table' with some duplicated data between
all the 'tables'.  So for any given kind you will have multiple
'tables' (this is not a SQL like table, this is more like a map/dict,
with ordering and such...).  Each index type can also have multiple
kinds in it (such as when you change the format of a kind, you are
creating a new one, but all still indexed together, meaning if you try
to access an old one from your new one, you get a nice exception
thrown, hence why you should always change your kind name when you
change your kind too).

So, a kind can have multiple indexes(tables), and each index(table)
can have multiple kinds.

GQL is not like SQL, you need to relearn things, starting with getting
the concept of tables out of your mind.  :)


P.S.  The above description is not perfectly accurate as to how it
works, but close enough to get the idea across.  :)

--

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.




Re: [google-appengine] My site seems to have been deleted

2009-12-04 Thread OvermindDL1
On Fri, Dec 4, 2009 at 5:28 PM, dartdog tombran...@gmail.com wrote:
 http://tombrander.appspot.com/
 It has been running for about a year now it just shows some blank
 html???
 I have not touched it not even as admin on the blog much less via the
 App-engine admin interface??
 What's up
 It had been running for about a year but vanished today (I think)

Just try re-uploading it, that seems to get that issue fixed.

--

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.




Re: [google-appengine] Question on using TextProperty()

2009-12-03 Thread OvermindDL1
On Thu, Dec 3, 2009 at 4:58 PM, Robert Kluin robert.kl...@gmail.com wrote:
 Just a guess here, but try wrapping the contents in a pre tag.  Probably
 they newlines are not getting displayed by the browser, have you viewed
 source to see if they are there?

 print 'pre%s/pre' % mymodel.directions

This is correct.  The HTML spec defines that newlines in the HTML
source are only for making the source easier to work with and should
not be displayed to the page.  The pre tag says to render the content
verbatim, newlines and all.  You normally handle newlines by use of
div/pre/etc...


 On Thu, Dec 3, 2009 at 2:52 PM, Charlie trick...@gmail.com wrote:

 I am new to using Google App Engine and am having trouble with
 textproperty(). How do I keep the formatting when someone submits
 something?

 example:
 Directions:
 1.Turn left
 2. Turn right
 3. Go straight

 Then I submit, and when I view it on the page, it turns out like this.

 Directions:
 1.Turn left     2. Turn right     3. Go straight.

 Thanks for help.

 --

 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.



 --

 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.


--

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.




Re: [google-appengine] Google Wave - not loading, freezing before loading navigation/inbox

2009-12-01 Thread OvermindDL1
On Tue, Dec 1, 2009 at 1:00 PM, palisade blakest...@gmail.com wrote:
 I went out for lunch and came back and Google Wave had frozen. I
 cannot see the sign out, inbox, contacts or navigation links. I closed
 the page and reloaded it in both Google Chrome and Firefox 3.5, and
 the website still does not load. Anyone else experiencing this? What
 should I do?

I am still trying to get into Google Wave first myself, need an invite...  .

--

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.




Re: [google-appengine] LIstProperty don't append elements

2009-11-30 Thread OvermindDL1
On Mon, Nov 30, 2009 at 12:36 PM, david dromerotr...@gmail.com wrote:
  _id = self.request.get(id)
  _latitud = int(self.request.get(latitud))
  query_str = SELECT * FROM Posicion WHERE id = ' + _id +'
  posicion = db.GqlQuery (query_str)

Just word of warning, you are setting yourself up for a major gql
injection attack with that code, clean it up, do not even use code
like that for testing or you can forget about it.

--

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.




Re: [google-appengine] Only 10 versions allowed?

2009-11-29 Thread OvermindDL1
On Sat, Nov 28, 2009 at 12:56 PM, Guillaume Laforge glafo...@gmail.com wrote:
 Hi all,
 Something weird happened to me.
 I think we're supposed to be allowed to have up to 100 versions per app, but
 I couldn't apply a 11st second for the following application:
 http://groovyconsole.appspot.com/
 Only when I deleted one app, have I been able to deploy a new version.
 Any idea what's going wrong with this appid?

Yes, you can have plenty of versions of an app, however you can only
have ten apps unless you request on this list to have more and your
reason, then the all-powerful Google overlords will up you to 20 apps.

--

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.




Re: [google-appengine] Re: votay - Wordpress of GAE

2009-11-22 Thread OvermindDL1
On Sun, Nov 22, 2009 at 7:39 PM, Adam adam.crossl...@gmail.com wrote:
 The MVC framework that I have created for AppEngine comes with a
 blogging demo application. The framework, MVCEngine, is hosted on
 Google Code:
 http://code.google.com/p/gae-mvc-engine/

 The blogging app is in the demo subdirectory. My personal blog,
 blog.adamcrossland.net runs on this software.

For note, none of the links on your site that link to other areas of
your site work, they all show blank pages (not even the empty
htmlbody/body/html)...

--

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




Re: [google-appengine] Re: votay - Wordpress of GAE

2009-11-22 Thread OvermindDL1
On Sun, Nov 22, 2009 at 9:03 PM, Adam adam.crossl...@gmail.com wrote:
 Woah! That was odd! I redeployed, and everything is OK again. I can't
 imagine what had gone wrong there.

 Thanks for the heads-up, Overmind.

No problem, I know how irritating it is to have one of my sites
mysteriously stop working for no reason.  :)

--

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




Re: [google-appengine] Re: How can I redirect www.mydomain.com to my appspot app/ website

2009-11-18 Thread OvermindDL1
On Tue, Nov 17, 2009 at 9:41 PM, SivaTumma sivatu...@gmail.com wrote:
 For faster paybacks, I put an index.html in the subdomains' root
 folders and insert this in that file.

 ..blah blah..
 body onload=location.href='http://
 where_i_want_this_to_redirect.com'; 

 ..and blah blah.

That may not always run though (it will not in my setup for example,
so all I would see is a blank page).

The proper way would be a 301 header redirect.

--

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.




Re: [google-appengine] Why not implement a Django database backend for App Engine?

2009-11-18 Thread OvermindDL1
On Wed, Nov 18, 2009 at 5:54 AM, frankabel frank.abel...@gmail.com wrote:
 Hi all,

 I'm newbie in this App Engine. As far I know, lot of Django app
 portability get solved if someone implement a  Django database backend
 for App Engine. Even I read Once queryset-refactor lands in trunk, it
 might also be possible to write a database backend for App Engine that
 would allow any app to run properly.  at 
 http://martyalchin.com/2008/apr/8/appengine/

 Somebody can explain me why isn't implemented yet such database
 backend? I, mean is a big deal? What are the main problems that ones
 must address to write such backend? If the backend exist, porting
 Django app will be more easy that using Google App Engine Helper for
 Django?

Because the datastore is not a database.  Some of their operations may
look similar, but they really are not.  It is not a direct 1-to-1
mapping, no where near actually.

--

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.




Re: [google-appengine] Re: Mail Internal Error

2009-11-12 Thread OvermindDL1
On Thu, Nov 12, 2009 at 11:11 AM, Joshua Smith joshuaesm...@charter.net wrote:
 For future discoverers of this thread, we found the problem: The to
 address this user typed in was not an email address (no @ sign).  I'll file
 a bug that this obvious error should get a better message.
 -Joshua
 On Nov 12, 2009, at 10:15 AM, Joshua Smith wrote:

 We only have one user using this feature.  It happens to her 100% of the
 time, and it happens to us 0% of the time.
 She is using IE6.
 -Joshua

I am curious, perhaps with only putting a username (say overminddl1),
it tries to send the email to a google mail account of that name, but
that account did not exist?

--

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




[google-appengine] Re: Converting html pages into images

2009-11-10 Thread OvermindDL1

On Tue, Nov 10, 2009 at 1:19 AM, Gerard McGovern gmcg...@gmail.com wrote:

 Hi Barry,

 Thanks for the suggestions. However, I need to be able to generate the
 images on the fly inside my application. There are one or two services
 that would allow me to do that but I want to develop my own to keep
 costs down.

Just for reference, you only have access to Java and Python, neither
of which have a completely created HTML renderer, that is near purely
in the domain of C/C++.  Look at the size of the renderers, take
webkit, it would be wonderful for it, and it is still quite sizable.
Your best bet is an external service, not developing something inside
GAE, this is a very difficult thing to do.

--~--~-~--~~~---~--~~
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: XMPP related questions

2009-11-10 Thread OvermindDL1

On Tue, Nov 10, 2009 at 7:43 PM, Chi-Yao ton...@gmail.com wrote:

 Hi all:

 I'm really new in this field and I want to set up the IM function in
 our service.
 Our web service will also be deployed on GAE.

 I would like to confirm whether my concept is correct.
 The message could be routed as follows:

 Our Client -- Google talk server -- GAE XMPP service
 Does this make sense or can our client directly connect to GAE XMPP
 service?

Basically yes, it is like the message is passed to a url called on
your server that you can then handle.

--~--~-~--~~~---~--~~
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: managing logic in another file

2009-11-09 Thread OvermindDL1

On Mon, Nov 9, 2009 at 2:32 PM, deostroll deostr...@gmail.com wrote:

 I'd want to have a secondary python script file just for containing
 all logic and returning data to my main script file (say main.py). In
 other words, I want to call a function getData() in my main file...but
 I want to define the logic for getData in the second script file
 instead of traditionally doing it in my main file...is this possible?

Standard Python stuff, nothing to do with GAE.

Just define your getData function in another py file named whateverYouWant.py.
Then from your main.py just:
import getData from whateverYouWant

--~--~-~--~~~---~--~~
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: working with html downloaded from another site...

2009-11-09 Thread OvermindDL1

On Mon, Nov 9, 2009 at 10:26 PM, deostroll deostr...@gmail.com wrote:

 PS: I am working with the python runtimes

 On Nov 10, 10:25 am, deostroll deostr...@gmail.com wrote:
 Hi,

 I am interested in some data a remote web site provides. But they
 don't hve any rss or stuff like that...so I have to scrape it all. I
 am only interested in a portion of the whole html I get...so what are
 lib functions I can do to process/read through the stuff after
 fetching it.

Regex makes scraping easy.

--~--~-~--~~~---~--~~
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: [Python] Reading files with python and open()

2009-11-07 Thread OvermindDL1

On Sat, Nov 7, 2009 at 8:39 AM, warlock24 warloc...@gmail.com wrote:

 Hello

 Could someone tell me why tis code does't work?

 [CODE]
 ROOT_DIR = os.path.dirname(__file__)
 pageUrl = os.path.join(ROOT_DIR, 'pages/' + pageName + '.html')
 pageContent = open(pageUrl, 'r').read()
 [/CODE]

 i get error message

 [CODE]
 IOError: [Errno 2] No such file or directory: '/base/data/home/apps/
 warlock24/1.337586579904043005/pages/home.html'
 [/CODE]

 where are my files? :(

I would think that would work, but I cook everything in myself; you
might just try using a relative directory access instead of absolute,
I have heard that works best in GAE.

--~--~-~--~~~---~--~~
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: Django/Jython doesn't work on Google App Engine

2009-10-28 Thread OvermindDL1

On Tue, Oct 27, 2009 at 6:50 PM, Olli Wang olliw...@ollix.com wrote:

 Hi, I successfully created a WAR file which was able to run on Apache
 Tomcat with no problem. But when I uploaded it to the Google App
 Engine, it shows me a error message like this:
 Could not initialize class org.python.modules.thread.thread
 RequestURI=/
 Caused by:
 java.lang.NoClassDefFoundError: Could not initialize class
 org.python.modules.thread.thread
 at java.lang.Class.forName0(Native Method)
 ...
 ...
 at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:396)
 at org.mortbay.thread.BoundedThreadPool$PoolThread.run
 (BoundedThreadPool.java:442)
 I thought this happened because GAE disables threads as it said A
 Java application cannot create a new java.lang.ThreadGroup nor a new
 java.lang.Thread. These restrictions also apply to JRE classes that
 make use of threads.
 Is there any way to remedy this situation? Any help would be
 appreciated.

You cannot use threads directly as they do not exist as you know.
Just do not use threads and all should be fine.

--~--~-~--~~~---~--~~
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: perform task on upload

2009-10-28 Thread OvermindDL1

On Wed, Oct 28, 2009 at 7:33 AM, Baron richar...@gmail.com wrote:

 hello,

 part of my app uploads a file and needs to parse each line of the
 file. The parsing of the whole document takes longer than 30 seconds,
 so I was wondering how to handle this.

 Currently I am considering storing the upload in the datastore and
 parse as far as I can. Then when I get DeadlineExceededError I create
 a new Task Queue with the line number to continue from.

 Is there a problem with this? Or a better way?

What if the document was one exceedingly long line?

--~--~-~--~~~---~--~~
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: getting img_id into django template - only can get raw image to be sent.

2009-10-26 Thread OvermindDL1

On Mon, Oct 26, 2009 at 1:08 PM, Wooble geoffsp...@gmail.com wrote:

 You seem to be trying to embed an image directly into an HTTP
 template?  This isn't going to work.  Your html needs an img tag,
 with the URL pointing somewhere that returns the image data (which can
 itself be a URL in your application that creates the image
 dynamically).

Well technically you can embed an image in the browser using the data
attribute of an image and, say, base64 encoding it.  From my testing
it seems to work fine everywhere except in internet explorer (piece o'
crap, but admittedly that was back on version 6, who knows about the
later versions).  And yes, there can be uses for that.

But yes, you want to put in a link, not the image.

--~--~-~--~~~---~--~~
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: Tragedy of the Commons, and Cold Starts

2009-10-24 Thread OvermindDL1

On Sat, Oct 24, 2009 at 11:40 AM, johntray john.tur...@gmail.com wrote:

 Is the current thinking that the biggest startup delay is due to
 module imports for Django? My app has 3 distinct parts, only 1 of
 which uses Django or any templating. Right now I use a single main()
 function for all 3 parts, but would the other 2 parts have better cold-
 start times if I partitioned them into a separate handler script that
 didn't import any Django stuff?

Isn't there a python program that can take a python library and
resolve everything about it down to a single file?  It would be a
bloody massive file, but would load tremendously faster then a ton of
smaller ones...

--~--~-~--~~~---~--~~
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: How does The Python datastore select the class for an entity (or: swapping classes through the datastore)?

2009-10-22 Thread OvermindDL1

On Thu, Oct 22, 2009 at 12:43 AM, Tonny mezz...@gmail.com wrote:

 Thank you or the reply. This is great news - if I understood it
 correctly it means moving model classes to new modules is possible
 (redesign/cleanups).

 What i don't understand is how GAE searches for the actual class,
 given that it only has an unqualified name. Does it iterate all
 modules in the app or something else?

I doubt it searches for anything.  Most likely it has a meta-class or
something in the base class that inits everything registers the based
class (view __class__.__name__ or whatever it was) at initial start-up
runtime.

Remember, Python has almost LISP-like power, it can do a lot of things
at initial run-time.  :)

--~--~-~--~~~---~--~~
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: how to convince client

2009-10-15 Thread OvermindDL1

2009/10/15 dflorey daniel.flo...@gmail.com:

 GAE and EC2 are two completely different pairs of shoes.
 GAE is a cool and superior concept - but I also suffered badly from
 many bugs especially in conjunction with Google Apps, AuthSub and
 GData API.
 It's always problematic to provide a framework that involves people
 from different departments.
 Many bugs that I discovered is in nobody's responsibility and that
 makes me feel a little bit uncomfortable. I've posted many bugreports
 that are still in new state and I guess no one ever tried to
 reproduce them using my provided code snippets (otherwise they would
 have been switched to accepted or any other state than new).
 It would be a good idea if Google would create an internal team
 combining all the provided Google services into a set of test apps
 running on app engine.
 Other than that I like App engine ;-)


I still gather that AppEngine is nothing but an Erlang type system in
another language with not as many capabilities and concurrence
capabilities.  They really should integrate Erlang into the system.  I
am not big on the Prolog type syntax, but you cannot beat it for this
type of work.

--~--~-~--~~~---~--~~
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: Second App. The phone number has been sent already been used to confirm an account.

2009-10-12 Thread OvermindDL1

On Sun, Oct 11, 2009 at 12:12 PM, Mihail milif...@gmail.com wrote:

 I created one application milif123 and now I want to create a
 second.
 I press Create an Application, open page Verify Your Account by
 SMS, where I inter Mobile Number (same as when create first app),
 Send and get error The phone number has been sent too many messages
 or has already been used to confirm an account. 
 How can I create a second application?

That method will create a new account.  You can create new
applications from within your accounts dashboard.

--~--~-~--~~~---~--~~
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: Deleting / Hoarding of Application Ids

2009-10-10 Thread OvermindDL1

On Sat, Oct 10, 2009 at 9:08 AM, Andy Freeman ana...@earthlink.net wrote:

 Note that the yadayada.appspot.com is reserved for the owner of
 yaday...@gmail.com.  This association seems reasonable, but means that
 any name recycling/reclaiming for appengine must also address gmail
 and perhaps other google accounts.

So how do we use the appspot name that uses our own name (which is
what I tried to initially do but it said it already existed...)?

--~--~-~--~~~---~--~~
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: How to check if an file upload is under the 1MB limit

2009-10-04 Thread OvermindDL1

On Sun, Oct 4, 2009 at 2:03 PM, Ben bhym...@gmail.com wrote:

 Hi I want to allow users of my application the ability to upload an
 image when submitting a form.  However i also want to perform a check
 on the image to make sure it is less than the 1MB limit BEFORE trying
 to put it in the datastore.

 I  know i could do:
 try:
  image.put()
 except:
  #its to big

 but because of the logic of my application I would like to test the
 size of the image BEFORE attempting to put it in the datastore.  I
 have tried using:
  size = os.path.getsize(theImage)

 and
 size = os.stat(binaryImage)[ST_SIZE]

 and neither seem to work in the appengine environment. Any ideas?

To get the size of a binary chunk that is already loaded in memory,
just do len(image).  If image is a class and not a binary chunk, that
will not work unless the class has overridden the __len__ operator as
appropriate.

--~--~-~--~~~---~--~~
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: Reading Excel File

2009-10-02 Thread OvermindDL1

On Fri, Oct 2, 2009 at 3:28 AM, rmpaternoster rmpaternos...@gmail.com wrote:

 Hi, im very new to python and GAE. I was wondering if it was possible
 to read an excel file to extract info out of it and then load it to
 the db.

 I heard about a thing called xlrd but when I do import xlrd the
 component is not installed. How can I do it?

Would probably be easier to export your excel spreadsheet to a csv
file and just parse that out very simply.

--~--~-~--~~~---~--~~
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: Forbidden country error message (Cuba in this case, but maybe others)

2009-10-01 Thread OvermindDL1

On Thu, Oct 1, 2009 at 12:30 AM, Ubaldo Huerta uba...@gmail.com wrote:

 I'm familiar with the restrictions, the history of the Cuba-US
 relations (I'm cuban myself) and although that's a fascinating topic
 of discussion, all I want to know is if Cuba is banned from app
 engine.

 Note that gmail, and many other google services, work perfectly fine
 from Cuba.

Based on a very quick google search, found this:
http://code.google.com/p/googleappengine/issues/detail?id=1072
Seems to be a known issue, let me copy paste the workaround:

Comment 1  by shanebest, Apr 03, 2009

This issue is also present for users located in;
Syria, Cuba, Iran and Sudan.
Probably in other countries.

One reported partial workaround is to use appname.appspot.com to access website.

Comment 2 by shanebest, Apr 08, 2009

Users in Iran, Cuba, Syria and Sudan are reporting a screen from
google that the
website is blocked by google. (I can't comment on North Korea, I have
no users there)
At a guess, it has something to do with this;
http://www.thewwwblog.com/google-chrome-blocked-cuba-syria-north-korea-iran-
sudan.html
and
http://www.exportlawblog.com/archives/409

It should be noted that the block on Google app engine websites started around
February 6 2009 while the Google Chrome blocking was reported in October 2008.

--~--~-~--~~~---~--~~
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: Forbidden country error message (Cuba in this case, but maybe others)

2009-09-30 Thread OvermindDL1

On Wed, Sep 30, 2009 at 2:02 PM, Ubaldo Huerta uba...@gmail.com wrote:

 To my dismay, my mother (and a friend) is telling me that a site (my
 pet project) hosted in GAE is showing a you're trying to access this
 site from a forbidden country. My mother is trying to use it form
 Cuba, where she lives. Hard to believe that GAE will have such a
 restriction.

That does make sense though, Google is located in USA, and the USA
does have a required economic embargo (due to the massive disregard of
human life by the Castro regime) with Cuba.  Perhaps a bit odd that it
extends to web pages, but it does still make sense.

--~--~-~--~~~---~--~~
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: Execution time.

2009-09-28 Thread OvermindDL1

On Sat, Sep 26, 2009 at 6:42 AM, Simon Clemen Pedersen
simoncle...@gmail.com wrote:

 Hi,

 I'm currently contemplating writing a service using the Google app
 engine. This service has some rather heavy computing requirements.

 I read the following in the documentation:

 Application code only runs in response to a web request, a queued
 task, or a scheduled task, and must return response data within 30
 seconds in any case

 I'm pretty much in doubt as to whether the 30 sec. limit is enough for
 my processing to complete. Is this a hard limit, and is there any
 workarounds, as this can disqualify google app engine as a feasible
 platform ..

Using the taskqueue you can break up your work into small chunks and
they will run one after another.  None of the others will return
anything to a browser though, good for post-browser finalizing
processing.

--~--~-~--~~~---~--~~
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 float cant be null....

2009-09-28 Thread OvermindDL1

On Mon, Sep 28, 2009 at 4:23 AM, John V Denley
johnvden...@googlemail.com wrote:

 I have just tried to add a float variable (not sure if variable is the
 correct term) to an existing datastore class, and Im getting an error
 now when trying to retrieve the data:

 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.lang.String[][]
 com.ideba.net.client.AppointmentService.getAppointments
 (java.util.Date,java.util.Date) throws
 com.ideba.net.client.NotLoggedInException' threw an unexpected
 exception: java.lang.NullPointerException: Datastore entity with kind
 Appointment and key Appointment(130) has a null property named Paid.
 This property is mapped to com.ideba.net.server.Appointment.Paid,
 which cannot accept null values.

 This is understandable, but I cant work out how to get around this
 issue.

 Ive tried setting the constructor to initiate it, but i didnt expect
 that to work really as the existing data is already there!

 Ive also tried to create a function to work through the database
 setting this variable to 0, but it came back with the same error...

 does anyone have any tips how to deal with this?

Well if it was Python I would say add required=False to the float
type for the DB link, so whatever the equivalent is in Java.  That may
or may not work, but if it does then you could update them all to a
value then change it back.

In my own apps though, every DB class name I have an appended
underscore then version number, I bump up that version number every
time I make a change, I then make a conversion function to update all
old ones to the new one (I also have a global variable that links to
the latest class name, I use that everywhere in the code so I do not
have to do a search and replace every time).  It would use a lot of
CPU doing updates if I had a lot of things, but for small things it
works quite well.

--~--~-~--~~~---~--~~
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: Failed when I want to donwload a file from my web app

2009-09-25 Thread OvermindDL1

On Fri, Sep 25, 2009 at 7:13 AM, dingle dingdin...@gmail.com wrote:

 Thanks Nick's explain.

 And quite thanks Barry. Your suggestion make it work.

 I think everyone developing GAE and working on IE should know it.

No, what should be done is IE should be fixed.  Besides this has
nothing to do with GAE, it is just normal web design stuff.

--~--~-~--~~~---~--~~
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: ghs.google.com and all relative ip address were blocked by GFW(Great Fire Wall) in China

2009-09-25 Thread OvermindDL1

On Thu, Sep 24, 2009 at 8:30 PM, Jouy jouy...@gmail.com wrote:

 Help us!

 Google , help us please!

I do not see how anything could be done about it.  If the bastards
want to do such things, not much can be done about it from the
outside, as just adding more IP's they will just continue to block
them.  Best thing, get out of China and to a place with freedoms.

--~--~-~--~~~---~--~~
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: Query with more than 1000 records

2009-09-24 Thread OvermindDL1

On Wed, Sep 23, 2009 at 7:42 AM, elcologaby elcolog...@gmail.com wrote:

 Hi, I'm doing some research about Google App Engine, and I would like
 to storage information about other applications. I've been reading the
 limitacions, and I found out that I can't red more than 1000 records
 whit a single query. Is there a way for me to be able to read more
 than this amount of records per query (without reading all records,
 because I can't analize this in 30 secconds, which is the servlet
 timeout)? On the other hand, do you know a way to perform GROUP BY
 selects?

Best thing might be to just break it up into multiple smaller things
separated by tasks.

--~--~-~--~~~---~--~~
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: Signup/registration system

2009-09-24 Thread OvermindDL1

On Wed, Sep 23, 2009 at 9:40 PM, Tim yau...@willowsoft.com wrote:

 Is Google App Engine a suitable platform for writing a simple web app
 where people can sign up to attend an invitation only event with a
 limited number of people allowed?

It is actually almost stupid easy to allow that.
Why not use Google Calendar though?  It might be functional enough for that...

--~--~-~--~~~---~--~~
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: Task Queue Development

2009-09-24 Thread OvermindDL1

On Wed, Sep 23, 2009 at 7:23 PM, oakmad adam.oak...@gmail.com wrote:

 How are people handling task queue execution in their development
 environment? My processing is using task queues to handle a lot of
 offline processing and I'm getting sick of clicking run next to each
 task. I'm thinking I will write a simple script to replicate the queue
 by polling my datastore and calling the url the task would, but before
 I do that I would be interested to hear how others are handling it.

I made a quick Firefox GreaseMonkey script.  Laziness rules all.  :)
It is not at all generic, if I get time I guess I could make it as so
and release it...

--~--~-~--~~~---~--~~
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: RSS feed for virtual pages

2009-09-24 Thread OvermindDL1

On Thu, Sep 24, 2009 at 12:20 PM, naitik nakrani
naitiknakr...@gmail.com wrote:
 hello i want to unsubscribe from this group

 my id is naitiknakr...@gmail.com

And?  Go to the Google Groups for it and click Unsubscribe, we cannot
do it for you.

--~--~-~--~~~---~--~~
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: Why Google AppEngine sucks

2009-09-24 Thread OvermindDL1

On Thu, Sep 24, 2009 at 7:27 PM, Tim Hoffman zutes...@gmail.com wrote:

 There are some grains for truth, however he fails to detail the effort
 you need to put in to build a moderatley reliable system let alone one
 that can with stand
 multiple failures.

 That alone is worth the price of admission.

 Try building a linux ha cluster with load balancing, failover and
 replicated database.

 Its not easy and requires a lot of expertise.

 Even with all the tools in EC2 its not a simple task,

 I personally don't have a problem with the non sql nature of the
 environment , I only occasionally use SQL for things over the
 last 10 years,

I found the datastore pretty obvious to use, but then again mnasia is
like it.  Ooo, that would be so rather awesome, and relatively easy
for Google to implement, an Erlang back-end, I would use that in a
heart-beat.  It would perform *very* well (better then Python,
probably  not as fast as Java), and the programming style is
*perfectly* designed for this, lots of little Actors with no
interacting data except through the datastore, would be perfect.  :)

--~--~-~--~~~---~--~~
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: Why Google AppEngine sucks

2009-09-24 Thread OvermindDL1

On Thu, Sep 24, 2009 at 11:49 PM, Robin B robi...@gmail.com wrote:

 That's interesting you mention Erlang: I was working on building an
 Erlang based App Cluster around the time when AppEngine was announced/
 released.  You can achieve a much higher handlers/cpu or handlers/
 memory density using Erlang because each handler is a green thread
 with cheap context switching, each handler/process costs as little as
 200 bytes of system memory, and system libraries can loaded once into
 memory and shared between all apps because Erlang is a functional
 programming language.  The thing that made me trade Erlang for
 AppEngine was having access to BigTable.

 AppEngine has numerous features (simple deployment, load balancing,
 dynamic scalability), but the main benefit is access to a scalable
 database; BigTable provides seamless multi-master database writes.  If
 a developer has never considered the challenges of scaling database
 write throughput, then they would not realize how much time AppEngine
 will save them in designing and hosting a truly scalable web
 application.

It would not be hard to add BigTable into Erlang though, Erlang is not
that hard to bind to after all.  The Mnasia database built into Erlang
though is fully distributed and fault tolerant and things can be made
to exist on disk or in memory only for speed and all sorts of things,
it is actually quite powerful, just a bit slower then normal SQL
servers of course, due to the distributed nature.  Erlang also has
load balancing, dynamic scalability, and the deployment when using the
Erlang webserver Yaws is quite simple, it is fully ready to handle
just about everything you could ever throw at it, you just need a few
computers to load it on first.  :)

I prefer Python as a programming language (although I would still use
Erlang if AppEngine ever supports it, it is just an awesome language).
 I am using AppEngine because other people requested I did, been
learning it.  :)

--~--~-~--~~~---~--~~
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: Case sensitivity

2009-09-19 Thread OvermindDL1

On Wed, Sep 16, 2009 at 12:18 PM, Nick Johnson (Google)
nick.john...@google.com wrote:
 Hi Johnc,

 I just updated my answer to your question on Stack Overflow. The short story
 is that you can do this by writing a handler that redirects users from any
 page that includes an uppercase character to the same URL without it. This
 could be extended to a handler that goes first in the list and rewrites all
 requests, not just ones for static content.

 I'd suggest watching the logs and fixing links as you can, though - the
 redirect will add a little bit of latency to requests.

 http://stackoverflow.com/questions/1428431/switch-off-case-sensitive-urls-in-google-app-engine/1429800#1429800

 -Nick

 On Wed, Sep 16, 2009 at 3:40 PM, johnc ogmani...@gmail.com wrote:

 We recently moved our company website to Google app engine. We have
 encountered case sensitivity problems with some of the links in our
 website. Some links are uppercase when the corresponding folders on
 the server are lowercase. This was not an issue on our old windows
 server. Google app engine appears to be case sensitive with URLs. This
 is causing broken links.

 Does anyone know if there is a way to make our URLs work case
 insensitively on Google app engine?


For note, URI addresses are case-insensitive (the www.google.com
part), the path is *NOT* case insensitive, I am guessing you were
either using a broken Windows server or something like Apache with
url-rewrite or whatever it was called.  You should never assume
case-insensitivity on a URI path, *ever*.

--~--~-~--~~~---~--~~
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: Two accounts with the same username

2009-09-19 Thread OvermindDL1

On Wed, Sep 16, 2009 at 9:31 PM, Eric eric.d.mo...@gmail.com wrote:

 I have logged into the appengine with my gmail name - and I have
 attempted to create a new appengine account with my gmail name - and
 it says that it is not available- however every name I have tried
 ( all within the bounds of what is allowed ) fails the name
 validation.  And I mean every name even bellatrix17893.appspot.com is
 there something going on my user account eric.d.mo...@gmail.com?

I have tried the same thing.  For my testing account before moving
stuff to other domains I wanted an overminddl1.appspot.com, but I
cannot create it.  I just made something like
overminddl1-public.appspot.com or something like that (do not recall
off-hand) for my public testing, a bit more wordy, but meh...

--~--~-~--~~~---~--~~
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: Newbie question on filter()

2009-09-14 Thread OvermindDL1

On Sun, Sep 13, 2009 at 10:32 PM, nikihana sr...@animatixstudios.com wrote:

 Hi All,

 I am new to python - so this might be embarrassing - but thanks in
 advance!

 Can somebody tell me why I get an error when I uncomment the line in
 the code below and run it in the appengine interactive shell?

 The error I get is:

 'title =', 'song'
 Traceback (most recent call last):
  File /Users/srini/Desktop/iFaceApps/SVN/unfuddle/iChannel/App
 Engine/App Engine/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/admin/__init__.py, line 208, in post
    exec(compiled_code, globals())
  File string, line 22, in module
 TypeError: filter() takes exactly 3 arguments (2 given)


 --code begins

 class Song(db.Model):
  title = db.StringProperty()
  composer = db.StringProperty()

 song = Song()

 song.title = song
 song.composer = me
 song.put()

 query = db.Query(Song)

 attr = 'title'
 value = 'song'

 query_string = '\'' + attr + ' =' + '\', ' + '\'' + value + '\''

 print query_string
 query = Song.all()

 query.filter('title =', song) # no error!
 #query.filter(query_string)    #error!
 result = query.fetch(1000)

 print result[0]

Because filter takes 2 arguments, not 1 (there is also the implicit
'this/self', which is why the error message says 3/2).
If you want to pass a query string in to filter, then make it a tuple
and deconstruct it into the call, as such:

query_string = (attr + ' =', value)

And call filter by deconstructing the tuple as the arguments:
query.filter(*query_string)    #no more error!

The function call parameters is standard programming stuff that is
identical to just about any language, and the deconstructing the tuple
as the argument is very common python stuff.  You might want to learn
some more generic programming stuff first.

--~--~-~--~~~---~--~~
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: quiero usar solo la validacion de usuario de django

2009-09-14 Thread OvermindDL1

2009/9/13 JorgeP jorge085l...@gmail.com:

 hola grupo, soy nuevo programando en google engine, pues mi pregunta
 es la siguiente
 he estado configurando el inicio de sesión para que al momento de
 subir mi aplicación solo tengan acceso las personas que sean creadas
 dentro de está... que no tengan cuentas en google...

 he seguido un ejemplo de un articulo que esta publicado el la pagina
 de code.google.com pero me sale un error
 mi codigo es el siguiente

 setting.py

 MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    # Django authentication
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    # Google authentication
    #'ragendja.auth.middleware.GoogleAuthenticationMiddleware',
    # Hybrid Django/Google authentication
    #'ragendja.auth.middleware.HybridAuthenticationMiddleware',

 )

 INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.admin',
 )


 views.py

 from django.contrib.auth.models import User
 from django.contrib.auth.forms import UserCreationForm
 #

 def crear_nuevo_usuario (request):
    form = UserCreationForm()
    if request.method == 'POST':
        form = UserCreationForm(request.POST)
        if form.is_valid():
            user = form.save(commit=False)
            user.is_active = True
            user.put()
            return HttpResponseRedirect('/login/')
    return shortcuts.render_to_response('crear_usuario.html', {'form':
 form})

 url.py

  (r'^signup/$', 'views.crear_nuevo_usuario'),
  (r'^login/$', 'django.contrib.auth.views.login', {'template_name':
 'crear_usuario.html'}),
  (r'^logout/$', 'django.contrib.auth.views.logout_then_login',
 {'login_url': '/'}),


 y pues me devuelve un error  You haven't set the DATABASE_ENGINE
 setting yet.

 le agradesco de ante mano...

I do not suppose there are some language specific groups for appengine
that we could link him to?

--~--~-~--~~~---~--~~
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: Best way to reuse 'error page' code?

2009-09-14 Thread OvermindDL1

I created my own hierarchy on top of the webapp that handles
delegation to member function and so forth.  To handle errors and
other generic error codes I have another class (subclassable) that has
pre-built responses that auto fill the necessary headers, status
codes, and a basic html page to describe it.  The page can pull in one
of those and edit it as it wishes and return it, therefor anything
they have sent to the page previously is erased and only the error
stuff is returned.  It is very simple and executes quite fast.

--~--~-~--~~~---~--~~
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: Best way to reuse 'error page' code?

2009-09-14 Thread OvermindDL1

On Mon, Sep 14, 2009 at 2:40 PM, PatHaugen pathau...@gmail.com wrote:

 OvermindDL1,

 The way you describe it, anything they have sent to the page
 previously is erased and only the error stuff is returned sounds like
 you're not stopping at the exact point of error, but continuing to
 draw the rest of the page as the code continues and only after that
 erases what was generated and return only the error page?

No, I do stop at the point of error, but in my design, page output and
code is intertwined (keeping down on file count), so by the time, say,
a database access may fail then stuff may have already been sent to
the sender, I wipe that clean.

--~--~-~--~~~---~--~~
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: Best way to reuse 'error page' code?

2009-09-14 Thread OvermindDL1

On Mon, Sep 14, 2009 at 2:58 PM, PatHaugen pathau...@gmail.com wrote:

 I'm with you, I prefer in scripting languages to have a single file to
 hold most of my project so I can backup and work on it anywhere
 easily.

 I used to store page output to a variable in PHP and add to it as the
 code executed, sending to the user only at the end of file and just
 trashing that variable if there was an error. Sounds similar to what
 you're hinting at.

Basically yep.  I created a tree structure in my classes like this:
class someController(myBaseController):
  def index(request,response):
# do stuff

And if I set someController as a variable in another controller or I
stuffed it in as the root controller, say I did a root controller,
then anytime I did my_website.com/index then it would call the above.
The request includes all headers parsed out, the full uri parsed out,
and a lot of other stuff, it is designed to be immutable.  The
response has a header that you can stuff headers in, a content to
stuff the response webpage/file/whatever into, etc...

I can literally just do:
  response.reset(DefaultResponses.error500)
And it kills the original response, overwriting it with the stuff in
the pre-built error505 response, then I am free to edit the response
again as I so wish.  I just have it so if an error is occurred, I do
something like this:
class someController(myBaseController):
  def index(request,response):
# this page will always just error 500 out
if True:
  response.reset(DefaultResponses.error500)
  return

It works quite well for me and my programming style when I am whipping
up small things, very modular and capable.

--~--~-~--~~~---~--~~
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: Regarding change of port number

2009-09-09 Thread OvermindDL1

On Mon, Sep 7, 2009 at 3:37 AM, anuanunimmala.nimm...@gmail.com wrote:

 Hi
 Actually  the default port that is used by the SDK bundled  webserver
 (port 8080) is in use by another application
 in my particular ecclipse ide environment,So how can i  use a
 different port.Please provide me with solution by means of step by
 step approach.

In the google app engine launcher, first select your app, then the
edit menu, then application settings, then change the port number
right on that screen.  I changed mine to 8020 since 8080 is in use by
my SVN server.

--~--~-~--~~~---~--~~
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: Memcache pattern

2009-09-09 Thread OvermindDL1

On Mon, Sep 7, 2009 at 3:25 PM, (jpgerek)jpguer...@gmail.com wrote:

 Hi, I'm new with python and I having problems to implement the typical
 memcache pattern.

 I wan't to make a decorator of the most common memcache pattern so I
 don't have to implement the logic everytime. My intention is having a
 function that receives the key to get and a callback with the
 datastore gets, in case the memcache key expires, it's evicted or
 whatever.

 This is what I have now:

 class MC():
   �...@staticmethod
    def get( key, get_data_callback ):
        data_set = memcache.get( key )
        if data_set == None:
            data_set = get_data_callback()
            memcache.set( key, data_set )
        return data_set

 I'm having problems with the callback when some params are required.
 For instance:

 class DB():
   �...@staticmethod
    def get_user( id ):
          return User().all().filter('id =', id').fetch(1)

 def get_user( id ):
    return MC.get( key, lambda id: DB.get_user( id ) )

 The error I get when I call 'get_user(1)' is something like:

 TypeError: lambda() takes exactly 1 argument (0 given)

 Though it works in this case:

 def get_user_one():
     return User().all().filter('id = 1').fetch(1)

 It seems to be something with the params, they are lost, could it be
 solved with closures? other approach?

Look at this.  You pass a function/lambda to MC.get, this
function/lambda takes one parameter.  This function/lambda is passed
as the get_data_callback argument, and you then call get_data_callback
in that MC.get function with no parameters.  So why are you calling a
function that you have setup to take one parameter, with no
parameters?

Your
  lambda id: DB.get_user( id )
as you can see, takes one parameter, and it is required.  If you want
the passed in id to only be use, then change it to:
  lambda: DB.get_user( id )
or if you want the passed in id to be default, but overridable, then
change it to:
  lambda id=id: DB.get_user( id )
But the first one *requires* a single argument.

You might want to learn a bit more python first, this has nothing to
do with appengine.  :)

--~--~-~--~~~---~--~~
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: App Engine Launcher throws an error in Windows 7

2009-09-09 Thread OvermindDL1

On Tue, Sep 8, 2009 at 12:39 PM, Lee, Duk
(Genworth)duk@genworth.com wrote:
 Hello,



 I know this issue already logged as a bug, but does anyone know how to
 resolve this issue? I do not want to download the missing dll off the Web
 and stick it in somewhere. Thanks.

Might help if you actually state the error; we are not psychic.  :)

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

2009-09-09 Thread OvermindDL1

On Mon, Sep 7, 2009 at 4:55 PM, woolakevinh...@gmail.com wrote:

 Has anyone used Google App Engine to make a simple authentication for
 Google Apps users?

 My group uses google apps, and I just want their same logins to be
 able to function for outside of google apps password checks. It seems
 this would be simple in Google App Engine -- anyone have anything?

What is wrong with the built-in Users authentication?  I have built a
very powerful permission system on top of it and all, quite simple to
use.

It will help if you actually describe the scenario you want done.

--~--~-~--~~~---~--~~
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: XMPP Quotas/Limits and Billing

2009-09-08 Thread OvermindDL1

On Sat, Sep 5, 2009 at 10:51 AM, medecaumede...@gmail.com wrote:



 On Sep 5, 1:40 pm, David Symonds dsymo...@gmail.com wrote:
 On Sat, Sep 5, 2009 at 7:12 PM, medecaumede...@gmail.com wrote:
  Having said that I believe that 50ms per incoming message is too much.
  I would assume it takes Google less than 50ms to process an XMPP
  message and deliver it to an app.

 There's a lot of work required to bridge two protocols, and an XMPP
 message has to traverse that bridge as well as be processed by both
 sides. Wall time is not the same as CPU time.

 Dave.

 I understand there might be some work to bridge between XMPP and a GAE
 instance but splashing every request with a 50ms overhead seems too
 much for me.
 XMPP's 50ms are CPU time and my observation is made based only on CPU
 time (including APIs CPU use), never total time of request.

 Also I made this post because XMPP was just release and I felt the
 need to express my opinion on this matter, I never expected XMPP API
 to be made available without going through the lab.

For note, on an XMPP server I run at my work, we can serve well over
500 requests a second without it exceeding 3% cpu usage an old P4, so
yea, I really doubt it takes 50ms.  Using a customized xml decoder for
it gave the largest speed boost by far, it can parse over 560 thousand
a second for xmpp chat messages (that includes conversion to
int/float/string/etc..., this is in C++ though).

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