All Questions

2
answers

Problems with onmouseclick and onmouseover in JavaScript

I have the following code:  Javascript Test      <script> function mudaLampada(tipo){ if(tipo == 1){ arquivo = "_imagens/lampada-acesa.jpg"; } if(tipo==2){ arquivo= "_imagens/lampada-...
asked on 22.12.2015 / 16:44
1
answer

What is the elegant way to read this PHP Object?

I have Result of a Webservice below, I'm doing some foreachs to read each level of the class, but I think you should have a more elegant way of reading and getting the values of the object, follow Result : stdClass Object (...
asked on 29.01.2016 / 12:58
2
answers

Referencing folders created in the project

After I go to Project > Add > New Folder, rename the folder and put classes inside it I can no longer reference it in another file, for example if it were to be used in a controller , I would use as always I used the using nomeProjeto.N...
asked on 21.12.2015 / 14:08
2
answers

How to consume this JSON with JavaScript?

How do I consume this URL using JavaScript?    > link     
asked on 15.02.2016 / 16:21
2
answers

Almost prime numbers

I have a question in C, I know if a number is cousin, but almost cousin do not know .. how do I do? Follow the part of the code working! However, just checking to see if it's cousin .. the almost cousin does not spin // quasePrimos.c // /...
asked on 12.09.2017 / 19:49
2
answers

How to update all records of all tables that have FK from a table

I have the following tables: CREATE TABLE Contrato ( [Id [int] NOT NULL IDENTITY, [Nome] [varchar](150), [Ativo] [bit] PRIMARY KEY ([Id]) ) CREATE TABLE [dbo].[ItemContrato] ( [Id] [int] NOT NULL IDENTITY, [ContratoId] [int], [No...
asked on 25.08.2017 / 20:51
2
answers

Where is the class constructor in Python?

Definition of Wikipedia.    The builder is a method   which is generally responsible for allocating the necessary resources to the   of the object beyond the initial definition of the variables of   status (attributes). In Python the...
asked on 23.01.2016 / 01:26
3
answers

How to divide the elements of an array by the average of your column

I need to split the elements of an array by its column mean, how can I do this, is there any function to perform this simple operation? Considering the array: > A <- matrix(1:16, ncol = 4) > A [,1] [,2] [,3] [,4] [1,]...
asked on 11.02.2016 / 18:58
1
answer

Unity change the order of a game object via code by C #

Well I have a Game Object called Party Frames. Inside it I have several prefabs with different names (their names are the character IDs) and they are UIs of character faces. The only thing I want is to change the order of these objects fro...
asked on 06.10.2017 / 18:33
1
answer

What is the practical difference between a git merge and a git pull?

In the day-to-day development I always use git pull to pick up changes from the main branch, where parallel developments are merged. However, some IDEs such as Netbeans implement the "git merge -ff origin develop" command, for example the...
asked on 25.08.2017 / 15:39