This file contains 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
# coding: utf-8 | |
# FILE: | |
# ----- | |
# /mnt/Vancouver/apps/Webcam-Face-Detect/webcam_cv3_v2_fps_v3.py | |
# FUNCTIONALITY: | |
# -------------- | |
# * outputs webcam to screen and finds faces, eyes | |
# * writes webcam video to *.avi file (MJPG codec) via OpenCV/FourCC |
This file contains 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
============================================================================== | |
Caffe Installation Notes | |
[2016-Nov-21] Arch Linux x86_64 | Intel Core i7-4790 CPU | ... | |
============================================================================== | |
* Caffe home page: http://caffe.berkeleyvision.org/installation.html | |
* GitHub: https://github.com/BVLC/caffe |
This file contains 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
#!/usr/bin/env python | |
# coding: utf-8 | |
"""AGE AND GENDER CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORKS - DEMO | |
This code is originates with the paper: | |
Gil Levi and Tal Hassner, "Age and Gender Classification Using Convolutional Neural Networks," | |
IEEE Workshop on Analysis and Modeling of Faces and Gestures (AMFG), at the IEEE Conf. on | |
Computer Vision and Pattern Recognition (CVPR), Boston, June 2015 |
This file contains 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
PROBLEM: tag a file, at the top of the file, with the base name of the parent directory. | |
SOLUTION 1 -- non-empty files: | |
$ bn=${PWD##*/} ## bn: basename | |
$ sed -i '1s/^/'"$bn"'\n/' <filename> | |
SOLUTION 2a -- empty files: |
This file contains 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
<!DOCTYPE html> | |
<html lang="en-us"> | |
<!-- | |
Example derived from: | |
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditional | |
--> | |
<head> | |
<meta charset="utf-8" /> |
This file contains 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
VPN Notes, Scripts | |
Victoria Stuart: Apr 12, 2017 | |
[gmail: Victorias.Linux@ ...] | |
File: /mnt/Vancouver/Reference/VPN/vpn notes, scripts.txt | |
Saved 2017-Apr-12 as public Gist: | |
https://gist.github.com/victoriastuart/19acf4944c9c95af461d62b27d0c19ec |
This file contains 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
============================================================================== | |
/mnt/Vancouver/Programming/scripts/claws_sed_tests/notes.txt | |
# ---------------------------------------------------------------------------- | |
[victoria@victoria claws_sed_tests]$ date | |
Fri Jul 7 10:07:39 PDT 2017 |
This file contains 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
============================================================================== | |
file: /mnt/Vancouver/apps/CoreNLP/_victoria/gist_for_SO44910934.txt | |
title: "CoreNLP" {Java | Python} Gist for StackOverflow #44910934 | |
author: Victoria A. Stuart | |
created: 2020-01-03 | |
version: 01 | |
last modified: 2020-01-03 | |
Versions: | |
* v01 : this |
This file contains 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
# https://gist.github.com/victoriastuart/c4e3230ade5266c9330a618be560b849 | |
# https://www.reddit.com/r/LanguageTechnology/comments/b8xdb1/find_independent_clause_from_a_statement/ | |
import nltk | |
from nltk.tag import pos_tag | |
import re | |
def getSentenceType(statement): | |
sentenceParts = pos_tag(statement.split()) | |
return sentenceParts |
This file contains 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
=============================================================================== | |
APPLICATION OF LET'S ENCRYPT SSL CERTIFICATE TO APACHE SOLR | |
=============================================================================== | |
This solution / summary is in two parts. | |
1. Failed installation of LE certificate via OpenSSL approach (SO #41592427). | |
2. Successful installation via blog entry. |