NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHPThumb -- how does it work??

Jonathan Wagener jonathanw at amoeba.co.za
Fri Jan 4 06:18:44 EST 2008


Hi, I would like to know how I can make phpthumb work, I don't really
understand how it works. How do I make it create thumbnails?

Kind regards,

Jonathan Wagener
     Web Developer / Architect
     Amoeba Business Solutions
     Cell:    +27 72 928 0513
     Office: +27 21 785 1424
     Web:    www.amoeba.co.za
     Blog:   www.espresso-online.info 

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of talk-request at lists.nyphp.org
Sent: 03 January 2008 18:01
To: talk at lists.nyphp.org
Subject: talk Digest, Vol 15, Issue 6

Send talk mailing list submissions to
	talk at lists.nyphp.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.nyphp.org/mailman/listinfo/talk
or, via email, send a message with subject or body 'help' to
	talk-request at lists.nyphp.org

You can reach the person managing the list at
	talk-owner at lists.nyphp.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of talk digest..."


Today's Topics:

   1. Re: Why do "cool kids" choose PHP to build websites	instead
      of Java (Elliotte Rusty Harold)
   2. Re: Why do "cool kids" choose PHP to build websites	instead
      of Java (Michael Southwell)
   3. Re: Time Card / Scheduling Open Source Package (Keith Casey)
   4. Re: Why do "cool kids" choose PHP to build websites	instead
      of Java (Anirudh Zala)
   5. Re: Why do "cool kids" choose PHP to build websites	instead
      of Java (Gary Mort)
   6. RE: Why do "cool kids" choose PHP to build	websites
instead
      of Java (Anthony Wlodarski)
   7. Re: Why do "cool kids" choose PHP to build websites	instead
      of Java (Jake McGraw)
   8. Re: Why do "cool kids" choose PHP to build	websites
instead
      of Java (Tim Gales)


----------------------------------------------------------------------

Message: 1
Date: Wed, 02 Jan 2008 18:09:26 -0500
From: Elliotte Rusty Harold <elharo at metalab.unc.edu>
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <477C19A6.9020109 at metalab.unc.edu>
Content-Type: text/plain; charset=UTF-8; format=flowed

Jake McGraw wrote:
> Tim:
> 
> You're not to fault, and the point about Java collections Vs array() 
> is pretty good, unfortunately, I never made it that far because I was 
> completely turned off by the "article", the exact text Tim was 
> referring
> to:
> 
> James Anderson wrote: The really simple answer is that after the 
> release of php 5, php became the better language.

Oh really? From http://zestyping.livejournal.com/124503.html


% cat equality.php
<?php

$a = 0;
$b = "eggs";
$c = "spam";

print ($a == $b) ? "a == b\n" : "a != b\n"; print ($b == $c) ? "b ==
c\n" : "b != c\n"; print ($a == $c) ? "a == c\n" : "a != c\n"; print ($a
== $d) ? "a == d\n" : "a != d\n"; print ($b == $d) ? "b == d\n" : "b !=
d\n"; print ($c == $d) ? "c == d\n" : "c != d\n";

?>

% php equality.php
a == b
b != c
a == c
a == d
b != d
c != d

(Of course, starting in version 5, Java began to mess up simple
Aristotelian logic too, but not quite this badly.)


-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


------------------------------

Message: 2
Date: Wed, 02 Jan 2008 19:22:30 -0500
From: Michael Southwell <michael.southwell at nyphp.com>
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <477C2AC6.2060203 at nyphp.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Elliotte Rusty Harold wrote:
> Jake McGraw wrote:
>> Tim:
>>
>> You're not to fault, and the point about Java collections Vs array() 
>> is pretty good, unfortunately, I never made it that far because I was

>> completely turned off by the "article", the exact text Tim was 
>> referring to:
>>
>> James Anderson wrote: The really simple answer is that after the 
>> release of php 5, php became the better language. 
> 
> Oh really? From http://zestyping.livejournal.com/124503.html
> 
> 
> % cat equality.php
> <?php
> 
> $a = 0;
> $b = "eggs";
> $c = "spam";
> 
> print ($a == $b) ? "a == b\n" : "a != b\n";
> print ($b == $c) ? "b == c\n" : "b != c\n";
> print ($a == $c) ? "a == c\n" : "a != c\n";
> print ($a == $d) ? "a == d\n" : "a != d\n";
> print ($b == $d) ? "b == d\n" : "b != d\n";
> print ($c == $d) ? "c == d\n" : "c != d\n";
> 
> ?>
> 
> % php equality.php
> a == b
> b != c
> a == c
> a == d
> b != d
> c != d
> 
> (Of course, starting in version 5, Java began to mess up simple 
> Aristotelian logic too, but not quite this badly.)

ah, no, these answers are exactly right, given that $a is an integer, $b

and $c are strings, and $d is unset. $b and $c when converted to 
integers for the purpose of comparison in #1 and #3 turn into 0 (zero) 
so the comparisons are true. #2 compares two different strings and so is

false. #4 compares 0 to the integer of unset and so is true. #5 and #6 
compare strings to the string of unset and so are false.
> 
> 


-- 
=================
Michael Southwell
Vice President, Education
NYPHP TRAINING:  http://nyphp.com/Training/Indepth


------------------------------

Message: 3
Date: Wed, 2 Jan 2008 22:34:42 -0500
From: "Keith Casey" <mailinglists at caseysoftware.com>
Subject: Re: [nycphp-talk] Time Card / Scheduling Open Source Package
To: "NYPHP Talk" <talk at lists.nyphp.org>
Message-ID:
	<fd219f0f0801021934m1bb2f54awee1de73dbfa82c5b at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Jan 2, 2008 5:15 PM, Gary Mort <bz-gmort at beezifies.com> wrote:
> Just about any project management software, such as BaseCamp,
> ActiveCollab, or Project Pier has time tracking abilities.

A bit biased on this one... former dotProject contributor and one of
the founders of the new fork: web2project ( http://web2project.net/ ).

Simply tracking time is easy.  You can actually do that with Notepad
using the LOG feature.  It's what you do with it that's important.
Scheduling and resource planning is one good step.  Comparing against
estimates is even better.  Tracking estimates over time and learning
people's biases for better estimating is the best of all.  ;)

dotProject and web2project do the first couple points.  I'm working on
a useful Estimation module now to automate what I've been doing by
hand.

kc

-- 
D. Keith Casey Jr.
CEO, CaseySoftware, LLC
http://CaseySoftware.com


------------------------------

Message: 4
Date: Thu, 3 Jan 2008 09:12:11 +0530
From: Anirudh Zala <arzala at gmail.com>
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <200801030912.11259.arzala at gmail.com>
Content-Type: text/plain;  charset="utf-8"

On Thursday 03 Jan 2008 04:39:26 Elliotte Rusty Harold wrote:
> Jake McGraw wrote:
> > Tim:
> >
> > You're not to fault, and the point about Java collections Vs array()
is
> > pretty good, unfortunately, I never made it that far because I was
> > completely turned off by the "article", the exact text Tim was
referring
> > to:
> >
> > James Anderson wrote: The really simple answer is that after the
release
> > of php 5, php became the better language.
>
> Oh really? From http://zestyping.livejournal.com/124503.html
>
>
> % cat equality.php
> <?php
>
> $a = 0;
> $b = "eggs";
> $c = "spam";
>
> print ($a == $b) ? "a == b\n" : "a != b\n";
> print ($b == $c) ? "b == c\n" : "b != c\n";
> print ($a == $c) ? "a == c\n" : "a != c\n";
> print ($a == $d) ? "a == d\n" : "a != d\n";
> print ($b == $d) ? "b == d\n" : "b != d\n";
> print ($c == $d) ? "c == d\n" : "c != d\n";
>
> ?>
>
> % php equality.php
> a == b
> b != c
> a == c
> a == d
> b != d
> c != d
>
> (Of course, starting in version 5, Java began to mess up simple
> Aristotelian logic too, but not quite this badly.)

Seriously PHP is not for cool kids. You need to grow a bit to learn and 
understand it properly. I think PHP has chosen *different* rules to
evaluate 
expressions and since those rules are bit different than other regular  
programming/scripting languages it is obvious that we can see this kind
of 
opposition.


------------------------------

Message: 5
Date: Thu, 03 Jan 2008 05:14:10 -0500
From: Gary Mort <bz-gmort at beezifies.com>
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <477CB572.5040200 at beezifies.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Elliotte Rusty Harold wrote:
> % cat equality.php
> <?php
>
> $a = 0;
> $b = "eggs";
> $c = "spam";
>
> print ($a == $b) ? "a == b\n" : "a != b\n";
> print ($b == $c) ? "b == c\n" : "b != c\n";
> print ($a == $c) ? "a == c\n" : "a != c\n";
> print ($a == $d) ? "a == d\n" : "a != d\n";
> print ($b == $d) ? "b == d\n" : "b != d\n";
> print ($c == $d) ? "c == d\n" : "c != d\n";
> ?>
>
I don't see this as a problem, basically the issue being raised is:
PHP does not have strong typing, this 0, NULL, and false are all 
equivalent(add a $d=false; to the definitions and everything still comes

out with the same result).

However, knowing that these 3 values are considered the same, you can 
replace 2 equal signs with 3, ===, and get the output your expecting.


------------------------------

Message: 6
Date: Thu, 3 Jan 2008 09:14:21 -0500
From: "Anthony Wlodarski" <aw at sap8.com>
Subject: RE: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <002401c84e12$ef88b1b0$ce9a1510$@com>
Content-Type: text/plain;	charset="UTF-8"

Zesty Ping never learned === apparently.  This one's for you Zesty:

http://www.php.net/manual/en/language.operators.comparison.php

"===" introduced type facing in php4 so it is a moot point or just poor
reading skills on some developers parts if they missed this essential
comparison operator...

Anthony Wlodarski
646-285-0500 x230
aw at sap8.com

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Gary Mort
Sent: Thursday, January 03, 2008 5:14 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
websites instead of Java

Elliotte Rusty Harold wrote:
> % cat equality.php
> <?php
>
> $a = 0;
> $b = "eggs";
> $c = "spam";
>
> print ($a == $b) ? "a == b\n" : "a != b\n";
> print ($b == $c) ? "b == c\n" : "b != c\n";
> print ($a == $c) ? "a == c\n" : "a != c\n";
> print ($a == $d) ? "a == d\n" : "a != d\n";
> print ($b == $d) ? "b == d\n" : "b != d\n";
> print ($c == $d) ? "c == d\n" : "c != d\n";
> ?>
>
I don't see this as a problem, basically the issue being raised is:
PHP does not have strong typing, this 0, NULL, and false are all 
equivalent(add a $d=false; to the definitions and everything still comes

out with the same result).

However, knowing that these 3 values are considered the same, you can 
replace 2 equal signs with 3, ===, and get the output your expecting.
_______________________________________________
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 York PHP
http://www.nyphp.org/show_participation.php





------------------------------

Message: 7
Date: Thu, 3 Jan 2008 09:29:47 -0500
From: "Jake McGraw" <jmcgraw1 at gmail.com>
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: "NYPHP Talk" <talk at lists.nyphp.org>
Message-ID:
	<e065b8610801030629u6287ed73h1bcb5d640a9bc131 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I believe it was my Uncle Ben who once said "With great power comes
great
responsibility." PHP does things in a manner different than C or Java or
Python or etc etc etc (that is why it is called PHP). There are features
that some programmers believe are shortcomings, there are shortcomings
that
some programmers believe are features. Know the language and its quirks
and
you'll never get bitten, program with some "responsibility".

- jake

On Jan 3, 2008 9:14 AM, Anthony Wlodarski <aw at sap8.com> wrote:

> Zesty Ping never learned === apparently.  This one's for you Zesty:
>
> http://www.php.net/manual/en/language.operators.comparison.php
>
> "===" introduced type facing in php4 so it is a moot point or just
poor
> reading skills on some developers parts if they missed this essential
> comparison operator...
>
> Anthony Wlodarski
> 646-285-0500 x230
> aw at sap8.com
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of Gary Mort
> Sent: Thursday, January 03, 2008 5:14 AM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
websites
> instead of Java
>
> Elliotte Rusty Harold wrote:
> > % cat equality.php
> > <?php
> >
> > $a = 0;
> > $b = "eggs";
> > $c = "spam";
> >
> > print ($a == $b) ? "a == b\n" : "a != b\n";
> > print ($b == $c) ? "b == c\n" : "b != c\n";
> > print ($a == $c) ? "a == c\n" : "a != c\n";
> > print ($a == $d) ? "a == d\n" : "a != d\n";
> > print ($b == $d) ? "b == d\n" : "b != d\n";
> > print ($c == $d) ? "c == d\n" : "c != d\n";
> > ?>
> >
> I don't see this as a problem, basically the issue being raised is:
> PHP does not have strong typing, this 0, NULL, and false are all
> equivalent(add a $d=false; to the definitions and everything still
comes
> out with the same result).
>
> However, knowing that these 3 values are considered the same, you can
> replace 2 equal signs with 3, ===, and get the output your expecting.
> _______________________________________________
> 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 York PHP
> http://www.nyphp.org/show_participation.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 New York PHP
> http://www.nyphp.org/show_participation.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.nyphp.org/pipermail/talk/attachments/20080103/382c8da9/atta
chment-0001.html

------------------------------

Message: 8
Date: Thu, 03 Jan 2008 10:43:33 -0500
From: Tim Gales <tgales at tgaconnect.com>
Subject: Re: [nycphp-talk] Why do "cool kids" choose PHP to build
	websites	instead of Java
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <477D02A5.7080106 at tgaconnect.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Anthony Wlodarski wrote:
> This article was funny and yet sad...
> 
Yes me too -- but for different reasons.
I thought it was extremely immature to say
"PHP is a better language".

It is like trying to argue that a Phillips
head screwdriver is  a better screwdriver
(as was mentioned) without taking in to
account what type of screws are being used.

I thought if I put that phrase about being
a better language in the post everyone would
know there might be a good portion of ill-informed
(and childish) opinions in the article.

Judging from some responses, that was more
than a slight miscalculation on my part --
and none too smart.

So let me say, in the words of the inimitable 'agent 86',
"Sorry about that, Chief"

-- 

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com


------------------------------

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

End of talk Digest, Vol 15, Issue 6
***********************************





More information about the talk mailing list