[fw-general] Autocomplete with Zend Lucene terms

2010-10-18 Thread Kristian Zondervan

I would like to build a autocomplete function with a Zend Lucene index as
data source. Is there a (easy) way to use Zend Lucene terms for autocomplete
purposes?

For now it's only with single words so when searching for 'err', the return
values should be 'errors', 'errors' and so on.

If this option is not available I will use my own method (and I will have
double data sources for my words). Is there a reason why this option is not
available (maybe there are some best practices suggesting other methods)?
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Autocomplete-with-Zend-Lucene-terms-tp2999878p2999878.html
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] Image CAPTCHA creates huge files

2010-10-18 Thread Cem Derin
Hello,

I've used Zend_Captcha_Image to create Captchas for a stand alone form (code 
below). Unfortunately I discovered, that the class creates huge image files 
(with this code the images are about 900KB), way too heavy for web 
applications. Did you experienced this problem too? Do you have any 
suggestions? I already tweaked the class to use the third (compression-) 
argument in imagepng – unfortunately without any effect.

$captcha = new Zend_Captcha_Image(array(
'name'  =  'foo',
'wordLength'=  '4',
'timeout'   =  300,
'font'  =  $path,
'imgDir'=  $savePath,
'imgUrl'=  '/captcha',
'width' =  304,
));

php version: php version 5.2.12.14-dev

gd info

gd

GD Support  enabled
GD Version  bundled (2.0.34 compatible)
FreeType Supportenabled
FreeType Linkagewith freetype
FreeType Version2.2.1
T1Lib Support   enabled
GIF Read Supportenabled
GIF Create Support  enabled
JPG Support enabled
PNG Support enabled
WBMP Supportenabled
XPM Support enabled
XBM Support enabled


Thanks

Cem
*
Cem Derin  :  Software Development  :  T +49.211.8670 175

wysiwyg* software design gmbh  :  Stresemannstr. 26, 40210 Düsseldorf
Hrb 31084, Ust. Id.Nr: DE 811799982  :  GF: Florian Breiter
T +49.211 8670 10  :  F +49.211 134679  :  aktuell: http://www.wysiwyg.de



[fw-general] Re: Date Subtractions Differences

2010-10-18 Thread David Muir

 is the ISO year, which is different from  which is the normal
calendar year.
http://en.wikipedia.org/wiki/ISO_year#Relation_with_the_Gregorian_calendar

You should use either of the following:
$date = new Zend_Date($datecolumn, Zend_Date::ISO_8601);
$date = new Zend_Date($datecolumn, '-MM-dd');

Cheers,
David
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Date-Subtractions-Differences-tp2996040p2999618.html
Sent from the Zend Framework mailing list archive at Nabble.com.


Re: [fw-general] Image CAPTCHA creates huge files

2010-10-18 Thread Hector Virgen
It seems the default image format is PNG and I couldn't find a way to change
it (perhaps JPG might have better compression). Have you tried decreasing
the height/width? 900KB seems rather large even for a PNG.

--
*Hector Virgen*
Sr. Web Developer
Walt Disney Parks and Resorts Online
http://www.virgentech.com



On Mon, Oct 18, 2010 at 6:40 AM, Cem Derin c...@wysiwyg.de wrote:

 Hello,

 I've used Zend_Captcha_Image to create Captchas for a stand alone form
 (code below). Unfortunately I discovered, that the class creates huge image
 files (with this code the images are about 900KB), way too heavy for web
 applications. Did you experienced this problem too? Do you have any
 suggestions? I already tweaked the class to use the third (compression-)
 argument in imagepng – unfortunately without any effect.

 $captcha = new Zend_Captcha_Image(array(
'name'  =  'foo',
'wordLength'=  '4',
'timeout'   =  300,
'font'  =  $path,
'imgDir'=  $savePath,
'imgUrl'=  '/captcha',
'width' =  304,
 ));

 php version: php version 5.2.12.14-dev

 gd info

 gd

 GD Support  enabled
 GD Version  bundled (2.0.34 compatible)
 FreeType Supportenabled
 FreeType Linkagewith freetype
 FreeType Version2.2.1
 T1Lib Support   enabled
 GIF Read Supportenabled
 GIF Create Support  enabled
 JPG Support enabled
 PNG Support enabled
 WBMP Supportenabled
 XPM Support enabled
 XBM Support enabled


 Thanks

 Cem
 *
 Cem Derin  :  Software Development  :  T +49.211.8670 175

 wysiwyg* software design gmbh  :  Stresemannstr. 26, 40210 Düsseldorf
 Hrb 31084, Ust. Id.Nr: DE 811799982  :  GF: Florian Breiter
 T +49.211 8670 10  :  F +49.211 134679  :  aktuell: http://www.wysiwyg.de




Re: [fw-general] Re: Date Subtractions Differences

2010-10-18 Thread Hector Virgen
I've seen this question come up from time to time even though there's a
note about this in the documentation.

http://framework.zend.com/manual/en/zend.date.constants.html#zend.date.constants.selfdefinedformats

Maybe the documentation should make that note a bit more pronounced, maybe
with a bright background color or larger font. Or maybe it could be marked
important instead of note.

--
*Hector Virgen*
Sr. Web Developer
Walt Disney Parks and Resorts Online
http://www.virgentech.com



On Sun, Oct 17, 2010 at 8:16 PM, David Muir
davidkmuir+z...@gmail.comdavidkmuir%2bz...@gmail.com
 wrote:


  is the ISO year, which is different from  which is the normal
 calendar year.
 http://en.wikipedia.org/wiki/ISO_year#Relation_with_the_Gregorian_calendar

 You should use either of the following:
 $date = new Zend_Date($datecolumn, Zend_Date::ISO_8601);
 $date = new Zend_Date($datecolumn, '-MM-dd');

 Cheers,
 David
 --
 View this message in context:
 http://zend-framework-community.634137.n4.nabble.com/Date-Subtractions-Differences-tp2996040p2999618.html
 Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Problem with Zend_Oauth

2010-10-18 Thread Ron Dyck
I'm getting a strange error when attempting to get a request token. Here's
my code:

$this-_config = array(
'callbackUrl'  = 'http://www.mydomain.com',
'siteUrl'   = '
https://www.google.com/accounts/OAuthGetRequestToken',
'scope' = 'https://apps-apis.google.com/a/feeds/',
'consumerKey'  = 'MyDomain',
'consumerSecret' = 'MyRegisteredConsumerSecret'
);

$consumer = new Zend_Oauth_Consumer($this-_config);

$token = $consumer-getRequestToken();
$_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token);
$consumer-redirect();

I'm getting a 404 error. This baffles me, except that there's something
missing in the request.

Any help is appreciated.

-- 
=
Ron Dyck
pulpfr...@gmail.com
www.webbtech.net
=