All Questions

2
answers

substitution with regular expression - reference followed by number

Situation I was performing a replace of some data when I came across a peculiarity. |C405|01102015|7|1058|174544|19836903,14|18657,06| |C405|02102015|2|1059|174792|19859872,19|22441,55| |C405|03102015|3|1060|174953|19872892,09|12993,90| |C4...
asked on 06.11.2015 / 14:15
1
answer

How is the C ++ reference?

class Data { int d, m, a; public: void inic(int dd, int mm, int aa); void soma_ano(int n); void soma_mes(int n); void soma_dia(int n); }; void timewarp(Data& d) { } As far as I understand the variable d is of a type d...
asked on 20.08.2015 / 15:53
1
answer

Implement editing of contacts after being written to the database

Hello I'm adapting a aplicativo that manages contacts with banco de dados interaction. No aplicativo , I'm inserting and deleting contacts but I'm having trouble implementing método to edit the contacts and save the ed...
asked on 30.10.2015 / 03:03
1
answer

How to return all data from a SQL query out of function?

I have a function that aims to show all the results of an SQL query to the database and need to mount a view with the data of that query. The function is as follows: function buscar_banner(){ global $pdo; $sql = "SELE...
asked on 16.11.2015 / 10:58
1
answer

Check connection closed

How can I check if a connection has actually been closed? $con = new Conexao(); $con->abrirConexao(); ... $con->fecharConexao(); I use a variable to instantiate the Conexao class that is in another file. I would...
asked on 19.11.2015 / 04:29
2
answers

What is Initialization Vector?

When I used a function in PHP, called openssl_encrypt , which encrypts data, I came across the term iv , which is Initialization Vector . I'd like to understand a little bit about this; I saw this in an example like this: $i...
asked on 22.02.2017 / 19:24
1
answer

Customize webView error page android

Please have a webview in my android app, how can i customize it if the user does not have internet? Thanks Current webcview code: WebView wv=(WebView) findViewById(R.id.webView); WebSettings ws = wv.getSettings();...
asked on 23.10.2015 / 12:55
1
answer

Did the functional features of Java 8 make some design pattern obsolete?

Functional programming is said to make certain design patterns (thinking GoF) unnecessary. There's even a presentation showing it somewhere (I'm not looking now because I'm on my cell phone). Have the functional features of Java 8 made any de...
asked on 23.03.2017 / 17:56
1
answer

What's the difference between using focusin / focusout and focus / blur?

Using jQuery to focus on a specific element, the question arose: What's the difference between using focusin() versus focus() ? And focusout() compared to blur() ? Is there a specific application for ea...
asked on 23.03.2017 / 21:47
1
answer

Entity Framework - Deleting object with relationship

I have a question for understanding the behavior of Entity. Because when I pass null to a property the Entity should not "clean" the relationship in the bank? My Model: public partial class Ocorrencia { [Key] public int id {...
asked on 29.03.2017 / 19:29