Instructions 3, 5 from here
Instruction 6 from here
- Install mutt
sudo apt-get install mutt| #!/bin/bash | |
| ############################################# | |
| # Determines how much time has elapsed. | |
| # | |
| # Takes advantage of the 'SECONDS' variable which is global environment variable in shell. | |
| # 'SECONDS' is usually used by the environment to record how long it has been | |
| # since a script was first executed. | |
| # | |
| # It's taken advantage of here to measure a length of time. |
| package main; | |
| import java.awt.Graphics2D; | |
| import java.awt.image.BufferedImage; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; | |
| import javax.swing.ImageIcon; | |
| import javax.swing.JOptionPane; |
| public static String workingDir = Paths.get(".").toAbsolutePath().normalize().toString(); |
| Source: http://webcache.googleusercontent.com/search?q=cache:https://notepad-plus-plus.org/community/topic/11466/eliminate-duplicate-rows-show-unique-rows-only | |
| (Cached with Google in case it ever goes down.) | |
| 1) Open notepad++ and paste in data you want duplicate lines removed from. | |
| 2) Edit -> Line Operations -> Sort Lines Lexicographically Ascending | |
| 3) Ctrl + F | |
| 4) Search for: ^(.+?)\R(\1\R?)+ | |
| 5) Replace with: \1\r\n |
| word = word.replaceAll("\\p{Punct}+", ""); |
| package main; | |
| import javafx.application.Application; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.layout.StackPane; | |
| import javafx.stage.Stage; |
Instructions for creating a shared folder via VirtualBox using a Windows host machine and an Ubuntu 16.04 Headless Server guest.
From StackOverflow question Why can't I access a shared folder from within my Virtualbox machine?, specifically the first half of Louis Matthijssen's answer.
This was suprisingly difficult for me, so I'm making this quick guide so I have it handy in the future.
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.math.BigDecimal; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; |