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
Access standalone GUI application through Web
8,474,771
1
1
343
0
python,django,user-interface,web
The only way to make something like that possible would be to load the application into memory, interact with it and render the presentation. Consider something like having a application that can parse a HTML document, instantiate and provides access to the DOM elements in memory so that you can modify their properties...
0
0
0
0
2011-12-12T09:33:00.000
1
1.2
true
8,472,282
0
0
1
1
Is it possible to access a standalone GUI-based application over the Web? The concerned application is an event animator, which displays the animation based on custom textual inputs. I don't wish to access that software through any remote desktop connection (or web meeting) like option. I actually intend to integrate t...
Defining both post and get method under same request handler
8,474,190
2
1
546
0
python,google-app-engine,webapp2
Your approach is appropriate. According to the newest documentation you can even define post and get as functions outside request handler and just as other functions in your module and that's a way I would choose since it eliminates problems that can happen when instanciating request handlers. If starting a new app fro...
0
0
1
0
2011-12-12T11:38:00.000
1
1.2
true
8,473,712
0
0
1
1
I'm using python to develop a web app. I defined both "get" and "post" method in the same request handler to serve different purpose. That is, I use "get" method to present a form to user, and "post" method to handle the submitted form. It works fine, but is this approach appropriate? Or should I better define get and ...
Why does this Django form rendering taking forever?
8,477,897
1
0
105
0
python,django,forms,html-rendering
if you have foreign keys to tables with a large number of rows, it's worth remembering that the default widget for each is a dropdown (<select>) with each row ('s unicode) as a choice. these often get enormous and it's worth looking at options (like the admin's raw_id_field)
0
0
0
0
2011-12-12T16:56:00.000
2
0.099668
false
8,477,860
0
0
1
1
I have a ModelForm based on a gigantic 300 fields model. Actually one model with 150 fields inheriting from another one with 150 other. I was expecting the model to cause some issues at syncdb or save(), but it works fine. However, calling the form based on this model as_p() method just take forever. I can wait 10 minu...
How to evenly distribute tasks among nodes with Celery?
8,479,823
2
0
1,269
0
python,django,celery,django-celery
it's actually easy: you start one celery-instance per ec2-instance. set concurrency to the number of cores per ec2-instance. now the tasks don't interfere and distribute nicely among you instances. (the above assumes that your tasks are cpu bound)
0
1
0
0
2011-12-12T18:51:00.000
1
0.379949
false
8,479,320
0
0
1
1
I am using Celery with Django to manage a task que and using one (or more) small(single core) EC2 instances to process the task. I have some considerations. My task eats 100% CPU on a single core. - uses whatever CPU available but only in one core If 2 tasks are in progress on the same core, each task will be slowed d...
Is there a way to lookup all reviews of a customer in Amazon's new Product Advertising API?
8,494,166
-1
1
179
0
python,amazon-web-services
Have you looked at using web page scraping to fetch/get the customer reviews / ratings? If you know the customer id you should be able to extract all the information you need directly from the Amazon web pages.
0
0
1
0
2011-12-13T01:24:00.000
1
-0.197375
false
8,483,263
0
0
1
1
Using ecs.py, I used to be able to get the reviews of a customer with a query like ecs.CustomerContentLookup(customerId, ResponseGroup='CustomerReviews'). This is now deprecated. Is there an alternative? Thanks.
Python in a webapp (client side)
8,484,821
1
2
451
0
python,apache-flex,html
Pyjamas: Python->Javascript, set of widgets for use in a browser or a desktop Skulpt: Python written in Javascript Emscripten: C/C++ -> LLVM -> Javascript Empythoned: Based on emscripten and cpython, working on a stdlib? There are bugs to file
0
0
0
1
2011-12-13T04:16:00.000
1
0.197375
false
8,484,253
0
0
1
1
This is part of some preliminary research and I am having a difficult time figuring out what options might be available or if this is even a situation where a solution even exists. Essentially we have an existing python based simulation that we would like to make available to people via the web. It can be pretty proce...
Notify browser/page after long task has ended
8,487,273
1
0
65
0
python,browser
Poll the server to get the latest generated files (or the complete list of generated files) every n seconds, and stop the polling once the list is complete, or once the first ajax query (the one which starts the generation process) has completed. The thread which generates the file should make the list of generated fil...
0
0
0
0
2011-12-13T09:12:00.000
1
1.2
true
8,486,691
1
0
1
1
I am using a Python WebServer (CherryPy), but I guess the question is more open and is fairly general. At the moment, I have some Ajax call trough JQuery load on a button click, that triggers some computation, ending in files generation. At the moment, as soon as the processing starts in a background thread, my load re...
Which gives better performance-passing parsed URL as args alongwith request or parsing URL in view-Django
8,491,990
1
0
155
0
python,django,parsing,url,args
Option two is inherently slower as your view would need to do this parsing each time, whereas Django's standard URL parser works off of compiled regular expressions. (The urlpatterns in urls.py is compiled once on first run.) However, the speed difference in either approach is pretty negligible. This will never be the ...
0
0
0
0
2011-12-13T13:34:00.000
1
1.2
true
8,490,117
0
0
1
1
I have an Django application where the URL's to be handled shall have a specific pattern like /servername/alpha/beta/2/delta/10/pie/1 Now i will be be needing these parameters contained in the URL and will persist them to the database when a URL beginning from /servername/ is being called.So i have 2 ways of doing it ...
Getting "code" instead of "access_token" in desktop application
8,498,829
0
0
92
0
python,facebook,access-token
The flow is to get the access token, you need that code....But sorry I don't know how to implement this using Python 2.7...
0
0
0
0
2011-12-14T00:55:00.000
1
1.2
true
8,498,332
0
0
1
1
In spite of setting Auth Token Parameter of my application to URI Fragment (#access_token=...), I keep being redirected to the address with code in the text. I'm using Python 2.7 and cookielib for login. Is there anything else I need to do to get access_token instead of code?
Django XMPP Connection pooling
8,504,436
2
0
415
0
python,django,xmpp,connection-pooling
As xmpppy has its own main loop I suggest to use it in a separate thread or even start separately. Actually you do have two separate applications: website and xmpp-client and it is normal to run them separately. In this case you may use different ways to communicate between your applications: pipes between threads and/...
0
0
1
0
2011-12-14T06:44:00.000
1
1.2
true
8,500,455
0
0
1
1
How can i pool a connection to XMPP server in django so that it is available across multiple requests. I don't want to connect and authenticate on every request which makes it a bit slow. Is this possible? EDIT: I am using xmpppy python xmpp library
Tornadoweb webapp cannot be managed via upstart
8,516,641
0
1
417
0
python,daemon,tornado,upstart
There are two often used solutions The first one is to let your application honestly report its pid. If you could force your application to write the actual pid into the pidfile then you could get its pid from there. The second one is a little more complicated. You may add specific environment variable for the script i...
0
1
0
0
2011-12-14T14:22:00.000
2
0
false
8,506,002
0
0
1
2
Few days ago I found out that my webapp wrote ontop of the tornadoweb framework doesn't stop or restart via upstart. Upstart just hangs and doesn't do anything. I investigated the issue and found that upstart recieves wrong PID, so it can only run once my webapp daemon and can't do anything else. Strace shows that my d...
Tornadoweb webapp cannot be managed via upstart
10,837,488
1
1
417
0
python,daemon,tornado,upstart
Sorry my silence, please. Investigation of the issue ended with the knowledge about uuid python library which adds 2 forks to my daemon. I get rid of this lib and tornado daemon works now properly. Alternative answer was supervisord which can run any console tools as a daemon which can't daemonize by itself.
0
1
0
0
2011-12-14T14:22:00.000
2
1.2
true
8,506,002
0
0
1
2
Few days ago I found out that my webapp wrote ontop of the tornadoweb framework doesn't stop or restart via upstart. Upstart just hangs and doesn't do anything. I investigated the issue and found that upstart recieves wrong PID, so it can only run once my webapp daemon and can't do anything else. Strace shows that my d...
Best approach to filter a large dataset depending on the datastore
8,513,090
2
2
183
0
python,google-app-engine
I assume it's so slow because you're doing a query for each user you're looking up. You can avoid the need to do this with good use of key names. For each user in your database, insert entities with their key name set to the unique identifier for the social network. These can be the same entities you're already using, ...
0
1
0
0
2011-12-14T16:51:00.000
1
1.2
true
8,508,346
0
0
1
1
I'm currently implementing a web service providing the social features of a game. One of this game feature is the ability to manage a friends list. The friends the user can add depends on the contacts he's having on an external social network of his choice (currently Facebook or Twitter). The current behavior of the sy...
Panda3d Robotics
48,337,393
0
2
867
0
c++,python,ruby,robotics,panda3d
I would suggest you to go for ROS(gazebo) and write your nodes in C++ or python. You can follow Lentin Joseph's book on Learning Robotics Using Python. It helps you in building autonomous bots with ROS and OpenCV.
0
0
0
1
2011-12-15T01:24:00.000
2
0
false
8,513,998
0
0
1
2
The title makes it obvious, is this a good idea? I've been looking for a robotics simulator in languages i know (i know ruby best, then c++, then python -- want to strengthen here--, forget about javascript, but i know it). i found something called pyro, but it probably doesn't fit my needs (listed below). In my la...
Panda3d Robotics
10,025,027
0
2
867
0
c++,python,ruby,robotics,panda3d
Panda 3D is a good language to write your own robot system in. It's written by CMU people, so it's very clean and makes a lot of sense. It allows you to import very complex models from Maya or Blender. It supports 3D environments. Although it has its own scripting language for running actions (animations) imported ...
0
0
0
1
2011-12-15T01:24:00.000
2
0
false
8,513,998
0
0
1
2
The title makes it obvious, is this a good idea? I've been looking for a robotics simulator in languages i know (i know ruby best, then c++, then python -- want to strengthen here--, forget about javascript, but i know it). i found something called pyro, but it probably doesn't fit my needs (listed below). In my la...
Why the Common Language Runtime Cannot Support Java
8,530,523
2
11
5,362
0
c#,java,.net,ironpython
CLR does support J#. In an utopian world CLR should have supported C# and Java, but Java is a competitor to Microsoft's C# and hence it won't support Java.
0
0
0
0
2011-12-16T06:16:00.000
5
0.07983
false
8,530,498
1
0
1
2
Today the Common Language Run Time Supports Many Languages including Iron Python and Iron Ruby. We can similarly can use J Ruby and J Python in Java Run Time environments . If so why the .net frame work common language run time cannot support for Java? Um just curious to know though u may see this as a dumb question .
Why the Common Language Runtime Cannot Support Java
8,530,557
1
11
5,362
0
c#,java,.net,ironpython
The respective Virtual Machines act on Intermediate Code in a different language (CIL for .net), and IL for .net and JVM are incompatible with each other. The IL and Runtime features sometimes disallow a few things, for example Generics in C# are closely tied to how Generics in the .net Runtime work, while Java has a c...
0
0
0
0
2011-12-16T06:16:00.000
5
0.039979
false
8,530,498
1
0
1
2
Today the Common Language Run Time Supports Many Languages including Iron Python and Iron Ruby. We can similarly can use J Ruby and J Python in Java Run Time environments . If so why the .net frame work common language run time cannot support for Java? Um just curious to know though u may see this as a dumb question .
django-admin: Add extra row with totals
8,549,564
0
38
21,372
0
python,django,django-admin,django-views,django-1.2
if you create a custom view overiding the admin view you should be able to take the queryset along with the current page information and slice the data to create a total appropriate to the current page. if you want a true total than I still see a custom overridden admin view as the option you are looking for.
0
0
0
0
2011-12-17T01:34:00.000
9
0
false
8,541,956
0
0
1
1
I'm using the standard django admin module to display a list of rows. One of the columns is a numerical field. I'd like to display an extra 'totals' row that has most of the columns as blank, except for the numerical column, which should be the total for all of the objects. Is there a simple way to do this within the a...
just curious to know the difference between spring mvc vs django
8,547,784
32
25
27,043
0
java,python,django,model-view-controller,spring-mvc
From the perspective of developing Web applications, there's only the big difference in the approach towards the architecture of your applications. Django tends to impose a lot of constraints and depends heavily on a fixed set of solutions that are provided internally. What you get from that are conventions and a strea...
0
0
0
0
2011-12-17T19:07:00.000
2
1.2
true
8,547,226
0
0
1
2
I would like to ask the masters out there as what are the main differences between java spring mvc and django? and also..which one is preferred most?
just curious to know the difference between spring mvc vs django
8,547,598
11
25
27,043
0
java,python,django,model-view-controller,spring-mvc
Spring has its own web MVC framework, but it's much more: A dependency injection/inversion of control factory Aspect oriented programming. Modules for persistence, remoting, and other features. Django is a Python web MVC framework for creating browser UI CRUD applications. I would say that Grails, a Ruby on Rails-li...
0
0
0
0
2011-12-17T19:07:00.000
2
1
false
8,547,226
0
0
1
2
I would like to ask the masters out there as what are the main differences between java spring mvc and django? and also..which one is preferred most?
Programming a GSM phone/modem to make phone calls
8,605,549
0
2
4,955
0
java,python,mobile,gsm,modem
Almost all modems and (phones which support tethering to your PC) can do this. All modems are equally good at it.There are no starter's modems. Just go through the AT commands specific to your applications and thats it.
0
0
0
1
2011-12-18T01:41:00.000
2
0
false
8,549,259
0
0
1
1
I want to use a program written in a high level language like Java or Python to talk to a GSM Modem. I want to be able to tell the modem what number to call and when to call it. I also want to be able to read and send text messages. I do NOT need to handle voice transmission in either direction of the call. I'd apprec...
Realtime art project --- input: sound --- output: image (better title?)
8,595,071
1
0
334
0
python,audio,real-time,microcontroller,processing
The above answer is a good one, PD is very flexible, but if you want something more code oriented and better suited to mixing with MCUs, processing might be better. Another good way to do it would be to use Csound with the Csound Python API. Csound has a steep learning curve, but tons tons of audio analysis functionali...
0
0
0
0
2011-12-18T19:22:00.000
2
0.099668
false
8,554,168
0
0
1
1
I am not quite sure if I should ask this question here. I want to make an art project. I want to use voice as an input, and an image as output. The image changes accordingly to the sound. How can I realise this? Because I need realtime or a delay under 50 ms. At first I thougt it would be better to use a micro control...
Personalizing Online Assignments for a Statistics Class
8,554,862
9
13
656
0
python,ruby-on-rails,ruby,r,r-exams
The way you have worded your question it's not really clear why you have to mark the students' work online. Especially since you say that you generate assignments using sweave. If you use R to generate the (randomised) questions, then you really have to use R to mark them (or output the data set). For my courses, I use...
0
0
0
0
2011-12-18T20:27:00.000
4
1
false
8,554,562
0
0
1
2
I teach undergraduate statistics, and am interested in administering personalized online assignments. I have already solved one portion of the puzzle, the generation of multiple version of a question using latex/markdown + knitr/sweave, using seeds. I am now interested in developing a web-based system, that would use ...
Personalizing Online Assignments for a Statistics Class
8,564,007
2
13
656
0
python,ruby-on-rails,ruby,r,r-exams
I found one possible solution that might work using the RGoogleDocs package. I am posting this as an answer only because it is long. I am still interested in better approaches, and hence will keep the question open. Here is the gist of the idea, which is still untested. Create multiple versions of each assignment usin...
0
0
0
0
2011-12-18T20:27:00.000
4
0.099668
false
8,554,562
0
0
1
2
I teach undergraduate statistics, and am interested in administering personalized online assignments. I have already solved one portion of the puzzle, the generation of multiple version of a question using latex/markdown + knitr/sweave, using seeds. I am now interested in developing a web-based system, that would use ...
B2B App authentication on GAE - Google Accounts or custom user base (Django or Web2Py)?
8,566,440
1
1
388
0
python,django,google-app-engine,web2py
Why both Create Django user from Google users. you will be able to adapt your system user with other system next
0
1
0
0
2011-12-19T19:28:00.000
4
0.049958
false
8,566,399
0
0
1
1
Which of these would you pick for a B2B app (targeting small/med-small businesses) built on GAE with python: Google Accounts Custom Users with Django Custom Users with Web2Py I'm very tempted to go the Google Accounts route as it's very well integrated into GAE and takes care of everything from user creation to sessi...
Django models definition ordering
8,567,426
1
7
2,130
0
python,django,models
Do you really need that method that returns all instances of model1 that have that foreign key? You can use the related field manager from model2 to achieve that. Model2.field_in_model1_set.all() ?
0
0
0
0
2011-12-19T19:41:00.000
3
0.066568
false
8,566,559
0
0
1
1
For example, I have 2 models: Model1 and Model2. Model1 has field ForeignKey(Model2). Model2 has method, that returns all instances of Model1 which has this instance of Model2 as ForeignKey. But it doesn't work, because Model2 is defined after Model1 and it knows nothing about Model2. How to solve this problem?
How do I remove a query from a url?
8,620,843
13
16
13,148
0
python,url,scrapy,web-crawler
There is a function url_query_cleaner in w3lib.url module (used by scrapy itself) to clean urls keeping only a list of allowed arguments.
0
0
1
0
2011-12-19T20:31:00.000
6
1
false
8,567,171
0
0
1
1
I am using scrapy to crawl a site which seems to be appending random values to the query string at the end of each URL. This is turning the crawl into a sort of an infinite loop. How do i make scrapy to neglect the query string part of the URL's?
Is there an equivalent of a SQL View in Google App Engine Python?
8,570,245
5
2
106
1
python,sql,google-app-engine
Read-only views (the most common type) are basically queries against one or more tables to present the illusion of new tables. If you took a college-level database course, you probably learned about relational databases, and I'm guessing you're looking for something like relational views. The short answer is No. The GA...
0
1
0
0
2011-12-20T02:21:00.000
2
1.2
true
8,570,066
0
0
1
1
I've been learning python by building a webapp on google app engine over the past five or six months. I also just finished taking a databases class this semester where I learned about views, and their benefits. Is there an equivalent with the GAE datastore using python?
Python:Django: Signal handler and main thread
34,890,531
3
9
10,539
0
python,django,multithreading,signal-handling
I use Python 3.5 and Django 1.8.5 with my project, and I met a similar problem recently. I can easily run my xxx.py code with SIGNAL directly, but it can't be executed on Django as a package just because of the error "signal only works in main thread". Firstly, runserver with --noreload --nothreading is usable but it r...
0
0
0
0
2011-12-20T08:51:00.000
4
0.148885
false
8,572,830
0
0
1
1
I am building a django application which depends on a python module where a SIGINT signal handler has been implemented. Assuming I cannot change the module I am dependent from, how can I workaround the "signal only works in main thread" error I get integrating it in Django ? Can I run it on the Django main thread? Is t...
Django - Upload a valid image
8,575,511
2
4
2,152
0
python,django,python-imaging-library,django-models
And don't forget about jpeg-lib! Without it PIL willn't understand with what format it can works.
0
0
0
0
2011-12-20T12:01:00.000
4
1.2
true
8,575,120
0
0
1
2
I'm using Ubuntu, Django 1.3, Python 2.7. When I try to upload certain types of image, I get this message: Upload a valid image. The file you uploaded was either not an image or a corrupted image. It's happening with PNG and JPG (the formats that I need). tiff and gif (that I don't and will never care about) are work...
Django - Upload a valid image
32,456,956
0
4
2,152
0
python,django,python-imaging-library,django-models
I found that this error can be caused by IntegrityError while saving to db
0
0
0
0
2011-12-20T12:01:00.000
4
0
false
8,575,120
0
0
1
2
I'm using Ubuntu, Django 1.3, Python 2.7. When I try to upload certain types of image, I get this message: Upload a valid image. The file you uploaded was either not an image or a corrupted image. It's happening with PNG and JPG (the formats that I need). tiff and gif (that I don't and will never care about) are work...
django: Fat models and skinny controllers?
8,591,009
4
19
9,951
0
python,django,model-view-controller
It depends of what your application is about, but the beauty of Django is that it does not enforce you to put your logical code in your views or in your models, this is your call. If you think that some logic is strongly related to your model then you can make a method of it. The rule (for me) is that your model should...
0
0
0
0
2011-12-21T13:21:00.000
3
0.26052
false
8,590,468
0
0
1
1
This is a general architecture question. I read in many places that in an MVC framework, (1) models ought to be fat, and controllers ought to be skinny. But I also read that (2) the details depend on the framework you're developing in. So, what if you're developing in django? My experience with django is that a lot ...
deploying a python web application
8,592,171
0
0
215
0
python,web
You can get a virtual server instance on amazon or rackspace or many others for a very small fee per month, $20 - $60. This will give you a clean install of the OS of your choice. No need to invest in hardware. From there you can follow any of the many many tutorials on deploying a django app.
0
0
0
1
2011-12-21T14:43:00.000
1
1.2
true
8,591,602
0
0
1
1
hi every one I was wondering how to go about deploying a small time python database web application. Is buying some cheap hardware and installing a server good on it a good route to go?
Using a single database file in django is feasible?
8,591,934
0
0
89
0
python,django
Database file (sqlite3) is meant for development purposes. For any application with reasonable traffic you should choose mysql or postgres
0
0
0
0
2011-12-21T15:04:00.000
3
0
false
8,591,910
0
0
1
1
I would like to start a project in django.My doubt is that ,since django is using a single database file. Is that feasible? Actually planned to create a 'wiki' like application that stores articles in a database. Using a single database file ??? Will it be?
How to load Firefox with javascript disable when running Selenium Webdriver (Python) tests?
8,613,669
0
1
1,288
0
javascript,python,selenium,automated-tests
You can use the -firefoxProfileTemplate command line option when starting the Selenium server. But it seems rather counterproductive to disable javascript when testing how browsers behave on your site (unless your site doesn't have any scripts of its own) - you should rather use adblock, or disable the IP used by Googl...
0
0
1
0
2011-12-23T07:40:00.000
1
0
false
8,613,440
0
0
1
1
I heard one can load a custom Firefox profile when starting webdriver, but I've yet to find a way to do that. The Python binding documentation doesn't state it very clearly. I need to start up Firefox without JS because the site I'm testing has a lot of ads injected by Google and some are very slow to load, making the ...
How to keep global variables persistent over multiple google appengine instances?
8,617,102
0
2
2,158
0
python,google-app-engine,variables,global
Interesting question. Some bad news first, I don't think there's a better way of storing data; no, you won't be able to stop new instances from spawning and no, you cannot make seperate instances always have the same data. What you could do is have the instances perioidically sync themselves with a master record in th...
0
1
0
0
2011-12-23T13:10:00.000
4
0
false
8,616,487
0
0
1
3
Our situation is as follows: We are working on a schoolproject where the intention is that multiple teams walk around in a city with smarthphones and play a city game while walking. As such, we can have 10 active smarthpones walking around in the city, all posting their location, and requesting data from the google app...
How to keep global variables persistent over multiple google appengine instances?
8,617,199
0
2
2,158
0
python,google-app-engine,variables,global
Consider jabber protocol for communication between peers. Free limits are on quite high level for it.
0
1
0
0
2011-12-23T13:10:00.000
4
0
false
8,616,487
0
0
1
3
Our situation is as follows: We are working on a schoolproject where the intention is that multiple teams walk around in a city with smarthphones and play a city game while walking. As such, we can have 10 active smarthpones walking around in the city, all posting their location, and requesting data from the google app...
How to keep global variables persistent over multiple google appengine instances?
8,624,587
3
2
2,158
0
python,google-app-engine,variables,global
You should be using memcache. If you use the ndb (new database) library, you can automatically cache the results of queries. Obviously this won't improve your writes much, but it should significantly improve the numbers of reads you can do. You need to back it with the datastore as data can be ejected from memcache at ...
0
1
0
0
2011-12-23T13:10:00.000
4
1.2
true
8,616,487
0
0
1
3
Our situation is as follows: We are working on a schoolproject where the intention is that multiple teams walk around in a city with smarthphones and play a city game while walking. As such, we can have 10 active smarthpones walking around in the city, all posting their location, and requesting data from the google app...
Python 2.7.2 and Google App Engine SDK 1.6.1 on Win 7 Home Premium not working
13,126,746
2
9
2,601
0
python,windows,google-app-engine
I was facing the same issue, browse button was disabled. I ran dev_appserver.py helloworld command at command prompt and then opened localhost:8080 in my browser the hello world program ran successfully.
0
1
0
0
2011-12-23T23:25:00.000
8
0.049958
false
8,621,527
0
0
1
6
I have installed Python 2.7.2 (Win7 32-bit) and Google App Engine SDK 1.6.1 for Win7 on a 64-bit system running Win7 Home Premium. Default folder locations for both Python and GAE. When I try to run the helloworld project as described in the Google Python Getting Started doc, the Launcher's "browse" button never beco...
Python 2.7.2 and Google App Engine SDK 1.6.1 on Win 7 Home Premium not working
8,622,105
0
9
2,601
0
python,windows,google-app-engine
Do you see anything in the GAE SDK logs? Which browser are you using? What is your default browser? The default security settings in IE require you to enable intranet access. I recently had to rebuild my Win7 dev box. Chrome was my default browser. When I installed GAE SDK v1.6.1 I had a similar problem to what you d...
0
1
0
0
2011-12-23T23:25:00.000
8
0
false
8,621,527
0
0
1
6
I have installed Python 2.7.2 (Win7 32-bit) and Google App Engine SDK 1.6.1 for Win7 on a 64-bit system running Win7 Home Premium. Default folder locations for both Python and GAE. When I try to run the helloworld project as described in the Google Python Getting Started doc, the Launcher's "browse" button never beco...
Python 2.7.2 and Google App Engine SDK 1.6.1 on Win 7 Home Premium not working
11,284,009
0
9
2,601
0
python,windows,google-app-engine
I am quite sure that is because you had changed the encode from ANSI to another type (such as UTF-8) on app.yaml, change it back to ANSI, then you can run the project on google app engine launcher. BTW, the helloworld tutorial on google has no problem.
0
1
0
0
2011-12-23T23:25:00.000
8
0
false
8,621,527
0
0
1
6
I have installed Python 2.7.2 (Win7 32-bit) and Google App Engine SDK 1.6.1 for Win7 on a 64-bit system running Win7 Home Premium. Default folder locations for both Python and GAE. When I try to run the helloworld project as described in the Google Python Getting Started doc, the Launcher's "browse" button never beco...
Python 2.7.2 and Google App Engine SDK 1.6.1 on Win 7 Home Premium not working
17,632,351
0
9
2,601
0
python,windows,google-app-engine
I had a similar issue; it turned out my problem was not due to environment variables. Debugging GAE: First off let me say that if you are having problems with GAE, I would strongly recommend launching using the CLI, google_appengine/dev_appserver.py. There is a large stack trace of the reason GAE is failing (instead o...
0
1
0
0
2011-12-23T23:25:00.000
8
0
false
8,621,527
0
0
1
6
I have installed Python 2.7.2 (Win7 32-bit) and Google App Engine SDK 1.6.1 for Win7 on a 64-bit system running Win7 Home Premium. Default folder locations for both Python and GAE. When I try to run the helloworld project as described in the Google Python Getting Started doc, the Launcher's "browse" button never beco...
Python 2.7.2 and Google App Engine SDK 1.6.1 on Win 7 Home Premium not working
31,930,984
2
9
2,601
0
python,windows,google-app-engine
I compared the helloworld example to the guestbook demo and found that the application element was key. I added the line at the top of the app.yaml file "application: helloworld" and the helloworld example started working in the Google App Engine (GAE). Note that the 'application' element is supposed to be optional a...
0
1
0
0
2011-12-23T23:25:00.000
8
0.049958
false
8,621,527
0
0
1
6
I have installed Python 2.7.2 (Win7 32-bit) and Google App Engine SDK 1.6.1 for Win7 on a 64-bit system running Win7 Home Premium. Default folder locations for both Python and GAE. When I try to run the helloworld project as described in the Google Python Getting Started doc, the Launcher's "browse" button never beco...
Python 2.7.2 and Google App Engine SDK 1.6.1 on Win 7 Home Premium not working
31,988,393
0
9
2,601
0
python,windows,google-app-engine
I did two changes together - 1. added the line at the top of app.yaml file "application:helloworld" 2. changed the last line in app.yaml "script: helloworld.app" to "script: helloworld.py" my GAE started working. However to islolate the issue I 'undid' both changes, it turns out that the the 2nd change - changing hello...
0
1
0
0
2011-12-23T23:25:00.000
8
0
false
8,621,527
0
0
1
6
I have installed Python 2.7.2 (Win7 32-bit) and Google App Engine SDK 1.6.1 for Win7 on a 64-bit system running Win7 Home Premium. Default folder locations for both Python and GAE. When I try to run the helloworld project as described in the Google Python Getting Started doc, the Launcher's "browse" button never beco...
rvmsudo analog for python/virtualenv
8,662,790
1
0
191
0
python,rvm,virtualenv
One work around is to use "sudo -E". This will preserve the calling user's environment across the sudo. Note that if the adversary controls your environment this is an immediate root exploit (via LD_LIBRARY_PATH and similar).
0
1
0
0
2011-12-25T15:49:00.000
1
0.197375
false
8,630,305
1
0
1
1
As anyone who knows what virtualenv does for python there is an analog for ruby. What's interesting about the ruby installation is that there is a "rvmsudo" that projects the current rvm environment on the root/sudo user before executing the requested command. virtualenv does not offer an obvious implementation of the ...
Click the javascript popup through webdriver
8,631,520
0
20
38,288
0
python,selenium,webdriver,web-scraping,alert
that depends on the javascript function that handles the form submission if there's no such function try to submit the form using post
0
0
1
0
2011-12-25T20:50:00.000
6
0
false
8,631,500
0
0
1
1
I am scraping a webpage using Selenium webdriver in Python The webpage I am working on, has a form. I am able to fill the form and then I click on the Submit button. It generates an popup window( Javascript Alert). I am not sure, how to click the popup through webdriver. Any idea how to do it ? Thanks
Flask virtualenv
9,362,915
4
3
2,147
0
python,virtualenv,ubuntu-10.04,flask
type 'python' in shell and then type 'import flask', if there is no error, you can use it.
0
0
0
0
2011-12-27T13:18:00.000
3
0.26052
false
8,645,093
1
0
1
1
I am trying to set up Flask on Ubuntu 10.04 LTS. I have install virtualenv 1.7 I am using python 2.6 I set my virtualenv and easy_install Flask But when I check in my python import Flask fails The Flask.egg is present in my virtualenv site-pakages. Any suggestions ?
How do I set Django to use Python 2.7 instead of the default Python 2.4?
8,650,131
1
4
7,887
0
python,django
Just run this command into your command shell: python2.7 /path/to/manage.py runserver Then Django will run under python 2.7
0
0
0
0
2011-12-27T22:31:00.000
3
0.066568
false
8,649,965
0
0
1
1
I am using CentOS. The default python installed is 2.4 and I also installed 2.7 in order to use Django. How can I configure Django to use /usr/local/bin/python2.7 instead of just the default python command? I have to leave the default Python as 2.4 because other services such as yum don't run with 2.7. Or is there ot...
OpenERP - Report Creation
9,046,631
1
1
6,171
0
python,report,openoffice.org,openerp,openoffice-writer
First you save .odt file then connect with server and select open new report and then send it ti server with proper report name and then keep on editing your report by selecting the option modify existing report.
0
0
0
0
2011-12-28T03:54:00.000
4
0.049958
false
8,651,668
0
0
1
1
I am trying to create a new report with report plugin and openoffice but I don't know how to assign it in the OpenERP system. Is there someone who can give me exact steps for creation of new report and integration with openerp? Thanks in advance!
Can python's importlib work in concurrent environment?
9,348,456
0
2
139
0
python,django,concurrency
If by concurrent environment, you mean separate processes, then it should be perfectly fine. If you are sharing imported modules among threads of same application, it should still be fine, as long as they are python threads and the modules imported are pure-python. For what it's worth, I hope you are not using sub-inte...
0
0
0
0
2011-12-28T06:20:00.000
1
0
false
8,652,585
1
0
1
1
I have a question. I'm using importlib in Django to dynamic load a specific module at runtime, and then using the imported module to work around. Using this way can reduce much code in my project. But I'm not sure whether it is suitable for concurrent environment. Can anyone enlighten me?
wxPython GUI on a web page?
8,654,270
0
1
669
0
python,html,wxpython
You can use Javascript to create your own GUI to show. Maybe Google's NaCl is far enough advanced but it won't give you the cross browser compatibility you'll probably like. If you look at broadway (which is linked in one of the other answers), you'll need to run an X session for each user.
1
0
0
0
2011-12-28T09:37:00.000
2
0
false
8,654,165
0
0
1
1
Is it possible to embed a wxPython based GUI in an HTML page? If not, is there any other option other than Java applets to make GUIs that can be embedded onto an HTML page?
Error: No module named staticfiles in django 1.3.1 + python 2.6? what's wrong
64,820,990
0
1
1,835
0
python,django,aptana
use {% load static %} instead of {% load staticfiles %} in the new version of Django, the syntax of loading static files changed
0
0
0
0
2011-12-28T12:29:00.000
2
0
false
8,655,938
0
0
1
1
I didn't worked on the django project for somedays and now I return and I can't work on it. When I debug or run in eclipse aptana I get the "Error: No module named staticfiles" error. I have even updated aptana to today's updates and no luck. I have uninstalled the django, delete all files and reinstall. If I import d...
setup.py that pulls in non-Python github repos and puts them in the correct directory?
8,658,725
2
7
2,129
0
python,django,git,github,setup.py
An alternative to this would be to provide a requirements.txt file for use with pip. You can specify git and mercurial repos as well as packages from PyPI, so that the user would just have to do pip install -r requirements.txt to get the whole project.
0
0
0
0
2011-12-28T15:45:00.000
2
0.197375
false
8,657,959
1
0
1
1
Is it possible to create a setup.py file that: Pulls in a github repository places the files from that repository into a specified folder I'm setting up a django package/app that uses third-party JavaScript frameworks available on github. I'd like to be able to have setup.py pull the latest version from github and t...
Django: Remove "view on site" button in the admin User change form
50,468,736
0
12
7,467
0
python,django,django-admin,django-authentication
use admin.site.site_url = "your url here" in url.py of ur main app to modify the "visit site" on django page and for "view_on_site" removal use view_on_site = False in ur class with display_list for
0
0
0
0
2011-12-28T23:15:00.000
9
0
false
8,662,359
0
0
1
1
get_absolute_url() method is cool, but in some cases is not needed. django.contrib.auth.models.User has it set by default, this cause my projects to have a broken link in the admin. How can I prevent that from happening? In one of my old projects I set a custom template in which I removed the html of the button, it doe...
How to maintain server-initiated FTP connection between client requests in Python/Django?
8,664,646
0
0
631
0
python,django,html,ftp
You'll need to use a persistent connection framework as what you're trying to achieve really isn't what HTTP was meant for (in the sense that HTTP commands are stateless and independent), and thus not what Django is built for. There are a number of options, but since it seems you are in a restricted environment you'll ...
0
0
1
0
2011-12-29T02:24:00.000
2
1.2
true
8,663,391
0
0
1
2
I'm going to use ftplib to open up an FTP connection to an FTP server provided by the user. The client will be sending FTP commands to my django server via Ajax, which will then be forwarded to the FTP server the user provided. However, I'd like to not have to create a new FTP server connection every time the client s...
How to maintain server-initiated FTP connection between client requests in Python/Django?
8,665,512
0
0
631
0
python,django,html,ftp
Switch hosts. Webfaction allows websockets with dedicated IP at around $20 per month.
0
0
1
0
2011-12-29T02:24:00.000
2
0
false
8,663,391
0
0
1
2
I'm going to use ftplib to open up an FTP connection to an FTP server provided by the user. The client will be sending FTP commands to my django server via Ajax, which will then be forwarded to the FTP server the user provided. However, I'd like to not have to create a new FTP server connection every time the client s...
Website Links to Downloadable Files Don't Seem to Update
8,674,108
0
0
45
0
python,html,web
I don't know anything about Python, but in PHP, in some fopen modes, if a file is trying to be made with the same name as an existing file, it will cancel the operation.
0
0
1
1
2011-12-29T22:08:00.000
1
0
false
8,674,077
0
0
1
1
I have a problem with links on my website. Please forgive me if this is asked somewhere else, but I have no idea how to search for this. A little background on the current situation: I've created a python program that randomly generates planets for a sci-fi game. Each created planet is placed in a text file to be viewe...
How to specify schema name while running "syncdb" in django?
42,578,440
0
7
4,285
1
python,database,django
I have used following info and work for me 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dab_name', 'USER': 'username', 'PASSWORD': 'password', 'HOST': 'localhost', 'PORT': '5432', 'OPTIONS': { 'options': '-c search_path=to...
0
0
0
0
2011-12-30T14:52:00.000
2
0
false
8,680,673
0
0
1
1
Assuming I have a schema with the name "my_schema", how can I create tables with "django syncdb" for that particular schema? Or is there any other alternatives for quickly creating tables from my django models? I think, by default django creates tables for the "public" schema.
Robocode + Python
18,469,631
1
3
1,489
0
python,jython,robocode
As long as your java-class extends robocode.Robot everything is recognized as robot. It doesn't matter where you put the class.
0
0
0
1
2011-12-30T20:00:00.000
1
0.197375
false
8,683,501
0
0
1
1
The question is, how do you make a robot for Robocode using Python? There seem to be two options: Robocode + Jython Robocode for .NET + Iron Python There's some info for the first, but it doesn't look very robust, and none for the latter. Step by step, anyone?
tornado.web : Is there a method which is called after the actual handler method?
9,072,583
3
1
922
0
python,tornado
Starting Tornado 2.2 now you can override RequestHandler.on_finish for post-request processing.
0
1
0
0
2011-12-31T06:28:00.000
2
1.2
true
8,686,745
0
0
1
1
Tornado web framework seems to expose a method RequestHandler.prepare() which is called before the actual handler method. I was wondering if there's a similar method which is called after the handler ?
how to decompile user password in django
8,688,811
5
0
263
0
python,django,sha1
You are asking the impossible. The passwords are salted and hashed. The way they're validated is by performing the same process on the re-supplied password. There's no way to 'decrypt' it.
0
0
0
0
2011-12-31T14:51:00.000
1
1.2
true
8,688,762
0
0
1
1
I have a SECRET_KEY, how do i decompile a user password using python? I assume that the encryption method is sha1. thanks.
Exposing passwords in django
8,696,496
2
1
104
0
python,django
That assumes your database is only accessible from one specific host, and even then, why would you want to give a potential attacker another piece of information? Suppose you deploy this to a shared host and I have an account on there, I could connect to your database just by logging into my account on that box. Also,...
0
0
0
1
2012-01-02T00:09:00.000
2
0.197375
false
8,696,469
0
0
1
1
For a git repository that is shared with others, is it a vulnerability to expose your database password in the settings.py file? (My initial thought was no, since you still need the ssh password.)
How can I mail decrypted 'current password' of a django user created
8,697,977
1
0
1,188
0
python,django
Sending raw password is a bad idea, it's not secure. If user forgets his password, reset password form should be used instead of finding raw password in mail inbox. To answer your question I could suggest using form for getting raw password. If you'll have own form, you'll get access to all user-entered text, including...
0
0
0
0
2012-01-02T05:25:00.000
1
0.197375
false
8,697,664
0
0
1
1
How can I mail a decrypted 'current password' to a django user just created. eg I create a customer by inheriting the User model. Hence the user name and password get saved. Once the customer details are entered and saved. While overriding the save function for the customer form I trigger the send_mail function to send...
How to maintain when Django switches to Python 3?
8,698,193
2
6
270
0
python,django,python-3.x
Django (due to the immense amount of code running on it), will not, atleast in the near future, drop support for 2.x. It just doesn't make any sense. Any Python 3 is having trouble getting adoption right now; PyPy is picking up much, much faster. And, there's py2to3 which converts some parts to python 2 code to python...
0
0
0
0
2012-01-02T06:44:00.000
3
0.132549
false
8,698,140
0
0
1
1
I am in the process of learning Python and had a question about the future. I know it's not the most pressing thing to think about currently, but I'm curious. Currently, Django only supports up to Python 2.7. However, in the near future, it will be supporting Python 3. In terms of writing code in Python 2.7 and using ...
How would I create "Omegle"-like random chat with gevent?
8,712,328
1
1
2,300
0
python,gevent
If I've understood you right, you just need to link the second person with someone connected before. Think it's simple. The greenlet working with a person who comes first ('the first greenlet') just register somewhere it's inbound and outbound queues. The greenlet working with the second person gets this queues, unreg...
0
0
0
1
2012-01-02T14:39:00.000
1
1.2
true
8,702,080
0
0
1
1
I have searched tutorials and documentation for gevent, but seems that there isn't lots of it. I have coded Python for several years, also I can code PHP + JavaScript + jQuery. So, how would I create Omeglish chat, where one random person connects and then waits for another one to connect? I have understood that Omegle...
Generating IDs how to make IDs same length using zeroes?
8,709,167
1
0
171
0
python,google-cloud-datastore
"always(?)" indeed. Sweden = 46 looks like you mean the telephone not-necessarily-a-country code which is VARIABLE LENGTH ... for example CHINA = 86, HONG KONG (not a country) = 852, CANADA = USA = 1. Is your ID allowed to be variable length or not? If it is allowed to be variable, you would need do str(countrycode) + ...
0
0
0
0
2012-01-03T00:53:00.000
3
0.066568
false
8,706,850
0
0
1
1
Update: The requirement is "fixed length 9 digits" so 460 000 000 138 should be 460 000 138 I want to generate IDs on a special form such as 460 000 000 138 where 46 is the country code and the rest is the ID and this number always(?) has the same number of digits ie four pairs of threes. My input is this ID that can b...
What packaging option are available for python/django
8,717,036
0
0
182
0
python,django
Do you think you have to share your source code if you host your application on a 'shared hosting' provider? That's not the case. Your source code should still be private to you but the administrators of your hosting provider can get it too. Other normal Joe Users of the service shouldn't have access to your source cod...
0
0
0
0
2012-01-03T16:33:00.000
3
0
false
8,715,370
1
0
1
2
I am starting on developing a django application on a shared webhosting server(alwaysdata.com). I would like to understand what are the packaing options available to package a django application (preferably in compiled form) I would like to setup the source code repository on my system and build using the python packag...
What packaging option are available for python/django
8,733,563
1
0
182
0
python,django
How is this API key used? Is it a google maps api? Is it provided in scripts that go to the browser? If so, it's already out in the open, anyone using your site will see it, so you're trying to provide a $100 lock for a $0.01 piece of information. If it's a google maps api, it's not secured by keeping it hidden, but ...
0
0
0
0
2012-01-03T16:33:00.000
3
0.066568
false
8,715,370
1
0
1
2
I am starting on developing a django application on a shared webhosting server(alwaysdata.com). I would like to understand what are the packaing options available to package a django application (preferably in compiled form) I would like to setup the source code repository on my system and build using the python packag...
Controlling http streams with python threads
8,718,262
1
0
114
0
python,multithreading,http,pycurl,python-multithreading
I would suggest to have one controling thread which spawns http streaming threads, and such a streaming thread implements the proper handling for a connection loss or timeout (e.g. either terminating itself or telling to controling thread that a new streaming thread should be spawned for a reconnect). Depending on your...
0
0
0
0
2012-01-03T20:19:00.000
1
0.197375
false
8,718,081
1
0
1
1
I am implementing an app consuming a few http streams at the same time. All threads (a pycurl object each) are spawned in the same loop. The trick is how to build a proper architecture for handling reconnects. Is it a good practice to create a separate controller thread that somehow checks which connections are not ali...
Is there a Python equivalent to PHP-FPM?
8,718,932
1
2
1,732
0
python,nginx,php
How about supervisor with uwsgi?
0
0
0
1
2012-01-03T21:28:00.000
1
1.2
true
8,718,870
0
0
1
1
I'm starting a web project in Python and I'm looking for a process manager that offers reloading in the same manner as PHP-FPM. I've built stuff with Python before and Paste seems similar to what I want, but not quite. The need for the ability to reload the process rather than restart is to allow long-running tasks to ...
Django and Rails - what should I expect in a Windows environment?
8,722,898
1
1
306
0
python,ruby-on-rails,windows,django,windows-7
I am using Django on Windows Vista and it works very well. I am using sqlite, mysql and postgres. mysql install is a bit tricky: I recommend to download the right binaries from the web. I am using popular django apps and python modules without any problem. However, I've made a quick test with GeoDjango and noticed tha...
0
0
0
0
2012-01-03T23:11:00.000
1
1.2
true
8,719,976
0
0
1
1
I work in an environment that is totally .NET. However, over the past few months I've been learning Ruby and Rails on the side and enjoying it very much. I have been using Windows 7 to develop - along with Aptana - and so far things have gone better than I expected. I have run into a few issues with gems on windows -...
What does an image look like as a Blob?
8,722,451
2
1
2,977
0
python,image,google-app-engine,blob
"Blob" stands for "Binary Large OBject". It's bytes. Just instantiate a db.Blob, passing the bytes.
0
1
0
0
2012-01-04T05:29:00.000
2
0.197375
false
8,722,427
0
0
1
1
I am working on an AppEngine application, to store images, they have to be stored in a BlobProperty. Is there a Mac/Linux way to convert images to their Blob representation or is there any tool (especially online) that can do this?
Python urlretrieve image
8,735,741
1
0
664
0
python,image
I know it sounds dumb but, speaking of experience, check that the device on which the script is saving the files is not full (or have permission problems or whatever). Modify your script to print out the URL instead of downloading the file. See if the URL is well printed and if there's no strange character that may be ...
0
0
1
0
2012-01-04T19:58:00.000
1
1.2
true
8,733,163
0
0
1
1
I'm downloading around 200 images from url's using urlretrieve. They all download correctly except for one. I have opened the url in my browser and the image loads correctly. urlretrieve downloads something for that image but it doesn't open. It gives me an error "The file xxx.jpg could not be opened." and it shows...
AppEngine Datastore query with inequality and sort (different attribute). Workaround?
8,735,561
2
0
177
0
python,google-app-engine
No, there's no way around this. This limitation exists due to how indexes are constructed. You'll simply have to do either the sorting or the filtering in memory, just as other databases would.
0
1
0
0
2012-01-04T20:16:00.000
1
1.2
true
8,733,403
0
0
1
1
Hey guys I know this is an old issue but I am wondering if there any news about it: I have a simple query where I want to do: filter('created >=', somedatetime).order('-counter') I tried: filter('created >=', somedatetime).order('-created').order('-counter') but because created is a datetime the results are pretty bad....
open an ssh tunnel from heroku python app on the cedar stack?
8,735,515
1
1
476
0
python,ssh,heroku,paramiko,cedar
Can you please post the STDERR of ssh -v -L .....? May be you need to disable the tty allocation and run ssh in batch mode.
0
0
1
1
2012-01-04T23:16:00.000
2
0.099668
false
8,735,487
0
0
1
1
Is it possible to open a non-blocking ssh tunnel from a python app on the heroku cedar stack? I've tried to do this via paramiko and also asyncproc with no success. On my development box, the tunnel looks like this: ssh -L local_port:remote_server:remote_port another_remote_server
Can I somehow tell to SAX parser to stop at some element and get its child nodes as a string?
8,744,989
1
3
1,889
0
python,xml,sax,saxparser
I don't believe it's possible with the xml.sax. BeautifulSoup has SoupStrainer which does exactly that. If you're open to using the library, it's quite easy to work with.
0
0
1
0
2012-01-05T15:00:00.000
4
0.049958
false
8,744,604
0
0
1
1
I have pretty big XML documents, so I don't want to use DOM, but while parsing a document with SAX parser I want to stop at some point (let's say when I reached element with a certain name) and get everything inside that element as a string. "Everything" inside is not necessary a text node, it may contain tags, but I d...
I have two django sites. How can I tell if a user is already authenticated on one of them?
8,754,198
1
2
120
0
python,django,authentication,single-sign-on
Use a session backend that uses a common store (a database, or redis), which is accessible to both; or openid as suggested by alf.
0
0
0
0
2012-01-05T23:05:00.000
1
0.197375
false
8,751,208
0
0
1
1
I have two sites that are very closely linked and both are built with django. They have the same set of users. How would I tell on one site if the user is authenticated on the other?
Is it possible to return a reference property in an App Engine computed property?
8,752,433
2
0
86
0
python,google-app-engine,model,reference
To do this you'd have to write your own custom Property subclass. You should be able to do so by examining the code behind ComputedProperty and ReferenceProperty; in effect you'd be combining the two.
0
1
0
0
2012-01-06T01:06:00.000
1
1.2
true
8,752,168
0
0
1
1
I have a model with an attribute that is a reference to another model. The model it references depends on some logic. Is there a way to have a computed property that gives me the same ReferenceProperty niceties (reverse references, dereferencing)? So far I the computed property stores a db.Key, but this is not optimal....
Grabbing a .jsp generated PNG in Python
8,758,625
1
0
214
0
python,jsp,png,screen-scraping,mechanize
If you use urllib correctly (for example, making sure your User-Agent resembles a browser etc), the "gibberish" you get back is the actual file, so you just need to write it out to disk (open the file with "wb" for writing in binary mode) and re-read it with some image-manipulation library if you need to play with it. ...
0
0
1
0
2012-01-06T12:56:00.000
1
1.2
true
8,758,131
0
0
1
1
I am trying to grab a PNG image which is being dynamically generated with JSP in a web service. I have tried visiting the web page it is contained in and grabbing the image src attribute; but the link leads to a .jsp file. Reading the response with urllib2 just shows a lot of gibberish. I also need to do this while log...
Archetypes vs. Dexterity for new content types and new field types
8,760,668
5
2
641
0
python,plone
As the initial developer of Dexterity, I'm quite biased, but: Dexterity is cleaner and more 'modern' Dexterity is more consistent with the rest of modern Zope and Plone Dexterity has less boilerplate and Dexterity types generally use less code Dexterity lets you evolve from through-the-web schemata to filesystem devel...
0
0
0
0
2012-01-06T13:39:00.000
2
1.2
true
8,758,666
0
0
1
1
I've been out of the Plone world for a few years (since about Plone 2.5) and I'm trying to get my bearings as to where to invest my time creating new content types, specifically, with new custom fields (including custom view & edit widgets). Can someone help me understand the decision points between Archetypes versus D...
How to give delay between each requests in scrapy?
33,116,540
7
51
47,919
0
python,web-scraping,scrapy
Delays Can we set in 2 says:- We can specify the delay while running the crawler. Eg. scrapy crawl sample --set DOWNLOAD_DELAY=3 ( which means 3 seconds delay between two requests) Or else we can specify Globaly in the settings.py DOWNLOAD_DELAY = 3 by default scrapy takes 0.25 seconds delay between 2 requests.
0
0
1
0
2012-01-07T08:44:00.000
6
1
false
8,768,439
0
0
1
1
I don't want to crawl simultaneously and get blocked. I would like to send one request per second.
Display user group of logged in user in django admin change_form.html?
8,769,513
2
1
1,211
0
python,django
Not sure if you can do it directly in the template though you can try iterating over user.groups.all()
0
0
0
0
2012-01-07T11:50:00.000
1
1.2
true
8,769,455
0
0
1
1
How to display user group of logged in user in django admin change_form.html ? I want to display the group name of the logged in user in the change_form of a model. Eg I am able to display the user name by using {{ user }} tag. How to display {{ user.groups__name }}
Learning Django - Good starter project
8,772,447
2
8
1,466
0
python,django,project
If you want to use payment processing you should probably make a store of some sort . I for one have a kikstarter/rockethub clone project queued in my want-to-do projects list . But you should try thinking at something that you would use and isn't out there at the moment , something that would solve some needs of yours...
0
0
0
0
2012-01-07T19:24:00.000
2
1.2
true
8,772,368
0
0
1
2
I am presently embarking to learn Python and Django together and I have gained a fair bit of theoretical knowledge to help me out. However, I'm after a good project that I can dig into which will offer me experience in Python, Django, MySQL, HTML5, CSS3, and various initiatives such as OpenID and maybe even payment pro...
Learning Django - Good starter project
9,969,956
1
8
1,466
0
python,django,project
Some suggestions: A personal blog. A social network, think about something... a Social network for Cat Lovers ? for Hunters ? Do free stuff for you'r friends/family or even advertise yourself. Improve an already existing website. You don't like Google ? Build a better Search Engine !
0
0
0
0
2012-01-07T19:24:00.000
2
0.099668
false
8,772,368
0
0
1
2
I am presently embarking to learn Python and Django together and I have gained a fair bit of theoretical knowledge to help me out. However, I'm after a good project that I can dig into which will offer me experience in Python, Django, MySQL, HTML5, CSS3, and various initiatives such as OpenID and maybe even payment pro...
Advanced screen-scraping using curl
8,773,176
1
0
686
0
python,curl,screen-scraping
You could observe what requests are made when you click the button (using Firebug in Firefox or Developer Tools in Chrome). You may then be able to request the PDF directly. It's difficult to help without seeing the page in question.
0
0
1
0
2012-01-07T20:37:00.000
4
0.049958
false
8,772,935
0
0
1
2
I need to create a script that will log into an authenticated page and download a pdf. However, the pdf that I need to download is not at a URL, but it is generated upon clicking on a specific input button on the page. When I check the HTML source, it only gives me the url of the button graphic and some obscure name o...
Advanced screen-scraping using curl
8,773,567
2
0
686
0
python,curl,screen-scraping
Try mechanize or twill. HttpFox or firebug can help you to build your queries. Remember you can also pickle cookies from browser and use it later with py libs. If the code is generated by javascript it could be possible to 'reverse engineer' it. If nof you can run some javascript interpret or use selenium or windmill t...
0
0
1
0
2012-01-07T20:37:00.000
4
1.2
true
8,772,935
0
0
1
2
I need to create a script that will log into an authenticated page and download a pdf. However, the pdf that I need to download is not at a URL, but it is generated upon clicking on a specific input button on the page. When I check the HTML source, it only gives me the url of the button graphic and some obscure name o...
How to make a pretty Python web app?
20,160,269
0
2
7,102
0
python,ajax,web,web-frameworks
I found interesting web2py framework, easy to install, and it has o lot of features as "from the box"
0
0
0
0
2012-01-07T20:52:00.000
5
0
false
8,773,029
0
0
1
1
I'm looking for a python web framework that is easy to use and allows me to generate some nice looking user interfaces on the fly. I have not much experience with web development and don't want to spent much time to learn internals. So far I use cherrypy and mako templating to serve the app. My problem is, it just look...
Changing privacy of old Facebook posts using the Graph API
8,781,271
1
4
740
0
php,python,facebook,api,facebook-graph-api
1) Nope. 2) Yes, you can use the Graph API and HTTP Get me/feed?until={date}
0
0
1
0
2012-01-08T16:29:00.000
1
1.2
true
8,779,159
0
0
1
1
So I was flicking through my Facebook Timeline, and started to look at some old posts I made in 2009~2010. And they're a bit stupid and I'd like to remove them or change the privacy settings on them. There are too many to do it individually, so I've been looking at the Graph API. However, I have been unable to find an...
Python alternative to Java applet?
8,787,013
6
9
11,614
0
java,python,physics,simulation
In this day and age, you might look to the HTML 5 canvas & JS.
0
0
0
0
2012-01-09T10:16:00.000
6
1
false
8,786,842
0
0
1
1
Is there an alternative to making educational Java applets for physics simulations like projectile motion, gravity, etc?
Get n'th element with given class name with WebDriver
8,788,422
2
2
2,275
0
python,webdriver
There is a find_elements_by_class_name, notice the elements (plural) method which returns an iterator. To find the n'th element simply replace num: find_elements_by_class_name('className')[num] This should return all DOM elements with the same class name.
0
0
1
0
2012-01-09T12:16:00.000
1
1.2
true
8,788,299
0
0
1
1
I'm using .find_element_by_class_name() to get an element with a given class name. It seems that the returned element is the first with the class name. How can I get the n'th element with that class name? Also, is it possible to get all the DOM elements with a given class name?
Test how my website appears to a program
8,795,433
3
0
101
0
python,html,google-app-engine,browser,search-engine
Some search engines cannot index dynamic pages. Not true. Clients cannot know and do not care if the server got the content by executing a script or just reading a static file. Most search engines won't execute client side JavaScript. Most search engines will not submit forms. If your content is accessible by followin...
0
0
0
0
2012-01-09T21:20:00.000
2
0.291313
false
8,795,361
0
0
1
1
A website may be accessed not only by a user on a browser, but also programs, bots and crawlers. I have a website running on Google App Engine with python which has non-static HTML pages that are generated by a python program by combining, merging and looping strings. However, they are also not dynamic pages in the sen...
Handling GAE BlobStore Exception via webapp2 handler
8,797,080
3
1
194
0
python,google-app-engine,requesthandler
The 413 is generated by the App Engine infrastructure; the request neve reaches your app, so it's impossible to handle this condition yourself.
0
1
0
0
2012-01-09T22:12:00.000
1
0.53705
false
8,795,879
0
0
1
1
I have been banging my head around on this issue for a bit and have not come up with a solution. I am attempting to trap the exception UploadEntityTooLargeEntity. This exception is raised by GAE when 2 things happen. Set the max_bytes_total param in the create_upload_url: self.template_values['AVATAR_SAVE_URL'] = bl...
Securing communication [Authenticity, Privacy & Integrity] with mobile app?
8,799,339
-1
34
6,963
0
android,iphone,python,django,security
Use client authentication with SSL or just layer your own client authentication (username/password, token, etc) on top of server-authentication SSL. (Edit: Moving the comment here, since it won't fit as a comment) To elaborate a bit, any authentication info needs to be stored or entered in the app. If you have people ...
0
0
0
0
2012-01-10T04:51:00.000
3
-0.066568
false
8,798,707
0
0
1
1
An Android/Iphone app will be accessing application data from the server. [Django-Python] How can I secure the communication with the mobile app ? Expectation : Secure enough for sensitive information like passwords, there shall be no direct way of decryption except brute-forcing. My requirements : Authentication [On...
URLFetch behind a Proxy Server on App Engine Production
8,807,655
3
6
2,065
0
python,google-app-engine,proxy,urlfetch
You can always roll your own: In case of fixed destination: just setup a fixed port forwarding on a proxy server. Then send requests from GAE to proxy. If you have multiple destinations, then set forwarding on separate ports, one for each destination. In case of dynamic destination (too much to handle via fixed port ...
0
1
0
0
2012-01-10T07:27:00.000
2
1.2
true
8,799,886
0
0
1
1
Is there a way to specify a proxy server when using urlfetch on Google App Engine? Specifically, every time I make a call using urlfetch, I want GAE to go through a proxy server. I want to do this on production, not just dev. I want to use a proxy because there are problems with using google's outbound IP addresses (r...
Django-cms and Editorial workflows
8,821,441
1
4
1,990
0
python,django,workflow,django-cms
When you turn on CMS_MODERATION in Django-CMS, you will get three icons next to each page in the page list view. From left to right, these control whether changes to this page will require moderator approval whether changes to this page's children will require moderator approval whether changes to this page's descende...
0
0
0
0
2012-01-10T16:28:00.000
2
1.2
true
8,806,705
0
0
1
1
I need to implement workflows in my Django-CMS application at work. But form the Django-CMS feature list, we can read: Editorial workflow Workflows for publishing and approval. I tried to search for it and didn't find anything. I've search the Django-CMS documentation (http://docs.django-cms.org/en/latest/index.html) a...
Parsing and splitting multiple HTML pages without having a clue
8,854,322
1
0
218
0
python,regex,html-parsing,data-mining
If you need to do classification given the content of pages, I would suggest you to take a look at NLTK (http://www.nltk.org/), a natural language toolkit of open source python modules. Don't just try to look at occurrences of e.g. "report" in the the pages. A report may or may not have "report" as a title or in the co...
0
0
1
0
2012-01-11T09:56:00.000
2
0.099668
false
8,817,296
0
0
1
1
I have the some 50 raw HTML page contents which are relevant to my project. I am not sure these contents are having unique pattern. I need to parse the contents from all pages and has to be classified based on the keywords. Keywords all like that 'REVIEWS',"REPORTS","FEEDBACK","DESCRIPTION","COMMENTS","SUCCESS RATES","...
what's the popular and recommendatory lightweight java(or python?) web application framework?
8,831,216
0
2
3,214
0
java,python,frameworks,web
Spring MVC 3 is in my experience the most flexible extensible and speedy web framework around Spring's main purpose was to introduce Dependency Injection for objects. Another Java lightweight MVC frameworks is Wicket. Stripes framework Lightweight Action based Convention over configuration approach No XML Smart and...
0
0
0
0
2012-01-12T06:23:00.000
5
0
false
8,830,977
0
0
1
2
I need to develop a lightweight web application, it will: have a simple webgui for administrator to operate; have interface to invoke background existing modules for functionality implement, let's assume it has shell invoke interface firstly, it is not clear yet. so my question is do we have any popular and recom...
what's the popular and recommendatory lightweight java(or python?) web application framework?
8,831,308
0
2
3,214
0
java,python,frameworks,web
Wonder why Struts has not found place in above list ? Is it too heavy ?
0
0
0
0
2012-01-12T06:23:00.000
5
0
false
8,830,977
0
0
1
2
I need to develop a lightweight web application, it will: have a simple webgui for administrator to operate; have interface to invoke background existing modules for functionality implement, let's assume it has shell invoke interface firstly, it is not clear yet. so my question is do we have any popular and recom...
How could I do this kind of scheduled task in AppEngine Python?
8,838,811
2
0
170
0
python,google-app-engine
You've said that you're storing the target time in the Alarm table. So, your cron just has to run every minute (or every 5 or 10, depending on the resolution of your alarms) and check if there's an alarm matching the current time, and if so then do the action.
0
1
0
0
2012-01-12T15:46:00.000
2
1.2
true
8,837,899
0
0
1
1
I have a form with a text field for entering a number without decimal places representing an amount of minutes that will have to be added to the current time and will be inserted into a table named Alarm. When the resulting time comes, my web app must make an insert operation over another table. For example, if the use...
Custom logs in AppEngine
8,848,350
3
2
228
0
python,google-app-engine,logging
I had a similar logging in my app, and what I did is to set up a simple servlet in a self-hosted server that receives the log string and level and store them in our local database. Each time I need this kind of log, I use asynchronous URLFetch to send the data from our app to our logging server. I could store the log d...
0
1
0
0
2012-01-12T16:08:00.000
2
1.2
true
8,838,243
0
0
1
2
I have an application for which I would like to record some statistics for later analysis but which are not at all needed within the application itself. i.e. The data will never need to be read by the application. Whatever system is used for storing these statistics, I just need to be able to take periodic dumps of t...