[#377882] remove array bracket — Kamarulnizam Rahim <niezam54@...>

Hi when i run my script, the output is as followed:

18 messages 2011/02/02

[#378046] Setter method for Hash value — Rolf Pedersen <rolfhsp@...>

Hi

20 messages 2011/02/03
[#378052] Re: Setter method for Hash value — Brian Candler <b.candler@...> 2011/02/03

Rolf Pedersen wrote in post #979431:

[#378056] Re: Setter method for Hash value — Rolf Pedersen <rolfhsp@...> 2011/02/03

Hi Brian (and others who have contributed with suggestions along the same

[#378144] C extension: How to check if a VALUE is still alive (not being GC'ed)? — Iñaki Baz Castillo <ibc@...>

Hi, I'm coding an async DNS resolver for EventMachine based on udns (a

13 messages 2011/02/05
[#378171] Re: C extension: How to check if a VALUE is still alive (not being GC'ed)? — Tony Arcieri <tony.arcieri@...> 2011/02/06

On Sat, Feb 5, 2011 at 4:02 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote:

[#378179] Re: C extension: How to check if a VALUE is still alive (not being GC'ed)? — Iñaki Baz Castillo <ibc@...> 2011/02/06

2011/2/6 Tony Arcieri <tony.arcieri@medioh.com>:

[#378199] Choosing an office suite — Hilary Bailey <my77elephants@...>

I am trying to decide which office suite to choose from. The only

30 messages 2011/02/07
[#378229] Re: Choosing an office suite — Phillip Gawlowski <cmdjackryan@...> 2011/02/07

On Mon, Feb 7, 2011 at 11:15 AM, Hilary Bailey <my77elephants@gmail.com> wrote:

[#378202] making hash key from arrays — Arihan Sinha <arihan_sinha@...>

Hi All,

11 messages 2011/02/07

[#378254] "permission denied" happening too often — Peter Bailey <pbailey@...>

Hello,

15 messages 2011/02/08
[#378256] Re: "permission denied" happening too often — Anurag Priyam <anurag08priyam@...> 2011/02/08

> I've got Ruby scripts that have been working fine for years now. But,

[#378257] Re: "permission denied" happening too often — Markus Schirp <mbj@...> 2011/02/08

You can also try to strace your script. In the logs you'll find the system

[#378259] Re: "permission denied" happening too often — Peter Bailey <pbailey@...> 2011/02/08

Markus Schirp wrote in post #980289:

[#378307] undefined class/module YAML::PrivateType - Error — "Priya D." <dharsininitt@...>

Hi,

11 messages 2011/02/09

[#378341] System calls with ` in parameters — "Gerad S." <geradstemke@...>

Hi All,

12 messages 2011/02/09

[#378618] Defining class methods — Tony Arcieri <tony.arcieri@...>

It seems there are 3 ways of defining class methods (at least in common

12 messages 2011/02/16

[#378685] LiveAST: a pure Ruby 1.9.2 library obtaining live abstract syntax trees — "James M. Lawrence" <quixoticsycophant@...>

= LiveAST

13 messages 2011/02/18

[#378753] posix_mq : Problem installing on HPUX — Tadeusz Bochan <tad.bochan@...>

Hello,

13 messages 2011/02/20

[#378890] a, b = Array.new(2).map!{|x| data.dup} — Stefan Salewski <mail@...>

I think I can replace this code

19 messages 2011/02/23
[#378892] Re: a, b = Array.new(2).map!{|x| data.dup} — niklas | brueckenschlaeger <niklas@...> 2011/02/23

Are you sure you can't rework your code to *not* copy data 5x? I assume

[#378899] Re: a, b = Array.new(2).map!{|x| data.dup} — Stefan Salewski <mail@...> 2011/02/23

On Thu, 2011-02-24 at 07:00 +0900, niklas | brueckenschlaeger wrote:

[#378941] Automatic question generator libs in Ruby Language — Sniper Abandon <sathish.salem.1984@...>

is there any Automatic question generator libraries in Ruby Language ?

20 messages 2011/02/24
[#379058] Re: Automatic question generator libs in Ruby Language — Sniper Abandon <sathish.salem.1984@...> 2011/02/27

suppose if i have a paragraph (arround 250 words)

[#379172] Re: Automatic question generator libs in Ruby Language — Shadowfirebird <shadowfirebird@...> 2011/03/01

> i want to get all the possible question from that paragraph

[#379174] Re: Automatic question generator libs in Ruby Language — Peter Zotov <whitequark@...> 2011/03/01

On Tue, 1 Mar 2011 19:31:36 +0900, Shadowfirebird wrote:

[#379175] Re: Automatic question generator libs in Ruby Language — Adam Prescott <mentionuse@...> 2011/03/01

On Tue, Mar 1, 2011 at 10:55 AM, Peter Zotov <whitequark@whitequark.org>wrote:

[#379177] Re: Automatic question generator libs in Ruby Language — Peter Zotov <whitequark@...> 2011/03/01

On Tue, 1 Mar 2011 20:02:13 +0900, Adam Prescott wrote:

[#379179] Re: Automatic question generator libs in Ruby Language — Adam Prescott <mentionuse@...> 2011/03/01

On Tue, Mar 1, 2011 at 12:28 PM, Peter Zotov <whitequark@whitequark.org>wrote:

[#378949] why is $1 in a grep() equal to nil? — 7stud -- <bbxx789_05ss@...>

class DataSource

16 messages 2011/02/24
[#378953] Re: why is $1 in a grep() equal to nil? — Eric Christopherson <echristopherson@...> 2011/02/25

On Thu, Feb 24, 2011 at 2:59 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:

[#378958] parsing rule for this code? — 7stud -- <bbxx789_05ss@...>

1)

11 messages 2011/02/25

[#379000] Symbol#to_proc helping out with #select to beat Scala-s solution — Jarmo Pertman <jarmo.p@...>

Hey!

9 messages 2011/02/25

[#379074] finding a tag in a binary file — rob stanton <tnotnats@...>

I have a binary file in which I'd like to find multiple strings of 10

12 messages 2011/02/27

Re: Totally lost in learning Ruby

From: "Nicholas A." <notchent@...>
Date: 2011-02-04 14:19:24 UTC
List: ruby-talk #378096
Hilary,

When you first begin to learn about programming, your first obstacles 
will have to do with basic language syntax, understanding how/when/why 
to use variables, loops, conditional expressions, data structures, etc. 
In the beginning, those basic building blocks may seem curious and 
disjunct, but but you will use them constantly and directly every single 
time you sit down to write any real code.  As you get started, even 
basics such as knowing how/why to indent lines of code can give you 
trouble.  Becoming familiar with the process of installing and working 
in your development environment (your choice of OS, Ruby installation, 
IDE/text/code editor, etc.), and executing and debugging snippets of 
code, can take a while to become comfortable.

After you become familiar with the basic language concepts, tool set, 
and work flow of writing/executing simple bits of code, you'll become 
more able to use libraries and frameworks that do valuable things: 
create GUI windows and widgets that obtain and display processed data 
for the user, create web interfaces that obtain and display processed 
data, work with graphics, media, compressed files, and other binary data 
types, save/retrieve/manipulate text data in useful real-world ways, 
manage larger data structures, perhaps control robots, or anything else 
you want to accomplish...  You'll settle on favorite 
libraries/frameworks and become proficient at making them work together 
to create full applications that do useful things for users.  Along the 
way, you'll learn to think more about designing sensible and efficient 
user interfaces, you'll learn to handle usage problems that come from 
how different people expect to use computer programs, you'll learn to 
catch typical bugs that occur in text data processing, anticipate and 
eliminate potential security weaknesses, deal with usability issues in 
multiuser applications, etc.  It can take years and many tens/hundreds 
of thousands of lines of written code to really become proficient at 
writing rock solid pieces of software that people use easily and 
intuitively.

The problem with most tutorials and books for beginners is that they end 
with the basics of language structure and bits about using 
libraries/frameworks, etc.  Once you understand enough basic syntax and 
concepts like using loops to search and sort through lists of data, you 
need to see and play with lots of code to actual working applications. 
You need to see, experiment with, alter and write from scratch lots and 
lots of working code.  To get started with that, you could try, for 
example, downloading wxRuby and playing with all the included code 
examples.  Take the GUI grid widget example and _alter_ the code to make 
it display a sample data file that you've read from a file on the hard 
drive.  Put together a simple application that reads a directory of 
image files, displays the file names in a text list, and then displays 
the image when the file name is clicked.  Write a small recipe database 
application.  Write a clone of a classic simple video game.  Find a web 
host that supports Ruby and learn how to enter data via HTML forms, 
process that data with CGI, and display tables of the processed data 
using HTML.  Enter your sample data file into a MySQL database and write 
the SQL code needed to search and sort that data by any field in the 
database.  When you get stuck, post a question online, with the code 
you're trying to make work.  You're likely to get detailed help when you 
have specific questions about how to fix a small portion of 
almost-working code.

I wrote a tutorial for the REBOL language which takes you through all 
the stages of learning, including line by line documented code and full 
case studies for more than 50 applications: http://re-bol.com.  It's 
been among the top 3 search results for "computer programming tutorial" 
for several years.  I'm currently rewriting that tutorial for Ruby, but 
in the meantime, it should give you a nice complete understanding about 
how to progress beyond just the basics.  All the concepts will be 
directly applicable to learning Ruby.

Hope that helps :)

-- 
Posted via http://www.ruby-forum.com/.

In This Thread