Posts by Paz • 3,062 points
112 posts
-
0
votes1
answer481
views -
0
votes1
answer32
viewsA: Error in Unity 3D Javascript code
what’s going on in your case is that AlturaMaxima is a type, ie you are trying to do a multiplication operation of a type of variable with a floating point variable value, something similar to the…
-
1
votes7
answers7167
viewsA: How to receive the CPF number and format to be without the dots and dash(Input Mask )
Follows a solution with regex, where you don’t need to be doing several places, it will capture only the digits in a array and convert them into a string with the function Join. Example: let botao =…
-
2
votes2
answers181
viewsA: Reading and processing XML file from a CVE (Common Vulnerabilities and Exposures) database with Python
The regex you should use is: CVE-\d{4}-\d{4,7} How it works: She searches for the sequence "CVE -" If successful it checks if there are 4 digits then "\d{4}" If success she checks if the sequence…
-
1
votes1
answer22
viewsA: Export query Node.js to HTML
You must fill out the Answer and send it to the results to be returned by the API. Modify your code to look like this: app.get("/",function(req,res){ var queryResults = []; sql.query({sql: 'SELECT…
-
2
votes1
answer71
viewsA: Fill array with array return
Here’s an example of how to implement in your case, you should use for to put your children’s data inside the property dados while iteration occurs (untested as I do not have access to your API).…
javascriptanswered Paz 3,062 -
2
votes2
answers51
viewsA: How to return the size of a variable result?
For those who like solutions in one line I wonder how I return the amount of notes that hit the record [...] You can use the filter function to return the notes records that correspond to the filter…
javascriptanswered Paz 3,062 -
1
votes1
answer96
viewsA: Regular expression extractor error - JMETER
First option Following regex will return info on id: id"\s*:\s*"([\w=]*)" Steps to work: Use that expression in the field Regular Expression Put the value 1 in the field Match No. On the field Field…
-
0
votes2
answers119
viewsA: Continue searching in the same Regex
I believe that capturing all digits after the word "Tel:" ignoring non-digit characters is impossible with a single regex execution. regex works by analyzing character by character, capturing only…
-
2
votes1
answer56
viewsA: One-To-One relationship with EF?
You must use the method Include(x => x.NomeDaSuaEntidade) together with the context call when returning entities related to your model. But in addition you must also put a property of Foreign Key…
-
1
votes2
answers214
viewsA: I need help Variavel i
Your Function is next, the loop FOR is correct, but you should put the i value that is being changed inside the function to print on the console. Your code should look like this: function…
-
2
votes1
answer267
viewsA: Error using Lower(), upper() and title() functions
Your mistake is declaring as a list the variables bomdia and bomdia2 By declaring this way you are declaring a list of string’s and the upper, Lower and title methods are string methods, so the…
-
1
votes1
answer279
viewsA: Create similar C# dictionary in Typescript?
The objects in typescript and Javascript are very similar to a C#dictionary, you can enter values and identify them through a keyword, you do not need to create any structure for this, the objects…
-
0
votes1
answer1101
viewsA: Auto-increment in Excel, based on line value
You can achieve this with only 3 SE functions. Place the following function in the cell B2 =SE(A2=A1;SE(ÉNÚM(B1);B1;1);SE(ÉNÚM(B1);B1+1;1)) Explanation of logic: The first SE will make the check if…
-
1
votes2
answers307
viewsA: Search(Json + Javascript)
1- Is it possible to consume this webservice with javascript only? I’m only using HTML and CSS. 1 - No, because this service is blocked for CORS, so you must request this service through the…
-
0
votes1
answer32
viewsA: Core Entityframework called separate tables
To filter in the Entity Framework just use the LINQ (Integrated Language Query) in context call. For example, if I want to filter all Contributors that have the Id with value 10 just make the call…
-
4
votes4
answers319
viewsA: Regex - set 2 limits and pick up all content inside
The answer of the user nullptbr is almost correct, but she will capture the first occurrence of ENERGIA ELETRICA CONSUMOuntil the last occurrence of the character %. So if there is more than one…
-
3
votes5
answers1048
viewsA: What is the use of knowing how to debug a code in R?
What is the utility (for a data analyst) of knowing how to debug a code? In general "debuggar" or debug a code has the purpose of checking if one or more functionalities of the application when…
-
3
votes3
answers259
viewsA: Negative lookbehind only works on Google Chrome, is there an alternative to other browsers?
Apparently the problem is in < no Edge does not work, nor in Mozila. What is the problem with the expression? The problem with the expression is that it uses the Negative lookbehind (?<!).…
-
1
votes2
answers117
viewsA: Reply POST comes empty
I believe you’re returning a Promise, then the method should be used .then() in the request, the method .subscribe() is for Observables. Service function teste(user) { return…
-
1
votes2
answers7370
viewsA: Regex special characters required
Regex Usada This regex does the validation, you can test it here: (?=.*[}{,.^?~=+\-_\/*\-+.\|])(?=.*[a-zA-Z])(?=.*[0-9]).{8,} Remembering that you should use double escape where it has the character…
-
3
votes2
answers382
viewsA: Regular expression that finds patterns in which some terms can change?
Try this regex (PROJETO|PROTOCOLOS) *?N(º|o) *?[0-9.]+ *DE *\d+ DE \b.*\b DE \d*\. with the global flag, which default is executed in the method regex.finditer(string) So your code would look like…
-
5
votes1
answer63
viewsA: Remove tags generated at the end of a string from a Text Editor
If you need to get exactly one sequence at the end of the text you can use the token $, your regex only needs a limiter and a quantifier in the sequence you want to capture, so you don’t have to…
-
2
votes1
answer138
viewsA: Print json data list
I believe what you’re looking for is the method filter, with it you can filter your object array by the value of one of the property of your objects. Follow an example from filter being used in its…
-
2
votes1
answer142
viewsA: Double map the same entity
There is a more "clean" way to map the class, you can use a Map class of type EntityTypeConfiguration from the EF Fluent API, in it you can specify everything at once related to the class that will…
-
8
votes3
answers789
viewsA: How is a REGEX Javascript for Mail Tracking Code (AZ123456789AZ)
As I said, your regex is almost right, you just need to take the [] unnecessary, making some corrections she would look like this: ^[A-Z]{2}[1-9]{9}[A-Z]{2}$ I took a test on this one link, you can…
-
3
votes1
answer1708
viewsA: Consume API with React
You must use the fetch method by entering the API address, identify the method (POST, PUT,GET, DELETE), insert the required header and send the data in the body of the request. Register…
-
1
votes2
answers64
viewsA: View Image in Javascript
As the user Máttheus Spoo pointed out, there is a syntax error in the creation of your table with image, when you put 2 signals " javascript "understands" that you are closing your string, so to…
javascriptanswered Paz 3,062 -
0
votes1
answer73
viewsA: Regex in word XML
The best way to capture a text in the case of your XML is by using the open and close tags as the capture delimiter, ie, capture anything that is outside the tags, starting to capture any character…
-
0
votes1
answer282
viewsA: Creating ASP.NET Core File Folder
To do this you must instantiate a variable equivalent to your project, add the item to it by identifying its type and save it. Here’s an example of how to do this: var proj = new…
-
0
votes2
answers129
viewsA: Consuming Json, problem with Cors
If the methods have CORS enabled in server side a small change in your AJAX request can solve everything, you must add the line crossDomain: true in your request header. Here is an example of an…
-
0
votes2
answers608
viewsA: Regex to validate currency, fractionated, accepting negatives
There are 3 rules you should consider with your problem: Can’t capture if it’s negative and started in ","; You cannot capture if the number starts at "0" and has no "," then; You cannot capture a…
-
0
votes2
answers1412
viewsA: Regex to give match on first occurrence before a word
Try this regex to capture only the last occurrence of \begin before each occurrence of \questao: (?:.|\s)*?(\\begin{.*?})(?:\s\\end{enumerate}\s*?)(\\questao.*) You can see how it works here…
-
1
votes1
answer1653
viewsA: Git installation is not recognized by Windows
You probably didn’t set the PATH (path) properly install to Windows. You can determine the installation path this way: Right-click your mouse on "My Computer" (My Computer) Select Properties…
-
0
votes4
answers4237
viewsA: Validation for Phone type field
FOR THE MASK OF INPUT Try using this plugin, since there is no native resource for this. By adding it to your project you can use a method in your plugin, the .inputmask and thus set the mask for…
-
1
votes2
answers1343
viewsA: Is it possible to use firebase on computers?
Consider creating your app on Delphi, it can interact a Firebase database locally and remotely, in addition through the framework Firemonkey you can create and import your application in various p/…
-
0
votes1
answer214
viewsA: Java Restful API gets wrong date from POST JSON
Your JSON has neither Timezone nor Culture set, so when it arrives in your backend it assumes it is in a standard Timezone and adjusts to your area. I suggest specifying Timezone to solve your…
-
1
votes1
answer247
viewsA: My Google Analytics doesn’t work
There may be a number of factors that cause the data not to arrive, for example not reporting the correct id in the googleTagManager API tag script statement, as I see is the case with the code you…
-
2
votes2
answers138
viewsA: Popular class with json
To successfully deserialize an object you must have the corresponding classes in the model. So if your JSON structure is: { "CorIndicador":"VERMELHO",…
-
2
votes1
answer203
viewsA: Regex expression to find more than one occurrence in the same string
[...] would like a way to find more than one #include() in my view, because the one I currently have does not find all includes only the first. I suggest you use global flag in your regex, because…
-
0
votes2
answers7845
viewsA: How to resolve "Could not create SSL/TLS Secure Channel." error?
Use the following line BEFORE CREATING THE REQUEST: ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) => true; After that the SSL/TLS service will…
-
2
votes1
answer254
viewsA: I need to go through the data of several txt, take specific data and generate a csv
[...] I need to take what’s after the following line: P.A.C.() initial P.A.C. () Sopave of quota due 3rd. parcel Contemplation due due paid effective Sopave balance [...] up to the line above this…
-
0
votes1
answer138
viewsA: Error script JS - Canoot read Property 'match'
Simple, its function getWords is not receiving your parameter, so it does not initialize the variable str and since it is not initialized you cannot use the method .match, string-specific. That’s…
javascriptanswered Paz 3,062 -
0
votes0
answers332
viewsQ: How to resolve MSBUILD : Node.js error MSB3428
I’m trying to install a package located in the directory I’m with the command npm install Node.js, but after installing some of the packages I get the error: npm install error - MSB3428: Could not…
-
2
votes3
answers2037
viewsA: Regex to validate certain date format
validate the next entry form of the dates 29/Feb/2000 [...] If you want to validate only the input format try this validation regex: \d{2}\/[a-zA-Z]{3}\/\d{4}|\d{2}\/\d{2}\/\d{4} But if you want to…
-
1
votes3
answers2884
viewsA: REGEX - Capitalized words in the middle of the sentence
If you want a solution clean using regex use this expression for capture: (^.)|(ADM)|((?<!\. )[A-zÀ-ÿ ]) And that expression for substitution: $1$2\L$3 In your JS code, you can use:…
-
2
votes3
answers127
viewsA: Make a code that brings values like this(1K, 1M or 2G)
If you want a result without rounding you can use Regex: using System; using System.Text.RegularExpressions; //não esqueça desse using public class Program { public static void Main() { string valor…
-
0
votes1
answer215
viewsQ: Difference between . Closest() and . find()
I’m trying to get the value .text() of an element in the GIFT by the name of his class, when searching saw that jQuery provides at least 2 ways to search for the element by its class: The .closest,…
-
2
votes1
answer795
viewsA: How do I detect the button click (html) on Tchromium Cef4delphi?
It is possible to detect the click of this button on the web page (html) and open for example a Delphi form? Yes, as I mentioned in the comments this can be done through a front-end interaction by…
-
1
votes1
answer643
viewsA: Fastreport’s Tfrxrichview changing color on its own in Delphi XE?
Make sure your color formatting is correct: First of all check if the amount accepted by the color should be in the format hexadecimal, TAlphaColor or RGB. You can do this by saving the file with…