Posts by Ricardo • 14,521 points
350 posts
-
2
votes0
answers21
viewsQ: What is the purpose of some Elasticsearch document fields to have @ and _ at the beginning and some duplicates
Because some fields of document of Elasticsearch have at its beginning the characters "@" and "_" and are duplicated ex: @ at first: @tags, @type _ at first: _score, _type Some fields have two…
elasticsearchasked Ricardo 14,521 -
2
votes0
answers18
viewsQ: What’s the difference between Properties and Fields in Elasticsearch documents
What is the difference of properties and Fields? when creating a mapping I have the possibility to define a value with both; What and When I should use each one? Below a document from Elasticsearch…
elasticsearchasked Ricardo 14,521 -
1
votes0
answers14
viewsQ: What is the difference between Marshal.Sizeof and sizeof?
What is the difference between the results of the method Marshal.SizeOf(Type) and keyword sizeof? When to use one or the other? When there are differences of results?…
-
1
votes0
answers35
viewsQ: What is the meaning of the term: Thread-Agnostic
What is the meaning of the term: Thread-Agnostic? It is possible to exemplify? NOTE: I checked the use of this term in a Microsoft documentation but this was not clear, Link…
-
1
votes1
answer45
viewsQ: Read timed out when running Sonarscanner using Jenkins
During the execution of an analysis of the Sonarscanner integrated into the Jenkins, the following message is required on console output: INFO: EXECUTION FAILURE INFO:…
-
0
votes1
answer49
viewsQ: Purge invalid data before creating a Foreign Key (FK)
I’m working with a database bequest where there are 3 tables: Tabela A, Tabela B and Tabela C which stores the relationship between Tables A and B, however when the bank was created the Foreign Keys…
-
0
votes1
answer332
viewsQ: Error Performing Update on Entity Framework Core
I own a Teste de Integração that carries out the updating of an object in the database, for this I instate a new entity and insert the different properties and insert a Valid PK id however while…
-
0
votes1
answer321
viewsQ: DROP permission of tables in SQL Server databases
When executing the (T-SQL) DROP command below in SQL server the following message is displayed: Cannot drop the table '[dbo]. [TABLE]', because it does not exist or you do not have permission.…
-
1
votes1
answer30
viewsQ: When defining which subpropriety in the EF mapping via Fluent API should be ignored, a Argumentexception is launched
I created a map on Entity Framework via Fluent API, however when defining that a subpropriety should be ignored the exception is thrown below: System.Argumentexception: 'The Expression 'x =>…
-
4
votes1
answer420
viewsQ: How to translate "Errormessage" from a "Custom Attribute"
I created a Custom Attribute which is valid only if a property CPF is a valid CPF, but when locating the application I noticed that my Custom Attribute were not having their messages located by the…
-
7
votes4
answers1423
viewsQ: How to build custom queries using Entity Framework?
I have an SQL Server database that is accessed via ORM Entity Framework Core, where access to a collection of products, these products are filtered through a DTO that has the terms of the search,…
-
1
votes0
answers112
viewsQ: How to use more than 1 'div Asp-validation-Summary' in the same Razor view?
I have a Razor view that has two different forms, one of Login and the other of User Registration, I built both forms and I inserted as usual the tag with asp-validation-summary <div…
-
5
votes2
answers832
viewsQ: Create route to webapi method with parameters via querystring
I have the following route in class WebApiConfig of a project Aspnet Wepapi config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "{controller}/{action}/{id}" ); Edited: Using…
asp.net-web-apiasked Ricardo 14,521 -
10
votes1
answer405
viewsQ: What’s the difference between cloud computing and web computing?
What is the difference of cloud computing and web computing? Both are not local and are mostly accessible via browser then one gets the impression that they are similar concepts.…
-
18
votes3
answers16110
viewsQ: What is the difference between web server and application server?
What’s the difference between web server and application server? Where each one is/should be used? There is some interaction between them (a software can use the 2 technologies together)?…
-
11
votes4
answers1407
viewsQ: How to work with values that far exceed the long (64 bit) limit value
How is stored and performed operations with numbers that exceed the limit values of type long and double? How the four primary operations are done with these numbers (sum, subtraction,…
-
4
votes1
answer490
viewsQ: Check the integrity of batch video files
How to check automatically and customizable via Shell/Programming Language the integrity (file Incomplete/Corrupted) of video files (.avi, .mp4, .mkv among others) ? OBS: Having as limiting factor…
-
5
votes1
answer490
viewsA: Check the integrity of batch video files
Since there is no HASH prior (when there was certainty of the state of the file) it is necessary to use a Third Party program FFMPEG and a script executed via Powershell that automates the execution…
-
3
votes2
answers810
viewsA: Sqlite Database does not work on Unity Games compiled for Android
To make it work outside the editing environment (in this case on mobile) I had to make the following changes: 1) verify which environment I am in (by compiling comments I determine which code will…
-
1
votes2
answers123
viewsA: Different Jump size on Android Unity 5 devices
To solve such a problem it is necessary to make two changes: 1) Change jump condition to: if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began) so that the jump action…
-
0
votes1
answer68
viewsQ: Swap operator + for - in refactored method
The Code below has the goal of making a move on an object on the Y axis of an object following the mouse (the code works), see that the code within the if and of else if are equal except by the…
-
3
votes2
answers810
viewsQ: Sqlite Database does not work on Unity Games compiled for Android
I’m using the Sqlite as a game database made in Unity that works perfectly on Unity Editor, but when I build for Android the game simply does not access the bank (nothing is informed or released).…
-
0
votes2
answers123
viewsQ: Different Jump size on Android Unity 5 devices
I created a game like Infinite Runner that works properly in the Unity 5 Game tab but in android when I perform Jump in my character it has a climb always of different size, how can I solve this…
-
5
votes1
answer741
viewsQ: Sprite cut diagonally in Unity 5
I created a game in Unity 5 (directly for Android) (following the following tutorial) but when I run it on Android the Sprites are cut diagonally as the photo below: OBS: Unity 5 Environment Testing…
-
3
votes1
answer533
viewsQ: Fluent Nhibernate with multiple tables
I’m using the Fluent NHibernate to assist the ORM (replacing the manually made . hbm files) with a single class: User class: public class Usuario { public virtual int Id { get; set; } public virtual…
-
1
votes1
answer3307
viewsQ: Replace strings from filenames with Windows Powershell
How to replace strings from batch file names using Windows PowerShell? Ex: Replace the " " character with the "_" of all files in a folder.
powershellasked Ricardo 14,521 -
1
votes1
answer3307
viewsA: Replace strings from filenames with Windows Powershell
To do this you can use the following command: Dir -R | Rename-Item -NewName { $_.name -replace " ","_" } which in this case will fetch and rename files recursively ( -R). It is also possible to…
powershellanswered Ricardo 14,521 -
28
votes1
answer9577
viewsQ: What’s a greedy algorithm?
What is an Algorithm Greedy ? What are its characteristics ? What are its advantages and disadvantages ?
-
25
votes1
answer9577
viewsA: What’s a greedy algorithm?
Algorithm Greedy is a common solution to optimization problems where: Makes the choice that seems to be best at the moment in the hope that it entails in a solution or prevention of future problems…
-
9
votes1
answer7366
viewsA: What is a backtracking algorithm?
Backtracking is a generic algorithm that searches, by brute force, possible solutions to computational problems (typically problems of satisfaction with restrictions). In an incremental way, search…
-
4
votes3
answers23953
viewsA: Which content-type is suitable for files like: . doc, . docx, . xls
Complementing a list of 220 content-types (obtained from Cakephp 3 settings) Link: Mime-types [ 'html' => ['text/html', '*/*'], 'json' => 'application/json', 'xml' => ['application/xml',…
-
19
votes1
answer7366
viewsQ: What is a backtracking algorithm?
What is an algorithm Backtracking ? What are its characteristics ? What are its advantages and disadvantages ?
-
6
votes2
answers210
viewsQ: In PHP what does this <?= ? > tag represent?
In PHP what this tag represents ? Opening tag: <?= Closing tag: ?>
-
0
votes1
answer72
viewsA: Leave Component Following Cakephp’s Pattern
If you have another point where you can be improved, comment or answer this question To change the require I used the composer.json classmap in this way (see this answer: Import Class without…
-
22
votes4
answers3410
viewsQ: What is dynamic programming?
What is dynamic programming ? Dynamic programming NAY is dynamic typing What are its characteristics ? What are its advantages and disadvantages ?…
-
26
votes2
answers5051
viewsQ: What is a deterministic, nondeterministic algorithm?
What is a deterministic and nondeterministic algorithm? What are the characteristics of both? It is possible to implement both in any language? NOTE: if possible exemplify with some implementation…
-
20
votes3
answers23953
viewsQ: Which content-type is suitable for files like: . doc, . docx, . xls
What the content-type suitable for files like: .doc, .docx, .xls (office package files in general), .pdf, media files and other less common files like Photoshop and AutoCAD?…
-
2
votes0
answers57
viewsQ: Cakephp "action" with multiple functions
I have a few points on how I can improve this "add action" (method) in my "controller": Some descriptions: In the system the user can upload aProduct in a single form, in the system a Product is…
-
2
votes1
answer72
viewsQ: Leave Component Following Cakephp’s Pattern
How can I improve this Cakephp 3.0 Component (inside the controller folder) Question discussed in: Post functional code in stackoverflow for refactoring? first: to use external libs (stored in…
-
1
votes0
answers117
viewsQ: Cakephp makes "action" and "template" more concise
I have some questions about how I can improve this "action" (method) in my "controller": Question discussed in: Post functional code in stackoverflow for refactoring? Man template has a navigation…
-
1
votes2
answers1090
viewsA: Is there any way to debug PHP via browser console?
A different way where it would not be possible to insert in the console (in case any error occurs after the call of the function you created) but debugging externally would be to write the result of…
-
3
votes1
answer132
viewsQ: Use unary HTML tags attributes with assigned value
There is a difference between using attributes unários alternatively (with a value)? such as: Standard form: <script src="/js/" defer></script> Alternative form 1: <script src="/js/"…
-
7
votes3
answers189
viewsQ: Internationalize the content of Meta Tags
We should internationalize the content of Meta Tags HTML as description and keywords? This internationalization undermines the indexing by google since it will only analyze the page in a single…
-
13
votes3
answers2891
viewsQ: What is the need to maintain a`name` attribute in a`HTML`tag?
What is the need to maintain an attribute name on a tag HTML? its characteristics are equal to those of the attribute id that still has other utilities like being the key of the arrays $_POST and…
-
3
votes1
answer186
viewsQ: What is the gain of "unifying" the resources . css and . js of a site?
Scenario: A website X has 5 . css files and 5 . js files all with 5KB, a website Y has the same HTML that the site X but its resources . css and . js are linked together (.js with . js and . css…
-
3
votes3
answers8265
viewsA: Batch rename files using Windows Power Shell
I used the following command to rename all files of a given folder and a certain extension: Dir *.txt | ForEach-Object -begin { $count=1 } -process { rename-item $_ -NewName "$count.txt"; $count++ }…
powershellanswered Ricardo 14,521 -
4
votes3
answers8265
viewsQ: Batch rename files using Windows Power Shell
How to rename all files in a folder whose name is a number (integer) followed by a certain extension (my choice) using Windows Power Shell? Example: The folder as is: 1.txt 2.txt 7.txt arquivo.html…
powershellasked Ricardo 14,521 -
1
votes1
answer983
viewsQ: Difference between Synchronous AJAX and POST/GET
There is some difference in performance and functioning between a AJAX Synchronous and a connection POST/GET? Both lock the thread (browser freezes) but there are other differentials between types…
-
1
votes2
answers1388
viewsQ: How to make a Link trigger a javascript function without redirection?
I was trying to get that by clicking on a Link HTML <a></a> a javascript function is executed, I had a priori the following idea to attach an attribute onclick on the tag <a> in…
-
2
votes2
answers1388
viewsA: How to make a Link trigger a javascript function without redirection?
You can use basically two ways: <a href="javascript:funcao()">Href</a> Indicate that you want to execute a javascript function in the attribute href. OR Add a id to the link <a…