Title stringlengths 11 150 | A_Id int64 518 72.5M | Users Score int64 -42 283 | Q_Score int64 0 1.39k | ViewCount int64 17 1.71M | Database and SQL int64 0 1 | Tags stringlengths 6 105 | Answer stringlengths 14 4.78k | GUI and Desktop Applications int64 0 1 | System Administration and DevOps int64 0 1 | Networking and APIs int64 0 1 | Other int64 0 1 | CreationDate stringlengths 23 23 | AnswerCount int64 1 55 | Score float64 -1 1.2 | is_accepted bool 2
classes | Q_Id int64 469 42.4M | Python Basics and Environment int64 0 1 | Data Science and Machine Learning int64 0 1 | Web Development int64 1 1 | Available Count int64 1 15 | Question stringlengths 17 21k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Is Google App Engine a worthy platform for a Lifestreaming app? | 135,223 | 0 | 7 | 1,087 | 0 | python,django,google-app-engine,web-applications | Pulling feeds or doing calculations won't be a problem. But you'll soon have to pay for your account. App engine includes Django, except you'll need to work with some adaptors for the model part. It will surely save you from maintenance headaches. | 0 | 1 | 0 | 0 | 2008-09-25T18:46:00.000 | 7 | 0 | false | 135,169 | 0 | 0 | 1 | 4 | I'm building a Lifestreaming app that will involve pulling down lots of feeds for lots of users, and performing data-mining, and machine learning algorithms on the results. GAE's load balanced and scalable hosting sounds like a good fit for a system that could eventually be moving around a LOT of data, but it's lack of... |
Is Google App Engine a worthy platform for a Lifestreaming app? | 135,201 | 0 | 7 | 1,087 | 0 | python,django,google-app-engine,web-applications | No. If you need to pull lots of things down, App Engine isn't going to work so well. You can use it as a front end by putting your data in their store after doing your offline preprocessing, but you can't do much in the ~1 second time you have per request without doing some really crazy things.
Your app would likely be... | 0 | 1 | 0 | 0 | 2008-09-25T18:46:00.000 | 7 | 0 | false | 135,169 | 0 | 0 | 1 | 4 | I'm building a Lifestreaming app that will involve pulling down lots of feeds for lots of users, and performing data-mining, and machine learning algorithms on the results. GAE's load balanced and scalable hosting sounds like a good fit for a system that could eventually be moving around a LOT of data, but it's lack of... |
Is Google App Engine a worthy platform for a Lifestreaming app? | 135,199 | 3 | 7 | 1,087 | 0 | python,django,google-app-engine,web-applications | It might change when they offer paid plans, but as it stands, App Engine is not good for CPU intensive apps. It is designed to scale to handle a large number of requests, not necessarily a large amount of calculation per request. I am running into this issue with fairly minor calculations, and I fear I may have to st... | 0 | 1 | 0 | 0 | 2008-09-25T18:46:00.000 | 7 | 0.085505 | false | 135,169 | 0 | 0 | 1 | 4 | I'm building a Lifestreaming app that will involve pulling down lots of feeds for lots of users, and performing data-mining, and machine learning algorithms on the results. GAE's load balanced and scalable hosting sounds like a good fit for a system that could eventually be moving around a LOT of data, but it's lack of... |
Python web development - with or without a framework | 138,888 | 2 | 19 | 7,200 | 0 | python,frameworks | Go for a framework. Basic stuffs like session handling are a nightmare if you don't use a one because Python is not web specialized like PHP.
If you think django is too much, you can try a lighter one like the very small but still handy web.py. | 0 | 0 | 0 | 1 | 2008-09-25T20:59:00.000 | 8 | 0.049958 | false | 136,069 | 0 | 0 | 1 | 4 | I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight reporting interface.
I did not use a fra... |
Python web development - with or without a framework | 136,166 | 0 | 19 | 7,200 | 0 | python,frameworks | It depends on the way you are going to distribute your application.
If it will only be used internally, go for django. It's a joy to work with it.
However, django really falls short at the distribution-task; django-applications are a pain to set up. | 0 | 0 | 0 | 1 | 2008-09-25T20:59:00.000 | 8 | 0 | false | 136,069 | 0 | 0 | 1 | 4 | I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight reporting interface.
I did not use a fra... |
Python web development - with or without a framework | 136,683 | 2 | 19 | 7,200 | 0 | python,frameworks | Django makes it possible to whip out a website rapidly, that's for sure. You don't need to be a Python master to use it, and since it's very pythonic in it's design, and there is not really any "magic" going on, it will help you learn Python along the way.
Start with the examples, check out some django screencasts from... | 0 | 0 | 0 | 1 | 2008-09-25T20:59:00.000 | 8 | 0.049958 | false | 136,069 | 0 | 0 | 1 | 4 | I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight reporting interface.
I did not use a fra... |
Python web development - with or without a framework | 136,152 | 4 | 19 | 7,200 | 0 | python,frameworks | Depends on the size of the project. If you had only a few previous php-scripts which called your stand alone application then I'd probably go for a cgi-app.
If you have use for databases, url rewriting, templating, user management and such, then using a framework is a good idea.
And of course, before you port it, consi... | 0 | 0 | 0 | 1 | 2008-09-25T20:59:00.000 | 8 | 0.099668 | false | 136,069 | 0 | 0 | 1 | 4 | I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight reporting interface.
I did not use a fra... |
Looking for File Traversal Functions in Python that are Like Java's | 140,822 | 2 | 10 | 9,026 | 0 | java,python,file-traversal | Use os.path.walk if you want subdirectories as well.
walk(top, func, arg)
Directory tree walk with callback function.
For each directory in the directory tree rooted at top (including top
itself, but excluding '.' and '..'), call func(arg, dirname, fnames).
dirname is the name of the d... | 0 | 0 | 0 | 0 | 2008-09-26T17:20:00.000 | 9 | 0.044415 | false | 140,758 | 1 | 0 | 1 | 2 | In Java you can do File.listFiles() and receive all of the files in a directory. You can then easily recurse through directory trees.
Is there an analogous way to do this in Python? |
Looking for File Traversal Functions in Python that are Like Java's | 141,277 | 2 | 10 | 9,026 | 0 | java,python,file-traversal | I'd recommend against os.path.walk as it is being removed in Python 3.0. os.walk is simpler, anyway, or at least I find it simpler. | 0 | 0 | 0 | 0 | 2008-09-26T17:20:00.000 | 9 | 0.044415 | false | 140,758 | 1 | 0 | 1 | 2 | In Java you can do File.listFiles() and receive all of the files in a directory. You can then easily recurse through directory trees.
Is there an analogous way to do this in Python? |
OCSP libraries for python / java / c? | 143,996 | 1 | 3 | 2,998 | 0 | java,python,c,ocsp | Have you check pyOpenSSL.. am sure openssl supports ocsp and python binding may support it | 0 | 1 | 0 | 0 | 2008-09-27T12:12:00.000 | 3 | 1.2 | true | 143,515 | 0 | 0 | 1 | 1 | Going back to my previous question on OCSP, does anybody know of "reliable" OCSP libraries for Python, Java and C?
I need "client" OCSP functionality, as I'll be checking the status of Certs against an OCSP responder, so responder functionality is not that important.
Thanks |
Debug Pylons application through Eclipse | 147,768 | 10 | 11 | 5,139 | 0 | python,eclipse,pylons,pydev,pyramid | Create a new launch configuration (Python Run)
Main tab
Use paster-script.py as main module (you can find it in the Scripts sub-directory in your python installation directory)
Don't forget to add the root folder of your application in the PYTHONPATH zone
Arguments
Set the base directory to the root folder also.
As Pro... | 0 | 1 | 0 | 1 | 2008-09-29T05:41:00.000 | 7 | 1.2 | true | 147,650 | 0 | 0 | 1 | 4 | I have Eclipse setup with PyDev and love being able to debug my scripts/apps. I've just started playing around with Pylons and was wondering if there is a way to start up the paster server through Eclipse so I can debug my webapp? |
Debug Pylons application through Eclipse | 3,817,880 | 2 | 11 | 5,139 | 0 | python,eclipse,pylons,pydev,pyramid | I was able to get --reload working by changing the 'Working directory' in the arguments tab to not use default (i.e. select 'Other'->File System->'Root of your Pylons' app where development.ini is stored. | 0 | 1 | 0 | 1 | 2008-09-29T05:41:00.000 | 7 | 0.057081 | false | 147,650 | 0 | 0 | 1 | 4 | I have Eclipse setup with PyDev and love being able to debug my scripts/apps. I've just started playing around with Pylons and was wondering if there is a way to start up the paster server through Eclipse so I can debug my webapp? |
Debug Pylons application through Eclipse | 2,958,194 | 1 | 11 | 5,139 | 0 | python,eclipse,pylons,pydev,pyramid | On linux that will probably be /usr/bin/paster or /usr/local/bin/paster for paste script, and for arguments i have: serve ${workspace_loc}${project_path}/development.ini | 0 | 1 | 0 | 1 | 2008-09-29T05:41:00.000 | 7 | 0.028564 | false | 147,650 | 0 | 0 | 1 | 4 | I have Eclipse setup with PyDev and love being able to debug my scripts/apps. I've just started playing around with Pylons and was wondering if there is a way to start up the paster server through Eclipse so I can debug my webapp? |
Debug Pylons application through Eclipse | 1,306,122 | 2 | 11 | 5,139 | 0 | python,eclipse,pylons,pydev,pyramid | yanjost has it right, just wanted to add that you need to make sure you do not use the --reload option, this will prevent the debugger from properly attaching itself and cause your breakpoints not to work. Just a little thing I ran in to. | 0 | 1 | 0 | 1 | 2008-09-29T05:41:00.000 | 7 | 0.057081 | false | 147,650 | 0 | 0 | 1 | 4 | I have Eclipse setup with PyDev and love being able to debug my scripts/apps. I've just started playing around with Pylons and was wondering if there is a way to start up the paster server through Eclipse so I can debug my webapp? |
Automated Python to Java translation | 155,385 | 15 | 33 | 120,780 | 0 | java,python,jython,code-translation | Actually, this may or may not be much help but you could write a script which created a Java class for each Python class, including method stubs, placing the Python implementation of the method inside the Javadoc
In fact, this is probably pretty easy to knock up in Python.
I worked for a company which undertook a port ... | 0 | 0 | 0 | 0 | 2008-09-30T15:13:00.000 | 4 | 1 | false | 153,491 | 0 | 0 | 1 | 4 | Is there a tool out there that can automatically convert Python to Java?
Can Jython do this? |
Automated Python to Java translation | 153,535 | 8 | 33 | 120,780 | 0 | java,python,jython,code-translation | It may not be an easy problem.
Determining how to map classes defined in Python into types in Java will be a big challange because of differences in each of type binding time. (duck typing vs. compile time binding). | 0 | 0 | 0 | 0 | 2008-09-30T15:13:00.000 | 4 | 1.2 | true | 153,491 | 0 | 0 | 1 | 4 | Is there a tool out there that can automatically convert Python to Java?
Can Jython do this? |
Automated Python to Java translation | 153,530 | 1 | 33 | 120,780 | 0 | java,python,jython,code-translation | to clarify your question:
From Python Source code to Java source code? (I don't think so)
.. or from Python source code to Java Bytecode? (Jython does this under the hood) | 0 | 0 | 0 | 0 | 2008-09-30T15:13:00.000 | 4 | 0.049958 | false | 153,491 | 0 | 0 | 1 | 4 | Is there a tool out there that can automatically convert Python to Java?
Can Jython do this? |
Automated Python to Java translation | 989,822 | 4 | 33 | 120,780 | 0 | java,python,jython,code-translation | Yes Jython does this, but it may or may not be what you want | 0 | 0 | 0 | 0 | 2008-09-30T15:13:00.000 | 4 | 0.197375 | false | 153,491 | 0 | 0 | 1 | 4 | Is there a tool out there that can automatically convert Python to Java?
Can Jython do this? |
Template Lib (Engine) in Python running with Jython | 160,496 | 2 | 1 | 879 | 0 | python,jython,template-engine | Jinja is pretty cool and seems to work on Jython. | 0 | 0 | 0 | 0 | 2008-10-01T12:20:00.000 | 3 | 0.132549 | false | 157,313 | 0 | 0 | 1 | 1 | Im searching a Template Lib or Template Engine for generating HTML (XML) that runs under Jython (Jython 2.5 Alpha is ok). |
Are there any other good alternatives to zc.buildout and/or virtualenv for installing non-python dependencies? | 4,060,962 | 3 | 7 | 2,576 | 0 | python,deployment,build-process | I always create a develop.py file at the top level of the project, and have also a packages directory with all of the .tar.gz files from PyPI that I want to install, and also included an unpacked copy of virtualenv that is ready to run right from that file. All of this goes into version control. Every developer can s... | 0 | 1 | 0 | 0 | 2008-10-02T03:55:00.000 | 6 | 0.099668 | false | 160,834 | 0 | 0 | 1 | 4 | I am a member of a team that is about to launch a beta of a python (Django specifically) based web site and accompanying suite of backend tools. The team itself has doubled in size from 2 to 4 over the past few weeks and we expect continued growth for the next couple of months at least. One issue that has started to ... |
Are there any other good alternatives to zc.buildout and/or virtualenv for installing non-python dependencies? | 185,505 | 4 | 7 | 2,576 | 0 | python,deployment,build-process | Setuptools may be capable of more of what you're looking for than you realize -- if you need a custom version of lxml to work correctly on MacOS X, for instance, you can put a URL to an appropriate egg inside your setup.py and have setuptools download and install that inside your developers' environments as necessary; ... | 0 | 1 | 0 | 0 | 2008-10-02T03:55:00.000 | 6 | 0.132549 | false | 160,834 | 0 | 0 | 1 | 4 | I am a member of a team that is about to launch a beta of a python (Django specifically) based web site and accompanying suite of backend tools. The team itself has doubled in size from 2 to 4 over the past few weeks and we expect continued growth for the next couple of months at least. One issue that has started to ... |
Are there any other good alternatives to zc.buildout and/or virtualenv for installing non-python dependencies? | 177,109 | 0 | 7 | 2,576 | 0 | python,deployment,build-process | You might consider creating virtual machine appliances with whatever production OS you are running, and all of the software dependencies pre-built. Code can be edited either remotely, or with a shared folder. It worked pretty well for me in a past life that had a fairly complicated development environment. | 0 | 1 | 0 | 0 | 2008-10-02T03:55:00.000 | 6 | 0 | false | 160,834 | 0 | 0 | 1 | 4 | I am a member of a team that is about to launch a beta of a python (Django specifically) based web site and accompanying suite of backend tools. The team itself has doubled in size from 2 to 4 over the past few weeks and we expect continued growth for the next couple of months at least. One issue that has started to ... |
Are there any other good alternatives to zc.buildout and/or virtualenv for installing non-python dependencies? | 160,872 | 0 | 7 | 2,576 | 0 | python,deployment,build-process | Basically, you're looking for a cross-platform software/package installer (on the lines of apt-get/yum/etc.) I'm not sure something like that exists?
An alternative might be specifying the list of packages that need to be installed via the OS-specific package management system such as Fink or DarwinPorts for Mac OS X a... | 0 | 1 | 0 | 0 | 2008-10-02T03:55:00.000 | 6 | 0 | false | 160,834 | 0 | 0 | 1 | 4 | I am a member of a team that is about to launch a beta of a python (Django specifically) based web site and accompanying suite of backend tools. The team itself has doubled in size from 2 to 4 over the past few weeks and we expect continued growth for the next couple of months at least. One issue that has started to ... |
How would I package and sell a Django app? | 164,987 | 62 | 42 | 17,445 | 0 | python,django,piracy-prevention | Don't try and obfuscate or encrypt the code - it will never work.
I would suggest selling the Django application "as a service" - either host it for them, or sell them the code and support. Write up a contract that forbids them from redistributing it.
That said, if you were determined to obfuscate the code in some way ... | 0 | 0 | 0 | 0 | 2008-10-02T22:27:00.000 | 7 | 1.2 | true | 164,901 | 0 | 0 | 1 | 6 | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.
My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound lik... |
How would I package and sell a Django app? | 167,240 | 7 | 42 | 17,445 | 0 | python,django,piracy-prevention | You'll never be able to keep the source code from people who really want it. It's best to come to grips with this fact now, and save yourself the headache later. | 0 | 0 | 0 | 0 | 2008-10-02T22:27:00.000 | 7 | 1 | false | 164,901 | 0 | 0 | 1 | 6 | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.
My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound lik... |
How would I package and sell a Django app? | 164,920 | 13 | 42 | 17,445 | 0 | python,django,piracy-prevention | The way I'd go about it is this:
Encrypt all of the code
Write an installer that contacts the server with the machine's hostname and license file and gets the decryption key, then decrypts the code and compiles it to python bytecode
Add (in the installer) a module that checks the machine's hostname and license file on... | 0 | 0 | 0 | 0 | 2008-10-02T22:27:00.000 | 7 | 1 | false | 164,901 | 0 | 0 | 1 | 6 | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.
My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound lik... |
How would I package and sell a Django app? | 5,915,669 | 4 | 42 | 17,445 | 0 | python,django,piracy-prevention | May I speak frankly, as a friend? Unless your app is Really Amazing, you may not get many buyers. Why waste the time on lawyers, obfuscation, licensing and whatnot? You stand to gain a better reputation by open-sourcing your code...and maintaining it.
Django comes from the open-source end of the spectrum from licensing... | 0 | 0 | 0 | 0 | 2008-10-02T22:27:00.000 | 7 | 0.113791 | false | 164,901 | 0 | 0 | 1 | 6 | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.
My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound lik... |
How would I package and sell a Django app? | 395,813 | 3 | 42 | 17,445 | 0 | python,django,piracy-prevention | One thing you might want to consider is what FogBugz does. Simply include a small binary (perhaps a C program) that is compiled for the target platforms and contains the code to validate the license.
This way you can keep the honest people honest with minimal headache on your part. | 0 | 0 | 0 | 0 | 2008-10-02T22:27:00.000 | 7 | 0.085505 | false | 164,901 | 0 | 0 | 1 | 6 | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.
My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound lik... |
How would I package and sell a Django app? | 445,887 | 10 | 42 | 17,445 | 0 | python,django,piracy-prevention | "Encrypting" Python source code (or bytecode, or really bytecode for any language that uses it -- not just Python) is like those little JavaScript things some people put on web pages to try to disable the right-hand mouse button, declaring "now you can't steal my images!"
The workarounds are trivial, and will not stop ... | 0 | 0 | 0 | 0 | 2008-10-02T22:27:00.000 | 7 | 1 | false | 164,901 | 0 | 0 | 1 | 6 | Currently I am hosting a Django app I developed myself for my clients, but I am now starting to look at selling it to people for them to host themselves.
My question is this: How can I package up and sell a Django app, while protecting its code from pirating or theft? Distributing a bunch of .py files doesn't sound lik... |
Django, mod_python, apache and wacky sessions | 699,045 | 0 | 2 | 1,356 | 0 | python,django,apache,session,mod-python | If you are using some global variables to hold data of your custom authentication session, you need to change this to use either file, database or memcached. As stated above mod_python launches few processes and there's no shared memory between them.
I recommend using memcached for this, also use cookies to store sessi... | 0 | 0 | 0 | 0 | 2008-10-03T11:10:00.000 | 5 | 0 | false | 166,364 | 0 | 0 | 1 | 4 | I am running a Django through mod_python on Apache on a linux box. I have a custom authentication backend, and middleware that requires authentication for all pages, except static content.
My problem is that after I log in, I will still randomly get the log in screen now and again. It seems to me that each apache proce... |
Django, mod_python, apache and wacky sessions | 166,539 | 2 | 2 | 1,356 | 0 | python,django,apache,session,mod-python | You are correct about how Apache handles the processes, and sometimes you'll get served by a different process. You can see this when you make a change to your site; new processes will pick up the change, but old processes will give you the old site. To get consistency, you have to restart Apache.
Assuming a restart ... | 0 | 0 | 0 | 0 | 2008-10-03T11:10:00.000 | 5 | 0.07983 | false | 166,364 | 0 | 0 | 1 | 4 | I am running a Django through mod_python on Apache on a linux box. I have a custom authentication backend, and middleware that requires authentication for all pages, except static content.
My problem is that after I log in, I will still randomly get the log in screen now and again. It seems to me that each apache proce... |
Django, mod_python, apache and wacky sessions | 14,830,843 | 0 | 2 | 1,356 | 0 | python,django,apache,session,mod-python | How to ensure that session is not cleared after Apache restart( or stop and start) ?
Because when I upgrade my source code and restart Apache, I refresh the web page and there I have to login again. Session is lost.
Session is stored in Memcache. No idea how and why its cleared. How to preserve the session so that the... | 0 | 0 | 0 | 0 | 2008-10-03T11:10:00.000 | 5 | 0 | false | 166,364 | 0 | 0 | 1 | 4 | I am running a Django through mod_python on Apache on a linux box. I have a custom authentication backend, and middleware that requires authentication for all pages, except static content.
My problem is that after I log in, I will still randomly get the log in screen now and again. It seems to me that each apache proce... |
Django, mod_python, apache and wacky sessions | 166,509 | 0 | 2 | 1,356 | 0 | python,django,apache,session,mod-python | Do you have standard database-driven sessions? Is caching enabled in settings? | 0 | 0 | 0 | 0 | 2008-10-03T11:10:00.000 | 5 | 0 | false | 166,364 | 0 | 0 | 1 | 4 | I am running a Django through mod_python on Apache on a linux box. I have a custom authentication backend, and middleware that requires authentication for all pages, except static content.
My problem is that after I log in, I will still randomly get the log in screen now and again. It seems to me that each apache proce... |
How do you develop against OpenID locally | 172,137 | 3 | 41 | 3,845 | 0 | python,django,openid | You could probably use the django OpenID library to write a provider to test against. Have one that always authenticates and one that always fails. | 0 | 0 | 0 | 0 | 2008-10-05T14:08:00.000 | 7 | 0.085505 | false | 172,040 | 0 | 0 | 1 | 1 | I'm developing a website (in Django) that uses OpenID to authenticate users. As I'm currently only running on my local machine I can't authenticate using one of the OpenID providers on the web. So I figure I need to run a local OpenID server that simply lets me type in a username and then passes that back to my main ap... |
Does anyone have experience with PyS60 mobile development | 1,195,831 | 0 | 10 | 1,684 | 0 | python,mobile,pys60 | I have some J2ME experience and now I decided to write a couple of useful apps for my phone so I decided to use PyS60 to study Python by the way:)
Some things I don't like about the platform are:
You can't invoke any graphical functions (module appuifw) from non-main thread.
Python script model is not well-suited for ... | 1 | 0 | 0 | 0 | 2008-10-06T07:37:00.000 | 7 | 0 | false | 173,484 | 0 | 0 | 1 | 2 | I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE's and emulators.
Please don't tell me that I should be develo... |
Does anyone have experience with PyS60 mobile development | 489,368 | 0 | 10 | 1,684 | 0 | python,mobile,pys60 | I've written a calculator, that I'd like to have, and made a simple game.
I wrote it right on the phone. I was writing in text editor then switched to Python and ran a script. It is not very comfortable, but it's ok. Moreover, I was writing all this when I hadn't PC nearby.
It was a great experience! | 1 | 0 | 0 | 0 | 2008-10-06T07:37:00.000 | 7 | 0 | false | 173,484 | 0 | 0 | 1 | 2 | I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE's and emulators.
Please don't tell me that I should be develo... |
Keeping filters in Django Admin | 2,967,841 | 0 | 6 | 3,989 | 0 | python,django,django-admin | Another way to do this is to embed the filter in the queryset.
You can dynamically create a proxy model with a manager that filters the way you want, then call admin.site.register() to create a new model admin. All the links would then be relative to this view. | 0 | 0 | 0 | 0 | 2008-10-07T07:33:00.000 | 7 | 0 | false | 177,492 | 0 | 0 | 1 | 2 | What I would like to achive is:
I go to admin site, apply some filters to the list of objects
I click and object edit, edit, edit, hit 'Save'
Site takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied.
Is there an easy way to do it? |
Keeping filters in Django Admin | 177,563 | 2 | 6 | 3,989 | 0 | python,django,django-admin | Click 2 times "Back"? | 0 | 0 | 0 | 0 | 2008-10-07T07:33:00.000 | 7 | 0.057081 | false | 177,492 | 0 | 0 | 1 | 2 | What I would like to achive is:
I go to admin site, apply some filters to the list of objects
I click and object edit, edit, edit, hit 'Save'
Site takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied.
Is there an easy way to do it? |
What do I need to import to gain access to my models? | 7,870,288 | 1 | 9 | 1,329 | 0 | python,django | The cleanest solution is to add django extensions.
(virt1)tsmets@calvin:~/Documents/prive/rugby-club/proposal/kitu$ yolk -l
Django - 1.3.1 - active
Pygments - 1.4 - active
Python - 2.6.5 - active development (/usr/lib/python2.6/lib-dynload)
django-extensions - 0.7.1 ... | 0 | 0 | 0 | 0 | 2008-10-08T11:23:00.000 | 5 | 0.039979 | false | 182,229 | 0 | 0 | 1 | 2 | I'd like to run a script to populate my database. I'd like to access it through the Django database API.
The only problem is that I don't know what I would need to import to gain access to this.
How can this be achieved? |
What do I need to import to gain access to my models? | 182,275 | 0 | 9 | 1,329 | 0 | python,django | In addition to your own models files, you need to import your settings module as well. | 0 | 0 | 0 | 0 | 2008-10-08T11:23:00.000 | 5 | 0 | false | 182,229 | 0 | 0 | 1 | 2 | I'd like to run a script to populate my database. I'd like to access it through the Django database API.
The only problem is that I don't know what I would need to import to gain access to this.
How can this be achieved? |
Framework/Language for new web 2.0 sites (2008 and 2009) | 188,971 | 7 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | All of them will get the job done.
Use the one that you and your team are most familiar with
This will have a far greater impact on the delivery times and stability of your app than any of the other variables. | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 1 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 184,278 | 9 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | Sorry, but your question is wrong. People are probably going to vote me down for this one but I want to say it anyway:
I wouldn't expect to get an objective answer! Why? That's simple:
All Ruby advocates will tell to use Ruby.
All Python advocates will tell to use Python.
All PHP advocates will tell to use PHP.
Insert... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 1 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 189,236 | 1 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | Don't get stuck in the mindset of server-side page layout. Consider technologies like SproutCore, GWT or ExtJS which put the layouting code fully on the client, making the server responsible only for data marshalling and processing (and easily replaced).
And you really, really need to know which server platform you wan... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 0.015383 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 184,376 | 5 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | it depends.
php - symfony is a great framework. downsides: php, wordy and directory heavy. propel gets annoying to use. upsides: php is everywhere and labor is cheap. well done framework, and good support. lots of plugins to make your life easier
python - django is also a great framework. downsides: python progra... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 1.2 | true | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 186,765 | 0 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | My experience with various new technologies over the last ten years leads me to recommend that you make stability of the platform a serious criterion. It's all well and good developing with the latest and greatest framework, but when you find it's moved forward a point version and suddenly the way you have done everyth... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 0 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 189,012 | 1 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | I have to preface this with my agreeing with Orion Edwards, choose the one your team is most familiar with.
However, I also have to note the curious lack of ASP.NET languages in your list. Not to provoke the great zealot army, but where's the beef? .NET is a stable, rapid development platform and the labor pool is grow... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 0.015383 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 208,938 | 1 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | Having built apps in Django, I can attest to its utility. If only all frameworks were as elegant (yes Spring, I'm looking at you).
However in terms of betting the farm on Django, one thing you need to factor in is that Python 3 will be released shortly. Python 3 is not backwards compatible and there's a risk that it wi... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 0.015383 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 184,107 | 4 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | I would go with Django, if you are comfortable with a Python solution. It's at version 1.0 now, and is maturing nicely, with a large user base and many contributors. Integrating jQuery is no problem, and I've done it without any issues.
The only thing is, as far as I can tell, Ruby is much more popular for web developm... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 0.061461 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
Framework/Language for new web 2.0 sites (2008 and 2009) | 184,157 | 2 | 2 | 959 | 0 | python,ruby-on-rails,django,merb | Based in your reasons, I would go with Ruby. I see that you want some administration tools (scp, ftp client) and Ruby has it (net/sftp and net/ftp libraries).
Also, there are great gems like God for monitoring your system, Vlad the Deployer for deploying, etc. And a lot of alternatives in Merb's field, just use whateve... | 0 | 1 | 0 | 1 | 2008-10-08T18:07:00.000 | 13 | 0.03076 | false | 184,049 | 0 | 0 | 1 | 9 | I know I'll get a thousand "Depends on what you're trying to do" answers, but seriously, there really is no solid information about this online yet. Here are my assumptions - I think they're similar for alot of people right now:
It is now October 2008. I want to start writing an application for January 2009. I am w... |
MVC model structure in Python | 185,692 | 7 | 3 | 3,599 | 0 | python,model-view-controller,model,structure | There is an inconsistency in your specification. You say Database.py needs to import all Model classes to do ORM but then you say the User class need access to the Database to do queries.
Think of these as layers of an API. The Database class provides an API (maybe object-oriented) to some physical persistence layer (s... | 0 | 0 | 0 | 0 | 2008-10-08T23:46:00.000 | 3 | 1.2 | true | 185,389 | 0 | 0 | 1 | 3 | I'm having problems structuring classes in the Model part of an MVC pattern in my Python app. No matter how I turn things, I keep running into circular imports. Here's what I have:
Model/__init__p.y
should hold all Model class names so
I can do a "from Model import User"
e.g. from a Controller or a unit
test case
Mod... |
MVC model structure in Python | 185,411 | 3 | 3 | 3,599 | 0 | python,model-view-controller,model,structure | Generally, we put it all in one file. This isn't Java or C++.
Start with a single file until you get some more experience with Python. Unless your files are gargantuan, it will work fine.
For example, Django encourages this style, so copy their formula for success. One module for the model. A module for each appli... | 0 | 0 | 0 | 0 | 2008-10-08T23:46:00.000 | 3 | 0.197375 | false | 185,389 | 0 | 0 | 1 | 3 | I'm having problems structuring classes in the Model part of an MVC pattern in my Python app. No matter how I turn things, I keep running into circular imports. Here's what I have:
Model/__init__p.y
should hold all Model class names so
I can do a "from Model import User"
e.g. from a Controller or a unit
test case
Mod... |
MVC model structure in Python | 185,480 | 1 | 3 | 3,599 | 0 | python,model-view-controller,model,structure | I think you have one issue that should be straightened. Circular references often result from a failure to achieve separation of concerns. In my opinion, the database and model modules shouldn't know much about each other, working against an API instead. In this case the database shouldn't directly reference any spe... | 0 | 0 | 0 | 0 | 2008-10-08T23:46:00.000 | 3 | 0.066568 | false | 185,389 | 0 | 0 | 1 | 3 | I'm having problems structuring classes in the Model part of an MVC pattern in my Python app. No matter how I turn things, I keep running into circular imports. Here's what I have:
Model/__init__p.y
should hold all Model class names so
I can do a "from Model import User"
e.g. from a Controller or a unit
test case
Mod... |
Python Webframework Confusion | 191,805 | 7 | 10 | 2,552 | 0 | python,pylons,cherrypy,web-frameworks,turbogears | Give a try to web2py. It is point and click (you do not even need to install Python, comes with it). You develop using a web interface and you can deploy almost everywhere, including iPhone, Oracle and Google App Engine. Before trying web2py, try install some of the other Python frameworks, you will appreciate it even ... | 0 | 0 | 0 | 0 | 2008-10-10T12:40:00.000 | 5 | 1 | false | 191,062 | 0 | 0 | 1 | 2 | Could someone please explain to me how the current python webframworks fit together?
The three I've heard of are CherryPy, TurboGears and Pylons. However I'm confused because TurboGears seems to use CherryPy as the 'Controller' (although isn't CherryPy a framework in in it's own right?), and TurbGears 2 is going to be ... |
Python Webframework Confusion | 191,336 | 6 | 10 | 2,552 | 0 | python,pylons,cherrypy,web-frameworks,turbogears | CherryPy is not a full-stack web framework (like Django for example), in fact it isn't a web framework but a HTTP framework. Writing a web application using CherryPy is much like writing a regular object-oriented application in Python.
Also, CherryPy has it's own production-ready WSGI web server, which can be also used... | 0 | 0 | 0 | 0 | 2008-10-10T12:40:00.000 | 5 | 1 | false | 191,062 | 0 | 0 | 1 | 2 | Could someone please explain to me how the current python webframworks fit together?
The three I've heard of are CherryPy, TurboGears and Pylons. However I'm confused because TurboGears seems to use CherryPy as the 'Controller' (although isn't CherryPy a framework in in it's own right?), and TurbGears 2 is going to be ... |
Running a web app in Grails vs Django | 288,617 | 5 | 5 | 5,101 | 0 | python,django,grails,groovy,web-applications | With Java hosting you don't need to do all the stupid tricks with apache, or nginx. Jetty itself can host everything you need, that's how the guys at www.mor.ph do it, and they find it to be pretty fast.
The memory usage that way is pretty minimal, I host mine on a 256MB Ubuntu server from RapidXen, so it's about $10/m... | 0 | 0 | 0 | 0 | 2008-10-12T04:36:00.000 | 5 | 0.197375 | false | 195,101 | 0 | 0 | 1 | 3 | I'm currently in the planning stage for a web application and I find myself trying to decide on using Grails or Django. From an operation perspective:
Which ecosystem is easier to maintain (migrations, backup, disaster recovery etc.)? If using grails it'll probably be a typical tomcat + mysql on linux. If django it... |
Running a web app in Grails vs Django | 195,137 | 0 | 5 | 5,101 | 0 | python,django,grails,groovy,web-applications | i think python tend to have lower hosting requirements (i.e., grails needs a jvm, and most el-cheapo hosts dont provide one, where as they usually provide python support). Plus google app engine supports django (to some extend).
But if you got the dough, grails is so much better imho. | 0 | 0 | 0 | 0 | 2008-10-12T04:36:00.000 | 5 | 0 | false | 195,101 | 0 | 0 | 1 | 3 | I'm currently in the planning stage for a web application and I find myself trying to decide on using Grails or Django. From an operation perspective:
Which ecosystem is easier to maintain (migrations, backup, disaster recovery etc.)? If using grails it'll probably be a typical tomcat + mysql on linux. If django it... |
Running a web app in Grails vs Django | 197,592 | 2 | 5 | 5,101 | 0 | python,django,grails,groovy,web-applications | I think from an operations perspective things are going to be close enough that you can base your decision on other criteria. If you can afford a virtual private server with at least 256 MB RAM you will be able to deploy Grails applications. If the cost seems like a lot check out Sun. They are really pushing hosting so... | 0 | 0 | 0 | 0 | 2008-10-12T04:36:00.000 | 5 | 0.07983 | false | 195,101 | 0 | 0 | 1 | 3 | I'm currently in the planning stage for a web application and I find myself trying to decide on using Grails or Django. From an operation perspective:
Which ecosystem is easier to maintain (migrations, backup, disaster recovery etc.)? If using grails it'll probably be a typical tomcat + mysql on linux. If django it... |
In production, Apache + mod_wsgi or Nginx + mod_wsgi? | 196,580 | 14 | 68 | 31,610 | 0 | python,apache,nginx,mod-wsgi | The main difference is that nginx is built to handle large numbers of connections in a much smaller memory space. This makes it very well suited for apps that are doing comet like connections that can have many idle open connections. This also gives it quite a smaller memory foot print.
From a raw performance perspec... | 0 | 0 | 0 | 1 | 2008-10-12T14:14:00.000 | 4 | 1 | false | 195,534 | 0 | 0 | 1 | 1 | What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?
Which combination will need more memory and CPU time?
Which one is faster?
Which is known for being more stable than the other?
I am also thinking to use CherryPy's WSGI server but I hear it's not very suitable for a very ... |
How can I port a legacy Java/J2EE website to a modern scripting language (PHP,Python/Django, etc)? | 219,328 | 1 | 4 | 1,554 | 0 | java,php,python,django,jakarta-ee | A lot of the recommendations being given here are assuming you -- and just you -- are doing a full rewrite of the application. This is probably not the case, and it changes the answer quite a bit
If you've already got J2EE kicking around, the correct answer is Grails. It simply is: you probably already have Hibernate... | 0 | 0 | 0 | 0 | 2008-10-14T00:23:00.000 | 4 | 0.049958 | false | 199,556 | 0 | 0 | 1 | 3 | I want to move a legacy Java web application (J2EE) to a scripting language - any scripting language - in order to improve programming efficiency.
What is the easiest way to do this? Are there any automated tools that can convert the bulk of the business logic? |
How can I port a legacy Java/J2EE website to a modern scripting language (PHP,Python/Django, etc)? | 199,593 | 6 | 4 | 1,554 | 0 | java,php,python,django,jakarta-ee | Using an automated tool to "port" the web application will almost certainly guarantee that future programming efficiency will be minimised -- not improved.
A good scripting language can help programming efficiency when used by good programmers who understand good coding practices in that language. Automated tools are ... | 0 | 0 | 0 | 0 | 2008-10-14T00:23:00.000 | 4 | 1 | false | 199,556 | 0 | 0 | 1 | 3 | I want to move a legacy Java web application (J2EE) to a scripting language - any scripting language - in order to improve programming efficiency.
What is the easiest way to do this? Are there any automated tools that can convert the bulk of the business logic? |
How can I port a legacy Java/J2EE website to a modern scripting language (PHP,Python/Django, etc)? | 199,736 | 11 | 4 | 1,554 | 0 | java,php,python,django,jakarta-ee | Here's what you have to do.
First, be sure you can walk before you run. Build something simple, possibly tangentially related to your main project.
DO NOT build a piece of the final project and hope it will "evolve" into the final project. This never works out well. Why? You'll make dumb mistakes. But you can't de... | 0 | 0 | 0 | 0 | 2008-10-14T00:23:00.000 | 4 | 1 | false | 199,556 | 0 | 0 | 1 | 3 | I want to move a legacy Java web application (J2EE) to a scripting language - any scripting language - in order to improve programming efficiency.
What is the easiest way to do this? Are there any automated tools that can convert the bulk of the business logic? |
What would you recommend for a high traffic ajax intensive website? | 244,836 | 2 | 7 | 1,670 | 1 | php,python,lighttpd,cherrypy,high-load | I would go with nginx + php + xcache + postgresql | 0 | 0 | 0 | 0 | 2008-10-15T13:57:00.000 | 5 | 0.07983 | false | 204,802 | 0 | 0 | 1 | 4 | For a website like reddit with lots of up/down votes and lots of comments per topic what should I go with?
Lighttpd/Php or Lighttpd/CherryPy/Genshi/SQLAlchemy?
and for database what would scale better / be fastest MySQL ( 4.1 or 5 ? ) or PostgreSQL? |
What would you recommend for a high traffic ajax intensive website? | 204,854 | 2 | 7 | 1,670 | 1 | php,python,lighttpd,cherrypy,high-load | Going to need more data. Jeff had a few articles on the same problems and the answer was to wait till you hit a performance issue.
to start with - who is hosting and what do they have available ? what's your in house talent skill sets ? Are you going to be hiring an outside firm ? what do they recommend ? brand new... | 0 | 0 | 0 | 0 | 2008-10-15T13:57:00.000 | 5 | 0.07983 | false | 204,802 | 0 | 0 | 1 | 4 | For a website like reddit with lots of up/down votes and lots of comments per topic what should I go with?
Lighttpd/Php or Lighttpd/CherryPy/Genshi/SQLAlchemy?
and for database what would scale better / be fastest MySQL ( 4.1 or 5 ? ) or PostgreSQL? |
What would you recommend for a high traffic ajax intensive website? | 204,853 | 8 | 7 | 1,670 | 1 | php,python,lighttpd,cherrypy,high-load | I can't speak to the MySQL/PostgreSQL question as I have limited experience with Postgres, but my Masters research project was about high-performance websites with CherryPy, and I don't think you'll be disappointed if you use CherryPy for your site. It can easily scale to thousands of simultaneous users on commodity h... | 0 | 0 | 0 | 0 | 2008-10-15T13:57:00.000 | 5 | 1.2 | true | 204,802 | 0 | 0 | 1 | 4 | For a website like reddit with lots of up/down votes and lots of comments per topic what should I go with?
Lighttpd/Php or Lighttpd/CherryPy/Genshi/SQLAlchemy?
and for database what would scale better / be fastest MySQL ( 4.1 or 5 ? ) or PostgreSQL? |
What would you recommend for a high traffic ajax intensive website? | 205,425 | 3 | 7 | 1,670 | 1 | php,python,lighttpd,cherrypy,high-load | On the DB question, I'd say PostgreSQL scales better and has better data integrity than MySQL. For a small site MySQL might be faster, but from what I've heard it slows significantly as the size of the database grows. (Note: I've never used MySQL for a large database, so you should probably get a second opinion about i... | 0 | 0 | 0 | 0 | 2008-10-15T13:57:00.000 | 5 | 0.119427 | false | 204,802 | 0 | 0 | 1 | 4 | For a website like reddit with lots of up/down votes and lots of comments per topic what should I go with?
Lighttpd/Php or Lighttpd/CherryPy/Genshi/SQLAlchemy?
and for database what would scale better / be fastest MySQL ( 4.1 or 5 ? ) or PostgreSQL? |
Starting a new database driven python web application would you use a javascript widget framework? If so which framework? | 213,325 | 1 | 1 | 2,019 | 0 | javascript,python,frameworks | web2py uses jQuery | 0 | 0 | 0 | 0 | 2008-10-15T15:37:00.000 | 5 | 0.039979 | false | 205,204 | 0 | 0 | 1 | 1 | I am starting a new web application project. I want to use python as I am using it at my bread-and-butter-job.
However I don't want to reinvent the wheel. Some things I have thought about:
AJAX would be nice if it’s not too much of a hazzle.
It is best if the licensing allows commercialization but is not crucial at t... |
Using os.execvp in Python | 211,898 | 0 | 7 | 11,349 | 0 | python,shell,exec | Make sure you aren't relying on shell expansion in your classpath. E.g. "~/my.jar" will get expanded by the shell in an os.system call, but not, I believe in an os.execvp call. | 0 | 1 | 0 | 0 | 2008-10-17T03:04:00.000 | 2 | 0 | false | 210,978 | 0 | 0 | 1 | 1 | I have a question about using os.execvp in Python. I have the following bit of code that's used to create a list of arguments:
args = [ "java"
, classpath
, "-Djava.library.path=" + lib_path()
, ea
, "-Xmx1000m"
, "-server"
, "code_swarm"
, params
]
When I outpu... |
Scripting in Java | 838,738 | 2 | 8 | 1,679 | 0 | java,javascript,python,scripting-language | Short version
Don’t use a scripting language! Instead focus on configurability (which is something that a non-programmer can do well).
Longer version
One oft-used argument in favour of having a scripting language is that it allows for lesser programmers to more trivial tasks. Don't belive this, it will not save you any... | 0 | 0 | 0 | 1 | 2008-10-17T09:23:00.000 | 11 | 0.036348 | false | 211,536 | 1 | 0 | 1 | 3 | Me and some friends are writing a MORPG in Java, and we would like to use a scripting language to, eg. to create quests.
We have non experience with scripting in Java. We have used Python, but we are very inexperienced with it. One of us also have used Javascript.
What scripting language should we use?
What scripting ... |
Scripting in Java | 211,883 | 0 | 8 | 1,679 | 0 | java,javascript,python,scripting-language | I am a big fan of Python/Jython due to the clean syntax - which may suit you if you have some python experience.
Otherwise Groovy which is based on Java syntax and may be an easier learning curve if most of your developers are Java guys. It also has the advantage of closer ties with the Java language and libraries.
B... | 0 | 0 | 0 | 1 | 2008-10-17T09:23:00.000 | 11 | 0 | false | 211,536 | 1 | 0 | 1 | 3 | Me and some friends are writing a MORPG in Java, and we would like to use a scripting language to, eg. to create quests.
We have non experience with scripting in Java. We have used Python, but we are very inexperienced with it. One of us also have used Javascript.
What scripting language should we use?
What scripting ... |
Scripting in Java | 215,096 | 9 | 8 | 1,679 | 0 | java,javascript,python,scripting-language | I'm responsible for a fairly large hybrid Java/Jython system. We use java for core API development, then wire Java objects together using Jython. This is in a scientific computing environment where we need to be able to put together ad-hoc data analysis scripts quickly.
If I were starting this system from scratch t... | 0 | 0 | 0 | 1 | 2008-10-17T09:23:00.000 | 11 | 1 | false | 211,536 | 1 | 0 | 1 | 3 | Me and some friends are writing a MORPG in Java, and we would like to use a scripting language to, eg. to create quests.
We have non experience with scripting in Java. We have used Python, but we are very inexperienced with it. One of us also have used Javascript.
What scripting language should we use?
What scripting ... |
Python templates for web designers | 215,700 | 1 | 5 | 1,891 | 0 | python,templating | I've played both roles and at heart I prefer more of a programmer's templating language. However, I freelance for a few graphic designers doing the "heavy lifting" backed and db programming and can tell you that I've had the best luck with XML templating languages (SimpleTAL, Genshi, etc).
When I'm trying to be web de... | 0 | 0 | 0 | 0 | 2008-10-18T03:56:00.000 | 7 | 0.028564 | false | 214,536 | 0 | 0 | 1 | 1 | What are some good templating engines for web designers? I definitely have my preferences as to what I'd prefer to work with as a programmer. But web designers seem to have a different way of thinking about things and thus may prefer a different system.
So:
Web designers: what templating engine do you prefer to wor... |
What's the difference between a parent and a reference property in Google App Engine? | 216,187 | 15 | 10 | 1,067 | 1 | python,api,google-app-engine | There are several differences:
All entities with the same ancestor are in the same entity group. Transactions can only affect entities inside a single entity group.
All writes to a single entity group are serialized, so throughput is limited.
The parent entity is set on creation and is fixed. References can be changed... | 0 | 1 | 0 | 0 | 2008-10-18T21:12:00.000 | 2 | 1.2 | true | 215,570 | 0 | 0 | 1 | 1 | From what I understand, the parent attribute of a db.Model (typically defined/passed in the constructor call) allows you to define hierarchies in your data models. As a result, this increases the size of the entity group. However, it's not very clear to me why we would want to do that. Is this strictly for ACID complia... |
How close are development webservers to production webservers? | 217,467 | 0 | 5 | 609 | 0 | python,webserver,web-frameworks | Your staging environment should mimic your production environment. Development is more like a playground, and the control on the development environment should not be quite so strict. However, the development environment should periodically be refreshed from the production environment (e.g,. prod data copied to the dev... | 0 | 0 | 0 | 0 | 2008-10-19T14:45:00.000 | 5 | 0 | false | 216,489 | 0 | 0 | 1 | 4 | Most python frameworks will have a development webserver of some kind that will have a warning that it isn't for use as production servers. How much different do they tend to be from their production equivalents?
I haven't quite decided which framework to go with, much less what production server to use, so it's kinda... |
How close are development webservers to production webservers? | 216,495 | 2 | 5 | 609 | 0 | python,webserver,web-frameworks | Generally, they are same in terms of the settings which are required to run the applications which include the environment setting.
However, the clients genereally have dev systems which are less powerful in terms of the processing power and other h/w resources. I have seen using them virtual servers in dev evironment... | 0 | 0 | 0 | 0 | 2008-10-19T14:45:00.000 | 5 | 0.07983 | false | 216,489 | 0 | 0 | 1 | 4 | Most python frameworks will have a development webserver of some kind that will have a warning that it isn't for use as production servers. How much different do they tend to be from their production equivalents?
I haven't quite decided which framework to go with, much less what production server to use, so it's kinda... |
How close are development webservers to production webservers? | 216,628 | 5 | 5 | 609 | 0 | python,webserver,web-frameworks | The lower environments should try to match the production environment as closely as possible given the resources available. This applies to all development efforts regardless of whether they are python-based or even web-based. In practical terms, most organizations are not willing to spend that type of money. In this c... | 0 | 0 | 0 | 0 | 2008-10-19T14:45:00.000 | 5 | 1.2 | true | 216,489 | 0 | 0 | 1 | 4 | Most python frameworks will have a development webserver of some kind that will have a warning that it isn't for use as production servers. How much different do they tend to be from their production equivalents?
I haven't quite decided which framework to go with, much less what production server to use, so it's kinda... |
How close are development webservers to production webservers? | 216,653 | 2 | 5 | 609 | 0 | python,webserver,web-frameworks | I develop with django. The production server we have is remote, so it's a pain to be using it for development. Thus, at first, I created a vm and tried to match as closely as I could the environment of the prod server. At some point that vm got hosed (due to an unrelated incident). I took stock of the situation at that... | 0 | 0 | 0 | 0 | 2008-10-19T14:45:00.000 | 5 | 0.07983 | false | 216,489 | 0 | 0 | 1 | 4 | Most python frameworks will have a development webserver of some kind that will have a warning that it isn't for use as production servers. How much different do they tend to be from their production equivalents?
I haven't quite decided which framework to go with, much less what production server to use, so it's kinda... |
How does one put a link / url to the web-site's home page in Django? | 226,536 | 13 | 24 | 50,505 | 0 | python,django,django-urls | I always use something like <a href="/"> (assuming your home is at the root, of course). I seem to recall looking this up once, and couldn't find a Django variable for this path; at any rate, / seemed pretty easy, anyway. | 0 | 0 | 0 | 0 | 2008-10-22T16:14:00.000 | 4 | 1 | false | 226,528 | 0 | 0 | 1 | 1 | In Django templates, is there a variable in the context (e.g. {{ BASE\_URL }}, {{ ROOT\_URL }}, or {{ MEDIA\_URL }} that one can use to link to the home url of a project?
I.e. if Django is running in the root of a project, the variable (let's call it R) {{ R }} in a template would be /. If the root url is a sub-folder ... |
Will Django be a good choice for a permissions based web-app? | 232,243 | 4 | 14 | 8,167 | 0 | python,django,permissions | The Django permission system totally rules. Each model has a default set of permissions. You can add new permissions to your models, also.
Each User has a set of permissions as well as group memberships. Individual users can have individual permissions. And they inherit permissions from their group membership.
Your ... | 0 | 0 | 0 | 0 | 2008-10-23T23:50:00.000 | 6 | 0.132549 | false | 232,008 | 0 | 0 | 1 | 1 | I've been exploring the details of Django for about a week now and like what I see. However I've come upon some.. negativity in relation to fine-grained control of permissions to the CRUD interface.
What I'm writing is an Intranet client management web-app. The organisation is about 6 tiers, and I need to restrict acce... |
How do you programmatically reorder children of an ATFolder subclass? | 240,456 | 4 | 6 | 468 | 0 | python,plone,zope,archetypes | Quickest solution: subclass from ATFolder instead of BaseFolder. That gives you all the "normal" reordering and other commmon plone folder capabilities (which I suspect you also want).
If you want to be more selective, look into Products/ATContentTypes/content/base.py: ATCTOrderedFolder and OrderedBaseFolder. | 0 | 0 | 0 | 0 | 2008-10-25T23:41:00.000 | 1 | 1.2 | true | 237,211 | 0 | 0 | 1 | 1 | I have Plone product that uses a custom folder type for containing a set of custom content objects. The folder type was created by subclassing BaseFolder and it has a schema with a couple of text fields. Currently, when custom objects are added to the custom folder, the objects are sorted alphabetically by their id. ... |
How do you log server errors on django sites | 70,617,888 | 0 | 185 | 97,638 | 0 | python,django,error-logging | You can use the logging library in Python, no need to pip install anything.
Replace any print() with logging.debug()
but,
Django Sentry is a good way to go
as EMP said. | 0 | 0 | 0 | 0 | 2008-10-26T14:37:00.000 | 7 | 0 | false | 238,081 | 0 | 0 | 1 | 1 | So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.
But on kind of production site I'd rather use DEBUG=False and show visitors some standard error 500 page with information that I'm working on ... |
Possible to integrate Google AppEngine and Google Code for continuous integration? | 241,672 | 1 | 18 | 2,320 | 0 | python,svn,google-app-engine,continuous-integration,google-code | For those of us who are using Github, this feature from the GAE team would make us all seriously consider switching to Google Code... | 0 | 1 | 0 | 0 | 2008-10-27T18:43:00.000 | 5 | 0.039979 | false | 241,007 | 0 | 0 | 1 | 2 | Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code and would love if everytime I committed to Subversion, that AppEngine would reflect the latest commit... |
Possible to integrate Google AppEngine and Google Code for continuous integration? | 241,126 | 1 | 18 | 2,320 | 0 | python,svn,google-app-engine,continuous-integration,google-code | Very interesting, but not yet possible, AFAIK. I have been looking for that option in Google Code with no success.
The only solution I can figure out is to install something in your machine that checks for changes in your SVN repository.
I'll be happy to hear about other approaches. | 0 | 1 | 0 | 0 | 2008-10-27T18:43:00.000 | 5 | 0.039979 | false | 241,007 | 0 | 0 | 1 | 2 | Anyone have any thoughts on how/if it is possible to integrate Google Code commits to cause a Google AppEngine deployment of the most recent code?
I have a simple Google AppEngine project's source hosted on Google Code and would love if everytime I committed to Subversion, that AppEngine would reflect the latest commit... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 241,773 | 3 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | The first thing that comes to mind here is that you're approaching this all wrong. It seems like you're looking for a pet project for yourself and trying to decide what you'd like to do best. You didn't specify the scope of who is going to be managing this site.. which is the real question. Is it just you? Is it the ... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0.042831 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 294,729 | 0 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | CMS for a medium-big company is not about Software. It is about proccesses and policies.
Very true!
Association with prestigious names is not necessarily an indicator of pleasing end results.
I like Sony products, yes, but on the various occasions on which I have sought support from Sony sites I have felt like bangi... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 241,785 | 3 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | I agree with Will's, braveterry's and Divamatrix's comments. Fully.
There are tons of questions/issues/risks/considerations to take in order to succesfully launch a CMS solution for a medium/big enterprise. I will not repeat what Will and braveterry had said, instead of it I will offer a different point of view:
CMS fo... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0.042831 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 241,593 | 1 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | No matter what you choose, don't use Typo3. It is a huge unhackable mess with its own idiotic template "script" language, near impossible to learn quickly, hard to teach to your enterprise users and damn ugly. No wonder there are shops which earn a living just doing Typo3 consulting. It is somewhat popular but don't th... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0.014285 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 243,952 | 2 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | You'd like to build an Enterprise Class CMS from scratch? Just for one project? Are you crazy? Unless plan to go into the CMS business and have thousands and thousands of hours of development time there absolutely is no point to create a new one. There are excellent CMS's already out there. Drupal and Plone are the bes... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0.028564 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 241,637 | 9 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | This is a contradictory statement: "The spec's "big picture" really isn't too complicated: Implement an enterprise-class CMS for management of each division's web pages".
"Enterprise Class" and "isn't too complicated" do not belong in the same sentence. Seriously.
"Enterprise Class" stuff is complicated because "enterp... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 1 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 241,831 | 2 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | "They want me to use a framework/set of languages/technologies that I can prove to them are "stable, enterprise-ready technologies with a proven track record.""
There's no proof of those features. None.
Is there some incumbent technology that they want you to use? If so, you might be swimming upstream.
If you're fig... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0.028564 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) | 1,384,018 | 2 | 8 | 4,065 | 0 | python,frameworks,content-management-system,enterprise | "Enterprise" is a marketing term. It has pretty much zero technical meaning. If your boss wants to hear Enterprise, then he will, but this won't mean that a given system is suitable for your needs.
Beware of lists of companies that use a given suite of software. "Ebay uses Plone", and "Ebay runs on Plone" are two very... | 0 | 0 | 0 | 1 | 2008-10-27T22:19:00.000 | 14 | 0.028564 | false | 241,575 | 0 | 0 | 1 | 8 | Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and document storage within the organization.
My "problem" is this: They want me to use a framework/set of languages... |
Running Django with FastCGI or with mod_python | 245,464 | 2 | 20 | 5,251 | 0 | python,django,apache,fastcgi | I'm using it with nginx. not sure if it's really faster, but certainly less RAM/CPU load. Also it's easier to run several Django processes and have nginx map each URL prefix to a different socket. still not taking full advantage of nginx's memcached module, but first tests show huge speed advantage. | 0 | 0 | 0 | 1 | 2008-10-28T23:16:00.000 | 7 | 0.057081 | false | 245,237 | 0 | 0 | 1 | 6 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? |
Running Django with FastCGI or with mod_python | 245,484 | 2 | 20 | 5,251 | 0 | python,django,apache,fastcgi | There's also mod_wsgi, it seems to be faster than mod_python and the daemon mode operates similar to FastCGI | 0 | 0 | 0 | 1 | 2008-10-28T23:16:00.000 | 7 | 0.057081 | false | 245,237 | 0 | 0 | 1 | 6 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? |
Running Django with FastCGI or with mod_python | 245,259 | 2 | 20 | 5,251 | 0 | python,django,apache,fastcgi | Personally I've had it working with FastCGI for some time now (6 months or so) and the response times 'seem' quicker when loading a page that way vs mod___python. The critical reason for me though is that I couldn't see an obvious way to do multiple sites from the same apache / mod_python install whereas FastCGI was a ... | 0 | 0 | 0 | 1 | 2008-10-28T23:16:00.000 | 7 | 0.057081 | false | 245,237 | 0 | 0 | 1 | 6 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? |
Running Django with FastCGI or with mod_python | 258,159 | 5 | 20 | 5,251 | 0 | python,django,apache,fastcgi | Nginx with mod_wsgi | 0 | 0 | 0 | 1 | 2008-10-28T23:16:00.000 | 7 | 0.141893 | false | 245,237 | 0 | 0 | 1 | 6 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? |
Running Django with FastCGI or with mod_python | 245,660 | 21 | 20 | 5,251 | 0 | python,django,apache,fastcgi | I've done both, and Apache/mod_python tended to be easier to work with and more stable. But these days I've jumped over to Apache/mod_wsgi, which is everything I've ever wanted and more:
Easy management of daemon processes.
As a result, much better process isolation (running multiple sites in the same Apache config wi... | 0 | 0 | 0 | 1 | 2008-10-28T23:16:00.000 | 7 | 1.2 | true | 245,237 | 0 | 0 | 1 | 6 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? |
Running Django with FastCGI or with mod_python | 245,264 | 6 | 20 | 5,251 | 0 | python,django,apache,fastcgi | lighttpd with FastCGI will be nominally faster, but really the time it takes to run your python code and any database hits it does is going to absolutely dwarf any performance benefit you get between web servers.
mod_python and apache will give you a bit more flexibility feature-wise if you want to write code outside o... | 0 | 0 | 0 | 1 | 2008-10-28T23:16:00.000 | 7 | 1 | false | 245,237 | 0 | 0 | 1 | 6 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? |
How to override HTTP request verb in GAE | 255,906 | 3 | 1 | 1,104 | 0 | python,google-app-engine,rest,metaclass | Calling the handler from initialize isn't the right way anyway - if you do that, the webapp will then call the original handler as well.
Instead, you have a couple of options:
You can subclass webapp.WSGIApplication and override call to select the method based on _method when it exists.
You can check for the existence... | 0 | 1 | 0 | 0 | 2008-10-31T22:37:00.000 | 2 | 0.291313 | false | 255,157 | 0 | 0 | 1 | 2 | In the context of a Google App Engine Webapp framework application:
I want to changed the request verb of a request in the case a
parameter _method is provided, for example if a POST request comes in
with a parameter _method=PUT, I need to change the request to call the
put method of the handler. This is to cope with t... |
How to override HTTP request verb in GAE | 257,094 | 2 | 1 | 1,104 | 0 | python,google-app-engine,rest,metaclass | Thats Arachnid for your response. Pointing me to the source of the framework was really helpful. Last I looked the source wasn't there(there was only .pyc), maybe it changed with the new version of the SDK. For my situation I think overriding WSGIApplication would have been the right thing to do. However, I chose to us... | 0 | 1 | 0 | 0 | 2008-10-31T22:37:00.000 | 2 | 0.197375 | false | 255,157 | 0 | 0 | 1 | 2 | In the context of a Google App Engine Webapp framework application:
I want to changed the request verb of a request in the case a
parameter _method is provided, for example if a POST request comes in
with a parameter _method=PUT, I need to change the request to call the
put method of the handler. This is to cope with t... |
Can I Use Python to Make a Delete Button in a 'web page' | 256,028 | 0 | 2 | 1,222 | 0 | python,web-applications,browser | You would have to write the web page in Python. There are many Python web frameworks out there (e.g. Django) that are easy to work with. You could convert your entire scripting framework to a web application that has a worker thread going and crawling through html pages, saving them to a particular location, indexing t... | 0 | 0 | 1 | 0 | 2008-11-01T19:52:00.000 | 4 | 0 | false | 256,021 | 0 | 0 | 1 | 2 | I have written a script that goes through a bunch of files and snips out a portion of the files for further processing. The script creates a new directory and creates new files for each snip that is taken out. I have to now evaluate each of the files that were created to see if it is what I needed. The script also cr... |
Can I Use Python to Make a Delete Button in a 'web page' | 256,040 | 1 | 2 | 1,222 | 0 | python,web-applications,browser | You could make this even simpler by making it all happen in one main page. Instead of having a list of hyperlinks, just have the main page have one frame that loads one of the autocreated pages in it. Put a couple of buttons at the bottom - a "Keep this page" and a "Delete this page." When you click either button, the ... | 0 | 0 | 1 | 0 | 2008-11-01T19:52:00.000 | 4 | 0.049958 | false | 256,021 | 0 | 0 | 1 | 2 | I have written a script that goes through a bunch of files and snips out a portion of the files for further processing. The script creates a new directory and creates new files for each snip that is taken out. I have to now evaluate each of the files that were created to see if it is what I needed. The script also cr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.