All Questions

2
answers

Check if 'Allow dummy locations' is enabled

I have an application that requires the "Allow dummy locations" option of the standard Gallery enabled application to work. How can I check if it is enabled? How can I send the user to this item if my case is disabled? This option is in the Prog...
asked on 11.03.2015 / 19:39
1
answer

Is it wrong to have the header and section tags and not have a footer?

I have a single page application, quite simple even, and I used the tags tags with% and% with%, without creating a header , as I found it unnecessary. Is there any rule or recommendation about this? Can I use a tag section wit...
asked on 10.09.2017 / 14:09
3
answers

Doubt regarding pointer

I have a question regarding C. Because when I declare as argument in function main: char* argv[] instead of char argv[] I can access the information. I know one is a pointer. Because I can not access when it is not a pointer. #in...
asked on 11.04.2017 / 17:31
1
answer

Invert while results

Is there a function in PHP that allows me to reverse the order of results of a while ? For example, I have the following code that checks for a URL. <?php function url_exists($url) { $ch = curl_init($url); curl_setopt($ch,...
asked on 14.01.2015 / 16:46
2
answers

Time calculation based on GMT and daylight saving time

I have a problem where I need to calculate the time in a particular place in the world. The calculation should happen and the only information I have in hand is GMT of the site. EX: -1, 2, -3, etc. I've created a class to calculate GMT-based...
asked on 10.12.2014 / 19:19
2
answers

How to calculate hash?

How do I calculate the hash of a torrent file with PHP? I already used the class BEncoded and it worked, but wanted to know how it works.     
asked on 16.12.2014 / 21:15
1
answer

How to implement an Apple APNS push notification service?

I have a web service , and I would like to create a Push Notification service for an app using Apple's APNS, without using the third party service, how could I do that?     
asked on 06.11.2014 / 15:31
2
answers

Convert natural number to binary recursively

How can I make this function into a recursive function? I was able to do it iteratively this way: #include <iostream> using namespace std; int main (){ int n,pot,bin; cout << endl << " Digite o Numero: "; cin &...
asked on 10.02.2015 / 16:20
2
answers

Mounting database, how do I make this relationship?

I am putting together the EER diagram of an ERP. Virtually all tables have a column named "id_company" that relates to the "companies" table. This is because the user can manage one or more company, and I want every record of the other tables to...
asked on 04.02.2015 / 21:30
3
answers

Operators, order, relevance, read and priority

I came across the following question in a comment of the following    One more question .. The! = operator is the same as < ? So I decided to create an answer by explaining right away to take questions or teach those who do not know....
asked on 12.11.2014 / 14:27