Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
70% Quality Score
Upvotes Received
8
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
1 Commented Post
0 Endorsements
Ranked #864
~24.2K People Reached
Favorite Tags
Member Avatar for zachabesh

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.

Member Avatar for zarfishan
0
5K
Member Avatar for kiddo39

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 …

Member Avatar for jeugtsy
0
653
Member Avatar for adaniel058

My teacher has assigned us a HW to do and I can not seem to figure out how to group the results the way he wants them. What we have is a database of properties and owners. He wants us to generate a report that contains only the Owner names …

Member Avatar for jcarbillon
0
196
Member Avatar for am_dumb

hy.... how to get year now and 10 year before with query result is 2009,2008,2007,2006,...... thanx..

Member Avatar for baki100
0
122
Member Avatar for programing

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

Member Avatar for baki100
0
63
Member Avatar for baki100

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.

Member Avatar for baki100
0
103
Member Avatar for baki100

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.

Member Avatar for baki100
0
88
Member Avatar for lewashby

[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: " …

Member Avatar for TrustyTony
1
243
Member Avatar for kelokely

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 …

Member Avatar for baki100
0
113
Member Avatar for ic_m

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 …

Member Avatar for baki100
0
182
Member Avatar for sravan953

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)) …

Member Avatar for baki100
1
1K
Member Avatar for eagles1

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 …

Member Avatar for baki100
0
700
Member Avatar for baki100

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 …

Member Avatar for baki100
0
960
Member Avatar for baki100

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

Member Avatar for baki100
0
152
Member Avatar for El Duke

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 …

Member Avatar for vegaseat
0
131
Member Avatar for soley

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 …

Member Avatar for Wards
0
107
Member Avatar for punter999

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 …

Member Avatar for vegaseat
0
121
Member Avatar for trashr0x

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 …

Member Avatar for baki100
0
90
Member Avatar for Aamit

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 …

Member Avatar for baki100
0
151
Member Avatar for jlego

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 …

Member Avatar for jlego
0
126
Member Avatar for ziashahid

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 …

Member Avatar for baki100
0
1K
Member Avatar for UberJoker

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] …

Member Avatar for UberJoker
0
148
Member Avatar for lewashby

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 …

Member Avatar for GTR3521
0
82
Member Avatar for jrosh

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.

Member Avatar for baki100
0
64
Member Avatar for aruti

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` …

Member Avatar for rch1231
0
2K
Member Avatar for sjgriffiths

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) …

Member Avatar for woooee
0
176
Member Avatar for laccko

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 …

Member Avatar for woooee
0
138
Member Avatar for bandibas

[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() + "',' …

Member Avatar for baki100
0
62
Member Avatar for sonikadugar

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 …

Member Avatar for baki100
0
156
Member Avatar for J3vr0N

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) …

Member Avatar for J3vr0N
0
205