Skip to content

Instantly share code, notes, and snippets.

View Erotemic's full-sized avatar
An eroteme is a question mark

Jon Crall Erotemic

An eroteme is a question mark
View GitHub Profile
@Erotemic
Erotemic / gist:ea5b68dd2e28cc3a592d
Created July 9, 2015 20:32
Example of failing to login with tomcat
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
cd $CODE_DIR/Wildbook/
# Clean up old tomcat
rm -rf apache-tomcat-8.0.24
# --- FRESHSTART ---
@Erotemic
Erotemic / gist:887a13aedf59393be2f7
Created July 9, 2015 20:33
Resulting catilina.out
09-Jul-2015 16:30:55.745 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
09-Jul-2015 16:30:55.746 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
09-Jul-2015 16:30:55.746 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
09-Jul-2015 16:30:55.746 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
09-Jul-2015 16:30:55.746 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.13.0-55-generic
09-Jul-2015 16:30:55.746 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
09-Jul-2015 16:30:55.747 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
09-Jul-2015 16:30:55.747 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
@Erotemic
Erotemic / gist:1778cf59d69f67971689
Created July 10, 2015 13:39
Fresh Wildbook Login Script
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
cd $CODE_DIR/Wildbook/
# Clean up old tomcat
rm -rf apache-tomcat-8.0.24
# --- FRESHSTART ---
# Download and unzip tomcat
@Erotemic
Erotemic / gist:815b22e0d2b9bfc6e957
Created July 10, 2015 13:58
catilina.out for broken thumbnails
10-Jul-2015 09:45:32.024 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.13.0-55-generic
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
@Erotemic
Erotemic / gist:8fc56c91a48b16b2f2fa
Created July 10, 2015 14:15
Failed on push encounter catalina.out
10-Jul-2015 09:45:32.024 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.13.0-55-generic
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
@Erotemic
Erotemic / gist:c823b55b27f29f75008e
Created July 10, 2015 14:27
catilina.out after images error
10-Jul-2015 09:45:32.024 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.13.0-55-generic
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
10-Jul-2015 09:45:32.025 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
10-Jul-2015 09:45:32.026 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
@Erotemic
Erotemic / gist:d28cad5913d174726dab
Created July 10, 2015 14:27
Images OnScreen Error
HTTP Status 500 - An exception occurred processing JSP page /encounters/thumbnailSearchResults.jsp at line 108
type Exception report
message An exception occurred processing JSP page /encounters/thumbnailSearchResults.jsp at line 108
description The server encountered an internal error that prevented it from fulfilling this request.
exception
@Erotemic
Erotemic / gist:7a882efa042944bfa40c
Created July 10, 2015 16:22
Catalina out EncounterSetMarkedIndividual seems not to work
10-Jul-2015 12:20:19.157 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.24
10-Jul-2015 12:20:19.157 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 1 2015 20:19:55 UTC
10-Jul-2015 12:20:19.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.24.0
10-Jul-2015 12:20:19.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
10-Jul-2015 12:20:19.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.13.0-55-generic
10-Jul-2015 12:20:19.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
10-Jul-2015 12:20:19.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre
10-Jul-2015 12:20:19.158 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import utool as ut
import numpy as np
import sklearn
import sklearn.datasets
import sklearn.svm
import sklearn.metrics
import sklearn.model_selection
from sklearn import preprocessing
@Erotemic
Erotemic / gist:5230d93ccc9fa5329b0a02a351b02939
Created September 14, 2016 15:28
modified benchmark script
"""
python speedup_kmeans.py --profile
python speedup_kmeans.py
git worktree add workdir_master master
rob sedr "\<sklearn\>" sklearn_master True
git mv sklearn sklearn_master
python setup develop
python -c "import sklearn_master; print(sklearn_master.__file__)"
python -c "import sklearn; print(sklearn.__file__)"