I notice that the main browsers are in full screen mode when pressing the F11 key, is this a functionality of the browser itself or is it possible to activate this through some Javascript code?
If you can not do it via code, just open a new w...
Hello! I have some doubts about exceptions, which are:
What is the main difference between checked and unchecked exceptions?
In what situations should I use each one?
What are good usage practices?
Can (a == 1 && a == 2 && a == 3) be evaluated as true ?
This is an interview question from a large technology company. I'm trying to find the answer. I know we never wrote this code in our day-to-day life, but I'm...
I have an application where I need to send notifications to the user, and I would like these to appear on the desktop, as shown in the example below. Is it possible to do it with Javascript ? If yes, how? I did not want to use alert()...
I have created some rules in my .htaccess file to format the URL view, but I am having difficulty passing the parameter to the page that shows the products and show formatted, the code looks like this:
RewriteEngine On
RewriteRule ^P...
When I check the headers I am sending to a php page, which is installed locally, I always see this Connection: Keep-Alive
Example:
var_dump(getallheaders());
Output:
array (size=7)
'Host' => string '127.0.0.1' (length=9)...
My problem:
I need to read a JSON that is in a certain URL. I tried the following code, but it does not work:
JSONObject jsonObjeto;
JSONParser parser = new JSONParser();
URL url = new URL("http://www.exemplo.br/teste.json");
String x =...
How to create a filtered index for a specific range of data?
As far as I know, it is impossible to do this directly in MySQL. On some other database systems, there is usually a WHERE clause for this filter.
Some systems use another name fo...