Tagged Questions
-2
votes
4answers
72 views
Is there a nicer way to write this while loop in Python? [closed]
I'm learning Python by taking some scripts I wrote in JavaScript and translating them to Python. I have a particular loop in JavaScript, whose body is written as such:
while(--pages >= 0) {
}
...
1
vote
1answer
37 views
Javascript equivalent of Python's urlparse.parse_qs()?
I am using python to generate a query string which will then be parsed by javascript.
Consider a fairly "complex" piece of data:
import urllib
params = {
'record': 'customer',
...
1
vote
0answers
22 views
Parse Hershey font .jhf to json using python or javascript
I ve been searching the web for a solution but I found nothing that is within my skills. How would you transform these Hershey Font .jhf files emergent.unpythonic.net/software/hershey to JSON using ...
2
votes
1answer
29 views
Mashup: Select Box / Disabled Input / Getting Info From Database
I am creating a form, where people can either choose a new team and then input its location or if they select a team from the list, I would like the input to be disabled - and the selected team's ...
1
vote
1answer
23 views
deserialize html form in server with websocket
I'm sending the contents of a form to the server via WebSocket, like this:
ws = new WebSocket("ws://localhost:8888/dh");
var formdata = $('eventForm').serialize();
ws.onopen = function()
{
...
-1
votes
1answer
35 views
Ask for suggestion for local app on browser [closed]
We need to do a job. Build up a cross-platform (win7, fedora, ubuntu...) GUI application based on browser(firefox, chrome, minibrowser). I'm a newer to browser applications. The application is a GUI ...
1
vote
1answer
47 views
Send data from javascript to python in google app engine
i want to create an application in google app engine using python. I have to send a list of json string to python script.I have done the following code but ain't worked.
...
0
votes
0answers
14 views
Photo Gallery - Google Custom Search
I have created a Google Custom Image Search after reading the docs.
However, I want to make a photo gallery website where a user can submit photos to the gallery by clicking one of the images that ...
-2
votes
3answers
39 views
JavaScript generated download? [closed]
not sure where to start here.
Is there a way in JavaScript to generate a downloadable PDF or any other file that can contain images and text? I am working on a strange project that requires this ...
0
votes
0answers
42 views
Download Google Images From Google Custom Search
I have a custom Google search engine for images only. I want to make it so that when a user clicks on one of the images, the clicked image gets downloaded to the server.
How do I do this?
I have ...
0
votes
2answers
45 views
Load a page with javascript/html5 on SSH
Previously, I was working in Python using the Spynner module to macro through browsing specific webpages for me until I ran in to one page where Spynner could not correctly run the javascript on the ...
-1
votes
1answer
49 views
Sending data from javascript to python
I have a website which contains some JavaScript code. On a different server, I have a python script. I am trying to send data to the python script and then have the python script return some text.
...
1
vote
1answer
49 views
Programmatically create a cold front vector (weather)
Does anyone know a way to programmatically create a cold/warm front vector given a list of vertices (note the vertices do not contain the little triangles or half circles; [-105W, 40.45N],etc...)?
...
2
votes
1answer
41 views
Qgraphicsscene - preferred languge for javascripter C++ || PyQt? [closed]
I coded the online app in javascript with SVG and want to recode it for desktop. Javascript code is about 6-7k lines and further development is harder to follow, I've been looking for alternative and ...
1
vote
4answers
78 views
Python websocket based application framework / server
I want to write an 'cloud' based application to interactivly develop games. I'm developing apps and tools in Python for years, but so far they were not in 'client <-> server' model.
I don not want ...