All Questions

1
answer

Error [Forbidden] when submitting event in google calendar, API googleCL

For those who do not know, googleCl (Command line tools for the Google Data APIs) follows the link I use only the command that sends an event to my google calendar. I now have an error message, where previously it ran normal,  simply s...
asked on 14.04.2015 / 22:58
1
answer

Authentication jwt with vuejs

I'm a bit confused with authentication using jwt token, I have an application on vuejs + vue-router, I'm not wanting to use vuex until I learn how to do it without it (I do not like to use what I do not understand). So I have my API in NodeJS wh...
asked on 14.03.2018 / 18:39
1
answer

Align divs vertically to middle (middle)

I have the following code: @charset "utf-8"; /* CSS Document */ img { border: 0; max-width: 100%; } div.cabecalho { position:relative; width:100%; height:200px; border:.1px solid #000000; } div.cabecalho div.logo, div.ca...
asked on 27.04.2018 / 16:42
1
answer

Is there any way to detect the second monitor / screen with Javascript?

I would like to know if there is any way to detect the existence of a second monitor with Javascript. In a scenario where I was using two monitors / screens on my computer, I would like to open a popup through window.open and move it t...
asked on 22.05.2018 / 20:18
2
answers

I want every time I click on the 'Armchair' function it changes color

function Selecionar(){ var selecionado = document.getElementById("poltronas"); selecionado.style.background = "yellow"; var selecionado = document.getElementById("poltronas"); selecionado.style.background = "green"; } <a href...
asked on 14.05.2018 / 04:02
1
answer

Why creating a slice with variable length is slower?

Using make([]byte, tamanho) it behaves differently when tamanho is a variable or a constant. Consider the two codes: package Testes import ( "testing" ) func BenchmarkConstante(b *testing.B) { const tamanho = 1024...
asked on 07.06.2018 / 00:19
1
answer

Hexagonal Matrix in Python

I would like to know how I could return the numbers of a vector of vectors (array) within a specific R (radius) using Python. Based on this image: Followingthevectorused:mapa=[[0.0,0.1,0.2,0.3,0.4,0.5,0.6],[1.0,1.1,1.2,1.3,1.4,1.5,1.6],[2...
asked on 29.05.2018 / 19:52
1
answer

SELECT Mysql - Prioritizing result that is not null

Hello, I have a table with multiple records, which are not required. I need to run a query, and only bring the result that has more information that is not null. Ex: ID | Col-A | Col-B | Col-C | Col-D ----------------------------------...
asked on 21.05.2018 / 01:32
2
answers

Invalid property 'category.subcategory' of bean class. Error saving user to bank

I'm developing a web application that has the following mapping: A user has a category; A category has several subcategories; a subcategory has several products. As the image below: WhatIamtryingtoimplementis:whentheadminregistersanewsupplierhe...
asked on 13.06.2018 / 01:52
1
answer

Id of the first table does not load in the DB

I'm trying to create a simple contact directory with two tables: Being one of them empresa :nome and the other contatos :nome :telefone :email ... I created the two tables and placed a Foreign_key in the second one that will receiv...
asked on 08.08.2014 / 20:24