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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
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. ![Smile Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Amailer
![](http://compsci.ca/wiki/images/1/19/Avatar.jpg)
|
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. |
|
|
|
|
![](images/spacer.gif) |
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. |
|
|
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: Fri Mar 25, 2005 12:21 am Post subject: (No subject) |
|
|
how bout Python for the next new one? ![Razz Razz](http://compsci.ca/v3/images/smiles/icon_razz.gif) |
|
|
|
|
![](images/spacer.gif) |
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. |
|
|
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
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? |
|
|
|
|
![](images/spacer.gif) |
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 |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
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? |
|
|
|
|
![](images/spacer.gif) |
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. |
|
|
|
|
![](images/spacer.gif) |
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? ![Smile Smile](http://compsci.ca/v3/images/smiles/icon_smile.gif) |
|
|
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
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. |
|
|
|
|
![](images/spacer.gif) |
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. ![Wink Wink](images/smiles/icon_wink.gif) |
|
|
|
|
![](images/spacer.gif) |
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... ![Evil or Very Mad Evil or Very Mad](http://compsci.ca/v3/images/smiles/icon_evil.gif) |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Fri Mar 25, 2005 11:57 pm Post subject: (No subject) |
|
|
oh... umm... let me try to figure those things out ![Laughing Laughing](http://compsci.ca/v3/images/smiles/icon_lol.gif) |
|
|
|
|
![](images/spacer.gif) |
|