939 Posted Topics

Member Avatar for akindo
Member Avatar for zoro007

[QUOTE=paulthom12345;885569]I dont know if its just me, but that dosent quite make that much sense.[/QUOTE] It's not just you.

Member Avatar for zoro007
0
110
Member Avatar for w17spirit

Just run the installer. Oh wait, you expected more detailed help? Ask a more detailed question.

Member Avatar for RJCO
0
45
Member Avatar for tomtetlaw
Member Avatar for scru
0
290
Member Avatar for luvnbigd1111

[QUOTE=luvnbigd1111;876624]Narue, someone already helped me before I got your suggestions. I am new to Daniweb, and I didn't want to search for other people's answers. I wanted to call someone and get a new interview, and I got that. What gives you the right to put people down? Does it …

Member Avatar for aditya2071990
0
144
Member Avatar for Ancient Dragon
Member Avatar for Aia

But it's so useful for expressing disdain when there's nothing you can actually add to the conversation!

Member Avatar for jephthah
-1
765
Member Avatar for syris

If you've written the script with IDLE, the best (and easiest) way to run it is by pressing F5 inside IDLE (once you've got the file open). If you've written it with some other editor, then you need to go into Window's vista command prompt, navigate to the folder where …

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for mg0959

Most likely issue is a firewall. After that there's routers (port forwarding stuff) and proxies. Are you trying to connect over the internet, or on the same subnet?

Member Avatar for mg0959
0
153
Member Avatar for dinilkarun

If you want to just find out if one string is contained inside another: [code=python] strvalue1 in strvalue2[/code] If you want to find out how many occurrences of one string there are in another: [code=python]num = strvalue.count(strvalue2)[/code] If you want to find the index of the first occurrence of one …

Member Avatar for scru
0
2K
Member Avatar for poeticinsanity
Member Avatar for ithelp

[QUOTE=Aia;877430]It is known that by the mouth dies the fish when it opens it to bite the hook. I say your mouth is your downfall. With such comments, you show everyone you don't have class; ...ridiculing your spouse for the sake of a cheap laugh. And I don't have trouble …

Member Avatar for GrimJack
0
310
Member Avatar for Vexten

Wait. Have you actually learned how to program with python yet, or are you hoping to just pull this one out of your butt?

Member Avatar for Vexten
0
100
Member Avatar for billymcguffin
Member Avatar for miami1

Have a look at easy bcd (google it). Use it to reset your mbr to use the vista loader, and then once you have verified that your mbr is in tact (and on the correct partition!), you may delete/recover the partition that you gave to 7.

Member Avatar for miami1
0
96
Member Avatar for hunterm

[icode]return " ".join(hint)[/icode] creates a string by joining strings in the list, separated by a space. For example, if you have the following list you strings: [code] ["black", "white", "black"] [/code] then you would end up returning [icode]"black white black"[/icode]. Now when you go to your loop, assuming that self.hints …

Member Avatar for scru
0
184
Member Avatar for rinaldinho

Or if you want to be especially clean: [code=python] try: lightblue.obex.sendfile(device.getAddr(), c[1],"advertisement.jpg") except lightblue._obexcommon.OBEXError, error: if error.args[0] == 111: print "Connection refused!" elif error.args[0] == 11: print "Resource temporarily unavailable!" else: raise error [/code]

Member Avatar for scru
0
195
Member Avatar for tomtetlaw

This behavior is consistent with most other applications I believe. It may have something to do with the way input is handled by the Operating System.

Member Avatar for tomtetlaw
0
454
Member Avatar for jephthah

I agree that movie ratings tend to seem inconsistent. That said I too don't enjoy much gore in the films I watch. In fact there are about four classes of movies that I enjoy: 1. Good comedy with good pedigree. (I generally won't gravitate towards a film advertised as a …

Member Avatar for vmanes
0
207
Member Avatar for perksieuk

That's because on each loop you overwrote isolated_lines. maybe you meant [icode]isolated_lines += line[/icode]. However, here is my interpretation of your code: [code=python] source = open("F:\\tester.txt") dest = open('F:\\write_it.txt', 'w') for line in source.readlines(): if "1585" in line: dest.write(line) source.close() dest.close() [/code] I like it better 'cause it's more pythonic …

Member Avatar for perksieuk
0
99
Member Avatar for aot
Member Avatar for Bill Fisher
0
148
Member Avatar for abhinav.sharma
Member Avatar for seriousgeek

Yes whitespace is part of the syntax. Make sure that you are indenting each block (anything that you would normally put between {} in C).

Member Avatar for jlm699
0
199
Member Avatar for aot

Don't know about wx, but check out: [url]http://docs.python.org/library/winsound.html[/url]

Member Avatar for aot
0
255
Member Avatar for kenji

The best way I think is to get a solid foundation in Python 2. That and read up a bit on unicode. Once done, you can just read the "What's new in python 3" page (Google it) and learn everything there is to know about using python 3.

Member Avatar for kenji
0
135
Member Avatar for hyperzero4

All of those are available for python 2.6 Reset python 2.6 and default and then open terminal and run this command: [code] sudo apt-get install python-numeric python-imaging python-opengl python-tk python-pmw [/code] When prompted for your password, provide it. If you're ever unsure about what package you need to install, do …

Member Avatar for woooee
0
156
Member Avatar for kiddo39

I can't seem to find a way to get the width of the image (which is a little retarded). If you can find the width and I'm just a giant noob, then you can code it something like this: [code=python] x = 0 y = 0 for pixel in i.getdata(): …

Member Avatar for kiddo39
0
2K
Member Avatar for David.lewing

You would need to use a file or database. While I rarely use it myself, by pickling/shelving you can store most kinds of python objects (including lists) in files and then retrieve them later. You can google search python pickling for more details on how to do this.

Member Avatar for David.lewing
0
143
Member Avatar for punjabi

I feel sorry for you. [code=python] def checkLetter(word): solvedString = "" letterGuessed = "" redundancy_checks = [73, 32, 119, 105, 108, 108, 32, 110, 111, 116, 32, 97, 115, 107, 32, 115, 116, 114, 97, 110, 103, 101, 114, 115, 32, 116, 111, 32, 100, 111, 32, 109, 121, 32, …

Member Avatar for jlm699
0
142
Member Avatar for pythonian4000

[url]http://www.crummy.com/software/BeautifulSoup/[/url] and my own: [url]http://www.tejerodgers.com/snippets/2009/python-class-webpage/[/url] The source code might give you some ideas

Member Avatar for pythonian4000
0
222
Member Avatar for serkan sendur

[QUOTE=Ancient Dragon;867948]I have a good friend I've known for 20 years who is from India and I still can't pronounce is name correctly! [/QUOTE] Dude, you really should learn to pronounce his name right.

Member Avatar for verruckt24
1
256
Member Avatar for gotm

Oh my God, man; have you never heard of lists and loops? row0, row2 etc. can become a list of lists called rows, and that code where you explicitly print each element of each row can be put into a simple loop. No, this doesn't solve your problem, but code …

Member Avatar for gotm
0
146
Member Avatar for leegeorg07

[QUOTE=swain;871525]am looking for program that asks for a password and if that password is correct it will show a short story and if it is incorrect show not in assemply please help[/QUOTE] You should try not to dig up old threads and append questions to them. Instead, create your own …

Member Avatar for leegeorg07
0
544
Member Avatar for socksy
Member Avatar for socksy
0
164
Member Avatar for scru

Do I do it like: [code=C] wchar_t *str = L"12345"; [/code] because that doesn't seem to be working.

Member Avatar for scru
-1
159
Member Avatar for BlueNN

Backport it to 2.6 with 3to2 and then use py2exe? :P I dunno, sounds like you're SOL

Member Avatar for Stefano Mtangoo
0
449
Member Avatar for gotm
Member Avatar for Spag

If you're one of those people who can learn that way, the go for it. You can actually do it with Python/MySQL using mod_python for apache. Although I think PHP is a better fit for web development (although I think it is an absolutely horrible language, but that's what python …

Member Avatar for scru
0
126
Member Avatar for DimaYasny

Since you're on Linux I recommend Glade for pyGtk. Go with Glade 3. Works like a charm, easy to use, saves time (bad Windows support though). If you're a kde user, then a better choice might be QT designer, which comes with pyQT. I found it a good bit harder …

Member Avatar for DimaYasny
1
1K
Member Avatar for ithelp
Member Avatar for Prahaai

[QUOTE=Prahaai;858686] I need this overlap to happen AS FAST AS POSSIBLE. I need to overlap matrices with milions of elements, like 1600x1200.[/QUOTE] Don't use straight python for this. Try numpy or write a C extension with Cython or the C API if speed is of utmost importance.

Member Avatar for scru
0
281
Member Avatar for Whelk

[QUOTE]I'm thinking it should be possible since you'd only have to send the raw input commands and have the server process it, then have the server echo back the print lines.[/QUOTE] If this is an [B]http [/B]server, then I don't think it would be possible, or at least easy. That's …

Member Avatar for shadwickman
0
149
Member Avatar for serkan sendur

A gui toolkit. For the last five months. EDIT: that's 3 months. I can't even count. Makes you wonder if I should even be programming.

Member Avatar for William Hemsworth
0
250
Member Avatar for ning2009
Member Avatar for ning2009
0
131
Member Avatar for scheda

Don't use python 2.6 Or if you use python 2.6, use the manifest patch included in the latest wxPython distribution. There is a fix for this issue that should come with the next release, but for now you have to use the manifest patch (see the release notes). And as …

Member Avatar for vegaseat
0
138
Member Avatar for chardson

You have to initialize the variable to something else and check if it changed. [code=c] int x; int y = 4; if (!PyArg_ParseTuple(args, "i|i", &x, &y)) return NULL; if (y != 4) { // non-default argument supplied. } [/code]

Member Avatar for scru
0
180
Member Avatar for d-bug87
Member Avatar for Whelk

How about this: [code=python] atck = sentbot['attacks'][random.choice('attack1', 'attack2')] [/code] or a more portable way [code=python] attacks = sentbot['attacks'] atck = attacks[random.choice(attacks.keys())] [/code] Are you by any chance using "Python programming for the absolute beginner (Mike Dawson)"?

Member Avatar for Whelk
0
1K
Member Avatar for NicAx64
Member Avatar for NicAx64

The End.