Re: [nyphp-talk] The SSL Certificate Scam

2013-12-03 Thread Adrian Noland
Sorry this is a bit late Check out the convergence.io project. Covers all the bases you mentioned. On Mon, Nov 25, 2013 at 11:15 AM, Gary A. Mort wrote: > Warning, this a a length rant/vent on the state of SSL certificates as > used on websites today. > > https://plus.google.com/117506461

Re: [nyphp-talk] Adding indexes

2010-03-23 Thread Adrian Noland
Just in case you need some more information about how to fix your queries, this walks you through some examples http://hackmysql.com/case2 On Mon, Mar 22, 2010 at 10:00 AM, Nicholas Hart wrote: > I am looking to analyze and speed up some of my queries by adding any > necessary indexes. Is there

Re: [nyphp-talk] Adding indexes

2010-03-22 Thread Adrian Noland
In addition to what others said... There is a lot more instruction both online and offline, but here is a brief example illustrating EXPLAIN: http://www.experts-exchange.com/articles/Database/MySQL/3-Ways-to-Speed-Up-MySQL.html The docs can be a bit dense if you're not familiar with what you are

Re: [nyphp-talk] Eclipse, try try again

2010-02-26 Thread Adrian Noland
Hrmm, interesting. I've been using PDT for a while and never missed it. I seem to remember phpeclipse doing that. Give that a shot? Adrian On Thu, Feb 25, 2010 at 10:24 PM, Gary Mort wrote: > Well, despite not liking it...I'm giving eclipse yet another try as every > other system I've tried ha

Re: [nyphp-talk] Flex/AIR

2010-02-12 Thread Adrian Noland
On Fri, Feb 12, 2010 at 12:06 PM, Gary Mort wrote: > I've never been able to justify buying a big flash developer package just > to play around with flash > > But from what I've skimmed, flex/air means you can use the compiler and > don't need the big full flash developer app.. > > Is that tr

Re: [nyphp-talk] xdebug / socket_accept()

2010-01-17 Thread Adrian Noland
Yitzchak, This isn't really a good way to go about testing the xdebug connection.I tried it on my machine and got the same errors you did. Depending on the configuration, the debugger opens port 9000 either during httpd start or the page runtime. Either way port 9000 is already in use by the time y

[nyphp-talk] I'd submit to dailywft if it wasn't so short.

2010-01-15 Thread Adrian Noland
Hi all, I came across this gem today: > // lots of code > > @require('../very_important_file.php'); > > // more code > Have a good weekend. Adrian ___ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk h

Re: [nyphp-talk] Suspending virtual machines with Samba shares

2010-01-13 Thread Adrian Noland
I think you want to turn on synchronous writes. I had a similar situation with NFS running on a system that wasn't aways available. Turning it on ensures that the file gets saved and doesn't wind up in the cache while the laptop is in hibernate/suspend. http://www.mail-archive.com/sa...@lists.samb

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

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

Re: [nyphp-talk] XCache on windows - Can I see your xcache.ini?

2009-12-18 Thread Adrian Noland
Ben, I got it installed in about 30 mins with no problem using the ini that comes with the distro. Don't know what else to try. Adrian On Tue, Dec 15, 2009 at 11:36 AM, Ben Sgro wrote: > Hello, > > I'm trying to setup xcache on window - it is listed in (phpinfo()): > > This program makes use o

Re: [nyphp-talk] SimpleXML - UTF8

2009-10-17 Thread Adrian Noland
I have this handy function I pulled from somewhere else. Does it help? Apologies if the actual characters don't come across in the email. /** * This function was created to scrub additional html entities that are not in the PHP get_html_translation_table * Currently bug #34577 in th

Re: [nyphp-talk] Drupal Framework / CMS Question

2009-10-12 Thread Adrian Noland
Says it better than I can: http://robozen.com/technology/drupal-sucks/ On Thu, Oct 8, 2009 at 11:12 PM, wrote: > Hello NYPHP, > > I have seen a few posts here about DRUPAL and decided to take a look > at it to see if it might be useful for some of my projects. > > > I realize that this was a "sh

Re: [nyphp-talk] Tidy code utils?

2009-09-24 Thread Adrian Noland
For code style there is Code Sniffer, also in pear. http://pear.php.net/package/PHP_CodeSniffer On Thu, Sep 24, 2009 at 10:25 AM, Yitzchak Schaffer < yitzchak.schaf...@gmx.com> wrote: > Mutaz Musa wrote: > >> PDT for eclipse has the same feature. I'm not familiar with PerlTidy does >> it do anyt

Re: [nyphp-talk] Advice on OOP & Frameworks

2009-09-16 Thread Adrian Noland
http://www.ibm.com/developerworks/opensource/top-projects/php.html http://www.ibm.com/developerworks/opensource/library/os-php-read/ On Sun, Aug 23, 2009 at 5:38 AM, Leam Hall wrote: > > Anyone up for drafting a "Recommended Learning Program" for PHP? > > Thanks! > > Leam > > > > ___

Re: [nyphp-talk] Google Apps

2009-07-28 Thread Adrian Noland
2009/7/28 Peter Sawczynec > Anyone using this as serious complete office suite? > > Using as personal mobile office? > > > > Any thoughts, heard on the street… > > Warmest regards, > Last year I tried to use gCalendar to manage my interviews when I was job hunting. It fell far short of the mark.

Re: [nyphp-talk] Frameworks & Fast Iterations

2009-07-25 Thread Adrian Noland
I work with the assumption that the site will *need* to be rewritten in 18-24 months. If you can live with the current version of the framework, keep it on hand. The idea being, you can leap-frog several versions of the framework, and refactor/rewrite with large changes on both the site and the fra

Re: [nyphp-talk] where in filesystem to install php application

2009-07-05 Thread Adrian Noland
On Wed, Jul 1, 2009 at 9:48 AM, David Mintz wrote: > Perhaps this is one of those things that doesn't matter a helluva lot, > but: when you have a freshly installed Debian-style LAMP (actually Ubuntu > server 9.04) and you are looking for a place in the filesystem to install > your PHP applicati

[nyphp-talk] FB Dev. Garage

2009-05-29 Thread Adrian Noland
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

Re: [nyphp-talk] Php Debugger

2008-09-02 Thread Adrian Noland
Forgot to include: http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/ On Tue, Sep 2, 2008 at 8:29 AM, Adrian Noland <[EMAIL PROTECTED]> wrote: > Xdebug is my personal favorite. xdebug.org. > -- installs as a php module, works about the same on Linux

Re: [nyphp-talk] Php Debugger

2008-09-02 Thread Adrian Noland
Xdebug is my personal favorite. xdebug.org. -- installs as a php module, works about the same on Linux and Windows. The venerable dbg started it all. http://dd.cron.ru/dbg/ -- can be a pain to use. Have to purchase to get latest fixes, but works for most cases. In order to see the debugging info

[nyphp-talk] SOAP error

2008-03-18 Thread Adrian Noland
Hello everybody, Can anybody help me figure out this error: Fatal error: SOAP-ERROR: Encoding: External reference 'ref1' in /var/www/www-trunk/intranet/soap.php on line 21 The only reference I found is on bugs.php.net: http://bugs.php.net/bug.php?id=41566 which says it is fixed in CVS. I tried th

[nyphp-talk] PHP5.3 adds EU date formatting.

2008-03-03 Thread Adrian Noland
Check it out here: http://derickrethans.nl/british_date_format_parsing.php ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in

Re: [nyphp-talk] Frameworks... CodeIgnite and Symfony

2008-02-27 Thread Adrian Noland
Paul M. Jones has a presentation with some benchmarks on it. Download slides here: http://paul-m-jones.com/?p=266#comments On 2/27/08, Vel Pillai <[EMAIL PROTECTED]> wrote: > > With personal experiencem I can CodeIgniter is a light weight and fast. > Scaling really comes to writing good code and

[nyphp-talk] NowDocs in next release of PHP

2008-02-14 Thread Adrian Noland
Read about it here: http://blogs.oracle.com/opal/discuss/msgReader$269 ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New Y

Re: [nyphp-talk] Anyone using Amazon S3 for backup?

2008-01-24 Thread Adrian Noland
On 1/18/08, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > Is anyone using Amazon S3 for backup? Instead of getting another > independent server, setting up rsync, etc. this seems like a good solution > for backing up a server or sql database. Sure, my ISP does daily backups, > but having more contro

Re: [nyphp-talk] escaping

2008-01-24 Thread Adrian Noland
In addition to all the other comments made, strip_tags() is helpful in this situation. http://us.php.net/strip_tags As for excluding "www.", you need to do something like this: $form_data = preg_match("www." "", $form_data); http://us.php.net/manual/en/function.preg-replace.php On 1/23/08, Su

Re: [nyphp-talk] Transitioning from Beginner to Intermediate PHP

2008-01-17 Thread Adrian Noland
I've always found the articles at IBM developerworks to be gems. They are always succinct and at the same time give you just enough of a taste to keep looking for the complete solution. www-128.ibm.com/developerworks/library/os-php-read/ www.ibm.com/developerworks/opensource/top-projects/php.html

Re: [nyphp-talk] xls output: localhost works, www doesn't

2008-01-16 Thread Adrian Noland
On 1/16/08, Rick Retzko <[EMAIL PROTECTED]> wrote: > > Thanks for the recommendation! I've got it working now (pointing the > form action directly to the file doing the processing, then exit() at the > end of the process), but I'd like to be A LOT more confident that I > understand why its workin

Re: [nyphp-talk] xls output: localhost works, www doesn't

2008-01-15 Thread Adrian Noland
Try an ob_clean() before sending the header. That way you make sure there are no extra LF/CR in your output. On 1/14/08, Rick Retzko <[EMAIL PROTECTED]> wrote: > > Hi all - Hopefully one of you have seen this and can quickly point me to > the > error of my ways. > > I need to output small files fr

Re: [nyphp-talk] how did you learn php?

2007-08-27 Thread Adrian Noland
On 8/26/07, Anthony <[EMAIL PROTECTED]> wrote: > > Hey, i'm kinda new around here and just tinkering around with php. My > question to you guys is how did you learn? by reading or by taking apart > scripts and adding your own style or what? I'm very curious. The first place to start is the PHP ma

Re: [nyphp-talk] queuing data

2007-08-19 Thread Adrian Noland
On 8/18/07, PaulCheung <[EMAIL PROTECTED]> wrote: > > > I have to finally admit it. Having looked at it for days, I am totally > lost and clueless > I am really sorry for being so thick, but can anybody please point me in > the right direction for some coding examples. > > Paul > I think you are p

Re: [nyphp-talk] Webserver file access (and version control)

2007-08-19 Thread Adrian Noland
On 8/18/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > On 8/17/07 12:45 PM, "Kenneth Dombrowski" <[EMAIL PROTECTED]> wrote: > > finally, I agree with Chris that anybody doing serious work should be > > using version control, but that is the next step, first you should have > > your file permission

Re: [nyphp-talk] Webserver file access

2007-08-17 Thread Adrian Noland
On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can your userid have access to the web site's directory? You can then use > WinSCP to copy the files there directly, and avoid using PuTTY. > Another way to do essentially the same noted above: Have your administrator add you to the gr

Re: [nyphp-talk] Any Subversion and/or Tortoise SVN experts out there?

2007-08-13 Thread Adrian Noland
Seconded, I get: svn: '-wu' is not supported On 8/13/07, Rolan Yang <[EMAIL PROTECTED]> wrote: > > What does the "-wu" do? > > ~Rolan > > Dmitry Ananyev wrote: > > > > You better install console version of svn tools and just use > > # svn diff -x -wu /path/to/trunk > mydiffs.txt > > __

Re: [nyphp-talk] Any Subversion and/or Tortoise SVN experts out there?

2007-08-13 Thread Adrian Noland
On 8/13/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > So I need to apply an upgrade, but have no idea what changes I've made to > the original software. Paranoia keeps me from applying the patch — don't > want to lose any of my changes. I'd like to have a complete printout of my > changed files

Re: [nyphp-talk] Xampp Mysql Connection Issues

2007-08-08 Thread Adrian Noland
On 8/8/07, anan tette-tawia <[EMAIL PROTECTED]> wrote: > > *Issue* > > I have been trying to learn php development by installing xampp on my pc. > The problem i am having is that i am able to save my php scripts and run > them successfully but when i started trying to write programs that have to >

Re: [nyphp-talk] SQL question

2007-07-24 Thread Adrian Noland
On 7/23/07, Rob Marscher <[EMAIL PROTECTED]> wrote: If you did an INNER JOIN: SELECT u.id, s.id FROM user u INNER JOIN session s ON u.id = s.user_id WHERE u.id = 5 ... We had a discussion last year on NYPHP-MySQL about INNER JOIN versus commas (cartesian join) -- you so often see it with

Re: [nyphp-talk] Not a PHP question

2007-07-19 Thread Adrian Noland
Probably this: http://www.icecast.org/ On 7/19/07, Tim Sailer <[EMAIL PROTECTED]> wrote: On Thu, Jul 19, 2007 at 08:11:49AM -0700, Néstor wrote: > I was wondering if anyone know about a free Open source package that > will allow for recording live video and audio stream for Win OS. (must resis

Re: [nyphp-talk] Using PHP for a Stand-Alone application

2007-07-05 Thread Adrian Noland
While I agree with everything Tom said, if you really *must* have a web server, check out nanoweb. A web server written in PHP. http://nanoweb.si.kz/manual/ On 7/4/07, Tom Melendez <[EMAIL PROTECTED]> wrote: Hi Rick, On 7/4/07, Rick Retzko <[EMAIL PROTECTED]> wrote: > > Hi All – > > I've dev

Re: [nyphp-talk] Text control for PHP

2007-07-03 Thread Adrian Noland
Text control? What do you mean? Something like tinyMCE or FCKeditor? http://tinymce.moxiecode.com/ http://www.fckeditor.net/ On 7/3/07, David Krings <[EMAIL PROTECTED]> wrote: Hi! Can anyone recommend a text control for use with PHP? Ideally one that can be integrated in an HTML form and that

Re: [nyphp-talk] When to close a mysql connection

2007-07-02 Thread Adrian Noland
Persistent connections need to be used with care. The following article explains some problems: http://www.mysqlperformanceblog.com/2006/11/12/are-php-persistent-connections-evil/ Additionally, the default configurations for PHP, Apache and MySQL don't lend themselves well to persistent connecti

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-04 Thread Adrian Noland
On 6/3/07, David Krings <[EMAIL PROTECTED]> wrote: Adrian Noland wrote: > The key to speedy SQL is in the indexes. Without an index the SQL engine > iterates over every row. With an index it automagically grabs the > correct value. This is really an eyeopener. After indexing al

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-03 Thread Adrian Noland
On 6/3/07, David Krings <[EMAIL PROTECTED]> wrote: David Krings wrote: > Hi! > > Which one is faster: PHP array_unique or SQL DISTINCT ? > OK, while I still like to know what the answer is, the DISTINCT wasn't the culprit, but the way I join the tables. I ran the query across only two tables an

Re: [nyphp-talk] Checking active sessions

2007-04-30 Thread Adrian Noland
Now I get back to the original question, how can I degunk these folders? I need to know which sessions are still likely to be active and which ones are not. That all has nothing to do with the temp folder that the web server creates somewhere for holding the session data. I have no idea where that

Re: [nyphp-talk] Checking active sessions

2007-04-27 Thread Adrian Noland
I think you need to think about your temp folder idea some more. You say that you are going to keep temp uploads and other things there that get destroyed after the user logs out. But if you are regenerating the user's session ID multiple times you will need to keep the temp folder in sync with th

Re: [nyphp-talk] [OT] Yet another CSS Question

2007-03-04 Thread Adrian Noland
On 3/2/07, Kenneth Downs <[EMAIL PROTECTED]> wrote: I'd like to have two links on a page. They should be on the same line together, one flush left, the other flush right. The TABLE method is just to have two cells, but of course we don't want to do that. What I tried was putting two divs, one

Re: [nyphp-talk] OT: Random MySQL question

2007-02-15 Thread Adrian Noland
Thanks. This is precisely what I needed. On 2/14/07, Flavio daCosta <[EMAIL PROTECTED]> wrote: On 02/14/2007 05:14 PM, Jon Baer wrote: > Interesting how you can walk down the entire list to produce the order > you need like that. Yes, and to elaborate a bit more from my earlier post, you could

[nyphp-talk] OT: Random MySQL question

2007-02-14 Thread Adrian Noland
Hi all, I have an obscure MySQL question I hope someone can answer: I have the following query: select id, categories from dd_categories where id in (21, 20, 13, 3, 22, 31); I want category 21 to show up first in the list. It appears the default order is by id which puts #3 at the front. I can't

Re: [nyphp-talk] testing a theory

2007-02-07 Thread Adrian Noland
On 2/7/07, Adrian Noland <[EMAIL PROTECTED]> wrote: The loop is optimizing the results. Here is what I got when I replaced them with 115K direct strings. Without profiling Concatenation took 4.47135686874. Multiple echoes took 5.18587899208. Concatenation took 4.42481684685. Multiple

Re: [nyphp-talk] testing a theory

2007-02-07 Thread Adrian Noland
On 2/7/07, Rob Marscher <[EMAIL PROTECTED]> wrote: OK... I got interested enough to do a test myself. I ran it a few times with 100,000 loops of concatenating vs. echoing. The average result was about this: Concatenation took 0.13881587982178. Multiple echoes took 0.074604988098145. Concat mem

Re: [nyphp-talk] testing a theory

2007-02-07 Thread Adrian Noland
On 2/7/07, tedd <[EMAIL PROTECTED]> wrote: No offense meant, but when I have a question like that, I test it and find out. Why ask the list for something you could test yourself? tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com Naw, fair enough. I got ra

[nyphp-talk] testing a theory

2007-02-06 Thread Adrian Noland
Hi, I have a quick (and probably silly) question. Is there performance difference between the following two snippets. Does it make a difference if there are hundreds+ of lines? vs. ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/

Re: [nyphp-talk] session variables: seven deadly sins

2006-12-28 Thread Adrian Noland
Paul, I just signed up on this list and I'm really enjoying your discourse. > When I develop my own applications, I use cookies for > personalization and caching. I use the authentication system described in > > http://cookies.lcs.mit.edu/pubs/webauth:sec10-slides.ps.gz > > this mech

Re: [nyphp-talk] windows 2003 server, php.ini, exchange server & mail ?

2006-12-24 Thread Adrian Noland
I'm guessing each site has it's own include_dir? phpmailer class lets you specify a host name. I use this because I was unable to get a Free mail server on my testbed. http://phpmailer.sourceforge.net/ --- Christopher Grimaldi <[EMAIL PROTECTED]> wrote: > Hello, > I have a dedicated server(win