All Questions

1
answer

How to find out the mobile operator of Android?

I'm developing an application in eclipse and I want it to work only on devices from a particular carrier. Any ideas how to check the carrier?     
asked on 31.01.2015 / 09:50
4
answers

How to deal with a kite process?

Analyzing the linux API I noticed that an interesting structure is possible: #include <unistd.h> #include <stdlib.h> int main() { while (1) { if (fork()) exit(0); // Altera meu pid setpgid(0, 0); // Cria um...
asked on 31.01.2014 / 15:54
3
answers

Assigning value to a dictionary variable that is optional

I have a function where one of the parameters is a dictionary, but it is optional. I need to assign a value in this dictionary, but take into account the case where this parameter is not filled in. The following solution uses two lines for...
asked on 17.12.2013 / 18:45
1
answer

What are the optimal usage scenarios for Node.js?

The theme is broad, but I'll try to focus on what I really need to understand. Lately I've been studying Node.js, and I've been amazed at the tool, in the comparisons I've seen, it seems to be a mature and effective tool. In many places, I s...
asked on 18.04.2016 / 15:40
2
answers

What is the algorithm of a P2P application?

There are several P2P programs, I know the concept is that each computer is like a client and server at the same time, and that they communicate with each other. About this type of communication: If you do not have a server, how does the pro...
asked on 24.06.2015 / 20:36
8
answers

Error: not all paths return a value

I would like to understand why my code is generating the error    not all paths return to value using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using...
asked on 03.05.2017 / 19:44
3
answers

Create and Validate Digital Signature in Java

I am trying to sign a test NFE with a self-signed digital certificate through the code below. The code in principle works, the signature is generated in the file and the validation done through the keystore works, but when I use another code to...
asked on 13.10.2014 / 15:13
8
answers

Printing a String until a space is found

I get a String through an input and I insert it into the database. When I list, I want only the first name of the person, that is, until the first space is found. Is there a function that does this?     
asked on 11.11.2015 / 20:04
0
answers

CardView does not display information from a JSON [closed]

I am trying to set some information in a CardView, where these are obtained from a JSON, however, it does not display, the information search is ok, it returns the values normally but does not display in the app .. @Override public void onCre...
asked on 12.06.2015 / 20:28
2
answers

What is competition control?

About the studies I was doing the moment I asked What is a traffic light? , I was informed that , to better understand this term, I should study about Competition Control . Could anyone explain what it is about?     
asked on 08.06.2017 / 20:09