Posts by Richard Willian • 467 points
24 posts
-
1
votes1
answer318
viewsQ: Error running build_runner 'Infinite loop at build time
I added the following packages and versions build_runner: ^1.10.2 and mobx_codegen: ^1.1.0+1 in the archive pubspec.yaml of my project Flutter and at the time of automatic code generation I got the…
-
1
votes1
answer318
viewsA: Error running build_runner 'Infinite loop at build time
I don’t know if it’s the best solution but it worked for me, on the first link I mentioned (https://github.com/simolus3/moor/issues/553) I found the following cake recipe (but it may not suit your…
-
0
votes0
answers322
viewsQ: Unhandled Exception: Rangeerror (index): Index out of range: index should be Less than
I’m having a problem trying to save a pdf using the "pdf_dart" library. I assume the problem is linked to the image I’m downloading from the internet to try to attach to the pdf but I’m not sure…
-
1
votes2
answers69
viewsA: Sort a Select by criteria outside the database
Perhaps the best way to solve your problem would be to add a new column as one of Importância Cargoor Hierarquia Ofício, the name does not matter so much, but rather the application. By adding this…
-
2
votes1
answer60
viewsA: Error picking web service return variable
@marianac_costa, there on your Return of the Web Service, you see that your return is Resultadocert then, there would be no way you could assign directly to your object a.Certificado, because it’s…
-
0
votes2
answers344
viewsA: In CSS, how do I, when giving a "Hover" in a text, give the image a "Scale(xx)" and underline the text?
I believe that’s what you’re looking for: img:hover { transform: scale(1.05); } h3:hover { text-decoration: underline; } <div> <img src="https://i.stack.imgur.com/ygG9V.png"…
-
0
votes4
answers66
viewsA: Add 0 to the left in an Arraylist <Integer>
You can try that way too, Instead of using everything as "Integer" already start working with "String". But the cat jump is really in charge: String.format("%02d", NumeroQueVoceQuerFormatar).…
javaanswered Richard Willian 467 -
2
votes1
answer135
viewsA: Query using Hibernate does not bring record
The problem was solved as follows: When I set up the hibernate.config.xml I used in the url line: <property name="connection.url">jdbc:hsqldb:EcoChat</property>that configuration. But it…
-
3
votes1
answer135
viewsQ: Query using Hibernate does not bring record
I’m trying to query the HSQLDB database using Hibernate but I’m not succeeding. When I do: session.get(Usuario.class, new Integer(1)); The query is made because it shows the query mounted by…
-
0
votes1
answer658
viewsA: TCP/IP communication using Socket
Perhaps my doubt was not so clear, but I would just like to know how best to make a communication TCP/IP, something like a (CHAT de BATE-PAPO), there are several ways of making a communication…
-
1
votes1
answer658
viewsQ: TCP/IP communication using Socket
I need to do a college job where it is necessary to do a TCP/IP communication something like a "chat chat" is what I have in mind to do. But some questions arose, I don’t know exactly how to ask…
-
1
votes1
answer435
viewsA: How to insert ON DELETE and ON UPDATE
First you would need Dropar your Foreign Key. ALTER TABLE [Nome da sua Tabela] DROP FOREIGN KEY [Nome da sua Foreign Key]; Then you need to change the Tabela adding your key FK with the ON DELETE…
-
2
votes1
answer685
viewsA: Put variable inside input type="date"
I put some Alert's just so you can see how it goes riding the date until the final presentation. var agora = new Date(); alert(agora); var dia = ("0" + agora.getDate()).slice(-2); alert("Hoje é dia:…
-
0
votes2
answers252
viewsA: Timer telling you when it’s over
You could do it this way too, maybe it’s not the best but it works: class Program { static void Main(string[] args) { var tempoDuracao = 5; // Em segundos se por 3600 se torna uma hora e assim por…
c#answered Richard Willian 467 -
1
votes3
answers1139
viewsA: Retrieve/locate object in arraylist
You could do it this way: Contas class public Poupanca consultarPorNome(String nome) { /* Essa linha abaixo é legal utilizar, pois você usa Lambda e é uma coisa nova * já que você esta aprendendo,…
-
3
votes3
answers608
viewsA: Read a console line in C#
Just for the record, the mistake you’re making is because you forgot to put the Parenteses () in the method Console.ReadLine(). If you change and use the Convert.ToInt32(Console.ReadLine()); It will…
-
1
votes1
answer171
viewsA: Problem has no key defined. Define the key for this Entitytype
Check once again if the names are really hitting, if they are correct, do the following, on top of your Propriedade Primary Key Adds the Data Annotation [Key] as follows: Department: [Key] public…
-
0
votes2
answers31
viewsA: Compare shorter term between Asp.net columns
I did some tests here, and your code returns the lowest value correctly, I did tests with other tables, but the idea is the same: var valorMenorSalario = context.Funcionarios .Where(x =>…
-
1
votes1
answer203
viewsA: Select all items with same Id in the same table
You won’t be able to add up the two quantities that way, the best way to solve this would be, instead of using the FirstOrDefault(), use the ToList()to make the query, thus creating a Inventory List…
-
1
votes1
answer1338
viewsA: Mysql Database (Insert Into and correct order)
The order for you to enter the data in the Table would be first by the tables that will be foreign... For example, we have the table TIMES and the table JOGADORES: CREATE TABLE TIMES ( COD_TIME…
sqlanswered Richard Willian 467 -
0
votes1
answer558
viewsA: Specialization multiple foreign key
If you create tables this way: Adding to FOREIGN KEY sponsor in the table of TIMES, you get to have a relationship UM-PARA-UM with sponsor, that is, each team will have a sponsor. CREATE TABLE…
-
1
votes2
answers1059
viewsA: How important is the branch in versioning?
As BRANCH's of GIT help you better organize versioning, see: First: When a person gives a COMMIT and a PUSH, she can send to BRANCH that she’s using, that way, if she breaks the code that she did…
-
3
votes1
answer57
viewsA: Help with oracle database query
To raise the salary of FUNCIONÁRIOS can be done as follows: 1º - Let’s see which records will change: According to their department, 1, 2 and 3 are required to have respectively less than ~3603,…
oracleanswered Richard Willian 467 -
1
votes2
answers426
viewsA: View Mapping with Entity Framework
This mistake happens because you sweat VIEW does not have the column ID_TRANSPORTE, Maybe by the time you created it you’ve put: See that you put this COLUMN as "Ship ID" Tran.id_transport AS "Ship…