Re: [nyphp-talk] Deploying PHP Applications

2010-05-01 Thread Konstantin K
This is why sys admins use stow from gnu On Saturday, May 1, 2010, Yitzchak Schaffer wrote: > > On Apr 29, 2010, at 1:35 PM, Jason Salsiccia wrote: > > If your doc root is /var/www/html, have html be a symlink to current code. > /var/www/html -> /var/www/tag_ > > > Perhaps this is obvious to

Re: [nyphp-talk] Free vs Pay

2010-02-26 Thread Konstantin K
+1 on UltraEdit (which does code folding correctly!) They also have UEStudio On Fri, Feb 26, 2010 at 11:05 AM, Steve Manes wrote: > Gary Mort wrote: >> >> I am however fixated on must run on Mac and Windows and preferably Linux. > > Me as well.  I'm a fan of UltraEdit, which released a Linux ver

Re: [nyphp-talk] define variables versus assigned variables

2010-01-02 Thread Konstantin K
1. Your defined constants should be all CAPITALIZED. 2. I ran some tests earlier last year (2009) for this and found the following: - using class constants (and accessing it via ClassName::ConstantName) was about 30x faster than using define(). - there were about 1000 constants used (it's a

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

2009-12-30 Thread Konstantin K
contents); courtesy of: http://stackoverflow.com/questions/1438563/find-and-replace-in-a-file Konstantin On Tue, Dec 29, 2009 at 11:39 PM, Konstantin K wrote: > I meant to say programmatically.. :) > > On Tue, Dec 29, 2009 at 11:32 PM, Eddie Drapkin wrote: >> On Tue, Dec 29, 2009 a

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

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

[nyphp-talk] searching inside php source files

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

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

2009-12-29 Thread Konstantin K
that as > a CDN by keeping all of your static files on Google's servers. > > Just a thought. > > On 12/25/09, Konstantin K wrote: >> Im seriously considering going with SimpleCDN.  For about $40/month = >> 1TB/month, which isn't too bad and there's no extra ser

Re: [nyphp-talk] run my own mail server or use a 3rd party service?

2009-12-25 Thread Konstantin K
On Friday, December 25, 2009, Ajai Khattri wrote: > Not really - simply relying on SMTP from a PHP script is not really a > reliable (or efficient) way to send out email. Much better to have a > dedicated mail server that can queue the email, handle retries and > bounces, etc. Your PHP script shou

Re: [nyphp-talk] run my own mail server or use a 3rd party service?

2009-12-25 Thread Konstantin K
domain, then you can add > the mail receipt in the set up. If you're on a hosted domain do they provide > a control panel like CPanel or similar to receive mail? Or can you require > that users provide off-domain e-mail addresses? > > Again, I'm a bit muddled from the da

[nyphp-talk] run my own mail server or use a 3rd party service?

2009-12-25 Thread Konstantin K
Hey guys, Another kinda off-topic question but could be relevant to some people here and I know there are a bunch of really smart people on this list, so why not? My site will need to be able to email their users upon certain actions, like most site: - user registration (for account activation) -

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

2009-12-25 Thread Konstantin K
rk. > > I was pretty amazed at the speeds. > > > (PS Godaddy will probably be fine) :-) > > > > > > On Thu, Dec 24, 2009 at 4:36 PM, Konstantin K wrote: > >> looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for >> $7/month >> >&

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

2009-12-24 Thread Konstantin K
looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for $7/month any comments on this? On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: > Hey guys, > > I need some expert advice. > > Let's say I have about 2MB of static data (images, css, js) and I n

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

2009-12-24 Thread Konstantin K
Hey guys, I need some expert advice. Let's say I have about 2MB of static data (images, css, js) and I need to serve about 1TB worth of it per month to users who visit this site. I know that means at least 500,000 page views per month (not considering browsers caching images, etc). What's the c

Re: [nyphp-talk] MongoDB and others, convince me. :-)

2009-12-09 Thread Konstantin K
Funny, but some (valid? fair? not sure) points about NoSQL databases: http://highscalability.com/blog/2009/11/25/brian-akers-hilarious-nosql-stand-up-routine.html accompanying slides: http://www.slideshare.net/brianaker/no-sql-talk On Fri, Dec 4, 2009 at 10:36 AM, Peter Becker wrote: > Here he

Re: [nyphp-talk] Valudating common field types

2009-10-26 Thread Konstantin K
oh and also allow for . (periods) On Mon, Oct 26, 2009 at 4:06 PM, Konstantin K wrote: > be careful. don't just check if the field is NON empty. that's not good > enough. > > in English, you can reasonably assume the following to be true about names: > - must con

Re: [nyphp-talk] Valudating common field types

2009-10-26 Thread Konstantin K
be careful. don't just check if the field is NON empty. that's not good enough. in English, you can reasonably assume the following to be true about names: - must contain at least 1 letter [A-Za-z] - may contain ' (apostrephe) and - (dash) and (space) - shouldn't be longer than 40 characters. -

Re: [nyphp-talk] virtualization options...

2009-10-18 Thread Konstantin K
you guys are great. thanks for the quick responses and good suggestions!! Konstantin On Sun, Oct 18, 2009 at 9:11 PM, Konstantin K wrote: > Hi guys, > > > I'd like a free tool that allows me to run a linux virtual machine on my > windows laptop so I can do development on i

[nyphp-talk] virtualization options...

2009-10-18 Thread Konstantin K
Hi guys, I'd like a free tool that allows me to run a linux virtual machine on my windows laptop so I can do development on it, ftp and ssh to it, and run various services on it like apache and procmail... I know these tools (apache and procmail) are available for windows, but I *need* a linux i

Re: [nyphp-talk] Yahoo Special Presentation - Topic Selection

2009-09-25 Thread Konstantin K
Mobile data On Friday, September 25, 2009, Hans Zaunere wrote: > All, > > We've gotten a limited response and I encourage people to take advantage of > this opportunity to pick a topic from a top Yahoo developer.  We will be > submitting the topic this afternoon. > > H > > > >> -Original Mess