This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some Higly Opinionated Notes on Java Commentary | |
Package Javadoc (package-info.java): | |
- Do this. Help us understand how the classes in this package are | |
related and where we should start in trying to learn them. | |
- Explain why these classes are packaged together. | |
Class/interface Javadoc: | |
- Omit "this class" etc. We know it's a class. | |
- Classes and interfaces do not do things; they represent things. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.wood; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.Collections; | |
import java.util.Objects; | |
import java.util.List; | |
import org.apache.http.client.utils.URIBuilder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Example config file for the Clam AV daemon | |
## Please read the clamd.conf(5) manual before editing this file. | |
## | |
# Comment or remove the line below. | |
# Example | |
# Uncomment this option to enable logging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.sql.*; | |
class Recycletest | |
{ | |
private static final String URL | |
= "jdbc:oracle:thin:@changeit:1521/XE"; | |
private static final String USER = "changeit"; | |
private static final String PWD = "changeit"; | |
public static void main(String[] argv) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Copyright 2014 Indiana University | |
# Mark H. Wood, IUPUI University Library | |
### Configure me! | |
DSHOME="${HOME}/dspaces" | |
DBMS='postgresql' | |
DB_HOST=localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Copyright 2014 Indiana University | |
# Mark H. Wood, IUPUI University Library | |
### Configure me! | |
DS_HOST=${DSENV_HOST:-`hostname -f`} | |
DS_PORT=${DSENV_PORT:-8080} | |
DS_HOME="${HOME}/dspaces" # MAGIC | |
[email protected] # MAGIC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
WHO="ferd@berfel" | |
CONTENT="~/content" | |
DSPACE_HOME="~/dspace" | |
SITE=`echo ${CONTENT}/SITE@* | cut -f1 -d' '` | |
if [ -n "${SITE}" ] | |
then | |
echo ${DSPACE_HOME}/bin/dspace packager \ |