Posts by Edson Vicente Carli Junior • 147 points
16 posts
-
0
votes1
answer33
viewsA: Problem with recovering the return of a Promisse
Try : create:async ({ title, description, banner, vacancies, type }) => { var insert = () => { var res = new Promise((resolver, reject) => { db.query('INSERT INTO events (`title`,…
-
0
votes1
answer637
viewsA: Firestore Missing or insufficient Permissions
I discovered the error, this message occurs for several different reasons, one of which I have not found documented anywhere, even in stacoverflow in English, occurs when you authenticate in google…
-
-1
votes1
answer637
viewsQ: Firestore Missing or insufficient Permissions
The same code if I make it inside an html page, it works: <script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-app.js"></script> <script…
-
0
votes3
answers345
viewsA: Problem with jQuery addclass and Removeclass
You could do so in the event click: $('.lala').addClass('video').removeClass('lala');
-
0
votes1
answer59
viewsA: vuejs vuex firebase
I believe you need to return a default value while you still don’t have the bank value, or augment the value arrive to display the page: export default { firebase () { return { gastos:…
-
0
votes3
answers454
viewsA: Replace Sql in the middle of the text
First you have to convert to a format that SQL SERVER understands (see : https://docs.microsoft.com/pt-br/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017) I suggest something…
-
0
votes2
answers218
viewsA: How to pick up ping time with the https node module
Try : const https = require('https'); const hostname = 'www.site.com'; setInterval(()=>{ let startRequest = new Date().getTime(); const req = https.request({ hostname: hostname }, function (res){…
-
0
votes1
answer133
viewsA: Image (BITMAP) for String
You can try converting to a Base64 string, in this case try this : using (Image image = Image.FromFile(Path)) { using (MemoryStream m = new MemoryStream()) { image.Save(m, image.RawFormat); byte[]…
-
0
votes1
answer72
viewsA: Pick string value from txt
If always READ or REDUCE, when passing through the COO create an object that has two fields, COO and type. Then you keep the COO and the guy and you keep that object on a list. At the end you will…
-
0
votes3
answers721
viewsA: Select Distinct is bringing duplicate Mysql data
Distinct will not bring one line per id, so you will need to define which lines of that id you will bring and filter in the Where to come just one line, or, make a cursor. For example, if you only…
-
1
votes2
answers3840
viewsA: Compare dates in sql
The dice must be a datetime or smalldatetime, so it keeps both values. You can do so: convert(date,@data1) = convert(date,@data2) So you compare by ignoring hours as both are converted from DATETIME…
-
1
votes1
answer541
viewsA: I should still save files as . HTM or just as . HTML
There are no differences, you can use both . htm and .html. The preference is personal in nature. However, depending on your server’s settings, it may prefer wealcome page to index.htm or index.html…
-
2
votes2
answers1445
viewsA: UPSERT or UPDATE-INSERT?
In relation to performance, I think it makes a difference when you have UPSERT natively, as in the database Note that INSERT is an UPSERT, so by giving INSERT as every database already has to…
-
1
votes2
answers109
viewsA: Ajax parameters are coming as Undefined
Try to use: var n_notificacao = $('#numNotificacao').html();
-
2
votes1
answer343
viewsA: swap the attribute value with jQuery
Try using attr instead of prop: url.attr("src",'_img/desbloquear.png'), bloqueio.attr('bloq','n')
-
1
votes2
answers151
viewsA: Doubt call method with If Java
I am assuming that getTipo_client returns "Legal Person", if it is different, for example, have accent, please change. Connection Conn = connectPrepareStatment(); String sql = null; if…
javaanswered Edson Vicente Carli Junior 147