Script

mimetex is now on this blog

I just installed Mathematics Filter for Drupal, and now working toward more professional math(μαθηματικά) blog Eyes Shining

\int _{-\infty}^{\infty}f(x)\mathrm{d}x

\int _{-\infty}^{\infty}f(x)\mathrm{d}x
graph of sin(x) and 5*cos(x) [Using javascript]

I'm using Site5's hosting, currently I'm really happy with it. Never used their support system, and I don't want to get support either because I like to do everything myself.

The difficult part to install mathematics filter is to compile mimetex on the server. Because I have no idea of SSH, and I'm currently in BNL, which blocks the SSH port to the outside for some reason...
so I wrote a auto installer script for mimetex, basically, it's just using PHP to execute the shell command.
Create a new PHP script, add the code below.

<?php
echo `cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi`;
?>

move that script in the same folder as the mimetex source. run it. and now move mimetex.cgi to your CGI folder and it should work.

JSBlend, clear differences and merge

Vimdiff is pretty popular with checking the difference between codes. A Javascript version, JSBlend came out lately.
JSBlend
JSBlend is such a great tool for any wiki developer or a code repository front end developer. Hope I can see that in Wikipedia and web based svn systems soon.

PHP class for gif animations

The gif class is made by SuperRembo back in 2006, very short and compact. View the source here. The old time favorite, GIFEncoder is still at hand, so I did a test and the result shows SuperRembo's gif class is faster after a little modification(my test could be inaccurate because the structure of 2 gif system is different). Take out the ob_start and other part, let the user input the output image instead of the resource provide better result improves speed a thousandfold.
SuperRembo's gif class could be faster because it uses the PHP built in function pack instead of a massive amount of bitwise operators.
Anyone who thinks they can do a better job, read the gif89a specification. Strange, I don't see anything about animated gif in there.

Krumo: Version 2.0 of print_r(); and var_dump();

in

Last update of dBug was March 22, 2007, sounds old.
In the mean time, Krumo start to release, and is promoted as the version 2.0 of print_r(); and var_dump();
Same idea as dBug, but a different look.

Forget var_dump and print_r. Too lame for debugging.

Vogoo PHP LIB

Vogoo logo
When ever there is a lot of content spreading around, the content filtering is a pain for anyone. Vogoo PHP LIB successfully implements the slope one rating based collaborative filtering algorithm. With the help of more than one person, it's much easier to recommend content to specific person.
Websites might want to use this library when it offers loads of resources on multi-aspects(is there any?).

Syndicate content
Honey Pot that kill bots