All Questions

2
answers

Problem in javascript resolution [closed]

Should not the code below be executed automatically by getting the values of the id's and assigning them to the array ui? var ui = ["input", "prompt", "heading"]; ui.forEach(function(id){ ui[id] = document.getElementById(id); });     
asked on 03.01.2017 / 10:22
1
answer

Must the field rule be in the backend or frontend?

I'm building an application where the backend is an API and the frontend is Angular2. In a user's registry I do a validation in the API and if a required field is not filled in the API returns an error stating the field that should be man...
asked on 11.12.2016 / 14:43
1
answer

Does a char type always have size 1?

I've always known that char is the only type that has fixed size by specification. Its size is 1, no matter the architecture. But I came across sizeof('a') returning 4 rather than 1. Like this? Did I Learn Wrong?     
asked on 19.01.2017 / 11:18
1
answer

Why have so many parentheses in macro?

Seeing this intrigues you because you need those parentheses that seem unnecessary. What is their functionality? #define SUB(x, y) ((x) * (y))     
asked on 23.03.2017 / 11:37
2
answers

Create object with array of internal objects

I'd like to create a "cast" object (maybe a class, maybe a function), with possibly other objects inside it, and arrays . The structure I imagine is like this: postagem: { titulo: "", autor: "", texto: [ { linh...
asked on 23.05.2017 / 04:25
3
answers

Block cell filled with VBA

We are setting up a routine where when filling a cell (C1, for example), the date (A1) and time (B1) in the worksheet are automatically filled in. But soon after the autocompletion is done I need the 2 cells to be blocked. I tested the code belo...
asked on 01.06.2017 / 15:55
2
answers

Why is chr () vulnerable to a cache-timing attack and pack () not?

Out of curiosity I'm looking for and slowing down many things about cryptography and also looking for some pure PHP libraries, such as Sodium_Compat , for the sole reason that I understand a lot more of PHP compared to C, which is ideal for e...
asked on 19.02.2017 / 14:04
1
answer

Modeling with Code First so you can change databases

If I generate my database for MySQL using the concept of Code First can I change it to SQL Server in the future? Do you need to change the classes or just the config and provider ?     
asked on 17.04.2017 / 15:27
3
answers

How to rewrite a URL?

Hello, I want to rewrite a URL and I know it needs to be .htaccess . I have this URL : www.nomedomeusite.com/visualizar?id=8 My page visualizar.php at the beginning of body takes this id and makes a...
asked on 22.03.2017 / 03:43
4
answers

How to generate a worksheet from another using VBA

I have the following spreadsheet with the following columns: Iwouldliketogenerateasecondspreadsheetbasedontheaboveinformation,subjecttothefollowingconditions:a)Ifcategoria=='Multimídia>Multilaser',categoria='1'b)Ifcategoria=='Sestini>M...
asked on 11.03.2017 / 19:30