Posts by mutlei • 2,978 points
103 posts
-
4
votes2
answers1563
viewsA: In HTML and CSS should I use Single Quotes or Double Quotes? Is there any recommendation?
The common standard, the standard used in HTML is the presence of double quotes (") between each attribute of an element, such as style, src in images. It is purely a standard. It is preferable to…
-
0
votes1
answer933
viewsQ: Logging a batch file
I have the following problem: We receive a daily backup of the database from 4AM to 5AM, and we have a batch job running at 6 AM to get this database running on a VM. In Task Scheduler, everything…
-
-1
votes2
answers59
viewsA: Beginner - Unexpected Behavior in a Variable
By copying your code on ideone, I’ve actually verified that code behavior is as you say. The problem is that each time you are increasing x (x = x + 1) and then you subtract that value from 30 30 -…
-
4
votes3
answers3987
viewsA: What does it mean to run lint in the code?
A linter is kind of a code formatter with a bit of syntactic analysis attached. I know two "linters" so to speak, the Htmlhint used to check HTML code in order to slightly override the rules of…
-
5
votes1
answer5505
viewsA: What is starvation (starvation)?
Starvation is a concept that does not directly refer to deadlock/livelock. Starvation is when a process cannot be executed in any way because there are always higher priority processes to be…
-
1
votes2
answers239
views -
2
votes1
answer195
viewsA: How to add dependencies in a module already initialized in Angularjs?
Translation of this answer I use the following method and it works well with me: var app = angular.module("myApp", []); angular.module("myApp").requires.push('ngResource'); If you need to put more…
-
5
votes2
answers239
views -
2
votes2
answers88
viewsA: ngFor does not give the expected result
You’re defining the structure of this.fil every iteration of the foreach. For example, I’m going to assume that objeto._retorno this is how: objeto [ _retorno [ { "FILIAL": "filial1", "porc":…
-
0
votes2
answers596
viewsA: How to use a dynamic url in angular projects 6
I found this documentation here. Basically, you can declare variables whose values change with the environment, just create a constant in the files that define these environments, and reference…
-
1
votes1
answer202
viewsA: How to send an image per post at the angle
At Angular 6, you can send the image bits in the body of the POST request. sendImage(imagem) { return this.httpClient.post(URL, imagem, {headers: this.headers}); } And then the server would process…
-
1
votes1
answer296
viewsA: Routes at Angular 2+
You have to put a name to the second router-outlet <router-outlet name="nomeASerDado"></router-outlet> When defining on routes, specify the desired outlet {path: 'caminho/a/ser/seguido',…
-
1
votes1
answer531
viewsA: Working with app routing at angular
After breaking my head a little bit (and doing some research), I was able to do something similar to what you want. My application has a navigation bar that I want to leave it on top all the time…
-
5
votes2
answers159
viewsA: What is the "dirname" attribute in HTML for?
According to the W3schools, the attribute dirname of a input enables the text direction of an input to be sent to the server. The values that the server should receive in this case should be ltr if…
-
2
votes1
answer66
viewsA: Display messages from a list sequentially
Just create a loop to scroll through the array sequentially: for(var i = 0; i < quotes.length; i++) quote = quotes[i]; It is not necessary to place repeated instructions between keys because it…
javascriptanswered mutlei 2,978 -
-2
votes3
answers885
viewsA: SQL server connection with angular 4 +
There is a considerable possibility to make queries, insertions and data manipulations of a SQL Server BD from Angular4. To execute queries/queries, you will need to put the BD in contact with some…
-
0
votes1
answer184
views -
6
votes2
answers4147
viewsQ: What is the difference between Embeddedid and Idclass in Hibernate?
I have read in the Hibernate 5.0 documentation that you can implement composite primary keys using two ways. The first of these is using the annotation @IdClass and imitating the Idclass attributes…
-
0
votes2
answers1048
viewsA: How to understand MVC architecture at Angular 4?
An Angular 4 eclipse project has the following folder structure: node_modules (where the Node.js libraries are located) src (where all source files are located) "loose" files (this is where some…
-
4
votes1
answer120
viewsA: What comes after POO?
Java can be used for either a client application, containing the interface that the user will use for their tasks, or in a server application, receiving HTTP requests and responding the way you…
-
1
votes2
answers997
viewsA: How to insert new object in json file
According to the comments (with the author’s response input), the error was that the object was being serialized twice. So much here: jsonToOutput = JsonConvert.SerializeObject(items); How much…
-
0
votes2
answers659
viewsA: summation multiplication algorithm
I managed to break my head here and think that I solved the problem besides optimizing a little the code. N1 = int(input('Digite um número')) print() N2 = int(input('Digite um número')) print() if…
-
0
votes1
answer760
viewsA: Kanban with Bootstrap
After a little google search, I found one that should please you, given that the answer @Flavio did not like. I found it on the website bootsnipp, with this direct link.…
-
2
votes3
answers282
viewsA: How to use a text selector in html?
You can assign a function to be executed when an event occurs in the element. The event for when a text is selected in the tag, would be the event onSelect. For example, you want the selected text…
-
1
votes9
answers15601
viewsA: 'nodemon' is not recognized
When you are going to execute some command from a Node library, you do not run the library directly, but by Node, by the command: npm run <comando no package.json> In this case, with the…
-
1
votes2
answers1911
viewsA: 2 commands in the same python line
In your own code you have the answer. But giving the solution: You can put the numbers together with the letters using print() so that you indicate the place of a number with {} and then "fill" with…
-
1
votes1
answer87
viewsA: Read an Even number
You only need two variables. You can do it like this: int calculo = numero * numero; if (calculo % 2 == 0) System.out.println(calculo); // O operador % retorna o resto da divisão. 0 seria numero…
-
1
votes2
answers64
viewsA: Android - Open Random Activity
Yes, it is possible. The way to open an Activity on Android is through Intents, as below: Intent myIntent = new Intent(CurrentActivity.this, NextActivity.class); myIntent.putExtra("key", value);…
-
3
votes4
answers1780
viewsA: After all, why does the PHP source code not appear in the browser?
I have little experience with PHP, so feel free to edit and improve this answer. The reason PHP source code does not appear is that it is not HTML code, it is executed/interpreted by the server and…
-
1
votes1
answer1473
viewsA: Stylize the native HTML5 video player
Yes, there are ways to style the HTML5 video/media player. You use CSS and Javascript for this. I couldn’t make a functional example of this right away, but there’s this example here for you to take…
-
1
votes1
answer173
viewsA: Does System Modeling Need Java?
Systems modeling NAY needs Java, well... Doesn’t need any programming language! What is meant by using "let’s model the system" is "let’s make an initial sketch of the project". Modeling would be,…
-
1
votes2
answers87
viewsA: Replace the second repeated character
You can use the function TRIM oracle. Leaving the query this way: SELECT TO_CHAR(TRIM(TRAILING . FROM campo)) FROM tabela WHERE condições…
-
3
votes2
answers1159
views -
5
votes1
answer4360
viewsA: How to remove the UNIQUE KEY attribute from a column in Mysql?
The very one @Igorsantana commented on the resolution as follows:: He researched which Index existed in the bank. SHOW INDEXES FROM lojas_info; Deleted the index that contained the UNIQUE KEY: ALTER…
-
4
votes1
answer754
viewsA: What is the difference between the various JOIN types of SQL?
Being minimalist, and considering that A is always the table on the left, and B on the right: Inner Join = only records linked in tables A and B Left Join = all records of A, only the linked records…
-
2
votes3
answers644
viewsA: Discovering the SQL of a Resultset
I’m writing this based on this javadoc. For the javadoc, the class FirebirdResultSet inherits from the ResultSet library java.sql. The class ResultSet has the method getStatement() that returns an…
-
1
votes3
answers200
viewsA: Eclipse Project starts with error
Yes, it’s normal. It turns out that the project appcompat_v7 has the libraries that the project needs to import to work on older versions of emulators, or rather emulators emulating older versions…
-
1
votes2
answers3248
viewsA: Get HTML from multiple Divs with the same ID
The first thing I see is that you’re wearing IDs equal. The idea would be the use of classes and not of IDs, for every ID is unique on the page. In your code, you have something like the below, and…
-
0
votes1
answer62
viewsA: Performance with external images
I can take this image of 660x400 that is on another host and load the img tag with the url but put with the size 330x186? Yes! The tag img has the attributes height and width exactly for this!…
-
1
votes2
answers2364
viewsA: Josephus problem (recursive)
The value of f(n-1, k) is the position of the person to be saved with one less person, i.e., the solution of the previous problem. Example in Ideone The program makes the calculations of the…
-
0
votes4
answers1058
viewsA: How to copy a datagrid to an arraylist
You have to make an external loop that gets the lines, and a nested loop to get the cells from that line. Similar to this here: foreach (DataGridViewRow row in dgvCompeticao.Rows) { ArrayList array…
-
2
votes2
answers1033
viewsA: Make two Directives have the same $Scope at Angular
You can use the function $broadcast of $rootScope to transmit the events you wish to. Code: demo.controller('MyCtrl', ['$scope', '$rootScope', function ($scope, $rootScope) { $scope.count = 0;…
-
7
votes2
answers2347
viewsA: Why does my Try/catch only accept "Exception and" (Generic)?
According to the javadoc of the Fileitem class, this is the expected behavior as it only sends a Exception when an error occurs, without a more specific type of object. In short, you can treat the…
-
2
votes2
answers105
viewsA: Wrong date calculation
You can fix this with a variable check meses before printing. if(meses == 12) { meses = 0; anos++; } return string.Format("{0} Anos e {1} mês(es)", anos, meses);…
-
0
votes3
answers468
viewsA: How to pass arguments for running an android app?
To pass data of a Activity to another, you can attach to the Intent an object Bundle, which will contain the data you send. Then the new Activity will have to extract the data from the Bundle.…
-
4
votes1
answer384
viewsA: How to read/translate the Yield keyword?
A good translation for the word yield would be produces, as stated by the user @Onosendai in the comments. Other possible translations: Delivery; Gera; Harvest; (by @jean) Collection; (by @jean)…
-
2
votes2
answers589
viewsA: Image changes alignment of all components within a div
As @Natan commented, add the line vertical-align: middle; in id searchButton and your CSS, leaving CSS that way: .fields label { background: #f6a828; border-radius: 6px 0 0 6px; color: #fff; cursor:…
-
0
votes1
answer106
viewsA: Import error missing but reported by Eclipse
I managed to solve the problem. The validation of Eclipse could not recognize the files, IE, it was enough to change the project settings to ignore the "errors".…
-
1
votes1
answer106
viewsQ: Import error missing but reported by Eclipse
An application I am making creates a browser and provides the functionality by the web page that this browser displays. The page makes use of AngularJS to work, and has absolutely no problem with…
-
1
votes1
answer265
viewsA: Is there any way to move the input width and continue auto resizable in Bootstrap?
The problem with your example is the CSS application priority. Explaining: There are priorities for applying style rules in the CSS, they are the following, from highest to lowest priority: Rules…
twitter-bootstrapanswered mutlei 2,978