All Questions

1
answer

How to create string vectors in java?

   "Make an algorithm to receive an integer n (number of students), an integer m (number of subjects), and nxm grades 0 to 10, which each student obtained in each discipline.       a) which (s) of course (s) students scored highest on average?  ...
asked on 29.11.2014 / 20:45
1
answer

Changing remote path in Git

PROBLEM: I gave git clone to Google's Web Starter Kit repository the project already comes with Git started and with git remote origin master set to Git default. So, if I run the git push origin master command, G...
asked on 09.11.2014 / 00:04
2
answers

How to resize image to container size?

I have a div with 1184x308px and want to be placed inside images that are dynamic. Because images can be loaded with any dimension, how can I adjust the dimensions of div ?     
asked on 03.03.2015 / 11:02
3
answers

How to extract a word from a URL in PHP

In these examples below:    + bbbbbbb2.virtua.com.br - take the virtua   + 000-74-4-000.paemt702.dsl.brasiltelecom.net.br to take the brasiltelecom   + 111.222.22.222.dynamic. adsl.gvt. net.br - take gvt I've tried: $texto = "189-72-5...
asked on 29.10.2014 / 20:44
2
answers

How to use a Bundle with a non-primitive type?

I have the following class created by me: public class Telefone { private String nome; private String telefone; public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getTelef...
asked on 28.10.2014 / 21:34
2
answers

How to return the position of an element in HashSet?

I have the following structure: HashSet<Contato> contatos = new HashSet<Contato>(); How to return the position of a given Contact element that is contained in HashSet? I was searching and found a way to get back to the po...
asked on 08.10.2014 / 23:58
3
answers

How to ensure that the person who used the system is really it?

At the university where we are studying, we are developing a Java EE system to debure some of the registration processes, extinguish forms and generate PDF forms that instead of literally passing by hand, will pass through person in person. Firs...
asked on 15.11.2014 / 05:46
2
answers

How to force the '.on (' input ') method via script?

I guess my method: $(document).on("input", "#textbox", function(){ alert("oi"); }); What script can I force to call the alert ("hi")? I tried several and nothing: $("input#textbox").val("1"); $("#textbox").val("1").on("input"); $("...
asked on 03.09.2014 / 19:46
4
answers

Mark checkbox if user type in input text in a table

I need when the user types in an input text, the checkbox of the respective table line should be checked, and if the user leaves the input text again in blank, the checkbox unchecks. Here is the code: <table class="table table-str...
asked on 27.08.2014 / 18:45
1
answer

Time access restriction with php

I want to develop a security system, which serves both contact form and login, the intention is that it is an addition to the use of CAPTCHA, or in some cases a substitute. The logic is as follows: The user can access a maximum of 4 times for...
asked on 05.10.2014 / 05:54