939 Posted Topics

Member Avatar for shadows09

Please wrap you code in [ code=python ] [ /code ] tags next time. Your algorithm seems fine according to the pseudo code you gave above. So I'm ging to show you how to determine if an integer is odd or even. [code=python] numStr = raw_input("Please enter an integer: ") …

Member Avatar for leegeorg07
0
186
Member Avatar for revenge2

1. wx.ID_ANY is a constant inside the wx module. It is used to pass into constructors that require an id when you don't want the resulting widget to have any specific id (you're telling it to give the widget any id that is available). Passing -1 in its place does …

Member Avatar for Ene Uran
0
125
Member Avatar for scru

I noticed a weird thing happening when i use this function. If the page i open is in latin-1 encoding, the bytes returned by this function would have some weird junk characters inserted in various places. However, if i use urlretrieve to fetch the page to disk, there is no …

Member Avatar for scru
0
210
Member Avatar for apolo_x

You need establish a pattern to follow in the source code that the team names follow before attempting to retrieve that information. My spanish is very bad, so i can't really help you find that pattern. But it should be pretty easy to find once you know what you are …

Member Avatar for Stefano Mtangoo
0
224
Member Avatar for demeryjo

This problem is really simple: 1. You can loop python strings like anyway other container. 2. You can convert a digit string ("1") to an integer (1) using int() I'm not even going to tell you how to do the rest. Go ahead and prove that you aren't lazy.

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for Stefano Mtangoo

What you want is a lamp, not wamp Here you go: [url]http://tinyurl.com/9qdkz2[/url]

Member Avatar for jbennet
0
189
Member Avatar for scru

Is there a gui library that has already been ported to python 3? I'm interested in using some of the new python 3 features in the back end for my project.

Member Avatar for Ene Uran
-1
270
Member Avatar for tondeuse34

I just implemented a web page class that would help you. It would be awesome if you can use it and give me some feedback (I'm built it for use by others). Let me know if to PM it to you.

Member Avatar for scru
0
153
Member Avatar for naomiauk

Naomi, what mariocatch means (I think) is that maybe you can tell us what theory you use for the chatbot's AI and maybe you can help you put it better into code. Either way, we need more details.

Member Avatar for cookpau01
0
274
Member Avatar for OffbeatPatriot

1. Get the character array from the C function (you can call C functions with the built-in ctypes module), and use [URL="http://www.wxpython.org/docs/api/wx-module.html#BitmapFromBuffer"]wx.BitmapFromBuffer[/URL] to get a wx.Bitmap object (please take note of the buffer format expected). 2. I don't know. 3. wxPython provides a [URL="http://wiki.wxpython.org/Timer"]wx.Timer[/URL] that may help you with that.

Member Avatar for OffbeatPatriot
0
259
Member Avatar for scru

Is there a way to add a directory to the locations that python look at when you call __import__ ? I need to import some scripts from a user folder at runtime, and since __import__ doesn't accept absolute file names, I'd like to try this. Copying the script to the …

Member Avatar for scru
0
143
Member Avatar for revenge2

I'll take a little piece of it too: Q3: 'end' is an argument of the Python2.6/3.0 print function. It tells the function what character to append to the output. I believe that by default it appends a newline character ('\n'), so end='' just tells it not to append anything.

Member Avatar for Ene Uran
0
125
Member Avatar for revenge2

2. They're all trash. Using python 3.0, you're going to be hard pressed to find libraries, as most ones haven't been ported over yet (it sucks, I know). I'm stuck using python 2.5 in a project because wxPython doesn't work with 3, and is buggy on 2.6.

Member Avatar for Ene Uran
0
106
Member Avatar for mrpoate

What you seem to want would require access to some kind of desktop composting engine. Windows didn't introduce a composition engine until Vista (Desktop Window Manager), so you can't actually see what's "behind" your window in earlier versions (at least in my understanding). And desktop composition isn't always guaranteed with …

Member Avatar for mrpoate
0
2K
Member Avatar for adam291086
Member Avatar for Gribouillis
0
121
Member Avatar for TheNational22

Actually, having the latest version is the problem here. Downgrade from python 2.6 to python 2.5 and the problem should be fixed.

Member Avatar for TheNational22
0
96
Member Avatar for shazzy99

If you are running on .NET 3, you can use Lists, which are very easy: [code=C#] List<String> strings = new List<String>(); //initialise the list strings.Add(str); //Add an item int length = strings.Count; //how many strings are in the list. [/code]

Member Avatar for Rashakil Fol
0
178
Member Avatar for revenge2

I always find myself using Geany whether I'm on Windows or Linux. It isn't built specifically for python, but it adapts well to python code. It's snappy, has some good tools, and doesn't get in your way.

Member Avatar for Ene Uran
0
91
Member Avatar for Stefano Mtangoo

If you have Visual Studio installed, the redistributable dlls are in the VC\redist\[architecture]\*CRT folder in your visual studio program files. Consult the documentation for information on which libraries you are allowed to redistribute.

Member Avatar for Stefano Mtangoo
0
177
Member Avatar for scru

Is there a function in the Windows API I can use to get recent files opened by my application instead of just setting them? (Before you tell me; yes, I know it won't be hard to do myself.)

Member Avatar for Ancient Dragon
0
188
Member Avatar for supremesoul

On Windows I would use wmp, on Linux I would use gstreamer. Of course, we can't [I]really[/I] help you if you don't tell us more.

Member Avatar for scru
0
105
Member Avatar for Dave Sinkula
Member Avatar for kimax
Member Avatar for sneekula
0
179
Member Avatar for vmanes

No, they're not. Ironically, gasoline and diesel are both made from petroleum, so they both should be called petrol. Gas prices haven't gone down here. I believe it's because the government subsidizes the cost heavily.

Member Avatar for Dave Sinkula
0
249
Member Avatar for Simpsons4261

Isn't windows defender built in? The most you can do is disable it in the security center. I think that stops it from running at start-up.

Member Avatar for kathyPol
0
382
Member Avatar for christina>you

[QUOTE=Ancient Dragon;491580]I'll take a couple of these: [URL="http://mywiki.ws/The_World's_Most_Expensive_and_Useless_Things"][/URL][/QUOTE] :twisted:

Member Avatar for techbound
0
484
Member Avatar for praveen_dusari

[QUOTE=platinum8;697892]I would like to become a player[/QUOTE] You mean like someone who isn't monogamous, unbeknown to his sex partner?

Member Avatar for techbound
0
169
Member Avatar for pizzafiend
Member Avatar for The Dude
Member Avatar for kimax
Member Avatar for moerpheus

Of course they can, and it's no magic. If you're spanking new to php/mysql, you might want to consider a few warm-ups first before delving into this. Then, you can tackle them individually as smaller challenges (contact list importer, message system, friends list...) Alternatively, you can do a web search …

Member Avatar for moerpheus
0
267
Member Avatar for danishbacker

I don't know about limiting the paper size. However, removing the header and footer from the printed document can be done with some CSS: Add this to your <head>: [code=html] <style media="print" type="text/css"> .no-print{display:None} </style> [/code] Then add [icode]class="no-print"[/icode] to your header/footer containers. Since the no-print style is targeted at …

Member Avatar for essential
0
4K
Member Avatar for Narayan15

Use code tags. Shouldn't [code=html]<a href="action.php?id='.$num.'">Text to be displayed</a>[/code] be [code=html]<a href="action.php?id=<?php echo $num; ?>">Text to be displayed</a>[/code] ? I ask because you appear to be concatenating $num outside of a PHP block.

Member Avatar for Narayan15
0
153
Member Avatar for 123468743867143
Member Avatar for Lardmeister
Member Avatar for The Dude

This constant back and forth about whether global warming is a myth or not is really getting old (a little mean spirited too). If being right is so important to you, I recommend you resolve to the following: 1. Stop arguing. 2. Wait for a few days/months/years according to whatever …

Member Avatar for Dave Sinkula
0
973
Member Avatar for The Dude
Member Avatar for The Dude

You Are 45% British You're about as British as a half hearted Anglophile... in other words, a piss poor Brit. If you are indeed from Britain, you probably consider yourself a European more than anything else. If you're trying to pass for a Brit, you're going to have to try …

Member Avatar for Obeledeveloper
0
139
Member Avatar for tupacpalaman
Member Avatar for tribedude
Member Avatar for idodoodles

When I try to access these specific files directly: [code]SpryAssets/SpryTabbedPanels.js SpryAssets/SpryTabbedPanels.css[/code] I get [icode]The system cannot find the file specified.[/icode]. So maybe you have not uploaded [I]all[/I] the files.

Member Avatar for scru
0
96
Member Avatar for maurya_alld

Of course, Romasio, you fail to meet the OP's requirements. Let's not over-complicate the scenario. I would advise the OP to use one of the methods suggested in [URL="http://www.daniweb.com/forums/post511450-2.html"]#2[/URL].

Member Avatar for LizR
0
2K
Member Avatar for benjamindemers

While you can wrap at a certain amount of characters in plain text emails, I'm not certain about the ability to wrap at exactly 400 pixels. What you can do is send and html email instead, and put the text inside a container that is set to 400 pixels wide.

Member Avatar for benjamindemers
0
169
Member Avatar for liquoriser21
Member Avatar for vegaseat
0
239
Member Avatar for AnjX

Suggestion: check the previous line and make sure its statement was terminated correctly. The line [icode]if (isset($_GET['p'] && $_GET['p'] == "login"){}[/icode] parses fine on my server.

Member Avatar for AnjX
0
145
Member Avatar for forumdude123
Member Avatar for Doctor Inferno

Add this to the page that URL1 points to: [code=javascript] window.location = url2; //the url you want to redirect to. [/code]

Member Avatar for ~s.o.s~
0
140
Member Avatar for Shanti C

I don't know flash well, but I suspect you'd have to use some flash ActionScript to do the counting for you.

Member Avatar for FlashCreations
0
136
Member Avatar for Tom Tolleson
Member Avatar for ~s.o.s~
0
91
Member Avatar for bonnie1702

The End.