All Questions

1
answer

Difference between var_dump and print_r

I have a simple and objective question: Always in my searches there, I notice that some programmers use var_dump() and others use print_r (like me).    What is the difference between print_r() and var_dump() , both...
asked on 21.12.2016 / 12:37
1
answer

Session data in php

I am using an SSL certificate, and was wondering if it is possible for the user to see the data saved in the session? Example, I have a variable called config, where I save some user access settings. Can he change these qualities in any way?...
asked on 20.12.2016 / 11:51
1
answer

Type modifier: register

The type modifier register instructs the compiler to store the variable directly in the registers, however I do not see much use of it in codes, this put, I get the following doubts: In what context is its use recommended and when not...
asked on 05.12.2016 / 23:18
1
answer

Install application made in Visual Studio on client machine

I created my first Windows Forms application and will install it on the client machine. How should I proceed? Is it just the .exe and the database?     
asked on 30.12.2016 / 14:16
3
answers

How to create a top numeric bar on the Android keyboard

Does anyone know how to create in the XML of an EditText that numeric bar on the keyboard?     
asked on 02.01.2017 / 12:33
2
answers

Join multiple files from a folder in R

I'm trying to join multiple xlsx files in R. To do this, first open the following libraries and use the programming: library(readxl) library(plyr) larquivos<-list.files("C:\Users\tomas.veiga\Documents\Financeiro\dados",full.names=TRUE) arqu...
asked on 09.12.2016 / 12:29
1
answer

What are Crosscuting contracts? What is the relationship with Design by contract?

What are crosscuting contracts ? What is the relationship with Design by contract ?     
asked on 09.12.2016 / 07:03
1
answer

How to map two equal entities with Hibernate

I have a scenario where I have the entities Pedido and Usuário . The Pedido is composed of some attributes, among them the requestor that is mapped as follows: @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "usuario...
asked on 13.12.2016 / 13:20
1
answer

How to randomly pick an item from a dictionary in Python?

I would like to know how to randomly pick an item from a Python dictionary? For example: I have the dictionary dic = {'Pedro': 99, 'João': 19, 'Rosa': 35, 'Maria': 23} I need to choose an item randomly.     
asked on 28.12.2016 / 17:05
1
answer

Checkboxes in AlertDialog always return the same values

I have AlertDialog with a custom layout with 2 checkboxes. But even if I click on one of those checkboxes, clicking on the accept or cancel buttons ( alert.setPositiveButton or alert.setNegativeButton ), I get the default che...
asked on 08.12.2016 / 13:06