3
votes
1answer
40 views

Correct use of a fold or reduce function to long-to-wide data in python or javascript?

Trying to learn to think like a functional programmer a little more---I'd like to transform a data set with what I think is either a fold or a reduce operation. In R, I would think of this as a ...
0
votes
0answers
13 views

Create unit test to Google Endpoints

I have some Google Endpoints and I want to create unit tests to it, and so on create the tests first to the next Endpoints. My endpoint is developed with Python. What I'm trying to do now is test it ...
0
votes
0answers
26 views

Getting Coordinates of Embedded PDF

I would like to embed a PDF in a webpage. When a user clicks on a certain coordinate within the embedded PDF, I would like to know what coordinate it corresponds to with respect to the PDF (and not ...
0
votes
0answers
64 views

Overlap image pixels on a given latitude, longitude?

I have two data: 1. is points and 2. is a Radar image. Here, Radar image is just 2D matrix (shown below) and points are latitude and longitude values (also shown below). The problem is that if I ...
1
vote
1answer
83 views

Other separators I want use (not & and =) when I submitting a form

I have the server programmed in Cherrypy and I use also Mako Template. And I have the variable dict (variable Mako that contain information's work) for working with the user( this I have to use Mako ...
0
votes
1answer
19 views

Handling Form Upload Success with JQuery to Django App

How can I submit a form, uploading a file, to a Django app using JQuery so that I can capture the "success" handler? I am able to upload a file my Django app using a regular form submit, but I am ...
0
votes
2answers
43 views

Alternative string formatter in Python for Javascript [duplicate]

In Python there is a string fromatter like; >>> print 'Name :%s Surname :%s'%('Ahmet','DAL') Name :Ahmet Surname :DAL Are there any native string formating method in Javascript, which has ...
-2
votes
2answers
62 views

Django modelchoicefield submit

I have a form that is shown as a dropdown list at the template. When the user selects one option, a javascript function is called and the page reloaded. I want to capture the value of the selected ...
0
votes
1answer
36 views

How to communicate between Flask and Javascript?

everyone. So i've been going through this documentation: http://flask.pocoo.org/docs/patterns/jquery/. I have a Flask site up and running, but, when i try to set up what they have, i just get the ...
29
votes
4answers
6k views

Differences between node.js and Tornado

Besides the fact that node.js is written in JS and Tornado in Python, what are some of the differences between the two? They're both non-blocking asynchronous web servers, right? Why choose one over ...
0
votes
1answer
26 views

flask can not read static path and load Javascript files

my app structure is project/ configuration/__init__.py core/ static /app /css /img /js/app.js ...
4
votes
3answers
4k views

How to create dropdown menu that appears based on answer from another dropdown menu

I'm trying to create a page where you users have to make multiple selections that are based on each other. How do you create a form such that a specific type of dropdown menu #2 appears based on the ...
1
vote
2answers
46 views

Multi-OS text-based database with an engine for Python and JavaScript

This is probably a far fetch, but maybe someone knows a good solution for it. Introduction I'm currently making an application in Python with the new wxPython 2.9, which has the new html2 library, ...
0
votes
0answers
44 views

JS using websockets, lag over internet

I have a websocket server written in python, that keeps sending data to all connected clients (about 1000bytes/s). The client is JS, and all it does, is to connect, and write the values from the ...
-1
votes
1answer
41 views

Using camelCase vs. underscores in Python for a web project [closed]

For my current project, I see myself with a bit of a dilemma. As much as I follow PEP8 and preach about how it enhances portability/readability/etc I have a hard time sticking with underscores in ...

1 2 3 4 5 113
15 30 50 per page