All Questions

1
answer

What is the difference between array_walk and array_map?

In PHP, we have two functions that run through the array and apply a given function to each element: array_walk and array_map. Example: $meu_array = array(1, 2, 3); $callback = function ($value) { return $value * 2; }; $novo_array =...
asked on 28.07.2015 / 17:48
3
answers

Where should I place FK?

I am learning about database when a doubt arose. For example, I have two tables: user (_iduser, nome, sexo, ect.._) login (_idlogin, login, senha_)) You have 1:1 relationship. My question is precisely whether...
asked on 06.08.2015 / 09:01
1
answer

Send only list object that has changed to the controller

I have a view that lists all my clients . Each client has 3 checkbox where the user selects the same, and sends to controller - through the button (submit) - the data to change. The method is working perfectly. However, whe...
asked on 22.07.2015 / 16:52
3
answers

jquery function does not work with routeprovider angularjs

I'm doing a web application with AngularJS and made this routeprovider to single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", { templateUrl:"Proposta.html", controller :"ClienteCo...
asked on 03.08.2015 / 05:12
3
answers

Firebird, insert with where not exists

I'm trying to insert a record into the table, but this record will only be inserted if it does not already exist there, so I'm trying to do it like this: INSERT INTO R01 (NUMERO,EXPORTADOR, IMPORTADOR, DATAANTECIPADO, STATUS) VALUES (64, 'CCB...
asked on 20.07.2015 / 16:07
2
answers

Image alignment with CSS

I have a div that contains another div inside, but this second div (inside) contains a <img src=""> , how can I do to leave this div with the image aligned in the center of the first div ? I already...
asked on 12.08.2015 / 16:55
2
answers

How to transform a hash into a color

How to transform a hash into a random color .. Notice that I used the hash expression just to say that a cluster of letters / numbers can be transformed into color like this: d0be2dc421be4fcd0172e5afceea3970e2f3d940 is non-nonsense, nonsens...
asked on 09.08.2015 / 17:54
1
answer

How to Create Cover in a Report Using iReport

I'm using iReport 5.5.2 and I've tried in many ways to add a cover to the report, which is necessary, but to no avail. I've already tried adding the isTitleNewPage attribute in the Title band of iReport, but that did not work and I looked for so...
asked on 13.05.2014 / 19:02
1
answer

Thread Safe and your connection to Collections

What is thread safe, and what is your connection to data collections?     
asked on 05.06.2014 / 22:36
1
answer

Array no .ini How to do?

Hello everyone, I would like to know if the possibility of doing array in .ini Using php to call it?     
asked on 05.08.2015 / 20:32