- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 8
- Posts with Upvotes
- 7
- Upvoting Members
- 6
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
There seems to be a variety of ways to do this on the net, does anybody have a tested solution? Suggestions to look at various modules and such appreciated. I don't need the full code. |
|
Hi, I'm trying to run code that asks a yes or no question. If a yes or no isn't entered, then the question will continue to re-ask say every 3 seconds until a yes or no is entered. Here's the basics of it: [code] while True: response = raw_input(" Are … |
|
hy.... how to get year now and 10 year before with query result is 2009,2008,2007,2006,...... thanx.. |
|
hi can i reset my password and user name for oracle 10g i lost all users and user default it can not log using system . sys or scott at moment plz how i can rest password i have to do project and i cant acess to sql plus |
|
Hi i'm stuck on this script that i'm busy writing and have no idea where to start. I need a script that connects to a secure ftp, downloads files and store it on my local pc. has anyone done something similar and which modules should i be looking at. |
|
Can this be done in python and which module would i have to look at. I haven't experimented with this and if I have to guess would it be the os.renames() function. |
|
[CODE]def find_details(id2find): surfers_f = open("surfing_data.csv") for eash_line in surfers_f: s = {} (s["id"], s["country"], s["average"], s["board"], s["age"]) = eash_line.split(";") if id2find == int(s["id"]): surfers_f.close() return(s) return({}) lookup_id = int(input("Enter the id of the surfer: ")) surfer = find_details(lookup_id) if surfer: print("ID: " + surfer["id"]) print("Name: " + surfer["name"]) print("Country: " … |
|
I have a list of files of similar format. I want to extract all lines form each file that are containing exact character for example I need to extract only lines with TPO and saving to another file also I need to extract only lines with HOH and saving to … |
|
Need help to code a program which: - validate user input, accept values that a user has entered (ex, a, b, c, d, e) - any other values other than these are to be treated invalid with a message and block it from processing. - Prompt the user to enter … |
|
|
Hey All, I have 'Py-mailer' here.... here's how it is so far: [code='python'] import smtplib import wx window=wx.App() class pymailer(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,"Py-mailer",size=(900,700)) self.panel=wx.Panel(self,-1) menubar=wx.MenuBar() filem=wx.Menu() filem.Append(201,"Quit") self.Bind(wx.EVT_MENU,self.Quit,id=201) viewm=wx.Menu() viewm.Append(202,"About") self.Bind(wx.EVT_MENU,self.About,id=202) menubar.Append(filem,"File") menubar.Append(viewm,"Help") self.SetMenuBar(menubar) wx.StaticText(self.panel, -1, "Login ID:", pos=(10,10)) wx.StaticText(self.panel, -1, "Password:", pos=(10,40)) self.username=wx.TextCtrl(self.panel,101,"Login ID",pos=(100,10)) self.password=wx.TextCtrl(self.panel,102,"Password",style=(wx.TE_PASSWORD),pos=(100,40)) wx.StaticText(self.panel, -1, "@gmail.com", pos=(220,10)) … |
I have an excel spreadsheet that has 2 used columns. Using Python I have to read the data in those to columns. So far I have a code that lists the item in column A and B on Python GUI. Once that is done I have to write code so … |
|
Okay i have created a wxPython application and converted it into an windows executable programme using py2exe. The app works perfectly but every time i run the exe the console window appears with the gui. Is there anyway to get rid of the console because the app has to run … |
|
What method / methods should be be used in order to get the frame to start up in a central position of the screen, and could you also provide the code please. I'm using wxPython. thanks |
|
Hi all, I have this dilemma, if I receive strings on the form of: <Ranking: AA (John)> <Ranking: CA (Peter)> <Ranking: TA-A (Samantha)> And I want to take the ranking only from the strings (i.e. AA, CA, TA-A) How can I do it using string methods like split or strip … |
|
So, after way too long, I'm finally starting college this coming January. I plan on going full time, but I still have one more class to fill up the gap. My question to this wonderful community is this: I'm already taking an intro to C class, but there's also an … |
|
hello, i am new to python and i want to do development in python now. my problem is that: tell me what should be install in the system to start python development? tell me which is the best editor that can help to edit and run python code efficiently? tell … |
|
I have a mysql db with 3 tables (this is supposed to be a db for a dvd rental store) 1) MOVIE PK MovieID Title Type Year Producer 2) CLIENT PK ClientID Name Address City 3) RENT PK RentID Date FK MovieID FK ClientID Cost The exercise told us we … |
|
i write query like select * from pm_task_user_work LEFT JOIN pm_task_allotment ON pm_task_allotment.task_allotment_id=pm_task_user_work.task_allotment_id where pm_task_user_work.project_id='19' and (Select str_to_date(pm_task_user_work.task_user_work_link_time,'%Y-%m-%d') as MyDate from pm_task_user_work) BETWEEN '2009-12-15' AND '2009-12-15' order by pm_task_user_work.project_module_id,pm_task_user_work.task_user_work_link_follow It gives me Subquery returns more than 1 row ------------ 2> SELECT pm_task_user_work . * , str_to_date( pm_task_user_work.task_user_work_link_time, '%Y-%m-%d' ) AS … |
|
this is not a web design question, i'm actually using it in vb.net but they don't have a database forum in the software development section. what i am doing: i have two tables. customer and customer_phones my visual basic program has a search for customer option, which returns the customers … |
|
Hi, I am zipping a folder and an error occurred in below code which says : ==> AttributeError: 'builtin_function_or_method' object has no attribute 'tell' [B]zipfile.py:[/B] [CODE] def write(self, filename, arcname=None, compress_type=None): ... zinfo.header_offset = self.fp.tell() # Start of header bytes ... ... [/CODE] FYI:I have tried using "from zipfile import … |
|
Hello everyone. Got a bit of a weird problem here. I cant seem to figure out a way to read a file with a format like this... hello what 100 200 its a string string integer integer i need to put each of those values in separate arrays. eg: array1[0] … |
|
I've been trying to learn how to program for several years now. I've struggled with everything from C++, C#, to Python, but never got passed simple DOS text based screen programs that were very short. I'M now 24 and I work in a factory. I would love to find a … |
|
How to write the query to [B]insert a picture[/B] to mysql data field which is declared as [B]BLOB.[/B] I would like to knw the[B] pure sql query[/B] with out any involvement of a programing language.(If there is such) Thankx in advance. |
|
Please tell me can we insert data in multiple table with single query in mysql. For example i have two table with name `table1` and `table2` and fields in `table1` are 'id' auto incremented and primary key, second field is 'name' data type varchar of 25 and another table `table2` … |
|
hello I am inserting records into a MYSQL table via a loop Records are being inserted, but every now and then the program bombs out with the below message There is nothing wrong with the query line though (If i restart the job, this record will be inserted without issue) … |
|
I need to use a semaphore simulator Sync.py that is written in Pythone and new program (also written in Pythone) is added as parameter. There is problem with classical syntax of If statement, I do not know how to write there else branch as well as more than one command … |
|
[code] private void SubmitActionPerformed(java.awt.event.ActionEvent evt) { try { Statement s = con.createStatement(); Statement s1 = con.createStatement(); Statement s2 = con.createStatement(); Statement s3 = con.createStatement(); ResultSet rs = s.executeQuery("select MAX(Guest_ID) from Guests"); rs.next(); int maxGuestID = rs.getInt(1) + 1; //s1.execute("insert into Guests values(" + maxGuestID + ",'" + txtUserName.getText() + "',' … |
|
IN MySQl Stored Procedure how to pass Parameters with parameter name and values i.e. [code] DELIMITER // CREATE PROCEDURE GetOffice (countryName VARCHAR(255), countryId int(11)) BEGIN SELECT city, phone FROM offices WHERE country = countryName AND country_id = countryId; END // DELIMITER ; CALL GetOffice("India",1); [/code] This works fine but i … |
|
Hi, I have a question regarding a SQL query. I am a complete noob, so please do not make fun of me. Here is a schema that I created: [code] JOURNALS(j_num, j_name, j_subject_area, chief_editor_r_ssn) ISSUES(j_num, i_num, i_date, i_num_pages) RESEARCHERS(r_ssn, r_name, r_address, r_phone, r_institution) ARTICLES(art_num, art_title, art_area_topic, art_abstract, j_num_submitted,date_submitted, j_num_published, i_num_published) … |