All Questions

2
answers

What is the difference between return "view" and return "redirect: view" in a POST method for Spring MVC?

What happens is that I have a jsp view from which I fill a form, I send the data by means of the POST method to my controller and once the instructions are finished I return to the main view of my site. However, the methods contained in my dri...
asked on 24.02.2016 / 17:49
2
answers

System calls with files

I have a code whose mission is to copy a source to a destination. The point is that, when compiling, it warns me that on line 38 an assignment is made from an integer to a pointer without a molding and I do not know how to fix it. Also, runni...
asked on 21.03.2016 / 17:58
1
answer

Scope in Python

I follow a book about python but I found a doubt about the scope, I have the following code: pi = 3.14 def crear_area(pi = pi): def area(r): return pi*r*r return area area = crear_area(10) print(area(10)) #valor de ret...
asked on 13.03.2016 / 06:38
2
answers

How to generate a csv file from a list?

Hello, I have the following list l=[[1,2,3,4],[5,6,7,8]] and I want to generate a csv file something like this: 1 5 2 6 3 7 4 8 the code that I have worked on is this with open("output.csv", "wb") as f: writer = csv.writer(f) w...
asked on 02.06.2016 / 15:40
2
answers

Avoid changing tab with javascript

I am working with tabs on my project, the tab I build it like this: <div class="tab-container"> <ul class="nav nav-tabs nav-fill" role="tablist"> <li class="nav-item"> <a class="nav-link active" dat...
asked on 03.07.2018 / 17:18
3
answers

Get the remaining time between two Date dates on Android

I make an Application where I need to obtain the remaining time for the day of an event, using the class CountDownTimer I get a counter for days and dates but I can not think of how to get the remaining time. For this I have two dates...
asked on 02.06.2016 / 03:43
2
answers

At what point should I commit to git? [closed]

I'm just starting with git and although I know very well his theory commands and others I have a hard time getting used to the practice ... Let's say that I'm in a project and I'm developing the navigation bar .. should I commit when I have t...
asked on 13.02.2016 / 01:17
1
answer

C # Change the action of the enter in DataGridView

I want to change the default action so that the code does not skip the line, what I want to achieve is that when you touch the Enter select that row and return an ok. if (e.KeyChar == Convert.ToChar(Keys.Enter)) { this.DialogResult = Sys...
asked on 13.07.2018 / 07:40
2
answers

Send form with onClick. Only Javascript and HTML

I'm doing the shopping cart part of a page (It's a college job, I'm just starting). For each item in the cart you should be able to increase and decrease the quantity purchased. I managed to do it but only with one product, if I copy and paste s...
asked on 21.06.2018 / 22:55
2
answers

Why do the records in a Postgresql table keep blanks?

Quetal friends, I'm doing a practice with PHP + PDO and postgresql, and I've realized that when I save the data it leaves me blank. I attached an image and this is the code. <?php include_once "conexion.php"; try {...
asked on 30.06.2018 / 16:02