Ah well, never mind me then :P Starting my own install in a few minutes.. see you on the flipside :)
SoulMazer commented: Very helpful and follows through +2
Ah well, never mind me then :P Starting my own install in a few minutes.. see you on the flipside :)
But i did hear something about microsoft offering antivirus/firewall programs with windows 7.. i dont know much about it, i have just heard things here and there.
I am downloading it as we speak. I love it that i dont have to go into a store to buy it :)
Soo i would say by tomorrow i will also be saying hello from windows 7 :)
Sorry, this double post is caused by my virus software updating in the background
Oh the irony :P
Yeah i dont much like them either. People who have been here a while know what the buttons are for. As well the newbies probably arent going to need those buttons anyway.. i doubt they will be posting in many different threads all over the place anyway.
And they are getting really conspicuous. :S
Yes you would increase that, but you would also need to completely redraw the whole circle. As well as that you would need to clear the last circle.
I am in an accelerated uni course at high school. This means i get windows 7 for only $50 AUS. :) Sooo excited
Hahaha yeah same.. i have been looking everywhere for one.. no luck so far :P
For moving something you have to do something like
self.rect = self.rect.move(self.whereyouwantittogo)
As you can see that is just an example, its not using any of the proper variables that are seen in your program. But im sure you get the gist :)
A static method is one that can be called without instantiating the class
so
>>> class T(object):
def test():
print "HI"
>>> T.test()
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
T.test()
TypeError: unbound method test() must be called with T instance as first argument (got nothing instead)
>>>
See how that doesnt work? Well we can make it work by making it into a static method
>>> class T(object):
@staticmethod
def test():
print "HI"
>>> T.test()
HI
>>>
So, hopefully that shows what it does :)
When im bored I go on Daniweb ,of course!
You must get bored *a lot* :P
The Brits have bad teeth,
And complain a lot according to australians :P
Its a great boardgame, i am sure some of you are familiar with. I found a great site to play it online if 7 of us want to go for a game :)
http://www.worldleadersthegame.com
Discussion groups was started in the previous update about a month or two ago.
Personally i dont use them, there is no one i particularly want to partake in. But im sure it's a good idea for some :)
You know, this was the first question i ever asked when i came to this forum. This is the answer i got :)
http://www.daniweb.com/forums/thread122666.html
There is nothing quite as satisfying as gently closing the book after finishing the story :)
Why do people limit themselves to the PC only sometimes?
Haha exactly, i try and make my gardening as edible as possible personally. My strawberries are my favourite. :P
But good luck with piano, i have been playing ever since i was 5. Doesn't mean i'm that good :P but i still have soo much fun.
EDIT: WOoo 800 posts :)
If i am that bored i go and garden. Or practice piano :)
Yeah i have a feeling there is a school assignment due soon :P
hahaha, poor aussies. We get a pretty bad rap for drinking. :P
Yeah, i heard about that :P I just use paulthom12345 for all of my usernames, but seeing i am actually doing something here rather than just popping in and out i thought it would be nice to change :P
I'll wait for an admin then :)
and why it's a good ideal to travel with your truckgun/survival-rifle.
I sometimes forget how many guns there are in the US. Here in australia it is pretty rare to own a gun and *very* rare for someone to walk/drive around with it.
I think in some ways the reason that we dont have loads of guns is that criminals rarely use guns. So we dont need them as a defence. I was looking at a few statistics yesterday and if i'm not wrong the US has the same amount of gun deaths in one day that australia has in a year :P
http://www.guncontrol.org.au/index.php?article=75 <-- Australia
http://thegreenman.net.au/mt/gun_deaths_in_usa.htm <-- US
But yeah, poor guy :S
Hi,
I have been here for about a year and a half. I originally was only going to stay for just one question but fell in love with the community. So i would like to change my username to something more identifying.
So could i change it to "Paul Thompson"? I would just like people to know who i am when i am posting. Rather than getting called paulthom all the time :P
cheers
-Paul
Im not quite sure what you are doing. But you can do something like this
import random as name
name.random()
name.randrange(1,50)
#etc
Hope that helps :P if not, could you explain what you mean a bit more in depth?
No worries, thanks for trying. If anyone has any other ideas i would love to know. I know you can do this in python, i thought java would have the same functionality. :P
yeah, the only problem with having transparent frames is that i would like the user to be able to click the things on the other side of the frame, so that it is not "taking up" the focus.
If that makes sense :P
Hi,
I have been trying to get a java program that draws a line directly on the screen. I have made ones that draw on JApplets and JFrame's but i cant work out how i can draw directly on the screen without having something in the way.
I looked at using Java canvasses but couldn't see a way i would do it with those so im a bit flummoxed. :S
Is there a way to do this in java? :)
pygame, for simplicity as well as documentation and community
I got 73 with no mistakes. Wooo :P
Huh, this while loop thing twice is two days. Assignments perhaps?
Yes there is, you can always go between while and for loops, its just usually for loops are easier.
for example
count = 3
while count <50:
print(count)
count += 3
See? Still simple,just not quite as simple :P
So then, what have you done?
Post it here and we can help you with specific problems. Take a look at http://www.daniweb.com/forums/announcement114-2.html if you dont know what i mean
Yes, i think that is what they are trying to do, but at daniweb we try to not give outright answers for the questions and rather steer users in the right direction so that they may learn by themselves :)
Have a fiddle around with
count = 0
while count <= len(s)+2:
count +=1
print '*'
That should print out that right amount of asterisks. See if you cant take that a bit further :)
Is there any way that i could change that? Or is that just set for the JApplet and JFrame?
Dinnertime! Chicken and cheese toastie :P
Personally I think what he is coming out with now is all BS to cover the fact that he is a Mac/Apple/Linux etc. fanboi.
It seems a convenient way of saying "Yeah, i lost" without actually saying anything about it.
If you want a book that explains it all really nicely, and is free then have a look at Dive into Python:
FOR PYTHON 2.*
http://diveintopython.org/toc/index.html
FOR PYTHON 3.*
http://diveintopython3.org/
It is the best book i have read on python, and if you really like them you can buy hard copies. :)
I just noticed that when i had this as just a JFrame swing application it worked perfectly and just how i wanted it. So, is there perhaps something about the way that a JApplet displays it that could change how it works?
please help!
Sure, we can help. First, what have you done?
And second, whats wrong, not just Help!
http://www.daniweb.com/forums/announcement114-2.html <-- read
The depth of your belief in Windows as a good operating system has quite frankly surprised me.
How shallow your basis for for arguments were quite frankly suprised me.
And what did he do that was "bannable"? His post that was deleted does not meet the guidelines for an infraction under the "Keep it Pleasant Rule"
Secondly, why not just have a permanent ban, instead of this inefficient wait for it to expire policy.
I think what JBennet meant was that he was already perma-banned. So whenever he comes back he gets automatically banned again. If i understand correctly.
First off, you have fallen for a trick almost everyone does when they start to learn programming. We find it in this line:
if word and word2 in input1:
That looks okay right? well unfortunately its not doing what you think. What the program does is it looks. Is there word? yes, there is a variable called word and yes there is something in it. This will therefore always be true.
Next it looks at the word2 in input1. The program checks if word2 is in input1. So you will find that it is every second time. This therefore showing why you are getting the answers the same twice :P Soo how do you fix it?
if word in input1 and word2 in input1:
Now this is your output:
>>>
:look in the crate
you look in the crate and find a map!
sory you yoused a word i didnt understand
sory you yoused a word i didnt understand
sory you yoused a word i didnt understand
>>>
So now you just have to work on not saying it four times.. Ill leave that up to you for now :)
Hope that helps
If by unparsed HTML via script you mean get the source code for a page. Then you do that by using urllib
import urllib
#This is a file like object.
data = urllib.urlopen("www.daniweb.com")
#So we have to read() it to get the text
print data.read()
Hope that is what you meant :P
And seeing its against the rules. Personally (as i said above) i think it should be closed. Moderators?
I put that line of code in just before where i set the icon on the button and nothing happened. Is this because i put it in the wrong place? Or do i need a different solution?
Really, is this going anywhere? I mean is there any point to us continuing to post here? If you want a good discussion you have to give and take, not just instantly say "Your wrong..." because we are right some of the time, and part of a discussion is to admit that.
So grow up and stop trolling.
This thread sounds like it needs closing :S
WOW,,, you are awsome..
*shakes head* stop. think. No he is not hacking in.. Its sarcasm