All Questions

2
answers

Android Toolbar: center title

I'm trying to center the title of my Toolbar but I can not. I've already tried using Theme (it did not work) and I already tried it in Java code (however in Java code as I'm using API 13 , I can not use .setTextAligment )....
asked on 06.03.2015 / 00:21
2
answers

how to get an object from an array through id with angularjs

I pass the object id that comes from a ng-repeat through $ stateParams more then I would need to get the array object for the id that comes from the URL to display the information. My question is if I have to get this JSON object like I do? And...
asked on 02.03.2015 / 16:23
1
answer

Working with Silex sessions

Good evening, I have a question on how to add, change, and delete data in the Silex Session. His API documentation is very simple and unexplained. It is the following: I need to create a session containing an array of values I did so to...
asked on 06.02.2015 / 00:08
1
answer

Java ArrayList - Overriding values

I need to perform the following activity: Consider an application to store the following person data in an address book: name, address, and telephone. Specify a TAD to store the people data and the operations required to enter, query, and dele...
asked on 28.02.2015 / 21:02
1
answer

How to increase the font size of an EditText according to the size of the screen?

I would like the font size to be proportional to the screen size of the device that will run the application.     
asked on 03.03.2015 / 15:05
3
answers

Delphi 7 applications on windows 8

I installed Delphi 7 on my Windows 7, however we know that by default Delphi 7 comes with Indy 9. For me, that's fine, because I use only idhttp.post and get via http. > The doubts would be: Is this idhttp component com...
asked on 06.03.2015 / 11:53
1
answer

How to select multiple columns using the table prefix only once?

In the relational model condition, I have to specify the table prefix, am I right? Example: SELECT c.nome, c.idade, a.nome, a.idade FROM ... What I wanted to know is if you can not do something like this: SELECT c(nome, idade)...
asked on 23.03.2017 / 20:59
1
answer

Generate random characters safely

Hello, I'm new to javascript and I'm using the following function to shuffle characters from a string into a password generator I'm trying to develop: function shuffle(string) { "use strict"; var parts = string.split(''); for (var...
asked on 29.03.2017 / 23:05
1
answer

How to translate JS plugins dynamically with Codeigniter?

I'm developing a WebApp using Codeigniter and need to have multiple languages, in quiet PHP, my problem is how to organize the translations of Javascript plugins. Example, I have in the application plugins like DataTables and Datepicker and...
asked on 27.07.2017 / 21:39
1
answer

How to write an asynchronous method?

I have the following method: public void Contar() { int numero = 1; for (int i = 0; i < 100000; i++) { numero *= i } return numero } Assuming that the Contar() method takes so long to crash the UI of...
asked on 11.07.2017 / 04:09