All Questions

1
answer

divide a string of n into n chars, split () of n n

I have the following text: "ola sou o Allan" I would like to have this text divided by eg 2 in 2 chars. How can I do this?     
asked on 20.07.2016 / 16:33
1
answer

How to correctly identify clusters using kmeans?

Suppose I want to sort the specimens from the iris dataset using the k-means method. Also, I want to assess whether the rating was good or not. The easiest way to do this is as follows: iris.kmeans <- kmeans(iris[, 1:4], 3) table(iris$Speci...
asked on 16.08.2016 / 19:22
2
answers

Branch x Checkout x Automatic Merging for master

Help! If someone has gone through this or knows how to help, thank you. I created a branch: git branch <xxxx> switch to new branch: git checkout xxxx I changed a file line inside the xxxx I returned to the...
asked on 07.07.2016 / 19:11
1
answer

How to encode and decode base64 strings in C?

I need to encode (and decode) a JSON to be transmitted from the web to a microcontroller. The% w_that I am sending is encrypted with JSON , but cyphertext contains unprintable characters and I have some problems with this. For examp...
asked on 01.09.2016 / 04:55
1
answer

What is the purpose of string.maketrans?

I was taking a look at some Python challenges and found one that involved rotating the characters of a string. Type 'a' turns 'c', 'b' turns 'd', and at the end 'y' turns 'a' and 'z' turns 'b'. As I solved the problem, I saw an indication tha...
asked on 27.02.2015 / 14:47
2
answers

Use more than one h1?

If I've already used a h1 to set the logo / title of my Header, can I use any more h1 on the page? or just h2 ..? I can not remember where I read, but can I use h1 in each article or section? <header> <h1>logo</h1> &...
asked on 11.07.2016 / 10:27
1
answer

replace all occurrences of a character in a string with javascript

I need to replace all occurrences of these 2 "_1" characters in a string with "_2", but Regex does not accept putting a variable there. var current_registration_number = 1; html = html.replace(/\_{current_registration_number}/g, '_'+next_regis...
asked on 27.07.2016 / 11:34
2
answers

Is the following database modeling in my head?

I created this modeling (just an idea), so that it does not have null / white fields. I have not completely revised it. There may be fields that would be blank. The matrix table was Entities and through the needs of there being no blank field...
asked on 30.06.2016 / 20:42
3
answers

When is the use of an Enterprise Service Bus (ESB) recommended?

I'm at the beginning of developing a system that provides for communication with some other systems through Web Services. Now our system will be the service provider, sometimes it will be a consumer of external services, always through Web Servi...
asked on 06.04.2015 / 15:13
1
answer

Segmentation fault: branch and bound in c

I'm having a persistent error in my code. My goal is to find the path in a maze mounted on an array with an algorithm of type branch and bound . Here is the code: FILE *ent; FILE *saida; int NL; int temp; char c; struct labirintos{ int **...
asked on 24.02.2015 / 02:52