Posts by Sveen • 1 point
68 posts
-
0
votes1
answer89
viewsQ: Opengl Unbind Texture?
I have a list of objects; Each object has different amounts of texture; When I do glBindTexture 2 textures (fuzzy and specular) to an object, it can happen that the next object can have only 1…
-
1
votes1
answer115
viewsA: What is this operator **?
Double pointer operator http://www.inf.pucrs.br/~pine/PRGSWB/pointers.html In this case it can be an array of pointers, for example char** is a list of words. Note: In other languages some language…
-
1
votes1
answer173
viewsA: Slide show overlaying the menu
Take a look at these documents, there are examples: For the overlap problem: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index To remove the point:…
-
2
votes1
answer57
viewsA: Mysql - Foreign Key constraint between tables
Two alternatives: 1 - Create another table TB_PESSOA with id,id_address and id_document TB_ALUNO and TB_PROFESSOR receive the id_person field It gets easier if you want to create a third type of…
-
2
votes1
answer49
viewsA: What is " .= " for in PHP and when to use?
String concatenation The same as: $main = $main . '...'; Ex: $main = 'teste'; $main .= '1'; $main .= '2'; $main .= '3'; echo $main; //irá imprimir 'teste123'…
-
1
votes2
answers89
viewsA: Difference in calls on main
In the first you’re passing the pointer to p, soon when you change the value of p within the function insert start, you change the value of p out of function. While in the second you are copying the…
-
4
votes8
answers2184
viewsA: How to know all possible combinations of 0 and 1 in Java?
You can do it recursively, for any size, using the branch-and-bound concept or Bible tree int count = 0; rec(String palavra,int ind,int total,String[] saida){ if(ind<total){…
-
0
votes1
answer269
viewsQ: Facebook API , recover first name
I am using version 2.9 of the Facebook Api in PHP, my goal is to recover the most basic information. From what I read in the documentation, the only authorization I would need is the email address,…
-
1
votes1
answer108
viewsA: Send post with multiple values through Jquery
From the data in the form post.id = "submit"; First you will need to get the data from this form, right after making the append in the document var _url = "caminho/para/o/arquivo.php" var _data =…
-
-2
votes1
answer115
viewsQ: Animation in Before overwriting text
I’m trying to make an animation on the ::before of a paragraph every time I pass the mouse But this CSS is overwriting everything written in the paragraph, even though it is Before instead of After.…
-
0
votes2
answers23336
viewsA: Centralize form etc, leave in the center of the screen
in the father you use: text-align: center; position: absolute; width:100%; and in the child (in this case the form): display: inline-block; position: relative; remembering that this only centralizes…
-
1
votes3
answers325
viewsA: Multiply line
You’ll need to put an identifier on each tr. <table border="1"> <tr id="0"> <th>exe</th> <th>coluna2</th> <th>coluna3</th>…
-
3
votes1
answer24921
viewsQ: Download Files in PHP
I have a PHP application and a file URL. I would like when the user clicks on any button to cause the browser to trigger the action to download or open the file’s download options window (in the…
-
3
votes1
answer2404
viewsA: search for depth and width using graphs
I’ll just put one in to help you but it doesn’t seem right to copy it in case I go to a college job or whatever. WIDTH public static int BuscaLargura(int ini,int fim){ Fila f = new Fila(ini); int…
-
1
votes2
answers558
viewsA: Real-time database verification script
I started a Javascript timer with every few seconds changing the text example: <script> var cont=0; function nexload(){ cont++; cont%=3; var pontos=''; for(var i=0;i<cont;i++) pontos+='.';…
-
5
votes10
answers1739
viewsA: How to count the zeroes to the right of a number?
loop{ divide por 10 e soma 1 no contador se n%10 == 0 }
-
3
votes1
answer921
viewsA: Dynamically increasing the content of the div
This is automatic, it took me a while to learn. The main div must be Absolute or Relative position:relative; or position:absolute; and div 2 must be relative and the whole content within must be…
-
0
votes2
answers339
viewsQ: Event javascript to scroll over an area or div
I have a page where an area or div that does not have the Side Scrollbar, simply because it is not necessary.I would like to capture the event when the mouse rotates the roulette over that area…