Interesting questions
-
0
votes1
answer546
viewsCan a foreign key be part of more than one table?
I wonder if I can put a foreign key in more than one table, for example, where the entity "competitors" in the image is a table and the attribute "id_competitor" is a primary key, and the other…
-
-3
votes1
answer58
viewsResult while PHP
Hello. The while I created is responsible for adding several photos, however, when the photos are added they end up at the bottom of each other. Is there any method for the photos to go next to each…
-
1
votes1
answer309
viewsError in field validation
I have the following class: package br.com.pokemax.modelo; import java.util.Collection; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import…
-
1
votes1
answer54
viewsFix HTML of a page using Ruby/Nokogiri
I’m having a little difficulty consuming an HTML generated by a third party page, where HTML is missing some closing tags. For example: <div> <li> <div> <div>test test…
rubyasked 10 years, 3 months ago Luiz Carvalho 3,644 -
1
votes1
answer131
viewsHow to use error_reporting
I’ve been having a problem on my page for some time. I’ve reviewed my Model, Controller and View and nothing. Simply the screen turns white (but no error appears) and nothing works. I want to know…
-
1
votes0
answers224
viewsHow to show the number of views on a page
I own the page www.neilgaiman.com.br, which was developed with Wordpress. I wonder if there is the possibility to show the user, the amount of views that the page he is, has. I ask here because I do…
-
0
votes1
answer32
viewsDISTINCT in a WHERE Oracle
I need to return the last two purchases of each table item NOTA_FISCAL_ENTRADA_ITEM, but returns column values VL_UNITARIO_ENTRADA_EST different. That is, if in the last two purchases the value is…
-
1
votes2
answers1080
viewsError doing Insert in PHP database
I am trying to do the data Insert in Mysql, no error appears but does not insert the values in the database. <?php INCLUDE "conexao.php"; if (isset($_POST["submit"])) { $cod_produto =…
-
0
votes1
answer53
viewsProblem feeding database via php form
Good guys, I’m doing some tests with a database, but I’m having a problem where for some reason, the information is not being sent. The codes are in different files; I have a file called…
-
6
votes2
answers368
viewsHow to get the properties of a type when using Generics C#
I have the following class: public class Pessoa { public int id { get; set; } public string Nome { get; set; } public DateTime DataNascimento { get; set; } } I’ve developed a method to get her…
-
0
votes1
answer2993
viewsError there is a duplicated 'system.web.Extensions/scripting/scriptResourceHandler' section defined
I downloaded a project, and I wanted to import to my pretty much everything, but when copying and pasting your webconfig into mine, do it while running: Há uma seção…
-
1
votes1
answer608
viewsAdding values to a deserialized JSON object attribute in Javascript
My problem is this: I am retrieving a Json object from localStorage via Javascript, and I wanted to add a value to one of these attributes, and then save the d evolta object in Storage location.…
-
13
votes2
answers428
viewsIs it correct to use JS to make the effects of an HTML?
What I want to know is whether it is right to use Javascript/Jquery to do some button and screen effects, center the content horizontally and do certain tasks that can be done by CSS. The company’s…
-
1
votes0
answers130
viewsHow to pass a controller variable to the service?
I have a question, as I pass to a service a controller variable? I have a screen that has a table, when the user clicks on a row of this table, it goes to another screen with the data filled in…
-
0
votes2
answers172
viewsGood practice with Phpunit tests
I’m starting tests, and I wanted to know if I’m following correctly, use Portable, and have had some dilemmas to develop a test of a service that I have. He does some operations in an app via API,…
-
1
votes1
answer126
viewsFluent Mapping API 1:N cascateado
How to Model a Relationship of 1:N, where, 1 user may have several requests, and in this request we have reference to another entity? Ex: public class Usuario { public int UsuarioId { get; set; }…
-
0
votes2
answers65
viewsWhy can’t variables from the same instance be read in different processes? (Python)
I have two processes going on and I have a class containing a method that modifies a value, as you can see in the code below. The Eventoboton function represents a click to modify a value. But the…
-
2
votes1
answer1353
viewsValidation jquery validate is not deleted when I close the modal bootstrap
How to make jQuery Validate validation messages delete when I close modal Bootstrap? I have the following codes that are executed when I close the modal by clicking the button Fechar and when I…
-
26
votes1
answer242
viewsWrite software in 1st or 3rd person?
I am creating a software in C# and I would like to know if I should write it in 1st or 3rd person. I remember that once my teacher of logic programming came to comment on this (which software should…
uxasked 7 years, 9 months ago user107458 -
1
votes3
answers436
viewsAssign dynamic value to a variable in Jquery
I searched hard and I couldn’t find the answer. I need to assign a value to a variable in Jquery, I don’t have much knowledge. What I need is: By clicking on a link: <a href="?sts=Pendente"…