All Questions

1
answer

Shell send error message

I have a cron job running that calls a shell script. This sh file backs up the database and saves it to a folder on the server. That's working. I know that at the time of generating the backup and / or save an error may occur. I would like to...
asked on 26.02.2014 / 19:50
4
answers

Check if a file exists on the remote machine via FTP in PHP

How can I check if a file exists on the remote machine using PHP through the functions of FTP in order to act accordingly? <?php $ficheiro = 'public_html/banana.xml'; $id_ligacao = ftp_connect($servidor_ftp); $login = ftp_login($id_li...
asked on 04.03.2014 / 22:17
1
answer

Check which field already exists in the table

I am making a query in Laravel to see if the user with the email, CPF or username entered already exists in the database. # Verificar se Usuário Já Existe na Base de Dados $verUser = User::whereEmail($email) ->...
asked on 18.03.2016 / 13:21
1
answer

Why in css "reset" operations is it not recommended to use the asterisk?

I've seen several internet tutorials about css reset teaching that you should never use asterisks to apply the modifications. For example: * { margin:0; padding:0; } But along with the claim that doing this is problematic, I've ne...
asked on 18.02.2016 / 17:58
2
answers

How to extract a specific excerpt from a string

Let's get this extracted URL /ac/rio-branco/xpto-xyz-1-0-16-5-abcd-a1G57000003DE4QEAW And I want only the snippet that begins with a1G , does anyone know how I can only get this snippet?     
asked on 26.02.2016 / 21:14
2
answers

How, when you click on the notification, delete the notification and not open the application?

I need to send a notification but would like it when the user clicks the notification it is deleted and does not open the application The part of generating the notification is already working. I could not stop the application from being open...
asked on 12.02.2016 / 21:15
1
answer

How to implement the Observer pattern in practice with database?

I'm studying some design patterns, and right now I'm learning about the observer pattern . I've read books, I've seen some lessons on Youtube, I've done the examples and everything. But now I'd like to implement in practice inserting data in...
asked on 10.03.2016 / 21:26
1
answer

Notifications with Spring

How to implement a system of notifications that receive a real-time counter of notifications example: My question is that when you insert another bank in the bank and pass from 4 to 5 if you update in the same session as fast as possibl...
asked on 14.03.2016 / 15:09
1
answer

Doubt in class diagram

I'm developing my class diagram for a project and I got the following question: How do I indicate that only ADM can register a taxpayer? Do I have to state this already in the Class Diagram? Thanks Is there a method for viewing the clas...
asked on 11.02.2016 / 21:54
2
answers

Import PostgreSQL .sql into Neo4j

I have a PostgreSQL backup .sql file and I want to import this file into Neo4j (database in graph). How do I?     
asked on 14.03.2016 / 14:34