Forum: PHP 14 Days Ago |
| Replies: 15 Views: 485 Simple XML (http://php.net/manual/en/book.simplexml.php)? |
Forum: Python 28 Days Ago |
| Replies: 12 Views: 491 |
Forum: Python 28 Days Ago |
| Replies: 12 Views: 491 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 Views: 491 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 Views: 491 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 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 Views: 541 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 Views: 498 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 your current code? Please post it! |
Forum: Python Nov 16th, 2009 |
| Replies: 11 Views: 404 Oops!
Multiple Post :cry: |
Forum: Python Nov 16th, 2009 |
| Replies: 11 Views: 404 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 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 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 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 you have beaten me Ardav :) |
Forum: PHP Nov 16th, 2009 |
| Replies: 7 Views: 353 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 Views: 319 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 Views: 319 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 http://people.csail.mit.edu/hubert/pyaudio/ |
Forum: PHP Oct 30th, 2009 |
| Replies: 12 Views: 377 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 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 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 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 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 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 where do you get self.database?
I cannot see it in this code either! |
Forum: Python Oct 11th, 2009 |
| Replies: 18 Views: 668 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 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 Export the whole database using PHPMyAdmin
There is export option |
Forum: Python Sep 27th, 2009 |
| Replies: 3 Views: 275 What version of Python do you have? |
Forum: Python Sep 27th, 2009 |
| Replies: 7 Views: 420 do us a favor and mark it solved :) |
Forum: Python Sep 23rd, 2009 |
| Replies: 7 Views: 420 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 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 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 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 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 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 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 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 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... |