2011年1月4日星期二

[fw-db] Re: Zend_Db and Postgres sequence - lots of queries

Thank you so much. You were very clear!

2010/12/31 BillKarwin [via Zend Framework Community] <
ml-node+3169097-130704122-206955@n4.nabble.com<ml-node%2B3169097-130704122-206955@n4.nabble.com>
>

>
> On Dec 30, 2010, at 2:49 AM, Vincio wrote:
>
> > I saw using Zend_Db_Profiler_Firebug that Zend does a lot of queries
> > just to
> > know the sequenceid, I guess.
>
> It's not related to the sequenceid. This query is in the Db Adapter's
> describeTable() method, querying metadata about your table. This is
> run typically during initialization of any of your classes that extend
> Zend_Db_Table_Abstract. That is, when you do:
>
> $mytable = new MyTable();
>
> The base Table class tries to discover metadata about the database
> table that your MyTable class is defined for. The benefit of this is
> that you *don't* have to write a bunch of tedious XML config files
> before you can get your tables to run, as you would have to in many
> other types of ORM products.
>
> > I thought that this could become to be a big problem. For example if
> > I got
> > about 200 hundred queries more than half are queries like that one.
>
> Naturally, you want to create object instances frequently in your
> application. Generating that big query against system views 100 times
> per request seems kind of expensive. Especially since the table
> structure is not likely to change during that time. There is a
> solution! Read on...
>
> > Is it normal? Is there a way to limit these queries?
>
> Yes, you can assign a Zend_Cache object to keep the metadata alive and
> reuse it for multiple instances of your Table class(es), even across
> multiple PHP requests. It doesn't define a metadata cache by default
> because you have to choose what cache implementation you want to use.
> For details about using metadata caching, read:
>
>
> http://framework.zend.com/manual/en/zend.db.table.html#zend.db.table.metadata.caching
>
> Regards,
> Bill Karwin
>
>
> ------------------------------
> View message @
> http://zend-framework-community.634137.n4.nabble.com/Zend-Db-and-Postgres-sequence-lots-of-queries-tp3168142p3169097.html
> To unsubscribe from Zend_Db and Postgres sequence - lots of queries, click
> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3168142&code=dmluY2lvQGdtYWlsLmNvbXwzMTY4MTQyfC0yMDA1NzQxOTg3>.
>
>

--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-Db-and-Postgres-sequence-lots-of-queries-tp3168142p3173520.html
Sent from the Zend DB mailing list archive at Nabble.com.

2011年1月3日星期一

Re: Re: [fw-webservices] Zend_Service_Chargify proposal

-- Dan Bowen <dan@crucialwebstudio.com> wrote
(on Monday, 03 January 2011, 10:15 AM -0600):
> At first glance it looks like Zend_Payment is meant to be an adapter
> to the various gateways whereas Chargify sits between your app and
> the payment gateway. I'll get in touch with the Varien folks for
> their thoughts on a Chargify adapter. I'd definitely be willing to
> help.
>
> I have a little catching up to do on the state/direction of ZF2.
> Other than PHP 5.3 are there any other requirements or conventions I
> should be aware of, especially with regards to web services?

Make sure you read the ZF2 Git Guide (http://bit.ly/zf2gitguide). CS is
mostly the same, with the following changes:

* Non-public members no longer require a leading underscore
* Interfaces should be well-named, as either an adjective or noun, and
should *not* contain the word "Interface".
* Abstract classes should be prefixed with the word "Abstract".
* All components should be namespaced.

With web services, many have not yet been converted to ZF2 (those which
have not prior to beta will be removed!!!!). The conventions are
basically the same as before, except that we're no longer using a static
HTTP client across all service instances.


> On 1:59 PM, Matthew Weier O'Phinney wrote:
> >-- Dan Bowen<dan@crucialwebstudio.com> wrote
> >(on Thursday, 30 December 2010, 07:36 PM -0600):
> >>I just submitted a proposal for Zend_Service_Chargify and wanted to
> >>get some feedback from the community.
> >>
> >>http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_Chargify+-+Dan+Bowen
> >>
> >>Is this a component ZF users would be interested in? Does the
> >>proposal provide enough detail? Please let me know what you think.
> >>
> >>This is my fist official contribution to open source. I'm really
> >>looking forward to making it a successful one.
> >This looks quite interesting. :)
> >
> >A couple of notes:
> >
> > * I think a standalone service component makes sense. However, you
> > should also contact the author of the Zend_Payment proposal
> > (http://bit.ly/f9SBnG -- sponsored by Varien/Magento) to offer to
> > write an adapter for that component.
> > * As noted by others, ZF1 is in feature freeze, so target ZF2 for this
> > component. The easiest way to do so is to fork the ZF2 git repo,
> > and create a branch for development of the feature. That will allow
> > you to collaborate with others, as well as provide code for the
> > Community Review Team to review.
> > * Also, move your component to the "Ready for Review" section of the
> > proposals, so that folks know you've completed the proposal and want
> > comments.
> >
> >The initial glance I had looks promising!
> >

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

Re: Re: [fw-webservices] Zend_Service_Chargify proposal

Thanks for the great feedback.

At first glance it looks like Zend_Payment is meant to be an adapter to
the various gateways whereas Chargify sits between your app and the
payment gateway. I'll get in touch with the Varien folks for their
thoughts on a Chargify adapter. I'd definitely be willing to help.

I have a little catching up to do on the state/direction of ZF2. Other
than PHP 5.3 are there any other requirements or conventions I should be
aware of, especially with regards to web services?

Thanks,

-Dan

On 1:59 PM, Matthew Weier O'Phinney wrote:
> -- Dan Bowen<dan@crucialwebstudio.com> wrote
> (on Thursday, 30 December 2010, 07:36 PM -0600):
>
>> I just submitted a proposal for Zend_Service_Chargify and wanted to
>> get some feedback from the community.
>>
>> http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_Chargify+-+Dan+Bowen
>>
>> Is this a component ZF users would be interested in? Does the
>> proposal provide enough detail? Please let me know what you think.
>>
>> This is my fist official contribution to open source. I'm really
>> looking forward to making it a successful one.
>>
> This looks quite interesting. :)
>
> A couple of notes:
>
> * I think a standalone service component makes sense. However, you
> should also contact the author of the Zend_Payment proposal
> (http://bit.ly/f9SBnG -- sponsored by Varien/Magento) to offer to
> write an adapter for that component.
> * As noted by others, ZF1 is in feature freeze, so target ZF2 for this
> component. The easiest way to do so is to fork the ZF2 git repo,
> and create a branch for development of the feature. That will allow
> you to collaborate with others, as well as provide code for the
> Community Review Team to review.
> * Also, move your component to the "Ready for Review" section of the
> proposals, so that folks know you've completed the proposal and want
> comments.
>
> The initial glance I had looks promising!
>
>

Re: [fw-webservices] Zend_Service_Chargify proposal

-- Jimmy Sole <jimmysole@gmail.com> wrote
(on Friday, 31 December 2010, 11:27 AM -0500):
> I recently proposed a component for Zend Framework (Zend_Ming)
> http://framework.zend.com/wiki/display/ZFPROP/Zend_Ming+-+Jimmy+Sole
>
> Has anyone had time to review it and offer any suggestions?

You should announce on the zf-contributors mailing list when you want
community review; after a period of a week or two, send an email to
zf-crteam@zend.com, and ask for a formal review for inclusion.


> -----Original Message-----
> From: Matthew Weier O'Phinney [mailto:matthew@zend.com]
> Sent: Friday, December 31, 2010 10:32 AM
> To: fw-webservices@lists.zend.com
> Subject: Re: [fw-webservices] Zend_Service_Chargify proposal
>
> -- Dan Bowen <dan@crucialwebstudio.com> wrote
> (on Thursday, 30 December 2010, 07:36 PM -0600):
> > I just submitted a proposal for Zend_Service_Chargify and wanted to
> > get some feedback from the community.
> >
> >
> http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_Chargify+-+Dan+Bo
> wen
> >
> > Is this a component ZF users would be interested in? Does the
> > proposal provide enough detail? Please let me know what you think.
> >
> > This is my fist official contribution to open source. I'm really
> > looking forward to making it a successful one.
>
> This looks quite interesting. :)
>
> A couple of notes:
>
> * I think a standalone service component makes sense. However, you
> should also contact the author of the Zend_Payment proposal
> (http://bit.ly/f9SBnG -- sponsored by Varien/Magento) to offer to
> write an adapter for that component.
> * As noted by others, ZF1 is in feature freeze, so target ZF2 for this
> component. The easiest way to do so is to fork the ZF2 git repo,
> and create a branch for development of the feature. That will allow
> you to collaborate with others, as well as provide code for the
> Community Review Team to review.
> * Also, move your component to the "Ready for Review" section of the
> proposals, so that folks know you've completed the proposal and want
> comments.
>
> The initial glance I had looks promising!
>
> --
> Matthew Weier O'Phinney
> Project Lead | matthew@zend.com
> Zend Framework | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
>
>

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

[fw-mvc] Re: Left-Right form layout--what is the easiest way to do this?

jbeall wrote:
>
> automatically sized to fit the width of the widest item in that column,
> and with the right column starting at the right boundary of the left
> column.
>

I don't know of any good CSS only way (not using javascript) to
automatically size the columns; however, if you know the max width, you can
set that as the default.

Generally, all you need to do is wrap the label and the input inside a
containing div for each row. The label will be set to float left and display
block.

Google up "Table-less Forms" for more detailed info.

-----
--
Wil Moore III

Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html

DO NOT TOP-POST and DO trim your replies:
http://linux.sgms-centre.com/misc/netiquette.php#toppost
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Left-Right-form-layout-what-is-the-easiest-way-to-do-this-tp3168519p3171649.html
Sent from the Zend MVC mailing list archive at Nabble.com.

2011年1月1日星期六

[fw-mvc] Re: Left-Right form layout--what is the easiest way to do this?

Wil Moore III wrote:
>
>
> jbeall wrote:
>>
>> The simplest way to do this in HTML is with a table with two columns.
>>
> Hi Josh,
>
> Actually, it is even easier if you simply use CSS to move things around.
> I've found that I rarely need to play with decorators when I have CSS on
> my side.
>


Forgive my ignorance on this, but I don't know how to make CSS do the same
thing a table would do--specifically, to have two columns that are
automatically sized to fit the width of the widest item in that column, and
with the right column starting at the right boundary of the left column.

I've been doing some searching on this and haven't been able to find a way
to do this. Could you send me to an explanation or briefly explain how you
would accomplish this? I'm always looking to improve my CSS knowledge.

-Josh
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Left-Right-form-layout-what-is-the-easiest-way-to-do-this-tp3168519p3170143.html
Sent from the Zend MVC mailing list archive at Nabble.com.

[fw-mvc] Re: Left-Right form layout--what is the easiest way to do this?

Wil Moore III wrote:
>
>
> jbeall wrote:
>>
>> The simplest way to do this in HTML is with a table with two columns.
>>
> Hi Josh,
>
> Actually, it is even easier if you simply use CSS to move things around.
> I've found that I rarely need to play with decorators when I have CSS on
> my side.
>


Forgive my ignorance on this, but I don't know how to make CSS do the same
thing a table would do--specifically, to have two columns that are
automatically sized to fit the width of the widest item in that column, and
with the right column starting at the right boundary of the left column.

I've been doing some searching on this and haven't been able to find a way
to do this. Could you send me to an explanation or briefly explain how you
would accomplish this? I'm always looking to improve my CSS knowledge.

-Josh
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Left-Right-form-layout-what-is-the-easiest-way-to-do-this-tp3168519p3170144.html
Sent from the Zend MVC mailing list archive at Nabble.com.