All Questions

4
answers

Code Optimization / Image Processing

I'm doing a C-class work on image processing. And I need to find an alternative to optimize a particular piece of code. Here's how: /* Backward Rotina */ /* --------------------------------------------------------------------------------------...
asked on 14.06.2017 / 00:06
3
answers

What does the term "routing" mean in the context of MVC architecture?

I'm starting to study this architecture and came across this term: routing . edit Do I need some framework to build on this architecture?     
asked on 17.11.2016 / 19:04
4
answers

Why different objects of the same class can access private fields from one another?

Today while I was doing a course in Udacity (Intro to Java Programming) I thought about this in the Update the class Person exercise (lesson 3 29/45). In object-oriented modeling we have the concept of encapsulation (hide implementation...
asked on 26.08.2016 / 14:09
4
answers

Difference between span img and div img

I've seen in some source code: <span> <img="../imagens/1.jpg"></span> and in others: <div> <img="../imagens/1.jpg"></div> Is this wrong? I always thought <span> was used exclusively for...
asked on 15.01.2015 / 18:24
3
answers

Fibonacci running in parallel? Threads?

def recur_fibo(n): """Recursive function to print Fibonacci sequence""" if n <= 1: return n else: return(recur_fibo(n-1) + recur_fibo(n-2)) This code makes the recursive fibonacci "simple" ... Imagine that I called...
asked on 10.08.2016 / 02:57
1
answer

Tomcat boot problem

As a mitigation measure for this error , I installed XAMPP and put it (Tomcat) as a container for NetBeans . But when I'm going to run some project on NetBeans, the following error appears on the Tomcat console in the IDE: Iniciando a partir...
asked on 20.11.2014 / 15:13
2
answers

How do I represent this using CSS?

Does anyone have a clue how I can represent this using HTML and CSS? Without using absolute position, only with border or something else. (This would be the art image I want to transcribe in css)     
asked on 18.11.2016 / 19:22
3
answers

Make you refresh the page and then see the message

Hello, How do I send a contact form for example, give a refresh on the page and show the sending message? Code: Javascript: function showAlert(type, message) { if (message !== '') { if (type === '') { typ...
asked on 31.12.2015 / 05:57
5
answers

How to return the sum of numbers of an array with indices of value greater than or equal to 2

I have the following array: array[0,2,0,0]; I need to create a function that adds only the indexes with values greater than or equal to two, how should I proceed?    In this example I should return 2;       array [0,2,0,0];       In thi...
asked on 01.11.2016 / 18:37
3
answers

What is the difference between foreach uses in php?

What is the difference between these two means of using foreach in php? Would one be more special than the other, bringing some advantage for example? Method 1: foreach ($arr as $key => $value) { #do something } Method 2:...
asked on 03.11.2016 / 02:34