All Questions

1
answer

How do I save an image in the database in SQLite?

How do I save an image in SQLite? I ask to be as specific as possible because I do not have much experience. In case I want to include a table row to save the image. import br.gestaoBd.Login; public class EstruturaBanco { public static...
asked on 11.01.2016 / 04:38
1
answer

Select data from two tables to display in a column?

Consider the tables for the customer registry: Person Table |ID|NOME|TIPO|EMAIL| Physical Table |ID|CPF| Legal person table |ID| CNPJ| inscricao_municipal| inscricao_estadual| My goal is to consult the data of all people,...
asked on 26.01.2016 / 19:20
2
answers

How to center a TextView?

How to center the horizontal text in TextView , ie center in the top and bottom line. <TextView android:id="@+id/txt" android:layout_width="match_parent" android:layout_height="match_parent" and...
asked on 31.01.2016 / 12:57
2
answers

calculate a probability function in R

Good afternoon. It's my first time in the stack, I'm a beginner in R , and my doubts are pretty basic. I need to generate a sample of 1000 observations of a W distribution function. W is a discrete random variable, whic...
asked on 26.10.2018 / 19:10
2
answers

Checking empty column with CASE in MySQL

I'm having a hard time performing a query on a customer table. I need to fetch two columns ( nomeCli and nomeFantasiaCli ) and transform them into one: Nome . In short, when the client name is not populated in the client ta...
asked on 31.01.2014 / 13:01
3
answers

Using preg_replace invalid password with SHA1

I was using preg_replace , to avoid SQL injection: $senha = preg_replace('/[^[:alpha:]_]/', '',$_POST['senha']); When comparing the $senha received by POST with the bank password (using SHA1), they are not compatible. Does a...
asked on 16.12.2015 / 16:46
1
answer

Back-end applications with node.js

I've seen a few lectures on Node.js , its capacity, usability, market, etc ... But all of this information got really "scrambled" for me, about him. What I know, correct me if I'm wrong, is that it works like server , very similar to A...
asked on 11.01.2016 / 23:11
1
answer

Doubts with Arrays in C #

Good evening, everyone. I'm a beginner in programming and I have two questions: When a double-array in C # exists, each array position starts as null or zero? Is there a method that returns the last OCCUPIED position of an array? For ex...
asked on 15.12.2015 / 23:34
1
answer

What causes the 'System.NullReferenceException'?

Sometimes the execution of my systems is interrupted by this error, when it happens, a if(atributo != null) usually resolves, but this pollutes the code, "Ah, but this variable must have a value right?" the problem happens just when I assi...
asked on 30.12.2015 / 13:53
2
answers

How to compare two arrays and return the difference between them?

I have 2 arrays that come from 2 different banks, one comes from the sql server another from mysql. Mysl query returns like this .. array (size=6) 0 => string 'ultimoteste3' (length=12) 1 => string 'ultimoteste3' (length=12)...
asked on 26.01.2016 / 12:43