Re: [google-appengine] Thanks for increasing Free Quota, Google!

2011-04-11 Thread Gopal Patel
lol...its for one day onlyso use it or it will not be there tomorrow... :P

On Tue, Apr 12, 2011 at 8:04 AM, pdknsk  wrote:
> I've got generous free quotas in my dashboard :D
>
> Datastore API Calls              0%      7,405 of 9,223,372,036,854,775,808   
>    Okay
> Datastore Queries                0%      132 of 9,223,372,036,854,775,808     
>    Okay
> Data Sent to Datastore API               0%      0.07 of 8,589,934,592.00 
> GBytes         Okay
> Data Received from Datastore API                 0%      0.13 of 
> 8,589,934,592.00
> GBytes   Okay
> Datastore CPU Time               0%      0.03 of 2,135,039,823,346.01 CPU 
> hours  Okay
>
> --
> 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.
>
>

-- 
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] Thanks for increasing Free Quota, Google!

2011-04-11 Thread pdknsk
I've got generous free quotas in my dashboard :D

Datastore API Calls  0%  7,405 of 9,223,372,036,854,775,808 
 Okay
Datastore Queries0%  132 of 9,223,372,036,854,775,808   
 Okay
Data Sent to Datastore API   0%  0.07 of 8,589,934,592.00 
GBytes Okay
Data Received from Datastore API 0%  0.13 of 
8,589,934,592.00
GBytes   Okay
Datastore CPU Time   0%  0.03 of 2,135,039,823,346.01 CPU hours 
 Okay

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



Re: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-11 Thread Jeff Schnitzer
On Mon, Apr 11, 2011 at 5:41 PM, vlad  wrote:
> Interesting discussion. All the folks here are engineers. It is easy to
> challenge status quo and throw out smart questions. Should you find yourself
> responsible for investing millions of other people's money your perspective
> changes drastically. We cannot relate to that mindset period. In that
> mindset, driven purely by business considerations and risk minimization,
> Beta label is a deal breaker.

Speak for yourself, amigo :-)

While I may be an engineer, I've also been the CTO of a hundred-person
dotcom, and I'm now bootstrapping my own startup.  The dollars I have
spent on this project represent a vastly larger percentage of my net
worth than any VC has probably ever spent on a project.  And I don't
have a portfolio of projects; I can't afford to "lose a few".  I have
far more to lose on a bad technology choice than any VC does.

The "risk minimization" of eschewing appengine for a
build-it-yourself-platform is a false economy; it minimizes the tiny
risk that Google will torch appengine and *greatly* increasing the
risk that the product will never be viable in the first place.

Jeff

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



RE: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-11 Thread Brandon Wirtz
I'm not an engineer.  I'm a college dropout Corporate VP and industry
analyst. I think engineers call me "Management".

 

Oh, and True story.  When Windows Server 2003 was in beta I took $150k in
Angel and my team built a plugin that let you do Pay Per View, Pay Per
Minute, and Subscription Media Delivery of all the Microsoft Formats, plus
Quicktime, MP4 , and h.264 trasport streams.  All the foundation you needed
to build an IPTV Product.   Worked in RC1.  In RTM they disabled the plugin
Hooks, and killed our product.  That Angel would have done well to think
Beta = Deal Breaker.

 

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of vlad
Sent: Monday, April 11, 2011 5:42 PM
To: google-appengine@googlegroups.com
Subject: Re: RE: [google-appengine] Startup Weekend and Google App Engine

 

Interesting discussion. All the folks here are engineers. It is easy to
challenge status quo and throw out smart questions. Should you find yourself
responsible for investing millions of other people's money your perspective
changes drastically. We cannot relate to that mindset period. In that
mindset, driven purely by business considerations and risk minimization,
Beta label is a deal breaker.

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

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



Re: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-11 Thread vlad
Interesting discussion. All the folks here are engineers. It is easy to 
challenge status quo and throw out smart questions. Should you find yourself 
responsible for investing millions of other people's money your perspective 
changes drastically. We cannot relate to that mindset period. In that 
mindset, driven purely by business considerations and risk minimization, 
Beta label is a deal breaker.

-- 
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] Redirecting to a web page from a servlet

2011-04-11 Thread Tony O Dowd
I"m calling a httpservlet from a GXT FormPanel using the usual
FormPanel.submit() method. This calls the doPost( request, response)
method of the httpservlet. I"m using Submit as I'm uploading data to
the sever from a client using a FileUploadField in the FormPanel.

My problem is that by using FormPanel.Submit(), the browser opens a
new tab and  jumps to the HTML page of the httpservlet, thus changing
the focus from my GXT main application running in the browser.

anyone know a neat solution to prevent this and maintain the focus in
the main GXT application tab?

Thanks in advance.

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



[google-appengine] Re: Just a little help

2011-04-11 Thread Tony O Dowd

Are you using Python or JAVA to build your servlets?

If You're using Java you need to define your servlet in your web.XML
file. You simply define the servlet name, the class it points to and
then the mapping of the servlet name to it's URL. If you checkout the
default web.XML file that is created when you build the default GWT
app in eclipse you'll see a good example of this.

On Apr 11, 7:26 am, Divyahans  wrote:
> Hi, I'm just starting off with App Engine and was looking for a little
> help.
>
> I've made Java Servlets on App Engine with the URLs like 
> -http://www.test.appspot.com/test
>
> But, how would I make a Java Servlet with the URL 
> -http://www.test.appspot.com/test/page2
>
> Could someone give me some advice?

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



Re: [google-appengine] VCs And Betting The Farm On GAE/Google Technologies Was Startup Weekend and Google App Engine

2011-04-11 Thread Jeff Schnitzer
This is a really great discussion!

On Mon, Apr 11, 2011 at 1:34 PM, Brandon Wirtz  wrote:
> I may borrow this section for talks with VC's
>
> " GAE apps are difficult (not impossible, but difficult) to port because GAE
> provides services at a much higher level than IaaS companies.  If you write
> to a lower-level platform, you need to invent all those services
> *yourself*.  This is not without CONSIDERABLE opportunity cost - it takes a
> lot of work to run, maintain, and scale datastores, memcaching systems,
> appservers.  You need DBAs, you need sysadmins, you need security engineers,
> you need build engineers.  It all adds time and cost and risk."

All yours :-)

> VCs often talk about "a bet on a bet".  It is my belief that Google will be
> a big player in the Cloud space and that part of that will be building out
> GAE to compete with Amazon.   I picked GAE specifically because GAE
> leverages Google's knowledge of the things they do best, but more
> importantly it leverages what Google does better than anyone else.  Rather
> than betting that I can hire a team of smart people to manage my
> infrastructure, engineer my database, and give me world wide points of
> presence I just pay an extra 2 pennies a Gig transferred, and they do it for
> me.  That's an easy decision from a cash flow perspective.

I don't perceive Amazon as playing in the same space with Appengine,
at least not yet.  They're trying with Elastic Beanstalk, SimpleDB,
SQS, etc... but they have a *long* way to go.  I presume they're still
making too much money in the IaaS business to take PaaS seriously.

The way I see it, the future of computing is driven by tools and
environments that let you create a better product with less work.
When the storage, caching, queueing, channel, deployment, and scaling
facilities are all maintained by someone else, your team is massively
more productive.  It's like going from assembler to C.  There is not a
sliver of doubt in my mind that the future of web development looks
something like Google App Engine, and right now there's nobody else
competently playing in that space.  Maybe Azure comes closest if you
are in the .NET camp.

> VCs are Anti-Google right now, so to those saying "does a VC really decline
> you funding because you aren't on EC2?" yes.  Google lost a whole lot of
> friends with their recent changes to the Openness of Android, and the
> conditions of it's use.  There is a fear, founded or not, in the VC
> community at the moment that Google will "become Apple" and that they will
> only let certain apps play on their network, in their search results, and on
> their platforms.

This is interesting, and reinforces my growing belief that VCs are
clueless and all the supposed experience they bring to the table is a
net liability rather than an asset.

There is a massive shift going on right now.  Five years ago it made
sense to try to build giant standalone products.  Today you'd be crazy
not to leverage the hell out of the myriad platform services available
- Facebook, Google, Apple, Netflix, Yelp, and millions of niche APIs.
Like it or not, you either get in bed with them or you produce less
interesting products.

Facebook is the canonical example.  Almost everything about developing
on the Facebook platform is a trainwreck - anemic documentation,
half-baked APIs, forums and bug database are black holes, and the bug
count goes up every week rather than down.  But for any consumer
product, you simply cannot choose not to play the game.

As a small player, I integrate with whatever platforms and services
deliver a better customer experience.  If that makes me a slave to
Google and Facebook, so be it.  Like Zynga, I will just have to learn
to negotiate with the king once I have a big enough mob of angry
pitchforks behind me.  Ask the founders of Wesabe about why they lost
to Mint.  Nevermind, here's their answer:
http://blog.precipice.org/why-wesabe-lost-to-mint  Reason #1 is they
wasted time building their own financial aggregation platform rather
then be beholden to Yodlee.  Mint used Yodlee and spent all those
extra resources on polishing the user experience.

> We see this reflected in the recent changes to the rules for Google Search,
> Google Adwords, Adsense and Android.  For a VC this is scary.  You may be
> right in thinking "there are a million other things scarier than Google
> making changes" when calculating the risk to a start up, but for a VC you
> look at how many risks there are to failure more than the risk of each of
> those things happening, because you can only measure known risks, not
> unknown risks.

If this is a general VC trend, I think this shows a terrific lack of
experience by VCs.  It dramatically underestimates the difficulty of
building operations infrastructure at "web scale", and how easy it is
to build on platforms like Google and Facebook in comparison.  Which
is not too surprising, because unless you've been hands-on developing
software for the last fiv

Re: [google-appengine] I need some tips

2011-04-11 Thread Ronoaldo José de Lana Pereira
Hi Julio,

I guess I know you from Brazil, but I'll write in English. Here is what we 
do for a production Java app:

1) Using flex Json, I added some data fixtures in Json to an app resource 
foder, and created a small servlet that I called SetupServlet. This servlet 
does your trick on checking resultset sizes and populates the database if 
required, and is only called by an app administrator. Very usefull! You can 
combine this with Robert suggestion for an upload-based setup servlet, that 
load the file from Blobstore, for example.

2) To import a really large dataset, like migrating it from one server to 
another, the python remote_api is a great (but slow) tool, because you can 
do some computation to translate a legacy app database to your new 
app-engine optimized version, all on the fly and without the requirement of 
a new build-deploy clicle. But make sure to call db.allocate_id_rage() or 
similar before putting the app alive. I forgot it, and this will cause a lot 
of problems ;). As Robert suggested, bulkloader does most of the job for 
you, and you just need to write some yaml files to map you models fields and 
you can import form a csv file. This is a nice aproach since you can change 
your data remotely, but it will consume your bandwidth quota too.

Regarding your concern about a DOS atack, all requests will be served and 
loged. I tryed on my live app (yes, I'm a bit crazy) and the ammount of 
instances growth from 10~14 to 72 in a few seconds to serve +1000 
simultaneous requests. I also found that my logic was not optimized and that 
helped me a bit! Anyway, that is just all what AppEngine is about: scale as 
you need to support a big access when your app is featured on Yahoo home 
page! What you can do to avoid abuse is monitor your top 10 access and 
optionally blacklist what you fell like a DOS. You can do an appcfg.sh 
upload_blacklist just to make your app blacklist an ip address imedieatly, 
but know what is a DOS, currently, is up to you. You may whant to avoid 
abuse with some tokens, anyway.

Hope it helps!

Best Regards,

--
Ronoaldo Pereira

-- 
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 many concurrent channels can GAE handle?

2011-04-11 Thread Jamie
Thanks for all the responses.

Right now, I'm not re-using channels between clients so I'm
effectively limited to 95K unique hits to my site (which is a lot but
still a limit that *could* be  hit easily if my site made TechCrunch,
Mashable, etc.).  I will look into channel re-use.

But my question was more about concurrent channels.  I'm unclear on
how GAE implements channels, but I assume having many concurrent
persistent connections open would cause performance issues on the
server, so my question was mainly around how many concurrent channels
could GAE handle?

On Apr 8, 4:34 pm, "Brandon Wirtz"  wrote:
> What are you doing that you have 95k people a day using your channels?  Is
> it porn? You can tell us.  
>
> But seriously... Assuming  people want to send data to somewhere and not
> have achannelall to themselves you would have to have something like 250k
> users a day, on 24/7.
>
> If you did something "sane" you should be able to spread the load and re-use
> channels as users exit the system.  Assuming these users eat, and sleep, and
> leave the house you should be able to accommodate 1m users on the 95k limit.
> And that assumes you use achannelper user, not group the channels based on
> what is going on.
>
>
>
>
>
>
>
> -Original Message-
> From: google-appengine@googlegroups.com
>
> [mailto:google-appengine@googlegroups.com] On Behalf Of Jamie
> Sent: Thursday, April 07, 2011 11:22 AM
> To: Google App Engine
> Subject: [google-appengine] How manyconcurrentchannels can GAE handle?
>
> Given that the current quota forChannelcreation is 95,040 per day, I'm
> looking into building a degradation path where I would use polling from the
> client side after a certain number ofconcurrentusers have been reached.
> What I'm trying to figure out is where is cut-off point should be.
>
> How manyconcurrentchannelconnections can GAE handle in a performant
> manner?
>
> At a high level, this is how my app works:
>
> 1) Server receives an update from an external source.
> 2) Server notifies each connected client via theChannelAPI about this new
> update.  This is currently done in a crude way by looping through all
> clients and sending the msg via ChannelService.sendMessage().
>
> Given that my site is not very popular right now, it's hard for me to know
> if GAE'sChannelAPI can handle a large number ofconcurrentchannels.
>
> Does anyone have rough numbers or best practices in regards to this?
>
> Thanks,
> J
>
> --
> 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 
> athttp://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-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] VCs And Betting The Farm On GAE/Google Technologies Was Startup Weekend and Google App Engine

2011-04-11 Thread Brandon Wirtz
Jeff, 

 

I may borrow this section for talks with VC's

 

" GAE apps are difficult (not impossible, but difficult) to port because GAE
provides services at a much higher level than IaaS companies.  If you write
to a lower-level platform, you need to invent all those services *yourself*.
This is not without CONSIDERABLE opportunity cost - it takes a lot of work
to run, maintain, and scale datastores, memcaching systems, appservers.  You
need DBAs, you need sysadmins, you need security engineers, you need build
engineers.  It all adds time and cost and risk."

 

Et All, 

 

VCs often talk about "a bet on a bet".  It is my belief that Google will be
a big player in the Cloud space and that part of that will be building out
GAE to compete with Amazon.   I picked GAE specifically because GAE
leverages Google's knowledge of the things they do best, but more
importantly it leverages what Google does better than anyone else.  Rather
than betting that I can hire a team of smart people to manage my
infrastructure, engineer my database, and give me world wide points of
presence I just pay an extra 2 pennies a Gig transferred, and they do it for
me.  That's an easy decision from a cash flow perspective.

 

VCs are Anti-Google right now, so to those saying "does a VC really decline
you funding because you aren't on EC2?" yes.  Google lost a whole lot of
friends with their recent changes to the Openness of Android, and the
conditions of it's use.  There is a fear, founded or not, in the VC
community at the moment that Google will "become Apple" and that they will
only let certain apps play on their network, in their search results, and on
their platforms.  

 

We see this reflected in the recent changes to the rules for Google Search,
Google Adwords, Adsense and Android.  For a VC this is scary.  You may be
right in thinking "there are a million other things scarier than Google
making changes" when calculating the risk to a start up, but for a VC you
look at how many risks there are to failure more than the risk of each of
those things happening, because you can only measure known risks, not
unknown risks.

 

Lastly, is perception.  How much of the chatter on this forum is about if we
should move to HR, or if MS can be made to work.  How much is about if there
is a way to know if some warning light went off at Google when there is down
time?  Do you remember the thread about me saying that if you are going to
switch from one app to another on a domain managed by Apps for Domains, that
you should have a paid account and a CSR on the line when you do it?  Try to
find how to get your Apps For Domains Pin, and how to get someone on the
phone at Google.  I failed to mention that the CSR I talked to doing that
moved didn't know what an "appengine" is and I had to have them find someone
who did.   If you have ever had a Google Docs outage, or if you were one of
the 150k people who had their email disappear 2 months ago in the Great
Gmail Failure of 2011, you can see how people would not trust Google with
their enterprise/mission critical applications.

 

Azure sucks in so many ways, it is more expensive, it has more downtime, and
it doesn't scale up and down as quickly as GAE.  But my projects on Azure
run just as well on a Windows Server farm, and when things go Boom I can get
a live human on the phone in 2 minutes.  If something needs a Kick I can get
it.  No digging through the forums to find out which URL I need to file a
ticket on, no wondering if someone dealt with my ticket, a real person on
the phone says, "I have taken care of that for you Brandon, is there
anything else I can do for you? No? Well we apologize that this happened and
I have issued you a credit for today's services. You have a great day and
thank you for using Microsoft Azure".

 

EC2 is cheaper, if you can get all the products you need set up, and talking
to each other it runs like a champ, and is very portable.  We moved from
Storm On Demand, off to RDS, and then we made a sand box on Storm On Demand
because it was cheaper and we didn't need the redundancy, and then I pushed
the button and moved that sand box to my laptop as a 2 virtual machines.
EC2 Support has a Thick Indian Accent, but they are smart and they do answer
the phone.

 

Ikai, Nick, Wesley, and the rest of the Googlers in this forum are great...
And I'm sure they'd be happy to give us all their personal cell phone
numbers so it would be easy to get problems resolved  But then they'd
get nothing done.  Google's always been in the business of avoiding
technical support by building tech that just works... and that is a Great
philosophy, but it makes people in the investment world crazy, because when
bad things happen they want to know who to blame and when they will be fixed
and how it will never happen again.  

 

-Brandon

 

 

 

-- 
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] urlfetch - deadline clarification + two issues

2011-04-11 Thread Joshua Bronson
Hey App Engine Developers,

Regarding the deadline parameter, urlfetch 
docs
 say:

The maximum amount of time to wait for a response from the remote host, as a 
number of seconds. If the remote host does not respond in this amount of 
time, a DownloadError is raised. 


Does this refer to the amount of time the remote host has to simply accept 
the connection, or to transfer the entire response?


I'd also like to call your attention to a couple new issues:

#4878 : if 
you pass allow_truncated=True and the response ends up being truncated, the 
Content-Length header of the returned response is inevitably overwritten 
with 33554432, which is unhelpful since content_was_truncated implies this. 
Would it be possible to stop overwriting this header to reduce information 
loss? My application depends on knowing the total content length of the 
resource in question, even if the urlfetch result is truncated.

#4879 : A 
bug in urlfetch is causing it to generate KeyErrors for some requests.

Thanks for reading!

Josh

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



Re: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-11 Thread Jeff Schnitzer
I want to append a few comments of my own to Waldemar's excellent
commentary inline.  Brandon, thanks for playing devil's advocate on
this, I know you're on "our side" :-)

On Mon, Apr 11, 2011 at 2:30 AM, Waldemar Kornewald
 wrote:
> On Mon, Apr 11, 2011 at 8:15 AM, Brandon Wirtz  wrote:
>>
>> GAE code especially parts built around the datastore aren't transferable
>> to other platforms.  A big part of what makes GAE work is stuff that doesn't
>> work on other platforms.  I work with VC's on a regular basis and I agree
>> with them on this point.  Betting the farm on technology that is still
>> labeled beta and doesn't yet have pricing finalized is risky.
>
> It's certainly not impossible to port datastore code to some other NoSQL DB.
> The most important GAE-specific feature that isn't easily transferable is
> transaction support, but even that can be dealt with in various ways (in the
> worst case you build a SQL-based sharded solution). You can also simplify
> the porting process a lot by using Django-nonrel. You might think that this
> is a risk in itself, but any team worth investing in should be capable of
> maintaining their own Django-nonrel fork (yes, the code is very simple) in
> the unlikely case of us abandoning Django-nonrel.

Furthermore, if you're using Java and Objectify, you can switch your
data tier over to MongoDB with relatively minor pain.  Scott
Hernandez, who helped out with the original Objectify code, wrote
Mongo's Java ORM system (Morphia) and now works for 10gen.  Morphia is
very similar to Objectify and uses many of the same annotations.

>> Imagine you had done the math and decided that you could rule the world
>> building a Financial transaction Datamining service on GAE, had priced it to
>> be competitive based on Maser/Slave, and then you discovered M/S doesn't
>> have 100% up time, so you had to move to High Replication, but because you
>> are a data mining service most of what you do are writes, and you are paying
>> 3x for those, your competitive pricing just got less so.  What would have
>> seemed like a great bet 6 months ago wasn't.  As a VC you may have just lost
>> your investment because what looked to be the way to better mining at lower
>> cost is now better at higher cost.
>
> If a product relies heavily on datastore writes then App Engine might not be
> the best choice to start with (writes are not only expensive, but also very
> slow). In this case I can understand if VCs have doubts about the
> technology. However, a lot of other web businesses fit App Engine's model
> very well. Such businesses also don't react too sensitively to GAE's pricing
> changes and even if GAE becomes a major cost factor you can still move away.

The problem here is not risk inherent in the platform, but risk
inherent in a team working with an unfamiliar platform.  Your team
could run into similar problems with any platform they aren't familiar
with - especially with the proliferation of new NoSQL stores (remember
Digg?).

The answer to that is the same with any technology platform - the team
needs to be sufficiently familiar with the platform to be able to
competently build the product.  Your startup shouldn't be a spike
solution.  Appengine has been around for years now, there are plenty
of brilliant startup engineers available with deep knowledge of the
behavior and limitations of appengine.  No, not quite as many as
Spring/Hibernate/RDBMS engineers, but this is a startup - you only
need a handful.

Rephrasing this slightly, I can understand if a VC was skeptical about
a handful of traditional web stack engineers with no GAE experience
who want to use appengine.  They should be just as skeptical
(actually, much more so) of a team without RDBMS experience trying to
build a Hibernate app.

>> As to Google End of Lining the product, well if you had built on Amazon
>> you could run that on your own hardware or something like Liquid Web, pack
>> up your code and just run.  But GAE isn't so portable, anyone who has played
>> with the datastore can tell you that a 50 gig datastore on the local install
>> doesn't perform anything like the deployed version.  Part of that is just
>> that you can make calls to API's that will burn cpu at 150x Realtime for 3
>> seconds.  To do that on your "local" you would need 150 CPUs for 3 seconds
>> which a user can wait for, but they can't wait 75 seconds for that same
>> thing to happen on 6 CPUs.

1) If you aren't sure your app is appropriate for appengine, you need
to invest in some research time (or hire someone who is familiar with
appengine).

2) Building to a portable API is Planning for Failure.

GAE apps are difficult (not impossible, but difficult) to port because
GAE provides services at a much higher level than IaaS companies.  If
you write to a lower-level platform, you need to invent all those
services *yourself*.  This is not without CONSIDERABLE opportunity
cost - it takes a lot of work to run, maintain, and scale datastores,
memcaching

[google-appengine] RequestError: Server responded with: 500, A temporary internal problem has occurred. Try again later.

2011-04-11 Thread Gwyn Howell
Am getting this error on a few of my App Engines:

RequestError: Server responded with: 500, A temporary internal problem has 
occurred. Try again later.


Any ideas what is causing this? I notice that there is some scheduled downtime, 
but don't think it is that.

Any help or info would be greatly appreciated.


Thanks

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



[google-appengine] Re: Can't creat new application

2011-04-11 Thread Geoffrey Spear
The issue is using a Google Apps account (rather than a Gmail account)
when you create your apps, not what domain they're running on.

On Apr 8, 11:40 am, Rex Johnson  wrote:
> Thanx, but I'm using .appspot.com/
> :)
>
> On Apr 8, 10:20 am, Rex Johnson  wrote:
>
>
>
>
>
>
>
> > First off, my post of this problem (May 6th) has disappeared from
> > Discussions so I'm posting again. Issue is I have created ONE app.
> > When I try to create a new one I get taken to that "once only" phone
> > number/SMS confirmation page, which won't accept my input since I've
> > used the number before to create my first app. App Engine DOES accept
> > updates and new versions of the original app but that's it.
>
> > Google - PLEASE HELP. Developers will make your stuff glow in the
> > skies, but only if you make it possible to advance.
>
> > Thanx,
> > Rex

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



Re: [google-appengine] I need some tips

2011-04-11 Thread Júlio Cesar Bueno Cotta
Hi Robert, I got put the service on with all my fortunes.
I just did that

String query = "select from " + FortunesDAO.class.getName();
fortunes = (List) pm.newQuery(query).execute();
if fortunes.size() == 0
add to DB
else
"Live is good!"
:-D

That is not the best pratice requesting all the fortunes each time the app
run, so with the DB OK, I just remove the verification. :D

I still dont made a client to access the service, but you can access here
http://fortunesweb.appspot.com/fortunesweb?id=1
:-D

Just one thing more..what will happen if someone give me a DOS atack? Google
just turn the service off when my quota become full?
Can someone give me a tip about a way to avoid a massive access to the
service? Add a key?
Thanks for the help!

2011/4/10 Robert Kluin 

> Hi Júlio,
>  As I understand, you are trying to run an initial data import when
> you first deploy your application.  I would suggest you write an
> 'admin page' to load the data.  Then you can login and load the data
> after deploying your app.  Alternatively you could use the bulkloader
> tool (I believe it is in the Python section of the docs) to load data
> into your app.
>
>
>
> Robert
>
>
>
>
>
>
> 2011/4/9 Júlio Cesar Bueno Cotta :
> > Hello there,
> > I am new on App Engine and need some help and I am sorry if I am asking
> > silly things.
> > I read some tutorial in the App Engine site, but I still have some
> > questions, I also had try to threads over the group, but none what I
> found
> > help me and of course I had search on Google.
> > Let me try explain..
> > I want do create a simple webservice to return a fortune.I think...When I
> > send the project to App Engine the application need to populate the DB of
> > fortunes.
> > I am following the link to get data to the data base. I think I can write
> a
> > query to add data to, right? But where call the method to populate?
> > I would like to know if is there  some class that I can extend and
> override
> > methods that is call from my application when it is being installed on
> App
> > Engine?
> > Something like:
> > Class Inst extend Install{
> >
> >   @Override
> >   public void onInstall(){
> > //populate DB
> >
> >   }
> >
> >   @Override
> >   public void OnRemove(){
> > // Remove DB
> >   }
> > }
> >
> > I also would like to know if the webservice can be public, I mean..the
> > client application don't need to login on a Google Account.
> > Thanks in advance and sorry for my poor English, I am from Brasil.
> >
> > --
> > 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.
> >
>
> --
> 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.
>
>


-- 
Júlio Cesar Bueno Cotta
Bacharel em Ciência da Computação pela UFV
Mestrando em Ciência da Computação pela UFABC

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



Re: [google-appengine] Indexes stuck in "Building" state.

2011-04-11 Thread Ikai Lan (Google)
Moved them into error for you. Go ahead and run vacuum.

In the future, anyone who has stuck indexes should open an issue in the
public issues tracker via the production issues template:

http://code.google.com/p/googleappengine/issues/entry?template=Production%20issue

The
good news is that we're working on a long term fix for index building issues
so these issues should be a thing of a past.

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Sat, Apr 9, 2011 at 12:21 PM, Mike  wrote:

> Hi, I have a number of indexes stuck in the "Building" state.
>
> They have been stuck in this state for several month now.
>
> Could they please be removed?
>
> My App Engine Id is jadslpm
>
> Regards,
>
> Mike.
>
> --
> 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.
>
>

-- 
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: BadRequestError: query not found (occurring in the middle of a for loop)

2011-04-11 Thread Raj Arasu
Here is the call stack when the error occured:

Exception in request:
Traceback (most recent call last):
  File "/base/data/home/apps/5.349484817187351539/django/core/handlers/
base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
  File "/base/data/home/apps/5.349484817187351539/ftb/views.py", line
340, in send_sms_email
send_sms.load_store()
  File "/base/data/home/apps/5.349484817187351539/sms.py", line 121,
in load_store
self.recipients()
  File "/base/data/home/apps/5.349484817187351539/sms.py", line 62, in
recipients <---
for recipient in sms_recipients:
  File "/base/data/home/apps/5.349484817187351539/django/db/models/
query.py", line 107, in _result_iter
self._fill_cache()
  File "/base/data/home/apps/5.349484817187351539/django/db/models/
query.py", line 773, in _fill_cache
self._result_cache.append(self._iter.next())
  File "/base/data/home/apps/5.349484817187351539/django/db/models/
query.py", line 275, in iterator
for row in compiler.results_iter():
  File "/base/data/home/apps/5.349484817187351539/djangotoolbox/db/
basecompiler.py", line 218, in results_iter
for entity in self.build_query(fields).fetch(low_mark, high_mark):
  File "/base/data/home/apps/5.349484817187351539/djangoappengine/db/
compiler.py", line 109, in fetch
for entity in results:
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_query.py", line 1240, in next
next_batch = self.__batcher.next()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_query.py", line 1123, in next
return self.next_batch(1)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_query.py", line 1149, in next_batch
batch = self.__next_batch.get_result()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
api/apiproxy_stub_map.py", line 592, in get_result
return self.__get_result_hook(self)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_query.py", line 1053, in __query_result_hook
self.__conn.check_rpc_success(rpc)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/
datastore/datastore_rpc.py", line 1048, in check_rpc_success
raise _ToDatastoreError(err)
BadRequestError: query not found

As you can see the exception occurs when executing the next iteration
of the FOR loop (not in the body).  Also, this problem always occurs
after 100 iterations.  Has anyone come across this error?  There
doesn't seem to be much documentation online.

On Apr 8, 3:24 pm, Raj Arasu  wrote:
> Hello,
>
> I am currently having issues with the error BadRequestError: query not
> found.  I am using the django framework with norel.  Here is the
> context in which the error occurs:
>   1. query for all users -> People.objects.all()
>   2. loop through all these users and perform some action on them
>
> Everything performs as expected up until the loop reaches the 101th
> person. At this point I receive the above mentioned error.  I tested
> this through the remote shell and while it did work, I saw brief
> moments of pause after each 100 people were looped through.  For
> example, there were pauses at 100, 200, 300 and so on. Also, to be
> clear there are only 450 people in this datastore kind.
>
> I not sure if there is a timeout issue, if GAE is querying in 100
> record blocks...
>
> If anyone can offer any insight that would be great.
>
> Thanks,
>
> Raj

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



Re: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-11 Thread Wim den Ouden
Use (opensource) offline webapps, ajax (rpc) to the server, for different
servers different rpc calls to classes (python = most open)
https://developer.mozilla.org/en/Offline_resources_in_Firefox
https://developer.mozilla.org/en/HTML/HTML5/HTML5_Thematic_Classificationsee
domstorage, indexDB

2011/4/11 Waldemar Kornewald 

> On Mon, Apr 11, 2011 at 8:15 AM, Brandon Wirtz wrote:
>
>> GAE code especially parts built around the datastore aren't transferable
>> to other platforms.  A big part of what makes GAE work is stuff that doesn't
>> work on other platforms.  I work with VC's on a regular basis and I agree
>> with them on this point.  Betting the farm on technology that is still
>> labeled beta and doesn't yet have pricing finalized is risky.
>>
>>
> It's certainly not impossible to port datastore code to some other NoSQL
> DB. The most important GAE-specific feature that isn't easily transferable
> is transaction support, but even that can be dealt with in various ways (in
> the worst case you build a SQL-based sharded solution). You can also
> simplify the porting process a lot by using Django-nonrel. You might think
> that this is a risk in itself, but any team worth investing in should be
> capable of maintaining their own Django-nonrel fork (yes, the code is very
> simple) in the unlikely case of us abandoning Django-nonrel.
>
> Imagine you had done the math and decided that you could rule the world
>> building a Financial transaction Datamining service on GAE, had priced it to
>> be competitive based on Maser/Slave, and then you discovered M/S doesn't
>> have 100% up time, so you had to move to High Replication, but because you
>> are a data mining service most of what you do are writes, and you are paying
>> 3x for those, your competitive pricing just got less so.  What would have
>> seemed like a great bet 6 months ago wasn't.  As a VC you may have just lost
>> your investment because what looked to be the way to better mining at lower
>> cost is now better at higher cost.
>>
>>
> If a product relies heavily on datastore writes then App Engine might not
> be the best choice to start with (writes are not only expensive, but also
> very slow). In this case I can understand if VCs have doubts about the
> technology. However, a lot of other web businesses fit App Engine's model
> very well. Such businesses also don't react too sensitively to GAE's pricing
> changes and even if GAE becomes a major cost factor you can still move away.
>
> As to Google End of Lining the product, well if you had built on Amazon you
>> could run that on your own hardware or something like Liquid Web, pack up
>> your code and just run.  But GAE isn't so portable, anyone who has played
>> with the datastore can tell you that a 50 gig datastore on the local install
>> doesn't perform anything like the deployed version.  Part of that is just
>> that you can make calls to API's that will burn cpu at 150x Realtime for 3
>> seconds.  To do that on your "local" you would need 150 CPUs for 3 seconds
>> which a user can wait for, but they can't wait 75 seconds for that same
>> thing to happen on 6 CPUs.
>>
>
> I'm not sure why you'd want to run a 50GB datastore on your laptop. :) If
> you're forced to move away from GAE you can port your code to e.g. MongoDB
> or Cassandra (again, Django-nonrel makes this relatively easy) and then you
> can put those 50GB on your (e.g. EC2-based) MongoDB/Cassandra cluster.
> Where's the problem, really?
>
> I am a HUGE proponent of GAE, and I'm betting the farm on it, but as an
>> analyst for Standard & Poor's I would NOT bet against any VC who declines to
>> invest in a GAE powered start up prior to the removal of the beta Moniker
>> and a finalization of the service's pricing this summer.
>>
>
> Since when do VCs (esp. "any VC") always make the right decisions? Most
> importantly, since when do VCs make good technological decisions? FYI, I
> don't have anything against VCs in general. I just think that a VC who
> declines an investment solely because it's a GAE-powered startup probably
> would've ended up being your worst nightmare, anyway. Actually, if I told
> such a VC "now we'll build it on EC2, are you in?" I'd find it hard to
> believe that he would say "yes, now everything is perfect!". That's
> ridiculous. Probably this "no GAE" stuff is just an easy excuse, so they
> don't have to tell you straight in your face: "we don't believe in your
> product/market/team/whatever".
>
> Bye,
> Waldemar Kornewald
>
> --
> Django on App Engine, MongoDB, ...? Browser-side Python? It's open-source:
> http://www.allbuttonspressed.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=e

Re: [google-appengine] Sending mail with attachment from GAE

2011-04-11 Thread Nitin Tomer
Hi,

I managed to do it on my own, using this code -

Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);

// Send a message

String msgBody = "This is just a dummy message.";

try {
MimeMessage message = new MimeMessage(session, 
req.getInputStream());

Address[] add = message.getFrom();

for(int i=0;i wrote:
> Hi,
>
> I am trying to send an email from GAE. To send a text mail without
> attachment, I used the following code and it worked like a charm -
>
> String msgBody = "This is another dummy message.";
>
>        try
>        {
>                Message msg = new MimeMessage(session);
>                msg.setFrom(new
> InternetAddress("ad...@dgobbledygook2.appspotmail.com", "FormHandler
> Admin"));
>                msg.addRecipient(Message.RecipientType.TO,new
> InternetAddress("n.to...@gmail.com", "Nitin Tomer"));
>                msg.setSubject("Test mail to n.to...@gmail.com");
>                msg.setText(strToPrint);
>                Transport.send(msg);
>        }
>        catch (AddressException e)
>        {
>            log.info(e.getMessage());
>        }
>        catch (MessagingException e) {
>                log.info(e.getMessage());
>        }
>
> Now I want to send a mail with attachment. I copied a PDF file into
> the WAR directory of my project and deployed the project. The PDF file
> is there at the GAE now, I can access it using the URL. But when I use
> the following code to send the mail with attachment, it's not working.
> There is no exception/error, but nothing is happeining -
>
> String msgBody = "This is just a dummy message.";
>
>        try
>        {
>                Message msg = new MimeMessage(session);
>                msg.setFrom(new
> InternetAddress("ad...@dgobbledygook2.appspotmail.com", "FormHandler
> Admin"));
>                msg.addRecipient(Message.RecipientType.TO,new
> InternetAddress("n.to...@gmail.com", "Nitin Tomer"));
>                msg.setSubject("Test mail to n.to...@gmail.com");
>                //msg.setText(msgBody);
>
>                Multipart mp = new MimeMultipart();
>
>            MimeBodyPart htmlPart = new MimeBodyPart();
>            htmlPart.setContent(msgBody, "text/html");
>            mp.addBodyPart(htmlPart);
>
>            // Read file
>
>            File file = new File("TestForm.pdf");
>            byte fileContent[] = null;
>
>            try
>            {
>                FileInputStream fin = new FileInputStream(file);
>
>                /*
>                 * Create byte array large enough to hold the content of
> the file.
>                 * Use File.length to determine size of the file in
> bytes.
>                 */
>
>                fileContent = new byte[(int)file.length()];
>
>                /*
>                 * To read content of the file in byte array, use
>                 * int read(byte[] byteArray) method of java
> FileInputStream class.
>                 *
>                 */
>
>                fin.read(fileContent);
>            }
>            catch(FileNotFoundException e)
>            {
>                e.printStackTrace();
>            }
>            catch(IOException ioe)
>            {
>                ioe.printStackTrace();
>            }
>
>            MimeBodyPart attachment = new MimeBodyPart();
>            attachment.setFileName("manual.pdf");
>            attachment.setContent(fileContent, "application/pdf");
>            mp.addBodyPart(attachment);
>
>            msg.setContent(mp);
>                Transport.send(msg);
>        }
>        catch (AddressException e)
>        {
>            log.info(e.getMessage());
>        }
>        catch (MessagingException e) {
>                log.info(e.getMessage());
>        }
>
> Please tell me what I am doing wrong, and how can I make it work.
>
> Thanks and Regards
>
> Nitin
>
> --
> 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.
>
>

-- 
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: Channel Listener seems not work

2011-04-11 Thread Ania
Is it possible my problem is related to the way I refer to channel.js 
( in html 
body). Should I have channel.js included in my project or is it referring to 
some external source?
I would really appreciate some help.
Thanks,
Ania

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

2011-04-11 Thread Henrik Schack
Hi
Is 
http://code.google.com/appengine/docs/python/capabilities/overview.html#Supported_Capabilities
 
up2date ?
I can't really get the productionservers to recognize datastore & 
datastore_write

/Henrik Schack

-- 
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] Just a little help

2011-04-11 Thread Divyahans
Hi, I'm just starting off with App Engine and was looking for a little
help.

I've made Java Servlets on App Engine with the URLs like -
http://www.test.appspot.com/test

But, how would I make a Java Servlet with the URL - 
http://www.test.appspot.com/test/page2

Could someone give me some advice?

-- 
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] Sending mail with attachment from GAE

2011-04-11 Thread Nitin Tomer
Hi,

I am trying to send an email from GAE. To send a text mail without
attachment, I used the following code and it worked like a charm -

String msgBody = "This is another dummy message.";

try
{
Message msg = new MimeMessage(session);
msg.setFrom(new
InternetAddress("ad...@dgobbledygook2.appspotmail.com", "FormHandler
Admin"));
msg.addRecipient(Message.RecipientType.TO,new
InternetAddress("n.to...@gmail.com", "Nitin Tomer"));
msg.setSubject("Test mail to n.to...@gmail.com");
msg.setText(strToPrint);
Transport.send(msg);
}
catch (AddressException e)
{
log.info(e.getMessage());
}
catch (MessagingException e) {
log.info(e.getMessage());
}

Now I want to send a mail with attachment. I copied a PDF file into
the WAR directory of my project and deployed the project. The PDF file
is there at the GAE now, I can access it using the URL. But when I use
the following code to send the mail with attachment, it's not working.
There is no exception/error, but nothing is happeining -

String msgBody = "This is just a dummy message.";

try
{
Message msg = new MimeMessage(session);
msg.setFrom(new
InternetAddress("ad...@dgobbledygook2.appspotmail.com", "FormHandler
Admin"));
msg.addRecipient(Message.RecipientType.TO,new
InternetAddress("n.to...@gmail.com", "Nitin Tomer"));
msg.setSubject("Test mail to n.to...@gmail.com");
//msg.setText(msgBody);

Multipart mp = new MimeMultipart();

MimeBodyPart htmlPart = new MimeBodyPart();
htmlPart.setContent(msgBody, "text/html");
mp.addBodyPart(htmlPart);

// Read file

File file = new File("TestForm.pdf");
byte fileContent[] = null;

try
{
FileInputStream fin = new FileInputStream(file);

/*
 * Create byte array large enough to hold the content of
the file.
 * Use File.length to determine size of the file in
bytes.
 */

fileContent = new byte[(int)file.length()];

/*
 * To read content of the file in byte array, use
 * int read(byte[] byteArray) method of java
FileInputStream class.
 *
 */

fin.read(fileContent);
}
catch(FileNotFoundException e)
{
e.printStackTrace();
}
catch(IOException ioe)
{
ioe.printStackTrace();
}

MimeBodyPart attachment = new MimeBodyPart();
attachment.setFileName("manual.pdf");
attachment.setContent(fileContent, "application/pdf");
mp.addBodyPart(attachment);

msg.setContent(mp);
Transport.send(msg);
}
catch (AddressException e)
{
log.info(e.getMessage());
}
catch (MessagingException e) {
log.info(e.getMessage());
}

Please tell me what I am doing wrong, and how can I make it work.

Thanks and Regards

Nitin

-- 
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] SSL access on non-appspot.com domains

2011-04-11 Thread Vikram
Hi,

I was wondering if Google App Engine will shortly provide SSL access
on non-appspot.com domains for an account that is non-business (i.e.
free). I do see this as a high priority item on the GAE roadmap here -
http://code.google.com/appengine/docs/roadmap.html. I also did read a
recent announcement that this feature is already present in App Engine
for business. So, will this be introduced in the free version of GAE?

Regards,
Vikram

-- 
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] Indexes stuck in "Building" state.

2011-04-11 Thread Mike
Hi, I have a number of indexes stuck in the "Building" state.

They have been stuck in this state for several month now.

Could they please be removed?

My App Engine Id is jadslpm

Regards,

Mike.

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



[google-appengine] Need design advice - Application Licensing Problem

2011-04-11 Thread Wayne
 

What is the best way to design a GAE application so that I can: 

   - Have the customer account setup between my customer and Google 
   - Protect my source code from customer access or viewing
   - Shut off access if the customer is behind in paying a license fee. 
   
I am developing an application that will let individual truck transportation 
brokers control the tracking and billing of their client’s shipments.   I 
would like to use Google App Engine for the front and back ends. 

For security reasons, I am assuming that each of my customers would need a 
separate Google App Engine account.

I would also like to have the customer’s account setup directly with Google 
to keep me out of any billing and payment issues.

I am planning to license, to my customers, my application that would run in 
their account.  I need some way to turn off the application if are not 
current with the license fee. 

Naturally, I need some way to protect my code running on the customer 
account from viewing or access. 

Can anyone tell me how to do this?  Or, can anyone recommend a better way to 
handle these issues? 

Thanks in advance for your help. 

Wayne

-- 
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] jetty eclipse jsp relative path issue,google web app

2011-04-11 Thread deep m



above is a portion of my jsp file which worked fine while using normal
tomcat web application template.

Though when i create a web application under google web application.
and run on jetty the above files dont seem to load. I spent about 3
hours doing reading and searching the web. No solutions.

Please comment

-- 
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: Can't list or remove applications

2011-04-11 Thread Dale E
I'm having a similar problem. From

https://www.google.com/accounts/b/0/ManageAccount

When I click on "My Applications" I'm taken to

https://appengine.google.com/start

Even though I've already used that form to create 2 apps. Clicking on
the dashboard on the Google App Engine Launcher yields the same
result.

-Dale

On Mar 31, 6:41 am, darek  wrote:
> Hi there,
>
> I've got problem with appengine accout.
> Many years ago I had create applications on my generic Google account and it
> was ok, but after years i want to run everything on my Google Apps account
> (under my domain) so I bound app engine to google apps.
> Unfortunately to login to app engine I still need to use my gmail account
> that i want to delete. So i delete it because i tought it will also delete
> binding between google apps and app engine, and it didn't.
> Now I've got app engine applications in my Google Apps dashport that I can't
> remove and when I want to create application in App Engine I can create them
> but I can't see application list. Everytime I'm login to appengine i see
> view for user without applications.

-- 
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] BadRequestError: query not found (occurring in the middle of a for loop)

2011-04-11 Thread Raj Arasu
Hello,

I am currently having issues with the error BadRequestError: query not
found.  I am using the django framework with norel.  Here is the
context in which the error occurs:
  1. query for all users -> People.objects.all()
  2. loop through all these users and perform some action on them

Everything performs as expected up until the loop reaches the 101th
person. At this point I receive the above mentioned error.  I tested
this through the remote shell and while it did work, I saw brief
moments of pause after each 100 people were looped through.  For
example, there were pauses at 100, 200, 300 and so on. Also, to be
clear there are only 450 people in this datastore kind.

I not sure if there is a timeout issue, if GAE is querying in 100
record blocks...

If anyone can offer any insight that would be great.

Thanks,

Raj

-- 
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] i18N pyramid on Google App Engine

2011-04-11 Thread Jamil Atta Junior
Hi,

I new in GAE with Pyramid, I try to use the i18N on this, but have
some problem to set on GAE the initial data for my application on
Pyramid, on Pyramid we have the development.ini and production.ini
files, but GAE don't read this file and my application need some param
around i18N.

My question is: how to set the initial data on Pyramid using GAE?

thanks,

Jamil Atta Junior

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



Re: RE: [google-appengine] Startup Weekend and Google App Engine

2011-04-11 Thread Waldemar Kornewald
On Mon, Apr 11, 2011 at 8:15 AM, Brandon Wirtz  wrote:

> GAE code especially parts built around the datastore aren't transferable to
> other platforms.  A big part of what makes GAE work is stuff that doesn't
> work on other platforms.  I work with VC's on a regular basis and I agree
> with them on this point.  Betting the farm on technology that is still
> labeled beta and doesn't yet have pricing finalized is risky.
>
>
It's certainly not impossible to port datastore code to some other NoSQL DB.
The most important GAE-specific feature that isn't easily transferable is
transaction support, but even that can be dealt with in various ways (in the
worst case you build a SQL-based sharded solution). You can also simplify
the porting process a lot by using Django-nonrel. You might think that this
is a risk in itself, but any team worth investing in should be capable of
maintaining their own Django-nonrel fork (yes, the code is very simple) in
the unlikely case of us abandoning Django-nonrel.

Imagine you had done the math and decided that you could rule the world
> building a Financial transaction Datamining service on GAE, had priced it to
> be competitive based on Maser/Slave, and then you discovered M/S doesn't
> have 100% up time, so you had to move to High Replication, but because you
> are a data mining service most of what you do are writes, and you are paying
> 3x for those, your competitive pricing just got less so.  What would have
> seemed like a great bet 6 months ago wasn't.  As a VC you may have just lost
> your investment because what looked to be the way to better mining at lower
> cost is now better at higher cost.
>
>
If a product relies heavily on datastore writes then App Engine might not be
the best choice to start with (writes are not only expensive, but also very
slow). In this case I can understand if VCs have doubts about the
technology. However, a lot of other web businesses fit App Engine's model
very well. Such businesses also don't react too sensitively to GAE's pricing
changes and even if GAE becomes a major cost factor you can still move away.

As to Google End of Lining the product, well if you had built on Amazon you
> could run that on your own hardware or something like Liquid Web, pack up
> your code and just run.  But GAE isn't so portable, anyone who has played
> with the datastore can tell you that a 50 gig datastore on the local install
> doesn't perform anything like the deployed version.  Part of that is just
> that you can make calls to API's that will burn cpu at 150x Realtime for 3
> seconds.  To do that on your "local" you would need 150 CPUs for 3 seconds
> which a user can wait for, but they can't wait 75 seconds for that same
> thing to happen on 6 CPUs.
>

I'm not sure why you'd want to run a 50GB datastore on your laptop. :) If
you're forced to move away from GAE you can port your code to e.g. MongoDB
or Cassandra (again, Django-nonrel makes this relatively easy) and then you
can put those 50GB on your (e.g. EC2-based) MongoDB/Cassandra cluster.
Where's the problem, really?

I am a HUGE proponent of GAE, and I'm betting the farm on it, but as an
> analyst for Standard & Poor's I would NOT bet against any VC who declines to
> invest in a GAE powered start up prior to the removal of the beta Moniker
> and a finalization of the service's pricing this summer.
>

Since when do VCs (esp. "any VC") always make the right decisions? Most
importantly, since when do VCs make good technological decisions? FYI, I
don't have anything against VCs in general. I just think that a VC who
declines an investment solely because it's a GAE-powered startup probably
would've ended up being your worst nightmare, anyway. Actually, if I told
such a VC "now we'll build it on EC2, are you in?" I'd find it hard to
believe that he would say "yes, now everything is perfect!". That's
ridiculous. Probably this "no GAE" stuff is just an easy excuse, so they
don't have to tell you straight in your face: "we don't believe in your
product/market/team/whatever".

Bye,
Waldemar Kornewald

-- 
Django on App Engine, MongoDB, ...? Browser-side Python? It's open-source:
http://www.allbuttonspressed.com/

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



[google-appengine] Gadglet v0.1 Alpha is out

2011-04-11 Thread yuvi
Hi,

I have released Gadglet v0.1 Alpha.

Gadglet is an Open-source platform for developing and running
OpenSocial Gadgets (Not a container).
Gadglet includes many solutions for Gadgets including both technical
and application aspects.

Technical:
Client side: GWT base APIs.
Client-server communication: defined query format and JSON  response.
Server side: Google App Engine storage & web, simple controller, plug-
in method, simple content item APIs,  Gadgets administration

Application:
Minglets - Cross social network Gadgets. In simple words, users from
iGoogle will be able to share things with
the users from Orkut ..

Bizlets - Enterprise Gadgets! Special set of services for Google Apps
users, inducing registration, Domain management, etc..

See:
Live Gadgets: http://www.gadglet.com
Dev site: http://dev.gadglet.com
Download: http://code.google.com/p/gadglet/downloads/list
Users group: http://groups.google.com/group/gadglet

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