Hovertool callback source selection for multi-plot graph

Python
I currently use bokeh version 0.12.2. I am plotting a graph with two series of circles. graph1 = figure(plot_width=800, plot_height=800) graph1.circl...
6 months ago

Match two groups but none of them should be empty

Python
I want my regex to be able to match strings of random chars optionally followed by some digits - but if both matches are empty I want the match to fai...
6 months ago

Producing a "fuzzy" RD plot with ggplot2

R
My question is similar to this but the answers there will not work for me. Basically, I'm trying to produce a regression discontinuity plot with a "fu...
6 months ago

How can I find the original row index in a subset?

R
I have a dataframe df<-structure(list(time = structure(c(1080868500, 1080868800, 1080869100, 1080869400, 1080869700, 1080870000, 1080870300,...
6 months ago

Choropleth world map

R
I have read so many threads and articles and I keep getting errors. I am trying to make a choropleth? map of the world using data I have from the glob...
6 months ago

R Plot Rendering SQL Server 2016 Using sp_execute_external_script

R
Has anyone figured out how to render a plot using sp_execute_external_script where the plot is returned in the SQL Management Studio result window or ...
6 months ago

Using paste function within colnames

R
I want to use iteration to turn the entries in a list into a 2x2 matrix, and then assign the same column and row names to these tables, as well as int...
6 months ago

R programming, Random forest through caret

R
I'm newbie in R and I want to implement the random forest algorithm using the caret package. Is there any useful tutorial, step by step?
6 months ago

R: undo ordering / unsort / switch back to initial order

R
Suppose I have a vector test<-c("a","b","c","d","e") I am changing the order using another vector of indexes (this is essential): sortvect<-c...
6 months ago

R subtracting vectors - numeric 0 answer

R
I try to subtract two vectors with each length 7 from another. Yet my results won't produce another vector, I simply get numeric 0 and data 0. Any ide...
6 months ago

Get a vector of vectors in r

R
trying to figure out how to program this in the best way.. I want to produce all possible w when s range from -2 to 2 by 0.1 but i really don't know h...
6 months ago

paste text with a newline/return in formatted text

R
I want to do a column that is formatted to use for a mailing address and I can not get the newline/return carriage or to work when making a new colum...
6 months ago

Update style of a component onScroll in React.js

React JSX
I have built a component in React which is supposed to update its own style on window scroll to create a parallax effect. The component render method...
6 months ago

Hide/Show component using componentDidMount

React JSX
I'm trying to get a loading spinner component to display using componentDidUpdate which sets the state to true. The loader doesn't show, just a white ...
6 months ago

Render a view in Rails 5 API

Ruby
I generated an API-only rails app with Rails 5 via rails new <application-name> --api. I've decided I want to include a view for testing some th...
6 months ago

How to log real client ip in rails log when behind proxy like nginx

Ruby
Problem I have a rails 3.2.15 with rack 1.4.5 setup on two servers. First server is a nginx proxy serving static assets. Second server is a unicorn s...
6 months ago

sprockets loads sass in random order with twitter bootstrap

Sass (Sass)
What is the best way to enforce a certain order of sass sheets with twitter bootstrap? Reason is... Sprockets random loading of sass and bootstrap is...
6 months ago

Starting with Slick in Play 2.5 (scala)

Scala
I am just starting to dig into Slick with Play Scala (transitioning from Anorm) and immediately facing startup issues with queries. I have a table cl...
6 months ago

Delete completely duplicate rows in PostgreSQL (and keep only 1)

SQL
I have a table in a PostgreSQL 8.3.8 database, which has no keys/constraints on it, and has multiple rows with exactly the same values. I would like ...
6 months ago

Create view for two tables that have similar column

SQL
I have 2 tables. tableOne has columns Id, SN, SyN, SSN, APU Here are 3 example rows: Id SN SyN SSN APU ---------------------------- '1'...
6 months ago