Page shown from here. Go to page 1 Zoom out
And it supports "more than 40 languages", including Assembler, Common Lisp, and even Whitespace (of course the boring old C, C++, Java, Perl, Python, etc. are there too). It has other goodies like syntax highlighting for all these languages, 'private' pasting for times when you don't want others to see the code, etc. The site is quite very well done.

While we're in the topic, let me also add two more online code evaluation tools (compilers/interpreters):

* Lord of the REPLs: This is a Read-Eval-Print-Loop from Google, where each line you enter is evaluated immediately. Despite the fancy "Lord" name and the Google brand, I haven't found this very useful mainly because: it doesn't preserve function definitions or variables' values after you evaluate them, unlike other REPLs. This makes it hard to run anything more than trivial "hello world" programs. Also, I found it quite buggy at times.

* "Compile & Execute": This is somewhat similar to ideone, allowing you to enter your own input and having a choice of a similar number of languages. However, it doesn't have a 'private' pasting option, and has syntax highlighting for only a few languages. This leads to weird highlighting at times: if you choose to paste Perl code, the Highlight choice remains in cpp (which is the default), so your Perl code gets highlighted as C++ code! Sloppy design like this makes me think this site might not be very well designed.

These two are the only generic code evaluation tools I could find. If you find that none of these do it for you, try googling for something specific to your language. For example, for Python, searching for 'python online (IDE OR compiler OR interpreter)' gives a lot of good results.

If you know some other online code evaluation tool, or have experience with any of the above, do share it in the comments. Thanks!

Posted by Sundar at 2:08 AM

6 comments

Talks about: compiler, IDE, interpreter, online, programming

Reactions: awesome () informative () unclear () rubbish ()

THURSDAY 1 APRIL 2010

Songs list from files list

I had a list of mp3 files like:

ANBE_VAA_ARUGILE.MP3

ANBU_THAYAE.MP3

ANDANVAN_THEANAKTRU.MP3

ANNANENNA.MP3

and wanted the list of song names from this… What shall we do?

* Open Cygwin (Unix emulator within Windows), navigate to that folder, do:

      ls | cut -d. -f1 |  sed –e 's/_/ /g'

   list the files in this directory, cut and extract the 1st field with delimiter as . character, then

substitute space character in place of _ character globally. In other words, get the actual filename removing the .mp3 extension, then replace underscores with spaces.

* Save the above output to a file

     Actually this too should be a part of the above step, like:

      ls | cut -d. -f1 |  sed –e 's/_/ /g' > ./songnames.txt

     The file songnames.txt now has:

ANBE VAA ARUGILE

ANBU THAYAE

ANDANVAN THEANAKTRU

ANNANENNA

* Open the file in Vim editor, and select all the text by pressing ggVG. Then, press : to enter command mode, and Vim will show :’<,’> and wait for your input. Type this:

    !perl –lpe "@words = map { ucfirst(lc($_)) } split; $_ = join(\" \", @words)"

and press enter, and voila, the list has become:

Anbe Vaa Arugile

Anbu Thayae

Andanvan Theanaktru

Annanenna

Beautiful, isn't it?

Thank God, Unix exists! :)

Posted by Sundar at 3:51 AM

2 comments

Talks about: perl, programming, song list, unix

Reactions: awesome () informative () unclear () rubbish ()

MONDAY 15 MARCH 2010

Application to fetch Wiktionary definitions

I am preparing for GRE, and am using Anki for learning. However, the definitions Anki gives are not very good (that is, the GRE 'card deck' available to use within Anki is not very good), so for every word I'm having to refer Wiktionary to understand it better.

I got lazy to every time copy the word, type wiktionary in Firefox's address bar, and edit the URL to paste the new word. So, I created a small application to do most of the grunt work for me.

Copying the word with Ctrl-C I still have to do, but the rest of the work I can now invoke with a simple shortcut Ctrl-Alt-D. D for Define.

The application executable is available at

http://github.com/sundaryourfriend/DefineMyWord/blob/master/DefineMyWord/bin/Debug/DefineMyWord.exe

, though this one is built for my machine (64-bit Intel) and might not run on others. Give it a try if you feel like experimenting.

I created this app in C# to learn the language a little (learnt very little of it though). I've placed the code in a Git repository at

http://github.com/sundaryourfriend/DefineMyWord. Yeah, I call it DefineMyWord for now, until I get a better name. :)

It's probably terrible C# code, and there are a lot of rough edges: I couldn't get Alt-D to make it focus on the address bar (any help on this is welcome), it doesn't store previously opened URLs for now, etc.

After I was deep into creating this app, I realized I could have made a much simpler app to open the Wiktionary page in Firefox when a shortcut was pressed, instead of trying to reinvent the wheel. However, I was too much into the project already, so I told myself that this way I'd be able to add features easily whenever I need. Hope I do add some.

Posted by Sundar at 3:07 AM

2 comments

Talks about: application, C#, DefineMyWord, GRE

Reactions: awesome () informative () unclear () rubbish ()

Older PostsHome

Subscribe to: Posts (Atom)

TUTORIAL SEARCH

Get beginner tutorials on anything here.
Oops! This needs Javascript to work... Please enable it.

SUBSCRIPTIONS


Subscribe

Add to Google Reader or Homepage

BLOG ARCHIVE

▼  2010 (5)
▼  May (1)
Online compiler/interpreter/IDE

►  April (1)
►  March (2)
►  February (1)

►  2009 (9)
►  2008 (6)
►  2007 (17)

LABEL CLOUD

math
programming
program perl Algorithms
linux palindromepalindromic numberprime project euler
stocks technology C#
DefineMyWord GRE IDE application
apropos artificial intelligence
beginner blogging c captcha
command line compiler computers
cool data diversification economics
finance google interesting internet
interpreter lisp mac man metcalfe
online pc popularity posting
probability resources reviewself developmentsmall numbers

software song list speeds spoj

success recipe unix usability web2.0

websites

ABOUT ME

My Photo
Next page »
Back to search results
Google Home

Formatted for mobile viewing by Google
View page directly
Report a problem