[google-appengine] Routing a blank domain

2010-09-06 Thread Niklasro(.appspot)
Here are dig results from domains I try harmonize to 1 DNS provider.
They now have 2 since serving > 50 MB then GAE gets less interesting.
The first one is accessible blank eg domain.tld while the rest I try
harmonize welcoming advice how to enable blank domain access.

; <<>> DiG 9.7.0-P1 <<>> alltfunkar.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25142
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;alltfunkar.com.IN  A

;; ANSWER SECTION:
alltfunkar.com. 1717IN  A   216.239.32.21
alltfunkar.com. 1717IN  A   216.239.34.21
alltfunkar.com. 1717IN  A   216.239.36.21
alltfunkar.com. 1717IN  A   216.239.38.21

;; Query time: 10 msec
;; SERVER: 83.255.245.11#53(83.255.245.11)
;; WHEN: Mon Sep  6 07:11:21 2010
;; MSG SIZE  rcvd: 96

Second dig (this is unreachable blank)

; <<>> DiG 9.7.0-P1 <<>> koolbusiness.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52016
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;koolbusiness.com.  IN  A

;; AUTHORITY SECTION:
koolbusiness.com.   1732IN  SOA dns1.name-services.com. 
info.name-
services.com. 2002050701 10001 1801 604801 181

;; Query time: 6 msec
;; SERVER: 83.255.245.11#53(83.255.245.11)
;; WHEN: Mon Sep  6 07:11:12 2010
;; MSG SIZE  rcvd: 94

Third dig (this isreachable blank but only via other DNS than above
since we moved it from hosting to appspot)

; <<>> DiG 9.7.0-P1 <<>> montao.com.br
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27369
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;montao.com.br. IN  A

;; ANSWER SECTION:
montao.com.br.  3555IN  A   72.167.140.157

;; Query time: 6 msec
;; SERVER: 83.255.245.11#53(83.255.245.11)
;; WHEN: Mon Sep  6 07:11:05 2010
;; MSG SIZE  rcvd: 47

...Do you agree what to do to harmoize these three different setups?
What do you propose?
Sincerely,
Nick Rosencrantz

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



[google-appengine] Re: Inheritance

2010-09-06 Thread Niklasro(.appspot)
On Sep 4, 6:26 pm, Robert Kluin  wrote:
> What do you mean inheritance?  Your link is broke.
>
> Robert
>
> On Sat, Sep 4, 2010 at 12:06, lisandro  wrote:
> > Hi!
> > Someone has some code working correctly that uses inheritance?
> > Example?
> > Since
> > in the link:
>
> >http://code.google.com/intl/es/appengine/docs/java/datastore/relation...
> > He does not say anything in the matter...
>
> > Regards
> > Lisandro
I inherit a custom request handler enabling i18n for instance to
activate, reset or delete the django language cookie. You can call it
BaseHandler or i18NHandler available by i18nhandler.googlecode.com
Sincerely
Niklas

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



[google-appengine] Re: Development server hangs when blobstore streams video

2010-09-06 Thread Niklasro(.appspot)


On Sep 3, 1:58 pm, Harry  wrote:
> Hi,
>
> I'm using an open source video player for playing uploaded video files
> (via Blobstore).
> If video file is small (less than a megabyte), it serves properly.
> But when the file is larger, it crashes the development server.
> Do I need to use the BlobStore reader to break up the file and serve
> it in segments? Or what else ?
> Has anyone managed to setup streaming videos using the blobstore?
>
> Thanks
I can upload and somewhat stream upto 50 mb video yes( Can you?).
Which format is best: mp4, flv, 3gp or other? Here's GAE serving mp4
direct output (no template) video byi
www.koolbusiness.com/serve/AMIfv965AEZaAqKhMrfPBo3ApE3es5abthDgYJEDdlL1iwL-XyptPaQVM4If19wuhPCh_2cbjDXFXuUTVudFwebAbN125RBXSqmMakIBU7ij2OSEZRNhYQ4M9DsWCUr9Lh9GR9prJnRmQXe6J93m2_zvwLZJMEHScKJl5gt-zbyXJSlvXCygMJ4

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



[google-appengine] Re: What is the most efficient way to do a large IN query in GQL?

2010-09-06 Thread Niklasro(.appspot)


On Sep 6, 8:51 am, johnterran  wrote:
> Hi
>
> In BigTable, what is the most efficient way to do a large IN query?
> My IN parameter list is typically 500 but can be 10k+
> i.e.
> class User(db.Model):
>     name = db.StringProperty(required = True)
>     id = db.StringProperty(required = True)
>
> given a list of ids that can consist of 10k list, i need to retrieve
> all the names
>  users = db.GqlQuery("SELECT * FROM User where id IN :1",
>                             ids)
>
> what is the best way to do this?
>
> Thanks
> John
I propose parametrize pairs to a dictionary using Query and not GQL ie
User.All( ...+ logic
ie filter("url id", ['www.domain010703.com.','domain010703']) with IN
pairs listed as dictionary. I didn't program it but the data structure
seems adequate.
Thank you
Niklas R

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



[google-appengine] Re: Web Service

2010-09-05 Thread Niklasro(.appspot)
On Sep 6, 2:51 am, Ehsan- ul-haq  wrote:
> hi you may upload your videos onhttp://pmedia4u.comits free and provide
> you a 1GB limits
With GAE video uploads is a good usecase. I can only admit upto 50 MB
per upload (www.koolbusiness.com/upload)
It has a simple web service interfaces ie KML, JSON and REST we don't
use having integrated maybe too complicated and difficult project GAE-
REST (github.com/fczuardi/gae-rest) informed that SOAP we should
avoid.
Regards,
Niklas

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



[google-appengine] Re: Moving Images from Datastore to Blobstore

2010-09-04 Thread Niklasro(.appspot)
What do you think about this alternative instead of a batch job: When
an image is accessed by HTTP GET, move it to a blob unless already
done.

On Aug 23, 3:52 am, Martin Ceperley  wrote:
> Yea I just went through this process, it is a bit tricky but not too hard, 
> you can use a multipart POST library like 
> this:http://pipe.scs.fsu.edu/PostHandler/MultipartPostHandler.py
>
> to POST the image data to blobstore, and iterate through your models with the 
> mapreduce framework, then you'll need a callback handler once they are posted.
>
> Faster images and auto-thumbnailing are definitely worth it! Let me know if 
> you need help.
>
> -Martin
>
> On Aug 22, 2010, at 4:27 PM, jorge wrote:
>
> > So the changes in 1.3.6 are very welcome, indeed.  In particular, the
> > high performance image serving is something I would like to leverage
> > immediately.  The app I built and have been maintaining has several
> > hundred images at this point.  Unfortunately, I started writing the
> > app long before the blobstore became available, so all of my images
> > are stored as raw bytes in a BlobProperty in the datastore.
>
> > You're probably beginning to see my problem.  I'd love to move all of
> > the images into the blobstore to take advantage of the new high
> > performance image serving.  Since access to the blobstore is not
> > directly exposed (that I know of), it seems to me the only way to do
> > this is to iterate through all the images in the datastore, generate a
> > blobstore URL for each and attempt to construct a POST request somehow
> > from the raw images bytes.  I don't even know if this is possible, or
> > how it will work.  In any event, it sounds pretty painful.  I'm
> > wondering if there is a suggested way to accomplish this.  I have a
> > few ideas but I'd like to hear others before I start on what seems to
> > be a fairly difficult task.
>
> > TIA
>
> > --
> > 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 
> > 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Moving Images from Datastore to Blobstore

2010-08-31 Thread Niklasro(.appspot)
Referencing using the key instead enables the wanted effect ie
im.primary_image = blob_info.key()
Thank 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Moving Images from Datastore to Blobstore

2010-08-30 Thread Niklasro(.appspot)
Somewhere making that reference between entity and blobstore blob
fails in my method. Maybe you know what I'm doing wrong?

class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
  def post(self):
#...get the blob..
#..get form data and make reference
data = AForm(data=self.request.POST)
if data and data.is_valid():
 # Save the data, and redirect to the view page
   entity = data.save(commit=False)
   entity.added_by = users.get_current_user()
   im = Image(reference=entity)
   im.primary_image = upload_files
   im.put()
   entity.put()

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



[google-appengine] Re: Moving Images from Datastore to Blobstore

2010-08-28 Thread Niklasro(.appspot)
Thanks for helping. The  mentioned method appears to work getting the
id of another entity from the url, looking up the referenced blob and
writing it. . Now to make presentation more userfriendly, can we also
dispatch to templates for making views to blobstore? I had a custom
request handler for i18n translations that also can be done directly
in python files wanting to keep the template way since making the view
is easier with a template. For a view done with template, do we just
dispatch same way a class inheriting webapp.RequestHandler does this
time instead inheriting BlobstoreDownloadHandler?

On Aug 25, 5:55 am, Martin Ceperley  wrote:
> In that situation I would think that you would keep your Image class and add 
> references to the blobstore instead of the actual blob.
>
> In my model I store the reference and pre-generate the image serving url, 
> which you can append characters to to get various sizes:
>
>     primary_image = blobstore.BlobReferenceProperty()
>     primary_image_url = db.StringProperty()
>
> On Aug 24, 2010, at 11:11 PM, Niklasro(.appspot) wrote:
>
> > Thanks for this info. I've referenced imaged like below. Can I too
> > convert to blobstore somehow keeping the reference to model A?
>
> > class A(GeoModel,search.SearchableModel):
> > ...
> > class Image(db.Model):
>
> > reference=db.ReferenceProperty(Ad,collection_name='matched_images',verbose_name="Title")
> > ...
>
> > On Aug 23, 3:52 am, Martin Ceperley  wrote:
> >> Yea I just went through this process, it is a bit tricky but not too hard, 
> >> you can use a multipart POST library like 
> >> this:http://pipe.scs.fsu.edu/PostHandler/MultipartPostHandler.py
>
> >> to POST the image data to blobstore, and iterate through your models with 
> >> the mapreduce framework, then you'll need a callback handler once they are 
> >> posted.
>
> >> Faster images and auto-thumbnailing are definitely worth it! Let me know 
> >> if you need help.
>
> >> -Martin
>
> >> On Aug 22, 2010, at 4:27 PM, jorge wrote:
>
> >>> So the changes in 1.3.6 are very welcome, indeed.  In particular, the
> >>> high performance image serving is something I would like to leverage
> >>> immediately.  The app I built and have been maintaining has several
> >>> hundred images at this point.  Unfortunately, I started writing the
> >>> app long before the blobstore became available, so all of my images
> >>> are stored as raw bytes in a BlobProperty in the datastore.
>
> >>> You're probably beginning to see my problem.  I'd love to move all of
> >>> the images into the blobstore to take advantage of the new high
> >>> performance image serving.  Since access to the blobstore is not
> >>> directly exposed (that I know of), it seems to me the only way to do
> >>> this is to iterate through all the images in the datastore, generate a
> >>> blobstore URL for each and attempt to construct a POST request somehow
> >>> from the raw images bytes.  I don't even know if this is possible, or
> >>> how it will work.  In any event, it sounds pretty painful.  I'm
> >>> wondering if there is a suggested way to accomplish this.  I have a
> >>> few ideas but I'd like to hear others before I start on what seems to
> >>> be a fairly difficult task.
>
> >>> TIA
>
> >>> --
> >>> 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 
> >>> 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-appeng...@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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Moving Images from Datastore to Blobstore

2010-08-24 Thread Niklasro(.appspot)
Thanks for this info. I've referenced imaged like below. Can I too
convert to blobstore somehow keeping the reference to model A?

class A(GeoModel,search.SearchableModel):
...
class Image(db.Model):
 
reference=db.ReferenceProperty(Ad,collection_name='matched_images',verbose_name="Title")
...

On Aug 23, 3:52 am, Martin Ceperley  wrote:
> Yea I just went through this process, it is a bit tricky but not too hard, 
> you can use a multipart POST library like 
> this:http://pipe.scs.fsu.edu/PostHandler/MultipartPostHandler.py
>
> to POST the image data to blobstore, and iterate through your models with the 
> mapreduce framework, then you'll need a callback handler once they are posted.
>
> Faster images and auto-thumbnailing are definitely worth it! Let me know if 
> you need help.
>
> -Martin
>
> On Aug 22, 2010, at 4:27 PM, jorge wrote:
>
> > So the changes in 1.3.6 are very welcome, indeed.  In particular, the
> > high performance image serving is something I would like to leverage
> > immediately.  The app I built and have been maintaining has several
> > hundred images at this point.  Unfortunately, I started writing the
> > app long before the blobstore became available, so all of my images
> > are stored as raw bytes in a BlobProperty in the datastore.
>
> > You're probably beginning to see my problem.  I'd love to move all of
> > the images into the blobstore to take advantage of the new high
> > performance image serving.  Since access to the blobstore is not
> > directly exposed (that I know of), it seems to me the only way to do
> > this is to iterate through all the images in the datastore, generate a
> > blobstore URL for each and attempt to construct a POST request somehow
> > from the raw images bytes.  I don't even know if this is possible, or
> > how it will work.  In any event, it sounds pretty painful.  I'm
> > wondering if there is a suggested way to accomplish this.  I have a
> > few ideas but I'd like to hear others before I start on what seems to
> > be a fairly difficult task.
>
> > TIA
>
> > --
> > 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 
> > 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: May I use the Google logo?

2010-08-22 Thread Niklasro(.appspot)
Indicating compatibility graphically should be in their interest while
certainly main premise is don't take stuff from others sites.
Practically I needed a transparent version for the GAE logo at login
prompt, asked here, nobody cared so it's made so (http://
www.koolbusiness.com/_/img/gaet.gif)

On Aug 21, 6:21 pm, Flips  wrote:
> Hi,
>
> some parts of the website I am currently working on are only
> accessible for users that can authenticate with an Google account. To
> "warn" the user that they need a Google Account for certain actions
> I'd like to use the Google logo in the following way: "You need an
> Google (LOGO) account for this action."
>
> You can also see it already implemented at:http://de.knolib.com/a/PHP_Array
>
> Best Regards
> Philip

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



[google-appengine] Re: Does ReplyTo email address need to be a developer?

2010-08-18 Thread Niklasro(.appspot)
Dear guys, could you elaborate or point to an example where these are
different so that we can understand:
*admin address
*valid address for that app to receive email on
With many thanks for teaching and helping us here (Nick Rosencrantz)

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



[google-appengine] Re: About GeoModel

2010-08-13 Thread Niklasro(.appspot)
The advantage is using longitude and latitude. The disadvantage is you
can't match everything in a country. Here's an example that may
display more insight what you can do here hitting data via longitude
and latitude in India for example http://www.koolbusiness.com/li?lat=20&lon=80
where latitude 20 and longitude 80 matches India.

On Aug 12, 1:07 pm, 昆宏 陳  wrote:
> Hello, everyone. I have some question about the use of geomodel.
> Can anyone help me to write some comment in the PubSchool Demo?
> Although it has already some comment on it. But I still can't
> understand it.
> The PubSchool Demo's source code is 
> herehttp://code.google.com/p/geomodel/source/browse/trunk/demos/pubschool...
> .
>
> And I have another question. What type of data just like the demo's
> school data can build in the GeoModel?
> And I wonder to know how and where the school data be built in
> GeoModel?
> I look "Public school data provided by the U.S. Department of
> Education's National Center for Education Statistics." at the bottom
> demo's website. But I don't know how it use these data in the GeoModel
> so that I can search them.
> Can anyone give me some idea? Besides,if I want to build my data in
> the GeoModel, how can I get to start?
> My data is built on my own. So they are viutual, they maybe have no
> meaning. They are not the real data on the web site.The real data
> means the data which has been built on the web site(just like shool
> data or bus stop data).
>
> Thanks! If you can't understand what I mean, tell me please.

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



[google-appengine] Ideas for use cases wanted

2010-08-11 Thread Niklasro(.appspot)
Dear group, We invite you to visit our home page where you can find
our project while elaborating which use case next to implement maybe
you have some ideas? Our app is similar to craigslist with
announcements mostly from India and Brazil. www.koolbusiness.com Notes
what ideas is to do are color 00923E,F8C100,28166F or
FF,filters,removebutton,add title if missing, admin ui, better use
of css, drivingdirectionmarker in view announcement, less numbers,
#9fdc3a #ddd01b, search radii 80,90,110,150 rectangulars or squares,
more proprietary likeness towards copyright a more proprietary look
and fell, agreed [id]/[slugify(title)] where viceversa, the "better",
conflicts same titles i18n names "coloque", "anúncio", or "post"
obviously best thing developer knows both gae and user language,
contentflags so that users can rate announcements and deals, see eg
craigslist, local timezones (can do with javascript) preferably
serverside, maybe integrate with google base? Dj promotion / events
("evanemang, eventmakare") Real estate / Terrain (mäklare) Vehicles /
Electronics (mechatronics, mekatronik) Materials / Engineering
(components, services / labor) Credit companies, Services,
selfpromotion with orkut,google,twitter,fb, technically make space:
save 1 blob only and resize requestwise..Sincerely: Niklas

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



[google-appengine] Re: more one domain for one app

2010-08-07 Thread Niklasro(.appspot)
Technically yes we can eg dynamic language selection I do
(www.montao.com.br and www.koolbusiness.com is same app in 2
languages)

On Aug 5, 6:32 pm, Gleidson G Moura  wrote:
> Can more than one domain pointing to an application
>
> www.exemplo1.compoints to myapplication.appspot.comwww.exemplo2.compoints to 
> myapplication.appspot.com
>
> it 's possible?
>
> --
> Gleidson Guimarães Moura
> Analista Desenvolvedor JAVAhttp://www.algartecnologia.com.br/
>
> http://www.google.com/profiles/gleidson.gmoura
>
>  .. __@
>  _ \ >_
>  ...(_)/ (_)
>
> Os ventos que as vezes tiram algo que amamos, são os mesmos que trazem
> algo que aprendemos a amar...
> Por isso não devemos chorar pelo que nos foi tirado e sim, aprender a
> amar o que nos foi dado.
> Pois tudo aquilo que é realmente nosso, nunca se vai para sempre...
> Bob Marley
>
> The power of dreams.

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



[google-appengine] Re: geopt query

2010-07-25 Thread Niklasro(.appspot)
I use it you can try send longitude and latitude for entities matching
geopt. However there is no bijective to countrycode so it's considered
hacky
http://www.koolbusiness.com/li?lat=21.1894428&lon=77.3783789&cc=IN

On Jul 24, 12:36 pm, Patrick  wrote:
> Malcom -  had not seen those.  I will take a closer look, but it looks
> like a nice approach lacking a native GAE solution.  Thanks for the
> pointers.
>
> Harshal - I am glad to hear this.  I wish they would add it to their
> official roadmap.  It seems right up Google's alley.
>
> On Jul 23, 10:27 pm, Harshal  wrote:
>
> > Sadly I don't remember which talk, but they did talk about supporting geopt
> > queries in Google I/O 2010. IIRC, it was titled 'next gen queries' or
> > something.
>
> > On Sat, Jul 24, 2010 at 6:44 AM, Malcolm MacKinnon 
> > wrote:
>
> > > I'm not sure exactly what you're looking for. Have you seen this:
>
> > >http://code.google.com/p/geomodel/
>
> > > and
>
> > >http://code.google.com/apis/maps/articles/geospatial.html#pubschool
>
> > > The pubschools demo application source
> > > code is an excellent place to start.
>
> > > On Fri, Jul 23, 2010 at 5:17 PM, TL  wrote:
>
> > >> I posted a similar question a while ago, no response
>
> > >>http://groups.google.com/group/google-appengine-java/browse_thread/th...
>
> > >> --
> > >> 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 > >>  e...@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 > >  e...@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.



[google-appengine] Re: LargeImageError resizing large images on the BlobStore

2010-07-25 Thread Niklasro(.appspot)
I use a http post with resize which seems to work ie
create_image('file', self, self.request.POST.get('file').file.read()
didn't try very large still a way seems to work
avatar = images.resize(filedata, 80, 80)
where filedata is
I do resize that seems to work now changing my method from storing
different sized images
to new method saving space only storing the original and resizing
towards client. You may look if you like my display and code
web.montao.com.br/li and code available montao.googlecode

On Jul 24, 2:53 pm, José Moreira  wrote:
> ping
>
> No dia 20 de Julho de 2010 01:25, José Moreira
> escreveu:
>
>
>
> > Hello,
>
> > i'm getting LargeImageError resizing large images on the BlobStore, using
> > the blob_key as param.
> > The docs state that the Exception is thrown when the Images API returns
> > image data "above" 1mb on a transform, but i'm getting this error, afaik,
> > resizing image blobs to sizes that, here manually,m result in file sizes
> > bellow 1mb.
>
> > Anyone experienced any problems with this? Am i missing something?
>
> > --
> > irc://josemore...@irc.freenode.net
> >http://pt.linkedin.com/in/josemoreira
> >http://djangopeople.net/josemoreira
>
> --
> irc://josemore...@irc.freenode.nethttp://pt.linkedin.com/in/josemoreirahttp://djangopeople.net/josemoreira

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



[google-appengine] Re: mod_rewrite old domain.cc.tld to gae named web.domain.cc.tld

2010-07-14 Thread Niklasro(.appspot)
Doomed offtopic DNS stuff like anything

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



[google-appengine] Re: mod_rewrite old domain.cc.tld to gae named web.domain.cc.tld

2010-07-12 Thread Niklasro(.appspot)
Somwhat awkward abt it now using this
RewriteEngine On
RewriteRule ^/ai?$ /Market/publish.jsp [QSA,L,PT]
RewriteRule ^/ar?$ /Market/MailDispatch [QSA,L,PT]
RewriteCond %{HTTP_HOST}   !^web\domain\.com\.br [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/(.*) http://web.domain.com.br/$1 [L,R]
#RewriteRule ^/vi/?([0-9]+)\.htm$ /Market/vi.do?id=$1
[PT,L]
RewriteRule ^/li /Market/list.do [QSA,PT,L]
RewriteRule ^/vi/locations.jsp /Market/locations.jsp [PT,L]
ErrorDocument 404 /notfound.html

On Jul 11, 9:21 am, "Niklasro(.appspot)"  wrote:
> Hey kept  RewriteRule ^/vi/?([0-9]+)\.htm$ /Market/vi.do?id=$1 [PT,L]
> I now want same redirect added subdomain web. which is appengine
> knowing many combos which won't. If any idea then kindly inform. Thank
> 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: making django templates "strict"?

2010-07-11 Thread Niklasro(.appspot)
Answer is yes just test if (not) None or likewise just that doing with
no none and no null tests getting it farther than obvious.

On 11 Juli, 00:36, "Webb S."  wrote:
> Is there a way (in Linux) to make the rendering of Django templates
> error out when a object property  is undefined?
>
> So that blah {{ bldg.name }}  throws a big fat stack trace,
> rather than rendering to  blah 
>
> This is mostly a problem for me with generated javascript code which
> is building a map.  I am sure there is a better way for that, but I
> haven't found it yet, and I would prefer to render templates strictly
> anyway.
>
> Tx!

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



[google-appengine] mod_rewrite old domain.cc.tld to gae named web.domain.cc.tld

2010-07-11 Thread Niklasro(.appspot)
Hey kept  RewriteRule ^/vi/?([0-9]+)\.htm$ /Market/vi.do?id=$1 [PT,L]
I now want same redirect added subdomain web. which is appengine
knowing many combos which won't. If any idea then kindly inform. Thank
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: InboundEmailMessage.subject doesn't support unicode strings

2010-07-05 Thread Niklasro(.appspot)


On Jul 5, 12:29 pm, Vladimir Prudnikov  wrote:
> It looks like InboundEmailMessage.subject doesn't support unicode
> strings.
>
> class AllMailHandler(InboundMailHandler):
>     def receive(self, message):
>         logging.info(message.subject)
>
> it writes "=?UTF-8?B?0L/RgNC40LLQtdGC?=" in the logs when I send email
> message with russian text in subject. I'm sending email from Gmail web
> interface. Writing subject string into database, decogind, encoding to
> utf-8 etc... always the same string.
>
> Russian text in body works fine at the same time.
>
> What I'm doing wrong? Is it bug?
Yes it appears somewhat buggy but works here ie
Date: 2010/7/6
Subject: Действие 05 июль Добро пожаловать, Вход recommends Planos de
Saúde
To: nikla...@gmail.com
Действие 05 июль Добро пожаловать, Вход 
www.koolbusiness.com/1569187/planos-de-sade
with code disponible via montao.googlecode.com
also hoping this link helps
http://appengine-cookbook.appspot.com/cat/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tyFgsSCENhdGVnb3J5IghNYWlsIEFQSQw

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



[google-appengine] New project. What shall it do?

2010-07-03 Thread Niklasro(.appspot)
Now I got a project called osquar.googlecode.com as a tribute to
Computer Builder Osquar. Unaware and losing it what to do with the
project just welcoming any advice, recommendations, suggestions and
discussions onwards from here doing most stuff in python moving all I
can from computers to apps. What do you think a new project should?
Osquar could be a bot building bots, a program programming programs,
feeling free for you feeling free saying delete the thing or get
creative and instructive.
Best wishes,

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



[google-appengine] Re: GAE anti-DOS mechanism

2010-06-10 Thread Niklasro(.appspot)
Seen practical names filterchain just passing on more like AI then
ruled based selfupdating probabilities admintting new chances
blacklisted where material improved easy
informatic argument: levenstein comparing content so doublets even
looking good still blacklist
since same same repeating alternatively Markovian no memory and states
only updating probabilities according to material

On Jun 10, 1:31 am, Jaroslav Záruba  wrote:
> Is there any reason why use memcache instead of static collection  timestamp> in a filter? It does not seem to be that important to me to share
> such collection among all app. instances. Or am I wrong?
>
> On Thu, Jun 10, 2010 at 12:06 AM, nickmilon  wrote:
> > There were a couple of sugested solutions using memcache for this some
> > time ago in this thread.
> > The problem with those solutions is that if you delegate the task to
> > the request handler then you yave already started consuming cpu
> > resources.
>
> > On Jun 9, 10:13 pm, Timothy Makobu 
> > wrote:
> > > thanks nickmilon,
>
> > > I had read that, that would be after the DOS though. I meant something
> > that
> > > detects a certain number of requests per second and does a specified
> > action.
>
> > > like:
> > > if requests_per_second > 7:
> > >         block_ip(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.

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



[google-appengine] Re: insert-delete vs. get-edit-put

2010-06-10 Thread Niklasro(.appspot)
On Jun 10, 1:25 am, Jaroslav Záruba  wrote:
> I would go with identical key and single insert, no need to delete.
>
> On Wed, Jun 9, 2010 at 10:32 PM, alf  wrote:
> > Whats is better in term of performance
>
> > insert a new entity or recycle a entity previously inserted
>
> > thx
I say a system can match or new only. What's impossible?

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



[google-appengine] Re: regex in log search

2010-06-05 Thread Niklasro(.appspot)
On Jun 4, 11:21 pm, djidjadji  wrote:
> the regex uses the \s \w as specials
>
> 2010/6/4 Philip Tucker :
>
> > I can't seem to get any regex patterns to work in the dashboard logs
> > search, in particular /b, /s, /w, and /W. Is this a known issue?
djidjadji informed patterns with grep and awk already known patterns
we could now looking for equivalent grep -v pattern | grep -v pattern
filtering logs with regex got roundabout
http://groups.google.com/g/31b7fb05/t/1d8577e12a3ea6f2/d/8f524603cc312de7

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



[google-appengine] Re: plans for 2-factor auth?

2010-06-04 Thread Niklasro(.appspot)
On Jun 4, 4:37 pm, "Ikai L (Google)"  wrote:
> It's not on our roadmap
>
> http://code.google.com/appengine/docs/roadmap.html
>
> We'll consider it if you file an issue here:
>
> http://code.google.com/p/googleappengine/issues/list
>
> In all honesty (*personal opinion alert*) every single place I've seen that
> forced users to use 2-factor auth resulted in wailing and gnashing of teeth.
> It's hard to create a security mechanism that is both hard to compromise and
> doesn't drive users nuts.
>
> On Fri, Jun 4, 2010 at 5:51 AM, Aljosa Mohorovic 
>
>
> > wrote:
> > On Jun 1, 11:29 pm, "Ikai L (Google)"  wrote:
> > > Do you mean such as with RSA tokens and such? You can definitely build
> > your
> > > own one time password implementation and email or (via an SMS or email
> > SMS
> > > gateway) SMS for a one time password.
>
> > I didn't mean for my apps running on appengine but for my account and
> > appengine dashboard (and other parts) where i can manage stuff.
> > the only thing i currently need is my google account and i can upload
> > new apps, delete apps and do related stuff.
>
> > what i'm actually asking is if i can enable additional step so that
> > managing my stuff at appengine requires something more than my google
> > account.
>
> > Aljosa Mohorovic
>
> > --
> > 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.
>
> --
> 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
Related security ongoing projekt analyses: Hur less or (un)important
also store salt when md5 and sha( towards user) appear transit all
smooth at smallscale storing salt for sha only or no salt added
bridged legacy md5 to safer and/or newer preferably like  IFRS 
The title of proposed ISA 505 is ' External Confirmations' externally
verified account like audited non-techies ie sales recognize

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



[google-appengine] Re: A group of students need your valuation on their app

2010-05-30 Thread Niklasro(.appspot)
Following instruction here's a poll.cgi
Software UI, intelligibility, structure and misc all welcome discuss
onwards
*Required
UI Any instruction is arguable
1   2   3   4   5   6   7   8   9   
10
Strongly Agree  
I can teach better
UI Any instruction returns
* True
* Questionable
* False
UI Look & Feel look proprietary
1   2   3   4   5   6   7   8   9   
10
Strongly agree  
I can teach better
Intelligibility Any field or function is required
1   2   3   4   5   6   7   8   9   
10
Strongly Agree  
I can teach better
Intelligibility Doable ISO software compliance is improvable
1   2   3   4   5   6   7   8   9   
10
Strongly agree  
I can teach better
Structure Any modularization and partitioning is wise
1   2   3   4   5   6   7   8   9   
10
Strongly agree  
I can teach better
Structure It obeys DRY principles
1   2   3   4   5   6   7   8   9   
10
Agree completely
Can teach better
Structure Flexibility enables easy updates to new requirements
1   2   3   4   5   6   7   8   9   
10
Agreed completely   
Can teach better
Structure Any indentation is neat and externally conguent
1   2   3   4   5   6   7   8   9   
10
Agree   
Can teach better
Misc Deliverables are according to requirements
1   2   3   4   5   6   7   8   9   
10
Agree   
Can teach better
Misc Author supports details
1   2   3   4   5   6   7   8   9   
10
Agree   
Can teach better
On May 24, 8:41 pm, Duc Anh Nguyen  wrote:
> Hi,
> We just have completed the demo version of our Java app on GAE.
> Generally, our idea is to make a website that helps you improve your
> debugging skills. And for our school project, it should be a game, so
> we called it a debugging game.
>
> You'd play as an employee working for a cruel employer, who gives you
> a trashy bunch of codes everyday and wants you to fix them. So you'd
> read the code, you'd make some changes, and you submit your solution
> to the employer - the GAE server, where it compiles your code and
> return a result.
>
> Enough said, please take a look:http://bugkillr.appspot.com
> And we have a valuation form ready for you to fill 
> in!http://spreadsheets.google.com/viewform?hl=en&pli=1&formkey=dGJQVnRuU...
>
> Thank you so much. We really appreciate your 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 
> 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Advice on improving performance of a query

2010-05-28 Thread Niklasro(.appspot)
Readonly fundamentally is another thing. Task readonly, make that 1
and rest otherwise are great divisibles
On May 27, 11:30 pm, Lenny Rachitsky  wrote:
> Thanks for the tip Greg. But otherwise, I'm getting the impression
> this is normal for app engine?
>
> On May 26, 6:59 pm, Greg  wrote:
>
> > I have a task that regularly gets 100 objects at a time, and records
> > how long it takes. This ranges between 0.1 and 2 seconds, usually
> > closer to the lower end. Some of these values were from yesterday when
> > there were serious issues with the datastore.
>
> > My objects are slightly more complex than yours, but I would expect
> > similar performance. One thing I noticed is that you've left all your
> > properties indexed - this shouldn't affect reads, but will make writes
> > much slower. For any properties that you don't need to search by (and
> > particularly the list) add "indexed=False" to the definition.
>
> > Cheers
> > Greg.

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



[google-appengine] Re: Interesting evaluation of AppEngine for transaction processing and a comparison to other cloud providers

2010-05-28 Thread Niklasro(.appspot)


On May 27, 7:27 am, Ivan Zuzak  wrote:
> Hi all,
>
> Just thought I'd mention this here as it is probably interesting to
> AppEngine developers -- there's a paper on "An Evaluation of
> Alternative Architectures for Transaction Processing in the Cloud"
> available at [1] and a short overview at [2].
>
> Best,
> Ivan
>
> [1]http://systems.ethz.pubzone.org/servlet/Attachment?attachmentId=76&ve...
>
> [2]http://highscalability.com/blog/2010/5/26/end-to-end-performance-stud...
Alway think why you need it:Alla edits reversible. Same thing

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



[google-appengine] Re: Advice on improving performance of a query

2010-05-26 Thread Niklasro(.appspot)


On May 22, 11:15 pm, Herbert  wrote:
> Hi Lenny,
>
> Datastore read time has a lot to do with the total size of the
> returned results. There's a list property in the model too the total
> size would be quite significant. Do you have to read the lists for all
> results? If not you can store the lists in a separate entity for
> optimizations.
>
> Herbert
>
> --
> 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 
> athttp://groups.google.com/group/google-appengine?hl=en.
memcache is 1 obvious choice too

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



[google-appengine] Re: Advice on improving performance of a query

2010-05-26 Thread Niklasro(.appspot)
General good start depends on get or post you always can
benchmark( why you need http post

On May 22, 8:53 pm, Lenny Rachitsky  wrote:
> I have the following query and associated fetch:
>
> query = db.GqlQuery("SELECT * FROM VenueHistory WHERE venue_id
> = :venue_id ORDER BY time desc", venue_id=str(venue_id))
> results = query.fetch(1000)
>
> The VenueHistory data model is such:
>
> class VenueHistory(db.Model):
>     venue_id = db.StringProperty(required=True)
>     males = db.IntegerProperty(required=True)
>     females = db.IntegerProperty(required=True)
>     time = db.DateTimeProperty(auto_now_add=True)
>     checkedin_users = db.ListProperty(str)
>
> In production app stats, the "query.fetch(1000)" request is seeing
> performance on average around 20507ms (9179ms api). Often times it
> times out.
>
> Is this expected? Should I expect > 20 second run times from a fetch
> of 1000 results? Any advice on getting back this amount of data more
> efficiently?
>
> Thank you in advance,
> Lenny
>
> --
> 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 
> 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Upload files larger than 10MB?

2010-04-25 Thread Niklasro(.appspot)


On Apr 25, 7:39 am, "Magnus O."  wrote:
> Hi,
>
> I'm using the MaxMind GeoLiteCity.dat (http://www.maxmind.com/app/
> geolitecity) file to get the geolocation of my visitors. It works
> great in the development environment but I can not deploy it since the
> dat file is about 30MB?
>
> Is it not possible to deploy files larger than 30mb?
>
> //Magnus
Alternatives are http://code.google.com/p/geomodel/
and clientside latlng = new
google.maps.LatLng(google.loader.ClientLocation.latitude,
google.loader.ClientLocation.longitude);
location = "IP location: " + getFormattedLocation();

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



[google-appengine] i18n gettext with html

2010-04-23 Thread Niklasro(.appspot)
Dear group, while towards user all looks all well it's kinda against
good practice mixing code and translations ie looking for alternative
to mixing html and translations where now

msgid "You can"
msgstr "Finn Annons...
nytt .."

Related Q2 how to handle escape welcoming pointers and advice.

msgid "Computers & Accessories"
msgstr "Datorer & Datordelar"

Thanks!

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



[google-appengine] Re: Uploading with the bulkloader.py

2010-04-02 Thread Niklasro(.appspot)
2 related while we look what's google3.net.proto.ProtocolBuffer ...are
http://groups.google.com/group/google-appengine-python/browse_thread/thread/947b0c978f41541a/b0fe9ff8a337be08
http://groups.google.com/group/google-appengine-python/browse_thread/thread/947b0c978f41541a/b2c148ade4611314
On Mar 13, 8:55 am, Josh Moore  wrote:
> Hi I am trying to download all of the datastore objects in my application 
> with thebulkloaderand then upload them into a different application.
>
> I use this command to download:bulkloader.py --dump --app_id=jsm277 
> --url=http://bulkmove.latest.jsm277.appspot.com/remote_api--filename=test_download_data
>
> and I get this output:
>
> /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py:64:
>  DeprecationWarning: the sha module is deprecated; use the hashlib module 
> instead
>   import sha
> /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_login.py:33:
>  DeprecationWarning: the md5 module is deprecated; use hashlib instead
>   import md5
> [INFO    ] Logging tobulkloader-log-20100313.160710
> [INFO    ] Throttling transfers:
> [INFO    ] Bandwidth: 25 bytes/second
> [INFO    ] HTTP connections: 8/second
> [INFO    ] Entities inserted/fetched/modified: 20/second
> [INFO    ] Opening database:bulkloader-progress-20100313.160710.sql3
> [INFO    ] Opening database:bulkloader-results-20100313.160710.sql3
> [INFO    ] Connecting to bulkmove.latest.jsm277.appspot.com/remote_api
> [INFO    ] Downloading kinds: [u'Blogs', u'Posts', u'Blog', u'Person', 
> u'Post', u'_ah_SESSION']
> ..[INFO    ] _ah_SESSION: No descending index on __key__, performing 
> serial download
> 
> [INFO    ] Have 21307 entities, 0 previously transferred
> [INFO    ] 21307 entities (7414423 bytes) transferred in 1063.4 seconds
>
> Then I use this command to upload to my new application:
>
> bulkloader.py --restore 
> --url=http://bulkmove.latest.railsturbinetest.appspot.com/--filename=test_download_data
>  --app_id=railsturbinetest
>
> And this is the output that I am getting:
> Josh-Moores-MacBook:datadownload joshmoore$bulkloader.py --restore 
> --url=http://bulkmove.latest.railsturbinetest.appspot.com/--filename=test_download_data
>  --app_id=railsturbinetest ~/Documents/code/new_rails_turbine/
> /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py:64:
>  DeprecationWarning: the sha module is deprecated; use the hashlib module 
> instead
>   import sha
> /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_login.py:33:
>  DeprecationWarning: the md5 module is deprecated; use hashlib instead
>   import md5
> [INFO    ] Logging tobulkloader-log-20100313.164108
> [INFO    ] Throttling transfers:
> [INFO    ] Bandwidth: 25 bytes/second
> [INFO    ] HTTP connections: 8/second
> [INFO    ] Entities inserted/fetched/modified: 20/second
> [INFO    ] Opening database:bulkloader-progress-20100313.164108.sql3
> [INFO    ] Connecting to bulkmove.latest.railsturbinetest.appspot.com/
> Traceback (most recent call last):
>   File "/usr/local/bin/bulkloader.py", line 68, in 
>     run_file(__file__, globals())
>   File "/usr/local/bin/bulkloader.py", line 64, in run_file
>     execfile(script_path, globals_)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
>  line 4031, in 
>     sys.exit(main(sys.argv))
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
>  line 4027, in main
>     return _PerformBulkload(arg_dict)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
>  line 3880, in _PerformBulkload
>     return_code = app.Run()
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
>  line 3170, in Run
>     kinds = self.RunPostAuthentication()
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
>  line 

[google-appengine] Re: Deployment of existing app from the web

2010-03-30 Thread Niklasro(.appspot)
http://code.google.com/p/googleappengine/issues/detail?id=2136
Similar proposed integrating googlecode, deployment and editor. Any hg
online editor with deployment script between googlecode and appengine
enables it
"onlineworkuiintegrated onlinecodeeditor defines working environment
not
only adminui, workui, not only adminui, integrated dev htmlui:
-codeeditor ie workui
-vcs sync
-adminui ie nobrainer already
-easy quick adjust obvious instead of local
-facilitates quickedits even extreme strenous, all dev needs telnet or
tunnel, no windowmanager=superior performance and security


On Mar 30, 8:34 am, PoulS  wrote:
> While app engine is great for those who want to develop their own
> apps, how about those who have little technical skills and just want
> to deploy an app that someone else has made available on the web.
> Shouldn't they be able to do so from within the web interface ?

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



[google-appengine] Re: google-appengine] A tip to speed up a local large development datastore: use ramdisk [linux]

2010-03-29 Thread Niklasro(.appspot)
On Mar 28, 11:46 pm, José Moreira  wrote:
> Setup something likehttp://ubuntuforums.org/showthread.php?t=182764
> and set your datastore path on to the ramdisk with :
>
> --datastore_path=PATH      Path to use for storing Datastore file stub
> data. (Default /tmp/dev_appserver.datastore)
>
> *** speed tests ***
>
> Regular disk:
>
> jmore...@mint ~/Tmp $ sudo hdparm -Tt /dev/sda4
> /dev/sda4:
>  Timing cached reads:   3576 MB in  2.00 seconds = 1791.11 MB/sec
>  Timing buffered disk reads:  112 MB in  3.01 seconds =  37.23 MB/sec
>
> Ram disk disk:
>
> jmore...@mint ~/Tmp $ sudo hdparm -Tt /dev/ram0
> /dev/ram0:
>  Timing cached reads:   4114 MB in  2.00 seconds = 2061.44 MB/sec
>  Timing buffered disk reads:   64 MB in  0.14 seconds = 446.65 MB/sec
I don't have a harddrive doing something similar:
 df -h
FilesystemSize  Used Avail Use% Mounted on
aufs  2.0G  451M  1.5G  24% /
udev  2.0G  236K  2.0G   1% /dev
/dev/sr0  691M  691M 0 100% /cdrom
/dev/loop0666M  666M 0 100% /rofs
none  2.0G  136K  2.0G   1% /dev/shm
tmpfs 2.0G   20K  2.0G   1% /tmp
none  2.0G   88K  2.0G   1% /var/run
none  2.0G 0  2.0G   0% /var/lock
none  2.0G 0  2.0G   0% /lib/init/rw

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



[google-appengine] Re: popularity of Python vs Java on GAE

2010-03-29 Thread Niklasro(.appspot)
My choice is obvious. Just look at this definition.

public void setInterfaceHandlerUrl(String interfaceHandlerUrl)
   {
   this.interfaceHandlerUrl = interfaceHandlerUrl;
   }

It does nothing active and cannot be understood why pre or
postprocessing can't handle seemingly total compiler 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: headless browser

2010-03-26 Thread Niklasro(.appspot)
On Mar 24, 10:43 pm, Peter Warren  wrote:
> I have a Google Web Toolkit client that is served from Google App
> Engine.  I'm trying to follow the Google-recommended practice for seo/
> crawling of ajax apps outlined here:http://code.google.com/web/ajaxcrawling/.
>
> 1) I understand that HtmlUnit doesn't work on App Engine.  Is that
> right?
>
> 2) Are there any other headless browser APIs that would work on App
> Engine, or any other alternatives for serving html snapshots of my
> application?
>
> Thanks,
> Peter
com.meterware.httpunit.*; you may find successful since with regular
LAMP a hasty way I did is
WebConversation wc = new WebConversation();
HttpUnitOptions.setScriptingEnabled(false);
WebRequest req = new GetMethodWebRequest("http://mydomain.tld/
submit.html");
WebResponse resp = wc.getResponse(req);
kform = resp.getForms()[0];
kform.setParameter("name", myForm.getName());

=logs in and so

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



[google-appengine] Re: IP address to GPS coordinates

2010-03-25 Thread Niklasro(.appspot)
On Mar 25, 3:22 pm, Benjamin  wrote:
> Does anyone know a good way to get an approximate GPS coordinate
> (Latitude and Longitude) when you have a users IP Address?
>
> When my users post to a web service i'm pretty sure i know their IP.
> I'd like to get the Latitude and Longitude of the client based on that
> like GEO IP does but from my system running on app engine.
latlng = new google.maps.LatLng(google.loader.ClientLocation.latitude,
google.loader.ClientLocation.longitude);

There's code available (montao.googlecode) doing something simililar
and live usecase koolbusiness.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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Investigation GAE

2010-03-25 Thread Niklasro(.appspot)
Persistence layer is very easy sync with for instance
http://code.google.com/p/approcket/
View you can keep flexible with feeds or likewise
I agree it's difficult and won't replicate exactly however migrations
indicate growing together a LAMP and GAE is positively technically
doable keeping lucrative question aside since ROI(C) answers can tend
be the opposite answer of technical.

On Mar 25, 1:08 pm, Robert Kluin  wrote:
> Perhaps, but not exactly with a 'LAMP' stack.  Look 
> at:http://code.google.com/p/typhoonae/http://code.google.com/p/appscale/
>
> Robert
>
> On Thu, Mar 25, 2010 at 8:36 AM, Jason Funk  wrote:
> >> You can always sync with LAMP for a Plan B
>
> > I was under the impression that code developed for GAE will only work
> > on GAE. Sure, I could sync my code but would it run?
>
> > --
> > 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 
> > 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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: i18n and verbose_name

2010-03-25 Thread Niklasro(.appspot)
On Mar 24, 8:11 pm, Emilis Kuke  wrote:
> Hello Niklasro! Thanks for response.
>
> Does your pack and implementation work with verbose_name correctly. Is
> it possible to change language for this property outside of system.py
> configuration file. And if it you have a such implementation could you
> share it with me?
>
> I need to change language model like this
>
> class Advertisement(db.Model):
>   name = db.StringProperty(required=True,verbose_name=_(u'First name'))
>
> not in settings.py.
>
> LANGUAGE_CODE = 'lt'
>
> _ = lambda s: s
>
> LANGUAGES = (
>     ('en', _('English')),
>     ('lt', _('Lithuanian')),
>     )
>
> Views transtales very well  with
> 'localeurl.middleware.LocaleURLMiddleware', but doesn't translate out
> of the box model field, which represents label in my form value. So
> After changing language in url I must to change LANGUAGE_CODE in
> settings.py. So I'm in truble, becouse, I coudn't do this action the
> the fly. Firstly I should stop server, second change LANGUAGE_CODE
> variable value, and run server. So maybe do you have better solution
> for my problem.
>
> Thanks for the effor!
>
> --
> Sincerely,
>
> Emilis Kuke
>
> Tel.: +37067837043
My answer is yes, all appears here way it should. It is open and
appears flexible here for instance language code it works from here
http://www.koolbusiness.com?hl=it
Code is available montao.googlecode working to drop the custom request
handler towards implementation gae team know better.

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



[google-appengine] Re: Investigation GAE

2010-03-25 Thread Niklasro(.appspot)


On Mar 24, 5:41 pm, Jason Funk  wrote:
> Hello,
>  I have an idea for a web application and am starting to do research
> on the design and implementation. I ran across GAE and it seems to fit
> all the requirements. I have two quick questions though:
>
> 1) The application will require users to enter secure data. Assuming
> the application is secure, could I reasonably tell my users that their
> information isn't going to fall into the hands of Google?
>
> 2) I've noticed a few places that says that this is a preview release.
> Is there some assurance that Google isn't going to come along one day
> and say "That was fun. All done." and poof, there goes all my work?
>
> Thanks,
> Jason
You can always sync with LAMP for a Plan B

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



[google-appengine] Re: popularity of Python vs Java on GAE

2010-03-25 Thread Niklasro(.appspot)
Can you argue? Looks good just that tricky explain why we need empty
definitions for example
 /**
* Setter for the remoter
* @param remoter
*/
   public void setRemoter(Remoter remoter)
   {
   this.remoter = remoter;
   }

   /**
* The bean to execute remote requests and generate interfaces
*/
   protected Remoter remoter = null;

   /**
* Setter for the URL that this handler available on
* @param interfaceHandlerUrl the interfaceHandlerUrl to set
*/
   public void setInterfaceHandlerUrl(String interfaceHandlerUrl)
   {
   this.interfaceHandlerUrl = interfaceHandlerUrl;
   }

   /**
* What URL is this handler available on?
*/
   protected String interfaceHandlerUrl;
}

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