Posts by Nicolas Bontempo • 1,652 points
23 posts
-
0
votes2
answers1761
viewsA: ASP.NET MVC - How to Change Textboxfor’s "Name" Attribute
As follows it is possible to change the name of Textboxfor @Html.TextBoxFor(x => x.ToDate, new { htmlAttributes = new { @class = "form-control", style = "display:none;", id = "to", name = "to" }…
-
2
votes2
answers120
viewsA: C# MVC how statements work
Interactions in web applications can be Stateless or Statefull, that is, it does not maintain application status or keeps track of the state of interactions. In requests Stateless states are…
-
0
votes1
answer363
viewsA: Force error return in ajax
The sucess ajax is for cases where ajax has completed its execution correctly, sending/receiving data from the server and the error is activated when any HTTP problem occurs(example, error 500). If…
-
1
votes1
answer931
viewsQ: Python import error modules
I’m having trouble importing the modules into my project. I was creating some tests and I can’t import the main of my project to test an end point from my test file teste_ex.py. Follows the…
-
1
votes1
answer406
viewsA: Viewbag for all Asp.Net MVC C#controllers
One way to solve your problem using viewbags would be by using partial view, then you could put a custom controller setting the viewbag and just give a @Html.RenderAction on your system’s shared…
-
3
votes1
answer338
viewsA: What can you do with Google Firebase?
According to the documentation provided by google itself https://firebase.google.com/features/ firebase has several features, such as: Messenger in the cloud authentication service database in…
-
5
votes5
answers5699
viewsA: How to get the current iteration index of a foreach?
The foreach is a more elegant loop form, to iterate over elements of a Collection in various languages. In the C# language it is used to iterate over collections that implement the IEnumerable. So…
-
0
votes1
answer531
viewsA: Ajax requests in parallel
When making an ajax request, do it asynchronously. Follow code in Jquery, example of documentation: $.ajax({ url: "test.html", context: document.body }).done(function() { console.log('oi'); });…
-
13
votes1
answer641
viewsQ: How does the Conditional Random Fields algorithm work?
I’ve been researching the algorithm for a long time "Conditional Random Fields", but I can’t find any deep explanation for how it works and I can’t understand it. I understood that it would be a…
-
2
votes2
answers1132
viewsA: What better way to analyze a very large json file in java?
As my real need in this Json was some tags, what I used was an element reading per element in each iteration, according to the need for use. For this I used the Jackson Json API. My code is below…
-
3
votes2
answers1132
viewsQ: What better way to analyze a very large json file in java?
I have a very large file in json, it has 5 gigas and it has 652339 lines, I was thinking of using the Gson library in java. I would like to know, what is the best way to analyze the file, since even…
-
6
votes1
answer963
viewsQ: Permutation between two vectors
I’m studying some algorithmic techniques and I came across a problem that I’m stuck with, I need to make all the possibilities of permutation between two vectors. For example: [1,2,3] and [5,6,7]…
javaasked Nicolas Bontempo 1,652 -
1
votes0
answers94
viewsQ: Sending an icmp echo in C
I’m studying the use of raw sockets and its functioning in the C language, but I was left with a doubt: When I send echo, I need to give value to the checksum of my icmp header that will send the…
-
16
votes1
answer24414
viewsQ: What is Maven for?
I often find large projects that have the pom.xml file, but I never understood the usefulness of it, I just found out it’s something related to Maven. Finally: What is Maven for? What is the pom.xml…
-
0
votes0
answers888
viewsQ: What is the best way to show the External Quicksort simulation
I have to make one External quickSort simulator, showing for example the step by step of the same. Showing modifications to variables lower bound, upper bound, the main vector, the area vector(would…
-
9
votes1
answer5915
viewsQ: Generic Tree, how to do?
I’m trying to assemble a Generic Tree in java to assemble a Boolean expression within a gene expression algorithm, this tree would hold several types of variables, I’m not sure which is the most…
-
38
votes3
answers96047
viewsQ: What is the use of a static or final variable in java?
What is the difference of the declaration private static int var_nome for private final int var_nome for private int var_nome? How these statements can influence my algorithm?…
-
4
votes1
answer398
viewsQ: What is the difference between these ways of indexing a pointer to an array of structs in c?
Is there any difference in the use of these 3 statements? void addCliente(struct cliente *dadosCliente){ dadosCliente[k].nome="oi"; (*(dadosCliente+k)).nome="oi"; (dadosCliente+k)->nome="oi"; }…
-
1
votes3
answers23004
viewsQ: How to pass a struct vector by reference parameter?
My question is, what is the error of this passage? It seems that the passage (*dadosCliente+i) is incorrect, someone knows why? struct cliente{ char nome[50]; char endereco[50]; } void…
-
15
votes3
answers8488
viewsQ: What happens in a conversion from a char to an int?
How it works when you take a variable and do char-48 To transform in integer, as for example in this code I made, I used a date for example "22/05/1994" stored in a char vector and transformed in…
-
0
votes2
answers653
viewsA: How to increase the width of a Jcombobox?
Try this. comboBox.setMaximumSize( comboBox.getPreferredSize() );
-
14
votes3
answers29291
viewsQ: Creating your own header file
Someone could explain to me the utility and how to create the header file in c with an example?
casked Nicolas Bontempo 1,652 -
4
votes2
answers334
viewsQ: Loop to perform calculation in C Pagerank
Using the starting notes 0.15 for all and then add note as explained in the article http://cmup.fc.up.pt/cmup/mecs/googlePR.pdf If we consider pages 1, 2 and 3 to be: 1: link1 2: link2 3: link3…