An Input Bug in Ruby

Posted on Aug 06, 2012 in Computer Science • Tagged with programming, Bash, Ruby, bug, terminal, IO

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

If you run a ruby program though Bash and the ruby program read multiple inputs from the console, all inputs will be the same as the first …


Continue reading

Tips on the Ruby Programming Language

Posted on Aug 06, 2012 in Computer Science • Tagged with array, IO, Ruby, programming, string

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Array

  1. The method push inserts an element to the back of the arry; the method insert inserts an element to any place of the array.

  2. The method …


Continue reading

Input and Output in R

Posted on Nov 09, 2012 in Programming • Tagged with R, IO, programming, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

read.table, read.csv, read.delim, etc.

  1. It is suggested that you use read.csv/read.delim and avoid using read.table. This is because that the …


Continue reading