Posts by Al Unser Albuquerque • 965 points
28 posts
-
4
votes1
answer2459
viewsQ: How to use the merge statement in sql server
I would like to know how to use the instruction MERGE. When to use and what advantages and disadvantages to use?
sql-serverasked Al Unser Albuquerque 965 -
3
votes1
answer46
viewsQ: How to render 2 typed view from different controllers
How do I render 2 view typed of controllers different? Controller: public ActionResult Index() { Cliente cli = new Cliente(); cli.Nome = "Al Unser"; return View(cli); } Index: @model…
-
0
votes3
answers1297
viewsA: How to delete the last record from a table?
You can sort by the example table id DELETE FROM table ORDER BY the field DESC|ASC
-
1
votes3
answers1710
viewsQ: When and why should we use threads?
When and why should we use threads? I’d like a few examples.
-
2
votes3
answers2776
viewsA: How to fill a select with angular using materialize
In fact I found out where the problem was and by an oversight I did not realize that the attribute was missing watch after the material-select in the select tag. Doing this solves the problem of…
-
1
votes1
answer87
viewsQ: How to get the index of a populated list in the change of a select using the ng-options of Angularjs
How do I get the index of an item selected in my select? Html <div class="row container"> <div class="col s12 "> <h4>Cadastrar Pedido</h4> </div> <form class=""…
angularjsasked Al Unser Albuquerque 965 -
5
votes3
answers2776
viewsQ: How to fill a select with angular using materialize
I’m trying to fill in a select with data from my groundwork the problem is that I always have to select the select one time for the data to load. How can I solve this problem? HTML <form class=""…
-
0
votes1
answer399
viewsQ: How to recover an angled Base64 image on the server
I have an application where the user chooses an image and saves as Base64 in the bank. The problem is when I return the image it is not loaded correctly. Controller:…
angularjsasked Al Unser Albuquerque 965 -
0
votes4
answers1423
viewsQ: Materialize label does not rise when I populate an input
When I search the data to fill the inputs the label does not go up, staying on top of the value of the input follows picture. Form code: <div class="row"> <div class="col s12 ">…
-
-1
votes1
answer318
viewsQ: How to configure angular routes with Asp. Net Mvc
I created a controller who calls the Index.cshtml and within the Index.cshtml contains the directive <ng-view> that should render the index.html but it doesn’t work. Controller public class…
-
2
votes1
answer372
viewsQ: Select with date over 20 years
How to make a select with date of request greater than 20 years old? Select * from Pedidos Where dataPedido > ...
sql-serverasked Al Unser Albuquerque 965 -
0
votes2
answers363
viewsQ: Directive Angular
I’m having a little problem when creating two buttons using angular Directive only 1 this appearing. How do I solve this problem? <div class="row"> <meu-painel class="col-md-2…
-
0
votes0
answers86
viewsQ: IIS knocking down different websites
I created two websites of the same application with pools different. The problem is that when right on the first site always drops the second site and vice versa.…
iisasked Al Unser Albuquerque 965 -
16
votes2
answers4940
viewsQ: What’s the difference between Sessions and Cookies
What’s the difference between Sessions and Cookies? Under what circumstances should I use?
c#asked Al Unser Albuquerque 965 -
30
votes2
answers28407
viewsQ: What is the difference between unit test and integrated test
What’s the difference between unit test and integrated test, their benefits and examples to each other.
-
0
votes2
answers1180
viewsQ: Limit file size
I created a file import method. I would like to know how limit the size from the uploaded file to the server.
-
1
votes2
answers908
viewsA: How to load page reload when selecting dropdownlist item from jquery list by passing parameters?
You can do with ajax too. $("#combo").change(function(){ var value = $('#combo :selected').text(); $.ajax({ type: "POST", url: 'controller/metodo', cache: false, data: value, dataType: '',…
-
2
votes4
answers312
viewsA: Count distinct names saved in txt
Look I don’t know how it works in Java. But in C# has a set called Hashset that does not keep repeated elements. In a way you will need to do something like this for Java. HashSet<string>…
-
0
votes1
answer2186
viewsQ: Error "Automation server cannot create object" when trying to use Activex
Can anyone tell me what kind of error this is? It happens when I try to instantiate the object: var fso = new ActiveXObject("Scripting.FileSystemObject");
-
1
votes3
answers233
viewsQ: Filereader or IE9 alternative
The Filereader object allows web applications to asymptotically read the contents of the files (or pure data buffers) of the user’s computer. The following supported browser are: Firefox (Gecko) -…
javascriptasked Al Unser Albuquerque 965 -
3
votes1
answer2225
viewsQ: Adjacent values
I need to create an algorithm that calculates the minimum distance value between the indexes of a matrix that contains adjacent values. But what are adjacent values someone could give me examples?…
-
1
votes1
answer754
viewsQ: Algorithm of adjacent numbers with complexity O (N * log (N))
I made an algorithm that returns the minimum value between two distances in a given array. I wonder if there is still some way to improve the algorithm by looking at complexity O(N*log(N)). Below…
c#asked Al Unser Albuquerque 965 -
-1
votes1
answer259
viewsQ: How to get specific string text with Regex?
I’m trying to manipulate the return of a string where I always need to get the block Where do select the problem is that my method always returns different strings. For example: SELECT.....…
-
7
votes1
answer1464
viewsQ: Simple permutation algorithm
I’m trying to create a simple permutation algorithm where you pass any number for example 123 and it should return the largest number without repeating. I tried something like this more when I pass…
-
3
votes1
answer234
viewsQ: Dynamic linq with C#
Inside the new in Linq. I need to create the dynamic properties based on a data table how can I do this? var query = (from indicador in tableIndicado.AsEnumerable() group indicador by…
-
0
votes3
answers2086
viewsQ: Return an sql command in a Function
I wonder if it is possible to return an sql command in a Function to run as a subselect. For example: Select *, produtos = (nome_da_function()) from Usuario Because the way I did I could only return…
-
2
votes3
answers4204
viewsQ: Div exceeding Modal width limit
How to render the following content without it exceeding the limit width of modal? Current example of rendering: Code: <div class="modal fade" style="width: 100% !important; height: 100%…
-
3
votes1
answer70
viewsQ: Jquery - Check when a class is removed by the developer tool
How do I check when a class is removed by the jquery developer tool?
jqueryasked Al Unser Albuquerque 965