Re: [Tutor] sometimes I feel like my head is going to explode

2014-07-10 Thread Sacha Rook
At some point in time you will get to a place where you know enough, never everything. That's what makes it fun -Original Message- From: Tutor [mailto:tutor-bounces+sacharook=gmail@python.org] On Behalf Of Deb Wyatt Sent: 10 July 2014 23:36 To: tutor@python.org Subject: [Tutor] som

Re: [Tutor] Which computer operating system is best for Python

2014-02-05 Thread Sacha Rook
Hi as much as I like chrome books My opinion so I would rather give him a laptop either with Linux or windows with free virtualisation software on to run either so and program on both especially if he will be offline. Alternative if you have wifi/network constant connection then just a browse

Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Sacha Rook
Hi Do you need to; return totalCost in the function trip_cost so when you call trip_cost(city, days) it gives you something back? Hope it helps S On 29 April 2013 16:15, Joseph Parkton wrote: > I am working on a codeacademy problem and I am stuck. The instructions are > as follows: > > INST

[Tutor] CSV TO LDIF

2007-11-15 Thread sacha rook
Hi I have a csv of users that I want to update their records in edirectory. I am quite happy to use the ldap import utility to pull an ldif file into edirectory to update information. I am using the csv module to parse the csv, anyone got any suggestions for creating the ldif file from this

[Tutor] data from excel spreadsheet to csv and manipulate

2007-10-03 Thread sacha rook
Hi can anyone help with the best way to tackle this? I have a spreadsheet ms excel, that has a name column that I want to extract to csv and manipulate as follows. The name column has data in this format Name Surname Firstname after extracting and manipulating I want it to be as follow

[Tutor] python and wmi interface

2007-09-19 Thread sacha rook
Hi all can anyone point me in the direction of any python docs or tutorials of interacting with the windows WMI interface ? I am not trying to do anything specific as yet just try to build up a bit of knowledge see what the possibilities are! Thanks in advance for you help :0-) S

[Tutor] remove blank list items

2007-09-14 Thread sacha rook
Hi i was expanding my program to write urls parsed from a html page and write them to a file so i chose www.icq.com to extract the urls from. when i wrote these out to a file and then read the file back I noticed a list of urls then some blank lines then some more urls then some blank lines,

[Tutor] list iteration question for writing to a file on disk

2007-09-14 Thread sacha rook
Hi can someone help with this please? i got to this point with help from the list. from BeautifulSoup import BeautifulSoupdoc = ['Page title', 'This is paragraph one.', 'This is paragraph two.', 'http://www.google.co.uk";>', 'http://www.bbc.co.uk";>', 'http:/

[Tutor] is this a vista issue

2007-09-13 Thread sacha rook
Hi when I run this code on a winxp box I get a nice list of url's when I run this code on a win VISTA box I get this print urlparse.urlparse(href)[1]TypeError: 'module' object is not callable can a. someone tell me why & b. how do i get rid of this condition before I throw vista away

[Tutor] extract hosts from html write to file

2007-09-11 Thread sacha rook
Hi I wonder if anyone can help with the following I am trying to read a html page extract only fully qualified hostnames from the page and output these hostnames to a file on disk to be used later as input to another program. I have this so far import urllib2f=open("c:/tmp/newfile.txt", "w"