All Questions

1
answer

Select that shows all tables that have fields with specific data type

I have a database that I need to change all the columns that are in FLOAT and DOUBLE to DECIMAL, are about 150 tables and I spend a lot of time looking one by one, is there any command that shows me this? MY SQL database, use 6.3 workbench...
asked on 21.07.2016 / 16:16
1
answer

How to pull the button of an input file (without JS) [duplicate]

I have the following input file and wanted to know how to get the button, so in the box just show the file name * I do not need JS, I have already seen some examples and I remember that they did not use JS, but I also do not re...
asked on 17.08.2016 / 23:44
1
answer

Laravel 5.2 with pagination

I have the following function inside the controller public function home() { $igrejas = Igreja::paginate(3); $igrejas->setPath('igrejas'); return view('admin/igrejas/home')->with('igrejas', $igrejas); } I need to be return...
asked on 02.08.2016 / 20:19
2
answers

Time Validation

Personal I'm doing a time validation in Javascript . I can not type the following hours 14:00, 15:00, 16:00 until 20:00, but other hours with you. I'm doing this: var mask = "HH:MM", pattern = { 'translation': {...
asked on 29.08.2016 / 23:36
1
answer

How do I declare a library within a class in C ++?

I need to use variables of type string , the problem is that I can not include libraries within my classes in Code :: Blocks, is there anyway to include the string / string.h library in my C ++ class ? The code for my clas...
asked on 23.08.2016 / 21:06
2
answers

Confirm before submitting javascript function

When I submit a form, through onsubmit(checkFormIsCorrect()) , I call this javascript function that will validate several situations and submit or not the form. In this function: function checkFormIsCorrect() { if (!$('div.has-err...
asked on 29.08.2016 / 16:22
2
answers

Paste sql Hibernate

Good morning. I have the following problem, I need to get the sql executed by hibernate and save it to a string. But I have no idea how to do this, could anyone help?     
asked on 29.08.2016 / 17:45
1
answer

Static public variables in C #

How can I organize my code? When programming variables come up which I'm leaving in the same code at the top as: namespace myData.MySql { public partial class teste { public static string M_CPF_PROCURADOR; public static...
asked on 18.07.2016 / 21:39
1
answer

Custom authentication with CPF and E-MAIL

I'm thinking of a way to authenticate users using email and the CPF of it, so far I have not found a way to do it, does anyone have a suggestion? public function auth(Request $request) { $credenciais = $request->only('cli_email', 'cli_c...
asked on 22.08.2016 / 21:16
1
answer

Android 6 problem with map.setMyLocationEnabled (true) [duplicate]

I'm having a problem with google api 23+ specifically in the mapa.setMyLocationEnabled(true); method You need permission to run, and in android 6.0+, I can not implement the new permissions method. @Override public void onMapReady...
asked on 23.08.2016 / 05:27