All Questions

1
answer

Best practices when filtering a query with EntityFramework

I have a method in web api that receives a model from a search form and according to its values, it starts to filter the result of this search, as shown below. public HttpResponseMessage Buscar([FromBody]BuscarModel model) { C...
asked on 04.01.2016 / 19:44
1
answer

Mount a two-dimensional array from another array

I have the array $dados below: array(5) { [0]=> "2018-03-28" [1]=> "jantar" [2]=> "lanche" [3]=> "2018-03-29" [4]=> "lanche" } From this array, how could I mount another two-dimensional array so that it...
asked on 27.03.2018 / 21:48
1
answer

jQuery cutting words with space

I have a screen where the lines are loaded according to the data of the database and for this I have a PHP + jQuery and the like for the creation of the same one. What happens is that the array that sends the data comes correctly, but at the tim...
asked on 17.04.2018 / 14:52
1
answer

HTTP Request React Native

An API sends a status:false the code gets status . While status==false , the image of exclamation.png and message 'Pedido em AnĂ¡lise' will be rendered. If status changes to true both image values an...
asked on 07.05.2018 / 02:29
1
answer

ShowMessage displays the message 2 times

I have the following code below: for i := 1 to form1.variavel do with form1 do if TEdit(FindComponent('edt_variavel'+IntToStr(i))).Text = '' then begin showmessage ('Preencha os campos em branco') end...
asked on 14.12.2015 / 12:51
1
answer

Code review: Simple MVC

Hello world! I tried to make a very simple MVC in JavaFX. My model is a Pessoa class that has nome and idade (the idade field in case it does not get used). Two text fields represent two views. For simplicity bot...
asked on 05.06.2018 / 16:21
2
answers

How does the PHP runtime work?

I've always been interested in how long my code runs. The problem is that I do not quite understand how PHP code execution works. Below are the questions: On the server, does the PHP code run on every request or is it always running? If...
asked on 19.02.2018 / 20:04
1
answer

Shows the wrong date

I have this script: <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- var now = new Date(); var mName = now.getMonth() +1 ; var dName = now.getDay() +2; var dayNr = now.getDate() +1; var yearNr=now.getYear(); if(dName==1) {Day = "Domingo";} if(...
asked on 30.05.2018 / 12:39
1
answer

How to get values in function of another value?

I want to sum the value (and show in any cell) of the cell Cx when Dx is equal to 1 and add the values of Cy when Dy is 2. For example: In the photo, when the value of cell Dx is 1, I want the value of Cx (of the same line) to go to L3 and th...
asked on 17.03.2018 / 00:08
2
answers

Return default value if there is no record

I have the following sql command from select: SELECT public.controleimpressoes.codigo, public.impressoras.patrimonio, public.impressoramodelo.modelo, public.impressoralocal.descricao, (select SUBSTR((to_char(data - interv...
asked on 08.03.2018 / 18:58