- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
In [this page](https://uwsgi.readthedocs.io/en/latest/WSGIquickstart.html), the first example of using python with uwsgi is the following code: def application(env, start_response): start_response('200 OK', [('Content-Type','text/html')]) return [b"Hello World"] As you can see, there is this `start_response` function which is provided by uwsgi, which is similar to all those things that framewroks like django provide … |
|
I want to associate a REST API end point to two urls, "manager" and "manager/". So I added two path entries in the urlpatterns with these urls. But it seems something that can be handled with some kind of configuration. Is there such a configuration with django? thanks |
|
I'm trying to run a project that uses Django and uWSGI in a Docker container. But I'm new to Docker and uWSGI so I'm not quite sure how I'm supposed to do it. At first I build the project with the below command: docker build -t saleor . Then I … |
|
I'm just learning web development using nodejs and so I need to choose some frameworks to work with. I really like hapi and want to use it. But I also need something to build the view of the website. Some choices are quasar, vuetify, react, etc. But I really don't … |
|
Apache Cordova is a framework that lets you build mobile applications using HTML5, CSS and Javascript for different mobile platforms. But because the applications you build with this framework live in a layer on the top of the native development tools of the targeted platform, they're slower than equivalent applications … |
|
I'm learning nodejs(and I like it!). I tried to figure out how to have shorter alias for `console.log` and I found out that I can use `var cout=console.log` and use `cout('[string]')` from then on. Then when I wanted to use `process.stdout.write` and I tried to make a short alias for … |
|
I want to learn web programming with Java. I'm using eclipse neon with tomcat 8.5.13. My question is do these tools support asynchronous programming and server push technologies or should I use other tools? Thanks |
|
Is it possible to use import for third party modules in Python? How? Thanks |
|
Hi I wanna start working with ASP.NET with C# but want to do it in ubuntu. I have installed mono and XSP2 but have some problems and questions. The instructions I followed for installing XSP2 is [this page](http://www.howtogeek.com/howto/ubuntu/run-aspnet-applications-on-ubuntu-for-developers/). But when I type "sudo apt-get install asp.net2-examples" in terminal, I get: … |
|
I want to connect my Lenovo Ideapad S510p(Windows8) to the WiFi network of my TP-LINK modem-router. But the laptop does not finds no WiFi network although I can get it with my cellphone and connect to it. I checked the DHCP leases list of my modem and laptop's mac address … |
|
Hi I just installed SciPy stack on Ubuntu 14.04. Then I installed python-pyglet. For testing it, I tried the following in python 2.7.6 interactive mode: from sympy import symbols,Plot,sin x=symbols('x') Plot(5*sin(x**3)+x**2) But the only result is « [0] : x ** 2 + 5 * sin(x ** 3), 'mode=cartesian' » … |
|
I have an Avision FB1200 scanner and want to install it on windows 8 but I can't. I installed its driver which was on its CD but nothing happened. Then I tried repairing it through the same install file but there was an error message about the file "C:\windows\scanner\avsetup.dll". When … |
|
Hi In some movies,it is shown that somebody has a file on a flash memory which is a threat to some criminal and when the criminal takes the flash memory using some kind of a trick or another s\he checks the file and makes sure the file is not copied.I … |
|
I just downloaded [Python for S60 2.0.0](http://en.wikipedia.org/wiki/Python_for_S60).The instructions say that for using it,I should open PyS60 Application Packager but it complains:«No module named tkFileDialog». I'm using Python3.3.2 And I should say that I know Python for S60 is really old and outdated and that maybe the problem,so I will appreciate … |
|
I'm using windows 8 and I wanna know can I cross compile a C++ program for symbian Belle?How? Thanks |
|
I've read that C# compiler's name is csc.exe I have MonoDevelop3 And can't find a file with that name. Also can find nothing which looks like a compiler in MonoDevelop's directories. The documentations didn't help too. Could you help? Thanks |
|
I wanna know how can I read a string from input which contains spaces and by string,I mean a string class object. thanks |
|
I think its more than a year that I ask my questions about programming in this forum.Looks like its the time that I help a little too. So I wanna put my best here.I hope it'll help some one. Still I'll appreciate any suggestion. Another point,It was my first time … |
|
I know C++ well and have written some programs in it but when I look at a program's code,I can't understand it.I wanna know is there a place where I can learn to write real world programs?Sth like a C++ certification? thanks |
|
I wanted to have a vector<string> and a vector<double> in my class so I used forward declarations below: [CODE=c++] class string; template <typename T> class vector; [/CODE] But I recieve the error: [ICODE]field 'varname' has incomplete type[/ICODE] for both vector<string> and vector<double> variables. I searched internet for this error but … |
|
I know the how to fill a magic square but there is a problem in the code. The algorithm is like below: 1-Put number 1 at the second column of first row. 2-Put the next number one upper row and one behind column. 3-If the cell mentioned in the last … |
|
Hi I know it may seem like a homework question.But I have to ask it.I wanna build a site but have problem with the page design.You know I don't know enough HTML to get exactly what I want.Also I can't use page design softwares because they don't support farsi.So I … |
|
Mybe its not the proper place to ask it but I don't know a more proper place. I wanna download SFML but the links in its official website and sourceforge do not work. maybe its because i'm from iran but if its not the case,I wanna ask for a proper … |
|
Hi I've heard in some places that it is possible to write programs in several languages but I have no idea how.Could someone explaint about it? thanks |
|
Hi all people I've written program below for a physics problem. [CODE]#include <iostream> #include <conio.h> #include <math.h> #define g 9.8342998109761958158459616185564 using namespace std; long double theta(unsigned long int n,unsigned long int N){ return (M_PI/2)-n*(M_PI/(2*N)); } long double V(unsigned long int n,unsigned long int N,unsigned long int h){ if(n!=0){ long double … |
|
Hi I'm trying to write a heap data structure but I have no idea how to do this.Could Someone help? thanks |
|
Hi I want to know how can I make my database that the user can add a field to a table from a form or sth? thanks |
|
Hi all I have some questions 1-Is an API just a set of functions that let you do sth easier that using the things that make up the API,directly?If yes so and API must be able to be compiled in every IDE but you can see that Qt's API needs … |
|
Hi people Could someone tell me what is the difference between runtime and compiletime polymorphism? thanks alot |
|
good time people I have a code like the one below: [code=c++] #include <vector> #include <stdio.h> #include "mymath.h" using namespace std; int main(){ int n; char a='y'; do{ cout<<"\n----------------------------------------\n"; cout<<"Enter a number for prime factorization : "; cin>>n; cout<<"\n----------------------------------------\n"; int *result=pfact(n); for(int i;result[i][0]!=0;++i){ if(result[i+1][0]!=0) cout<<result[i][0]<<"^"<<result[i][1]<<"*"; else cout<<result[i][0]<<"^"<<result[i][1]<<"=";} cout<<n; cout<<"\n----------------------------------------\n"; cout<<"Do … |