Tags » LTS

How to create interactive plot using R, RStudio, Quandl, dplyr, ggvis and lubridate in Ubuntu 14.04 LTS 64-bit

# Reproducible research .R script to run in RStudio in Ubuntu 14.04 LTS 64-bit
# Prerequisites to install: 
# https://mark911.wordpress.com/2014/11/06/how-to-install-newest-version-of-r-and-rstudio-in-ubuntu-14-04-lts-using-a-bash-script/
# Further prerequisites to install in R or RStudio:
install.packages(c("Quandl", "dplyr", "ggvis", "lubridate"))
# Data set: 
# https://www.quandl.com/data/ODA/MOZ_PPPSH-Mozambique-Share-of-World-GDP-based-on-PPP
data <- Quandl("ODA/MOZ_PPPSH", authcode="FiHHoC-Gnx3CHzr9385J")
data$year <- lubridate::year(data$Date)
min_year <- min(data$year)
max_year <- max(data$year)
# source: https://github.com/rstudio/ggvis/blob/master/vignettes/ggvis-basics.Rmd
# source: Data Wrangling Cheat Sheet:
# http://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf
# source: http://ggvis.rstudio.com/0.1/quick-examples.html
data %>% 
 ggvis(~Date,~Value) %>% 
 layer_points() %>% 
 layer_model_predictions(model = input_select(
 c("loess" = "loess",
 "lm" = "lm",
 "MASS::rlm" = "MASS::rlm"),
 label = "model")) %>%
 layer_smooths(se = TRUE,
 span = input_slider(min = 0.3, max = 1, value = 0.8, step = 0.1,
 label = "Smoothing span")) %>%
 add_axis("x", title = "Date") %>%
 add_axis("y", title = "Mozambique Share of World GDP based on PPP, %")

How to compile and install newest version of scilab from github using a bash script in Ubuntu 14.04 LTS 64-bit

!!!! Following procedure is risky, because manually installing the 6 library dependencies below can potentially break your package manager dependencies !!!!!
!!!!! Use following bash script at your own risk !!!!! 419 more words


How to compile and install newest version of maven and checkstyle (from github) using a bash script in Ubuntu 14.04 LTS 64-bit

# based on: http://checkstyle.sourceforge.net/cmdline.html
# Install tools required to build maven and checkstyle:
sudo apt-get update
sudo apt-get build-dep maven maven2
sudo apt-get install git build-essential checkinstall unp ant
sudo apt-get purge maven maven2
# install newest version of maven:
rm -rf maven*
git clone https://github.com/apache/maven.git
cd maven
ant -Dmaven.home="$HOME/apps/maven/apache-maven-SNAPSHOT"
cd ~/maven/apache-maven/target
unp apache-maven-*-bin.tar.gz
sudo ln -s ~/maven/apache-maven/target/apache-maven-*/bin/mvn /usr/bin/mvn
mvn -v
# example of Terminal output:
#Apache Maven 3.3.2-SNAPSHOT
#Maven home: $HOME/maven/apache-maven/target/apache-maven-3.3.2-SNAPSHOT
#Java version: 1.7.0_76, vendor: Oracle Corporation
#Java home: /usr/lib/jvm/java-7-oracle/jre
#Default locale: en_US, platform encoding: UTF-8
#OS name: "linux", version: "4.0.0-040000rc3-lowlatency", arch: "amd64", family: "unix"
# install newest version of checkstyle:
rm -rf checkstyle
git clone https://github.com/checkstyle/checkstyle
cd checkstyle
mvn clean compile
# Terminal output should be similar to this:
#  Executed tasks
#  ------------------------------------------------------------------------
#  ------------------------------------------------------------------------
#  Total time: 45.184 s
#  Finished at: 2015-04-04T10:54:52+02:00
#  Final Memory: 32M/412M
#  ------------------------------------------------------------------------
#mvn exec:java -Dexec.mainClass="com.puppycrawl.tools.checkstyle.Main" \
# -Dexec.args="-c /sun_checks.xml src/main/java "
# run the tool in GUI mode:
mvn exec:java -Dexec.mainClass="com.puppycrawl.tools.checkstyle.gui.Main" \
#mvn clean package -Passembly
#java -jar target/checkstyle-6.5-all.jar -c /sun_checks.xml MyClass.java 8 more words

php framework

while waiting for wavemaker, let’s give php a try. i have some BASIC php knowledge, and everyone suggested to start with a framework.

here is a list of the most used php libraries: … 154 more words

Web Application

Lord Tweedsmuir Secondary to change nickname from "Panthers" to "Kitties."

In a move that is sure to surprise many people in Cloverdale and around the province, the Lord Tweedsmuir Secondary sports teams will no longer be known as the Panthers.   199 more words

Beyond The Library

Professors Pless' sermon

Prof. John Pless from CTS Ft.Wayne (IN) preached during the Confession and Absolution service this morning on St.Matthew 21:28-32. Thankfully he has agreed to have it posted here for your edification: Wednesday in Lent II