Quantcast
Channel: ruby
Browsing all 21 articles
Browse latest View live

How to sort an array of Ruby objects by multiple class fields

How to sort an array of Ruby objects by multiple class fieldsBy Alvin Alexander. Last updated: June 3 2016In a previous tutorial I wrote about how to sort an array of Ruby objects by one field in the...

View Article


Ruby - How to convert characters to ASCII decimal (byte) values

Ruby - How to convert characters to ASCII decimal (byte) valuesBy Alvin Alexander. Last updated: June 3 2016Problem: You have a character, or a string of characters, and you want to use a Ruby script...

View Article


Ruby - How to convert ASCII decimal (byte) values to characters

Ruby - How to convert ASCII decimal (byte) values to charactersBy Alvin Alexander. Last updated: June 3 2016Problem: You have a byte value, or a string of byte values, and you want to use a Ruby script...

View Article

A Ruby script to remove binary (garbage) characters from a text file

A Ruby script to remove binary (garbage) characters from a text fileBy Alvin Alexander. Last updated: June 3 2016Problem: You have a file that should be a plain text file, but for some reason it has a...

View Article

Ruby weather and mail example - a ruby script that mails me the weather

Ruby weather and mail example - a ruby script that mails me the weatherBy Alvin Alexander. Last updated: June 3 2016I just finished a Ruby client program that gets the current weather for multiple...

View Article


Ruby developer jobs

Ruby developer jobsBy Alvin Alexander. Last updated: June 3 2016During the past year I've worked with all sorts of programming languages, technologies, and frameworks, including Ruby and Rails; Java,...

View Article

A Ruby JPEG example - Use Ruby to get the date and time from a JPEG file

A Ruby JPEG example - Use Ruby to get the date and time from a JPEG fileBy Alvin Alexander. Last updated: June 3 2016A few weeks ago when I upgraded my iPhone 3G to iOS 4, I hooked up my iPhone to my...

View Article

Ruby stdout and stderr

Ruby stdout and stderrBy Alvin Alexander. Last updated: June 3 2016Very cool, thanks to a comment from a reader I just learned about the Ruby $stdout and $stderr variables. In short, you can write to...

View Article


First Mac Ruby Appscript examples

First Mac Ruby Appscript examplesBy Alvin Alexander. Last updated: June 3 2016I just took a brief look at Ruby Appscript as a potential replacement for AppleScript on Mac OS X. So far it looks...

View Article


Ruby command line arguments

Ruby command line argumentsBy Alvin Alexander. Last updated: June 3 2016Ruby FAQ: How do I read command line arguments in a Ruby script (Ruby command line args)?To read command line args in a Ruby...

View Article

A Ruby Monte Carlo simulation of coin flips

A Ruby Monte Carlo simulation of coin flipsalvinSeptember 3, 2017 - 11:41amRead more about A Ruby Monte Carlo simulation of coin flips1 commentAdd new commentFor some reason or another today I was...

View Article

Ruby - How to convert characters to ASCII decimal (byte) values

Ruby - How to convert characters to ASCII decimal (byte) valuesBy Alvin Alexander. Last updated: June 3 2016Problem: You have a character, or a string of characters, and you want to use a Ruby script...

View Article

Ruby - How to convert ASCII decimal (byte) values to characters

Ruby - How to convert ASCII decimal (byte) values to charactersBy Alvin Alexander. Last updated: June 3 2016Problem: You have a byte value, or a string of byte values, and you want to use a Ruby script...

View Article


A Ruby script to remove binary (garbage) characters from a text file

A Ruby script to remove binary (garbage) characters from a text filealvinJune 9, 2009 - 12:03pmRead more about A Ruby script to remove binary (garbage) characters from a text fileLog in to post...

View Article

Ruby weather and mail example - a ruby script that mails me the weather

Ruby weather and mail example - a ruby script that mails me the weatherBy Alvin Alexander. Last updated: January 22 2018I just finished a Ruby client program that gets the current weather for multiple...

View Article


Ruby developer jobs

Ruby developer jobsBy Alvin Alexander. Last updated: June 3 2016During the past year I've worked with all sorts of programming languages, technologies, and frameworks, including Ruby and Rails; Java,...

View Article

A Ruby JPEG example - Use Ruby to get the date and time from a JPEG file

A Ruby JPEG example - Use Ruby to get the date and time from a JPEG fileBy Alvin Alexander. Last updated: June 3 2016A few weeks ago when I upgraded my iPhone 3G to iOS 4, I hooked up my iPhone to my...

View Article


Ruby stdout and stderr

Ruby stdout and stderrBy Alvin Alexander. Last updated: June 3 2016Very cool, thanks to a comment from a reader I just learned about the Ruby $stdout and $stderr variables. In short, you can write to...

View Article

First Mac Ruby Appscript examples

First Mac Ruby Appscript examplesBy Alvin Alexander. Last updated: June 3 2016I just took a brief look at Ruby Appscript as a potential replacement for AppleScript on Mac OS X. So far it looks...

View Article

Ruby command line arguments

Ruby command line argumentsBy Alvin Alexander. Last updated: June 3 2016Ruby FAQ: How do I read command line arguments in a Ruby script (Ruby command line args)?To read command line args in a Ruby...

View Article
Browsing all 21 articles
Browse latest View live