-
Install and run an AMQP server (RabbitMQ is a good choise)
-
Install amqp and ncurses-ruby gems
sudo gem install amqp ncurses-ruby
-
Run the client
ruby ./amqp-chat.rb
##References
##Create Rails App
command to make new directory:
mkdir AppName
require 'resolv' | |
class DnsCheck | |
attr_reader :host | |
def initialize(host) | |
@host = host | |
end | |
def a | |
@a ||= Resolv::DNS.new.getresources(host, Resolv::DNS::Resource::IN::A) |