All Questions

3
answers

How to instantiate a GridView or a ListView for the same Activity?

In my app I'm presenting a list of items. I would like in certain situations to be presented with a ListView and in others as GridView . The situations are: Smartphone (portrait) - ListView Smartphone (landscape) and Ta...
asked on 09.01.2014 / 02:54
2
answers

What will the new quantum computer programming logic look like?

There is a lot of talk about quantum computers with high performance and processing power. Unlike quantum bits, the qubits of quantum computers work with superposition, they can assume three distinct values: 0 or 1 or 0 and 1 simultaneously....
asked on 20.10.2015 / 18:40
1
answer

Guidelines for Visual Assets

I'm developing an application for Windows 10 and on the Microsoft website it does not tell you which pattern to adopt for I mage Asset s: Square 44x44 Logo , Store Logo and Badge Logo . The image below is an example where it shows a c...
asked on 07.12.2015 / 00:50
1
answer

How to use lambdas and stream?

I can understand lambdas expressions perfectly in simple cases like: () -> 42 // Não recebe nada e sempre retorna "42" x -> x*x // Recebe algo e retorna seu quadrado (x,y) -> x + y // Recebe doi...
asked on 22.06.2015 / 21:10
2
answers

How to create a list of dates with specific day

I'm working on ASP with MVC 4, and I create a list of dates from the data entered by the user. For example, the user enters the day of the month in which a certain occurrence will be made. It also inserts the start date where it will start and t...
asked on 04.02.2014 / 11:19
1
answer

Waiting for a signal inside a QQuickImageProvider

I'm creating an application using QML and Qt 5.2 . In it a ListView displays multiple items, each with an image and associated text. The image is built based on data uploaded from a server by HTTP . In a simplified way, I have the fol...
asked on 23.01.2014 / 15:12
1
answer

Arduino serial port error with communication between C and Perl

I have to make a language communicate with arduino and vice versa. I have the program in C and I have to modify it for this project, the language I will have to use is Perl . Here is the code I have: use 5.014; use str...
asked on 23.08.2016 / 20:22
1
answer

How does a device geolocation work?

I've been researching ways to geolocalize a device and found these four types in a summarized way:    GPS is the most accurate way to determine positioning, but it is even energy-efficient than other options and sometimes requires a long boo...
asked on 31.10.2016 / 14:59
3
answers

How to do a search ignoring accentuation in Python?

Suppose I have a list of words in Python (if necessary, already sorted according to the collation rules): palavras = [ u"acentuacao", u"divagacão", u"programaçao", u"taxação", ] Notice that I have not used cedilla ( ç...
asked on 08.01.2014 / 21:01
1
answer

Why is the "@" symbol being translated to "¿" when sent via SMS from an Android 2.3 device?

I'm developing an application for Android that sends commands to a remote device via SMS. The commands used are all common text messages, and some of them are started with the prefix A@@ . To test the application I have sent some "commands...
asked on 17.03.2014 / 18:56