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
~80.9K 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…
Favorite Tags
Member Avatar for ruwach

Hey there. i want to set a variable to represent the last line of a text file how do i do that? or even better, how do i create a list of the lines of a text file? any suggestions?

Member Avatar for gunjan_3
0
63K
Member Avatar for vegaseat

This code snippet allows you to list the files in a folder sorted by "last modified date". The tuple returned by the os.stat() function contains amongst other things the last modified date, which is then converted by the time.localtime() function to a tuple that is ideal for sorting. You can …

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
82
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
214
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
526
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
489
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 all. I have long been a fan of AVG free but recently it has been causing headaches. 3 times now my windows 7 ultimate 64bit laptop has been unable to start up correctly. I have had to boot it into safe mode and uninstall AVG free in order to …

Member Avatar for Rik_
0
481
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
143
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
425
Member Avatar for Micko

Hello, I'm using PythonWin and I have a problem. i don't know how to run script from Python shell Pythonwin Interactive Window). For example I wrote this code (from tutorial): [code] import sys print 'Begining... now...' for x in sys.argv: print x [/code] and I save it as Script.py in …

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
173
Member Avatar for Eagle4Ever

I am a newbie, and amateur and I am curious and I hope someone will help me with this, I want to post a thread and Honestly ask where hackers come from, their history and how they got started and most importantly who are they !. Mafia 2. Just plain …

Member Avatar for WaltP
0
216
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
284
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
128
Member Avatar for nhes2x

Construct a C program that will accept up to 3 digit integer number and display the hundredth's digit, tenth's digit, and one's digit. Example: Enter integer number (maximum of 3) : 143 Hundredth's place : 1 Tenth's place : 4 One's place : 3

Member Avatar for danholding
-1
153
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
237
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
522
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
102
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
194
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
261
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
367
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
402
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
408
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
108
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
143
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
201