Re: [fw-general] 301 Redirect

2009-01-17 Thread Simone Carletti

Toggle the order of the rules. The www redirect should be placed before the
Zend Framework rewrite rule. In fact, it should appear first before any
functional rewrite rule.


bits.abhinav wrote:
 
 But will this work with the Rewrite rules for Zend Framework?
 
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule .* index.php
 
 I tried adding this code below the above code but it takes me to
 www.domain.com/index.php which then messes up with the relative URLs in
 the code.
 
 
 Simone Carletti wrote:
 
 There is more than one solution for this problem.
 Here's one.
 
 RewriteEngine On
 RewriteCond %{HTTP_HOST} ^domain\.com [NC]
 RewriteRule ^(.*)$ http://www.domain.com$1 [R=301,L]
 
 -- Simone
 
 
 bits.abhinav wrote:
 
 Hi all,
 I want to implement a 301 redirect on my portal so that domain.com
 redirects to www.domain.com. I don't have much knowledge about the
 mod_rewrite module of Apace. I found out the code for this online but it
 doesn't work properly. If anyone has done this before or knows how to do
 it please help me out.
 
 Thanks
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/301-Redirect-tp21514435p21515265.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Feed::import link down

2009-01-17 Thread Simone Carletti
Or you can even decide to catch a Zend_Exception to be sure to rescue any
Zend-related exception raised by Zend_Feed, including Zend_Http and
Zend_Feed errors.

-- Simone


On Sat, Jan 17, 2009 at 2:39 PM, Chris Weldon ch...@chrisweldon.net wrote:

 On Sat, Jan 17, 2009 at 5:06 AM, PHPScriptor cont...@phpscriptor.com
 wrote:
  Fatal error: Uncaught exception 'Zend_Http_Client_Exception' with
 message

 Try catching Zend_Http_Client_Exception in addition to
 Zend_Feed_Exception like you have below.

 
  try {
   $slashdotRss  = 
  Zend_Feed::import('http://www.test.eu/rss.php'http://www.test.eu/rss.php%27
 );
   foreach ($slashdotRss as $item) {
 $channel1[] = array(
 'title' = $item-title(),
 'link'  = $item-link(),
 'description'   = $item-description());
   }
   $this-view-nieuwskan = $channel1;
  }
  catch (Zend_Feed_Exception $e) {
  }

 try {
  // try it
 } catch (Zend_Http_Client_Exception $e) {
  // handle it
 } catch (Zend_Feed_Exception $e) {
   // handle it
 }

 --
 Christopher Weldon
 http://chrisweldon.net
 ch...@chrisweldon.net




-- 
Simone Carletti

Site  Blog: www.simonecarletti.com
Email: wep...@weppos.net
LinkedIn: http://linkedin.com/in/weppos


Re: [fw-general] Zend_Feed from string

2008-08-15 Thread Simone Carletti
 Zend_Feed::importString($feed) should be the right solution.
Which error did you receive?

-- Simone

On Fri, Aug 15, 2008 at 3:36 PM, Dimitri van Hees [EMAIL PROTECTED]wrote:

 Hi list,

 I am sorry for bothering you again with this question, but I can't seem to
 find a solution to my problem. I use Zend_Http to fetch a feed so that I can
 handle a timeout in case the providing server is down. For another feed I
 need to login so I use CURL to fetch that feed.

 Anyway, my variable $rss is a string containing the contents of the feed,
 like: $feed= '?xml etc. etc.';

 I want to use Zend_Feed together with this string, but I can't find how to
 'convert' this string to a Zend_Feed object. I hoped
 Zend_Feed::importString($feed) would do the trick but it doesn't.

 Is there any way to achieve this?

 Thanks in advance,

 Dimitri



Re: [fw-general] Incubator location?

2008-08-06 Thread Simone Carletti
http://framework.zend.com/svn/framework/standard/incubator/

-- Simone


On Wed, Aug 6, 2008 at 11:21 AM, Andrew Yager [EMAIL PROTECTED] wrote:

 Hi,

 Can someone please inform me as to the current location of the incubator
 files? I seem to be unable to find them...

 Thanks!

 Andrew

 --
 Andrew Yager, Managing Director   (MACS BCompSc MCP)
 Real World Technology Solutions Pty Ltd
 ph: 1300 798 718 or (02) 9037 0500
 fax: (02) 9037 0591 mob: 0405 152 568
 http://www.rwts.com.au/ or http://www.stonebridgecomputing.com.au/




Re: [fw-general] OT: Good Docbook Editor

2008-07-31 Thread Simone Carletti
I usually edit docbook files by hand with TextMate.
I created a custom DocBook bundle with a couple of snippets and scripts.

However, if you have to write large documentation files, I suggest you to
give a look at
* http://www.xmlmind.com/xmleditor/
* http://www.oxygenxml.com/

I've tried both and I chose to purchase an Oxygen license.

-- Simone


On Thu, Jul 31, 2008 at 3:41 PM, Keith Pope [EMAIL PROTECTED] wrote:

 Hey guys,

 Do you use a docbook editor for writing the zf docs? If so whats a good
 editor to use?

 Thx

 Keith Pope

 --
 allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone,
 Hereford, HR1 3SE. Registered in England No. 02933191. UK VAT Reg. No. 666
 9148 88.

 Telephone: 0870 243 3434, Fax: 0870 243 6041.
 Website: www.allpay.net Email: [EMAIL PROTECTED]

 This email, and any files transmitted with it, is confidential and intended
 solely for the use of the individual or entity to whom it is addressed. If
 you have received this email in error please notify the allpay.netInformation 
 Security Manager at the number above.




Re: [fw-general] getting notices by using Zend_Service_Yahoo::webSearch

2008-07-13 Thread Simone Carletti
Hi Jan,
could you please open a ticket on JIRA
http://framework.zend.com/issues/secure/Dashboard.jspa to keep track of this
issue?

Thanks for your feedback,
-- Simone


On Sun, Jul 13, 2008 at 12:47 PM, Jan Pieper [EMAIL PROTECTED] wrote:

 I want to use Zend_Serive_Yahoo::webSearch() to search for websites but I
 get some notices (E_NOTICE) when I search for flabben:

 Notice: Trying to get property of non-object in
 C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
 Notice: Trying to get property of non-object in
 C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98
 Notice: Trying to get property of non-object in
 C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
 Notice: Trying to get property of non-object in
 C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98

 Here my code:

 $yahoo = new Zend_Service_Yahoo($appId);
 $results = $yahoo-webSearch('flabben');

 I am getting valid results and I can use them but I think no api should
 cause notices.

 Attached xml result (result.xml) to this email so you can try to find out
 what is causing these notices.

 If there is still something in my xml result that can be used by others to
 use my account, please let me know so I can deactivate actual application id
 and create a new one.

 -- Jan



Re: [fw-general] Zend_Feed: accessing single tags (no closing tags)

2008-06-10 Thread Simone Carletti
Hi ofniedan,
sorry for not answering before, I just noticed your message now due to...
your email activity! :D

Each Zend_Feed_Element (including the feed instance itself) implements
ArrayAccess interface.
It means you can access any attribute via $element-enclosure['attribute'];

Have a look at the following example.

#!/usr/bin/env php
?php

require 'helper.php';
require 'Zend/Feed.php';

$feed = Zend_Feed::import('http://www.phparch.com/c/news/atom');
foreach ($feed as $index = $item) {
echo $index. {$item-title}\n;
echo \tlink: {$item-link['href']}\n;
}

Here's the output

PhpMate r8839 running PHP 5.2.5 (cli) (/usr/bin/env php)
 feed-array-access.php

0. MTA release new Guide to PHP 5 Migration
link:
http://c7y.phparch.com/c/entry/1/news,20080610-guide_to_php_5_migration_published
1. MTA publishes php|architect's PHP Job Hunter's Handbook
link:
http://c7y.phparch.com/c/entry/1/news,20080602-php_job_hunters_handbook_published
2. MTA and ibuildings announce partnership
link:
http://c7y.phparch.com/c/entry/1/news,20080527-mta_and_ibuildings_partnership
3. php|tek 2008 95% sold out
link:
http://c7y.phparch.com/c/entry/1/news,20080428-phptek_almost_sold_out
4. Announcing our new Magento book
link: http://c7y.phparch.com/c/entry/1/news,20080428-new_magento_book
5. First Magento class sold out; new dates announced for May
link:
http://c7y.phparch.com/c/entry/1/news,20080414-new_magento_training_dates

...

-- Simone


On Tue, Jun 10, 2008 at 10:44 PM, James Dempster [EMAIL PROTECTED] wrote:

 lol very funny.

 Thanks for letting us know Wil, was wondering what was going on.

 /James Dempster


 On Tue, Jun 10, 2008 at 9:41 PM, Wil Sinclair [EMAIL PROTECTED] wrote:

 Hey all, you are probably seeing multiple copies of this message. It is
 not the sender's doing! I'm cleaning out the spam filter for this list,
 and he's just tried mailing several times from different addresses since
 he wasn't seeing his messages come through.
 Sender, if you'd like to get your messages through to lists, I would
 recommend against using phrases like me love you long time!. ;)

 ,Wil

  -Original Message-
  From: ofniedan [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 06, 2008 3:56 AM
  To: fw-general@lists.zend.com
  Subject: [fw-general] Zend_Feed: accessing single tags (no closing
  tags)
 
 
  Sorry for the strange subject title, I just didnt know how to explain
  this in
  normal english ^_^
 
  I use zend_feed to parse rss feeds, and some of them have tags that do
  not
  consist of opening/closing pair tags, but just one tag, with inside
 the
  info
  i need, for example:
  enclosure url=http://www.examble.com/image.jpg/
  I googled for an hour now, and still i don't know how to use this
 tag..
  if i iterate through the rss items, and use $item-enclosure, it
  returns
  (obviously) a NULL.
 
  Anybody who could help me: me love you long time!
  --
  View this message in context: http://www.nabble.com/Zend_Feed%3A-
  accessing-single-tags-%28no-closing-tags%29-tp17619166p17619166.html
  Sent from the Zend Framework mailing list archive at Nabble.com.





Re: [fw-general] TypePad AntiSpam

2008-05-30 Thread Simone Carletti
It sounds a really nice idea.
I'm reading the Six Apart documentation right now at
http://antispam.typepad.com/info/developers.html :

*TypePad AntiSpam is 100% compatible with the Akismet API. This means that
if you've already developed a plugin for Akismet, your plugin will be
compatible with TypePad AntiSpam. And if you're looking to develop a new
plugin, if you develop to the Akismet API your plugin will work with both
Akismet and TypePad AntiSpam.
*
It seems the new proposal will be quite easy to be implemented. :)

Simone


On Fri, May 30, 2008 at 1:49 AM, Jordan Moore [EMAIL PROTECTED]
wrote:

 TypePad just released a beta version of AntiSpam
 (http://antispam.typepad.com/), which is basically a clone of Akismet.
 AntiSpam's API is identical to Akismet's, but has much looser usage
 terms than Akismet's. Would anyone besides myself find it useful to
 have a ZF component for AntiSpam? If so, I'd be happy to get the
 proposal process started. It really should only involve modifying
 Zend_Service_Akismet to be more extensible and creating a new sub
 class for AntiSpam, but those kind of details should follow later...

 --
 Jordan Ryan Moore



Re: [fw-general] ZF and Ohloh

2008-05-19 Thread Simone Carletti
Hi Wil,
I have been using Ohloh since one year and I have to say it's a really
amazing project.

They also expose a RESTful API.
If I'm right there's a ZF component proposal for a Ohloh client somewhere in
the wiki page.

Simone

On Mon, May 19, 2008 at 2:54 AM, Wil Sinclair [EMAIL PROTECTED] wrote:

 Hi all, I took a look at Ohloh (http://www.ohloh.net/) this weekend for
 the first time. It's a relatively interesting tool to track open source
 projects, and I find it particular useful for tracking relationships
 among them. Zend Framework's Ohloh project can be found here:
 http://www.ohloh.net/projects/zend_framework. Two reasons I mention
 this:

 1) I would be nice to see all our users and contributors associated with
 the Zend Framework project on Ohloh.

 2) It would be *particularly* nice to see all projects that use Zend
 Framework associated with the project on Ohloh.

 ,Wil



Re: [fw-general] Zend Italy Workshop slides: ZF and PHP frameworks

2008-04-22 Thread Simone Carletti
Hey Federico,
I supposed you are Italian but I never had the proof.
Now I got it! :D

Thanks for your feedback,
Simone


On Tue, Apr 22, 2008 at 1:28 AM, Federico Cargnelutti 
[EMAIL PROTECTED] wrote:

 Great stuff, thanks Simone ;)


 On Mon, Apr 21, 2008 at 1:21 PM, Simone Carletti [EMAIL PROTECTED] wrote:

 
  Hi list,
  at http://www.slideshare.net/weppos/quale-framework-php-utilizzare/ I've
  published the slides I created for the first Zend Italy workshop about
  Zend
  Framework (http://www.zend.com/it/company/framework-workshop-italy).
 
  The slides are a quick overview web framework with a comparison between
  Zend
  Framework, Symfony and CakePHP.
  Unfortunately the main language was Italian and I don't have an English
  version right now.
 
  Simone
  --
  View this message in context:
  http://www.nabble.com/Zend-Italy-Workshop-slides%3A-ZF-and-PHP-frameworks-tp16807485p16807485.html
  Sent from the Zend Framework mailing list archive at Nabble.com.
 
 



[fw-general] Zend Italy Workshop slides: ZF and PHP frameworks

2008-04-21 Thread Simone Carletti

Hi list,
at http://www.slideshare.net/weppos/quale-framework-php-utilizzare/ I've
published the slides I created for the first Zend Italy workshop about Zend
Framework (http://www.zend.com/it/company/framework-workshop-italy).

The slides are a quick overview web framework with a comparison between Zend
Framework, Symfony and CakePHP.
Unfortunately the main language was Italian and I don't have an English
version right now.

Simone
-- 
View this message in context: 
http://www.nabble.com/Zend-Italy-Workshop-slides%3A-ZF-and-PHP-frameworks-tp16807485p16807485.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] LinkedIn Group

2008-04-12 Thread Simone Carletti
This is something I was thinking about some weeks ago! :)
I've just sent the request!

Simone

On Sat, Apr 12, 2008 at 9:42 PM, Sudheer [EMAIL PROTECTED]
wrote:

 Karl Katzke wrote:

  Here's a direct link, I think...
 
  http://www.linkedin.com/pub/0/626/433
 
   I just joined. :)

 --

 With warm regards,
 Sudheer. S
 http://binaryvibes.co.in




Re: [fw-general] Zend_Feed: Two Quibbles

2008-04-01 Thread Simone Carletti
Hi Karl,

as stated in the coding standard, the right version is saveXml and getDOM.
I'm going to open a ticket for this issue.

About the second question, you have access to a content:encoded element
via *content* statement.

$item-content (attribute-style)

or

$item-content() (method-style)


Simone

On Tue, Apr 1, 2008 at 1:24 AM, Karl Katzke [EMAIL PROTECTED] wrote:

 Zend_Feed is a giant leap forward in feed parsing. It's made what I'm
 working on now -easy-.

 That being said, I've got two quibbles. Minor one first.

 Function capitalization: In Zend_Feed_Element, there's getDOM() and
 saveXml(). Guys, do me a favor and pick ONE capitalization standard and
 stick with it...

 Second quibble: I can't find any support, except for going all the way
 down to the DOMElement, for accessing an element with a name like
 content:encoded. This is the way my Wordpress blog passes the full
 content in RSS. ( http://www.karlkatzke.com/feed ) Is there something I'm
 just not missing because we don't have great tools for introspection into
 what, exactly, these darned classes contain? (Or, could someone suggest a
 better way for me to see what-all a Feed_Element actually contains?)

 Thanks,
 Karl Katzke



Re: [fw-general] Zend_Feed: Two Quibbles

2008-04-01 Thread Simone Carletti
Hi Karl,
you don't need to register any additional namespace.

I already implemented all you need to access content:encoded text as
ZF-2140 http://framework.zend.com/issues/browse/ZF-2140 describes.
The final result is exactly what you would expect, as this test file
describes
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/tests/Zend/Feed/Entry/RssTest.php?r=8659

You can call $item-content() to get the content of the content:encoded
tag.

Simone


On Tue, Apr 1, 2008 at 3:57 PM, Karl Katzke [EMAIL PROTECTED] wrote:

 Hi, Simone.

 The problem is that $item-content doesn't appear. Upon further reading,
 it seems that Content is a namespace, and Encoded is the actual attribute.
 There's a line at the start of my RSS feed that says

 rss version=2.0
   xmlns:content=http://purl.org/rss/1.0/modules/content/;


 Now, I'm new to this RSS feed stuff. Would I just need to use the
 Zend_Feed::registerNamespace function?

 Thanks,
 Karl Katzke


 On Tue, Apr 1, 2008 at 4:33 AM, Simone Carletti [EMAIL PROTECTED] wrote:

  Hi Karl,
 
  as stated in the coding standard, the right version is saveXml and
  getDOM.
  I'm going to open a ticket for this issue.
 
  About the second question, you have access to a content:encoded
  element via *content* statement.
 
  $item-content (attribute-style)
 
  or
 
  $item-content() (method-style)
 
 
  Simone
 
 
  On Tue, Apr 1, 2008 at 1:24 AM, Karl Katzke [EMAIL PROTECTED] wrote:
 
   Zend_Feed is a giant leap forward in feed parsing. It's made what I'm
   working on now -easy-.
  
   That being said, I've got two quibbles. Minor one first.
  
   Function capitalization: In Zend_Feed_Element, there's getDOM() and
   saveXml(). Guys, do me a favor and pick ONE capitalization standard and
   stick with it...
  
   Second quibble: I can't find any support, except for going all the way
   down to the DOMElement, for accessing an element with a name like
   content:encoded. This is the way my Wordpress blog passes the full
   content in RSS. ( http://www.karlkatzke.com/feed ) Is there something
   I'm just not missing because we don't have great tools for introspection
   into what, exactly, these darned classes contain? (Or, could someone 
   suggest
   a better way for me to see what-all a Feed_Element actually contains?)
  
   Thanks,
   Karl Katzke
  
 
 



Re: [fw-general] Zend_Loader no longer works as expected in 1.5

2008-03-24 Thread Simone Carletti
Hi Jens,
I pointed out the same issue some weeks ago.
http://www.nabble.com/Is-is-safe-to-delegate-to-a-PHP-error-instead-of-a-custom-check--to15490466s16154.html#a15490466

I agree with you, we should reintroduce the old behavior.

Simone

On Mon, Mar 24, 2008 at 11:16 PM, pakmannen [EMAIL PROTECTED]
wrote:


 Hi,

 I recently updated from 1.0 to 1.5 and noticed that Zend_Loader no longer
 works as expected. When loading a class, it no longer checks to see if the
 file exists before loading, which means that when autoloading classes, you
 get php warnings when the file doesn't exist. This makes it impossible to
 have more than one autoloader registered, or to use a modified autoloader
 method which attempts more than one call to Zend_Loader::loadClass().

 Was the removal of the file exists checks intentional?

 /Jens Ljungblad
 --
 View this message in context:
 http://www.nabble.com/Zend_Loader-no-longer-works-as-expected-in-1.5-tp16263404p16263404.html
 Sent from the Zend Framework mailing list archive at Nabble.com.




[fw-general] Re: CHM Documentation

2008-03-09 Thread Simone Carletti
Hi Thomas,
first thanks for your new contribution.

I've a question for you. I'm sorry if it appears a newbie question, but in
fact it is.
I've never built a CHM file before.

I read your instructions in the README file but I think they made too much
assumptions for a person who want to create a CHM itself.
I tried to follow them and first I searched for the additional libraries to
install.

A query for MsHtmlHelpWorkshop didn't return any result thus I assumed it
was a tiny name.
I run an additional search for the name of the binary file you indicate in
the readme and I discovered the link
http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f-9aa0-d597d16580ccdisplaylang=enthat
appears to be the closest match.
Is this the right file? If so, I would suggest to put a direct link in the
readme file.

Then I installed the library but I noticed the binary file is hhw.exeinstead of
hhc.exe.
Am I on the right way?

-- Simone


On Sat, Mar 8, 2008 at 8:08 PM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 Hy Frameworkers,

 I just integrated CHM generation for all languages within the Zend
 Framework.

 Those of you who want to build it themself will have to download the
 latest
 trunk and see into the README file in each language for how to do this.

 Those of you who are not able to generate the manual can download it from
 my
 homepage. But not all at once :-)

 All of you who want to have the CHM documentation also in future and for
 new
 releases can vote in this issue
 http://framework.zend.com/issues/browse/ZF-2454 for integration... maybe
 we
 can persuade Wil to do this for us. :-)

 The german team and I are working on integrating also an index... german
 speakers can look here
 http://www.zfforum.de/showthread.php?p=15527#post15527 for details.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com




Re: [fw-general] Re: CHM Documentation

2008-03-09 Thread Simone Carletti
Hi Thomas,
don't worry about r8716. Those changes are not related to this issue, I just
discovered (working on this issue) that I forgot to sync the italian
xinclude with the latest changes made at r7499.

Update: I'm going to revert changes at makefile. I committed them by
mistake.

About the CHM, I finally created it.
Microsoft HTMLHelp Workshop 1.3 worked as well. I used hhw (as I told you I
don't have hhc in the version 1.3) and I passed the html as an argument.
It opened the GUI pre-filled with all files, then I just pressed compile
and it worked.

-- Simone


On Sun, Mar 9, 2008 at 9:38 PM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 Hy simon,

 The needed software is Microsoft HTMLHelp Workshop 1.4.

 And no... hhw is wrong... there is a hhc.exe which is the commandline
 tool.
 hhw is the windows tool which can not be accessed by commandline.

 To make a CHM you should previously be able to generate the HTML source
 from
 docbook anyway.
 This part has not changed.

 Btw: You should not change the Makefile (SVN-8716)... this is the build
 file
 and it must differ from english, otherwise it makes problems if there are
 parts of the manual not translated.

 I changed all languages, so you should not change it back again. It really
 works.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com

 - Original Message -
 From: Simone Carletti [EMAIL PROTECTED]
 To: Thomas Weidner [EMAIL PROTECTED]
 Cc: fw-general@lists.zend.com; [EMAIL PROTECTED]
 Sent: Sunday, March 09, 2008 9:15 PM
 Subject: Re: CHM Documentation


  Hi Thomas,
  first thanks for your new contribution.
 
  I've a question for you. I'm sorry if it appears a newbie question, but
 in
  fact it is.
  I've never built a CHM file before.
 
  I read your instructions in the README file but I think they made too
 much
  assumptions for a person who want to create a CHM itself.
  I tried to follow them and first I searched for the additional libraries
  to
  install.
 
  A query for MsHtmlHelpWorkshop didn't return any result thus I assumed
 it
  was a tiny name.
  I run an additional search for the name of the binary file you indicate
 in
  the readme and I discovered the link
 
 http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f-9aa0-d597d16580ccdisplaylang=enthat
  appears to be the closest match.
  Is this the right file? If so, I would suggest to put a direct link in
 the
  readme file.
 
  Then I installed the library but I noticed the binary file is
  hhw.exeinstead of
  hhc.exe.
  Am I on the right way?
 
  -- Simone
 
 
  On Sat, Mar 8, 2008 at 8:08 PM, Thomas Weidner [EMAIL PROTECTED]
  wrote:
 
  Hy Frameworkers,
 
  I just integrated CHM generation for all languages within the Zend
  Framework.
 
  Those of you who want to build it themself will have to download the
  latest
  trunk and see into the README file in each language for how to do this.
 
  Those of you who are not able to generate the manual can download it
 from
  my
  homepage. But not all at once :-)
 
  All of you who want to have the CHM documentation also in future and
 for
  new
  releases can vote in this issue
  http://framework.zend.com/issues/browse/ZF-2454 for integration...
 maybe
  we
  can persuade Wil to do this for us. :-)
 
  The german team and I are working on integrating also an index...
 german
  speakers can look here
  http://www.zfforum.de/showthread.php?p=15527#post15527 for details.
 
  Greetings
  Thomas Weidner, I18N Team Leader
  http://www.thomasweidner.com
 
 
 




Re: [fw-general] Re: CHM Documentation

2008-03-09 Thread Simone Carletti
ooops, I forgot to tell you the reason I changed Makefile was that your
changes broken the build process.
Here's the error:

Macintosh:it weppos$ make
Makefile:59: *** missing separator (did you mean TAB instead of 8 spaces?).
Stop.

I noticed your like uses soft wraps while the other lines a TAB.
I'm going to revert my change to your revision and fix your line with a TAB
instead of soft wraps.
I'll let you know if it fixes the issue.

Stay tuned! ;)

-- Simone


On Sun, Mar 9, 2008 at 9:47 PM, Simone Carletti [EMAIL PROTECTED] wrote:

 Hi Thomas,
 don't worry about r8716. Those changes are not related to this issue, I
 just discovered (working on this issue) that I forgot to sync the italian
 xinclude with the latest changes made at r7499.

 Update: I'm going to revert changes at makefile. I committed them by
 mistake.

 About the CHM, I finally created it.
 Microsoft HTMLHelp Workshop 1.3 worked as well. I used hhw (as I told you
 I don't have hhc in the version 1.3) and I passed the html as an argument.
 It opened the GUI pre-filled with all files, then I just pressed compile
 and it worked.

 -- Simone



 On Sun, Mar 9, 2008 at 9:38 PM, Thomas Weidner [EMAIL PROTECTED]
 wrote:

  Hy simon,
 
  The needed software is Microsoft HTMLHelp Workshop 1.4.
 
  And no... hhw is wrong... there is a hhc.exe which is the commandline
  tool.
  hhw is the windows tool which can not be accessed by commandline.
 
  To make a CHM you should previously be able to generate the HTML source
  from
  docbook anyway.
  This part has not changed.
 
  Btw: You should not change the Makefile (SVN-8716)... this is the build
  file
  and it must differ from english, otherwise it makes problems if there
  are
  parts of the manual not translated.
 
  I changed all languages, so you should not change it back again. It
  really
  works.
 
  Greetings
  Thomas Weidner, I18N Team Leader
  http://www.thomasweidner.com
 
  - Original Message -
  From: Simone Carletti [EMAIL PROTECTED]
  To: Thomas Weidner [EMAIL PROTECTED]
  Cc: fw-general@lists.zend.com; [EMAIL PROTECTED]
  Sent: Sunday, March 09, 2008 9:15 PM
  Subject: Re: CHM Documentation
 
 
   Hi Thomas,
   first thanks for your new contribution.
  
   I've a question for you. I'm sorry if it appears a newbie question,
  but in
   fact it is.
   I've never built a CHM file before.
  
   I read your instructions in the README file but I think they made too
  much
   assumptions for a person who want to create a CHM itself.
   I tried to follow them and first I searched for the additional
  libraries
   to
   install.
  
   A query for MsHtmlHelpWorkshop didn't return any result thus I assumed
  it
   was a tiny name.
   I run an additional search for the name of the binary file you
  indicate in
   the readme and I discovered the link
  
  http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f-9aa0-d597d16580ccdisplaylang=enthat
   appears to be the closest match.
   Is this the right file? If so, I would suggest to put a direct link in
  the
   readme file.
  
   Then I installed the library but I noticed the binary file is
   hhw.exeinstead of
   hhc.exe.
   Am I on the right way?
  
   -- Simone
  
  
   On Sat, Mar 8, 2008 at 8:08 PM, Thomas Weidner [EMAIL PROTECTED]
   wrote:
  
   Hy Frameworkers,
  
   I just integrated CHM generation for all languages within the Zend
   Framework.
  
   Those of you who want to build it themself will have to download the
   latest
   trunk and see into the README file in each language for how to do
  this.
  
   Those of you who are not able to generate the manual can download it
  from
   my
   homepage. But not all at once :-)
  
   All of you who want to have the CHM documentation also in future and
  for
   new
   releases can vote in this issue
   http://framework.zend.com/issues/browse/ZF-2454 for integration...
  maybe
   we
   can persuade Wil to do this for us. :-)
  
   The german team and I are working on integrating also an index...
  german
   speakers can look here
   http://www.zfforum.de/showthread.php?p=15527#post15527 for details.
  
   Greetings
   Thomas Weidner, I18N Team Leader
   http://www.thomasweidner.com
  
  
  
 
 



Re: [fw-general] Re: CHM Documentation

2008-03-09 Thread Simone Carletti
I confirm Thomas.

I reverted my changes at r8716 and I get the following error back:

Macintosh:ita weppos$ autoconf
Macintosh:ita weppos$ ./configure
checking for xep... no
checking for xinc... no
checking for fop... no
checking for xsltproc... /opt/local/bin/xsltproc
checking for xmllint... /opt/local/bin/xmllint
configure: creating ./config.status
config.status: creating Makefile
Macintosh:ita weppos$ make
Makefile:59: *** missing separator (did you mean TAB instead of 8 spaces?).
Stop.

Then I opened makefile and changes softwrap at line 59 to a TAB and it
worked.
Well... it worked at least until line 340 of manual.xml when it failed for
an unknown reason.

manual.xml:339: element include: XInclude error : could not load
ref/requirements.xml, and no fallback was found
warning: failed to load external entity ref/coding_standard.xml
manual.xml:340: element include: XInclude error : could not load
ref/coding_standard.xml, and no fallback was found
make: *** [html/index.html] Error 1

I'm going to investigate it, it should depend on an outdated manual.xml.infile.

What about the TAB vs soft wraps spaces? Are you going to fix them or should
I commit an update? :)

-- Simone



Macintosh:ita weppos$ make
sed -e '[EMAIL 
PROTECTED]@!http://framework.zend.com/docbook/xml/4.5/docbookx.dtd!'
manual.xml.in  manual.xml
sed -e '[EMAIL 
PROTECTED]@!http://framework.zend.com/docbook-xsl/htmlhelp/htmlhelp.xsl!'
html.xsl.in  html.xsl
Rendering the whole manual with /opt/local/bin/xsltproc...
/opt/local/bin/xmllint --xinclude --output _temp_manual.xml manual.xml

Or, at least, it started... unfortunately


On Sun, Mar 9, 2008 at 9:49 PM, Simone Carletti [EMAIL PROTECTED] wrote:

 ooops, I forgot to tell you the reason I changed Makefile was that your
 changes broken the build process.
 Here's the error:

 Macintosh:it weppos$ make
 Makefile:59: *** missing separator (did you mean TAB instead of 8
 spaces?).  Stop.

 I noticed your like uses soft wraps while the other lines a TAB.
 I'm going to revert my change to your revision and fix your line with a
 TAB instead of soft wraps.
 I'll let you know if it fixes the issue.

 Stay tuned! ;)

 -- Simone



 On Sun, Mar 9, 2008 at 9:47 PM, Simone Carletti [EMAIL PROTECTED] wrote:

  Hi Thomas,
  don't worry about r8716. Those changes are not related to this issue, I
  just discovered (working on this issue) that I forgot to sync the italian
  xinclude with the latest changes made at r7499.
 
  Update: I'm going to revert changes at makefile. I committed them by
  mistake.
 
  About the CHM, I finally created it.
  Microsoft HTMLHelp Workshop 1.3 worked as well. I used hhw (as I told
  you I don't have hhc in the version 1.3) and I passed the html as an
  argument.
  It opened the GUI pre-filled with all files, then I just pressed
  compile and it worked.
 
  -- Simone
 
 
 
  On Sun, Mar 9, 2008 at 9:38 PM, Thomas Weidner [EMAIL PROTECTED]
  wrote:
 
   Hy simon,
  
   The needed software is Microsoft HTMLHelp Workshop 1.4.
  
   And no... hhw is wrong... there is a hhc.exe which is the commandline
   tool.
   hhw is the windows tool which can not be accessed by commandline.
  
   To make a CHM you should previously be able to generate the HTML
   source from
   docbook anyway.
   This part has not changed.
  
   Btw: You should not change the Makefile (SVN-8716)... this is the
   build file
   and it must differ from english, otherwise it makes problems if there
   are
   parts of the manual not translated.
  
   I changed all languages, so you should not change it back again. It
   really
   works.
  
   Greetings
   Thomas Weidner, I18N Team Leader
   http://www.thomasweidner.com
  
   - Original Message -
   From: Simone Carletti [EMAIL PROTECTED]
   To: Thomas Weidner [EMAIL PROTECTED]
   Cc: fw-general@lists.zend.com; [EMAIL PROTECTED]
   Sent: Sunday, March 09, 2008 9:15 PM
   Subject: Re: CHM Documentation
  
  
Hi Thomas,
first thanks for your new contribution.
   
I've a question for you. I'm sorry if it appears a newbie question,
   but in
fact it is.
I've never built a CHM file before.
   
I read your instructions in the README file but I think they made
   too much
assumptions for a person who want to create a CHM itself.
I tried to follow them and first I searched for the additional
   libraries
to
install.
   
A query for MsHtmlHelpWorkshop didn't return any result thus I
   assumed it
was a tiny name.
I run an additional search for the name of the binary file you
   indicate in
the readme and I discovered the link
   
   http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f-9aa0-d597d16580ccdisplaylang=enthat
appears to be the closest match.
Is this the right file? If so, I would suggest to put a direct link
   in the
readme file.
   
Then I installed the library but I noticed the binary file is
hhw.exeinstead of
hhc.exe.
Am I on the right way

Re: [fw-general] Re: CHM Documentation

2008-03-09 Thread Simone Carletti
I'm sorry Thomas, but it's a worldwide issue.
Have a look at my test with the latest checkout from the German folder.

Macintosh:manual weppos$ cd de-test
Macintosh:de-test weppos$ svn info
Path: .
URL: http://framework.zend.com/svn/framework/trunk/documentation/manual/de
Repository Root: http://framework.zend.com/svn/framework
Repository UUID: 44c647ce-9c0f-0410-b52a-842ac1e357ba
Revision: 8712
Node Kind: directory
Schedule: normal
Last Changed Author: thomas
Last Changed Rev: 8708
Last Changed Date: 2008-03-09 10:46:51 +0100 (Sun, 09 Mar 2008)

Macintosh:de-test weppos$ autoconf
Macintosh:de-test weppos$ ./configure
checking for xep... no
checking for xinc... no
checking for fop... no
checking for xsltproc... /opt/local/bin/xsltproc
checking for xmllint... /opt/local/bin/xmllint
configure: creating ./config.status
config.status: creating Makefile
Macintosh:de-test weppos$ make
Makefile:59: *** missing separator (did you mean TAB instead of 8 spaces?).
Stop.
Macintosh:de-test weppos$

The only version that works, actually, is the English one.
The reason, as I explained before, is a missing tab (replaced by soft wrap
spaces) at Makefile line 59. :)

-- Simone

On Sun, Mar 9, 2008 at 10:18 PM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 Hy Simone,

 For me the changed version works in all languages as also the english
 version except the failed translation files themself but this has nothing
 to
 do with the makefile.

 But I am not using Mac. I only tested under cygwin and linux.
 You can commit the change as long as it depends on your language.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com

 - Original Message -
 From: Simone Carletti [EMAIL PROTECTED]
 To: Thomas Weidner [EMAIL PROTECTED]
 Cc: fw-general@lists.zend.com; [EMAIL PROTECTED]
 Sent: Sunday, March 09, 2008 10:09 PM
 Subject: Re: [fw-general] Re: CHM Documentation


 I confirm Thomas.
 
  I reverted my changes at r8716 and I get the following error back:
 
  Macintosh:ita weppos$ autoconf
  Macintosh:ita weppos$ ./configure
  checking for xep... no
  checking for xinc... no
  checking for fop... no
  checking for xsltproc... /opt/local/bin/xsltproc
  checking for xmllint... /opt/local/bin/xmllint
  configure: creating ./config.status
  config.status: creating Makefile
  Macintosh:ita weppos$ make
  Makefile:59: *** missing separator (did you mean TAB instead of 8
  spaces?).
  Stop.
 
  Then I opened makefile and changes softwrap at line 59 to a TAB and it
  worked.
  Well... it worked at least until line 340 of manual.xml when it failed
 for
  an unknown reason.
 
  manual.xml:339: element include: XInclude error : could not load
  ref/requirements.xml, and no fallback was found
  warning: failed to load external entity ref/coding_standard.xml
  manual.xml:340: element include: XInclude error : could not load
  ref/coding_standard.xml, and no fallback was found
  make: *** [html/index.html] Error 1
 
  I'm going to investigate it, it should depend on an outdated
  manual.xml.infile.
 
  What about the TAB vs soft wraps spaces? Are you going to fix them or
  should
  I commit an update? :)
 
  -- Simone
 
 
 
  Macintosh:ita weppos$ make
  sed -e
  '[EMAIL PROTECTED]
 [EMAIL PROTECTED]://framework.zend.com/docbook/xml/4.5/docbookx.dtd!'
  manual.xml.in  manual.xml
  sed -e
  '[EMAIL PROTECTED]
 [EMAIL PROTECTED]://framework.zend.com/docbook-xsl/htmlhelp/htmlhelp.xsl!'
  html.xsl.in  html.xsl
  Rendering the whole manual with /opt/local/bin/xsltproc...
  /opt/local/bin/xmllint --xinclude --output _temp_manual.xml manual.xml
 
  Or, at least, it started... unfortunately
 
 
  On Sun, Mar 9, 2008 at 9:49 PM, Simone Carletti [EMAIL PROTECTED]
 wrote:
 
  ooops, I forgot to tell you the reason I changed Makefile was that your
  changes broken the build process.
  Here's the error:
 
  Macintosh:it weppos$ make
  Makefile:59: *** missing separator (did you mean TAB instead of 8
  spaces?).  Stop.
 
  I noticed your like uses soft wraps while the other lines a TAB.
  I'm going to revert my change to your revision and fix your line with a
  TAB instead of soft wraps.
  I'll let you know if it fixes the issue.
 
  Stay tuned! ;)
 
  -- Simone
 
 
 
  On Sun, Mar 9, 2008 at 9:47 PM, Simone Carletti [EMAIL PROTECTED]
  wrote:
 
   Hi Thomas,
   don't worry about r8716. Those changes are not related to this issue,
 I
   just discovered (working on this issue) that I forgot to sync the
   italian
   xinclude with the latest changes made at r7499.
  
   Update: I'm going to revert changes at makefile. I committed them by
   mistake.
  
   About the CHM, I finally created it.
   Microsoft HTMLHelp Workshop 1.3 worked as well. I used hhw (as I told
   you I don't have hhc in the version 1.3) and I passed the html as an
   argument.
   It opened the GUI pre-filled with all files, then I just pressed
   compile and it worked.
  
   -- Simone
  
  
  
   On Sun, Mar 9, 2008 at 9:38 PM, Thomas Weidner [EMAIL PROTECTED

Re: [fw-general] Re: CHM Documentation

2008-03-09 Thread Simone Carletti
Excellent! ;)

-- Simone


On Sun, Mar 9, 2008 at 10:55 PM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 ...

 But I used 8721 and not 8712. :-)




[fw-general] Zend_Service_FeedBurner component almost ready

2008-02-17 Thread Simone Carletti
Hello list,

I'm glad to announce I've just completed my proposal for a new service
component called Zend_Service_FeedBurner_Awareness.
This is something more than a proposal because I have been using such this
client since more than one year and I just decided to port it under the
Zend_Framework structure (before was a personal standalone library).

Due to the previous experience with other ZF web services, this proposal is
almost completed in the main functionalities, as you can see at
http://www.simonecarletti.com/tmp/Zend_Service_FeedBurner/
It includes the 95% of the final component and more than 50% of unit tests
code coverage.

Tests are not included in the previous URL.
I will import them as soon as the component will be accepted (if it will
happen! :P)

In the meantime, everybody is encouraged to have a look at the component and
play with it.
You can find more use cases in the official proposal, here
http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_FeedBurner_Awareness+-+Simone+Carletti

Before the component could be declared completed I will probably need to
double check the DateRange class with some Date expert.
I guess it could be improved following some other member feedbacks. Thomas
already gave some really helpful feedback in some previous post here, in the
mailing list.


Looking forward your feedbacks and suggestions!
I'm sure I'm not the only one publishing a feed powered by FeedBurner. ;)

-- Simone


[fw-general] Is is safe to delegate to a PHP error instead of a custom check?

2008-02-14 Thread Simone Carletti

Hi list,
I was investigating issue ZF-2488
http://framework.zend.com/issues/browse/ZF-2488
and I discovered the unit test is failing due to API changes in
Zend_Loader::loadClass()

At the time the unit test was written, Zend_Loader::loadFile() was slightly
different.
See
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/library/Zend/Loader.php?r=4259

In case $dirs param is null, the function called $found =
self::isReadable($filespec) which tried to validate the file within
include_path and, raised a custom error in case of failure.

Current loadFile implementation
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/library/Zend/Loader.php?r=7726
no longer perform any additional check in case $dirs is null and directly
call include or include_once on raw file even if it doesn't exists.

This causes a PHP error/warning instead of a custom Zend_Exception error.
This is basically the reason why the unit test for Zend_Service_StrikeIron
fails.

Now, my question is: is it a feature or a mistake?

-- 
View this message in context: 
http://www.nabble.com/Is-is-safe-to-delegate-to-a-PHP-error-instead-of-a-custom-check--tp15490466s16154p15490466.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] English grammar check

2008-02-13 Thread Simone Carletti

Hi guys,
I need an official English grammar check for an update to the official
documentation I'd like to commit.

Here the details
http://framework.zend.com/issues/browse/ZF-2140#action_18996

Can someone help me? :)
-- 
View this message in context: 
http://www.nabble.com/English-grammar-check-tp15469144s16154p15469144.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Dealing with Zend_Date ranges

2008-02-11 Thread Simone Carletti
Hi Thomas,

Actually there is no proposal for such a functionality and I don't want to
 copy code from service classes to core just for fun. :-)


I perfectly agree.
I hope to commit the new web service proposal as soon as it will be
completed thus you and everybody else will be able to give a look at this
Date Range implementation and check whether it could be a standalone
component.
The API exposed by the class can be easily improved for a deep integration
with other core components.

If not it doesn't matter, it will only be part ot the web service component
itself. :)

Thanks,
Simone


On Mon, Feb 11, 2008 at 12:25 PM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 Hy Simon,

 this class is not intended to be a integrated part of Zend_Date.
 Actually there is no proposal for such a functionality and I don't want to
 copy code from service classes to core just for fun. :-)
 Keep in mind that I would then also have to support this class.

 From your description I also have 2 disappointments:
 1.) the custom format you are using is completly false
 2.) your api example is too complicated for most users

 So from what I actualy see it's a custom class of your service, but not
 part
 of the core for now.
 This can of course change in the future, depending on usability and
 response
 from others.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com

 - Original Message -
 From: Simone Carletti [EMAIL PROTECTED]
 To: Thomas Weidner [EMAIL PROTECTED]
 Sent: Monday, February 11, 2008 10:03 AM
 Subject: Re: [fw-general] Dealing with Zend_Date ranges


  Hi Thomas,
  you are right, however the DateRange object goes beyond a simple
  comparison
  between two dates.
 
  I've almost finished to build the class, I'll be glad if you will give a
  look in the future.
  Among all features, the class is able to:
 
  * hold a $from and $to date object
  * reorder the range to ensure $from is always the most recent timestamp
  * return the range in a custom format (for example, feedburner wants the
  range to be returned in -MM-DD,-MM-DD format)
  * add a time/date fragment starting from $from. For instance, $x =
  Range(Zend_Date::now()); $x-add('+5', Zend_Date::MINUTE) is equals to
 $x
  =
  Range(Zend_Date::now(), Zend_Date::now()-add('+5', Zend_Date::MINUTE))
  and a few more features.
 
  This class is actually shipped with the new Zend_Service_FeedBurner
  proposal
  I'm working on, however it can easily extracted into a standalone
  Zend_Date_Range() object if we find it useful. :)
 
  -- Simone
 
  On Mon, Feb 11, 2008 at 8:49 AM, Thomas Weidner [EMAIL PROTECTED]
  wrote:
 
  It's all possible with the actual API with just a few single lines.
  There is no need of additional methods in my opinion.
 
  See for example the isEarlier and isLater methods within the API.
 
  Greetings
  Thomas Weidner, I18N Team Leader
  http://www.thomasweidner.com
 
  - Original Message -
  From: Simone Carletti [EMAIL PROTECTED]
  To: fw-general@lists.zend.com
  Sent: Sunday, February 10, 2008 11:38 PM
  Subject: [fw-general] Dealing with Zend_Date ranges
 
 
  
   Hi list,
  
   I'm working on a FeedBurner php client porting from an old PHP4
 project
  I
   made time ago.
   Having a deep look at new FeedBurner API I noticed they use the
 concept
  of
   Date Range.
  
   Is anyone working on a Zend_Date_Range implementation?
   I'm creating a basic date range object for the new proposal and it
   would
   probably be a good starting point for a possibile Zend_Date_Range
  object.
  
   I also find a nice PERL date range implementation
   http://search.cpan.org/dist/Date-Range/lib/Date/Range.pm
  
   What do you think about the idea of a Zend_Date_Range class?
  
   -- Simone
   --
   View this message in context:
  
 
 http://www.nabble.com/Dealing-with-Zend_Date-ranges-tp15402549s16154p15402549.html
   Sent from the Zend Framework mailing list archive at Nabble.com.
 
 
 




Re: [fw-general] Weird Zend_Date behavior (may be a bug?)

2008-02-11 Thread Simone Carletti
Both dates were created without any time range thus I suppose 00:00:00 is
used by default.
The timezone was the same, I'm sure. It was the first setting I checked when
the issue occured.

Date calculation is not that easy... it's not just adding x days.


I noticed! ;)

Thanks for your support.
-- Simone

On Mon, Feb 11, 2008 at 12:34 PM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 Hy Simon,

  Just to satisfy my curiosity, how is it possible the other solution
  provided
  an earlier date?

 Two possible problems...
 You think that you've only worked with dates, but internally also the time
 is taken in account.
 So also the timezone is relevant.
 And the yearday is calculated in an other way than the day of month.

 Both in sum can be the reason why you got unexpected behaviour.

 I can say it just once more...
 Date calculation is not that easy... it's not just adding x days.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com

 - Original Message -
 From: Simone Carletti [EMAIL PROTECTED]
 To: Thomas Weidner [EMAIL PROTECTED]
 Cc: fw-general@lists.zend.com
 Sent: Monday, February 11, 2008 9:56 AM
 Subject: Re: [fw-general] Weird Zend_Date behavior (may be a bug?)


  Hi Thomas,
 
  I must admit I was hoping a feedback from you! ;)
  Thanks for taking part of this conversation.
 
  I just changed the format to -MM-dd and it worked as expected (at
  least now, I will try again tonight because it might depend on the
  timezone).
  Just to satisfy my curiosity, how is it possible the other solution
  provided
  an earlier date?
 
  Thanks,
  Simone
 
  On Mon, Feb 11, 2008 at 8:43 AM, Thomas Weidner [EMAIL PROTECTED]
  wrote:
 
  Hy Simon,
 
  just a question...
  Why are you using the DAY_OF_YEAR within your format if you only want
 the
  day ?
 
  Change you testdate to March or later and you will see your problem.
  If you want DAY you should also use it within your format...
  -MM-dd.
 
  Greetings
  Thomas Weidner, I18N Team Leader
  http://www.thomasweidner.com
 
 
  - Original Message -
  From: Simone Carletti [EMAIL PROTECTED]
  To: fw-general@lists.zend.com
  Sent: Monday, February 11, 2008 2:08 AM
  Subject: [fw-general] Weird Zend_Date behavior (may be a bug?)
 
 
  
   Have a look at the following code fragment
  
   /**
   * Returns a range representation as required by FeedBurner API.
   */
   public function getFeedBurnerRange()
   {
  static $format = '-MM-DD';
  $this-order(); // reorder range
  
  $from = $this-getFrom();
  $to   = $this-getTo();
  echo $from;
  
  if ($from === null) {
  /**
   * @see Zend_Service_FeedBurner_Awareness_Exception
   */
  require_once
 'Zend/Service/FeedBurner/Awareness/Exception.php';
  throw new Zend_Service_FeedBurner_Awareness_Exception(
  Missing range start date);
  }
  
  if ($to === null) {
  $to = $this-setTo($from)-getTo();
  }
  
  return $from-get($format) . ',' . $to-get($format);
   }
  
   Now look the following test
  
   public function testGetFeedBurnerRange() {
  $first  = '2008-01-20';
  $before = '2008-01-10';
  
  $range = new Zend_Service_FeedBurner_Awareness_DateRange($first,
   $before);
  echo $range-getFrom();
  $this-assertEquals($first,$before,
 $range-getFeedBurnerRange());
  
  $range = new Zend_Service_FeedBurner_Awareness_DateRange($first,
   $before);
  $this-assertEquals($first,$before,
 $range-getFeedBurnerRange());
   }
  
   It fails with the following reason
  
   1)
  testGetFeedBurnerRange(Zend_Service_FeedBurner_Awareness_DateRangeTest)
   Failed asserting that two strings are equal.
   expected string 2008-01-20,2008-01-10
   difference  x
   got string  2008-01-19,2008-01-09
  
 
 /Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/FeedBurner/Awareness/DateRangeTest.php:161
  
   BUT... if instead of DD I use Zend_Date::DAY it works! (or at least
  return
   20 and 10 as expected instead of 19 and 09.
  
   1)
  testGetFeedBurnerRange(Zend_Service_FeedBurner_Awareness_DateRangeTest)
   Failed asserting that two strings are equal.
   expected string 2008-01-20,2008-01-10
   differencexxx
   got string  20,10
  
 
 /Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/FeedBurner/Awareness/DateRangeTest.php:161
  
   How is it possibile?
  
   -- Simone
   --
   View this message in context:
  
 
 http://www.nabble.com/Weird-Zend_Date-behavior-%28may-be-a-bug-%29-tp15403927s16154p15403927.html
   Sent from the Zend Framework mailing list archive at Nabble.com.
 
 
 




Re: [fw-general] Dealing with Zend_Date ranges

2008-02-11 Thread Simone Carletti
Hi Thomas,
you are right, however the DateRange object goes beyond a simple comparison
between two dates.

I've almost finished to build the class, I'll be glad if you will give a
look in the future.
Among all features, the class is able to:

* hold a $from and $to date object
* reorder the range to ensure $from is always the most recent timestamp
* return the range in a custom format (for example, feedburner wants the
range to be returned in -MM-DD,-MM-DD format)
* add a time/date fragment starting from $from. For instance, $x =
Range(Zend_Date::now()); $x-add('+5', Zend_Date::MINUTE) is equals to $x =
Range(Zend_Date::now(), Zend_Date::now()-add('+5', Zend_Date::MINUTE))
and a few more features.

This class is actually shipped with the new Zend_Service_FeedBurner proposal
I'm working on, however it can easily extracted into a standalone
Zend_Date_Range() object if we find it useful. :)

-- Simone

On Mon, Feb 11, 2008 at 8:49 AM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 It's all possible with the actual API with just a few single lines.
 There is no need of additional methods in my opinion.

 See for example the isEarlier and isLater methods within the API.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com

 - Original Message -
 From: Simone Carletti [EMAIL PROTECTED]
 To: fw-general@lists.zend.com
 Sent: Sunday, February 10, 2008 11:38 PM
 Subject: [fw-general] Dealing with Zend_Date ranges


 
  Hi list,
 
  I'm working on a FeedBurner php client porting from an old PHP4 project
 I
  made time ago.
  Having a deep look at new FeedBurner API I noticed they use the concept
 of
  Date Range.
 
  Is anyone working on a Zend_Date_Range implementation?
  I'm creating a basic date range object for the new proposal and it would
  probably be a good starting point for a possibile Zend_Date_Range
 object.
 
  I also find a nice PERL date range implementation
  http://search.cpan.org/dist/Date-Range/lib/Date/Range.pm
 
  What do you think about the idea of a Zend_Date_Range class?
 
  -- Simone
  --
  View this message in context:
 
 http://www.nabble.com/Dealing-with-Zend_Date-ranges-tp15402549s16154p15402549.html
  Sent from the Zend Framework mailing list archive at Nabble.com.




Re: [fw-general] Weird Zend_Date behavior (may be a bug?)

2008-02-11 Thread Simone Carletti
Hi Thomas,

I must admit I was hoping a feedback from you! ;)
Thanks for taking part of this conversation.

I just changed the format to -MM-dd and it worked as expected (at
least now, I will try again tonight because it might depend on the
timezone).
Just to satisfy my curiosity, how is it possible the other solution provided
an earlier date?

Thanks,
Simone

On Mon, Feb 11, 2008 at 8:43 AM, Thomas Weidner [EMAIL PROTECTED]
wrote:

 Hy Simon,

 just a question...
 Why are you using the DAY_OF_YEAR within your format if you only want the
 day ?

 Change you testdate to March or later and you will see your problem.
 If you want DAY you should also use it within your format... -MM-dd.

 Greetings
 Thomas Weidner, I18N Team Leader
 http://www.thomasweidner.com


 - Original Message -
 From: Simone Carletti [EMAIL PROTECTED]
 To: fw-general@lists.zend.com
 Sent: Monday, February 11, 2008 2:08 AM
 Subject: [fw-general] Weird Zend_Date behavior (may be a bug?)


 
  Have a look at the following code fragment
 
  /**
  * Returns a range representation as required by FeedBurner API.
  */
  public function getFeedBurnerRange()
  {
 static $format = '-MM-DD';
 $this-order(); // reorder range
 
 $from = $this-getFrom();
 $to   = $this-getTo();
 echo $from;
 
 if ($from === null) {
 /**
  * @see Zend_Service_FeedBurner_Awareness_Exception
  */
 require_once 'Zend/Service/FeedBurner/Awareness/Exception.php';
 throw new Zend_Service_FeedBurner_Awareness_Exception(
 Missing range start date);
 }
 
 if ($to === null) {
 $to = $this-setTo($from)-getTo();
 }
 
 return $from-get($format) . ',' . $to-get($format);
  }
 
  Now look the following test
 
  public function testGetFeedBurnerRange() {
 $first  = '2008-01-20';
 $before = '2008-01-10';
 
 $range = new Zend_Service_FeedBurner_Awareness_DateRange($first,
  $before);
 echo $range-getFrom();
 $this-assertEquals($first,$before, $range-getFeedBurnerRange());
 
 $range = new Zend_Service_FeedBurner_Awareness_DateRange($first,
  $before);
 $this-assertEquals($first,$before, $range-getFeedBurnerRange());
  }
 
  It fails with the following reason
 
  1)
 testGetFeedBurnerRange(Zend_Service_FeedBurner_Awareness_DateRangeTest)
  Failed asserting that two strings are equal.
  expected string 2008-01-20,2008-01-10
  difference  x
  got string  2008-01-19,2008-01-09
 
 /Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/FeedBurner/Awareness/DateRangeTest.php:161
 
  BUT... if instead of DD I use Zend_Date::DAY it works! (or at least
 return
  20 and 10 as expected instead of 19 and 09.
 
  1)
 testGetFeedBurnerRange(Zend_Service_FeedBurner_Awareness_DateRangeTest)
  Failed asserting that two strings are equal.
  expected string 2008-01-20,2008-01-10
  differencexxx
  got string  20,10
 
 /Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/FeedBurner/Awareness/DateRangeTest.php:161
 
  How is it possibile?
 
  -- Simone
  --
  View this message in context:
 
 http://www.nabble.com/Weird-Zend_Date-behavior-%28may-be-a-bug-%29-tp15403927s16154p15403927.html
  Sent from the Zend Framework mailing list archive at Nabble.com.




[fw-general] Dealing with Zend_Date ranges

2008-02-10 Thread Simone Carletti

Hi list,

I'm working on a FeedBurner php client porting from an old PHP4 project I
made time ago.
Having a deep look at new FeedBurner API I noticed they use the concept of
Date Range.

Is anyone working on a Zend_Date_Range implementation?
I'm creating a basic date range object for the new proposal and it would
probably be a good starting point for a possibile Zend_Date_Range object.

I also find a nice PERL date range implementation
http://search.cpan.org/dist/Date-Range/lib/Date/Range.pm

What do you think about the idea of a Zend_Date_Range class?

-- Simone 
-- 
View this message in context: 
http://www.nabble.com/Dealing-with-Zend_Date-ranges-tp15402549s16154p15402549.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Errors in documentation of Zend_Http_Cookies

2008-02-05 Thread Simone Carletti
Thanks Vladas,

I filled a new ticket http://framework.zend.com/issues/browse/ZF-2575 :)

-- Simone

On Tue, Feb 5, 2008 at 3:21 PM, Vladas Diržys [EMAIL PROTECTED]
wrote:

 I think there is an error in documentation.

 http://framework.zend.com/manual/en/zend.http.cookies.html

 Example 17.22. and forward uses:
 $cookie = Zend_Http_*Client*('foo=two+words; );

 but it should be:
 $cookie = Zend_Http_*Cookie*('foo=two+words; );





[fw-general] Multiple (and perhaps not needed) require statements

2008-02-05 Thread Simone Carletti

Hello,

I was reading unit tests from some recent components and I noticed most of
them include the following statement:

require_once dirname(dirname(dirname(__FILE__))) . '/TestHelper.php';
require_once PHPUnit/Framework/TestCase.php;
require_once PHPUnit/Framework/TestSuite.php;

I was wondering if is there any particular reason for including again
TestCase.php and TestSuite.php.
They appears to be already required by TestHelper.

Additionally, I noticed it's a common practice to include TestHelper only in
the AllTest.php file (main suite).
This makes impossibile to run a class specific unit test due to an error
trying to include Zend/* file not available in include_path.

Let me show you a few examples:

// the following statement works fine
phpunit --verbose Zend_Service_Yahoo_AllTests

// the following statements fail
//  Failed opening required 'Zend/*' ... 
phpunit --verbose Zend_Service_Yahoo_OfflineTest
phpunit --verbose Zend_OpenId_ConsumerTest

// the following statement fails for the same reason as above
phpunit --verbose Zend_OpenId_AllTests  

-- Simone
-- 
View this message in context: 
http://www.nabble.com/Multiple-%28and-perhaps-not-needed%29-require-statements-tp15299693s16154p15299693.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Proposal for a user agent component

2008-02-01 Thread Simone Carletti
I absolutely agree.

On Fri, Feb 1, 2008 at 10:13 AM, Christer Edvartsen [EMAIL PROTECTED]
wrote:

 I think the user agent component should be a separate component, and
 have the context switcher configured to be aware of different
 parameters. If the switcher is set up to be aware of user agents it
 could then use the user agent component to figure out the user agent.

 No everyone uses the MVC part of ZF and thats why I would like to have
 the user agent component as a separate component.

 Inash Zubair wrote:
  True. That's what I meant by glueing both proposals at some time but not
  for 1.5, probably for a future release. The helper should stand
  primarily for the request Context and it should provide detecting and/or
  switching based on other request parameters/environment as well. We
  don't actually need 2 or more components for this and it has to be part
  of the Controller_Action_Helpers. That's what I think. Any views on this
  for a future release!?
 
  On 1/31/08, *Matthew Weier O'Phinney* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  -- Inash Zubair [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote
  (on Thursday, 31 January 2008, 04:55 PM +0500):
Sorry I missed sending this previously to the list. Here it is
 now.
   
I'm assuming the purpose of this component is to detect the type
  of client and
customize the output to fit it's capabilities. There is a similar
  component
already in the incubator for version 1.5 and probably that will
  be rolled out
with the PR version of 1.5 that is Zend_Controller_Action_Helper
_ContextSwitch which does something similar.
   
Matthew: Is there a possibility both these proposals could be
  glued!? The
purpose is similar as far as I know but how the context is
  determined is
different.
 
  ContextSwitch currently only looks for a given parameter in the
 request.
  However, once we have UserAgent detection, I can write support for
 that
  into ContextSwitch. UserAgent support will *not* happen by 1.5,
 however.
 
 
On 1/31/08, Matthew Weier O'Phinney [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
   
-- Simone Carletti [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote
(on Wednesday, 30 January 2008, 09:52 PM +0100):
 a friend of mine created the best ASP class for user agent
  sniffing.
 It's a long time project, started more than 5 years ago.
  It's called
WBStat.
 http://www.useragents.org/develop-wbstat.asp

 4 years ago I created a tracking tool and this class was
  part of the
 application core.
 We made a kind of partnership: I was in charge of providing
  the class
tons of
 new user agents and my friend was in charge of updating the
  database.
 This is the result: http://www.useragents.org/
 Probably on of the huge useragent database, daily updated
 with

 * 153 browsers,
 * 221 robots,
 * 89 operating systems
 * 2045 unique user-agent string (the real database is more
  than 400k user
 agents)

 Have a look at what the class can do just from an user
 agent!
 http://www.useragents.org/develop-wbstat.asp?w=demo

 I always promised to myself (and to him!) to create a PHP
  porting of this
 excellent tool for ZF.
 You should definitely have a look at the class.

 It is Italian based but the code is international! ;)
 The class is just the core, client definitions are stored
  in 3 external
XML
 files that can be easily adapted to ZF needs.

 You should definitely have a look at this wonderful piece
  of code. :)
   
Before he does, what is the license? Depending on the
  license, we may
not be able to accept such a port...
   
   
 On Wed, Jan 30, 2008 at 8:26 PM, Christer Edvartsen
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:

 I have created a page in the wiki that will hold the
  proposal for a
 Zend_UserAgent component. The proposal does not hold
  that much
 information yet, but I will add some more as soon as I
  get some
feedback
 from you guys. It's located at
 http://framework.zend.com/wiki/display/ZFPROP/
 Zend_UserAgent+-+Christer+Edvartsen

 The component is supposed to be used to classify user
  agents into
some
 predefined categories. I suggest the following
 categories

[fw-general] Fisheye offline?

2008-02-01 Thread Simone Carletti

http://framework.zend.com/fisheye/browse/Zend_Framework

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET
/fisheye/browse/Zend_Framework.
Reason: Error reading from remote server

From JIRA i get the following error

Error communicating with FishEye: java.net.SocketTimeoutException: Read
timed out
-- 
View this message in context: 
http://www.nabble.com/Fisheye-offline--tp15224145s16154p15224145.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Proposal for a user agent component

2008-02-01 Thread Simone Carletti
I contacted him and he said this is not really an issue.
He can adapt the license or provide custom permission for such this derived
work.

He hasn't posted here an answer yet because - he said - my English is not
really understandable. :)

On Fri, Feb 1, 2008 at 8:41 AM, Kevin Golding [EMAIL PROTECTED]
wrote:

 In article [EMAIL PROTECTED]
 , Vincent [EMAIL PROTECTED] writes
 
 
 On 31/01/2008, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote:
 Simone Carletti [EMAIL PROTECTED] wrote
(on Wednesday, 30 January 2008, 11:19 PM +0100):
 http://creativecommons.org/licenses/by-nc-sa/2.5/
 Attribution-Noncommercial-Share Alike 2.5 Generic

 Additionally, you should consider I already talked with my
friend about the
 idea of a PHP porting and he was more than happy.
 I guess license or permission is not really a problem.
 
Excellent -- I'll have somebody on the Zend team verify that
this is a
compatable license; I'm not sure what our policy is on
attribution.
 
 Wouldn't the NonCommercial part be a problem? (As in: IIRC the New
 BSD license allows commercial usage)

 Share Alike is also more GPL than BSD.

 Also, it must be said there's a reason attribution was dropped from most
 BSD style licenses (i.e. it became a complete pain).

 I assumed by Simone's comments though that his friend was happy to
 change the license to something that was compatible.

 Kevin



Re: [fw-general] Proposal for a user agent component

2008-01-30 Thread Simone Carletti
Hi Christer,

a friend of mine created the best ASP class for user agent sniffing.
It's a long time project, started more than 5 years ago. It's called WBStat.
http://www.useragents.org/develop-wbstat.asp

4 years ago I created a tracking tool and this class was part of the
application core.
We made a kind of partnership: I was in charge of providing the class tons
of new user agents and my friend was in charge of updating the database.
This is the result: http://www.useragents.org/
Probably on of the huge useragent database, daily updated with

* 153 browsers,
* 221 robots,
* 89 operating systems
* 2045 unique user-agent string (the real database is more than 400k user
agents)

Have a look at what the class can do just from an user agent!
http://www.useragents.org/develop-wbstat.asp?w=demo

I always promised to myself (and to him!) to create a PHP porting of this
excellent tool for ZF.
You should definitely have a look at the class.

It is Italian based but the code is international! ;)
The class is just the core, client definitions are stored in 3 external XML
files that can be easily adapted to ZF needs.

You should definitely have a look at this wonderful piece of code. :)

-- Simone

On Wed, Jan 30, 2008 at 8:26 PM, Christer Edvartsen [EMAIL PROTECTED]
wrote:

 I have created a page in the wiki that will hold the proposal for a
 Zend_UserAgent component. The proposal does not hold that much
 information yet, but I will add some more as soon as I get some feedback
 from you guys. It's located at

 http://framework.zend.com/wiki/display/ZFPROP/Zend_UserAgent+-+Christer+Edvartsen

 The component is supposed to be used to classify user agents into some
 predefined categories. I suggest the following categories:

 * Browser
 * RSS Reader
 * Mobile Device
 * Robot

 A Zend_Controller_Action helper could also be made by using this
 component but I guess something like this could live outside of a
 typical MVC application so I suggest it as a separate component.

 There are several user agent databases out there, and the one I was
 thinking about using is http://www.user-agents.org/ which has an
 extensive list of user agent strings. One problem is that the database
 does not have the Mobile device category. The list is huge though
 (2500+ user agents) and I don't think it would be necessary to use
 _every_ user agent string in that database.

 Does anyone have any ideas of how to decide of what list we could use
 for something like this? The component will be made in such a manner
 that developers can add their own list/database if they think the one we
 provide is not sufficient.

 The component could also be extended to fetch some more detalied
 information about mobile devices using WURFL
 (http://wurfl.sourceforge.net/).

 Any comments?


 --
 Christer Edvartsen
 [EMAIL PROTECTED]
 http://cogo.wordpress.com/



Re: [fw-general] Proposal for a user agent component

2008-01-30 Thread Simone Carletti
http://creativecommons.org/licenses/by-nc-sa/2.5/
Attribution-Noncommercial-Share Alike 2.5 Generic

Additionally, you should consider I already talked with my friend about the
idea of a PHP porting and he was more than happy.
I guess license or permission is not really a problem.

-- Simone


On Wed, Jan 30, 2008 at 11:04 PM, Matthew Weier O'Phinney [EMAIL PROTECTED]
wrote:

 -- Simone Carletti [EMAIL PROTECTED] wrote
 (on Wednesday, 30 January 2008, 09:52 PM +0100):
  a friend of mine created the best ASP class for user agent sniffing.
  It's a long time project, started more than 5 years ago. It's called
 WBStat.
  http://www.useragents.org/develop-wbstat.asp
 
  4 years ago I created a tracking tool and this class was part of the
  application core.
  We made a kind of partnership: I was in charge of providing the class
 tons of
  new user agents and my friend was in charge of updating the database.
  This is the result: http://www.useragents.org/
  Probably on of the huge useragent database, daily updated with
 
  * 153 browsers,
  * 221 robots,
  * 89 operating systems
  * 2045 unique user-agent string (the real database is more than 400k
 user
  agents)
 
  Have a look at what the class can do just from an user agent!
  http://www.useragents.org/develop-wbstat.asp?w=demo
 
  I always promised to myself (and to him!) to create a PHP porting of
 this
  excellent tool for ZF.
  You should definitely have a look at the class.
 
  It is Italian based but the code is international! ;)
  The class is just the core, client definitions are stored in 3 external
 XML
  files that can be easily adapted to ZF needs.
 
  You should definitely have a look at this wonderful piece of code. :)

 Before he does, what is the license? Depending on the license, we may
 not be able to accept such a port...


  On Wed, Jan 30, 2008 at 8:26 PM, Christer Edvartsen [EMAIL PROTECTED]
 
  wrote:
 
  I have created a page in the wiki that will hold the proposal for a
  Zend_UserAgent component. The proposal does not hold that much
  information yet, but I will add some more as soon as I get some
 feedback
  from you guys. It's located at
  http://framework.zend.com/wiki/display/ZFPROP/
  Zend_UserAgent+-+Christer+Edvartsen
 
  The component is supposed to be used to classify user agents into
 some
  predefined categories. I suggest the following categories:
 
  * Browser
  * RSS Reader
  * Mobile Device
  * Robot
 
  A Zend_Controller_Action helper could also be made by using this
  component but I guess something like this could live outside of a
  typical MVC application so I suggest it as a separate component.
 
  There are several user agent databases out there, and the one I was
  thinking about using is http://www.user-agents.org/ which has an
  extensive list of user agent strings. One problem is that the
 database
  does not have the Mobile device category. The list is huge though
  (2500+ user agents) and I don't think it would be necessary to use
  _every_ user agent string in that database.
 
  Does anyone have any ideas of how to decide of what list we could
 use
  for something like this? The component will be made in such a manner
  that developers can add their own list/database if they think the
 one we
  provide is not sufficient.
 
  The component could also be extended to fetch some more detalied
  information about mobile devices using WURFL
  (http://wurfl.sourceforge.net/).
 
  Any comments?
 
 
  --
  Christer Edvartsen
  [EMAIL PROTECTED]
  http://cogo.wordpress.com/
 
 

 --
 Matthew Weier O'Phinney
 PHP Developer| [EMAIL PROTECTED]
 Zend - The PHP Company   | http://www.zend.com/



Re: [fw-general] ZF Packaging

2008-01-28 Thread Simone Carletti
On Jan 28, 2008 3:57 PM, Richard Thomas [EMAIL PROTECTED] wrote:

 zfdev.com is a community supported project that never really took off,
 It was never an official repository though.


Sorry Richard,
my misunderstanding. :)

Thanks for pointing it out.

Simone


Re: [fw-general] ZF Packaging

2008-01-27 Thread Simone Carletti
AFAIK, an unofficial PEAR channel for Zend Framework has already being
created at http://code.google.com/p/zend/

Wil, I don't know if you noticed Zend Framework FAQ page talks about an
official(?) PEAR channel at http://pear.zfdev.com/
http://framework.zend.com/wiki/display/ZFUSER/Frequently+Asked+Questions
Additionally, http://pear.zfdev.com/ is no longer available.

I think this information should be removed.
Do you agree?

Simone

On Jan 23, 2008 8:42 PM, Wil Sinclair [EMAIL PROTECTED] wrote:

 In any case, there are- and almost surely will always be- those users who
 won't want to use PEAR, and we will continue to make the installation
 process simple for them. At this point it seems that the best option is a
 tarball with possibly some CLI support for downloading some optional
 code/data. We do appreciate the distribution/versioning/dependency
 management issues in general packaging systems, and we certainly wouldn't
 take on something this ambitious at this point. We'll only add support for
 minimal distribution capabilities to the CLI if we can simplify requirements
 for a ZF-specific setup in a way that doesn't have nasty side effects or
 gets us in to dependency hell.



 Hope that sheds some light on the issue from our side.



 ,Wil



 *From:* Kevin McArthur [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, January 23, 2008 9:11 AM
 *To:* Pádraic Brady
 *Cc:* fw-general@lists.zend.com

 *Subject:* Re: [fw-general] ZF Packaging



 No time for a big rant today,

 1. No versioned/split sub-packages. (decided long ago)
 2. Versioned paths in pear breaks pear standard operating method. May be
 confusing for that reason. Pear Upgrade ZendFramework _must_ be avoided if
 it will change files to newer functional versions.
 3. How would you deploy security fixes to existing version releases.
 4. There has been talk/work on a CLI tool for bootstrapping anyway, just
 seems installation would be a natural extension as one command could
 download/install and bootstrap to prevent any pathing problems.

 K

 Pádraic Brady wrote:

 To remark on some of the PEAR FUD.



 PEAR doesn't remove the ability to download, decompress, copy and otherwise

 manually manage the source code - essentially it just takes a default action

 of downloading, decompressing, and copying into the /php/pear directory

 which should already be present on the PHP include_path in php.ini which

 alleviates one more include_path search for those getting a bit worried

 about having 2. The proposed download archives for Core/Extras/etc. can

 merrily continue their existence. They wouldn't even share the same

 subdomain...



 Does it preclude path versioning? I can script an entire PEAR system into

 existence using Phing based on any array of preferred version numbers -

 especially since PEAR does allow you to force installation of one specific

 version irrespective of it's status or age. Last I checked the basic PEAR

 installed in under 5 minutes. There is also version compatibility control

 built into PEAR since you can set a preferred-version on all dependencies

 package by package. This means control over specific preferred versions for

 any remote system is a doddle. The only manual intervention would be

 changing the include_path for the application...



 Finally, the ZF is a componentised framework - not a fragile stack of cards

 that will fall apart in PEAR - everyone did quite a good job of ensuring

 classes/components are decoupled. I would agree that at a minimum there

 would have to be a Core package of say the MVC components to form the basic

 installation base for immediate use - everything else could be made a

 self-contained package available across PEAR, with aggregated commands to

 install specific bundles of packages (perhaps reflecting the proposed

 download split). Then one could:



 pear channel-discover pear.framework.zend.com

 pear install zend/Zend_Core

 pear install zend/Zend_Services_Flickr

 pear install --force zend/Zend_Pdf-1.1.2



 Not saying the PEAR route is any easier than whatever CLI option Will is

 considering - but PEAR does have the advantage of being in this distribution

 business for long enough to learn substantial lessons. The main disadvantage

 is packaging everything to start with - not a simple task and something for

 whoever maintains the current ZF build.xml to look into. At the moment for

 Phing, I'm leaning on work from Travis Swicegood who wrote a lean and mean

 PEAR packaging task for Phing over on pear.domain51.com.



 Best regards,

 Paddy





 Karl Katzke wrote:



 A better example might be Python Eggs. You can unpack them to a directory

 of

 your choosing using a simple CLI-bootstrap file.



 Symfony does use Pear, but Symfony is not very shared-hosting friendly --

 and Zend *is* shared-hosting friendly, which is something that I would

 very

 much like to see the community maintain.



 -K



 On Jan 22, 2008 6:12 PM, Kevin McArthur [EMAIL 

Re: [fw-general] rails migration like in ZF ? Or how do you sync dev. db-production db ?

2008-01-24 Thread Simone Carletti
Actually no migration system is part of Zend Framework.
There's just a proposal
http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Schema_Manager+-+Rob+Allen


Simone

On Jan 24, 2008 1:47 AM, Nicolae Namolovan [EMAIL PROTECTED] wrote:

 Hi dear list,

 Is there anything similar to rails migration file in Zend Framework ?

 I'm creating now a new table on mine development database, and after I
 want to migrate this to the production one, how to achieve this in a
 nice way ?

 Now I'm doing.. into the mysql console, show create table `table name`;
 Copypaste to mysql console on production..
 To change anything alter table..
 Horrible..

 How do you do this in a nice way ?

 --
 Sincerely,
 Nicolae Namolovan.



Re: [fw-general] 1.5 and backwards compatibilty. . .

2008-01-17 Thread Simone Carletti


wllm wrote:
 
 *If you have made an API or behavior change for 1.5 that is not
 backwards compatible, please notify me ASAP.*
 

In order to fix http://framework.zend.com/issues/browse/ZF-1308 I changed
the method name, however it was previously declared as private thus I
suppose there's no BC issue here.

-- 
View this message in context: 
http://www.nabble.com/1.5-and-backwards-compatibilty.-.-.-tp14915193s16154p14921159.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Issuetracker stopped

2008-01-13 Thread Simone Carletti

I'm getting the following error response.

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET
/fisheye/browse/Zend_Framework.

Reason: Error reading from remote server


-- Simone


Darby Felton wrote:
 
 Hi Thomas,
 
 I've restarted Tomcat for JIRA and Confluence, and it looks like they're
 back up now. Thanks for the report!
 
 Best regards,
 Darby
 
 Thomas Weidner wrote:
 Hy,
 
 it seems that the issue tracker has stopped since 30 minutes...
 Please restart.
 
 Thanks
 Thomas
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Issuetracker-stopped-tp14755935s16154p14793267.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Service_Technorati almost ready for core

2008-01-04 Thread Simone Carletti
Hello list,

I'm glad to inform you that Zend_Service_Technorati is almost ready for
core.
Many improvements have been done in the last weeks both in library and unit
tests.
More details available at http://framework.zend.com/issues/browse/ZF-2334

As Darby suggested, it would be great to receive any feedback from the
community about class usage or features, to be able to make the last changes
before integrating (I hope) the component into ZF core package.

Each component class and method includes a documentation block, thus
Zend_Service_Technorati should be easy to use.
If you need further details, a XML Docbook documentation is also available
at
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/incubator/documentation/manual/en/module_specs/Zend_Service_Technorati.xml

-- Simone

(crossposted to general/webservice mailing list)


[fw-general] Old (?) TODO files in core distribution

2007-12-30 Thread Simone Carletti

Hi list,

I was reading the code of Zend_Mail and Zend_Json for the manual translation
and I discovered the following files:

library/Zend/Mail/TODO.txt -- ./. (nothing more)
library/Zend/Json/TODO.txt -- * Unit tests

Json/TODO.txt was added by thomas on r3576
http://framework.zend.com/fisheye/changelog/Zend_Framework/trunk/library/Zend/Json?cs=3576
Unit tests for Zend_Json have been added by stas on r5927
http://framework.zend.com/fisheye/changelog/Zend_Framework/trunk/tests/Zend/Json?cs=5927
and, probably, the TODO file has never been removed.

I think both files can be removed. :)
-- 
View this message in context: 
http://www.nabble.com/Old-%28-%29-TODO-files-in-core-distribution-tp14551105s16154p14551105.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Old (?) TODO files in core distribution

2007-12-30 Thread Simone Carletti

Sorry Thomas, 

I probably didn't check a parent revision.
Anyway, I assume it doesn't change the meaning behind my post. :) In fact,
it gives it more sense. ;)


Thomas Weidner-2 wrote:
 
 Json/TODO.txt was added by thomas on r3576
 http://framework.zend.com/fisheye/changelog/Zend_Framework/trunk/library/Zend/Json?cs=3576
 
 Wrong assumption.
 
 The file was added by mike with rev. 6.
 Revision 3576 was a coding standard issue where windows line feeds were 
 changed to unix by about 1/2 of the whole framework.
 
 Greetings
 Thomas
 I18N Team Leader 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Old-%28-%29-TODO-files-in-core-distribution-tp14551105s16154p14551627.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] RE: [fw-core] RE: [fw-general] Reducing the number of loaded exception files

2007-12-30 Thread Simone Carletti

Sorry to resurrect this old post, 
but I need a final feedback.

I'm sure I posted this request before, but the email was probably refused by
Nabble.

Wil, do you confirm the last (and definitive for now) suggestion is to hold
on, waiting for more performance tests?
If so, I would suggest to post a comment or add a note to current wiki page
http://framework.zend.com/wiki/display/ZFDEV/Lazy-loading+Exceptions

-- Simone


wllm wrote:
 
 They will be published on the framework site in a prominent location.
 Whether that is on the wiki or somewhere else has yet TBD. As for the
 timing, the scope, and the format of the tests/results, we are shooting
 for sometime within a few weeks after the 1.5 release, the scope would
 be broad and deep enough to be useful for optimization in both ZF and
 most applications (although we may or may not run other frameworks
 through the same benchmarks for comparison or tests against every
 component in ZF), and the format of the tests/results is entirely TBD
 (you can rest assured they will be designed to reveal any areas for
 improvement; we're not looking for transparency- not marketing
 materials- here). In addition, we hope to establish a reusable set of
 benchmarks and tests; everyone should be aware, however, that results
 can't be directly compared across different environments except WRT well
 defined variables such as whether an opcode cache was used or not. If
 anyone has any suggestion for specific scenarios or areas we should be
 testing, please post them to fw-general.
 
 Also, I know that it has been mentioned before, but it's worth
 repeating. On the framework team we seek to strike the best balance
 between performance and ease of development and maintainability. If all
 applications were designed with only performance in mind, we would live
 in a very different technical world with far fewer innovations and a
 much longer time-to-market across almost all technical domains- web
 development would certainly be no exception. I believe most
 battle-scarred developers and architects would tell you that the most
 effective performance optimizations happen below the application
 programming level (witness all the query optimization and rewriting that
 happens in Oracle, for example; I can tell you that very few people know
 how to or invest the time to implement these optimization in their own
 queries and schemas) and that you reach the law of diminishing returns
 very quickly with the cost of developer time vs. additional hardware
 (hosting cost, etc.) nowadays. AFAIK, opcode caches are a perfect
 example of developer-transparent performance optimization. I hope that
 gives you some insight in to how we prioritize work for ZF; for Zend
 Framework it means that we will be busy in the next month delivering a
 lot of the features that our users have been asking for, and performance
 improvements that are exposed by benchmarks may have to wait for
 subsequent mini or minor releases after 1.5. That said, if anyone in the
 community has a great performance improvement that they can back up with
 benchmarks- especially if it is transparent to the developer- there is
 still time to get it in to 1.5! :)
 
 ,Wil
 
 -Original Message-
 From: Eric Coleman [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 15, 2007 10:00 PM
 To: Wil Sinclair
 Cc: Philip G; fw-general; fw-core
 Subject: Re: [fw-core] RE: [fw-general] Reducing the number of loaded
 exception files
 
 When and where will these results be published?
 
 Regards,
 Eric
 
 On Dec 15, 2007, at 9:58 PM, Wil Sinclair wrote:
 
  Hey guys, sorry I didn't get a chance to reply to this thread until
  now.
  While I might not be an expert on performance tuning in PHP, I
 believe
  there are a few best practices that apply to all languages and
  frameworks out there. Foremost among these is never increase code
  complexity before having reasonable benchmarks to give you a decent
  'before' and 'after' picture of the optimization. I realize that PHP
  is
  somewhat unique in the benefit it can realize from an opcode cache,
  so I
  would expect these figures for both opcode-cached and -uncached
  installations. I also realize the extent of the complexity that
  might be
  introduced- in fact, we might be able to simplify the lazy-loading
 of
  exception classes further by introducing a factory method- possibly
 in
  the Zend_Loader class- which doesn't make for a whole hell of a lot
 of
  complexity. That said, it does add SOME complexity to the framework,
  since we either have to include the exception class in more places
  than
  we had to previously or we would have to prescribe a different
  method of
  exception class loading than the most basic suggested usage at the
  language level, and is therefore subject to the rule of thumb I
  mention
  above.
  Fortunately, we plan to do a performance audit of framework in the
 1.5
  timeframe that will create exactly these benchmarks to test against
  going forward. 

[fw-general] 'Who is responsibile for each component' wiki page

2007-12-30 Thread Simone Carletti

http://framework.zend.com/wiki/x/HCs

Is this page updated?
Is it better to rely on that page, on the excel file
http://spreadsheets.google.com/pub?key=pMy3PL3bQqZqlteLWg43HDg or any other
resource to find a component assignee? :)
-- 
View this message in context: 
http://www.nabble.com/%27Who-is-responsibile-for-each-component%27-wiki-page-tp14552008s16154p14552008.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Mail Bug?

2007-12-28 Thread Simone Carletti

It would be helpful if you post here a sample code you use for sending
emails.
A real example would be wonderful. :)

-- Simone


Jacky Chen-2 wrote:
 
 Hi all,
 
 I send mail with Zend_Mail,and i received the mail body as following.What
 is
 the problem?
 
 =E5=96=84=E8=B5=84=E6=96=99?=
 Content-Type: multipart/alternative; charset=utf8;
  boundary==_a63f032d182e04daf6311fe5329bef65
 MIME-Version: 1.0
 
 --=_a63f032d182e04daf6311fe5329bef65
 Content-Type: text/plain; charset=utf8
 Content-Transfer-Encoding: quoted-printable
 
 =E4=BA=B2=E7=88=B1=E7=9A=84=E7=94=A8=E6=88=B7=E6=82=A8=E5=A5=BD=EF=BC=81p=
=E6=AC=A2=E8=BF=8E=E5=8A=A0=E5=85=A5HeySpace=E5=A4=A7=E5=AE=B6=E5=BA=AD=
 =EF=BC=8C=E8=AF=B7=E7=82=B9=E5=87=BB=E4=BB=A5=E4=B8=8B=E9=93=BE=E6=8E=A5=
 =E5=AE=8C=E5=96=84=E6=82=A8=E7=9A=84=E8=B5=84=E6=96=99=EF=BC=9Abr /
 /passport/register/email/jacky.hf%40gmail.com/active/ec=
 61998014a83f48a84e0b3dbafeb01f /p
 
 --=_a63f032d182e04daf6311fe5329bef65
 Content-Type: text/html; charset=utf8
 Content-Transfer-Encoding: quoted-printable
 
 =E4=BA=B2=E7=88=B1=E7=9A=84=E7=94=A8=E6=88=B7=E6=82=A8=E5=A5=BD=EF=BC=81p=
=E6=AC=A2=E8=BF=8E=E5=8A=A0=E5=85=A5HeySpace=E5=A4=A7=E5=AE=B6=E5=BA=AD=
 =EF=BC=8C=E8=AF=B7=E7=82=B9=E5=87=BB=E4=BB=A5=E4=B8=8B=E9=93=BE=E6=8E=A5=
 =E5=AE=8C=E5=96=84=E6=82=A8=E7=9A=84=E8=B5=84=E6=96=99=EF=BC=9Abr /
 /passport/register/email/jacky.hf%40gmail.com/active/ec=
 61998014a83f48a84e0b3dbafeb01f /p
 
 --=_a63f032d182e04daf6311fe5329bef65--
 
 

-- 
View this message in context: 
http://www.nabble.com/Zend_Mail-Bug--tp14521843s16154p14532427.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] SVN server has problem?

2007-12-24 Thread Simone Carletti

Hello Jason,

I renamed the file in my local working copy and it seems remote repository
made a little confusion understanding TestBlogPostTagsError is different
than TestBlogpostTagsError.

I fixed the issue in revisions 
http://framework.zend.com/fisheye/changelog/Zend_Framework/?cs=7245 and
http://framework.zend.com/fisheye/changelog/Zend_Framework/?cs=7244 , 
please let me know if you notice any additional problem.

If so, please delete _files folder from your working copy and run svn
update.

-- Simone



qry wrote:
 
 It is ok now.
 
 Don't know what happened
 
 Jason.
 
 Jason Qi [EMAIL PROTECTED] wrote: Hi All,
 
 It said this file
 
 E:\ZendFramework-trunk\incubator\tests\Zend\Service\Technorati\_files\TestBlogPostTagsError.xml
 
 was not under version control.
 
 Even I deleted all files under \_files\ and did update, did not work.
 Cleanup stopped and gave error message that it was not under version
 control 
 
 If it is not under version control, where does it come from ? I am sure I
 deleted the whole folder of \_files.
 
 Anyone know what the problem is?
 
 Thanks and Happy Holiday!
 
 Jason.
 
 
 
 
 
 -
 Be a better friend, newshound, and  know-it-all with Yahoo! Mobile.  Try
 it now.
 

 -
 Looking for last minute shopping deals?  Find them fast with Yahoo!
 Search.
 

-- 
View this message in context: 
http://www.nabble.com/SVN-server-has-problem--tp14482787s16154p14488406.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] List Problems?

2007-12-18 Thread Simone Carletti

My first message, yesterday, about translation pages took more than 4 hours
to be published.
I post directly from a nabble account and there was a message telling me the
message has been refused by the list.

Then, it magically appeared.

Additionally, I'm actually noticing a really annoying centered text
alignment of the mailing list.
Someone else has the same problem? :|

-- Simone


wllm wrote:
 
 Some of you have been reporting undelivered mail in fw-i18n and now
 fw-general. Please let me know off-list if you're having a problem so we
 can track it down. Also, if you have an urgent message, I'd be happy to
 post it for you. :)
 
 ,Wil
 
 

-- 
View this message in context: 
http://www.nabble.com/List-Problems--tp14393105s16154p14407009.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] List Problems?

2007-12-18 Thread Simone Carletti

It seems someone else is having the same 'text is centered' problem.
http://www.nabble.com/Re-3A--fw-mvc--Layout-on-Nabble.com-to14407577s16154.html

-- Simone



Federico Cargnelutti wrote:
 
 Same here. An email I sent today to the zf-general/zf-core list was never
 delivered. I also see the centred text and a message I posted yesterday
 using the site was accepted a couple of hours later. 
 
 
 Simone Carletti wrote:
 
 My first message, yesterday, about translation pages took more than 4
 hours to be published.
 I post directly from a nabble account and there was a message telling me
 the message has been refused by the list.
 
 Then, it magically appeared.
 
 Additionally, I'm actually noticing a really annoying centered text
 alignment of the mailing list.
 Someone else has the same problem? :|
 
 -- Simone
 
 
 wllm wrote:
 
 Some of you have been reporting undelivered mail in fw-i18n and now
 fw-general. Please let me know off-list if you're having a problem so we
 can track it down. Also, if you have an urgent message, I'd be happy to
 post it for you. :)
 
 ,Wil
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/List-Problems--tp14393105s16154p14407644.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Project Teams and Separate Mailing Lists. . .

2007-12-17 Thread Simone Carletti

Hi Wil,

I agree that too many lists could create confusion.
However, merging all lists into a single one might create more confusion
than a list for each team.

I would personally suggest at least two lists, one for end users topics and
one focused on development of the framework itself... as a starting point.

Talking about project teams and wiki... I saw you just moved the most part
of pages under /archive group that is write protected.
It means, for instance, we cannot edit any team or translation page, such as
http://framework.zend.com/wiki/display/ARCHIVE/Italian+%28Italiano%29

Is there any wiki reorganization in action?

-- Simone


wllm wrote:
 
 Does anybody find the concept of project teams (as laid out here:
 http://framework.zend.com/wiki/display/ZFDEV/Project+Teams) worthwhile?
 That is to say, not just occasionally useful, but actually worth the
 extra effort to maintain and the additional complexity that they add to
 the overall project? Most of the project team pages on the wiki are
 woefully out of date at this point, and I happen to be very skeptical
 about any process or structure that isn't part of any critical workflow
 for a project- they tend to get abandoned as soon as higher-priority and
 more immediate tasks come up- as these seem to have been.
 Also- separate mailing lists- same question. Only 3 lists get more than
 the occasional mail: general, mvc, and db. I'd venture to guess that
 most of us subscribe to all 3 of these, and people tend to cross-post or
 post specific questions in general if they want to make sure everyone
 reads them anyways. Our traffic across all mailing lists adds up to
 about 5-10 mails per day, which IMO is a nice lively- but not
 overwhelming- mail rate on a list. If you think that some of these
 separate lists are useful, why and which ones? Please keep in mind the
 potential confusion of those new to framework who have a question and
 may not know which place is best to post it or that some of these lists
 are not widely read.
 
 Thanks for any feedback.
 ,Wil
 
 

-- 
View this message in context: 
http://www.nabble.com/Project-Teams-and-Separate-Mailing-Lists.-.-.-tp14360219s16154p14370312.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Project Teams and Separate Mailing Lists. . .

2007-12-17 Thread Simone Carletti
@ Thomas
My best congratulations to you and all the German translation team!
You've done an excellent job.

@ Wil
Your proposal sounds good.
If you don't want to restore a full translation project directory I would
suggest to provide at least a page for each translation with a common header
as you suggested before and a centralized page including the basic
information about how to start and contribute to a translation.

I probably would never started this Italian adventure without this
information and I guess other users would abandon the idea without a clear
and friendly page about how to get involved into a localized translation.

-- Simone


On Dec 17, 2007 9:56 PM, Wil Sinclair [EMAIL PROTECTED] wrote:

 OK, then it seems reasonable to leave that up to the discretion of the
 lead. Teams could appear at the top of the custom content and look
 pretty much exactly the same as they look on most of the pages now. I
 think if we attempt to push this concept for all translations, we'll end
 up out of date for the less active ones.
 BTW, Thomas, the German translation is a perfect example of a lead
 taking initiative and really getting the job done. ;) 100%- that's
 awesome!
 Unless you guys need them in the next few hours, I'll move them back in
 to the development tree as proposed after I get home tonight.

 ,Wil

  -Original Message-
  From: Thomas Weidner [mailto:[EMAIL PROTECTED]
  Sent: Monday, December 17, 2007 12:47 PM
  To: Wil Sinclair; Simone Carletti
  Cc: fw-general@lists.zend.com
  Subject: Re: [fw-general] Project Teams and Separate Mailing Lists. .
 .
 
  As team leader of the german development team I found it very handy
  that
  have a status for the translation members.
  Which part has to be translated, which was already proof-read, to have
  a
  list of members, who is working on what and so on.
 
  Now that we have 100% translated for german I don't need it anymore,
  but I
  think other language leads could find it very handy.
  The manual status page is sometimes not enough information.
 
  My 2 cents.
 
  Thomas
  I18N and German Team Lead
 
 
  - Original Message -
  From: Wil Sinclair [EMAIL PROTECTED]
  To: Simone Carletti [EMAIL PROTECTED]
  Cc: fw-general@lists.zend.com
  Sent: Monday, December 17, 2007 8:52 PM
  Subject: RE: [fw-general] Project Teams and Separate Mailing Lists. .
 .
 
 
  That seems reasonable to me. I don't see any issue with maintaining
  translation pages in development, but we should make sure we aren't
  setting ourselves up for getting immediately out of date. As far as I
  can tell, the areas that go out of date very quickly include the
  current
  status of the project, names of people working on the project, etc.
 And
  even these wouldn't be an issue if there is a lead maintaining the
  page,
  as with the Italian and French pages.
 
  So how about this? We can create a standard header for each
 translation
  so that all the information that is the same across the translations
  will appear in the same place, and custom content can go beneath. If
 no
  translation lead wants to take ownership of the page, the page will
  only
  contain that header, which would include stuff like the language name,
  a
  link to the docs on the wiki, and maybe a note that this translation
 is
  available for someone to actively lead. All of these pages can go
 under
  a new 'translations' page under the documentation guide
 
 (http://framework.zend.com/wiki/display/ZFDEV/Zend+Framework+Documentat
  i
  on+Guide). If we find that a translation page has gotten out of date,
  we
  can archive the custom content and leave the header.
 
  Do you find the concept of a 'translation team' useful? If so, what
  does
  it bring us? The other project team pages seemed to bring little value
  and mostly served to list the names of people who said they would
 help,
  but were busy when it came to the actual 'helping' part. J
 
 
 
  ,Wil
 
 
 
  From: Simone Carletti [mailto:[EMAIL PROTECTED]
  Sent: Monday, December 17, 2007 10:49 AM
  To: Wil Sinclair
  Cc: fw-general@lists.zend.com
  Subject: Re: [fw-general] Project Teams and Separate Mailing Lists. .
 .
 
 
 
  Because translation activity is strictly part of Zend Framework
  development and improvements, and follows an internal workflow,
  including an SVN powered storage, I would suggest to think about a
  translation section under development area.
 
  Additionally, I remember I didn't provide much credit to User Space
  section when I first came across ZF framework, many months ago. I
  jumped
  directly to development section.
  I had a look to user area just a few weeks later, when I started to
 get
  involved into ZF development.
 
  This is why I think the translation section could find a better place
  under the development area.
  If you feel more comfortable it is possible to start with a small set
  of
  pages to reduce the number of outdated pages, including howto
  guidelines
  and other helpful

Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-12 Thread Simone Carletti

What do you mean with this in 'why is Zend_Feed not doing this'?



Waigani wrote:
 
 Yeah, checked both those things, no luck. I've a typo in my last message -
 I meant to say 'why is Zend_Feed not doing this'? Here is my full function
 (there must be something missing???):
 
 
 function sendAction() {
   
   // prepare an array that our feed is based on
   $feedArray = array ('title' = 'Test Feed 123',
   'link' = 'test.com',
//'lastUpdate' = (0 == $posts-count() ? date('c', 
 strtotime()) :
 date('c')),
   'charset' = 'utf-8',
   'description' = 'First test feed',
   'author' = 'Jesse Meek', 'email' = '[EMAIL PROTECTED]',
   'copyright' = 'University, all rights reserved',
   'generator' = 'Zend Framework Zend_Feed',
   'language' = 'en',
   'entries' = array (
   array( 'title' = 'Item One', 
   'link' = 'test.com, 
   'description' = 'this is a test feed', //'lastUpdate' =
 strtotime($post-updated),
   'content' = 'Hello, this is the content') 
   ) 
   );
   
   // create feed document
   $feed = Zend_Feed::importArray ( $feedArray, 'rss' );
   $feed-send();
   
   $this-_helper-viewRenderer-setNoRender();
   
   }
 
 
 
 
 Simone Carletti wrote:
 
 Be sure you do not add any ? at the end of php-only files and you do not
 print any output before the XML.
 
 
 Waigani wrote:
 
 The browser prompts me to download a file which has the same name as the
 action but no xml extension. When I add the xml extension and delete the
 white space before ?xml … the browser then reads the file as expected.
 How do I get Zend_Feed not doing this? Is there something I've missed?
 
 Thanks,
 Jess
 
 
 
 Simone Carletti wrote:
 
 Be sure you set the correct MIME Response Type to application/xml.
 
 
 Waigani wrote:
 
 Yay it works! Thank you. But now the browser does not recognise the
 xml. I'm probably missing something obvious as I'm new to feeds:
 
   ?xml version=1.0 encoding=utf-8?
 rss xmlns:content=http://purl.org/rss/1.0/modules/content/;
 version=2.0
   channel
 title![CDATA[Test Feed]]/title
 linktest.com/link
 description![CDATA[First test feed]]/description
 pubDateMon, 10 Dec 2007 21:28:44 +/pubDate
 managingEditor[EMAIL PROTECTED] (Jesse Meek)/managingEditor
 copyrightUniversity, all rights reserved/copyright
 generatorZend Framework Zend_Feed/generator
 languageen/language
 docshttp://blogs.law.harvard.edu/tech/rss/docs
 item
   title![CDATA[Item One]]/title
   linktest.com/link
   description![CDATA[this is a test feed]]/description
   content:encoded![CDATA[Hello, this is the
 content]]/content:encoded
   pubDateMon, 10 Dec 2007 21:28:44 +/pubDate
 /item
   /channel
 /rss
 
 
 
 
 Simone Carletti wrote:
 
 Hi Waigani,
 
 entries must be an array of entries and each entry is an array
 itself.
 This is the right version of your code, you are missing one array
 statement.
 
  //Feed Array
 $feedArray = array(
 'title' = 'Test Feed',
 'link' = 'test.com',
 //'lastUpdate' = (0 == $posts-count() ? date('c',
 strtotime()) : date('c')),
 'charset' = 'utf-8',
 'description' = 'First test feed',
 'author' = 'Jesse',
 'email' = '[EMAIL PROTECTED]',
 'copyright' = 'University, all rights reserved',
 'generator' = 'Zend Framework Zend_Feed',
 'language' = 'en',
 'entries' = array(
 array(
 'title' = 'Item One',
 'link' = 'test.com',
 'description' = 'this is a test feed',
 'lastUpdate' = strtotime($post-updated),
 'content' = 'Hello, this is the content',
 )
 )
 );
  
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3A-exception-%27Zend_Feed_Builder_Exception%27-with-message-%27title-key-of-source-property-is-missing%27-tp14205926s16154p14291020.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-11 Thread Simone Carletti

Be sure you set the correct MIME Response Type to application/xml.


Waigani wrote:
 
 Yay it works! Thank you. But now the browser does not recognise the xml.
 I'm probably missing something obvious as I'm new to feeds:
 
   ?xml version=1.0 encoding=utf-8?
 rss xmlns:content=http://purl.org/rss/1.0/modules/content/;
 version=2.0
   channel
 title![CDATA[Test Feed]]/title
 linktest.com/link
 description![CDATA[First test feed]]/description
 pubDateMon, 10 Dec 2007 21:28:44 +/pubDate
 managingEditor[EMAIL PROTECTED] (Jesse Meek)/managingEditor
 copyrightUniversity, all rights reserved/copyright
 generatorZend Framework Zend_Feed/generator
 languageen/language
 docshttp://blogs.law.harvard.edu/tech/rss/docs
 item
   title![CDATA[Item One]]/title
   linktest.com/link
   description![CDATA[this is a test feed]]/description
   content:encoded![CDATA[Hello, this is the
 content]]/content:encoded
   pubDateMon, 10 Dec 2007 21:28:44 +/pubDate
 /item
   /channel
 /rss
 
 
 
 
 Simone Carletti wrote:
 
 Hi Waigani,
 
 entries must be an array of entries and each entry is an array itself.
 This is the right version of your code, you are missing one array
 statement.
 
  //Feed Array
 $feedArray = array(
 'title' = 'Test Feed',
 'link' = 'test.com',
 //'lastUpdate' = (0 == $posts-count() ? date('c',
 strtotime()) : date('c')),
 'charset' = 'utf-8',
 'description' = 'First test feed',
 'author' = 'Jesse',
 'email' = '[EMAIL PROTECTED]',
 'copyright' = 'University, all rights reserved',
 'generator' = 'Zend Framework Zend_Feed',
 'language' = 'en',
 'entries' = array(
 array(
 'title' = 'Item One',
 'link' = 'test.com',
 'description' = 'this is a test feed',
 'lastUpdate' = strtotime($post-updated),
 'content' = 'Hello, this is the content',
 )
 )
 );
  
 
 
 Waigani wrote:
 
 Hi,
 
 I'm trying to import an array as a feed and get the following error:
 
 'Zend_Feed_Builder_Exception' with message 'title key of source property
 is missing' in …/Zend/Feed/Builder.php:368
 
 Here is the code:
 
  //Feed Array
 $feedArray = array(
 'title' = 'Test Feed',
 'link' = 'test.com',
 //'lastUpdate' = (0 == $posts-count() ? date('c', 
 strtotime()) :
 date('c')),
 'charset' = 'utf-8',
 'description' = 'First test feed',
 'author' = 'Jesse',
 'email' = '[EMAIL PROTECTED]',
 'copyright' = 'University, all rights reserved',
 'generator' = 'Zend Framework Zend_Feed',
 'language' = 'en',
 'entries' = array(
 'title' = 'Item One',
 'link' = 'test.com',
 'description' = 'this is a test feed',
 'lastUpdate' = strtotime($post-updated),
 'content' = 'Hello, this is the content',
 )
 );
 
 // create feed document
 $feed = Zend_Feed::importArray($feedArray, 'rss');
 $feed-send();
 
 Here are the lines around 368 in …/Zend/Feed/Builder.php:
 
 if (isset($row['source'])) {
 $mandatories = array('title', 'url');
 foreach ($mandatories as $mandatory) {
 if (!isset($row['source'][$mandatory])) {
 throw new
 Zend_Feed_Builder_Exception($mandatory key of source property is
 missing);
 }
 }
 $entry-setSource($row['source']['title'],
 $row['source']['url']);
 }
 
 
 Now I've tried it with and without the 'source' array in the 'entries'
 array. I've even tried cutting and pasting what is in the manual:
 http://framework.zend.com/manual/en/zend.feed.importing.html
 
 All produce exactly the same error. I'm using 1.03 libraries. Whats
 going on?!?
 
 Thanks,
 Jess
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3A-exception-%27Zend_Feed_Builder_Exception%27-with-message-%27title-key-of-source-property-is-missing%27-tp14205926s16154p14269718.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-11 Thread Simone Carletti

Be sure you do not add any ? at the end of php-only files and you do not
print any output before the XML.


Waigani wrote:
 
 The browser prompts me to download a file which has the same name as the
 action but no xml extension. When I add the xml extension and delete the
 white space before ?xml … the browser then reads the file as expected.
 How do I get Zend_Feed not doing this? Is there something I've missed?
 
 Thanks,
 Jess
 
 
 
 Simone Carletti wrote:
 
 Be sure you set the correct MIME Response Type to application/xml.
 
 
 Waigani wrote:
 
 Yay it works! Thank you. But now the browser does not recognise the xml.
 I'm probably missing something obvious as I'm new to feeds:
 
 ?xml version=1.0 encoding=utf-8?
 rss xmlns:content=http://purl.org/rss/1.0/modules/content/;
 version=2.0
   channel
 title![CDATA[Test Feed]]/title
 linktest.com/link
 description![CDATA[First test feed]]/description
 pubDateMon, 10 Dec 2007 21:28:44 +/pubDate
 managingEditor[EMAIL PROTECTED] (Jesse Meek)/managingEditor
 copyrightUniversity, all rights reserved/copyright
 generatorZend Framework Zend_Feed/generator
 languageen/language
 docshttp://blogs.law.harvard.edu/tech/rss/docs
 item
   title![CDATA[Item One]]/title
   linktest.com/link
   description![CDATA[this is a test feed]]/description
   content:encoded![CDATA[Hello, this is the
 content]]/content:encoded
   pubDateMon, 10 Dec 2007 21:28:44 +/pubDate
 /item
   /channel
 /rss
 
 
 
 
 Simone Carletti wrote:
 
 Hi Waigani,
 
 entries must be an array of entries and each entry is an array itself.
 This is the right version of your code, you are missing one array
 statement.
 
  //Feed Array
 $feedArray = array(
 'title' = 'Test Feed',
 'link' = 'test.com',
 //'lastUpdate' = (0 == $posts-count() ? date('c',
 strtotime()) : date('c')),
 'charset' = 'utf-8',
 'description' = 'First test feed',
 'author' = 'Jesse',
 'email' = '[EMAIL PROTECTED]',
 'copyright' = 'University, all rights reserved',
 'generator' = 'Zend Framework Zend_Feed',
 'language' = 'en',
 'entries' = array(
 array(
 'title' = 'Item One',
 'link' = 'test.com',
 'description' = 'this is a test feed',
 'lastUpdate' = strtotime($post-updated),
 'content' = 'Hello, this is the content',
 )
 )
 );
  
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3A-exception-%27Zend_Feed_Builder_Exception%27-with-message-%27title-key-of-source-property-is-missing%27-tp14205926s16154p14283972.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-10 Thread Simone Carletti

Hi Waigani,

entries must be an array of entries and each entry is an array itself.
This is the right version of your code, you are missing one array statement.

 //Feed Array
$feedArray = array(
'title' = 'Test Feed',
'link' = 'test.com',
//'lastUpdate' = (0 == $posts-count() ? date('c',
strtotime()) : date('c')),
'charset' = 'utf-8',
'description' = 'First test feed',
'author' = 'Jesse',
'email' = '[EMAIL PROTECTED]',
'copyright' = 'University, all rights reserved',
'generator' = 'Zend Framework Zend_Feed',
'language' = 'en',
'entries' = array(
array(
'title' = 'Item One',
'link' = 'test.com',
'description' = 'this is a test feed',
'lastUpdate' = strtotime($post-updated),
'content' = 'Hello, this is the content',
)
)
);
 


Waigani wrote:
 
 Hi,
 
 I'm trying to import an array as a feed and get the following error:
 
 'Zend_Feed_Builder_Exception' with message 'title key of source property
 is missing' in …/Zend/Feed/Builder.php:368
 
 Here is the code:
 
  //Feed Array
   $feedArray = array(
   'title' = 'Test Feed',
   'link' = 'test.com',
   //'lastUpdate' = (0 == $posts-count() ? date('c', 
 strtotime()) :
 date('c')),
   'charset' = 'utf-8',
   'description' = 'First test feed',
   'author' = 'Jesse',
   'email' = '[EMAIL PROTECTED]',
   'copyright' = 'University, all rights reserved',
   'generator' = 'Zend Framework Zend_Feed',
   'language' = 'en',
   'entries' = array(
   'title' = 'Item One',
   'link' = 'test.com',
   'description' = 'this is a test feed',
   'lastUpdate' = strtotime($post-updated),
   'content' = 'Hello, this is the content',
   )
   );
 
   // create feed document
   $feed = Zend_Feed::importArray($feedArray, 'rss');
   $feed-send();
 
 Here are the lines around 368 in …/Zend/Feed/Builder.php:
 
 if (isset($row['source'])) {
 $mandatories = array('title', 'url');
 foreach ($mandatories as $mandatory) {
 if (!isset($row['source'][$mandatory])) {
 throw new Zend_Feed_Builder_Exception($mandatory
 key of source property is missing);
 }
 }
 $entry-setSource($row['source']['title'],
 $row['source']['url']);
 }
 
 
 Now I've tried it with and without the 'source' array in the 'entries'
 array. I've even tried cutting and pasting what is in the manual:
 http://framework.zend.com/manual/en/zend.feed.importing.html
 
 All produce exactly the same error. I'm using 1.03 libraries. Whats going
 on?!?
 
 Thanks,
 Jess
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3A-exception-%27Zend_Feed_Builder_Exception%27-with-message-%27title-key-of-source-property-is-missing%27-tp14205926s16154p14250933.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] ZF Jira/FishEye error

2007-11-13 Thread Simone Carletti
Hi Darby,
I confirm it works for me now.

Thanks for the quick fix, Wil.

-- Simone

On Nov 13, 2007 8:03 PM, Darby Felton [EMAIL PROTECTED] wrote:

 Hi Wil,

 Thanks, that seems to have fixed it for me. :) Maybe others can confirm?

 Best regards,
 Darby

 Wil Sinclair wrote:
  I have seen those errors come up sporadically in the JIRA logs. This
  simply indicates that JIRA timed out while waiting for data on the
  fisheye API connection. The timeout was set to 1 sec, so I just bumped
  it up to 10 sec to reduce the frequency this error. Please let me know
  if the fisheye tab comes up slowly after this change, but I doubt it
  would take more than a few seconds in the worst case.
  I suspect the reason why this happens in the first place is that fisheye
  occasionally experiences CPU spikes that slow down all threads in this
  process. I haven't had a chance to hook up a profiler to fisheye yet to
  troubleshoot. I'll do this as soon as I have some time to get to the
  real solution.
 
  ,Wil
 
  -Original Message-
  From: Darby Felton [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, November 13, 2007 7:55 AM
  To: Simone Carletti
  Cc: fw-general@lists.zend.com; Wil Sinclair
  Subject: Re: [fw-general] ZF Jira/FishEye error
 
  Hi Simone,
 
  I confirm the problem from my end. Maybe Wil can help us figure out
  what's happening?
 
  Best regards,
  Darby
 
  Simone Carletti wrote:
  When I try to open FishEye tab for a ticket I get a Java exception.
  See for example
 
  http://framework.zend.com/issues/browse/ZF-507?page=com.cenqua.fisheye.j
  ira:fisheye-tabpanel
  Error communicating with FishEye: java.net.SocketTimeoutException:
  Read
  timed out
 
  Anyone else could confirm the problem?
 



[fw-general] Broken link in Zend Framework Proposal Process

2007-11-11 Thread Simone Carletti

Hi list,

in http://framework.zend.com/wiki/display/ZFPROP/Home there's a broken link
in the section

Please add the milestones section to your proposals.
See example here.

See example here points to a deleted page
(http://framework.zend.com/wiki/display/ZFPROP/Sample+Zend_Magic+Proposal+-+John+Doe)
 
-- 
View this message in context: 
http://www.nabble.com/Broken-link-in-Zend-Framework-Proposal-Process-tf4785878s16154.html#a13691494
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] Broken links in Zend Framework Proposal Process Detail

2007-09-29 Thread Simone Carletti

Hi list,

there are a few broken links in
http://framework.zend.com/wiki/display/ZFPROP/Zend+Framework+Proposal+Process+Detail

1. section Proposal Review, around repository (see Zend Framework
Subversion Standards).
- Link should point to
http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards

2. section Incubator components, around according to the Documentation
Standard and Zend Framework Testing Standards.
- Links should point to
http://framework.zend.com/wiki/display/ZFDEV/Documentation+Standard and
http://framework.zend.com/wiki/display/ZFDEV/Testing+Standards

I've a ZF Wiki account and it seems I can update the page, but because I'm
not sure about destination paths I decided to post here the issue.

-- Simone Carletti
-- 
View this message in context: 
http://www.nabble.com/Broken-links-in-Zend-Framework-Proposal-Process-Detail-tf4539532s16154.html#a12955849
Sent from the Zend Framework mailing list archive at Nabble.com.