Nov
21

Ruby 1.9.1 character encoding, Regular Expressions and Ruby on Rails

on November 21st, 2009 by admin

As many of you already know, a major change in Ruby 1.9 was the introduction of character encodings. It is a fantastic feature, however it is causing problems in the migration of applications.
In recent days I was playing with making Ruby on Rails 2.3.4 work on Ruby 1.9.1 and I got to the point where [...]

Continue reading about Ruby 1.9.1 character encoding, Regular Expressions and Ruby on Rails »

Posted in english | 1 Comment, join in » |
Nov
14

A smart Winamp play-list – the implementation

on November 14th, 2009 by admin

Software:

Smart Pick for Winamp, by Kornel Mezo, GPLv3
A program to assist you with eliminating duplicates from your music collection. A sophisticated play-list generator – randomizer -, and a virtual-DJ that plays a mix from your collection.

User Manual:
Smart Pick User Manual

Download:
Smart_Pick_2_7
Current development activity:

none

Version history:

2.7 – randomizer ‘warmup’, better handling of genre exclusions, composer tag accepted as [...]

Continue reading about A smart Winamp play-list – the implementation »

Posted in english | No comments yet, be the first » |
Oct
18

PSR – Piano Sympathetic Resonance for Kontakt

on October 18th, 2009 by admin

More than 4 years ago I had a project, where I implemented a Piano Resonance script in the Kontakt embedded scripting language. My original web page that was dedicated to the script is not any more available.
Shortly, I will update this post, I change the script to Open Source and I will post it here. [...]

Continue reading about PSR – Piano Sympathetic Resonance for Kontakt »

Posted in english | 11 Comments, add your own » |
Sep
12

wxRuby application with Ruby threads

on September 12th, 2009 by admin

If you tried to run a wxRuby GUI application with other Ruby threads, you noticed that the wxRuby event loop is greedy, and renders the other threads very slow. Especially, if you do IO operations, file management in the other thread.
The problem is not wxRuby specific, you see the same behavior using other GUI toolkits [...]

Continue reading about wxRuby application with Ruby threads »

Posted in english | No comments yet, be the first » |
Sep
1

A smart Winamp play-list – the problem statement

on September 1st, 2009 by admin

After detailed study, here is my take on the audio play-list topic.
Firstly, what are the reasons that people dislike their play-lists:

Using random numbers – however perfect random numbers they are – is not satisfying. See my related post on random numbers.
People with large music collections have many duplicate songs, either the same song in various [...]

Continue reading about A smart Winamp play-list – the problem statement »

Posted in english | No comments yet, be the first » |
Aug
29

Surprising element in design

on August 29th, 2009 by admin

Ruby language design is based on the principle of least surprise. Don’t quote Matz on this line, it was not him actually who brought this up. But, true, Ruby is supposed to reduce your frustration while developing.
I was actually surprised yesterday that I encountered a frustrating situation.
Look at the following code:
hn = Hash.new(0)
hn['key'] += 1
puts [...]

Continue reading about Surprising element in design »

Posted in english | No comments yet, be the first » |
Aug
26

Compiling Ruby with MinGW

on August 26th, 2009 by admin

Initially I used the binary distributions of Ruby. However, when new Ruby patch levels are released, it is not always easy to find the binaries – if you are like me, and prefer to run the latest versions, then you also need to learn to compile Ruby for yourself.
This article will help people who are [...]

Continue reading about Compiling Ruby with MinGW »

Posted in english | No comments yet, be the first » |
Aug
25

Random numbers

on August 25th, 2009 by admin

Random numbers are not evenly distributed when the sample size is relatively small.
Let’s take an everyday example – random play mode in Winamp. For this example, imagine that you have 5.000 songs in your music collection.
Generate 5.000 random numbers in a sequence. In other words, listen to 5.000 songs randomly selected from your collection. You [...]

Continue reading about Random numbers »

Posted in english | No comments yet, be the first » |
Aug
23

Ruby 1.9 debugger

on August 23rd, 2009 by admin

Ruby 1.9 has been released for quite some time. Netbeans 6.7 supports the 1.9 version, however there was a major obstacle in the way to upgrade: the Ruby debugger was not working in the IDE.
Good news for the Ruby community, Mark Moseley did an awesome job and he recently made debugging in the IDE possible. [...]

Continue reading about Ruby 1.9 debugger »

Posted in english | 1 Comment, join in » |

    Recent Posts

    • GPU with CUDA
    • First impressions of the Mac OS
    • Snow Leopard in VMWare
    • CentOS 5 under Windows Virtual PC
    • Turek Miklós esküvőjére
    • Have I told you lately that I like Windows 7?
    • Királynő a sakktáblán
    • TrueIP under Windows 7
    • Virtualdub capture headache
    • Endless Summer

    Archives

    • September 2010 (1)
    • August 2010 (7)
    • July 2010 (2)
    • June 2010 (1)
    • April 2010 (2)
    • March 2010 (1)
    • January 2010 (2)
    • December 2009 (3)
    • November 2009 (6)
    • October 2009 (6)
    • September 2009 (8)
    • August 2009 (14)

    Categories

    • english (37)
    • magyar (16)

    életmód autó cloud fényképészet food gondolatok hírek humor ideas lesson learnt lifestyle logic logika matematika math mese movie music photography product review programming ruby science social software történelem television thoughts travel tudomány utazás video web zene

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

    Blogroll

    • James Chik
    • Klement Vilmos

    Links

    • Home page
    • Photography

    Meta

    • Log in
Blog software by WordPress
Theme based on blue-fade by Web Considerations, LLC
Entries (RSS) and Comments (RSS)
31 queries. 0.292