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

Send Email in Ruby

Posted on Jun 06, 2012 in Computer Science • Tagged with smtp, programming, Verizon, PDF, Ruby, email

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

A few days ago, I started writing my first Ruby program which read my Verizon family plan statements, calculate bills for each member and send emails to …


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

Tips on Scala

Posted on Mar 24, 2016 in Computer Science • Tagged with programming, Scala, functional programming, big data, Spark

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

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


Continue reading

Use q to Query Text File Using SQL Syntax

Posted on Jun 05, 2016 in Programming • Tagged with programming, SQL, structured text, CSV, TSV

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

It is suggested that you use Python instead of q to manipulate text files!

Installation on Ubuntu

wajig install python3-q-text-as-data

General Tips

  1. The semantics of q is …


Continue reading

Tips on R

Posted on Oct 29, 2013 in Programming • Tagged with tips, programming, CRAN, R

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

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

  1. commandArgs extract command line …


Continue reading