Search Results

Showing results 1 to 40 of 198
Search took 0.03 seconds.
Search: Posts Made By: evstevemd
Forum: PHP 14 Days Ago
Replies: 15
Views: 485
Posted By evstevemd
Simple XML (http://php.net/manual/en/book.simplexml.php)?
Forum: Python 28 Days Ago
Replies: 12
Solved: auto-update?
Views: 491
Posted By evstevemd
glad to help :)
Forum: Python 28 Days Ago
Replies: 12
Solved: auto-update?
Views: 491
Posted By evstevemd
I see,
but I suggest you download it somewhere, check integrity of file and if all is well replacing files with updated. I guess your files will get corrupted if urllib2 fails while updating
Forum: Python 29 Days Ago
Replies: 12
Solved: auto-update?
Views: 491
Posted By evstevemd
As I see it, it is a bit complex for the task
you could put a text with three lines
let say this is a server text (serv.txt)


Then use urllib2 to retrieve that data and update your program. You...
Forum: Python 29 Days Ago
Replies: 12
Solved: auto-update?
Views: 491
Posted By evstevemd
Here are my 2cents:
1.Have two textfiles (or whatever) in your server as well as on app
2. app.txt stores current version, last updated, update interval
3. serv.txt stores latest version and...
Forum: Python 29 Days Ago
Replies: 10
Views: 564
Posted By evstevemd
It is LEGAL to ask for starting point, or for PROBLEM in coding But it drives me bananas someone wants his/her homework done. Oh! Why did you go to college/School then?? :lol:
Forum: Python 30 Days Ago
Replies: 9
Solved: IDE for PyQt..
Views: 541
Posted By evstevemd
Have you checked Wing IDE yet?
Eric is most of the time associated with PyQT. It is made by It!
Forum: Python Nov 16th, 2009
Replies: 2
Solved: Center Text
Views: 498
Posted By evstevemd
GUI or Console?
If GUI which one? In wxPython, wx.ALIGN_CENTER would do the Job
Forum: Python Nov 16th, 2009
Replies: 11
Views: 404
Posted By evstevemd
your current code? Please post it!
Forum: Python Nov 16th, 2009
Replies: 11
Views: 404
Posted By evstevemd
Oops!
Multiple Post :cry:
Forum: Python Nov 16th, 2009
Replies: 11
Views: 404
Posted By evstevemd
Here is a tip:
Before the for Loop
>> readlines
Then loop into all lines using for loop
>> replace each occurrence of dot with space (or whatever you like)
>> write it to the new file
Here is...
Forum: Python Nov 16th, 2009
Replies: 5
Views: 324
Posted By evstevemd
Try this and hack it!

j = 0
for i in range(2, 9):
j = pow(i, 2)+j
print "The Final result is %d" %(j, )


BTW this is Python 2.x
Forum: Python Nov 16th, 2009
Replies: 5
Views: 324
Posted By evstevemd
Try this and hack it!

j = 0
for i in range(2, 9):
j = pow(i, 2)+j
print "The Final result is %d" %(j, )


BTW this is Python 2.x
Forum: PHP Nov 16th, 2009
Replies: 4
Views: 375
Posted By evstevemd
alert("Field XYZ is empty, please Fill it out!");
You, just make a JavaScript function to handle validation and only allow to submit when things are ok. That will do relieve a server also
Forum: PHP Nov 16th, 2009
Replies: 7
Views: 353
Posted By evstevemd
you have beaten me Ardav :)
Forum: PHP Nov 16th, 2009
Replies: 7
Views: 353
Posted By evstevemd
Sure, very possible!


Just query database names or whatever and assign it to a variable. Then pass it as an argument to PHP function for making DIRs


You are welcome ;)
Forum: PHP Nov 16th, 2009
Replies: 4
Solved: xampp
Views: 319
Posted By evstevemd
CWarn, that query is kinda confusing to a newbee, or it would at least have confused me at that stage. I think this one is simple to understand
"INSERT INTO employees(FirstName, LastName)...
Forum: PHP Nov 15th, 2009
Replies: 4
Solved: xampp
Views: 319
Posted By evstevemd
I don't recommend XAMPP, though it is good once you get used to it! I recommend WAMP, it is elegant and Good. Also check your PHPMyAdmin to browse your databases
Forum: Python Nov 8th, 2009
Replies: 5
Views: 654
Posted By evstevemd
http://people.csail.mit.edu/hubert/pyaudio/
Forum: PHP Oct 30th, 2009
Replies: 12
Solved: PHP Forum
Views: 377
Posted By evstevemd
Check this you tube
It have good teaching on integrating PHPBB and your site. I hope it will give you an idea to start with :)
http://www.youtube.com/user/phpacademy
Forum: Python Oct 16th, 2009
Replies: 3
Views: 262
Posted By evstevemd
I don't know but If you can mess with tasklist and subprocess module (for XP/VISTA). This is purely untested as I'm not sure if tasklist returns anything!
Forum: Python Oct 15th, 2009
Replies: 4
Views: 436
Posted By evstevemd
Also what Data type of those variables?
If they are numeric, then Just save them as strings. Then retrieve them and use int() or float() to convert them back o numerical values
Forum: Python Oct 13th, 2009
Replies: 18
Views: 668
Posted By evstevemd
replace fname throughout with self.fname
That is because self.fname is accessible throughout the class

try and see what happens
Forum: Python Oct 13th, 2009
Replies: 18
Views: 668
Posted By evstevemd
replace fname throughout with self.fname
That is because self.fname is accessible throughout the class

try and see what happens
Forum: Python Oct 12th, 2009
Replies: 18
Views: 668
Posted By evstevemd
There you are! He is trying to call self.database which is'nt defined anywhere. This should at least work
Forum: Python Oct 11th, 2009
Replies: 18
Views: 668
Posted By evstevemd
where do you get self.database?
I cannot see it in this code either!
Forum: Python Oct 11th, 2009
Replies: 18
Views: 668
Posted By evstevemd
I cannot read your mind but I think the line missing is :
self.database = connection.cursor()

Also I see in line 76
"self.connection.commit()" but I cannot see where self.connection is defined.
Forum: Python Oct 7th, 2009
Replies: 45
Views: 3,128
Posted By evstevemd
Do you you code setup.py by yourself?
If yes, Andrea Gavana have saved you alot of pain by making front end (GUI) for py2exe. It is called GUI2exe
Get It here:
http://code.google.com/p/gui2exe/
I...
Forum: PHP Oct 6th, 2009
Replies: 2
Views: 253
Posted By evstevemd
Export the whole database using PHPMyAdmin
There is export option
Forum: Python Sep 27th, 2009
Replies: 3
Solved: Python Coding
Views: 275
Posted By evstevemd
What version of Python do you have?
Forum: Python Sep 27th, 2009
Replies: 7
Views: 420
Posted By evstevemd
do us a favor and mark it solved :)
Forum: Python Sep 23rd, 2009
Replies: 7
Views: 420
Posted By evstevemd
Have you tried andrea gavana's gui2exe? It have many options that comes from py2exe. It have also other 'packers' options.
Check if it can solve your problem

www.code.google.com/p/gui2exe/
Forum: Python Sep 22nd, 2009
Replies: 12
Views: 438
Posted By evstevemd
That's where sockets comes in MHO.
You will use to send data to the server and then there will be a thread opened to server to save each query. So theoretically this is what I would do :
1. Connect...
Forum: Python Sep 22nd, 2009
Replies: 14
Views: 595
Posted By evstevemd
try learning by dividing the issues at hand using functions:
1.Function that Gets numbers entered by the userand first ask the user how many numbers there are.
2. Find average should always be a...
Forum: Python Sep 22nd, 2009
Replies: 14
Views: 595
Posted By evstevemd
try learning by dividing the issues at hand using functions:
1.Function that Gets numbers entered by the userand first ask the user how many numbers there are.
2. Find average should always be a...
Forum: Python Sep 22nd, 2009
Replies: 12
Views: 438
Posted By evstevemd
As jlm699 said, Postgresql is good but isn't the only one.
You can go with mysql plus mysql-python.
I have read yahoo! and many other big companies uses mysql(not sure if it is with Python or PHP)...
Forum: Python Sep 19th, 2009
Replies: 16
Views: 600
Posted By evstevemd
I was once a fond of global variables as "child" programmer.
As I went on coding, things turned harsh on me. Thanks God I then learned OOP. In OOP, you do alot of stuffs without global variable.
I...
Forum: Python Sep 19th, 2009
Replies: 7
Views: 387
Posted By evstevemd
Alternatively you can use placeholder (same Snee's example)

#Convert C to F
def Tc_to_Tf ():
Tc = input ("What is the Celsius Temperature ? " )
Tf = 9.0/5.0 * Tc + 32
return Tf...
Forum: Python Aug 28th, 2009
Replies: 5
Views: 386
Posted By evstevemd
I was about to say that this method might be efficient. Ooh! It have bad pitfalls I will stick with import and import as
Forum: Python Aug 26th, 2009
Replies: 10
Views: 953
Posted By evstevemd
if it was windows, I could use the system's taskkill with switches /f
here is completely untested example.
This will close any running instance of firefox :)
Not sure about linux. I buried it long...
Showing results 1 to 40 of 198

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC