For the whole of May, I will blog about weird things in Ruby over at Idiosyncratic Ruby – Don’t miss it!
6 basic cd tricks you should know and use!
And you’ll never want to miss them again!
Access the system clipboard with JRuby
This is my first jruby code (written for the clipboard gem) and I was quite surprised that you only need one-liners ;)
Three little tips for slimmer Rails migrations
Rails migrations are easy to understand and easy to write. However, you can save some unnecessary key strokes by applying these three tips :)
Requirements: A Mini RubyGems plugin
The .gemspec
file of a gem allows to specify requirements for that gem – but usually you do not get to see them. These five lines patch RubyGems, so that gem
displays the requirements of a gem after it has been installed:
Project Euler 19, 20, 21, 22, 23, 24, 25 (Ruby)
The next pack of Project Euler solutions.
Little heplers for Ruby print debugging
Not everyone likes debuggers. I rather print the debug values myself – it works and I do not need to learn a debugger :P
Project Euler 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 (Ruby)
More solutions for the projecteuler.net problems. Some of them are solved using 1.9.2 features.
The 28 Bytes of Ruby Joy!
The 28 Bytes of Ruby Joy will notably clean up your code:
Search the net - and do something for the environment :)
It is not that easy to find an replacement for google – often the search results are just better then those of the competitors. Except Yahoo – I like their results, but the user interface is not as good as google’s.
But now I have found a solution that works for me: ecosia.org.