Posts by Raimundo Norberto • 511 points
20 posts
-
5
votes3
answers12026
viewsA: Vertical text with css (90º)
You can use transform: rotate(270deg) to move the text vertically according to the image.
-
0
votes2
answers307
viewsA: Loop in time interval
The problem is that you are testing whether the variable inicio is after fim and within the while you do not modify either of the two variables. Try using inicio instead of gc. Thus remaining:…
-
0
votes3
answers1439
viewsA: Saving ID from a table with two Primary Keys with Hibernate
Hello, Directly answering your question "..what needs to be put on itv.setId()?" As your code this ID is formed by an object ItemVendaId, then just instantiate it at the time of recording that…
-
1
votes2
answers2429
viewsA: Select on Oracle - Java
In several lines they are without white space at the end and at the beginning, thus, after concatenation, the text ends up being 'pasted' as in rp_package_stsFROM and SELECT RRS_RESOURCE_VALUEFROM.…
-
1
votes1
answer590
viewsA: Field alias in oracle Where clause
What you can do is use a sub-select and then apply the filter: SELECT * FROM ( ..... DECODE(MAT.IND_TIPO_MAT_MED, '1', 'BRASINDICE', '2', 'SIMPRO', '9', 'TABELAPROPRIA') TIPOTABELA, ..... ) AS…
-
1
votes1
answer332
viewsA: java.lang.Nosuchmethoderror: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V
i have had similar problems to this by using different versions of some library. Confirms that the libraries of the new machine are the same as the old one.
-
4
votes4
answers621
viewsA: Create Windows Service Auto-Updatable
Have you tried using the Clickonce? It does not have direct support for installing/updating services, but there are some outlines that can be used as described here or here.…
c#answered Raimundo Norberto 511 -
2
votes4
answers1021
viewsA: Add minutes to the hour
I simplified your code a little bit. Follows a possible solution: var decalage = 1 var decalage_minute = 30 var d = new Date(); //date d.setHours(d.getHours()+decalage,…
javascriptanswered Raimundo Norberto 511 -
1
votes2
answers5249
viewsA: Apache error on Windows 10
I found an answer in stackoverflow (english). One possible solution is that Windows 10 comes with a service called Word Wide Web Publishing Service (I don’t know the name in English) and it ends up…
-
2
votes1
answer99
viewsA: Reset to auto increment
what you can do is use the following command: DBCC CHECKIDENT This command checks the current identity value of the specified table and, if necessary, changes the identity value. You can also use…
-
2
votes4
answers4483
viewsA: Extract decimal part of a decimal
I found a simple and efficient solution: Removes the entire part and converts the result into a string: Math.Abs((decimal)numero) % 1 Removes "0." from the result: Substring(2) Converts the…
c#answered Raimundo Norberto 511 -
0
votes3
answers1235
viewsA: Problems with Data and Globalize
I believe this error is related to the culture configured in the jQuery validation. Try adding the script Scripts/cultures/Globalize.culture.pt-BR.js to Bundle and then add this script to override…
-
0
votes7
answers2949
viewsA: How to use multiple SQL commands (in the case delete on ORACLE) in one line only on C#?
I believe that for your code to work just you replace the comand.ExecuteReader(); by the call of comand.ExecuteNonQuery(); Because the execution of your SQL will have no return.…
-
2
votes3
answers359
viewsA: Monetary unit with JSON
Hello, You can try to format the number like this: FormatNumber(12345.67899) The exit will be: 12,345.68 More information here.…
-
2
votes2
answers212
viewsA: Electron Configuration of an Element of the Periodic Table
I made a code that I think will help you. I haven’t tested it very well, but it will already serve as a basis for you. Edited: class Program { enum DefinicaoCamada { K = 2, L = 8, M = 18, N = 32, O…
c#answered Raimundo Norberto 511 -
3
votes4
answers642
viewsA: Prevent user from saving information in the bank
What you can do to simplify validation is always use the return within each IF. It is more or less what is suggested here: Replace Nested Conditional with Guard Clauses. Of course this depends a lot…
c#answered Raimundo Norberto 511 -
5
votes3
answers339
viewsA: Why is ':' used in queries?
Friend, you didn’t show all your code but I believe this =: is not an "operator". The correct interpretation would be = and :id, where the :id is related to the name parameter id which must be…
-
1
votes1
answer141
viewsA: Resource with database
I think you’re looking for internationalization. Take a look at this answer here. Edited: Regarding database internationalization what you can do is: 1 - Replicate the entire database and leave each…
-
0
votes3
answers760
viewsA: How to close mysql connections in C#
I think you can check whether Mysql is set to autocommit or not. Take a look at this link Mysqlconnection. There is information and code example of how to work with manual commit.…
-
1
votes2
answers329
viewsA: Javascript interact with Java
It is not possible to do what you want because all the JAVA code of your page is processed on the server and when you get to the browser there will only be HTML and JAVASCRIPT code to be…