
-----------------------------------
Naveg
Thu Mar 24, 2005 10:59 pm

New Forums?
-----------------------------------
Is the Ruby forum new? or did i just get access to it...what other forums do we have here?

-----------------------------------
wtd
Thu Mar 24, 2005 11:05 pm

Re: New Forums?
-----------------------------------
Is the Ruby forum new? or did i just get access to it...what other forums do we have here?

It's new.  Go learn Ruby so you can enjoy it.  :)

-----------------------------------
Amailer
Fri Mar 25, 2005 12:19 am


-----------------------------------
Ah- good.
Ruby needed a forum- it seems to be getting really popular.

-----------------------------------
wtd
Fri Mar 25, 2005 12:21 am


-----------------------------------
Here and elsewhere.  Ruby's the rising star of the programing world.

-----------------------------------
Bacchus
Fri Mar 25, 2005 12:21 am


-----------------------------------
how bout Python for the next new one? :P

-----------------------------------
wtd
Fri Mar 25, 2005 12:26 am


-----------------------------------
Nawww... I'm working on Haskell for the next popular language here.  :)

Oh, and if you have any Python questions, ask away.

-----------------------------------
Bacchus
Fri Mar 25, 2005 12:31 am


-----------------------------------
well i was really just going for some good tutorials to help get started. i kno some basics but is there a way to make a program interact with a website? kinda like clicking?

-----------------------------------
wtd
Fri Mar 25, 2005 12:47 am


-----------------------------------
from urllib2 import urlopen, Request, URLError

request = Request(url="http://www.compsci.ca")

try:
   web_page_handle = urlopen(request)
   contents = web_page_handle.read()
   print contents
except URLError:
   print "Couldn't open the URL."
except:
   print "Some unexpected error occurred."
finally:
   f.close()

For what it's worth, the equivalent Ruby:

require 'open-uri'

begin
   web_page_handle = open "http://www.compsci.ca"
   contents = web_page_handle.read
   puts contents
rescue SocketError
   puts "Couldn't open the URL."
rescue
   puts "Some unexpected error occurred."
ensure
   f.close
end

-----------------------------------
Delos
Fri Mar 25, 2005 9:11 pm


-----------------------------------
Ruby Forum!

Awsomeness....now perhaps I'll be inspired enough to continue learning that language.  From what little I know of it (and I mean *little*), it's completely deserving of all the attention it gets.

So, does that mean that wtd gets to be bumped to Ruby Moderator status?

-----------------------------------
rizzix
Fri Mar 25, 2005 9:17 pm


-----------------------------------
hmm probably although all mod decissions are taken by the senior staff (compsci board of directors  :wink:)

you see compsci.ca has become more communistic vs dictatored. and hell no its not democratic. :twisted:

but finally its up to wtd, to accpet or decline.

-----------------------------------
wtd
Fri Mar 25, 2005 9:33 pm


-----------------------------------
but finally its up to wtd, to accpet or decline.

Oh, what the heck... why not?  :)

-----------------------------------
Mazer
Fri Mar 25, 2005 10:04 pm


-----------------------------------
But wtd, what about your... responsibilities?  :D 
Scientific discoveries won't make themselves!

PS: welcome to the club.

-----------------------------------
wtd
Fri Mar 25, 2005 10:09 pm


-----------------------------------
But wtd, what about your... responsibilities?  :D 
Scientific discoveries won't make themselves!

PS: welcome to the club.

I'm more about inspiring others to make great discoveries, then taking a small part of the credit.  ;)

-----------------------------------
rizzix
Fri Mar 25, 2005 10:56 pm


-----------------------------------
PS: welcome to the club. hmm not yet.. not every one has voted yet. hmm. but so far its 100% in favour. besides why are the admins sleeping over zylum's moderators status? 87% of his votes were in favour!

tony... :evil:

-----------------------------------
Tony
Fri Mar 25, 2005 11:57 pm


-----------------------------------
oh... umm... let me try to figure those things out :lol:

-----------------------------------
rizzix
Sat Mar 26, 2005 1:44 am


-----------------------------------
yea u might wanna change their titles as well. hmm.

btw: welcome wtd, and zylum u too, if u happen to read this post.. heh.

-----------------------------------
Delos
Sun Mar 27, 2005 5:08 pm


-----------------------------------
yea u might wanna change their titles as well. hmm.

btw: welcome wtd, and zylum u too, if u happen to read this post.. heh.

There is such a thing as Hope that link works
