All Questions

1
answer

Can you do a program for MacOs in Python?

First of all I would like to clarify that I am new to programming, but I like it a lot. For a project I have to develop a program for Mac, right now I'm learning Python, but I do not know if you can run a program made in Python on a Mac, I know...
asked on 28.01.2017 / 05:43
1
answer

Rotate an image by clicking - DOM - Javascript

I have the following CSS where I have the classes to add the rotation effect on an element: .animal{ width:200px; height:200px; margin:25px; float:left; background-size: contain; } .rota{ transform: rotate(360deg);...
asked on 31.05.2017 / 14:18
1
answer

Table name in SELECT

I would like to know how to put the name of a table received by POST in a SELECT. I'm trying several alternatives and there's no way I can do the search: $response=mysql_query("select id,answer from ".$_POST['bd']." where id IN($order) OR...
asked on 26.01.2017 / 11:50
1
answer

Show only People with a specific value (Firebase)

I have a recyclerview that I charge from a database that I have in Firebase , I do it like this: databaseReference.child("Personas").addChildEventListener(new ChildEventListener() { @Override public void onChildAd...
asked on 08.06.2017 / 21:32
2
answers

Run query in Access from C #

I have the following code in C # that I use to consult information from a database in Access: public DataTable selcfecharegitro() { DataTable dt = new DataTable(); OleDbDataAdapter da = new OleDbDataAdapter(); DataSet ds = new Data...
asked on 27.01.2017 / 16:30
1
answer

Android 23 and under do not fill all screens in landscape mode

I make an application that uses dynamic tables, my XML code is: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" an...
asked on 13.06.2017 / 16:23
2
answers

Problem in Symfony 3 with ManyToMany Bidirectional relationship

I'm using Symfony 3 with Doctrine. In my application I have 2 entities: User and Role, and I need to make a bidirectional relationship between both entities from many to many that allows me to relate roles with users both from the User form and...
asked on 09.06.2017 / 15:36
2
answers

Problem when vertically aligning an image inside a figure

I have a problem with this simple html: div { height: 150px; background: orange; line-height: 150px; } a { display: inline-block; vertical-align: middle; } figure { width: 40px; height: 40px; background: r...
asked on 30.01.2017 / 11:23
1
answer

Obtain user folder for any user in Linux (Ubuntu)

I've recently come across functionality that does not seem to be currently implemented in python. Currently we can obtain the active user's folder in several ways (speaking of linux): import os os.environ("HOME") os.path.expanduser("~/")...
asked on 12.06.2017 / 15:38
2
answers

Qt handling of QFile files

I'm starting in QtCreator and I'm trying to manage files. I want to save a int in a file, and when I press a button it shows me that number in QSpinBox but I do not know how to return the type character int . My test code:...
asked on 11.06.2017 / 05:41