All Questions

2
answers

How can I create a CheckBox using the Html.CheckBoxFor Helper for a Nullable field?

My field is as follows in my class: public bool? meuCampo { get; set; } And in my view it looks like this: @Html.CheckBoxFor(m => m.meuCampo) But this way it is not allowed, because I can not explicitly convert type bool? to...
asked on 09.05.2016 / 18:10
2
answers

How to create a number generator from an Initial number and a Final number?

I do not know if it is done in php or javascript, I have read tutorials but I could not get anywhere ... I would like to create a system for me to put an initial number and an end and in that interval would have 20,000 numbers and that were gene...
asked on 16.07.2016 / 19:52
2
answers

How to convert CamelCase to snake_case in C #?

I would like to know how to convert a string with CamelCase to snake_case into C #. For example: EuAmoCsharp => eu_amo_csharp SnakeCase => snake_case     
asked on 04.07.2016 / 18:29
3
answers

Add "name" to a JSON object

My JSON currently returns this low code: {"2":"aluno","8":"barbara_cristina","13":"carolina_deus"} How do I add a "header" in numbers 2, 8 and 13? I wanted it to look like this: {"nome":"aluno","nome":"barbara_cristina","nome":"carolina_d...
asked on 14.04.2016 / 18:40
2
answers

How to transform a number with a comma in R?

I have a csv file, saved via Excel (using the ";" as a column separator). When I import it into R, the numbers that are in the 0.00 format are factored and comma. Ex: "123,45" When you do the conversion, it stays as text. num <- gsub(...
asked on 20.04.2018 / 22:04
3
answers

Console, WindowsForm or MVC which is the fastest for heavy loads?

I'm developing a program that will basically have the following cycle: Query in the database (some milliseconds) For each record, you will execute the following process: Início | Parse de um XML web (alguns milisegundos pra executar) |...
asked on 08.10.2016 / 02:13
3
answers

Insert into the database table with the second form

I have this menu: <nav class="menu"> <ul class="menu-list"> <li><a href="#">Produtos de Higiene</a> <ul class="sub-menu"> <li><a href="#produto_1">No...
asked on 03.07.2018 / 13:09
2
answers

Difference between file_get_contents and curl?

I wonder if there is any difference between using cURL and file_get_contents and which one is safer? Home Thanks in advance.     
asked on 13.06.2016 / 18:31
3
answers

I want to change a string in 3 positions

I would like to walk 3 positions with a letter from a string , for example, make the letter A turn D, I tried the second command: texto[c] = texto[c] + 3 But it still does not work, what would be the right way to do it?     
asked on 08.11.2017 / 20:45
3
answers

How to understand and deal with the cost of Azure? [closed]

I've known Azure for a long time, I read a lot and I saw several videos but I never used it. What I know about payment is that you only pay for what you use. It turns out that recently an acquaintance talked to me about a project he wants to...
asked on 22.08.2017 / 16:50