473,498 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grayscaling images causes mangled image + segfault

[php]
/**
* Class for grayscaling image
*
* @author Phil Powell
* @version 1.2.1
* @package IMAGE_CATALOG::IMAGE
*/
class ImageGrayscaleGenerator extends ImageResizeComponents {

/
*----------------------------------------------------------------------------------------------------------------------------------------------------------
This class exists due to the rather poor performance of the
imagecopymergegray() command
Borrowing code snippet from http://us3.php.net/manual/en/functio...ymergegray.php
first line comment
Will perform actual grayscaling of image one pixel at a time.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
*/
// REMEMBER TO USE REFERENCE POINTER ONTO $image OBJECT TO ENSURE
"static" CHANGE TO OBJECT AND NOT TO INSTANCE

/**
* Constructor. Set all properties dynamically
*
* @access public
* @param resource $image (reference)
* @param resource $newImage (reference)
* @param int $image_width
* @param int $image_height
*/
function ImageGrayscaleGenerator(&$image, &$newImage, $image_width,
$image_height) { // CONSTRUCTOR
global $section;
foreach (array($section, 'newImage', "${section}_width", "$
{section}_height") as $val) $this->$val =& ${$val};
}

/**
* Make the image grayscale
*
* @access protected
*/
function makeGray() { // VOID METHOD
global $section;
for ($i = 0; $i <= 255; $i++) $colorNDX[$i] =
@imagecolorallocate($this->newImage, $i, $i, $i);

if (is_array($colorNDX) && @sizeof($colorNDX) 0) {
for ($y = 0; $y < $this->{$section . '_height'}; $y++) {
for ($x = 0; $x < $this->{$section . '_width'}; $x++) {
$ndx = @imagecolorat($this->image, $x, $y);
$ndxColorArray = @imagecolorsforindex($this->image, $ndx);
$avg = floor(($ndxColorArray['red'] + $ndxColorArray['green'] +
$ndxColorArray['blue']) / 3);
@imagesetpixel($this->newImage, $x, $y, $colorNDX[$avg]);
}
}
}
}
}

if ($this->isSuccessful && $image && $willGrayscale) { // GRAYSCALE
IMAGE
$igg =& new ImageGrayscaleGenerator($image, $newImage,
$image_width, $image_height);
$igg->makeGray();
$igg = null;
}
[/php]

Whenever I run this class to grayscale an image, I wind up with the
resulting image being horribly mangled to the point of its original
format completely irreparable, furthermore, I wind up with an Apache
segfault and having to reboot the server to correct the problem.

Um, why?

Phil

Apr 14 '07 #1
49 1678
ok, throw the class away.

| // REMEMBER TO USE REFERENCE POINTER ONTO $image OBJECT TO ENSURE
| "static" CHANGE TO OBJECT AND NOT TO INSTANCE

this 'explanation' is totally off the charts as to being wrong. follow that
up with the magical 'global $sections' and you've got icing for the cake.
not to mention this class will leak like a fucking screen used to pan gold.
there is color allocation for every pixel, there is a count/sizeof operation
on this allocation inside a loop. next, it uses color averaging to derive
gray. last but certainly not least, this class totally ignores the fact that
images have alpha layers. do i dare mention that this class doesn't clean up
after itself? it relies on YOU to destroy the images IT creates among other
niceties.

for all the 'performance' reasons the brain-dead author gives for creating
this beast, he shows far more neglect in his code...which by default will
run more slowly that imagecopymergegray() since it isn't part of php native
code! plus, as you've already seen, it fucking blows up.

i'd look up imagecopymergegray() on php.net and see how the commenters there
are performing grayscale operations. they at least have the math
approximations for calculating gray a better match than ol' phil here.

btw imho, any class that simply has procedural code (simply a set of
similar/related functions) should be singletons. this is a perfect example.
i'd have named the class 'imaging' and given an interface called
getGrayscale...

$igg = imaging::getGrayscale($image);

all the height/width shit can be discovered via the one arg $image and
nothing else in that class needs to be stored by the object instance. that
may be just me, but as far as i am concerned, i'm already waaaay past strike
three here.
Apr 16 '07 #2
How does "for all the 'performance' reasons the brain-dead author
gives for creating
this beast" help anyone? Thank you for utterly useless ad-hominem
information!

On Apr 15, 11:18 pm, "Steve" <no....@example.comwrote:
ok, throw the class away.

| // REMEMBER TO USE REFERENCE POINTER ONTO $image OBJECT TO ENSURE
| "static" CHANGE TO OBJECT AND NOT TO INSTANCE

this 'explanation' is totally off the charts as to being wrong. follow that
up with the magical 'global $sections' and you've got icing for the cake.
not to mention this class will leak like a fucking screen used to pan gold.
there is color allocation for every pixel, there is a count/sizeof operation
on this allocation inside a loop. next, it uses color averaging to derive
gray. last but certainly not least, this class totally ignores the fact that
images have alpha layers. do i dare mention that this class doesn't clean up
after itself? it relies on YOU to destroy the images IT creates among other
niceties.

for all the 'performance' reasons the brain-dead author gives for creating
this beast, he shows far more neglect in his code...which by default will
run more slowly that imagecopymergegray() since it isn't part of php native
code! plus, as you've already seen, it fucking blows up.

i'd look up imagecopymergegray() on php.net and see how the commenters there
are performing grayscale operations. they at least have the math
approximations for calculating gray a better match than ol' phil here.

btw imho, any class that simply has procedural code (simply a set of
similar/related functions) should be singletons. this is a perfect example.
i'd have named the class 'imaging' and given an interface called
getGrayscale...

$igg = imaging::getGrayscale($image);

all the height/width shit can be discovered via the one arg $image and
nothing else in that class needs to be stored by the object instance. that
may be just me, but as far as i am concerned, i'm already waaaay past strike
three here.

Apr 16 '07 #3
On Apr 15, 11:33 pm, "comp.lang.php" <phillip.s.pow...@gmail.com>
wrote:
How does "for all the 'performance' reasons the brain-dead author
gives for creating
this beast" help anyone? Thank you for utterly useless ad-hominem
information!

On Apr 15, 11:18 pm, "Steve" <no....@example.comwrote:
ok, throw the class away.
| // REMEMBER TO USE REFERENCE POINTER ONTO $image OBJECT TO ENSURE
| "static" CHANGE TO OBJECT AND NOT TO INSTANCE
this 'explanation' is totally off the charts as to being wrong. follow that
up with the magical 'global $sections' and you've got icing for the cake.
not to mention this class will leak like a fucking screen used to pan gold.
there is color allocation for every pixel, there is a count/sizeof operation
on this allocation inside a loop. next, it uses color averaging to derive
gray. last but certainly not least, this class totally ignores the fact that
images have alpha layers. do i dare mention that this class doesn't clean up
after itself? it relies on YOU to destroy the images IT creates among other
niceties.
for all the 'performance' reasons the brain-dead author gives for creating
this beast, he shows far more neglect in his code...which by default will
run more slowly that imagecopymergegray() since it isn't part of php native
code! plus, as you've already seen, it fucking blows up.
i'd look up imagecopymergegray() on php.net and see how the commenters there
are performing grayscale operations. they at least have the math
approximations for calculating gray a better match than ol' phil here.
btw imho, any class that simply has procedural code (simply a set of
similar/related functions) should be singletons. this is a perfect example.
i'd have named the class 'imaging' and given an interface called
getGrayscale...
$igg = imaging::getGrayscale($image);
all the height/width shit can be discovered via the one arg $image and
nothing else in that class needs to be stored by the object instance. that
may be just me, but as far as i am concerned, i'm already waaaay past strike
three here.
You struck out. imagecopymergegray() fails as well, produces a total
non-image with segfault just as much as anything I have done. So much
for your brilliant cocky strategy. Try again.

Apr 16 '07 #4

"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
| How does "for all the 'performance' reasons the brain-dead author
| gives for creating
| this beast" help anyone? Thank you for utterly useless ad-hominem
| information!

well <as he scratches his head>, it kind of warns you NOT to use the code,
as in solving your current problem will not solve the others you will have
when you employ this class. but i though that was apparent in the examples i
gave to support my opinion.

i'm now assuming you are said brain-dead author since you glossed over the
litany of things-gone-wrong in the code that i pointed out and have
immediately championed a defensive attitude.
Apr 16 '07 #5
| You struck out. imagecopymergegray() fails as well, produces a total
| non-image with segfault just as much as anything I have done. So much
| for your brilliant cocky strategy. Try again.

well as EVERYTHING i've pointed out as WRONG with the class REMAINS VALID,
i'd say i've just stepped up to the plate. if you wanna play hard-ball, you
need to be a better pitcher and quit reff-ing since the strike-outs belong
to the class creator and NOT me.

you've merely pitched BALL ONE.

try again.
Apr 16 '07 #6
On Apr 15, 11:49 pm, "Steve" <no....@example.comwrote:
"comp.lang.php" <phillip.s.pow...@gmail.comwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...
| How does "for all the 'performance' reasons the brain-dead author
| gives for creating
| this beast" help anyone? Thank you for utterly useless ad-hominem
| information!

well <as he scratches his head>, it kind of warns you NOT to use the code,
as in solving your current problem will not solve the others you will have
when you employ this class. but i though that was apparent in the examples i
gave to support my opinion.

i'm now assuming you are said brain-dead author since you glossed over the
litany of things-gone-wrong in the code that i pointed out and have
immediately championed a defensive attitude.
So I assume you feel calling someone "brain-dead" is your way of
assuming they are receptive to your solutions, whatever they may be,
which, as I can see, do not yet exist by your means.

Apr 16 '07 #7
On Apr 15, 11:52 pm, "Steve" <no....@example.comwrote:
| You struck out. imagecopymergegray() fails as well, produces a total
| non-image with segfault just as much as anything I have done. So much
| for your brilliant cocky strategy. Try again.

well as EVERYTHING i've pointed out as WRONG with the class REMAINS VALID,
i'd say i've just stepped up to the plate. if you wanna play hard-ball, you
need to be a better pitcher and quit reff-ing since the strike-outs belong
to the class creator and NOT me.

you've merely pitched BALL ONE.

try again.
You haven't even tried in the first place, or, do you even want to? If
not, please do not waste bandwith by showing your technological
bravado and try to help someone out with a problem with grayscaling
images. How would YOU do it?

Apr 16 '07 #8
On Apr 16, 12:05 am, "comp.lang.php" <phillip.s.pow...@gmail.com>
wrote:
On Apr 15, 11:52 pm, "Steve" <no....@example.comwrote:
| You struck out. imagecopymergegray() fails as well, produces a total
| non-image with segfault just as much as anything I have done. So much
| for your brilliant cocky strategy. Try again.
well as EVERYTHING i've pointed out as WRONG with the class REMAINS VALID,
i'd say i've just stepped up to the plate. if you wanna play hard-ball, you
need to be a better pitcher and quit reff-ing since the strike-outs belong
to the class creator and NOT me.
you've merely pitched BALL ONE.
try again.
Original thread that provided solution:
http://coding.derkeiler.com/Archive/...4-02/0459.html
>
You haven't even tried in the first place, or, do you even want to? If
not, please do not waste bandwith by showing your technological
bravado and try to help someone out with a problem with grayscaling
images. How would YOU do it?

Apr 16 '07 #9

"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
| On Apr 15, 11:52 pm, "Steve" <no....@example.comwrote:
| | You struck out. imagecopymergegray() fails as well, produces a total
| | non-image with segfault just as much as anything I have done. So much
| | for your brilliant cocky strategy. Try again.
| >
| well as EVERYTHING i've pointed out as WRONG with the class REMAINS
VALID,
| i'd say i've just stepped up to the plate. if you wanna play hard-ball,
you
| need to be a better pitcher and quit reff-ing since the strike-outs
belong
| to the class creator and NOT me.
| >
| you've merely pitched BALL ONE.
| >
| try again.
|
| You haven't even tried in the first place, or, do you even want to? If
| not, please do not waste bandwith by showing your technological
| bravado and try to help someone out with a problem with grayscaling
| images. How would YOU do it?

BALL TWO.

i said look at the commentor's code and see how they grayscale. i have an
imaging class. it is my code. i'm not giving it to anyone as it brings me a
great deal of consulting work. you present me with code, and i'll tell you
what's wrong with it. that's the way it goes here. and did you not catch
that that is EXACTLY what i did here.

try again.
Apr 16 '07 #10

"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
| On Apr 16, 12:05 am, "comp.lang.php" <phillip.s.pow...@gmail.com>
| wrote:
| On Apr 15, 11:52 pm, "Steve" <no....@example.comwrote:
| >
| | You struck out. imagecopymergegray() fails as well, produces a
total
| | non-image with segfault just as much as anything I have done. So
much
| | for your brilliant cocky strategy. Try again.
| >
| well as EVERYTHING i've pointed out as WRONG with the class REMAINS
VALID,
| i'd say i've just stepped up to the plate. if you wanna play
hard-ball, you
| need to be a better pitcher and quit reff-ing since the strike-outs
belong
| to the class creator and NOT me.
| >
| you've merely pitched BALL ONE.
| >
| try again.
|
| Original thread that provided solution:
| http://coding.derkeiler.com/Archive/...4-02/0459.html

i don't care if gawd herself wrote it, it is STILL shit. glad to see though
that PHIL makes an EXACT COPY of SOMEONE ELSE'S code, then puts HIMSELF AS
THE AUTHOR when he (YOU) present it here. no wonder the commented
explanation shows complete lack of understanding of how references work. you
don't understand the code you copied.

BALL THREE.

| >
| You haven't even tried in the first place, or, do you even want to? If
| not, please do not waste bandwith by showing your technological
| bravado and try to help someone out with a problem with grayscaling
| images. How would YOU do it?

btw, it's MY FUCKING BANDWIDTH...go buy your own. until you pay for MINE,
YOU HAVE NO SAY IN HOW I USE IT.
Apr 16 '07 #11

"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@n76g2000hsh.googlegr oups.com...
| On Apr 15, 11:49 pm, "Steve" <no....@example.comwrote:
| "comp.lang.php" <phillip.s.pow...@gmail.comwrote in message
| >
| news:11**********************@q75g2000hsh.googlegr oups.com...
| | How does "for all the 'performance' reasons the brain-dead author
| | gives for creating
| | this beast" help anyone? Thank you for utterly useless ad-hominem
| | information!
| >
| well <as he scratches his head>, it kind of warns you NOT to use the
code,
| as in solving your current problem will not solve the others you will
have
| when you employ this class. but i though that was apparent in the
examples i
| gave to support my opinion.
| >
| i'm now assuming you are said brain-dead author since you glossed over
the
| litany of things-gone-wrong in the code that i pointed out and have
| immediately championed a defensive attitude.
|
| So I assume you feel calling someone "brain-dead" is your way of
| assuming they are receptive to your solutions, whatever they may be,
| which, as I can see, do not yet exist by your means.

you post as 'comp.lang.php' not as PHIL (author of the shitty class).
knowing this know, both of us, does the code change somehow such that it
isn't shitty...enough where i should justifiably refrain from calling it
shitty? having seen that this is NOT PHIL'S code in the first place (thanks
for outting yourself with the link), i can only be MORE correct in the use
of "brain-dead" since you try to pass it off as your own.

BALL FOUR...i can take my base now.

keep racking 'em up, PHIL.
Apr 16 '07 #12
hey genious, here's an RBI:

foreach (
array(
$section ,
'newImage' ,
"${section}_width" ,
"${section}_height"
)
as $val
){ $this->$val =& ${$val}; }

what do you intend to do with this lil' gem, eh? you do realize you'll get
the same results by just:

$this->val =& "${section}_height";

ahhh, so when you plagerized the functionality, you copied it
incorrectly...i see.

ROFLMFAO !!!
Apr 16 '07 #13

"Steve" <no****@example.comwrote in message
news:m_***************@newsfe02.lga...
| hey genious, here's an RBI:
|
| foreach (
| array(
| $section ,
| 'newImage' ,
| "${section}_width" ,
| "${section}_height"
| )
| as $val
| ){ $this->$val =& ${$val}; }
|
| what do you intend to do with this lil' gem, eh? you do realize you'll get
| the same results by just:
|
| $this->val =& "${section}_height";

make that:

$this->$val =& ${"${section}_height"};

but you get my point. if you want to make the values into variables, do
it...but don't confuse the issue of what $this->$val is. this is right up
there with magic numbers! gotta love coders like you. ;^)
Apr 16 '07 #14
On Apr 16, 1:41 am, "Steve" <no....@example.comwrote:
hey genious, here's an RBI:

foreach (
array(
$section ,
'newImage' ,
"${section}_width" ,
"${section}_height"
)
as $val
){ $this->$val =& ${$val}; }

what do you intend to do with this lil' gem, eh? you do realize you'll get
the same results by just:

$this->val =& "${section}_height";

ahhh, so when you plagerized the functionality, you copied it
incorrectly...i see.

ROFLMFAO !!!
It's "genius", BTW.

Apr 16 '07 #15
On Apr 16, 1:47 am, "Steve" <no....@example.comwrote:
"Steve" <no....@example.comwrote in message

news:m_***************@newsfe02.lga...
| hey genious, here's an RBI:
|
| foreach (
| array(
| $section ,
| 'newImage' ,
| "${section}_width" ,
| "${section}_height"
| )
| as $val
| ){ $this->$val =& ${$val}; }
|
| what do you intend to do with this lil' gem, eh? you do realize you'll get
| the same results by just:
|
| $this->val =& "${section}_height";

make that:

$this->$val =& ${"${section}_height"};

but you get my point. if you want to make the values into variables, do
it...but don't confuse the issue of what $this->$val is. this is right up
there with magic numbers! gotta love coders like you. ;^)
Coders like me can spell "genius".

Apr 16 '07 #16

"comp.lang.php" <ph**************@gmail.comwrote in message
news:11*********************@l77g2000hsb.googlegro ups.com...
| On Apr 16, 1:47 am, "Steve" <no....@example.comwrote:
| "Steve" <no....@example.comwrote in message
| >
| news:m_***************@newsfe02.lga...
| | hey genious, here's an RBI:
| |
| | foreach (
| | array(
| | $section ,
| | 'newImage' ,
| | "${section}_width" ,
| | "${section}_height"
| | )
| | as $val
| | ){ $this->$val =& ${$val}; }
| |
| | what do you intend to do with this lil' gem, eh? you do realize you'll
get
| | the same results by just:
| |
| | $this->val =& "${section}_height";
| >
| make that:
| >
| $this->$val =& ${"${section}_height"};
| >
| but you get my point. if you want to make the values into variables, do
| it...but don't confuse the issue of what $this->$val is. this is right
up
| there with magic numbers! gotta love coders like you. ;^)
|
| Coders like me can spell "genius".

double-entandre dimwit
Apr 16 '07 #17
"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
| On Apr 16, 1:41 am, "Steve" <no....@example.comwrote:
| hey genious, here's an RBI:
| >
| foreach (
| array(
| $section ,
| 'newImage' ,
| "${section}_width" ,
| "${section}_height"
| )
| as $val
| ){ $this->$val =& ${$val}; }
| >
| what do you intend to do with this lil' gem, eh? you do realize you'll
get
| the same results by just:
| >
| $this->val =& "${section}_height";
| >
| ahhh, so when you plagerized the functionality, you copied it
| incorrectly...i see.
| >
| ROFLMFAO !!!
|
| It's "genius", BTW.

coming around the home stretch...ahhh, slides right in for another. that's 2
for home, visitors...zilch.

you'se awr a brittun.

entendre^2...perhaps you've heard of it?
Apr 16 '07 #18
Steve wrote:
"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
| On Apr 16, 1:41 am, "Steve" <no....@example.comwrote:
| hey genious, here's an RBI:
| >
| foreach (
| array(
| $section ,
| 'newImage' ,
| "${section}_width" ,
| "${section}_height"
| )
| as $val
| ){ $this->$val =& ${$val}; }
| >
| what do you intend to do with this lil' gem, eh? you do realize you'll
get
| the same results by just:
| >
| $this->val =& "${section}_height";
| >
| ahhh, so when you plagerized the functionality, you copied it
| incorrectly...i see.
| >
| ROFLMFAO !!!
|
| It's "genius", BTW.

coming around the home stretch...ahhh, slides right in for another. that's 2
for home, visitors...zilch.

you'se awr a brittun.

entendre^2...perhaps you've heard of it?

Sorry, Steve. I agree with comp.lang.php. You added absolutely nothing
to this conversation except taking up bandwidth. And it's my bandwidth,
also.

I'm glad he got this fixed in spite of your immature language and attitude.

For your next post try alt.anal.orifices. It matches you perfectly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 16 '07 #19
On Apr 16, 7:23 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
Steve wrote:
"comp.lang.php" <phillip.s.pow...@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
| On Apr 16, 1:41 am, "Steve" <no....@example.comwrote:
| hey genious, here's an RBI:
| >
| foreach (
| array(
| $section ,
| 'newImage' ,
| "${section}_width" ,
| "${section}_height"
| )
| as $val
| ){ $this->$val =& ${$val}; }
| >
| what do you intend to do with this lil' gem, eh? you do realize you'll
get
| the same results by just:
| >
| $this->val =& "${section}_height";
| >
| ahhh, so when you plagerized the functionality, you copied it
| incorrectly...i see.
| >
| ROFLMFAO !!!
|
| It's "genius", BTW.
coming around the home stretch...ahhh, slides right in for another. that's 2
for home, visitors...zilch.
you'se awr a brittun.
entendre^2...perhaps you've heard of it?

Sorry, Steve. I agree with comp.lang.php. You added absolutely nothing
to this conversation except taking up bandwidth. And it's my bandwidth,
also.

I'm glad he got this fixed in spite of your immature language and attitude.
Thank you, Jerry, very nice to hear this! Unfortunately no I never
did solve the problem; I am still not capable of grayscaling an image:

/**
* Make the image grayscale
*
* @access protected
*/
function makeGray() { // VOID METHOD
global $section;
for ($i = 0; $i <= 255; $i++) $colorNDX[$i] =
@imagecolorallocate($this->$section, $i, $i, $i);

for ($y = 0; $y < $this->{$section . '_height'}; $y++) {
for ($x = 0; $x < $this->{$section . '_width'}; $x++) {
$ndx = @imagecolorat($this->$section, $x, $y);
$red = ($ndx >16) & 0xFF;
$green = ($ndx >8) & 0xFF;
$blue = $ndx & 0xFF;
//$ndxColorArray = @imagecolorsforindex($this->$section, $ndx);
//$avg = floor(($ndxColorArray['red'] + $ndxColorArray['green'] +
$ndxColorArray['blue']) / 3);
$col = $red * 0.299 + $green * 0.587 + $blue * 0.114;
@imagesetpixel($this->$section, $x, $y, $colorNDX[$col]);
}
}

//@imagecopy($this->newImage, $this->$section, 0, 0, 0, 0,
// $this->{$section . '_width'}, $this->{$section .
'_height'});

}

No image is ever produced in spite of the code produced.
>
For your next post try alt.anal.orifices. It matches you perfectly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Apr 16 '07 #20
comp.lang.php wrote:
<snip>
Thank you, Jerry, very nice to hear this! Unfortunately no I never
did solve the problem; I am still not capable of grayscaling an image:

/**
* Make the image grayscale
*
* @access protected
*/
function makeGray() { // VOID METHOD
global $section;
for ($i = 0; $i <= 255; $i++) $colorNDX[$i] =
@imagecolorallocate($this->$section, $i, $i, $i);

for ($y = 0; $y < $this->{$section . '_height'}; $y++) {
for ($x = 0; $x < $this->{$section . '_width'}; $x++) {
$ndx = @imagecolorat($this->$section, $x, $y);
$red = ($ndx >16) & 0xFF;
$green = ($ndx >8) & 0xFF;
$blue = $ndx & 0xFF;
//$ndxColorArray = @imagecolorsforindex($this->$section, $ndx);
//$avg = floor(($ndxColorArray['red'] + $ndxColorArray['green'] +
$ndxColorArray['blue']) / 3);
$col = $red * 0.299 + $green * 0.587 + $blue * 0.114;
@imagesetpixel($this->$section, $x, $y, $colorNDX[$col]);
}
}

//@imagecopy($this->newImage, $this->$section, 0, 0, 0, 0,
// $this->{$section . '_width'}, $this->{$section .
'_height'});

}

No image is ever produced in spite of the code produced.
>For your next post try alt.anal.orifices. It matches you perfectly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

I'm sorry, I thought you found a fix for it.

I looked at the code, but unfortunately I'm that great with the image
functions.

A couple of things I do see. First of all, you shouldn't use a global
($section). Anything you need you should pass to the function or the
class itself.

Also, in your constructor you're saving things in $this->$val, which is
incorrect in two counts. It should be $this->val, and you never defined
$val in your class. No idea what the code would do in this case.

And I'm not sure just what you're trying to accomplish in the foreach()
loop in your constructor. If you're trying to use this to create
variables in your class, that's the hard way to go about it, and the
values you're defining are temporary and will disappear at the end of
the function. Rather, you should just define them as members of the
class (probably private).

Also, I'm not sure what's in $section, but I think you're trying to get
the width and height of the image.

As for your makeGray() function -

You should first define $colorNDX as an array, i.e.

$colorNDX = array();

Your if statement following the for loop is unnecessary - you already
know it's an array of 256 elements because you just created it. And the
following nested for statements are referencing variables which don't
exist any more.

These are just off the top of my head, and may not be correct. But I
did find our class to be pretty hard to understand.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 16 '07 #21
| Also, in your constructor you're saving things in $this->$val, which is
| incorrect in two counts. It should be $this->val, and you never defined
| $val in your class. No idea what the code would do in this case.

as i pointed out, it seems an attempt to dynamically create the class
interface names. nothing else makes sense.

| And I'm not sure just what you're trying to accomplish in the foreach()
| loop in your constructor. If you're trying to use this to create
| variables in your class, that's the hard way to go about it, and the
| values you're defining are temporary and will disappear at the end of
| the function. Rather, you should just define them as members of the
| class (probably private).

hmmm...sounds familiar. :)

| Also, I'm not sure what's in $section, but I think you're trying to get
| the width and height of the image.

so we agree that global $section is magic. i suppose you didn't read my
initial response.

| As for your makeGray() function -
|
| You should first define $colorNDX as an array, i.e.
|
| $colorNDX = array();

that only matters if he's displaying notices. otherwise he is dynamically
filling $colorNDX as an array type with allocated colors - he just doesn't
check to see if the color has *already* been allocated and does this in a
loop. but then again, i already pointed out these two flaws.

| Your if statement following the for loop is unnecessary - you already
| know it's an array of 256 elements because you just created it. And the
| following nested for statements are referencing variables which don't
| exist any more.

another reason why i said the author was 'brain-dead' thinking that this
version of code has better performance potential than the built-in php
function he was aiming to supplant!

| These are just off the top of my head, and may not be correct. But I
| did find our class to be pretty hard to understand.

so jerry, you found that my initial response to phil did not add anything to
the post. i find that interesting since you restated exactly 3 things there
i've already covered. and, off-the-top-of-MY-head i stated even more
potential problems with the op's eye-sore coding.

if it's the language i used that was offensive to you, then damn the
language...else, why nullify your opinion by restating what i've already
said!

as it is jerry, i did not know the op was in fact the author of this class.
perhaps i would have been more gentil and guarded with my flurry of insults
had i known before hand. i just find it hard for you to agree that i've not
added anything to resolving the problem at hand when you are mirroring my
findings...simply because you don't like the tone of my delivery.

oh well.

later.
Apr 16 '07 #22
Steve wrote:
<snip garbage>

I found your tone to be arrogant and condescending, whether he was the
author of the class or not.

And as I said before - alt.anal.orifices is thataway ===>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 16 '07 #23

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:sd******************************@comcast.com. ..
| Steve wrote:
| <snip garbage>
|
| I found your tone to be arrogant and condescending, whether he was the
| author of the class or not.
|
| And as I said before - alt.anal.orifices is thataway ===>

i couldn't care less how you find my tone. you have no response to justify
'i have to agree with...added nothing to...' whilst you're almost
word-for-wording my review of the code...other than, i didn't like your
tone. i can then duely note that you are fully qualified to tell me
directions to alt.anal.orifices since your head is apparently buried up
yours.
Apr 16 '07 #24
| And as I said before - alt.anal.orifices is thataway ===>

btw, since that's where your cranium resides, do i take this as an
invitation to come over and visit?
Apr 16 '07 #25

"Steve" <no****@example.comwrote in message
news:1k**************@newsfe02.lga...
>
"comp.lang.php" <ph**************@gmail.comwrote in message
news:11*********************@l77g2000hsb.googlegro ups.com...
| On Apr 16, 1:47 am, "Steve" <no....@example.comwrote:
| "Steve" <no....@example.comwrote in message
| >
| news:m_***************@newsfe02.lga...
| | hey genious, here's an RBI:
| |
| | foreach (
| | array(
| | $section ,
| | 'newImage' ,
| | "${section}_width" ,
| | "${section}_height"
| | )
| | as $val
| | ){ $this->$val =& ${$val}; }
| |
| | what do you intend to do with this lil' gem, eh? you do realize
you'll
get
| | the same results by just:
| |
| | $this->val =& "${section}_height";
| >
| make that:
| >
| $this->$val =& ${"${section}_height"};
| >
| but you get my point. if you want to make the values into variables,
do
| it...but don't confuse the issue of what $this->$val is. this is right
up
| there with magic numbers! gotta love coders like you. ;^)
|
| Coders like me can spell "genius".

double-entandre dimwit
[snip]

Methinks you mean "double-entendre" (sp. again - ROFL)
Apr 16 '07 #26
On Apr 16, 4:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Steve wrote:

<snip garbage>

I found your tone to be arrogant and condescending, whether he was the
author of the class or not.

And as I said before - alt.anal.orifices is thataway ===>
Thanx Jerry for your help! Turns out that the simple process of having
class properties that I forgot to include fixed everything (*ahem*)

Phil
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Apr 17 '07 #27

"comp.lang.php" <ph**************@gmail.comwrote in message
news:11*********************@y80g2000hsf.googlegro ups.com...
| On Apr 16, 4:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
| Steve wrote:
| >
| <snip garbage>
| >
| I found your tone to be arrogant and condescending, whether he was the
| author of the class or not.
| >
| And as I said before - alt.anal.orifices is thataway ===>
|
| Thanx Jerry for your help! Turns out that the simple process of having
| class properties that I forgot to include fixed everything (*ahem*)

now on to fix the other problems noted, right? of course not. have you
benchmarked your performance against imagecopygrayscale? of course not. will
you? probably. will you post the dire results back here...of course not.

keep slinging that code phil.
Apr 17 '07 #28
On Apr 17, 1:26 am, "Steve" <no....@example.comwrote:
"comp.lang.php" <phillip.s.pow...@gmail.comwrote in message

news:11*********************@y80g2000hsf.googlegro ups.com...
| On Apr 16, 4:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:| Steve wrote:

| >
| <snip garbage>
| >
| I found your tone to be arrogant and condescending, whether he was the
| author of the class or not.
| >
| And as I said before - alt.anal.orifices is thataway ===>
|
| Thanx Jerry for your help! Turns out that the simple process of having
| class properties that I forgot to include fixed everything (*ahem*)

now on to fix the other problems noted, right? of course not. have you
benchmarked your performance against imagecopygrayscale? of course not. will
you? probably. will you post the dire results back here...of course not.

keep slinging that code phil.
Thanx, I will! And I appreciate all of your help!
Apr 17 '07 #29
"comp.lang.php" <ph**************@gmail.comwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
| On Apr 17, 1:26 am, "Steve" <no....@example.comwrote:
| "comp.lang.php" <phillip.s.pow...@gmail.comwrote in message
| >
| news:11*********************@y80g2000hsf.googlegro ups.com...
| | On Apr 16, 4:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:| >
Steve wrote:
| >
| | >
| | <snip garbage>
| | >
| | I found your tone to be arrogant and condescending, whether he was
the
| | author of the class or not.
| | >
| | And as I said before - alt.anal.orifices is thataway ===>
| |
| | Thanx Jerry for your help! Turns out that the simple process of having
| | class properties that I forgot to include fixed everything (*ahem*)
| >
| now on to fix the other problems noted, right? of course not. have you
| benchmarked your performance against imagecopygrayscale? of course not.
will
| you? probably. will you post the dire results back here...of course not.
| >
| keep slinging that code phil.
|
| Thanx, I will! And I appreciate all of your help!

hey, no problem. you are single-handedly increasing my paygrade. companies
that have a go with you and those of your prowess soon learn that quality
has a much higher price tag. so, i thank you very much. :)
Apr 17 '07 #30
On Apr 17, 9:19 am, "Steve" <no....@example.comwrote:
"comp.lang.php" <phillip.s.pow...@gmail.comwrote in message

news:11**********************@n59g2000hsh.googlegr oups.com...
| On Apr 17, 1:26 am, "Steve" <no....@example.comwrote:
| "comp.lang.php" <phillip.s.pow...@gmail.comwrote in message
| >
| >news:11*********************@y80g2000hsf.googlegr oups.com...
| | On Apr 16, 4:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:| >Steve wrote:

| >
| | >
| | <snip garbage>
| | >
| | I found your tone to be arrogant and condescending, whether he was
the
| | author of the class or not.
| | >
| | And as I said before - alt.anal.orifices is thataway ===>
| |
| | Thanx Jerry for your help! Turns out that the simple process of having
| | class properties that I forgot to include fixed everything (*ahem*)
| >
| now on to fix the other problems noted, right? of course not. have you
| benchmarked your performance against imagecopygrayscale? of course not.
will
| you? probably. will you post the dire results back here...of course not.
| >
| keep slinging that code phil.
|
| Thanx, I will! And I appreciate all of your help!

hey, no problem. you are single-handedly increasing my paygrade. companies
that have a go with you and those of your prowess soon learn that quality
has a much higher price tag. so, i thank you very much. :)
Don't thank me. Thank yourself for openly and publically
demonstrating your inability to interact with others which lowers your
pricetag to the deservedably low level of $0.00

Can't wait to see HR do a keyword search on "dimwit" and "brain-dead"!

Apr 18 '07 #31
| | Thanx, I will! And I appreciate all of your help!
| >
| hey, no problem. you are single-handedly increasing my paygrade.
companies
| that have a go with you and those of your prowess soon learn that
quality
| has a much higher price tag. so, i thank you very much. :)
|
| Don't thank me. Thank yourself for openly and publically
| demonstrating your inability to interact with others which lowers your
| pricetag to the deservedably low level of $0.00

i work from home and work on very complex and large-scale projects. been
doing so for 7 years now. were i not able to communicate, i'd have no job.
my primary 9/5 gives me 2x nat. us. average price tag per anum. my
consulting side job sees me charging lawyer's rates - hell, they even have
me on a retainer! both jobs frequently dole out bonuses. both commend me on
my interpersonal skills.

but, oh well. you dream up whatever price tag you THINK my human
interactions merit. as for you, i'm afraid your best interactions are with
medium sized farm animals. :)

| Can't wait to see HR do a keyword search on "dimwit" and "brain-dead"!

really? you're not worried you'll get fired, them having seen what you
consider good programming and reasoning?

fucking grow up! get a thicker skin.

and as a proactive measure, since you seem to HAVE to have the last word,
i'll prevent it...

*PLONK*
Apr 18 '07 #32
Steve wrote:
i work from home
since you can't deal with people face to face. That's why you hide
behind your computer and insult everyone.

Instead of taking up your mother issues with everyone else, how about
you do the mature thing and get a therapist.

Civil behavior is a pretty basic skill you've yet to learn.

Cheers!
Apr 18 '07 #33

"Michael Daly" <Mi*********@foo.barwrote in message
news:DN******************************@magma.ca...
| Steve wrote:
|
| i work from home
|
| since you can't deal with people face to face. That's why you hide
| behind your computer and insult everyone.

no. it just cuts down my daily commute. in fact, i am in such a stature that
i've flown around the world to meet and discuss/plan development projects
with the boards of directors, cios, and ceos of many global corporations of
which most of them you've probably heard...such as toyota, porche, bmw,
audi, carfax, bnsf, american airlines, morgan stanley...and some that you
probably haven't.

all i can say is that we both leave said meetings with smiles. must be good
raport during the course of many a golf game and fine meals. :)

say what you will. your intention to insult me (making you hypocritical)
only does so were i to perceive it true. i obviously have no experience that
would render your remark as anything other than flatly false.

| Instead of taking up your mother issues with everyone else, how about
| you do the mature thing and get a therapist.

the thing about the oportunists who join a feeding frenzy is that they come
bearing teeth. i think yours have been left in the small cup of water on
your bathroom sink.

| Civil behavior is a pretty basic skill you've yet to learn.

<chucklingyou obviously haven't read this entire thread. say, the third
post down where comp.lang.php (the op's handle) is actually the code's
author (phil). phil and his rubbish-for-code is what i was going on about.
might i have used different words rather than 'brain-dead' (reference to the
author) had i know phil == comp.lang.php? probably. too late for that given
his nym-shifting. would i call shitty code by another name? i dare not, dear
rose.

| Cheers!

lol.
Apr 18 '07 #34

"Steve" <no****@example.comschreef in bericht
news:4R************@newsfe03.lga...
>
"Michael Daly" <Mi*********@foo.barwrote in message
news:DN******************************@magma.ca...
| Steve wrote:
|
<crap>

stfu wanker!
Apr 18 '07 #35
amygdala wrote:
"Steve" <no****@example.comschreef in bericht
news:4R************@newsfe03.lga...
>"Michael Daly" <Mi*********@foo.barwrote in message
news:DN******************************@magma.ca. ..
| Steve wrote:
|

<crap>

stfu wanker!

Do you really believe all his crap? You'd think his name was Bill
Gates! ROFLMAO!

Probably works from home because no company will hire him. Can't say as
I would blame them - I sure wouldn't!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 19 '07 #36
Steve wrote:
"Michael Daly" <Mi*********@foo.barwrote in message
news:DN******************************@magma.ca...
| Steve wrote:
|
| i work from home
|
| since you can't deal with people face to face. That's why you hide
| behind your computer and insult everyone.

no. it just cuts down my daily commute. in fact, i am in such a stature that
i've flown around the world to meet and discuss/plan development projects
with the boards of directors, cios, and ceos of many global corporations of
which most of them you've probably heard...such as toyota, porche, bmw,
audi, carfax, bnsf, american airlines, morgan stanley...and some that you
probably haven't.

all i can say is that we both leave said meetings with smiles. must be good
raport during the course of many a golf game and fine meals. :)

say what you will. your intention to insult me (making you hypocritical)
only does so were i to perceive it true. i obviously have no experience that
would render your remark as anything other than flatly false.

| Instead of taking up your mother issues with everyone else, how about
| you do the mature thing and get a therapist.

the thing about the oportunists who join a feeding frenzy is that they come
bearing teeth. i think yours have been left in the small cup of water on
your bathroom sink.

| Civil behavior is a pretty basic skill you've yet to learn.

<chucklingyou obviously haven't read this entire thread. say, the third
post down where comp.lang.php (the op's handle) is actually the code's
author (phil). phil and his rubbish-for-code is what i was going on about.
might i have used different words rather than 'brain-dead' (reference to the
author) had i know phil == comp.lang.php? probably. too late for that given
his nym-shifting. would i call shitty code by another name? i dare not, dear
rose.

| Cheers!

lol.

May I recommend someone to you who probably _is_ at your currently
rather lonely level, where we, earthbound minions, can only look up to
and tell our children wonderful fairytale stories of?

Look up Alan Connor, if you haven't already bumped into him at the six
mile high Ole Boys Network. He _surely_ will understand fully what you
mean and how we all fail to see the immense talent and wisdom you exhume.

In case you need further directions, Alan's in the encyclopaedia of
utter bliss following the terms 'Troll', 'A-hole' and 'Pseudologica
Fantastica'. Why they are in that particular order no-one down here knows.

@ Phil: Although there may be some valid points to be made (and done so
by others) about the actual code you posted, and while I share the
curiousness about the performance of your custom solution compared to
the off-the-shelf alternative, please ignore the trash talk. It's
something that appearantly comes with usenet territory. It's been in
fashion with some for years now, and it will probably outlive us all,
but after a while it's easier living with this minor nuisance than with
a boil on your behind or mosquitoes in the bedroom at night.
And, of course, there's always that shred of hope we will all once see
the light and are allowed to join the ranks of those miscomprehended
superheroes ;-)

GL
Sh.
Apr 19 '07 #37

"Schraalhans Keukenmeester" <bi*******@invalid.spamwrote in message
news:46*********************@news.xs4all.nl...
| Steve wrote:
| "Michael Daly" <Mi*********@foo.barwrote in message
| news:DN******************************@magma.ca...
| | Steve wrote:
| |
| | i work from home
| |
| | since you can't deal with people face to face. That's why you hide
| | behind your computer and insult everyone.
| >
| no. it just cuts down my daily commute. in fact, i am in such a stature
that
| i've flown around the world to meet and discuss/plan development
projects
| with the boards of directors, cios, and ceos of many global corporations
of
| which most of them you've probably heard...such as toyota, porche, bmw,
| audi, carfax, bnsf, american airlines, morgan stanley...and some that
you
| probably haven't.
| >
| all i can say is that we both leave said meetings with smiles. must be
good
| raport during the course of many a golf game and fine meals. :)
| >
| say what you will. your intention to insult me (making you hypocritical)
| only does so were i to perceive it true. i obviously have no experience
that
| would render your remark as anything other than flatly false.
| >
| | Instead of taking up your mother issues with everyone else, how about
| | you do the mature thing and get a therapist.
| >
| the thing about the oportunists who join a feeding frenzy is that they
come
| bearing teeth. i think yours have been left in the small cup of water on
| your bathroom sink.
| >
| | Civil behavior is a pretty basic skill you've yet to learn.
| >
| <chucklingyou obviously haven't read this entire thread. say, the
third
| post down where comp.lang.php (the op's handle) is actually the code's
| author (phil). phil and his rubbish-for-code is what i was going on
about.
| might i have used different words rather than 'brain-dead' (reference to
the
| author) had i know phil == comp.lang.php? probably. too late for that
given
| his nym-shifting. would i call shitty code by another name? i dare not,
dear
| rose.
| >
| | Cheers!
| >
| lol.
| >
| >
| May I recommend someone to you who probably _is_ at your currently
| rather lonely level, where we, earthbound minions, can only look up to
| and tell our children wonderful fairytale stories of?
|
| Look up Alan Connor, if you haven't already bumped into him at the six
| mile high Ole Boys Network. He _surely_ will understand fully what you
| mean and how we all fail to see the immense talent and wisdom you exhume.
|
| In case you need further directions, Alan's in the encyclopaedia of
| utter bliss following the terms 'Troll', 'A-hole' and 'Pseudologica
| Fantastica'. Why they are in that particular order no-one down here knows.
|
| @ Phil: Although there may be some valid points to be made (and done so
| by others) about the actual code you posted, and while I share the
| curiousness about the performance of your custom solution compared to
| the off-the-shelf alternative, please ignore the trash talk. It's
| something that appearantly comes with usenet territory. It's been in
| fashion with some for years now, and it will probably outlive us all,
| but after a while it's easier living with this minor nuisance than with
| a boil on your behind or mosquitoes in the bedroom at night.
| And, of course, there's always that shred of hope we will all once see
| the light and are allowed to join the ranks of those miscomprehended
| superheroes ;-)

lol. at least you're funny.
Apr 19 '07 #38

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:D5******************************@comcast.com. ..
| amygdala wrote:
| "Steve" <no****@example.comschreef in bericht
| news:4R************@newsfe03.lga...
| >"Michael Daly" <Mi*********@foo.barwrote in message
| >news:DN******************************@magma.ca. ..
| >| Steve wrote:
| >|
| >
| <crap>
| >
| stfu wanker!
| >
| >
|
| Do you really believe all his crap? You'd think his name was Bill
| Gates! ROFLMAO!
|
| Probably works from home because no company will hire him. Can't say as
| I would blame them - I sure wouldn't!

hmmm, jerry...i WORK from home because no company will HIRE me? do you see a
problem there with your reasoning? you're funny; just in a kind of sad way.
Apr 19 '07 #39
Steve wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:D5******************************@comcast.com. ..
| amygdala wrote:
| "Steve" <no****@example.comschreef in bericht
| news:4R************@newsfe03.lga...
| >"Michael Daly" <Mi*********@foo.barwrote in message
| >news:DN******************************@magma.ca. ..
| >| Steve wrote:
| >|
| >
| <crap>
| >
| stfu wanker!
| >
| >
|
| Do you really believe all his crap? You'd think his name was Bill
| Gates! ROFLMAO!
|
| Probably works from home because no company will hire him. Can't say as
| I would blame them - I sure wouldn't!

hmmm, jerry...i WORK from home because no company will HIRE me? do you see a
problem there with your reasoning? you're funny; just in a kind of sad way.

I never said you did anything productive. If your posts here are any
indication, you don't.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 19 '07 #40
| | Probably works from home because no company will hire him. Can't say
as
| | I would blame them - I sure wouldn't!
| >
| hmmm, jerry...i WORK from home because no company will HIRE me? do you
see a
| problem there with your reasoning? you're funny; just in a kind of sad
way.
| >
| >
|
| I never said you did anything productive. If your posts here are any
| indication, you don't.

you said:

probably works from home b/c no company will hire me.

i said:

how is it that you say i *work* from home yet i am *not* employed?

you said:

i never said you did anything productive. (which is completely non-sequitur)

i think:

it's too late at night for you...at least that's the benefit of the doubt
i'll afford you.
Apr 19 '07 #41
Steve wrote:
| | Probably works from home because no company will hire him. Can't say
as
| | I would blame them - I sure wouldn't!
| >
| hmmm, jerry...i WORK from home because no company will HIRE me? do you
see a
| problem there with your reasoning? you're funny; just in a kind of sad
way.
| >
| >
|
| I never said you did anything productive. If your posts here are any
| indication, you don't.

you said:

probably works from home b/c no company will hire me.

i said:

how is it that you say i *work* from home yet i am *not* employed?

you said:

i never said you did anything productive. (which is completely non-sequitur)

i think:

it's too late at night for you...at least that's the benefit of the doubt
i'll afford you.

Even too stoopid to understand plain English. No wonder no one will
hire you.

Troll. And a stoopid one, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 19 '07 #42

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:Pq******************************@comcast.com. ..
| Steve wrote:
| | | Probably works from home because no company will hire him. Can't
say
| as
| | | I would blame them - I sure wouldn't!
| | >
| | hmmm, jerry...i WORK from home because no company will HIRE me? do
you
| see a
| | problem there with your reasoning? you're funny; just in a kind of
sad
| way.
| | >
| | >
| |
| | I never said you did anything productive. If your posts here are any
| | indication, you don't.
| >
| you said:
| >
| probably works from home b/c no company will hire me.
| >
| i said:
| >
| how is it that you say i *work* from home yet i am *not* employed?
| >
| you said:
| >
| i never said you did anything productive. (which is completely
non-sequitur)
| >
| i think:
| >
| it's too late at night for you...at least that's the benefit of the
doubt
| i'll afford you.
| >
| >
|
| Even too stoopid to understand plain English. No wonder no one will
| hire you.

hey genious, the reference to *work* and *employment* is literal. your
firgurative relation to *productivity* is non-sequitur. hence, while you
show you understand english, you show a complete inability to apply it in
context. that's probably a deeper theme for you that spans many areas in
your life - from logic to programming to ...

further, you seem to think i'm not employed or unemployable because i call
shitty code 'shitty code' an am sometime abrupt in how i speak to some
people. christ, you really must have fallen asleep in your logic classes in
college - or did you even go?

i'm done with you, stucco.

*PLONK*
Apr 19 '07 #43
On Apr 19, 9:48 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
Steve wrote:
| | Probably works from home because no company will hire him. Can't say
as
| | I would blame them - I sure wouldn't!
| >
| hmmm, jerry...i WORK from home because no company will HIRE me? do you
see a
| problem there with your reasoning? you're funny; just in a kind of sad
way.
| >
| >
|
| I never said you did anything productive. If your posts here are any
| indication, you don't.
you said:
probably works from home b/c no company will hire me.
i said:
how is it that you say i *work* from home yet i am *not* employed?
you said:
i never said you did anything productive. (which is completely non-sequitur)
i think:
it's too late at night for you...at least that's the benefit of the doubt
i'll afford you.

Even too stoopid to understand plain English. No wonder no one will
hire you.

Troll. And a stoopid one, also.
But incredibly entertaining. In a "I'm trying so hard to be Simon
Cowell but I'm just too unwittingly self-flaggelating" kind of way.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Apr 19 '07 #44
On Apr 18, 11:35 pm, Schraalhans Keukenmeester
<bitbuc...@invalid.spamwrote:
Steve wrote:
"Michael Daly" <MichaelD...@foo.barwrote in message
news:DN******************************@magma.ca...
| Steve wrote:
|
| i work from home
|
| since you can't deal with people face to face. That's why you hide
| behind your computer and insult everyone.
no. it just cuts down my daily commute. in fact, i am in such a stature that
i've flown around the world to meet and discuss/plan development projects
with the boards of directors, cios, and ceos of many global corporations of
which most of them you've probably heard...such as toyota, porche, bmw,
audi, carfax, bnsf, american airlines, morgan stanley...and some that you
probably haven't.
all i can say is that we both leave said meetings with smiles. must be good
raport during the course of many a golf game and fine meals. :)
say what you will. your intention to insult me (making you hypocritical)
only does so were i to perceive it true. i obviously have no experience that
would render your remark as anything other than flatly false.
| Instead of taking up your mother issues with everyone else, how about
| you do the mature thing and get a therapist.
the thing about the oportunists who join a feeding frenzy is that they come
bearing teeth. i think yours have been left in the small cup of water on
your bathroom sink.
| Civil behavior is a pretty basic skill you've yet to learn.
<chucklingyou obviously haven't read this entire thread. say, the third
post down where comp.lang.php (the op's handle) is actually the code's
author (phil). phil and his rubbish-for-code is what i was going on about.
might i have used different words rather than 'brain-dead' (reference to the
author) had i know phil == comp.lang.php? probably. too late for that given
his nym-shifting. would i call shitty code by another name? i dare not, dear
rose.
| Cheers!
lol.

May I recommend someone to you who probably _is_ at your currently
rather lonely level, where we, earthbound minions, can only look up to
and tell our children wonderful fairytale stories of?

Look up Alan Connor, if you haven't already bumped into him at the six
mile high Ole Boys Network. He _surely_ will understand fully what you
mean and how we all fail to see the immense talent and wisdom you exhume.

In case you need further directions, Alan's in the encyclopaedia of
utter bliss following the terms 'Troll', 'A-hole' and 'Pseudologica
Fantastica'. Why they are in that particular order no-one down here knows.

@ Phil: Although there may be some valid points to be made (and done so
by others) about the actual code you posted, and while I share the
curiousness about the performance of your custom solution compared to
the off-the-shelf alternative, please ignore the trash talk. It's
something that appearantly comes with usenet territory. It's been in
fashion with some for years now, and it will probably outlive us all,
but after a while it's easier living with this minor nuisance than with
a boil on your behind or mosquitoes in the bedroom at night.
And, of course, there's always that shred of hope we will all once see
the light and are allowed to join the ranks of those miscomprehended
superheroes ;-)

GL
Sh.
Thanx SH.. I'm just waiting for that future HR company to google/
keyword this thread when dear ol' Steve looks for a job.

Apr 19 '07 #45
| But incredibly entertaining. In a "I'm trying so hard to be Simon
| Cowell but I'm just too unwittingly self-flaggelating" kind of way.

who is simon cowell? you watch too much tv. explains a lot to me.
Apr 19 '07 #46
| Thanx SH.. I'm just waiting for that future HR company to google/
| keyword this thread when dear ol' Steve looks for a job.

you really are a clueless fuckwit!

exactly WHAT would they be searching/keywording for? and exactly HOW would
they know 'Steve' was the applicant in front of them? wait, lemme guess...on
your resume in bold at the top, it reads: COMP.LANG.PHP (like a dumbass).

get a fucking clue. even if they did (which is IMPOSSIBLE), they'd certainly
agree that your code is shit. they may want me to tone down what name i use
for said rose, but we'd wink everytime we used the substitute.

as it is, my fte has enjoyed having me as an employee for about seven years
now. my pte has as well in a consultant position...under which contract, i
am on retainer. that should suggest to you that i have a *very* good
relationship there since they pay me each month regardless of whether i work
for them during that time or not - they know that whenever i do and for
whatever it is they have me do, i get it done. i've been pte this way for
two years now. and, except for my first consulting gig, all my pte contracts
have been by reference.

all that should tell you something; that you are wrong. even more, that you
should revisit the initial advice i gave you before the name calling
started, since it may be that i actually do know what i'm talking about.

either way:

*PLONK*
Apr 19 '07 #47
Steve wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:Pq******************************@comcast.com. ..
| Steve wrote:
| | | Probably works from home because no company will hire him. Can't
say
| as
| | | I would blame them - I sure wouldn't!
| | >
| | hmmm, jerry...i WORK from home because no company will HIRE me? do
you
| see a
| | problem there with your reasoning? you're funny; just in a kind of
sad
| way.
| | >
| | >
| |
| | I never said you did anything productive. If your posts here are any
| | indication, you don't.
| >
| you said:
| >
| probably works from home b/c no company will hire me.
| >
| i said:
| >
| how is it that you say i *work* from home yet i am *not* employed?
| >
| you said:
| >
| i never said you did anything productive. (which is completely
non-sequitur)
| >
| i think:
| >
| it's too late at night for you...at least that's the benefit of the
doubt
| i'll afford you.
| >
| >
|
| Even too stoopid to understand plain English. No wonder no one will
| hire you.

hey genious, the reference to *work* and *employment* is literal. your
firgurative relation to *productivity* is non-sequitur. hence, while you
show you understand english, you show a complete inability to apply it in
context. that's probably a deeper theme for you that spans many areas in
your life - from logic to programming to ...

further, you seem to think i'm not employed or unemployable because i call
shitty code 'shitty code' an am sometime abrupt in how i speak to some
people. christ, you really must have fallen asleep in your logic classes in
college - or did you even go?

i'm done with you, stucco.

*PLONK*

Total moron.

And I haven't been called that since third grade. But that's about your
level of intelligence.

<PLONK>

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 19 '07 #48
comp.lang.php wrote:
On Apr 18, 11:35 pm, Schraalhans Keukenmeester
<bitbuc...@invalid.spamwrote:
>Steve wrote:
>>"Michael Daly" <MichaelD...@foo.barwrote in message
news:DN******************************@magma.ca.. .
| Steve wrote:
|
| i work from home
|
| since you can't deal with people face to face. That's why you hide
| behind your computer and insult everyone.
no. it just cuts down my daily commute. in fact, i am in such a stature that
i've flown around the world to meet and discuss/plan development projects
with the boards of directors, cios, and ceos of many global corporations of
which most of them you've probably heard...such as toyota, porche, bmw,
audi, carfax, bnsf, american airlines, morgan stanley...and some that you
probably haven't.
all i can say is that we both leave said meetings with smiles. must be good
raport during the course of many a golf game and fine meals. :)
say what you will. your intention to insult me (making you hypocritical)
only does so were i to perceive it true. i obviously have no experience that
would render your remark as anything other than flatly false.
| Instead of taking up your mother issues with everyone else, how about
| you do the mature thing and get a therapist.
the thing about the oportunists who join a feeding frenzy is that they come
bearing teeth. i think yours have been left in the small cup of water on
your bathroom sink.
| Civil behavior is a pretty basic skill you've yet to learn.
<chucklingyou obviously haven't read this entire thread. say, the third
post down where comp.lang.php (the op's handle) is actually the code's
author (phil). phil and his rubbish-for-code is what i was going on about.
might i have used different words rather than 'brain-dead' (reference to the
author) had i know phil == comp.lang.php? probably. too late for that given
his nym-shifting. would i call shitty code by another name? i dare not, dear
rose.
| Cheers!
lol.
May I recommend someone to you who probably _is_ at your currently
rather lonely level, where we, earthbound minions, can only look up to
and tell our children wonderful fairytale stories of?

Look up Alan Connor, if you haven't already bumped into him at the six
mile high Ole Boys Network. He _surely_ will understand fully what you
mean and how we all fail to see the immense talent and wisdom you exhume.

In case you need further directions, Alan's in the encyclopaedia of
utter bliss following the terms 'Troll', 'A-hole' and 'Pseudologica
Fantastica'. Why they are in that particular order no-one down here knows.

@ Phil: Although there may be some valid points to be made (and done so
by others) about the actual code you posted, and while I share the
curiousness about the performance of your custom solution compared to
the off-the-shelf alternative, please ignore the trash talk. It's
something that appearantly comes with usenet territory. It's been in
fashion with some for years now, and it will probably outlive us all,
but after a while it's easier living with this minor nuisance than with
a boil on your behind or mosquitoes in the bedroom at night.
And, of course, there's always that shred of hope we will all once see
the light and are allowed to join the ranks of those miscomprehended
superheroes ;-)

GL
Sh.

Thanx SH.. I'm just waiting for that future HR company to google/
keyword this thread when dear ol' Steve looks for a job.
Yea, that will be lovely, won't it? ROFLMAO!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 19 '07 #49
On Apr 19, 12:03 pm, "Steve" <no....@example.comwrote:
| Thanx SH.. I'm just waiting for that future HR company to google/
| keyword this thread when dear ol' Steve looks for a job.

you really are a clueless fuckwit!

exactly WHAT would they be searching/keywording for? and exactly HOW would
they know 'Steve' was the applicant in front of them? wait, lemme guess...on
your resume in bold at the top, it reads: COMP.LANG.PHP (like a dumbass).

get a fucking clue. even if they did (which is IMPOSSIBLE), they'd certainly
agree that your code is shit. they may want me to tone down what name i use
for said rose, but we'd wink everytime we used the substitute.

as it is, my fte has enjoyed having me as an employee for about seven years
now. my pte has as well in a consultant position...under which contract, i
am on retainer. that should suggest to you that i have a *very* good
relationship there since they pay me each month regardless of whether i work
for them during that time or not - they know that whenever i do and for
whatever it is they have me do, i get it done. i've been pte this way for
two years now. and, except for my first consulting gig, all my pte contracts
have been by reference.

all that should tell you something; that you are wrong. even more, that you
should revisit the initial advice i gave you before the name calling
started, since it may be that i actually do know what i'm talking about.

either way:

*PLONK*
Enjoy your cowardly anonymity while it lasts. You can be found out, I
promise you that.

Plonk.. wow.. but thank you for being my favorite laugh riot for the
week!

Apr 19 '07 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2041
by: Phil Powell | last post by:
I borrowed this code from a source: for($a=0;$a<imagecolorstotal ($image_id);$a++) { $color = imageColorsForIndex($image_id,$i); $R=.299 * ($color)+ .587 * ($color)+ .114 * ($color);...
22
3061
by: Fabian | last post by:
var preload1 = new Image(); preload1.src = "/pic/yay.gif"; var preload2 = new Image(); preload2.src = "/pic/nay.gif"; The above is meant to preload image files, yes? Problem is, it doesnt seem...
0
2315
by: styler | last post by:
I am having difficulty with the page located here: http://tinyurl.com/2zwa9 I am creating a number of image sets (some left-, some right-aligned; an example of the right-aligned is shown the...
2
2093
by: billrdio | last post by:
I am trying to make a JavaScript animation of real-time images - i.e. images that will periodically change on the server. The problem I am having is that the JavaScript animation I have created is...
7
11044
by: bbxrider | last post by:
there is some property that i think is mostly used for images used as backrounds that fades them, so you can get the idea of the image but not have it obscuring the text thats on it, its not...
3
2670
by: yawnmoth | last post by:
http://us2.php.net/manual/en/function.imagegif.php#20425 The above URL suggests that it's possible to sorta embed images within an HTML document so that they don't have to be loaded via a...
12
2801
by: comp.lang.php | last post by:
index.php: // STUFF // STEP 1: imagecreatetruecolor ONLY IF GD 2.0+ SUPPORTED AND FOUND if ($this->isSuccessful && !$hasMogrified && $image && !$newImage &&...
2
1742
by: utahwrx | last post by:
I currently have a Javascript application that randomizes about 200 images. The problem is that the images preload, which causes the entire site to not come up until all the images are loaded. I'd...
11
2328
by: eholz1 | last post by:
Hello PHP group, I am using some php code to check the size of images, and then resize or determine new dimension for the image. GD seems quite slow. It takes about 5 seconds (plus or minus) to...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7203
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.