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



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