Posts by DH. • 666 points
18 posts
-
1
votes2
answers29597
viewsA: How I keep html elements on the same line
There is the property display elements, and some tags already have a default value for this property. The simplest case is that the <div> has display:block and the <span> possesses…
-
4
votes2
answers4528
viewsA: Increment a number in an SQL query
Just use the command ROW_NUMBER(). In your case add the following SELECT ROW_NUMBER() OVER(ORDER BY QtdPedido desc), ... Source: https://msdn.microsoft.com/pt-br/library/ms186734(v=sql.120). aspx…
-
2
votes1
answer659
viewsA: Take Prefab position and compare with other Prefab within a grid? Unity 3D
Your comparison is instantiating a new entity from on the basis of a Prefab, the comparison NEVER will be true, and probably your cont will always be zero. To perform this type of comparison I…
-
1
votes2
answers140
viewsA: Calling the Java compiler from a Java class
Assuming you have JDK on your machine and it’s Windows, you can do something like: Process process = new ProcessBuilder("%JAVA_HOME%\\bin\\javac.exe","<caminho para o fonte>").start(); For a…
-
3
votes2
answers1069
viewsA: How do I know I clicked on a Gameobject in Unity?
Add a Collider (any type), nay mark as "Is Trigger", and add this code to your script: void OnMouseDown() { //clicaram em mim } It makes a raycast from the camera point in the click direction.…
-
6
votes2
answers5103
viewsA: Error to connect to sql server 2014 database with java and connection string problem
I’ll list several causes that might come up in your problem, hopefully at least one will suit you. I guess I just had to define the instanceName in the JDBC URL. It is the name of the SQL Server…
-
5
votes1
answer459
viewsQ: What is a shared_ptr?
If possible, with an example of code, as this is missing in the reference to really understand when and how to use the shared_ptr.
-
2
votes2
answers229
viewsA: Add to Text File Using pascal
In order for every element to be printed the date together, you will need to concatenate (join the text). In the pascal this is done with the +. To enter the date you can use DateTimeToStr(Now). To…
-
0
votes1
answer834
viewsA: Creation of Trigger for INSERT in another table in Ibexpert
I’m assuming that the name of the fields are the same, and I left it empty in the code because if you use a counter, then you can call it. With this you should be able to do for the supply as well.…
-
1
votes5
answers737
viewsA: How to save data from a changed grid?
Using an auxiliary variable in your favor Creates a list that defines the behavior that should be done in JSON itself, in each record. Any previously sent record would have, for example, 0, saying…
-
4
votes2
answers222
viewsA: Problems computing on average in Java
Your problem is that all variables are of the type int. If you do operations with integers only, the result is also integer, always ignoring(note, it ignores and does not round!) the decimal part.…
-
1
votes1
answer819
viewsA: PHP function returning query in oracle database
First, either you didn’t copy it right, or you can see the SQL execution face error. You set FROM only the alias u, but is trying to return pu.idusuario Second, you don’t need a while if you know…
-
0
votes2
answers414
viewsA: Back to top in C
You can also use goto and labels:, since you’re using C. Example: inicio: print("teste"); goto inicio;
-
6
votes2
answers7290
viewsA: What is the importance of Integrity and Crossorigin attributes?
integrity is self-explanatory: integrity check. That’s a checksum to ensure that the script that was downloaded had nothing corrupted or is an outdated version on your hard drive, regardless of the…
-
3
votes3
answers104
viewsA: About inserting names into an array. The user puts the course name as argument in the method
Your inserirCurso() is that displays on the screen Cadastre seus cursos aqui several times, since you are calling several times the method. Your insertion method is also not correct, use for(int…
-
3
votes4
answers498
viewsA: Full byte type cast
Whenever a cast is made from a numeral to byte type, understand the bits that are involved, in the case of your example happens this: 00000000 00000000 00000000 00001110 00001110 It will simply…
-
1
votes2
answers895
viewsA: Convert sql server data format
This is only the default display format within the database, the date information itself is correct and has nothing to change. If you want to return the formatted date as mentioned, you will need to…
sql-serveranswered DH. 666 -
3
votes4
answers7150
viewsA: In inheritance with private attributes, does not the daughter class take its attributes from the mother class?
Private attributes are only accessible in the class that implements them. Child classes do not have access. If you want an attribute with no public visibility, but the child classes can access, use…