Posts by Fábio • 600 points
20 posts
-
1
votes1
answer79
viewsA: Construction of workflow project
I believe you can apply the following modeling: //Cadastro dos departamentos departamento - id (pk) - nome ... //Cadastro das demandas, com o id do departamento que solicitou e o id que será…
-
1
votes1
answer640
viewsA: Pass pointer as C++ function parameter
Only a few adjustments in the question’s source code have produced the result, see: New get method(): T get(int i); This method is required to get items that have been added to the list, as the List…
-
2
votes1
answer1157
viewsA: Should I control the status of a system with a single table or several?
Due to the data domain of each of the entities mentioned in the question, the approach of a status table for each entity is much more organized and better meets the maintenance and extensibility…
-
1
votes1
answer142
viewsA: Problem with JPA
Add unitName in the annotation PersistenceContext. Thus remaining: //... @PersistenceContext(unitName = "postgresDS") private EntityManager entityManager; //...…
-
2
votes1
answer627
viewsA: Insert - Jump Lists / Skip Lists
Based on that article from Skip List creator William Pugh, I came up with the following implementation in C (C99). 1. Create the data structures: Node /** * Definição da estrutura de dados dos nós.…
-
3
votes1
answer516
viewsA: Nullpointerexception at java.io.File. <init>(Unknown Source) in Java with Lucene
File has constructor that takes as argument an instance of String, see the builder javadoc. File(String pathname) Creates a new File instance by Converting the Given pathname string into an Abstract…
-
0
votes6
answers708
viewsA: How to count the number of clients that returned from one year to the next through SQL?
To achieve this result numerous solutions can be employed, one of them follows. Suppose there is the following data scheme: CREATE TABLE Servicos ( Nro_Serv int primary key, Data date, Cliente int,…
-
6
votes2
answers4009
viewsA: Format decimal with comma and thousand with dot
The solution using the standard C++ library looks like this: First you need to create a specialization of the Std::numpunct class and overwrite two methods to implement the specific behavior for our…
-
2
votes2
answers1367
viewsA: Locked socket when performing data exchange
In the server class the closure of the output stream (output) is in an improper location, Finally. This Finally will only be executed when the scope of Try comes to an end, that is, when the looping…
-
1
votes1
answer216
views -
1
votes1
answer59
viewsA: Pull 0 from front string Cristal Reports
There is the MID(string, start_index, end_index) function and end_index is optional, so you can use it as follows: MID(Code128c{(Command.numero)}, 1)
crystal-reportsanswered Fábio 600 -
0
votes2
answers652
viewsA: I cannot place a subquery inside the IN in the PIVOT
According to documentation from Technet only columns are allowed. It will not be possible to place a dynamic selection there. FOR [<column that contains the values that will become column…
-
7
votes3
answers593
viewsA: Find string in more than one SQL table
Using the UNION clause is the best way, see an example: Let’s say there are two conceptual tables: TB_CLIENTES and TB_VENDAS. TB_CLIENTES( ID, NOME, ENDERECO_RESIDENCIA, CIDADE_RESIDENCIA )…
-
2
votes4
answers1519
viewsA: Why is 0.1 + 0.05 not equal to 0.15? What solutions can be used in R?
In a test performed with Java, the result when being of type double returns: 0.15000000000000002 But when we use the float, we have that 0.1F + 0.05F equals 0.15F: System.out.println(0.1F + 0.05F ==…
-
1
votes3
answers271
viewsA: Get List Help (Code Refactoring)
To perform this operation in only one line you must put the search code in a getter method in Managedbean, let’s see: public class MyBean { public Object getObjetoFinal(){ Object objetoFinal = null;…
-
4
votes2
answers12377
viewsQ: Decoder for Open Source CAPTCHA
I am looking for an API for decoding CAPTCHA, one that is free to use and open source. I understand that this is a complex process that uses OCR scans and advanced techniques of analysis and digital…
-
1
votes2
answers349
views -
3
votes2
answers1600
viewsA: Compare the values of an entire column of Datagridview with a variable
You will need to implement a loop, as your need is specific. The implementation of Datagridview provides the necessary operations for row-to-row X column-to-column manipulation. In short the ideal…
-
1
votes3
answers1547
views -
0
votes3
answers2230
viewsA: Java shows "Type Safety: Unchecked cast from Object to Hashmap"
Apply the following Annotation in your method: @SuppressWarnings("unchecked") That way the eclipse won’t signal this Warning.