All Questions

1
answer

Create and manipulate multidimensional associative array

How can I create a multidimensional associative array in Java? Something similar to this: Array = { "carro 1" : Array { "portas" : 5, "cor" : "preto", "km" : 10670 }, "carro 2" : Array { "portas" : 3...
asked on 12.01.2015 / 15:22
1
answer

How to enable and disable automatic scrolling in a chat?

I'm having second thoughts about implementing this feature. I have a link that does this, type enable and disable automatic scrolling. For a better understanding, access JSFIDDLE below: JSFIDDLE EXAMPLE     
asked on 14.01.2015 / 14:35
2
answers

Stop ajax request

I have a page where an event grid is loaded in ajax. I also have a menu of actions on this screen. As soon as you access, the page loads (including the action menu), and the event grid, because it is heavier, loads separately. What is happ...
asked on 16.12.2014 / 20:47
2
answers

Open a new Activity from within a Fragment

How do I exit the fragment screen ( extends Fragment ) and go to a normal Activity ( extends AppCompatActivity )? Either way, even using a button, I can not. It never works. public class Teste extends Activity { protected void...
asked on 18.12.2017 / 03:06
1
answer

Is this a good way to keep my API safe?

My application consists of a nodejs API in the backend but I'm also creating the Referencing implementation of a JavaScript client, which is a SPA in done with Backbone. First, the API only accepts HTTPS requests, in case an HTTP HT...
asked on 09.12.2014 / 00:56
1
answer

Slag capacity in Golang

A slice can vary with need, and you can add items to it, right? You can view the size and its capacity ( len and cap , respectively). On the tour by Go, there is a "lesson" from append , it first creates a slice null and...
asked on 12.12.2017 / 20:49
2
answers

Add strings to a regular expression

Good evening, I would like to find a way to add two strings inside a regular expression using php . Ex: $texto = " |5,00|7,00|| |10,00|2,00|| |3,00|30,00||"; ...('/\|(.*)\|(.*)\|/', '|$1|$2|[X=$1+$2]', $texto); I've been searching, bu...
asked on 21.12.2017 / 03:53
1
answer

How to plot a graph with ggplot

I have the following data.frame: sample OPN1SW OPN1MW OPN1LW RHO OPN3 OPN4 OPN5 1: GTEX-11WQK-1026-SM-5EQLX 2.365 0.0000 0 4.138 86.322 40.199 12.533 2: GTEX-XQ3S-1426-SM-4BOPR 22.317 0.0000 0 30.6...
asked on 31.12.2017 / 15:52
1
answer

Difference between Thread.Sleep and Task.Delay

I'm developing client / server communication, and using Task for asynchronous communication. Previously, I had already made another communication where I used Thread , works without problems and consumes little processing. In...
asked on 07.12.2017 / 20:08
1
answer

Filter in dplyr with constraint by max variable value of db gapminder

I am filtering on df gapminder , generating% void% when I use the df variable: library(gapminder) # versão 0.2.0 library(dplyr) # versão 0.7.2 gapminder %>% filter(year == 2007, gdpPercap==max(gdpPercap)) # A tibb...
asked on 09.01.2018 / 12:32