Author |
Message |
Naveg
|
Posted: Thu Mar 24, 2005 10:59 pm Post subject: New Forums? |
|
|
Is the Ruby forum new? or did i just get access to it...what other forums do we have here? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
Posted: Thu Mar 24, 2005 11:05 pm Post subject: Re: New Forums? |
|
|
Vladimir wrote: 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
|
Posted: Fri Mar 25, 2005 12:19 am Post subject: (No subject) |
|
|
Ah- good.
Ruby needed a forum- it seems to be getting really popular. |
|
|
|
|
|
wtd
|
Posted: Fri Mar 25, 2005 12:21 am Post subject: (No subject) |
|
|
Here and elsewhere. Ruby's the rising star of the programing world. |
|
|
|
|
|
Bacchus
|
Posted: Fri Mar 25, 2005 12:21 am Post subject: (No subject) |
|
|
how bout Python for the next new one? |
|
|
|
|
|
wtd
|
Posted: Fri Mar 25, 2005 12:26 am Post subject: (No subject) |
|
|
Nawww... I'm working on Haskell for the next popular language here.
Oh, and if you have any Python questions, ask away. |
|
|
|
|
|
Bacchus
|
Posted: Fri Mar 25, 2005 12:31 am Post subject: (No subject) |
|
|
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
|
Posted: Fri Mar 25, 2005 12:47 am Post subject: (No subject) |
|
|
Beginner's Guide
As for reading web pages...
code: | 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:
code: | 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 |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: Fri Mar 25, 2005 9:11 pm Post subject: (No subject) |
|
|
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
|
Posted: Fri Mar 25, 2005 9:17 pm Post subject: (No subject) |
|
|
hmm probably although all mod decissions are taken by the senior staff (compsci board of directors )
you see compsci.ca has become more communistic vs dictatored. and hell no its not democratic.
but finally its up to wtd, to accpet or decline. |
|
|
|
|
|
wtd
|
Posted: Fri Mar 25, 2005 9:33 pm Post subject: (No subject) |
|
|
rizzix wrote: but finally its up to wtd, to accpet or decline.
Oh, what the heck... why not? |
|
|
|
|
|
Mazer
|
Posted: Fri Mar 25, 2005 10:04 pm Post subject: (No subject) |
|
|
But wtd, what about your... responsibilities?
Scientific discoveries won't make themselves!
PS: welcome to the club. |
|
|
|
|
|
wtd
|
Posted: Fri Mar 25, 2005 10:09 pm Post subject: (No subject) |
|
|
Coutsos wrote: But wtd, what about your... responsibilities?
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
|
Posted: Fri Mar 25, 2005 10:56 pm Post subject: (No subject) |
|
|
Coutsos wrote: 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... |
|
|
|
|
|
Tony
|
Posted: Fri Mar 25, 2005 11:57 pm Post subject: (No subject) |
|
|
oh... umm... let me try to figure those things out |
|
|
|
|
|
|