All Questions

1
answer

Sort list lists with two sorting criteria

If I have a list of lists like this: lista = [['ana','1'], ['joao', '3'], ['rita','2'], ['alice','2']] I first want to sort the list according to the numbers, to look like this: lista = [['ana','1'], ['rita','2'], ['alice','2'], ['joao',...
asked on 30.11.2015 / 20:41
1
answer

How to make substring SelectListItem?

Follow the code: View: @model IEnumerable<Projeto.Models.Model> <table class="table table-striped"> <thead> <tr> <th> @Html.DisplayNameFor(model => model.Id)...
asked on 08.01.2017 / 19:32
1
answer

Write list in binary file

The idea of this method is to write all words from a list of nodes in a binary file. I have a linked list of nodes, where each node has two information, its information, and a reference to the next node in the list. The idea is to write the info...
asked on 26.11.2015 / 11:51
1
answer

c # Nhibernate a different object with the same identifier value was already associated with the session

I'm at a time with this error and can not find a good solution. The recording of the objects works normally, however for changes it returns me this message:    Additional information: a different object with the same identifier   value was...
asked on 16.12.2016 / 18:07
1
answer

Alert Dialog with custom Gif image

I would like to know how to create a custom Alert Dialog where you have an ImageView containing a GIF. In my Main. imgAndroid = (Button) findViewByid (R.id.imagandroid); imgAndroid.setBackgroundResource (R.drawable.imagee); anime = (Anima...
asked on 28.12.2016 / 19:31
3
answers

Global function for plugin

I am creating a simple plugin with jQuery and Bootstrap, and in my JavaScript I have the following excerpt: $.fn.myPlugin = function(options) { var element = this; var settings = $.extend({ param1: null, param2: null,...
asked on 29.12.2016 / 13:53
3
answers

How to access a pointer inside a structure?

I need to know how to access the first position of the vector of pointers * c_parte_real, as shown below: typedef struct{ struct char_vector{ char *c_parte_real[2], *c_parte_imag[2]; }c_vector; struct int_vector{ int *i_...
asked on 19.12.2016 / 02:34
1
answer

Error DataBase Locked Sqlite / Java

I have the following problem: in an insert that I am trying to perform, I do not know if it is an error in the database or something in the programming in java, however every time I try to perform an insert of the client table I get the error: p...
asked on 24.12.2016 / 18:24
1
answer

Is there a way to do these assignments more cleanly?

I have a class that should be started with a% of properties. $subscription = new CheckRenew([ 'custom_2_id' => 13, 'email' => '[email protected]', 'zip' => '90530000', 'number' => '1234' ]);...
asked on 29.12.2016 / 20:04
1
answer

Why can not we use Await within a Catch, Finally and Synclock in VB?

Why can not we use the Await operator within the statements Catch , Finally and Synclock in VB? The C # 6.0 has support for using Await within Catch / Finally .     
asked on 01.01.2017 / 13:43