Posts
 
Reputation
Joined
Last Seen
Ranked #971
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
14
Posts with Upvotes
14
Upvoting Members
10
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
~71.9K People Reached
Interests
Programming. What else?!
PC Specs
Ubuntu 10.04
Favorite Tags

92 Posted Topics

Member Avatar for SoulMazer

Hi all, I'm working on a (Python) program which, in short, is a threaded TCP socket server which creates a new "tab" in a wx.Notebook widget for every incoming connection it sees. I've run into a strange problem where when I call notebook.AddPage(...), one of three things happens: 1. A …

Member Avatar for Gribouillis
1
738
Member Avatar for prashanth s j

When I started threading in Python, I had the exact same problem. It's quite difficult to find a very basic example of it. Let me try to give you one using the scenario you described. I'm not quite sure how you are going to connect to the two client machines, …

Member Avatar for Gribouillis
0
346
Member Avatar for G_S

Sorry, I know this code is for Python 2.x, but hopefully it can point you in the right direction. There is a piece of code that I did NOT write myself but I implemented it in one of my programs. It basically creates a few text widgets in a loop …

Member Avatar for G_S
0
287
Member Avatar for SoulMazer

Hi, I'm a beginner to C++ and am having some trouble with my list. I first define a struct named "bullet' like so: [code=c++]struct bullet { bool alive; bullet() alive = true; };[/code] Then, I create a list of objects of type "bullet": [icode]list<bullet> bullet_list;[/icode] In my program, I frequently …

Member Avatar for saravmittar
0
197
Member Avatar for SoulMazer

I should begin by stating that XML and I don't seem to get along very well. I've just about finished the interface on the level editor for a game I've made, and the next step is generating a XML file so that it can be read into the game dynamically. …

Member Avatar for ultimatebuster
0
157
Member Avatar for SoulMazer

Hi, I'm in the process of writing an Android game, and I need just a little bit of help with some physics. I do not wish to implement an entire physics engine, as, 1) I have already tried the Java port of Box2D on an Android device, and there is …

Member Avatar for dwks
0
133
Member Avatar for ganeshredcobra

Could you be more descriptive than "I can't use this"? Do you get an error? Does it just not do anything in general? As you probably know, you need elevated privileges to run a command with "sudo," so my guess is that you need to run your script with "sudo": …

Member Avatar for Gribouillis
0
2K
Member Avatar for acrocephalus

You could use a separate thread to function as a sort of timer and simply call the .Destroy() function (correct me if I am wrong, can't remember the function name) after a given amount of time. If you need help with threads or anything feel free to post back.

Member Avatar for SoulMazer
0
85
Member Avatar for lewashby

[QUOTE=Garrett85;1343360]I have another post entitled 'understanding wxPython' in which my code runs but fails to build the scroll bars as shown by my python programming book. Note that the code in the book is running on Windows and mine is running on Ubuntu.[/QUOTE] I tested this myself, and I can …

Member Avatar for SoulMazer
0
136
Member Avatar for KrazyKitsune

Sadly, an easy alternative to raw_input that does not block (that is portable) is not too easy to find. I tried to create a version myself, but apparently raw_input even blocks other threads in the program from printing to the console. It's pretty strange. However, if this is just for …

Member Avatar for wikirifi
0
4K
Member Avatar for convoluted

Well the problem is that Python and all other CGI scripting languages are [B]server-side[/B] scripting languages, which means they are only called when the page is requested for the first time. From what you say, you will need some sort of [B]client-side[/B] scripting language for the web interface. You mentioned …

Member Avatar for SoulMazer
0
186
Member Avatar for SoulMazer

Hi, I made a post about a similar subject quite a while ago, but I'm a little more serious about it now. I've created two games in C++ and one in Python, but I'd like to start making games for the web to let them be more visible and more …

Member Avatar for Tomsky
0
174
Member Avatar for SoulMazer

Hi, I'm new to C++ and I'm having trouble with this dang linker error. The full error is as follows: [quote]Error 4 error LNK2001: unresolved external symbol "public: static class std::list<class Node,class std::allocator<class Node> > NodeManager::node_list" (?node_list@NodeManager@@2V?$list@VNode@@V?$allocator@VNode@@@std@@@std@@A) Nodes.obj Error 5 fatal error LNK1120: 1 unresolved externals[/quote]From this error, I have …

Member Avatar for SoulMazer
0
317
Member Avatar for SoulMazer

Hi, I'm in the process of writing my own FPS in C++ and I had a general question about game programming. Up until this week, I was developing the game on a computer with a low-end graphics card and everything was working just fine. This week, I've changed my development …

Member Avatar for gusano79
0
127
Member Avatar for SoulMazer

Hi, I've just finished writing a Pong game with Python and pygame and thought it would be cool to make it multiplayer over the net with a friend. So, I changed my old asynchat-based instant messaging server into a server for this multiplayer Pong game. The only bad thing about …

Member Avatar for ultimatebuster
0
140
Member Avatar for dhanapal86mca

[QUOTE=dhanapal86mca;1263674]Can Any one tell me how to use phython with .net[/QUOTE] There's a nice library out there conveniently called "Python for .NET" [URL="http://pythonnet.sourceforge.net/readme.html"](link)[/URL]. [quote]and wat is the main use of phython[/quote] Come on, at least spell Python correctly! Python, as defined by About.com, is: [quote]Python is a general purpose programming …

Member Avatar for ultimatebuster
0
114
Member Avatar for shashimgowda8

Are you looking for something along the lines of [URL="http://www.speech.kth.se/snack/"]tkSnack[/URL]? I cannot help you with integrating it into your C program, but from experience it is a highly dependable library that is quite easy to use; it is also cross-platform (at least for Windows & Linux). Its one downside is …

Member Avatar for shashimgowda8
-1
238
Member Avatar for SoulMazer

Hi, I'm writing a program that goes through all of the music in a user-specified directory and I am having some trouble with Unicode characters. More specifically, [icode]'ascii' codec can't encode character u'\\xe7'[/icode]. The song names need to both be printed to a HTML page as well as be passed …

Member Avatar for SoulMazer
0
111
Member Avatar for gsingh2011

It's probably not working because you are not supplying all the required arguments. Sadly, it looks like Facebook wants quite a few arguments to log in such as authentication token and api key, but the Facebook devs have provided some information on all of it: [URL="http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications"]http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications[/URL]. Good luck.

Member Avatar for Beat_Slayer
0
251
Member Avatar for ChargrO

Well, it doesn't even look like deepak's code is Python. I'm not quite sure what is going on with that. Anyways, I do not see any immediate problems why your code should not work except for the constant calling of the function "create_top." You call it eight times? That would …

Member Avatar for TrustyTony
0
142
Member Avatar for jonb7

EDIT: Sorry, I did not read the "Active Directory" specification in your post. Well, a Google search turned up an active_directory module which appears to be cross-platform. It can be found here: [URL="http://tgolden.sc.sabren.com/python/ad_cookbook.html"]http://tgolden.sc.sabren.com/python/ad_cookbook.html[/URL].

Member Avatar for SoulMazer
0
117
Member Avatar for echellwig

The error is being raised because it is trying to find the integer value of the character '[', which is apparently part of your list. You could either put in a try/except statement to 'pass' when you run into those, or print out the contents of the list and manually …

Member Avatar for echellwig
0
182
Member Avatar for SoulMazer

Okay, I'm not sure what's going on, but tkSnack [URL="http://www.speech.kth.se/snack/"](link)[/URL] is deciding to not work for me all of a sudden. I have written a full-blown freaking media player with it, and I am now failing to simply play a song from the command line. I can get it to …

Member Avatar for SpeedyWizard
0
99
Member Avatar for SoulMazer

Ugh, this is quite frustrating. I am writing a series of CGI scripts with Python that all work perfectly until I add in a stylesheet reference. Interestingly, if I put the styling rules inside the CGI script, it runs perfectly; it only throws an error when it is in an …

0
123
Member Avatar for robinthomas

Yeah, sure. I think domain name masking would be the solution you're looking for. [URL="http://kb.siteground.com/article/Simple_domain_name_masking.html"]http://kb.siteground.com/article/Simple_domain_name_masking.html[/URL]

Member Avatar for robinthomas
0
101
Member Avatar for SoulMazer

Hi, I recently found a pair of wireless outdoor speakers [URL="http://www.amazon.com/ZipConnect-Wireless-Outdoor-Speakers-SR288/dp/B000C6URMI"](link)[/URL] that work flawlessly except they lack the central unit (your iPod connects to it and broadcasts music to the speakers). I would like to take advantage of the nice speakers by streaming to them via my computer. Is this …

0
74
Member Avatar for SoulMazer

Hi, I have a very simple problem yet I can't find out how to do it for the life of me. I am creating a simple CGI script with Python and part of it needs a HTML form. This is what I have so far (excludes imports, etc): [code=python]font_size = …

Member Avatar for SoulMazer
0
196
Member Avatar for jv_05

It just so happens I used this exact library to store information for my media player! I cleaned up the code a bit and just included some basic operations. (songDict is a dictionary which contains the name, artist, album, etc. of various songs -- I find it easiest to put …

Member Avatar for vegaseat
0
363
Member Avatar for shaqywacky7

[QUOTE=shaqywacky7;1244704]I'm on windows, so I don't think thats the problem.[/QUOTE] Hah, I think that might be your exact problem, especially if you're on Vista. Try a good old 'Run as Administrator.' And maybe implement something like so: [code=python]import os if os.geteuid() != 0: print "You must be root to run …

Member Avatar for shaqywacky7
0
260
Member Avatar for SoulMazer

Hi, so I'm having quite the difficulty here. Let me start by explaining the architecture of my scripts. My "Listener.py" is a script that uses asyncore in order to listen for connections and receive commands from them. If it receives the text "play" from a connection, it calls another script, …

Member Avatar for SoulMazer
0
275
Member Avatar for G_S

Well, I had the same exact problem a few months ago. I used the code found [URL="http://code.activestate.com/recipes/52266/"]here (link)[/URL], and found it is pretty good, but not perfect. For example, if you click within one of the listboxes and scroll with the mouse wheel, they do not scroll synchronously. But that's …

Member Avatar for SoulMazer
0
488
Member Avatar for SoulMazer

Hi, I've tried searching around for other problems similar to mine, and I was unable to find any. I seem to not be able to "color" text in a TextCtrl widget on Windows, but I can on Linux. I have a little screenshot and some code to show this: [URL="http://i189.photobucket.com/albums/z266/Capn_Soul/WinLinuxDifference.jpg"]Screenshot[/URL] …

Member Avatar for SoulMazer
0
815
Member Avatar for SoulMazer

Hi, I'm trying to color some text with wxPython but I am having some trouble. I am using the SetStyle method of the TextCtrl widget. My problem is that the coloring works perfectly on Linux but does not under Windows. My script basically gives a vocabulary test, and if you …

Member Avatar for vegaseat
0
148
Member Avatar for Tech B

Well, I know of a project that would definitely prove beneficial to the community if it was wrapped in python. Xfire. If you haven't heard of it, its an instant messaging program for Windows only. Somebody created a library for it in C, but that's it. There is only one …

Member Avatar for woooee
0
130
Member Avatar for MaxVK

[quote]Like I said, it works, but only up to a point.[/quote] What do you mean by this? So can you correctly highlight words? If so, what is your problem? Also, could you post your code? I'd love to dive into this and come up with a solution, as it would …

Member Avatar for MaxVK
0
164
Member Avatar for SoulMazer

Okay, I am writing a script that might be impossible to fully explain in words. Therefore, I am going to come up with an example that shows the same problem, so please do not tell me to simply combine the scripts or anything, as I am unable to. Anyways, I …

Member Avatar for SoulMazer
0
125
Member Avatar for Syphilis

When you say you are currently sending code between client and server on the same machine, how are you doing this? Via a local socket or what? If so, you just need to give the client the IP address/port of the server and connect via the "connect" method of your …

Member Avatar for SoulMazer
0
100
Member Avatar for arty.net

The code looks a lot better now. It's very smart to only handle text writing via one function/thread, this will hopefully prevent any further errors. Clever use of CallAfter too.

Member Avatar for arty.net
0
1K
Member Avatar for lightning18

I'm not exactly sure what you're trying to say but I'll try to help you. From what I understand, you want to search through a text file for a certain word denoted by the variable 'text1' and print the line number in which it is found? If so, try this: …

Member Avatar for lightning18
0
139
Member Avatar for kar0lis

Rather than having to wait for a socket to time out to allow the rest of your program to execute, you could always use threading. Then you wouldn't have to worry about a timeout or anything, you could just have one thread receive packets while the other one does whatever …

Member Avatar for kar0lis
0
147
Member Avatar for SoulMazer

Hi, I'm writing a media player with wxPython and I seem to be having a bit of trouble. In my script, I create a wx.media.MediaCtrl widget; this line of code causes the trouble. On my Linux machine (running wxPython 2.8), this line of code causes no trouble at all. However, …

Member Avatar for vegaseat
0
230
Member Avatar for richardtreier

[QUOTE=richardtreier;1187011][B]So is there a possibility to get a macro, which presses keys and clicks when the user presses a key, written in python?[/B][/QUOTE] So, let me see if I have this right. You want a script to emulate mouse clicks/key presses when the user presses a certain key (ALT + …

Member Avatar for richardtreier
0
237
Member Avatar for sob_andizzle
Member Avatar for SoulMazer

Hi, I'm writing a GUI app with wxPython and I am wondering how I would insert and read/parse accented letters (Spanish accents, for that matter) from a TextCtrl widget. Also, I would like this would be compatible with all platforms (Windows, Linux, etc.). How could I do this? Thanks very …

0
80
Member Avatar for SoulMazer

Hi, I'm writing a multi-threaded script with wxPython as a GUI toolkit. About 50% of the time, I can run my script flawlessly. The other 50% of the time, I get [U]huge[/U] errors regarding wxPython that I cannot seem to decipher; however, I think it could possibly be a problem …

Member Avatar for SoulMazer
0
829
Member Avatar for revellution

I have to say that's pretty good for your first little program. I just have one little suggestion: You don't need to do [icode]print('\n')[/icode] to print a new line, you can simply use [icode]print[/icode] to print a new line (correct me if I am wrong about 3.x, but this is …

Member Avatar for revellution
0
124
Member Avatar for SoulMazer

Hi, so I'm in the process of writing a music player with a GUI. I would like to be able to print a statement after I am done playing a song. I originally through I could just get away with getting the song's length and time.sleep'ing for that long. Since …

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for SoulMazer

Hi, so I've been programming with Python (2.x) for a while now, and I was wondering about what people thought of 3.x. From just a few quick searches, some people recommend that people get used to it quickly as it is the future, and others say to just stay with …

Member Avatar for SoulMazer
0
159
Member Avatar for SoulMazer

EDIT: Hello, I need to figure out how I would download email from a Linux-based Postfix/Dovecot mail server. Is there a library that makes this relatively simple that good documentation/examples? Thanks in advance.

Member Avatar for SoulMazer
0
89
Member Avatar for craigus12

Yes, you can make it work by using a tuple as the value. Example: [code=python]numbers = {} name = "Mario" number = "555-5555" address = "322 Main Street" email = "[email protected]" numbers[name] = (number, address, email) print numbers["Mario"][0] # 555-5555 print numbers["Mario"][1] # 322 Main Street print numbers["Mario"][2] # [email protected]

Member Avatar for SoulMazer
0
140

The End.