Search Results

Showing results 1 to 40 of 1000
Search took 0.11 seconds.
Search: Posts Made By: vegaseat
Forum: Geeks' Lounge 13 Hours Ago
Replies: 67
Views: 8,341
Posted By vegaseat
That pretty much proves that if you tell a lie often enough, it becomes the truth.

Q: "How many lawyer jokes are there?"
A: "Only three. The rest are true stories."
Forum: Geeks' Lounge 13 Hours Ago
Replies: 5
Views: 298
Posted By vegaseat
I didn't know they took a video of me buying beer! :)
Forum: Geeks' Lounge 13 Hours Ago
Replies: 9
Views: 3,321
Posted By vegaseat
My favorite ...
8. I would love to change the world, but they won’t give me the source code.
Forum: Geeks' Lounge 13 Hours Ago
Replies: 6
Views: 402
Posted By vegaseat
Compared to all the unused brain space, this is nothing!
Forum: Geeks' Lounge 13 Hours Ago
Replies: 123
Views: 7,095
Posted By vegaseat
Lord Aberdeen was quite touched when I told him
I was so attached to the dear, dear Highlands and
missed the fine hills so much. There is a great
peculiarity about the Highlands and Highlanders;...
Forum: Geeks' Lounge 14 Hours Ago
Replies: 1,358
Views: 142,470
Posted By vegaseat
Hmm, sounds good, just add a beet to wash it down.:)

I am little under the weather, so it's hot Blackberry Tea sweetened with a spoonful of Blue Agave syrup.
Forum: Python 14 Hours Ago
Replies: 4
Views: 65
Posted By vegaseat
My suggestion is to look at a nice Python console TicTacToe game like:
http://www.daniweb.com/forums/post135044.html#post135044

This is the common 3x3 game, all you need to do is to go to a 4x4...
Forum: Python 14 Hours Ago
Replies: 4
Views: 65
Posted By vegaseat
So the next question is:
Is it you against the computer, or you against another human?
Forum: Python 15 Hours Ago
Replies: 5
Views: 138
Posted By vegaseat
For programs like this, recursion is not a very good idea. Calling a function, even itself, is one of the slower things in programming because of the stack control. You will find that in the faster...
Forum: Python 16 Hours Ago
Replies: 6
Views: 118
Posted By vegaseat
The more common approach would be to use append() ...
for line in f:
columns = line.split(",")
letters = columns[ 0 ]
list1.append(letters)
I think it is less mistake prone. I also...
Forum: Python 16 Hours Ago
Replies: 3
Views: 88
Posted By vegaseat
Looks like you have made nice progress with coding pygame. The pygame module has something called sprites that, as far as I remember, are more suitable for what you have in mind.
Forum: Python 21 Hours Ago
Replies: 8
Views: 138
Posted By vegaseat
Let's hope this is not homework and the OP had a chance to learn something.

In a true palindrome test you also need to remove everything but the case adjusted letters.
"Madam in Eden I'm Adam" is...
Forum: Python 22 Hours Ago
Replies: 5
Views: 156
Posted By vegaseat
I noticed before that if you work in the shell with some IDEs, then you seem to retain old variables. Check the global dictionary in the shell. I would say avoid the shell with any programs larger...
Forum: Python 22 Hours Ago
Replies: 2
Views: 71
Posted By vegaseat
Thanks for letting the rest of us know!
Most folks use protocol=-1 as the highest possible protocol.
Forum: Python 23 Hours Ago
Replies: 6
Views: 150
Posted By vegaseat
If
remove('an', 'banana') --> 'bana'
then this should be
remove('iss', 'Mississippi') --> 'Missippi'
So you can use ...
def remove(sub, s):
# replace first sub with empty string
return...
Forum: Geeks' Lounge 23 Hours Ago
Replies: 4
Views: 81
Posted By vegaseat
We will all be watching with you!
Forum: Geeks' Lounge 23 Hours Ago
Replies: 659
Views: 72,717
Posted By vegaseat
China has 720 million cellular subscribers, that is more than that of the US and Europe combined. They are rolling out 3G mobile services nationwide, which should give their Government Internet...
Forum: Geeks' Lounge 1 Day Ago
Replies: 1,358
Views: 142,470
Posted By vegaseat
Blackberry Tea
Forum: Python 1 Day Ago
Replies: 7
Solved: simple question
Views: 189
Posted By vegaseat
Actually, if you temporarily flip to Reply with quote in the OP post you find out the request was for:

H e l l o W o r l d

That is 2 spaces between 'o' and 'W', DaniWeb swallowed up the extra...
Forum: Python 1 Day Ago
Replies: 2
Solved: Pygame question
Views: 104
Posted By vegaseat
The culprit is
screen.blit(background, (0,0))
I moved it out of the event loop, and rewrote your program just a little to reflect Python coding convention better ...
import pygame as pg

def...
Forum: Python 2 Days Ago
Replies: 5
Views: 148
Posted By vegaseat
In your second problem in function even_list the for loop should iterate through the list you are giving the function. If you find an item in that list that is even, then you have to append it to...
Forum: Geeks' Lounge 2 Days Ago
Replies: 411
Views: 42,746
Posted By vegaseat
A young Irish woman went to the doctor to deliver her first baby. Upon her arrival the doctor asked her into the examining room and told her to remove her pants. Well, she would have none of that,...
Forum: Geeks' Lounge 2 Days Ago
Replies: 1,358
Views: 142,470
Posted By vegaseat
A toasted bagel with a heap of cinnamon and sugar on it, and cup of Bailey's coffee.
Forum: Python 2 Days Ago
Replies: 5
Views: 156
Posted By vegaseat
Are you running this from the Python shell?
Forum: Python 2 Days Ago
Replies: 205
Views: 93,508
Posted By vegaseat
This Tinter GUI toolkit program draws a rather ugly stick man ...
# exploring Tkinter's canvas drawing surface
# draw lines and ovals to form a stick man
# info at...
Forum: Python 2 Days Ago
Replies: 8
Views: 174
Posted By vegaseat
Simply posting the same question with another meaningless title again is in rather poor taste. People have given you advice, so apply it and go from there. We will not do homework for you, since...
Forum: Python 2 Days Ago
Replies: 2
Views: 94
Posted By vegaseat
I agree with snippsat, don't tie yourself down with an outdated book and outdated custom modules.

Pygame has come out for Python3, and will be around for hopefully more than just a few years. If...
Forum: Python 2 Days Ago
Replies: 5
Views: 178
Posted By vegaseat
I suggest you simply use the module pygame directly, tell us what you want to do and show some effort, the rest of us will help. Many of us are familiar with pygame, but not with the old somewhat...
Forum: Python 2 Days Ago
Replies: 3
Views: 123
Posted By vegaseat
I hope you are not stuck with an outdated module like graphics, which is a wrapper for Tkinter, written by some guy to sell his book. You are much better off using the Tkinter GUI toolkit directly...
Forum: Python 2 Days Ago
Replies: 5
Views: 178
Posted By vegaseat
LiveWires is a pretty well dated Python course that uses a module called games as a wrapper for PyGame. It is supposed to make the use of PyGame easier for the beginner.

Looking over the module...
Forum: Python 2 Days Ago
Replies: 7
Views: 189
Posted By vegaseat
In simple terms:
Input Data --> Process Data --> Output Processed Data
Forum: Python 2 Days Ago
Replies: 6
Views: 156
Posted By vegaseat
So the next questions is:
What operating system are you using?
Forum: Python 2 Days Ago
Replies: 3
Views: 94
Posted By vegaseat
It can be as simple as this ...
import os
import time

# pick a file you have in the working directory
filename = "beachball.jpg"

# show file creation time
print(...
Forum: Python 2 Days Ago
Replies: 6
Solved: Tic Tac Toe
Views: 5,648
Posted By vegaseat
First toggle the DaniWeb code field to plain text. Right click and select all, then right click and copy to your editor. From the editor save the code as let's say 'TicTacToe2.py'. If you have an...
Forum: Python 2 Days Ago
Replies: 7
Views: 194
Posted By vegaseat
Actually. your raw data file is tab delimited and easily converted into a list of lists. Once that is done you can simply access your specific data by index and looping through the list.

The only...
Forum: Python 3 Days Ago
Replies: 3
Views: 201
Posted By vegaseat
from xml.sax.saxutils import XMLGenerator

I have no experience with the XMLGenerator, but I know it is used to create xml files.
Forum: Python 3 Days Ago
Replies: 1
Views: 121
Posted By vegaseat
The closest Python module that I can think of is visual Python (VPython), a free download from http://vpython.org.

Also take a look at some examples at:...
Forum: Python 3 Days Ago
Replies: 5
Solved: DNA Questions
Views: 331
Posted By vegaseat
If the OP has not even given an example of what has been tried, I would prod them to at least give an idea of how they would approach the solution. Then you can give hints how to proceed.

Another...
Forum: Python 3 Days Ago
Replies: 5
Views: 265
Posted By vegaseat
What is your problem with the code you have?
Forum: Python 3 Days Ago
Replies: 2
Views: 109
Posted By vegaseat
Take a look at:
http://www.daniweb.com/forums/post1032475.html#post1032475
Showing results 1 to 40 of 1000

 


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

©2003 - 2009 DaniWeb® LLC