Browsing the archives for the Pastebin tag.

Ruby on Rails pastebin

Applications, Coding, Projects, Web developing

I have tried Ruby on Rails many times, but this time I managed to create something useful that works. I created a simple pastebin. Actually I didn’t write any code. I just executed couple of scripts and then removed unnecessary parts from ruby code and edited the views.

To host the pastebin I used Heroku. Heroku is very simple platform to host Ruby on Rails apps. It is also very easy to deploy a app to it. Heroku offers free hosting, but it also offers very big plans. Biggest hosting packages can be over 2000$. I recommend to try heroku.

My pastebin runs at pastebin.heroku.com

No Comments

Project: Pastebin

Applications, Internet, Projects, Web developing

Why I created yet another pastebin?

Because I can. It was mainly a test/tutorial for myself, but because it becomes usable product I decided to put it online. It won’t hurt anyone.

Features

  • Clean, simple user interface
  • Fast and reliable
  • Pastes are permanent, they won’t be deleted
  • Custom urls (up to 22 characters)
  • View counter for pastes

How I created it

I developed this application using kubuntu(kde 3.5)/konsole/vim/apache/mysql/php. Code is very small, portable, lightweight. Here is output of cloc.pl script.
-------------------------------------------------------------------------------
Language files blank comment code scale  3rd gen. equiv
-------------------------------------------------------------------------------
PHP      3     57    33      202  x3.50 =         707.00
-------------------------------------------------------------------------------

I am also thinking about releasing this project under GPL.

Planed to newer release

I really haven’t thought about next version, but if I ever create it, I will include next features to it.

  • url rewrites with .htaccess
  • syntax hilight with geshi
  • javascript/ajax effects

Url of this pastebin is http://paste.pelikoira.net , feel free to use it.

No Comments