Interesting questions
-
1
votes1
answer125
viewsReturn of the clean catch code
I am reading the book Clean Code of the series of Robert C. Martin. And it was presented a very common situation in my day to day. public static void main(String[] args) { String nome = null; try {…
-
-1
votes1
answer38
viewsHow to send the chosen value within an option that has a query in the database
<?php session_start(); include 'conexao.php'; ?> <form action="recebe.php" method="POST"> <select class="browser-default custom-select"> <option…
-
4
votes1
answer616
viewsThread problem
public class ThreadTest implements Runnable { private String word; private long time; public ThreadTest(String word,long time){ this.word = word; this.time = time; } public void run() { try {…
-
0
votes2
answers231
viewsSearching array value within another array and return
Take a look at the scenery: I have the following array’s let arr = [23,0,0] let coresLinhasPorPocsag = ["#4d79ff", "#ff6600", "#00cc88", "#b31aff"] I need to pick the color according to the position…
javascriptasked 7 years, 8 months ago Igor Carreiro 1,917 -
2
votes1
answer695
viewsNotice: Undefined index in variable $_FILES (upload PHP)
I created this code to add products to my database, only that there is an error in the image, says I did not set it. the code is this: <?php ob_start(); session_start(); require 'ligarDb.php';…
-
1
votes1
answer155
viewsIgnore error validation in Netbeans file directory
I am creating an Laravel application and I like to use Netbeans for it. The problem is that Laravel has a number of libraries that it implements itself and that use testing resources that make my…
-
1
votes1
answer385
viewsHow to remove property inherited by the component?
When placing a side navigation icon, I noticed that a piece of it "leaked" out of the expected, which made it behave visually strange in the animation. I put a background-color: red for easy…
-
0
votes0
answers67
viewsValidate a variable according to the value
I am with the following problem, I am trying to assemble a structure that validates when the value is <> 0, If <> of 0, it must go mounting variable by variable, when = 0, it must close…
javascriptasked 8 years, 12 months ago Douglas Farias 1 -
0
votes1
answer249
viewsProblem when clicking the button, call ajax
Code: <button id="click" class="button"></button> <div class="TableCSS"> <table id="clickvent"> </table> </div> $(document).ready(function(){…
-
4
votes2
answers300
viewsReturn N elements from a list in jQuery
I have a list of elements, let’s say a list of rows in a table: $('#minha_tabela tr'); There is a selector, method or overload in jQuery that I can return more than one line by passing multiple…
-
1
votes2
answers1435
viewsDoubt about Listener for Jcombobox
Someone would know to tell me some listener for when I select an item in Jcombobox it gives me a warning for example. Remembering that when I open my component(Jframe) I select items inside by the…
-
0
votes0
answers132
viewsPlace automatically generated icons next to each other in javascript/HTML
I would like you to be on each other’s side. Every time the customer uploads a contract he stays horizontal. I would like to be vertical. Follows the code: var txt = ""; if (json.code == 1) {…
-
0
votes1
answer601
viewsHow to save a json object to mongodb, which is the answer to an API post
I need to save a certain field,from a json object,which comes from the response of an API I called. Save some fields of this response json object,in some fields of my colletion/model on Mongodb also…
-
3
votes1
answer745
viewsInstantiate a class from its string name
I have a select where I have some options Teste1 Teste2 Teste3 I have a model for each option public class Teste1() { //atributos e métodos } I would like to receive this string ex in a certain part…
c#asked 8 years, 7 months ago Jhonatan Jorge de Lima 1,012 -
7
votes1
answer523
viewsWhy is it risky to run Java applets in browsers?
In my company, we have two websites that need a Java applet (to authenticate using digital certificates). And these two sites give a lot of headache, mainly, whenever Oracle releases an update from…
-
1
votes1
answer46
viewsPrivate route does not check whether the user is logged in or not
Good morning, I am trying to check if the user is logged in or not, I have an endpoint that returns me a token, on the front I am taking this token and doing this check, the problem is that even…
-
27
votes2
answers576
viewsWhy shouldn’t Regex be used to handle HTML?
I understand that if I try to use Regex over HTML, HTML tags will drip from my eyes like liquid pain, among other horrors. And that I should use an XML parser or something like. My curious child…
-
0
votes0
answers75
viewsStart reading the beginning of the string list
How do I after adding a string to a list (can be on list A or B), my code goes back and starts reading the beginning of the string list, or the first string? I have a list with 20 strings. But it’s…
-
0
votes1
answer295
viewsEnum returns null from the database
Hello, I’m implementing a DAO and doing some tests, I’m having some problems in enums. When running the test class the Enum Size returns null, but in the database I have records filled correctly.…
-
0
votes0
answers38
viewsMenu option back to login
I’m trying to use Adminlte treeview in the system menu, but every time I click on the menu item it goes back to login. For example: When I click on Dashboard, Graphics or Management, it goes back to…