Posts by Thyago Dias • 465 points
20 posts
-
0
votes2
answers167
viewsA: How to use Database Diagrams in Visual Studio 2015
As @Maniero mentioned, there is no more. One alternative I really like is Dbeaver. It is very complete, has support for Mysql, Postgresql, Sqlite, Oracle, DB2, SQL Server, Sybase, MS Access,…
-
0
votes2
answers92
viewsA: Dynamic consumption of REST React API
You can add a state to store your search field: state = { protocolo: '', } Using Xios you can pass the parameters this way: const response = await api.get('solicitacao', { params: { protocolo:…
-
1
votes1
answer19
viewsA: Continuous Audio Transmission (Web Radio)
In customers you can use the Web Audio API browser. On the server you can use the Socket io. for continuous audio transmission. Follow two cool articles to inspire you a way to start: How to Work…
-
1
votes3
answers126
viewsA: String to date.parse Javascript conversion problem
You can’t make a Date.parse of an invalid date. A documentation mozilla says that: The Date.parse() method analyzes a data representation in string, and returns the number of milliseconds since 1…
-
0
votes1
answer47
viewsA: Invalid JS token
You only get this error in Vscode because it must be configured with Eslint, which helps you in identifying errors in the code. Your error is JS formatting and syntax, so invalid token error. class…
-
0
votes2
answers162
viewsA: When using the term "prototype" to refer to a Javascript method, as in "Array.prototype.foreach"?
They are different. Array.prototype.forEach allows you to access the constructor function of Array.forEach. console.log(Array.forEach) // undefined console.log(Array.prototype.forEach) // function…
-
1
votes3
answers1776
viewsA: How to show error returned from backend in nodejs in React
try { // Faça aqui sua requisição const response = await http.get("http://exemplo") } catch (error) { // Caso a requisição dentro do try falhe // este bloco captará…
-
0
votes2
answers511
viewsA: Using React, Typescript and Nodejs. Sending form for JSON user registration. I only know how to use Formdata. How to pass the elements as JSON?
First on the server express you must pass this setting to it to work with the format json: app.use(express.json()) In his controller you can access this data in the format json thus:…
-
0
votes2
answers346
viewsA: Differences between Monolith and Monorepo
You may have one or more monoliths in a monorepo. They are not comparable. Monolith refers to how your application is structured, for example, if your application is one to connect to the bank,…
front-endanswered Thyago Dias 465 -
0
votes2
answers214
viewsA: List values of an array in a spinner, and when selecting an item print its value from another array
There is another topic that also shows a way to do this, but in another context, that of nested spinners: Spinner together
androidanswered Thyago Dias 465 -
0
votes1
answer356
viewsA: Discordapierror: Invalid Form Body DICT_TYPE_CONVERT: Only Dictionaries may be used in a Dicttype
For documentation .ban expects these arguments in that specific format: guildMember.ban({ days: 7, reason: 'They deserved it' }) Try to pass the information in this same format, it should solve your…
-
3
votes1
answer187
viewsA: 400 Bad request on express and typeorm server
You do not need to create a formData for this, just pass the fields directly on the request body. Example: await api.post('usercreate', { userName: name, userPassword: password }); Or if you want to…
-
3
votes2
answers65
viewsA: File does not appear for comitt in Smartgit
First you create an example file of this persistence.xml, for all who are developing know that it is necessary, for this you can create a file persistence.exemple.xml. In it you put the file…
gitanswered Thyago Dias 465 -
1
votes1
answer94
viewsA: Access denied when I put two roles on routes using Adonis Acl
Try to solve using or, in this way: Route.group(() => { Route.resource("/users", "UserController").only(["update"]).validator("User") Route.resource("/users",…
-
0
votes3
answers213
viewsA: Why does the DIV break line when resizing?
Hello, you can resolve using the flex-box in this way: header{ width: 100%; max-width: 1550px; margin: auto; background-color: #eee; padding: 5px; box-sizing: border-box; overflow: auto; display:…
-
0
votes2
answers44
viewsA: Is Lodash still needed with ES6+?
But Lodash’s purpose is different. ES6 is roughly a specification of Javascript, a set of rules that will regulate language implementations. The purpose of Lodash is to facilitate Javascript,…
javascriptanswered Thyago Dias 465 -
1
votes1
answer216
viewsA: PDF being generated with blank sheets
Your method for downloading the PDF may not be right. I advise you to specify the type of answer for blob, as an example: const pdf = { download: url => http({ method: 'get', responseType:…
-
1
votes2
answers150
viewsA: v-form post does not send data
Try to create a function to send your data to the API, follow the example: <v-form method="post" action="onSubmit()"> <v-text-field name="escola" v-model="name" required…
-
4
votes2
answers214
viewsQ: List values of an array in a spinner, and when selecting an item print its value from another array
I have a spinner that lists the types of person (physical and legal - respectively Ids = 1 and 2) and would like when selecting one of them, to be printed in a Toast your ID. //array tipoPessoa…
androidasked Thyago Dias 465 -
-1
votes1
answer268
viewsQ: How to Set a Home Screen Fragment for Android App
I created an APP with a drawer menu, that menu drawable that appears as a template when creating a project in Android Studio. I managed to create the fragments and relate to the menu, is working…