Posts
 
Reputation
Joined
Last Seen
Ranked #963
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
~70.4K People Reached
Interests
Programming. What else?!
PC Specs
Ubuntu 10.04
Favorite Tags
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
717
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
340
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
285
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
195
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
155
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
130
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
83
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
132
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
182
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
172
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
304
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
124
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
137
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
111
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
234
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
107
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
245
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
137
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
114
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
176
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
97
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
116
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
97
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
73
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
192
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
359
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
252
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
273