Posts by Genos • 1,712 points
49 posts
-
0
votes2
answers49
viewsA: Do you have a problem creating an element and setting the id to empty?
In accordance with the W3 (translation of mine): ID and NAME tokens must start with a letter([A-Za-z]) and can be followed by any number of letters, digits ([0-9]), hiphens("-"), underscores("_"),…
-
2
votes2
answers77
viewsA: Error in the Ienumerable
Missing a parenthesis set in object construction Noticia: todasAsNoticias = new Noticia.TodasAsNoticias().OrderByDescending(x => x.Data); Should be: todasAsNoticias = new…
-
1
votes1
answer218
viewsA: Font Conversion Problem Delphi7 to Delphixe7
The problem is in the function: System.AnsiStrings.StrPCopy(@buf,Copy(Mensagem,1,20)); This method expects Source (the second parameter) to be of the type AnsiString. But note that you have declared…
-
1
votes1
answer51
viewsA: Selection of SQL related records
I haven’t tested it, but I believe that’s what you’re looking for: SELECT grupo.codigo FROM grupo INNER JOIN grupo_usuario ON (grupo.codigo = grupo_usuario.codigo_grupo) WHERE grupo_usuario.cpf =…
-
0
votes1
answer367
viewsA: Android Studio Infinity Charging
According to the message (free translation): Make sure that 'C: Users Walla Appdata Local Android Sdk build-tools 25.0.3 aapt.exe' run correctly(some antivirus may block it). Regarding the message…
android-studioanswered Genos 1,712 -
0
votes1
answer213
viewsA: Error when connecting to database [Winform/C#/SQL Server]
Ensure that the Localdb instance is running Visual Studio automatically raises a local instance of Sqlserver express (Indicated in connectionString by 'Localdb'). Therefore for your connection to…
-
2
votes1
answer528
views -
2
votes1
answer40
viewsA: Error changing old database data
EConvertError (the exception indicated in your message) usually happens when you try to convert one type of value into another. In your case it’s happening because of the line:…
-
9
votes2
answers559
viewsA: Binary Search Tree vs Sorted List
The most effective algorithm for finding any element in both cases is the same: binary search. It has average complexity O(log n). The problem is that in unbalanced binary trees, the worst-case…
-
6
votes2
answers2589
viewsA: Cannot implicity Convert type 'System.Collections.Generic.Ienumerable' to 'System.Collections.Generic.List'
This mistake happens because notificacoesAll.Union(notificacoesClient) returns a IEnumerable<TNotification>, but the signature of your method waits List<TNotification>. So you have two…
-
1
votes2
answers86
viewsA: I do not know how to call a certain item on the list that enters my "for" in other functions
Your code has several problems. Among them: Problems in the if The incident is on the following line: if (c.get(Calendar.DAY_OF_MONTH) = socios(i).getData) The problems are: Are you using the…
-
1
votes1
answer108
viewsA: Java java.lang.Nullpointerexception in a Jpanel constructor
According to the stacktrace you posted, the exception is occurring in the constructor of ImageIcon, in the method initSquares: ImageIcon ii = new ImageIcon(this.getClass().getResource("images/" +…
-
6
votes2
answers46
viewsA: Problem to check list
== compares references. Two Strings can have different references, even with equal values. Try to change: if (item.name == nameD) To: if (Objects.equals(item.name, nameD)) Note. In the example above…
-
3
votes1
answer73
viewsA: My site is giving error in Jquery and do not know what to do
TL;DR; The above message is not an error, it’s just a log. It’s saying that Jqmigrate has been loaded. If that’s all, you don’t have to worry ;) Explanation To interact with the browser console uses…
-
0
votes1
answer103
viewsA: Open responseText on a new page
The tag iframe allows you to insert one HTML document into another. Example: document.getElementById('meuFrame').srcdoc = "<html> \ <body> \ <p>Segundo documento</p> \…
-
0
votes1
answer75
viewsA: CSS / jQuery - How to select the next element after main?
The selector first-child selects elements that are your father’s first child. And the selector * selects any element. Soon, you could do something like: main > *:first-child { /* Estilos */ }…
-
6
votes1
answer2009
viewsA: "Incorrect datetime" value in Mysql
According to the documentation relating to formatting of dates, a %d already represents the two digits of the day of the month. Similarly, %m already represents the two digits referring to the month…
-
0
votes4
answers1255
viewsA: Index returning -1 in Java Arraylist
According to the documentation, Arraylist#indexof returns the index of a given object. As in your case is a ArrayList of Contas, you would have to pass a Conta to find something. So instead of:…
-
0
votes2
answers76
viewsA: Java File Writing Difference
I suggest using the first solution, it uses the newest file API, which has its advantages. For example it is more practical to work with Path than String for file paths. Regarding the final result…
-
5
votes1
answer971
viewsA: How do "Docker" and "containers" (LXC, LXD) work?
Take a look in this reply (English). In short: Linux Container (LXC) is a low-level means to virtualize Linux systems. It works at the operating system level. LXD is a hypervisor that uses LXC…
-
1
votes1
answer53
viewsA: Web Essentials does not display options
According to the website of the 2015 Essentials Web extension Marketplace the minification and bundling of JS/CSS, as well as some other features, were moved to specific plugins. Please download the…
-
0
votes1
answer74
viewsA: Translate Connection String H2 (JDBC) to Mysql (JDBC)
'jdbc:H2:file:/tmp/orchestra-db/orchestra_core.db' follows the format: jdbc:H2:file:[path] Where: jdbc: is a fixed string H2: is the driver name used, in this case the driver for DB H2. file:…
-
2
votes2
answers69
viewsA: How to open a project directly from the explorer
In accordance with this reply in English, there is a configuration of Android Studio (AS) to disable the rehabilitation of the latest project: Settings -> Appearance & Behaviour -> System…
-
3
votes2
answers2941
viewsA: Is it possible to change the browser zoom with code?
Behold this reply (English). In short it is possible to use: document.body.style.zoom = 1.0 But this property is not standard for all browsers. Instead use tranforms instead: var scale = 'scale(1)';…
-
1
votes1
answer263
viewsA: BD modeling for "multi-level marketing"
Make a table that has a FK for itself. So you use recursion to describe the hierarchical structure of indications. Example: CREATE TABLE pessoas ( id serial PRIMARY KEY, indicador integer REFERENCES…
-
3
votes2
answers532
viewsA: Encrypted password check
Some considerations on safety According to what you described, I suggest you check the following topics: Do not send your password to be encrypted in the bank. During this process anyone listening…
-
11
votes2
answers937
viewsA: How many tables does Mysql support?
I don’t think your premise is a good idea. Imagine that you want to add a column in these "tables per user". 1000 users would mean at least 1000 commands to run! What is a nightmare in both…
-
1
votes1
answer1507
viewsA: Undefined object reference for an instance of a Visual Studio object
As commented, this error happens when trying to access a property/method of a null object. As the exception is occurring on the line id =…
-
1
votes4
answers275
viewsA: API project with many layers
One thing I’ve learned is that there’s no design pattern that fits every case. Going a little to extremes, if your application should just add two numbers, create 5 different projects(Services,…
-
6
votes2
answers419
viewsA: What are private and public Keys?
As you’ve already done the short and thick answer, I’ll do the long. To understand the terms 'public key' and 'private key' you need to know a little about encryption algorithms. Introduction to…
-
4
votes2
answers325
viewsA: Are DDD and Entity Framework mutually exclusive?
By no means! The DDD states that domain entities should not be aware of how persistence occurs. But that doesn’t mean it doesn’t exist! At the end of the day persistence is still required. A…
-
1
votes3
answers223
views -
1
votes1
answer25
viewsA: Possible values for Comboboxpopupanimationkey?
The element PopupAnimation uses the enumeration of the same name, described here. Possible values are None, Scroll, Fade and Slide.…
-
1
votes1
answer46
viewsA: Standard input and output (using C programs)
Use the pipe(|) operator. It does just what you need: takes the output of one program and uses it as input from another: ./teste | ./1024
-
2
votes2
answers198
viewsA: Shellscript does not find the directory
The problem is that in the first script ls returns the paths relative of the files. When these paths are consumed in the second script by hashdeep, the program assumes that they are relative to the…
-
0
votes2
answers620
viewsA: Where em Join - Sequelize
After modeling your tables, use the syntax include, in accordance with documentation.…
-
1
votes1
answer103
viewsA: Docker and Nodejs
Take a look at the Docker Compose! Docker Compose is Docker’s native tool for handling applications that use multiple containers. Basically, you specify a file 'Docker-Compose.yml', which identifies…
-
0
votes0
answers110
viewsQ: How to remove 'Security' SOAP header
I am trying to consume a SOAP 1.2 web service using a WCF client. The problem is, whenever I make a request an exception MessageSecurityException occurs with the following internal message: SOAP…
-
0
votes4
answers246
viewsA: Error using Collections.Sort()
The problem is probably caused because ContaCorrente implements Comparable, but Conta no. And in your code you are instilling a list of accounts( instead of current accounts): List<Conta> list…
-
2
votes1
answer937
viewsA: Running SQL Server External HD Database
According to the comments of the question, there will be some performance loss (because of USB) but nothing prevents you from installing/running SQL Server on an external hard drive.
-
1
votes1
answer444
views -
11
votes3
answers4342
viewsA: What is the difference between encryption, encryption and hash calculation?
Encodings are 'languages' used to represent information through well-defined and known bit patterns. Just as you know that the sequence of letters’m-a-ç-ã' represents a fruit in English, a program…
-
1
votes2
answers1147
viewsA: Differences and use of RMI, Socket and JPA
As commented, these three technologies have VERY different purposes. It makes no sense to compare them. Remote Method Invocation (RMI) is a protocol used by Java for communication between different…
-
8
votes3
answers1114
viewsA: Error on line 0 (zero)? How can this?
Taking a look at the sources of the PHP interpreter, I came to some conclusions. The PHP interpreter handles various types of errors (exceptions, warnings, deprecated warnings, etc.). The default…
-
1
votes1
answer64
viewsA: How to create a Privatefontcollection
Some simple improvements to implement: Use@ before a string to interpret it literally. This helps in cases when there are too many characters to escape. Ex:…
-
3
votes1
answer597
viewsA: run Task.Whenall wait and then run back
If your goal is to wait ChamaTarefas() complete and then wait for 10s more, add Wait() on your call on Main(): private static void Main(string[] args) { while(true) { // Chamar wait faz a thread…
-
2
votes4
answers2433
viewsA: Count the number of times a character appears in a string
echo $v_dir_relatorio | grep -o / | wc -l echo to pass something to the pipeline, in this case $v_dir_relatorio grep to find a pattern, in this case the character '/'. The option -o prints each…
-
1
votes1
answer110
views -
6
votes2
answers207
viewsA: How to apply Stylededitorkit to a Jtextpane without inheriting this class on my screen?
Java does not have multiple inheritance by design. Java creators decided that providing multiple inheritance would add too much complexity and too few benefits to the language. For example, what to…