FAQ Database Discussion Community


Passing arguments to interactive fortran program

bash,fortran,interactive
I have a fortran program (which I cannot modify) that requires several inputs from the user (in the command line) when it is run. The program takes quite a while to run, and I would like to retain use of the terminal by running it in the background; however, this...

Interactive Selection highlighting of text inside the browser

javascript,jquery,selection,highlight,interactive
what I need is interactive selection highlighting of text in the browser via Javascript. To be more specific, lets just say I have a bunch of text in a div element like so: <div>The quick brown fox jumps over the lazy dog ... </div> Now what I want to do...

Modify line / plot in IPython notebook “interact”

python,matplotlib,plot,ipython-notebook,interactive
Is there a way to modify the plot inside IPython "interact" function rather than replotting it? In case when the plot contains a lot of heavy graphics (or some parts require heavy calculations) it would be much faster than doing the plot from the scratch. I'm trying the following code,...

How to write an R function that displays plots sequentially?

r,plot,prompt,interactive,sequential
I want something similar to the 'plot.lm' functionality. y <- rnorm(100, 0, 1) x <- rnorm(100, 0, 1.5) mod <- lm(y ~ x) plot(mod) Hit <Return> to see next plot: Hit <Return> to see next plot: Hit <Return> to see next plot: Hit <Return> to see next plot: I want...

[Python argparse]set the behaviour of an argument to be interactive if no value is given

python,default-value,argparse,interactive
I wonder if it is possible to change the behaviour of an argument depending if a value was given or not. Typically, I want to provide an interactive way to enter a password. example usages: $script.py => use the default argument value for argument 'p' $script.py -p mypass => use...

How to use pushViewController in interaction transition with panGestureRecoginizer

ios,transition,interactive
I try to implement a simple interaction transition which uses Pan Gesture. It looks like in this video. I have sample project working with storyboard. The project is in this link. However, if I replace "performSegueWithIdentifier..."in line 50 of ViewController with "pushViewController:controller" which is commented out in line 51. the...

Changing action titles in interactive notifications at run time

ios,interactive
As per my understanding I have to register categories and actions therein for local or remote interactive notifications, now my requirement is that I want to show buttons with dynamic titles coming as part of the push payload. As an alternative I have also tried the option of firing a...

Interactively merge files tracked with git and untracked local files

git,command-line,merge,diff,interactive
I use a couple of software packages (like gitlab) that you install by cloning from their git repo. They typically come with some config.example (under version control), which you copy to your own config file (not under version control or even ignored in .gitignore) and adapt to your needs. When...

Is it possible to add duration and easing to window.scrollTo?

javascript,interactive,scrollto,decision-tree,easing
I'm using Bill Miller's Interactive Decision guide code. http://www.guiideas.com/2013/09/interactive-decision-guide.html To scroll new questions into view at the bottom of the page he uses window.scrollTo //scroll code to bring next question into view var qNextPos = $('#qTable' + qNext).offset(); var qNextTop = qNextPos.top; var qNextHigh = $('#qTable' + qNext).height(); var qNextBot...

Print high quality plots in R when manipulating plot interactively

r,plot,interactive
I need to print a haplotype network to png in high quality. However, to get the plot the way I want it, I need to change some things using an interactive function. When I use png() to print the plot, I'm not able to make these changes, because it prints...

Interactive Choropleth Map - Highlighting - getcolor function

leaflet,highlight,interactive
I'm trying to create a map of bicycle routes which will get color from properties from geojson file. It is based on Interactive Choropleth Map. The problem I have at the moment is highlighting. This part of the code checks in geojson properties the colour of route: function getColor(d) {...

How do I save the first users selections, then generate a unique code/link, and finally display the first users selections for a subsequent user?

javascript,html,webpage,interactive
I want to create a web page with selections then when a user inputs their selections I would like an output of a code (or even better a unique url) which can be copy-pasted to forums, e-mailed etc... Allowing their friends to click the link and retrieve the input selections...

Interactive Meshes in Three.js

javascript,three.js,mesh,interactive
I new to javascript and three.js so this is probably a noob question. BTW, I'm working on the example interactive/cubes/tween and I'm trying to modify it to test something else. At the moment the MouseDown event gives the tween effect to the intersected geometry, here's the function: function onDocumentMouseDown( event...

Tried multiple solutions onsite, none worked: Play

javascript,jquery,html5,audio,interactive
This is my first question on Stack Overflow! :D There appear to be multiple similar questions, but I have tried each solution and none of them are working, and yet I'm determined to get to the bottom of this. The goal is to play audio upon successful konami code entry....

gnuplot command line arguments and call arguments

gnuplot,command-line-interface,interactive
following up from the question on SO about command line parameters to gnuplot scripts, and its corresponding answer, I see that I can make a script myscript.gp like if(!exist("parameters")) parameters="" plot "< myprog ".parameters u 1:2 and call it with $ gnuplot -e "parameters='-m 5'" myscript.gp However, I could achieve...

Start interactive application from IIS

c#,wcf,iis,interactive
In a project we have a WCF Service which is hosted in IIS. Now we need to start a windows application (interactive, hence has a window). Just to clarify: The application shall run on the server. It is a third party application we have no access to and cannot modify...

How can i achieve this mouse movement triggered animation?

javascript,html,css,animation,interactive
I found this animation activated by mouse movement and just wondering how to achieve this. Is there anyone have done this or share some tutorial site? Thank you in advance!...

Is it possible to speed up interactive IPython Notebook plots by not generating new figures every time?

python,matplotlib,ipython-notebook,interactive,jupyter
Every example I've seen of using widgets for interactive matplotlib plots in the notebook do something like this (adapted from here): %matplotlib inline import numpy as np import matplotlib.pyplot as plt from IPython.html.widgets import interact from IPython.display import display def sigmoid_demo(a=5,b=1): x = np.linspace(0,10,256) s = 1/(1+np.exp(-(x-a)/(b+0.1))) # +0.1 to...

C# interactive window in VS 2015 CTP 6

c#,interactive,roslyn,visual-studio-2015
How I can get C# interactive window? I have VS 20015 CTP 6 installed. And I installed Roslyn, according to these instructions. Now I should see C# interactive here: View -> Other Windows -> C# Interactive Window according to this blog, but it's absent. Did I miss something?...

Interactive pcolor in python

python-2.7,matplotlib,plot,interactive
I have two numpy arrays of sizes (Number_of_time_steps, N1, N2). Each one represents velocities in a plane of size N1xN2 for Number_of_time_steps which is 12,000 in my case. These two arrays come from two fluid dynamics simulations in which a point is slightly perturbed at time 0 and I want...

interactive graph in R

r,graph,zoom,shiny,interactive
I'd like to create interactive graphs in R where the user can zoom in/out of the graph, and if possible also to click on a vertex and get more information about it. In igraph, there is rglplot, which can zoom in and out, but makes the graph 3d - if...