All Questions

1
answer

Is using an empty catch a bad practice?

There have been cases where I had to make use of methods that throw an exception in case of an error, but the exception would stop the execution of script , which would be something undesirable. For example, I have a system where, when the s...
asked on 12.01.2016 / 16:24
2
answers

Copyright and crack

Cracking software is illegal, everyone already knows. But I would like to know the following: Is it illegal to use / distribute / create an old cracked product? One that is not even sold by the producer anymore? Because it's no longer for...
asked on 15.06.2015 / 16:09
1
answer

How to read stdin in python?

Using netcat to monitor a certain port on my device using the shell command terminal, I can check the data received by it and send data back to the connected device, such as a chat system with sockets. My question is, with replicating the same "i...
asked on 31.10.2018 / 14:12
2
answers

PHP7 anonymous class. What are the advantages?

According to the PHP Manual , from the PHP 7 version you can define anonymous classes. Example: class SomeClass {} interface SomeInterface {} trait SomeTrait {} // Instanciamos a classe anonima aqui: var_dump(new class(10) extends SomeC...
asked on 10.09.2015 / 18:29
5
answers

Autofocus position the cursor at the end

When I generate a input having a set value ( value="teste" ) and set the autofocus="true" , the autofocus returns the cursor at the beginning of the content: <form> <div> <input type="text" nam...
asked on 12.04.2018 / 14:30
1
answer

How to prevent an Input Required from starting with the CSS style: invalid

When I have a input required that has some CSS style when it is :invalid , even before the user interacts with input it already becomes stylized as invalid. How can I avoid this? See the example: input:invalid {...
asked on 05.09.2018 / 21:13
4
answers

How do I implement an ObjectSet wrapper that works with LinqToEntities?

I need to create a wrapper for ObjectSet to be able to create a centralized access control. The goal is to implement the CA without making changes to queries already in the system, which in this case are scattered throughout the code...
asked on 06.02.2014 / 13:51
3
answers

Is it safe and feasible to minify PHP files?

I was left with this question after reading a HTML question . I have mined only with PHP, only with HTML, with PHP and HTML ... and I did not notice any problems ... Can it become a problem on the server, or in some other way? Will rendering...
asked on 18.02.2016 / 16:47
1
answer

Difference between Absolute Expiration and Sliding Expiration

I am doing a POC with generic cache in C # and I followed a template that shows Absolute Expiration and Sliding Expiration . Could anyone explain these concepts better? //This is for Absolute Expiration string strCache =...
asked on 17.07.2017 / 19:48
1
answer

How to integrate Jest and Flow

I know some people use Jest together with Flow , even more because it's from Facebook, I have a React project, and I'm trying to do this integration, but Jest does not recognize Flow typing tags. Error Message FAIL __tests__/c...
asked on 11.08.2017 / 21:08