15,181 Topics
| |
since the forum has been quiet for a while I thought to post this program , it might start new discussions . the idea is not new but it should be interesting to starters . as usual any comments is appreciated | |
Can someone please help me? I am using python 2, on mac yosemite thanks Also this is a project by me its a private server for closed toontown online so i have permission to use this. defaultText = "" def __inject_wx(_): code = textbox.GetValue() exec(code, globals()) def openInjector_wx(): app = … | |
Hey,fellow coders!:D I need some help with how to loop the following script until the right input is given:>>> className=input("Are you enetring results for class a, class b or class c:>>>") | |
I use python 3.4.2 + django 1.8 + Mysql database. + Table persons with blob fields in which a photo of a person My question is how can I retrieving and saving a photo with django. | |
Write an expression whose value is the result of converting the str value associated with s to an int value. So if s were associated with "41" then the resulting int would be 41. | |
I am using Tkinter to make a gui to display the output from a usb camera. It is for a microscopy experiment with the idea being that the gui shows a low resolution live stream, but at the click of a button a high resolution image is taken. I have … | |
I have my instructions in the top of my code. But for some reason when I input a decimal and then return my error message like it is supposed to then I input a valid amount it prints everything twice, once for the valid input then once for the valid … | |
Hi Everyone. History: i am self taught developer (5 years + ). mostly doing simple automations in 3dsmax / foundy nuke, maya etc. i worked at a studio (film / animation) as Technical Artist. My weaker side is (server / client). i have done basic sockets tutorials etc to send … | |
Hi, I have text file where I have these lines with numbers: e, 1, 2 e, 1, 3 e, 2, 1 e, 3, 4 etc. I need remove similar lines, in this case line e, 2, 1. Is it possible? | |
Please take a look at the following codes and explain what’s happening here: a = 256 b = 256 a is b #True its ok c = 257 d = 257 c is d #False why e = 258; f=258; e is f //True // why? | |
Here is the CSV file that I am working with: `"A","B","C","D","E","F","G","H","I","J" "88",18,1,"<Req TID=""34"" ReqType=""MS""><IISO /><CID>2</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response T=""3"" RequestType=""MS""><MS><Memb><PrivateMembers /><Ob>0-12-af</Ob><Locator /></Memb><S>[REMOVED]</S><CNum>[REMOVED]</CNum><FName /><LaName /><Address /><HPhone /><Email /><IISO /><MemID /><MemPass /><T /><CID /><T /></MS></Response>",0-JAN-10 12.00.02 AM,27-JUN-15 12.00.00 AM,"26",667,0 "22",22,1,"<Req TID=""45"" ReqType=""MS""><IISO /><CID>4</CID><MemID>0000</MemID><MemPass /><RequestData><S>[REMOVED]</S><Na /><La /><Card>[REMOVED]</Card><Address /><HPhone /><Mail /></ReqData></Req>","<Response … | |
I want to change the color of a text in a given label of a Tkinter using dynamic function Say I have a string s where the data may comes from any serial interface "A or D" If A arrives in my string I want to print that in green … | |
Hi, I am not using Python but I have script in python: part of script `elif line.find("CONECT") > -1: con = line.split() line_value = line_value + 1 #print line_value #print con[2] try: line_j = "e" + ', ' + str(line_value) + ', ' + con[2] + "\n" output_file.write(line_j) print(line_j) line_i … | |
So my semester is almost over and I was dumb when I signed up for intro to programming distance learning, I thought I would understand it, but now I guess I know I can't. Anyways here is the problem. A speeding ticket fine policy in Podunksville is $50 plus $5 … | |
Hi Everyone, I am trying to automate SOAP Web Services using SUDS Python. We use a very complex SOAP XML web operation. So, my requirement here is to generate or create xml request. I will be providing all the required values for the Web Operation to go SUCCESS in an … | |
Hello guys,i have been stuck for days while trying to find how to solve this python problem. here is how the code looks like: set1=['78','18','79','56'] set2=['13','40','16','04'] set3=['63','70','78','60'] set4=['10','35','66','13'] set5=['32','41','71','70'] set6=['50','58','02','11'] set7=['13','40','41','05'] set8=['12','52','50','60'] set9=['71','13','66','12'] set10=['50','90','73','41'] set11=['09','18','44','54'] set12=['12','41','32','67'] Big_Set= [set1, set2, set3, set4, set5, set6, set7, set8, set9, set10, set11, set12] def … | |
I am importing event info from csv files and I'm having trouble with the event time. Event times are 12-hour time: hours:minutes am/pm. I converted the strings to datetime objects because the sort function wasn't working with the times as strings using `lambda`. Next, I drop the date info (that's … | |
At my current job me and the rest of the staff that work in my area are uisng a lot of files that when opened look like PDF files but there not. They're actually .exe files and the the program that opens them is called Omni Form Mailable Filler. I've … | |
I found that one can use dictionaries to hold Tkinter widget config and display parameters. This then permits one to have these dictionaries elsewhere in the code for easy modification instead of buried within the code for each widget. I particularly like to place these dictionaries toward the top of … | |
I have been learning NumPy arrays/matrices in Python. As I worked, I found that I desired a more readable form of 3d matrices. So I figured that writing one would be a good goal and learning exercise. The goal was to create a function that would print 3d NumPy matrices … | |
Hi, I don't know much of Django, just the basics I learned from the official django tutorial and have been working on a project of mine as way to learn and master Django. I have two models: Model name - review: name points review category manufacturer Model name - average: … | |
Dears, Good day! Does anyone have experienced to use python code for mapinfo/mapbasic? br, Jovanni | |
Hey guys, I am looking into xbrl files and I need to extract certain data from each of them however, I can't find much information on the existing python-xbrl library, perhaps someone in here has an experience with it? Here's an xbrl file example [Click Here](http://regnskaber.virk.dk/14502803/eGJybHN0b3JlOi8vWC1GMDk4RkNDNi0yMDE0MTIzMV8wOTE2MjFfMDk1L3hicmw.xml) Any ideas/solutions on how … | |
In the last couple of threads people have used the Python class, but really don't seem to know how to use them properly, or why to use them. Hence my question: "Why would you use a class in Python?" I though only Java forces you to use OOP. | |
Hello, for fun I have been learning both linux (Mint) and python3 as of late. I have finished a working code that scrapes yahoo for data and selects a series of stocks for me. Today I finished creating an apache2 server using linux. What I had hoped to do is … | |
Hey guys, how is it going? I am wondering whether this my idea is possible to achieve .. I am looking at this search engine https://datacvr.virk.dk/data/ and it can take names,cvr number, address etc as input and return a facinating output. I think they are using elasticsearch to do all … | |
A sparse vector is a vector whose entries are almost all zero, like [1, 0, 0, 0, 0, 0, 0, 2, 0]. Storing all those zeros wastes memory and dictionaries are commonly used to keep track of just the nonzero entries. For example, the vector shown earlier can be represented … | |
Hi there, I have a file with unicode characters I used url decoder code below on a large file, but what is funny is that it doesn't decode some lines,but when I use the code on a file with just that line it decodes it correctly. import urllib.parse for lines … | |
I'm not a programmer. I am doing a project for Biology where I will be conducting an experiment on reaction times. Briefly, the subject should click anywhere on the screen as soon as a dot or circle (some graphic) appears on the screen. Details: 1. Program must start at a … | |
I'm doing a multi-line string saved to the variable str: str = """ This is a multiline string """ When I `print str` it works fine. But if I print a different multiline string: ` str = """ This is a multiline string """ print str # Works Fine str_2 … |
The End.