Re: [nyphp-talk] Website quotation

2009-04-28 Thread Ben Sgro
Hey Artur, Glad it gave you a laugh! Yeah, its always best the first time - Take care, - Ben Artur Marnik wrote: Hi Ben I have never seen http://lmgtfy.com before this made my day :) I am sure I will use it a lot (I have many friends asking silly questions on ICQ etc) Artur Ben Sgro wrote

Re: [nyphp-talk] Website quotation

2009-04-28 Thread Artur Marnik
Hi Ben I have never seen http://lmgtfy.com before this made my day :) I am sure I will use it a lot (I have many friends asking silly questions on ICQ etc) Artur Ben Sgro wrote: Hey David, Heh, of course - that was for the original poster - just having fun. - Ben _

Re: [nyphp-talk] WAMP (minus the M) forking question - also open to other ideas

2009-04-28 Thread Michael J. Forte
Hi John and Elijah, Thank you for the input. I spent most of the night trying to get this to work and determined the following: - START /B does not appear to work. - pclose(popen($cmd)); still hangs the parent - I found COM(Wscript.Shell) ... $->Run(...) on the web but could not get it work

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread li...@nopersonal.info
Ajai Khattri wrote: > On Tue, 28 Apr 2009, li...@nopersonal.info wrote: > > >> Re your friend, yikes! I know what you mean about using $counter. I >> figured out that $i or $n stands for an integer, but it still throws me >> off sometimes when I see something like $l in someone's example code >>

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread Ajai Khattri
On Tue, 28 Apr 2009, li...@nopersonal.info wrote: > Re your friend, yikes! I know what you mean about using $counter. I > figured out that $i or $n stands for an integer, but it still throws me > off sometimes when I see something like $l in someone's example code > (below)... what is the "l" supp

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Guilherme Blanco
Hey, http://www.doctrine-project.org/documentation/manual/1_1/en Use this for Doctrine reference =) Cheers, On Tue, Apr 28, 2009 at 9:02 PM, Ajai Khattri wrote: > On Tue, 28 Apr 2009, Guilherme Blanco wrote: > >> The usage of Doctrine will never be found on Symfony tutorials... >> you can

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Ajai Khattri
On Tue, 28 Apr 2009, Guilherme Blanco wrote: > The usage of Doctrine will never be found on Symfony tutorials... > you can probably find a couple of examples in the Doctrine manual. Some docs here: http://www.symfony-project.org/doctrine/1_2/en/ -- Aj. ___

Re: [nyphp-talk] LEMP?

2009-04-28 Thread Eddie Drapkin
I had a view reasons, not really anything ground shaking. 1.) nginx is much more actively developed than lightty. 2.) One of the people that recommended it to me was/is a blackhat and I tend to take security advice from blackhats very, very seriously. 3.) nginx is growing more and more popular, li

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Guilherme Blanco
Nice to meet you too!!! I just can't remember why I joined the mailing list... I'm from São Paulo, Brazil! =) IIRC, it was due to good discussions on this list. Cheers, On Tue, Apr 28, 2009 at 7:04 PM, wrote: > ahh yes..nice.  cool nice to meet you and btw, i mean that "i am currently > workin

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Guilherme Blanco
The usage of Doctrine will never be found on Symfony tutorials... you can probably find a couple of examples in the Doctrine manual. On Tue, Apr 28, 2009 at 4:18 PM, Ajai Khattri wrote: > On Tue, 28 Apr 2009, Guilherme Blanco wrote: > >> Specially for people like you, Doctrine provide a couple of

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread y2rob
ahh yes..nice.  cool nice to meet you and btw, i mean that "i am currently working with doctrine" in my last email. nice to see some great people are on this mailing list!!! sincerely, ~rob -Original Message- From: Guilherme Blanco To: NYPHP Talk Sent: Tue, 28 Apr 2009 2:16 pm

Re: [nyphp-talk] WAMP (minus the M) forking question - also open to other ideas

2009-04-28 Thread Elijah Insua
Here is some C code I had laying around which executes a detached process, much like START. #include #include #include int main(int argc, char *argv[]) { if (argc < 2) { printf("Fork32 v1.0 - A windows process splitter\n\n"); printf("Usage: fork32.exe C:\\full\\path\\to

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Ajai Khattri
On Tue, 28 Apr 2009, Guilherme Blanco wrote: > Specially for people like you, Doctrine provide a couple of CLI tasks > that can do a lot of things. Im using symfony and I know a lot of these tasks are available through the symfony CLI tool. But Im new to Doctrine in symfony (still learning it).

Re: [nyphp-talk] LEMP?

2009-04-28 Thread Mitch Pirtle
Would love to know what everyone's experiences were with nginx-vs-lighttpd, as both seem to basically achieve the same exact thing while being separate projects. Is there a reason you chose nginx over lighttpd? -- Mitch 2009/4/25 : > Hey, all, new to the mailing list (really, the first email I'v

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Guilherme Blanco
Specially for people like you, Doctrine provide a couple of CLI tasks that can do a lot of things. For example... you can define your models into an YAML file, and simply call: php ./doctrine.php generate-models-yaml It'll generate all models based on the YAML schema. Then, simply do: php ./doc

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread li...@nopersonal.info
Eddie Drapkin wrote: > To be fair, despite the talk about what's best or what isn't, in the > end it really doesn't matter what the code looks like, given two > things. One, most importantly, it works (well). And two, it's > consistent. It doesn't matter if your variables are named $like_this > o

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread li...@nopersonal.info
Edward Potter wrote: > Suggest pear style for your code. I stick with Ruby'ish style for > naming my sql stuff. > > table : locations > field: location > > Sticking with something that simple can save you DAYS of headaches~! Thanks, Edward (and Dan & Daniel as well). I recently discovered the ha

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread y2rob
i've heard about doctrine and i am not working with it, and i love and hate it.  i think once you spend the time to set it up (minus certain quirks with doctrine migrations),  it will do a pretty decent job, but if you have a large (and i mean large) database, you'll can spend a good amount of

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread li...@nopersonal.info
David Krings wrote: >> -Variables (same as functions--should they be different?) > Yep, I'd handle them the same way. As important is that you give them > meaningful names. I once had a coworker who used his first and last > name as variable names for everything. He'd even write code to change > t

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Guilherme Blanco
Doctrine_View is able to handle views in any DBMS. Also, you can manually map the view if you want to work on updatable views, just like Oracle supports. Stored procedures works on the fly, just like a common function call. Doctrine does something like that: In case DQL can interpret it, apply th

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Marcelo Araujo
Since when, Guilherme? On Tue, Apr 28, 2009 at 1:31 PM, Guilherme Blanco wrote: > www.doctrine-project.org > > =) > > On Tue, Apr 28, 2009 at 1:08 PM, Ajai Khattri wrote: >> >> Does anyone know of an ORM that can use views and stored procedures in >> MySQL? > -- > Guilherme Blanco - Web Develope

Re: [nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Guilherme Blanco
www.doctrine-project.org =) On Tue, Apr 28, 2009 at 1:08 PM, Ajai Khattri wrote: > > Does anyone know of an ORM that can use views and stored procedures in > MySQL? > > > -- > Aj. > > ___ > New York PHP User Group Community Talk Mailing List > http://l

[nyphp-talk] ORM that uses more advanced MySQL features

2009-04-28 Thread Ajai Khattri
Does anyone know of an ORM that can use views and stored procedures in MySQL? -- Aj. ___ 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] Best practices for naming conventions & coding style?

2009-04-28 Thread Eddie Drapkin
To be fair, despite the talk about what's best or what isn't, in the end it really doesn't matter what the code looks like, given two things. One, most importantly, it works (well). And two, it's consistent. It doesn't matter if your variables are named $like_this or $likeThis as long as it's one

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread Ajai Khattri
On Mon, 27 Apr 2009, Kristina Anderson wrote: > Lastly anyone who tries to impose THEIR conventions on you is to be ignored. > This is all > about you, and what widget YOU think is easiest to use. Worrying about where > to put a > curly bracket is not worth it -- put it where you like it! A

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread Ajai Khattri
On Tue, 28 Apr 2009, Edward Potter wrote: > I'm really an ObjC guy (iPhone), where u really have monster long names, a > smalltalk feature grafted onto c++. Yeah, ObjC is just one step away from obfuscated Perl :-) -- Aj. ___ New York PHP User Grou

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread li...@nopersonal.info
Justin Hileman wrote: > If you're looking for suggestions, I tend to use a modified PEAR > coding style--with a just a handful of exceptions where they got > stupid--when I write PHP. It's a lot like K&R/1TBS, so it's > comfortable to me... And it helps that several of the projects I work > on hav

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread li...@nopersonal.info
Ajai Khattri wrote: > Often if you're using a framework, you might have to use the framework's > naming conventions. > I wasn't aware of that—thanks for the heads-up. Bev ___ New York PHP User Group Community Talk Mailing List http://lists.nyphp.org

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread Edward Potter
I just kind of like: delete from companies where id = 1; I think this is more of a rails syntax. just so zen simple! but everyone comes up with their best naming. we are all different, as long as it's consistent. I never use person as a field name. Leads to confusion. I think you can be a bi

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-28 Thread Daniel Convissor
On Mon, Apr 27, 2009 at 10:18:42PM -0400, Edward Potter wrote: > > employees > -- > id > firstname <= generally for my field names I'll link words with _, just > firstname and lastname I concatenate. > lastname > company_id > > > companies > - > id > company But in tha