All Questions

1
answer

Change HTTP User Agent

When an Android app sends a post to a Web server (type for a PHP page), this page receives an HTTP-UserAgent type "Apache-HttpClient / UNAVAILABLE (Java 1.4)". I want to know if you have a solution to change this value on the Android side? Th...
asked on 16.10.2014 / 16:28
1
answer

How to remove notification when user kills application

I have a notification that appears when a service is running and disappears when it stops running. If the user kills the application with the service running, the notification stays there forever. Is there a way to tell when the user kille...
asked on 21.11.2014 / 14:41
1
answer

Chrome and bug background fixed

I have the following problem: I have some separate sections on the page in divs. Two of these divs get an image like background and background-position:fixed , so when scrolling the page the images should scroll together, making...
asked on 18.11.2014 / 11:33
1
answer

Retrieve information about which Tables / Procedures / Views are most accessed in SQL SERVER

select db_name(database_id) as banco, object_name(object_id) as objeto, stats.user_seeks, stats.user_scans, stats.user_lookups, stats.user_updates from sys.dm_db_index_usage_stats as stats I have this SELECT whi...
asked on 13.01.2015 / 13:58
1
answer

What is the benefit of Jsf's life cycle?

Personally I see people speaking that one should understand the JSF life cycle. And I wanted to understand what utilities we will have to understand?     
asked on 17.10.2014 / 19:32
4
answers

The WHERE clause order interferes with performance?

Recently I did tests on a database with a query using two clauses where AND. I noticed that there was a significant difference using clause A before B and vice versa. Intuitively, it would be faster to use FIRST the more restrictive criterion...
asked on 22.12.2014 / 19:01
2
answers

Why Netbeans suggests improving the for?

When you were doing this for Netbeans showed that bulb tips to improve the code in the for line. The suggestion was to reverse the condition. Here is the code: Before improvement: for(int j = 0; j < selectionPaths.length;...
asked on 31.10.2014 / 11:07
1
answer

Save compressed file to another directory

I have this function that does .zip of the current folder to save. But I want it to be saved in the backup folder. $data = date("d_m_y"); $exten = "_backup.zip"; // Nome final com extensão class Zipper extends ZipArchive {...
asked on 21.11.2014 / 14:21
3
answers

How to export records in SQL without duplicates?

I'm trying to remove some duplicate records from a table and I searched the Internet how to do this, and found something about distinct . My scenario is: I have a table that has a record with all duplicate columns. ID | Nome | I...
asked on 19.11.2014 / 19:28
2
answers

Style citation: "(Author, Date)" to "Author (Date)"

I'm using abntcite . I would like to know how to change the style of just a few quotes from (Autor, Data) to Autor (Data) . I tried using \citeauthor{chave} , but it did not work. Thank you.     
asked on 02.01.2015 / 05:16