All Questions

1
answer

Suggestion of program for creation of tree Html?

Hello, I would like to know if there is a program of some kind that will allow me to quickly create an html tree, as in the example: I would like to add to the tags in the chart the name of the class or ID's that are also children of a...
asked on 22.07.2018 / 23:55
1
answer

What is the meaning of the term "canonical" in the programming context?

I have seen this term in many places in the area of programming. For example, I've seen something like below, right here in SOpt:    "a canonical response is required" The dictionary tells me that the word "canonical" means:    Cano...
asked on 05.12.2017 / 00:35
1
answer

How to replace each match instance of a regular expression with a different value?

I have text (html code) with several images in standard HTML format: <img src="X" atributos /> I need the src attribute value to be replaced with the CID: # identifier where # is a unique value that identifies each image...
asked on 27.06.2018 / 18:53
1
answer

Other account information with facebook authentication

I am implementing facebook authentication and wanted to, when entering the application with the account data, also save full name, photo, among other data. Searching, I got the following code: facebookOptions.Events = new Microsoft.AspNet...
asked on 20.11.2017 / 23:56
2
answers

SELECT displaying products except the results of another SELECT

I have this SELECT that takes the 6 best selling products: SELECT IdProduto, SUM(QtdProdutoPedido) as QtdProdutoPedido FROM tb_pedidoproduto GROUP BY IdProduto ORDER BY QtdProdutoPedido DESC LIMIT 6 I wanted a SELECT to show...
asked on 15.12.2017 / 19:56
2
answers

Delphi does not write to txt file

The code below creates the txt file but does not write to it. What can it be? procedure TForm1.Button4Click(Sender: TObject); var arq: TextFile; begin qr.Active:= true; qr.First; try AssignFile(arq, 'd:\tabuada.txt'); Rewrite(arq);...
asked on 10.11.2017 / 15:40
2
answers

Shortening people's names

I need a script that will shorten people's names. For example: Name: Fernando José Silva Machado With the script, cut the surnames and leave only the initials and the last surname It would look like this: Name: Fernando J. S. Machado...
asked on 17.12.2017 / 18:39
1
answer

How to make a temporary powerup?

Hello. I'm developing a game in which the player throws some balls (shots), so I created a powerup that reduces the time between the balls thrown. I need to make the time between the balls return to normal after a certain time. void Update() {...
asked on 12.12.2017 / 23:44
1
answer

How to save the values of all iterations in R

Hello, I am making a code in R to calculate the various values of a Fuzzy code (using the "Sets" package). I made the logic for it to calculate three Fuzzy variables from smallest to largest, but when I use logic to save these values, it j...
asked on 16.11.2017 / 21:22
1
answer

Regular expressions, difference between [-] and -

I'm working with some regular expressions and I came across the following case: string pattern = @"^.{2,9}[-].{4}[-].{4}$"; string pattern = @"^.{2,9}-.{4}-.{4}$"; I would like to understand, what is the difference between using the hyphen...
asked on 18.12.2017 / 20:04