Ruby

TwitterFacebook
Get flash to fully experience Pearltrees

Ruby Basic Tutorial

Note: All materials in Ruby Revival are provided AS IS. By reading the materials in Ruby Revival you are agreeing to assume all risks involved in the use of the materials, and you are agreeing to absolve the authors, owners, and anyone else involved with Python Patrol of any responsibility for the outcome of any use of these materials, even in the case of errors and/or omissions in the materials. If you do not agree to this, you must not read these materials. To the 99.9% of you honest readers who take responsibility for your own actions, I'm truly sorry it is necessary to subject all readers to the above disclaimer. This is a Ruby tutorial for one not knowing Ruby. Therefore, we use many constructs and styles that, while familiar to programmers and intuitive to beginners, are not optimal for Ruby. http://www.troubleshooters.com/codecorn/ruby/basictutorial.htm

OCRA: One-Click Ruby Application Builder

http://rubyonwindows.blogspot.com/2009/05/ocra-one-click-ruby-application-builder.html I recently mentioned the fact that RubyScript2Exe 0.5.3 doesn't play well with recent versions of RubyGems. At the end of that post I mentioned that there are alternatives emerging for creating executables from your Ruby code, including Lars Christensen's OCRA, the One-Click Ruby Application Builder. I've had a chance to take OCRA for a short test drive and it looks promising. Like Erik Veenstra's RubyScript2Exe , OCRA lets you "compile" your ruby code into an EXE file that you can distribute to others, without requiring that the users have Ruby installed on their PCs. To quote the OCRA page: The executable is a self-extracting, self-running executable that contains the Ruby interpreter, your source code and any additionally needed ruby libraries or DLL.
http://fr.wikibooks.org/wiki/Math%C3%A9matiques_avec_Python_et_Ruby/Nombres_r%C3%A9els_en_Ruby Un livre de Wikibooks. Depuis l'apparition de chiffres arabes et de la numération de position, les nombres décimaux sont devenus plus concrets que les fractions: En écrivant , on voit deux nombres et on a tendance à oublier que cette écriture désigne un seul nombre (le quotient de 6 par 5). Alors qu'en écrivant ce nombre 1,2 on voit immédiatement qu'il n'y en a qu'un seul !

Mathématiques avec Python et Ruby/Nombres réels en Ruby - Wikibooks

Il est donc intéressant d'explorer ces langages pour résoudre des problèmes de nature mathématique. Dans ce livre, nous énumèrerons ce que ces langages apportent à l'enseignement des mathématiques et à celui de l'algorithmique. En particulier, nous étudierons comment certaines structures mathématiques sont gérées par ces deux langages. Important : Certaines fonctionnalités de Python 3.2 seront utilisées ici (par exemple, le fait que la division par défaut est la division exacte et pas la division euclidienne, la présence de print , le fait que l'objet fraction est fourni avec Python 3.2 ...). Le programme Freeride est un petit, facile à utiliser éditeur de code qui fonctionne bien avec Ruby.

Mathématiques avec Python et Ruby - Wikibooks

http://fr.wikibooks.org/wiki/Math%C3%A9matiques_avec_Python_et_Ruby
Protovis is no longer under active development. The final release of Protovis was v3.3.1 (4.7 MB) . The Protovis team is now developing a new visualization library, D3.js , with improved support for animation and interaction. http://mbostock.github.com/protovis/

Protovis

D3 allows you to bind arbitrary data to a Document Object Model (DOM), and then apply data-driven transformations to the document. As a trivial example, you can use D3 to generate a basic HTML table from an array of numbers. Or, use the same data to create an interactive SVG bar chart with smooth transitions and interaction. D3 is not a traditional visualization framework. Rather than provide a monolithic system with all the features anyone may ever need, D3 solves only the crux of the problem: efficient manipulation of documents based on data. http://mbostock.github.com/d3/

d3.js

http://www.liquidx.net/plotkit/ Note: Firefox 1.5+ on Linux and Windows is supported. Firefox 1.5+ on Mac does not draw labels in SVG, so you must set axisLabelUseDiv to true if you want to have maximum compatibility. Below is a demo of a simple HTML Canvas example which should work in Safari 2, Firefox 1.5, Internet Explorer 6 and Opera 9. And SVG Demo can also be found.

PlotKit - Javascript Chart Plotting | liquidx

I am curious to see the itch that they guys are scratching here. Of course, Silverlight is giving us ARAX according to John Lam. Darryl Taft reported on the news, and I quickly told him that JRuby has given us Ruby in the browser for quite some time. The latest Java plugin supports JNLP, and JRuby build a JNLP distribution for you if you want it.

Johnson: Wrapping JavaScript in a loving Ruby embrace, and ARAX - Ajaxian

http://ajaxian.com/archives/johnson-wrapping-javascript-in-a-loving-ruby-embrace-and-arax

rb2js/Ruby to JavaScript

The first hurdle, converting a subset of Ruby code into working JavaScript, has already been achieved. However, it requires specially-written Ruby code. We can do better. http://rb2js.rubyforge.org/

Class: Fox::FXFrame

http://www.fxruby.org/doc/api/classes/Fox/FXFrame.html The Frame widget provides borders around some contents. Borders may be raised, sunken, thick, ridged or etched. They can also be turned off completely. In addition, a certain amount of padding may be specified between the contents of the widget and the borders.

Ruby at Work - Internet access through a Proxy Server

While reviewing Brian Marick's book "Scripting for Testers" (due out later this year or early next), I discovered that some of the internet access RUBY commands and scripts always failed when I tried them from work. Here's the weird thing - the same commands and scripts worked from my home computer. So what gives? I found the answer when I googled comp.lang.ruby and tinkered around in IRB from my work computer.
I've mentioned RubyScript2Exe previously . This tool allows you to 'compile' a script/application into a portable executable file (EXE) that you can easily provide to your users without requiring them to install Ruby and the required libraries. RubyScript2Exe traces and gathers all the necessary files, including the Ruby interpreter, and 'compiles' them into a single EXE file.

Compiling Your Ruby App with RubyScript2Exe

Googlecharts

Gchart.line() Gchart.line_xy() Gchart.scatter() Gchart.bar() Gchart.venn() Gchart.pie()
In a radar chart, data points are drawn evenly spaced, clockwise around the chart. The value of the point is represented as the distance from the center of the chart, where the center represents the minimum value, and the chart edge is the maximum value. Each series is drawn as one complete circuit of the chart. The chart connects these points with straight or curved lines, as you specify. So, a radar chart is essentially a line chart wrapped into a circle, where the y-axis goes from the center of the chart to the perimeter, and the x-axis is the perimeter of the chart, starting and ending at the 12:00 line.

Radar Charts - Google Chart Tools: Image Charts - Google Code

Les Tableaux Ruby : Array en détails | GeckoGeek

Continuons sur la lancée programmation. Après avoir fait un petit tour par QT, nous allons nous pencher sur Ruby. Avant de voir des choses plus compliquées, voici un petit récapitulatif sur la manipulation de tableaux en Ruby. Vous y trouverez des informations sur la manière d’utiliser les méthodes associées à la classe Array mais aussi quelles sont celles qui sont les plus judicieuses à utiliser selon vos besoins (en terme de rapidité & d’ efficacité , cf les commentaires dans les blocs de code).
Rails

Fctions

Tutos

GUI

Ruby

Support