Posts by Leonardo Coelho • 452 points
14 posts
-
0
votes2
answers920
viewsQ: How to find an element within an object array by Id?
I have two arrays, where one of them contains integer numbers (array1) and another contains objects (array2) with properties such as Id, Description and Numerovinculo. I need to find and remove from…
-
2
votes1
answer791
viewsQ: CSS configuration for matrix printer
Well, my problem is this. I’m developing a web system and I use ASP.NET MVC, I managed to generate a guide where the layout that I present is null. But I couldn’t set up the print correctly for a…
-
1
votes2
answers685
viewsA: Detect Shift key is pressed
Try using something like this code. In case you will have to adapt your code to be applied on body. function teste(e){ var evt = e || window.event; if (evt.shiftKey) { shiftKeyDown = "Pressionado";…
javascriptanswered Leonardo Coelho 452 -
1
votes5
answers1033
viewsA: What is the definition of each css selector combination
I’ll give an explanation the way I understand .e1{}- When using the dot before any property, it means it will be applied in all classes with that name. #e1{} - When we have an Old/Wire Game/Hashtag…
cssanswered Leonardo Coelho 452 -
2
votes1
answer768
viewsA: Validate ZIP code and populate fields automatically jquery validate
To validate you can use a regex. ^\d{5}-\d{3}$ And to fill in the fields you can use a code in this style. var json={ "cep": "01001-000", "logradouro": "Praça da Sé", "complemento": "lado ímpar",…
-
2
votes1
answer581
viewsA: How to separate Text Code
If you have a default for the code, where you will always have to remove the code composed of 9 characters, an equality symbol and a space, you can use the following code =RIGHT(A1; LEN(A1)-10)…
excelanswered Leonardo Coelho 452 -
1
votes5
answers2039
viewsA: How to centralize information for all Tds by CSS?
You can try to put an id to the table if she no longer has and after that apply the style you want to all td #teste td{ text-align: center; }; <table> <thead> <tr>…
cssanswered Leonardo Coelho 452 -
2
votes3
answers268
viewsA: Stop multiple jquery events
I believe it is performing because it is three different events but they would be executed at "the same time". I will explain: keyup(): the event occurs when the key returns to its original position…
-
5
votes2
answers17548
viewsA: Input or raw_input?
The difference is that raw_input() does not exist in the Python 3.x, while input() exists. In fact the old raw_input() was renamed to input() and the old input() no longer exists (although it can be…
pythonanswered Leonardo Coelho 452 -
1
votes1
answer564
viewsA: Is there any way to align a justified text in Phpword?
For what I found mining on the internet there is no parameter Justify. If you enter the directory src\PhpWord\SimpleType\Jc.php you will find: const START = 'start'; const CENTER = 'center'; const…
-
3
votes2
answers61
viewsA: Script giving syntax error after ;
<script> $(document).ready(function () { $('#dataSolicitacao').datepicker({ format: "DD/MM/yyyy", language: "pt-BR", minViewMode: 0, orientation: auto; }); }); </script> The problem is…
-
3
votes1
answer369
viewsA: How to transform a Java String into a Java Array Object?
You could try wearing something like that. PS: I didn’t test it, it’s just something I remember from college. String[] array = values.split(","); If there can be a string with null values, you must…
-
7
votes2
answers665
viewsA: Sum date with int
Try using the command DATE_ADD(ocorrencias.dt_fechamento, INTERVAL 50 DAY) Example: SELECT DATE_FORMAT(DATE_ADD(expiry_date,INTERVAL 3 DAY), '%d %m %Y' )…
-
1
votes1
answer48
viewsA: Create columns with knockoutJS foreach
Well, I found this example of someone else in another American forum. Maybe it will help you. I understand he wears one ko.computed to work with the columns, not forgetting to determine the amount…