Posts by Pedro • 186 points
13 posts
-
0
votes0
answers61
viewsQ: Error injecting framework repository into . net core
I’m having trouble trying to inject dependency into a repository. NET framework and API . NET Core and the problem below: An unhandled exception occurred while processing the request.…
-
0
votes0
answers248
viewsQ: Unity - No public constructor is available for type Mvcteste.Repository.Iempresaservice
I’m using UNITY to inject dependency. net framework 4.5, configured everything else at the time of running is presents the error : No public constructor is available for type…
-
2
votes1
answer182
viewsQ: Entity Framework Sum and Count different status
In my ASP.NET MVC project, I’m trying to achieve the equivalent of this SQL Server code: Select e.Numero, e.ValorEmprestimo, Count(Case when pvp.IdeStatus = false and pvp.DatVencimento >=…
-
0
votes1
answer201
viewsQ: How to customize print in browser
I would like to customize the printing of the pages on html so that only the number of pages is displayed. I checked that it is possible to remove the header and footer @page { size: auto; margin:…
-
0
votes3
answers946
viewsQ: Function to add Multidimensional array elements
I’m new to PHP. I would like to create a function in when called increment a line in the multidimensional array in PHP. Example: //Array $data = array( array('name' => 'Jack', 'ano' => 2002,…
-
1
votes1
answer33
viewsQ: How to get higher repetition index value in a php string
I would like to get the value of the highest repetition index in a string. String example : 4,1,2,1,1,1,3,1,2,5,3. The result should be "1", because it repeats itself 5 times.…
-
1
votes0
answers751
viewsQ: Json quotation with the return of the value of Commodities like Soy and corn
I am recovering a list in JSON/XML using the function of obtaining the quotations of commodities such as SOY and CORN. Could you point me to a source?
-
2
votes1
answer38
viewsQ: Error When Customizing MVC5 Routes
Error occurs in method (Registerroutes) in Routeconfig.Cs on line routes.MapMvcAttributeRoutes(); When running in the browser: * The built-in Constraint resolver of type…
-
0
votes1
answer32
viewsQ: How to remove all strings from a string
I got the string : $textMostraMarcado = '3 3 1 6 8 6 8 <b>1 1 1 </b>2 4 2 7 5 <b>4 4 4 4 </b>9 <b>8 8 8 </b>7' I would like the result: <b>1 1 1 </b>…
-
0
votes1
answer902
viewsQ: Jquery window.open in "Success" in ajax is being blocked
I would like when saving an input and updating the div with the new information, in the return message "Success" ajax, to also print the div. Example success : function(response){…
-
2
votes3
answers87
viewsQ: PHP - Loop accentuation problem in a string
I’m having trouble with loop in strings with special characters, someone could help me? Follow the example: $letras = 'nós'; $numero = strlen($letras); for($j = 0; $j < $numero; $j++){ echo…
-
8
votes1
answer188
viewsQ: How to mark in bold triple and quadrupled sequential characters of a string?
I want to mark the triple and quadrupled sequences of a string like this: $string = "AAACDEAAAABBBUUDD"; And I would like to get as a result the following:…
-
1
votes2
answers160
viewsQ: PHP algorithm 1,2,3,4 = 1 + 2, 2 + 3, 3 + 4
For example, I have this array: $Ids = array(1, 2, 3, 4); Below is the result I would like to get: $Pair [0] = 1 + 2; $Pair [1] = 2 + 3; $Pair [2] = 3 + 4;…