Archiv der Kategorie: Programming

Execute shell commands in Ruby

On Ruby Quicktips there´s a nice sum up of the three different ways how to execute shell commands from your ruby code. It´s explaining very well the differences between exec, backticks (or %x shortcut) and the system command: Execute Shell … Weiterlesen

Veröffentlicht unter Programming | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar

MS SQL / T-SQL: Get a random date

Lately I needed to get a random date from an MS SQL Server, and it was a real pain to find something on google about it. Luckily I stumbled upon the blog of Ben Nadel who has written a great … Weiterlesen

Veröffentlicht unter Allgemein, Programming | Verschlagwortet mit , , , | Hinterlasse einen Kommentar

Ruby 1.9: Displaying a MessageBox Using the Windows API

On Ruby on Windows there´s a fantastic article on Displaying a MessageBox Using the Windows API. This working fine on Ruby 1.8, but unfortunately it is resulting in an error like this when being executed with Ruby 1.9: message_box.rb:20:in `[]‘: … Weiterlesen

Veröffentlicht unter Programming | Verschlagwortet mit , , , , , , | 1 Kommentar

Generate Unit Tests automatically (?)

For quite a while I´m thinking about a solution for following situation: I have a lot of (old) scripts/ classes, which I created without unit tets (yes, shame on me, but by the time I´ve written them, I didn´t knew … Weiterlesen

Veröffentlicht unter Programming, Testing | Verschlagwortet mit , , , , | Hinterlasse einen Kommentar

Programming Skills

Not only Ruby is a great programming/ scripting language to do your daily jobs or to automate your testing tasks, also Perl is. Find a free (GNU Free Documentation Licence) Perl training as HTML or PDF on the homepage of … Weiterlesen

Veröffentlicht unter Book, Learning, Programming | Verschlagwortet mit , | 2 Kommentare