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
481,692
2009-01-26T22:42:00.000
-3
0
1
0
python,recursion,lambda,y-combinator
481,793
15
false
0
0
If you were truly masochistic, you might be able to do it using C extensions, but this exceeds the capability of a lambda (unnamed, anonymous) functon. No. (for most values of no).
1
80
0
A regular function can contain a call to itself in its definition, no problem. I can't figure out how to do it with a lambda function though for the simple reason that the lambda function has no name to refer back to. Is there a way to do it? How?
Can a lambda function call itself recursively in Python?
-0.039979
0
0
54,314
482,612
2009-01-27T08:10:00.000
0
0
0
0
c#,c++,python,orm
496,166
3
false
0
0
We have an O/RM that has C++ and C# (actually COM) bindings (in FOST.3) and we're putting together the Python bindings which are new in version 4 together with Linux and Mac support.
2
7
0
Is there a good ORM (object relational manager) solution that can use the same database from C++, C#, Python? It could also be multiple solutions, e.g. one per language, as long as they can can access the same database and use the same schema. Multi platform support is also needed. Clarification: The idea is to have on...
ORM (object relational manager) solution with multiple programming language support
0
1
0
1,697
482,612
2009-01-27T08:10:00.000
1
0
0
0
c#,c++,python,orm
482,653
3
false
0
0
With SQLAlchemy, you can use reflection to get the schema, so it should work with any of the supported engines. I've used this to migrate data from an old SQLite to Postgres.
2
7
0
Is there a good ORM (object relational manager) solution that can use the same database from C++, C#, Python? It could also be multiple solutions, e.g. one per language, as long as they can can access the same database and use the same schema. Multi platform support is also needed. Clarification: The idea is to have on...
ORM (object relational manager) solution with multiple programming language support
0.066568
1
0
1,697
487,642
2009-01-28T13:39:00.000
1
0
0
0
python,tracking,inventory
487,660
3
true
1
0
One possibility would be to expose a web service interface on your inventory management system that allows the transactions used by the web shopfront to be accessed remotely. With a reasonably secure VPN link or ssh tunnel type arrangement, the web shopfront could get stock levels, place orders or execute searches aga...
3
0
0
We currently have an inventory management system that was built in-house. It works great, and we are constantly innovating it. This past Fall, we began selling products directly on one of our websites via a Shopping Cart checkout. Our inventory management system runs off a server in the office, while the three website...
Inventory Control Across Multiple Servers .. Ideas?
1.2
0
0
1,492
487,642
2009-01-28T13:39:00.000
0
0
0
0
python,tracking,inventory
487,674
3
false
1
0
I don't see the problem... You have an application running on one server that manages your database locally. There's no reason a remote server can't also talk to that database. Of course, if you don't have a database and are instead using a homegrown app to act as some sort of faux-database, I recommend that you refact...
3
0
0
We currently have an inventory management system that was built in-house. It works great, and we are constantly innovating it. This past Fall, we began selling products directly on one of our websites via a Shopping Cart checkout. Our inventory management system runs off a server in the office, while the three website...
Inventory Control Across Multiple Servers .. Ideas?
0
0
0
1,492
487,642
2009-01-28T13:39:00.000
0
0
0
0
python,tracking,inventory
706,707
3
false
1
0
I'm not sure if there is any one really good solution for your problem. I think the way you are doing it now works fine, but if you don't agree then I don't know what to tell you.
3
0
0
We currently have an inventory management system that was built in-house. It works great, and we are constantly innovating it. This past Fall, we began selling products directly on one of our websites via a Shopping Cart checkout. Our inventory management system runs off a server in the office, while the three website...
Inventory Control Across Multiple Servers .. Ideas?
0
0
0
1,492
489,720
2009-01-28T22:35:00.000
12
0
1
0
python,decorator
489,735
13
false
0
0
I use them mainly for debugging (wrapper around a function that prints its arguments and result) and verification (e.g. to check if an argument is of correct type or, in the case of web application, if the user has sufficient privileges to call a particular method).
2
358
0
While I like to think of myself as a reasonably competent Python coder, one aspect of the language I've never been able to grok is decorators. I know what they are (superficially), I've read tutorials, examples, questions on Stack Overflow, and I understand the syntax, can write my own, occasionally use @classmethod an...
What are some common uses for Python decorators?
1
0
0
80,115
489,720
2009-01-28T22:35:00.000
6
0
1
0
python,decorator
490,745
13
false
0
0
I used them recently, while working on social networking web application. For Community/Groups, I was supposed to give membership authorization to create new discussion and reply to a message you have to be the member of that particular group. So, I wrote a decorator @membership_required and put that where I required i...
2
358
0
While I like to think of myself as a reasonably competent Python coder, one aspect of the language I've never been able to grok is decorators. I know what they are (superficially), I've read tutorials, examples, questions on Stack Overflow, and I understand the syntax, can write my own, occasionally use @classmethod an...
What are some common uses for Python decorators?
1
0
0
80,115
489,861
2009-01-28T23:20:00.000
8
0
1
1
python,file-locking
490,032
14
false
0
0
Coordinating access to a single file at the OS level is fraught with all kinds of issues that you probably don't want to solve. Your best bet is have a separate process that coordinates read/write access to that file.
2
193
0
I need to lock a file for writing in Python. It will be accessed from multiple Python processes at once. I have found some solutions online, but most fail for my purposes as they are often only Unix based or Windows based.
Locking a file in Python
1
0
0
216,892
489,861
2009-01-28T23:20:00.000
14
0
1
1
python,file-locking
490,919
14
false
0
0
Locking is platform and device specific, but generally, you have a few options: Use flock(), or equivalent (if your os supports it). This is advisory locking, unless you check for the lock, it's ignored. Use a lock-copy-move-unlock methodology, where you copy the file, write the new data, then move it (move, not copy...
2
193
0
I need to lock a file for writing in Python. It will be accessed from multiple Python processes at once. I have found some solutions online, but most fail for my purposes as they are often only Unix based or Windows based.
Locking a file in Python
1
0
0
216,892
491,053
2009-01-29T09:50:00.000
0
1
0
0
python,ide
495,362
11
false
0
1
Between komodo and wingide i would go for wing. The license is not that expensive and the fact that it is commercial gives you a bigger probability of more updates and bug fixes. If you, like me, prefer a free solution, then stick with pydev. At least until aptana closes the free door :)
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0
0
0
31,316
491,053
2009-01-29T09:50:00.000
2
1
0
0
python,ide
1,399,741
11
false
0
1
Check to see if the 'P' icon is appearing for your items and in the top of your editor after opening it. If it's not appearing, it may be that there's a problem with the file association, so, go to window > preferences > general > editors > file associations and make sure that the .py files are associated with the Pyth...
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0.036348
0
0
31,316
491,053
2009-01-29T09:50:00.000
1
1
0
0
python,ide
4,665,424
11
false
0
1
It sounds like you have to specify the location of the Python interpreter. Do this under Preferences > Pydev > Interpreter - Python. Create a new interpreter and point it to the Python interpreter executable.
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0.01818
0
0
31,316
491,053
2009-01-29T09:50:00.000
5
1
0
0
python,ide
17,847,161
11
false
0
1
Make sure you use 'Open With' as 'Python Editor' by right clicking on the file - It worked for me
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0.090659
0
0
31,316
491,053
2009-01-29T09:50:00.000
0
1
0
0
python,ide
18,933,901
11
false
0
1
Check your Theme configuration. Python highlighting uses Theme Colors
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0
0
0
31,316
491,053
2009-01-29T09:50:00.000
0
1
0
0
python,ide
19,301,447
11
false
0
1
In case anyone else makes the embarrassing mistake that I did: be sure your source code file actually ends with ".py". Even if its in a Python project, PyDev won't guess without the extension.
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0
0
0
31,316
491,053
2009-01-29T09:50:00.000
0
1
0
0
python,ide
35,208,736
11
false
0
1
When syntax highlighting was not working for me using PyDev, I discovered that there were somehow two 'Python Editor' associations defined for .py files in my installation of Eclipse/PyDev. From the Eclipse Main Menu, go to Window > Preferences > General > Editors > FileAssociations to see the file extension <-> edit...
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0
0
0
31,316
491,053
2009-01-29T09:50:00.000
0
1
0
0
python,ide
495,297
11
false
0
1
Well, I tried the Wing Professional and I think its really the best Py IDE out there.
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
0
0
0
31,316
491,053
2009-01-29T09:50:00.000
13
1
0
0
python,ide
1,836,524
11
false
0
1
The typical reason that code completion doesn't work under PyDev is that the libraries aren't in the PYTHONPATH. If you go into the Project Properties, and setup PyDev PYTHONPATH preferences to include the places where the code you are trying to complete lives, it will work just fine... Project > Properties > PyDev-PY...
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
1
0
0
31,316
491,053
2009-01-29T09:50:00.000
23
1
0
0
python,ide
492,073
11
true
0
1
To enable code completion, go to Window > Preferences > Pydev > Editor > Code Completion, and check the 'Use Code Completion?' box, as well as the other boxes for what you want to complete on. It seems to take a second to load, the first time it has to complete something. Syntax coloring should just work by default. ...
10
18
0
I just configured Eclipse with PyDev latest version, but when I import external modules, neither code completion nor syntax highlighting works. How do I enable it? Komodo Edit does a better synax highlighting, apparently. - But Ctrl+R doesnt run the program. I prefer a SciTE kind of editor with similar highlighting an...
No code completion and syntax highlighting in Pydev
1.2
0
0
31,316
491,380
2009-01-29T12:22:00.000
1
1
0
0
python,perl,networking,scripting-language
4,275,651
9
false
0
0
Right now I've experimented the approach of creating some simple unit test for network services using various TAP libraries (mainly bash+netcat+curl and perl). The advantage is that you wrote a single script that you can use for both unit and network testing. The display is dove via TAP::Harness::HTML.
3
3
0
I want to have some work done on the Network front, pinging numerous computers on a LAN and retrieving data about the response time. Which would be the most useful and productive to work with: Perl or Python?
Should I use Perl or Python for network monitoring?
0.022219
0
0
7,896
491,380
2009-01-29T12:22:00.000
1
1
0
0
python,perl,networking,scripting-language
492,708
9
false
0
0
Whichever you know better or are more comfortable using. They both can do the job and do it well, so it is your preference.
3
3
0
I want to have some work done on the Network front, pinging numerous computers on a LAN and retrieving data about the response time. Which would be the most useful and productive to work with: Perl or Python?
Should I use Perl or Python for network monitoring?
0.022219
0
0
7,896
491,380
2009-01-29T12:22:00.000
-1
1
0
0
python,perl,networking,scripting-language
491,625
9
false
0
0
I'd say that if you need something quick and dirty that's up and running by this afternoon, then perl is probably the better language. However for developing solid application that's easy to maintain and extend and that you can build on over time, I'd go with python. This is of course assuming you know both languages m...
3
3
0
I want to have some work done on the Network front, pinging numerous computers on a LAN and retrieving data about the response time. Which would be the most useful and productive to work with: Perl or Python?
Should I use Perl or Python for network monitoring?
-0.022219
0
0
7,896
492,223
2009-01-29T16:01:00.000
1
0
0
0
python,sqlalchemy
1,227,979
2
false
1
0
I had the same question as the parent when using the ORM, and GHZ's link contained the answer on how it's possible. In sqlalchemy, assuming BlogPost.comments is a mapped relation to the Comments table, you can't do: session.query(BlogPost).order_by(BlogPost.comments.creationDate.desc()) , but you can do: session.que...
1
3
0
Here is the situation: I have a parent model say BlogPost. It has many Comments. What I want is the list of BlogPosts ordered by the creation date of its' Comments. I.e. the blog post which has the most newest comment should be on top of the list. Is this possible with SQLAlchemy?
How can I order objects according to some attribute of the child in sqlalchemy?
0.099668
1
0
595
492,365
2009-01-29T16:30:00.000
0
0
0
0
wxpython,wxwidgets
826,451
2
false
0
1
Since tooltips normally disappear when the user moves the mouse you could also bind to EVT_MOTION instead of EVT_LEAVE_WINDOW and hide the tooltip when the user moves the mouse.
2
1
0
I have a frame with a textctrl. When the mouse enters the textctrl (EVT_ENTER_WINDOW) I show a PopupWindow on top of the textctrl, and when the mouse leaves the popup (EVT_LEAVE_WINDOW) I hide it again. Everything works fine, except when inside the PopupWindow there's a ScrolledWindow with shown scrollbars. The EVT_LEA...
ScrolledWindow and wx.EVT_LEAVE_WINDOW
0
0
0
628
492,365
2009-01-29T16:30:00.000
0
0
0
0
wxpython,wxwidgets
11,717,036
2
true
0
1
Robin Dunn told me: "the same thing would happen with any other widgets that are on the scrolled window, just as the frame will get a EVT_LEAVE_WINDOW when the mouse moves into the scrolled window (assuming some portion of the frame was visible so it could have received an enter window event too)"
2
1
0
I have a frame with a textctrl. When the mouse enters the textctrl (EVT_ENTER_WINDOW) I show a PopupWindow on top of the textctrl, and when the mouse leaves the popup (EVT_LEAVE_WINDOW) I hide it again. Everything works fine, except when inside the PopupWindow there's a ScrolledWindow with shown scrollbars. The EVT_LEA...
ScrolledWindow and wx.EVT_LEAVE_WINDOW
1.2
0
0
628
492,519
2009-01-29T17:08:00.000
19
0
1
0
python,multithreading,timeout,python-multithreading
55,816,988
21
false
0
0
I am the author of wrapt_timeout_decorator Most of the solutions presented here work wunderfully under Linux on the first glance - because we have fork() and signals() - but on windows the things look a bit different. And when it comes to subthreads on Linux, You cant use Signals anymore. In order to spawn a process un...
1
427
0
I'm calling a function in Python which I know may stall and force me to restart the script. How do I call the function or what do I wrap it in so that if it takes longer than 5 seconds the script cancels it and does something else?
Timeout on a function call
1
0
0
498,691
492,716
2009-01-29T18:05:00.000
5
0
1
0
python,regex
492,728
8
false
0
0
Unless your regex is extremely simple (i.e. no stars or pluses), there will be infinitely many strings which match it. If your regex only involves concatenation and alternation, then you can expand each alternation into all of its possibilities, e.g. (foo|bar)(baz|quux) can be expanded into the list ['foobaz', 'fooquu...
1
45
0
I want to reverse a regular expression. I.e. given a regular expression, I want to produce any string that will match that regex. I know how to do this from a theoretical computer science background using a finite state machine, but I just want to know if someone has already written a library to do this. :) I'm using P...
Reversing a regular expression in Python
0.124353
0
0
14,829
493,853
2009-01-29T22:54:00.000
2
0
1
0
python,module
495,247
4
false
0
0
You don't need a separate library or module to do this. Python has list comprehensions built into the language, which lets you manipulate lists and perform caculations. You could use the numpy module to do the same thing if you want to do lots of scientific calculations, or if you want to do lots of heavy number crunch...
1
3
0
I have a sequence of x, y and z -coordinates, which I need to manipulate. They are in one list of three tuples, like {(x1, y1, z1), (x2, y2, z2), ...}. I need addition, multiplication and logarithm to manipulate my data. I would like to study a module, which is as powerful as Awk -language.
Which Python module is suitable for data manipulation in a list?
0.099668
0
0
4,046
493,973
2009-01-29T23:42:00.000
0
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
494,118
13
false
0
0
I find dynamic languages like Perl and to a lesser extent Python allow me to write quick and dirty scripts for things I need to do. The run cycle is much shorter in dynamic languages and often less code needs to be written then in a statically typed language which increases my productivity. This unfortunately comes at ...
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
0
0
0
1,456
493,973
2009-01-29T23:42:00.000
1
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
495,293
13
false
0
0
The point is that in a dynamic language you can implement the same functionality much quicker than in a statically typed one. Therefore the productivity is typically much higher. Things like templates or polymorphism in principle give you lots of flexibility, but you have to write a large amount of code to make it work...
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
0.015383
0
0
1,456
493,973
2009-01-29T23:42:00.000
1
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
494,423
13
false
0
0
One big advantage of dynamic typing when using objects is that you don't need to use class hierarchies anymore when you want several classes to have the same interface - that's more or less what is called duck typing. Bad inheritance is very difficult to fix afterwards - this makes refactoring often harder than it is i...
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
0.015383
0
0
1,456
493,973
2009-01-29T23:42:00.000
-2
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
494,121
13
false
0
0
Compiled languages tend to be used when efficiency and type safety are the priorities. Otherwise I can't think of any reason why anyone wouldn't be using ruby :)
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
-0.03076
0
0
1,456
493,973
2009-01-29T23:42:00.000
1
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
494,009
13
false
0
0
In dynamic languages you can use values in ways that you know are correct. In a statically typed language you can only use values in ways the compiler knows are correct. You need all of the things you mentioned to regain flexibility that's taken away by the type system (I'm not bashing static type systems, the flexibil...
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
0.015383
0
0
1,456
493,973
2009-01-29T23:42:00.000
0
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
493,993
13
false
0
0
With a dynamic language it's much easier to have a command line interpreter so you can test things on the command line and don't have to worry about a compile step to see if they work.
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
0
0
0
1,456
493,973
2009-01-29T23:42:00.000
15
1
1
0
python,programming-languages,language-design,dynamic-languages,duck-typing
494,055
13
true
0
0
In theory, there's nothing that dynamic languages can do and static languages can't. Smart people put a lot of work into making very good dynamic languages, leading to a perception at the moment that dynamic languages are ahead while static ones need to catch up. In time, this will swing the other way. Already various ...
7
8
0
My primary language right now is D, and I'm in the process of learning Python because it's required for a course I'm taking. While I understand why dynamic languages would be a breath of fresh air for people programming in static languages without type inference or templates (IMHO templates are to a large extent compi...
Uses for Dynamic Languages
1.2
0
0
1,456
495,579
2009-01-30T14:03:00.000
0
0
0
1
python,google-app-engine,ide
498,183
10
false
1
0
For my recent GAE project I tried both eclipse with pydev and intellij with its python plugin. I use intellij for my "real" work and so I found it to be the most natural and easy to use, personally. It is not open source, but if you already have a license it is no extra cost. I found the eclipse plugin to be very goo...
5
15
0
Looking to dabble with GAE and python, and I'd like to know what are some of the best tools for this - thanks!
Best opensource IDE for building applications on Google App Engine?
0
0
0
11,377
495,579
2009-01-30T14:03:00.000
0
0
0
1
python,google-app-engine,ide
497,470
10
false
1
0
I've been using gedit and am pretty happy with it, there is a couple of good plugins that make life easier (e.g. Class Browser). I tried eclipse but its just not the same experience you get with Java.
5
15
0
Looking to dabble with GAE and python, and I'd like to know what are some of the best tools for this - thanks!
Best opensource IDE for building applications on Google App Engine?
0
0
0
11,377
495,579
2009-01-30T14:03:00.000
6
0
0
1
python,google-app-engine,ide
495,783
10
false
1
0
Netbeans has some very nice tools for Python development
5
15
0
Looking to dabble with GAE and python, and I'd like to know what are some of the best tools for this - thanks!
Best opensource IDE for building applications on Google App Engine?
1
0
0
11,377
495,579
2009-01-30T14:03:00.000
6
0
0
1
python,google-app-engine,ide
498,484
10
false
1
0
I use pydev on eclipse, and works well for django too!
5
15
0
Looking to dabble with GAE and python, and I'd like to know what are some of the best tools for this - thanks!
Best opensource IDE for building applications on Google App Engine?
1
0
0
11,377
495,579
2009-01-30T14:03:00.000
2
0
0
1
python,google-app-engine,ide
496,385
10
false
1
0
VIM(there's enough plug-ins to make it IDE -like) Komodo IDE($$) Eclipse w/Pydev Net Beans with Python support WingIDE($$) SPE(Stani's Python Editor)
5
15
0
Looking to dabble with GAE and python, and I'd like to know what are some of the best tools for this - thanks!
Best opensource IDE for building applications on Google App Engine?
0.039979
0
0
11,377
495,879
2009-01-30T15:22:00.000
17
0
0
0
python,django,django-admin
496,123
7
true
1
0
It really depends on the project I guess. While you can do everything in the admin, when your app gets more complex using the admin gets more complex too. And if you want to make your app really easy to manage you want control over every little detail, which is not really possible with the admin app. I guess you should...
5
21
0
I'm just starting to use Django for a personal project. What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is_staff)? This is a community wiki because it could be considered a poll.
Django Admin app or roll my own?
1.2
0
0
11,322
495,879
2009-01-30T15:22:00.000
1
0
0
0
python,django,django-admin
500,093
7
false
1
0
I'd recommend enabling the admin site on just about every type of project. The cost of setting it up is pretty low, and it gives you a reasonably convenient mechanism for inspecting and modifying your site. If your site has mostly a one way flow of information, from webmaster to visitors, then the admin site is prob...
5
21
0
I'm just starting to use Django for a personal project. What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is_staff)? This is a community wiki because it could be considered a poll.
Django Admin app or roll my own?
0.028564
0
0
11,322
495,879
2009-01-30T15:22:00.000
1
0
0
0
python,django,django-admin
3,842,185
7
false
1
0
I'd go with the Django admin functionality, over writing your own. You can customize the Django admin by adding your own templates for the admin, your own widgets, etc. I'm working on a project with a very customized Django admin. If we had decided to write it by hand, it would have taken 4 times as long to get done...
5
21
0
I'm just starting to use Django for a personal project. What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is_staff)? This is a community wiki because it could be considered a poll.
Django Admin app or roll my own?
0.028564
0
0
11,322
495,879
2009-01-30T15:22:00.000
3
0
0
0
python,django,django-admin
498,068
7
false
1
0
I found sadly, that the while the django admin app saves a lot of time at first, it becomes a hinderence later on, as your costumer demands more features that are not easily integrated with the default admin interface. You might endup with two kinds of admin tools: the django admin (for apps that require simple data en...
5
21
0
I'm just starting to use Django for a personal project. What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is_staff)? This is a community wiki because it could be considered a poll.
Django Admin app or roll my own?
0.085505
0
0
11,322
495,879
2009-01-30T15:22:00.000
17
0
0
0
python,django,django-admin
498,061
7
false
1
0
I would use Django's admin app, for a number of reasons. First, writing an administration app may be quite tricky and take some time if you want to do it right, and django.contrib.admin is for free and works out of the box. Second, it is really well designed and very nice to work with (even for non-technical users). Th...
5
21
0
I'm just starting to use Django for a personal project. What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is_staff)? This is a community wiki because it could be considered a poll.
Django Admin app or roll my own?
1
0
0
11,322
496,009
2009-01-30T15:58:00.000
-4
0
1
0
python,magic-methods
496,019
5
false
0
0
According to Mark Pilgrim, it looks like no. len(someObj) is the same as someObj.__len__(); Cheers!
2
14
0
Is there any case where len(someObj) does not call someObj's __len__ function? I recently replaced the former with the latter in a (sucessful) effort to speed up some code. I want to make sure there's not some edge case somewhere where len(someObj) is not the same as someObj.__len__().
Is there any case where len(someObj) does not call someObj's __len__ function?
-1
0
0
1,713
496,009
2009-01-30T15:58:00.000
17
0
1
0
python,magic-methods
497,096
5
true
0
0
If __len__ returns a length over sys.maxsize, len() will raise an exception. This isn't true of calling __len__ directly. (In fact you could return any object from __len__ which won't be caught unless it goes through len().)
2
14
0
Is there any case where len(someObj) does not call someObj's __len__ function? I recently replaced the former with the latter in a (sucessful) effort to speed up some code. I want to make sure there's not some edge case somewhere where len(someObj) is not the same as someObj.__len__().
Is there any case where len(someObj) does not call someObj's __len__ function?
1.2
0
0
1,713
496,582
2009-01-30T18:21:00.000
8
0
1
0
python,variables
496,656
10
true
0
0
First of all: class attributes, or instance attributes? Or both? =) Usually you just add instance attributes in __init__, and class attributes in the class definition, often before method definitions... which should probably cover 90% of use cases. If code adds attributes on the fly, it probably (hopefully :-) has good...
5
11
0
I'm a C++ programmer just starting to learn Python. I'd like to know how you keep track of instance variables in large Python classes. I'm used to having a .h file that gives me a neat list (complete with comments) of all the class' members. But since Python allows you to add new instance variables on the fly, how d...
What's a good way to keep track of class instance variables in Python?
1.2
0
0
3,466
496,582
2009-01-30T18:21:00.000
10
0
1
0
python,variables
498,284
10
false
0
0
I would say, the standard practice to avoid this is to not write classes where you can be 1000 lines away from anything! Seriously, that's way too much for just about any useful class, especially in a language that is as expressive as Python. Using more of what the Standard Library offers and abstracting away code into...
5
11
0
I'm a C++ programmer just starting to learn Python. I'd like to know how you keep track of instance variables in large Python classes. I'm used to having a .h file that gives me a neat list (complete with comments) of all the class' members. But since Python allows you to add new instance variables on the fly, how d...
What's a good way to keep track of class instance variables in Python?
1
0
0
3,466
496,582
2009-01-30T18:21:00.000
2
0
1
0
python,variables
498,421
10
false
0
0
This is a common concern I hear from many programmers who come from a C, C++, or other statically typed language where variables are pre-declared. In fact it was one of the biggest concerns we heard when we were persuading programmers at our organization to abandon C for high-level programs and use Python instead. In t...
5
11
0
I'm a C++ programmer just starting to learn Python. I'd like to know how you keep track of instance variables in large Python classes. I'm used to having a .h file that gives me a neat list (complete with comments) of all the class' members. But since Python allows you to add new instance variables on the fly, how d...
What's a good way to keep track of class instance variables in Python?
0.039979
0
0
3,466
496,582
2009-01-30T18:21:00.000
4
0
1
0
python,variables
496,820
10
false
0
0
Instance variables should be initialized in the class's __init__() method. (In general) If that's not possible. You can use __dict__ to get a dictionary of all instance variables of an object during runtime. If you really need to track this in documentation add a list of instance variables you are using into the docstr...
5
11
0
I'm a C++ programmer just starting to learn Python. I'd like to know how you keep track of instance variables in large Python classes. I'm used to having a .h file that gives me a neat list (complete with comments) of all the class' members. But since Python allows you to add new instance variables on the fly, how d...
What's a good way to keep track of class instance variables in Python?
0.07983
0
0
3,466
496,582
2009-01-30T18:21:00.000
0
0
1
0
python,variables
496,641
10
false
0
0
The easiest is to use an IDE. PyDev is a plugin for eclipse. I'm not a full on expert in all ways pythonic, but in general I define my class members right under the class definition in python, so if I add members, they're all relative. My personal opinion is that class members should be declared in one section, for thi...
5
11
0
I'm a C++ programmer just starting to learn Python. I'd like to know how you keep track of instance variables in large Python classes. I'm used to having a .h file that gives me a neat list (complete with comments) of all the class' members. But since Python allows you to add new instance variables on the fly, how d...
What's a good way to keep track of class instance variables in Python?
0
0
0
3,466
496,814
2009-01-30T19:17:00.000
1
0
0
0
python,user-interface,gtk,progress-bar,pygtk
496,995
5
false
0
1
More than likely the issue is that in your progress callback, which is where I presume you're updating the progress bar, you're not making a call to manually update the display i.e. run through the GUI's event loop. This is just speculation though, if you can provide more code, it might be easier to narrow it down furt...
1
9
0
in my python program to upload a file to the internet, im using a GTK progress bar to show the upload progress. But the problems that im facing is that the progress bar does not show any activity until the upload is complete, and then it abruptly indicates upload complete. im using pycurl to make the http requests......
Progress bar not updating during operation
0.039979
0
0
6,986
497,426
2009-01-30T21:59:00.000
1
0
1
0
python,list
497,467
32
false
0
0
I can actually think of two ways to do it: slice the list like (this deletes the 1st,3rd and 8th elements) somelist = somelist[1:2]+somelist[3:7]+somelist[8:] do that in place, but one at a time: somelist.pop(2) somelist.pop(0)
1
191
0
Is it possible to delete multiple elements from a list at the same time? If I want to delete elements at index 0 and 2, and try something like del somelist[0], followed by del somelist[2], the second statement will actually delete somelist[3]. I suppose I could always delete the higher numbered elements first but I'm h...
Deleting multiple elements from a list
0.00625
0
0
286,990
497,952
2009-01-31T01:22:00.000
2
0
1
0
python
498,046
5
false
0
0
all possible errors The other answers pretty much cover how to make your program gracefully fail, but I'd like to mention one thing -- You don't want to gracefully fail all errors. If you hide all your errors, you won't be shown those which signify that the logic of the program is wrong - namely errors you want to see...
1
15
0
I was just wondering how do you make python fail in a user defined way in all possible errors. For example, I'm writing a program that processes a (large) list of items, and some of the items may not be in the format I defined. If python detects an error, it currently just spits out an ugly error message and stop the ...
How to make python gracefully fail?
0.07983
0
0
17,154
498,630
2009-01-31T10:46:00.000
1
0
0
0
python,django,security
499,505
7
false
1
0
You should not rely the security of the application on the framework. even though Django does come in with a pretty good number of measures against classical security issues, it can not guarantee that your application will be secure, you need much more than a programming Framework to get a security critical application...
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
0.028564
0
0
8,593
498,630
2009-01-31T10:46:00.000
17
0
0
0
python,django,security
498,707
7
false
1
0
Probably the reason behind Java is not in the in the security. I think Java is more used in large development companies and banks usually resort to them for their development needs (which probably are not only related to the web site but creep deeper in the backend). So, I see no security reasons, mostly cultural ones.
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
1
0
0
8,593
498,630
2009-01-31T10:46:00.000
30
0
0
0
python,django,security
498,798
7
true
1
0
Actually, the security in Java and Python is the same. Digest-only password handling, cookies that timeout rapidly, careful deletion of sessions, multi-factor authentication. None of this is unique to a Java framework or a Python framework like Django. Django, indeed, has a security backend architecture that allows y...
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
1.2
0
0
8,593
498,630
2009-01-31T10:46:00.000
8
0
0
0
python,django,security
499,599
7
false
1
0
The reasons for building banking apps in Java are not related to security, at least IMHO. They are related to: Java is the COBOL of the 21st century, so there is a lot of legacy code that would have to be rewritten and that takes time. Basically banking apps are old apps, they were built in java some ten years ago and...
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
1
0
0
8,593
498,630
2009-01-31T10:46:00.000
4
0
0
0
python,django,security
499,670
7
false
1
0
I find your connection between Java and banking wrong ended. Most Banking Software has terrible security. And much banking software is written in Java. Does ths mean Java makes it more difficult to write secure software than other languages? Probably it's not Java's fault that there is so little quality security (and s...
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
0.113791
0
0
8,593
498,630
2009-01-31T10:46:00.000
0
0
0
0
python,django,security
499,065
7
false
1
0
Are you referring to the fact that the complete application is built in Java, or just the part you see in your browser? If the latter, the reason is probably because in the context of webpages, Java applets can be downloaded and run.
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
0
0
0
8,593
498,630
2009-01-31T10:46:00.000
1
0
0
0
python,django,security
2,654,928
7
false
1
0
You can build a secure application with Django just as you can with any popular Java framework. One part where Java does shine is its extensive cryptographic library. For the minimal encryption tasks that are required by Django, Python’s cryptographic services are sufficient, however its lack of strong block ciphers ma...
7
22
0
Is Django a good choice for a security critical application? I am asking this because most of the online banking software is built using Java. Is there any real reason for this?
Is Django a good choice for a security critical application?
0.028564
0
0
8,593
500,134
2009-02-01T03:37:00.000
0
0
0
0
python,authentication,web-applications,windows-authentication
500,260
3
false
1
0
To the best of my knowledge the only browser that automatically passes your login credentials is Internet Explorer. To enable this feature select "Enable Integrated Windows Authentication" in the advanced Internet options dialog under the security section. This is usually enabled by default. The web server will ha...
1
3
0
On the intranet at my part time job (not IT related) there are various web applications that we use that do not require logging in explicitly. We are required to login to Windows obviously, and that then authenticates us some how. I'm wondering how this is done? Without worrying about security TOO much, how would I go ...
Can I log into a web application automatically using a users windows logon?
0
0
0
4,695
500,168
2009-02-01T03:59:00.000
5
0
1
0
python,datetime,timedelta
500,204
4
false
0
0
It would be perfect if I could just get the entire difference in seconds. Then plain-old-unix-timestamp as provided by the 'time' module may be more to your taste. I personally have yet to be convinced by a lot of what's in 'datetime'.
1
14
0
I am trying to have some clever dates since a post has been made on my site ("seconds since, hours since, weeks since, etc..") and I'm using datetime.timedelta difference between utcnow and utc dated stored in the database for a post. Looks like, according to the docs, I have to use the days attribute AND the seconds a...
Python's timedelta: can't I just get in whatever time unit I want the value of the entire difference?
0.244919
0
0
12,165
500,477
2009-02-01T09:20:00.000
2
0
0
1
python
500,483
2
false
0
0
You can redirect output into temp file and delete it afterward. But there's also a method called popen that redirects output directly to your program so it won't go on screen.
1
12
0
Is there a built-in method in Python to execute a system command without displaying the output? I only want to grab the return value. It is important that it be cross-platform, so just redirecting the output to /dev/null won't work on Windows, and the other way around. I know I can just check os.platform and build the ...
In Python - how to execute system command with no output
0.197375
0
0
6,820
500,935
2009-02-01T14:47:00.000
1
0
0
0
python,multithreading,web-services,web.py
501,570
4
false
1
0
Wouldn't is be simpler to re-write your main-loop code to be a function that you call over and over again, and then call that from the function that you pass to runsimple... It's guaranteed not to fully satisfy your requirements, but if you're in a rush, it might be easiest.
1
17
0
while learning some basic programming with python, i found web.py. i got stuck with a stupid problem: i wrote a simple console app with a main loop that proccesses items from a queue in seperate threads. my goal is to use web.py to add items to my queue and report status of the queue via web request. i got this running...
Using web.py as non blocking http-server
0.049958
0
1
7,054
501,585
2009-02-01T21:10:00.000
0
1
1
0
python,vim
501,812
12
false
0
0
If I want to print 'Hello' to lines 4,5, 6 and 7, what is wrong: If you want to do something in randomly chosen places throughout your file, you're better of recording keystrokes and replaying them. Go to the first line you want to change, and hit qz to starting recording into register z. Do whatever edits you want fo...
1
52
0
I waste a lot of time between Vim and Python. I find it too slow to manually copy-paste from Python to Vim and vice versa. A good broken example is: %!python for i in xrange(25); print 6*i \n How can you do such tweaks direcly in Vim? [Solved] [Clarification] I need things to Vim, like printing sequences, ari...
How can you use Python in Vim?
0
0
0
20,950
501,597
2009-02-01T21:18:00.000
1
0
1
1
python,packaging,setuptools,gnome,distutils2
501,624
4
false
0
0
In general, yes - everything is better than autotools when building Python projects. I have good experiences with setuptools so far. However, installing files into fixed locations is not a strength of setuptools - after all, it's not something to build installaters for Python apps, but distribute Python libraries. For ...
1
10
0
Currently I'm using the auto-tools to build/install and package a project of mine, but I would really like to move to something that feels more "pythonic". My project consists of two scripts, one module, two glade GUI descriptions, and two .desktop files. It's currently a pure python project, though that's likely to c...
How to distribute `.desktop` files and icons for a Python package in Gnome (with distutils or setuptools)?
0.049958
0
0
3,003
501,945
2009-02-02T00:59:00.000
4
1
1
0
python
501,958
5
false
0
0
You can set the PYTHONPATH environment variable to the directory where your library files are located. This adds that path to the library search path and you can use a normal import to import them.
2
6
0
I've got a number of scripts that use common definitions. How do I split them in multiple files? Furthermore, the application can not be installed in any way in my scenario; it must be possible to have an arbitrary number of versions concurrently running and it must work without superuser rights. Solutions I've come up...
How to modularize a Python application
0.158649
0
0
3,665
501,945
2009-02-02T00:59:00.000
1
1
1
0
python
501,966
5
false
0
0
I've used the third approach (add the directories to sys.path) for more than one project, and I think it's a valid approach.
2
6
0
I've got a number of scripts that use common definitions. How do I split them in multiple files? Furthermore, the application can not be installed in any way in my scenario; it must be possible to have an arbitrary number of versions concurrently running and it must work without superuser rights. Solutions I've come up...
How to modularize a Python application
0.039979
0
0
3,665
502,173
2009-02-02T04:21:00.000
1
0
1
0
visual-studio,ironpython,ironpython-studio
502,292
6
false
0
0
Right now, there is no extension to run IronPython v2.0 on Visual Studio.
1
12
0
I've tried using the IronPython integration extension provided by Microsoft. But it does not work with Visual Studio 2008. Is there a proper VS 2008 IDE extension for IronPython?
How to use IronPython with Visual Studio 2008
0.033321
0
0
11,619
505,230
2009-02-02T22:28:00.000
0
0
1
0
python,python-3.x,py2exe
35,556,519
5
false
0
0
If you have easy setup installed, type pip install py2exe in a shell to install.
1
31
0
I am looking for a Python3.0 version of "py2exe". I tried running 2to3 on the source for py2exe but the code remained broken. Any ideas?
Py2exe for Python 3.0
0
0
0
58,941
506,594
2009-02-03T10:12:00.000
1
0
0
0
python,twisted,activemq,stomp
511,246
3
false
0
0
Twisted Stomp adapter would be way too cool. Would you consider sharing it and keep us up to date with the development? Cheers
1
2
0
I checked out stomper and it didn't look complete. (I'm very new to Python) Is anybody out there using stomper in a production environment? If not, I guess I'll have to roll out my own Twisted Stomp adapter. Thanks in advance!
Is there a widely used STOMP adapter for Twisted?
0.066568
0
0
1,772
506,748
2009-02-03T11:21:00.000
7
0
1
0
python,algorithm,math,symbolic-math
506,828
7
false
0
0
Symbolic math is a fun project. Whether or not anyone uses it doesn't appear to matter in your question, so dive in. I've written two of these over the years. The coolest was one for SQL where clauses -- it did some trivial symbolic manipulations on the SQL to fold in some additional AND conditions. Not a complete "...
2
21
0
I am extreamly interested in math and programming and planning to start symbolic math project from scratch. Is this good project idea? Where to start? How should one approach this project? Any good resources? Thanks in advance.
Symbolic Mathematics Python?
1
0
0
7,818
506,748
2009-02-03T11:21:00.000
10
0
1
0
python,algorithm,math,symbolic-math
506,838
7
false
0
0
1.Is this good project idea? Yes; I would expect it to provide an endless source of interesting work which will, quite quickly, test and extend your programming powers. 2.Where to start? I second the other suggestions that you should look at existing work. SAGE is very impressive and if you had asked for my advice I w...
2
21
0
I am extreamly interested in math and programming and planning to start symbolic math project from scratch. Is this good project idea? Where to start? How should one approach this project? Any good resources? Thanks in advance.
Symbolic Mathematics Python?
1
0
0
7,818
507,376
2009-02-03T14:54:00.000
-1
1
0
0
python,email,smtp,postfix-mta,mailing
507,398
2
true
0
0
Procmail is the solution for mail filtering. You can call python scripts from your .procmailrc if you need more scripting.
1
0
0
I am using postfix in my production server which will receive all the emails related to mydomain.com In this context, I want to forward only emails related to few users to different email addresses. By which I mean, lets say I am a super user(superuser@mydomain.com). I want to forward all my emails(all mails with to:su...
How do I read/retrieve emails received by local postfix, through python
1.2
0
0
2,899
508,277
2009-02-03T18:18:00.000
1
0
1
0
python,dependencies
508,975
4
false
0
0
I don't know what is the best dependency analysis tool. You could look into modulefinder – it's a module in the standard library that determines the set of modules imported by a script. Of course, with python you have problems of conditional imports, and even potentially scripts calling __import__ directly, so it may ...
1
31
0
Dependency analysis programs help us organize code by controlling the dependencies between modules in our code. When one module is a circular dependency of another module, it is a clue to find a way to turn that into a unidirectional dependency or merge two modules into one module. What is the best dependency analysis ...
Is there a good dependency analysis tool for Python?
0.049958
0
0
18,686
509,742
2009-02-04T01:24:00.000
14
0
1
1
python,scripting,directory
23,595,382
4
false
0
0
os.chdir(os.path.dirname(os.path.abspath(__file__))) should do it. os.chdir(os.path.dirname(__file__)) would not work if the script is run from the directory in which it is present.
2
15
0
How do i change directory to the directory with my python script in? So far I figured out I should use os.chdir and sys.argv[0]. I'm sure there is a better way then to write my own function to parse argv[0].
Change directory to the directory of a Python script
1
0
0
17,931
509,742
2009-02-04T01:24:00.000
7
0
1
1
python,scripting,directory
509,987
4
false
0
0
Sometimes __file__ is not defined, in this case you can try sys.path[0]
2
15
0
How do i change directory to the directory with my python script in? So far I figured out I should use os.chdir and sys.argv[0]. I'm sure there is a better way then to write my own function to parse argv[0].
Change directory to the directory of a Python script
1
0
0
17,931
511,412
2009-02-04T13:42:00.000
5
1
0
0
python,ruby,setuptools,newgem
511,871
2
true
0
1
One way to solve it is to create three different projects: The library itself, independent on python & ruby Python bindings Ruby bindings That's probably the cleanest solution, albeit it requires a bit more work when doing releases, but it has the advantage that you can release a new version of the Ruby bindings with...
1
8
0
I have a C extension module for Python and I want to make it available to Rubyists. The source has a number of C modules, with only one being Python-dependent. The rest depend only on each other and the standard library. I can build it with python setup.py build in the usual way. I've been experimenting with adding Rub...
Combined Python & Ruby extension module
1.2
0
0
734
512,173
2009-02-04T16:41:00.000
0
0
1
0
python,operating-system,filesystems,copy
512,232
4
false
0
0
Why not implement it on your own using os.walk?
1
33
0
I'm trying to copy a directory and all its contents to a path that already exists. The problem is, between the os module and the shutil module, there doesn't seem to be a way to do this. the shutil.copytree() function expects that the destination path not exist beforehand. The exact result I'm looking for is to copy ...
How to copy a directory and its contents to an existing location using Python?
0
0
0
29,399
513,173
2009-02-04T20:34:00.000
0
1
0
0
php,python,version-control,web-applications
513,899
8
false
1
0
Why dont you want a client..? A simple client that you can run on your production machine which then syncs to your repository running on another server somewhere. SVN is available over HTTP so writing a client that is able to sync your code is really easy in python or php.
6
2
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not re...
pure web based versioning system
0
0
0
1,960
513,173
2009-02-04T20:34:00.000
1
1
0
0
php,python,version-control,web-applications
513,366
8
false
1
0
I think it's actually a pretty good idea, but don't believe such a versioning system exists (yet) so hopefully you'll go ahead and make one. I don't think adapting an existing solution is going to be easy, but it's probably worth looking into because if you use an existing solution you'll have all the client support do...
6
2
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not re...
pure web based versioning system
0.024995
0
0
1,960
513,173
2009-02-04T20:34:00.000
7
1
0
0
php,python,version-control,web-applications
513,231
8
false
1
0
Get a better hosting service. Seriously. Even if you found something that worked in PHP/Ruby/Perl/Whatever, it would still be a sub-par solution. It most likely wouldn't integrate with any IDE you have, and wouldn't have a good tool set available for working with it. It would be really clunky to do correctly. The o...
6
2
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not re...
pure web based versioning system
1
0
0
1,960
513,173
2009-02-04T20:34:00.000
0
1
0
0
php,python,version-control,web-applications
513,253
8
false
1
0
you could try the reverse way use e.g. a free online svn/git Service to version control the sources on your dev machine use usual ways to update the "production" machine aka site, like FTP
6
2
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not re...
pure web based versioning system
0
0
0
1,960
513,173
2009-02-04T20:34:00.000
1
1
0
0
php,python,version-control,web-applications
515,956
8
false
1
0
Use Bazaar: Lightweight. No dedicated server with Bazaar installed is needed, just FTP access to a web server. A smart server is available for those requiring additional performance or security but it is not required in many cases - Bazaar 1.x over plain http performs well.
6
2
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not re...
pure web based versioning system
0.024995
0
0
1,960
513,173
2009-02-04T20:34:00.000
2
1
0
0
php,python,version-control,web-applications
513,322
8
false
1
0
Don't host your repository on your web server. Deploy from your server to the ftp/sftp - whatever.
6
2
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not re...
pure web based versioning system
0.049958
0
0
1,960
513,806
2009-02-04T23:06:00.000
0
0
1
0
python,gdata-api
513,838
2
false
0
0
If we assume that you want clients to use their own keys I'd recommend putting them in a configuration file which defaults to an (invalid) sentinel value. If on the other hand you want the script to use your key the best you can do is obfuscate it. After all, if your program can read it then an attacker (with a debugge...
1
3
0
I've written several scripts that make use of the gdata API, and they all (obviously) have my API key and client ID in plain-text. How am I supposed to distribute these?
How to distribute script using gdata-python-client?
0
0
1
306
514,029
2009-02-05T00:37:00.000
0
0
1
0
python,string
2,739,117
9
false
0
0
I'm new to python and this is an old question, but maybe this? str.split('[')[1].strip(']')
1
2
0
So from this string: "name[id]" I need this: "id" I used str.split ('[]'), but it didn't work. Does it only take a single delimiter?
How to split a string by using [] in Python
0
0
0
14,012
514,617
2009-02-05T04:51:00.000
1
0
0
0
python,mysql,random,web.py
514,643
2
false
0
0
I agree with your intuition that using a stored procedure is the right way to go, but then, I almost always try to implement database stuff in the database. In your proc, I would introduce some kind of logic like say, there's only a 30% chance that returning the result will actually increment the counter. Just to incre...
1
4
0
I have a small project I am doing in Python using web.py. It's a name generator, using 4 "parts" of a name (firstname, middlename, anothername, surname). Each part of the name is a collection of entites in a MySQL databse (name_part (id, part, type_id), and name_part_type (id, description)). Basic stuff, I guess. My ge...
Random name generator strategy - help me improve it
0.099668
1
0
1,758
516,798
2009-02-05T16:57:00.000
2
1
1
0
java,python,sql,directory
518,493
2
false
1
0
I think the best thing to do would be to ensure that your various modules don't depend upon being in the same directory (i.e. separate by component). A lot of people seem to be deathly afraid of this idea, but a good set of build scripts should be able to automate away any pain. The end goal would be to make it easy t...
1
5
0
We are running a large project with several different languages: Java, Python, PHP, SQL and Perl. Until now people have been working in their own private repositories, but now we want to merge the entire project in a single repository. The question now is: how should the directory structure look? Should we have separa...
Mixed language source directory layout
0.197375
0
0
1,166
516,946
2009-02-05T17:32:00.000
0
0
1
0
python,windows,excel,com
516,983
3
false
0
0
If you application uses a single excel file which contains macros which you call, I fear the answer is probably no since aside from COM Excel does not allow the same file to be opened with the same name (even if in different directories). You may be able to get around this by dynamically copying the file to another na...
1
6
0
I've got a legacy application which is implemented in a number of Excel workbooks. It's not something that I have the authority to re-implement, however another application that I do maintain does need to be able to call functions in the Excel workbook. It's been given a python interface using the Win32Com library. Ot...
Control 2 separate Excel instances by COM independently... can it be done?
0
1
0
4,391
517,237
2009-02-05T18:29:00.000
2
0
1
0
python,web-services,api,rest
518,161
5
false
0
0
My favorite combination is httplib2 (or pycurl for performance) and simplejson. As REST is more "a way of design" then a real "protocol" there is not really a reusable thing (that I know of). On Ruby you have something like ActiveResource. And to be honest, even that would just expose some tables as a webservice, where...
2
21
0
I'd like to write a python library to wrap a REST-style API offered by a particular Web service. Does anyone know of any good learning resources for such work, preferably aimed at intermediate Python programmers? I'd like a good article on the subject, but I'd settle for nice, clear code examples. CLARIFICATION: What I...
HOWTO: Write Python API wrapper?
0.07983
0
1
15,114
517,237
2009-02-05T18:29:00.000
0
0
1
0
python,web-services,api,rest
981,474
5
false
0
0
You should take a look at PyFacebook. This is a python wrapper for the Facebook API, and it's one of the most nicely done API's I have ever used.
2
21
0
I'd like to write a python library to wrap a REST-style API offered by a particular Web service. Does anyone know of any good learning resources for such work, preferably aimed at intermediate Python programmers? I'd like a good article on the subject, but I'd settle for nice, clear code examples. CLARIFICATION: What I...
HOWTO: Write Python API wrapper?
0
0
1
15,114
517,970
2009-02-05T21:19:00.000
25
0
1
1
python,windows,console
32,280,047
30
false
0
0
Quickest and easiest way without a doubt is Ctrl+L. This is the same for OS X on the terminal.
7
437
0
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several...
How to clear the interpreter console?
1
0
0
824,944
517,970
2009-02-05T21:19:00.000
2
0
1
1
python,windows,console
23,730,811
30
false
0
0
just use this.. print '\n'*1000
7
437
0
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several...
How to clear the interpreter console?
0.013333
0
0
824,944
517,970
2009-02-05T21:19:00.000
4
0
1
1
python,windows,console
518,401
30
false
0
0
Use idle. It has many handy features. Ctrl+F6, for example, resets the console. Closing and opening the console are good ways to clear it.
7
437
0
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several...
How to clear the interpreter console?
0.02666
0
0
824,944
517,970
2009-02-05T21:19:00.000
1
0
1
1
python,windows,console
17,536,224
30
false
0
0
OK, so this is a much less technical answer, but I'm using the Python plugin for Notepad++ and it turns out you can just clear the console manually by right-clicking on it and clicking "clear". Hope this helps someone out there!
7
437
0
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several...
How to clear the interpreter console?
0.006667
0
0
824,944
517,970
2009-02-05T21:19:00.000
2
0
1
1
python,windows,console
31,640,548
30
false
0
0
If it is on mac, then a simple cmd + k should do the trick.
7
437
0
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several...
How to clear the interpreter console?
0.013333
0
0
824,944