RE: [google-appengine] Re: Detect mobile phone

2011-05-30 Thread Brandon Wirtz
Yeah, but "Android" could also be a tablet, which would be better than a 
NetBook in terms of resolution and capabilities.

-Original Message-
From: google-appengine@googlegroups.com 
[mailto:google-appengine@googlegroups.com] On Behalf Of JH
Sent: Wednesday, May 25, 2011 3:10 PM
To: Google App Engine
Subject: [google-appengine] Re: Detect mobile phone

These guys have some good code:
http://detectmobilebrowser.com/


On May 25, 3:45 am, Cong Danh Ho  wrote:
> Hi all,
> How to detect mobile phone when android connect to Google App Engine !
> help me !
> --
>
> *Best regards,*
>
> *---
> *
>
> *Hồ Công Danh*
> Developer
>  [M] : 094 7579 583
> [E] : congdanh...@gmail.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.


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



Re: [google-appengine] Re: Detect mobile phone

2011-05-30 Thread Cong Danh Ho
Hi Ryan,
How to use http://www.zytrax.com/tech/web/mobile_ids.html.
Please give me demo about it !
Thanks !

On Thu, May 26, 2011 at 10:54 PM, Ryan Peden  wrote:

> The easiest way I can think of is to check to 'User-Agent' header.
> When you get a connection from a web browser on an Android phone,
> "Android" will appear somewhere in the user agent header.
>
> See http://www.zytrax.com/tech/web/mobile_ids.html for a good list of
> mobile user agent headers.
>
> --
> 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.
>
>


-- 

*Best regards,*

*---
*

*Hồ Công Danh*
Developer
 [M] : 094 7579 583
[E] : congdanh...@gmail.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] Re: Detect mobile phone

2011-05-26 Thread Ryan Peden
The easiest way I can think of is to check to 'User-Agent' header.
When you get a connection from a web browser on an Android phone,
"Android" will appear somewhere in the user agent header.

See http://www.zytrax.com/tech/web/mobile_ids.html for a good list of
mobile user agent headers.

-- 
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: Detect mobile phone

2011-05-25 Thread JH
These guys have some good code:
http://detectmobilebrowser.com/


On May 25, 3:45 am, Cong Danh Ho  wrote:
> Hi all,
> How to detect mobile phone when android connect to Google App Engine !
> help me !
> --
>
> *Best regards,*
>
> *---
> *
>
> *Hồ Công Danh*
> Developer
>  [M] : 094 7579 583
> [E] : congdanh...@gmail.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] Re: Detect Mobile Phone

2010-10-08 Thread Filippo De Luca
Unfortunately You don't miss only 0.01% but around 30%. (Blackberry
does not contain blackberry at all, Same for Nokia). An iPhone is
really different from Nokia N95 or a BlackBerry or Motorola v3xx So
you need more detail about phone to supply a good user experience. The
screen size is a first class needed.

The best approach is to detect if the connected device is mobile or
not with a very simple algorithm. If it is mobile, process user-agent
with a set of heuristics to classify the phone or to get more info
about it.

On Sep 27, 5:47 pm, Eli Jones  wrote:
> I really can't believe that.. this message:
>
>  "Need a quick and easy way to detect mobile phones from my app, that won't
> add too much performance overhead."
>
> Led to potential solutions that effectively contain phrases like:
>
> "Levenstein distance", "huge XML", "rewrite WURFL"
>
> Someone already mentioned.. look for "iphone", "android" and "blackberry" to
> get a large chunk of the Mobile users without needing to check any stored
> data for clues.. if you get a useragent that does not contain "MSIE" (or
> whatever you like) or "Firefox" or whatever list of desktop browser classes
> you know of..
>
> Then check memcache to see if that useragent is mobile.. if memcache
> contains no data, check your processed datastore data to see if the
> useragent is mobile (according whatever process you've decided to use to
> determine this) and stick that data back in memcache for next time.
>
> Or, just google "mobile useragent"
>
> And look at a page like this for more obvious useragent strings:
>
> http://www.zytrax.com/tech/web/mobile_ids.html
>
> OR, just be lazy and assume
> anyone with a useragent string that doesn't contain "MSIE", "Firefox",
> "Chrome" (that might be tricky... since maybe mobile devices could have
> it??), "Opera" (with some special checks for mobile version) is on mobile..
>  I guess you can put in checks for all the Linux browsers too..
>
> Some asperger nerd will surely come in and say that you'll miss some 0.01 %
> of mobile users with some method like the above.. and while you are spending
> all your time trying to figure out the ideal mobile detection scheme.. some
> thicknecked dude will come along and do the quick and dirty 90% method
> (while playing mobile sudoku, and Madden 2012 at the same time).. and beat
> you to market.
>
> (Naturally, I'm using hyperbole to make a point.. [I think])
>
>
>
> On Sun, Aug 22, 2010 at 2:12 AM, prgmratlarge  wrote:
> > Need a quick and easy way to detect mobile phones from my app, that
> > won't add too much performance overhead. Any suggestions?
>
> > --
> > 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: Detect Mobile Phone

2010-09-27 Thread Tim Hoffman
I seriously doubt you need every single user agent to be parsed.

Think carefully about what robert is proposing.

I doubt you could possibly generate custom pages for every possibly
mobile user agent out there.
You couldn't possibly test them all.

80/20.  With a graceful fall back.

I haven't seen your use case for such a level of detail so I could be
wrong, but focus on getting quick hits and then deal with
the odds and sods later.

T

On Sep 27, 4:41 pm, Filippo De Luca  wrote:
> The query you proposed is not usable. The algorithms need to iterate
> over the whole useragents set.
>
> On Aug 29, 5:38 pm, prgmratlarge  wrote:
>
>
>
>
>
>
>
> > Well it really depends on how you query the datastore. If you do
> > something
> > like SELECT ... WHERE ua={user agent}, it would be much faster. But if
> > the
> > algorithms require iterating over the entire datastore, then it would
> > obviously be slower. When I say datastore, I mean to use the former
> > scenario, where the data is somehow set up so that a simple query will
> > yield
> > the results. So my question is, what's the best way to query a user
> > agent,
> > and get the right result?
>
> > On Aug 29, 7:03 am, Filippo De Luca  wrote:
>
> > > Yes I think it can be a possible strategy. But what about cpu time? Is
> > > datastore less cpu intensive then default WURFLModel? Surely it has
> > > less memory footprint but it is less responsive also. My friend
> > > suggested me to have a standing alone matching application. The other
> > > application ask it to matching the request by REST protocol. I have a
> > > REST basedWURFLweb service, but it is not yet released as open-
> > > source. Do you think it is a possible solution?
>
> > > To lower theWURFLcpu time can be useful a servlet filter with some
> > > heuristics to determine if the request came from a mobile device or
> > > not. without involvingWURFL.
>
> > > On Aug 27, 7:53 pm, prgmratlarge  wrote:
>
> > > > Well I was thinking of using the datastore. Would this be possible,
> > > > and what would be the method to the query?
>
> > > > On Aug 27, 3:44 am, Filippo De Luca  wrote:
>
> > > > > Yes it is true. Whether it is worth depends on the application aim. A
> > > > > good compromise can be a lightweightwurflapi without the LD
> > > > > algoritm. And a trie in substitution to RIS.
>
> > > > > On Aug 27, 12:11 am, prgmratlarge  wrote:
>
> > > > > > Yes, but the CPU required to do a lookup is simply not worth it.
> > > > > > Remember, every time a (new) user hits the site you do a lookup. It
> > > > > > can add up very quickly.
>
> > > > > > On Aug 26, 9:07 am, Filippo De Luca  
> > > > > > wrote:
>
> > > > > > > Hi,
> > > > > > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > > > > > limit. A simple workaround may be split thewurflxml file in 
> > > > > > > several
> > > > > > > little file, one root and many patches. I will do this utility
> > > > > > > available for the GAE community.
>
> > > > > > > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > > > > > > I've made some tests withWURFL(from sourceforge)
> > > > > > > > It works very well on my development platform
> > > > > > > > But it fails on GAE due to the size limit:WURFLuses a huge XML 
> > > > > > > > file
> > > > > > > > and GAE fails to open the compressed version of the file
> > > > > > > > For now, I have no time to resolve this issue until end of 
> > > > > > > > september
>
> > > > > > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > > > > > > Can you use the user-agent?
>
> > > > > > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > > > > > > wrote:
>
> > > > > > > > > > Need a quick and easy way to detect mobile phones from my 
> > > > > > > > > > app, that
> > > > > > > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > > > > > > --
> > > > > > > > > > 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.
>
> > > > > > > > > --
> > > > > > > > > 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

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

[google-appengine] Re: Detect Mobile Phone

2010-09-27 Thread Filippo De Luca
The query you proposed is not usable. The algorithms need to iterate
over the whole useragents set.

On Aug 29, 5:38 pm, prgmratlarge  wrote:
> Well it really depends on how you query the datastore. If you do
> something
> like SELECT ... WHERE ua={user agent}, it would be much faster. But if
> the
> algorithms require iterating over the entire datastore, then it would
> obviously be slower. When I say datastore, I mean to use the former
> scenario, where the data is somehow set up so that a simple query will
> yield
> the results. So my question is, what's the best way to query a user
> agent,
> and get the right result?
>
> On Aug 29, 7:03 am, Filippo De Luca  wrote:
>
>
>
> > Yes I think it can be a possible strategy. But what about cpu time? Is
> > datastore less cpu intensive then default WURFLModel? Surely it has
> > less memory footprint but it is less responsive also. My friend
> > suggested me to have a standing alone matching application. The other
> > application ask it to matching the request by REST protocol. I have a
> > REST basedWURFLweb service, but it is not yet released as open-
> > source. Do you think it is a possible solution?
>
> > To lower theWURFLcpu time can be useful a servlet filter with some
> > heuristics to determine if the request came from a mobile device or
> > not. without involvingWURFL.
>
> > On Aug 27, 7:53 pm, prgmratlarge  wrote:
>
> > > Well I was thinking of using the datastore. Would this be possible,
> > > and what would be the method to the query?
>
> > > On Aug 27, 3:44 am, Filippo De Luca  wrote:
>
> > > > Yes it is true. Whether it is worth depends on the application aim. A
> > > > good compromise can be a lightweightwurflapi without the LD
> > > > algoritm. And a trie in substitution to RIS.
>
> > > > On Aug 27, 12:11 am, prgmratlarge  wrote:
>
> > > > > Yes, but the CPU required to do a lookup is simply not worth it.
> > > > > Remember, every time a (new) user hits the site you do a lookup. It
> > > > > can add up very quickly.
>
> > > > > On Aug 26, 9:07 am, Filippo De Luca  wrote:
>
> > > > > > Hi,
> > > > > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > > > > limit. A simple workaround may be split thewurflxml file in several
> > > > > > little file, one root and many patches. I will do this utility
> > > > > > available for the GAE community.
>
> > > > > > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > > > > > I've made some tests withWURFL(from sourceforge)
> > > > > > > It works very well on my development platform
> > > > > > > But it fails on GAE due to the size limit:WURFLuses a huge XML 
> > > > > > > file
> > > > > > > and GAE fails to open the compressed version of the file
> > > > > > > For now, I have no time to resolve this issue until end of 
> > > > > > > september
>
> > > > > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > > > > > Can you use the user-agent?
>
> > > > > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > > > > > wrote:
>
> > > > > > > > > Need a quick and easy way to detect mobile phones from my 
> > > > > > > > > app, that
> > > > > > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > > > > > --
> > > > > > > > > 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.
>
> > > > > > > > --
> > > > > > > > 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

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



Re: [google-appengine] Re: Detect Mobile Phone

2010-08-29 Thread Robert Kluin
The datastore is slow, sometimes it is extremely slow.  Doing an extra
datastore query for each request will add quite a bit of overhead to
your app.  That means you will probably want to use some type of
sessions.  For some applications knowing the mobile devices
capabilities is probably important enough to justify the overhead.  I
think Yossie is probably on the right track.

If it is at all possible I would suggest using the user-agent as the
entity key.  Then you can use a fetch instead of a query --
WURFLModel.get(user-agent).  Perhaps if this is something really
important to your app you would want to memcache the most common
user-agents.

For our apps we identified the most common devices accessing the app;
for us, those are iPhones and BlackBerries.  We simply check the
user-agent for 'blackberry', 'iphone', and 'android' to decide what to
give the client.  iPhones and Android phones get the same version of
the app, blackberries get a very simple stripped down version.
Anything else with mobile in the user-agent basically gets the
blackberry version.  Seems to be working for us, and it is fast.  No
expensive queries or look-ups.

I have not used the urlfetch service enough in my own apps to know for
sure, but there are constant posts here about it being slow.  If
you're going that route you'll need to handle the case when the fetch
craps out.


Robert



On Sun, Aug 29, 2010 at 11:38, prgmratlarge  wrote:
> Well it really depends on how you query the datastore. If you do
> something
> like SELECT ... WHERE ua={user agent}, it would be much faster. But if
> the
> algorithms require iterating over the entire datastore, then it would
> obviously be slower. When I say datastore, I mean to use the former
> scenario, where the data is somehow set up so that a simple query will
> yield
> the results. So my question is, what's the best way to query a user
> agent,
> and get the right result?
>
> On Aug 29, 7:03 am, Filippo De Luca  wrote:
>> Yes I think it can be a possible strategy. But what about cpu time? Is
>> datastore less cpu intensive then default WURFLModel? Surely it has
>> less memory footprint but it is less responsive also. My friend
>> suggested me to have a standing alone matching application. The other
>> application ask it to matching the request by REST protocol. I have a
>> REST based WURFL web service, but it is not yet released as open-
>> source. Do you think it is a possible solution?
>>
>> To lower the WURFL cpu time can be useful a servlet filter with some
>> heuristics to determine if the request came from a mobile device or
>> not. without involving WURFL.
>>
>> On Aug 27, 7:53 pm, prgmratlarge  wrote:
>>
>>
>>
>> > Well I was thinking of using the datastore. Would this be possible,
>> > and what would be the method to the query?
>>
>> > On Aug 27, 3:44 am, Filippo De Luca  wrote:
>>
>> > > Yes it is true. Whether it is worth depends on the application aim. A
>> > > good compromise can be a lightweight wurfl api without the LD
>> > > algoritm. And a trie in substitution to RIS.
>>
>> > > On Aug 27, 12:11 am, prgmratlarge  wrote:
>>
>> > > > Yes, but the CPU required to do a lookup is simply not worth it.
>> > > > Remember, every time a (new) user hits the site you do a lookup. It
>> > > > can add up very quickly.
>>
>> > > > On Aug 26, 9:07 am, Filippo De Luca  wrote:
>>
>> > > > > Hi,
>> > > > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
>> > > > > limit. A simple workaround may be split thewurflxml file in several
>> > > > > little file, one root and many patches. I will do this utility
>> > > > > available for the GAE community.
>>
>> > > > > On Aug 23, 10:46 pm, moissinac  wrote:
>>
>> > > > > > I've made some tests withWURFL(from sourceforge)
>> > > > > > It works very well on my development platform
>> > > > > > But it fails on GAE due to the size limit:WURFLuses a huge XML file
>> > > > > > and GAE fails to open the compressed version of the file
>> > > > > > For now, I have no time to resolve this issue until end of 
>> > > > > > september
>>
>> > > > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>>
>> > > > > > > Can you use the user-agent?
>>
>> > > > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
>> > > > > > > wrote:
>>
>> > > > > > > > Need a quick and easy way to detect mobile phones from my app, 
>> > > > > > > > that
>> > > > > > > > won't add too much performance overhead. Any suggestions?
>>
>> > > > > > > > --
>> > > > > > > > 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-appengine] Re: Detect Mobile Phone

2010-08-29 Thread prgmratlarge
Well it really depends on how you query the datastore. If you do
something
like SELECT ... WHERE ua={user agent}, it would be much faster. But if
the
algorithms require iterating over the entire datastore, then it would
obviously be slower. When I say datastore, I mean to use the former
scenario, where the data is somehow set up so that a simple query will
yield
the results. So my question is, what's the best way to query a user
agent,
and get the right result?

On Aug 29, 7:03 am, Filippo De Luca  wrote:
> Yes I think it can be a possible strategy. But what about cpu time? Is
> datastore less cpu intensive then default WURFLModel? Surely it has
> less memory footprint but it is less responsive also. My friend
> suggested me to have a standing alone matching application. The other
> application ask it to matching the request by REST protocol. I have a
> REST based WURFL web service, but it is not yet released as open-
> source. Do you think it is a possible solution?
>
> To lower the WURFL cpu time can be useful a servlet filter with some
> heuristics to determine if the request came from a mobile device or
> not. without involving WURFL.
>
> On Aug 27, 7:53 pm, prgmratlarge  wrote:
>
>
>
> > Well I was thinking of using the datastore. Would this be possible,
> > and what would be the method to the query?
>
> > On Aug 27, 3:44 am, Filippo De Luca  wrote:
>
> > > Yes it is true. Whether it is worth depends on the application aim. A
> > > good compromise can be a lightweight wurfl api without the LD
> > > algoritm. And a trie in substitution to RIS.
>
> > > On Aug 27, 12:11 am, prgmratlarge  wrote:
>
> > > > Yes, but the CPU required to do a lookup is simply not worth it.
> > > > Remember, every time a (new) user hits the site you do a lookup. It
> > > > can add up very quickly.
>
> > > > On Aug 26, 9:07 am, Filippo De Luca  wrote:
>
> > > > > Hi,
> > > > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > > > limit. A simple workaround may be split thewurflxml file in several
> > > > > little file, one root and many patches. I will do this utility
> > > > > available for the GAE community.
>
> > > > > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > > > > I've made some tests withWURFL(from sourceforge)
> > > > > > It works very well on my development platform
> > > > > > But it fails on GAE due to the size limit:WURFLuses a huge XML file
> > > > > > and GAE fails to open the compressed version of the file
> > > > > > For now, I have no time to resolve this issue until end of september
>
> > > > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > > > > Can you use the user-agent?
>
> > > > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > > > > wrote:
>
> > > > > > > > Need a quick and easy way to detect mobile phones from my app, 
> > > > > > > > that
> > > > > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > > > > --
> > > > > > > > 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.
>
> > > > > > > --
> > > > > > > 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

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



Re: [google-appengine] Re: Detect Mobile Phone

2010-08-29 Thread Yossie
Well it really depends on how you query the datastore. If you do something
like SELECT ... WHERE ua={user agent}, it would be much faster. But if the
algorithms require iterating over the entire datastore, then it would
obviously be slower. When I say datastore, I mean to use the former
scenario, where the data is somehow set up so that a simple query will yield
the results. So my question is, what's the best way to query a user agent,
and get the right result?

On Sun, Aug 29, 2010 at 7:03 AM, Filippo De Luca
wrote:

> Yes I think it can be a possible strategy. But what about cpu time? Is
> datastore less cpu intensive then default WURFLModel? Surely it has
> less memory footprint but it is less responsive also. My friend
> suggested me to have a standing alone matching application. The other
> application ask it to matching the request by REST protocol. I have a
> REST based WURFL web service, but it is not yet released as open-
> source. Do you think it is a possible solution?
>
> To lower the WURFL cpu time can be useful a servlet filter with some
> heuristics to determine if the request came from a mobile device or
> not. without involving WURFL.
>
>
> On Aug 27, 7:53 pm, prgmratlarge  wrote:
> > Well I was thinking of using the datastore. Would this be possible,
> > and what would be the method to the query?
> >
> > On Aug 27, 3:44 am, Filippo De Luca  wrote:
> >
> >
> >
> > > Yes it is true. Whether it is worth depends on the application aim. A
> > > good compromise can be a lightweight wurfl api without the LD
> > > algoritm. And a trie in substitution to RIS.
> >
> > > On Aug 27, 12:11 am, prgmratlarge  wrote:
> >
> > > > Yes, but the CPU required to do a lookup is simply not worth it.
> > > > Remember, every time a (new) user hits the site you do a lookup. It
> > > > can add up very quickly.
> >
> > > > On Aug 26, 9:07 am, Filippo De Luca 
> wrote:
> >
> > > > > Hi,
> > > > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > > > limit. A simple workaround may be split thewurflxml file in several
> > > > > little file, one root and many patches. I will do this utility
> > > > > available for the GAE community.
> >
> > > > > On Aug 23, 10:46 pm, moissinac  wrote:
> >
> > > > > > I've made some tests withWURFL(from sourceforge)
> > > > > > It works very well on my development platform
> > > > > > But it fails on GAE due to the size limit:WURFLuses a huge XML
> file
> > > > > > and GAE fails to open the compressed version of the file
> > > > > > For now, I have no time to resolve this issue until end of
> september
> >
> > > > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
> >
> > > > > > > Can you use the user-agent?
> >
> > > > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge <
> yossiele...@gmail.com>wrote:
> >
> > > > > > > > Need a quick and easy way to detect mobile phones from my
> app, that
> > > > > > > > won't add too much performance overhead. Any suggestions?
> >
> > > > > > > > --
> > > > > > > > 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.
> >
> > > > > > > --
> > > > > > > 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
>
> --
> 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: Detect Mobile Phone

2010-08-29 Thread Filippo De Luca
Yes I think it can be a possible strategy. But what about cpu time? Is
datastore less cpu intensive then default WURFLModel? Surely it has
less memory footprint but it is less responsive also. My friend
suggested me to have a standing alone matching application. The other
application ask it to matching the request by REST protocol. I have a
REST based WURFL web service, but it is not yet released as open-
source. Do you think it is a possible solution?

To lower the WURFL cpu time can be useful a servlet filter with some
heuristics to determine if the request came from a mobile device or
not. without involving WURFL.


On Aug 27, 7:53 pm, prgmratlarge  wrote:
> Well I was thinking of using the datastore. Would this be possible,
> and what would be the method to the query?
>
> On Aug 27, 3:44 am, Filippo De Luca  wrote:
>
>
>
> > Yes it is true. Whether it is worth depends on the application aim. A
> > good compromise can be a lightweight wurfl api without the LD
> > algoritm. And a trie in substitution to RIS.
>
> > On Aug 27, 12:11 am, prgmratlarge  wrote:
>
> > > Yes, but the CPU required to do a lookup is simply not worth it.
> > > Remember, every time a (new) user hits the site you do a lookup. It
> > > can add up very quickly.
>
> > > On Aug 26, 9:07 am, Filippo De Luca  wrote:
>
> > > > Hi,
> > > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > > limit. A simple workaround may be split thewurflxml file in several
> > > > little file, one root and many patches. I will do this utility
> > > > available for the GAE community.
>
> > > > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > > > I've made some tests withWURFL(from sourceforge)
> > > > > It works very well on my development platform
> > > > > But it fails on GAE due to the size limit:WURFLuses a huge XML file
> > > > > and GAE fails to open the compressed version of the file
> > > > > For now, I have no time to resolve this issue until end of september
>
> > > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > > > Can you use the user-agent?
>
> > > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > > > wrote:
>
> > > > > > > Need a quick and easy way to detect mobile phones from my app, 
> > > > > > > that
> > > > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > > > --
> > > > > > > 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.
>
> > > > > > --
> > > > > > 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

-- 
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: Detect Mobile Phone

2010-08-27 Thread prgmratlarge
Well I was thinking of using the datastore. Is it possible? And what
would be the method to the query?

On Aug 27, 3:44 am, Filippo De Luca  wrote:
> Yes it is true. Whether it is worth depends on the application aim. A
> good compromise can be a lightweight wurfl api without the LD
> algoritm. And a trie in substitution to RIS.
>
> On Aug 27, 12:11 am, prgmratlarge  wrote:
>
>
>
> > Yes, but the CPU required to do a lookup is simply not worth it.
> > Remember, every time a (new) user hits the site you do a lookup. It
> > can add up very quickly.
>
> > On Aug 26, 9:07 am, Filippo De Luca  wrote:
>
> > > Hi,
> > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > limit. A simple workaround may be split thewurflxml file in several
> > > little file, one root and many patches. I will do this utility
> > > available for the GAE community.
>
> > > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > > I've made some tests withWURFL(from sourceforge)
> > > > It works very well on my development platform
> > > > But it fails on GAE due to the size limit:WURFLuses a huge XML file
> > > > and GAE fails to open the compressed version of the file
> > > > For now, I have no time to resolve this issue until end of september
>
> > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > > Can you use the user-agent?
>
> > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > > wrote:
>
> > > > > > Need a quick and easy way to detect mobile phones from my app, that
> > > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > > --
> > > > > > 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.
>
> > > > > --
> > > > > 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

-- 
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: Detect Mobile Phone

2010-08-27 Thread prgmratlarge
Well I was thinking of using the datastore. Would this be possible,
and what would be the method to the query?

On Aug 27, 3:44 am, Filippo De Luca  wrote:
> Yes it is true. Whether it is worth depends on the application aim. A
> good compromise can be a lightweight wurfl api without the LD
> algoritm. And a trie in substitution to RIS.
>
> On Aug 27, 12:11 am, prgmratlarge  wrote:
>
>
>
> > Yes, but the CPU required to do a lookup is simply not worth it.
> > Remember, every time a (new) user hits the site you do a lookup. It
> > can add up very quickly.
>
> > On Aug 26, 9:07 am, Filippo De Luca  wrote:
>
> > > Hi,
> > > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > > limit. A simple workaround may be split thewurflxml file in several
> > > little file, one root and many patches. I will do this utility
> > > available for the GAE community.
>
> > > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > > I've made some tests withWURFL(from sourceforge)
> > > > It works very well on my development platform
> > > > But it fails on GAE due to the size limit:WURFLuses a huge XML file
> > > > and GAE fails to open the compressed version of the file
> > > > For now, I have no time to resolve this issue until end of september
>
> > > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > > Can you use the user-agent?
>
> > > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > > wrote:
>
> > > > > > Need a quick and easy way to detect mobile phones from my app, that
> > > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > > --
> > > > > > 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.
>
> > > > > --
> > > > > 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

-- 
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: Detect Mobile Phone

2010-08-27 Thread Filippo De Luca
Yes it is true. Whether it is worth depends on the application aim. A
good compromise can be a lightweight wurfl api without the LD
algoritm. And a trie in substitution to RIS.

On Aug 27, 12:11 am, prgmratlarge  wrote:
> Yes, but the CPU required to do a lookup is simply not worth it.
> Remember, every time a (new) user hits the site you do a lookup. It
> can add up very quickly.
>
> On Aug 26, 9:07 am, Filippo De Luca  wrote:
>
>
>
> > Hi,
> > I'm aWURFLapi maintainer. The issue should be due to the GAE size
> > limit. A simple workaround may be split thewurflxml file in several
> > little file, one root and many patches. I will do this utility
> > available for the GAE community.
>
> > On Aug 23, 10:46 pm, moissinac  wrote:
>
> > > I've made some tests withWURFL(from sourceforge)
> > > It works very well on my development platform
> > > But it fails on GAE due to the size limit:WURFLuses a huge XML file
> > > and GAE fails to open the compressed version of the file
> > > For now, I have no time to resolve this issue until end of september
>
> > > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > > Can you use the user-agent?
>
> > > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > > wrote:
>
> > > > > Need a quick and easy way to detect mobile phones from my app, that
> > > > > won't add too much performance overhead. Any suggestions?
>
> > > > > --
> > > > > 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.
>
> > > > --
> > > > 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

-- 
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: Detect Mobile Phone

2010-08-26 Thread prgmratlarge
Yes, but the CPU required to do a lookup is simply not worth it.
Remember, every time a (new) user hits the site you do a lookup. It
can add up very quickly.

On Aug 26, 9:07 am, Filippo De Luca  wrote:
> Hi,
> I'm aWURFLapi maintainer. The issue should be due to the GAE size
> limit. A simple workaround may be split thewurflxml file in several
> little file, one root and many patches. I will do this utility
> available for the GAE community.
>
> On Aug 23, 10:46 pm, moissinac  wrote:
>
>
>
> > I've made some tests withWURFL(from sourceforge)
> > It works very well on my development platform
> > But it fails on GAE due to the size limit:WURFLuses a huge XML file
> > and GAE fails to open the compressed version of the file
> > For now, I have no time to resolve this issue until end of september
>
> > On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
> > > Can you use the user-agent?
>
> > > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> > > wrote:
>
> > > > Need a quick and easy way to detect mobile phones from my app, that
> > > > won't add too much performance overhead. Any suggestions?
>
> > > > --
> > > > 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.
>
> > > --
> > > 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

-- 
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: Detect Mobile Phone

2010-08-26 Thread Filippo De Luca
Hi,
I'm a WURFL api maintainer. The issue should be due to the GAE size
limit. A simple workaround may be split the wurfl xml file in several
little file, one root and many patches. I will do this utility
available for the GAE community.

On Aug 23, 10:46 pm, moissinac  wrote:
> I've made some tests withWURFL(from sourceforge)
> It works very well on my development platform
> But it fails on GAE due to the size limit:WURFLuses a huge XML file
> and GAE fails to open the compressed version of the file
> For now, I have no time to resolve this issue until end of september
>
> On 23 août, 21:10, "Ikai L (Google)"  wrote:
>
>
>
> > Can you use the user-agent?
>
> > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge wrote:
>
> > > Need a quick and easy way to detect mobile phones from my app, that
> > > won't add too much performance overhead. Any suggestions?
>
> > > --
> > > 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.
>
> > --
> > 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

-- 
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: Detect Mobile Phone

2010-08-25 Thread John McLaughlin
If you're just trying to determine if it's mobile and nothing else --
grepping the HTTP_USER_AGENT for "Mobile" and "Blackberry" will catch
most smart phones (iPhones, Androids, Blackberrys).  Grepping for
about 10 patterns of manufacture names should get you to 99%.  See
http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones

Granted not the most bullet proof and permanent solution -- but
definitely fast, light, and easy.

On Aug 23, 5:54 pm, prgmratlarge  wrote:
> Of course I can see the user agent. The problem is figuring out
> whether it's mobile. I tried, for example, using something like
> browscap but it uses way too many resources for what it does. So I was
> wondering if there was a better/simpler way to do it
>
> On Aug 23, 3:10 pm, "Ikai L (Google)"  wrote:
>
>
>
> > Can you use the user-agent?
>
> > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge wrote:
>
> > > Need a quick and easy way to detect mobile phones from my app, that
> > > won't add too much performance overhead. Any suggestions?
>
> > > --
> > > 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.
>
> > --
> > 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

-- 
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: Detect Mobile Phone

2010-08-25 Thread prgmratlarge
As far as I could see, it requires using the Levenshtein algorithm to
check for matches. As far as I know that can't be done w/ the
datastore (or can it?)

On Aug 25, 11:54 am, djidjadji  wrote:
> can't you convert the XML file to datastore objects or elements in a
> ListProperty
> and do a key_only query to check if the object exists, and as such
> perform a mobile test.
>
> 2010/8/23 moissinac :
>
>
>
> > I've made some tests with WURFL (from sourceforge)
> > It works very well on my development platform
> > But it fails on GAE due to the size limit: WURFL uses a huge XML file
> > and GAE fails to open the compressed version of the file
> > For now, I have no time to resolve this issue until end of september
>
> > On 23 août, 21:10, "Ikai L (Google)"  wrote:
> >> Can you use the user-agent?
>
> >> On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge 
> >> wrote:
>
> >> > Need a quick and easy way to detect mobile phones from my app, that
> >> > won't add too much performance overhead. Any suggestions?
>
> >> > --
> >> > 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.
>
> >> --
> >> 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
>
> > --
> > 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.



Re: [google-appengine] Re: Detect Mobile Phone

2010-08-25 Thread djidjadji
can't you convert the XML file to datastore objects or elements in a
ListProperty
and do a key_only query to check if the object exists, and as such
perform a mobile test.

2010/8/23 moissinac :
> I've made some tests with WURFL (from sourceforge)
> It works very well on my development platform
> But it fails on GAE due to the size limit: WURFL uses a huge XML file
> and GAE fails to open the compressed version of the file
> For now, I have no time to resolve this issue until end of september
>
> On 23 août, 21:10, "Ikai L (Google)"  wrote:
>> Can you use the user-agent?
>>
>> On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge wrote:
>>
>> > Need a quick and easy way to detect mobile phones from my app, that
>> > won't add too much performance overhead. Any suggestions?
>>
>> > --
>> > 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.
>>
>> --
>> 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
>
> --
> 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: Detect Mobile Phone

2010-08-23 Thread prgmratlarge
Of course I can see the user agent. The problem is figuring out
whether it's mobile. I tried, for example, using something like
browscap but it uses way too many resources for what it does. So I was
wondering if there was a better/simpler way to do it

On Aug 23, 3:10 pm, "Ikai L (Google)"  wrote:
> Can you use the user-agent?
>
> On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge wrote:
>
> > Need a quick and easy way to detect mobile phones from my app, that
> > won't add too much performance overhead. Any suggestions?
>
> > --
> > 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.
>
> --
> 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

-- 
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: Detect Mobile Phone

2010-08-23 Thread moissinac
I've made some tests with WURFL (from sourceforge)
It works very well on my development platform
But it fails on GAE due to the size limit: WURFL uses a huge XML file
and GAE fails to open the compressed version of the file
For now, I have no time to resolve this issue until end of september

On 23 août, 21:10, "Ikai L (Google)"  wrote:
> Can you use the user-agent?
>
> On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge wrote:
>
> > Need a quick and easy way to detect mobile phones from my app, that
> > won't add too much performance overhead. Any suggestions?
>
> > --
> > 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.
>
> --
> 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

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