See what we’ve written lately
Ruby: Using Time
There are many functions available for Time, Month, Day, and Year. Below are a few examples. # Find out the Current Time t = Time.now # Find out the Month,...
Ruby: Encrypting passwords for a database using one-way hash technique (SHA1)
Before you save a password to a database, it may make sense to encrypt it. That way, when you do some user authentication, you can compare the users...
Ruby: Validate a Credit Card Number
Download the Credit Card Library from Lucas Carlson. sudo gem install creditcard # Checksum Digit, there is an algorithm that checksum must match # A. Import the libraries require '...
Ruby: Converting an array into YAML, Loading YAML into an array
# A. Import the YAML Library require 'yaml' # B. Create an array names = %w[chris sandy josie billy suzie] # Example 1 : Converting an array into YAML using:...
Ruby: How to parse an RSS Feed
Here's a short example of how to parse an RSS feed using Ruby. require 'rss' require 'open-uri' open('https://www.chrisjmendez....