J-_-L
index | github | twitter | irbtools | pws | rubykraut | ruby on ubuntu | zucker | euler | fresh
21.03.10
2 comments

SHA-256

This is a Ruby implentation of the SHA-256 hashing algorithm. Truth be told: It is almost a plain copy of the Wikipedia pseudocode ;) […]

18.01.10 24.11.10
5 comments

Project Euler 1-5 (Ruby)

projecteuler.net tries to get you thinking about how to solve mathematical problems by programming. Here are the first five problems, solved in Ruby, including comments. […]

18.12.09

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.
[…]

06.12.09
2 comments

NoTabs

After editing some source files with different editors on different platforms, I had some troubles with automatically inserted tabs messing it all up.

This little script replaces all tabs with two spaces. […]

24.11.09
1 comment

Organise your code comments with rake notes:todo!

Lots of IDEs (e.g. Netbeans) and some editors (e.g. gedit with plugins) have a nice feature: They show comments, which start with something like TODO or FIXME. Those annotations are quickly written and they make it harder to forget some things you wanted to (or have to) do.

I have just discovered that Rails has this feature already built-in!
[…]

14.11.09 06.06.10

Rack::NoTags

rack · rails · regex · ruby · security · xml · xss

This is my submission for the CodeRack contest:

A middleware that removes < and > from all incoming requests. […]

24.10.09 18.11.09

Oh, this sweet and tasty syntactic sugar!

This article is written for people with experience in programming in general, but who are new to Ruby.
A German version is published in the offline magazine #2, a magazine by some students of TU Dresden.

The intention is to demonstrate some features of Ruby and show, what is so great about Ruby:

A clean syntax combined with the possibility to adapt the language to given requirements flexibly. […]

07.10.09 18.12.09

A* in Brainfuck! by Thammi

fun

Yeah! I am one of the two winners of the programming competition I talked about at Playing with Dijkstra.

Furthermore, Thammi, a friend of mine, is the winner of the category “crazy” with a brainfuck implementation! […]

21.09.09 14.01.10
1 comment

Ruby Brainfuck golf [Update]

fun · golf · ruby · ruby1-8

Some days ago, I discovered a website – which is the most addicting one I know :) – codegolf.com. The goal is, to solve programming problems with as short code as possible.

As I said, it is addicting. You do not write better ruby code by golfing. But you can really improve the knowledge of the language. And it is fun :)

Brainfuck

After doing some of the other challenges I tried the brainfuck challenge.
Brainfuck is a Turing-complete esoteric programming language consisting only of 8 letters, operating on a 30000 cells-array. This is the hello world program:

>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

The goal is to build a interpreter. […]

15.09.09
1 comment

Quicksort in 5 minutes

Some time ago, I conducted a short presentation about Ruby. And to impress the audience, I did some live coding and implemented the quicksort algorithm in 5 minutes. They were impressed :) […]