All Questions

1
answer

Babel for those who have never used NodeJS

Maybe because I have a much better experience with PHP, I've never been a fan of JavaScript. I've always found the language syntax confusing and complicated, and I've often used jQuery to do simple things that many would do with their feet on...
asked on 04.01.2017 / 14:44
1
answer

How to uninstall a tar.bz2 package?

Recently I installed ghdl on my Debian x64, but I installed the wrong version, so I uninstalled ghdl and installed the x64 bit version; but the old ghdl (version 0.29) remains in the system, so I got 2 compilers vhdl ....
asked on 14.11.2016 / 12:27
1
answer

Error: object of type 'closure' is not subsettable

I am trying to encapsulate a code in functions but in the process this error happens:    object of type 'closure' is not subsettable But I can not find why. Here is the code working: h = (b-a)/n B = array(0,c(n-1,n-1)) #gera Matriz (n-...
asked on 21.12.2016 / 19:33
1
answer

how to sort by line number in a query in postgres?

To populate the grid of a view I'm using the database, initially I put the table ID to be the index of the view, however when some record is deleted from the database the index does not become sequential.     
asked on 16.11.2016 / 15:23
1
answer

htmlspecialchars () expects parameter 1 to be string, object given

I'm trying to make a select button on the blade with @foreach to get the list of all MySql databases. Only @foreach works, I can get the values, but I can not put the bases inside select . It is giving error:    htm...
asked on 26.01.2017 / 14:07
3
answers

Preloader while the site loads

I'm doing a hotsite, it's one page, and it's a bit heavy with some images. I wanted to preloader with%, before loading all the content. With: $(window).on('load', function() { alert('carregou'); }) I can tell when the whole site has load...
asked on 31.10.2016 / 15:47
2
answers

Centralizing using the absolute position

I do not understand the following code: div{ position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 100px; height: 100px; background: red; } Example online I know that setti...
asked on 20.12.2016 / 06:35
2
answers

How to put a PopUp that asks for authorization to use GPS?

People, I'm programming in Java (with Android Studio) and this code to get the GPS position, which works great! Now I'm trying to learn how to ask the user permission to use GPS, but I found "more info" on google ... And nothing else seems...
asked on 25.01.2017 / 00:52
1
answer

Concatenate two columns of an array by forming a string of characters

Suppose I have the following vectors: n <- c(1:5) c <- c("A","B","C","D","E") I build the following array with them: m <- matrix(c(n,c), ncol = 2) What is the best way to get a vector like this: "1 - A", "2 - B", "3 - C", "4...
asked on 17.01.2017 / 20:28
1
answer

Line in a flowchart in the tikz of XeLaTeX

Below is the code and the result of the flowchart I'm building: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \begin{document} \begin{figure}[!ht] \centering % Define block styles \tikzstyle{block} = [recta...
asked on 26.01.2017 / 19:11