B
Bigmac Turdsplash
loop {
res =
Net::HTTP.get_response(URI.parse('http://bigmac.t35.com/text.txt'))
print res.body
sleep 3
}
this loop brakes when i get the (SocketError)... i get errors because of
bad connection to my wireless network... i dont know how to handle this
error and keep the script from crashing...
:getaddrinfo: no address associated with hostname. (SocketError)
:in `open'
:in `connect
:in `timeout'
:in `timeout'
:in `connect
:in `do_star
:in `start'
res =
Net::HTTP.get_response(URI.parse('http://bigmac.t35.com/text.txt'))
print res.body
sleep 3
}
this loop brakes when i get the (SocketError)... i get errors because of
bad connection to my wireless network... i dont know how to handle this
error and keep the script from crashing...
:getaddrinfo: no address associated with hostname. (SocketError)
:in `open'
:in `connect
:in `timeout'
:in `timeout'
:in `connect
:in `do_star
:in `start'