15,185 Topics

Member Avatar for
Member Avatar for tony75

HI I need to copy .dll files in C:\Windows\system32\ which is found or match in my my_file.txt file to C:\tools folder. my code not work and need also to found words that can match my_file.txt. so for example I have RICHED20.dll in my my_file.txt if the same file name"RICHED20.dll" exist …

Member Avatar for snippsat
0
1K
Member Avatar for WHchaz1027

Hello Guys, Good Day. I have this kind of error `OperationalError: no such table: table_name` when I make a query like `modelname.objects.all()` in **manage.py shell**. But I already did the ff: 1. settings.py > Databases > django.db.backends.postgresql_psycopg2 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), }, 'db_foo': { …

Member Avatar for WHchaz1027
0
695
Member Avatar for j.heller

hello daniweb community; The first window my application shows is this one: def init(win): win.title("Ausgangsposition") win.minsize(800, 600) getcurrentrateandcurrentbalance() btn.pack() Usage of win: win = Tk() win = Toplevel() methode getcurrentrateandcurrentbalance() def getcurrentrateandcurrentbalance(): threading.Timer(5.0, getcurrentrateandcurrentbalance).start() print "Hello, World!" + result lab=Label(win, text="Aktueller Kurs: " + res +" Euro/BTC", bg='#40E0D0', fg='#FF0000') lab2=Label(win,text="Aktuell …

Member Avatar for woooee
0
5K
Member Avatar for abaddon2031

I have a python script that connects to my database and updates it with a file that i specify. But i keep getting a syntax error on line 5 and for the life of me i can not figure out what it is. If someone could pointit out and how …

Member Avatar for abaddon2031
0
453
Member Avatar for varshaholla

I'm working on images and its working fine when code is out of function, and gives error when code is inside the function. My code is: def matching_image(): i = 0 resultlist_key = [] result_list = list() a_list = list() b_list = list() a_list.append(feature_matrix_ip)# feature_matrix_ip contains features of the query …

Member Avatar for varshaholla
0
5K
Member Avatar for abaddon2031

Ok i have a daily csv file that i am trying to get python to post to my database every day. I have used curl befor to post it but i want to set python up so that it post it for me is there a way to do this …

Member Avatar for abaddon2031
0
303
Member Avatar for nib.nalin

roblem Minesweeper is a computer game that became popular in the 1980s, and is still included in some versions of the Microsoft Windows operating system. This problem has a similar idea, but it does not assume you have played Minesweeper. In this problem, you are playing a game on a …

Member Avatar for slate
0
278
Member Avatar for j.heller

hello daniweb community; After a click on a button I need to "direct" the user from the current window to another, like you may know it from installations ("Yes I accept TOS"->click->new window please select installation path). Kind regards;

Member Avatar for j.heller
0
399
Member Avatar for vegaseat

If you use the Windows OS, then IronPython allows you to create a GUI program taking advantage of the .NET framework. You also have the option to compile the program into a standalone .exe file (and the needed .dll file).

Member Avatar for vegaseat
3
554
Member Avatar for j.heller

hello friends; I'v used the tutorial (http://www.daniweb.com/software-development/python/code/216550/tkinter-to-put-a-gif-image-on-a-canvas-python) but now the animation of my .gif doesn't work. I have used much more .gifs (animated) to check if the one was broken but no animated .gif is working in my GUI. Any idea how to fix this problem? Kind regards;

Member Avatar for vegaseat
0
495
Member Avatar for trade19

hi I want to know the easyest way to readline() or readlines() or read() a file so far I have this >>> file = open( 'write_total.txt', 'r' ) >>> file.readlines() ['Line 1\n', 'Line 2\n', 'Line 3\n', 'Line 1\n', 'Line 2\n', 'Line 3\n'] >>> I am not sure why this repeats …

Member Avatar for trade19
0
276
Member Avatar for tony75

Hi Please I need your help with this script. I have an logfile.xml and I need to picks the file names of the path but not duplicate and writes them into a bat file, like copy %windiw&\system32\<filename> %1% Output example for my .bat file should look like copy %windiw&\system32\ dbghelp.dll …

Member Avatar for tony75
0
1K
Member Avatar for abaddon2031

I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written …

Member Avatar for rrashkin
0
231
Member Avatar for abaddon2031

Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but …

Member Avatar for abaddon2031
0
425
Member Avatar for abaddon2031

SO im working on a python code that reads a csv file with 1600 entries roughly and i am splitting them up on the collum value of pc numbers. I keep getting a error that states " Traceback (most recent call last): File "C:\Users\HatterX\Desktop\test\test25", line 50, in <module> data.sort(key=lambda x: …

Member Avatar for abaddon2031
0
482
Member Avatar for Alex_24

so heres the code import pyHook, pythoncom, sys, logging file_log = 'C:\\LogFile\\log.txt' some other non important stuff here so the issue is that everytime i try to run the program it says that pyHook is not a module. I have downloaded it for my system but it still doesnt work, …

Member Avatar for tony75
0
609
Member Avatar for sureronald

An image resize script that I have written to scale images from a digital camera. I couldn't used the gimp (my favourite image editor) to scale each of them one by one. This script takes two arguments which are both directory names. The first one is the directory containing images …

Member Avatar for Budy_1
0
737
Member Avatar for vegaseat

Using the Python Image Library (PIL) you can resize an image. Several filters can be specified. ANTIALIAS is best for downsampling, the other filters work better with upsampling (increasing the size). In this code snippet one image of each filter option is saved, so you can compare the quality in …

Member Avatar for Budy_1
0
73K
Member Avatar for tony75

Hi I’m working right now with computer forensics. I have an xml file which I have saved from Process Monitor . The file look like <?xml version="1.0" encoding="UTF-8"?> <Company>Sysinternals - www.sysinternals.com</Company> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6de80000</BaseAddress> <Size>24576</Size> <Path>C:\Windows\system32\Riched32.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>Wrapper Dll for Richedit 1.0</Description> </module> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6f3b0000</BaseAddress> <Size>65536</Size> …

Member Avatar for tony75
0
496
Member Avatar for varshaholla

I have two functions declared in my program, and i want to use the variables in another function to display the matched images. My code is: def messageWindow(): win = Toplevel() path = 'C:\Users\HP\Desktop\dataset' COLUMNS = 12 image_count = 0 for infile in glob.glob(os.path.join(path, '*.jpg')): image_count += 1 r, c …

Member Avatar for woooee
0
468
Member Avatar for abaddon2031

Ok so i didnt know where to post this but i am getting two errors while useing cURL. The first says cURL: (26) coudn't open file "test.csv". The second one keeps saying please upload a file. I have been trying to fix this for over a hour now and can …

0
147
Member Avatar for Diego_4

# I want to print a string in uppercase and backwards# string = raw_input ("Favor ingrese su cadena-> ") print string.upper() #this one prints only in uppercase# `HELLO` #I want to print it backwards# `OLLEH`

Member Avatar for mosquitohippy
0
257
Member Avatar for Diego_4
Member Avatar for mosquitohippy
0
237
Member Avatar for haze man

Hi guys I have already posted code to do with a solar system but this is my second go at it to make it better and more clean but i am have trouble making it actually print out the result in turtle. Could some one please help me? I think …

0
148
Member Avatar for vegaseat
Member Avatar for kostas89
2
12K
Member Avatar for novicecoder10

#### Function secondLoop has the same components with the additional lines # number = len(sentence) while number != 0 #While flag==True letter = input("Enter letter: ") # letter is asked in function again if letter not in enteredLetters: find = sentence.find(letter) if find == -1: print("Letter is not in word") …

Member Avatar for woooee
0
232
Member Avatar for takumi05

hey with this code that ive written, im not sure why its not outputting a value for the BMI.. can anyone help?? thanks def application(environ, start_response): headers = [('content-type', 'text/html')] start_response('200 OK', headers) formdata = cgi.FieldStorage(environ=environ, fp=environ['wsgi.input']) if formdata.has_key('Mass') and formdata.has_key('Height'): Mass = float(formdata.getvalue('Mass')) Height = float(formdata.getvalue('Height')) BMI = formdata.getvalue('Mass/(Height*Height)') …

Member Avatar for nadeem.lalani.3
0
214
Member Avatar for varshaholla

I wanted to display the blue mean value in the text box, but it is giving me an error blue.set(B_mean1) AttributeError: 'numpy.ndarray' object has no attribute 'set' And this is my code: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR …

Member Avatar for woooee
0
3K
Member Avatar for varshaholla

i'm taking the image from the user, and displaying it using label. Now i have to use that image for further processing. my code is: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR import * from experiment import * from …

Member Avatar for vegaseat
0
888
Member Avatar for John A.

Hey guys, I'm trying to get all links on a website using BeautifulSoup, Queue, Threading, and urllib2. I am specifically looking for links that lead to other pages of the same site. It runs for a few seconds, going through about 3 URLs before giving me the error: Traceback (most …

Member Avatar for Sky Diploma
0
729

The End.