All Questions

2
answers

remove element css

I wanted to know how I can via jquery remove all css styles from a given html element. Example: html <h1 class="titulo">Título</h1> css .titulo{ padding: 5px; color: #424255; margin-bottom: 5px; border-botto...
asked on 16.12.2015 / 13:02
2
answers

How to Filter Multiple Fields in Query?

I need to filter a query in Laravel. How can I do this in the best way? For example, I have a query on my page and I want to do some filtering on it. For this I have a column that has some filter options. How would I do this in the code? I...
asked on 21.05.2016 / 17:28
1
answer

What is the use of * in the expression "Foo * foo = new Foo" in C ++? [duplicate]

I was analyzing this question made in SOEN. There you are teaching to instantiate a particular class. I was able to understand more or less how it works, because when I use my example, it is giving error when compiling. class Pessoa {...
asked on 05.01.2016 / 15:50
1
answer

How to filter the format of the file by the input type file?

When it is sent I make a validation checking if the chosen file is of the format that I need: function validaExtensao(id) { var result = true; var extensoes = new Array('xls'); // Arquivos permitidos var ext = $('#' + id).val().split(...
asked on 06.01.2016 / 18:32
1
answer

When checking checkbox, leave link visible

In my content management system, there is a checkbox on every item in the list, either to edit, delete, or view. It turns out that this button appears all the time, and if the user does not check anything, it is practically useless . I would...
asked on 12.02.2016 / 00:14
2
answers

How to solve an elseif that needs to be unique?

I want to create a page where when a checkbox is checked, a message is printed, but if all checkbox is checked, print another message. <!DOCTYPE html> <html lang="pt-br"> <head> <title>Form de exemplo com...
asked on 15.12.2015 / 20:11
1
answer

What is the purpose of the "/ dev / null" path in some commands?

I have often seen some people teaching to do some commands (mostly related to text outputs or things like that), where that directory or file called /dev/null is used. Example: wget -qO- $url &> /dev/null What is the pur...
asked on 17.03.2016 / 13:48
1
answer

When to use the xmlns attribute in the html element?

In HTML5, when to use the xmlns attribute? Thank you! <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"...
asked on 22.03.2016 / 03:43
2
answers

How to limit decimals?

I have a question, can you limit the number of decimal places in C ++? float x = 2.958; Instead of rounding up or down using floorf , roundf , can you just pick up the two numbers after the comma? That would look more or less...
asked on 26.10.2015 / 12:27
2
answers

Calculate Body Mass Index in C

I'm doing a simple C program to calculate body mass index. However, it is returning a different (wrong) value than a regular calculator. #include <stdio.h> int main() { float height, weight, imc; printf("Hello World!\nWhat's yo...
asked on 02.10.2015 / 17:10