« Drools Schmokes! | Main | Drools Schmokes! - Part II »

Paste Your Code

Listen to this articleListen 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

Hmm strange. It worked perfectly for me all day. Oh well...thanks for the link :-)

Doh! It was late! Fixed it :-)

Heres a similar (better) service. It supports comments, revisions, diffs, rss feeds... allows you to have a conversation around a piece of code

You guys rock! Thanks.

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).

hey i found a interesting site for coders and developers am happy to share the link with you all ..

Post a comment