Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
23% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
5
Posts with Downvotes
2
Downvoting Members
5
4 Commented Posts
~81.4K People Reached
Interests
i am a keen DJ and like to mix break beat and hard trance, also a very keen newbie software writer (and…

27 Posted Topics

Member Avatar for ruwach

[QUOTE=vegaseat;125380]Use readlines() to get a list of lines ... [code=python]# read a text file as a list of lines # find the last line, change to a file you have fileHandle = open ( 'test3.txt',"r" ) lineList = fileHandle.readlines() fileHandle.close() print lineList print "The last line is:" print lineList[len(lineList)-1] # …

Member Avatar for gunjan_3
0
63K
Member Avatar for vegaseat

hi I am doing something very similar what i want is to be able to pull the 6 latest modified / original file like so ... ex1.txt = 28/06/10 ex2.txt = 27/06/10 ex3.txt = 24/06/10 ex4.txt = 19/06/10 I am using the same code as above with a few tweaks …

Member Avatar for leong87
2
8K
Member Avatar for danholding

hi i have a drop down list where i select an employee id, once i click the button i want it to populate the Rate text box with the rate which matches the id from the table in sql. i have this so far but not sure if i have …

0
84
Member Avatar for danholding

hi i have a drop down list where i select an employee id, once i click the button i want it to populate the Rate text box with the rate which matches the id from the table in sql. i have this so far but not sure if i have …

Member Avatar for danholding
0
218
Member Avatar for danholding

apologies if this is in the wrong section, the situation: i have a drop down box with the values 1 - 10 [CODE]<asp:DropDownList ID="DD" runat="server" Text='<%# Bind("DD") %>'> <asp:ListItem Value="1"></asp:ListItem> <asp:ListItem Value="2"></asp:ListItem> <asp:ListItem Value="3"></asp:ListItem> <asp:ListItem Value="4"></asp:ListItem> <asp:ListItem Value="5" Selected="True"></asp:ListItem> <asp:ListItem Value="6"></asp:ListItem> <asp:ListItem Value="7"></asp:ListItem> <asp:ListItem Value="8"></asp:ListItem> <asp:ListItem Value="9"></asp:ListItem> <asp:ListItem Value="10"></asp:ListItem> </asp:DropDownList>[/CODE] …

Member Avatar for danholding
0
532
Member Avatar for danholding

[CODE=php]<?php if (isset($_FILES["file"]["name"])) { if ($_FILES["file"]["type"] == "application/x-download" || ($_FILES["file"]["type"] == "application/octet-stream" && strrchr($_FILES['file']['name'],'.')==".odt") || $_FILES["file"]["type"] == "text/plain") { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . …

Member Avatar for danholding
-4
549
Member Avatar for danholding

input [CODE=python]import math print(repr(math.pi)) print(str(math.pi)) [/CODE] output [CODE=python]3.141592653589793 3.141592653589793[/CODE] could someone please tell me what the difference between [CODE=python]repr[/CODE] and [CODE=python]str[/CODE] is as the example on the documentation does not help as they both return the same figure? surely it does something more complex?

Member Avatar for vegaseat
0
1K
Member Avatar for Rik_

hi guys i have win7 64bit aswell and i have avg installed aswell i have not had any problems till this morning when i started using the computer i moved the mouse about 1 inch and it froze and blue screened and now every time i start up it loads …

Member Avatar for Rik_
0
491
Member Avatar for danholding

continued from this thread! [url]http://www.daniweb.com/software-development/python/threads/353210[/url] i have a file which i am currently working on which will remove all pipes and replace them with a comma. that all works fine it the second bit i am currently stuck on.. i need to remove the first two CAPITAL letters from the …

Member Avatar for danholding
0
145
Member Avatar for danholding

please bare with me as im a returning newbie and have not really used re.expression much and still get very confused! my problem! i am currently working on a few database records which need appending. this is one of the files i need to resort the data base has now …

Member Avatar for TrustyTony
0
427
Member Avatar for Micko

[QUOTE=zovuyo2002;522321]guys im still a newbie in programming I also had problem in running this small things im doing in python ,so if its possible can u plz send for me the best tutorial link to this email add [email]grigerdrogba@webmail.co.za[/email] cheers[/QUOTE] hi there mate if you are still after a tutorial …

Member Avatar for danholding
0
2K
Member Avatar for danholding

Hi all i have been dancing around this problem for a couple of weeks now and have not got any closer. Description: i have created a crystal report in SQL5 and exported it fine but now i have gone to open it in visual studio 2008 and it does not …

Member Avatar for danholding
0
174
Member Avatar for Eagle4Ever

from what you have said it sounds more like a virus than a hacker. quick definition:- hacker = SOMEONE ACCESSES DATA OR A SYSTEM WHICH THEY DON'T HAVE ACCESS TO. virus = COULD BE IN ANY SHAPE OR FORM AND COULD HAVE BEEN CREATED BY ONE OR MORE PEOPLE.

Member Avatar for WaltP
0
220
Member Avatar for danholding

hey guys and girls i am having a bit of a problem with my code [CODE] import os,string,sys,pprint,time,glob from datetime import datetime, timedelta fileList = os.walk('.')#if i use glob.glob it does not show any files now = datetime.now() TWA = now + timedelta(days=-1) #print(TWA) files=str() for files in fileList: fileStats …

Member Avatar for griswolf
0
383
Member Avatar for danholding

hey guys and girls. problem= this computer has worked perfectly since new the power is turned of at the wall after shut-down but when i turn it back on at the wall it decides to boot up on its own. and the monitor does not kick in to life. but …

Member Avatar for Rik_
0
129
Member Avatar for nhes2x

I AGREE im no expert on any language but i would spend a good week trying and testing things and then a few days scratching my head before asking for help. i mean come on.. if this is homework why didn't you just tell your teacher to give you the …

Member Avatar for danholding
-1
155
Member Avatar for danholding

im a newbie to python still so bare with me if i have gone down the wrong route or my explanation is confusing!! any ideas on how i can sort my list by the size of the file at the moment it is getting the size of the file and …

Member Avatar for TrustyTony
0
240
Member Avatar for danholding

hi guys n girls im making a list of the biggest files on my computer i have got most of the coding done but i have hit a brick wall with the sort function. i can sort the size or the file name but as they are both in the …

Member Avatar for VulcanDesign
0
528
Member Avatar for danholding

how do i get round this error then because i have a mixed list of file names and their size i need it sorted by the size and i get errors trying to sort the size on its own because of they way it pairs the file name and the …

Member Avatar for TrustyTony
0
106
Member Avatar for danholding

im wanting to sort files by size and pick the top 20 i have managed this with the glob.glob statement but it does not work quickly and does not pick up if a file is modified/ added while the code is running. i have worked out how to do this …

Member Avatar for Gribouillis
0
200
Member Avatar for danholding

hey guys n girls, im using python 3.1.2 i am currently creating a process to: 1) check a directory does not exist, 2) check for illegal char's from a list i have made, 3) pass it to a program,-program creates directory, 4) and passes a value back to python 5) …

Member Avatar for Gribouillis
0
267
Member Avatar for danholding

i am a newbie to python (well to all programming really) i am having problems with "pywinuato" i have downloaded it and installed it but when i try to import it, it states that there is no module names "pywinauto" am i missing something. also i tried deleting it and …

Member Avatar for cghtkh
0
378
Member Avatar for danholding

[CODE]Traceback (most recent call last): File "C:\Documents and Settings\Administrator\My Documents\textprocessing\test files\keep 6 latest file.py", line 37, in <module> shutil.move(file_name, dst_file) File "C:\Python31\lib\shutil.py", line 278, in move copy2(src, real_dst) File "C:\Python31\lib\shutil.py", line 113, in copy2 copyfile(src, dst) File "C:\Python31\lib\shutil.py", line 66, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No …

Member Avatar for danholding
0
420
Member Avatar for danholding

i am getting a ValueError message when running my code i am currently converting from 2 to 3 and have come across a brick wall any help would be great :) [code=python] # sorts files by modifed date, collects the 6 most recent files, and delete all others. #created by …

Member Avatar for woooee
0
418
Member Avatar for danholding

hi there i need to collect the 6 latest backup files from a folder every day and currently working on a script to do this for me so far i have managed to pull the 6 latest files as shown in code below but the problem i have is most …

Member Avatar for danholding
0
114
Member Avatar for danholding

hiya guys n girls, i am making a prgram where it sorts a list of files and pulls the 6 most recent files.. that is fine but i need it to pull 6 different dates ie... (this is what it does now test1 - 24/06/10 test2 - 24/06/10 test3 - …

Member Avatar for danholding
0
146
Member Avatar for danholding

hey guy n girls i hope one of you can help me with this. plan of action is to : create a python script to... sort a list of files from a directory into sorted list with most recent modified date at the top. then I want to get rid …

Member Avatar for danholding
0
204

The End.