09-21-2010
Thanks for the links.
Having now seen properly laid out whole programs in Ruby the language structure is a bit clearer. I still am surprised that a modern programming language can have an obscure syntax.
Having first learnt to program in Algol 68, I find Python easiest to follow of the modern crop of languages. I've used a large number of programming and scripting languages over the years and have my favourites.
6 More Discussions You Might Find Interesting
1. SuSE
Hello guys,
This is suse SLES 9.2.
I want to get ri working for all users on this system. I used
gem rdoc --all --ri to generate documentation and it went on doing it successfully.
Then I tried
ri Array
It shows following message :
Nothing known about Array
Therefore I ran... (0 Replies)
Discussion started by: upengan78
0 Replies
2. Shell Programming and Scripting
Hai any one pls guide me...
We can extract the line number of the sub routine/function/method in a Ruby file using the ctags command.
But I want to know the line number in which the sub routine is ending.
Example:
Say the function get_days_in_hash starts in the line number 20.
It... (2 Replies)
Discussion started by: thillai_selvan
2 Replies
3. Programming
Hi,
I am a php developer and I decided to learn ruby on rails.
I have a few question.
I have an ubuntu virtual machine with lamp.
It mean that it has alrweady php and when I access the ip of the machine from my browser it does load the index.php.
if I install ruby on rails will theere... (0 Replies)
Discussion started by: programAngel
0 Replies
4. UNIX for Advanced & Expert Users
Hi,
I am working on RHEL 5.6 server, this is in private DMZ. No access to internet. I have downloaded the files I need to install the Puppet & Ruby. My goal is to install Puppet. I have downloaded....
mcollective-2.2.3-1.el5.noarch- SERVER.rpm ... (2 Replies)
Discussion started by: samnyc
2 Replies
5. Shell Programming and Scripting
Hello everybody,
May you help with this, I don't know what is wrong.
I want trying to print the first 4 characters as decimal and remove the "k's" from the next 7 characters.
I'm trying with gsub and backrefence as shown below trying to remove the "k's" and then trying to assign to "x" the... (0 Replies)
Discussion started by: Ophiuchus
0 Replies
6. What is on Your Mind?
Hi All,
Could you please suggest books for learning ruby and python language ?
Thanks,
Pravin (1 Reply)
Discussion started by: pravin27
1 Replies
LEARN ABOUT DEBIAN
ruby-prof
RUBY-PROF(1) General Commands Manual RUBY-PROF(1)
NAME
ruby-prof - A fast ruby profiler
SYNOPSIS
ruby-prof [options] <script.rb> [ script-options ]
DESCRIPTION
ruby-prof is a fast profiler for ruby. It can be used as a stand-alone program (that this man page documents) or as a ruby library. Simply
run the ruby program you want to profile using ruby-prof : ruby-prof script.rb At the end of execution the time spent in each method is
displayed.
OPTIONS
-p, --printer=printer
Select a printer:
flat - Prints a flat profile as text (default).
graph - Prints a graph profile as text.
graph_html - Prints a graph profile as html.
call_tree - format for KCacheGrind
-m, --min_percent=min_percent
The minimum percent a method must take before being included in output reports. This option is not supported for call tree.
-f, --file=path
Output results to a file instead of standard out.
--mode=measure_mode
Select what ruby-prof should measure
process - Use process time (default).
wall - Use wall time.
cpu - Use the CPU clock counter (only supported on Pentium and PowerPCs).
--replace-progname
Replace $0 when loading the ruby source file.
-h, --help
Show help message.
-v, --version
Show version.
SEE ALSO
The ruby-prof website, http://ruby-prof.rubyforge.org/
AUTHOR
ruby-prof was written by Shugo Maeda <shugo@ruby-lang.org>.
This manual page was written by Arnaud Cornet <arnaud.cornet@gmail.com> for the Debian project (but may be used by others).
14 October 2006 RUBY-PROF(1)