Title stringlengths 11 150 | A_Id int64 518 72.5M | Users Score int64 -42 283 | Q_Score int64 0 1.39k | ViewCount int64 17 1.71M | Database and SQL int64 0 1 | Tags stringlengths 6 105 | Answer stringlengths 14 4.78k | GUI and Desktop Applications int64 0 1 | System Administration and DevOps int64 0 1 | Networking and APIs int64 0 1 | Other int64 0 1 | CreationDate stringlengths 23 23 | AnswerCount int64 1 55 | Score float64 -1 1.2 | is_accepted bool 2
classes | Q_Id int64 469 42.4M | Python Basics and Environment int64 0 1 | Data Science and Machine Learning int64 0 1 | Web Development int64 1 1 | Available Count int64 1 15 | Question stringlengths 17 21k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Django apps equivalent to Drupal's CCK and Views modules? | 3,238,877 | 4 | 5 | 1,026 | 0 | python,django,drupal,drupal-views,django-apps | Django is a framework, this had been said, but if you look for functionality close to CCK, PINAX makes for python/Django, the equivalent of modules in Drupal, sort of ready to go modules, login/pass check, listing, input output, or CRUDs ect. But in no ways radio buttons and check boxes action programming. You will hav... | 0 | 0 | 0 | 0 | 2010-07-05T07:31:00.000 | 4 | 0.197375 | false | 3,177,772 | 0 | 0 | 1 | 3 | Are there any Django apps equivalent to Drupal's Views and CCK modules?
I find Django much more flexible and logically organized than Drupal. But I think Drupal's Views and CCK modules are killer apps. They let the webmaster very rapidly to build new data models and queries through GUI without touching the code. These ... |
Django apps equivalent to Drupal's CCK and Views modules? | 26,184,850 | 1 | 5 | 1,026 | 0 | python,django,drupal,drupal-views,django-apps | The lack of flexibility that you refer to is the price you pay for CCK and Views. I've used both Drupal and Django to complete major projects. You can use Drupal as a framework too, so in my opinion the two are absolutely comparable.
Django has a way better database abstraction than Drupal, follows more modern programm... | 0 | 0 | 0 | 0 | 2010-07-05T07:31:00.000 | 4 | 0.049958 | false | 3,177,772 | 0 | 0 | 1 | 3 | Are there any Django apps equivalent to Drupal's Views and CCK modules?
I find Django much more flexible and logically organized than Drupal. But I think Drupal's Views and CCK modules are killer apps. They let the webmaster very rapidly to build new data models and queries through GUI without touching the code. These ... |
Django Python Delete Project App Library | 3,178,580 | 1 | 0 | 1,209 | 0 | python,django | If you want to delete some python library go to /site-packages or /dist-packages, find this module(single file) or package(directory) or egg file (look at the extension) and delete this.
If you want to delete an app and you have it inside your project, simply delete app directory, remove it from settings and remove all... | 0 | 0 | 0 | 0 | 2010-07-05T09:05:00.000 | 1 | 1.2 | true | 3,178,259 | 0 | 0 | 1 | 1 | If I want to delete a Django App or Project.
Is there a way to cleanly delete it?
Or a library in Python? How can I delete and re install libraries.
So I am SURE that nothing is left of that library. |
how to parse a string to spider from another script | 3,186,698 | 2 | 0 | 179 | 0 | python,windows,web-crawler,scrapy | You can override the start_requests() method in your spider to get the starting requests (which, by default, are generated using the urls in the start_urls attribute). | 0 | 0 | 1 | 0 | 2010-07-05T13:49:00.000 | 1 | 0.379949 | false | 3,179,979 | 0 | 0 | 1 | 1 | I am new to python and scrapy .
I am running the scrapy-ctl.py from another python script using
subprocess module.But I want to parse the 'start url' to the spider from
this script itself.Is it possible to parse start_urls(which are
determined in the script from which scrapy-ctl is run) to the spider?
I will be gr... |
Where do things go when I ‘print’ them from my Django app? | 3,223,385 | 0 | 11 | 22,170 | 0 | python,django | A warning: if you try to deploy code with print statements under WSGI, expect things to break. Use the logging module instead. | 0 | 0 | 0 | 0 | 2010-07-05T21:42:00.000 | 5 | 0 | false | 3,182,298 | 0 | 0 | 1 | 1 | I have a Django app on a Linux server. In one of the views, some form of print command is executed, and some string gets printed. How can I find out what the printed string was? Is there some log in which these things are kept? |
Where to store field data and how to provide access to it? | 3,183,465 | 1 | 1 | 91 | 0 | python,design-patterns | It really depends on how you interact with the structures in question. Do you manipulate Form and Field objects prior to assigning them values? Do you need to frequently iterate over all the given Fields? Do you need Form once it's been submitted? Etc.
I'd suggest writing some/all of the code that uses Form and figure ... | 0 | 0 | 0 | 0 | 2010-07-06T04:03:00.000 | 2 | 1.2 | true | 3,183,431 | 1 | 0 | 1 | 1 | Forms have Fields, Fields have a value. However, they only get a value after the form has been submitted.
How should I store this value? Should I give every field a value attribute, field.value,
leave it as None prior to posting, and fill it in afterwords?
Omit it completely, and dynamically add it?
Store it on t... |
Get the key of logged-in user with no DB access in Django on Google App Engine? | 3,192,350 | 1 | 1 | 64 | 0 | python,django,google-app-engine | You probably are still going to hit the DB once to get the session record, which is where the user_id field is stored. Then you may need to side-step the lazy evaluation done in the django.contrib.auth.middleware code. It's not difficult, but you need to read the code and find exactly the info you want and then get at ... | 0 | 1 | 0 | 0 | 2010-07-06T16:38:00.000 | 1 | 1.2 | true | 3,188,274 | 0 | 0 | 1 | 1 | I'm using Django on GAE. When I say user = request.user, I believe it hits the datastore to fetch the User entity.
I would like to just get the key for the currently logged in user, because that will allow me to get the user-related data I need from the memcache. |
Recommendation for python form validation library | 3,219,559 | 0 | 38 | 21,514 | 0 | python,validation,formencode,wtforms,toscawidgets | it depends on what underlying framework you use.
for django , built in form framework is best,
while kay uses extended version of zine's form system
and tipfy uses WTForms.
django's built in system is best so far .
what framework do you use under the hood ? | 0 | 0 | 0 | 0 | 2010-07-07T07:36:00.000 | 5 | 0 | false | 3,192,747 | 0 | 0 | 1 | 1 | I would like a form validation library that
1.separate html generation from form validation;
2.validation errors can be easily serialized, eg. dumped as a json object
What form validation library would you choose in a python web project? |
uwsgi + django via Nginx - uwsgi settings/spawn? | 28,769,075 | 0 | 6 | 3,116 | 0 | python,django,nginx,wsgi,uwsgi | I will go with supervisord for managing the starting, stoping process. | 0 | 1 | 0 | 0 | 2010-07-07T09:08:00.000 | 3 | 0 | false | 3,193,346 | 0 | 0 | 1 | 1 | I am leaning towards uwsgi+nginx for my Django app, can anyone share the best method for starting up my uwsgi processes? Does anyone have experience tuning uwsgi? |
Python framework for SOAP web services | 3,195,467 | 0 | 0 | 1,428 | 0 | python,soap | If library is not under active development, then there are two options: it was abandoned, it has no errors anymore.
Why are you looking something else? Did you test these two? | 0 | 0 | 1 | 0 | 2010-07-07T13:55:00.000 | 3 | 0 | false | 3,195,437 | 0 | 0 | 1 | 1 | I need an advice. What python framework I can use to develop a SOAP web service? I know about SOAPpy and ZSI but that libraries aren't under active development. Is there something better?
Thanks. |
Python or Java? Whats better for mobile development, and GUI applications | 3,198,745 | 2 | 0 | 5,062 | 0 | java,python,user-interface,mobile | Java is certainly available on more platforms. I would pick a target platform (or set of targets) and see what language(s) would require the least number of redundant implementations.
Also, when you get to a certain level of complexity, the language often doesn't factor into speed. For initial prototypes, sure some ... | 0 | 0 | 0 | 1 | 2010-07-07T20:45:00.000 | 3 | 1.2 | true | 3,198,646 | 0 | 0 | 1 | 2 | I know Python apps are faster to write, but it seems Java is the 800 lb gorilla for mobile and GUI development.
Are there any mobile platforms that run Python, or should I go the Java route? |
Python or Java? Whats better for mobile development, and GUI applications | 3,199,234 | 0 | 0 | 5,062 | 0 | java,python,user-interface,mobile | The first question is whether you really need to develop an app, which requires per-platform work, vs a webapp.
If you really need an app, then you might likely need a separate language for each platform! For Android you'd want to use Java, and for iPhone/iPad you'd want to use Objective-C. A good argument for really t... | 0 | 0 | 0 | 1 | 2010-07-07T20:45:00.000 | 3 | 0 | false | 3,198,646 | 0 | 0 | 1 | 2 | I know Python apps are faster to write, but it seems Java is the 800 lb gorilla for mobile and GUI development.
Are there any mobile platforms that run Python, or should I go the Java route? |
malformed start tag error - Python, BeautifulSoup, and Sipie - Ubuntu 10.04 | 3,198,945 | -2 | 9 | 7,977 | 0 | python,beautifulsoup | Look at column 3 of line 100 in the "data" that is mentioned in File "/usr/bin/Sipie/Sipie/Factory.py", line 298 | 0 | 1 | 0 | 0 | 2010-07-07T21:13:00.000 | 5 | -0.07983 | false | 3,198,874 | 0 | 0 | 1 | 1 | I just installed python, mplayer, beautifulsoup and sipie to run Sirius on my Ubuntu 10.04 machine. I followed some docs that seem straightforward, but am encountering some issues. I'm not that familiar with Python, so this may be out of my league.
I was able to get everything installed, but then running sipie gives ... |
pydev and twisted framework | 3,199,728 | 12 | 5 | 1,684 | 0 | python,eclipse,twisted,pydev | go to preferences->Pydev->Interpreter - Python and hit the apply button. That will rescan your modules directory and add any missing modules.
That should fix any normal import errors. Some modules do some runtime magic that PyDev cant follow. | 0 | 1 | 0 | 0 | 2010-07-07T23:40:00.000 | 1 | 1.2 | true | 3,199,702 | 0 | 0 | 1 | 1 | It seems like my Eclipse PyDev does not recognize that Twisted is installed on my system. I can't make auto suggest working. Does anyone know how to solve it? |
Threaded SOAP requests in Python (Django) application? | 3,200,013 | 1 | 1 | 619 | 0 | python,django,soap,multithreading,asynchronous | That sounds great! You almost always want to do long running stuff in a background thread, and many soap requests spend a lot of time waiting on network IO...
The only question is how do you get the data back to the user. Is this a GUI app, or a web app, or what? | 0 | 0 | 0 | 0 | 2010-07-08T00:59:00.000 | 2 | 1.2 | true | 3,200,004 | 0 | 0 | 1 | 2 | I'm working with an application that needs to be make some time consuming SOAP requests (using suds, as it were). There are several instances where a user will change the state of an object and in doing so trigger one or more SOAP requests that fetch some data. This could be done in the background, and right now the u... |
Threaded SOAP requests in Python (Django) application? | 3,200,022 | 0 | 1 | 619 | 0 | python,django,soap,multithreading,asynchronous | I use the producer consumer model with a RPCXML server for just this sort of thing. I start a pool of 3 threads, when someone requests something done (add file, etc) I add the work to the queue and return a key. an ajax request can check on the status of the key to set a progress bar, etc. | 0 | 0 | 0 | 0 | 2010-07-08T00:59:00.000 | 2 | 0 | false | 3,200,004 | 0 | 0 | 1 | 2 | I'm working with an application that needs to be make some time consuming SOAP requests (using suds, as it were). There are several instances where a user will change the state of an object and in doing so trigger one or more SOAP requests that fetch some data. This could be done in the background, and right now the u... |
HTTP based authentication/encryption protocol in a custom system | 3,205,573 | 1 | 1 | 1,123 | 0 | python,security,authentication,encryption,cryptography | I don't think RegistrationKey adds any real security.
It needs more nonces (against replay attacks).
It needs more padding (or else the messages are small and thus easy to decrypt).
An algorithm can be proven to be secure, you may want to do this.
Most flaws in crypto are in the implementation, not in the algorithm (ti... | 0 | 0 | 0 | 0 | 2010-07-08T15:38:00.000 | 3 | 0.066568 | false | 3,205,349 | 0 | 0 | 1 | 1 | We have a custom built program that needs authenticated/encrypted communication between a client and a server[both in Python].
We are doing an overhaul from custom written Diffie-Hellman+AES to RSA+AES in a non-orthodox way. So I would be very interested in comments about my idea.
Prequisites: Klient has a 128bit Regis... |
Reference ID in GAE | 3,207,714 | 3 | 2 | 105 | 0 | python,google-app-engine,google-cloud-datastore | I can reference it through record.key().id(). I just found this RIGHT AFTER I posted this question (as luck would have it). Sorry for wasting anybody's time. | 0 | 1 | 0 | 0 | 2010-07-08T20:24:00.000 | 2 | 1.2 | true | 3,207,671 | 0 | 0 | 1 | 2 | I have a feeling the answer is simple and documented, but I'm absolutely missing it:
Is there a way, using Python and webapp through Google App Engine, to pass the id field of a record to the template? I'm fairly new to the app engine, and yes, I have searched all around the Google Documentation to find this. |
Reference ID in GAE | 3,209,539 | 1 | 2 | 105 | 0 | python,google-app-engine,google-cloud-datastore | Assuming you're using the built-in Django 0.96 templates, you can access the ID (assuming the entity has one; it might have a key name instead if you saved it with one) with {{entity.key.id}}. | 0 | 1 | 0 | 0 | 2010-07-08T20:24:00.000 | 2 | 0.099668 | false | 3,207,671 | 0 | 0 | 1 | 2 | I have a feeling the answer is simple and documented, but I'm absolutely missing it:
Is there a way, using Python and webapp through Google App Engine, to pass the id field of a record to the template? I'm fairly new to the app engine, and yes, I have searched all around the Google Documentation to find this. |
Google application engine Datastore - any alternatives to aggregate functions and group by? | 3,211,471 | 1 | 0 | 322 | 1 | python,google-app-engine | The best way is to populate the summaries (aggregates) at the time of write. This way your reads will be faster, since they just read - at the cost of writes which will have to update the summaries if its likely to be effected by the write.
Hopefully you will be reading more often than writing/updating summaries. | 0 | 1 | 0 | 0 | 2010-07-09T07:21:00.000 | 1 | 1.2 | true | 3,210,577 | 0 | 0 | 1 | 1 | As is mentioned in the doc for google app engine, it does not support group by and other aggregation functions. Is there any alternatives to implement the same functionality?
I am working on a project where I need it on urgent basis, being a large database its not efficient to iterate the result set and then perform th... |
Many-to-many relationships in Google AppEngine - efficient? | 3,213,988 | 0 | 1 | 280 | 1 | python,google-app-engine,performance,many-to-many | I don't think there's a hard and fast answer to questions like this. "Is this optimization worth it" always depends on many variables such as, is the lack of optimization actually a problem to start with? How much of a problem is it? What's the cost in terms of extra time and effort and risk of bugs of a more complex o... | 0 | 1 | 0 | 0 | 2010-07-09T08:21:00.000 | 1 | 1.2 | true | 3,210,994 | 0 | 0 | 1 | 1 | I'm using Google Appengine to store a list of favorites, linking a Facebook UserID to one or more IDs from Bing. I need function calls returning the number of users who have favorited an item, and the number of times an item has been favorited (and by whom).
My question is, should I resolve this relationship into two t... |
How should I share and store data in a small multithreaded python application? | 3,211,387 | 0 | 1 | 178 | 0 | python,multithreading,concurrency,datastore | What you're seeking isn't too Python specific, because AFAIU you want to communicate between two different processes, which are only incidentally written in Python. If this indeed is your problem, you should look for a general solution, not a Python-specific one.
I think that a simple No-SQL key-value datastore such as... | 0 | 1 | 0 | 0 | 2010-07-09T09:27:00.000 | 1 | 1.2 | true | 3,211,379 | 1 | 0 | 1 | 1 | I'm writing a small multithreaded client-side python application that contains a small webserver (only serves page to the localhost) and a daemon. The webserver loads and puts data into a persistent "datastore", and the daemon processes this data, modifies it and adds some more. It should also takes care of the synchro... |
RestrictedPython on Google AppEngine (GAE) | 5,072,453 | 1 | 2 | 336 | 0 | python,google-app-engine | Note that even if you could get access to the ast modules on GAE, RestrictedPython might still not be the right solution for your use-case. It's only aimed at securing input from less trusted users, where you don't trust their ability to code. You still need to trust and know them.
There's various ways in which a malic... | 0 | 1 | 0 | 0 | 2010-07-09T10:25:00.000 | 1 | 0.197375 | false | 3,211,723 | 0 | 0 | 1 | 1 | I'm looking for a way to execute user submitted python code in GAE in a secure fashion (much stricter then the GAE sandbox).
RestrictedPython would certainly fit the shoe, being used in Zope for the exakt same purpose.
But RestrictedPython relies on modifying the AST (abstract syntax tree) which means loading modules f... |
Django: ImportError: No module named ?z? | 3,213,320 | 1 | 0 | 1,341 | 0 | python,django,importerror,uwsgi | Seems like you have missed a comma in the settings.INSTALLED_APPS, after the app name. Go, check! | 0 | 0 | 0 | 0 | 2010-07-09T12:08:00.000 | 1 | 0.197375 | false | 3,212,396 | 0 | 0 | 1 | 1 | Hi I am trying to deploy a django app with uwsgi. I keep getting Import Errors that look like this:
ImportError: No module named ?z?
-or-
ImportError: No module named ?j?
-or-
ImportError: No module named `?6
So basically the output of the module seems like gibberish and I am unable to figure out the problem. Does anyb... |
Interact with Flash using Python Mechanize | 3,849,851 | 0 | 2 | 1,702 | 0 | python,flash,forms,mechanize,code-injection | Nice question but seems unfortunately mechanize can't be used for flash objects | 0 | 0 | 0 | 1 | 2010-07-09T17:26:00.000 | 2 | 0 | false | 3,215,062 | 0 | 0 | 1 | 1 | I am trying to create an automated program in Python that deals with Flash. Right now I am using Python Mechanize, which is great for filling forms, but when it comes to flash I don't know what to do. Does anyone know how I can interact with flash forms (set and get variables, click buttons, etc.) via Python mechanize ... |
Using other languages with ruby | 3,218,192 | 2 | 2 | 1,299 | 0 | python,ruby-on-rails,ruby | Depending on your exact needs, you can either call out to an external process (using popen, system, etc) or you can setup another mini-web-server or something along those lines and have the rails server communicate with it over HTTP with a REST-style API (or whatever best suits your needs).
In your example, you have a ... | 0 | 0 | 0 | 0 | 2010-07-09T18:21:00.000 | 4 | 0.099668 | false | 3,215,455 | 0 | 0 | 1 | 3 | Is it possible to use multiple languages along side with ruby. For example, I have my application code in Ruby on Rails. I would like to calculate the recommendations and I would like to use python for that. So essentially, python code would get the data and calculate all the stuff and probably get the data from DB, ca... |
Using other languages with ruby | 3,218,487 | 0 | 2 | 1,299 | 0 | python,ruby-on-rails,ruby | An easy, quick 'n' dirty solution in case you have python scripts and you want to execute them from inside rails, is this:
%x[shell commands or python path/of/pythonscript.py #{ruby variables to pass on the script}]
or
``shell commands or python path/of/pythonscript.py #{ruby variables to pass on the script}\ (with ` s... | 0 | 0 | 0 | 0 | 2010-07-09T18:21:00.000 | 4 | 0 | false | 3,215,455 | 0 | 0 | 1 | 3 | Is it possible to use multiple languages along side with ruby. For example, I have my application code in Ruby on Rails. I would like to calculate the recommendations and I would like to use python for that. So essentially, python code would get the data and calculate all the stuff and probably get the data from DB, ca... |
Using other languages with ruby | 3,215,496 | 4 | 2 | 1,299 | 0 | python,ruby-on-rails,ruby | If you are offloading work to an exterior process, you may want to make this a webservice (ajax, perhaps) of some sort so that you have some sort of consistent interface.
Otherwise, you could always execute the python script in a subshell through ruby, using stdin/stdout/argv, but this can get ugly quick. | 0 | 0 | 0 | 0 | 2010-07-09T18:21:00.000 | 4 | 0.197375 | false | 3,215,455 | 0 | 0 | 1 | 3 | Is it possible to use multiple languages along side with ruby. For example, I have my application code in Ruby on Rails. I would like to calculate the recommendations and I would like to use python for that. So essentially, python code would get the data and calculate all the stuff and probably get the data from DB, ca... |
How do I install an old version of Django on virtualenv? | 66,091,958 | 2 | 96 | 80,239 | 0 | python,django,setuptools,virtualenv | pip install "django>=2.2,<3"
To install djnago 2.2 | 0 | 0 | 0 | 0 | 2010-07-10T17:55:00.000 | 5 | 0.07983 | false | 3,220,280 | 1 | 0 | 1 | 1 | I want to install some specific version of a package (in this case Django) inside the virtual environment. I can't figure it out.
I'm on Windows XP, and I created the virtual environment successfully, and I'm able to run it, but how am I supposed to install the Django version I want into it? I mean, I know to use the n... |
General guidelines for developing a web application | 3,222,720 | 3 | 3 | 404 | 0 | python,database,dom | Is there anything missing to my general approach for developing a web app? (Server-side scripting interacts with database to produce dynamic HTML which is then manipulated client-side via. the DOM/client-side scripting).
No - that's the usual setup. Actually, client-side scripting is quite often missing, and web-page... | 0 | 0 | 0 | 0 | 2010-07-11T10:15:00.000 | 3 | 1.2 | true | 3,222,654 | 0 | 0 | 1 | 2 | As a programmer used to developing native applications, I'm expanding my horizons and developing my first web app. I'm intermediate to expert with Linux and C, intermediate with Python and HTML and beginner to intermediate with MySQL and Java.
I'm developing a web app that is more or less a resource allocator for a fri... |
General guidelines for developing a web application | 3,222,758 | 1 | 3 | 404 | 0 | python,database,dom | I'd like to suggest ditching PHP as soon as possible. Searching 'php wtf' here should be illuminating. While it is possible to write secure, safe, reliable applications in PHP, I think it is despite the best efforts of the PHP team to make The Most Exciting And Surprisin Language EVAR. With lots of funny side-effects. ... | 0 | 0 | 0 | 0 | 2010-07-11T10:15:00.000 | 3 | 0.066568 | false | 3,222,654 | 0 | 0 | 1 | 2 | As a programmer used to developing native applications, I'm expanding my horizons and developing my first web app. I'm intermediate to expert with Linux and C, intermediate with Python and HTML and beginner to intermediate with MySQL and Java.
I'm developing a web app that is more or less a resource allocator for a fri... |
Which web technology to learn for an experienced C++ developer? | 3,223,599 | 0 | 5 | 1,073 | 0 | php,python,jsp | I expect this question to be closed as being subjective. But, I'll put in my 2 cents.
JSP would likely dovetail well with J2EE. (I've heard that it can be a bit rigid, but I have no experience to provide any insight on the matter.)
PHP is a good candidate, because it's popular. You can find a lot of info on the web.... | 0 | 0 | 0 | 1 | 2010-07-11T15:28:00.000 | 7 | 0 | false | 3,223,557 | 0 | 0 | 1 | 6 | Friends,
I've got some exp in c++ and now kind of starting my way to J2EE (to survive:))). Meanwhile, I've got a plan to venture in to a web portal my own. But with very little experience in web technology, I'd need to start from scratch. I'm little confused on which way to go and I'm here.
PHP, Python or JSP, consid... |
Which web technology to learn for an experienced C++ developer? | 3,225,166 | 1 | 5 | 1,073 | 0 | php,python,jsp | Hit's per day isn't a really useful metric for estimating performance. You really need to be concerned with the peak load and the acceptable response time.
80-100k hits per day is an average of about 1 hit per second. The hits are not going to be evenly spread out, so for normal traffic you might expect a peak load of ... | 0 | 0 | 0 | 1 | 2010-07-11T15:28:00.000 | 7 | 0.028564 | false | 3,223,557 | 0 | 0 | 1 | 6 | Friends,
I've got some exp in c++ and now kind of starting my way to J2EE (to survive:))). Meanwhile, I've got a plan to venture in to a web portal my own. But with very little experience in web technology, I'd need to start from scratch. I'm little confused on which way to go and I'm here.
PHP, Python or JSP, consid... |
Which web technology to learn for an experienced C++ developer? | 3,223,588 | 1 | 5 | 1,073 | 0 | php,python,jsp | Considering you're used to c++, should look at aspx and c# - probably closer to your current experience.
That said, PHP is a doddle, so it shouldn't present any challenges. Bear in mind that if you want to get the most from the language, you absolutely have to learn a little bit about configuring apache, and frameworks... | 0 | 0 | 0 | 1 | 2010-07-11T15:28:00.000 | 7 | 0.028564 | false | 3,223,557 | 0 | 0 | 1 | 6 | Friends,
I've got some exp in c++ and now kind of starting my way to J2EE (to survive:))). Meanwhile, I've got a plan to venture in to a web portal my own. But with very little experience in web technology, I'd need to start from scratch. I'm little confused on which way to go and I'm here.
PHP, Python or JSP, consid... |
Which web technology to learn for an experienced C++ developer? | 3,223,581 | 13 | 5 | 1,073 | 0 | php,python,jsp | Before learning either of these, spend some real time and learn HTML and CSS in depth. Also learn Javascript and JQuery (or your favorite client side library). The O'Reilly books on the topic are pretty much all good IMO.
I say that because I think that you'll find that for most modern web sites, a lot of richness is... | 0 | 0 | 0 | 1 | 2010-07-11T15:28:00.000 | 7 | 1.2 | true | 3,223,557 | 0 | 0 | 1 | 6 | Friends,
I've got some exp in c++ and now kind of starting my way to J2EE (to survive:))). Meanwhile, I've got a plan to venture in to a web portal my own. But with very little experience in web technology, I'd need to start from scratch. I'm little confused on which way to go and I'm here.
PHP, Python or JSP, consid... |
Which web technology to learn for an experienced C++ developer? | 3,223,646 | 0 | 5 | 1,073 | 0 | php,python,jsp | There are many options.
Since you already know (and is learning about) Java, one option is to use GWT for both server and client. This can help you in that you do not need to learn another language (JS/HTML/Python/PHP etc). If your portal is going to be big, using Java can help you organise the application better - us... | 0 | 0 | 0 | 1 | 2010-07-11T15:28:00.000 | 7 | 0 | false | 3,223,557 | 0 | 0 | 1 | 6 | Friends,
I've got some exp in c++ and now kind of starting my way to J2EE (to survive:))). Meanwhile, I've got a plan to venture in to a web portal my own. But with very little experience in web technology, I'd need to start from scratch. I'm little confused on which way to go and I'm here.
PHP, Python or JSP, consid... |
Which web technology to learn for an experienced C++ developer? | 3,224,044 | 0 | 5 | 1,073 | 0 | php,python,jsp | It really isn't that similar to C++, but I would recommend PHP. You really can't expect a server-side scripting language to be similar to a compiled language like C++. Personally, I find PHP to be an ugly, messy looking language, but once you get into it, it's very rewarding. Other languages have too many drawbacks. AS... | 0 | 0 | 0 | 1 | 2010-07-11T15:28:00.000 | 7 | 0 | false | 3,223,557 | 0 | 0 | 1 | 6 | Friends,
I've got some exp in c++ and now kind of starting my way to J2EE (to survive:))). Meanwhile, I've got a plan to venture in to a web portal my own. But with very little experience in web technology, I'd need to start from scratch. I'm little confused on which way to go and I'm here.
PHP, Python or JSP, consid... |
GAE: Best way to determine how many of a Kind is stored? | 3,225,411 | 1 | 5 | 121 | 0 | python,google-app-engine | Keep a counter object for your application stored in the database, and update it whenever you create and delete objects. | 0 | 0 | 0 | 0 | 2010-07-12T01:45:00.000 | 4 | 0.049958 | false | 3,225,397 | 0 | 0 | 1 | 2 | What is the best way to determine how many models of a certain kind are in my app's datastore? The documentation says that MyKind.all().count() is only marginally better than retrieving all of the data, and has a limit of 1000. This is not helpful, because I am expecting to have 6000+ instances of MyKind stored.
Is the... |
GAE: Best way to determine how many of a Kind is stored? | 3,225,480 | 3 | 5 | 121 | 0 | python,google-app-engine | If you do keys-only it should be pretty fast, since this only has to read the index and doesn't actually fetch any entities. Use a cursor and loop until count() returns less than 1000. | 0 | 0 | 0 | 0 | 2010-07-12T01:45:00.000 | 4 | 0.148885 | false | 3,225,397 | 0 | 0 | 1 | 2 | What is the best way to determine how many models of a certain kind are in my app's datastore? The documentation says that MyKind.all().count() is only marginally better than retrieving all of the data, and has a limit of 1000. This is not helpful, because I am expecting to have 6000+ instances of MyKind stored.
Is the... |
Should I place custom registration code in Views, Models or Managers? | 3,229,364 | 0 | 0 | 152 | 0 | python,django,django-authentication,django-contrib | My recommendation is to not re-solve a problem that django-registration solves quite nicely. It has a pluggable backend system that lets you customize it as much or as little as needed. | 0 | 0 | 0 | 0 | 2010-07-12T07:22:00.000 | 2 | 0 | false | 3,226,529 | 0 | 0 | 1 | 1 | I'm rolling my own custom registration module in Django based on django.contrib.auth. My registration module will have some extra functionality and help me reduce my dependency on other django modules that I'm currently using like django-registration and django-emailchange. I've run into a what-the-best-way-to-do-it pr... |
Django CMS logo change | 57,008,799 | 0 | 4 | 3,098 | 0 | python,django,django-cms | It's located inside the djangocms_admin_style module, the path is djangocms_admin_style/static/djanogcms_admin_style/img/django-cms-logo.png. It's better to clone it, customize it and then simply add it to your project under the
INSTALLED_APPS=[]. | 0 | 0 | 0 | 0 | 2010-07-12T11:48:00.000 | 4 | 0 | false | 3,228,212 | 0 | 0 | 1 | 3 | Is there a way to change the Django CMS logo, for my own company logo? |
Django CMS logo change | 3,230,427 | 2 | 4 | 3,098 | 0 | python,django,django-cms | Replace /media/cms/images/cms_toolbar.png
Or edit the #cms_toolbar definition in the media/cms/css/toolbar.css stylesheet. | 0 | 0 | 0 | 0 | 2010-07-12T11:48:00.000 | 4 | 1.2 | true | 3,228,212 | 0 | 0 | 1 | 3 | Is there a way to change the Django CMS logo, for my own company logo? |
Django CMS logo change | 3,228,229 | 1 | 4 | 3,098 | 0 | python,django,django-cms | Which logo do you mean?
I think logo is just an image inside the template, right?
Check out the template in cms/templates/cms/new.html | 0 | 0 | 0 | 0 | 2010-07-12T11:48:00.000 | 4 | 0.049958 | false | 3,228,212 | 0 | 0 | 1 | 3 | Is there a way to change the Django CMS logo, for my own company logo? |
App Engine Unique Non Numeric Code | 3,232,948 | 2 | 2 | 215 | 0 | python,google-app-engine | This would be difficult to use as-is on app engine because many copies of your application could be running at once. Each copy would need access to the "last identifier" and be able to update it atomically. This would likely require too much overhead, unless you only need to generate new IDs in this fashion rather in... | 0 | 1 | 0 | 0 | 2010-07-12T22:38:00.000 | 2 | 0.197375 | false | 3,232,833 | 0 | 0 | 1 | 1 | Using an alphabet like "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ" I'd like to generate 2 to 4 letter codes to identify unique datastore entries. I have a python function capable of doing this when passed an list indicating the letter positions of the last code [7,17,11] -> "7GA". the next code can be made by incrementing t... |
Guide to install xampp with zope-plone on the same linux machine? | 3,247,954 | 0 | 0 | 486 | 1 | python,apache,xampp,plone,zope | sorry for wrong site but I just figured out that it was not a problem at all. I installed XAMPP (a snap) and downloaded and ran the plone install script. Both sites XAMPP on port 80 and zope/plone on 8080 are working without problems. Just to let everyone know. I don't know why I got nervous about this :) | 0 | 0 | 0 | 0 | 2010-07-13T00:09:00.000 | 2 | 1.2 | true | 3,233,246 | 0 | 0 | 1 | 1 | Is there a good step by step online guide to install xampp (apache server,mysql server) together with zope-plone on the same linux machine and make it play nicely or do I have to go through their confusing documentations?
Or how can I install this configuration in the best way? I can install and use both seperately but... |
Can we learn Django for a python beginner? | 3,235,021 | 1 | 2 | 5,268 | 0 | python,django | Starting from Django it's good way to learn Python in fact. Django allows you to do nice things in a short time, which might be good motivation to dive into that language. | 0 | 0 | 0 | 0 | 2010-07-13T05:24:00.000 | 5 | 0.039979 | false | 3,234,402 | 0 | 0 | 1 | 2 | Now, I'm learning python but I'm PHP web developer. I don't interest about terminal and windows programming. I only want to do web development. So, Can I learn Django ? |
Can we learn Django for a python beginner? | 3,234,410 | 9 | 2 | 5,268 | 0 | python,django | Yes, you can. I started learning Django with very little Python knowledge too. As long as you have another language behind your belt, preferably a web based one (as you do), I don't think you're biting off too much at once.
Python's a pretty easy language to pick up too. Just have to get used to the significant white s... | 0 | 0 | 0 | 0 | 2010-07-13T05:24:00.000 | 5 | 1.2 | true | 3,234,402 | 0 | 0 | 1 | 2 | Now, I'm learning python but I'm PHP web developer. I don't interest about terminal and windows programming. I only want to do web development. So, Can I learn Django ? |
Authentication in Google App Engine: app.yaml vs. python code | 3,241,208 | 2 | 4 | 1,616 | 0 | python,google-app-engine,authentication | If you have handlers which are only accessible to admins, then app.yaml certainly seems like the easiest way to secure the pages those handlers expose.
However, if you have some handlers which serve both admin and non-admin views (e.g., your main.py), then you'll have to use something more fine-grained than app.yaml (e... | 0 | 1 | 0 | 0 | 2010-07-13T20:01:00.000 | 2 | 0.197375 | false | 3,240,990 | 0 | 0 | 1 | 1 | I am writing a small app that uses the GAE. I have parts of my app that are for administrative use only. I have two options using login: admin option in the app.yaml or google.appengine.api.users.is_current_user_admin() in python code. The basic authentication is sufficient for my case.
Which solution is better?
The ad... |
Django unable to find MySQLdb python module | 23,076,238 | 1 | 19 | 38,547 | 1 | python,django,mysql | Try this if you are using
linux:- sudo apt-get install python-mysqldb
windows:- pip install python-mysqldb or
easy_install python-mysqldb
Hope this should work | 0 | 0 | 0 | 0 | 2010-07-14T02:49:00.000 | 10 | 0.019997 | false | 3,243,073 | 0 | 0 | 1 | 1 | Installed Django from source (python setup.py install and such), installed MySQLdb from source (python setup.py build, python setup.py install). Using Python 2.4 which came installed on the OS (CentOS 5.5). Getting the following error message after launching the server:
Error loading MySQLdb module: No module named MyS... |
No more BeautifulSoup | 3,244,345 | 0 | 3 | 653 | 0 | python,parsing | Well, if you're not duty-bound to python, you could always use a TagSoup parser. It's a Java library, but it gives very good results. You could also just use Tidy to clean your input before trying to parse it. | 0 | 0 | 1 | 0 | 2010-07-14T08:05:00.000 | 4 | 0 | false | 3,244,335 | 0 | 0 | 1 | 1 | I have been using BeautifulSoup but as I understand it that library is no longer being maintained. So what should I use ? I have heard about Xpath but what else is there ? |
Django - How to share configuration constants within an app? | 3,244,614 | 6 | 5 | 1,651 | 0 | python,django,coding-style,constants | There's already a project-wide settings.py file. This is the perfect place to put your own custom setttings. | 0 | 0 | 0 | 0 | 2010-07-14T08:45:00.000 | 4 | 1 | false | 3,244,570 | 0 | 0 | 1 | 2 | It is sometimes beneficial to share certain constants between various code files in a django application.
Examples:
- Name or location of dump file used in various modules\commands etc
- Debug mode on\off for the entire app
- Site specific configuration
What would be the elegant\pythonic way of doing this? |
Django - How to share configuration constants within an app? | 3,245,074 | 0 | 5 | 1,651 | 0 | python,django,coding-style,constants | Django apps are meant to be (more or less) pluggable. Therefore, you are not supposed to hack into the code of an app in order to parametrize what you want (it would be quite a mess if you had to do this ! Imagine you want to upgrade an app you downloaded on internet... you would have to re-hack into the code of the ne... | 0 | 0 | 0 | 0 | 2010-07-14T08:45:00.000 | 4 | 0 | false | 3,244,570 | 0 | 0 | 1 | 2 | It is sometimes beneficial to share certain constants between various code files in a django application.
Examples:
- Name or location of dump file used in various modules\commands etc
- Debug mode on\off for the entire app
- Site specific configuration
What would be the elegant\pythonic way of doing this? |
java-applet gui testing with python | 3,246,550 | 0 | 0 | 312 | 0 | python | I don't understand exactly what you mean or why you want to test Java in Python but Jython may be helpful. | 0 | 0 | 0 | 1 | 2010-07-14T13:22:00.000 | 1 | 0 | false | 3,246,506 | 0 | 0 | 1 | 1 | is there any frame-work or tool to test java-applets in python |
Approach to upgrade application configuration | 3,247,629 | 1 | 0 | 102 | 0 | python,xml,configuration,xsd,upgrade | For all configuration settings that remain the same between configurations, have your installation script copy those over from the old config file if it exists. For the rest, just have some defaults that the user can change if necessary, as usual for a config file. Unless I've misunderstood the question, it sounds like... | 0 | 0 | 1 | 0 | 2010-07-14T15:06:00.000 | 1 | 1.2 | true | 3,247,516 | 0 | 0 | 1 | 1 | My application has a xml based configuration. It has also a xsd file. Before my application starts, xmllint will check the configuration against the xsd file.
With the growth of my application, the configuration structure has changed a bit. Now I have to face this problem: When I provide a new version of my applicatio... |
How to preload model for ReferenceProperty? | 3,281,505 | 1 | 1 | 213 | 0 | python,google-app-engine | This isn't possible in the standard db framework, as there's not enough information present to find your models. The only information the framework has to work with is the kind name, which doesn't include the fully qualified package - so it has no way to figure out what package your model definition might be in.
If you... | 0 | 0 | 0 | 0 | 2010-07-14T15:48:00.000 | 1 | 0.197375 | false | 3,247,971 | 0 | 0 | 1 | 1 | I have a models in different files (blog/models.py, forum/models.py, article/models.py). In each of this files I have defined model classes with application prefix (BlobPost, BlogTag, ForumPost, ForumThread, Article, ArticleCategory).
Also I have appliation - comment, for adding comment attached to any model object. Fo... |
ORM in Django vs. PHP Doctrine | 8,543,708 | 1 | 3 | 5,103 | 1 | php,python,django,orm,doctrine | Ive used Doctrine over a 2 year project that ended 1.5 years ago, since then i've been doing mostly Django.
I prefer Djangos ORM over Doctrine any day, more features, more consistency, faster and shinier. | 0 | 0 | 0 | 0 | 2010-07-14T20:01:00.000 | 4 | 0.049958 | false | 3,249,977 | 0 | 0 | 1 | 3 | I am a PHP guy. In PHP I mainly use Doctrine ORM to deal with database issues. I am considering move to Python + Django recently. I know Python but don't have experience with Django. Can anyone who has good knowledge of both Doctrine and ORM in Django give me a comparison of features of these two ORM implementations? |
ORM in Django vs. PHP Doctrine | 12,267,439 | 5 | 3 | 5,103 | 1 | php,python,django,orm,doctrine | I am a rare person who had to switch from Django 1.4 to Symfony 2.1 so I had to use Doctrine 2 instead of current Django ORM.
Maybe Doctrine can do many things but let me tell you that it is a nightmare for me to use it coming from Django.
I'm bored with the verbosity of php/Symfony/Doctrine ...
Also I never needed som... | 0 | 0 | 0 | 0 | 2010-07-14T20:01:00.000 | 4 | 0.244919 | false | 3,249,977 | 0 | 0 | 1 | 3 | I am a PHP guy. In PHP I mainly use Doctrine ORM to deal with database issues. I am considering move to Python + Django recently. I know Python but don't have experience with Django. Can anyone who has good knowledge of both Doctrine and ORM in Django give me a comparison of features of these two ORM implementations? |
ORM in Django vs. PHP Doctrine | 3,250,203 | -1 | 3 | 5,103 | 1 | php,python,django,orm,doctrine | Django isn't just an orm. It is a web framework like symfony. The form framework in symfony is modeled on django for example. It's orm part is more like doctrine 2 I think, but I haven't played with either much. | 0 | 0 | 0 | 0 | 2010-07-14T20:01:00.000 | 4 | -0.049958 | false | 3,249,977 | 0 | 0 | 1 | 3 | I am a PHP guy. In PHP I mainly use Doctrine ORM to deal with database issues. I am considering move to Python + Django recently. I know Python but don't have experience with Django. Can anyone who has good knowledge of both Doctrine and ORM in Django give me a comparison of features of these two ORM implementations? |
How do I redirect different domain names requests to the same ip in django | 3,256,766 | 2 | 0 | 133 | 0 | python,django | You would do this by setting up different WSGI for each domain using a setting SITE_ID corresponding to the site id from the django.contrib.site app. | 0 | 0 | 0 | 0 | 2010-07-15T14:48:00.000 | 1 | 1.2 | true | 3,256,731 | 0 | 0 | 1 | 1 | I have one ip for two domain name, e.g. "www.example.com" and "example.info", and I want each of them to be handled as a different domain (e.g. www.example.com/photos and example.info/photos will be ahndled each by its corresponding function). Is there an elegant way to do this in django? |
Are there reasons to use get/put methods instead of item access? | 3,261,668 | 0 | 2 | 108 | 0 | python,interface,mapping | From a strictly philosophical point of view, I don't think that there is a line you can cross with this. If some tool provides the needed functionality, but its API is different, adapt away. The only time you shouldn't do this is if the adapted to API simply is not expressive enough to manipulate the adapted componen... | 0 | 0 | 0 | 0 | 2010-07-16T00:13:00.000 | 2 | 1.2 | true | 3,261,030 | 0 | 0 | 1 | 1 | I find that I have recently been implementing Mapping interfaces on classes which on the surface fit the model (they are essentially just key-value stores with no more meta-data), but underneath they are sometimes quite complex.
Here are a couple examples of increasing severity:
An object which wraps another mapping c... |
Check Pending AJAX requests or HTTP GET/POST request | 3,262,533 | 0 | 17 | 25,834 | 0 | javascript,python,html | You would need to keep track of each XMLHttpRequest and monitor whether it completes or the asynchronous callback is executed. | 0 | 0 | 1 | 0 | 2010-07-16T06:38:00.000 | 8 | 0 | false | 3,262,473 | 0 | 0 | 1 | 2 | How do i check if the page has pending AJAX or HTTP GET/POST requests? I use javascript and/or python for this checking.
what i wanted to do is execute a script if a page has finished all requests. onload doesn't work for me, if you used firebugs net panel, you would know. onload fires when the page is loaded but ther... |
Check Pending AJAX requests or HTTP GET/POST request | 3,263,704 | 4 | 17 | 25,834 | 0 | javascript,python,html | I see you mention you are using Prototype.js. You can track active requests with Prototype by checking the Ajax.activeRequestCount value. You could check this using setTimeout or setInterval to make sure that any requests triggered on page load have completed (if that's what you're looking to do) | 0 | 0 | 1 | 0 | 2010-07-16T06:38:00.000 | 8 | 0.099668 | false | 3,262,473 | 0 | 0 | 1 | 2 | How do i check if the page has pending AJAX or HTTP GET/POST requests? I use javascript and/or python for this checking.
what i wanted to do is execute a script if a page has finished all requests. onload doesn't work for me, if you used firebugs net panel, you would know. onload fires when the page is loaded but ther... |
GAE is any good ? if yes then JAVA or Python? | 3,266,220 | 3 | 2 | 652 | 0 | java,python,google-app-engine | Most people here are missing the fact that the question is really about App Engine, not java or python in general.
The Java and Python SDKs and App Engine runtimes have pretty much the same abilities at this point. One caveat with the current java runtime is that if you use a lot of external libraries, your loading hi... | 0 | 1 | 0 | 0 | 2010-07-16T10:21:00.000 | 6 | 1.2 | true | 3,263,847 | 0 | 0 | 1 | 6 | Basically I am coding websites in PHP from last year.
But now I want to use something else and GAE looks a good option.
So I want to know if GAE is good for making a little website to share favorite youtube videos ?
I have done single website in Python+Django few months back, it looks good to me.
But JAVA is the langua... |
GAE is any good ? if yes then JAVA or Python? | 3,265,021 | 2 | 2 | 652 | 0 | java,python,google-app-engine | You'll be able to accomplish the exact same results using either Python or Java. Java is much more verbose than Python, which can make it have a bit of a steeper learning curve. The fact that you have some experience in Django (which GAE's webapp is largely based on and which you can even use directly if you want) wi... | 0 | 1 | 0 | 0 | 2010-07-16T10:21:00.000 | 6 | 0.066568 | false | 3,263,847 | 0 | 0 | 1 | 6 | Basically I am coding websites in PHP from last year.
But now I want to use something else and GAE looks a good option.
So I want to know if GAE is good for making a little website to share favorite youtube videos ?
I have done single website in Python+Django few months back, it looks good to me.
But JAVA is the langua... |
GAE is any good ? if yes then JAVA or Python? | 3,264,425 | 1 | 2 | 652 | 0 | java,python,google-app-engine | You need an IRL mentor. | 0 | 1 | 0 | 0 | 2010-07-16T10:21:00.000 | 6 | 0.033321 | false | 3,263,847 | 0 | 0 | 1 | 6 | Basically I am coding websites in PHP from last year.
But now I want to use something else and GAE looks a good option.
So I want to know if GAE is good for making a little website to share favorite youtube videos ?
I have done single website in Python+Django few months back, it looks good to me.
But JAVA is the langua... |
GAE is any good ? if yes then JAVA or Python? | 3,263,926 | 1 | 2 | 652 | 0 | java,python,google-app-engine | I would personally go with a Java based solution. If this is just a little website for yourself, then it would be a good idea to learn a new technology, in this case Java. Little projects like this are ideal for learning new technologies and seeing if they are suitable for you as a developer and other projects you may ... | 0 | 1 | 0 | 0 | 2010-07-16T10:21:00.000 | 6 | 0.033321 | false | 3,263,847 | 0 | 0 | 1 | 6 | Basically I am coding websites in PHP from last year.
But now I want to use something else and GAE looks a good option.
So I want to know if GAE is good for making a little website to share favorite youtube videos ?
I have done single website in Python+Django few months back, it looks good to me.
But JAVA is the langua... |
GAE is any good ? if yes then JAVA or Python? | 3,263,908 | 2 | 2 | 652 | 0 | java,python,google-app-engine | If you want to learn Java, then use Java!
If you feel that Java is too verbose compared to Python, you could try Scala, which runs on the JVM like Java. Scala is more concise and well designed. | 0 | 1 | 0 | 0 | 2010-07-16T10:21:00.000 | 6 | 0.066568 | false | 3,263,847 | 0 | 0 | 1 | 6 | Basically I am coding websites in PHP from last year.
But now I want to use something else and GAE looks a good option.
So I want to know if GAE is good for making a little website to share favorite youtube videos ?
I have done single website in Python+Django few months back, it looks good to me.
But JAVA is the langua... |
GAE is any good ? if yes then JAVA or Python? | 3,264,075 | 3 | 2 | 652 | 0 | java,python,google-app-engine | Java and Python are both excellent languages. It is a matter of taste and believe which you choose.
If you prefer a lightweight solution, use Python.
If you have enterprise needs, whatever that means, use Java.
If you ask for my personal believe, my subjective stand-of-point is:
Use Python wherever possible and sti... | 0 | 1 | 0 | 0 | 2010-07-16T10:21:00.000 | 6 | 0.099668 | false | 3,263,847 | 0 | 0 | 1 | 6 | Basically I am coding websites in PHP from last year.
But now I want to use something else and GAE looks a good option.
So I want to know if GAE is good for making a little website to share favorite youtube videos ?
I have done single website in Python+Django few months back, it looks good to me.
But JAVA is the langua... |
How can I set up dynamic imports when hosting IronPython? | 3,269,071 | 3 | 3 | 180 | 0 | .net,ironpython,dynamic-language-runtime | You need to subclass the PlatformAdaptationLayer class and implement the "file system" calls. IronPython will then go to the PAL to do I/O for the files. This also involves implementing a ScriptHost which returns the type for the PAL. A good example of this is the Silverlight host which redirects file I/O to a XAP f... | 0 | 0 | 0 | 0 | 2010-07-16T10:45:00.000 | 1 | 1.2 | true | 3,264,029 | 1 | 0 | 1 | 1 | I'm writing a C# client application which is intended to have strong support for customisation via scripting, and I have chosen IronPython as my target scripting language. I would like to keep the user's code in the application's database with the rest of its state, but I need the user to be able to split their scripts... |
Python over JavaScript? (Facts, please) | 3,266,895 | 3 | 25 | 65,637 | 0 | javascript,python | Python’s a good second language to learn after JavaScript, as they have a reasonable number of similarities, e.g.
they’re both memory-managed
they have similar data structures — JavaScript’s objects and arrays are much like Python’s dictionaries and arrays
they’re both used quite a lot for web-related work — JavaScrip... | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0.049958 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,975 | -2 | 25 | 65,637 | 0 | javascript,python | If you need to ask, then I would say no since you don't have a need in mind for its usage. | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | -0.033321 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,781 | 0 | 25 | 65,637 | 0 | javascript,python | Along with Python generally being server-side and JavaScript client-side, Python was designed to not only be easy to learn, but also easy to read, and to encourage a more productive environment. | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,281 | 2 | 25 | 65,637 | 0 | javascript,python | JavaScript is usually used as a client-side scripting language - that is, it gets downloaded and executed by your browser. Python, however, is usually not coupled to the web. it can be used as a server-side scripting language, and for scripts and applications of any kind. But it is not a client-side language, and is th... | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0.033321 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,294 | 0 | 25 | 65,637 | 0 | javascript,python | It depends.
Do you want to program in a language that specifically targets web browsers? Stick with Javascript
Do you want to write... well anything besides for web browsers? Learn Python.
Python is an excellent beginner language that's not just a beginner language. Google uses it, NASA uses it, and many, many other or... | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,271 | 1 | 25 | 65,637 | 0 | javascript,python | IMO Python may be easier to learn (having taught both to intro classes).
Also, one major annoyance of JavaScript is that in runs in your browser. This inherently makes it much harder to debug problems.
In terms of a production-level language, Python is more of a general purpose programming language, while JavaScript i... | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0.016665 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,248 | 15 | 25 | 65,637 | 0 | javascript,python | The two are generally used quite differently. Javascript is primarily used as a client side scripting language vs python which is a server based language. So in a website you could use both. But not sure if this is what you were wondering. | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 1 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,266 | 0 | 25 | 65,637 | 0 | javascript,python | JavaScript and Python are both great languages that are geared toward different problems.
JavaScript knowledge is invaluable when dealing with the web, writing web pages, and poking around in html DOM.
Python is a scripting language that is great for a host of things on any machine. | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Python over JavaScript? (Facts, please) | 3,266,275 | 1 | 25 | 65,637 | 0 | javascript,python | For what purpose? Javascript is king in some circles (web development, for instance).
Javascript and Python are not mutually exclusive. Why not learn both? | 0 | 0 | 0 | 1 | 2010-07-16T15:06:00.000 | 12 | 0.016665 | false | 3,266,223 | 1 | 0 | 1 | 9 | I recently learned JavaScript an all of the sudden I hear about Python...
Should I go learn Python or just stick with my basic JavaScript knowledge?
If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...
Thanks :) |
Recommendation for click/event tracking mechanisms (python, django, celery, mongo etc) | 3,267,422 | 1 | 7 | 3,366 | 0 | python,django,events,mongodb,tracking | If by click, you mean a click on a link that loads a new page (or performs an AJAX request), then what you aim to do is fairly straightforward. Web servers tend to keep plain-text logs about requests - with information about the user, time/date, referrer, the page requested, etc. You could examine these logs and mine t... | 0 | 0 | 0 | 0 | 2010-07-16T16:40:00.000 | 3 | 0.066568 | false | 3,267,081 | 0 | 0 | 1 | 2 | I'm looking into way to track events in a django application (events would generally be clicks tied to a specific unique user id).
These events would essentially contain an event type like "click" and then each click event would be assigned to a unique id (many events can go to one id) and each event would have a data ... |
Recommendation for click/event tracking mechanisms (python, django, celery, mongo etc) | 3,267,157 | 3 | 7 | 3,366 | 0 | python,django,events,mongodb,tracking | I am not familiar with the pre-packaged solutions you mention. Were I to design this from scratch, I'd have a simple JS collecting info on clicks and posting it back to the server via Ajax (using whatever JS framework you're already using), and on the server side I'd simply append that info to a log file for later "of... | 0 | 0 | 0 | 0 | 2010-07-16T16:40:00.000 | 3 | 0.197375 | false | 3,267,081 | 0 | 0 | 1 | 2 | I'm looking into way to track events in a django application (events would generally be clicks tied to a specific unique user id).
These events would essentially contain an event type like "click" and then each click event would be assigned to a unique id (many events can go to one id) and each event would have a data ... |
Google App Engine: Redirect to RequestHandler | 3,267,906 | 3 | 3 | 1,160 | 0 | python,google-app-engine | One alternative would be to have a map of symbolic names to URLs, that way you could redirect to the mapped URL - you could then update your URLs with impunity.
Or if you'd rather just execute the code from another handler, I don't know why you couldn't just make a method call - worst case, you could extract a common m... | 0 | 1 | 0 | 0 | 2010-07-16T18:31:00.000 | 3 | 1.2 | true | 3,267,830 | 0 | 0 | 1 | 1 | I just started with Google App Engine using python and I was following a tutorial and writing my own little app to get familiar the webapp framework. Now I just noticed the tutorial does the following self.redirect('/'). So that got me wondering: is there a way to redirect to a handler instead of a hardcoded path? Thou... |
Populating a SQLite3 database from a .txt file with Python | 3,275,298 | 2 | 13 | 7,034 | 1 | python,django,sqlite | You asked what the create(**dict(zip(fields, row))) line did.
I don't know how to reply directly to your comment, so I'll try to answer it here.
zip takes multiple lists as args and returns a list of their correspond elements as tuples.
zip(list1, list2) => [(list1[0], list2[0]), (list1[1], list2[1]), .... ]
dict take... | 0 | 0 | 0 | 0 | 2010-07-17T09:38:00.000 | 6 | 0.066568 | false | 3,270,952 | 0 | 0 | 1 | 1 | I am trying to setup a website in django which allows the user to send queries to a database containing information about their representatives in the European Parliament. I have the data in a comma seperated .txt file with the following format:
Parliament, Name, Country, Party_Group, National_Party, Position
7, Mart... |
Possible to pass more than 1 argument to a context processor in Django? | 3,278,231 | 2 | 0 | 1,249 | 0 | python,django | Store whatever variables you would want in the session. Then you can access it through the request. | 0 | 0 | 0 | 0 | 2010-07-18T21:22:00.000 | 2 | 0.197375 | false | 3,277,307 | 0 | 0 | 1 | 1 | Is it possible to pass more than 1 argument to a context processor in Django? In other words, in addition to the HttpRequest object, I would like to pass 1 or more additional argument? |
Programming books in ePub format | 3,278,535 | 0 | 10 | 10,584 | 0 | php,jquery,python,epub | Does it have to be ePub format?
Here in Australia the iBookstore is basically completely bare, except for books out of copyright (The illiad, Bible etc) My understanding is that they are still negotiating with the publishers.
The guy at the Apple store said to me, oh thats no problem, download the free Kindle app and j... | 0 | 0 | 0 | 0 | 2010-07-19T04:35:00.000 | 5 | 0 | false | 3,278,477 | 1 | 0 | 1 | 1 | I purchased an iPad hoping to read books on it that've been aging on my desk for months, but it turned out that there're NO programming books available on iBookstore.
Are there any (Python, PHP, jQuery) books available in ePub format? Conversion from pdf to epub is not an option because the formatting is lost in the p... |
python handle endless XML | 3,284,880 | 0 | 5 | 1,933 | 0 | python,xml | If the document is endless why not add end tag (of main element) manually before opening it in parser? I don't know Python but why not add </endtag> to string? | 0 | 0 | 1 | 0 | 2010-07-19T19:24:00.000 | 7 | 0 | false | 3,284,289 | 0 | 0 | 1 | 1 | I am working on a application, and my job just is to develop a sample Python interface for the application. The application can provide XML-based document, I can get the document via HTTP Get method, but the problem is the XML-based document is endless which means there will be no end element. I know that the document... |
How to insert dynamic string in wxpython html window? (wx.html.htmlwindow) | 3,294,064 | 0 | 2 | 614 | 0 | python,wxpython,tags | There are a couple of approaches that come to my mind. If it's like a form letter where only specific parts will be replaced, then you can just should that to the user and have some text controls for them to fill in. Something like this:
Dear #NAME,
Thank you for contacting #COMPANY, blah blah blah
And then have a text... | 1 | 0 | 0 | 0 | 2010-07-20T06:13:00.000 | 2 | 0 | false | 3,287,455 | 0 | 0 | 1 | 1 | I am making a html window in wxpython and want to print it. Before that I need to enter user input (such as his name or such things ) in the html page. How to do that nicely?
Thanks in advance, |
Improving performance of cgi | 3,289,546 | 0 | 1 | 179 | 1 | python,cgi | Django and Pylons are both frameworks that solve this problem quite nicely, namely by abstracting the DB-frontend integration. They are worth considering. | 0 | 0 | 0 | 1 | 2010-07-20T11:15:00.000 | 2 | 0 | false | 3,289,330 | 0 | 0 | 1 | 1 | I have 5 python cgi pages. I can navigate from one page to another. All pages get their data from the same database table just that they use different queries.
The problem is that the application as a whole is slow. Though they connect to the same database, each page creates a new handle every time I visit it and handl... |
Web-ifing a python command line script? | 3,289,731 | 0 | 8 | 3,095 | 0 | python | Your task sounds interesting. :-) A scenario that just came into mind: You continuosly scrape the resources with your home-brew scripts, and push the results into your persistent database and a caching system -- like Redis -- simultanously. Your caching system/layer serves as primary data source when serving client req... | 0 | 0 | 1 | 0 | 2010-07-20T11:50:00.000 | 3 | 0 | false | 3,289,584 | 0 | 0 | 1 | 1 | This is my first questions here, so I hope it will be done correctly ;)
I've been assigned the task to give a web interface to some "home made" python script.
This script is used to check some web sites/applications availability, via curl commands. A very important aspect of this script is that it gives its results in ... |
Sending email from my domain vs from the admin google account? | 3,292,433 | 2 | 2 | 497 | 0 | python,google-app-engine,email | When sending email, you can designate the sender as either the currently logged in user or any registered administrator. It does not have to be the administrator who created the app.
Also note that you can add any email address as an administrator on your app (from the permissions tab in the admin console). It does not... | 0 | 1 | 0 | 0 | 2010-07-20T16:36:00.000 | 2 | 0.197375 | false | 3,292,238 | 0 | 0 | 1 | 1 | I have a domain xyz.com and right now it is pointing to my app in appspot. I want to send email alerts to users for various events. However, appengine restricts email sender to admin email address which was used to create the google app engine account.
Can I send emails on behalf of user@xyz.com using app engine? If no... |
Browser-based MMO best-practice | 3,294,995 | 5 | 3 | 770 | 0 | python,django,cron | Running a scheduled task to perform updates in your game, at any interval, will give you a spike of heavy database use. If your game logic relies on all of those database values to be up to date at the same time (which is very likely, if you're running an interval based update), you'll have to have scheduled downtime f... | 0 | 0 | 1 | 0 | 2010-07-20T21:50:00.000 | 2 | 1.2 | true | 3,294,682 | 0 | 0 | 1 | 1 | I am developing an online browser game, based on google maps, with Django backend, and I am getting close to the point where I need to make a decision on how to implement the (backend) timed events - i.e. NPC possession quantity raising (e.g. city population should grow based on some variables - city size, application ... |
Where should utility functions live in Django? | 24,850,556 | 5 | 59 | 31,416 | 0 | python,django,structure | Here is another way to do it:
If the utility functions can be a stand-alone module
and you are using a virtualenv environment for your django app
then you can bundle the functionality as a package and install it in your virtualenv.
This makes it easy to import where ever you need it in your django app. | 0 | 0 | 0 | 0 | 2010-07-20T23:45:00.000 | 3 | 0.321513 | false | 3,295,268 | 0 | 0 | 1 | 1 | Where should utility functions live in Django? Functions like custom encrypting/decrypting a number, sending tweets, sending email, verifying object ownership, custom input validation, etc. Repetitive and custom stuff that I use in a number of places in my app. I'm definitely breaking DRY right now.
I saw some demos wh... |
Rich text to be stored using django | 3,296,578 | 0 | 0 | 724 | 0 | python,django,django-models,django-views | Text or data has no color or creed.
If you have data as text, just store it in text field, if it is binary store it as a blob. It doesn't matter what that data represents, it can be richtext, pdf, a flash file etc database doesn't care. | 0 | 0 | 0 | 0 | 2010-07-21T04:13:00.000 | 1 | 1.2 | true | 3,296,268 | 0 | 0 | 1 | 1 | If csv file has rich text in it. Using csv.reader() can the same format stored in the Mysql database using django and retrieved back to html pages?
Thanks.. |
I need help with messaging and queuing middleware systems for extjs | 3,309,648 | 0 | 1 | 362 | 0 | php,javascript,python,ajax,extjs | I would change it this way:
make PHP block and wait until Python daemon finishes processing the transaction
increase the timeout in the Ext.data.Connection() so it would wait until PHP responds
remove the Ext.MessageBox and handle possible errors in the callback handler in Ext.data.Connection()
I.e. instead of waitin... | 0 | 0 | 1 | 0 | 2010-07-21T07:34:00.000 | 1 | 1.2 | true | 3,297,110 | 0 | 0 | 1 | 1 | I developed a system that consists of software and hardware interaction. Basically its a transaction system where the transaction details are encrypted on a PCI device then returned back to my web based system where it is stored in a DB then displayed using javascript/extjs in the browser. How I do this now is the foll... |
Pydev, eclipse and pythonpath problem | 8,374,480 | 1 | 2 | 9,880 | 0 | python,eclipse,pydev | It seems like some sort of cache issue in PyDev... in which case you could try to remove the interpreter, add it again and restart Eclipse. | 0 | 0 | 0 | 1 | 2010-07-21T15:21:00.000 | 3 | 0.066568 | false | 3,300,903 | 0 | 0 | 1 | 3 | I've installed pydev to my eclipse 3.5.2. Everything was working smoothly, create projects, execute, test, autocomplete.
But then I realized that importing modules from /usr/lib/pymodules/python2.6, such as django, causes error "Unresolved import: xxxx". Of course, PYTHONPATH SYSTEM includes the directories I want. Wha... |
Pydev, eclipse and pythonpath problem | 3,459,938 | 1 | 2 | 9,880 | 0 | python,eclipse,pydev | If you're using virtualenv you should setup an interpreter using the python build inside.
ie., default python interpreter for th project will be /usr/bin/python
but change it to something like "{project name} python" and point it to your virtual env path. In my case it's ~/.virtualenvs/acme/bin/python | 0 | 0 | 0 | 1 | 2010-07-21T15:21:00.000 | 3 | 1.2 | true | 3,300,903 | 0 | 0 | 1 | 3 | I've installed pydev to my eclipse 3.5.2. Everything was working smoothly, create projects, execute, test, autocomplete.
But then I realized that importing modules from /usr/lib/pymodules/python2.6, such as django, causes error "Unresolved import: xxxx". Of course, PYTHONPATH SYSTEM includes the directories I want. Wha... |
Pydev, eclipse and pythonpath problem | 32,353,403 | 2 | 2 | 9,880 | 0 | python,eclipse,pydev | In eclipse you can add django folder in you python path.
Window->Preferences-> PyDev-> Interpreters->Python Interpreter -> Lirararies -> New Folder
And browse till the parent folder of modules you are searching. | 0 | 0 | 0 | 1 | 2010-07-21T15:21:00.000 | 3 | 0.132549 | false | 3,300,903 | 0 | 0 | 1 | 3 | I've installed pydev to my eclipse 3.5.2. Everything was working smoothly, create projects, execute, test, autocomplete.
But then I realized that importing modules from /usr/lib/pymodules/python2.6, such as django, causes error "Unresolved import: xxxx". Of course, PYTHONPATH SYSTEM includes the directories I want. Wha... |
how to get final redirected url | 3,309,766 | 3 | 1 | 1,704 | 0 | python,google-app-engine,feedparser | It is not possible to get the 'final' URL by parsing, in order to resolve it, you would need to at least perform an HTTP HEAD operation | 0 | 1 | 1 | 0 | 2010-07-22T14:05:00.000 | 3 | 0.197375 | false | 3,309,695 | 0 | 0 | 1 | 2 | i am using google app engine for fetching the feed url bur few of the urls are 301 redirect i want to get the final url which returns me the result
i am usign the universal feed reader for parsing the url is there any way or any function which can give me the final url. |
how to get final redirected url | 3,309,853 | 0 | 1 | 1,704 | 0 | python,google-app-engine,feedparser | You can do this by handling redirects manually. When calling fetch, pass in follow_redirects=False. If your response object's HTTP status is a redirect code, either 301 or 302, grab the Location response header and fetch again until the HTTP status is something else. Add a sanity check (perhaps 5 redirects max) to avoi... | 0 | 1 | 1 | 0 | 2010-07-22T14:05:00.000 | 3 | 0 | false | 3,309,695 | 0 | 0 | 1 | 2 | i am using google app engine for fetching the feed url bur few of the urls are 301 redirect i want to get the final url which returns me the result
i am usign the universal feed reader for parsing the url is there any way or any function which can give me the final url. |
django URL reverse: When URL reversig a username it fails when username has a '.' literal in it | 3,312,255 | 4 | 2 | 216 | 0 | python,django,url,reverse | The problem will be in whatever regex you are using in your urls.py to match feed_user. Presumably you are using something like r'(?P<username>\w+)/$', which only matches on alphanumeric characters and doesn't match on punctuation.
Instead, use this: r'(?P<username>[\w.]+)/$' | 0 | 0 | 0 | 0 | 2010-07-22T18:13:00.000 | 1 | 1.2 | true | 3,311,973 | 0 | 0 | 1 | 1 | I didn't expect this to occur [since I didn't know when django changed to allow _ and . in usernames], but when I attempt
{% url feed_user entry.username %}
I will get a 500 error when the username contains a '.'
In this case rob.e as a username will fail.
Any ideas how to deal with this? |
How complicate can a Django application go? | 3,320,111 | 2 | 1 | 399 | 0 | python,django | Mozilla is currently rewriting two of our largest sites on Django. These are both fairly complex applications that interact with numerous online and offline services. With Python's large collection of libraries, anything Django doesn't do itself we've usually been able to find, or create pretty easily. For example, we ... | 0 | 0 | 0 | 0 | 2010-07-23T15:51:00.000 | 2 | 0.197375 | false | 3,319,890 | 0 | 0 | 1 | 1 | I'm tasked to create a simple CRUD MVC application, and I thought it's a good opportunity to learn python. Because of its great documentation, I'm thinking now that I'll go with Django.
Now, this simple CRUD MVC application could become quite complicated in the future. I might have receive and issue JMS messages, dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.