php-general Digest 8 Nov 2007 22:44:23 -0000 Issue 5117

Topics (messages 264218 through 264244):

Re: PHP ide?
        264218 by: Lester Caine
        264219 by: Peter Ford
        264220 by: Zoltán Németh
        264222 by: pobox.verysmall.org
        264224 by: pobox.verysmall.org
        264228 by: George Pitcher
        264230 by: Lester Caine
        264231 by: pobox.verysmall.org
        264232 by: pobox.verysmall.org
        264237 by: Børge Holen
        264238 by: Robert Cummings
        264243 by: Instruct ICC
        264244 by: Børge Holen

measuring script execution time
        264221 by: pobox.verysmall.org
        264227 by: Daniel Brown
        264229 by: pobox.verysmall.org

Re: html parsing
        264223 by: Ron Croonenberg
        264225 by: Ron Croonenberg

Re: MySQL Identifying worst-performing codes
        264226 by: Colin Guthrie

Image manipulation on the fly
        264233 by: Merlin
        264234 by: Bojan Tesanovic
        264235 by: zerof
        264236 by: Per Jessen

Recommend a wiki?
        264239 by: Skip Evans
        264240 by: chris smith
        264241 by: TG

Re: [PHP-DB] Re: MySQL Identifying worst-performing codes
        264242 by: chris smith

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Darryl Ware wrote:
Eclipse with PDT plugin

I still prefer PHPEclise and Eclipse handles a lot of my documentation management and other development tools so just one 'IDE' to play with

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---
Hulf wrote:
> Just wondering if anyone uses an IDE and if so what ones?
> 
> Ta,
> 
> H. 

Quanta+, with KDESVN for version management...

--- End Message ---
--- Begin Message ---
2007. 11. 8, csütörtök keltezéssel 10.58-kor Lester Caine ezt írta:
> Darryl Ware wrote:
> > Eclipse with PDT plugin
> 
> I still prefer PHPEclise and Eclipse handles a lot of my documentation 
> management and other development tools so just one 'IDE' to play with

for me EasyEclipse for PHP

greets
Zoltán Németh

> 
> -- 
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
> L.S.Caine Electronic Services - http://home.lsces.co.uk
> MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
> Firebird - http://www.firebirdsql.org/index.php
> 

--- End Message ---
--- Begin Message ---
Hulf wrote:
> Just wondering if anyone uses an IDE and if so what ones?
>
> Ta,
>
> H.

Eclipse w/ PDT is great.

Excellent integration with Subversion (Subclipse). Shows the changed files in the file browser, extremely easy diff, history, etc.

Iv

--- End Message ---
--- Begin Message ---
Andrew Peterson wrote:
Does anyone else find the Eclipse programs run EXTREMELY slow? Maybe there's some sort of configuration I'm missing.

-Andrew

Eclipse is Java based. You need a decent machine and decent amount of RAM.

More tips -

a) Install only what you need

Eclipse is a universe of things written by different people and you can easily find yourself running tons of stuff that arrived as dependencies. It used to take me a while to figure out how to install what I need without installing what I don't need. In the latest version of Eclipse this became easier, especially using the Europa Discovery site.

b) Try alternative ways of doing things

For instance committing a file using the Subclipse perspective takes forever (on a large project) - it seems the Subclipse perspective updates the whole project after the commit. Committing the same file from within the PDT perspective takes seconds.

c) I/O access is critical

PDT does a lot of thing on save, for example. Slow I/O (hard drive) or concurrent access may slow your Eclipse a lot.

Apart from that Eclipse is excellent and is improving.

Iv

--- End Message ---
--- Begin Message ---
> Apart from that Eclipse is excellent and is improving.

I used Eclipse a few years ago when I was pretending to be a java developer. 

Since then I've mainly been using Dreamweaver, which works well with Smarty, 
and the 30-odd sites I manage.

How easy would it be for me to move my existing PHP sites into Eclipse, or do 
they need to be started off as projects?

Cheers

George

--- End Message ---
--- Begin Message ---
George Pitcher wrote:
Apart from that Eclipse is excellent and is improving.

I used Eclipse a few years ago when I was pretending to be a java developer.
Since then I've mainly been using Dreamweaver, which works well with Smarty, 
and the 30-odd sites I manage.

How easy would it be for me to move my existing PHP sites into Eclipse, or do 
they need to be started off as projects?

Moving them in is a doddle. I'm adding external PHP packages to workspace all the time and the fault reporting in PHPEclipse often highlights problems that were not easy to track otherwise.

But never having used Dreamwaever I don't know if you loose anything?

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---
George Pitcher wrote:
I used Eclipse a few years ago when I was pretending to be a java developer.

I use Eclipse for 1 1/2 year now and just lately it became nice for what I need (decent PDT, decent Subclipse).

Can't imagine what it looked like few years ago.

Since then I've mainly been using Dreamweaver, which works well with Smarty, 
and the 30-odd sites I manage.

How easy would it be for me to move my existing PHP sites into Eclipse, or do 
they need to be started off as projects?

I stopped using Dreamweaver at version 4 which had so many bugs they never fixed, even in 4.01.

Don't know how it has progressed since then.

Basically Eclipse does nothing to the code. It adds two folders .project and .settings to the project and needs somewhere to store non-project settings.

So there is nothing much to be moved.

For me the most powerful features are (no idea how Dreamweaver does that) -

a) Powerful integration between PDT and Subversion (or CVS, if you prefer). You see the version information in the file browser, in the search results, everywhere.

b) Powerful Subversion integration (Subclipse). Diffs across the history, branches, tags, etc., are done with 2-3 clicks.

c) Powerful local history. Eclipse can be configured to remember massively local changes, so if you mess up something, you can go back basically second by second and minute by minute and see what you did when.

d) Powerful search. PDT understands php so if you are looking for a function or a method - it takes zero time to find it even in a huge project. Eclipse remembers all searches you have done and dynamically updates the search result when you change files, so you can switch between different search result with one click.

e) Outline. You have both current file and project outline showing you all classes, methods, properties, constants - for one click access.

f) ... There is so much more, I have to write a book to tell you everything.

The best of all is that it's free in a big way - it's backed by IBM, etc. and there are tons of powerful projects that develop Eclipse modules.

All this does not mean you will be happier with Eclipse. The habit is a big thing and if you know Dreamweaver, you may be happier to stay there. Plus, Eclipse need some effort to be discovered, it is unconventional thing and at first one does know where to start.

But since I use it, the good surprises haven't stopped, and the pleasure to know that there are more on the way is a nice thing to have.

Iv

--- End Message ---
--- Begin Message ---
Andrew Peterson wrote:
I'll try installed it again with none of the other nonsense.

PDT has the so called ALL-IN-ONE thing, however I don't really trust it.

I would suggest the following -

a) Be sure you have the latest Java.

b) Get the normal, traditional Eclipse.

c) Update it (Help > Software updates > Find and install > Search for updates of the currently installed features). Repeat if needed.

d) Go to Help > Software updates > Find and install > Search for new features to install and add the PDT site (http://download.eclipse.org/tools/pdt/updates/). Check the PDT site and the Europa Discovery Site and click Finish (I haven't done it for a while, so could be something has changed there). When you get the result, the Update manager might complain that PDT depends on something. In this case unfold the Europa Discovery Site result (by clicking the +, if you do not unfold it the next step might not work) and click the Select Required button. This should select the minimum you need. Let me know if you run into a trouble and I'll try to send you reproducible steps.

And again, Eclipse is Java, so you need a decent machine.

Iv

--- End Message ---
--- Begin Message ---
On Thursday 08 November 2007 11:02:07 Hulf wrote:
> Just wondering if anyone uses an IDE and if so what ones?
>
> Ta,
>
> H.


Quanta +, of course.
Other is to much work and not worth the effort...
I really cannot see what so many of you guys see in eclipse, it's a mistake 
all together

-- 
---
Børge Holen
http://www.arivene.net

--- End Message ---
--- Begin Message ---
On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote:
> On Thursday 08 November 2007 11:02:07 Hulf wrote:
> > Just wondering if anyone uses an IDE and if so what ones?
> >
> > Ta,
> >
> > H.
> 
> 
> Quanta +, of course.
> Other is to much work and not worth the effort...
> I really cannot see what so many of you guys see in eclipse, it's a mistake 
> all together

I use JOE of course. I really can't see what so many of you guys see in
an IDE :B

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
> On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote:
> > On Thursday 08 November 2007 11:02:07 Hulf wrote:
> > > Just wondering if anyone uses an IDE and if so what ones?
> > >
> > > Ta,
> > >
> > > H.
> > 
> > 
> > Quanta +, of course.
> > Other is to much work and not worth the effort...
> > I really cannot see what so many of you guys see in eclipse, it's a mistake 
> > all together
> 
> I use JOE of course. I really can't see what so many of you guys see in
> an IDE :B

I'm waiting for Tersus4PHP (which is basically Eclipse http://www.tersus.com -- 
Go there with FF)

_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

--- End Message ---
--- Begin Message ---
On Thursday 08 November 2007 23:33:07 Instruct ICC wrote:
> > On Thu, 2007-11-08 at 21:47 +0100, Børge Holen wrote:
> > > On Thursday 08 November 2007 11:02:07 Hulf wrote:
> > > > Just wondering if anyone uses an IDE and if so what ones?
> > > >
> > > > Ta,
> > > >
> > > > H.
> > >
> > > Quanta +, of course.
> > > Other is to much work and not worth the effort...
> > > I really cannot see what so many of you guys see in eclipse, it's a
> > > mistake all together
> >
> > I use JOE of course. I really can't see what so many of you guys see in
> > an IDE :B
>
> I'm waiting for Tersus4PHP (which is basically Eclipse
> http://www.tersus.com -- Go there with FF)

umm yeah right, some create and some steal and brag bout em discoveries 
they've made to save the f* day. ;D


>
> _________________________________________________________________
> Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
> http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmail
>news



-- 
---
Børge Holen
http://www.arivene.net

--- End Message ---
--- Begin Message ---
Hello,

running php 5.x as Apache module (both 1.3.x and 2.2.x) seems to report longer execution time when users sit on slower connection. Is it possible that end of script execution is when the last bit is passed to the user by Apache and the connection is closed?

Any workaround around that?

Thanks,
Iv

--- End Message ---
--- Begin Message ---
On 11/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
>
> running php 5.x as Apache module (both 1.3.x and 2.2.x) seems to report
> longer execution time when users sit on slower connection. Is it
> possible that end of script execution is when the last bit is passed to
> the user by Apache and the connection is closed?
>
> Any workaround around that?
>
> Thanks,
> Iv
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

    By name alone (a recursive acronym), PHP stands for PHP Hypertext
Preprocessor.  That means, before the HTML or other output is sent to
Apache to be served to the client, PHP has parsed, interpreted,
processed, and returned all of the code, and then terminated the PHP
process.

    As to why code execution appears to take longer on slower
connections, my guess would be that it's a matter of coincidence.  You
could try doing something like this, if you don't already have
something similar in place:
<?
// Add to the VERY top of the file being executed, before includes, et cetera.
function microtime_float() { // Don't put in include file; that file
will have to parse
        list($usec, $sec) = explode(" ", microtime());
        return ((float)$usec + (float)$sec);
}
$_SCRIPT['exec_sess'] = time();
$_SCRIPT['client_ip'] = $_SERVER['REMOTE_ADDR'];
$_SCRIPT['time_start'] = microtime_float();
// Continue with your code....
/*
    YOUR CODE HERE
*/
// Now, at the very bottom of the script....
$_SCRIPT['time_stop'] = microtime_float();
$_SCRIPT['time_total'] = round(($_SCRIPT['time_stop'] -
$_SCRIPT['time_start']),4);
$write_contents = <<<EOL
== SESSION $_SCRIPT['exec_sess'] for $_SCRIPT['client_ip'] ==
Start recording: $_SCRIPT['time_start'];
Stop recording: $_SCRIPT['time_stop'];
Total execution time: $_SCRIPT['time_total'];

EOL;
file_put_contents('./php_exec_time_log',$write_contents,FILE_APPEND);
?>

-- 
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
> By name alone (a recursive acronym), PHP stands for PHP Hypertext
> Preprocessor.  That means, before the HTML or other output is sent to
> Apache to be served to the client, PHP has parsed, interpreted,
> processed, and returned all of the code, and then terminated the PHP
> process.

That's interesting...

> As to why code execution appears to take longer on slower
> connections, my guess would be that it's a matter of coincidence.

Hm...

> You
> could try doing something like this, if you don't already have
> something similar in place:

[code example here]

Yes, we have that...

So you are 100% sure that even as Apache module, php execution ends when it ends, regardless of the fact if it takes longer to Apache to pass the result to the browser?

Thanks,
Iv

--- End Message ---
--- Begin Message ---
Hi Mike,

(I know it can probably be done better, or more elegant).

The problem is that the recursion doesn't seem to stop. (Unless there are html ssi's that "loop") there shouldn't be a problem. It basically just freezes up (probably the recursion not terminating/ falling back.) However the html just displays fine when I don't use recursion, so t somewhat baffled me that when I use recursion the script doesn't terminate. I did get to see some error msgs about problems with file streams. Maybe it is running out of file handles ?

thanks,

Ron


Ford, Mike wrote:
On 08 November 2007 06:41, Ron Croonenberg wrote:

ok I wrote something "quick and dirty" real quick:

But somehow it doesn't seem to like recursion. Is there something
"special" one needs to do in php ?

Recursive functions work just fine in PHP. What's the error message?

As far as I can see, there's nothing wrong with what you've posted, except for 
where there's some inefficiency due to not having found the right functions to 
use (see corrections below).

here's the code snippet:

function parsehtmlline($line)
{
if (strlen(strstr($line, "#include")) == 0 &&
    strlen(strstr($line, "<!--")) == 0) {

  if (strpos($line, "#include")===FALSE && strpos($line, "<!--")===FALSE)

      /* nothing to parse just print it */
      print($line);
   }
else {
   /* extract the filename */
   $ssi = extractHTMLssi($line);

   /* open the file if it exists and output */
   /* it else just print the string         */
   if (file_exists($ssi)) {
      $incfile = fopen($ssi, "r");
      while (!feof($incfile)) {
         $ssiline = fgets($incfile, 1024);
// somehow PhP doesn't really like recursion, needs to be fixed
// for now just print the line.
//         parsehtmlline($ssiline);
         print($ssiline);
         }
      fclose($incfile);
      }
   else
      print($ssi);
   }
}

function extractHTMLssi($line)
{
$ssi = "";
$strptr = strstr($line, "\"");
if (strlen($strptr) == 0)
   return $line;
else
   {
   $ssi=$strptr;
   $iss=strrev($ssi);
   $strptr = strstr($iss, "\"");
   $iss = substr($strptr, 1, -1);
   $ssi = strrev($iss);
   }

return $ssi;

I'd replace the whole of this function body with something like:

  $pos = strpos($line, '"');
  if ($strpos===FALSE):
    return $line;
  else:
    return substr($line, $pos+1, strrpos($line, '"')-1);
  endif;


}

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 812 4730 Fax: +44 113 812 3211

To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--

=================================================================
 Ron Croonenberg                   |
                                   | Phone: 1 765 658 4761
 Lab Instructor &                  | Fax:   1 765 658 4732
         Technology Coordinator    |
                                   |
 Department of Computer Science    | e-mail: [EMAIL PROTECTED]
 DePauw University                 |
 275 Julian Science & Math Center  |
 602 South College Ave.            |
 Greencastle, IN  46135            |
=================================================================

--- End Message ---
--- Begin Message ---

Hi Per,

the "pages" are templates. depending on some variables either one page shows up, or another without links in the address bar changing etc.

Ron


Per Jessen wrote:
Ron Croonenberg wrote:

I think the problem is that I read the lines in PHP, I read them with
fgets and output them with printf.

So the php "interpreter" never gets to see the line.

the apache doesn't parse php output, so it doesn't happen there
either.

So..  I figured..  I either had to parse it in php myself OR convince
the apache server to parse it for me.

Absolutely.  Why are you parsing it yourself anyway - what value are you
adding?

/Per Jessen, Zürich


--

=================================================================
 Ron Croonenberg                   |
                                   | Phone: 1 765 658 4761
 Lab Instructor &                  | Fax:   1 765 658 4732
         Technology Coordinator    |
                                   |
 Department of Computer Science    | e-mail: [EMAIL PROTECTED]
 DePauw University                 |
 275 Julian Science & Math Center  |
 602 South College Ave.            |
 Greencastle, IN  46135            |
=================================================================

--- End Message ---
--- Begin Message ---
Lasitha Alawatta wrote:
> There is  a tool call “idera” (SQL diagnostic manager). Basically it is
> a performance monitoring and diagnostics tool.
> 
> It has a feature; 
> Identifying of worst-performing codes –
> 
> Identifies performance bottlenecks such as the worst-performing stored
> procedures, long-running queries, most frequently run queries, SQL
> Statements and SQL batches
> 
> http://www.idera.com/Products/SQLdm/Features.aspx
>  
> 
> I’m looking for a same like tool for MySQL. Is anyone have any  ideas.


I know this is OT for this list but.....

In addition to the slow query logging I mentioned before (which you
seemed to appreciate :)), I've just stumbled across this:
http://rackerhacker.com/mysqltuner/

HTH some people.

Col

--- End Message ---
--- Begin Message ---
Hi there,

I need to manipulate images on the fly. My goal is to make the image
very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered.

Does anybody know a high performing image funtion that would allow me to brighten up the picture on the fly, or any other effect similar to it?

I am attaching the sepia function I am using.
Thank you for any help or suggestion on how to solve that.

Best regards,

Merlin


function image_effect_sepia($im){
        $start_red = 2;                         //red scale at black
    $start_blue = 2.3;                      //blue scale at black
$red_scale = ($start_red-1)/256; //red modifier as greyscale goes to white
    $blue_scale = ($start_blue - 1)/256;    //ditto for blue

        //build a sepia lookup table
    $sepia = array();
    for($x = 0;$x < 256;$x++){
        $red = intval($x * ($start_red - ($x * $red_scale)));
            if($red > 255) $red = 255;
        $blue = intval($x / ($start_blue - ($x * $blue_scale)));
            $sepia[$x][0] = $red;
        $sepia[$x][1] = $blue;
    }
        
        # modify the image
    for($y = 0;$y < imagesy($im);$y++){
        for($x = 0;$x < imagesx($im);$x++){
                $pixel = imagecolorat($im, $x, $y);
            $red = ($pixel & 0xFF0000) >> 16;
            $green = ($pixel & 0x00FF00) >> 8;
            $blue = $pixel & 0x0000FF;
            $alpha = $pixel & 0x7F000000;
            //get a greyscale value
            $gs = intval(($red * 0.3) + ($green * 0.59) + ($blue * 0.11));
$p = $alpha | $sepia[$gs][1] | ($gs << 8) | ($sepia[$gs][0] << 16);
            imagesetpixel ($im, $x, $y, $p);
                }
        }
        # return the moddifyed image
        return $im;
}

--- End Message ---
--- Begin Message --- Hi Merlin, that is very fast for 1024 images, you will not get much more speed if you try doing anything smarter , though there are some image libraries that are faster than GD libs eg www.imagemagick.org

On Nov 8, 2007, at 5:13 PM, Merlin wrote:

Hi there,

I need to manipulate images on the fly. My goal is to make the image
very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered.

Does anybody know a high performing image funtion that would allow me to brighten up the picture on the fly, or any other effect similar to it?

I am attaching the sepia function I am using.
Thank you for any help or suggestion on how to solve that.

Best regards,

Merlin


function image_effect_sepia($im){
        $start_red = 2;                         //red scale at black
    $start_blue = 2.3;                      //blue scale at black
$red_scale = ($start_red-1)/256; //red modifier as greyscale goes to white
    $blue_scale = ($start_blue - 1)/256;    //ditto for blue

        //build a sepia lookup table
    $sepia = array();
    for($x = 0;$x < 256;$x++){
        $red = intval($x * ($start_red - ($x * $red_scale)));
            if($red > 255) $red = 255;
        $blue = intval($x / ($start_blue - ($x * $blue_scale)));
            $sepia[$x][0] = $red;
        $sepia[$x][1] = $blue;
    }
        
        # modify the image
    for($y = 0;$y < imagesy($im);$y++){
        for($x = 0;$x < imagesx($im);$x++){
                $pixel = imagecolorat($im, $x, $y);
            $red = ($pixel & 0xFF0000) >> 16;
            $green = ($pixel & 0x00FF00) >> 8;
            $blue = $pixel & 0x0000FF;
            $alpha = $pixel & 0x7F000000;
            //get a greyscale value
$gs = intval(($red * 0.3) + ($green * 0.59) + ($blue * 0.11)); $p = $alpha | $sepia[$gs][1] | ($gs << 8) | ($sepia[$gs] [0] << 16);
            imagesetpixel ($im, $x, $y, $p);
                }
        }
        # return the moddifyed image
        return $im;
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Bojan Tesanovic
http://www.classicio.com/





--- End Message ---
--- Begin Message ---
Merlin escreveu:
Hi there,

I need to manipulate images on the fly. My goal is to make the image
very bright, or to add a sepia effect. The problem is, that this takes a lot of computing power on 1024 pictures. About 2s on my server until the image is delivered.
...........................................

http://www.educar.pro.br/en/a/gdlib/

--
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
----------------------------------------------------------
Você deve, sempre, consultar uma segunda opinião!
----------------------------------------------------------
Deixe todos saberem se esta informação foi-lhe útil.
----------------------------------------------------------      
You must hear, always, one second opinion! In all cases.
----------------------------------------------------------
Let the people know if this info was useful for you!
----------------------------------------------------------

--- End Message ---
--- Begin Message ---
Merlin wrote:

> Hi there,
> 
> I need to manipulate images on the fly. My goal is to make the image
> very bright, or to add a sepia effect. The problem is, that this takes
> a lot of computing power on 1024 pictures. About 2s on my server until
> the image is delivered.

Yeah, you're doing CPU-intensive stuff in an interpreted language -
it'll never be efficient unless you write it in C or similar. 



/Per Jessen, Zürich

--- End Message ---
--- Begin Message ---
Hey,

Anyone want to recommend a wiki package they use to document PHP code projects, libraries, etc, they are happy with?

We've tried a couple but have not been thrilled with them.

Thanks!
Skip

--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL, AJAX & DHTML development framework.
http://phpenguin.bigskypenguin.com/

--- End Message ---
--- Begin Message ---
On Nov 9, 2007 8:02 AM, Skip Evans <[EMAIL PROTECTED]> wrote:
> Hey,
>
> Anyone want to recommend a wiki package they use
> to document PHP code projects, libraries, etc,
> they are happy with?

I quite like Doku (http://wiki.splitbrain.org/wiki:dokuwiki).

-- 
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
My host, Dreamhost, has MediaWiki on their One Click Installs.  I gave it a 
spin. Seems to work really well.  Takes time to get used to the "wiki way" 
of doing things, but it's easy enough to learn.

-TG

----- Original Message -----
From: Skip Evans <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Thu, 08 Nov 2007 16:02:25 -0500
Subject: [PHP] Recommend a wiki?

> Hey,
> 
> Anyone want to recommend a wiki package they use 
> to document PHP code projects, libraries, etc, 
> they are happy with?
> 
> We've tried a couple but have not been thrilled 
> with them.
> 
> Thanks!
> Skip
> 
> -- 
> Skip Evans
> Big Sky Penguin, LLC
> 503 S Baldwin St, #1
> Madison, WI 53703
> 608-250-2720
> http://bigskypenguin.com
> =-=-=-=-=-=-=-=-=-=
> Check out PHPenguin, a lightweight and versatile
> PHP/MySQL, AJAX & DHTML development framework.
> http://phpenguin.bigskypenguin.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
On Nov 9, 2007 1:18 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Lasitha Alawatta wrote:
> > There is  a tool call "idera" (SQL diagnostic manager). Basically it is
> > a performance monitoring and diagnostics tool.
> >
> > It has a feature;
> > Identifying of worst-performing codes –
> >
> > Identifies performance bottlenecks such as the worst-performing stored
> > procedures, long-running queries, most frequently run queries, SQL
> > Statements and SQL batches
> >
> > http://www.idera.com/Products/SQLdm/Features.aspx
> >
> >
> > I'm looking for a same like tool for MySQL. Is anyone have any  ideas.
>
>
> I know this is OT for this list but.....
>
> In addition to the slow query logging I mentioned before (which you
> seemed to appreciate :)), I've just stumbled across this:
> http://rackerhacker.com/mysqltuner/

http://jeremy.zawodny.com/mysql/mytop/ might come in handy too.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---

Reply via email to