Posts by Fernando • 99 points
11 posts
-
0
votes0
answers119
viewsQ: Sending data to a UDP client
I would like to know if there is any way I can send data to a udp client in nodejs through a browser. I have a form with any 2 fields, I need to take this data placed in the form and send it to the…
-
2
votes1
answer69
viewsQ: Update on mongoDB is deleting the rest of the document
I have a collection structured like this: { "_id": i43h21n5lk2354, "createdAt" : ISODate("2018-08-19T16:56:31.555Z"), "services" : { "facebook" : { .... name: "Michael Jackson" .... .... } I want to…
-
1
votes1
answer52
viewsQ: Why is the size of the vector being changed in the function?
Tanho comes as 2, when passed the tamVet function() #include <stdio.h> int tamVet(int *vet){ int tam; tam = sizeof(vet) / sizeof(vet[0]); return tam; } int main(void){ int vetor[10]; int tam =…
-
0
votes1
answer646
viewsQ: How to search for Id in mongodb
How to search in Mongo with condition parameters, type: Collection.find({userId}, {done: true}).fetch(); This way I wrote I want to return all the documents that have the done true, doing a search…
-
0
votes1
answer22
viewsQ: Upload photos to Amazon Storage?
I want to put a form with an image upload field in the client that uploads the photos directly to Amazon S3, without going through the server, using Meteor, someone can point a direction, some hint…
-
0
votes1
answer1194
viewsQ: How to adjust picture in container
I have a 1220x780 image and I want to put it in a 341x192 container, how do I make it appear adjusted, centered, in "miniature", I’m using max-width: ; max-height:; width: auto; height: auto; But it…
-
2
votes2
answers56
viewsQ: how to use bind, call or apply in this context?
function Contador () { this.num = 0; var obj = this; this.timer = setInterval (function add () { obj.num++; console.log (obj.num); }, 1000); } var b = new Contador(); I can’t quite understand how to…
javascriptasked Fernando 99 -
1
votes2
answers91
viewsQ: Doubts cast in c
If I give a printf thus: int x=5, *px = &x; printf("%d %ld\n", x, (long)px); So far without Warning none, but if I change the printf: int x=5, *px = &x; printf("%d %d\n", x, (int)px); I get…
-
1
votes2
answers222
viewsQ: File In C language
I have a file in this following format: https://mega.nz/#! Dwxxrizk (link to download read file);…
-
0
votes1
answer180
viewsQ: Referenceerror: boot is not defined
I wanted to know what is the error in this code. The button is set, yes, and the console pointing this error. <script type="text/javascript"> window.onload = function() { var botao =…
javascriptasked Fernando 99 -
1
votes2
answers77
viewsQ: What was my mistake with that code?
Hello, I’m starting to study the JS language and I stopped here, I don’t know what my mistake, someone could explain to me what I’m doing wrong? <!DOCTYPE html> <html> <head>…