Re: [appengine-java] gmail contacts

2010-08-02 Thread RAVINDER MAAN
u can use gdata to get ur gmail contacts and to send message you can use javamail. Below is code to get your contacts from gmail import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Iterator; import

Re: [appengine-java] Re: SQL Like operator with %

2010-07-07 Thread RAVINDER MAAN
??? Thanks !! On 2 jul, 06:49, RAVINDER MAAN rsmaan...@gmail.com wrote: we can set it in following way public class User { @Persistent(defaultFetchGroup=true) private SetString searchWords; public static void getCombination(String word,Set searchWords){ word = word.trim

[appengine-java] Uploading App to GAE with JSP compile Error

2010-07-06 Thread RAVINDER MAAN
Hello all I have jsp file which I am including in other jsp`s using include directive.I am declaring variables in the parent JSP .So included jsp has compilation errors because it is refering parent jsp`s variables.It is working fine on local .But when i try to upload application to GAE because

Re: [appengine-java] Re: SQL Like operator with %

2010-07-05 Thread RAVINDER MAAN
You mean retrieve all entities and then use contains method? On Mon, Jul 5, 2010 at 8:29 AM, Khor Yong Hao fyh...@gmail.com wrote: Why not directly use String.contains(searchstring) method? -- You received this message because you are subscribed to the Google Groups Google App Engine for

Re: [appengine-java] Re: SQL Like operator with %

2010-07-02 Thread RAVINDER MAAN
we can set it in following way public class User { @Persistent(defaultFetchGroup=true) private SetString searchWords; public static void getCombination(String word,Set searchWords){ word = word.trim().toUpperCase(); if(word == null || .equals(word)) return ; int wordLength = word.length();

Re: [appengine-java] Volunteers needed for magazine project

2010-07-01 Thread RAVINDER MAAN
I would like to work with you.but i work in java .if you dont have any problem working in java then we can start . On Thu, Jul 1, 2010 at 9:43 PM, nosarious nosemon...@gmail.com wrote: Good morning, all. I am working on a magazine project that will hopefully use Google App Engine as the main

Re: [appengine-java] name LIKE '%abc%'

2010-06-30 Thread RAVINDER MAAN
Please check http://groups.google.com/group/google-appengine-java/browse_thread/thread/56720b03aa0d76fd/be4a5b327dd4051c?hl=enlnk=gstq=like#be4a5b327dd4051c -- Regards, Ravinder Singh Maan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

Re: [appengine-java] Re: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread RAVINDER MAAN
an installation and investigate about svn and google codes. 2010/6/28 RAVINDER MAAN rsmaan...@gmail.com I am sorry for long post .But i just want to know about other peoples view on this .In a way I just want to know what is the best way to implement this specification.May be it can

Re: [appengine-java] Re: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread RAVINDER MAAN
haven't started to use lombok? http://projectlombok.org/ It is, by far, the best tool I've found when programming Java. I'm just wondering why it's not more commonly used. Jake On Jun 28, 5:02 pm, RAVINDER MAAN rsmaan...@gmail.com wrote: I have set up this project athttp://code.google.com

[appengine-java] Discussion for Best Practices For App Engine With Example

2010-06-27 Thread RAVINDER MAAN
Hello all I am working on a project which has following requirements.Actually this is not real project .I am used to work with relational DB`s and for future projects I want to use GAE.Through this project I just want to learn best ways to use GAE . It is basically implementation of discussion

Re: [appengine-java] Re: Session object or memcache?

2010-06-13 Thread RAVINDER MAAN
can anybody provide good link for dos and donts for high traffic apps ? On Sun, Jun 13, 2010 at 11:52 AM, nischalshetty nischalshett...@gmail.comwrote: Session isn't lost but session use is discouraged. You have memcache which is pretty fast in retrieval. Of course, every once a while even

Re: [appengine-java] Need help in writing a query

2010-06-12 Thread RAVINDER MAAN
Instead of getting these values with query best option is to store this values when you add new employee.So create one more dataset with fields city, area and employeecount.whenever you add new employee update the count .then you can get the count with simple query select employeecount from

Re: [appengine-java] Need help in writing a query

2010-06-12 Thread RAVINDER MAAN
or you can use select count(this) from entityname where city==city area==area On Sat, Jun 12, 2010 at 8:24 PM, RAVINDER MAAN rsmaan...@gmail.com wrote: Instead of getting these values with query best option is to store this values when you add new employee.So create one more dataset

[appengine-java] Session object or memcache?

2010-06-11 Thread RAVINDER MAAN
Hello all what is the best option from performance point of view, storing frequently used objects in session or loading from datastore for every request(we can add memcache support before trying to fetch from datastore).Can anybody tell me good link to develop high performance and fast

[appengine-java] Records Count

2010-06-11 Thread RAVINDER MAAN
How can we get records count for a query in JDO. In sql we have select count(*) from table_name i want to get number of records returned by a query. what is the efficient way to do that.One option is to use size() function .I think it is not best way. -- You received this message because you are

Re: [appengine-java] Re: Records Count

2010-06-11 Thread RAVINDER MAAN
. Is this something feasible? On Jun 11, 11:39 am, RAVINDER MAAN rsmaan...@gmail.com wrote: How can we get records count for a query in JDO. In sql we have select count(*) from table_name i want to get number of records returned by a query. what is the efficient way to do that.One

Re: [appengine-java] Re: Records Count

2010-06-11 Thread RAVINDER MAAN
search for each of the 4 employee types and use COUNT to get the results. This will only work up to 1000 employees per employee type. Twig can execute queries in parallel so this would take no more time than running your original query. On 11 Jun 2010, at 19:39, RAVINDER MAAN wrote: Thanks

Re: [appengine-java] Re: Records Count

2010-06-11 Thread RAVINDER MAAN
share with me as i have not been able to solve it. On Jun 11, 2:53 pm, RAVINDER MAAN rsmaan...@gmail.com wrote: number of employee entities is going to be high .So i guess that possibility of getting more then 1000 employees for any search is quite high. On Fri, Jun 11, 2010 at 6:56 PM, John

Re: [appengine-java] Re: Session object or memcache?

2010-06-11 Thread RAVINDER MAAN
everything and also session is highly discouraged due to various reasons. Thanks, Rahul On Jun 11, 4:16 am, RAVINDER MAAN rsmaan...@gmail.com wrote: Hello all what is the best option from performance point of view, storing frequently used objects in session or loading from datastore

Re: [appengine-java] Re: Records Count

2010-06-11 Thread RAVINDER MAAN
on the fly three letter searches i.e. all employees with names starting with smi On 11 Jun 2010, at 20:53, RAVINDER MAAN wrote: number of employee entities is going to be high .So i guess that possibility of getting more then 1000 employees for any search is quite high. On Fri, Jun 11, 2010

Re: [appengine-java] Re: Date based sorting and result pagination

2010-06-10 Thread RAVINDER MAAN
for getFetchOptions() in this link: http://code.google.com/p/simpleds/source/browse/trunk/src/main/java/org/simpleds/PagedQuery.java This will only resolve the paging, and it's not optimal but convenient (can jump to a specific page etc). For an optimal solution, use cursors. On Jun 9, 7:36 am, RAVINDER

[appengine-java] SQL Like operator with %

2010-06-10 Thread RAVINDER MAAN
Hello all how we can we implement SQL like operator in java JDO query. how can I write this query in JDO select * from employee where name like '%james%'; Employee is entity with property name. -- You received this message because you are subscribed to the Google Groups Google App Engine

Re: [appengine-java] Re: Date based sorting and result pagination

2010-06-10 Thread RAVINDER MAAN
order has changed So u will have following Indexes propA ^ propB^ creationDate^ propA ^ propB^ creationDate(Desc) On Thu, Jun 10, 2010 at 7:34 PM, RAVINDER MAAN rsmaan...@gmail.comwrote: I forsee that there will be around 100 records or entities in one table.I have to do filtering

[appengine-java] Date based sorting and result pagination

2010-06-08 Thread RAVINDER MAAN
Hello all how can i get my query result sorted based on creationdate and also i want to do pagination for the same.what is the best way to do that.can anybody refer me any example code? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] simple relation

2010-06-02 Thread RAVINDER MAAN
Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key

Re: [appengine-java] simple relation

2010-06-02 Thread RAVINDER MAAN
, I'd hate to be completely boxed in by this restriction. I'm just getting started with GAE so I'm very much not an expert. I'd love to know anybody else's thoughts on the matter. On Wed, Jun 2, 2010 at 12:10 AM, RAVINDER MAAN rsmaan...@gmail.comwrote: Hello all can anybody please tell

Re: [appengine-java] simple relation

2010-06-02 Thread RAVINDER MAAN
. You'll have to do this manually. Honestly, you won't lose much by doing two queries. On Wed, Jun 2, 2010 at 2:12 PM, RAVINDER MAAN rsmaan...@gmail.com wrote: Thank you so much for your answer Bill yes you are rite the way i wrote its many to many relation.Actually I want relation as below

Re: [appengine-java] stuck indexes ?

2010-06-02 Thread RAVINDER MAAN
I see same problem it takes hours to build indexes.is there any faster way? On Thu, Jun 3, 2010 at 10:03 AM, Bruce h...@alum.rpi.edu wrote: Hi, I have an app at 'omwatcher.appspot.com' with a very small database, yet two indexes seem to be stuck with Status=Building. Can someone help?