Script
mimetex is now on this blog
Posted November 10th, 2007 by MgcclI just installed Mathematics Filter for Drupal, and now working toward more professional math(μαθηματικά) blog 
\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.
- Mgccl's blog
- Add new comment
- 480 reads
JSBlend, clear differences and merge
Posted October 11th, 2007 by MgcclVimdiff is pretty popular with checking the difference between codes. A Javascript version, JSBlend came out lately.
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.
- Mgccl's blog
- Add new comment
- 461 reads
PHP class for gif animations
Posted October 2nd, 2007 by MgcclThe 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.
- Mgccl's blog
- Add new comment
- 542 reads
Krumo: Version 2.0 of print_r(); and var_dump();
Posted September 28th, 2007 by MgcclLast 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.
- Mgccl's blog
- Add new comment
- 414 reads
Vogoo PHP LIB
Posted May 13th, 2007 by Mgccl
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?).
- Mgccl's blog
- Add new comment
- 475 reads







Recent comments
2 days 22 hours ago
3 days 7 hours ago
3 days 15 hours ago
3 days 15 hours ago
3 days 17 hours ago
3 days 18 hours ago
3 days 18 hours ago
4 days 31 min ago
5 days 10 hours ago
5 days 16 hours ago