Update Lines in matplotlib

Update Lines in matplotlib

I have a graph with multiple data sets on it. I need to continually redraw these lines, each separately, as the data is updated. How can I delete and reestablish it repeatedly, preferably without having to delete the entire graph and redraw

Variables set in a bash 'while read' loop are unset after it [duplicate]

Variables set in a bash 'while read' loop are unset after it [duplicate]

This question already has an answer here: A variable modified inside a while loop is not remembered 6 answers I try the code below to store the command

Can't install Imagemagick on Mac with Brew

Can't install Imagemagick on Mac with Brew

I am using Brew v0.8 on my Mac OS Lion.When I am trying to install Imagemagick:MacBook-kir:rails kir$ brew install imagemagick/usr/bin/git==> Cloning https://github.com/adamv/ImageMagick.gitCloning into /Users/kir/Library/Caches/Homebrew/im

Rcpp error: /usr/bin/ld cannot find -lgfortran

Rcpp error: /usr/bin/ld cannot find -lgfortran

I am working through the book "Seamless R and C++ Integration with Rcpp". I am using R version 3.1.0 on Ubuntu 12.04. I cannot figure out how to properly link the necessary libraries. I have the following code in R:R> library(Rcpp)R> lib

How to configure R-3.0.1 with --enable-R-shlib

How to configure R-3.0.1 with --enable-R-shlib

I am trying to install R with --enable-R-shlib, so that I can run rstudio with that version,cd /mnt/data2tb/disk/soft/R-3.0.1./configure --with-x=yes --enable-R-shlibbut I got this error:/usr/bin/ld: ../appl/dchdc.o: relocation R_X86_64_32

Sampling without replacement using awk

Sampling without replacement using awk

I have a lot of text files that look like this:>ALGKAHOLAGGATACCATAGATGGCACGCCCT>BLGKAHOLAGGATACCATAGATGGCACGCCCT>HLGKAHOLAGGATACCATAGATGGCACGCCCT>DLGKAHOLAGGATACCATAGATGGCACGCCCT>ELGKAHOLAGGATACCATAGATGGCACGCCCT>FLGKAHOLAGGATACCATAGATGGCAC

Get all folder / directories list in VB.net

Get all folder / directories list in VB.net

This is my first Stackoverflow question, I'm learning VB and having a few problems with getting a list of all folders/directories on the system. I'm using the code included here and it seems to work until it hits the recycle bin folder, and

how to remove reference to .net assembly in matlab

how to remove reference to .net assembly in matlab

I have created a dll in c#. I added a reference to this dll in MATLAB as shown below. Everything works fine. The problem is that when I want to update my dll I have to close MATLAB otherwise I cannot rebuild my dll, which is rather annoying

websphere 7 and (application based) open-jpa 2

websphere 7 and (application based) open-jpa 2

I want to not use the built in Websphere 7 jpa plugin, instead use an application WEB-INF/lib/open-jpa 2 and a proprietary persistence provider. I cannot install the OSGI and JPA 2 feature pack for Websphere. Originally, I was getting a s

why does loading Drools 6 KIE JAR into code fail?

why does loading Drools 6 KIE JAR into code fail?

I'm using JBoss AS 7.1.1.Final with KIE Workbench/Drools 6.0.1., Java and Eclipse (Kepler). I need KIE Workbench (formerly Drools Guvnor) to let people graphically create/edit jars with Facts and Rules and then store as jars in the local ma

Git Error: dyld: lazy symbol binding failed: Symbol not found: _iconv_open

Git Error: dyld: lazy symbol binding failed: Symbol not found: _iconv_open

I was trying to fix up my .bashrc on a new mac with some aliases I had and I had made a .bash_profile to try to load up the .bashrc when the terminal was opened. However, it has been giving me this error every time I try to use a git comman

Multiplication with expr in shell script

Multiplication with expr in shell script

I am making a basic calculator to add, subtract, multiply, and divide. Addition works, but not multiplication. When I attempt to multiply, I get the "You did not run the program correctly" response:$ ./calculator 4 + 59$ ./calculator 4 * 5Y

mysqldump via PHP

mysqldump via PHP

I have a PHP script that gets passed the MySQL connection details of a remote server and I want it to execute a mysqldump command. To do this I'm using the php exec() function: /path-to-export/file.sql", $output);?>When the right login deta

PHP mailer error

PHP mailer error

I tried to use php mailer but errors as follows.SMTP -> FROM SERVER:SMTP -> FROM SERVER:SMTP -> ERROR: EHLO not accepted from server:SMTP -> FROM SERVER:SMTP -> ERROR: HELO not accepted from server:SMTP -> ERROR: AUTH not accepted from serv

Specify binary-only dependencies

Specify binary-only dependencies

I have a crate with both a binary and a library. The library is extremely light on dependencies, while the binary requires quite a bit more to, e.g., load files or do scoped parallel things.Currently, I have my Cargo.toml set up like this:[

Display frequency instead of count with geom_bar() in ggplot

Display frequency instead of count with geom_bar() in ggplot

On this page, they give the following examplelibrary(ggplot2)library(reshape2)ggplot(data=tips, aes(x=day)) + geom_bar(stat="bin")Instead of a count I'd like to have a frequency in y-axis. How can I achieve this? 1:Here's the solution wh

Have an “'Resource.Attribute' does not contain a definition for 'actionBarSize'”

Have an “'Resource.Attribute' does not contain a definition for 'actionBarSize'”

Was trying to debug an empty app and got "'Resource.Attribute' does not contain a definition for 'actionBarSize'" error. I have reinstalled android SDK's. public static void UpdateIdValues() { global::Xamarin.Forms.Platform.And

How to do a bitwise NOR Gate in Python (editing python maths to work for me)

How to do a bitwise NOR Gate in Python (editing python maths to work for me)

Say I was to write this:a=01100001 b=01100010 c=01100011 d=01100100 e=01100101 each letter resembles the given numbers now how would I deal with the resembling values:Python would want to do this:a + b = 2200011but what I want it to do is t

unable to set GIT_WORK_TREE variable in a bare repository when using post_update hook

unable to set GIT_WORK_TREE variable in a bare repository when using post_update hook

I am trying to set git up with http://danielmiessler.com/study/git/#website to manage my site. I am working using the git gui in win7I have gotten to the last step in the instructions: git push website After pushing to the website, I was a

Some XE2 Programs Don't Show new executable Icons In Windows Explorer

Some XE2 Programs Don't Show new executable Icons In Windows Explorer

I have several programs written in Delphi XE2 that were converted from Delphi 2005, which under Windows 7 would display horribly scaled icons when shortcuts were made on the Desktop.Using IcoFX, I created a new icon containing the usual 4 s

Test Apache Felix with Java 8 and JavaFX

Test Apache Felix with Java 8 and JavaFX

I'm working on example with JavaFX 2.2 and Java 8. I created this simple Apache Felix Activator:Activator:import javafx.application.Platform;import javafx.scene.Scene;import javafx.scene.control.Label;import javafx.scene.layout.BorderPane;i

Why does java -version returns old version?

Why does java -version returns old version?

OS: Windows XPI am using yuicompressor-2.4.2 to compress some CSS before uploading to my server.But when I run it, the following exception appears:Exception in thread "main" java.lang.UnsupportedClassVersionError: com/yahoo/platform/yui/com

multiple targets from one recipe and parallel execution

multiple targets from one recipe and parallel execution

I have a project which includes a code generator which generates several .c and .h files from one input file with just one invocation of the code generator. I have a rule which has the .c and .h files as multiple targets, the input file as

Eclipse: export to .jar AND include resource files (ANT)

Eclipse: export to .jar AND include resource files (ANT)

Our project in eclipse approximately shows the following folders:application - src - JRE System Library [1.6] - Referenced Libraries - lib - rscIn our project, we would like to use File > Export... > Executable JARWell that w

How to read user input into a variable in Bash?

How to read user input into a variable in Bash?

I'm trying to create a script that simplifies the process of creating a new user on an iOS device. Here are the steps broken down. # fullname="USER INPUT"# user="USER INPUT"# group=$user# uid=1000# gid=1000# home=/var/$user# echo "$group:*: