Re: [nyphp-talk] searching inside php source files

2009-12-29 Thread Konstantin K
I meant to say programmatically.. :) On Tue, Dec 29, 2009 at 11:32 PM, Eddie Drapkin wrote: > On Tue, Dec 29, 2009 at 11:30 PM, Konstantin K wrote: >> Hi folks, >> >> I need to search for and replace a string inside many PHP (source) files >> >> I was thinking of using http://pear.php.net/packag

Re: [nyphp-talk] searching inside php source files

2009-12-29 Thread Eddie Drapkin
On Tue, Dec 29, 2009 at 11:30 PM, Konstantin K wrote: > Hi folks, > > I need to search for and replace a string inside many PHP (source) files > > I was thinking of using http://pear.php.net/package/File_SearchReplace > but it's not maintained anymore. > > 1. Any suggestions how I should approach

[nyphp-talk] searching inside php source files

2009-12-29 Thread Konstantin K
Hi folks, I need to search for and replace a string inside many PHP (source) files I was thinking of using http://pear.php.net/package/File_SearchReplace but it's not maintained anymore. 1. Any suggestions how I should approach this problem? 2. What tools do you recommend? 3. Should I be on the

Re: [nyphp-talk] oh how good this list is

2009-12-29 Thread Anirudh Zala
On Wednesday 30 December 2009 06:23:23 Gary Mort wrote: > On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: > > Agreed wholeheartedly on that sentiment - oftentimes when I have a > > question and need a little nudge, a quick search through NYPHP is all > > I need. There are hundreds of threads

Re: [nyphp-talk] oh how good this list is

2009-12-29 Thread Leam Hall
Gary Mort wrote: On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: Agreed wholeheartedly on that sentiment - oftentimes when I have a question and need a little nudge, a quick search through NYPHP is all I need. There are hundreds of threads that I've starred in GMail as a result. Gmail?

Re: [nyphp-talk] oh how good this list is

2009-12-29 Thread Gary Mort
On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: > > > Agreed wholeheartedly on that sentiment - oftentimes when I have a > question and need a little nudge, a quick search through NYPHP is all > I need. There are hundreds of threads that I've starred in GMail as a > result. > Gmail? Wouldn

Re: [nyphp-talk] OT: Standard Data Import Tool?

2009-12-29 Thread Gary Mort
On Tue, Dec 29, 2009 at 12:28 PM, Matt Juszczak wrote: > Hi all, > > I need to write a tool that somehow takes multiple data feeds (some xls > files, some csv files, etc.), defines each format, > verifies/validates/sanitizes the data, and imports it into standardized > MySQL tables. > Consider Y

Re: [nyphp-talk] Code Reviews

2009-12-29 Thread Ben Sgro
Hello Peter, At my current company we do both peer reviews and group code reviews. The group code reviews seem to have the best impact, as the peer reviews have naturally ceased to happen. Our group code reviews happen bi-monthly and during the time (usually an hour) developers working on dif

Re: [nyphp-talk] OT: Standard Data Import Tool?

2009-12-29 Thread Adrian Noland
If I understand your problem, then this may help: http://www.devshed.com/c/a/PHP/Introducing-the-Strategy-Pattern/ http://www.fluffycat.com/PHP-Design-Patterns/Strategy/ I would use it something like this: $this->data = new DataStream($source); $bool = new BasicValidate($this->data); $bool = new

[nyphp-talk] Code Reviews

2009-12-29 Thread Peter Becker
Looking to get some views (and best practices) on code reviews. I used to work at IBM on their early version of Websphere (as UI designer, not coder) where our group had code reviews on a regular basis. I'm now managing a small dev team working on a new web site using Zend PHP/MySql and am curiou

Re: [nyphp-talk] OT: Standard Data Import Tool?

2009-12-29 Thread Matt Juszczak
Hi Greg, That's pretty much how we had things mapped out. Basic source validation in the beginning, then a more standard validation later on. I guess my question was - is there any open source project that would help with this work flow, such as handling exceptions in the case of bad data, e

Re: [nyphp-talk] OT: Standard Data Import Tool?

2009-12-29 Thread Greg Rundlett (freephile)
There are several issues all bundled up here. First you have to define the file format(s) that your feeds come in so that you can read them and isolate the data elements correctly. Are they CSV, TSV, XML, custom? At the first (read) step you can do gross validation like validate the source for co

[nyphp-talk] OT: Standard Data Import Tool?

2009-12-29 Thread Matt Juszczak
Hi all, I need to write a tool that somehow takes multiple data feeds (some xls files, some csv files, etc.), defines each format, verifies/validates/sanitizes the data, and imports it into standardized MySQL tables. As an example, one feed might look like this: First Name, Last Name, DOB

Re: [nyphp-talk] oh how good this list is

2009-12-29 Thread Damion Hankejh
+1 I've amassed a rich collection of gmail-labeled "CODE+FAVE" threads from 2009. Season's greetings and cheers to an even better, brighter 2010. --- Damion Hankejh | hankejh.com On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: > On Tue, Dec 29, 2009 at 10:42 AM, David Mintz > wrote: >

Re: [nyphp-talk] PHP error handling with simplexml_load_file questions.

2009-12-29 Thread Chris Snyder
On Tue, Dec 29, 2009 at 10:52 AM, John Campbell wrote: > It doesn't work on some installs, may break with ssl, doesn't support > cookies reliably, can't handle http errors, may or may not follow > redirects, etc. simple_xml_load_file() on a > remote resource is great for article writers because th

Re: [nyphp-talk] PHP error handling with simplexml_load_file questions.

2009-12-29 Thread John Campbell
David, I use curl every time I am accessing a remote resource. I'd fetch the content with curl, and process it as a string. Using php's remote resource is always flaky. It doesn't work on some installs, may break with ssl, doesn't support cookies reliably, can't handle http errors, may or may n

Re: [nyphp-talk] oh how good this list is

2009-12-29 Thread Mitch Pirtle
On Tue, Dec 29, 2009 at 10:42 AM, David Mintz wrote: > Allow me to indulge a little frivolity during this slow year-end period. > > I wish I could count the times this list has helped me, not just by > providing answers, but by motivating me to thinkĀ  harder about the question > before posting. Tw

[nyphp-talk] oh how good this list is

2009-12-29 Thread David Mintz
Allow me to indulge a little frivolity during this slow year-end period. I wish I could count the times this list has helped me, not just by providing answers, but by motivating me to think harder about the question before posting. Twice in the past couple of weeks I have actually been composing

[nyphp-talk] PHP error handling with simplexml_load_file questions.

2009-12-29 Thread David Roth
I've been following the example for PHP error handling using simplexml_load_file as show in this example: http://www.ibm.com/developerworks/library/x-simplexml.html To test my PHP code, I put in a bogus URL, which failed and the PHP script caught it allowing me to control it in the program.

Re: [nyphp-talk] cheapest and best way to server 1TB worth of data per month

2009-12-29 Thread Konstantin K
I looked into using Google Apps Engine: 1. It's pretty fast! 2. The "free quotas" are pretty big, EXCEPT for the outgoing bandwith (only 1GB/day = 30GB/month) 3. It's pretty simple to set it up. 4. It's very hard to automate versioning of static data - with a CDN, it can pull the latest data from