From randalrust at gmail.com Fri May 1 08:51:13 2009 From: randalrust at gmail.com (Randal Rust) Date: Fri, 1 May 2009 08:51:13 -0400 Subject: [nycphp-talk] Help with a CakePHP View In-Reply-To: <20090430201756.GA29081@panix.com> References: <20090430183708.GA29578@panix.com> <20090430190723.GA4787@panix.com> <20090430201756.GA29081@panix.com> Message-ID: On Thu, Apr 30, 2009 at 4:17 PM, Daniel Convissor wrote: > But what's the difference between the two types of records? It ended up, for now at least, not having anything to do with the SQL queries. After working from the end of the process back to the very beginning, I found that the error was happening in the model file for the District. In that file, there is a $hasMany variable that looked like this: var $hasMany = array('User'=>array(),'book=>array());//I removed all of the values from the arrays I changed it to: var $hasMany = array('user'=>array(),'book=>array()); And it started working. It still does not explain why some records were displayed and others weren't, but at least it's working now. So I know when something similar happens again, it's likely a case sensitivity issue. -- Randal Rust R.Squared Communications www.r2communications.com 614-370-0036 From nate at cakephp.org Fri May 1 09:14:28 2009 From: nate at cakephp.org (Nate Abele) Date: Fri, 1 May 2009 09:14:28 -0400 Subject: [nycphp-talk] Help with a CakePHP View In-Reply-To: References: Message-ID: > Date: Thu, 30 Apr 2009 11:10:16 -0400 > From: Randal Rust > To: NYPHP Talk > Subject: [nycphp-talk] Help with a CakePHP View > > [snip] > > $whereClause = '`District`.`id` = "' . > $this->mrClean->sql($this->passedArgs[0]) . '"'; > $this->set('district', $this->District->find($whereClause)); > > $this->passedArgs[0] is an integer, the ID of the record. Hi Randall, This may or may not fix your problem, but your query syntax is wrong. Depending on your Cake version, you'll either want this: $district = $this->District->find(array("District.id" => $this- >passedArgs[0])); - or - $district = $this->District->find('first', array('conditions' => array("District.id" => $this->passedArgs[0]))); However, using findById should do effectively the same thing, so why not use that? Also, since whatever's in $passedArgs gets passed as parameters to the action, you could really just do this (assuming this code is called in an action: function view($id = null) { // ... $district = $this->District->findById($id); $this->set(compact('district')); } Hope that helps, - Nate Abele Lead Developer, CakePHP -------------- next part -------------- An HTML attachment was scrubbed... URL: From randalrust at gmail.com Fri May 1 09:23:29 2009 From: randalrust at gmail.com (Randal Rust) Date: Fri, 1 May 2009 09:23:29 -0400 Subject: [nycphp-talk] Help with a CakePHP View In-Reply-To: References: Message-ID: On Fri, May 1, 2009 at 9:14 AM, Nate Abele wrote: > This may or may not fix your problem, but your query syntax is wrong. Thanks, Nate. Yes, after really digging around, including an attempt to upgrade, I figured out there was a syntax issue. I was able to get it working for now, but at least I am aware of yet another potential issue. > ?Depending on your Cake version: This app is using version 1.1.19.6305, running PHP5, so I think the following will work, right? > $district =?$this->District->find(array("District.id" =>$this->passedArgs[0])); > However, using findById should do effectively the same thing, so why not use that? Yeah, I tried that and it kept giving me an error. Which is what clued me in to the idea that the version I was working with was not the same as what the Cookbook is written for. That was a pretty dumb assumption on my part, thinking I was working with the current release. The application runs fine on the current production server, which is part of the reason the errors were so perplexing. Anyway, I am on to the next step in the process -- moving to the new test server. We'll see how that goes. -- Randal Rust R.Squared Communications www.r2communications.com 614-370-0036 From ps at blu-studio.com Fri May 1 12:15:35 2009 From: ps at blu-studio.com (Peter Sawczynec) Date: Fri, 1 May 2009 12:15:35 -0400 Subject: [nycphp-talk] Mobile Phone Detection Message-ID: <003401c9ca78$0fb02c60$2f108520$@com> I was wondering if anyone on the list has a favorite, most-bulletproof "User-Agent, CSS, browser sensing" strategy for sensing mobile phones and/or individual carrier mobile phone environments. I am interested in a combined JavaScript / CSS @media or even a PHP route. Also, has anyone used WURFL? I see that by looking at the User-Agent, Symfony has a CSS/template switching feature that allows you to deliver alternative web site output to iPhone users, but this is too specific for me at this time. Any thoughts? Warmest regards, ? Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com From ken at secdat.com Fri May 1 12:25:03 2009 From: ken at secdat.com (Kenneth Downs) Date: Fri, 01 May 2009 12:25:03 -0400 Subject: [nycphp-talk] Mobile Phone Detection In-Reply-To: <003401c9ca78$0fb02c60$2f108520$@com> References: <003401c9ca78$0fb02c60$2f108520$@com> Message-ID: <49FB225F.5000907@secdat.com> I experimented with this and discovered simply looking at the display size did me pretty well. Not many desktops have a 200x200px display :) Peter Sawczynec wrote: > I was wondering if anyone on the list has a favorite, most-bulletproof > "User-Agent, CSS, browser sensing" strategy for sensing mobile phones > and/or individual carrier mobile phone environments. > > I am interested in a combined JavaScript / CSS @media or even a PHP > route. > > Also, has anyone used WURFL? > > I see that by looking at the User-Agent, Symfony has a CSS/template > switching feature that allows you to deliver alternative web site output > to iPhone users, but this is too specific for me at this time. > > Any thoughts? > > Warmest regards, > > Peter Sawczynec > Technology Dir. > bl?studio > 941.893.0396 > ps at blu-studio.com > www.blu-studio.com > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -- Kenneth Downs Secure Data Software ken at secdat.com www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 From ps at blu-studio.com Fri May 1 13:02:16 2009 From: ps at blu-studio.com (Peter Sawczynec) Date: Fri, 1 May 2009 13:02:16 -0400 Subject: [nycphp-talk] Mobile Phone Detection In-Reply-To: <49FB225F.5000907@secdat.com> References: <003401c9ca78$0fb02c60$2f108520$@com> <49FB225F.5000907@secdat.com> Message-ID: <003b01c9ca7e$959611e0$c0c235a0$@com> I think sensing mobile in general and at least about a Top 5 individual phone types would be good. A lot of really old info online on this topic. Here are a couple of 2009 article references for this topic. A List Apart provides solid writeup: http://alistapart.com/articles/returnofthemobilestylesheet Another well-informed writeup: http://www.bushidodesigns.net/blog/mobile-device-detection-css-without-u ser-agent Warmest regards, ? Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs Sent: Friday, May 01, 2009 12:25 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Mobile Phone Detection I experimented with this and discovered simply looking at the display size did me pretty well. Not many desktops have a 200x200px display :) Peter Sawczynec wrote: > I was wondering if anyone on the list has a favorite, most-bulletproof > "User-Agent, CSS, browser sensing" strategy for sensing mobile phones > and/or individual carrier mobile phone environments. > > I am interested in a combined JavaScript / CSS @media or even a PHP > route. > > Also, has anyone used WURFL? > > I see that by looking at the User-Agent, Symfony has a CSS/template > switching feature that allows you to deliver alternative web site output > to iPhone users, but this is too specific for me at this time. > > Any thoughts? > > Warmest regards, > > Peter Sawczynec > Technology Dir. > bl?studio > 941.893.0396 > ps at blu-studio.com > www.blu-studio.com > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -- Kenneth Downs Secure Data Software ken at secdat.com www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php From jcampbell1 at gmail.com Fri May 1 13:28:48 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Fri, 1 May 2009 13:28:48 -0400 Subject: [nycphp-talk] Mobile Phone Detection In-Reply-To: <003401c9ca78$0fb02c60$2f108520$@com> References: <003401c9ca78$0fb02c60$2f108520$@com> Message-ID: <8f0676b40905011028m4a02e92crc8c27e5a80289ae7@mail.gmail.com> 2009/5/1 Peter Sawczynec : > I was wondering if anyone on the list has a favorite, most-bulletproof > "User-Agent, CSS, browser sensing" strategy for sensing mobile phones > and/or individual carrier mobile phone environments. > > I am interested in a combined JavaScript / CSS @media or even a PHP > route. Javascript won't work because so many mobile browsers don't turn js on by default. CSS - '@media handheld' doesn't work very well either. Regex'ing the useragent string from php is the only method I found that was reliable. Regards, John Campbell From randalrust at gmail.com Fri May 1 17:25:06 2009 From: randalrust at gmail.com (Randal Rust) Date: Fri, 1 May 2009 17:25:06 -0400 Subject: [nycphp-talk] CakePHP and Routing to Specific URLs Message-ID: OK, so I'm almost done with getting the basics of this site done so that we can switch to the new server next week, but I have one pressing issue. I have PHPMyAdmin installed on the server at this address: http://www.example.com/phpmyadmin/ When I try to access it, I get this: =============================== You are seeing this error because controller PhpmyadminController could not be found. Notice: If you want to customize this error message, create app/views/errors/missing_controller.thtml. Fatal: Create the class below in file : app/controllers/phpmyadmin_controller.php =============================== So how do I tell Cake to ignore requests for the phpmyadmin directory? I added this to the .htaccess, but to no avail: RewriteRule ^phpmyadmin/(.+)?$ phpmyadmin/$1 [L] -- Randal Rust R.Squared Communications www.r2communications.com 614-370-0036 From randalrust at gmail.com Fri May 1 17:35:55 2009 From: randalrust at gmail.com (Randal Rust) Date: Fri, 1 May 2009 17:35:55 -0400 Subject: [nycphp-talk] CakePHP and Routing to Specific URLs In-Reply-To: References: Message-ID: On Fri, May 1, 2009 at 5:25 PM, Randal Rust wrote: > OK, so I'm almost done with getting the basics of this site done and you can ignore my request about the routing. i figured it out. i had updated the .htaccess under the /app/ folder, not the root of the directory. -- Randal Rust R.Squared Communications www.r2communications.com 614-370-0036 From vtbludgeon at gmail.com Mon May 4 09:49:22 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 4 May 2009 09:49:22 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> Message-ID: <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> 1. Fedora Linux 10 2. localhost 3. Zend IDE for Eclipse 6.1.2 4. svn 5. Firebug for xhr; still trying to train myself w/ PHPUnit and vowing to do better; meanwhile, lots of echo and run-it-in-a-browser-and-see-what-happens [lowers eyes in shame] -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Mon May 4 13:51:14 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 4 May 2009 13:51:14 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> Message-ID: <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> 1. OSX VMware - CentOS, Debian 2. localhost (with virtual machines simulating production/test) 3. PDT 4. svn and git - projects using both make me straddle the fence 5. Xdebug for the win! :-) On Mon, May 4, 2009 at 9:49 AM, David Mintz wrote: > 5.? Firebug for xhr; still trying to train myself w/ PHPUnit and vowing to > do better; meanwhile, lots of echo and > run-it-in-a-browser-and-see-what-happens [lowers eyes in shame] Most PHP developers run-it-in-production-and-see-what-happens, so you are already one step ahead of the usual suspects. -- Mitch From brenttech at gmail.com Mon May 4 14:19:01 2009 From: brenttech at gmail.com (Brent Baisley) Date: Mon, 4 May 2009 14:19:01 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> Message-ID: <5d515c620905041119t70b50974pebf5881e7415f8b1@mail.gmail.com> 5. Have you looked into FirePHP? Sort of like Firebug specifically for PHP. Brent Baisley On Mon, May 4, 2009 at 1:51 PM, Mitch Pirtle wrote: > 1. OSX > VMware - CentOS, Debian > > 2. localhost (with virtual machines simulating production/test) > > 3. PDT > > 4. svn and git - projects using both make me straddle the fence > > 5. Xdebug for the win! :-) > > On Mon, May 4, 2009 at 9:49 AM, David Mintz wrote: >> 5.? Firebug for xhr; still trying to train myself w/ PHPUnit and vowing to >> do better; meanwhile, lots of echo and >> run-it-in-a-browser-and-see-what-happens [lowers eyes in shame] > > Most PHP developers run-it-in-production-and-see-what-happens, so you > are already one step ahead of the usual suspects. > > -- Mitch > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From vtbludgeon at gmail.com Mon May 4 15:17:38 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 4 May 2009 15:17:38 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <5d515c620905041119t70b50974pebf5881e7415f8b1@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> <5d515c620905041119t70b50974pebf5881e7415f8b1@mail.gmail.com> Message-ID: <721f1cc50905041217l5afc3295jd72a307e24d3cdbd@mail.gmail.com> On Mon, May 4, 2009 at 2:19 PM, Brent Baisley wrote: > 5. Have you looked into FirePHP? Sort of like Firebug specifically for PHP. > > Brent Baisley > Yes, installed and tried it out and was astonished. That's some pretty cool magic there. But I haven't done much else with it so far. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Tue May 5 09:15:54 2009 From: ken at secdat.com (Kenneth Downs) Date: Tue, 05 May 2009 09:15:54 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <721f1cc50905041217l5afc3295jd72a307e24d3cdbd@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> <5d515c620905041119t70b50974pebf5881e7415f8b1@mail.gmail.com> <721f1cc50905041217l5afc3295jd72a307e24d3cdbd@mail.gmail.com> Message-ID: <4A003C0A.1030000@secdat.com> David Mintz wrote: > On Mon, May 4, 2009 at 2:19 PM, Brent Baisley wrote: > > >> 5. Have you looked into FirePHP? Sort of like Firebug specifically for PHP. >> >> Brent Baisley >> >> > > > Yes, installed and tried it out and was astonished. That's some pretty cool > magic there. But I haven't done much else with it so far. > I tend to use associative arrays a lot, and I'm amazed at how productive you can be just shooting a few out to the browser with FirePHP and digging through them. > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -- Kenneth Downs Secure Data Software ken at secdat.com www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Tue May 5 09:57:19 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Tue, 5 May 2009 09:57:19 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <4A003C0A.1030000@secdat.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> <5d515c620905041119t70b50974pebf5881e7415f8b1@mail.gmail.com> <721f1cc50905041217l5afc3295jd72a307e24d3cdbd@mail.gmail.com> <4A003C0A.1030000@secdat.com> Message-ID: <43bc541c0905050657q1e32ac89la0a70fefdd70a466@mail.gmail.com> That's how I do my majority of debugging, just shooting array's to the browser with print_r. Sometimes though digging through them can be a pain especially if they contain over a thousand indexes. -Anthony On Tue, May 5, 2009 at 9:15 AM, Kenneth Downs wrote: > David Mintz wrote: > > On Mon, May 4, 2009 at 2:19 PM, Brent Baisley wrote: > > > > 5. Have you looked into FirePHP? Sort of like Firebug specifically for PHP. > > Brent Baisley > > > > Yes, installed and tried it out and was astonished. That's some pretty cool > magic there. But I haven't done much else with it so far. > > > > I tend to use associative arrays a lot, and I'm amazed at how productive > you can be just shooting a few out to the browser with FirePHP and digging > through them. > > ------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/show_participation.php > > > > -- > Kenneth Downs > Secure Data Softwareken at secdat.com www.andromeda-project.org www.secdat.com > Office: 631-689-7200 > Cell: 631-379-0010 > Fax: 631-689-0527 > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Tue May 5 13:19:12 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Tue, 5 May 2009 13:19:12 -0400 Subject: [nycphp-talk] FirePHP Message-ID: I finally got on the ball with FirePHP, and I think I understand it except... where is the output of FirePHP::dump() supposed to be? I can see messages and traces, but when I call dump nothing happens. Just me? What is dump supposed to do, exactly? log( $args ); $firephp->dump( 'args', $args ); $firephp->trace( "Trace" ); exit(); } Chris Snyder http://chxor.chxo.com/ From ajai at bitblit.net Tue May 5 13:36:41 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 5 May 2009 13:36:41 -0400 (EDT) Subject: [nycphp-talk] FirePHP In-Reply-To: Message-ID: On Tue, 5 May 2009, Chris Snyder wrote: > I finally got on the ball with FirePHP, and I think I understand it > except... where is the output of FirePHP::dump() supposed to be? > > I can see messages and traces, but when I call dump nothing happens. > Just me? What is dump supposed to do, exactly? > > include_once( 'FirePHPCore/FirePHP.class.php' ); > function debug() { > $args = func_get_args(); > $firephp = FirePHP::getInstance(true); > $firephp->log( $args ); > $firephp->dump( 'args', $args ); > $firephp->trace( "Trace" ); > exit(); > } You do know that FirePHP is supposed to be used with FireBug right? -- Aj. From chehodgins at gmail.com Tue May 5 13:40:58 2009 From: chehodgins at gmail.com (Che Hodgins) Date: Tue, 5 May 2009 13:40:58 -0400 Subject: [nycphp-talk] FirePHP In-Reply-To: References: Message-ID: On Tue, May 5, 2009 at 1:19 PM, Chris Snyder wrote: > I finally got on the ball with FirePHP, and I think I understand it > except... where is the output of FirePHP::dump() supposed to be? > > I can see messages and traces, but when I call dump nothing happens. > Just me? What is dump supposed to do, exactly? As per the documentation: "You can dump a variable to the Server tab of the Firebug Request Inspector. To get to the Request Inspector expand a request in the Console or Net panels." In firebug go to the "net" tab and look at the response headers for a given request. Che > > include_once( 'FirePHPCore/FirePHP.class.php' ); > function debug() { > ?$args = func_get_args(); > ?$firephp = FirePHP::getInstance(true); > ?$firephp->log( $args ); > ?$firephp->dump( 'args', $args ); > ?$firephp->trace( "Trace" ); > ?exit(); > ?} > > > Chris Snyder > http://chxor.chxo.com/ > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From chsnyder at gmail.com Tue May 5 13:52:31 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Tue, 5 May 2009 13:52:31 -0400 Subject: [nycphp-talk] FirePHP In-Reply-To: References: Message-ID: On Tue, May 5, 2009 at 1:40 PM, Che Hodgins wrote: > > "You can dump a variable to the Server tab of the Firebug Request > Inspector. To get to the Request Inspector expand a request in the > Console or Net panels." > > In firebug go to the "net" tab and look at the response headers for a > given request. > > Che Ahhh, the *server* tab. Thanks. Dump() provides much more info on objects and arrays, but getting to that tab is at least two clicks. From artur at marnik.net Tue May 5 19:37:17 2009 From: artur at marnik.net (Artur Marnik) Date: Tue, 05 May 2009 19:37:17 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> <330532b60905041051q2723a457j411cde08286dc6d2@mail.gmail.com> Message-ID: <4A00CDAD.2030006@marnik.net> 1. Ubuntu 2. localhost 3. PDT + many plugins 4. svn 5. print_r, checking out xdebug 6. mantis for bug tracking Artur > From vtbludgeon at gmail.com Wed May 6 09:37:56 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Wed, 6 May 2009 09:37:56 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... Message-ID: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> I get the impression that most developers report that they do automated testing or they are trying to learn. Only a minority seem to be answering flat-out no. imho one of the major differences between a polished professional and a hobbyist is responsible testing. That's why I still kick myself, as sort of an eternal wannabe whose day-job description has zero to do with IT, but who aspires nevertheless to write code that can be judged competent by any standard: I still haven't gotten the hang of unit testing, though I have made some attempts to get religion and vow to keep trying. It seems that I am not alone. So the question is, why is it hard for some to adopt the practice? One thing that occurs to me is that maybe it isn't really that easy to write good tests. We've all seen examples of how to test a function that returns the sum of x + y -- thanks a lot. It's a little harder to create simulated http environments complete with cookies and sessions -- though people (e.g., the ZF team) have done wonderful things to make it easier -- and forsee all the use cases in a complex app. Evidence for the proposition that it's hard to write an exhaustive set of tests is that you have products like the Zend Framework which is unit-tested to death before release, and then the next release brags that 171 bugs were fixed. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From leam at reuel.net Wed May 6 10:04:47 2009 From: leam at reuel.net (Leam Hall) Date: Wed, 06 May 2009 10:04:47 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> Message-ID: <4A0198FF.9090201@reuel.net> Add me to the "want to get there but..." list. By the time I squirrel away a couple hours to code I've forgotten what I learned last month when I had time to PHP and thus keep re-inventing the hamster wheel that is my brain... Leam From leam at reuel.net Wed May 6 10:13:24 2009 From: leam at reuel.net (Leam Hall) Date: Wed, 06 May 2009 10:13:24 -0400 Subject: [nycphp-talk] ini_set and file_get_contents Message-ID: <4A019B04.4090406@reuel.net> I have a file_get_contents working on my laptop/dev box, but when I put it on the hosting server it comes back with an error. URL file-access is disabled in the server configuration My guess is that there's a way to ini_set this to allow it, but the closest thing I found was allow_url_fopen which doesn't seem to work. Or I just don't know how to use it. Any pointers to docs that will enlighten me? Thanks! Leam From tom at supertom.com Wed May 6 10:22:09 2009 From: tom at supertom.com (Tom Melendez) Date: Wed, 6 May 2009 07:22:09 -0700 Subject: [nycphp-talk] ini_set and file_get_contents In-Reply-To: <4A019B04.4090406@reuel.net> References: <4A019B04.4090406@reuel.net> Message-ID: <117286890905060722q5510487ia9a5d8dc4f807951@mail.gmail.com> On Wed, May 6, 2009 at 7:13 AM, Leam Hall wrote: > I have a file_get_contents working on my laptop/dev box, but when I put it > on the hosting server it comes back with an error. > > ? ? ? ?URL file-access is disabled in the server configuration > > My guess is that there's a way to ini_set this to allow it, but the closest > thing I found was allow_url_fopen which doesn't seem to work. Or I just > don't know how to use it. > > Any pointers to docs that will enlighten me? You probably want to do this in your php.ini file, if this is on your laptop. I'm not sure if this particular setting can be changed via ini_set, you'll have to look. Check here for more info: http://us3.php.net/manual/en/configuration.changes.php Thanks, Tom http://www.liphp.org From ken at secdat.com Wed May 6 10:31:36 2009 From: ken at secdat.com (Kenneth Downs) Date: Wed, 06 May 2009 10:31:36 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> Message-ID: <4A019F48.5040804@secdat.com> David Mintz wrote: > I get the impression that most developers report that they do automated > testing or they are trying to learn. Only a minority seem to be answering > flat-out no. > > imho one of the major differences between a polished professional and a > hobbyist is responsible testing. That's why I still kick myself, as sort of > an eternal wannabe whose day-job description has zero to do with IT, but who > aspires nevertheless to write code that can be judged competent by any > standard: I still haven't gotten the hang of unit testing, though I have > made some attempts to get religion and vow to keep trying. > > It seems that I am not alone. So the question is, why is it hard for some to > adopt the practice? Here is Ken's personal theory as to why it is tough. I come to this theory by examining my own weaknesses and seeing where I seem to have things in common with other programmers. Programmers love to code. Especially the talented ones, who get "in the zone" and can code for hours in a state of deep concentration. When the muse is singing, and code is writing itself, nobody ever wants to stop. Sometimes the results are amazing, sometimes they are not. The zone is a thrilling and seductive place, but it does not tolerate discipline or interruptions. Stopping every 10 minutes to craft a unit test is just plain no fun. So it doesn't get done. This is not the entire explanation, but I think it is true part of the time. Another explanation is the basic human inability to see the limitations of our own efforts. Software is by its nature complex and pieces interract in ways we do not predict or intend. Unit tests and integration tests allow a programmer to nail these down and make the software very robust, but when you're doing the testing you're not coding the next feature, and I think we just love to code the next feature. > One thing that occurs to me is that maybe it isn't > really that easy to write good tests. We've all seen examples of how to test > a function that returns the sum of x + y -- thanks a lot. It's a little > harder to create simulated http environments complete with cookies and > sessions -- though people (e.g., the ZF team) have done wonderful things to > make it easier -- and forsee all the use cases in a complex app. Evidence > for the proposition that it's hard to write an exhaustive set of tests is > that you have products like the Zend Framework which is unit-tested to death > before release, and then the next release brags that 171 bugs were fixed. > This is probably more value to the x+y example than meets the eye. The x+y example is easy to illustrate because you have a function that returns a value. You can make a series of tests that codify what should happen for all manner of good and bad inputs, and you're done. The trick to the other more difficult situations is to learn to cast them in x+y terms. If I have trouble with a cookie-browser situation, how can I make it simple enough to test as an x+y situation? If I cannot make it simple enough to test /then I probably cannot get it to work right!/ Consider a web server. A page request is the input, and the returned HTML is the output. If your application is well designed, it must be possible to craft query requests and measure the returned HTML against an expected value. If the page is too complicated to do this, then comp sci 101 is our friend: we break it down into pieces that can be tested individually. This can be as simple as inserting HTML comments that mark certain areas so they can parsed out and compared against expected values. Another example would be databases and calculated values. How do you test that as if it were an x+y situation? It's pretty simple actually. Craft a test system that makes inserts, updates, deletes, and then retrieves rows and compares them to the desired output. If the rows come back ok, the test passes. So I would say in conclusion it is all about learning to break the whole thing down into pieces that can be tested like the toy examples in the books. > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -- Kenneth Downs Secure Data Software ken at secdat.com www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tegwe002 at umn.edu Wed May 6 10:47:35 2009 From: tegwe002 at umn.edu (Joelle Tegwen) Date: Wed, 06 May 2009 09:47:35 -0500 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> Message-ID: <4A01A307.1070806@umn.edu> 1 Ubuntu - upgrading to Jaunty today. :) 2 localhost with separate test and production servers 3 Eclipse with PHPEclipse and XMLBuddy 4 svn 5 A custom written debug script (to format things the right way) I've installed xdebug but not used it. Just started using PHPUnit this project and loving it although I'm not so good at testing as I go. I tried TDD but I have to learn too much about how to write testable code first. I'll agree with the sub-thread on how to write good tests. It's really tricky. But I figure if I start with writing any tests at least that's progress. It's helped me clean up my code a lot. Joelle David Mintz wrote: > 1. Fedora Linux 10 > > 2. localhost > > 3. Zend IDE for Eclipse 6.1.2 > > 4. svn > > 5. Firebug for xhr; still trying to train myself w/ PHPUnit and > vowing to do better; meanwhile, lots of echo and > run-it-in-a-browser-and-see-what-happens [lowers eyes in shame] > > -- > David Mintz > http://davidmintz.org/ > > The subtle source is clear and bright > The tributary streams flow through the darkness > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From ramons at gmx.net Wed May 6 12:55:34 2009 From: ramons at gmx.net (David Krings) Date: Wed, 06 May 2009 12:55:34 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> Message-ID: <4A01C106.4090802@gmx.net> David Mintz wrote: > I get the impression that most developers report that they do automated > testing or they are trying to learn. Only a minority seem to be > answering flat-out no. Automated testing is the most overhyped tool in the QA world. I am in software QA for a decade now and automated QA makes sense for regression and load testing, but not for any new development. Test scripts are nothing else than new code, which again needs to be tested. Ideally, the developer writes the test script for the code he or she is working on. Both application code and test script are only as good as the functional requirements and technical specifications. The better the expectations are definied (including what the feature is supposed to do and what it is NOT supposed to do, which is the part most commonly omitted), the better the outcome is. Crappy specs make crappy code and no matter how much automated testing is thrown against it will uncrappify the code. There is also often a general disconnect between developers and end-users, but that is fostered by the unsuitable management structure of most software companies. Support needs to be at the top with the biggest weight, below that are product management, then QA, and development is really at the bottom. I know it will come across as provocative, but developers are overrated and overpaid. They tend to get the nice cubes, the latest technology, and if the project plan is done right have a 9 to 5 job. Support, QA, and thus the customer have to suffer from whatever the devs crank out. Automated testing doesn?t do a thing for that. BUT, devs can put themselves, their coworkers, and the customers in a position where nobody has to deal with crappy code. Follow coding guidelines, code modular, reuse known good code (which is only a small fraction of all code), and document the hell out of it. The next guy or yourself six months later will be happy. And always keep the end-user in mind. Way too many technology decisions are made so that the developers have it easier to code stuff, even if that means that implementing and maintaining it will be more difficult. So code in a way that verbose logs can be pulled upon request, that the data is easily transitioned, that apps are cross-platform, and then installation and maintenance are as easy as possible. And those are things where being smart helps way more than some automated test suite. > imho one of the major differences between a polished professional and a > hobbyist is responsible testing. That's why I still kick myself, as sort That has nothing to do with professional or hobbyist, but with good and bad developers. Good developers make very sure that anything they hand out is definitely going to work. And if it fails they put the means in to find out why. > of an eternal wannabe whose day-job description has zero to do with IT, > but who aspires nevertheless to write code that can be judged competent > by any standard: I still haven't gotten the hang of unit testing, > though I have made some attempts to get religion and vow to keep trying. Unit testing is really a bad name, since it is not part of the testing task, but part of coding. I have seen plenty of code that all it did was compile. It was obvious that the dev didn?t even try it out once. Where I work we have the devs detail in the tech specs which things need to be tested and how. That isn?t in as much detail as the test plans, but it makes the developers try things out first. The task of a developer is way broader than just writing code. > It seems that I am not alone. So the question is, why is it hard for > some to adopt the practice? One thing that occurs to me is that maybe it > isn't really that easy to write good tests. We've all seen examples of > how to test a function that returns the sum of x + y -- thanks a lot. Testing and with that bug fixing is a tedious, frustrating, time consuming task that adds no new functionality to the application. Fixing bugs is probably the least favourite things for a developer to do, comes right after writing decent documentation (and tech writing should be a mandatory class in CS programs). It is less annoying when testability, fixability, and maintainability is designed and coded into an app right from the start. This is why it is so utterly important to design quality into the app way at the beginning. Unfortunately, it is often only an afterthought. See, I dabble once in a while in PHP and fixing things is really not as much fun as writing new stuff. So when writing new stuff taking effort to make the bug fixing to be a non-issue will make everyone happy. > It's a little harder to create simulated http environments complete with > cookies and sessions -- though people (e.g., the ZF team) have done Why simulate? You can grab about any PC and make it a (miniature) version of the production environment. Sure, if you decide to use for-pay only platforms it might cost you. And with ESXi being free to download and refurbished Dell servers selling for a few hundred bucks setting up VMs for testing is almost an option for the hobbyist. And PHP really helps a lot here compared to ASP.NET for example. Sure, VisualStudio is an awesome IDE, but you and your users will pay dearly for it for time to come. This shows how much rides on technology decisions, because they determine how the end product pans out even before a single line of code was written. > wonderful things to make it easier -- and forsee all the use cases in a > complex app. Evidence for the proposition that it's hard to write an > exhaustive set of tests is that you have products like the Zend > Framework which is unit-tested to death before release, and then the > next release brags that 171 bugs were fixed. The QA analyst speaking here: you cannot test everything. As soon as you allow for combinations of things and free form user entries you can be very sure that someone out there will make your app blow up. And I don?t think that is a problem per s?, the problem comes when the bug isn?t dealt with the right way. There are only a handful of programs that are generally considered reasonably bug free. So if the Zend folks fix 171 bugs and got it right the second time around, then it for sure is something to brag about. I?d stop celebrating when the 171 bug fixes caused 271 other things to break or worse now break 371 applications based on that platform. Still, it also gives 171 very good clues where the QA process failed and should result in at least 171 more test cases added to the test plans. And if you think my emails are long you should see the test plans that I write.... ;) David From brenttech at gmail.com Wed May 6 13:19:01 2009 From: brenttech at gmail.com (Brent Baisley) Date: Wed, 6 May 2009 13:19:01 -0400 Subject: [nycphp-talk] ini_set and file_get_contents In-Reply-To: <117286890905060722q5510487ia9a5d8dc4f807951@mail.gmail.com> References: <4A019B04.4090406@reuel.net> <117286890905060722q5510487ia9a5d8dc4f807951@mail.gmail.com> Message-ID: <5d515c620905061019k4f80b041x27ab333bd5cc5f2a@mail.gmail.com> You should file_get_contents to retrieve URLs, which is what you seem to be trying to do. It doesn't handle failures (i.e. timeout, redirects) very well at all. You should use curl if you need to retrieve a remote file. $url = 'http://yourfile.com'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $result = curl_exec($ch); if ( $result===false ) { echo curl_errno($ch).' '.curl_error($ch); } curl_close($ch); Obviously you would want to do something different in the event there is an error. Hopefully curl is enabled on your hosting server. Brent Baisley On Wed, May 6, 2009 at 10:22 AM, Tom Melendez wrote: > On Wed, May 6, 2009 at 7:13 AM, Leam Hall wrote: >> I have a file_get_contents working on my laptop/dev box, but when I put it >> on the hosting server it comes back with an error. >> >> ? ? ? ?URL file-access is disabled in the server configuration >> >> My guess is that there's a way to ini_set this to allow it, but the closest >> thing I found was allow_url_fopen which doesn't seem to work. Or I just >> don't know how to use it. >> >> Any pointers to docs that will enlighten me? > > You probably want to do this in your php.ini file, if this is on your > laptop. ?I'm not sure if this particular setting can be changed via > ini_set, you'll have to look. > > Check here for more info: > > http://us3.php.net/manual/en/configuration.changes.php > > Thanks, > > Tom > http://www.liphp.org > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From corey at gelform.com Wed May 6 15:46:00 2009 From: corey at gelform.com (Corey H Maass - gelform.com) Date: Wed, 06 May 2009 15:46:00 -0400 Subject: [nycphp-talk] htaccess question - deafult behavior in one folder Message-ID: <1241639160.9201.1314154115@webmail.messagingengine.com> I have a site that uses the Zend framework. I want to run a blog at /blog. I tried installing wordpress in an actual folder at /blog but my htaccess is set to have anything that doesn't point to an actual file redirect to index.php for zend. wordpress relies on blog/ directing to blog/index.php. Here's what I've got: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* index.php So I need a rule that says, 'anything in /blog, just do what you normally do' but I'm not sure how to go about that. I've dug thru htaccess tutorials but I'm not finding anything. Thanks, Corey // Corey H Maass Gelform Design Brooklyn, NY Web design and development for art and business em corey at gelform.com ww http://www.gelform.com ph 646/228.5048 fx 866/502.4861 IM gelform From dirn at dirnonline.com Wed May 6 17:08:34 2009 From: dirn at dirnonline.com (Andy Dirnberger) Date: Wed, 6 May 2009 17:08:34 -0400 Subject: [nycphp-talk] htaccess question - deafult behavior in one folder In-Reply-To: <1241639160.9201.1314154115@webmail.messagingengine.com> References: <1241639160.9201.1314154115@webmail.messagingengine.com> Message-ID: <004401c9ce8e$d18f5800$74ae0800$@com> > So I need a rule that says, 'anything in /blog, just do what you > normally do' but I'm not sure how to go about that. I've dug thru > htaccess tutorials but I'm not finding anything. Here's how I accomplish that same thing for Trac instead of WordPress. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/trac RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] This filters out any URIs that start with /trac or point to a file or directory. From ajai at bitblit.net Wed May 6 17:53:07 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 6 May 2009 17:53:07 -0400 (EDT) Subject: [nycphp-talk] htaccess question - deafult behavior in one folder In-Reply-To: <1241639160.9201.1314154115@webmail.messagingengine.com> Message-ID: On Wed, 6 May 2009, Corey H Maass - gelform.com wrote: > I have a site that uses the Zend framework. I want to run a blog at > /blog. I tried installing wordpress in an actual folder at /blog but my > htaccess is set to have anything that doesn't point to an actual file > redirect to index.php for zend. wordpress relies on blog/ directing to > blog/index.php. Here's what I've got: > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule .* index.php > > So I need a rule that says, 'anything in /blog, just do what you > normally do' but I'm not sure how to go about that. I've dug thru > htaccess tutorials but I'm not finding anything. IIRC, you can use RewriteEngine Off to cancel rewrite rules in a parent .htaccess file. -- Aj. From corey at gelform.com Wed May 6 18:32:58 2009 From: corey at gelform.com (Corey H Maass - gelform.com) Date: Wed, 06 May 2009 18:32:58 -0400 Subject: [nycphp-talk] htaccess question - deafult behavior in one folder In-Reply-To: References: Message-ID: <1241649178.15727.1314179343@webmail.messagingengine.com> Ooh, great! I actually combined the two responses. Adding: RewriteCond %{REQUEST_URI} !^/blog worked for /blog, but anything after blog (/blog/2009/my-post) still gave me a 404. So then I added an .htaccess to /blog/ to redirect to it's root and it worked. Thanks! On Wed, 6 May 2009 17:53:07 -0400 (EDT), "Ajai Khattri" said: > On Wed, 6 May 2009, Corey H Maass - gelform.com wrote: > > > I have a site that uses the Zend framework. I want to run a blog at > > /blog. I tried installing wordpress in an actual folder at /blog but my > > htaccess is set to have anything that doesn't point to an actual file > > redirect to index.php for zend. wordpress relies on blog/ directing to > > blog/index.php. Here's what I've got: > > > > RewriteCond %{REQUEST_FILENAME} !-f > > RewriteRule .* index.php > > > > So I need a rule that says, 'anything in /blog, just do what you > > normally do' but I'm not sure how to go about that. I've dug thru > > htaccess tutorials but I'm not finding anything. > > IIRC, you can use RewriteEngine Off to cancel rewrite rules in a parent > .htaccess file. > > > -- > Aj. > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php // Corey H Maass Gelform Design Brooklyn, NY Web design and development for art and business em corey at gelform.com ww http://www.gelform.com ph 646/228.5048 fx 866/502.4861 IM gelform From susan_shemin at ymail.com Wed May 6 18:53:46 2009 From: susan_shemin at ymail.com (SusanS) Date: Wed, 6 May 2009 15:53:46 -0700 (PDT) Subject: [nycphp-talk] databases with PHP Message-ID: <37412.82185.qm@web59516.mail.ac4.yahoo.com> Now that Oracle has bought Sun (and?also MySQL),?is there any discussion in the community about?a change in open-source databases? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bonsaime at gmail.com Wed May 6 19:15:02 2009 From: bonsaime at gmail.com (Jesse Callaway) Date: Wed, 6 May 2009 19:15:02 -0400 Subject: [nycphp-talk] htaccess question - deafult behavior in one folder In-Reply-To: <1241649178.15727.1314179343@webmail.messagingengine.com> References: <1241649178.15727.1314179343@webmail.messagingengine.com> Message-ID: Hey Corey, Try !^/blog.*$ if you end up installing Drupal under Wordpress... just kidding. But the fewer passes to mod_rewrite the happier everyone is. That pattern ought to tell it to ignore anything after /blog in the URL without any further rules. mod_rewrite is mind blowing sometimes... Try the logging options to see all the insanity behind the scenes. -jesse On Wed, May 6, 2009 at 6:32 PM, Corey H Maass - gelform.com wrote: > Ooh, great! I actually combined the two responses. Adding: > RewriteCond %{REQUEST_URI} !^/blog > worked for /blog, but anything after blog (/blog/2009/my-post) still > gave me a 404. So then I added an .htaccess to /blog/ to redirect to > it's root and it worked. Thanks! > > On Wed, 6 May 2009 17:53:07 -0400 (EDT), "Ajai Khattri" > said: >> On Wed, 6 May 2009, Corey H Maass - gelform.com wrote: >> >> > I have a site that uses the Zend framework. I want to run a blog at >> > /blog. I tried installing wordpress in an actual folder at /blog but my >> > htaccess is set to have anything that doesn't point to an actual file >> > redirect to index.php for zend. wordpress relies on blog/ directing to >> > blog/index.php. Here's what I've got: >> > >> > RewriteCond %{REQUEST_FILENAME} !-f >> > RewriteRule .* index.php >> > >> > So I need a rule that says, 'anything in /blog, just do what you >> > normally do' but I'm not sure how to go about that. I've dug thru >> > htaccess tutorials but I'm not finding anything. >> >> IIRC, you can use RewriteEngine Off to cancel rewrite rules in a parent >> .htaccess file. >> >> >> -- >> Aj. >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > // > Corey H Maass > Gelform Design > Brooklyn, NY > Web design and development for art and business > > em corey at gelform.com > ww http://www.gelform.com > ph 646/228.5048 > fx 866/502.4861 > IM gelform > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From bonsaime at gmail.com Wed May 6 19:22:17 2009 From: bonsaime at gmail.com (Jesse Callaway) Date: Wed, 6 May 2009 19:22:17 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <37412.82185.qm@web59516.mail.ac4.yahoo.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> Message-ID: I think the idea is that MySQL had a decent business model and was doing quite well. If Oracle does decide to shitcan it, it's GPL'd anyway and will live on kinda like CentOS does. -jesse On Wed, May 6, 2009 at 6:53 PM, SusanS wrote: > Now that Oracle has bought Sun (and?also MySQL),?is there any discussion in > the community about?a change in open-source databases? > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From bonsaime at gmail.com Wed May 6 19:23:00 2009 From: bonsaime at gmail.com (Jesse Callaway) Date: Wed, 6 May 2009 19:23:00 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> Message-ID: Ahem, I meant Sun. And I meant to not top-post, but here we go.... On Wed, May 6, 2009 at 7:22 PM, Jesse Callaway wrote: > I think the idea is that MySQL had a decent business model and was > doing quite well. If Oracle does decide to shitcan it, it's GPL'd > anyway and will live on kinda like CentOS does. > > -jesse > > On Wed, May 6, 2009 at 6:53 PM, SusanS wrote: >> Now that Oracle has bought Sun (and?also MySQL),?is there any discussion in >> the community about?a change in open-source databases? >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > From ramons at gmx.net Wed May 6 20:13:24 2009 From: ramons at gmx.net (David Krings) Date: Wed, 06 May 2009 20:13:24 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> Message-ID: <4A0227A4.80205@gmx.net> Jesse Callaway wrote: > I think the idea is that MySQL had a decent business model and was > doing quite well. If Oracle does decide to shitcan it, it's GPL'd > anyway and will live on kinda like CentOS does. > Besides that MySQL forked already and while I do like and use MySQL, there is still PostgreSQL (did I write that correctly, people always go bonkers when I write it wrong) and plenty of other options. Unless one has MySQL specific code (which would be a bad thing anyway) swapping out database engines should be fairly easy. Nice thing is that PHP supports pretty much any database engine out there. David From ant92083 at gmail.com Wed May 6 21:21:45 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Wed, 6 May 2009 21:21:45 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <4A0227A4.80205@gmx.net> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> Message-ID: <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> We use PostgreSQL for our environments. Although it is quite powerful there are some ease of use issues with tuning and getting it to perform at its maximum. But the great thing about PostgreSQL is transactions right out of the box, that has been the most useful feature so far. I haven't had a chance to play with Oracle but I don't see them GPL'ing that DB any time soon. Clients pay too much to use it. -Anthony On Wed, May 6, 2009 at 8:13 PM, David Krings wrote: > Jesse Callaway wrote: > >> I think the idea is that MySQL had a decent business model and was >> doing quite well. If Oracle does decide to shitcan it, it's GPL'd >> anyway and will live on kinda like CentOS does. >> >> > Besides that MySQL forked already and while I do like and use MySQL, there > is still PostgreSQL (did I write that correctly, people always go bonkers > when I write it wrong) and plenty of other options. Unless one has MySQL > specific code (which would be a bad thing anyway) swapping out database > engines should be fairly easy. Nice thing is that PHP supports pretty much > any database engine out there. > > David > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Wed May 6 22:16:02 2009 From: ken at secdat.com (Kenneth Downs) Date: Wed, 06 May 2009 22:16:02 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> Message-ID: <4A024462.4030106@secdat.com> Anthony Wlodarski wrote: > We use PostgreSQL for our environments. Although it is quite powerful there > are some ease of use issues with tuning and getting it to perform at its > maximum. But the great thing about PostgreSQL is transactions right out of > the box, that has been the most useful feature so far. > > I haven't had a chance to play with Oracle but I don't see them GPL'ing that > DB any time soon. Clients pay too much to use it. > I've been experimenting with some cross-platform features in the past few weeks, and I found myself surprised that PostgreSQL is a lot more powerful and flexible than I had realized, even though I've used it almost exclusively for the past 4-5 years. I was digging through the specs for MS SQL Server, and was surprised to find out how limited their triggers still are. I sort of figured they would have rocketed forward since last I used the product. Oracle seems to be the only contender for Postgres's overall power and flexibility (and here come the flames from those who say I put that backwards). MySQL still has a lot of growing up to do: 1) Triggers cannot see the value of auto_increment columns 2) Triggers cannot write to the tables being affected 3) Triggers do not fire on delete cascade ???!!!?? WTF?? 4) Insert undiscovered limitation here :) But to their credit, they do have "INSTEAD OF" triggers on views, a very grown up feature. There is still a soft spot in my heart for DB/2, since I got to code for it on the AS/400 years ago, it is also quite powerful and can be bent to your will with a little patience. > -Anthony > > On Wed, May 6, 2009 at 8:13 PM, David Krings wrote: > > >> Jesse Callaway wrote: >> >> >>> I think the idea is that MySQL had a decent business model and was >>> doing quite well. If Oracle does decide to shitcan it, it's GPL'd >>> anyway and will live on kinda like CentOS does. >>> >>> >>> >> Besides that MySQL forked already and while I do like and use MySQL, there >> is still PostgreSQL (did I write that correctly, people always go bonkers >> when I write it wrong) and plenty of other options. Unless one has MySQL >> specific code (which would be a bad thing anyway) swapping out database >> engines should be fairly easy. Nice thing is that PHP supports pretty much >> any database engine out there. >> >> David >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> >> > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -- Kenneth Downs Secure Data Software ken at secdat.com www.andromeda-project.org www.secdat.com Office: 631-689-7200 Cell: 631-379-0010 Fax: 631-689-0527 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Wed May 6 22:42:38 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Wed, 6 May 2009 22:42:38 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <4A024462.4030106@secdat.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> Message-ID: <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> Same here, I am still a "noob" to the SQL game but I prefer PostgreSQL over MySQL. The one thing I do find rewarding is that at the end of the day I can watch PostgreSQL run circles around MySQL in regards to performance. But those nice to haves are missed that make MySQL user friendly for the majority of the community (example: multiple inserts in one SQL statement, for Postgres you would have to loop to process all your inserts). Here is an example of a convenience that is not yet built into PostgreSQL (and if it is please correct me as I am using 8.1.1). INSERT INTO x (a,b) VALUES ('1', 'one'), ('2', 'two'), ('3', 'three') -Anthony On Wed, May 6, 2009 at 10:16 PM, Kenneth Downs wrote: > Anthony Wlodarski wrote: > > We use PostgreSQL for our environments. Although it is quite powerful there > are some ease of use issues with tuning and getting it to perform at its > maximum. But the great thing about PostgreSQL is transactions right out of > the box, that has been the most useful feature so far. > > I haven't had a chance to play with Oracle but I don't see them GPL'ing that > DB any time soon. Clients pay too much to use it. > > > > I've been experimenting with some cross-platform features in the past few > weeks, and I found myself surprised that PostgreSQL is a lot more powerful > and flexible than I had realized, even though I've used it almost > exclusively for the past 4-5 years. > > I was digging through the specs for MS SQL Server, and was surprised to > find out how limited their triggers still are. I sort of figured they would > have rocketed forward since last I used the product. > > Oracle seems to be the only contender for Postgres's overall power and > flexibility (and here come the flames from those who say I put that > backwards). > > MySQL still has a lot of growing up to do: > > 1) Triggers cannot see the value of auto_increment columns > 2) Triggers cannot write to the tables being affected > 3) Triggers do not fire on delete cascade ???!!!?? WTF?? > 4) Insert undiscovered limitation here :) > > But to their credit, they do have "INSTEAD OF" triggers on views, a very > grown up feature. > > There is still a soft spot in my heart for DB/2, since I got to code for it > on the AS/400 years ago, it is also quite powerful and can be bent to your > will with a little patience. > > -Anthony > > On Wed, May 6, 2009 at 8:13 PM, David Krings wrote: > > > > Jesse Callaway wrote: > > > > I think the idea is that MySQL had a decent business model and was > doing quite well. If Oracle does decide to shitcan it, it's GPL'd > anyway and will live on kinda like CentOS does. > > > > > Besides that MySQL forked already and while I do like and use MySQL, there > is still PostgreSQL (did I write that correctly, people always go bonkers > when I write it wrong) and plenty of other options. Unless one has MySQL > specific code (which would be a bad thing anyway) swapping out database > engines should be fairly easy. Nice thing is that PHP supports pretty much > any database engine out there. > > David > > _______________________________________________ > New York PHP User Group Community Talk Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/show_participation.php > > ------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/show_participation.php > > > > -- > Kenneth Downs > Secure Data Softwareken at secdat.com www.andromeda-project.org www.secdat.com > Office: 631-689-7200 > Cell: 631-379-0010 > Fax: 631-689-0527 > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From krozinov at gmail.com Thu May 7 03:10:17 2009 From: krozinov at gmail.com (Konstantin Rozinov) Date: Thu, 7 May 2009 03:10:17 -0400 Subject: [nycphp-talk] [fw-general] Survey: Development environment for PHP/ZFW In-Reply-To: <4A01A307.1070806@umn.edu> References: <49FC9656.6070003@binaryvibes.co.in> <1e556bd30905022048l692d6c3am3482830f6c9925f8@mail.gmail.com> <721f1cc50905040649u7f911263jf4607488ab2080b5@mail.gmail.com> <4A01A307.1070806@umn.edu> Message-ID: <865a7acf0905070010t55c75dfeq37afc8003768989e@mail.gmail.com> 1. Ubuntu 2. localhost 3. UltraEdit, but will be moving to Eclipse+PDT+Subversive (thanks to this thread) 4. SVN 5. Zend Debugger, and the standard echos, print_r, error_log On Wed, May 6, 2009 at 10:47 AM, Joelle Tegwen wrote: > 1 Ubuntu - upgrading to Jaunty today. :) > 2 localhost with separate test and production servers > 3 Eclipse with PHPEclipse and XMLBuddy > 4 svn > 5 A custom written debug script (to format things the right way) I've > installed xdebug but not used it. Just started using PHPUnit this project > and loving it although I'm not so good at testing as I go. I tried TDD but I > have to learn too much about how to write testable code first. > > I'll agree with the sub-thread on how to write good tests. It's really > tricky. But I figure if I start with writing any tests at least that's > progress. It's helped me clean up my code a lot. > > Joelle > > David Mintz wrote: > >> 1. Fedora Linux 10 >> >> 2. localhost >> >> 3. Zend IDE for Eclipse 6.1.2 >> >> 4. svn >> >> 5. Firebug for xhr; still trying to train myself w/ PHPUnit and vowing to >> do better; meanwhile, lots of echo and >> run-it-in-a-browser-and-see-what-happens [lowers eyes in shame] >> >> -- >> David Mintz >> http://davidmintz.org/ >> >> The subtle source is clear and bright >> The tributary streams flow through the darkness >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Thu May 7 09:07:18 2009 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 07 May 2009 09:07:18 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> Message-ID: <4A02DD06.20105@phpwerx.net> Anthony Wlodarski wrote: > Here is an example of a convenience that is not yet built into PostgreSQL > (and if it is please correct me as I am using 8.1.1). > > INSERT INTO x (a,b) > VALUES > ('1', 'one'), > ('2', 'two'), > ('3', 'three') It seems like this was added in 8.2, it's been a while since I messed around with PostgreSQL. Dan From dan.horning at planetnoc.com Thu May 7 09:16:39 2009 From: dan.horning at planetnoc.com (Daniel Horning) Date: Thu, 7 May 2009 09:16:39 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <4A02DD06.20105@phpwerx.net> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> <4A02DD06.20105@phpwerx.net> Message-ID: <002001c9cf16$0f296110$2d7c2330$@horning@planetnoc.com> > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org] On Behalf Of Dan Cech > > Anthony Wlodarski wrote: > > Here is an example of a convenience that is not yet built into > PostgreSQL > > (and if it is please correct me as I am using 8.1.1). > > > > INSERT INTO x (a,b) > > VALUES > > ('1', 'one'), > > ('2', 'two'), > > ('3', 'three') > > It seems like this was added in 8.2, it's been a while since I messed > around with PostgreSQL. > > Dan http://www.postgresql.org/docs/8.2/static/sql-insert.html just confirming Dan's statement as in the older versions multirow VALUE does not appear. From ps at blu-studio.com Thu May 7 09:18:55 2009 From: ps at blu-studio.com (Peter Sawczynec) Date: Thu, 7 May 2009 09:18:55 -0400 Subject: [nycphp-talk] JPEG Preview of PDFs Message-ID: <001201c9cf16$6078cf10$216a6d30$@com> I need on file upload to grab the uploaded PDF and generate a JPEG preview of page 1 of that PDF. Any thoughts, directions. Warmest regards, ? Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com From scott at crisscott.com Thu May 7 09:32:14 2009 From: scott at crisscott.com (Scott Mattocks) Date: Thu, 07 May 2009 09:32:14 -0400 Subject: [nycphp-talk] JPEG Preview of PDFs In-Reply-To: <001201c9cf16$6078cf10$216a6d30$@com> References: <001201c9cf16$6078cf10$216a6d30$@com> Message-ID: <4A02E2DE.9020007@crisscott.com> Peter Sawczynec wrote: > I need on file upload to grab the uploaded PDF > and generate a JPEG preview of page 1 of that PDF. exec('/usr/bin/convert /path/to/pdf.pdf[0] /path/to/image.jpg'); -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com From mitch.pirtle at gmail.com Thu May 7 10:00:51 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 7 May 2009 10:00:51 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <4A01C106.4090802@gmx.net> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> <4A01C106.4090802@gmx.net> Message-ID: <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> I think the biggest pain most of us face is that web development is always of the oh-my-god-we-are-all-going-to-die-if-we-dont-launch-freaking-TOMORROW variety of projects. If a client ever came to me and said "You know Mitch, take your time on this one, I'd really like to see it done right" I would die of a heart attack right on the spot. That or immediately search for the hidden cameras, fully expecting to be on Punked or something like that. Regardless, one thing I've been into for a while is test driven development, which although does slow down the development process somewhat, also accelerates the test and debugging process: http://en.wikipedia.org/wiki/Test-driven_development It *is* possible to incorporate some sort of testing into the development cycle, which is required when you start working on bigger, more complex systems. Plus taking the TDD approach really forces you (and your client) to fully understand just what it is that you need to code, before you start coding. Project killing things like scope creep then becomes a conscious act instead of a forced, constant and unavoidable burden. -- Mitch From y2rob at aol.com Thu May 7 10:08:47 2009 From: y2rob at aol.com (y2rob at aol.com) Date: Thu, 07 May 2009 10:08:47 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com><4A01C106.4090802@gmx.net> <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> Message-ID: <8CB9D3478FC5A30-A50-A56@WEBMAIL-MA11.sysops.aol.com> hello mitch, nicely put man and i totally know where you're coming from.? i to hate those type of projects where you're expected to create miracles to get a site up and running in a short amount of time.? not only perform the miracle, but brunt the pressures while developing with this tight deadline; not an easy task at all. thanks for your post and hang in there :) *group hug!!! ~rob -----Original Message----- From: Mitch Pirtle To: NYPHP Talk Sent: Thu, 7 May 2009 10:00 am Subject: Re: [nycphp-talk] unit testing, was Survey: Development environment.... I think the biggest pain most of us face is that web development is always of the oh-my-god-we-are-all-going-to-die-if-we-dont-launch-freaking-TOMORROW variety of projects. If a client ever came to me and said "You know Mitch, take your time on this one, I'd really like to see it done right" I would die of a heart attack right on the spot. That or immediately search for the hidden cameras, fully expecting to be on Punked or something like that. Regardless, one thing I've been into for a while is test driven development, which although does slow down the development process somewhat, also accelerates the test and debugging process: http://en.wikipedia.org/wiki/Test-driven_development It *is* possible to incorporate some sort of testing into the development cycle, which is required when you start working on bigger, more complex systems. Plus taking the TDD approach really forces you (and your client) to fully understand just what it is that you need to code, before you start coding. Project killing things like scope creep then becomes a conscious act instead of a forced, constant and unavoidable burden. -- Mitch _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From leam at reuel.net Thu May 7 10:22:37 2009 From: leam at reuel.net (Leam Hall) Date: Thu, 07 May 2009 10:22:37 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> <4A01C106.4090802@gmx.net> <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> Message-ID: <4A02EEAD.4050301@reuel.net> Well, let's hope you don't have any heart attacks soon! however, I do wonder how you *real* developers get specs and requirements? Are they that loose until you build and the client says "that's not what I wanted"? Is there room or time for better requirements gathering up front so you save time down the road? That seems to be part of the TDD process; your requirements specify the tests. Or do I not get it? Leam Mitch Pirtle wrote: > I think the biggest pain most of us face is that web development is > always of the oh-my-god-we-are-all-going-to-die-if-we-dont-launch-freaking-TOMORROW > variety of projects. If a client ever came to me and said "You know > Mitch, take your time on this one, I'd really like to see it done > right" I would die of a heart attack right on the spot. That or > immediately search for the hidden cameras, fully expecting to be on > Punked or something like that. > > Regardless, one thing I've been into for a while is test driven > development, which although does slow down the development process > somewhat, also accelerates the test and debugging process: > > http://en.wikipedia.org/wiki/Test-driven_development > > It *is* possible to incorporate some sort of testing into the > development cycle, which is required when you start working on bigger, > more complex systems. Plus taking the TDD approach really forces you > (and your client) to fully understand just what it is that you need to > code, before you start coding. Project killing things like scope creep > then becomes a conscious act instead of a forced, constant and > unavoidable burden. > > -- Mitch From leam at reuel.net Thu May 7 10:26:40 2009 From: leam at reuel.net (Leam Hall) Date: Thu, 07 May 2009 10:26:40 -0400 Subject: [nycphp-talk] ini_set and file_get_contents In-Reply-To: <5d515c620905061019k4f80b041x27ab333bd5cc5f2a@mail.gmail.com> References: <4A019B04.4090406@reuel.net> <117286890905060722q5510487ia9a5d8dc4f807951@mail.gmail.com> <5d515c620905061019k4f80b041x27ab333bd5cc5f2a@mail.gmail.com> Message-ID: <4A02EFA0.7060701@reuel.net> Brent, you are a wonderful person! No matter what Hans, Mitch, David, and maybe a few others say... :) Wasn't able to change anything that would allow file_get_contents but the curl code you provided works like a charm! This is a growth point for me so it's nice to be successful for a change. Thanks! Leam Brent Baisley wrote: > You should file_get_contents to retrieve URLs, which is what you seem > to be trying to do. It doesn't handle failures (i.e. timeout, > redirects) very well at all. You should use curl if you need to > retrieve a remote file. > $url = 'http://yourfile.com'; > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, $url); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); > curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); > $result = curl_exec($ch); > if ( $result===false ) { > echo curl_errno($ch).' '.curl_error($ch); > } > curl_close($ch); > > Obviously you would want to do something different in the event there > is an error. Hopefully curl is enabled on your hosting server. > > Brent Baisley > From ant92083 at gmail.com Thu May 7 10:38:02 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Thu, 7 May 2009 10:38:02 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <-7207580371927133601@unknownmsgid> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> <4A02DD06.20105@phpwerx.net> <-7207580371927133601@unknownmsgid> Message-ID: <43bc541c0905070738l6669840exe307954aaa2afd1@mail.gmail.com> Looks like I am upgrading my DB on my Ubuntu machine later tonight. Cheers Dan for pointing that out! -Anthony On Thu, May 7, 2009 at 9:16 AM, Daniel Horning wrote: > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org [mailto:talk- > > bounces at lists.nyphp.org] On Behalf Of Dan Cech > > > > Anthony Wlodarski wrote: > > > Here is an example of a convenience that is not yet built into > > PostgreSQL > > > (and if it is please correct me as I am using 8.1.1). > > > > > > INSERT INTO x (a,b) > > > VALUES > > > ('1', 'one'), > > > ('2', 'two'), > > > ('3', 'three') > > > > It seems like this was added in 8.2, it's been a while since I messed > > around with PostgreSQL. > > > > Dan > > > http://www.postgresql.org/docs/8.2/static/sql-insert.html > > just confirming Dan's statement as in the older versions multirow VALUE > does > not appear. > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Thu May 7 11:16:07 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 7 May 2009 11:16:07 -0400 (EDT) Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> Message-ID: On Thu, 7 May 2009, Mitch Pirtle wrote: > I think the biggest pain most of us face is that web development is > always of the oh-my-god-we-are-all-going-to-die-if-we-dont-launch-freaking-TOMORROW > variety of projects. Tomorrow? You mean yesterday surely?! :-) -- Aj. From ajai at bitblit.net Thu May 7 11:30:26 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 7 May 2009 11:30:26 -0400 (EDT) Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> Message-ID: On Wed, 6 May 2009, David Mintz wrote: > It's a little > harder to create simulated http environments complete with cookies and > sessions My usual answer: it depends :-) Some PHP frameworks, as well supporting unit tests, go a little further and provide functional testing which simulates almost a full browsing session, e.g. in symfony: // Create a new test browser $browser = new sfTestBrowser(); $browser-> get('/foobar/index')-> isStatusCode(200)-> isRequestParameter('module', 'foobar')-> isRequestParameter('action', 'index')-> checkResponseElement('body', '!/This is a temporary page/'); To test for cookies: $b->test()->is($request->getCookie('foo'), 'bar'); // Incoming cookie $cookies = $response->getCookies(); $b->test()->is($cookies['foo'], 'foo=bar'); // Outgoing cookie To test redirects: $b-> get('/foobar/edit/id/1')-> click('go', array('name' => 'dummy'))-> isStatusCode(200)-> isRequestParameter('module', 'foobar')-> isRequestParameter('action', 'update')-> isRedirected()-> // Check that the response is a redirect followRedirect()-> // Manually follow the redirection isStatusCode(200)-> isRequestParameter('module', 'foobar')-> isRequestParameter('action', 'show'); To check for certain elements in the DOM: b->get('/foobar/edit/id/1'); $dom = $b->getResponseDom(); $b->test()->is($dom->getElementsByTagName('input')->item(1)->getAttribute('type'),'text'); I dont know about the Zend Library but symfony has had this for years which goes a long way towards encouraging TDD. -- Aj. From corey at gelform.com Thu May 7 12:44:41 2009 From: corey at gelform.com (Corey H Maass - gelform.com) Date: Thu, 07 May 2009 12:44:41 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <4A02EEAD.4050301@reuel.net> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> <4A01C106.4090802@gmx.net> <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> <4A02EEAD.4050301@reuel.net> Message-ID: <1241714681.28022.1314316757@webmail.messagingengine.com> It's cheeky, but you can demand these things if you work for yourself. If you can to calm the inner 'freakout' voice, you can usually convince a client that doing it the right way is worth the little extra time (money is another matter :-P ). When I was full-time freelance a few years ago I had this epiphany. I had the luxury of a few regular clients that I worked well with, so when a new client came thru my door, I set high expectations. Sort of the other side of 'firing clients' is 'hiring clients'. If yre not going to work well together, don't work with them. But again you need to be in a position to not desperately need the work. :-) Corey On Thu, 07 May 2009 10:22:37 -0400, "Leam Hall" said: > Well, let's hope you don't have any heart attacks soon! however, I do > wonder how you *real* developers get specs and requirements? Are they > that loose until you build and the client says "that's not what I > wanted"? > > Is there room or time for better requirements gathering up front so you > save time down the road? That seems to be part of the TDD process; your > requirements specify the tests. Or do I not get it? > > Leam > > > Mitch Pirtle wrote: > > I think the biggest pain most of us face is that web development is > > always of the oh-my-god-we-are-all-going-to-die-if-we-dont-launch-freaking-TOMORROW > > variety of projects. If a client ever came to me and said "You know > > Mitch, take your time on this one, I'd really like to see it done > > right" I would die of a heart attack right on the spot. That or > > immediately search for the hidden cameras, fully expecting to be on > > Punked or something like that. > > > > Regardless, one thing I've been into for a while is test driven > > development, which although does slow down the development process > > somewhat, also accelerates the test and debugging process: > > > > http://en.wikipedia.org/wiki/Test-driven_development > > > > It *is* possible to incorporate some sort of testing into the > > development cycle, which is required when you start working on bigger, > > more complex systems. Plus taking the TDD approach really forces you > > (and your client) to fully understand just what it is that you need to > > code, before you start coding. Project killing things like scope creep > > then becomes a conscious act instead of a forced, constant and > > unavoidable burden. > > > > -- Mitch > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php // Corey H Maass Gelform Design Brooklyn, NY Web design and development for art and business em corey at gelform.com ww http://www.gelform.com ph 646/228.5048 fx 866/502.4861 IM gelform From ramons at gmx.net Thu May 7 13:19:04 2009 From: ramons at gmx.net (David Krings) Date: Thu, 07 May 2009 13:19:04 -0400 Subject: [nycphp-talk] unit testing, was Survey: Development environment.... In-Reply-To: <4A02EEAD.4050301@reuel.net> References: <721f1cc50905060637l4afeb0e4hab0835985fa7932d@mail.gmail.com> <4A01C106.4090802@gmx.net> <330532b60905070700v1eae622cu2250467f33e7b8c2@mail.gmail.com> <4A02EEAD.4050301@reuel.net> Message-ID: <4A031808.7020307@gmx.net> Leam Hall wrote: > Well, let's hope you don't have any heart attacks soon! however, I do > wonder how you *real* developers get specs and requirements? Are they > that loose until you build and the client says "that's not what I wanted"? Although I work in a software company I?d guess the same mechanisms apply. Here our executive team has to sign off on a statement of scope, then a Business Analyst (could be a developer) writes a Functional Requirements document that details the expectations, how the UI is supposed to look like, and what happens when this or that button or so is clicked, when things are to be enabled or disabled, and so on. From that both test plans and tech spec s are created. The functional requirements, the tech spec, and the test plan are reviewed and signed off on. Next step is coding and showing the outcome in a peer review, but for more complex things it is recommended to add a "proof of concept" demo. The app doesn?t do much, but the requester gets an idea as to how things will look like and work. That point is the last point to make any changes. Often enough the requesters are not that technical and need something to look at and play around with to get an idea as to what they want. After such a proof of concept demo the project plan gets reviewed as well to include any time needed. The developers need to be very sure about the requester being knowledgeable and educated enough to clearly state what they want. That includes asking more questions and IMHO also saying "No" to things. > > Is there room or time for better requirements gathering up front so you > save time down the road? That seems to be part of the TDD process; your > requirements specify the tests. Or do I not get it? > Yes, yes, yes...anything you do not do in the beginning you will do later, just that it takes three times as much time and is three times as annoying. We had a few requests that sounded good at the beginning, but after several meetings we were neither on the same page nor did we have a good solution that everyone liked. We didn?t do that project and sent it back to the requestor. He came back with a much better request and with a lot of KISS we crafted an awesome feature. The users love it and it is even more than they needed and hoped for. The original approach would have taken twice as long overall and created a feature so intimidating and complicated nobody would have used it. Spend a lot of time in the beginning to really hammer things out and to document everything, especially what the new foobar is not supposed to do. That way no one can come by and request that it does do that. Process is hard and sticking to it even harder. And the first thing to go in a time crunch is communication, the second thing close behind is quality. So, yea, dear requester, you can have the new gadget in two months, but it will be crappy. David From vtbludgeon at gmail.com Thu May 7 22:10:54 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 7 May 2009 22:10:54 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <4A02DD06.20105@phpwerx.net> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> <4A02DD06.20105@phpwerx.net> Message-ID: <721f1cc50905071910m1926463bn6031a41a006356f3@mail.gmail.com> One nice thing about MySQL, however, is that replication is pretty easy. I have no experience with PostgreSQL but after doing a little research it looks like replication in PostgreSQL is a comparative PITA. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Fri May 8 10:17:46 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Fri, 8 May 2009 10:17:46 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <721f1cc50905071910m1926463bn6031a41a006356f3@mail.gmail.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> <4A02DD06.20105@phpwerx.net> <721f1cc50905071910m1926463bn6031a41a006356f3@mail.gmail.com> Message-ID: <43bc541c0905080717u4bae08eap569726806c22100f@mail.gmail.com> It can be a PITA sometimes. The typical usage is the master-slave replication. Even with this type of replication there can be some data loss too. -Anthony On Thu, May 7, 2009 at 10:10 PM, David Mintz wrote: > > One nice thing about MySQL, however, is that replication is pretty easy. I > have no experience with PostgreSQL but after doing a little research it > looks like replication in PostgreSQL is a comparative PITA. > > -- > David Mintz > http://davidmintz.org/ > > The subtle source is clear and bright > The tributary streams flow through the darkness > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbaltz at altzman.com Fri May 8 11:28:16 2009 From: jbaltz at altzman.com (Jerry B. Altzman) Date: Fri, 08 May 2009 11:28:16 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <43bc541c0905080717u4bae08eap569726806c22100f@mail.gmail.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> <4A02DD06.20105@phpwerx.net> <721f1cc50905071910m1926463bn6031a41a006356f3@mail.gmail.com> <43bc541c0905080717u4bae08eap569726806c22100f@mail.gmail.com> Message-ID: <4A044F90.4020406@altzman.com> on 5/8/2009 10:17 AM Anthony Wlodarski said the following: > It can be a PITA sometimes. The typical usage is the master-slave > replication. Even with this type of replication there can be some data > loss too. MySQL replication is great when it works. With 5.1 they've introduced row-level replication (as opposed to statement-level replication) which can help in many cases (where you're using MySQL to do heavy processing, like their internal GIS functions). MySQL replication can also fail silently in the presence of brief network disconnections. It's not REAL redundancy (like Oracle RAC) but you get what you pay for, and having a slave for backup purposes is handy. > -Anthony //jbaltz -- jerry b. altzman jbaltz at altzman.com www.jbaltz.com thank you for contributing to the heat death of the universe. From ant92083 at gmail.com Fri May 8 11:44:26 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Fri, 8 May 2009 11:44:26 -0400 Subject: [nycphp-talk] databases with PHP In-Reply-To: <4A044F90.4020406@altzman.com> References: <37412.82185.qm@web59516.mail.ac4.yahoo.com> <4A0227A4.80205@gmx.net> <43bc541c0905061821r48085192pf4260251ca7a786b@mail.gmail.com> <4A024462.4030106@secdat.com> <43bc541c0905061942y6253cab7q389de131192c43fe@mail.gmail.com> <4A02DD06.20105@phpwerx.net> <721f1cc50905071910m1926463bn6031a41a006356f3@mail.gmail.com> <43bc541c0905080717u4bae08eap569726806c22100f@mail.gmail.com> <4A044F90.4020406@altzman.com> Message-ID: <43bc541c0905080844ga0a659w41d6010f6ecad4a0@mail.gmail.com> Yeah at my current company we are thinking of a master-slave implementation and we can speed up the website by making read only requests head to the slave server. When working with MySQL is there a stop gap to prevent requesting data from the slave that is currently in transit from the master server? (I guess a check to see if it is in transit and if so it has to wait for the slave to be updated.) -Anthony On Fri, May 8, 2009 at 11:28 AM, Jerry B. Altzman wrote: > on 5/8/2009 10:17 AM Anthony Wlodarski said the following: > >> It can be a PITA sometimes. The typical usage is the master-slave >> replication. Even with this type of replication there can be some data loss >> too. >> > > MySQL replication is great when it works. > With 5.1 they've introduced row-level replication (as opposed to > statement-level replication) which can help in many cases (where you're > using MySQL to do heavy processing, like their internal GIS functions). > > MySQL replication can also fail silently in the presence of brief network > disconnections. > > It's not REAL redundancy (like Oracle RAC) but you get what you pay for, > and having a slave for backup purposes is handy. > > -Anthony >> > > //jbaltz > -- > jerry b. altzman jbaltz at altzman.com www.jbaltz.com > thank you for contributing to the heat death of the universe. > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From petros.ziogas at gmail.com Mon May 11 04:07:30 2009 From: petros.ziogas at gmail.com (Petros Ziogas) Date: Mon, 11 May 2009 11:07:30 +0300 Subject: [nycphp-talk] ini_set and file_get_contents In-Reply-To: <4A02EFA0.7060701@reuel.net> References: <4A019B04.4090406@reuel.net> <117286890905060722q5510487ia9a5d8dc4f807951@mail.gmail.com> <5d515c620905061019k4f80b041x27ab333bd5cc5f2a@mail.gmail.com> <4A02EFA0.7060701@reuel.net> Message-ID: <236c3b210905110107y5d2a6e5fp57c47a0f5c13f25f@mail.gmail.com> I liked the warm thanks, made my morning. curl is very powerfull and it is a tool to have in your arsenal. The problem is that many hosts have it disabled. Petros Ziogas http://www.royalblue.gr On Thu, May 7, 2009 at 5:26 PM, Leam Hall wrote: > Brent, you are a wonderful person! No matter what Hans, Mitch, David, and > maybe a few others say... :) > > Wasn't able to change anything that would allow file_get_contents but the > curl code you provided works like a charm! This is a growth point for me so > it's nice to be successful for a change. > > Thanks! > > Leam > > Brent Baisley wrote: > >> You should file_get_contents to retrieve URLs, which is what you seem >> to be trying to do. It doesn't handle failures (i.e. timeout, >> redirects) very well at all. You should use curl if you need to >> retrieve a remote file. >> $url = 'http://yourfile.com'; >> $ch = curl_init(); >> curl_setopt($ch, CURLOPT_URL, $url); >> curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); >> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); >> $result = curl_exec($ch); >> if ( $result===false ) { >> echo curl_errno($ch).' '.curl_error($ch); >> } >> curl_close($ch); >> >> Obviously you would want to do something different in the event there >> is an error. Hopefully curl is enabled on your hosting server. >> >> Brent Baisley >> >> _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From oorza2k5 at gmail.com Thu May 14 14:12:15 2009 From: oorza2k5 at gmail.com (Eddie Drapkin) Date: Thu, 14 May 2009 14:12:15 -0400 Subject: [nycphp-talk] Switch-Case v. if/else Message-ID: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> Does anyone know how the PHP Interpreter pulls switch/case statements together? Does it emulate a C compiler and, for larger case sets, build a huge if/else cascade? Does it do this always? Is there any way to know when it builds a jump table (like a s/c is supposed to)? I've got a slow script (it's eating ~85% of execution time) that I can't work around and one of the slower parts is a switch case (which is slightly faster than manually building an if/else cascade) and was wondering if anyone had any performance tips for cases like these. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Thu May 14 15:42:02 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Thu, 14 May 2009 15:42:02 -0400 Subject: [nycphp-talk] Switch-Case v. if/else Message-ID: <4a0c73fc.27025a0a.659b.31c1@mx.google.com> How many cases are in this switch statement that is causing it to be slow? -----Original Message----- From: Eddie Drapkin Sent: Thursday, May 14, 2009 2:12 PM To: NYPHP Talk Subject: [nycphp-talk] Switch-Case v. if/else Does anyone know how the PHP Interpreter pulls switch/case statements together?? Does it emulate a C compiler and, for larger case sets, build a huge if/else cascade? Does it do this always?? Is there any way to know when it builds a jump table (like a s/c is supposed to)?? I've got a slow script (it's eating ~85% of execution time) that I can't work around and one of the slower parts is a switch case (which is slightly faster than manually building an if/else cascade) and was wondering if anyone had any performance tips for cases like these. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorgan at donaldorgan.com Thu May 14 16:44:46 2009 From: dorgan at donaldorgan.com (Donald J. Organ IV) Date: Thu, 14 May 2009 16:44:46 -0400 (EDT) Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> Message-ID: <22985480.731242333886297.JavaMail.root@twoguyshosting.com.> If I remember correctly, if/else if/else statements are faster than Switch-Case. I would suggest converting them and see if you get a performance increase. ----- Original Message ----- From: "Eddie Drapkin" To: "NYPHP Talk" Sent: Thursday, May 14, 2009 2:12:15 PM GMT -05:00 US/Canada Eastern Subject: [nycphp-talk] Switch-Case v. if/else Does anyone know how the PHP Interpreter pulls switch/case statements together? Does it emulate a C compiler and, for larger case sets, build a huge if/else cascade? Does it do this always? Is there any way to know when it builds a jump table (like a s/c is supposed to)? I've got a slow script (it's eating ~85% of execution time) that I can't work around and one of the slower parts is a switch case (which is slightly faster than manually building an if/else cascade) and was wondering if anyone had any performance tips for cases like these. _______________________________________________ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Thu May 14 16:47:20 2009 From: ben at projectskyline.com (Ben Sgro) Date: Thu, 14 May 2009 16:47:20 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <22985480.731242333886297.JavaMail.root@twoguyshosting.com.> References: <22985480.731242333886297.JavaMail.root@twoguyshosting.com.> Message-ID: <4A0C8358.80606@projectskyline.com> Hello, How do you know the switch statement is your performance bottleneck? Did you profile the application? Care to share the code? - Ben Donald J. Organ IV wrote: > If I remember correctly, if/else if/else statements are faster than > Switch-Case. > > I would suggest converting them and see if you get a performance increase. > > ----- Original Message ----- > From: "Eddie Drapkin" > To: "NYPHP Talk" > Sent: Thursday, May 14, 2009 2:12:15 PM GMT -05:00 US/Canada Eastern > Subject: [nycphp-talk] Switch-Case v. if/else > > Does anyone know how the PHP Interpreter pulls switch/case statements > together? Does it emulate a C compiler and, for larger case sets, > build a huge if/else cascade? Does it do this always? Is there any > way to know when it builds a jump table (like a s/c is supposed to)? > I've got a slow script (it's eating ~85% of execution time) that I > can't work around and one of the slower parts is a switch case (which > is slightly faster than manually building an if/else cascade) and was > wondering if anyone had any performance tips for cases like these. > > _______________________________________________ New York PHP User > Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/show_participation.php > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From lists at zaunere.com Thu May 14 16:49:40 2009 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 14 May 2009 16:49:40 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> References: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> Message-ID: <0abd01c9d4d5$806c6600$81453200$@com> > Does anyone know how the PHP Interpreter pulls switch/case statements > together? Does it emulate a C compiler and, for larger case sets, > build a huge if/else cascade? Does it do this always? Is there any way Since PHP isn't really compiled, there are some inefficiencies when compared with something like C. I don't remember the exact mechanics, but switch is generally slower than if/else and less optimizable (word?) when it comes to opcode caching/etc.. > to know when it builds a jump table (like a s/c is supposed to)? I've > got a slow script (it's eating ~85% of execution time) that I can't > work around and one of the slower parts is a switch case (which is > slightly faster than manually building an if/else cascade) and was > wondering if anyone had any performance tips for cases like these. How many cases do you have? Could you refactor into a loop? Are you doing string comparisons, or can they be converted to numeric tests? Could some of the logic be reduced/spread out into a database or some other process? H From tmpvar at gmail.com Thu May 14 17:07:33 2009 From: tmpvar at gmail.com (Elijah Insua) Date: Thu, 14 May 2009 17:07:33 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <0abd01c9d4d5$806c6600$81453200$@com> References: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> <0abd01c9d4d5$806c6600$81453200$@com> Message-ID: <2b4feca10905141407t13e80fc2mb3e8aec803beba2f@mail.gmail.com> +1 for profiling (http://www.xdebug.org/) I nominate Caching as well. -- Elijah On Thu, May 14, 2009 at 4:49 PM, Hans Zaunere wrote: > > Does anyone know how the PHP Interpreter pulls switch/case statements > > together? Does it emulate a C compiler and, for larger case sets, > > build a huge if/else cascade? Does it do this always? Is there any way > > Since PHP isn't really compiled, there are some inefficiencies when > compared > with something like C. I don't remember the exact mechanics, but switch is > generally slower than if/else and less optimizable (word?) when it comes to > opcode caching/etc.. > > > to know when it builds a jump table (like a s/c is supposed to)? I've > > got a slow script (it's eating ~85% of execution time) that I can't > > work around and one of the slower parts is a switch case (which is > > slightly faster than manually building an if/else cascade) and was > > wondering if anyone had any performance tips for cases like these. > > How many cases do you have? Could you refactor into a loop? Are you doing > string comparisons, or can they be converted to numeric tests? Could some > of the logic be reduced/spread out into a database or some other process? > > H > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Thu May 14 17:14:31 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Thu, 14 May 2009 17:14:31 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <2b4feca10905141407t13e80fc2mb3e8aec803beba2f@mail.gmail.com> References: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> <0abd01c9d4d5$806c6600$81453200$@com> <2b4feca10905141407t13e80fc2mb3e8aec803beba2f@mail.gmail.com> Message-ID: <43bc541c0905141414r61528423o1b6c5ea1839b79c6@mail.gmail.com> Would this be a case where APC would decrease execution time of the script? -Anthony On Thu, May 14, 2009 at 5:07 PM, Elijah Insua wrote: > +1 for profiling (http://www.xdebug.org/) > > I nominate Caching as well. > > -- Elijah > > > On Thu, May 14, 2009 at 4:49 PM, Hans Zaunere wrote: > >> > Does anyone know how the PHP Interpreter pulls switch/case statements >> > together? Does it emulate a C compiler and, for larger case sets, >> > build a huge if/else cascade? Does it do this always? Is there any way >> >> Since PHP isn't really compiled, there are some inefficiencies when >> compared >> with something like C. I don't remember the exact mechanics, but switch >> is >> generally slower than if/else and less optimizable (word?) when it comes >> to >> opcode caching/etc.. >> >> > to know when it builds a jump table (like a s/c is supposed to)? I've >> > got a slow script (it's eating ~85% of execution time) that I can't >> > work around and one of the slower parts is a switch case (which is >> > slightly faster than manually building an if/else cascade) and was >> > wondering if anyone had any performance tips for cases like these. >> >> How many cases do you have? Could you refactor into a loop? Are you >> doing >> string comparisons, or can they be converted to numeric tests? Could some >> of the logic be reduced/spread out into a database or some other process? >> >> H >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcampbell1 at gmail.com Thu May 14 17:38:31 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Thu, 14 May 2009 17:38:31 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> References: <68de37340905141112w22e57925ubbcfd00a09c5e872@mail.gmail.com> Message-ID: <8f0676b40905141438i4b03702eyb618c6755105da13@mail.gmail.com> PHP should run ~1M switch tests per second on decent hardware. Either you are misinterpreting you profiling data, or running a switch statement a hell of a lot of time. I can't imagine any sort of if/else vs switch vs. jump table is going to make much of a difference. At best you will see a speedup of 30% or so, but that won't really fix the underlying problem. On Thu, May 14, 2009 at 2:12 PM, Eddie Drapkin wrote: > Does anyone know how the PHP Interpreter pulls switch/case statements > together?? Does it emulate a C compiler and, for larger case sets, build a > huge if/else cascade? Does it do this always?? Is there any way to know when > it builds a jump table (like a s/c is supposed to)?? I've got a slow script > (it's eating ~85% of execution time) that I can't work around and one of the > slower parts is a switch case (which is slightly faster than manually > building an if/else cascade) and was wondering if anyone had any performance > tips for cases like these. > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From ramons at gmx.net Thu May 14 21:23:44 2009 From: ramons at gmx.net (David Krings) Date: Thu, 14 May 2009 21:23:44 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <22985480.731242333886297.JavaMail.root@twoguyshosting.com.> References: <22985480.731242333886297.JavaMail.root@twoguyshosting.com.> Message-ID: <4A0CC420.9050909@gmx.net> Donald J. Organ IV wrote: > If I remember correctly, if/else if/else statements are faster than > Switch-Case. I heard that the other way around, but that doesn't mean anything. I googled switch versus if else and looked at various speed tests that people did. I found a few articles discussing PHP specifically, such as this one: http://rob.sun3.org/php-code/switch-vs-if/ There it states: "The switch construct is generally more than twice as fast at matching a simple integer within a single large set of conditions." In the end I think it matters only when that part of code gets hit many times so that half a second difference in execution really starts to hurt badly. Contrary to that is the opinion demonstrated on this page: http://www.php.lt/benchmark/phpbench.php Maybe the difference doesn't come out enough with only 1,000 iterations. > I would suggest converting them and see if you get a performance increase. Depending on how many switch cases there are that may be quite some effort. Switch takes the condition and tests against each case until it finds a match or gets to the end of the entire switch block. So if it has to go through many cases I could think of two less invasive changes: - rearrange the order of the cases so that the most likely ones are at the top - split the switch into multiple switches, but that depends on being able to organize the cases into groups One other thought that comes to mind is that maybe not the switch statement itself is slow, but the code that gets executed once a case match is found. The comparison on the benchmark page mentioned above makes me believe that this might be an option. Others already hinted to using a profiler, which is likely to be the quickest way to find the real bottleneck. What all pages I looked at suggested was using === instead of == for the comparison. David From oorza2k5 at gmail.com Thu May 14 21:27:01 2009 From: oorza2k5 at gmail.com (oorza2k5 at gmail.com) Date: Fri, 15 May 2009 01:27:01 +0000 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <0015175708f8360cd60469e72d1e@google.com> Message-ID: <0016368e205663f4120469e9574f@google.com> oops, just sent this to one guy =\ On May 14, 2009 3:52pm, oorza2k5 at gmail.com wrote: > Alright! answers :P > Profiling the code, this script (which bottlenecks on the switch-case) is > 82% of execution time __with__ APC. Of the script itself, ~45% of the > execution time is this particular switch-case. > I can't send the code, NDA's and whatnot, but it was basically (these are > all string comparisons that can't be refactored into numerical > comparisons, I pulled two cases out into a loop for that): > if($) { > } elseif ($b || $c || $d || $e) { > ) elseif ($f || $g) { > } else { > } > After changing it to > switch($condition) { > case 'a': > blah; > case 'b': > case 'c': > case 'd': > case 'e': > blah > case 'f': > case 'g': > blah > default: > blah > that conditional is about 5% faster. > The script itself isn't slow, it's that it's an autoloader that has to be > ran 15-30 times per pageload and there's no viable way to make the > necessary infrastructure changes to remove it, nor is it viable to > require() manually, as that would take even more time. Before anyone > suggests, the original __autoload() was >90% of page time, and I split it > into an autoloading class and registered 4 different methods on the > autoloading stack ordered, of course, in order from most->least used. > One of the things I was thinking about trying was keeping track of > classnames and paths in an internal array and serializing that resulting > array and pushing it into and pulling it out of APC (in the destructor > and constructor, respectively) and the first method on the autoloading > stack would check for $this->includeMap[$className] but I'm unsure if > that would be a sane approach or not. > On May 14, 2009 5:38pm, John Campbell jcampbell1 at gmail.com> wrote: > > PHP should run ~1M switch tests per second on decent hardware. Either > > > > you are misinterpreting you profiling data, or running a switch > > > > statement a hell of a lot of time. I can't imagine any sort of > > > > if/else vs switch vs. jump table is going to make much of a > > > > difference. At best you will see a speedup of 30% or so, but that > > > > won't really fix the underlying problem. > > > > > > > > On Thu, May 14, 2009 at 2:12 PM, Eddie Drapkin oorza2k5 at gmail.com> > wrote: > > > > > Does anyone know how the PHP Interpreter pulls switch/case statements > > > > > together? Does it emulate a C compiler and, for larger case sets, > build a > > > > > huge if/else cascade? Does it do this always? Is there any way to > know when > > > > > it builds a jump table (like as/c is supposed to)? I've got a slow > script > > > > > (it's eating ~85% of execution time) that I can't work around and one > of the > > > > > slower parts is a switch case (which is slightly faster than manually > > > > > building an if/else cascade) and was wondering if anyone had any > performance > > > > > tips for cases like these. > > > > > > > > > > _______________________________________________ > > > > > New York PHP User Group Community Talk Mailing List > > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > _______________________________________________ > > > > New York PHP User Group Community Talk Mailing List > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > http://www.nyphp.org/show_participation.php > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amuraco at gmail.com Thu May 14 22:10:24 2009 From: amuraco at gmail.com (Andrew Muraco) Date: Thu, 14 May 2009 22:10:24 -0400 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <0016368e205663f4120469e9574f@google.com> References: <0016368e205663f4120469e9574f@google.com> Message-ID: <4A0CCF10.7090404@gmail.com> How about this for an idea: Write the code so that the switch returns the content of the case as a function, this way, you can hopefully avoid having to do all those comparisons. (obviously you would then be able to use this anonymous function in place of the switch) Not sure if your code would allow it tho. -Andrew Muraco oorza2k5 at gmail.com wrote: > oops, just sent this to one guy =\ > > On May 14, 2009 3:52pm, oorza2k5 at gmail.com wrote: > > Alright! answers :P > > > > Profiling the code, this script (which bottlenecks on the > switch-case) is 82% of execution time __with__ APC. Of the script > itself, ~45% of the execution time is this particular switch-case. > > > > I can't send the code, NDA's and whatnot, but it was basically > (these are all string comparisons that can't be refactored into > numerical comparisons, I pulled two cases out into a loop for that): > > > > if($) { > > > > } elseif ($b || $c || $d || $e) { > > > > ) elseif ($f || $g) { > > > > } else { > > > > } > > > > After changing it to > > > > switch($condition) { > > > > case 'a': > > blah; > > case 'b': > > case 'c': > > case 'd': > > case 'e': > > blah > > case 'f': > > case 'g': > > blah > > default: > > blah > > > > that conditional is about 5% faster. > > > > The script itself isn't slow, it's that it's an autoloader that has > to be ran 15-30 times per pageload and there's no viable way to make > the necessary infrastructure changes to remove it, nor is it viable to > require() manually, as that would take even more time. Before anyone > suggests, the original __autoload() was >90% of page time, and I split > it into an autoloading class and registered 4 different methods on the > autoloading stack ordered, of course, in order from most->least used. > > > > One of the things I was thinking about trying was keeping track of > classnames and paths in an internal array and serializing that > resulting array and pushing it into and pulling it out of APC (in the > destructor and constructor, respectively) and the first method on the > autoloading stack would check for $this->includeMap[$className] but > I'm unsure if that would be a sane approach or not. > > > > On May 14, 2009 5:38pm, John Campbell jcampbell1 at gmail.com> wrote: > > > PHP should run ~1M switch tests per second on decent hardware. Either > > > > > > you are misinterpreting you profiling data, or running a switch > > > > > > statement a hell of a lot of time. I can't imagine any sort of > > > > > > if/else vs switch vs. jump table is going to make much of a > > > > > > difference. At best you will see a speedup of 30% or so, but that > > > > > > won't really fix the underlying problem. > > > > > > > > > > > > On Thu, May 14, 2009 at 2:12 PM, Eddie Drapkin oorza2k5 at gmail.com> > wrote: > > > > > > > Does anyone know how the PHP Interpreter pulls switch/case > statements > > > > > > > together? Does it emulate a C compiler and, for larger case > sets, build a > > > > > > > huge if/else cascade? Does it do this always? Is there any way > to know when > > > > > > > it builds a jump table (like a s/c is supposed to)? I've got a > slow script > > > > > > > (it's eating ~85% of execution time) that I can't work around > and one of the > > > > > > > slower parts is a switch case (which is slightly faster than > manually > > > > > > > building an if/else cascade) and was wondering if anyone had any > performance > > > > > > > tips for cases like these. > > > > > > > > > > > > > > _______________________________________________ > > > > > > > New York PHP User Group Community Talk Mailing List > > > > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > _______________________________________________ > > > > > > New York PHP User Group Community Talk Mailing List > > > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > > > http://www.nyphp.org/show_participation.php > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From oorza2k5 at gmail.com Thu May 14 22:30:50 2009 From: oorza2k5 at gmail.com (oorza2k5 at gmail.com) Date: Fri, 15 May 2009 02:30:50 +0000 Subject: [nycphp-talk] Switch-Case v. if/else In-Reply-To: <4A0CCF10.7090404@gmail.com> Message-ID: <0015175708f89b4c610469ea3b31@google.com> I didn't think anonymous functions were ireleased until the 5.3 branch, which isn't near stable enough for production yet? On May 14, 2009 10:10pm, Andrew Muraco wrote: > How about this for an idea: > Write the code so that the switch returns the content of the case as a > function, this way, you can hopefully avoid having to do all those > comparisons. (obviously you would then be able to use this anonymous > function in place of the switch) > Not sure if your code would allow it tho. > -Andrew Muraco > oorza2k5 at gmail.com wrote: > oops, just sent this to one guy =\ > On May 14, 2009 3:52pm, oorza2k5 at gmail.com wrote: > > Alright! answers :P > > > > Profiling the code, this script (which bottlenecks on the switch-case) > is 82% of execution time __with__ APC. Of the script itself, ~45% of the > execution time is this particular switch-case. > > > > I can't send the code, NDA's and whatnot, but it was basically (these > are all string comparisons that can't be refactored into numerical > comparisons, I pulled two cases out into a loop for that): > > > > if($) { > > > > } elseif ($b || $c || $d || $e) { > > > > ) elseif ($f || $g) { > > > > } else { > > > > } > > > > After changing it to > > > > switch($condition) { > > > > case 'a': > > blah; > > case 'b': > > case 'c': > > case 'd': > > case 'e': > > blah > > case 'f': > > case 'g': > > blah > > default: > > blah > > > > that conditional is about 5% faster. > > > > The script itself isn't slow, it's that it's an autoloader that has to > be ran 15-30 times per pageload and there's no viable way to make the > necessary infrastructure changes to remove it, nor is it viable to > require() manually, as that would take even more time. Before anyone > suggests, the original __autoload() was >90% of page time, and I split it > into an autoloading class and registered 4 different methods on the > autoloading stack ordered, of course, in order from most->least used. > > > > One of the things I was thinking about trying was keeping track of > classnames and paths in an internal array and serializing that resulting > array and pushing it into and pulling it out of APC (in the destructor > and constructor, respectively) and the first method on the autoloading > stack would check for $this->includeMap[$className] but I'm unsure if > that would be a sane approach or not. > > > > On May 14, 2009 5:38pm, John Campbell jcampbell1 at gmail.com> wrote: > > > PHP should run ~1M switch tests per second on decent hardware. Either > > > > > > you are misinterpreting you profiling data, or running a switch > > > > > > statement a hell of a lot of time. I can't imagine any sort of > > > > > > if/else vs switch vs. jump table is going to make much of a > > > > > > difference. At best you will see a speedup of 30% or so, but that > > > > > > won't really fix the underlying problem. > > > > > > > > > > > > On Thu, May 14, 2009 at 2:12 PM, Eddie Drapkin oorza2k5 at gmail.com> > wrote: > > > > > > > Does anyone know how the PHP Interpreter pulls switch/case > statements > > > > > > > together? Does it emulate a C compiler and, for larger case sets, > build a > > > > > > > huge if/else cascade? Does it do this always? Is there any way to > know when > > > > > > > it builds a jump table (like as/c is supposed to)? I've got a slow > script > > > > > > > (it's eating ~85% of execution time) that I can't work around and > one of the > > > > > > > slower parts is a switch case (which is slightly faster than > manually > > > > > > > building an if/else cascade) and was wondering if anyone had any > performance > > > > > > > tips for cases like these. > > > > > > > > > > > > > > _______________________________________________ > > > > > > > New York PHP User Group Community Talk Mailing List > > > > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > _______________________________________________ > > > > > > New York PHP User Group Community Talk Mailing List > > > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > > > > http://www.nyphp.org/show_participation.php > > > > ------------------------------------------------------------------------ > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhart at partsauthority.com Fri May 15 08:18:28 2009 From: nhart at partsauthority.com (Nicholas Hart) Date: Fri, 15 May 2009 08:18:28 -0400 Subject: [nycphp-talk] Amazon orders Message-ID: <3719ecad0905150518t7a67f0e2l109724048cea0fea@mail.gmail.com> Has anyone had success implementing the Amazon API for both order entry to your in-house system and sending back tracking and email responses? We are having some issues and I was hoping to find a decent road map as Amazon is not very helpful. Thanks. Best, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at davidmintz.org Fri May 15 15:07:05 2009 From: david at davidmintz.org (David Mintz) Date: Fri, 15 May 2009 15:07:05 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? Message-ID: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Anybody using Verizon's FIOS and have any comments? I am moving next week (from Maplewood NJ to South Orange NJ) and considering ordering. I want to make sure they don't do block you from connecting to your own machine via http or ssh from outside your home. That would be a dealbreaker. The other broadband alternative in this area is Cablevision. Any comments? Thanks. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Fri May 15 15:15:32 2009 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 15 May 2009 15:15:32 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: <4A0DBF54.2040107@omnistep.com> Cablevision isn't bad.. it depends on the density of "high use" customers in your area. I noticed several times this winter, when the neighborhood was snowed in, the throughput went to crap. All other times my downstream is about 13Mbps, upstream 1.5Mbps. They block port 80, 443, 1080 and 25, but you can still run your ssh on 22 and http on a different port. ~Rolan David Mintz wrote: > Anybody using Verizon's FIOS and have any comments? I am moving next > week (from Maplewood NJ to South Orange NJ) and considering ordering. > I want to make sure they don't do block you from connecting to your > own machine via http or ssh from outside your home. That would be a > dealbreaker. > > The other broadband alternative in this area is Cablevision. Any > comments? Thanks. > > -- > David Mintz > http://davidmintz.org/ > > The subtle source is clear and bright > The tributary streams flow through the darkness > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From cmerlo at ncc.edu Fri May 15 15:18:08 2009 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Fri, 15 May 2009 15:18:08 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: <946586480905151218g4e20ef32l6c404cd14a96822b@mail.gmail.com> On Fri, May 15, 2009 at 3:07 PM, David Mintz wrote: > Anybody using Verizon's FIOS and have any comments? I am moving next week > (from Maplewood NJ to South Orange NJ) and considering ordering. I want to > make sure they don't do block you from connecting to your own machine via > http or ssh from outside your home. That would be a dealbreaker. I have a friend who has FiOS Internet service (in Garden City, NY), ordered their TV service when his satellite contract expired, and then paid the unreasonable cancellation fee to go back to satellite TV. Apparently there isn't enough bandwidth for both TV and Internet, and heavy Internet traffic would screw up the TV signal. I have no direct knowledge, so take this story for what it's worth. > The other broadband alternative in this area is Cablevision. Any comments? > Thanks. I am no huge fan of Cablevision, but I have been a subscriber for going on 7 years now (much longer than that if you count living with my parents and various roommates), and I have had virtually no significant trouble with them. It's pricey, and the DVR is no Tivo, but it works, and the HD looks really nice. (Especially the Mets and Giants, which is what matters to me the most.) I thought about switching to FiOS when Cablevision announced Optimum WiFi, which I have used quite a bit more frequently than I expected I would; for instance, standing on line at the deli or something, reading e-mail on my iPhone. Cablevision will probably wind up keeping me for life if they figure out some way I can set the DVR over the Internet, like other providers do. My $0.02, -c -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Fri May 15 15:18:48 2009 From: ramons at gmx.net (David Krings) Date: Fri, 15 May 2009 15:18:48 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: <4A0DC018.8040602@gmx.net> David Mintz wrote: > Anybody using Verizon's FIOS and have any comments? I am moving next > week (from Maplewood NJ to South Orange NJ) and considering ordering. I > want to make sure they don't do block you from connecting to your own > machine via http or ssh from outside your home. That would be a dealbreaker. AFAIK Verizon blocks port 80. I used a webhop from DynDNS to make it easier for people. You can find out a lot from dslreports forums. I have TimeWarner, which is awesome....if it works. And all ports wide openon their end. David From cmerlo at ncc.edu Fri May 15 15:20:04 2009 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Fri, 15 May 2009 15:20:04 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A0DBF54.2040107@omnistep.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> Message-ID: <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> On Fri, May 15, 2009 at 3:15 PM, Rolan Yang wrote: > They block port 80, 443, 1080 and 25, but you can still run your ssh on 22 > and http on a different port. Yeah, I should have mentioned that part. I don't use a thumbdrive, because I can just ssh into my home machine from school (or Panera or wherever) and access whatever files I need. -c PS Are there any ISPs left that don't block port 80? -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmerlo at ncc.edu Fri May 15 15:49:20 2009 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Fri, 15 May 2009 15:49:20 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> Message-ID: <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> On Fri, May 15, 2009 at 3:20 PM, Christopher R. Merlo wrote: Yeah, I should have mentioned that part. I don't use a thumbdrive, because > I can just ssh into my home machine from school (or Panera or wherever) and > access whatever files I need. BTW, something else I just thought of, which might matter. Even though my Cablevision IP is assigned by DHCP, in practice it never changes, because the router is always on to renew the lease. The last time my IP address changed was when I moved to my current apartment, which will be three years ago in a couple of weeks. And since I already own a domain name (for my band), I assigned a subdomain of it to my Cablevision IP address, so that now I don't even have to remember the IP address to log in to home; I just have to remember the name of my band. -c -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Fri May 15 16:04:39 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Fri, 15 May 2009 16:04:39 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> Message-ID: <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> On Fri, May 15, 2009 at 3:49 PM, Christopher R. Merlo wrote: > On Fri, May 15, 2009 at 3:20 PM, Christopher R. Merlo wrote: > > Yeah, I should have mentioned that part. I don't use a thumbdrive, because >> I can just ssh into my home machine from school (or Panera or wherever) and >> access whatever files I need. > > > BTW, something else I just thought of, which might matter. Even though my > Cablevision IP is assigned by DHCP, in practice it never changes, because > the router is always on to renew the lease. The last time my IP address > changed was when I moved to my current apartment, which will be three years > ago in a couple of weeks. And since I already own a domain name (for my > band), I assigned a subdomain of it to my Cablevision IP address, so that > now I don't even have to remember the IP address to log in to home; I just > have to remember the name of my band. > -c > Over the yearsI have been through several DSL providers that went belly up or otherwise became unacceptable (i.e., Speakeasy after it got bought), and I have more recently been with Comcast, and with all those that were dynamic IP I have never had any trouble thanks to dyndns.org. Now the Linksys router I use has a whats-its, dynamic ip updater client built right in, and it's been flawless. Interestingly, none of these ISPs has blocked port 80 on me. btw you said "I thought about switching to FiOS when Cablevision announced Optimum WiFi..." I take it you mean you were considering switching and then did not? So Optimum Wifi has been good for you? That's interesting. I might be nice to take advantage of it on NJ Transit trains which I ride every day and I've been seeing those billboard ads for it in the train stations. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From sequethin at gmail.com Fri May 15 16:18:17 2009 From: sequethin at gmail.com (Michael Hernandez) Date: Fri, 15 May 2009 16:18:17 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> Message-ID: <1242418697.3387.46.camel@mikeh-ubuntu> On Fri, 2009-05-15 at 16:04 -0400, David Mintz wrote: > > Over the yearsI have been through several DSL providers that went > belly up or otherwise became unacceptable (i.e., Speakeasy after it > got bought), and I have more recently been with Comcast, and with all > those that were dynamic IP I have never had any trouble thanks to > dyndns.org. Now the Linksys router I use has a whats-its, dynamic ip > updater client built right in, and it's been flawless. Interestingly, > none of these ISPs has blocked port 80 on me. Since we're OT here, I'll throw in that if your IP does change, but doesn't change often, dyndns gets mad and cancels your account for not updating enough. What I did to get around that is write a shell script that checks whatismyip.com (via it's automation specific page) and if the IP of the machine has changed, my script emails me to tell me. --Mike H From ben at projectskyline.com Fri May 15 16:25:55 2009 From: ben at projectskyline.com (Ben Sgro) Date: Fri, 15 May 2009 16:25:55 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <1242418697.3387.46.camel@mikeh-ubuntu> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> <1242418697.3387.46.camel@mikeh-ubuntu> Message-ID: <4A0DCFD3.2090206@projectskyline.com> Hello, Woah - I've never heard of such a thing. I've been using dydns for almost 4 years now, my IP rarely changes, and I've never had an interruption of service. Did they specifically say they canceled your account due to "lack of dynamicness" heh? Strange - - Ben Michael Hernandez wrote: > On Fri, 2009-05-15 at 16:04 -0400, David Mintz wrote: > >> Over the yearsI have been through several DSL providers that went >> belly up or otherwise became unacceptable (i.e., Speakeasy after it >> got bought), and I have more recently been with Comcast, and with all >> those that were dynamic IP I have never had any trouble thanks to >> dyndns.org. Now the Linksys router I use has a whats-its, dynamic ip >> updater client built right in, and it's been flawless. Interestingly, >> none of these ISPs has blocked port 80 on me. >> > > Since we're OT here, I'll throw in that if your IP does change, but > doesn't change often, dyndns gets mad and cancels your account for not > updating enough. What I did to get around that is write a shell script > that checks whatismyip.com (via it's automation specific page) and if > the IP of the machine has changed, my script emails me to tell me. > > --Mike H > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > > From sequethin at gmail.com Fri May 15 16:43:36 2009 From: sequethin at gmail.com (Michael Hernandez) Date: Fri, 15 May 2009 16:43:36 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A0DCFD3.2090206@projectskyline.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> <1242418697.3387.46.camel@mikeh-ubuntu> <4A0DCFD3.2090206@projectskyline.com> Message-ID: <1242420216.3387.59.camel@mikeh-ubuntu> On Fri, 2009-05-15 at 16:25 -0400, Ben Sgro wrote: > Hello, > > Woah - I've never heard of such a thing. I've been using dydns for > almost 4 years now, my IP rarely changes, > and I've never had an interruption of service. > > Did they specifically say they canceled your account due to "lack of > dynamicness" heh? > Strange - > > - Ben First they emailed to say "we've noticed your IP address hasn't changed in a while". Then they emailed to say "sorry buddy, sign up for another free account when your IP is more dynamic". Then a few days later, my IP changed finally, and I was stuck. Might just be a term of service for free accounts? Who knows? But at least it gave me an excuse to learn about whatismyip.com's web service :) --Mike H From ben at projectskyline.com Fri May 15 16:48:34 2009 From: ben at projectskyline.com (Ben Sgro) Date: Fri, 15 May 2009 16:48:34 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <1242420216.3387.59.camel@mikeh-ubuntu> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> <1242418697.3387.46.camel@mikeh-ubuntu> <4A0DCFD3.2090206@projectskyline.com> <1242420216.3387.59.camel@mikeh-ubuntu> Message-ID: <4A0DD522.7050205@projectskyline.com> Hey, Oh, free account. Ok - I just pay the $15/year and be done with it. Well worth it for their service. - Ben Michael Hernandez wrote: > On Fri, 2009-05-15 at 16:25 -0400, Ben Sgro wrote: > >> Hello, >> >> Woah - I've never heard of such a thing. I've been using dydns for >> almost 4 years now, my IP rarely changes, >> and I've never had an interruption of service. >> >> Did they specifically say they canceled your account due to "lack of >> dynamicness" heh? >> Strange - >> >> - Ben >> > > First they emailed to say "we've noticed your IP address hasn't changed > in a while". Then they emailed to say "sorry buddy, sign up for another > free account when your IP is more dynamic". Then a few days later, my IP > changed finally, and I was stuck. > > Might just be a term of service for free accounts? Who knows? But at > least it gave me an excuse to learn about whatismyip.com's web > service :) > > --Mike H > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > > From ajai at bitblit.net Fri May 15 17:40:13 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 15 May 2009 17:40:13 -0400 (EDT) Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A0DC018.8040602@gmx.net> Message-ID: On Fri, 15 May 2009, David Krings wrote: > AFAIK Verizon blocks port 80. I used a webhop from DynDNS to make it easier > for people. You can find out a lot from dslreports forums. > > I have TimeWarner, which is awesome....if it works. And all ports wide openon > their end. Many many providers now routinely block SMTP (port 25) though. -- Aj. From dirn at dirnonline.com Fri May 15 17:57:31 2009 From: dirn at dirnonline.com (Andy Dirnberger) Date: Fri, 15 May 2009 17:57:31 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <4A0DC018.8040602@gmx.net> Message-ID: <006c01c9d5a8$26089b10$7219d130$@com> > On Fri, 15 May 2009, David Krings wrote: > > > AFAIK Verizon blocks port 80. I used a webhop from DynDNS to make it easier > > for people. You can find out a lot from dslreports forums. > > > > I have TimeWarner, which is awesome....if it works. And all ports wide openon > > their end. > > Many many providers now routinely block SMTP (port 25) though. > Last I checked, Time Warner definitely blocks port 25 in Brooklyn (I'd imagine everywhere). Everything not mail-related seems to be wide open though. From krook at us.ibm.com Fri May 15 18:09:59 2009 From: krook at us.ibm.com (Daniel Krook) Date: Fri, 15 May 2009 18:09:59 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: Hi David, > From: David Mintz > > Anybody using Verizon's FIOS and have any comments? I am > moving next week (from Maplewood NJ to South Orange NJ) > and considering ordering. I want to make sure they don't > do block you from connecting to your own machine via http > or ssh from outside your home. That would be a dealbreaker. > > The other broadband alternative in this area is > Cablevision. Any comments? Thanks. I've been using Cablevision's Optimum Boost service in CT for about 2 and a half years. The Boost package lets you use ports 25 and 80 (only those 2 officially, but you can use others), so I've been hosting my mail and Web server at home with an IP address that's been de facto static this whole time (though they don't officially call it static). http://www.optimum.com/order/boost/ One caveat, they recently changed the frequency on which Boost customers get Internet service in order to prepare for the 101Mbps service later this year ( http://www.dslreports.com/shownews/cablevision-101mbps-for-9995-102133?nocomment=1 ). This new frequency is less tolerant of bad wiring in your place but also your neighbors who might feed interference back on the line. So ask them if there have been reports of problems in your new neighborhood. Thanks, -Dan Daniel Krook Senior IT Specialist - Tools Team Lead, Global Solutions, ibm.com IBM Certified IT Specialist, SCSA, SCJP, SCWCD, ZCE, ICDAssoc., ICAD From ant92083 at gmail.com Fri May 15 18:14:14 2009 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Fri, 15 May 2009 18:14:14 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <006c01c9d5a8$26089b10$7219d130$@com> References: <4A0DC018.8040602@gmx.net> <006c01c9d5a8$26089b10$7219d130$@com> Message-ID: <43bc541c0905151514m2efb20e8w9997b245ea2d6baf@mail.gmail.com> As someone that lived in South Orange (Seton Hall Alumni) you are going to be disappointed with Cablevision and their support. Best of luck. -Anthony On Fri, May 15, 2009 at 5:57 PM, Andy Dirnberger wrote: > > On Fri, 15 May 2009, David Krings wrote: > > > > > AFAIK Verizon blocks port 80. I used a webhop from DynDNS to make it > easier > > > for people. You can find out a lot from dslreports forums. > > > > > > I have TimeWarner, which is awesome....if it works. And all ports wide > openon > > > their end. > > > > Many many providers now routinely block SMTP (port 25) though. > > > > Last I checked, Time Warner definitely blocks port 25 in Brooklyn (I'd > imagine everywhere). Everything not mail-related seems to be wide open > though. > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Fri May 15 19:04:17 2009 From: ramons at gmx.net (David Krings) Date: Fri, 15 May 2009 19:04:17 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <1242418697.3387.46.camel@mikeh-ubuntu> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <4A0DBF54.2040107@omnistep.com> <946586480905151220u3f7a664aoad902e66770b902@mail.gmail.com> <946586480905151249o331ae6a4mdc77c2f63ce9e381@mail.gmail.com> <721f1cc50905151304h6c663688if88465f3573fcbd2@mail.gmail.com> <1242418697.3387.46.camel@mikeh-ubuntu> Message-ID: <4A0DF4F1.4070302@gmx.net> Michael Hernandez wrote: > Since we're OT here, I'll throw in that if your IP does change, but > doesn't change often, dyndns gets mad and cancels your account for not > updating enough. What I did to get around that is write a shell script > that checks whatismyip.com (via it's automation specific page) and if > the IP of the machine has changed, my script emails me to tell me. There are plenty of clients that send an update once a month to keep dyndns happy. But sure, you can write your own. From ajai at bitblit.net Sat May 16 12:20:36 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Sat, 16 May 2009 12:20:36 -0400 (EDT) Subject: [nycphp-talk] NYPHP SIGs Message-ID: What's the deal with the NYPHGP SIGs? i.e. can anyone create a SIG? Is there a process involved? Or votes? Or what? -- Aj. From lists at zaunere.com Sat May 16 17:52:41 2009 From: lists at zaunere.com (Hans Zaunere) Date: Sat, 16 May 2009 17:52:41 -0400 Subject: [nycphp-talk] NYPHP SIGs In-Reply-To: References: Message-ID: <00ed01c9d670$a2e249b0$e8a6dd10$@com> > What's the deal with the NYPHGP SIGs? i.e. can anyone create a SIG? Is > there a process involved? Or votes? Or what? Basically, yeah, any SIGs are welcome. What are you thinking? We just want to make sure there isn't too much overlap with existing SIGs, and that we don't dilute the lists too much so level of organization is important. Let me know what you're thinking and we can also continue this discussion on the NYPHP-Org list. H From oorza2k5 at gmail.com Mon May 18 14:14:16 2009 From: oorza2k5 at gmail.com (Eddie Drapkin) Date: Mon, 18 May 2009 14:14:16 -0400 Subject: [nycphp-talk] Test fest? Message-ID: <68de37340905181114x1228072dxb735e2d615ace53f@mail.gmail.com> I've never been to one of these before, what is expected on the laptop I'll bring? A working AMP stack or just an editor? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Mon May 18 14:26:46 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Mon, 18 May 2009 14:26:46 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: <721f1cc50905181126w1360c1cct792b3bf0583dc39b@mail.gmail.com> Looks like I am going to give Verizon FIOS a shot. Much gratitude to all for the info & advice. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon May 18 14:33:32 2009 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 18 May 2009 14:33:32 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905181126w1360c1cct792b3bf0583dc39b@mail.gmail.com> References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> <721f1cc50905181126w1360c1cct792b3bf0583dc39b@mail.gmail.com> Message-ID: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> I have had FIOS for the last year 20/20 for the first few months and then I dropped down to 20/5 because 20/20 was more than I needed. I have loved it and dreaded ever relocating to an area where FIOS is not available. I have had almost 0 downtime. The only problem I have faced with FIOS has to do with the phone service and I can only speak for my area. It seems like evertime a snowflake hit the ground my phone would not work. It would just say "Due to phone company issues we are unable to complete your call" If you hit redial about 20 times generally it goes through at some point :) Joseph Crawford On May 18, 2009, at 2:26 PM, David Mintz wrote: > > Looks like I am going to give Verizon FIOS a shot. > > Much gratitude to all for the info & advice. > > -- > David Mintz > http://davidmintz.org/ > > The subtle source is clear and bright > The tributary streams flow through the darkness > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon May 18 15:52:19 2009 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 18 May 2009 15:52:19 -0400 Subject: [nycphp-talk] Test fest? In-Reply-To: <68de37340905181114x1228072dxb735e2d615ace53f@mail.gmail.com> References: <68de37340905181114x1228072dxb735e2d615ace53f@mail.gmail.com> Message-ID: <023b01c9d7f2$27825480$7686fd80$@com> Hi, > I've never been to one of these before, what is expected on the laptop > I'll bring? A working AMP stack or just an editor? Hop over to the Org list: http://lists.nyphp.org/mailman/listinfo/org Subscribe and check the archives. I'll also be posting another note tomorrow, but basically just a laptop that you're comfortable working on for coding is required. H From ajai at bitblit.net Mon May 18 16:56:49 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 18 May 2009 16:56:49 -0400 (EDT) Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> Message-ID: On Mon, 18 May 2009, Joseph Crawford wrote: > I have had FIOS for the last year 20/20 for the first few months and > then I dropped down to 20/5 because 20/20 was more than I needed. > I have loved it and dreaded ever relocating to an area where FIOS is > not available. I have had almost 0 downtime. Probably because not many people can get it. Not widely available in Manhattan yet... BTW, several years ago the rules changed so that local telco's dont have to share fiber like they do for copper (very monopoly-friendly). But it seems Verizon has made a deal with DSL Extreme for wholesale fiber, so they are the first company to offer second-tier fiber. https://www.dslextreme.com/Services/Internet/Fiber/Default.aspx Don't know if they have any facilities in NYC though. -- Aj. From paulcheung at tiscali.co.uk Tue May 19 03:59:26 2009 From: paulcheung at tiscali.co.uk (Paul Cheung) Date: Tue, 19 May 2009 08:59:26 +0100 Subject: [nycphp-talk] Test fest? In-Reply-To: <68de37340905181114x1228072dxb735e2d615ace53f@mail.gmail.com> References: <68de37340905181114x1228072dxb735e2d615ace53f@mail.gmail.com> Message-ID: <002101c9d857$baebcde0$30c369a0$@co.uk> Hi, The London PHP User group recently held a Test Fest at IBM in the London on the 9th of May and one of the organisers was Zoe of IBM (UK).You could take a peek at her blog http://zoomsplatter.blogspot.com/2009/02/php-testfest-2009.html and maybe ask her advice on what you should/need to take to your test fest Cheers Paul From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Eddie Drapkin Sent: 18 May 2009 19:14 To: talk at lists.nyphp.org Subject: [nycphp-talk] Test fest? I've never been to one of these before, what is expected on the laptop I'll bring? A working AMP stack or just an editor? -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.neumann at gmail.com Tue May 19 04:14:49 2009 From: marco.neumann at gmail.com (Marco Neumann) Date: Tue, 19 May 2009 04:14:49 -0400 Subject: [nycphp-talk] PHP and the Semantic Web - Easy RDF and SPARQL for LAMP systems + More Message-ID: <844a8dbf0905190114ie131e95o63da111a77a3f27@mail.gmail.com> Do you wonder if there is room for PHP on the Semantic Web? Indeed there is and it will be a big, in case you are interested to learn more about the Semantic Web and how PHP can be used to process RDF, linked data and micro-formats check out the upcoming session of the New York Semantic Web Meetup. PHP and the Semantic Web - Easy RDF and SPARQL for LAMP systems + More @ New York Semantic Web Meetup, Thursday May 21 http://semweb.meetup.com/25/calendar/9614181/ I tried to post this yesterday on announce at lists.nyphp.org without success. :-( Best, Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Tue May 19 07:58:57 2009 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 19 May 2009 07:58:57 -0400 Subject: [nycphp-talk] Test fest? In-Reply-To: <002101c9d857$baebcde0$30c369a0$@co.uk> References: <68de37340905181114x1228072dxb735e2d615ace53f@mail.gmail.com> <002101c9d857$baebcde0$30c369a0$@co.uk> Message-ID: <00e301c9d879$30da38e0$928eaaa0$@com> Hi Paul, > The London PHP User group recently held a Test Fest at IBM in the > London on the 9th of May and one of the organisers was Zoe of IBM > (UK).You could take a peek at her blog > http://zoomsplatter.blogspot.com/2009/02/php-testfest-2009.html and > maybe ask her advice on what you should/need to take to your test fest Yes, thanks, we've actually been working with Zoe and the others in PHP-QA to organize. For those that are interested, we will be sending out a final announcement today, with more details. Subscribe to the NYPHP-Org list if interested and check the archives as well. H From mitch.pirtle at gmail.com Wed May 20 12:07:36 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 20 May 2009 12:07:36 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> Message-ID: <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> Was getting a ride from a guy who owned a communications services company, and we discussed megabit services in Brooklyn. He mentioned that Brooklyn was notorious for having totally substandard wiring running down poles between all the houses and buildings, and that it was a logistics nightmare for Verizon to manage making upgrades nearly impossible - and the result is that pretty much nobody in the city can get more than typical 1.5MBps DSL. Better chances for faster service in Cambodia. Add that I constantly lose my DSL link and Verizon has failed to figure this out for A YEAR AND A HALF, the time is right. I'm ordering a cable modem today. This pain must stop. -- Mitch, trying not to get too worked up at the office On Mon, May 18, 2009 at 4:56 PM, Ajai Khattri wrote: > On Mon, 18 May 2009, Joseph Crawford wrote: > >> I have had FIOS for the last year 20/20 for the first few months and >> then I dropped down to 20/5 because 20/20 was more than I needed. >> I have loved it and dreaded ever relocating to an area where FIOS is >> not available. ?I have had almost 0 downtime. > > Probably because not many people can get it. Not widely available in > Manhattan yet... > > BTW, several years ago the rules changed so that local telco's dont have > to share fiber like they do for copper (very monopoly-friendly). But it > seems Verizon has made a deal with DSL Extreme for wholesale fiber, so > they are the first company to offer second-tier fiber. > > https://www.dslextreme.com/Services/Internet/Fiber/Default.aspx > > Don't know if they have any facilities in NYC though. > > > > -- > Aj. > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From ramons at gmx.net Wed May 20 13:06:32 2009 From: ramons at gmx.net (David Krings) Date: Wed, 20 May 2009 13:06:32 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> Message-ID: <4A143898.6060300@gmx.net> Mitch Pirtle wrote: > Was getting a ride from a guy who owned a communications services > company, and we discussed megabit services in Brooklyn. He mentioned > that Brooklyn was notorious for having totally substandard wiring > running down poles between all the houses and buildings, and that it > was a logistics nightmare for Verizon to manage making upgrades nearly > impossible - and the result is that pretty much nobody in the city can > get more than typical 1.5MBps DSL. Better chances for faster service > in Cambodia. That is the part that I still don't get as a foreigner. Why is most of the infrastructure here in the US in such a bad state? I can see nailing wires to poles like Edison did it in the remote, rural areas, but in Brooklyn?? Why isn't all wiring underground where it won't come down during the slightest storm? And why do all the streets have more potholes than markings when the entire US economy is built around individual traffic and trucking everything across the country, although using rail is so much more efficient....but the rail lines are in horrible shape as well. Last week I heard that one third of the NYC sewer system is from the 1850s, while the rest is mainly from the 1930s, and all parts are crumbling. And why do US schools spend more than twice per student compared to schools in Europe, but get results that are noticably worse? I don't say there is no (good) reason for all that, I just can't figure out which one that could be. UTP doesn't have the bandwith like coax does, but in the biggest economy in the world (maybe second by now behind China) the question should be from which of the five competitors do I buy fiber service. I agree that chances for faster service may be better in Cambodia, but it shows that deregulating the markets for the benefit of the consumers just turned out to be a whole bunch of blahblah. That said, I like what TWC has to offer...if it works. I do need to point out that their support just plain sucks, yet it is still better than Verizon's. Enough of the mid day rant.... ;) David From paul at devonianfarm.com Wed May 20 14:41:16 2009 From: paul at devonianfarm.com (Paul A Houle) Date: Wed, 20 May 2009 14:41:16 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> Message-ID: <4A144ECC.9020707@devonianfarm.com> Mitch Pirtle wrote: > Was getting a ride from a guy who owned a communications services > company, and we discussed megabit services in Brooklyn. He mentioned > that Brooklyn was notorious for having totally substandard wiring > running down poles between all the houses and buildings, and that it > was a logistics nightmare for Verizon to manage making upgrades nearly > impossible - and the result is that pretty much nobody in the city can > get more than typical 1.5MBps DSL. Better chances for faster service > in Cambodia. > Heck, even rural areas are catching up. Here's a photo of how we get DSL in our neck of the woods: http://www.flickr.com/photos/paul_houle/3340856649/ The architecture is that they have 2 DSL lines: one that goes from the box to the CO, and another that goes to your house. These work pretty well, though it would be better if they sent fiber to the repeaters. Service is reasonably reliable, though it sometimes seems to go down on the weekend. Cable is available about a mile and a half down the road. Time Warner has considered running cable down my valley but there's not that much demand: anybody who wants TV already has satellite. My main beef with the service is with their DNS. The default DNS is (i) slow, and (ii) points you to a bogus web site for names that don't resolve. Running a local djbdns server makes it feel like I added a turbo. From mitch.pirtle at gmail.com Wed May 20 18:41:14 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 20 May 2009 18:41:14 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A143898.6060300@gmx.net> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> <4A143898.6060300@gmx.net> Message-ID: <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> On Wed, May 20, 2009 at 1:06 PM, David Krings wrote: > > That is the part that I still don't get as a foreigner. Why is most of the > infrastructure here in the US in such a bad state? That is the price we pay for things getting invented over here. Radio is another example. First time I saw a car radio in Switzerland and the name of the song was displaying I almost had a heart attack. Then I used something called TeleText to check the news on a TV, without internet access. Simple things to a European, but totally tomorrow-land stuff to an American. We may have invented TV and radio over here, but we also are stuck supporting the caveman-era technologies that were rolled out when they were first invented. The Europeans sat back, and watched us blow our fingers off with our experiments; and when the pain stopped and things started looking really good, they said "Hey, this whole radio thing is a brilliant idea, and we can include text in our broadcast as well." For Brooklyn, the problem is that the original cabling was hung from poles going behind all the houses. Say you are Verizon, and you want to do the Right Thing by putting in modern facilities. You are going to have to contact every tenant for every residence to get permission to go out back and replace that cabling. Let me know when you are done, assuming I live that long. -- Mitch, noting that the cable companies DID get to wire stuff where it belonged From mitch.pirtle at gmail.com Wed May 20 18:43:11 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 20 May 2009 18:43:11 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A144ECC.9020707@devonianfarm.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> <4A144ECC.9020707@devonianfarm.com> Message-ID: <330532b60905201543i7a5a2e1ejc090a13e53f531d2@mail.gmail.com> On Wed, May 20, 2009 at 2:41 PM, Paul A Houle wrote: > > ? My main beef with the service is with their DNS. ?The default DNS is (i) > slow, ?and (ii) points you to a bogus web site for names that don't resolve. > ?Running a local djbdns server makes it feel like I added a turbo. Also required twelve new user accounts and fifty separate cron jobs *giggle* Ok, that was qmail, not his dns daemon, but it was funny to me at least. -- Mitch From lists at zaunere.com Wed May 20 18:52:36 2009 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 20 May 2009 18:52:36 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> <4A143898.6060300@gmx.net> <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> Message-ID: <001801c9d99d$ab507740$01f165c0$@com> > > That is the part that I still don't get as a foreigner. Why is most of the > > infrastructure here in the US in such a bad state? > > That is the price we pay for things getting invented over here. Radio > is another example. First time I saw a car radio in Switzerland and > the name of the song was displaying I almost had a heart attack. Then > I used something called TeleText to check the news on a TV, without > internet access. > > Simple things to a European, but totally tomorrow-land stuff to an > American. We may have invented TV and radio over here, but we also are > stuck supporting the caveman-era technologies that were rolled out > when they were first invented. I think this is very true - the exact same can be said for why the roads suck in the Northeast while in other parts of the country you get the sprawling highways of tomorrow (and yet everyone still drives 50 MPH there). Anyway, I read this a while back and it's an interesting series: http://bits.blogs.nytimes.com/2009/03/10/the-broadband-gap-why-is-theirs-fas ter/ And for the record, I have FIOS and really can't complain - I switched from TWC and haven't looked back. The only slightly annoying thing is that the first-hop latency is about 20ms which they won't do anything about. It's hard to notice but just sort of annoying. That said, I don't have any servers at home anymore (amazing!) so I haven't really checked out any ports. I suppose I could move nyphp.org back to my home connection and see if it still works :) H From codebowl at gmail.com Wed May 20 18:56:59 2009 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 20 May 2009 18:56:59 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> <4A143898.6060300@gmx.net> <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> Message-ID: Mitch, I do believe that when you start service with a company such as the electric or cable, etc. they have right of passage to the phone polls at anytime. I recall reading about this online a while back when one got caught in a womans back yard and she threw a fit. However it stated they were not at fault and had all rights to access the utility equipment. I'm sure this would not work at 3am or anything unless there was an emergency but you get the idea. Joseph Crawford On May 20, 2009, at 6:41 PM, Mitch Pirtle wrote: > On Wed, May 20, 2009 at 1:06 PM, David Krings wrote: >> >> That is the part that I still don't get as a foreigner. Why is most >> of the >> infrastructure here in the US in such a bad state? > > That is the price we pay for things getting invented over here. Radio > is another example. First time I saw a car radio in Switzerland and > the name of the song was displaying I almost had a heart attack. Then > I used something called TeleText to check the news on a TV, without > internet access. > > Simple things to a European, but totally tomorrow-land stuff to an > American. We may have invented TV and radio over here, but we also are > stuck supporting the caveman-era technologies that were rolled out > when they were first invented. > > The Europeans sat back, and watched us blow our fingers off with our > experiments; and when the pain stopped and things started looking > really good, they said "Hey, this whole radio thing is a brilliant > idea, and we can include text in our broadcast as well." > > For Brooklyn, the problem is that the original cabling was hung from > poles going behind all the houses. Say you are Verizon, and you want > to do the Right Thing by putting in modern facilities. You are going > to have to contact every tenant for every residence to get permission > to go out back and replace that cabling. Let me know when you are > done, assuming I live that long. > > -- Mitch, noting that the cable companies DID get to wire stuff where > it belonged > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From ramons at gmx.net Wed May 20 22:59:20 2009 From: ramons at gmx.net (David Krings) Date: Wed, 20 May 2009 22:59:20 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> <4A143898.6060300@gmx.net> <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> Message-ID: <4A14C388.4020209@gmx.net> Mitch Pirtle wrote: > On Wed, May 20, 2009 at 1:06 PM, David Krings wrote: >> That is the part that I still don't get as a foreigner. Why is most of the >> infrastructure here in the US in such a bad state? > > Simple things to a European, but totally tomorrow-land stuff to an > American. We may have invented TV and radio over here, but we also are > stuck supporting the caveman-era technologies that were rolled out > when they were first invented. Uhm, TV in the sense we'd consider it today was invented by Paul Nipkow, at least the technology for serializing images with an electromechanical camera (the serialization of images in dots was invented by Bain, which makes fax to predate the phone). The first full electronic camera was invented and built by Manfred von Ardenne. The cathode ray tube was already known by then as Ferdinand Braun invented it in 1897. Also, the Reichspostministerium installed the first cable TV network for the 1936 Olympic Games, which also was the first sporting event to be broadcast live (albeit entirely for propaganda reasons). So TV wasn't invented here, but in Germany. Nevertheless, here (meaning explicitly the Electric City) had the first commercial TV station (still exists as WRGB CBS6 in Niskayuna) and among the first TV broadcasts, namely a conductor at the GE plant directing an orchestra at Proctor's via TV link. Radio was mainly invented by Nicola Tesla, a Croatian who was brought to the US by Edison. After inventing all kinds of stuff for Edison Tesla asked for the promised payment and Edison laughed at him saying "Welcome to America!". Tesla then went on to work for Edison's arch rival Westinghouse who pulled the same scam. And phone was invented by Johann Philip Reis, who demoed it as a geek's gadget where Bell saw it and eventually copied the idea making money with it. The first sentence spoken over telephone was "Das Pferd i?t keinen Gurkensalat." (The horse does not eat cucumber salad). The Teletext was invented by the BBC and is one of the most awesome additions to TV. I have no clue why it never ever even got introduced in the US market. Probably someone bought the patent rights and wanted wayyyy too much money for it to make it viable for TV makers and stations. RDS (Radio Data System) was thought out by ARI in Germany. It was available, but it never became that popular, mainly because the displays on radios aren't that big. > For Brooklyn, the problem is that the original cabling was hung from > poles going behind all the houses. Say you are Verizon, and you want > to do the Right Thing by putting in modern facilities. You are going > to have to contact every tenant for every residence to get permission > to go out back and replace that cabling. Let me know when you are > done, assuming I live that long. Ah, that explains it...and then again it doesn't. Apparently, they were able to pull that off at some point, because otherwise they wouldn't have had the cable where it is now. It should be possible to keep the UTP for the short haul and still get decent bandwidth, at least for phone and internet service. If it fits 500 HDTV channels is something I don't know. I just wonder how other countries manage to do that. I recall when Schwarz-Schilling rolled out broadband cable across Germany the folks from the phone company dug up people's front yards and screwed the access box on the outside of the house and if possible they even drilled through the foundation and put it straight into the basement. It was an act of congress to do that and the funding came from the government. I have to point out that at that time the phone and cable service was provided by a federal telecom agency, similar to how USPS is operating here. Seems to be more that Verizon just doesn't want to put the effort in and still makes enough money with the POTS and less so with the PANS. This is plain crazy. Folks manage to fix a minivan sized space telescope in orbit, but putting fiber into Brooklyn is impossible? Sorry, but having an apprenticeship as radio- and TV technician, having studied communication technology, and having worked as broadcasting engineer for TV stations makes me get so passionate about this stuff. David From lists at zaunere.com Thu May 21 18:23:43 2009 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 21 May 2009 18:23:43 -0400 Subject: [nycphp-talk] PHP 5.3 add_x_header Broken Message-ID: <000901c9da62$ccb73a20$6625ae60$@com> Hello, I wanted to check to see if anyone else had been seeing this issue before reporting a bug. In PHP 5.3, there's the mail.add_x_header configuration setting. When On, which is the default with the preferred/production php.ini, it adds the X-PHP-Originating-Script email header for tracking purposes of email. However, when the X-PHP-Originating-Script header is added, it's prefixed with a \r\n. This thus breaks some email clients, especially when sending from a Unix host where all the other headers are separated by only a \n. When mail.add_x_header is set to off the emails are sent correctly. There appears to be no workaround, especially since there are so many email clients, each with their own behavior. End of the day, the email header line breaks should be consistent. Has anyone else ran into this or any other thoughts? H From danielc at analysisandsolutions.com Thu May 21 18:42:28 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 21 May 2009 18:42:28 -0400 Subject: [nycphp-talk] PHP 5.3 add_x_header Broken In-Reply-To: <000901c9da62$ccb73a20$6625ae60$@com> References: <000901c9da62$ccb73a20$6625ae60$@com> Message-ID: <20090521224224.GA8503@panix.com> Hola: On Thu, May 21, 2009 at 06:23:43PM -0400, Hans Zaunere wrote: > > However, when the X-PHP-Originating-Script header is added, it's prefixed > with a \r\n. This thus breaks some email clients, especially when sending > from a Unix host where all the other headers are separated by only a \n. Well, last I looked, the mail format RFC says the headers are supposed to be \r\n. But it sounds like the rest of the headers generated by PHP are using \n. Fun. Let's take a look at mail.c... http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?view=log Yep, the rest of the headers use \n. Make a patch to line 244 changing \r\n to \n (Or change them all to \r\n like the RFC says. :) and open up a bug report. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rotsen at gmail.com Thu May 21 20:00:53 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Thu, 21 May 2009 17:00:53 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql Message-ID: I have in my W2K3 with IIS 6 (port 80) + php5.1.2 + mysql5.5.1.a and it works. I want to be able to use Apache with port 3333 with the same mysql so I tried to set up a W2K3 + apache2.2 + php5.29 + mysql 5.5.1.a and everything works except that I am not able to access mysql. Is there something that I might have skip. Thanks, Nestor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From consult at covenantedesign.com Thu May 21 20:42:12 2009 From: consult at covenantedesign.com (CED) Date: Thu, 21 May 2009 20:42:12 -0400 Subject: [nycphp-talk] PHP 5.3 add_x_header Broken In-Reply-To: <20090521224224.GA8503@panix.com> References: <000901c9da62$ccb73a20$6625ae60$@com> <20090521224224.GA8503@panix.com> Message-ID: <4A15F4E4.60409@covenantedesign.com> Daniel Convissor wrote: > Hola: > > On Thu, May 21, 2009 at 06:23:43PM -0400, Hans Zaunere wrote: > >> However, when the X-PHP-Originating-Script header is added, it's prefixed >> with a \r\n. This thus breaks some email clients, especially when sending >> from a Unix host where all the other headers are separated by only a \n. >> > > Well, last I looked, the mail format RFC says the headers are supposed to > be \r\n. But it sounds like the rest of the headers generated by PHP are > using \n. Fun. > > Let's take a look at mail.c... > http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?view=log > > Yep, the rest of the headers use \n. > > Make a patch to line 244 changing \r\n to \n (Or change them all to \r\n > like the RFC says. :) and open up a bug report. > > --Dan > > Line 240. From danielc at analysisandsolutions.com Fri May 22 09:47:03 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 22 May 2009 09:47:03 -0400 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: Message-ID: <20090522134703.GB7943@panix.com> On Thu, May 21, 2009 at 05:00:53PM -0700, Nstor wrote: > > I want to be able to use Apache with port 3333 with the same mysql so > I tried to set up a W2K3 + apache2.2 + php5.29 + mysql 5.5.1.a and > everything > works except that I am not able to access mysql. Is there something that I > might > have skip. Well, you definitely skipped telling us exactly how it doesn't work. :) What's the error message you get and what do you do to get it? --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rotsen at gmail.com Fri May 22 10:31:05 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 22 May 2009 07:31:05 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: <20090522134703.GB7943@panix.com> References: <20090522134703.GB7943@panix.com> Message-ID: When I access phpinfo.php via IIS it shows access to mysql but when I access it using my apache set up it does not show access to myslq :-) On Fri, May 22, 2009 at 6:47 AM, Daniel Convissor < danielc at analysisandsolutions.com> wrote: > On Thu, May 21, 2009 at 05:00:53PM -0700, Nstor wrote: > > > > I want to be able to use Apache with port 3333 with the same mysql so > > I tried to set up a W2K3 + apache2.2 + php5.29 + mysql 5.5.1.a and > > everything > > works except that I am not able to access mysql. Is there something that > I > > might > > have skip. > > Well, you definitely skipped telling us exactly how it doesn't work. :) > What's the error message you get and what do you do to get it? > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Fri May 22 10:57:54 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 22 May 2009 10:57:54 -0400 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522134703.GB7943@panix.com> Message-ID: <20090522145754.GA19978@panix.com> Sire: On Fri, May 22, 2009 at 07:31:05AM -0700, Nstor wrote: > When I access phpinfo.php via IIS it shows access to mysql but when I access > it using my apache set up it does not show access to myslq So uncomment the mysql extension (eg "extension=php_mysqli.dll") line in the php.ini file specified in the "Loaded Configuration File" section of your phpinfo() output. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rotsen at gmail.com Fri May 22 12:14:43 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 22 May 2009 09:14:43 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: <20090522145754.GA19978@panix.com> References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> Message-ID: I have all of the extensions that I want uncommented. I have other set ups running php + mysql, but this is the first time that I tried running it in a W2K3 and using the same mysql for IIS and Apache and different php's. PHP can see other extensions but it is not able to see mysql. That is what I am trying to find out. The Apache error log says: PHP Warning: PHP Startup: Unable to load dynamic library 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 The directory "D:\php5\ext\" is the directory where I have my files. I just do not know why it is unable to load the dynamic libraries? Thanks, Nestor :-) On Fri, May 22, 2009 at 7:57 AM, Daniel Convissor < danielc at analysisandsolutions.com> wrote: > Sire: > > On Fri, May 22, 2009 at 07:31:05AM -0700, Nstor wrote: > > When I access phpinfo.php via IIS it shows access to mysql but when I > access > > it using my apache set up it does not show access to myslq > > So uncomment the mysql extension (eg "extension=php_mysqli.dll") line in > the php.ini file specified in the "Loaded Configuration File" section of > your phpinfo() output. > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Fri May 22 13:28:10 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 22 May 2009 13:28:10 -0400 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> Message-ID: <20090522172809.GA6614@panix.com> Nestor: > The Apache error log says: > PHP Warning: PHP Startup: Unable to load dynamic library > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be > found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified procedure > could not be found.\r\n in Unknown on line 0 Are the files actually there? Does the Apache service have permission to read those files? --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From rotsen at gmail.com Fri May 22 13:32:51 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 22 May 2009 10:32:51 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: <20090522172809.GA6614@panix.com> References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> <20090522172809.GA6614@panix.com> Message-ID: Yes to all your questions. I think the difference might be that this is the first time that I did a PHP automatic install instead of a manual. I am removing PHP and I will do a manual install, to see if it makes a difference. I will find soon is the automatic PHP install is the problem. Thanks, Nestor :-) On Fri, May 22, 2009 at 10:28 AM, Daniel Convissor < danielc at analysisandsolutions.com> wrote: > Nestor: > > > The Apache error log says: > > PHP Warning: PHP Startup: Unable to load dynamic library > > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be > > found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load > > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified procedure > > could not be found.\r\n in Unknown on line 0 > > Are the files actually there? Does the Apache service have permission to > read those files? > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From afischer at smith.edu Fri May 22 14:09:46 2009 From: afischer at smith.edu (Aaron Fischer) Date: Fri, 22 May 2009 14:09:46 -0400 Subject: [nycphp-talk] Zip code radius Message-ID: I'd like to build a feature that will allow someone to enter a zip and a radius and have the page display all the contacts that are within the specified radius of that location. (I have a db table to query that has contacts and their address information, including zips.) Has anyone found a class or code that they like that will do this? Displaying results on a map would be a sweet bonus but is not required. -Aaron From rotsen at gmail.com Fri May 22 14:21:31 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 22 May 2009 11:21:31 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> <20090522172809.GA6614@panix.com> Message-ID: OK, I do not know what to do next. This are errors from the apache log: ----------------------- PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\php5\\ext\\php_mysql.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\php5\\ext\\php_mysqli.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\php5\\ext\\php_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0 --------------------------------- The dll's are on the D:\php5\ext directory. HELP!!!!! Thanks, Nestor ;-) On Fri, May 22, 2009 at 10:32 AM, N?stor wrote: > Yes to all your questions. > > I think the difference might be that this is the first time that I did a > PHP automatic install instead of a manual. I am removing PHP and I will do > a > manual install, to see if it makes a difference. > > I will find soon is the automatic PHP install is the problem. > > Thanks, > > Nestor :-) > > > On Fri, May 22, 2009 at 10:28 AM, Daniel Convissor < > danielc at analysisandsolutions.com> wrote: > >> Nestor: >> >> > The Apache error log says: >> > PHP Warning: PHP Startup: Unable to load dynamic library >> > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be >> > found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to >> load >> > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified procedure >> > could not be found.\r\n in Unknown on line 0 >> >> Are the files actually there? Does the Apache service have permission to >> read those files? >> >> --Dan >> >> -- >> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y >> data intensive web and database programming >> http://www.AnalysisAndSolutions.com/ >> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From php at lynxtdc.com Fri May 22 14:29:57 2009 From: php at lynxtdc.com (Paul McGrane) Date: Fri, 22 May 2009 14:29:57 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: References: Message-ID: <84450b6d0905221129r3e7a0d43jc0288871c56a445@mail.gmail.com> Aaron: I have one...but need to dig it up...ping me off list if you are interested. BTW...does your db table include geo-codes for the addresses...this is key for both parts of what you would like to do. Paul service at lynxtdc.com lynxtdc at gmail.com On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer wrote: > I'd like to build a feature that will allow someone to enter a zip and a > radius and have the page display all the contacts that are within the > specified radius of that location. (I have a db table to query that has > contacts and their address information, including zips.) > > Has anyone found a class or code that they like that will do this? > > Displaying results on a map would be a sweet bonus but is not required. > > -Aaron > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- __________________________ lynxtdc at gmail.com 513.373.4200 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcampbell1 at gmail.com Fri May 22 14:36:14 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Fri, 22 May 2009 14:36:14 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: References: Message-ID: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> I used to do a bit of GIS stuff. Here is what you need to do. 1) Import a list of zip codes & lat/lng centroids into your database. The data is here: http://www.census.gov/tiger/tms/gazetteer/zips.txt 2) Geocode all of your contacts, and store the lat/lng coordinates with the contacts. Google has a free geocoding service. You need a google api key, and they only allow 10,000 queries per day per IP. Depending on how many contacts you have, this may take several days to get all of the coordinates. The docs are here: http://code.google.com/apis/maps/documentation/geocoding/index.html 3) Read up on the Haversine formula. http://en.wikipedia.org/wiki/Haversine_formula Once you have these three pieces, you will be able to calculate the distance between contacts and any zip code. Regards, John Campbell On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer wrote: > I'd like to build a feature that will allow someone to enter a zip and a > radius and have the page display all the contacts that are within the > specified radius of that location. ?(I have a db table to query that has > contacts and their address information, including zips.) > > Has anyone found a class or code that they like that will do this? > > Displaying results on a map would be a sweet bonus but is not required. > > -Aaron > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From krozinov at gmail.com Fri May 22 14:37:44 2009 From: krozinov at gmail.com (Konstantin Rozinov) Date: Fri, 22 May 2009 14:37:44 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: <84450b6d0905221129r3e7a0d43jc0288871c56a445@mail.gmail.com> References: <84450b6d0905221129r3e7a0d43jc0288871c56a445@mail.gmail.com> Message-ID: <865a7acf0905221137s56c7ce68u4506bb798f9e3533@mail.gmail.com> Paul, I would be interested in looking at the code of the class too, just to see how something like that works. Thanks Konstantin On Fri, May 22, 2009 at 2:29 PM, Paul McGrane wrote: > Aaron: > > I have one...but need to dig it up...ping me off list if you are interested. > > BTW...does your db table include geo-codes for the addresses...this is key > for both parts of what you would like to do. > > Paul > service at lynxtdc.com > lynxtdc at gmail.com > > On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer wrote: >> >> I'd like to build a feature that will allow someone to enter a zip and a >> radius and have the page display all the contacts that are within the >> specified radius of that location. ?(I have a db table to query that has >> contacts and their address information, including zips.) >> >> Has anyone found a class or code that they like that will do this? >> >> Displaying results on a map would be a sweet bonus but is not required. >> >> -Aaron >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > > > -- > __________________________ > lynxtdc at gmail.com > 513.373.4200 > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From afischer at smith.edu Fri May 22 16:04:58 2009 From: afischer at smith.edu (Aaron Fischer) Date: Fri, 22 May 2009 16:04:58 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> References: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> Message-ID: <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> Great stuff, thanks John! I got my Google API Key and am reading up on geocoding now Never tried something like this before so it looks like I've got some learning to do. -Aaron On May 22, 2009, at 2:36 PM, John Campbell wrote: > I used to do a bit of GIS stuff. > > Here is what you need to do. > > 1) Import a list of zip codes & lat/lng centroids into your database. > The data is here: > http://www.census.gov/tiger/tms/gazetteer/zips.txt > > 2) Geocode all of your contacts, and store the lat/lng coordinates > with the contacts. Google has a free geocoding service. You need a > google api key, and they only allow 10,000 queries per day per IP. > Depending on how many contacts you have, this may take several days to > get all of the coordinates. > The docs are here: > http://code.google.com/apis/maps/documentation/geocoding/index.html > > 3) Read up on the Haversine formula. > http://en.wikipedia.org/wiki/Haversine_formula > > Once you have these three pieces, you will be able to calculate the > distance between contacts and any zip code. > > Regards, > John Campbell > > > > > On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer > wrote: >> I'd like to build a feature that will allow someone to enter a zip >> and a >> radius and have the page display all the contacts that are within the >> specified radius of that location. (I have a db table to query >> that has >> contacts and their address information, including zips.) >> >> Has anyone found a class or code that they like that will do this? >> >> Displaying results on a map would be a sweet bonus but is not >> required. >> >> -Aaron >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From paul at gubavision.com Fri May 22 16:10:12 2009 From: paul at gubavision.com (Paul Guba) Date: Fri, 22 May 2009 16:10:12 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> References: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> Message-ID: There is actually a class available google it in includes basic script and database with zipcodes and long and lat points. I think it even factors in for the curvature of the earth. Used it a way back. Paul Guba paul at gubavision.com On May 22, 2009, at 4:04 PM, Aaron Fischer wrote: > Great stuff, thanks John! > > I got my Google API Key and am reading up on geocoding now Never > tried something like this before so it looks like I've got some > learning to do. > > -Aaron > > On May 22, 2009, at 2:36 PM, John Campbell wrote: > >> I used to do a bit of GIS stuff. >> >> Here is what you need to do. >> >> 1) Import a list of zip codes & lat/lng centroids into your database. >> The data is here: >> http://www.census.gov/tiger/tms/gazetteer/zips.txt >> >> 2) Geocode all of your contacts, and store the lat/lng coordinates >> with the contacts. Google has a free geocoding service. You need a >> google api key, and they only allow 10,000 queries per day per IP. >> Depending on how many contacts you have, this may take several days >> to >> get all of the coordinates. >> The docs are here: >> http://code.google.com/apis/maps/documentation/geocoding/index.html >> >> 3) Read up on the Haversine formula. >> http://en.wikipedia.org/wiki/Haversine_formula >> >> Once you have these three pieces, you will be able to calculate the >> distance between contacts and any zip code. >> >> Regards, >> John Campbell >> >> >> >> >> On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer >> wrote: >>> I'd like to build a feature that will allow someone to enter a zip >>> and a >>> radius and have the page display all the contacts that are within >>> the >>> specified radius of that location. (I have a db table to query >>> that has >>> contacts and their address information, including zips.) >>> >>> Has anyone found a class or code that they like that will do this? >>> >>> Displaying results on a map would be a sweet bonus but is not >>> required. >>> >>> -Aaron >>> _______________________________________________ >>> New York PHP User Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/show_participation.php >>> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From paul at gubavision.com Fri May 22 16:21:21 2009 From: paul at gubavision.com (Paul Guba) Date: Fri, 22 May 2009 16:21:21 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> References: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> Message-ID: <8E3BB7BA-BAC7-4E47-8F8F-E47ED9D23564@gubavision.com> Here is what I used: http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html Paul Guba paul at gubavision.com On May 22, 2009, at 4:04 PM, Aaron Fischer wrote: > Great stuff, thanks John! > > I got my Google API Key and am reading up on geocoding now Never > tried something like this before so it looks like I've got some > learning to do. > > -Aaron > > On May 22, 2009, at 2:36 PM, John Campbell wrote: > >> I used to do a bit of GIS stuff. >> >> Here is what you need to do. >> >> 1) Import a list of zip codes & lat/lng centroids into your database. >> The data is here: >> http://www.census.gov/tiger/tms/gazetteer/zips.txt >> >> 2) Geocode all of your contacts, and store the lat/lng coordinates >> with the contacts. Google has a free geocoding service. You need a >> google api key, and they only allow 10,000 queries per day per IP. >> Depending on how many contacts you have, this may take several days >> to >> get all of the coordinates. >> The docs are here: >> http://code.google.com/apis/maps/documentation/geocoding/index.html >> >> 3) Read up on the Haversine formula. >> http://en.wikipedia.org/wiki/Haversine_formula >> >> Once you have these three pieces, you will be able to calculate the >> distance between contacts and any zip code. >> >> Regards, >> John Campbell >> >> >> >> >> On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer >> wrote: >>> I'd like to build a feature that will allow someone to enter a zip >>> and a >>> radius and have the page display all the contacts that are within >>> the >>> specified radius of that location. (I have a db table to query >>> that has >>> contacts and their address information, including zips.) >>> >>> Has anyone found a class or code that they like that will do this? >>> >>> Displaying results on a map would be a sweet bonus but is not >>> required. >>> >>> -Aaron >>> _______________________________________________ >>> New York PHP User Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/show_participation.php >>> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From afischer at smith.edu Fri May 22 16:24:00 2009 From: afischer at smith.edu (Aaron Fischer) Date: Fri, 22 May 2009 16:24:00 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: <8E3BB7BA-BAC7-4E47-8F8F-E47ED9D23564@gubavision.com> References: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> <8E3BB7BA-BAC7-4E47-8F8F-E47ED9D23564@gubavision.com> Message-ID: That sounds good, thanks for the link Paul. -Aaron On May 22, 2009, at 4:21 PM, Paul Guba wrote: > Here is what I used: > http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html > Paul Guba > paul at gubavision.com > > > > On May 22, 2009, at 4:04 PM, Aaron Fischer wrote: > >> Great stuff, thanks John! >> >> I got my Google API Key and am reading up on geocoding now Never >> tried something like this before so it looks like I've got some >> learning to do. >> >> -Aaron >> >> On May 22, 2009, at 2:36 PM, John Campbell wrote: >> >>> I used to do a bit of GIS stuff. >>> >>> Here is what you need to do. >>> >>> 1) Import a list of zip codes & lat/lng centroids into your >>> database. >>> The data is here: >>> http://www.census.gov/tiger/tms/gazetteer/zips.txt >>> >>> 2) Geocode all of your contacts, and store the lat/lng coordinates >>> with the contacts. Google has a free geocoding service. You need a >>> google api key, and they only allow 10,000 queries per day per IP. >>> Depending on how many contacts you have, this may take several >>> days to >>> get all of the coordinates. >>> The docs are here: >>> http://code.google.com/apis/maps/documentation/geocoding/index.html >>> >>> 3) Read up on the Haversine formula. >>> http://en.wikipedia.org/wiki/Haversine_formula >>> >>> Once you have these three pieces, you will be able to calculate the >>> distance between contacts and any zip code. >>> >>> Regards, >>> John Campbell >>> >>> >>> >>> >>> On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer >>> wrote: >>>> I'd like to build a feature that will allow someone to enter a >>>> zip and a >>>> radius and have the page display all the contacts that are within >>>> the >>>> specified radius of that location. (I have a db table to query >>>> that has >>>> contacts and their address information, including zips.) >>>> >>>> Has anyone found a class or code that they like that will do this? >>>> >>>> Displaying results on a map would be a sweet bonus but is not >>>> required. >>>> >>>> -Aaron >>>> _______________________________________________ >>>> New York PHP User Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/show_participation.php >>>> >>> _______________________________________________ >>> New York PHP User Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/show_participation.php >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From lists at zaunere.com Fri May 22 17:33:31 2009 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 22 May 2009 17:33:31 -0400 Subject: [nycphp-talk] PHP 5.3 add_x_header Broken In-Reply-To: <20090521224224.GA8503@panix.com> References: <000901c9da62$ccb73a20$6625ae60$@com> <20090521224224.GA8503@panix.com> Message-ID: <02d801c9db24$f4337b50$dc9a71f0$@com> > > However, when the X-PHP-Originating-Script header is added, it's prefixed > > with a \r\n. This thus breaks some email clients, especially when sending > > from a Unix host where all the other headers are separated by only a \n. > > Well, last I looked, the mail format RFC says the headers are supposed to > be \r\n. But it sounds like the rest of the headers generated by PHP are > using \n. Fun. > > Let's take a look at mail.c... > http://cvs.php.net/viewvc.cgi/php-src/ext/standard/mail.c?view=log > > Yep, the rest of the headers use \n. > > Make a patch to line 244 changing \r\n to \n (Or change them all to \r\n > like the RFC says. :) and open up a bug report. Yeah, as I suspected - I'll submit a bug. H From edwardpotter at gmail.com Fri May 22 18:44:08 2009 From: edwardpotter at gmail.com (Edward Potter) Date: Fri, 22 May 2009 18:44:08 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: References: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> Message-ID: Yep, Geocode a list of addresses, export lat, lng file. Suck into the iPhone, parse the file, build a store locator that knows where I am, link those pins to a mysql db, spit out some more xml soup. Fun stuff. Mapkit 3.0 is wild. ;-) Search google + php + map + geocode On May 22, 2009, at 4:10 PM, Paul Guba wrote: > There is actually a class available google it in includes basic > script and database with zipcodes and long and lat points. I think > it even factors in for the curvature of the earth. Used it a way > back. > > > Paul Guba > paul at gubavision.com > > > > On May 22, 2009, at 4:04 PM, Aaron Fischer wrote: > >> Great stuff, thanks John! >> >> I got my Google API Key and am reading up on geocoding now Never >> tried something like this before so it looks like I've got some >> learning to do. >> >> -Aaron >> >> On May 22, 2009, at 2:36 PM, John Campbell wrote: >> >>> I used to do a bit of GIS stuff. >>> >>> Here is what you need to do. >>> >>> 1) Import a list of zip codes & lat/lng centroids into your >>> database. >>> The data is here: >>> http://www.census.gov/tiger/tms/gazetteer/zips.txt >>> >>> 2) Geocode all of your contacts, and store the lat/lng coordinates >>> with the contacts. Google has a free geocoding service. You need a >>> google api key, and they only allow 10,000 queries per day per IP. >>> Depending on how many contacts you have, this may take several >>> days to >>> get all of the coordinates. >>> The docs are here: >>> http://code.google.com/apis/maps/documentation/geocoding/index.html >>> >>> 3) Read up on the Haversine formula. >>> http://en.wikipedia.org/wiki/Haversine_formula >>> >>> Once you have these three pieces, you will be able to calculate the >>> distance between contacts and any zip code. >>> >>> Regards, >>> John Campbell >>> >>> >>> >>> >>> On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer >>> wrote: >>>> I'd like to build a feature that will allow someone to enter a >>>> zip and a >>>> radius and have the page display all the contacts that are within >>>> the >>>> specified radius of that location. (I have a db table to query >>>> that has >>>> contacts and their address information, including zips.) >>>> >>>> Has anyone found a class or code that they like that will do this? >>>> >>>> Displaying results on a map would be a sweet bonus but is not >>>> required. >>>> >>>> -Aaron >>>> _______________________________________________ >>>> New York PHP User Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/show_participation.php >>>> >>> _______________________________________________ >>> New York PHP User Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/show_participation.php >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From consult at covenantedesign.com Fri May 22 19:47:58 2009 From: consult at covenantedesign.com (CED) Date: Fri, 22 May 2009 19:47:58 -0400 Subject: [nycphp-talk] Zip code radius In-Reply-To: References: <8f0676b40905221136w27dd8b64g90c7a069d5a2bfd8@mail.gmail.com> <927D5B53-B962-4AD6-B3E6-8A7EEAFB0415@smith.edu> Message-ID: <4A1739AE.60107@covenantedesign.com> Edward Potter wrote: > Yep, Geocode a list of addresses, export lat, lng file. Suck into the > iPhone, parse the file, build a store locator that knows where I am, > link those pins to a mysql db, spit out some more xml soup. Fun stuff. > > Mapkit 3.0 is wild. ;-) > > Search google + php + map + geocode > > On May 22, 2009, at 4:10 PM, Paul Guba wrote: > >> There is actually a class available google it in includes basic >> script and database with zipcodes and long and lat points. I think >> it even factors in for the curvature of the earth. Used it a way back. >> >> >> Paul Guba >> paul at gubavision.com >> >> >> >> On May 22, 2009, at 4:04 PM, Aaron Fischer wrote: >> >>> Great stuff, thanks John! >>> >>> I got my Google API Key and am reading up on geocoding now Never >>> tried something like this before so it looks like I've got some >>> learning to do. >>> >>> -Aaron >>> >>> On May 22, 2009, at 2:36 PM, John Campbell wrote: >>> >>>> I used to do a bit of GIS stuff. >>>> >>>> Here is what you need to do. >>>> >>>> 1) Import a list of zip codes & lat/lng centroids into your database. >>>> The data is here: >>>> http://www.census.gov/tiger/tms/gazetteer/zips.txt >>>> >>>> 2) Geocode all of your contacts, and store the lat/lng coordinates >>>> with the contacts. Google has a free geocoding service. You need a >>>> google api key, and they only allow 10,000 queries per day per IP. >>>> Depending on how many contacts you have, this may take several days to >>>> get all of the coordinates. >>>> The docs are here: >>>> http://code.google.com/apis/maps/documentation/geocoding/index.html >>>> >>>> 3) Read up on the Haversine formula. >>>> http://en.wikipedia.org/wiki/Haversine_formula >>>> >>>> Once you have these three pieces, you will be able to calculate the >>>> distance between contacts and any zip code. >>>> >>>> Regards, >>>> John Campbell >>>> >>>> >>>> >>>> >>>> On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer >>>> wrote: >>>>> I'd like to build a feature that will allow someone to enter a zip >>>>> and a >>>>> radius and have the page display all the contacts that are within the >>>>> specified radius of that location. (I have a db table to query >>>>> that has >>>>> contacts and their address information, including zips.) >>>>> >>>>> Has anyone found a class or code that they like that will do this? >>>>> >>>>> Displaying results on a map would be a sweet bonus but is not >>>>> required. >>>>> >>>>> -Aaron >>>>> _______________________________________________ >>>>> New York PHP User Group Community Talk Mailing List >>>>> http://lists.nyphp.org/mailman/listinfo/talk >>>>> >>>>> http://www.nyphp.org/show_participation.php >>>>> >>>> _______________________________________________ >>>> New York PHP User Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/show_participation.php >>> >>> _______________________________________________ >>> New York PHP User Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/show_participation.php >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > > > You may not really want afull blown geocoding etc.; you may want to look at somethign lighter like this: http://developer.yahoo.com/geo/placemaker/ From danielc at analysisandsolutions.com Sat May 23 11:57:38 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 23 May 2009 11:57:38 -0400 Subject: [nycphp-talk] testfest: cvs web link Message-ID: <20090523155737.GA25240@panix.com> http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/ -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From bonsaime at gmail.com Sat May 23 15:20:46 2009 From: bonsaime at gmail.com (Jesse Callaway) Date: Sat, 23 May 2009 15:20:46 -0400 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> <20090522172809.GA6614@panix.com> Message-ID: What a nightmare. Can you possibly use the same php version and files for both? Go with CGI and the latest stable php windows installer all around and you might have an easier time at it. -jesse On Fri, May 22, 2009 at 2:21 PM, N?stor wrote: > OK, > > I do not know what to do next.? This are errors from the apache log: > ----------------------- > PHP Warning: ?PHP Startup: Unable to load dynamic library > 'D:\\php5\\ext\\php_mysql.dll' - The specified procedure could not be > found.\r\n in Unknown on line 0 > PHP Warning: ?PHP Startup: Unable to load dynamic library > 'D:\\php5\\ext\\php_mysqli. > dll' - The specified procedure could not be found.\r\n in Unknown on line 0 > PHP Warning: ?PHP Startup: Unable to load dynamic library > 'D:\\php5\\ext\\php_oci8.dll' - The specified module could not be found.\r\n > in Unknown on line 0 > --------------------------------- > > The dll's are on the D:\php5\ext directory. > > HELP!!!!! > > Thanks, > > Nestor ;-) > > On Fri, May 22, 2009 at 10:32 AM, N?stor wrote: >> >> Yes to all your questions. >> >> I think the difference might be that this is the first time that I did a >> PHP automatic install instead of a manual.? I am removing PHP and I will do >> a >> manual install, to see if it makes a difference. >> >> I will find soon is the automatic PHP install is the problem. >> >> Thanks, >> >> Nestor :-) >> >> On Fri, May 22, 2009 at 10:28 AM, Daniel Convissor >> wrote: >>> >>> Nestor: >>> >>> > The Apache error log says: >>> > PHP Warning: ?PHP Startup: Unable to load dynamic library >>> > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be >>> > found.\r\n in Unknown on line 0 PHP Warning: ?PHP Startup: Unable to >>> > load >>> > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified procedure >>> > could not be found.\r\n in Unknown on line 0 >>> >>> Are the files actually there? ?Does the Apache service have permission to >>> read those files? >>> >>> --Dan >>> >>> -- >>> ?T H E ? A N A L Y S I S ? A N D ? S O L U T I O N S ? C O M P A N Y >>> ? ? ? ? ? ?data intensive web and database programming >>> ? ? ? ? ? ? ? ?http://www.AnalysisAndSolutions.com/ >>> ?4015 7th Ave #4, Brooklyn NY 11232 ?v: 718-854-0335 f: 718-854-0409 >>> _______________________________________________ >>> New York PHP User Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/show_participation.php >> > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From ajai at bitblit.net Sat May 23 22:29:24 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Sat, 23 May 2009 22:29:24 -0400 (EDT) Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> Message-ID: On Wed, 20 May 2009, Mitch Pirtle wrote: > That is the price we pay for things getting invented over here. Radio > is another example. First time I saw a car radio in Switzerland and > the name of the song was displaying I almost had a heart attack. Then > I used something called TeleText to check the news on a TV, without > internet access. Cleverly sending data during the blank interval, Teletext is great. They had a similar thing here but it never caught on. Seems its cheaper to have 500 channels for info than using something like Teletext perhaps? Or maybe the not-invented-here symdrome kicked in... > Simple things to a European, but totally tomorrow-land stuff to an > American. We may have invented TV and radio over here, but we also are > stuck supporting the caveman-era technologies that were rolled out > when they were first invented. > > The Europeans sat back, and watched us blow our fingers off with our > experiments; and when the pain stopped and things started looking > really good, they said "Hey, this whole radio thing is a brilliant > idea, and we can include text in our broadcast as well." Sure, but I could also argue a lot of important inventions weren't invented here (radar, jet engines, web browsers, etc), but I think a lot of American either dont know or forget. > For Brooklyn, the problem is that the original cabling was hung from > poles going behind all the houses. Say you are Verizon, and you want > to do the Right Thing by putting in modern facilities. You are going > to have to contact every tenant for every residence to get permission > to go out back and replace that cabling. Let me know when you are > done, assuming I live that long. > > -- Mitch, noting that the cable companies DID get to wire stuff where > it belonged There are a lot of other forces at play here. Verizon for years had to share and the cable companies did not. So there's no incentive for Verizon to improve facilties. Now that they dont *have* to share their network, they can just sit back and wait for the fiber rollout (effectively locking out any competition from anyone else). Ive seen whole building where the copper has been replaced by fiber. So noone else can sell services into that building. Pretty neat strategy. I had a friend who signed up for Verizon FiOS TV. They showed up and replaced ALL of his copper with fiber, including his phone. Unfortunately, he has DSL on the phoneline so he lost Internet access - took them two weeks to 'fix' it. Why do I know a lot about this crap? Well, I used to work for a local ISP - we've seen all the BS, tricks and games from Verizon... Without competition, be prepared for things to be crappy for a long long time. -- Aj. From ajai at bitblit.net Sat May 23 22:35:57 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Sat, 23 May 2009 22:35:57 -0400 (EDT) Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A143898.6060300@gmx.net> Message-ID: On Wed, 20 May 2009, David Krings wrote: > That is the part that I still don't get as a foreigner. Why is most of the > infrastructure here in the US in such a bad state? Exactly what I thought when I moved to the US - it seems Im not weird for questioning it after all! -- Aj. From rotsen at gmail.com Tue May 26 12:55:19 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Tue, 26 May 2009 09:55:19 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> <20090522172809.GA6614@panix.com> Message-ID: OK, I re-started the server and everything is working...ha!!!!1 :-) On Sat, May 23, 2009 at 12:20 PM, Jesse Callaway wrote: > What a nightmare. Can you possibly use the same php version and files > for both? Go with CGI and the latest stable php windows installer all > around and you might have an easier time at it. > > -jesse > > On Fri, May 22, 2009 at 2:21 PM, N?stor wrote: > > OK, > > > > I do not know what to do next. This are errors from the apache log: > > ----------------------- > > PHP Warning: PHP Startup: Unable to load dynamic library > > 'D:\\php5\\ext\\php_mysql.dll' - The specified procedure could not be > > found.\r\n in Unknown on line 0 > > PHP Warning: PHP Startup: Unable to load dynamic library > > 'D:\\php5\\ext\\php_mysqli. > > dll' - The specified procedure could not be found.\r\n in Unknown on line > 0 > > PHP Warning: PHP Startup: Unable to load dynamic library > > 'D:\\php5\\ext\\php_oci8.dll' - The specified module could not be > found.\r\n > > in Unknown on line 0 > > --------------------------------- > > > > The dll's are on the D:\php5\ext directory. > > > > HELP!!!!! > > > > Thanks, > > > > Nestor ;-) > > > > On Fri, May 22, 2009 at 10:32 AM, N?stor wrote: > >> > >> Yes to all your questions. > >> > >> I think the difference might be that this is the first time that I did a > >> PHP automatic install instead of a manual. I am removing PHP and I will > do > >> a > >> manual install, to see if it makes a difference. > >> > >> I will find soon is the automatic PHP install is the problem. > >> > >> Thanks, > >> > >> Nestor :-) > >> > >> On Fri, May 22, 2009 at 10:28 AM, Daniel Convissor > >> wrote: > >>> > >>> Nestor: > >>> > >>> > The Apache error log says: > >>> > PHP Warning: PHP Startup: Unable to load dynamic library > >>> > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be > >>> > found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to > >>> > load > >>> > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified > procedure > >>> > could not be found.\r\n in Unknown on line 0 > >>> > >>> Are the files actually there? Does the Apache service have permission > to > >>> read those files? > >>> > >>> --Dan > >>> > >>> -- > >>> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > >>> data intensive web and database programming > >>> http://www.AnalysisAndSolutions.com/ > >>> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > >>> _______________________________________________ > >>> New York PHP User Group Community Talk Mailing List > >>> http://lists.nyphp.org/mailman/listinfo/talk > >>> > >>> http://www.nyphp.org/show_participation.php > >> > > > > > > _______________________________________________ > > New York PHP User Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/show_participation.php > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Tue May 26 13:17:27 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Tue, 26 May 2009 13:17:27 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <330532b60905201541u554c2be0o8dfce5cc94eaf2e9@mail.gmail.com> Message-ID: <721f1cc50905261017s756eff5eg84c2c8c271ad10a1@mail.gmail.com> On Sat, May 23, 2009 at 10:29 PM, Ajai Khattri wrote: > > > Why do I know a lot about this crap? Well, I used to work for a local ISP > - we've seen all the BS, tricks and games from Verizon... > > Without competition, be prepared for things to be crappy for a long long > time. > > Precisely why I was reluctant to get involved with Verizon -- that, and the fact that they have jerked me around in the past. But -- by way of update -- we got our FIOS installation last week and the Internet service is outstanding, I have to admit. The web interface to their router lets you do any damn thing you can think of, as though you were a small business rather than a home user (same interface for both, maybe?). And we've no complaints about speed. TV is another story. We discovered too late that my wife's old Series 2 Tivo box won't record the channel you want unless you manually tune the box yourself -- hard to do when you aren't home to attend to it. And one of our two Verizon boxes evidently does not work although I am not quite finished fiddling and troubleshooting. The other day I spent more hours than I care to think about screwing around and talking to tech support. I will say to Verizon's credit that they answer the phones and their people seem to have a basic working knowledge of what they are talking about. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Tue May 26 13:28:16 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Tue, 26 May 2009 13:28:16 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> Message-ID: On Wed, May 20, 2009 at 12:07 PM, Mitch Pirtle wrote: > Was getting a ride from a guy who owned a communications services > company, and we discussed megabit services in Brooklyn. He mentioned > that Brooklyn was notorious for having totally substandard wiring > running down poles between all the houses and buildings, and that it > was a logistics nightmare for Verizon to manage making upgrades nearly > impossible - and the result is that pretty much nobody in the city can > get more than typical 1.5MBps DSL. Better chances for faster service > in Cambodia. Main reason? Corruption built on a political machine that is still alive (if not as well as it used to be). Kings (Brooklyn) was last county in the US to get cable television, in like the late 80s. You have to hire the right people if you want to tear up the streets, you know what I mean? >From 1987: http://www.nytimes.com/1987/09/22/nyregion/koch-clears-cable-tv-work-for-brooklyn-and-the-bronx.html?scp=1&sq=brooklyn%20cable%20television&st=cse From ramons at gmx.net Tue May 26 13:52:56 2009 From: ramons at gmx.net (David Krings) Date: Tue, 26 May 2009 13:52:56 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <3B5457F0-5E86-45DF-977D-8F3F2DBDA039@gmail.com> <330532b60905200907k4965c9f0wa1ce5506a2486356@mail.gmail.com> Message-ID: <4A1C2C78.4070900@gmx.net> Chris Snyder wrote: > Kings (Brooklyn) was last county in the US to get cable television, in > like the late 80s. You have to hire the right people if you want to > tear up the streets, you know what I mean? Well, if they would at least tear up the streets. Another thing I don't get is the notoriously unreliable installation of infrastructure on what amounts sturdy bean poles. The whole shebang is down in a moderate storm and becomes flaky as soon as it rains. Besides that, one of the top reasons for phone outages are trash trucks who back into the phone poles. I don't even go into detail about phone poles and traffic safety.... David From edwardpotter at gmail.com Tue May 26 13:56:41 2009 From: edwardpotter at gmail.com (Edward Potter) Date: Tue, 26 May 2009 13:56:41 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: ummm, doesn't everyone here feel a little weird when you realize that in Korea they are feeding their kindergarten kids with bandwidth 10X what we "may see" in a year from now, for years there? Like that's why the USA is kinda of falling off the map in the Asia explosion? So did capitalizim kill us in the end? Great, even Crammer is quoting Marx now. Yipes! :-) On Fri, May 15, 2009 at 6:09 PM, Daniel Krook wrote: > Hi David, > > > From: David Mintz > > > > Anybody using Verizon's FIOS and have any comments? I am > > moving next week (from Maplewood NJ to South Orange NJ) > > and considering ordering. I want to make sure they don't > > do block you from connecting to your own machine via http > > or ssh from outside your home. That would be a dealbreaker. > > > > The other broadband alternative in this area is > > Cablevision. Any comments? Thanks. > > > I've been using Cablevision's Optimum Boost service in CT for about 2 and > a half years. The Boost package lets you use ports 25 and 80 (only those > 2 officially, but you can use others), so I've been hosting my mail and > Web server at home with an IP address that's been de facto static this > whole time (though they don't officially call it static). > > http://www.optimum.com/order/boost/ > > One caveat, they recently changed the frequency on which Boost customers > get Internet service in order to prepare for the 101Mbps service later > this year ( > > http://www.dslreports.com/shownews/cablevision-101mbps-for-9995-102133?nocomment=1 > ). This new frequency is less tolerant of bad wiring in your place but > also your neighbors who might feed interference back on the line. So ask > them if there have been reports of problems in your new neighborhood. > > > > Thanks, > -Dan > > > Daniel Krook > Senior IT Specialist - Tools Team Lead, Global Solutions, ibm.com > IBM Certified IT Specialist, SCSA, SCJP, SCWCD, ZCE, ICDAssoc., ICAD > > > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Tue May 26 15:18:14 2009 From: ramons at gmx.net (David Krings) Date: Tue, 26 May 2009 15:18:14 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <721f1cc50905151207r6df930f1p60a0df4033d109ae@mail.gmail.com> Message-ID: <4A1C4076.1050201@gmx.net> Edward Potter wrote: > Like that's why the USA is kinda of falling off the map in the Asia > explosion? So did capitalizim kill us in the end? Great, even Crammer > is quoting Marx now. Yipes! :-) Well, way back in the late 80s I visited friends in East Germany. Two things really struck me odd: getting a table assigned in an ordinary restaurant and the "Employee of the Month" displays with picture in grocery stores. Fast forward 10 years, my first visit to the US: I get a table assigned at Friendly's and the "Employee of the Month" displays in the stores were identical in make and design like those in communist East Germany. Seems as if there isn't much difference after all. And Karl Marx intended his ideas to be implemented in highly industrialized countries, like England. Not in farm-based economies like Russia. I am sure he'd still rotate in his grave if he could. But communism isn't bad, only the first 500 years are tough. David From codebowl at gmail.com Tue May 26 16:02:53 2009 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 26 May 2009 16:02:53 -0400 Subject: [nycphp-talk] PHP 5 Interfaces Message-ID: Guys in the past I have used interfaces and have do not recall hitting this issue. I have the following interface getCurrentPage() - 1; } ... } I keep getting this error. Fatal error: Access type for interface method Pagable::getPreviousPage() must be omitted in /Applications/MAMP/ htdocs/yp/inc/Pagable.php on line 5 I am not sure what is causing it but if I remove the private keyword then it complains that it must be declared public in the class. Is there a reason I cannot declare a method as being private in the interface? Thanks, Joseph Crawford -------------- next part -------------- An HTML attachment was scrubbed... URL: From guilhermeblanco at gmail.com Tue May 26 16:05:13 2009 From: guilhermeblanco at gmail.com (Guilherme Blanco) Date: Tue, 26 May 2009 17:05:13 -0300 Subject: [nycphp-talk] PHP 5 Interfaces In-Reply-To: References: Message-ID: **ALL** declared methods in an Interface MUST be declared as public. http://www.php.net/interface Cheers, On Tue, May 26, 2009 at 5:02 PM, Joseph Crawford wrote: > Guys in the past I have used interfaces and have do not recall hitting this > issue. > I have the following interface > interface Pagable > { > private function getPreviousPage(); > private?function getNextPage(); > private?function getCurrentPage(); > private?function getStartPage(); > private?function getLastPage(); > private?function getTotalPages(); > public?function getPageString(); > public?function getTotalResults(); > } > class YP_Listing_Handler implements Pagable > { > ... > private function getPreviousPage() > { > return $this->getCurrentPage() - 1; > } > ... > } > I keep getting this error. > Fatal error: Access type for interface method Pagable::getPreviousPage() > must be omitted in?/Applications/MAMP/htdocs/yp/inc/Pagable.php?on line?5 > > I am not sure what is causing it but if I remove the private keyword then it > complains that it must be declared public in the class. > Is there a reason I cannot declare a method as being private in the > interface? > Thanks, > Joseph Crawford > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco at hotmail.com URL: http://blog.bisna.com S?o Paulo - SP/Brazil From sequethin at gmail.com Tue May 26 16:07:38 2009 From: sequethin at gmail.com (Michael Hernandez) Date: Tue, 26 May 2009 16:07:38 -0400 Subject: [nycphp-talk] PHP 5 Interfaces In-Reply-To: References: Message-ID: <1243368458.10844.267.camel@mikeh-ubuntu> On Tue, 2009-05-26 at 16:02 -0400, Joseph Crawford wrote: > Guys in the past I have used interfaces and have do not recall hitting > this issue. > > > I have the following interface > > > > > interface Pagable > { > private function getPreviousPage(); > private function getNextPage(); > private function getCurrentPage(); > private function getStartPage(); > private function getLastPage(); > private function getTotalPages(); > > public function getPageString(); > public function getTotalResults(); > } > > > class YP_Listing_Handler implements Pagable > { > > > ... > private function getPreviousPage() > { > return $this->getCurrentPage() - 1; > > } > ... > } > > > I keep getting this error. > > > Fatal error: Access type for interface method > Pagable::getPreviousPage() must be omitted > in /Applications/MAMP/htdocs/yp/inc/Pagable.php on line 5 > > > > > I am not sure what is causing it but if I remove the private keyword > then it complains that it must be declared public in the class. > > > Is there a reason I cannot declare a method as being private in the > interface? > > > Thanks, > Joseph Crawford > Interfaces are, by design, intended to have public methods that are supposed to be implemented by classes that implement the interface with the implements keyword. At least thats the way the books I've read explain it. --Mike H From codebowl at gmail.com Tue May 26 16:27:09 2009 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 26 May 2009 16:27:09 -0400 Subject: [nycphp-talk] PHP 5 Interfaces In-Reply-To: References: Message-ID: <8F2745B2-24A1-48A7-9FB8-87526860D049@gmail.com> THanks for pointing that out, I guess I am a bit confused as to why they are restricted to public but it answers my question :) Thanks Again. On May 26, 2009, at 4:05 PM, Guilherme Blanco wrote: > **ALL** declared methods in an Interface MUST be declared as public. > > http://www.php.net/interface > > Cheers, > > On Tue, May 26, 2009 at 5:02 PM, Joseph Crawford > wrote: >> Guys in the past I have used interfaces and have do not recall >> hitting this >> issue. >> I have the following interface >> > interface Pagable >> { >> private function getPreviousPage(); >> private function getNextPage(); >> private function getCurrentPage(); >> private function getStartPage(); >> private function getLastPage(); >> private function getTotalPages(); >> public function getPageString(); >> public function getTotalResults(); >> } >> class YP_Listing_Handler implements Pagable >> { >> ... >> private function getPreviousPage() >> { >> return $this->getCurrentPage() - 1; >> } >> ... >> } >> I keep getting this error. >> Fatal error: Access type for interface method >> Pagable::getPreviousPage() >> must be omitted in /Applications/MAMP/htdocs/yp/inc/Pagable.php on >> line 5 >> >> I am not sure what is causing it but if I remove the private >> keyword then it >> complains that it must be declared public in the class. >> Is there a reason I cannot declare a method as being private in the >> interface? >> Thanks, >> Joseph Crawford >> >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > > > > -- > Guilherme Blanco - Web Developer > CBC - Certified Bindows Consultant > Cell Phone: +55 (16) 9215-8480 > MSN: guilhermeblanco at hotmail.com > URL: http://blog.bisna.com > S?o Paulo - SP/Brazil > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php From chsnyder at gmail.com Tue May 26 16:35:48 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Tue, 26 May 2009 16:35:48 -0400 Subject: [nycphp-talk] PHP 5 Interfaces In-Reply-To: <8F2745B2-24A1-48A7-9FB8-87526860D049@gmail.com> References: <8F2745B2-24A1-48A7-9FB8-87526860D049@gmail.com> Message-ID: On Tue, May 26, 2009 at 4:27 PM, Joseph Crawford wrote: > THanks for pointing that out, I guess I am a bit confused as to why they are > restricted to public but it answers my question :) > The general idea is that everything behind the interface is a black box, so that a class which implements interface foo can be replaced with any other class which implements interface foo. Private methods, being private, are inside of that black box. They literally don't matter as far as the interface is concerned, because they can not be called from outside the class. If you're asking, "Why should I use interfaces?" the answer is probably only "Because you want to be rigorous and/or satisfy an externally imposed requirement that you implement particular interfaces." Most PHP projects are going to be to small and too fluid to really take advantage of them. You can get all the benefits of interfaces without actually writing them out formally by only relying on well-documented public methods and not accessing properties directly. From guilhermeblanco at gmail.com Tue May 26 16:40:40 2009 From: guilhermeblanco at gmail.com (Guilherme Blanco) Date: Tue, 26 May 2009 17:40:40 -0300 Subject: [nycphp-talk] PHP 5 Interfaces In-Reply-To: References: <8F2745B2-24A1-48A7-9FB8-87526860D049@gmail.com> Message-ID: The main purpose of interface is to have a well defined and correctly implemented fluent interface between 2 code pieces. If you want to have a particular method as invisible to other classes, I'd suggest you to create an abstract class that trigger errors on each protected function. Remember that protected functions when overloaded can continue as protected OR as public. Cheers, On Tue, May 26, 2009 at 5:35 PM, Chris Snyder wrote: > On Tue, May 26, 2009 at 4:27 PM, Joseph Crawford wrote: >> THanks for pointing that out, I guess I am a bit confused as to why they are >> restricted to public but it answers my question :) >> > > The general idea is that everything behind the interface is a black > box, so that a class which implements interface foo can be replaced > with any other class which implements interface foo. > > Private methods, being private, are inside of that black box. They > literally don't matter as far as the interface is concerned, because > they can not be called from outside the class. > > If you're asking, "Why should I use interfaces?" the answer is > probably only "Because you want to be rigorous and/or satisfy an > externally imposed requirement that you implement particular > interfaces." Most PHP projects are going to be to small and too fluid > to really take advantage of them. > > You can get all the benefits of interfaces without actually writing > them out formally by only relying on well-documented public methods > and not accessing properties directly. > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco at hotmail.com URL: http://blog.bisna.com S?o Paulo - SP/Brazil From sequethin at gmail.com Tue May 26 16:53:42 2009 From: sequethin at gmail.com (Michael Hernandez) Date: Tue, 26 May 2009 16:53:42 -0400 Subject: [nycphp-talk] PHP 5 Interfaces In-Reply-To: <8F2745B2-24A1-48A7-9FB8-87526860D049@gmail.com> References: <8F2745B2-24A1-48A7-9FB8-87526860D049@gmail.com> Message-ID: <1243371222.10844.297.camel@mikeh-ubuntu> On Tue, 2009-05-26 at 16:27 -0400, Joseph Crawford wrote: > THanks for pointing that out, I guess I am a bit confused as to why > they are restricted to public but it answers my question :) > > Thanks Again. I think the idea is that by defining and interface you are planning to implement common methods across multiple classes. If you were going to make the methods private, you'd probably design your classes in such a way that the abstract base class contained a protected method that you could redefine in child classes? Or maybe a private method in a non-abstract parent class (since a private method in an abstract class would make no sense, considering you cannot instantiate an abstract class there'd be no way to call that method). If you're using an interface at all, it seems that you are doing so because you want to take advantage of the ability to share common methods among several classes, or take advantage of PHP's only form of multiple inheritance, since you cannot extend a class from multiple parents but you can implement multiple interfaces. If something is intended to be private, putting it in an interface (which is sort of designed to be shared) wouldn't really make sense. I tend to think of an interface in a physical sense, for example the interface to a door. Every door has some means to open it and close it, and thus implements a common interface. It's something all doors share. We couldn't really define how to open every door because some have a door-knob, some might have a handle, some might use a motion sensor, some you just push. Same goes for close() - with some doors you push the door the other way, or turn the handle the other way, or you might even just let the door go and it will close by itself. Either way, this is something that all the doors would share(the ability to be opened and closed), and the knobs or handles or what-have-you, are all intended to be used by another class (a person?). Having a private method in the interface that would be shared among all doors wouldn't make much sense. On the other hand, a magnetic door might have a private unlockMagnetSensorThing() method, a door with a knob might have private methods that deal with the knob's internals? That's how I think of it anyway, I'm not an expert but I hope it might help! --Mike H From ajai at bitblit.net Wed May 27 13:43:08 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 27 May 2009 13:43:08 -0400 (EDT) Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905261017s756eff5eg84c2c8c271ad10a1@mail.gmail.com> Message-ID: On Tue, 26 May 2009, David Mintz wrote: > TV is another story. We discovered too late that my wife's old Series 2 Tivo > box won't record the channel you want unless you manually tune the box > yourself -- hard to do when you aren't home to attend to it. Did you use a direct connection or an IR blaster from Tivo->cable box? I also have a Tivo S2, and use the IR blaster stuck to the front of the cable box... The best TV service Ive seen is AT&T Uverse which uses some clever multicasting. But its not available anywhere around New York City. -- Aj. From ajai at bitblit.net Wed May 27 13:46:04 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 27 May 2009 13:46:04 -0400 (EDT) Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <4A1C4076.1050201@gmx.net> Message-ID: On Tue, 26 May 2009, David Krings wrote: > But communism isn't bad, only the > first 500 years are tough. I would argue that its never been truly implemented anywhere. -- Aj. From ken at secdat.com Wed May 27 14:14:13 2009 From: ken at secdat.com (Kenneth Downs) Date: Wed, 27 May 2009 14:14:13 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: Message-ID: <4A1D82F5.60301@secdat.com> Ajai Khattri wrote: > On Tue, 26 May 2009, David Krings wrote: > > >> But communism isn't bad, only the >> first 500 years are tough. >> > > I would argue that its never been truly implemented anywhere. > Here we go, way off topic :) As an amateur historian, I'd say socialism cannot be attempted yet because Marx's historical antecedents are not yet in place. Marx said capitalism would have to make over the entire world, and that process was stunted severely in the 20th century by Leninist regimes, which really did nothing more than invent industrial feudalism. As a reaction against those regimes, capitalist regimes were more lenient towards things like trade unions than they might have been, allowing substantial industrial middle classes to grow up (which now of course are disappearing). Now that the regimes are largely gone, and even China is going capitalist, the process of having capitalism dominate the globe is now in full swing. For us amateur historians, the thing to watch is separation between rich and poor. A dramatic separation is required in order for the proletariat to become class conscious. But like many, I don't really believe the proles would suddenly become class conscious if capitalism somehow "won" and we all became slaves to the owners of the means of production. That type of thing borders on science fiction a la Clark's "Childhood's End" or Vinge's "singularity" concept. End of totally off-topic comments. Oh yeah, PHP is great. -- Kenneth Downs Secure Data Software, Inc. www.secdat.com www.andromeda-project.org 631-689-7200 Fax: 631-689-0527 cell: 631-379-0010 -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Wed May 27 15:54:45 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 27 May 2009 15:54:45 -0400 Subject: [nycphp-talk] testfest report Message-ID: <20090527195445.GA3559@panix.com> Ladies and Gentlemen: I've been asked to brief the group about the PHP TestFest held this past Saturday. Most importantly, the six of us had fun. It took a while for me to to get everyone up to speed with the whole phpt thing, but once we got going, it was rewarding. We focused on ext/dom/document.c, which should now have nearly everything covered with basic tests, plus there are some variations. I'm looking forward to seeing the new code coverage output. :) There's talk of NYPHP hosting testing activities on a more regular basis. We'll keep you posted. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From vtbludgeon at gmail.com Wed May 27 17:09:37 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Wed, 27 May 2009 17:09:37 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: References: <721f1cc50905261017s756eff5eg84c2c8c271ad10a1@mail.gmail.com> Message-ID: <721f1cc50905271409k4a0486e4t51e8d7c5d52be13c@mail.gmail.com> On Wed, May 27, 2009 at 1:43 PM, Ajai Khattri wrote: > On Tue, 26 May 2009, David Mintz wrote: > > > TV is another story. We discovered too late that my wife's old Series 2 > Tivo > > box won't record the channel you want unless you manually tune the box > > yourself -- hard to do when you aren't home to attend to it. > > Did you use a direct connection or an IR blaster from Tivo->cable box? I > also have a Tivo S2, and use the IR blaster stuck to the front of the > cable box... > > I tried, but could not for the life of me locate the IR sensor on the Verizon box. Wait... you say IR emitters attached to the front of the *cable* box? I thought it was the other way around, i.e., that the Tivo box had to send commands to the cable box and therefore the emitters went on the tivo. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcampbell1 at gmail.com Wed May 27 17:15:45 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Wed, 27 May 2009 17:15:45 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905271409k4a0486e4t51e8d7c5d52be13c@mail.gmail.com> References: <721f1cc50905261017s756eff5eg84c2c8c271ad10a1@mail.gmail.com> <721f1cc50905271409k4a0486e4t51e8d7c5d52be13c@mail.gmail.com> Message-ID: <8f0676b40905271415y39e50294of1c086483e04648e@mail.gmail.com> On Wed, May 27, 2009 at 5:09 PM, David Mintz wrote: > I tried, but could not for the life of me locate the IR sensor on the > Verizon box. Wait... you say IR emitters attached to the front of the > *cable* box?? I thought it was the other way around, i.e., that the Tivo box > had to send commands to the cable box and therefore the emitters went on the > tivo. They plug in to the TiVo, and the IR LEDs should be pointed at the cable box's IR sensor. From leam at reuel.net Wed May 27 19:03:24 2009 From: leam at reuel.net (Leam Hall) Date: Wed, 27 May 2009 19:03:24 -0400 Subject: [nycphp-talk] Old articles on OnLAMP at O'Reilly Message-ID: <4A1DC6BC.2060909@reuel.net> Yikes! http://www.onlamp.com/php/ If I see correctly, the oldest articles there are from 2006! Any of you smart PHP folk want to add some resume bullets and post a few things to keep us in the communal lime-light? Leam From lists at zaunere.com Wed May 27 19:18:56 2009 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 27 May 2009 19:18:56 -0400 Subject: [nycphp-talk] Old articles on OnLAMP at O'Reilly In-Reply-To: <4A1DC6BC.2060909@reuel.net> References: <4A1DC6BC.2060909@reuel.net> Message-ID: <00be01c9df21$825d30b0$87179210$@com> > Yikes! > > http://www.onlamp.com/php/ > > If I see correctly, the oldest articles there are from 2006! Any of you > smart PHP folk want to add some resume bullets and post a few things to > keep us in the communal lime-light? Hmm... here is from 2000? http://www.onlamp.com/pub/q/all_php_articles Sort of funny to look back through the ages - some things never change, like handling forms. Other things change completely, like using Javascript/Ajax. H From ps at blu-studio.com Wed May 27 19:38:46 2009 From: ps at blu-studio.com (Peter Sawczynec) Date: Wed, 27 May 2009 19:38:46 -0400 Subject: [nycphp-talk] NYPHP Tech Message-ID: <000001c9df24$48223d70$d866b850$@com> Good Day All: Would anyone support a new SIG called maybe "NYPHP Tech" or "NYPHP Techcetera". In this SIG we could all post w/o guilt all our tech and tech-related questions, things such as: 1) best laptop 2) best linux distro 3) best google map mashup 4) best wireless hotspot provider 5) best computer store online 6) most tech friendly airline 7) best hi-energy drink for computer work 8) SEO questions 9) best city for tech jobs 10) best smart phone(s) 11) best? I personally would love this. Because I really respect the people on this list and I know they know technology real well not just PHP. What do you think? Warmest regards, Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From consult at covenantedesign.com Wed May 27 19:59:24 2009 From: consult at covenantedesign.com (CED) Date: Wed, 27 May 2009 19:59:24 -0400 Subject: [nycphp-talk] NYPHP Tech In-Reply-To: <000001c9df24$48223d70$d866b850$@com> References: <000001c9df24$48223d70$d866b850$@com> Message-ID: <4A1DD3DC.5020204@covenantedesign.com> Peter Sawczynec wrote: > > Good Day All: > > > > Would anyone support a new SIG called maybe "NYPHP Tech" or "NYPHP > Techcetera". > > > > In this SIG we could all post w/o guilt all our tech and tech-related > questions, things such as: > > 1) best laptop > > 2) best linux distro > > 3) best google map mashup > > 4) best wireless hotspot provider > > 5) best computer store online > > 6) most tech friendly airline > > 7) best hi-energy drink for computer work > > 8) SEO questions > > 9) best city for tech jobs > > 10) best smart phone(s) > > 11) best? > > > > I personally would love this. Because I really respect the people on > this list and I know > > they know technology real well not just PHP. > > > > What do you think? > > > > > > Warmest regards, > > > > Peter Sawczynec > > Technology Dir. > > bl?studio > > 941.893.0396 > > ps at blu-studio.com > > www.blu-studio.com > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php ... best PHP mailing list ... From JoeyD473 at nyc.rr.com Wed May 27 23:34:04 2009 From: JoeyD473 at nyc.rr.com (Joey Derrico) Date: Wed, 27 May 2009 23:34:04 -0400 Subject: [nycphp-talk] NYPHP Tech In-Reply-To: <000001c9df24$48223d70$d866b850$@com> References: <000001c9df24$48223d70$d866b850$@com> Message-ID: <4A1E062C.30005@nyc.rr.com> Sounds ok with me Joey Peter Sawczynec wrote: > > Good Day All: > > > > Would anyone support a new SIG called maybe "NYPHP Tech" or "NYPHP > Techcetera". > > > > In this SIG we could all post w/o guilt all our tech and tech-related > questions, things such as: > > 1) best laptop > > 2) best linux distro > > 3) best google map mashup > > 4) best wireless hotspot provider > > 5) best computer store online > > 6) most tech friendly airline > > 7) best hi-energy drink for computer work > > 8) SEO questions > > 9) best city for tech jobs > > 10) best smart phone(s) > > 11) best? > > > > I personally would love this. Because I really respect the people on > this list and I know > > they know technology real well not just PHP. > > > > What do you think? > > > > > > Warmest regards, > > > > Peter Sawczynec > > Technology Dir. > > bl?studio > > 941.893.0396 > > ps at blu-studio.com > > www.blu-studio.com > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From bonsaime at gmail.com Thu May 28 11:53:01 2009 From: bonsaime at gmail.com (Jesse Callaway) Date: Thu, 28 May 2009 11:53:01 -0400 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522134703.GB7943@panix.com> <20090522145754.GA19978@panix.com> <20090522172809.GA6614@panix.com> Message-ID: Nice to hear! Did you have to change anything, or just the old ctrl alt del? -jesse On Tue, May 26, 2009 at 12:55 PM, N?stor wrote: > OK, I re-started the server and everything is working...ha!!!!1 > > :-) > > On Sat, May 23, 2009 at 12:20 PM, Jesse Callaway wrote: >> >> What a nightmare. Can you possibly use the same php version and files >> for both? Go with CGI and the latest stable php windows installer all >> around and you might have an easier time at it. >> >> -jesse >> >> On Fri, May 22, 2009 at 2:21 PM, N?stor wrote: >> > OK, >> > >> > I do not know what to do next.? This are errors from the apache log: >> > ----------------------- >> > PHP Warning: ?PHP Startup: Unable to load dynamic library >> > 'D:\\php5\\ext\\php_mysql.dll' - The specified procedure could not be >> > found.\r\n in Unknown on line 0 >> > PHP Warning: ?PHP Startup: Unable to load dynamic library >> > 'D:\\php5\\ext\\php_mysqli. >> > dll' - The specified procedure could not be found.\r\n in Unknown on >> > line 0 >> > PHP Warning: ?PHP Startup: Unable to load dynamic library >> > 'D:\\php5\\ext\\php_oci8.dll' - The specified module could not be >> > found.\r\n >> > in Unknown on line 0 >> > --------------------------------- >> > >> > The dll's are on the D:\php5\ext directory. >> > >> > HELP!!!!! >> > >> > Thanks, >> > >> > Nestor ;-) >> > >> > On Fri, May 22, 2009 at 10:32 AM, N?stor wrote: >> >> >> >> Yes to all your questions. >> >> >> >> I think the difference might be that this is the first time that I did >> >> a >> >> PHP automatic install instead of a manual.? I am removing PHP and I >> >> will do >> >> a >> >> manual install, to see if it makes a difference. >> >> >> >> I will find soon is the automatic PHP install is the problem. >> >> >> >> Thanks, >> >> >> >> Nestor :-) >> >> >> >> On Fri, May 22, 2009 at 10:28 AM, Daniel Convissor >> >> wrote: >> >>> >> >>> Nestor: >> >>> >> >>> > The Apache error log says: >> >>> > PHP Warning: ?PHP Startup: Unable to load dynamic library >> >>> > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not be >> >>> > found.\r\n in Unknown on line 0 PHP Warning: ?PHP Startup: Unable to >> >>> > load >> >>> > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified >> >>> > procedure >> >>> > could not be found.\r\n in Unknown on line 0 >> >>> >> >>> Are the files actually there? ?Does the Apache service have permission >> >>> to >> >>> read those files? >> >>> >> >>> --Dan >> >>> >> >>> -- >> >>> ?T H E ? A N A L Y S I S ? A N D ? S O L U T I O N S ? C O M P A N Y >> >>> ? ? ? ? ? ?data intensive web and database programming >> >>> ? ? ? ? ? ? ? ?http://www.AnalysisAndSolutions.com/ >> >>> ?4015 7th Ave #4, Brooklyn NY 11232 ?v: 718-854-0335 f: 718-854-0409 >> >>> _______________________________________________ >> >>> New York PHP User Group Community Talk Mailing List >> >>> http://lists.nyphp.org/mailman/listinfo/talk >> >>> >> >>> http://www.nyphp.org/show_participation.php >> >> >> > >> > >> > _______________________________________________ >> > New York PHP User Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/show_participation.php >> > >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > From vtbludgeon at gmail.com Thu May 28 12:38:38 2009 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 28 May 2009 12:38:38 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <8f0676b40905271415y39e50294of1c086483e04648e@mail.gmail.com> References: <721f1cc50905261017s756eff5eg84c2c8c271ad10a1@mail.gmail.com> <721f1cc50905271409k4a0486e4t51e8d7c5d52be13c@mail.gmail.com> <8f0676b40905271415y39e50294of1c086483e04648e@mail.gmail.com> Message-ID: <721f1cc50905280938l65b0891cqb31e3a5afb76003a@mail.gmail.com> On Wed, May 27, 2009 at 5:15 PM, John Campbell wrote: > On Wed, May 27, 2009 at 5:09 PM, David Mintz wrote: > > I tried, but could not for the life of me locate the IR sensor on the > > Verizon box. Wait... you say IR emitters attached to the front of the > > *cable* box? I thought it was the other way around, i.e., that the Tivo > box > > had to send commands to the cable box and therefore the emitters went on > the > > tivo. > > They plug in to the TiVo, and the IR LEDs should be pointed at the > cable box's IR sensor. Right, just as I thought. Which is why I am thwarted b/c i cannot find the damn IR sensor on the cable box. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Thu May 28 14:07:25 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Thu, 28 May 2009 11:07:25 -0700 Subject: [nycphp-talk] W2K3 + apache+ php + mysql In-Reply-To: References: <20090522145754.GA19978@panix.com> <20090522172809.GA6614@panix.com> Message-ID: No, I just re-started. I fyou follow the info in the INSTALL file it should work but on an MS OS just re-start afterwards to play it safe. :-) On Thu, May 28, 2009 at 8:53 AM, Jesse Callaway wrote: > Nice to hear! Did you have to change anything, or just the old ctrl alt > del? > > -jesse > > On Tue, May 26, 2009 at 12:55 PM, N?stor wrote: > > OK, I re-started the server and everything is working...ha!!!!1 > > > > :-) > > > > On Sat, May 23, 2009 at 12:20 PM, Jesse Callaway > wrote: > >> > >> What a nightmare. Can you possibly use the same php version and files > >> for both? Go with CGI and the latest stable php windows installer all > >> around and you might have an easier time at it. > >> > >> -jesse > >> > >> On Fri, May 22, 2009 at 2:21 PM, N?stor wrote: > >> > OK, > >> > > >> > I do not know what to do next. This are errors from the apache log: > >> > ----------------------- > >> > PHP Warning: PHP Startup: Unable to load dynamic library > >> > 'D:\\php5\\ext\\php_mysql.dll' - The specified procedure could not be > >> > found.\r\n in Unknown on line 0 > >> > PHP Warning: PHP Startup: Unable to load dynamic library > >> > 'D:\\php5\\ext\\php_mysqli. > >> > dll' - The specified procedure could not be found.\r\n in Unknown on > >> > line 0 > >> > PHP Warning: PHP Startup: Unable to load dynamic library > >> > 'D:\\php5\\ext\\php_oci8.dll' - The specified module could not be > >> > found.\r\n > >> > in Unknown on line 0 > >> > --------------------------------- > >> > > >> > The dll's are on the D:\php5\ext directory. > >> > > >> > HELP!!!!! > >> > > >> > Thanks, > >> > > >> > Nestor ;-) > >> > > >> > On Fri, May 22, 2009 at 10:32 AM, N?stor wrote: > >> >> > >> >> Yes to all your questions. > >> >> > >> >> I think the difference might be that this is the first time that I > did > >> >> a > >> >> PHP automatic install instead of a manual. I am removing PHP and I > >> >> will do > >> >> a > >> >> manual install, to see if it makes a difference. > >> >> > >> >> I will find soon is the automatic PHP install is the problem. > >> >> > >> >> Thanks, > >> >> > >> >> Nestor :-) > >> >> > >> >> On Fri, May 22, 2009 at 10:28 AM, Daniel Convissor > >> >> wrote: > >> >>> > >> >>> Nestor: > >> >>> > >> >>> > The Apache error log says: > >> >>> > PHP Warning: PHP Startup: Unable to load dynamic library > >> >>> > 'D:/php5/ext\\php_mysql.dll' - The specified procedure could not > be > >> >>> > found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable > to > >> >>> > load > >> >>> > dynamic library 'D:/php5/ext\\php_mysqli.dll' - The specified > >> >>> > procedure > >> >>> > could not be found.\r\n in Unknown on line 0 > >> >>> > >> >>> Are the files actually there? Does the Apache service have > permission > >> >>> to > >> >>> read those files? > >> >>> > >> >>> --Dan > >> >>> > >> >>> -- > >> >>> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > >> >>> data intensive web and database programming > >> >>> http://www.AnalysisAndSolutions.com/ > >> >>> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > >> >>> _______________________________________________ > >> >>> New York PHP User Group Community Talk Mailing List > >> >>> http://lists.nyphp.org/mailman/listinfo/talk > >> >>> > >> >>> http://www.nyphp.org/show_participation.php > >> >> > >> > > >> > > >> > _______________________________________________ > >> > New York PHP User Group Community Talk Mailing List > >> > http://lists.nyphp.org/mailman/listinfo/talk > >> > > >> > http://www.nyphp.org/show_participation.php > >> > > >> _______________________________________________ > >> New York PHP User Group Community Talk Mailing List > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> http://www.nyphp.org/show_participation.php > > > > > > _______________________________________________ > > New York PHP User Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/show_participation.php > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ps at blu-studio.com Thu May 28 16:58:05 2009 From: ps at blu-studio.com (Peter Sawczynec) Date: Thu, 28 May 2009 16:58:05 -0400 Subject: [nycphp-talk] PHP Freelance Sites Message-ID: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> Has anyone used a freelance programming or web or graphics website to bid on and acquire jobs. Got any good website names? Any experiences? Warmest regards, Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From oorza2k5 at gmail.com Thu May 28 17:05:21 2009 From: oorza2k5 at gmail.com (Eddie Drapkin) Date: Thu, 28 May 2009 17:05:21 -0400 Subject: [nycphp-talk] PHP Freelance Sites In-Reply-To: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> References: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> Message-ID: <68de37340905281405v707c0042xbeef81b5ed73467@mail.gmail.com> I've had good experiences with Elance :] 2009/5/28 Peter Sawczynec > Has anyone used a freelance programming or web or graphics website > > to bid on and acquire jobs. > > > > Got any good website names? > > Any experiences? > > > > Warmest regards, > > > > Peter Sawczynec > > Technology Dir. > > bl?studio > > 941.893.0396 > > ps at blu-studio.com > > www.blu-studio.com > > > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmpvar at gmail.com Thu May 28 17:06:45 2009 From: tmpvar at gmail.com (Elijah Insua) Date: Thu, 28 May 2009 17:06:45 -0400 Subject: [nycphp-talk] PHP Freelance Sites In-Reply-To: <68de37340905281405v707c0042xbeef81b5ed73467@mail.gmail.com> References: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> <68de37340905281405v707c0042xbeef81b5ed73467@mail.gmail.com> Message-ID: <2b4feca10905281406x34c9d589y1cf2a0a6b993f6c2@mail.gmail.com> http://www.freelancersunion.org/ 2009/5/28 Eddie Drapkin > I've had good experiences with Elance :] > > 2009/5/28 Peter Sawczynec > >> Has anyone used a freelance programming or web or graphics website >> >> to bid on and acquire jobs. >> >> >> >> Got any good website names? >> >> Any experiences? >> >> >> >> Warmest regards, >> >> >> >> Peter Sawczynec >> >> Technology Dir. >> >> bl?studio >> >> 941.893.0396 >> >> ps at blu-studio.com >> >> www.blu-studio.com >> >> >> >> >> >> _______________________________________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/show_participation.php >> > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at cyberxdesigns.com Thu May 28 17:18:21 2009 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Thu, 28 May 2009 17:18:21 -0400 Subject: [nycphp-talk] PHP Freelance Sites In-Reply-To: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> Message-ID: <20090528211816.8D8501CB24C7@lists.nyphp.org> Hmm....... I just typed up the following response and realized you want the other side of the equation. Dur... Here is my response anyway. I have not done it for PHP work, but I have for .NET. I ended up sub-ing a bunch of work out to people in Malaysia using http://www.rentacoder.com. I thought the interface was intuitive and effective. I had no problems using the escrow system and the transactions went smoothly. I sought out the coders with the HIGHEST feedback and then gave them work in progressive amounts. I made sure their communication, English, skills were sufficient to communicate and that they delivered work on time and feature complete. This of course was dependent on me delivering complete specifications with reasonable and clear expectations assigned. I had a lot of luck this way and would do it again for .NET work and if I got desperate, I might do it for PHP. Though because we have a pretty deep talent pool here, I shouldn't be forced into that position. On a separate but related note, if you are interested in sub-ing PHP jobs, drop me an email off-list and I will take a look at your work and add you to the pool. Hans K Ecommerce sites, portals, and promotional web sites built by the New Jersey web design company Cyber X Designs. http://www.cyberxdesigns.com hans at cyberxdesigns.com _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Peter Sawczynec Sent: Thursday, May 28, 2009 4:58 PM To: 'Org, Talk at Nyphp.' Subject: [nycphp-talk] PHP Freelance Sites Has anyone used a freelance programming or web or graphics website to bid on and acquire jobs. Got any good website names? Any experiences? Warmest regards, Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From guilhermeblanco at gmail.com Thu May 28 17:20:54 2009 From: guilhermeblanco at gmail.com (Guilherme Blanco) Date: Thu, 28 May 2009 18:20:54 -0300 Subject: [nycphp-talk] PHP Freelance Sites In-Reply-To: <20090528211816.8D8501CB24C7@lists.nyphp.org> References: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> <20090528211816.8D8501CB24C7@lists.nyphp.org> Message-ID: www.rentacoder.com www.getafreelancer.com The best one IMHO: www.odesk.com Cheers, 2009/5/28 Hans C. Kaspersetz : > Hmm.......? I just typed up the following response and realized you want the > other side of the equation.?? Dur...? Here is my response anyway. > > I have not done it for PHP work, but I have for .NET.? I ended up sub-ing a > bunch of work out to people in Malaysia using http://www.rentacoder.com.? I > thought the interface was intuitive and effective.? I?had no problems using > the escrow system and the transactions went smoothly. > > I sought out the coders with the HIGHEST feedback and then gave them work in > progressive amounts.? I made sure their communication, English, skills were > sufficient to communicate and that they delivered work on time and feature > complete.? This of course was dependent on me delivering complete > specifications?with reasonable and clear expectations?assigned. > > I had a lot of luck this way and would do it again for .NET work and if I > got desperate, I might do it for PHP.? Though because we have a pretty deep > talent pool here, I shouldn't be forced into that position. > > On a separate but related note, if you are interested in sub-ing?PHP jobs, > drop me an email off-list and I will take a look at your work and add you to > the pool. > > Hans K > > Ecommerce sites, portals, and promotional web sites built by the New Jersey > web design company Cyber X Designs. > http://www.cyberxdesigns.com > hans at cyberxdesigns.com > > ________________________________ > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of Peter Sawczynec > Sent: Thursday, May 28, 2009 4:58 PM > To: 'Org, Talk at Nyphp.' > Subject: [nycphp-talk] PHP Freelance Sites > > Has anyone used a freelance programming or web or graphics website > > to bid on and acquire jobs. > > > > Got any good website names? > > Any experiences? > > > > Warmest regards, > > > > Peter Sawczynec > > Technology Dir. > > bl?studio > > 941.893.0396 > > ps at blu-studio.com > > www.blu-studio.com > > > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco at hotmail.com URL: http://blog.bisna.com S?o Paulo - SP/Brazil From bonsaime at gmail.com Thu May 28 19:06:32 2009 From: bonsaime at gmail.com (Jesse Callaway) Date: Thu, 28 May 2009 19:06:32 -0400 Subject: [nycphp-talk] [0T] Verizon FIOS -- comments? In-Reply-To: <721f1cc50905280938l65b0891cqb31e3a5afb76003a@mail.gmail.com> References: <721f1cc50905261017s756eff5eg84c2c8c271ad10a1@mail.gmail.com> <721f1cc50905271409k4a0486e4t51e8d7c5d52be13c@mail.gmail.com> <8f0676b40905271415y39e50294of1c086483e04648e@mail.gmail.com> <721f1cc50905280938l65b0891cqb31e3a5afb76003a@mail.gmail.com> Message-ID: On Thu, May 28, 2009 at 12:38 PM, David Mintz wrote: > > > On Wed, May 27, 2009 at 5:15 PM, John Campbell wrote: >> >> On Wed, May 27, 2009 at 5:09 PM, David Mintz wrote: >> > I tried, but could not for the life of me locate the IR sensor on the >> > Verizon box. Wait... you say IR emitters attached to the front of the >> > *cable* box?? I thought it was the other way around, i.e., that the Tivo >> > box >> > had to send commands to the cable box and therefore the emitters went on >> > the >> > tivo. >> >> They plug in to the TiVo, and the IR LEDs should be pointed at the >> cable box's IR sensor. > > Right, just as I thought. Which is why I am thwarted b/c i cannot find the > damn IR sensor on the cable box. > > -- > David Mintz > http://davidmintz.org/ > > The subtle source is clear and bright > The tributary streams flow through the darkness > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > Cut it out guys, you're killing me From danielc at analysisandsolutions.com Thu May 28 22:17:22 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 28 May 2009 22:17:22 -0400 Subject: [nycphp-talk] PHP Freelance Sites In-Reply-To: References: <008801c9dfd6$ffc44ce0$ff4ce6a0$@com> <20090528211816.8D8501CB24C7@lists.nyphp.org> Message-ID: <20090529021722.GA18816@panix.com> Hi Folks: > www.rentacoder.com Someone I respect mentioned that site worked well for them. I then went and looked at it and was turned off by it. 15% is a big cut. More importantly, their FAQ says you can not use third party code (see the "What is third party code?" section) or reuse code (in the "Why can I not re-use my own code?" section) and that your product is a work for hire (a la the "What does .Work made for hire. mean??" section). http://www.rentacoder.com/RentACoder/SoftwareCoders/FAQ.asp --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From ps at blu-studio.com Fri May 29 09:10:20 2009 From: ps at blu-studio.com (Peter Sawczynec) Date: Fri, 29 May 2009 09:10:20 -0400 Subject: [nycphp-talk] PHP, Joomla, SEO Message-ID: <001901c9e05e$d268c900$773a5b00$@com> As it turns out, I have ended up specializing in helping businesses greatly improve their presence on the web with a modern, well-designed website that really speaks well for the business entity. My new sites will freshly amplify the best aspects of the business entity and often revitalizes how the staff, clients and vendors view the business. This site, though, does or does not need to be dynamic PHP. Joomla In Every Job But I am considering initiating a plan to build all my website projects on top of Joomla even if the client has only a few or no dynamic PHP needs. But this will allow me to introduce the most common dynamic PHP tools at any time if needed. Does anyone have any thoughts on such a move? Is it worth the hassle of customizing a CMS like Joomla even if I may not be using the structure right now? Extra Note: Joomla A User's Guide by Barrie M. North. I wish to point out that the SEO section Ch. 8 in this book is one of the best info-filled fastest reads that acts as a strong fairly techie intro to practical, on the web page SEO concepts. Once a coder /designer digests the technical details discussed here it would potentially allow a coder/designer to design and write some good SEO technique into a web job right from scratch. Warmest regards, Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg at freephile.com Fri May 29 11:30:03 2009 From: greg at freephile.com (Greg Rundlett (freephile)) Date: Fri, 29 May 2009 11:30:03 -0400 Subject: [nycphp-talk] PHP, Joomla, SEO In-Reply-To: <001901c9e05e$d268c900$773a5b00$@com> References: <001901c9e05e$d268c900$773a5b00$@com> Message-ID: <5e2aaca40905290830l15f1cbb3hcbdf1dcf584d3f15@mail.gmail.com> 2009/5/29 Peter Sawczynec : > As it turns out, I have ended up specializing in helping businesses greatly > improve their > > presence on the web with a modern, well-designed website that really speaks > well for > > the business entity. My new sites will freshly amplify the best aspects of > the business entity > > and often revitalizes how the staff, clients and vendors view the business. > > This site, though, does or does not need to be dynamic PHP. > > > > Joomla In Every Job > > But I am considering initiating a plan to build all my website projects on > top of Joomla > > even if the client has only a few or no dynamic PHP needs. But this will > allow me to > > introduce the most common dynamic PHP tools at any time if needed. > > > > Does anyone have any thoughts on such a move? Is it worth the hassle of > customizing a CMS like > > Joomla even if I may not be using the structure right now? > I'd say that all web projects would start off with either a CMS (like Joomla or Drupal); or a framework. I'd think the vast majority of websites can be handled with a CMS while in rarer cases where you are building custom functionality (i.e. an application) you'd use a framework. I don't know how a client would not need "dynamic PHP". All clients need to update or add content and need to accept some forms (e.g. contact). No client wants to learn HTML, and they usually don't have those skills on staff. Maybe some clients would be happy to outsource content management - in which case you could use an old-fashioned approach of editing HTML for content. Still, in those cases (e.g. dog groomer wants a brochure site), I'd think the low hanging fruit would be solved with services like Google sites, while slightly more expensive projects would be served by implementing your "stock" Joomla. By "stock" I mean the specific configuration of the system that you've come to know and deploy to serve as a base. One key issue for sites based on a CMS is that the client should understand that periodic patching must occur to keep the underlying application up-to-date. This is both a business opportunity for the developer/consultant and also an argument for using hosted services whether that service is Google Sites, or a hosting provider who maintains the Joomla install. .02 Greg -- Greg Rundlett Web Developer - Initiative in Innovative Computing http://iic.harvard.edu camb 617-384-5872 nbpt 978-225-8302 m. 978-764-4424 -skype/aim/irc/twitter freephile http://profiles.aim.com/freephile From ajai at bitblit.net Fri May 29 12:12:24 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 29 May 2009 12:12:24 -0400 (EDT) Subject: [nycphp-talk] PHP, Joomla, SEO In-Reply-To: <001901c9e05e$d268c900$773a5b00$@com> Message-ID: On Fri, 29 May 2009, Peter Sawczynec wrote: > But I am considering initiating a plan to build all my website projects > on top of Joomla In my experience (building sites since 1996), a lot of sites can be implemented on top of Joomla / Drupal / etc., especially if they are essentially brochure sites. But some sites need additional functionality. If you're lucky, that functionality will be available in a plugin. If you're not lucky, you'll have to write that plugin yourself or modify an existing one. Which also means you will have to manage that plugin yourself when it comes time to upgrade and/or patch some bug. Sometimes a client will want additional functionality maybe some time after a site has launched, forcing you to again find a plugin or write one. Again, your maintenance burden is raised. At a certain point, you will find that the amount of work required to customize and maintain Joomla and any associated plugins is the same amount of work (or more), as writing the site yourself with a modern framework. After working with Joomla for a few years, Ive mostly abandoned using it for sites I build - I now just use a framework. A lot of frameworks now come with a backend, or a way to generate a backend, or a plugin that adds the backend for you. Its easier and more flexible to work with than using Joomla IMHO. -- Aj. From dan.horning at planetnoc.com Fri May 29 14:06:41 2009 From: dan.horning at planetnoc.com (Daniel Horning) Date: Fri, 29 May 2009 14:06:41 -0400 Subject: [nycphp-talk] PHP, Joomla, SEO In-Reply-To: <001901c9e05e$d268c900$773a5b00$@com> References: <001901c9e05e$d268c900$773a5b00$@com> Message-ID: <000d01c9e088$3935efe0$aba1cfa0$@horning@planetnoc.com> I tend to see good reason for doing exactly this, It can allow your development lifecycle to be enhanced I personally have two system cores that I use for clients who aren?t using our proprietary tech, Joomla (with a few mods that I?m working on a document to describe which will be placed on my personal site soon) and Drupal (either my own breed - or acquia if enterprise level). Doing this has allowed me to lower prices for clients without losing out on the needed income levels. Primarily I find that having a detailed setup plan in writing for the core and module configs makes life very simple. One of the key reasons is I?ve invested in memberships for a few theme template sites, a ton of different modules such that I can install a site quickly to meet nearly any need. Need content versioning, multiple roles, non-profit group tracking (donations, groups, mailing lists, tracking), event management. But most of all I personally like the ability for smaller clients to self update sites without needing a huge degree of ?html/css/etc?? know-how. I?ve given local restaurants the ability to update sites that they normally would have to have someone else update - taking the delay out of the potential issues caused by a client sending an email or phone dictation, and giving you time to work with newer clients or just simply to get a larger clientele. So in short yeah - I would strongly suggest this. (my last and more internal reason is simply that if for some reason we?re to disappear off the planet my client could still run their own site without my existence) -- Dan Horning American Digital Services - Where you are only limited by imagination. dan.horning at planetnoc.com :: http://www.americandigitalservices.com 1-518-444-0213 x502 . toll free 1-800-863-3854 . fax 1-888-474-6133 15 Third Street, PO Box 746, Troy, NY 12180 (by appointment only) From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Peter Sawczynec Sent: Friday, May 29, 2009 9:10 AM To: 'Org, Talk at Nyphp.' Subject: [nycphp-talk] PHP, Joomla, SEO As it turns out, I have ended up specializing in helping businesses greatly improve their presence on the web with a modern, well-designed website that really speaks well for the business entity. My new sites will freshly amplify the best aspects of the business entity and often revitalizes how the staff, clients and vendors view the business. This site, though, does or does not need to be dynamic PHP. Joomla In Every Job But I am considering initiating a plan to build all my website projects on top of Joomla even if the client has only a few or no dynamic PHP needs. But this will allow me to introduce the most common dynamic PHP tools at any time if needed. Does anyone have any thoughts on such a move? Is it worth the hassle of customizing a CMS like Joomla even if I may not be using the structure right now? Extra Note: Joomla A User's Guide by Barrie M. North. I wish to point out that the SEO section Ch. 8 in this book is one of the best info-filled fastest reads that acts as a strong fairly techie intro to practical, on the web page SEO concepts. Once a coder /designer digests the technical details discussed here it would potentially allow a coder/designer to design and write some good SEO technique into a web job right from scratch. Warmest regards, Peter Sawczynec Technology Dir. bl?studio 941.893.0396 ps at blu-studio.com www.blu-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From anoland at indigente.net Fri May 29 14:40:50 2009 From: anoland at indigente.net (Adrian Noland) Date: Fri, 29 May 2009 14:40:50 -0400 Subject: [nycphp-talk] FB Dev. Garage Message-ID: <1d8a0e930905291140g3f93151l65f3ed7073e902e4@mail.gmail.com> I plan on going... anybody else? http://www.facebook.com/event.php?eid=81779503493 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpinparis at gmail.com Fri May 29 19:05:55 2009 From: cpinparis at gmail.com (Claudio Frenchie) Date: Fri, 29 May 2009 19:05:55 -0400 Subject: [nycphp-talk] FB Dev. Garage In-Reply-To: <1d8a0e930905291140g3f93151l65f3ed7073e902e4@mail.gmail.com> References: <1d8a0e930905291140g3f93151l65f3ed7073e902e4@mail.gmail.com> Message-ID: I also plan on going, the last facebook garage I went to was really interesting to me. -Claudio. On Fri, May 29, 2009 at 2:40 PM, Adrian Noland wrote: > I plan on going... anybody else? > http://www.facebook.com/event.php?eid=81779503493 > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: