All Questions

2
answers

Change user in docker with noVNC

We are creating a docker image that starts from an image that contains the noVNC installed in root and whenever we boot we are in the root user Can it be changed so that it is another user who starts the container and therefore the noVNC?   ...
asked on 08.09.2016 / 13:48
1
answer

In Ruby what is the difference between using def and define_method?

I understand that define_method creates a method dynamically, but ... in which cases would you use it? What is the 'advantage' or what is different in the use, about creating a simple method with def ? Please do not quote refe...
asked on 07.09.2016 / 10:16
1
answer

Characters that are invalid in metadata

Hi, I'm trying to upload a file in the Firebase Storage, the problem is that adding a StorageMetadata with a "name" field that contains "Muñoz" fails me and it's because I think it contains an invalid metadata character that is the "ñ". I would...
asked on 07.09.2016 / 16:43
1
answer

Problems with update android studio 2.1.3

I get the error message when synchronizing with gradle 2.14 and jdk 1.8:    Gradle sync failed: Could not initialize class   com.google.common.reflect.Types $ NativeTypeVariableEquals When I give clean to the project it gives me this othe...
asked on 05.09.2016 / 19:22
2
answers

Images and texts are displayed at different heights

You see, something fails to use table tags, because the texts are put at different heights, which affects even images. HTML code: <table> <tr> {% for alfa in categoria %} <td> <img src="{% static alfa.foto %}"/> <...
asked on 13.05.2017 / 09:37
1
answer

Concatenation in os.chdir

for galaxy in xrange(10): for system in xrange(499): os.chdir('E:\Scripts') os.makedirs(str(galaxy)+'_'+str(system)) os.chdir('E:\Scripts\%s_%s' % (galaxy, system) outfile = open('%s_%s', 'w') % (galaxy, system...
asked on 13.05.2017 / 22:00
2
answers

Python: Scipy.optimize Levenberg-marquardt method

I have a question about how to use the Levenberg-Marquart optimization method in scipy come several of these methods: link I have tried two methods (nelder-mead and basinhopping) and they work correctly with the following sentence: Nel...
asked on 06.09.2016 / 00:59
3
answers

Query To know if a table field exists or does not exist in PostgreSQL

I can not find the way to do the query to create a field in a table and a foreign key in a PostgreSQL database, but previously verifying that it does not exist. In SQL server I use the following but they do not work in PostgreSQL 9.1. --- para...
asked on 08.09.2016 / 20:26
1
answer

Set the active window in a QmdiArea

I have a mdiArea to which I add several windows (of the class QWidget ): self.mdiArea.addSubWindow(self.win_ts) self.mdiArea.addSubWindow(self.win_vt) self.mdiArea.addSubWindow(self.win_norm) By default, the last window add...
asked on 13.05.2017 / 16:27
3
answers

How to capture keyboard or key combination in python3?

Hi, I would like to know how I can capture key combinations in python3 , for example by pressing Ctrl + A execute a method in a class. It's for a console program and this is what I've found so far of information. #! /usr/bin/env python3...
asked on 18.05.2017 / 14:34