All Questions

1
answer

Forms Validation Mechanisms

What are the pros and cons of validating forms with these features: HTML5? Javascript? JQuery? HTML5 + Javascript / JQuery? Is there anything else to consider besides these items?     
asked on 03.02.2016 / 16:09
4
answers

How to test the condition on a vector?

I have to do a program that reads a text, where each first letter of each word of the text is replaced by a character (*). I can not compile correctly, I believe the problem is in my condition ( if ). #include <stdlib.h> #include &...
asked on 21.09.2015 / 00:37
5
answers

Stay showing the date and time in the browser with javascript

Hello. I want to display the date and time on the page. For this, I started by doing the little test to display a countdown: var tempo=60; function session(time) { time=this.tempo; if (this.tempo>0) { tempo--; docu...
asked on 18.08.2015 / 14:31
1
answer

Is everything object in Python?

I am very confused about what is object and what can behave as an object, see the example I created to illustrate the situation: def subtrai(x,y): return (x - y) class OpeMatematica(object): def __init__(self, x, y): self.x =...
asked on 19.01.2016 / 15:16
2
answers

How to leave a span in the center of a div both vertically and horizontally

I have text that I want to manipulate with effects, but I need the text structure to be correct. The structure I need to do is to have each letter exactly in the middle of a div (one div for each letter). I tried using span but I was not success...
asked on 18.12.2015 / 13:32
3
answers

Update an element of a generic list by a specific item

How do I update a specific element of a generic list by locating by ID and passing an updated object in its place, updating the name and email? class Program { static void Main(string[] args) { List<Aluno> aluno = new Lis...
asked on 16.09.2015 / 21:48
2
answers

Fill JComboBox with an object

Would you like help filling out a JComboBox with one class. In this class, return two parameters: Id and Desc. Category class I need to show in combo: private int Id_categoria; private String Desc_Categoria; How do I show only...
asked on 28.12.2015 / 02:21
8
answers

How to make a DIV fill all the available width

I have two divs, one with fixed width, 250px; which is on the left, will be a set menu, always left. And another div on the right that I want to make it 100%, whenever the user manipulates the corners of the screen, it was 100%. Something lik...
asked on 24.02.2014 / 13:32
3
answers

How can I restructure information contained in a list object in two columns?

Considering a list x consisting of% with% vectors. To illustrate the problem I have thought that it has 3 elements, as follows: >x $'2751006' [1] 106.2 75.4 65.4 87.4 76.8 196.4 74.2 $'2751007' [1] 73.9 110.1 101.3 $'2752006'...
asked on 04.01.2016 / 20:30
2
answers

Why do we have to use it? ? php when we use eval in the contents of a php script?

I took a look at the source code of laravel 3 and saw the following code: eval('?>'.$__contents); On other occasions, I've seen something like: $content = file_get_contents('file.php'); eval('?>' . $content . '<?php'); Why do...
asked on 12.08.2015 / 16:21