Search the web
Sign In
New User? Sign Up
wmlprogramming · WML,XHTML,WURFL & Mobile-related stuff
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 31605 - 31634 of 31749   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#31634 From: Steve Kamerman <stevekamerman@...>
Date: Mon Nov 16, 2009 2:50 am
Subject: Re: Re: wall4php and new APIS
steve_bond_k...
Offline Offline
Send Email Send Email
 
Actually, it looks like I've already included this functionality - you just have to let Tera-WURFL figure out the user agent instead of passing it in.

To get the device capabilities, call the function like this:

$wurflObj->getDeviceCapabilitiesFromAgent();

*** Make sure there are no arguments passed in, that way, Tera-WURFL will use WurflSupport::getUserAgent(), which looks through the HTTP request to try to find a more fitting user agent in either HTTP_X_DEVICE_USER_AGENT or HTTP_X_OPERAMINI_PHONE_UA.

If there are more headers that might contain the original user agent, please let me know and I will add them here!

Thanks,

Steve Kamerman

On Sun, Nov 15, 2009 at 1:28 PM, s3thj <s3thj@...> wrote:
 


I haven't looked closely at your code yet but
would OperaMiniUserAgentMatcher.php be the right place to start custom coding?
Or is there a deeper level that would make a better starting point?
It s a tricky problem, in the case of my Blackberry Bold browser and Opera Mini they are very different browsers and
have different capabilities, but having accurate screen size is a top priority so its lame that opera mini drops the ball.



--- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
>
> Currently, some Opera Mini user agents still contain enough of the original
> user agent to detect the device accurately and some others send the original
> user agent via a different HTTP header. Currently, Tera-WURFL is capable of
> detecting the embedded user agents, but not the alternate HTTP header
> method. I am not sure about the other APIs.
>
> Thanks,
>
> Steve Kamerman
>
> On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@...> wrote:
>
> >
> >
> > Did that last question make sense or is the forums silence an indication
> > that nothing like this is currently in place?
> >
> >
> > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,

> > "s3thj" <s3thj@> wrote:
> > >
> > > Umm ya false alarm, I'm not sure that Opera's deal was but it started
> > acting normal the next day.
> > >
> > > I am wondering tho...
> > > Is there currently a way to reveal the actual device capabilities when
> > Opera Mini is the user-agent?
> > > Most of the values are good, but things like resolution_width are not
> > accurate
> > > from device to device (they all show 176px, no matter what the actual
> > device width is)
> > >
> > > If nothing currently exsists to achive this, I'll write something up for
> > WALL4PHP and share.
> > > SJ
> > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
> > Steve Kamerman <stevekamerman@> wrote:
> > > >
> > > > SJ, can you please send me the User-Agent? Also, go to your
> > > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
> > > > paste your user agent, then send me the "tera_wurfl" section of the
> > > > capabilities (it's at the end)? It looks something like this:
> > > >
> > > > 'tera_wurfl' =>
> > > > array (
> > > > 'num_queries' => 13,
> > > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
> > > > 'match_type' => 'conclusive',
> > > > 'matcher' => 'SonyEricssonUserAgentMatcher',
> > > > 'match' => true,
> > > > 'lookup_time' => 0.27034306526184,
> > > > 'fall_back_tree' =>
> > > >
> > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
> > > > 'matcher_history' =>
> > > >
> > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
> > > > )
> > > >
> > > > Thanks,
> > > >
> > > > Steve Kamerman
> > > >
> > > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
> > > > >
> > > > >
> > > > >
> > > > > Yep after adding mysqli to PHP its working!
> > > > > Test my site with a blackberry Bold worked as expected with its
> > native browser.
> > > > > The 3rd party Bolt Browser also works but Opera Mini4 insists that
> > the page is unavailible,
> > > > > did I miss something? Are there specific rules for handling Opera
> > that I need to configure?
> > > > > Thanks
> > > > > SJ
> > > > >
> > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>,

> > Steve Kamerman <stevekamerman@> wrote:
> > > > > >
> > > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The
> > standard
> > > > > > MySQL driver is being replaced with MySQLi. Here's some info on
> > MySQLi:
> > > > > >
> > > > > > http://www.php.net/manual/en/mysqli.installation.php
> > > > > >
> > > > > > Your hosting provider should be able to turn this extension on for
> > you as it
> > > > > > is very common.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Steve Kamerman
> > > > > >
> > > > > > <http://www.php.net/manual/en/mysqli.installation.php>
> > > > > >
> > > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Ok, got this error
> > > > > > >
> > > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(
> > domain.com
> > )/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
> > > > > > > on line 436
> > > > > > >
> > > > > > > Mysqli? Is there a work around for this class? I'm not sure my
> > hosting will
> > > > > > > change
> > > > > > > The php build.
> > > > > > > Thanks
> > > > > > >
> > > > > > >
> > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%

> > 40yahoogroups.com>,
> > > > > > > Steve Kamerman <stevekamerman@> wrote:
> > > > > > > >
> > > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been
> > ramping up
> > > > > > > > pretty heavy and we only have an hour or two per day to
> > ourselves. Once I
> > > > > > > > get into Iraq I'm sure I will have much more free time! The new
> > version
> > > > > > > > fixes a couple bugs and has a cache browser that allows you to
> > see what
> > > > > > > > devices are hitting your site and their capabilities. I'll try
> > to get it
> > > > > > > up
> > > > > > > > on the site tomorrow if I have time.
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Steve Kamerman
> > > > > > > >
> > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > This reply is effectively repeating what David (thanks
> > David!) just
> > > > > > > wrote
> > > > > > > > > (I think - I haven't checked his code) but it may be a
> > littler clearer
> > > > > > > for
> > > > > > > > > some?
> > > > > > > > > Juanto emailed me direct and this was my reply to him:
> > > > > > > > >
> > > > > > > > > There are a couple of small changes required. First install
> > the
> > > > > > > Wall4PHP
> > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you
> > can get
> > > > > > > from the
> > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl
> > site.
> > > > > > > Then in
> > > > > > > > > the Wall4php code make the following changes:
> > > > > > > > >
> > > > > > > > > 1.) In Wall.php at line 94 you need to comment out the line,
> > so it
> > > > > > > looks
> > > > > > > > > like:
> > > > > > > > >
> > > > > > > > > // require_once(WURFL_CLASS_FILE);
> > > > > > > > >
> > > > > > > > > 2.) Also in Wall.php at line 96 you need to change the line
> > that says
> > > > > > > (it's
> > > > > > > > > case sensitive by the way):
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > $this->wurfl = new tera_wurfl();
> > > > > > > > >
> > > > > > > > > to look like this:
> > > > > > > > >
> > > > > > > > > $this->wurfl = new TeraWurfl();
> > > > > > > > >
> > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
> > > > > > > > >
> > > > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > > > >
> > > > > > > > > require_once(dirname(__FILE__) .
> > '/tera-wurfl/tera_wurfl_config.php');
> > > > > > > > >
> > > > > > > > > so you just need to change line 16 so it points to the new
> > tera wurfl
> > > > > > > > > config file, like this:
> > > > > > > > >
> > > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
> > > > > > > > >
> > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where
> > ever you have
> > > > > > > > > installed TeraWurfl 2 on your system.
> > > > > > > > >
> > > > > > > > > and obviously line 12 in wall_prepend.php should already say:
> > > > > > > > >
> > > > > > > > > define('WALL_USE_TERA_WURFL', true);
> > > > > > > > >
> > > > > > > > > Think that's it - all the other commands, functions etc
> > should work the
> > > > > > > > > same.
> > > > > > > > >
> > > > > > > > > Alex
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
> > <wmlprogramming%40yahoogroups.com><wmlprogramming%
> > > > > > > 40yahoogroups.com>,
> > > > > > >
> > > > > > > > > "david_salgado8" <david@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Steve
> > > > > > > > > >
> > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
> > short_open_tag
> > > > > > > uses
> > > > > > > > > in the
> > > > > > > > > > > code so you no longer need to have that option turned on
> > in PHP.
> > > > > > > I've
> > > > > > > > > also
> > > > > > > > > > > added a cache browser that lets you see what devices are
> > in your
> > > > > > > cache
> > > > > > > > > and
> > > > > > > > > > > all their capabilities. I'm working on the WALL4PHP
> > compatibility
> > > > > > > right
> > > > > > > > > now
> > > > > > > > > > > - can you tell me exactly what you needed to change?
> > > > > > > > > >
> > > > > > > > > > Assuming they're the same changes I had to make to
> > integrate
> > > > > > > Terawurfl 2
> > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
> > wall_prepend.php
> > > > > > > > > >
> > > > > > > > > > Below is a patch for the changes I had to make. NB: I took
> > out the
> > > > > > > > > conditional logic, so the patch below only works as is if
> > you're using
> > > > > > > > > Terawurfl.
> > > > > > > > > >
> > > > > > > > > > All the best
> > > > > > > > > >
> > > > > > > > > > David
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
> > b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > > > index 6efa4ea..a131b73 100644
> > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
> > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
> > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
> > > > > > > > > getenv('HTTP_USER_AGENT');
> > > > > > > > > > }
> > > > > > > > > > require_once(WURFL_CLASS_FILE);
> > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
> > WALL_USE_TERA_WURFL) {
> > > > > > > > > > - $this->wurfl = new tera_wurfl();
> > > > > > > > > > - } else {
> > > > > > > > > > - $this->wurfl = new wurfl_class();
> > > > > > > > > > - }
> > > > > > > > > > + $this->wurfl = new TeraWurfl();
> > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
> > > > > > > > > > ob_start(Array($this, '_obCallBack'));
> > > > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
> > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > > index 2753bfe..c5894be 100644
> > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
> > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
> > > > > > > > > > ### define('LOG_LEVEL', 0);
> > > > > > > > > >
> > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
> > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
> > > > > > > > > > -
> > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve
> > Kamerman
> > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
> > WALL_USE_TERA_WURFL) {
> > > > > > > > > > - require_once(dirname(__FILE__) .
> > > > > > > '/tera-wurfl/tera_wurfl_config.php');
> > > > > > > > > > - } else {
> > > > > > > > > > - require_once(dirname(__FILE__) .
> > '/wurfl/wurfl_config.php');
> > > > > > > > > > - }
> > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
> > > > > > > > > > + require_once(dirname(__FILE__) .
> > '../terawurfl/TeraWurfl.php');
> > > > > > > > > >
> > > > > > > > > > # For debug purporses. If you see following line
> > uncommented, delete
> > > > > > > it
> > > > > > > > > or comment
> > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
> > directory resides
> > > > > > > > > outside
> > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > > > $wall = new Wall();
> > > > > > > > > >
> > > > > > > > > > }
> > > > > > > > > > -?>
> > > > > > > > > > \ No newline at end of file
> > > > > > > > > > +?>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
> >
>



#31633 From: "s3thj" <s3thj@...>
Date: Sun Nov 15, 2009 8:28 pm
Subject: Re: wall4php and new APIS
s3thj
Offline Offline
Send Email Send Email
 
I haven't looked closely at your code yet but
would OperaMiniUserAgentMatcher.php be the right place to start custom coding?
Or is there a deeper level that would make a better starting point?
It s a tricky problem, in the case of my Blackberry Bold browser and Opera Mini
they are very different browsers and
have different capabilities, but having accurate screen size is a top priority
so its lame that opera mini drops the ball.


--- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
>
> Currently, some Opera Mini user agents still contain enough of the original
> user agent to detect the device accurately and some others send the original
> user agent via a different HTTP header.  Currently, Tera-WURFL is capable of
> detecting the embedded user agents, but not the alternate HTTP header
> method.  I am not sure about the other APIs.
>
> Thanks,
>
> Steve Kamerman
>
> On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@...> wrote:
>
> >
> >
> > Did that last question make sense or is the forums silence an indication
> > that nothing like this is currently in place?
> >
> >
> > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
> > "s3thj" <s3thj@> wrote:
> > >
> > > Umm ya false alarm, I'm not sure that Opera's deal was but it started
> > acting normal the next day.
> > >
> > > I am wondering tho...
> > > Is there currently a way to reveal the actual device capabilities when
> > Opera Mini is the user-agent?
> > > Most of the values are good, but things like resolution_width are not
> > accurate
> > > from device to device (they all show 176px, no matter what the actual
> > device width is)
> > >
> > > If nothing currently exsists to achive this, I'll write something up for
> > WALL4PHP and share.
> > > SJ
> > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
> > Steve Kamerman <stevekamerman@> wrote:
> > > >
> > > > SJ, can you please send me the User-Agent? Also, go to your
> > > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
> > > > paste your user agent, then send me the "tera_wurfl" section of the
> > > > capabilities (it's at the end)? It looks something like this:
> > > >
> > > > 'tera_wurfl' =>
> > > > array (
> > > > 'num_queries' => 13,
> > > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
> > > > 'match_type' => 'conclusive',
> > > > 'matcher' => 'SonyEricssonUserAgentMatcher',
> > > > 'match' => true,
> > > > 'lookup_time' => 0.27034306526184,
> > > > 'fall_back_tree' =>
> > > >
> >
'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,s\
onyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyerics\
son_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
> > > > 'matcher_history' =>
> > > >
> >
'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
> > > > )
> > > >
> > > > Thanks,
> > > >
> > > > Steve Kamerman
> > > >
> > > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
> > > > >
> > > > >
> > > > >
> > > > > Yep after adding mysqli to PHP its working!
> > > > > Test my site with a blackberry Bold worked as expected with its
> > native browser.
> > > > > The 3rd party Bolt Browser also works but Opera Mini4 insists that
> > the page is unavailible,
> > > > > did I miss something? Are there specific rules for handling Opera
> > that I need to configure?
> > > > > Thanks
> > > > > SJ
> > > > >
> > > > > --- In
wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>,
> > Steve Kamerman <stevekamerman@> wrote:
> > > > > >
> > > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The
> > standard
> > > > > > MySQL driver is being replaced with MySQLi. Here's some info on
> > MySQLi:
> > > > > >
> > > > > > http://www.php.net/manual/en/mysqli.installation.php
> > > > > >
> > > > > > Your hosting provider should be able to turn this extension on for
> > you as it
> > > > > > is very common.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Steve Kamerman
> > > > > >
> > > > > > <http://www.php.net/manual/en/mysqli.installation.php>
> > > > > >
> > > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Ok, got this error
> > > > > > >
> > > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(
> > domain.com
> >
)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
> > > > > > > on line 436
> > > > > > >
> > > > > > > Mysqli? Is there a work around for this class? I'm not sure my
> > hosting will
> > > > > > > change
> > > > > > > The php build.
> > > > > > > Thanks
> > > > > > >
> > > > > > >
> > > > > > > --- In
wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
> > 40yahoogroups.com>,
> > > > > > > Steve Kamerman <stevekamerman@> wrote:
> > > > > > > >
> > > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been
> > ramping up
> > > > > > > > pretty heavy and we only have an hour or two per day to
> > ourselves. Once I
> > > > > > > > get into Iraq I'm sure I will have much more free time! The new
> > version
> > > > > > > > fixes a couple bugs and has a cache browser that allows you to
> > see what
> > > > > > > > devices are hitting your site and their capabilities. I'll try
> > to get it
> > > > > > > up
> > > > > > > > on the site tomorrow if I have time.
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Steve Kamerman
> > > > > > > >
> > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > This reply is effectively repeating what David (thanks
> > David!) just
> > > > > > > wrote
> > > > > > > > > (I think - I haven't checked his code) but it may be a
> > littler clearer
> > > > > > > for
> > > > > > > > > some?
> > > > > > > > > Juanto emailed me direct and this was my reply to him:
> > > > > > > > >
> > > > > > > > > There are a couple of small changes required. First install
> > the
> > > > > > > Wall4PHP
> > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you
> > can get
> > > > > > > from the
> > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl
> > site.
> > > > > > > Then in
> > > > > > > > > the Wall4php code make the following changes:
> > > > > > > > >
> > > > > > > > > 1.) In Wall.php at line 94 you need to comment out the line,
> > so it
> > > > > > > looks
> > > > > > > > > like:
> > > > > > > > >
> > > > > > > > > // require_once(WURFL_CLASS_FILE);
> > > > > > > > >
> > > > > > > > > 2.) Also in Wall.php at line 96 you need to change the line
> > that says
> > > > > > > (it's
> > > > > > > > > case sensitive by the way):
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > $this->wurfl = new tera_wurfl();
> > > > > > > > >
> > > > > > > > > to look like this:
> > > > > > > > >
> > > > > > > > > $this->wurfl = new TeraWurfl();
> > > > > > > > >
> > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
> > > > > > > > >
> > > > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > > > >
> > > > > > > > > require_once(dirname(__FILE__) .
> > '/tera-wurfl/tera_wurfl_config.php');
> > > > > > > > >
> > > > > > > > > so you just need to change line 16 so it points to the new
> > tera wurfl
> > > > > > > > > config file, like this:
> > > > > > > > >
> > > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
> > > > > > > > >
> > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where
> > ever you have
> > > > > > > > > installed TeraWurfl 2 on your system.
> > > > > > > > >
> > > > > > > > > and obviously line 12 in wall_prepend.php should already say:
> > > > > > > > >
> > > > > > > > > define('WALL_USE_TERA_WURFL', true);
> > > > > > > > >
> > > > > > > > > Think that's it - all the other commands, functions etc
> > should work the
> > > > > > > > > same.
> > > > > > > > >
> > > > > > > > > Alex
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --- In
wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
> > <wmlprogramming%40yahoogroups.com><wmlprogramming%
> > > > > > > 40yahoogroups.com>,
> > > > > > >
> > > > > > > > > "david_salgado8" <david@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Steve
> > > > > > > > > >
> > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
> > short_open_tag
> > > > > > > uses
> > > > > > > > > in the
> > > > > > > > > > > code so you no longer need to have that option turned on
> > in PHP.
> > > > > > > I've
> > > > > > > > > also
> > > > > > > > > > > added a cache browser that lets you see what devices are
> > in your
> > > > > > > cache
> > > > > > > > > and
> > > > > > > > > > > all their capabilities. I'm working on the WALL4PHP
> > compatibility
> > > > > > > right
> > > > > > > > > now
> > > > > > > > > > > - can you tell me exactly what you needed to change?
> > > > > > > > > >
> > > > > > > > > > Assuming they're the same changes I had to make to
> > integrate
> > > > > > > Terawurfl 2
> > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
> > wall_prepend.php
> > > > > > > > > >
> > > > > > > > > > Below is a patch for the changes I had to make. NB: I took
> > out the
> > > > > > > > > conditional logic, so the patch below only works as is if
> > you're using
> > > > > > > > > Terawurfl.
> > > > > > > > > >
> > > > > > > > > > All the best
> > > > > > > > > >
> > > > > > > > > > David
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
> > b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > > > index 6efa4ea..a131b73 100644
> > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
> > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
> > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
> > > > > > > > > getenv('HTTP_USER_AGENT');
> > > > > > > > > > }
> > > > > > > > > > require_once(WURFL_CLASS_FILE);
> > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
> > WALL_USE_TERA_WURFL) {
> > > > > > > > > > - $this->wurfl = new tera_wurfl();
> > > > > > > > > > - } else {
> > > > > > > > > > - $this->wurfl = new wurfl_class();
> > > > > > > > > > - }
> > > > > > > > > > + $this->wurfl = new TeraWurfl();
> > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
> > > > > > > > > > ob_start(Array($this, '_obCallBack'));
> > > > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
> > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > > index 2753bfe..c5894be 100644
> > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
> > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
> > > > > > > > > > ### define('LOG_LEVEL', 0);
> > > > > > > > > >
> > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
> > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
> > > > > > > > > > -
> > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve
> > Kamerman
> > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
> > WALL_USE_TERA_WURFL) {
> > > > > > > > > > - require_once(dirname(__FILE__) .
> > > > > > > '/tera-wurfl/tera_wurfl_config.php');
> > > > > > > > > > - } else {
> > > > > > > > > > - require_once(dirname(__FILE__) .
> > '/wurfl/wurfl_config.php');
> > > > > > > > > > - }
> > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
> > > > > > > > > > + require_once(dirname(__FILE__) .
> > '../terawurfl/TeraWurfl.php');
> > > > > > > > > >
> > > > > > > > > > # For debug purporses. If you see following line
> > uncommented, delete
> > > > > > > it
> > > > > > > > > or comment
> > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
> > directory resides
> > > > > > > > > outside
> > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > > > $wall = new Wall();
> > > > > > > > > >
> > > > > > > > > > }
> > > > > > > > > > -?>
> > > > > > > > > > \ No newline at end of file
> > > > > > > > > > +?>
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
> >
>

#31632 From: Steve Kamerman <stevekamerman@...>
Date: Sun Nov 15, 2009 7:38 pm
Subject: Re: Re: wall4php and new APIS
steve_bond_k...
Offline Offline
Send Email Send Email
 
Currently, some Opera Mini user agents still contain enough of the original user agent to detect the device accurately and some others send the original user agent via a different HTTP header.  Currently, Tera-WURFL is capable of detecting the embedded user agents, but not the alternate HTTP header method.  I am not sure about the other APIs.

Thanks,

Steve Kamerman

On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@...> wrote:
 

Did that last question make sense or is the forums silence an indication that nothing like this is currently in place?



--- In wmlprogramming@yahoogroups.com, "s3thj" <s3thj@...> wrote:
>
> Umm ya false alarm, I'm not sure that Opera's deal was but it started acting normal the next day.
>
> I am wondering tho...
> Is there currently a way to reveal the actual device capabilities when Opera Mini is the user-agent?
> Most of the values are good, but things like resolution_width are not accurate
> from device to device (they all show 176px, no matter what the actual device width is)
>
> If nothing currently exsists to achive this, I'll write something up for WALL4PHP and share.
> SJ
> --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
> >
> > SJ, can you please send me the User-Agent? Also, go to your
> > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
> > paste your user agent, then send me the "tera_wurfl" section of the
> > capabilities (it's at the end)? It looks something like this:
> >
> > 'tera_wurfl' =>
> > array (
> > 'num_queries' => 13,
> > 'actual_root_device' => 'sonyericsson_k700i_ver1',
> > 'match_type' => 'conclusive',
> > 'matcher' => 'SonyEricssonUserAgentMatcher',
> > 'match' => true,
> > 'lookup_time' => 0.27034306526184,
> > 'fall_back_tree' =>
> > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
> > 'matcher_history' =>
> > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
> > )
> >
> > Thanks,
> >
> > Steve Kamerman
> >
> > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
> > >
> > >
> > >
> > > Yep after adding mysqli to PHP its working!
> > > Test my site with a blackberry Bold worked as expected with its native browser.
> > > The 3rd party Bolt Browser also works but Opera Mini4 insists that the page is unavailible,
> > > did I miss something? Are there specific rules for handling Opera that I need to configure?
> > > Thanks
> > > SJ
> > >
> > > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
> > > >
> > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard
> > > > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
> > > >
> > > > http://www.php.net/manual/en/mysqli.installation.php
> > > >
> > > > Your hosting provider should be able to turn this extension on for you as it
> > > > is very common.
> > > >
> > > > Thanks,
> > > >
> > > > Steve Kamerman
> > > >
> > > > <http://www.php.net/manual/en/mysqli.installation.php>
> > > >
> > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
> > > >
> > > > >
> > > > >
> > > > > Ok, got this error
> > > > >
> > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
> > > > > on line 436
> > > > >
> > > > > Mysqli? Is there a work around for this class? I'm not sure my hosting will
> > > > > change
> > > > > The php build.
> > > > > Thanks
> > > > >
> > > > >
> > > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
> > > > > Steve Kamerman <stevekamerman@> wrote:
> > > > > >
> > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
> > > > > > pretty heavy and we only have an hour or two per day to ourselves. Once I
> > > > > > get into Iraq I'm sure I will have much more free time! The new version
> > > > > > fixes a couple bugs and has a cache browser that allows you to see what
> > > > > > devices are hitting your site and their capabilities. I'll try to get it
> > > > > up
> > > > > > on the site tomorrow if I have time.
> > > > > > Thanks,
> > > > > >
> > > > > > Steve Kamerman
> > > > > >
> > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > This reply is effectively repeating what David (thanks David!) just
> > > > > wrote
> > > > > > > (I think - I haven't checked his code) but it may be a littler clearer
> > > > > for
> > > > > > > some?
> > > > > > > Juanto emailed me direct and this was my reply to him:
> > > > > > >
> > > > > > > There are a couple of small changes required. First install the
> > > > > Wall4PHP
> > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get
> > > > > from the
> > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site.
> > > > > Then in
> > > > > > > the Wall4php code make the following changes:
> > > > > > >
> > > > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
> > > > > looks
> > > > > > > like:
> > > > > > >
> > > > > > > // require_once(WURFL_CLASS_FILE);
> > > > > > >
> > > > > > > 2.) Also in Wall.php at line 96 you need to change the line that says
> > > > > (it's
> > > > > > > case sensitive by the way):
> > > > > > >
> > > > > > >
> > > > > > > $this->wurfl = new tera_wurfl();
> > > > > > >
> > > > > > > to look like this:
> > > > > > >
> > > > > > > $this->wurfl = new TeraWurfl();
> > > > > > >
> > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
> > > > > > >
> > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > >
> > > > > > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
> > > > > > >
> > > > > > > so you just need to change line 16 so it points to the new tera wurfl
> > > > > > > config file, like this:
> > > > > > >
> > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
> > > > > > >
> > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
> > > > > > > installed TeraWurfl 2 on your system.
> > > > > > >
> > > > > > > and obviously line 12 in wall_prepend.php should already say:
> > > > > > >
> > > > > > > define('WALL_USE_TERA_WURFL', true);
> > > > > > >
> > > > > > > Think that's it - all the other commands, functions etc should work the
> > > > > > > same.
> > > > > > >
> > > > > > > Alex
> > > > > > >
> > > > > > >
> > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
> > > > > 40yahoogroups.com>,
> > > > >
> > > > > > > "david_salgado8" <david@> wrote:
> > > > > > > >
> > > > > > > > Hi Steve
> > > > > > > >
> > > > > > > > > I'm working on RC3 tonight - I've changed all the short_open_tag
> > > > > uses
> > > > > > > in the
> > > > > > > > > code so you no longer need to have that option turned on in PHP.
> > > > > I've
> > > > > > > also
> > > > > > > > > added a cache browser that lets you see what devices are in your
> > > > > cache
> > > > > > > and
> > > > > > > > > all their capabilities. I'm working on the WALL4PHP compatibility
> > > > > right
> > > > > > > now
> > > > > > > > > - can you tell me exactly what you needed to change?
> > > > > > > >
> > > > > > > > Assuming they're the same changes I had to make to integrate
> > > > > Terawurfl 2
> > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
> > > > > > > >
> > > > > > > > Below is a patch for the changes I had to make. NB: I took out the
> > > > > > > conditional logic, so the patch below only works as is if you're using
> > > > > > > Terawurfl.
> > > > > > > >
> > > > > > > > All the best
> > > > > > > >
> > > > > > > > David
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > index 6efa4ea..a131b73 100644
> > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
> > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > @@ -92,11 +92,7 @@ class Wall {
> > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
> > > > > > > getenv('HTTP_USER_AGENT');
> > > > > > > > }
> > > > > > > > require_once(WURFL_CLASS_FILE);
> > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > > > - $this->wurfl = new tera_wurfl();
> > > > > > > > - } else {
> > > > > > > > - $this->wurfl = new wurfl_class();
> > > > > > > > - }
> > > > > > > > + $this->wurfl = new TeraWurfl();
> > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
> > > > > > > > ob_start(Array($this, '_obCallBack'));
> > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
> > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > index 2753bfe..c5894be 100644
> > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > # Notice: Constant LOG_LEVEL already defined in
> > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
> > > > > > > > ### define('LOG_LEVEL', 0);
> > > > > > > >
> > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
> > > > > > > > - define('WALL_USE_TERA_WURFL', false);
> > > > > > > > -
> > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
> > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > > > - require_once(dirname(__FILE__) .
> > > > > '/tera-wurfl/tera_wurfl_config.php');
> > > > > > > > - } else {
> > > > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
> > > > > > > > - }
> > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
> > > > > > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
> > > > > > > >
> > > > > > > > # For debug purporses. If you see following line uncommented, delete
> > > > > it
> > > > > > > or comment
> > > > > > > > # it out. This is needed only, if Wall.php and Wall directory resides
> > > > > > > outside
> > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > $wall = new Wall();
> > > > > > > >
> > > > > > > > }
> > > > > > > > -?>
> > > > > > > > \ No newline at end of file
> > > > > > > > +?>
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>



#31631 From: "jrthor2" <jroscoe@...>
Date: Thu Nov 12, 2009 6:14 pm
Subject: Re: change location of wurfl.zip file
jrthor2
Offline Offline
Send Email Send Email
 
Ok, i can live with having the wurfl.zip file in mulitple locations, and use
wurfl.jar version 1.0, but I have an issue where IE (6 and 7, and probably 8,
but haven't tested that) has the "is_mobile_device" value set to true.  I have
the web_browsers_patch.xml file defined in my web.xml, and IE 7 is in this file,
but the "is_mobile_device" value comes back as true.  The device comes back as
generic_xhtml.  How can I fix this?

Thanks!!

--- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
> jrthor2 wrote:
> > I have just downloaded version 1.0 of the Java API and I have implemented
this as a filter (not a servlet), as I don't want to be doing redirects on every
page hit.  In any case, I want to use this filter in other java projects, but
don't want to have multiple copies of the wurfl.zip file in each projects
WEB-INF directory.  I'd like to have the directory come from a JNDI entry we
have on our servers, which points to a local directory on each server, instead
of putting the location of the file in the web.xml.  Could someone help me with
what code needs to change, and what it needs to change to?  I've been searching
for help, and I see posts about using the ObjectsManager, but if I try to put
that in my filter, it can't find that class.  I'm not sure that class still
exists in wurfl 1.0.
> >
>
> smells like you are using the old Java API. Have you evaluated the
> possibility of moving to the new one?
>
> the Spring-based configuration should give you the flexibility you need.
>
> As an aside, I will remove the old API from the site completely one day
> soon....
>
> Luca
>

#31630 From: "s3thj" <s3thj@...>
Date: Sun Nov 15, 2009 3:53 pm
Subject: Re: wall4php and new APIS
s3thj
Offline Offline
Send Email Send Email
 
Did that last question make sense or is the forums silence an indication that
nothing like this is currently in place?

--- In wmlprogramming@yahoogroups.com, "s3thj" <s3thj@...> wrote:
>
> Umm ya false alarm, I'm not sure that Opera's deal was but it started acting
normal the next day.
>
> I am wondering tho...
> Is there currently a way to reveal the actual device capabilities when Opera
Mini is the user-agent?
> Most of the values are good, but things like resolution_width are not accurate
> from device to device (they all show 176px, no matter what the actual device
width is)
>
> If nothing currently exsists to achive this, I'll write something up for
WALL4PHP and share.
> SJ
> --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
> >
> > SJ, can you please send me the User-Agent?  Also, go to your
> > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
> > paste your user agent, then send me the "tera_wurfl" section of the
> > capabilities (it's at the end)?   It looks something like this:
> >
> > 'tera_wurfl' =>
> >   array (
> >     'num_queries' => 13,
> >     'actual_root_device' => 'sonyericsson_k700i_ver1',
> >     'match_type' => 'conclusive',
> >     'matcher' => 'SonyEricssonUserAgentMatcher',
> >     'match' => true,
> >     'lookup_time' => 0.27034306526184,
> >     'fall_back_tree' =>
> >
'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,s\
onyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyerics\
son_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
> >     'matcher_history' =>
> >
'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
> >   )
> >
> > Thanks,
> >
> > Steve Kamerman
> >
> > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
> > >
> > >
> > >
> > > Yep after adding mysqli to PHP its working!
> > > Test my site with a blackberry Bold worked as expected with its native
browser.
> > > The 3rd party Bolt Browser also works but Opera Mini4 insists that the
page is unavailible,
> > > did I miss something? Are there specific rules for handling Opera that I
need to configure?
> > > Thanks
> > > SJ
> > >
> > > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@>
wrote:
> > > >
> > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The
standard
> > > > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
> > > >
> > > > http://www.php.net/manual/en/mysqli.installation.php
> > > >
> > > > Your hosting provider should be able to turn this extension on for you
as it
> > > > is very common.
> > > >
> > > > Thanks,
> > > >
> > > > Steve Kamerman
> > > >
> > > > <http://www.php.net/manual/en/mysqli.installation.php>
> > > >
> > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
> > > >
> > > > >
> > > > >
> > > > > Ok, got this error
> > > > >
> > > > > Fatal error: Class 'mysqli' not found in
/var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/Tera\
WurflDatabase_MySQL5.php
> > > > > on line 436
> > > > >
> > > > > Mysqli? Is there a work around for this class? I'm not sure my hosting
will
> > > > > change
> > > > > The php build.
> > > > > Thanks
> > > > >
> > > > >
> > > > > --- In wmlprogramming@yahoogroups.com
<wmlprogramming%40yahoogroups.com>,
> > > > > Steve Kamerman <stevekamerman@> wrote:
> > > > > >
> > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been
ramping up
> > > > > > pretty heavy and we only have an hour or two per day to ourselves.
Once I
> > > > > > get into Iraq I'm sure I will have much more free time! The new
version
> > > > > > fixes a couple bugs and has a cache browser that allows you to see
what
> > > > > > devices are hitting your site and their capabilities. I'll try to
get it
> > > > > up
> > > > > > on the site tomorrow if I have time.
> > > > > > Thanks,
> > > > > >
> > > > > > Steve Kamerman
> > > > > >
> > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > This reply is effectively repeating what David (thanks David!)
just
> > > > > wrote
> > > > > > > (I think - I haven't checked his code) but it may be a littler
clearer
> > > > > for
> > > > > > > some?
> > > > > > > Juanto emailed me direct and this was my reply to him:
> > > > > > >
> > > > > > > There are a couple of small changes required. First install the
> > > > > Wall4PHP
> > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can
get
> > > > > from the
> > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl
site.
> > > > > Then in
> > > > > > > the Wall4php code make the following changes:
> > > > > > >
> > > > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
> > > > > looks
> > > > > > > like:
> > > > > > >
> > > > > > > // require_once(WURFL_CLASS_FILE);
> > > > > > >
> > > > > > > 2.) Also in Wall.php at line 96 you need to change the line that
says
> > > > > (it's
> > > > > > > case sensitive by the way):
> > > > > > >
> > > > > > >
> > > > > > > $this->wurfl = new tera_wurfl();
> > > > > > >
> > > > > > > to look like this:
> > > > > > >
> > > > > > > $this->wurfl = new TeraWurfl();
> > > > > > >
> > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
> > > > > > >
> > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > >
> > > > > > > require_once(dirname(__FILE__) .
'/tera-wurfl/tera_wurfl_config.php');
> > > > > > >
> > > > > > > so you just need to change line 16 so it points to the new tera
wurfl
> > > > > > > config file, like this:
> > > > > > >
> > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
> > > > > > >
> > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you
have
> > > > > > > installed TeraWurfl 2 on your system.
> > > > > > >
> > > > > > > and obviously line 12 in wall_prepend.php should already say:
> > > > > > >
> > > > > > > define('WALL_USE_TERA_WURFL', true);
> > > > > > >
> > > > > > > Think that's it - all the other commands, functions etc should
work the
> > > > > > > same.
> > > > > > >
> > > > > > > Alex
> > > > > > >
> > > > > > >
> > > > > > > --- In
wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
> > > > > 40yahoogroups.com>,
> > > > >
> > > > > > > "david_salgado8" <david@> wrote:
> > > > > > > >
> > > > > > > > Hi Steve
> > > > > > > >
> > > > > > > > > I'm working on RC3 tonight - I've changed all the
short_open_tag
> > > > > uses
> > > > > > > in the
> > > > > > > > > code so you no longer need to have that option turned on in
PHP.
> > > > > I've
> > > > > > > also
> > > > > > > > > added a cache browser that lets you see what devices are in
your
> > > > > cache
> > > > > > > and
> > > > > > > > > all their capabilities. I'm working on the WALL4PHP
compatibility
> > > > > right
> > > > > > > now
> > > > > > > > > - can you tell me exactly what you needed to change?
> > > > > > > >
> > > > > > > > Assuming they're the same changes I had to make to integrate
> > > > > Terawurfl 2
> > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
> > > > > > > >
> > > > > > > > Below is a patch for the changes I had to make. NB: I took out
the
> > > > > > > conditional logic, so the patch below only works as is if you're
using
> > > > > > > Terawurfl.
> > > > > > > >
> > > > > > > > All the best
> > > > > > > >
> > > > > > > > David
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > index 6efa4ea..a131b73 100644
> > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
> > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
> > > > > > > > @@ -92,11 +92,7 @@ class Wall {
> > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
> > > > > > > getenv('HTTP_USER_AGENT');
> > > > > > > > }
> > > > > > > > require_once(WURFL_CLASS_FILE);
> > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > > > - $this->wurfl = new tera_wurfl();
> > > > > > > > - } else {
> > > > > > > > - $this->wurfl = new wurfl_class();
> > > > > > > > - }
> > > > > > > > + $this->wurfl = new TeraWurfl();
> > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
> > > > > > > > ob_start(Array($this, '_obCallBack'));
> > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
> > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > index 2753bfe..c5894be 100644
> > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
> > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > # Notice: Constant LOG_LEVEL already defined in
> > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
> > > > > > > > ### define('LOG_LEVEL', 0);
> > > > > > > >
> > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
> > > > > > > > - define('WALL_USE_TERA_WURFL', false);
> > > > > > > > -
> > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
> > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
> > > > > > > > - require_once(dirname(__FILE__) .
> > > > > '/tera-wurfl/tera_wurfl_config.php');
> > > > > > > > - } else {
> > > > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
> > > > > > > > - }
> > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
> > > > > > > > + require_once(dirname(__FILE__) .
'../terawurfl/TeraWurfl.php');
> > > > > > > >
> > > > > > > > # For debug purporses. If you see following line uncommented,
delete
> > > > > it
> > > > > > > or comment
> > > > > > > > # it out. This is needed only, if Wall.php and Wall directory
resides
> > > > > > > outside
> > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
> > > > > > > > $wall = new Wall();
> > > > > > > >
> > > > > > > > }
> > > > > > > > -?>
> > > > > > > > \ No newline at end of file
> > > > > > > > +?>
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>

#31629 From: Steve Kamerman <stevekamerman@...>
Date: Sun Nov 15, 2009 2:21 pm
Subject: T-SQL Stored Procedure for WURFL Lookup on Tera-WURFL
steve_bond_k...
Offline Offline
Send Email Send Email
 
I have created a fully functional MSSQL Database Connector for
Tera-WURFL using Microsoft's SQL Server Driver for PHP version 1.1.
Everything is working properly, but the Reduction in String procedure
is taking much longer than the MySQL version.  If there is a MSSQL
guru out there, can you take a look at this and tell me what might be
wrong?

-----> Here's the MySQL version first:

CREATE PROCEDURE `TeraWurfl_RIS`(IN ua VARCHAR(255), IN tolerance INT,
IN matcher VARCHAR(128))
BEGIN
DECLARE curlen INT;
DECLARE wurflid VARCHAR(128) DEFAULT NULL;
DECLARE curua VARCHAR(255);

SELECT CHAR_LENGTH(ua)  INTO curlen;
findua: WHILE ( curlen >= tolerance ) DO
	 SELECT CONCAT(LEFT(ua, curlen ),'%') INTO curua;
	 SELECT idx.DeviceID INTO wurflid
		 FROM TeraWurflIndex idx INNER JOIN TeraWurflMerge mrg ON
idx.DeviceID = mrg.DeviceID
		 WHERE idx.matcher = matcher
		 AND mrg.user_agent LIKE curua
		 LIMIT 1;
	 IF wurflid IS NOT NULL THEN
		 LEAVE findua;
	 END IF;
	 SELECT curlen - 1 INTO curlen;
END WHILE;

SELECT wurflid as DeviceID;
END


-----> Now, here's the T-SQL version:

CREATE PROCEDURE [dbo].[TeraWurfl_RIS]
	 @ua nvarchar(255),
	 @tolerance int,
	 @matcher nvarchar(64)
AS
BEGIN
SET NOCOUNT ON;

DECLARE @curlen int
DECLARE @wurflid nvarchar(128)
DECLARE @curua nvarchar(255)

SET @wurflid = NULL
SET @curlen = LEN(@ua)

WHILE @curlen >= @tolerance
BEGIN
	 SET @curua = dbo.TeraWurfl_EscapeForLike(LEFT(@ua, @curlen))+'%'
	 SELECT TOP 1 @wurflid=idx.DeviceID
		 FROM TeraWurflIndex idx INNER JOIN TeraWurflMerge mrg ON
idx.DeviceID = mrg.DeviceID
		 WHERE idx.matcher = @matcher
		 AND mrg.user_agent LIKE @curua
	 IF @wurflid IS NOT NULL BREAK
	 SET @curlen = @curlen - 1
END

SELECT @wurflid as DeviceID

END

------> And the supporting function to cleanup the data before LIKE
can be used on it:

CREATE FUNCTION [dbo].[TeraWurfl_EscapeForLike]
(
	 -- Add the parameters for the function here
	 @value nvarchar(300)
)
RETURNS nvarchar(300)
AS
BEGIN

	 SET @value = REPLACE(@value,'[','[[]');
	 SET @value = REPLACE(@value,'%','[%]');
	 SET @value = REPLACE(@value,'_','[_]');
	 -- Return the result of the function
	 RETURN @value

END


The problem might be that I'm cleaning up the user agent with the
TeraWurfl_EscapeForLike() function at every iteration, but I see no
other alternatives since T-SQL has a few common LIKE wildwards that
exist in normal user agents.
If you would like to test it yourself, just download Tera-WURFL 2.0.0
Stable from www.tera-wurfl.com and email me - I will send you the
MSSQL Database Connector.

Thanks,

Steve Kamerman

#31628 From: Steve Kamerman <stevekamerman@...>
Date: Sat Nov 14, 2009 10:21 am
Subject: Tera-WURFL 2.0.0 Stable *** Released ***
steve_bond_k...
Offline Offline
Send Email Send Email
 
Hi All, I have finally released Tera-WURFL 2.0.0 Stable on
http://www.tera-wurfl.com.  It is about 20-40% faster than the Release
Candidates due to an improved RIS Stored Procedure.  I have added a
MySQL4 Database connector that gives the same performance as the
Release Candidates.  The improved MySQL5 Database connector requires
these new MySQL privileges: CREATE ROUTINE, ALTER ROUTINE and EXECUTE.
  I have also fixed a number of typos and other aesthetic issues that
were brought to my attention.  Please note that this version will
detect a different WURFL ID for some of the devices in your cache if
you are using MySQL5 - this is because the new connector lets the
database determine the best WURFL ID directly.  In my tests, about 10%
of the devices were detected with a different WURFL ID.  There is no
disadvantage to this behavior.

To upgrade from a previous RC, delete your Tera-Wurfl directory and
upload the new files from version 2.0.0.  Then change the permissions
so the user that runs the webserver can write to the DATADIR
directory.  Now goto the Admin site and update the database.  The
updating process will recreate all the tables and procedures and will
preserve the device cache.

Thanks for all your support!

Steve Kamerman
http://www.tera-wurfl.com

#31627 From: passani@...
Date: Fri Nov 13, 2009 9:13 pm
Subject: Re: Does WNG support CHTML rendering?
luca_passani
Offline Offline
Send Email Send Email
 
Eirik

No CHTML support in WBG, I'm afraid.

to be totally honest, you are not the first one who asks, but our
resources are totally tied up wih other tasks.

As an aside, creating the CHTML renderers is not too hard once one figures
out how WNG works, so you may want to throw a programmet at the problem.

cheers

Luca

> Does WNG support CHTML rendering?  I know WALL does, but in the
> documentation for WNG that I read, I believe it just said WML was
> supported.
>
> I like WALL a lot, but the mid-range devices end up with too-simple pages.
>  So WNG would help me with that, but then in the Japanese market that I
> have to support there is probably a need to do CHTML rendering.  If I can
> get CHTML rendering, then I would like to give WNG a try.
>
> -Erik
>
>

#31626 From: "erikh2000" <erikh2000@...>
Date: Fri Nov 13, 2009 6:34 pm
Subject: Does WNG support CHTML rendering?
erikh2000
Offline Offline
Send Email Send Email
 
Does WNG support CHTML rendering?  I know WALL does, but in the documentation
for WNG that I read, I believe it just said WML was supported.

I like WALL a lot, but the mid-range devices end up with too-simple pages.  So
WNG would help me with that, but then in the Japanese market that I have to
support there is probably a need to do CHTML rendering.  If I can get CHTML
rendering, then I would like to give WNG a try.

-Erik

#31625 From: Luca Passani <passani@...>
Date: Fri Nov 13, 2009 5:33 pm
Subject: Re: css display issue for emulators
luca_passani
Offline Offline
Send Email Send Email
 
Elizabeth Xu wrote:
> Hi all:
>
> I have a util which tells different device to pick different css files
> based on device type, os type ,os version and screen size. However, I
> found the following issue:
>
> 1) windows mobile emulators doesn't pick up the correct css files -- I
> checked the log files, what happened is that wurfl could not pick the
> correct user-agent for wm emulators.
> question: could we add the windows mobile emulators in the device
> repository file?
>

if you provided the UA strings those emulators come out with, that would
be a great starting point

> 2) blackberry emulators have contraversal result: even though they
> picked the css file correctly, the display is different. For example,
> both 8350i and 8300 use mobile-low.css, which should display a
> redbutton, but 8350i displayed the red color, 8300 doesn't. Any one
> know why this is happening?
>
> the related css is attched:
>
> .redButton{
>     color:#FFFFFF;
>    background:url(../images/redbutton.png);
> }
>

you called this "mobile-low", but using a background picture is not
particularly mobile low (I mean all is relative, but when I code for
"low-end" I want to cater at devices which may well not support
bacjground pictures on DIVs).

Anyway, blackberryes suck. They have very inconsistent support for CSS
and other features. Also make sure that your user has not switched CSS
support off in the options.

Luca

#31624 From: Elizabeth Xu <elizabethw.xu@...>
Date: Fri Nov 13, 2009 5:16 pm
Subject: css display issue for emulators
huyi_2001
Offline Offline
Send Email Send Email
 
Hi all:

I have a util which tells different device to pick different css files
based on device type, os type ,os version and screen size. However, I
found the following issue:

1) windows mobile emulators doesn't pick up the correct css files -- I
checked the log files, what happened is that wurfl could not pick the
correct user-agent for wm emulators.
question: could we add the windows mobile emulators in the device
repository file?
2) blackberry emulators have contraversal result: even though they
picked the css file correctly, the display is different. For example,
both 8350i and 8300 use mobile-low.css, which should display a
redbutton, but 8350i displayed the red color, 8300 doesn't. Any one
know why this is happening?

the related css is attched:

.redButton{
     color:#FFFFFF;
    background:url(../images/redbutton.png);
}

#31623 From: Jakub Danilewicz <jdanilewicz@...>
Date: Fri Nov 13, 2009 11:21 am
Subject: the 6th release of Alembik Media Transcoding Server
jacques_aka_jd
Offline Offline
Send Email Send Email
 
We are very happy to announce the sixth official release of Alembik
Media Transcoding Server.

Apart from standard bug fixing and performance improvements the new
version has been equipped with many new interesting features like new
API functionalities, support for new version of FFmpeg (52.20.0, which
includes H264 support by default) and hinting transformation (required
by Android-based mobile devices).

Moreover, the brand new JavaDoc API documentation has been finally put
together and published on-line:

http://alembik.sourceforge.net/javadoc/index.html

As usual, you will find the distribution archives for Glassfish, JBoss
and Tomcat at our SF development site:

http://sourceforge.net/projects/alembik/files/

NOTE: please ensure to have the latest WURFL XML file in place, which
brings necessary info on video hinting required by certain devices
(thanks Luca!).


We do hope you'll enjoy it! :)

Alembik Team
http://alembik.sourceforge.net/

#31622 From: "Arnar" <arnargestsson@...>
Date: Thu Nov 12, 2009 7:18 pm
Subject: Re: WNG Setup
arnargestsson
Offline Offline
Send Email Send Email
 
Well, sure,

but the funny thing is that now it works, and you must excuse my inaccuracy, I
didn't put the WNGContextFilter into my web.xml.

But that wasn't all, the WNGContextFilter, was referenced in wrong package, was
referenced in
  net.sourceforge.wurfl.wng.WNGContextFilter

but is in
  net.sourceforge.wurfl.wng.web.WNGContextFilter

So now it works, but I'm still not sure exactly which libs should be, and also
log4j.properties settings.

It would be great to have those things in place so others don't need to do trial
and error setup;)

BR. Arnar
--- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
> Arnar wrote:
> > Hi Valerio,
> >
> > exactly, I've used that but my application doesn't work anyhow. What I mean
by doesn't work, is that everything seems to work apart from no content comes
when jsp pages are requested:(  I don't get anything into the logs so I feel
pretty blind. Therefore I'm asking if there is a more detailed instructions for
howto set this up.  For instance which libs are required, I did it just by trial
and error, but it would be nice to have it listed.
> >
>
> Can you produce a self-contained example that fails?
>
> Luca
>

#31621 From: Luca Passani <passani@...>
Date: Thu Nov 12, 2009 7:15 pm
Subject: People of WURFL: New WURFL file available!
luca_passani
Offline Offline
Send Email Send Email
 
At the usual place!

Enjoy

Luca

#31620 From: "jrthor2" <jroscoe@...>
Date: Thu Nov 12, 2009 5:26 pm
Subject: Re: change location of wurfl.zip file
jrthor2
Offline Offline
Send Email Send Email
 
--- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
> jrthor2 wrote:
> > I have just downloaded version 1.0 of the Java API and I have implemented
this as a filter (not a servlet), as I don't want to be doing redirects on every
page hit.  In any case, I want to use this filter in other java projects, but
don't want to have multiple copies of the wurfl.zip file in each projects
WEB-INF directory.  I'd like to have the directory come from a JNDI entry we
have on our servers, which points to a local directory on each server, instead
of putting the location of the file in the web.xml.  Could someone help me with
what code needs to change, and what it needs to change to?  I've been searching
for help, and I see posts about using the ObjectsManager, but if I try to put
that in my filter, it can't find that class.  I'm not sure that class still
exists in wurfl 1.0.
> >
>
> smells like you are using the old Java API. Have you evaluated the
> possibility of moving to the new one?
>
> the Spring-based configuration should give you the flexibility you need.
>
> As an aside, I will remove the old API from the site completely one day
> soon....
>
> Luca
>
I updated my jar file to wurfl-1.0.1-rc2.jar, and now my filter is getting an
NullPointerException on this line:

WURFLManager wurfl = wurflHolder.getWURFLManager();

this worked fine using the 1.0 jar file.

#31619 From: "Gail Rahn Frederick" <gail@...>
Date: Thu Nov 12, 2009 4:35 pm
Subject: RE: Nokia N97 vs Nokia N97 Mini
screaming_geek
Offline Offline
Send Email Send Email
 

+1


I’ve used them both. They are two separate devices, albeit tightly related from an OS perspective. Alessandro is right, the browser varies between firmware revisions on both devices.

 

 - Gail

 

From: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] On Behalf Of Alessandro Pace
Sent: Thursday, November 12, 2009 12:51 AM
To: wmlprogramming@yahoogroups.com
Subject: Re: [wmlprogramming] Nokia N97 vs Nokia N97 Mini

 

 

Ciao Luca,

the Nokia N97 and Nokia N97 Mini are two separate devices so I think should be separate in WURFL.
One difference is the WebKit browser engine for some firmwares.

Alessandro

On Thu, Nov 12, 2009 at 8:23 AM, Luca Passani <passani@...> wrote:

 


Question for the community here.

Nokia N97 and Nokia N97 mini are being modeled as separate devices at
the moment:

http://db.wurflpro.com/device/show/25569

and

http://db.wurflpro.com/device/show/26400

someone questioned this choice and asked whether it wouldn't be a better
idea to make the mini fall-back into the main one.

I observe that Nokia makes a distinction between the two on their
website, so I would rather keep the two separated, but I would love to
hear other opinions...

Luca




--
Alessandro Pace
Mobile Architect
Blogs: www.biskero.org www.flashlite4nokia.com www.flashlite4se.com
Site: www.biskero.com
Email:  biskero@...
Skype/Jaiku/Twitter: biskero
LinkedIn: www.linkedin.com/in/biskero
Forum Nokia Champion
Manager of the Boston Adobe Mobile and Devices User Group: www.flashmobilegroup.org
Adobe Community Expert Mobile
Co-Founder of Mobile Monday Boston www.momoboston.com


#31618 From: Luca Passani <passani@...>
Date: Thu Nov 12, 2009 2:46 pm
Subject: Re: Re: WNG Setup
luca_passani
Offline Offline
Send Email Send Email
 
Arnar wrote:
> Hi Valerio,
>
> exactly, I've used that but my application doesn't work anyhow. What I mean by
doesn't work, is that everything seems to work apart from no content comes when
jsp pages are requested:(  I don't get anything into the logs so I feel pretty
blind. Therefore I'm asking if there is a more detailed instructions for howto
set this up.  For instance which libs are required, I did it just by trial and
error, but it would be nice to have it listed.
>

Can you produce a self-contained example that fails?

Luca

#31617 From: "Arnar" <arnargestsson@...>
Date: Thu Nov 12, 2009 2:28 pm
Subject: Re: WNG Setup
arnargestsson
Offline Offline
Send Email Send Email
 
Hi Valerio,

exactly, I've used that but my application doesn't work anyhow. What I mean by
doesn't work, is that everything seems to work apart from no content comes when
jsp pages are requested:(  I don't get anything into the logs so I feel pretty
blind. Therefore I'm asking if there is a more detailed instructions for howto
set this up.  For instance which libs are required, I did it just by trial and
error, but it would be nice to have it listed.

BR. Arnar


--- In wmlprogramming@yahoogroups.com, "Valerio" <vmcasale@...> wrote:
>
> Hi Arnar,
>
> there is a configuration example without Spring in Radiowng
WEB-INF/web-alone.xml
>
> Valerio
>
> --- In wmlprogramming@yahoogroups.com, "Arnar" <arnargestsson@> wrote:
> >
> > Hi guys,
> >
> > I'm trying to build a project from scratch using wurfl and wng. I don't want
to derive my project from the radiowng project since it involves spring which I
don't intend to use at this stage.
> >
> > Isn't there any guide for setting this up? Since I'm new to this group I
might have missed something, but I seem not to be able find any references
stating this when I search the group messages.
> >
> > TIA
> >
> > Arnar
> >
>

#31616 From: "Valerio" <vmcasale@...>
Date: Thu Nov 12, 2009 1:13 pm
Subject: Re: WNG Setup
vmcasale...
Offline Offline
Send Email Send Email
 
Hi Arnar,

there is a configuration example without Spring in Radiowng
WEB-INF/web-alone.xml

Valerio

--- In wmlprogramming@yahoogroups.com, "Arnar" <arnargestsson@...> wrote:
>
> Hi guys,
>
> I'm trying to build a project from scratch using wurfl and wng. I don't want
to derive my project from the radiowng project since it involves spring which I
don't intend to use at this stage.
>
> Isn't there any guide for setting this up? Since I'm new to this group I might
have missed something, but I seem not to be able find any references stating
this when I search the group messages.
>
> TIA
>
> Arnar
>

#31615 From: Marc Guay <marc.guay@...>
Date: Thu Nov 12, 2009 12:50 pm
Subject: Re: Re: Selecting anchors inside block elements
mguay11
Offline Offline
Send Email Send Email
 
> You could also try the Opera Mini Demo emulator. Or if you have a Windows box,
running a BlackBerry simulator isn't too hard.

I'm trying to find out if it behaves that way in real life.  Not sure
if testing with more emulators will help prove anything...?

Marc

#31614 From: "jrthor2" <jroscoe@...>
Date: Thu Nov 12, 2009 12:12 pm
Subject: Re: change location of wurfl.zip file
jrthor2
Offline Offline
Send Email Send Email
 
We are not using spring in our project, does that matter?  Also, i tried using
the latest version, but was getting an error when trying to read the wurfl.zip
file, which I found a bug posted on it (sorry, i don't remember the exception
anymore), so that's why I tried version 1.0, and it reads the file with no
problem.

--- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
> jrthor2 wrote:
> > I have just downloaded version 1.0 of the Java API and I have implemented
this as a filter (not a servlet), as I don't want to be doing redirects on every
page hit.  In any case, I want to use this filter in other java projects, but
don't want to have multiple copies of the wurfl.zip file in each projects
WEB-INF directory.  I'd like to have the directory come from a JNDI entry we
have on our servers, which points to a local directory on each server, instead
of putting the location of the file in the web.xml.  Could someone help me with
what code needs to change, and what it needs to change to?  I've been searching
for help, and I see posts about using the ObjectsManager, but if I try to put
that in my filter, it can't find that class.  I'm not sure that class still
exists in wurfl 1.0.
> >
>
> smells like you are using the old Java API. Have you evaluated the
> possibility of moving to the new one?
>
> the Spring-based configuration should give you the flexibility you need.
>
> As an aside, I will remove the old API from the site completely one day
> soon....
>
> Luca
>

#31613 From: JOSE MANUEL CANTERA FONSECA <jmcf@...>
Date: Thu Nov 12, 2009 9:08 am
Subject: HTTP-Based Push on mobile web apps
jmcf@...
Send Email Send Email
 

Hi all,

 

Any of you have experiences using HTTP-based push in a mobile web app using Javascript technologies, Comet or similar? Any kind of good documentation, insights and the like, will be welcome

 

Best R.


#31612 From: Alessandro Pace <biskero@...>
Date: Thu Nov 12, 2009 8:51 am
Subject: Re: Nokia N97 vs Nokia N97 Mini
sandrobischero
Offline Offline
Send Email Send Email
 
Ciao Luca,

the Nokia N97 and Nokia N97 Mini are two separate devices so I think should be separate in WURFL.
One difference is the WebKit browser engine for some firmwares.

Alessandro


On Thu, Nov 12, 2009 at 8:23 AM, Luca Passani <passani@...> wrote:
 


Question for the community here.

Nokia N97 and Nokia N97 mini are being modeled as separate devices at
the moment:

http://db.wurflpro.com/device/show/25569

and

http://db.wurflpro.com/device/show/26400

someone questioned this choice and asked whether it wouldn't be a better
idea to make the mini fall-back into the main one.

I observe that Nokia makes a distinction between the two on their
website, so I would rather keep the two separated, but I would love to
hear other opinions...

Luca




--
Alessandro Pace
Mobile Architect
Blogs: www.biskero.org www.flashlite4nokia.com www.flashlite4se.com
Site: www.biskero.com
Email:  biskero@...
Skype/Jaiku/Twitter: biskero
LinkedIn: www.linkedin.com/in/biskero
Forum Nokia Champion
Manager of the Boston Adobe Mobile and Devices User Group: www.flashmobilegroup.org
Adobe Community Expert Mobile
Co-Founder of Mobile Monday Boston www.momoboston.com

#31611 From: Luca Passani <passani@...>
Date: Thu Nov 12, 2009 8:22 am
Subject: Re: change location of wurfl.zip file
luca_passani
Offline Offline
Send Email Send Email
 
jrthor2 wrote:
> I have just downloaded version 1.0 of the Java API and I have implemented this
as a filter (not a servlet), as I don't want to be doing redirects on every page
hit.  In any case, I want to use this filter in other java projects, but don't
want to have multiple copies of the wurfl.zip file in each projects WEB-INF
directory.  I'd like to have the directory come from a JNDI entry we have on our
servers, which points to a local directory on each server, instead of putting
the location of the file in the web.xml.  Could someone help me with what code
needs to change, and what it needs to change to?  I've been searching for help,
and I see posts about using the ObjectsManager, but if I try to put that in my
filter, it can't find that class.  I'm not sure that class still exists in wurfl
1.0.
>

smells like you are using the old Java API. Have you evaluated the
possibility of moving to the new one?

the Spring-based configuration should give you the flexibility you need.

As an aside, I will remove the old API from the site completely one day
soon....

Luca

#31610 From: "Arnar" <arnargestsson@...>
Date: Thu Nov 12, 2009 7:59 am
Subject: WNG Setup
arnargestsson
Offline Offline
Send Email Send Email
 
Hi guys,

I'm trying to build a project from scratch using wurfl and wng. I don't want to
derive my project from the radiowng project since it involves spring which I
don't intend to use at this stage.

Isn't there any guide for setting this up? Since I'm new to this group I might
have missed something, but I seem not to be able find any references stating
this when I search the group messages.

TIA

Arnar

#31609 From: Max Rozanoff <perpetum.mobile@...>
Date: Thu Nov 12, 2009 7:57 am
Subject: Looking for profiles
mshadow123
Offline Offline
Send Email Send Email
 
#31608 From: Luca Passani <passani@...>
Date: Thu Nov 12, 2009 7:23 am
Subject: Nokia N97 vs Nokia N97 Mini
luca_passani
Offline Offline
Send Email Send Email
 
Question for the community here.

Nokia N97 and Nokia N97 mini are being modeled as separate devices at
the moment:

http://db.wurflpro.com/device/show/25569

and

http://db.wurflpro.com/device/show/26400

someone questioned this choice and asked whether it wouldn't be a better
idea to make the mini fall-back into the main one.

I observe that Nokia makes a distinction between the two on their
website, so I would rather keep the two separated, but I would love to
hear other opinions...

Luca

#31607 From: "bstrackany" <bstrackany@...>
Date: Thu Nov 12, 2009 5:40 am
Subject: Re: Selecting anchors inside block elements
bstrackany
Offline Offline
Send Email Send Email
 
You could also try the Opera Mini Demo emulator. Or if you have a Windows box,
running a BlackBerry simulator isn't too hard.

--- In wmlprogramming@yahoogroups.com, Marc Guay <marc.guay@...> wrote:
>
> > Have you tested using Firefox User Agent to emulate the phone ?
>
> No, I haven't, but I'm not sure if that would emulate the navigation
> of the phone itself?
>

#31606 From: "jrthor2" <jroscoe@...>
Date: Wed Nov 11, 2009 7:37 pm
Subject: change location of wurfl.zip file
jrthor2
Offline Offline
Send Email Send Email
 
I have just downloaded version 1.0 of the Java API and I have implemented this
as a filter (not a servlet), as I don't want to be doing redirects on every page
hit.  In any case, I want to use this filter in other java projects, but don't
want to have multiple copies of the wurfl.zip file in each projects WEB-INF
directory.  I'd like to have the directory come from a JNDI entry we have on our
servers, which points to a local directory on each server, instead of putting
the location of the file in the web.xml.  Could someone help me with what code
needs to change, and what it needs to change to?  I've been searching for help,
and I see posts about using the ObjectsManager, but if I try to put that in my
filter, it can't find that class.  I'm not sure that class still exists in wurfl
1.0.

Thanks.

#31605 From: Luca Passani <passani@...>
Date: Tue Nov 10, 2009 10:41 pm
Subject: Re: Re: max_deck_size
luca_passani
Offline Offline
Send Email Send Email
 
Here you go, Alejandro.

http://t.wurfl.com   =>  storage

(or http://m.wurflpro.com/passani/ts/storage/ )

please fill in a spreadsheet and we will make sure that the data gets
reflected in WURFL (ideally, we will also be able to extrapolate some
general pattern).

Make sure the spreadsheet also reports the UA string or the wurfl ID (so
I can match precisely)

People,of someone can spare 20 minutes or so to test on a few devices
they have available (and report either here or offline to me), please go
ahead.

Thanks

Luca

awoywood wrote:
> Ok, let's do it!
>
> I have in the office right now about 20 phones. We can test all of them in the
next days.
>
> BTW, will you create a new atributte, or use the same max_deck_size ?
>
> --- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>
>> awoywood wrote:
>>
>>> Hi, we build a prototype web2wap converter and need the max size of
XHTML/WML pages for splitting the pages.
>>>
>>>
>> makes a lot of sense
>>
>>
>>> We work close with a chilean operator and could run a test on many devices.
But how can we test this effectively? It doesn't seem practical to reload a page
adding 1 char every time until it fails.
>>>
>>>
>> I can create a test and publish it at http://t.wurfl.com
>>
>> I think 5k increases will do.
>>
>> If you run a transcoder-like application, what about adding some
>> business logic to measure how increases in the size of the delivered
>> page affects navigation?
>>
>>> Regards,
>>> Alejandro Woywood.
>>> PS: we completely honor the transcoder manifesto!
>>>
>>>
>> Good job!
>>
>> Luca
>>
>>
>
>
>
>
> ------------------------------------
>
> As of July 14 2005, it's much easier to be banned from WMLProgramming!
> Please fail to read http://tech.groups.yahoo.com/group/wmlprogramming/ before
you post.Yahoo! Groups Links
>
>
>
>
>

Messages 31605 - 31634 of 31749   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help