All Questions

2
answers

Make an Image "run away" from another

I must say first that everything, that I am a newbie , I am recycling myself on programming issues. Even being a programmer for more than 6 years I did not play anything. So I implore you patience. I am practicing things with JavaScript...
asked on 09.04.2017 / 13:06
1
answer

Change axes and a histogram units with matplotlib

Is it possible to change the units of the axis and of a histogram created with matplotlib (plt.hist), and that instead of counts represent a percentage (counts / total)? The code would be something like this: import matplotlib.pyplot as plt...
asked on 02.07.2017 / 22:15
4
answers

Compare the elements of an array against itself

I need to go through an arraylist and compare each element of the array with all the elements of the same array and know which one is repeated more times; I have something like that for (int x = 0; x < lista1.size(); x++) { int t...
asked on 01.07.2017 / 19:36
2
answers

Where do the constants stay?

Well, as I read the compiler could place them on the stack or in a memory area only read, the standard does not guarantee that it is the first or the second. According to the standard any attempt to modify a constant type variable is indefini...
asked on 12.06.2017 / 18:31
3
answers

How to avoid over writing text in a dialog?

Good morning, This is my code: <p:dialog header="Directorio" widgetVar="dirDialog" modal="true" showEffect="explode" hideEffect="explode" resizable="false"> <p:outputPanel id="dirDetail" style="text-align:center; width: 15...
asked on 17.05.2017 / 18:45
2
answers

Consume Rest API in C #

I would like you to guide me a bit with this. I am trying to consume an API Rest in C # and have an authentication where I must pass these parameters or values: username , password , client_id , client_secret , grant_t...
asked on 03.04.2017 / 17:23
2
answers

Create form for Model List

I have a Model called Question: public class Pregunta { public int id { get; set; } public string descripcion { get; set; } public int peso_id { get; set; } public List<int> roles_id { get; set; } public int dimension...
asked on 07.06.2017 / 17:04
1
answer

Possible inheritance between properties of the same name but of a different type?

I am implementing a client of a service that provides me certain classes through a WSDL. In itself these classes build a structure a bit complex, but connecting to 2 service methods the answers are almost identical in terms of objects, with the...
asked on 05.12.2017 / 20:31
1
answer

Fatal error: Can not unset $ this PHP 7.1

I get the following error in PHP: Fatal error: Can not unset $ this that refers to this snippet of code: public function __destruct(){ unset($this); } That line I use to destroy an object, in previous versions of PHP it worked without...
asked on 07.11.2017 / 23:09
2
answers

Play video in MediaElement WPF

I'm working on a WPF desktop application, Windows 10, Visual Studio 2015. In which when going to the location of the video is played, I have the following code. XAML: <Window x:Class="ReconocimientoVoz.MainWindow" xmlns="http://sc...
asked on 04.10.2017 / 00:19