Q_Id int64 337 49.3M | CreationDate stringlengths 23 23 | Users Score int64 -42 1.15k | Other int64 0 1 | Python Basics and Environment int64 0 1 | System Administration and DevOps int64 0 1 | Tags stringlengths 6 105 | A_Id int64 518 72.5M | AnswerCount int64 1 64 | is_accepted bool 2
classes | Web Development int64 0 1 | GUI and Desktop Applications int64 0 1 | Answer stringlengths 6 11.6k | Available Count int64 1 31 | Q_Score int64 0 6.79k | Data Science and Machine Learning int64 0 1 | Question stringlengths 15 29k | Title stringlengths 11 150 | Score float64 -1 1.2 | Database and SQL int64 0 1 | Networking and APIs int64 0 1 | ViewCount int64 8 6.81M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
214,852 | 2008-10-18T10:17:00.000 | 0 | 0 | 1 | 0 | python,module | 68,483,909 | 5 | false | 0 | 0 | I had the same issue as administrative rights to the default python library is blocked in a corporate environment and its extremely troublesome to perform installations.
What works for me:
Duplicate the sqlite3 library in a new location
Put in the latest sqlite3.dll (version you want from sqlite3 web) and the old _sql... | 3 | 24 | 0 | Is there a way to make a python module load a dll in my application directory rather than the version that came with the python installation, without making changes to the python installation (which would then require I made an installer, and be careful I didn't break other apps for people by overwrting python modules ... | python module dlls | 0 | 0 | 0 | 32,146 |
214,852 | 2008-10-18T10:17:00.000 | 0 | 0 | 1 | 0 | python,module | 214,855 | 5 | false | 0 | 0 | If your version of sqlite is in sys.path before the systems version it will use that. So you can either put it in the current directory or change the PYTHONPATH environment variable to do that. | 3 | 24 | 0 | Is there a way to make a python module load a dll in my application directory rather than the version that came with the python installation, without making changes to the python installation (which would then require I made an installer, and be careful I didn't break other apps for people by overwrting python modules ... | python module dlls | 0 | 0 | 0 | 32,146 |
214,852 | 2008-10-18T10:17:00.000 | 7 | 0 | 1 | 0 | python,module | 214,901 | 5 | true | 0 | 0 | Ok it turns out python always loads the dll in the same directory as the pyd file, regardless of what the python and os paths are set to.
So I needed to copy the _sqlite3.pyd from python/v2.5/DLLS to my apps directory where the new sqlite3.dll is, making it load my new dll, rather than the one that comes with python (s... | 3 | 24 | 0 | Is there a way to make a python module load a dll in my application directory rather than the version that came with the python installation, without making changes to the python installation (which would then require I made an installer, and be careful I didn't break other apps for people by overwrting python modules ... | python module dlls | 1.2 | 0 | 0 | 32,146 |
215,267 | 2008-10-18T16:51:00.000 | 0 | 1 | 0 | 1 | python,configuration,trac,python-egg-cache | 406,119 | 5 | false | 0 | 0 | I found that using the PythonOption directive in the site config did not work, but SetEnv did. The environment variable route will also work though. | 3 | 1 | 0 | We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in:
PythonHandler trac.web.modpython_frontend:
ExtractionError: Can't extract file(s) to egg cache
The following ... | How do you fix a Trac installation that begins giving errors relating to PYTHON_EGG_CACHE? | 0 | 0 | 0 | 2,011 |
215,267 | 2008-10-18T16:51:00.000 | 0 | 1 | 0 | 1 | python,configuration,trac,python-egg-cache | 219,233 | 5 | false | 0 | 0 | I had the same problem. In my case the directory wasn't there so I created and chown'ed it over to the apache user (apache on my centos 4.3 box). Then made sure it had read-write permissions on the directory. You could get by with giving rw rights to the directory if the group that owns the directory contains the ap... | 3 | 1 | 0 | We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in:
PythonHandler trac.web.modpython_frontend:
ExtractionError: Can't extract file(s) to egg cache
The following ... | How do you fix a Trac installation that begins giving errors relating to PYTHON_EGG_CACHE? | 0 | 0 | 0 | 2,011 |
215,267 | 2008-10-18T16:51:00.000 | 1 | 1 | 0 | 1 | python,configuration,trac,python-egg-cache | 215,401 | 5 | false | 0 | 0 | I have wrestled many a battle with PYTHON_EGG_CACHE and I never figured out the correct way of setting it - apache's envvars, httpd.conf (SetEnv and PythonOption), nothing worked. In the end I just unpacked all python eggs manually, there were only two or three anyway - problem gone. I never understood why on earth peo... | 3 | 1 | 0 | We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in:
PythonHandler trac.web.modpython_frontend:
ExtractionError: Can't extract file(s) to egg cache
The following ... | How do you fix a Trac installation that begins giving errors relating to PYTHON_EGG_CACHE? | 0.039979 | 0 | 0 | 2,011 |
215,570 | 2008-10-18T21:12:00.000 | 15 | 0 | 0 | 1 | python,api,google-app-engine | 216,187 | 2 | true | 1 | 0 | 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... | 1 | 10 | 0 | 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... | What's the difference between a parent and a reference property in Google App Engine? | 1.2 | 1 | 0 | 1,067 |
216,093 | 2008-10-19T06:07:00.000 | 0 | 0 | 0 | 0 | python,gtk,module,pygtk,organization | 219,737 | 6 | false | 0 | 1 | So having not heard back regarding my edit to the original question, I have done some more research and the conclusion I seem to be coming to is that yes, I should break the interface out into several views, each with its own controller. Python-gtkmvc provides the ability to this by providing a glade_top_widget_name p... | 2 | 8 | 0 | I am working on a desktop application in PyGTK and seem to be bumping up against some limitations of my file organization. Thus far I've structured my project this way:
application.py - holds the primary application class (most functional routines)
gui.py - holds a loosely coupled GTK gui implementation. Handles sig... | How do I coherently organize modules for a PyGTK desktop application? | 0 | 0 | 0 | 2,015 |
216,093 | 2008-10-19T06:07:00.000 | 2 | 0 | 0 | 0 | python,gtk,module,pygtk,organization | 216,386 | 6 | false | 0 | 1 | "holds the primary application class (most functional routines)"
As in singular -- one class?
I'm not surprised that the One Class Does Everything design isn't working. It might not be what I'd call object-oriented. It doesn't sound like it follows the typical MVC design pattern if your functionality is piling up in... | 2 | 8 | 0 | I am working on a desktop application in PyGTK and seem to be bumping up against some limitations of my file organization. Thus far I've structured my project this way:
application.py - holds the primary application class (most functional routines)
gui.py - holds a loosely coupled GTK gui implementation. Handles sig... | How do I coherently organize modules for a PyGTK desktop application? | 0.066568 | 0 | 0 | 2,015 |
216,119 | 2008-10-19T06:56:00.000 | 0 | 0 | 1 | 0 | python,list,recursion | 216,123 | 20 | false | 0 | 0 | Take the first element, reverse the rest of the list recursively, and append the first element at the end of the list. | 3 | 6 | 0 | I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that? | How do I reverse a list using recursion in Python? | 0 | 0 | 0 | 54,014 |
216,119 | 2008-10-19T06:56:00.000 | 7 | 0 | 1 | 0 | python,list,recursion | 216,184 | 20 | false | 0 | 0 | I know it's not a helpful answer (though this question has been already answered), but in any real code, please don't do that. Python cannot optimize tail-calls, has slow function calls and has a fixed recursion depth, so there are at least 3 reasons why to do it iteratively instead. | 3 | 6 | 0 | I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that? | How do I reverse a list using recursion in Python? | 1 | 0 | 0 | 54,014 |
216,119 | 2008-10-19T06:56:00.000 | 4 | 0 | 1 | 0 | python,list,recursion | 216,132 | 20 | false | 0 | 0 | The trick is to join after recursing:
def backwards(l):
if not l:
return
x, y = l[0], l[1:]
return backwards(y) + [x] | 3 | 6 | 0 | I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that? | How do I reverse a list using recursion in Python? | 0.039979 | 0 | 0 | 54,014 |
216,489 | 2008-10-19T14:45:00.000 | 0 | 0 | 0 | 0 | python,webserver,web-frameworks | 217,467 | 5 | false | 1 | 0 | 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... | 4 | 5 | 0 | 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? | 0 | 0 | 0 | 609 |
216,489 | 2008-10-19T14:45:00.000 | 2 | 0 | 0 | 0 | python,webserver,web-frameworks | 216,495 | 5 | false | 1 | 0 | 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... | 4 | 5 | 0 | 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? | 0.07983 | 0 | 0 | 609 |
216,489 | 2008-10-19T14:45:00.000 | 5 | 0 | 0 | 0 | python,webserver,web-frameworks | 216,628 | 5 | true | 1 | 0 | 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... | 4 | 5 | 0 | 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? | 1.2 | 0 | 0 | 609 |
216,489 | 2008-10-19T14:45:00.000 | 2 | 0 | 0 | 0 | python,webserver,web-frameworks | 216,653 | 5 | false | 1 | 0 | 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... | 4 | 5 | 0 | 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? | 0.07983 | 0 | 0 | 609 |
216,972 | 2008-10-19T21:08:00.000 | 508 | 0 | 1 | 0 | python,terminology | 216,980 | 6 | true | 0 | 0 | It basically means that the object implements the __getitem__() method. In other words, it describes objects that are "containers", meaning they contain other objects. This includes strings, lists, tuples, and dictionaries. | 1 | 544 | 0 | Which types of objects fall into the domain of "subscriptable"? | What does it mean if a Python object is "subscriptable" or not? | 1.2 | 0 | 0 | 871,051 |
219,215 | 2008-10-20T17:19:00.000 | -1 | 0 | 1 | 0 | python,windows,windows-vista,tkinter | 792,527 | 3 | false | 0 | 1 | python 2.6.2 + tkinter 8.5, no problems | 3 | 3 | 0 | I installed Python 2.6 for one user on Windows Vista. Python works okay, but when I try: import Tkinter, it says the side-by-side configuration has errors. I've tried tinkering with the Visual Studio runtime, with no good results. Any ideas on how to resolve this? | How do I use Tkinter with Python on Windows Vista? | -0.066568 | 0 | 0 | 1,345 |
219,215 | 2008-10-20T17:19:00.000 | 1 | 0 | 1 | 0 | python,windows,windows-vista,tkinter | 219,326 | 3 | false | 0 | 1 | It seems this is a one of the many weird Vista problems and some random reinstalling, installing/upgrading of the visual studio runtime or some such seems sometimes to help, or disabling sxs in the system configuration or writing a manifest file etc.
Though I think you should downgrade to windows XP. | 3 | 3 | 0 | I installed Python 2.6 for one user on Windows Vista. Python works okay, but when I try: import Tkinter, it says the side-by-side configuration has errors. I've tried tinkering with the Visual Studio runtime, with no good results. Any ideas on how to resolve this? | How do I use Tkinter with Python on Windows Vista? | 0.066568 | 0 | 0 | 1,345 |
219,215 | 2008-10-20T17:19:00.000 | 1 | 0 | 1 | 0 | python,windows,windows-vista,tkinter | 219,284 | 3 | true | 0 | 1 | Maybe you should downgrade to 2.5 version? | 3 | 3 | 0 | I installed Python 2.6 for one user on Windows Vista. Python works okay, but when I try: import Tkinter, it says the side-by-side configuration has errors. I've tried tinkering with the Visual Studio runtime, with no good results. Any ideas on how to resolve this? | How do I use Tkinter with Python on Windows Vista? | 1.2 | 0 | 0 | 1,345 |
220,525 | 2008-10-21T01:58:00.000 | 0 | 0 | 0 | 1 | python,linux,single-instance | 220,536 | 12 | false | 0 | 0 | If you create a lock file and put the pid in it, you can check your process id against it and tell if you crashed, no?
I haven't done this personally, so take with appropriate amounts of salt. :p | 4 | 33 | 0 | I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex and ... | Ensure a single instance of an application in Linux | 0 | 0 | 0 | 22,567 |
220,525 | 2008-10-21T01:58:00.000 | 62 | 0 | 0 | 1 | python,linux,single-instance | 220,709 | 12 | false | 0 | 0 | The Right Thing is advisory locking using flock(LOCK_EX); in Python, this is found in the fcntl module.
Unlike pidfiles, these locks are always automatically released when your process dies for any reason, have no race conditions exist relating to file deletion (as the file doesn't need to be deleted to release the loc... | 4 | 33 | 0 | I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex and ... | Ensure a single instance of an application in Linux | 1 | 0 | 0 | 22,567 |
220,525 | 2008-10-21T01:58:00.000 | 0 | 0 | 0 | 1 | python,linux,single-instance | 220,541 | 12 | false | 0 | 0 | By far the most common method is to drop a file into /var/run/ called [application].pid which contains only the PID of the running process, or parent process.
As an alternative, you can create a named pipe in the same directory to be able to send messages to the active process, e.g. to open a new file. | 4 | 33 | 0 | I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex and ... | Ensure a single instance of an application in Linux | 0 | 0 | 0 | 22,567 |
220,525 | 2008-10-21T01:58:00.000 | 25 | 0 | 0 | 1 | python,linux,single-instance | 220,542 | 12 | true | 0 | 0 | There are several common techniques including using semaphores. The one I see used most often is to create a "pid lock file" on startup that contains the pid of the running process. If the file already exists when the program starts up, open it up and grab the pid inside, check to see if a process with that pid is ru... | 4 | 33 | 0 | I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex and ... | Ensure a single instance of an application in Linux | 1.2 | 0 | 0 | 22,567 |
220,777 | 2008-10-21T04:40:00.000 | 2 | 0 | 1 | 0 | python,dll,installation,py2exe,pyd | 220,830 | 4 | false | 0 | 0 | If they're not being automatically detected, try manually copying them into py2exe's temporary build directory. They will be included in the final executable. | 1 | 10 | 0 | One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to include a .dll. How do I get py2exe to incl... | Including PYDs/DLLs in py2exe builds | 0.099668 | 0 | 0 | 14,984 |
221,386 | 2008-10-21T10:21:00.000 | 0 | 0 | 1 | 0 | python,numpy,binaryfiles | 221,696 | 6 | false | 0 | 0 | You need to make your question more precise. Do you know the values you want to trim ahead of time?
Assuming you do, I would probably search for the matching sections using subprocess to run "fgrep -o -b <search string>" and then change the relevant sections of the file using the python file object's seek, read and wr... | 1 | 3 | 0 | I would like to trim long sequences of the same value from a binary file in python. A simple way of doing it is simply reading in the file and using re.sub to replace the unwanted sequence. This will of course not work on large binary files. Can it be done in something like numpy? | Removing a sequence of characters from a large binary file using python | 0 | 0 | 0 | 3,954 |
221,745 | 2008-10-21T12:56:00.000 | 0 | 0 | 0 | 1 | python,networking,sockets,twisted | 24,895,751 | 4 | false | 0 | 0 | A better way to do this is with twisted.protocols.policies.TimeoutMixin. It's essentially doing a callLater but abstracted into a Mixin. | 1 | 9 | 0 | I realize I'm probably just dumb and missing something big and important, but I can't figure out how to specify a timeout in twisted using reactor.listenUDP. My goal is to be able to specify a timeout, and after said amount of time, if DatagramProtocol.datagramReceived has not been executed, have it execute a callback ... | Is it possible to set a timeout on a socket in Twisted? | 0 | 0 | 0 | 7,051 |
224,337 | 2008-10-22T02:54:00.000 | 1 | 0 | 0 | 0 | python,wxpython,wizard | 247,409 | 5 | false | 0 | 1 | The wxPython demo has an example of a "dynamic" wizard. Pages override GetNext() and GetPrev() to show pages dynamically. This shows the basic technique; you can extend it to add and remove pages, change pages on the fly, and rearrange pages dynamically.
The wizard class is just a convenience, though. You can modify it... | 2 | 3 | 0 | I'm making a program that fits the wizard concept ideally; the user is walked through the steps to create a character for a game.
However, I'm realizing that the limitations of the wizard are making it difficult to design "elegant" logic flow. For example, because all pages of the wizard are initalized at the same time... | Alternatives to a wizard | 0.039979 | 0 | 0 | 2,843 |
224,337 | 2008-10-22T02:54:00.000 | 0 | 0 | 0 | 0 | python,wxpython,wizard | 247,633 | 5 | false | 0 | 1 | I'd get rid of wizard in whole. They are the most unpleasant things I've ever used.
The problem that requires a wizard-application where you click 'next' is perhaps a problem where you could apply a better user interface in a bit different manner. Instead of bringing up a dialog with annoying 'next' -button. Do this:
B... | 2 | 3 | 0 | I'm making a program that fits the wizard concept ideally; the user is walked through the steps to create a character for a game.
However, I'm realizing that the limitations of the wizard are making it difficult to design "elegant" logic flow. For example, because all pages of the wizard are initalized at the same time... | Alternatives to a wizard | 0 | 0 | 0 | 2,843 |
226,528 | 2008-10-22T16:14:00.000 | 13 | 0 | 0 | 0 | python,django,django-urls | 226,536 | 4 | false | 1 | 0 | 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. | 1 | 24 | 0 | 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 ... | How does one put a link / url to the web-site's home page in Django? | 1 | 0 | 0 | 50,505 |
226,693 | 2008-10-22T17:00:00.000 | 0 | 0 | 1 | 0 | python,database,dictionary,disk-based | 226,837 | 8 | false | 0 | 0 | You should bring more than one item at a time if there's some heuristic to know which are the most likely items to be retrieved next, and don't forget the indexes like Charles mentions. | 2 | 43 | 0 | I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture =P) and I was using a dict to store the lengths of the chains I had already computed. Obviously, it ran out of memory at some point. Is there any easy way to use some variant of a dict which will page parts of itself out ... | Python Disk-Based Dictionary | 0 | 0 | 0 | 17,656 |
226,693 | 2008-10-22T17:00:00.000 | 6 | 0 | 1 | 0 | python,database,dictionary,disk-based | 226,803 | 8 | false | 0 | 0 | Last time I was facing a problem like this, I rewrote to use SQLite rather than a dict, and had a massive performance increase. That performance increase was at least partially on account of the database's indexing capabilities; depending on your algorithms, YMMV.
A thin wrapper that does SQLite queries in __getitem__ ... | 2 | 43 | 0 | I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture =P) and I was using a dict to store the lengths of the chains I had already computed. Obviously, it ran out of memory at some point. Is there any easy way to use some variant of a dict which will page parts of itself out ... | Python Disk-Based Dictionary | 1 | 0 | 0 | 17,656 |
227,279 | 2008-10-22T19:48:00.000 | -2 | 0 | 1 | 0 | python,twisted,xmpp,google-talk | 228,877 | 4 | false | 0 | 0 | As the Twisted libs seem to be out of date, you have two choices:
Implement your own XMPP-handler or look for another library.
I would suggest working with the raw XML; XMPP is not that complicated and you are bound to learn something. | 1 | 17 | 0 | I am interested in making a Google Talk client using Python and would like to use the Twisted libraries Words module. I have looked at the examples, but they don't work with the current implementation of Google Talk.
Has anybody had any luck with this? Would you mind documenting a brief tutorial?
As a simple task, I'... | How do you create a simple Google Talk Client using the Twisted Words Python library? | -0.099668 | 0 | 1 | 8,406 |
231,371 | 2008-10-23T20:30:00.000 | 8 | 1 | 1 | 0 | python,testing,bdd | 812,490 | 10 | false | 0 | 0 | The Pyccuracy project is an effort to provide a domain-specific language for BDD in Python.
Unlike doctest, which works at the API level, it encodes higher-level operations such as loading a web page and submitting a form. I haven't used it but it looks somewhat promising if that is what you're looking for. | 1 | 133 | 0 | Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great. | Practicing BDD with python | 1 | 0 | 0 | 46,233 |
232,008 | 2008-10-23T23:50:00.000 | 4 | 0 | 0 | 0 | python,django,permissions | 232,243 | 6 | false | 1 | 0 | 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 ... | 1 | 14 | 0 | 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... | Will Django be a good choice for a permissions based web-app? | 0.132549 | 0 | 0 | 8,167 |
236,407 | 2008-10-25T13:30:00.000 | 3 | 1 | 0 | 0 | python,development-environment | 236,570 | 8 | false | 0 | 0 | My general rule of thumb is to use dynamic languages for small non-mission-critical projects and statically-typed languages for big projects. I find that code written in a dynamic language such as python gets "tangled" more quickly. Partly that is because it is much quicker to write code in a dynamic language and that ... | 4 | 62 | 0 | I would be interested to learn about large scale development in Python and especially in how do you maintain a large code base?
When you make incompatibility changes to the signature of a method, how do you find all the places where that method is being called. In C++/Java the compiler will find it for you, how do you... | How can I use Python for large scale development? | 0.07486 | 0 | 0 | 19,675 |
236,407 | 2008-10-25T13:30:00.000 | 2 | 1 | 0 | 0 | python,development-environment | 236,470 | 8 | false | 0 | 0 | The usual answer to that is testing testing testing. You're supposed to have an extensive unit test suite and run it often, particularly before a new version goes online.
Proponents of dynamically typed languages make the case that you have to test anyway because even in a statically typed language conformance to the c... | 4 | 62 | 0 | I would be interested to learn about large scale development in Python and especially in how do you maintain a large code base?
When you make incompatibility changes to the signature of a method, how do you find all the places where that method is being called. In C++/Java the compiler will find it for you, how do you... | How can I use Python for large scale development? | 0.049958 | 0 | 0 | 19,675 |
236,407 | 2008-10-25T13:30:00.000 | 24 | 1 | 0 | 0 | python,development-environment | 236,537 | 8 | true | 0 | 0 | Since nobody pointed out pychecker, pylint and similar tools, I will: pychecker and pylint are tools that can help you find incorrect assumptions (about function signatures, object attributes, etc.) They won't find everything that a compiler might find in a statically typed language -- but they can find problems that s... | 4 | 62 | 0 | I would be interested to learn about large scale development in Python and especially in how do you maintain a large code base?
When you make incompatibility changes to the signature of a method, how do you find all the places where that method is being called. In C++/Java the compiler will find it for you, how do you... | How can I use Python for large scale development? | 1.2 | 0 | 0 | 19,675 |
236,407 | 2008-10-25T13:30:00.000 | 40 | 1 | 0 | 0 | python,development-environment | 236,445 | 8 | false | 0 | 0 | I had some experience with modifying "Frets On Fire", an open source python "Guitar Hero" clone.
as I see it, python is not really suitable for a really large scale project.
I found myself spending a large part of the development time debugging issues related to assignment of incompatible types, things that static type... | 4 | 62 | 0 | I would be interested to learn about large scale development in Python and especially in how do you maintain a large code base?
When you make incompatibility changes to the signature of a method, how do you find all the places where that method is being called. In C++/Java the compiler will find it for you, how do you... | How can I use Python for large scale development? | 1 | 0 | 0 | 19,675 |
237,079 | 2008-10-25T21:54:00.000 | -3 | 1 | 0 | 1 | python,file | 367,166 | 12 | false | 0 | 0 | os.stat does include the creation time. There's just no definition of st_anything for the element of os.stat() that contains the time.
So try this:
os.stat('feedparser.py')[8]
Compare that with your create date on the file in ls -lah
They should be the same. | 2 | 1,205 | 0 | What's the best cross-platform way to get file creation and modification dates/times, that works on both Linux and Windows? | How do I get file creation and modification date/times? | -0.049958 | 0 | 0 | 1,083,080 |
237,079 | 2008-10-25T21:54:00.000 | 13 | 1 | 0 | 1 | python,file | 237,093 | 12 | false | 0 | 0 | os.stat returns a named tuple with st_mtime and st_ctime attributes. The modification time is st_mtime on both platforms; unfortunately, on Windows, ctime means "creation time", whereas on POSIX it means "change time". I'm not aware of any way to get the creation time on POSIX platforms. | 2 | 1,205 | 0 | What's the best cross-platform way to get file creation and modification dates/times, that works on both Linux and Windows? | How do I get file creation and modification date/times? | 1 | 0 | 0 | 1,083,080 |
237,209 | 2008-10-25T23:36:00.000 | 3 | 1 | 1 | 0 | python,parsing,apache-config | 237,599 | 6 | false | 0 | 0 | Red Hat's Emerging Technologies group has Augeas (written in C, but with Python bindings available), a generic system configuration tool with "lenses" for reading and writing several different configuration file formats. I would consider investigating the availability of a lens for Apache. | 1 | 12 | 0 | Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?
As i'll be able to rewrite them in python. | Any python libs for parsing apache config files? | 0.099668 | 0 | 0 | 11,646 |
237,211 | 2008-10-25T23:41:00.000 | 4 | 0 | 0 | 0 | python,plone,zope,archetypes | 240,456 | 1 | true | 1 | 0 | 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. | 1 | 6 | 0 | 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 programmatically reorder children of an ATFolder subclass? | 1.2 | 0 | 0 | 468 |
238,081 | 2008-10-26T14:37:00.000 | 0 | 0 | 0 | 0 | python,django,error-logging | 70,617,888 | 7 | false | 1 | 0 | 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. | 1 | 185 | 0 | 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 ... | How do you log server errors on django sites | 0 | 0 | 0 | 97,638 |
238,523 | 2008-10-26T19:54:00.000 | 6 | 0 | 1 | 0 | c++,python,sdl,pygame | 239,167 | 9 | false | 0 | 1 | Yes. If python is much more natural to you than C++, it might be a good idea to learn pygame first. You'll have to go through a translation process when migrating to using SDL and C, but it should be a more-or-less one-to-one mapping. | 5 | 18 | 0 | If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL? | Is Python and pygame a good way to learn SDL? | 1 | 0 | 0 | 25,055 |
238,523 | 2008-10-26T19:54:00.000 | 0 | 0 | 1 | 0 | c++,python,sdl,pygame | 255,136 | 9 | false | 0 | 1 | I wouldn't consider Python (or any managed or interpreted language, for that matter) a good way to learn any complex task, because it insulates the programmer from the workings of the system too much. As a friend of mine put it, "Python loves you and wants you to be happy." And that's all well and good if you already k... | 5 | 18 | 0 | If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL? | Is Python and pygame a good way to learn SDL? | 0 | 0 | 0 | 25,055 |
238,523 | 2008-10-26T19:54:00.000 | 1 | 0 | 1 | 0 | c++,python,sdl,pygame | 275,461 | 9 | false | 0 | 1 | python won't prevent you off learning design and that's pretty much the more important thing to learn IMO, I'm doing a smash bros clone with pygame and I learnt a lot in design. And yet you will learn not to write too much suboptimal code too, python have clever and beautiful hacks too. | 5 | 18 | 0 | If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL? | Is Python and pygame a good way to learn SDL? | 0.022219 | 0 | 0 | 25,055 |
238,523 | 2008-10-26T19:54:00.000 | 6 | 0 | 1 | 0 | c++,python,sdl,pygame | 238,659 | 9 | false | 0 | 1 | pygame abstracts the SDL interface quite a lot, therefore I don't think there's much of an advantage carried over. | 5 | 18 | 0 | If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL? | Is Python and pygame a good way to learn SDL? | 1 | 0 | 0 | 25,055 |
238,523 | 2008-10-26T19:54:00.000 | 6 | 0 | 1 | 0 | c++,python,sdl,pygame | 238,671 | 9 | false | 0 | 1 | You can learn some techniques, ways to implement game logic etc. in SDL-based enviroment but after moving to C++/SDL you will have to use SDL functions directly, helper functions/objects from pyGame will be completely useles. | 5 | 18 | 0 | If I want to move to C++ and SDL in the future, is Python and pygame a good way to learn SDL? | Is Python and pygame a good way to learn SDL? | 1 | 0 | 0 | 25,055 |
239,009 | 2008-10-27T03:32:00.000 | 1 | 0 | 0 | 0 | python,openoffice.org,pywin32,adodbapi | 239,487 | 3 | false | 0 | 0 | maybe the best way to install pywin32 is to place it in
(openofficedir)\program\python-core-2.3.4\lib\site-packages
it is easy if you have a python 2.3 installation (with pywin installed) under
C:\python2.3
move the C:\python2.3\Lib\site-packages\ to your
(openofficedir)\program\python-core-2.3.4\lib\site-packages | 1 | 0 | 0 | I need to update data to a mssql 2005 database so I have decided to use adodbapi, which is supposed to come built into the standard installation of python 2.1.1 and greater.
It needs pywin32 to work correctly and the open office python 2.3 installation does not have pywin32 built into it. It also seems like this built ... | getting pywin32 to work inside open office 2.4 built in python 2.3 interpreter | 0.066568 | 1 | 0 | 833 |
239,020 | 2008-10-27T03:42:00.000 | 4 | 1 | 0 | 1 | python,perl,dll | 239,098 | 5 | false | 0 | 0 | For Python, you could compile an extension which links to the DLL, so that in Python you could just import it like a normal module. You could do this by hand, by using a library like Boost.Python, or by using a tool such as SWIG (which also supports Perl and other scripting languages) to generate a wrapper automaticall... | 1 | 9 | 0 | I have a third-party product, a terminal emulator, which provides a DLL that can be linked to a C program to basically automate the driving of this product (send keystrokes, detect what's on the screen and so forth).
I want to drive it from a scripting language (I'm comfortable with Python and slightly less so with Per... | How can I call a DLL from a scripting language? | 0.158649 | 0 | 0 | 3,922 |
240,996 | 2008-10-27T18:41:00.000 | 3 | 0 | 1 | 0 | python,embedded | 278,420 | 17 | false | 0 | 0 | We use Python here at the university for embedded applications based on the Gumstix hardware platform. Although more capable than traditional embedded systems, we find the mix of small formfactor, low (ish) power consumption and the ease in transferring code between development on desktop machines and the target hardw... | 6 | 41 | 0 | My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language.
The only real problem I have in day to day work is that the lack... | Anyone using Python for embedded projects? | 0.035279 | 0 | 0 | 36,731 |
240,996 | 2008-10-27T18:41:00.000 | 3 | 0 | 1 | 0 | python,embedded | 1,458,366 | 17 | false | 0 | 0 | I worked for a company which used Python on an embedded product based around an Atmel AVR32 and running embedded Linux. The firmware was initially developed on a PC (due to lack of a working hardware prototype), then later moved to the embedded hardware running on the cross-compiled Python interpreter.
The ability to d... | 6 | 41 | 0 | My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language.
The only real problem I have in day to day work is that the lack... | Anyone using Python for embedded projects? | 0.035279 | 0 | 0 | 36,731 |
240,996 | 2008-10-27T18:41:00.000 | 3 | 0 | 1 | 0 | python,embedded | 26,122,895 | 17 | false | 0 | 0 | In my experience, Python has been traditionally used in desktop environments more than in the embedded field. There are two reasons, related to the fact that Python is interpreted:
C/C++ languages have higher performance than Python (and this is important in embedded systems with a slow microcontroller)
C/C++ language... | 6 | 41 | 0 | My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language.
The only real problem I have in day to day work is that the lack... | Anyone using Python for embedded projects? | 0.035279 | 0 | 0 | 36,731 |
240,996 | 2008-10-27T18:41:00.000 | 4 | 0 | 1 | 0 | python,embedded | 278,438 | 17 | false | 0 | 0 | The only real problem I have in day to
day work is that the last of static
checking vs a regular compiler can
cause problems to be thrown at
run-time, e.g. a simple accidental cat
of a string and an int in a print
statement can bring the whole
application down.
Unit tests are your only safety against the... | 6 | 41 | 0 | My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language.
The only real problem I have in day to day work is that the lack... | Anyone using Python for embedded projects? | 0.047024 | 0 | 0 | 36,731 |
240,996 | 2008-10-27T18:41:00.000 | -5 | 0 | 1 | 0 | python,embedded | 25,940,451 | 17 | false | 0 | 0 | Blockquote
The only real problem I have in day to day work is that the last of static checking vs a regular compiler can cause problems to be thrown at run-time, e.g. a simple accidental cat of a string and an int in a print statement can bring the whole application down
To me it is a huge deal. Problems you could f... | 6 | 41 | 0 | My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language.
The only real problem I have in day to day work is that the lack... | Anyone using Python for embedded projects? | -1 | 0 | 0 | 36,731 |
240,996 | 2008-10-27T18:41:00.000 | 3 | 0 | 1 | 0 | python,embedded | 497,808 | 17 | false | 0 | 0 | My team wrote an embedded software made out of C++ and Python. We decided to write basic classes and heavy computational routines in C++. We wrote logic in Python. Boost libraries as glue. Using boost is never easy, but the results is excellent. Fast and easy to modify. Using python to represent the custom needings, w... | 6 | 41 | 0 | My company is using Python for a relatively simple embedded project. Is anyone else out there using Python on embedded platforms? Overall it's working well for us, quick to develop apps, quick to debug. I like the overall "conciseness" of the language.
The only real problem I have in day to day work is that the lack... | Anyone using Python for embedded projects? | 0.035279 | 0 | 0 | 36,731 |
241,007 | 2008-10-27T18:43:00.000 | 1 | 0 | 0 | 1 | python,svn,google-app-engine,continuous-integration,google-code | 241,672 | 5 | false | 1 | 0 | For those of us who are using Github, this feature from the GAE team would make us all seriously consider switching to Google Code... | 2 | 18 | 0 | 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? | 0.039979 | 0 | 0 | 2,320 |
241,007 | 2008-10-27T18:43:00.000 | 1 | 0 | 0 | 1 | python,svn,google-app-engine,continuous-integration,google-code | 241,126 | 5 | false | 1 | 0 | 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. | 2 | 18 | 0 | 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? | 0.039979 | 0 | 0 | 2,320 |
241,141 | 2008-10-27T19:32:00.000 | 2 | 0 | 1 | 0 | python | 241,519 | 5 | true | 0 | 0 | No, there isn't. | 1 | 15 | 0 | I would like create my own collection that has all the attributes of python list and also knows how to save/load itself into/from a database. Also I want to make the load implicit and lazy, as in it doesn't happen at the point of creation of the list, but waits until its first used.
Is there a single__xxx__method I ca... | Python lazy list | 1.2 | 0 | 0 | 3,784 |
241,327 | 2008-10-27T20:47:00.000 | 0 | 1 | 1 | 0 | c++,python,c,regex,comments | 1,078,406 | 13 | false | 0 | 0 | You don't really need a parse tree to do this perfectly, but you do in effect need the token stream equivalent to what is produced by the compiler's front end. Such a token stream must necessarilyy take care of all the weirdness such as line-continued comment start, comment start in string, trigraph normalization, etc... | 2 | 48 | 0 | I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally, I would prefer a non-naive implementation that properly han... | Remove C and C++ comments using Python? | 0 | 0 | 0 | 43,080 |
241,327 | 2008-10-27T20:47:00.000 | 4 | 1 | 1 | 0 | c++,python,c,regex,comments | 242,110 | 13 | false | 0 | 0 | The regular expression cases will fall down in some situations, like where a string literal contains a subsequence which matches the comment syntax. You really need a parse tree to deal with this. | 2 | 48 | 0 | I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally, I would prefer a non-naive implementation that properly han... | Remove C and C++ comments using Python? | 0.061461 | 0 | 0 | 43,080 |
241,575 | 2008-10-27T22:19:00.000 | 3 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 241,773 | 14 | false | 1 | 0 | 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 ... | 8 | 8 | 0 | 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!) | 0.042831 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 0 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 294,729 | 14 | false | 1 | 0 | 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... | 8 | 8 | 0 | 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!) | 0 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 3 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 241,785 | 14 | false | 1 | 0 | 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... | 8 | 8 | 0 | 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!) | 0.042831 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 1 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 241,593 | 14 | false | 1 | 0 | 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... | 8 | 8 | 0 | 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!) | 0.014285 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 2 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 243,952 | 14 | false | 1 | 0 | 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... | 8 | 8 | 0 | 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!) | 0.028564 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 9 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 241,637 | 14 | false | 1 | 0 | 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... | 8 | 8 | 0 | 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 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 2 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 241,831 | 14 | false | 1 | 0 | "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... | 8 | 8 | 0 | 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!) | 0.028564 | 0 | 0 | 4,065 |
241,575 | 2008-10-27T22:19:00.000 | 2 | 1 | 0 | 0 | python,frameworks,content-management-system,enterprise | 1,384,018 | 14 | false | 1 | 0 | "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... | 8 | 8 | 0 | 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!) | 0.028564 | 0 | 0 | 4,065 |
242,059 | 2008-10-28T02:29:00.000 | 1 | 0 | 0 | 1 | python,opengl,fedora | 242,063 | 6 | false | 0 | 1 | What OpenGL library are you using? What windowing library? What version of Python?
Most likely cause I can think of is that your windowing library (SDL or whatever you're using) isn't initializing OpenGL before you start calling into it. | 5 | 15 | 0 | I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.
Just to avoid the "just use C" comments, here i... | OpenGl with Python | 0.033321 | 0 | 0 | 18,416 |
242,059 | 2008-10-28T02:29:00.000 | 0 | 0 | 0 | 1 | python,opengl,fedora | 242,371 | 6 | false | 0 | 1 | We have neither ideas about random segmentation faults. There is not enough information. What python libraries are you using for opengl? How do you use them? Can you show us your code? It's probably something trivial but my god -skill ends up to telling me just and only that.
Raytracer in python? I'd prefer just doing ... | 5 | 15 | 0 | I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.
Just to avoid the "just use C" comments, here i... | OpenGl with Python | 0 | 0 | 0 | 18,416 |
242,059 | 2008-10-28T02:29:00.000 | 0 | 0 | 0 | 1 | python,opengl,fedora | 246,922 | 6 | false | 0 | 1 | Perhaps you are calling an OpenGL function that requires an active OpenGL context, without having one? That shouldn't necessarily crash, but I guess it might. How to set up such a context depends on the platform, and it's been a while since I used GL from Python (and when I did, I also used GTK+ which complicates matte... | 5 | 15 | 0 | I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.
Just to avoid the "just use C" comments, here i... | OpenGl with Python | 0 | 0 | 0 | 18,416 |
242,059 | 2008-10-28T02:29:00.000 | 2 | 0 | 0 | 1 | python,opengl,fedora | 1,778,664 | 6 | false | 0 | 1 | Well, I don't know if these are the libs the original poster are using but I saw identical issues in a pet project I'm working on (Graphics Engine using C++ and Python) using PyOpenGL.
PyOpenGL didn't correctly pick up the rendering context if it was created after the python script had been loaded (I was loading the sc... | 5 | 15 | 0 | I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.
Just to avoid the "just use C" comments, here i... | OpenGl with Python | 0.066568 | 0 | 0 | 18,416 |
242,059 | 2008-10-28T02:29:00.000 | 0 | 0 | 0 | 1 | python,opengl,fedora | 2,284,461 | 6 | false | 0 | 1 | Scripts never cause segmentation faults.
But first see if your kernel and kmod video driver working property ...
Extension modules can cause "segmentation fault". | 5 | 15 | 0 | I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.
Just to avoid the "just use C" comments, here i... | OpenGl with Python | 0 | 0 | 0 | 18,416 |
242,065 | 2008-10-28T02:34:00.000 | 1 | 0 | 1 | 0 | python,python-2.6,python-install | 248,884 | 3 | false | 0 | 0 | Macports should be easy to get rid of; just delete /opt/local/. I think that Fink does something similar.
You can do which python to see what python is the default one. The system python should be in /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python
The MacPython you may have downloaded would either b... | 1 | 2 | 0 | I have been enjoying learning the basics of python, but before I started reading things I tried to install various python versions and modules clumsily. Now that I have some ideas of what I want to do and how to do it I'm finding that various aspects are broken. For instance, 2.6 IDLE won't launch, and when I try to im... | Python + Leopard + Fink + Mac Ports + Python.org + Idiot = broken Python - fresh start? | 0.066568 | 0 | 0 | 3,948 |
242,485 | 2008-10-28T07:37:00.000 | 6 | 0 | 1 | 0 | python,debugging | 41,656,242 | 15 | false | 0 | 0 | If you are using the IPython environment, you can just use the %debug and the shell will take you back to the offending line with the ipdb environment for inspections etc. Another option as pointed above is to use the iPython magic %pdb which effectively does the same. | 4 | 264 | 0 | This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let's say an IndexError, python prints the line, location and quick description of the error and exits. Is it possible to automatically start pdb when an error is encountered? I... | Starting python debugger automatically on error | 1 | 0 | 0 | 101,335 |
242,485 | 2008-10-28T07:37:00.000 | 58 | 0 | 1 | 0 | python,debugging | 13,003,378 | 15 | false | 0 | 0 | Ipython has a command for toggling this behavior: %pdb. It does exactly what you described, maybe even a bit more (giving you more informative backtraces with syntax highlighting and code completion). It's definitely worth a try! | 4 | 264 | 0 | This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let's say an IndexError, python prints the line, location and quick description of the error and exits. Is it possible to automatically start pdb when an error is encountered? I... | Starting python debugger automatically on error | 1 | 0 | 0 | 101,335 |
242,485 | 2008-10-28T07:37:00.000 | 3 | 0 | 1 | 0 | python,debugging | 44,708,864 | 15 | false | 0 | 0 | python -m pdb script.py in python2.7 press continue to start and it will run to the error and break there for debug. | 4 | 264 | 0 | This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let's say an IndexError, python prints the line, location and quick description of the error and exits. Is it possible to automatically start pdb when an error is encountered? I... | Starting python debugger automatically on error | 0.039979 | 0 | 0 | 101,335 |
242,485 | 2008-10-28T07:37:00.000 | 0 | 0 | 1 | 0 | python,debugging | 23,113,690 | 15 | false | 0 | 0 | Put a breakpoint inside the constructor of topmost exception class in the hierarchy, and most of the times you will see where the error was raised.
Putting a breakpoint means whatever you want it to mean : you can use an IDE, or pdb.set_trace, or whatever | 4 | 264 | 0 | This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let's say an IndexError, python prints the line, location and quick description of the error and exits. Is it possible to automatically start pdb when an error is encountered? I... | Starting python debugger automatically on error | 0 | 0 | 0 | 101,335 |
243,836 | 2008-10-28T15:58:00.000 | 78 | 0 | 1 | 0 | python | 244,654 | 5 | false | 0 | 0 | Try destination.__dict__.update(source.__dict__). | 1 | 61 | 0 | Is there a library method to copy all the properties between two (already present) instances of the same class, in Python?
I mean, something like Apache Commons' PropertyUtilsBean.copyProperties() | How to copy all properties of an object to another object, in Python? | 1 | 0 | 0 | 52,354 |
244,340 | 2008-10-28T18:35:00.000 | 0 | 0 | 0 | 0 | wxpython,device,win32gui,bitblit | 253,897 | 2 | false | 0 | 1 | From what I can tell, DCs in python are abstracted due to platform variation. So a device context in python doesn't directly map to a device context in Windows even though many of the methods are direct Windows method calls. To make this happen it appears you would need to make your own DelegateDC class or something ... | 1 | 2 | 0 | I am getting a DC for a window handle of an object in another program using win32gui.GetDC which returns an int/long. I need to blit this DC into a memory DC in python. The only thing I can't figure out how to do is get a wxDC derived object from the int/long that win32gui returns. None of the wxDC objects allow me ... | wxPython wxDC object from win32gui.GetDC | 0 | 0 | 0 | 1,086 |
245,192 | 2008-10-28T22:58:00.000 | 3 | 0 | 1 | 0 | python,language-agnostic | 245,238 | 5 | false | 0 | 0 | IMO this is one of those metaphors used to describe things in a natural language. The term is essentially used in context of describing functions as first class objects.
If you consider a object oriented language, we can impart various features to objects for eg: inheritance, class definition, ability to pass to other... | 1 | 239 | 0 | When are objects or something else said to be "first-class" in a given programming language, and why? In what way do they differ from languages where they are not?
When one says "everything is an object" (like in Python), do they indeed mean that "everything is first-class"? | What are "first-class" objects? | 0.119427 | 0 | 0 | 72,722 |
245,237 | 2008-10-28T23:16:00.000 | 2 | 1 | 0 | 0 | python,django,apache,fastcgi | 245,464 | 7 | false | 1 | 0 | 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. | 6 | 20 | 0 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? | Running Django with FastCGI or with mod_python | 0.057081 | 0 | 0 | 5,251 |
245,237 | 2008-10-28T23:16:00.000 | 2 | 1 | 0 | 0 | python,django,apache,fastcgi | 245,484 | 7 | false | 1 | 0 | There's also mod_wsgi, it seems to be faster than mod_python and the daemon mode operates similar to FastCGI | 6 | 20 | 0 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? | Running Django with FastCGI or with mod_python | 0.057081 | 0 | 0 | 5,251 |
245,237 | 2008-10-28T23:16:00.000 | 2 | 1 | 0 | 0 | python,django,apache,fastcgi | 245,259 | 7 | false | 1 | 0 | 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 ... | 6 | 20 | 0 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? | Running Django with FastCGI or with mod_python | 0.057081 | 0 | 0 | 5,251 |
245,237 | 2008-10-28T23:16:00.000 | 5 | 1 | 0 | 0 | python,django,apache,fastcgi | 258,159 | 7 | false | 1 | 0 | Nginx with mod_wsgi | 6 | 20 | 0 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? | Running Django with FastCGI or with mod_python | 0.141893 | 0 | 0 | 5,251 |
245,237 | 2008-10-28T23:16:00.000 | 21 | 1 | 0 | 0 | python,django,apache,fastcgi | 245,660 | 7 | true | 1 | 0 | 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... | 6 | 20 | 0 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? | Running Django with FastCGI or with mod_python | 1.2 | 0 | 0 | 5,251 |
245,237 | 2008-10-28T23:16:00.000 | 6 | 1 | 0 | 0 | python,django,apache,fastcgi | 245,264 | 7 | false | 1 | 0 | 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... | 6 | 20 | 0 | which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? | Running Django with FastCGI or with mod_python | 1 | 0 | 0 | 5,251 |
247,724 | 2008-10-29T17:40:00.000 | 0 | 0 | 1 | 0 | python,scripting,ipc | 54,100,051 | 7 | false | 0 | 0 | I like os.startfile("path to file") as it opens the file as if you've double clicked to open.
I found that with os.system("start excel filename") it opened it like a file opened from the web and you had to enable editing. | 2 | 14 | 0 | I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that in my script? | How can I launch an instance of an application using Python? | 0 | 0 | 0 | 52,328 |
247,724 | 2008-10-29T17:40:00.000 | 0 | 0 | 1 | 0 | python,scripting,ipc | 247,730 | 7 | false | 0 | 0 | os.system("open file.xls") | 2 | 14 | 0 | I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that in my script? | How can I launch an instance of an application using Python? | 0 | 0 | 0 | 52,328 |
248,730 | 2008-10-29T23:02:00.000 | 0 | 0 | 0 | 1 | python,linux,root | 248,874 | 7 | false | 0 | 0 | I'm not familiar enough with Python to tell you what the necessary commands would be in that language, but you should be able to accomplish this by forking and using a pipe to communicate between the parent and child processes. Something along the lines of:
Run the program as root via sudo or suid
On startup, the pro... | 6 | 3 | 0 | I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and th... | Is there something between a normal user account and root? | 0 | 0 | 0 | 1,208 |
248,730 | 2008-10-29T23:02:00.000 | 3 | 0 | 0 | 1 | python,linux,root | 248,759 | 7 | false | 0 | 0 | What you want is a "Group"
You create a group, specify that the account wanting to do the action belongs to the group, then you specify that the resource you want access to is a member of that group.
Sometimes group management can be kind of irritating, but it should allow you to do anything you want, and it's the user... | 6 | 3 | 0 | I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and th... | Is there something between a normal user account and root? | 0.085505 | 0 | 0 | 1,208 |
248,730 | 2008-10-29T23:02:00.000 | 1 | 0 | 0 | 1 | python,linux,root | 248,756 | 7 | false | 0 | 0 | You could create and distribute a selinux policy for your application. Selinux allows the kind of fine-grained access that you need. If you can't or won't use selinux, then the daemon is the way to go. | 6 | 3 | 0 | I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and th... | Is there something between a normal user account and root? | 0.028564 | 0 | 0 | 1,208 |
248,730 | 2008-10-29T23:02:00.000 | 7 | 0 | 0 | 1 | python,linux,root | 248,758 | 7 | true | 0 | 0 | Your idea about the daemon has much merit, despite the complexity it introduces. As long as the actions don't require some user interface interaction as root, a daemon allows you to control what operations are allowed and disallowed.
However, you can use SUDO to create a controlled compromise between ROOT and normal us... | 6 | 3 | 0 | I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and th... | Is there something between a normal user account and root? | 1.2 | 0 | 0 | 1,208 |
248,730 | 2008-10-29T23:02:00.000 | 1 | 0 | 0 | 1 | python,linux,root | 248,882 | 7 | false | 0 | 0 | The traditional way would be to create and use a setuid helper to do whatever you need. Note that, however, properly writing a setuid helper is tricky (there are several attack vectors you have to protect against).
The modern way would be to use a daemon (running as root, started on boot) which listens to requests from... | 6 | 3 | 0 | I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and th... | Is there something between a normal user account and root? | 0.028564 | 0 | 0 | 1,208 |
248,730 | 2008-10-29T23:02:00.000 | 0 | 0 | 0 | 1 | python,linux,root | 248,743 | 7 | false | 0 | 0 | There's no single user that is halfway between a "normal" user and root. You have root, and then you have users; users can have differing levels of capabilities. If you want something that's more powerful than a "normal" user but not as powerful as root, you just create a new user with the capabilities you want, but do... | 6 | 3 | 0 | I'm developing an application that manages network interfaces on behalf of the user and it calls out to several external programs (such as ifconfig) that requires root to make changes. (Specifically, changing the IP address of a local interface, etc.) During development, I have been running the IDE as root (ugh) and th... | Is there something between a normal user account and root? | 0 | 0 | 0 | 1,208 |
249,283 | 2008-10-30T04:32:00.000 | 1 | 0 | 1 | 0 | python,ubuntu,pygtk,virtualenv | 249,708 | 5 | false | 0 | 0 | I find in this situation, symlinks, or even copying specific files (packages, modules, extensions) works really well.
It allows the program to emulate being run in the target environment, rather than changing the application to suit the development environment.
Same deal for something like AppEngine. | 1 | 25 | 0 | I've been using virtualenv lately while developing in python. I like the idea of a segregated development environment using the --no-site-packages option, but doing this while developing a PyGTK app can be a bit tricky. The PyGTK modules are installed on Ubuntu by default, and I would like to make a virtualenv (with --... | Virtualenv on Ubuntu with no site-packages | 0.039979 | 0 | 0 | 11,144 |
249,785 | 2008-10-30T10:50:00.000 | 2 | 0 | 0 | 1 | python,macos,filesystems | 249,800 | 6 | false | 0 | 0 | The File Manager API has a pair of functions called FSMoveObjectToTrashAsync and FSPathMoveObjectToTrashSync.
Not sure if that is exposed to Python or not. | 1 | 1 | 0 | Simply moving the file to ~/.Trash/ will not work, as if the file os on an external drive, it will move the file to the main system drive..
Also, there are other conditions, like files on external drives get moved to /Volumes/.Trash/501/ (or whatever the current user's ID is)
Given a file or folder path, what is the co... | OS X: Determine Trash location for a given path | 0.066568 | 0 | 0 | 3,560 |
250,151 | 2008-10-30T13:21:00.000 | 12 | 1 | 1 | 0 | python,scripting,lua | 250,158 | 11 | true | 0 | 0 | Just because it is "marketed" (in some general sense) as a special-purpose language for embedded script engines, does not mean that it is limited to that. In fact, WoW could probably just as well have chosen Python as their embedded scripting language. | 4 | 37 | 0 | When I see Lua, the only thing I ever read is "great for embedding", "fast", "lightweight" and more often than anything else: "World of Warcraft" or in short "WoW".
Why is it limited to embedding the whole thing into another application? Why not write general-purpose scripts like you do with Python or Perl?
Lua seems t... | Lua as a general-purpose scripting language? | 1.2 | 0 | 0 | 12,626 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.