Re: how to: multiplayer game connecting to central server effectively?

2013-04-25 Thread webmaster
The idea is a risk game application and data collected and controlled by a gameserver, which happens to be a webserver too. But for learning the principles, i want to start with tic-tac-toe multiplayer. Thanks for your answers, I will read all your advices first now. --

how to: multiplayer game connecting to central server effectively?

2013-04-24 Thread webmaster
hi, I struggle for some days about a model for a multiplayer game application. I read so much from my enemy Google, i got lost by all that info and dont know which path i should chose. a multiplayer game application, sending/receiving instantly every change in the game to a central webserver,

How to connect to a website?

2013-04-22 Thread webmaster
Hi, i just try to connect to a website, read that page and display the rules get from it. Then i get this error message: File D:/Python/Py projects/socket test/sockettest.py, line 21, in module fileobj.write(GET +filename+ HTTP/1.0\n\n) io.UnsupportedOperation: not writable My code: #

Re: How to connect to a website?

2013-04-22 Thread webmaster
thanks! solved with: import urllib.request import urllib.parse user = 'user' pw = 'password' login_url = 'http://www.riskopoly.nl/test/index.php' data = urllib.parse.urlencode({'user': user, 'pw': pw}) data = data.encode('utf-8') # adding charset parameter to the Content-Type header. request =

How to get JSON values and how to trace sessions??

2013-04-22 Thread webmaster
Hi all, from python I post data to a webpage using urllib and can print that content. See code below. But now i am wondering how to trace sessions? it is needed for a multiplayer game, connected to a webserver. How do i trace a PHP-session? I suppose i have to save a cookie with the sessionID

ANN: RELEASE: KetchupTV 1.0.0.0

2009-12-06 Thread webmaster
Ketchup TV is a little video player. You can watch WebTV and listen WebRadio. You can watch your own playlists. Ketchup TV has a podcast service with trailers, news and others contents. Ketchup TV is a clone project of FreeHD Gadget. Ketchup TV works without Sidebar and it embed VLC libraries.

Tutorial Forum

2009-10-30 Thread TheTutorialSpot Webmaster
Come check out http://www.thetutorialspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading and GIL

2009-05-07 Thread googler . 1 . webmaster
Hi, thats the reason why its not working. Imagine the end() method of the thread object is called so the C++ Function is opened where the code for this method is in. At a line the Code ...-End() is called which waits that the C++ Thread class is finished. BUT here is the problem: In the Method

Re: Threading and GIL

2009-05-07 Thread googler . 1 . webmaster
hey, thanks, that works fine. I wrapped it around, done a lot of tests and it works fine. Just had done a few other things to make it stable. cheers. -- http://mail.python.org/mailman/listinfo/python-list

Threading and GIL

2009-05-06 Thread googler . 1 . webmaster
Hi! I have a big problem I can't solve and I hope anyone of you can help me. I use the Python C API and in C++ I have a class which represets a thread object, similiar to the thread class of the known Python Thread class but with some needed additions so thats the reason why I have to built my

Re: Interrupt Python C API

2009-04-16 Thread googler . 1 . webmaster
On 16 Apr., 11:08, Piet van Oostrum p...@cs.uu.nl wrote: googler.1.webmas...@spamgourmet.com (g1w) wrote: g1w hi, yes, thats true, Alan Touring told us, so it would be nice to let g1w the user abort it. g1w Is there a chance for windows, too? I don't know. I have no access to Python on

Re: Interrupt Python C API

2009-04-15 Thread googler . 1 . webmaster
hi, yes, thats true, Alan Touring told us, so it would be nice to let the user abort it. Is there a chance for windows, too? -- http://mail.python.org/mailman/listinfo/python-list

Interrupt Python C API

2009-04-14 Thread googler . 1 . webmaster
Hi, I just have a design problem and don't know how to solve it. I call a function which executes a simple PyRun_String(...) command. imagine the script while 1: pass is executed so the app would hang. Is there any chance to break out this PyRun_String-function? I just searched the forums for

PyEval_EvalCode(...) problem

2009-03-10 Thread googler . 1 . webmaster
Hi! I have a problem with PyEval_EvalCode(...) I compile the following code and execute them with PyEval_EvalCode (...) class MyClass(mod.Upper): pass register(MyClass) #just the type, not the instance Thats all. So register(...) is a Python C API method so i take the type and store it

Re: PyEval_EvalCode(...) problem

2009-03-10 Thread googler . 1 . webmaster
http://rafb.net/p/Uyb5Ps45.html Pelase note, when I call PyObject_CallObject(...) in the wrapped C register(..) method it works fine. -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread googler . 1 . webmaster
Hi! Thanks. Well, os.py is found and all the others which don't need a library. I tested this: I execute Py_Main(...) in my app which executes the console interpreter and i tried to execute import socket which works. So Py_Main has something what my created PyRun_SimpleString doesn't have.

Re: ImportError in embedded Python Interpreter

2009-01-30 Thread googler . 1 . webmaster
Hi! Okay, thats just the question. I did that what you wrote but it doesn't really works. What is, if Py_SetProgramName() gets a NULL Pointer, if argv[0] is empty? Well, the problem is, in my opinion that os.environ returns some paths in python.exe and in my embedded interpreter if I call

ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi, i have a problem. I compiled Python and the socket module so I got this structure. (all on windows) C:\test\dll_files\python25.dll C:\test\my_app C:\test\dll_files\DLLs\ C:\test\dll_files\python.exe If I run python I get the console and I can call import socket which succeeds. I wrote a

ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi, i have a problem. I compiled Python and the socket module so I got this structure. (all on windows) C:\test\dll_files\python25.dll C:\test\my_app C:\test\dll_files\DLLs\ C:\test\dll_files\python.exe If I run python.exe I get the console and I can call import socket which succeeds. I wrote a

Re: ImportError in embedded Python Interpreter

2009-01-29 Thread googler . 1 . webmaster
Hi! Okay, I checkede Py_Main(...) and called some python code there. There it works too. So I know whats missing. sys.environ.. returns nothing. How can I set the paths with the Python C API? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python C API (PyObject_CallMethod clear object)

2009-01-26 Thread googler . 1 . webmaster
On 26 Jan., 03:25, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sun, 25 Jan 2009 23:46:01 -0200, googler.1.webmas...@spamgourmet.com   escribió: I have a problm with deallocating stuff. I call a function with this command: PyObject *rvalue = PyObject_CallMethod(obj,

Re: Python C API (PyObject_CallMethod clear object)

2009-01-26 Thread googler . 1 . webmaster
the hook is, how to delete the locals of this function, maybe thats a workaround? thanks and bye. -- http://mail.python.org/mailman/listinfo/python-list

Python C API (PyObject_CallMethod clear object)

2009-01-25 Thread googler . 1 . webmaster
Hi! I have a problm with deallocating stuff. I call a function with this command: PyObject *rvalue = PyObject_CallMethod(obj, execute,,NULL); if(rvalue==NULL) PyErr_Print(); else Py_DECREF(rvalue); Can it be, that something is missing here? Imagine I allocate an object of a type: t =

MaxInt on Vista-64bit?

2009-01-24 Thread googler . 1 . webmaster
Hi! I downloaded Python64 for Windows Vista64 but the value returned from sys.maxint is just a 32bit integer. I found out, thats by design, Microsoft decided to make the long value 32bit. What can I do to compile python 2.6 with maxint of 64bit integers? Can I replace the int values to a int64

Re: MaxInt on Vista-64bit?

2009-01-24 Thread googler . 1 . webmaster
Hi! Thanks for the fast answer. Yes, its enough but I never thought that Vista64 is not a real 64-bit operating system :-o. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.1 @executable_path

2009-01-12 Thread googler . 1 . webmaster
Hi! Woow, thanks. The unix command install_name_tool solved my problem. Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.1 @executable_path

2009-01-11 Thread googler . 1 . webmaster
Hi! :) Thank you. I found PySys_SetPythonHome() to set the path where the lib folder of Python is, but I guess they are not really implemented because they are fixed compiled for an absolute path, aren't they? Thats the whole problem. Do you have a suggestoin for the command line how I can build

Re: Python 2.6.1 @executable_path

2009-01-11 Thread googler . 1 . webmaster
Thank you, I found PySys_SetPythonHome() to set the path where the lib folder of Python is, but I guess they are not really implemented because they are fixed compiled with an absolute path, aren't they? Thats the problem. I hadn't compiled Python and I don't know if I should compile it as a

Re: Python 2.6.1 @executable_path

2009-01-11 Thread googler . 1 . webmaster
yeap, okay, its just the beginning so I didn't know that the framework is still the dylib file. Well, I only want to compile python and put the framework in the subdirectory. Thats all. And the current state is, that the framework is not found because the path of the compiled Python library is

Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
Hi! I asked something similar a few days ago. Is it possible to compile Python 2.6.1 with a dynamic path? I don't know how the configure command would look like. This is my current configure command for the default /Library/ Frameworks/ path: ./configure --with-framework-name=Python

Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
Hi! I asked something similar a few days ago. Is it possible to compile Python 2.6.1 with a dynamic path on MacOSX? I don't know how the configure command would look like. This is my current configure command for the default /Library/ Frameworks/ path: ./configure --with-framework-name=Python

Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
Hi! I asked something similar a few days ago. Is it possible to compile Python 2.6.1 with a dynamic path on Mac OSX Leopard 10.5.x. I found out that I could use @executable_path but I don't know how the configure command would look like. This is my current configure command for the default

Re: Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
I want to embedd it into another app so on the 'customers'-mac I want to put python into a subdirectory of my app. bye -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
I want to embedd it into my app so on the 'customers'-mac I want to put python into a subdirectory of my app. and with the configure command above, that will not work because the library has to be on every system in /Library/Framework/ so I found out that @executable_path is replaced by the path

Re: Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
Thanks for the link but I don't want to do a make a python script as an applicatin, I want to embedd python into a C++ app so thats the reason why I have to compile Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6.1 @executable_path

2009-01-10 Thread googler . 1 . webmaster
hmm.. very strange. Is it so complicated to compile python that I can move the framework to the app folder? hmm. thats really strange :-( /myapp.app /subfolder/Python.framework any suggestions? Thank you very muc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 fails on compiling Bug report

2009-01-09 Thread googler . 1 . webmaster
hm... any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 fails on compiling Bug report

2009-01-09 Thread googler . 1 . webmaster
Hi! I didn't wanted to post 11.000 Lines here, so I uploaded it here: http://rapidshare.com/files/181425216/config.log.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 fails on compiling Bug report

2009-01-09 Thread googler . 1 . webmaster
hi, thanks for your help. May the diff file is wrong? on my system it doesn't work. Well, set the -enable-universalsdk= path occurs that error. Hmm. that is really a disaster, isn't it :( hm. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 fails on compiling Bug report

2009-01-09 Thread googler . 1 . webmaster
Hi! :) Sorry, there were a few line wrap-arounds in the diff file due to long lines but the changes for the four significant lines should be easy to do manually. Hadn't done that before but I found a ressource how to read that syntax. x86_64 would be enough. i test that again. Thank you. :) --

Python 2.6 fails on compiling Bug report

2009-01-08 Thread googler . 1 . webmaster
Hi! I compiled Python 2.6.1 on a Mac OSX 10.5.5 Intel machine with this configure command and got this message FAILS: ./configure --with-framework-name=Python --with- universal-archs=all --enable-framework --enable- universals...@executable_path/my/path/to/app WORKS:

Re: Python 2.6 fails on compiling Bug report

2009-01-08 Thread googler . 1 . webmaster
Hi searched for Library/Frameworks/ in the config file and edited it to @executable_path. Well my configure and make command worked very fine. Just 'make install' aborted after this error message. test -d /Applications/Python 2.6 || mkdir -p /Applications/Python 2.6 test -d /Applications/Python

Compile as static library

2009-01-06 Thread googler . 1 . webmaster
Hi! I have a big problem with compiling Python on MacOSX. I compile it - everything works ./configure make so I get a libpython2.5.a file which I include into a Xcode Project. I want to static link it with my project (works in Debug mode but not in Release) 1. Is there a static library flag

Python with PyGIL_Ensure?

2008-12-25 Thread googler . 1 . webmaster
Hi! I have a small problem with my python embedded interpreter. I do some stuff where two threads exists which do some pythons stuff in the same stuff. So bpoth call PyGILState_Ensure() which occurs a crash. What can I do, that one thread waits until the other thread released the gil state?

Re: Python with PyGIL_Ensure?

2008-12-25 Thread googler . 1 . webmaster
and merry christmas :) -- http://mail.python.org/mailman/listinfo/python-list

Python C API

2008-12-05 Thread googler . 1 . webmaster
Hi :) I have a main() function of my app which intializes the Python Interpreter and some other stuff. When I am finished I call: PyGILState state = PyGILState_Ensure() //call PyRun_String() PyGILStateRelease(state); The first question is, I found out the API contains other commands lik

Re: Python C API

2008-12-05 Thread googler . 1 . webmaster
Hi! thats a very interesting point and good to know. I have to release the GIL but how do I do? In this case i need PyEval_AcquireLock and PyEval_ReleaseLock? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python C API

2008-12-05 Thread googler . 1 . webmaster
Hi! Any ideas? Thanks, :) -- http://mail.python.org/mailman/listinfo/python-list

PyMarshal Commands crash on Windows

2008-09-14 Thread spammaster . 10 . webmaster
Hi! Can anyone help me with this issue? int main (int argc, char * const argv[]) { Py_Initialize(); FILE* fp = fopen(/Users/test/Desktop/123.pyc,wb); PyCodeObject* op = (PyCodeObject*)Py_CompileString(import sys \nprint 'hello',string.py,Py_file_input);

Re: PyMarshal Commands crash on Windows

2008-09-14 Thread spammaster . 10 . webmaster
Hi! Please remember, that the script crashs on Line PyMarshal_WriteObjectToFile. :-( -- http://mail.python.org/mailman/listinfo/python-list

Re: PyMarshal Commands crash on Windows

2008-09-14 Thread spammaster . 10 . webmaster
Hi! I shortened the quode. Everything should be all right and nothing is a NULL Pointer. What about PyMarshal_ReadObjectFromFile(FILE* p), this crashs too :-/ hm... the problem is, on mac everything is all right.. thanks... -- http://mail.python.org/mailman/listinfo/python-list

ANN: RELEASE: 4Py

2008-07-25 Thread webmaster
4Py is a collection of wrappers for Python. You can retrieve this package in Org.keyphrene Library. Org.keyphrene has been splited to simple package. SSL4Py is an OpenSSL Wrapper. SSH4Py is a LibSSH2 Wrapper (SSH, SCP, SFTP). Spell4Py is a Hunspell Wrapper.

Re: Python Embedding Thread

2008-07-22 Thread googler . 1 . webmaster
Hi! Thank you very much for your answers. I have a menue with a script in it. So my app starts a new thread for each script. So I would like to run two scripts all the same time. Could someone give me a tip, what I have to set in my code? Thank you :) --

Re: Python Embedding Thread

2008-07-22 Thread googler . 1 . webmaster
Hi! I fixed the code. This code snippet runs in a seperate thread: PyObject *dict=NULL; PyGILState_STATE state = PyGILState_Ensure(); dict = CreateMyGlobalDictionary();

ANN: org.keyphrene 0.5.9 is now available

2006-05-15 Thread webmaster
org.keyphrene is a Python binding for LibSSH2, OpenSSL, Hunspell, Par2 libraries. This toolkit for python featuring the following: SSH2 protocol (SFTP, SCP, SSH terminal ...) HMACs, message digests, ciphers (AES, DES, BlowFish), RSA, DSA, DH,SSL functionality yEnc encoder and decoder

Automatic response to your mail (Error)

2005-10-08 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

Last mod date

2005-09-06 Thread Webmaster - Fidelity Lodge #113
This is my first post--I'm a Java developer trying to expand my horizons. I'm trying to figure out how to find out the last modification date/time for a file. I've found a reference to *PyOS_GetLastModificationTime *as an Operating System Utility, but I can't figure out which module I need

Re: Protected message

2005-08-25 Thread webmaster
Your file is attached.-- http://mail.python.org/mailman/listinfo/python-list

ANN: Naja 1.2.5 is now available

2005-08-15 Thread webmaster
Naja is a download manager and a website grabber written in Python/wxPython.You can add some plugins (newsreader, newsgroups grabber, FTP - FTPS - SFTP client,WebDAV client) and take control of your downloads from your office. Naja supports proxy (HTTP, HTTPS, FTP,SOCKS v4a, SOCKSv5), and

Automatic response to your mail (Error)

2005-06-15 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

ANN: org.keyphrene 0.5.1 is now available

2005-06-11 Thread webmaster
org.keyphrene is a Python binding for LibSSH2 and OpenSSL libraries. This toolkit for python featuring the following: SSH2 protocol (SFTP, SCP, SSH terminal ...) HMACs, message digests, ciphers (AES, DES, BlowFish), RSA, DSA, DH,SSL functionality yEnc encoder and decoder ...

ANN: Naja 1.2.3 is now available

2005-06-11 Thread webmaster
Naja is a download manager and a website grabber written in Python/wxPython.You can add some plugins (newsreader, newsgroups grabber, FTP - FTPS - SFTP client,WebDAV client) and take control of your downloads from your office. Naja supports proxy (HTTP, HTTPS, FTP,SOCKS v4a, SOCKSv5), and

Automatic response to your mail (Error)

2005-05-24 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

ANN: Naja 1.2.1 is now available

2005-05-20 Thread webmaster
Naja is a download manager and a website grabber written in Python/wxPython.You can add some plugins (newsreader, FTP - FTPS - SFTP client,WebDAV client) and take control of your downloads from your office. Naja supports proxy (HTTP, HTTPS, FTP,SOCKS v4a, SOCKSv5), and use some authentication

mail.python.org down

2005-04-29 Thread webmaster
Please be patient while we fix it. -- Aahz ([EMAIL PROTECTED]) * http://www.pythoncraft.com/ It's 106 miles to Chicago. We have a full tank of gas, a half-pack of cigarettes, it's dark, and we're wearing sunglasses. Hit it. --

python.org mail flowing again

2005-04-28 Thread webmaster
Thanks to Thomas Wouters for quickly getting mail.python.org back up once he was notified. The mail backlog seems to be mostly finished. -- Aahz ([EMAIL PROTECTED]) * http://www.pythoncraft.com/ It's 106 miles to Chicago. We have a full tank of gas, a half-pack of cigarettes,

Automatic response to your mail (Error)

2005-04-11 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

www.python.org down

2005-02-10 Thread webmaster
Yes, we know that www.python.org is down. Please be patient. -- Aahz ([EMAIL PROTECTED]) * http://www.pythoncraft.com/ The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of

www.python.org down - power outage

2005-02-10 Thread webmaster
Yes, we know that www.python.org is down. XS4ALL is suffering a power outage. Yes, they have backup and redundant power, but it's not working properly for the segment of the building the web server is located in. Fortunately, mail.python.org is located in a different part of the building, which

Automatic response to your mail (Error)

2005-01-19 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

VIRUS ALERT: W32/Mydoom.O@mm

2004-12-05 Thread webmaster
This is a notice from Inter-netcom Mail Server. You sent an email infected with a virus. Please take action and clean your computerReceived: (qmail 12701 invoked from network); 5 Dec 2004 21:41:05 - Received: from corporativo?16780-209.pool.etb.net.co.80.167.65.in-addr.arpa (HELO