Approximity blog home
654 to 663 of 784 articles

Why's (Poignant) Guide to Ruby   25 Sep 04
[print link all ]

(Source: whytheluckystiff) The (Poignant) Guide is a new approach to teaching Ruby, emphasizing the lingual traits of Ruby and illustrating its uniqueness with comics, visual imagery, and songs with accompanying hand gestures.

This date marks the release of the first three chapters. Feel free to tell your friends and family (a.k.a. Slashdot) about the news. With enough input and support, this book could see completion by next year. Hopefully this is a step towards explaining to the world why Ruby is such an enticing and voluptuous gem to behold.

Go and enjoy the book

Okay, I’ll keep this short. If you want to read more about my motivation, head over to the announcement on my site. motivation

Protecting commercial Ruby source   25 Sep 04
[print link all ]
Lothar Scholz posted this to the Ruby-ML.
 GM> Are there any accepted or already practiced ways for
 GM> companies to prevent Ruby source code from being read by potential
 GM> competitors? I can vaguely imagine redefining Ruby's
 GM> "require"-type methods so they can include zipped and passworded
 GM> ".rbz" files, say. Or using exerb (except for UNIX and without the
 GM> potential license issues).

 GM> I want to use Ruby at work but this is one of those "steps to
 GM> convincing your boss to use Ruby" I need to go through.

Just look at the "eval.c" file, i think the require is defined there and then write your hook. Or write a dll/so and add embedd your rb files as large c strings there (using maybe the "wrap" tool from the Fox Toolkit) and then do rb_eval_string("my c file"). After this protect the dll with something like "armadillo" (use google to find the URL). This works perfectly for me.

midilib initial release   25 Sep 04
[print link all ]
midilib is a pure Ruby MIDI library useful for reading and writing standard MIDI files and manipulating MIDI event data.

The latest version of midilib (0.8.0) can be found on the midilib Web site (midilib.rubyforge.org/). The midilib RubyForge project page is rubyforge.org/projects/midilib/.

midilib is also available as a Gem. The Gem has been uploaded to RubyForge, and should appear in remote gem listings soon.

Ruby Class Hierarchy   25 Sep 04
[print link all ]
(Source: Dalibor Sramek) A few charts describing various subtrees of Ruby class hierarchy. www.insula.cz/dali/material/rubycl/

[ANN] linalg-0.3.2 -- Ruby Linear Algebra Library   25 Sep 04
[print link all ]
link[linalg.rubyforge.org/}

From the README:

Major features:

  • Cholesky decomposition
  • LU decomposition
  • QR decomposition
  • Schur decomposition
  • Singular value decomposition
  • Eigenvalues and eigenvectors of a general matrix
  • Minimization by least squares
  • Linear equation solving
  • Stand-alone LAPACK bindings: call any LAPACK routine from directly from ruby.

Test Version of FreeRIDE with RRB Refactoring Support   25 Sep 04
[print link all ]
(Source: Curt Hibbs) I just put up a test version of FreeRIDE that includes RRB Refactoring support and I would like to ask your help in testing it.

For windows user’s there is a complete pre-built binary (it can coexist with your current FreeRIDE installation), and for non-windows users there are instructions for adding RRB refactoring support to your existing FreeRIDE installation.

You can find full details at: freeride.rubyforge.org/wiki/wiki.pl?RefactoringSupport

Good ruby documentation   25 Sep 04
[print link all ]
Just in case you have not seen this for 1.9

Ruby 1.6.x/1.7.x to Ruby 1.8   25 Sep 04
[print link all ]
Simon Standgaard posted these two links for the curious Ruby coders to ruby-talk. www.rubygarden.org/ruby?ProgrammingRubyTwo www.rubygarden.org/ruby?MovingFrom_1_6_To_1_8

Are Dynamic Languages Going to Replace Static Languages?   25 Sep 04
[print link all ]

(by Robert C. Martin; on <a href="www.artima.com">artima.com</a>) For many years we've been using statically typed languages for the safety they offer. But now, as we all gradually adopt Test Driven Development, are we going to find that safety redundant? Will we therefore decide that the flexibility of dynamically typed languages is desirable? http://www.artima.com/weblogs/viewpost.jsp?thread=4639

[ANN] Springz 1.0   25 Sep 04
[print link all ]

The Springz library allows you to attach two objects together (in 2D space) with a spring, and simulate how they pull/push each other.

Boring when used between two objects, it becomes interesting when you attach thousands of springs with different strenghts and distances between hundreds of nodes, and let the simulation determine the best configuration of those nodes. (I wrote this library specifically to create a social network diagram from a large amount of data. I had written it first in Javascript + SVG, and it was working, but too slowly: 3 hours to render the first frame, and 12+ hours for each frame after that.)

Despite the very visual nature of this application, this library doesn't know jack about graphics; it just knows how to push/pull theoretical objects around in theoretical 2D space. Making this visible to the user is up to you. (My application reads in XML data and then outputs a few frames of SVG pre-rendered animation.)

The documentation for the Springz class lists the key features at the top of it. You can read this laboriously-written documentation, and download the file itself, from: here (click on Springz.rb under the Files listing).

If you happen to have the Adobe SVG plugin (freely avail for Win/Mac/Linux/Solaris) installed, you can see the JS version of this library in action at -- click the green rectangle to start the simulation, and then drag objects around and/or click the orange button to scatter them about.

 

powered by RubLog
654 to 663 of 784 articles Syndicate: full/short