Posts by mathiasfk • 291 points
11 posts
-
0
votes3
answers121
viewsA: Associate input values to the nearest plan with jquery
From what I understand you want to round up an arbitrary value for some that is in a list of valid values. There is certainly a more efficient way, given that your list is sorted, but an intuitive…
-
0
votes1
answer36
viewsA: Return separate characters in the same result
Apparently it is not possible to return the same result. In my case the solution is to concatenate the pouch from the second. This way it works for a regex that returns 1, 2 or more results. For…
-
0
votes1
answer36
viewsQ: Return separate characters in the same result
It is possible to obtain in the same match (preferably the last) two characters that are in different positions within the string? For example: "xxxxto12b" -> "ab" "xyxyxyyxxxxxc23d" -> "cd" I…
-
1
votes1
answer1509
viewsQ: Insert without specifying columns
I have several tables T1, T2... TN, each one can have columns in common or not. My final table F, contains all the columns (one time) of the previous ones. There is how I insert from each without…
-
0
votes3
answers125
viewsA: Search List(Of String) - Case insensitive
The accepted solution was not working for my web application, although it worked normally in a console application. The solution found was to use AddressOf instead of setting the inline function.…
-
4
votes3
answers125
viewsQ: Search List(Of String) - Case insensitive
How to look for a String in a List(Of String) without considering the case? I’m using . net 2.0. Contains does not allow passing any additional parameter. I tried to use Find but it didn’t work…
-
1
votes1
answer133
viewsA: Conversion of an "array" string to a javascript array
To convert the string "[['local','precipitação'],['RJ',0.2],['SP',0.8],['MG','']]" in an Array you can use eval(). var s = "[['local','precipitação'],['RJ',0.2],['SP',0.8],['MG','']]"; var a =…
javascriptanswered mathiasfk 291 -
1
votes1
answer327
viewsA: Select Distinct
You can use a subquery to select the lines that meet the conditions, as shown below. SELECT a.id_tram,protocolo, assunto, pdf FROM tbl_prot_tramitacoes AS a INNER JOIN tbl_protocolos AS b ON…
-
4
votes2
answers330
viewsQ: Should I wear rebase?
I’m working on a redesign of our web application, in a separate branch, say new_interface. Meanwhile, other developers remain in the branch master, mainly solving bugs. While some files may differ…
-
1
votes2
answers208
viewsA: Merge linux commands - rm and diff
I believe you can use the command xargs. Take a look at the manual for details. It would be something like (not exactly): diff -r path1 path2 | xargs rm The exit of diff has a few more words than…
-
3
votes1
answer337
viewsQ: Force numeric/language format to document
Where work is very common we have problems with excel macros, which generate tables and charts, depending on the language and version of Excel the client is using. How to force a language (for…