Paste Your Code
Listen to this article
Anyone who's used TinyURL will understand how cool this is. One of the guys (Mark Proctor) over at the codehaus put me on to it.
As the title suggests, it allows you to paste your code and generate a unique URL for it. You can select a language, choose a "nickname", enter a description and even convert tabs to spaces if you so desire.
The result is formatted code, with line numbers, that you can easily share with others. Pretty neat.
Comments
Too bad it doesn't work very well. take a look at www.pastebin.ca for a working version.
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /tmp/tabcvtXuc7ZK owned by uid 48 in /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc on line 25
Warning: fopen(/tmp/tabcvtXuc7ZK): failed to open stream: Success in /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc on line 25
Warning: fwrite(): supplied argument is not a valid stream resource in /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc on line 26
Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc on line 27
Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc on line 28
Warning: unlink(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /tmp/tabcvtXuc7ZK owned by uid 48 in /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc on line 29
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/rafb.net/httpdocs/paste/inc/pastify.inc:25) in /home/httpd/vhosts/rafb.net/httpdocs/paste/paste.php on line 150
Posted by: W.Chan | October 6, 2004 01:47 AM
Hmm strange. It worked perfectly for me all day. Oh well...thanks for the link :-)
Posted by: Simon Harris | October 6, 2004 01:52 AM
Should be http://www.codehaus.org
Posted by: Jason Yip | October 6, 2004 02:16 PM
Doh! It was late! Fixed it :-)
Posted by: Simon Harris | October 6, 2004 06:38 PM
Heres a similar (better) service. It supports comments, revisions, diffs, rss feeds... allows you to have a conversation around a piece of code
Posted by: Yogi | October 6, 2004 11:31 PM
http://codepaste.org
Posted by: Yogi | October 6, 2004 11:32 PM
You guys rock! Thanks.
Posted by: Simon Harris | October 6, 2004 11:37 PM
I'm sorry you saw all those errors. My code was ill-prepared for a PHP upgrade done on the webserver.
I'm always looking for ways to improve the service. I'm currently working on a system to support revisions and multiple-file "projects" (typically would be used to upload a C or C++ file with some headers).
The idea of supporting RSS feeds, comments, discussion, and so forth is interesting. Perhaps I'll take a look at using something like a full-fledged version control system as the backing store (and get the storage, versioning, diffs, and hooks for updates for free).
Posted by: Jacob Cohen | December 22, 2004 02:22 PM
hey i found a interesting site for coders and developers am happy to share the link with you all ..
Posted by: max | July 9, 2008 09:28 PM