All Questions

2
answers

MySQL Auto increment number pair

I have a MySQL database with a id field that is AUTO_INCREMENT . You have some configuration problem in it because at the time of making the auto increment it is coming out exactly in this sequence: ID: 2 ID: 12 ID: 22 ID: 32 ID: 42...
asked on 10.02.2017 / 14:59
3
answers

How to move an object in javascript?

How to scroll through the object below with javascript? (in the same way that the arrays are run with the map ()). var obj = { "column01": "Coluna 01", "column02": "Coluna 02", "column03": "Coluna 03", "column04": "Coluna 04", "colum...
asked on 23.12.2016 / 19:30
3
answers

When to use const and when to use #define

Since the two do the same function is there any difference between one and the other? I'll take the code from this site as an example C - Constants & Literals The #define Preprocessor #include <stdio.h> #define LENGTH 10...
asked on 22.06.2016 / 15:51
3
answers

Align span right inside div

I'm wondering how to align a text within the span by example: This is my HTML Ineedtoleaveitlikethis,right-alignedleft-handtextandleft-alignedright-handtext,asanexample: HTML:<divclassName="viewInstrument-output"> <div classN...
asked on 16.05.2017 / 13:59
1
answer

What are the differences between Java SE, Java EE and Java ME?

I'm studying the Java Language in the Information Systems course and realized that the Java language is contained in our day day even without realizing it. It is present on both our computers and our mobile phones and our TVs. I know that the...
asked on 31.08.2016 / 17:35
2
answers

Portugol have ternary operator?

Does Portugol have any ternary operators? Example how it works in various languages: algumaVar = 10 > 0 ? 8 : 4 Just out of curiosity, it would be interesting if it had.     
asked on 16.02.2017 / 20:20
3
answers

How to put scroll at end of div?

I have the following div <div style="height:300px;overflow-y:auto;"> ... </div> Inside it will have several texts and will make the scroll appear. When I refresh the page the scroll is at the beginning, but I need it to s...
asked on 30.08.2016 / 04:17
2
answers

Use of methods in php object orientation

Hello, I have the following question: In this example: class produtos { public categorias = []; } Categories is a vector, as you can see. Its structure is as follows: $categorias["tvs"][0] = "aqui o modelo da tv"; $categoria["pcs"...
asked on 27.09.2016 / 18:01
1
answer

When should I use the term "url" or "link"?

These days I started a "little debate" here at IT on this subject. I noticed that several functions, where we returned the path of the image (for the browser), was named getImageLink . For example: public function getImageLink() {...
asked on 30.08.2016 / 17:12
4
answers

How to get session cookie via javascript?

I need to make a script that when the user arrives in my utm via url, I should write a session cookie. This cookie will expire when the browser closes. Can someone help me with this?     
asked on 06.06.2016 / 15:28