From rainelemental at gmail.com Sun Jul 1 10:54:33 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Sun, 1 Jul 2012 10:54:33 -0400 Subject: [nycphp-talk] Battle Of Braces - Round 2 PHP - July 20 Message-ID: Hi, Battle of Braces is a cross platform hackaton that take place in Meetup HQ with great developers. Yesterday Round 1: Javascript was incredibly fun and there were few very interesting application that might become a startup, such as the winner Hackadoo, a split screen game where win who code faster and OutToLunch , the app all the offices needs to organize where to go for lunch. The Round 2: PHP - July 20, will be a great occasion to socialize with other PHP fellows, challenge yourself as developer and as a team, learn and discover, beers. To be more persuasive, there are prices, the winner of the BOB will be presenting at the NY Tech Meetup. I am searching for some good fellows to make a team and participate together at the battle, I have already an project doable in one day but any other idea is welcome. http://www.meetup.com/Battle-of-the-Braces/events/60476102/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From evdo.hsdpa at gmail.com Mon Jul 2 01:37:25 2012 From: evdo.hsdpa at gmail.com (Robert Kim App and Facebook Marketing) Date: Mon, 2 Jul 2012 14:37:25 +0900 Subject: [nycphp-talk] Battle Of Braces - Round 2 PHP - July 20 In-Reply-To: References: Message-ID: Federico, is the 20th a fixed date... i know several others who would be able to attend the day before or after instead... lemme know! On Sun, Jul 1, 2012 at 11:54 PM, Federico Ulfo wrote: > Hi, > > Battle of Braces is a cross platform hackaton that take place in Meetup HQ > with great developers. Yesterday Round 1: Javascript was incredibly fun and > there were few very interesting application that might become a startup, > such as the winner Hackadoo, a split screen game where win who code faster > and OutToLunch , the app all > the offices needs to organize where to go for lunch. > > The Round 2: PHP - July 20, will be a great occasion to socialize with > other PHP fellows, challenge yourself as developer and as a team, learn and > discover, beers. To be more persuasive, there are prices, the winner of the > BOB will be > -- Robert Q Kim iPhone App and Android App Programmers Lead in Seoul http://www.youtube.com/watch?v=zFpmaEkHUZ4 English Speaking Team Location: 2611 S Coast Highway San Diego, CA 92007 310 598 1606 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainelemental at gmail.com Mon Jul 2 10:14:38 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Mon, 2 Jul 2012 10:14:38 -0400 Subject: [nycphp-talk] Battle Of Braces - Round 2 PHP - July 20 In-Reply-To: References: Message-ID: My bad, here is the link to the event: http://www.meetup.com/Battle-of-the-Braces/events/60476102/ The date is July 20, the the organizer meetup.com, the place their headquarter, start at 9AM and finish at 11PM, so it is only for hardcore hackers that want to spend an entire day coding and chatting with great fellows. On Mon, Jul 2, 2012 at 1:37 AM, Robert Kim App and Facebook Marketing < evdo.hsdpa at gmail.com> wrote: > Federico, > > is the 20th a fixed date... i know several others who would be able to > attend the day before or after instead... lemme know! > > > On Sun, Jul 1, 2012 at 11:54 PM, Federico Ulfo wrote: > >> Hi, >> >> Battle of Braces is a cross platform hackaton that take place in Meetup >> HQ with great developers. Yesterday Round 1: Javascript was incredibly fun >> and there were few very interesting application that might become a >> startup, such as the winner Hackadoo, a split screen game where win who >> code faster and OutToLunch , >> the app all the offices needs to organize where to go for lunch. >> >> The Round 2: PHP - July 20, will be a great occasion to socialize with >> other PHP fellows, challenge yourself as developer and as a team, learn and >> discover, beers. To be more persuasive, there are prices, the winner of the >> BOB will be >> > > > -- > Robert Q Kim > iPhone App and Android App Programmers Lead in Seoul > http://www.youtube.com/watch?v=zFpmaEkHUZ4 > English Speaking Team Location: > 2611 S Coast Highway > San Diego, CA 92007 > 310 598 1606 > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From faltubay at gmail.com Tue Jul 3 15:14:25 2012 From: faltubay at gmail.com (Woh Roh) Date: Tue, 3 Jul 2012 15:14:25 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit Message-ID: Hi All, I have two questions- 1) A client has requested that their virtual server be upgraded from 1gb to 2gb ram so that the application runs faster and can handle more users. Before upgrading the server, I want to run performance tests to measure the before / after effects. Which tool would you recommend for this php application which is on Windows Server 2008? 2) Part of the reason for upgrading is that the application has taken a HUGE hit in performance after we updated mysql connections to mysqli and moved most of the php files above the web root folder. I researched online for performance hits after moving to mysqli but no where found anyone discussing such a drastic setback. With xdebug, I see the mysqli connections are the culprit and perform 2-4 times slower than before. When testing with the PHP MySQL Benchmark Tool v. 0.1 ( http://unbeknownst.net/?p=321) scripts, I don't see a big diff between mysql and mysqli queries. Anyone else seen this issue?? Thanks in advance for your feedback!! -Faltu -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorgan at donaldorgan.com Tue Jul 3 15:29:03 2012 From: dorgan at donaldorgan.com (Donald Organ) Date: Tue, 3 Jul 2012 15:29:03 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: 1) http://httpd.apache.org/docs/2.0/programs/ab.html This handy tool will let you run some loads tests 2) We're the standard mysql connections using persistent connections, also have you though about using mysqlnd? On Tue, Jul 3, 2012 at 3:14 PM, Woh Roh wrote: > Hi All, > I have two questions- > > 1) A client has requested that their virtual server be upgraded from 1gb > to 2gb ram so that the application runs faster and can handle more users. > Before upgrading the server, I want to run performance tests to measure the > before / after effects. Which tool would you recommend for this php > application which is on Windows Server 2008? > > 2) Part of the reason for upgrading is that the application has taken a > HUGE hit in performance after we updated mysql connections to mysqli and > moved most of the php files above the web root folder. I researched online > for performance hits after moving to mysqli but no where found anyone > discussing such a drastic setback. With xdebug, I see the mysqli > connections are the culprit and perform 2-4 times slower than before. When > testing with the PHP MySQL Benchmark Tool v. 0.1 ( > http://unbeknownst.net/?p=321) scripts, I don't see a big diff between > mysql and mysqli queries. Anyone else seen this issue?? > > Thanks in advance for your feedback!! > > -Faltu > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ircmaxell at gmail.com Tue Jul 3 15:32:13 2012 From: ircmaxell at gmail.com (Anthony Ferrara) Date: Tue, 3 Jul 2012 15:32:13 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: Faltu, 2) Part of the reason for upgrading is that the application has taken a > HUGE hit in performance after we updated mysql connections to mysqli and > moved most of the php files above the web root folder. I researched online > for performance hits after moving to mysqli but no where found anyone > discussing such a drastic setback. With xdebug, I see the mysqli > connections are the culprit and perform 2-4 times slower than before. When > testing with the PHP MySQL Benchmark Tool v. 0.1 ( > http://unbeknownst.net/?p=321) scripts, I don't see a big diff between > mysql and mysqli queries. Anyone else seen this issue?? > I haven't. What version of PHP are you using? And which driver are you compiled against (libmysql, mysqlnd, etc)? Are the mysql and mysqli differences on the same compile of php on the same machine? Or are they on different boxes? Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: From faltubay at gmail.com Tue Jul 3 15:45:09 2012 From: faltubay at gmail.com (Woh Roh) Date: Tue, 3 Jul 2012 15:45:09 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: Hi Anthony, I forgot to mention, with the upgrade, we also moved from php 5.3 to 5.4. We are using mysqlnd 5.0.10 - 20111026 - $Revision: 323634 $. Donald, The tool you mentioned is for Apache servers, we are on IIS 7. Thanks for your help. On Tue, Jul 3, 2012 at 3:32 PM, Anthony Ferrara wrote: > Faltu, > > 2) Part of the reason for upgrading is that the application has taken a >> HUGE hit in performance after we updated mysql connections to mysqli and >> moved most of the php files above the web root folder. I researched online >> for performance hits after moving to mysqli but no where found anyone >> discussing such a drastic setback. With xdebug, I see the mysqli >> connections are the culprit and perform 2-4 times slower than before. When >> testing with the PHP MySQL Benchmark Tool v. 0.1 ( >> http://unbeknownst.net/?p=321) scripts, I don't see a big diff between >> mysql and mysqli queries. Anyone else seen this issue?? >> > > I haven't. What version of PHP are you using? And which driver are you > compiled against (libmysql, mysqlnd, etc)? Are the mysql and mysqli > differences on the same compile of php on the same machine? Or are they on > different boxes? > > Anthony > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ircmaxell at gmail.com Tue Jul 3 15:48:36 2012 From: ircmaxell at gmail.com (Anthony Ferrara) Date: Tue, 3 Jul 2012 15:48:36 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: Faltu, On Tue, Jul 3, 2012 at 3:45 PM, Woh Roh wrote: > Hi Anthony, > I forgot to mention, with the upgrade, we also moved from php 5.3 to 5.4. > We are using mysqlnd 5.0.10 - 20111026 - $Revision: 323634 $. > That's a difference ;-) Were you using mysqlnd before hand (under 5.3)? Or were you using libmysql? Can you try switching back to libmysql...? -------------- next part -------------- An HTML attachment was scrubbed... URL: From faltubay at gmail.com Tue Jul 3 15:55:38 2012 From: faltubay at gmail.com (Woh Roh) Date: Tue, 3 Jul 2012 15:55:38 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: Anthony, We didn't touch the mysql driver. Only upgraded php. On Tue, Jul 3, 2012 at 3:48 PM, Anthony Ferrara wrote: > Faltu, > > On Tue, Jul 3, 2012 at 3:45 PM, Woh Roh wrote: > >> Hi Anthony, >> I forgot to mention, with the upgrade, we also moved from php 5.3 to >> 5.4. We are using mysqlnd 5.0.10 - 20111026 - $Revision: 323634 $. >> > > That's a difference ;-) > > Were you using mysqlnd before hand (under 5.3)? Or were you using > libmysql? Can you try switching back to libmysql...? > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Tue Jul 3 16:32:33 2012 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 3 Jul 2012 16:32:33 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: <20120703203233.GA11078@analysisandsolutions.com> Hi Woh: > 2) Part of the reason for upgrading is that the application has taken a > HUGE hit in performance after we updated mysql connections to mysqli and > moved most of the php files above the web root folder. The way files are included can be a significant performance issue. It's best to use full, true, paths when including files. One strategy I've used is having all scripts include one central config file via a relative path. Then in that script do this: define('PATH_BASE', realpath(dirname(__FILE__)); Then all other includes/requires in the application should do: require PATH_BASE . '/subdir/whatever/some_other_file.php' This removes the need to use the include_path and simplifies the operations PHP needs to do for caching file names and paths. Also, carefully consider the order of entries in the include_path setting. Put the directories in there in order of most used first, least used last. --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 From danielc at analysisandsolutions.com Tue Jul 3 16:33:59 2012 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 3 Jul 2012 16:33:59 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: Message-ID: <20120703203359.GB11078@analysisandsolutions.com> Hi Woh: > The tool you mentioned is for Apache servers, we are on IIS 7. The ab tools make request to the website using HTTP. You can use it to test any web server, not just Apache HTTPD servers. --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 From rainelemental at gmail.com Fri Jul 6 17:01:51 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Fri, 6 Jul 2012 17:01:51 -0400 Subject: [nycphp-talk] PHP App Store Message-ID: Hey guys, I'm developing an app store for a CMS to download modules, plugins and themes and keep them updated automatically. Each module, plugin or theme are compressed into a zip file. The CMS can connect to the app store and download one module with an API call. I was thinking to use file_get_contents, but may be Curl is more appropriate, because I'd like to have the download progress and may be one single login for multiple downloads. Do you have any suggestion or better solutions? Thanks, Federico -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Fri Jul 6 19:02:01 2012 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 6 Jul 2012 19:02:01 -0400 Subject: [nycphp-talk] PHP App Store In-Reply-To: References: Message-ID: <20120706230201.GA23996@analysisandsolutions.com> Hi Federico: > I'm developing an app store for a CMS to download modules, plugins and > themes and keep them updated automatically. You mean like PEAR? Their old (pear.php.net) and new (pyrus at pear2.php.net) systems have client and server side tools can be reused in many ways. There are other systems out there too. Unless you feel like making your own anyway, of course. If you ever need to serve files up, check out mod_xsendfile for Apache or similar functionality for Lighttpd or other web server of your liking. See you, --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 From rainelemental at gmail.com Fri Jul 6 20:08:02 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Fri, 6 Jul 2012 20:08:02 -0400 Subject: [nycphp-talk] PHP App Store In-Reply-To: <20120706230201.GA23996@analysisandsolutions.com> References: <20120706230201.GA23996@analysisandsolutions.com> Message-ID: Hey Daniel, is more similar to the modules repository of Wordpress. Let me add more details, I'm developing a CMS and an "app store". The app store is a repository where users can download plugins, modules and themes, and even upload and share them, after a moderator approval. Because I'll release the CMS open source my goal is a solution that works in most PHP installation possible. I've already implemented the download with Curl and it works well, so should I still consider mod_xsendfile? And another question, is zlib the best and most compatible solution to compress files? Thanks On Fri, Jul 6, 2012 at 7:02 PM, Daniel Convissor < danielc at analysisandsolutions.com> wrote: > Hi Federico: > > > I'm developing an app store for a CMS to download modules, plugins and > > themes and keep them updated automatically. > > You mean like PEAR? Their old (pear.php.net) and new (pyrus at > pear2.php.net) systems have client and server side tools can be reused > in many ways. There are other systems out there too. Unless you feel > like making your own anyway, of course. > > If you ever need to serve files up, check out mod_xsendfile for Apache > or similar functionality for Lighttpd or other web server of your > liking. > > See you, > > --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 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Fri Jul 6 21:28:09 2012 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 6 Jul 2012 21:28:09 -0400 Subject: [nycphp-talk] PHP App Store In-Reply-To: References: <20120706230201.GA23996@analysisandsolutions.com> Message-ID: <20120707012809.GA25424@analysisandsolutions.com> Hi Federico: > is more similar to the modules repository of Wordpress. That's fine. To be clear, I was not comparing your project to PEAR. It seems you may have interpreted it this way. I was saying you might want to use PEAR's client and server interfaces/software for your system. I hear the Pyrus stuff is pretty good. > I've already implemented the download with Curl and it works well, so > should I still consider mod_xsendfile? You're serving up raw binary files from the file system. Yes. > And another question, is zlib the > best and most compatible solution to compress files? Yeah. --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 From rainelemental at gmail.com Fri Jul 6 21:52:30 2012 From: rainelemental at gmail.com (federico ulfo) Date: Fri, 6 Jul 2012 21:52:30 -0400 Subject: [nycphp-talk] PHP App Store In-Reply-To: <20120707012809.GA25424@analysisandsolutions.com> References: <20120706230201.GA23996@analysisandsolutions.com> <20120707012809.GA25424@analysisandsolutions.com> Message-ID: <8463554523779401664@unknownmsgid> Got it. I want to have a solution on my server because some component will be on sale. Is modx_sendfile a default PHP module? What's the advantage respect using just the headers function of PHP for file download? Thanks Sent from my iPhone On Jul 6, 2012, at 9:28 PM, Daniel Convissor wrote: > Hi Federico: > >> is more similar to the modules repository of Wordpress. > > That's fine. To be clear, I was not comparing your project to PEAR. It > seems you may have interpreted it this way. I was saying you might want > to use PEAR's client and server interfaces/software for your system. I > hear the Pyrus stuff is pretty good. > > >> I've already implemented the download with Curl and it works well, so >> should I still consider mod_xsendfile? > > You're serving up raw binary files from the file system. Yes. > > >> And another question, is zlib the >> best and most compatible solution to compress files? > > Yeah. > > --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 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation From rainelemental at gmail.com Fri Jul 6 22:13:05 2012 From: rainelemental at gmail.com (federico ulfo) Date: Fri, 6 Jul 2012 22:13:05 -0400 Subject: [nycphp-talk] PHP App Store In-Reply-To: <20120707012809.GA25424@analysisandsolutions.com> References: <20120706230201.GA23996@analysisandsolutions.com> <20120707012809.GA25424@analysisandsolutions.com> Message-ID: <436599270782008234@unknownmsgid> Ups, I just realized that the modx_sendfile is a solution for the repository, not for the CMS installations, so yeah it does make sense using it! Thanks again for the suggestion Daniel, F Sent from my iPhone On Jul 6, 2012, at 9:28 PM, Daniel Convissor wrote: > Hi Federico: > >> is more similar to the modules repository of Wordpress. > > That's fine. To be clear, I was not comparing your project to PEAR. It > seems you may have interpreted it this way. I was saying you might want > to use PEAR's client and server interfaces/software for your system. I > hear the Pyrus stuff is pretty good. > > >> I've already implemented the download with Curl and it works well, so >> should I still consider mod_xsendfile? > > You're serving up raw binary files from the file system. Yes. > > >> And another question, is zlib the >> best and most compatible solution to compress files? > > Yeah. > > --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 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation From leamhall at gmail.com Sat Jul 7 09:17:55 2012 From: leamhall at gmail.com (Leam Hall) Date: Sat, 07 Jul 2012 09:17:55 -0400 Subject: [nycphp-talk] Knuth vols 1-4a; Right Read at this time? Message-ID: <4FF83703.5020806@gmail.com> Morning all! I'm happy to say that my programming growth hasn't yet been side tracked by the job search, relocation plans, or really hot weather. It's slow going, but going nonetheless. I could use some experienced programmer wisdom on next steps. At the moment I'm working on a small PHP project. Design goals are 5.3 compatible, use OOP as appropriate, and not nauseate real programmers who look at the code. I've also put it on SF.net and started using tickets for work tracking, a pseudo Kanban style queue, and David K. gave me some great UX feedback. Being learning driven, I'm a bit lost wondering about my next step. One thought is to get Knuth's vols 1-4a and start on those. Another is to push towards the Zend ZCE in PHP; sort of "master one skill" before moving on to others. Or to learn more about support tools like TDD, and IDE bedsides vim, or other stuff. In programming, I've done several "very small" projects in Tcl, PHP, Perl, Python, Shell, C. My skill level is highest in Shell and PHP but even those are "pick up the book every hour or so". I'd like to get to a point of being able to contribute to medium sized projects in either PHP, Python, Go, or C. At this point I am aware of what little I do know but don't know what I don't know. Any recommendations on how to move up the professional programmer ladder? Thanks! Leam From rainelemental at gmail.com Sun Jul 8 10:07:02 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Sun, 8 Jul 2012 10:07:02 -0400 Subject: [nycphp-talk] PHP The right way Message-ID: Hey, here is a great document that we should all follow for new PHP projects: http://phptherightway.com *PHP: The Right Way* provides an easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative tutorials around the Web. Federico -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at justinhileman.info Mon Jul 9 13:29:23 2012 From: justin at justinhileman.info (justin) Date: Mon, 9 Jul 2012 10:29:23 -0700 Subject: [nycphp-talk] PHP App Store In-Reply-To: References: Message-ID: For maximum compatibility, you should build it around http://getcomposer.org/ That project is poised to be the rubygems of PHP, so that would give you access to all the components the Zend / Symfony / Every Other Framework people are cooking up, plus you could host your own composer repo for your CMS's packages. Let someone else worry about the downloader :) --j On Fri, Jul 6, 2012 at 2:01 PM, Federico Ulfo wrote: > Hey guys, > I'm developing an app store for a CMS to download modules, plugins and > themes and keep them updated automatically. > > Each module, plugin or theme are compressed into a zip file. > > The CMS can connect to the app store and download one module with an API > call. I was thinking to use file_get_contents, but may be Curl is more > appropriate, because I'd like to have the download progress and may be one > single login for multiple downloads. > > Do you have any suggestion or better solutions? > > Thanks, > Federico > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation -- http://justinhileman.com From rainelemental at gmail.com Tue Jul 10 10:20:25 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Tue, 10 Jul 2012 10:20:25 -0400 Subject: [nycphp-talk] PHP App Store In-Reply-To: References: Message-ID: Using composer is a great idea to keep updated all the vendors package! For the other components I'm thinking to a model like iTunes Store or Wordpress Plugins, where developers upload their components, and only the one approved become available to download. Thanks F On Mon, Jul 9, 2012 at 1:29 PM, justin wrote: > For maximum compatibility, you should build it around > http://getcomposer.org/ > > That project is poised to be the rubygems of PHP, so that would give > you access to all the components the Zend / Symfony / Every Other > Framework people are cooking up, plus you could host your own composer > repo for your CMS's packages. > > Let someone else worry about the downloader :) > > --j > > > On Fri, Jul 6, 2012 at 2:01 PM, Federico Ulfo > wrote: > > Hey guys, > > I'm developing an app store for a CMS to download modules, plugins and > > themes and keep them updated automatically. > > > > Each module, plugin or theme are compressed into a zip file. > > > > The CMS can connect to the app store and download one module with an API > > call. I was thinking to use file_get_contents, but may be Curl is more > > appropriate, because I'd like to have the download progress and may be > one > > single login for multiple downloads. > > > > Do you have any suggestion or better solutions? > > > > Thanks, > > Federico > > > > _______________________________________________ > > New York PHP User Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/show-participation > > > > -- > http://justinhileman.com > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Wed Jul 11 16:26:38 2012 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Wed, 11 Jul 2012 16:26:38 -0400 Subject: [nycphp-talk] Storing form options. Message-ID: <4FFDE17E.8070601@gmail.com> When building lots of forms, irrespective of form size or complexity if you need to store options where do you do it? I have seen many examples but I guess this boils down to what is a best practice? The way things are currently done is that all form options are stored in a static array in the ecosystem and then called upon when the form needs to be built. For example, we ask users to select their Ethnicity when filling out one of our forms. This includes the values: Prefer not to say, African American, Asian, White, East Indian, Hispanic / Latino, Middle Eastern, Native American, Other. Where would you store these options? Is this a matter of personal preference or is there a best practice I missed over the years? -- Anthony W. http://www.anthonyw.net ant92083 at gmail.com From codebowl at gmail.com Wed Jul 11 16:33:12 2012 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 11 Jul 2012 16:33:12 -0400 Subject: [nycphp-talk] Storing form options. In-Reply-To: <4FFDE17E.8070601@gmail.com> References: <4FFDE17E.8070601@gmail.com> Message-ID: I would personally store any form options in a database table, I would have a form table and then a form_options table and get all options by form id. Thanks, Joseph Crawford On Wed, Jul 11, 2012 at 4:26 PM, Anthony Wlodarski wrote: > When building lots of forms, irrespective of form size or complexity if > you need to store options where do you do it? I have seen many examples > but I guess this boils down to what is a best practice? The way things are > currently done is that all form options are stored in a static array in the > ecosystem and then called upon when the form needs to be built. > > For example, we ask users to select their Ethnicity when filling out one > of our forms. This includes the values: Prefer not to say, African > American, Asian, White, East Indian, Hispanic / Latino, Middle Eastern, > Native American, Other. Where would you store these options? > > Is this a matter of personal preference or is there a best practice I > missed over the years? > > -- > Anthony W. > http://www.anthonyw.net > ant92083 at gmail.com > > ______________________________**_________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/**mailman/listinfo/talk > > http://www.nyphp.org/show-**participation > -- Joseph Crawford Jr. Zend Certified Engineer http://www.josephcrawford.com/ 1-781-346-9656 info at josephcrawford.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at jeffslutz.com Wed Jul 11 16:35:31 2012 From: jeff at jeffslutz.com (Jeff Slutz) Date: Wed, 11 Jul 2012 16:35:31 -0400 Subject: [nycphp-talk] Storing form options. In-Reply-To: References: <4FFDE17E.8070601@gmail.com> Message-ID: +1 to Joseph's approach. -- Jeff Slutz JSLEUTH LLC 3242 44th ST APT 3F Astoria, NY 11103 c. 970.443.9390 jeff at jeffslutz.com On Wed, Jul 11, 2012 at 4:33 PM, Joseph Crawford wrote: > I would personally store any form options in a database table, I would > have a form table and then a form_options table and get all options by form > id. > > Thanks, > Joseph Crawford > > On Wed, Jul 11, 2012 at 4:26 PM, Anthony Wlodarski wrote: > >> When building lots of forms, irrespective of form size or complexity if >> you need to store options where do you do it? I have seen many examples >> but I guess this boils down to what is a best practice? The way things are >> currently done is that all form options are stored in a static array in the >> ecosystem and then called upon when the form needs to be built. >> >> For example, we ask users to select their Ethnicity when filling out one >> of our forms. This includes the values: Prefer not to say, African >> American, Asian, White, East Indian, Hispanic / Latino, Middle Eastern, >> Native American, Other. Where would you store these options? >> >> Is this a matter of personal preference or is there a best practice I >> missed over the years? >> >> -- >> Anthony W. >> http://www.anthonyw.net >> ant92083 at gmail.com >> >> ______________________________**_________________ >> New York PHP User Group Community Talk Mailing List >> http://lists.nyphp.org/**mailman/listinfo/talk >> >> http://www.nyphp.org/show-**participation >> > > > > -- > Joseph Crawford Jr. > Zend Certified Engineer > http://www.josephcrawford.com/ > 1-781-346-9656 > info at josephcrawford.com > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Jul 12 10:54:38 2012 From: chsnyder at gmail.com (Chris Snyder) Date: Thu, 12 Jul 2012 10:54:38 -0400 Subject: [nycphp-talk] Storing form options. In-Reply-To: <4FFDE17E.8070601@gmail.com> References: <4FFDE17E.8070601@gmail.com> Message-ID: On Wed, Jul 11, 2012 at 4:26 PM, Anthony Wlodarski wrote: > For example, we ask users to select their Ethnicity when filling out one of > our forms. This includes the values: Prefer not to say, African American, > Asian, White, East Indian, Hispanic / Latino, Middle Eastern, Native > American, Other. Where would you store these options? Where you store them is a matter of style. I like using blocks of JSON for this, personally, but others would cringe at the parsing overhead. But however you keep them, I think the ideal solution needs to accommodate two things: 1) Localization/internationalization - if you're just storing American English values, you're limiting yourself. The labels for an Ethnicity selector can even vary region by region within the US. You may need to keep the choices the same in order to normalize the database, but the labels need to be translatable. 2) Meta-data about the selector itself. Multiple choice? An Other... field? Is it ideally a or a series of radio buttons / > checkboxes? Is there an instruction that goes along with the field? A > default value? > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainelemental at gmail.com Wed Jul 18 09:06:49 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Wed, 18 Jul 2012 09:06:49 -0400 Subject: [nycphp-talk] Storing form options. In-Reply-To: References: <4FFDE17E.8070601@gmail.com> Message-ID: It depends. For dynamic form I prefer to use 3 tables form(form_id,name,action) field(field_id,form_id,name,type : [text,textarea,checkbox,select ... ], default,validation : [required,max=,min=,email,numeric,alphanumeric ... ], option ), option say if the value are coming from field_value, another table, or array. field_value(field_value_id,field_id,name,value) Another pain in the neck is to save the input from a form, in that case you may need a table with the static information and one with the dynamic information, for example: result(form_id, firstname,lastname...) result_field(form_id,name,value) Or if you want to save with dynamic fields I suggest to use RedBean, an ORM that will save your time. Also to create the form you need to create a form generator, if you are lazy you can use mine: http://www.rainframework.com/User-Guide/Library/Form (this site is down because I'm moving the server... check in 1 hour or 2) Federico On Wed, Jul 18, 2012 at 8:35 AM, Petros Ziogas wrote: > I prefer to create a "settings" table where I store all the bits and > pieces that need to be configurable but are not that frequently changed. > > If you want to make everything translatable, I would not tie it to a > settings table but rather set up a global translate procedure that would > apply to these settings but also to other elements of your application. > > I have found that deciding on some general rules around these issues can > make your life much easier. Jumping from project to project and realizing > that the countries are always in the settings table and always called in a > curtain way can make you day and save you some hours in debugging and > developing. > > my 2c > Petros Ziogas > > > On Thu, Jul 12, 2012 at 5:54 PM, Chris Snyder wrote: > >> On Wed, Jul 11, 2012 at 4:26 PM, Anthony Wlodarski >> wrote: >> >> > For example, we ask users to select their Ethnicity when filling out >> one of >> > our forms. This includes the values: Prefer not to say, African >> American, >> > Asian, White, East Indian, Hispanic / Latino, Middle Eastern, Native >> > American, Other. Where would you store these options? >> >> Where you store them is a matter of style. I like using blocks of JSON >> for this, personally, but others would cringe at the parsing overhead. >> >> But however you keep them, I think the ideal solution needs to >> accommodate two things: >> >> 1) Localization/internationalization - if you're just storing American >> English values, you're limiting yourself. The labels for an Ethnicity >> selector can even vary region by region within the US. You may need to >> keep the choices the same in order to normalize the database, but the >> labels need to be translatable. >> >> 2) Meta-data about the selector itself. Multiple choice? An Other... >> field? Is it ideally a or a series of radio buttons / > checkboxes? Is there an instruction that goes along with the field? A > default value? > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From faltubay at gmail.com Wed Jul 18 15:00:57 2012 From: faltubay at gmail.com (Woh Roh) Date: Wed, 18 Jul 2012 15:00:57 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: <20120703203359.GB11078@analysisandsolutions.com> References: <20120703203359.GB11078@analysisandsolutions.com> Message-ID: Hi Everyone, Just to give an update on this old topic, I 'regained' performance on my php application by eliminating all calls to the old mysql connector (I was using it for the array_map(mysql_real_escape_string($x) functionality). Also to measure performance I created test scripts that run through the entire application with xdebug on. Thanks all for your suggestions! On Tue, Jul 3, 2012 at 4:33 PM, Daniel Convissor < danielc at analysisandsolutions.com> wrote: > Hi Woh: > > > The tool you mentioned is for Apache servers, we are on IIS 7. > > The ab tools make request to the website using HTTP. You can use it to > test any web server, not just Apache HTTPD servers. > > --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 > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidalanroth at gmail.com Wed Jul 18 20:26:18 2012 From: davidalanroth at gmail.com (David Roth) Date: Wed, 18 Jul 2012 20:26:18 -0400 Subject: [nycphp-talk] Performance testing on Windows Server 2008 & MySQLi performance hit In-Reply-To: References: <20120703203359.GB11078@analysisandsolutions.com> Message-ID: Very nice! Do you have benchmarks to share? David Roth On Wed, Jul 18, 2012 at 3:00 PM, Woh Roh wrote: > Hi Everyone, > Just to give an update on this old topic, I 'regained' performance on my > php application by eliminating all calls to the old mysql connector (I was > using it for the array_map(mysql_real_escape_string($x) functionality). > > Also to measure performance I created test scripts that run through the > entire application with xdebug on. > > > Thanks all for your suggestions! > > > > On Tue, Jul 3, 2012 at 4:33 PM, Daniel Convissor < > danielc at analysisandsolutions.com> wrote: > >> Hi Woh: >> >> > The tool you mentioned is for Apache servers, we are on IIS 7. >> >> The ab tools make request to the website using HTTP. You can use it to >> test any web server, not just Apache HTTPD servers. >> >> --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 >> _______________________________________________ >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Wed Jul 25 15:47:53 2012 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 25 Jul 2012 15:47:53 -0400 Subject: [nycphp-talk] Seeking PHP Contract Work Message-ID: Hello Everyone, I have around 14 years experience with PHP/MySQL and currently found that I will have quite a bit of free time that I will need to fill. Probably around 20 hours per week. I could use the extra cash for savings so I thought I would first reach-out to the people on the list that helped me out a lot through the years. You can see my resume (a bit outdated) at http://www.josephcrawford.com/ We can discuss rates and project details via phone after 6pm EST. -- Joseph Crawford Jr. Zend Certified Engineer http://www.josephcrawford.com/ info at josephcrawford.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From leamhall at gmail.com Wed Jul 25 15:50:31 2012 From: leamhall at gmail.com (leam hall) Date: Wed, 25 Jul 2012 15:50:31 -0400 Subject: [nycphp-talk] Seeking PHP Contract Work In-Reply-To: References: Message-ID: On 7/25/12, Joseph Crawford wrote: > Hello Everyone, Joe, This blog post is what I use to find work. It worked for me these past few weeks, I start a new job at a great place very soon! http://leamhall.blogspot.com/2012/06/10-vital-tips-for-job-seeker.html Leam -- Mind on a Mission From prusak at gmail.com Fri Jul 27 17:12:16 2012 From: prusak at gmail.com (Ophir Prusak) Date: Fri, 27 Jul 2012 17:12:16 -0400 Subject: [nycphp-talk] Looking for shared working space recommendations Message-ID: Hi All, I'll be needing a shared workspace from the beginning of September. I've been looking at these places so far: http://hiveat55.com/ http://wework.com/ http://sunshineny.com/ Does anyone on the list have any suggestions? TIA, Ophir -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjlists at pobox.com Fri Jul 27 17:16:24 2012 From: pjlists at pobox.com (PJ) Date: Fri, 27 Jul 2012 17:16:24 -0400 Subject: [nycphp-talk] Looking for shared working space recommendations In-Reply-To: References: Message-ID: The Hatchery500 is wonderful. I spend as much time there as I can. Big, light space with desks or offices. 7th ave and W 37th St http://500.hatchery.vc/ PJ On Fri, Jul 27, 2012 at 5:12 PM, Ophir Prusak wrote: > Hi All, > > I'll be needing a shared workspace from the beginning of September. > > I've been looking at these places so far: > http://hiveat55.com/ > http://wework.com/ > http://sunshineny.com/ > > Does anyone on the list have any suggestions? > > TIA, > Ophir > > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -- patriciaju.com www.linkedin.com/in/patriciaju tungle.me/hackerbilt think. build. toss. repeat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Fri Jul 27 17:26:40 2012 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 27 Jul 2012 17:26:40 -0400 (EDT) Subject: [nycphp-talk] Looking for shared working space recommendations In-Reply-To: Message-ID: On Fri, 27 Jul 2012, Ophir Prusak wrote: > I'll be needing a shared workspace from the beginning of September. > > I've been looking at these places so far: > http://hiveat55.com/ > http://wework.com/ > http://sunshineny.com/ > > Does anyone on the list have any suggestions? This same question comes up regularly, so much so that the guys on the Ruby list built a Google Map: https://maps.google.com/maps?hl=en&authuser=0 :-) -- Aj. From ajai at bitblit.net Fri Jul 27 17:29:31 2012 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 27 Jul 2012 17:29:31 -0400 (EDT) Subject: [nycphp-talk] Looking for shared working space recommendations In-Reply-To: Message-ID: Sorry the previous link I sent was wrong, this is the correct one: https://maps.google.com/maps/ms?msid=213481871590736376588.0004b00e53695469f08fc&msa=0 -- Aj. From rainelemental at gmail.com Fri Jul 27 17:32:58 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Fri, 27 Jul 2012 17:32:58 -0400 Subject: [nycphp-talk] Looking for shared working space recommendations In-Reply-To: References: Message-ID: loosecubes.com wix.com On Fri, Jul 27, 2012 at 5:29 PM, Ajai Khattri wrote: > > Sorry the previous link I sent was wrong, this is the correct one: > > > https://maps.google.com/maps/ms?msid=213481871590736376588.0004b00e53695469f08fc&msa=0 > > > -- > Aj. > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsteplight at gmail.com Mon Jul 30 10:31:04 2012 From: dsteplight at gmail.com (Darryle Steplight) Date: Mon, 30 Jul 2012 10:31:04 -0400 Subject: [nycphp-talk] Front-End List ???? Message-ID: Good Morning Everyone, Does anyone know of any front-end developer specific list I can post too? I tried the NYPHP Front-End list, but I guess it has been inactive for some time now. Thanks in advance. -- ---------------------------------------------- "May the Source be with you." From rainelemental at gmail.com Mon Jul 30 10:40:09 2012 From: rainelemental at gmail.com (Federico Ulfo) Date: Mon, 30 Jul 2012 10:40:09 -0400 Subject: [nycphp-talk] Front-End List ???? In-Reply-To: References: Message-ID: Wow, I just discover about that list. Anyway frontend is generic, so you may want to join a a specific argument such as HTML/CSS, javascript, jQuery, responsive design, on LinkedIn you find many groups, although you have to deal with trollers. If you find a good list or group please let me (us) know! Federico On Mon, Jul 30, 2012 at 10:31 AM, Darryle Steplight wrote: > Good Morning Everyone, > > Does anyone know of any front-end developer specific list I can > post too? I tried the NYPHP Front-End list, but I guess it has been > inactive for some time now. Thanks in advance. > > -- > ---------------------------------------------- > "May the Source be with you." > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmarscher at beaffinitive.com Mon Jul 30 10:41:20 2012 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Mon, 30 Jul 2012 10:41:20 -0400 Subject: [nycphp-talk] Front-End List ???? In-Reply-To: References: Message-ID: On Jul 30, 2012, at 10:31 AM, Darryle Steplight wrote: > > Does anyone know of any front-end developer specific list I can > post too? I tried the NYPHP Front-End list, but I guess it has been > inactive for some time now. Thanks in advance. If you have a specific question, stackoverflow is great - http://stackoverflow.com/. From dsteplight at gmail.com Mon Jul 30 10:51:04 2012 From: dsteplight at gmail.com (Darryle Steplight) Date: Mon, 30 Jul 2012 10:51:04 -0400 Subject: [nycphp-talk] Front-End List ???? In-Reply-To: References: Message-ID: I have a jsonpath filtering question and I couldn't find the answer I was looking for on stackoverflow, but I guess scenarios like this is why people initially post on stackoverflow in the first place. I might as well just give that a shot. Federico, you are right and maybe that's why the list is no longer. People are going to more specific lists for help. Like having a "back-end list" probably wouldn't work either. You would get all types of people posting questions for any type of framework in any language. On Mon, Jul 30, 2012 at 10:41 AM, Rob Marscher wrote: > On Jul 30, 2012, at 10:31 AM, Darryle Steplight wrote: >> >> Does anyone know of any front-end developer specific list I can >> post too? I tried the NYPHP Front-End list, but I guess it has been >> inactive for some time now. Thanks in advance. > > If you have a specific question, stackoverflow is great - http://stackoverflow.com/. > > > > _______________________________________________ > New York PHP User Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/show-participation -- ---------------------------------------------- "May the Source be with you."