Posts by leofontes • 2,261 points
70 posts
-
2
votes1
answer29
viewsA: Meta tag wordpress
According to the Wordpress documentation here: https://codex.wordpress.org/Meta_Tags_in_WordPress To add meta tags to your site, simply add them to the header.php file of your Wordpress theme…
-
2
votes1
answer540
viewsA: Program to calculate media
I tested here, what was happening is that your Average variable was initialized as int, then you were trying to put a float in an int variable. To make it easier, I changed the type of the variable…
-
1
votes1
answer1885
viewsA: Superimpose div on another and position in the upper right corner
You need to use not only Absolute position in the overlapping div, but also relative position in the parent div. Follow an example: http://codepen.io/leofontes/pen/VmxZoN html, body { height: 100%;…
-
1
votes1
answer39
viewsA: Checkbox with Function
Use global variables, outside of your function, that initialize as 0 when the page is loaded, and each time the function is called they modify the value of these variables. var efmg = 0; var eltelt…
-
7
votes1
answer60
viewsA: What’s wrong with my Mysql code?
When you use INSERT in Mysql you cannot use the WHERE clause, nor need it, because WHERE is for selecting results, and INSERT does not mess with results, it just creates a new row (or tuple) in the…
-
2
votes2
answers65
viewsA: Two Results in a Query
SELECT * FROM SETOR NATURAL JOIN FUNCIONARIOS; This way, all employees will be shown with their sector on the side, if you need to filter the columns just exchange the * for the columns you need.…
-
2
votes1
answer37
viewsA: I lost the project encoding
You probably need to change the encoding settings of Workspace, according to this answer here: https://stackoverflow.com/a/22100912/3473971 Go on Windows -> Preferences, then under General ->…
-
5
votes1
answer1184
viewsA: click on the increase div click again decrease
You should include some of the code of what you tried to do, but here’s a very simple example to give you at least an idea of how to get started: HTML: <div id="div"></div> CSS: #div {…
-
3
votes1
answer8939
viewsA: Count the lines of a txt file in c / c++
An easier way is to use the fread function return itself, when returning 0 means that the file is finished (and in C it is as if it were false). So your code is +- like this: #include…
-
2
votes1
answer5521
viewsA: Click on listview item
You’re missing the information from your listview id, and the rest of the Activity code, but here’s an example of how to implement the listview click, you reference it in onCreate and then "arrow"…
-
3
votes5
answers3614
viewsA: Split array into smaller groups
I recommend you take a look at the push method of Array: http://www.w3schools.com/jsref/jsref_push.asp But a very basic example would be like this: meuArray = []; meuArray.push([1, 2, 3, 4, 5]);…
-
1
votes2
answers51
viewsA: Variable zeroed in javascript
Some things about your code: 1) If you use only Else at the end, it will only be executed if there is an equality, since you are testing by smaller and larger, the only different result of this…
-
4
votes4
answers8680
viewsA: What are the differences between HTTP 2 and HTTP 1.1?
HTTP2 has support for combining various queries, compression of headers, priorities and a smarter package management system. This results in lower latency and speeds up the download of content on…
-
6
votes2
answers260
viewsA: Error sorting positive and negative numbers Jasvascript
You need to take the . of the numbers, Javascript uses the English convention in which the . is ours , In this case, for them 1,100 = a comma one, while for us it would be a thousand and a hundred.…
-
1
votes2
answers698
viewsA: Factorial with recursion
I used a different strategy to get the number, but as your example does not have the factorial itself, maybe this form is easier for Oce, using the scanf: #include <stdio.h>…
-
4
votes2
answers238
viewsA: Image Modal only works with the first
id is an attribute that must be assigned to only one element, change its code to use the image class as the javascript target. Classes are used precisely to interact with more than one element in…
-
1
votes1
answer4248
viewsA: Anaconda is some kind of platform for Python?
I believe you’re referring to this product, if the response is not disregarded. In fact Anaconda is an open source platform for data scientists, it unites R (programming language for statistics) and…
-
0
votes1
answer51
viewsA: Doubt about select in html
Good afternoon Sergio, I could not understand 100% what you are trying to do, but an idea would be to use a button for the user to click if he does not find your option, which would show an input…
-
1
votes2
answers744
viewsA: How to make a menu that when clicking opens another div?
If you want to see the live example: http://codepen.io/leofontes/pen/aBmKzG Here’s a Codepen with a very basic example, just so you have an idea of the way, but I recommend you understand what’s…
-
1
votes2
answers645
viewsA: Fix the XML error
It is difficult to specify exactly what is happening with the little information that is available, but looking at an example I had, what I can suggest is to change the name of the activity there…