text:
```python
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import KFold
from sklearn.cluster import KMeans
from sklearn.cluster import AgglomerativeClustering
from sklearn.neighbors import kneighbors_graph
import random
from random import randint
from sklearn.datasets import make_blobs, make_swiss_roll
from astroML.datasets import fetch_dr7_quasar
plt.style.use("seaborn-bright")
```
Due by 2 PM on Monday May 13th

Python modules you'll want to use:
from sklearn.cluster import AgglomerativeClustering
from sklearn.neighbors import kneighbors_graph

----
 - Use the same two data sets with at least two features from last week:
    - One that has elongated clusters or irregular shapes in the distribution. It should be easy to find a real astrophysical data set like this.
    - One that is convex and isotropic with blobs of approximately equal numbers of points. You'll probably have to make this yourself.

```python
# Real Data
data = fetch_dr7_quasar()
u_gr = data['mag_g'] - data['mag_r']
u_ri = data['mag_r'] - data['mag_i']
index = np.where(u_gr > -15)
u_gr = u_gr[index]
u_ri = u_ri[index]

realX = np.zeros([len(u_gr),2])
realX[:,0] = u_gr
realX[:,1] = u_ri
realX = np.unique(realX,axis=0)
randos = [np.random.randint(0,len(realX)) for i in range(10000)]
realX = realX[randos]

# Fake Data
n_samples = 1500
random_state = 170
num = 10
nnum = 5

X, y = make_blobs(n_samples=n_samples, random_state=random_state)
```

```python
f, (ax,bx) = plt.subplots(1,2,figsize=(11,8))
ax.scatter(realX[:,0],realX[:,1])
ax.set_ylabel("g - R [Mag]",size="large")
ax.set_xlabel("R - I [Mag]",size="large")
ax.set_title("Quasar Data",size="large")

bx.scatter(X[:,0],X[:,1])
bx.set_xlabel("R - I [Mag]",size="large")
bx.set_title("Simulated Data",size="large")
plt.savefig("Data.png")
```

![png](output_5_0.png)

 - Run the `AgglomerativeClustering` module on each data set with each of the different linkage criteria. Plot the data sets color coded by the cluster labels.

```python
linkage = ["average","complete","ward"]

clustering_real = [AgglomerativeClustering(linkage= link ).fit(realX) for link in linkage]
clustering_fake = [AgglomerativeClustering(linkage= link,n_clusters=3 ).fit(X) for link in linkage]
```

```python
f, axes = plt.subplots(3,2,figsize=(20,20))

for i in range(3):
    axes[i,0].scatter(realX[:,0],realX[:,1],c=clustering_real[i].labels_)
    axes[i,1].scatter(X[:,0],X[:,1],c=clustering_fake[i].labels_)
    axes[i,0].set_ylabel(linkage[i]+"\n\n g-R [mag]",fontsize=20)
axes[0,0].set_title("Real",fontsize=20)
axes[0,1].set_title("Simulated",fontsize=20)
axes[2,0].set_xlabel("R - I [Mag]",fontsize=20)
axes[2,1].set_xlabel("R - I [Mag]",fontsize=20)
plt.show()
```

![png](output_8_0.png)

 - Describe in a few sentences the differences in the cluster labels based on what you know about the linkage criteria.

 For clean, simple data, the linkage criteria doesn't matter too much for identifying clusters. Although, "complete" and "ward" still do better than "average" here just by observing the two points above the left most cluster. For real data, this is no longer true and "ward" by far outperforms "average" and "complete." This makes sense since average looks for the average of all pairwise distances and since the data is skewed with one cluster being far more dense than the other, it won't choose a good boundary for where each cluster starts and ends. Complete looks for the distance between the farthest points in the cluster and so enforces that the data be circular, which isn't our case. Ward looks for the distance which minimizes the variance within the cluster and maximizes the variance, outside of the cluster. So in our case, it can correctly identify the denser cluster as being its own thing.

 - Make a `structured` dataset. It is fun to use some subset of either the S curve or Swiss roll datasets here: https://scikit-learn.org/stable/datasets/index.html#generators-for-manifold-learning

```python
SwissX, _ = make_swiss_roll(n_samples=1500,noise=0.05)
SwissX[:,1] *= .5
fig = plt.figure()
ax = p3.Axes3D(fig)
ax.scatter(SwissX[:,0],SwissX[:,1],SwissX[:,2])
ax.view_init(7,-80)
```

![png](output_12_0.png)

 - Run the `AgglomerativeClustering` module on each data set with each of the different linkage criteria. Plot the data sets color coded by the cluster labels.

```python
clustering_swiss = [AgglomerativeClustering(linkage= link,n_clusters=3 ).fit(SwissX) for link in linkage]

fig = plt.figure(figsize=(20,6))
for i in range(1,4):
    ax = fig.add_subplot(1,3,i,projection='3d')
    ax.scatter(SwissX[:,0],SwissX[:,1],SwissX[:,2],c=clustering_swiss[i-1].labels_)
    ax.view_init(7,-80)
    ax.set_title(linkage[i-1])
```

![png](output_14_0.png)

- Incorporate connectivity information using kneighbors_graph.

```python
connectivity = kneighbors_graph(SwissX,n_neighbors=10,include_self=False)

clustering_swiss_connect = [AgglomerativeClustering(linkage= link,n_clusters=3,connectivity=connectivity ).fit(SwissX) for link in linkage]

fig = plt.figure(figsize=(20,6))
for i in range(1,4):
    ax = fig.add_subplot(1,3,i,projection='3d')
    ax.scatter(SwissX[:,0],SwissX[:,1],SwissX[:,2],c=clustering_swiss_connect[i-1].labels_)
    ax.view_init(7,-80)
    ax.set_title(linkage[i-1])
fig.suptitle("Neighbors = 10")
```

![png](output_16_1.png)

- Try a range of different numbers of neighbors (n_neighbors).

```python
connectivity = [kneighbors_graph(SwissX,n_neighbors=i,include_self=False) for i in range(5,50,5)]

clustering_swiss_connect = [AgglomerativeClustering(linkage= link,n_clusters=3,connectivity=connect ).fit(SwissX) for link in linkage for connect in connectivity]

fig = plt.figure(figsize=(20,20))
n_neigh = 5
for i in range(1,28):
    ax = fig.add_subplot(len(range(5,50,5)),3,i,projection='3d')
    ax.scatter(SwissX[:,0],SwissX[:,1],SwissX[:,2],c=clustering_swiss_connect[i-1].labels_)
    ax.view_init(7,-80)
    if np.isin(i,[1,2,3]):
        ax.set_title(linkage[i-1])
    if np.isin(i,np.arange(1,28,3)):
        ax.text2D(0.05,0.95,"Neighbors = " + str(n_neigh),transform=ax.transAxes)
        n_neigh += 5
#plt.tight_layout()
```

![png](output_18_0.png)

 - Describe in a few sentences the differences with different numbers of neighbors. What trends do you see?

 Clustering gets better the more neighbors you have but there's a limit to that. The very bottom right plot where neighbors = 45 for "ward" actually gets worse so choosing either a small or large amount of neighbors isn't ideal.

 - Time the `fit(X)` step with and without connectivity. (Keep the data set, number of neighbors, and linkage criteria the same.)

```python
import time
```

```python
start = time.time()
no_connect = AgglomerativeClustering(linkage= "ward",n_clusters=3).fit(SwissX)
end = time.time()
print("Without connectivity: " + str(end-start) + " s has elapsed.")

start = time.time()
connectivity = kneighbors_graph(SwissX,n_neighbors=35,include_self=False)
connect = AgglomerativeClustering(linkage= "ward",n_clusters=3,connectivity=connectivity ).fit(SwissX)
end = time.time()
print("With connectivity: " + str(end-start) + " s has elapsed.")
```

    Without connectivity: 0.09470987319946289 s has elapsed.
    With connectivity: 0.29720592498779297 s has elapsed.

```python

```

repository: AstroLudwig/MachineLearningClass

repo_name: AstroLudwig/MachineLearningClass


text:
# CLIJ - a quick tour
CLIJ is a [Fiji](https://fiji.sc) plugin for GPU accelerated image processing based on [OpenCL](https://opencl.prg).

It is recommended to use it from Fiji script editor using the ImageJ macro language. For the ease of use, auto-completion is enabled for editing CLIJ workflows.
![Image](images/autocompletion.png)

Furthermore, CLIJ has its on menu: `Plugins > ImageJ on GPU (CLIJ)` with sub menus offering all CLIJ functionality.
![Image](images/menu.gif)

When clicking on the menu, you see a dialog asking for the parameters of the specific CLIJ operation. Furthermore, user documentation and parameter exlanation is given in the same dialog.
![Image](images/dialogs.gif)

If ImageJs macro recorder up and running, the parameters entered in the dialog are recorded together with additional call necessary for pushing the image to the GPUs memory and pull the result back:
![Image](images/macro_recorder.png)

For exploring CLIJ further, it is recommended to read the [introduction for macro programmers](macro_intro) and have a look at the [code examples](https://mpicbg-csbd.github.io/clij-docs/src/main/macro);

[Back to CLIJ documentation](readme)

repository: mpicbg-csbd/clij-docs

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: mpicbg-csbd/clij-docs


text:
## Simple-sha256
A minimal sha256 implementation for learning and fun. This can be used as a library,
embedded or otherwise.

This is a very minimalistic implementation of SHA256. One caveat, supported data
length is limited to 2^32 bits (as apposed to 2^64 bits). It's easy to fix but
I haven't had a need for it. The other gotcha is that there are little to big
endian conversions that you need to be aware of, if porting to a new core
architecture.

Only testing so far has been with NIST test vectors.

## Requirements
* First, a few documents describing the algorithm can be found
[here](http://www.iwar.org.uk/comsec/resources/cipher/sha256-384-512.pdf) and
[here](http://www-ma2.upc.es/~cripto/Q2-06-07/SHA256english.pdf).

* For compilation a plain vanilla **gcc** works. No dependency or libraries need.

## Usage

```
make
./simple-sha256.exe

# or use it as a library
```

license: MIT


text:
# example_5-extended (sunrise)

Sunrise is based on the concept of three elements, map, spot light element, and random rotation. Template use from Babylonjs.com with some changes give an illusion of sunrise. For those who never manage to see real sunrise.

## Built With

* [babylon.JS](https://www.babylonjs.com/) - The 3d framework used
* [jquery PEP](https://github.com/jquery/PEP) - additional framework used

## Authors

* **Srebrenica, B.**

## Acknowledgments

* babylon.JS Light project texture (https://www.babylonjs-playground.com/#CQNGRK#0)

The creation of the shapes and rotation of them is based on the Light project texture example of the babylonjs-playground, with some small changes applied on the codes functions and and css properties. Also initial perspective of the graphics.


text:
# cpp-logging-playground

This repo includes sample code using various C++ logging frameworks.

Requirements:
- Filtering by various logging levels (e.g. info, warn, err, debug, fatal)
- Support logging to stdout/stderr (for use in containers)
- Support logging to file with rotation support (for use outside of containers)
- Thread-safe
- Type-safe
- Customizable logging formats
- Extensible for user-defined types
- Async support

## spdlog/fmt
Dependencies:
* https://github.com/gabime/spdlog (header-only)
* https://github.com/fmtlib/fmt

## boost::log
Dependencies:
* boost - drags in multiple boost libraries (log, log_setup, thread, system, atomic, chrono, date_time, filesystem, regex)

repository: CJLove/cpp-logging-playground

repo_name: CJLove/cpp-logging-playground


text:
Ryu SDN-IP
====

SDN-IP Ryu version

Original SDN-IP is one of project from [ONOS](http://onosproject.org/).

## Requirement
----

- Ryu v4.1
- networkx 1.11

## Install
----

1. Clone Ryu SDN-IP repo

```bash
$ git clone https://github.com/TakeshiTseng/Ryu-SDN-IP.git && cd Ryu-SDN-IP
```

2. Install dependences

```bash
$ pip install -r requirements.txt
```

3. Create config file for Ryu SDN-IP

```bash
cp config.sample.json config.json
```

Configuration file example:

```js
{
  "local": {
    "as_number": 65113,  /* SDN-IP AS number */
    "router_id": "<IP_ADDRESS>",  /* SDN-IP router id(IP address) */
    "listen_port": 2000,  /* listen port */
    "networks": [  /* local as network prefixes */
      "<IP_ADDRESS>/24"
    ]
  },
  "speakers": [  /* Internal BGP speakers for SDN-IP */
    {
      "dpid": "00000000000000002",  /* DP that speaker connected */
      "port": 1,  /* Port that speaker connected */
      "speaker_ids" : [  /* Speaker ID from this connection point */
        "<IP_ADDRESS>"
      ],
      "mac": "00:00:00:00:01:01"  /* Speaker mac address */
    },
    {
      "dpid": "00000000000000004",
      "port": 1,
      "speaker_ids" : [
        "<IP_ADDRESS>"
      ],
      "mac": "00:00:00:00:02:01"
    }
  ]
}
```

4. Start Ryu SDN-IP applications:

```bash
$ ./bin/sdnip-mgr --observe-links sdnip.arp_proxy sdnip.fwd_bgp sdnip.sdn_ip
```

Reference:

[SDN-IP wiki](https://wiki.onosproject.org/display/ONOS/SDN-IP)

TODO:

- [ ] Internal link failure handling
- [ ] Switch failure handling
- [x] Integrate with [DragonKnight](https://github.com/Ryu-Dragon-Knight/Dragon-Knight)
- [ ] Reconfigurable

repository: sdnds-tw/Ryu-SDN-IP

gha_language: Python

repo_name: sdnds-tw/Ryu-SDN-IP


text:
---
title: "Launch Planning"
permalink: /flight20210313/launchplanning/
layout: single
excerpt: "Launch planning for 2021-03-13 flight."
sidebar:
  nav: "flight20210313"
---

Our launch date was selected many weeks beforehand, though weather was uncertain until the week before. Every day until the launch, we checked forecasts and ran simulations for predicted flight paths. The landing site was targeted as somewhere in Central California. We knew the landing site variability was extremely high, and we wanted to land in a low population, easily accessible area. HAB payloads can get stuck in trees, fall into the ocean, or end up in other difficult to retrieve places, and maximizing the chances of recovery are important. The vast fields and farmland of Central California were perfect for this. We would adjust our launch site based on where we could achieve the desired landing site, which ended up being in Modesto.

We primarily used two flight prediction tools: <https://predict.habhub.org/>, and <http://astra-planner.soton.ac.uk/>. As launch day approached, habhub provided some odd looking trajectories that didn’t agree with ASTRA planner. However, both calculators showed landing sites within the desired area, which gave us confidence. We also used <https://www.stratoflights.com/en/tutorial/predicting-the-flight-path/>, and found it gave nearly identical predictions to ASTRA, which made us weigh that prediction more heavily.

The two predicted flight paths are displayed below. Note the extremely odd flight path predicted by ASTRA (second image), which led us to favor the habhub prediction (first image).

![alt]({{ site.url }}{{ site.baseurl }}/assets/images/flight20210313/habhub.png)
{: .full}

![alt]({{ site.url }}{{ site.baseurl }}/assets/images/flight20210313/astra.png)
{: .full}

The flight ended up being shorter than anticipated due to a slight overfill of the balloon, and the landing site just southwest of Fresno suggested that the habhub estimate was more accurate.

repository: chinandrew/msjhs-hab

repo_name: chinandrew/msjhs-hab


text:
---

published: true
title: How to build a standing desk on the cheap with galvanized pipe
---
I recently converted my old desk into a standing desk. I did this because of back pain from sitting for long hours studying, because I felt that it would make me more productive, and because recent studies have shown the harmful effects of sitting for extended periods of time.

As a student, however, I was on a shoestring budget, meaning that the likes of the $700 [GeekDesk](http://www.geekdesk.com/) just wasn't going to be feasible. I came up with the idea of building a desk out of galvanized pipe after browsing some of the [pipe furniture](http://www.instructables.com/id/Pipe-Furniture/) on Instructables. I did some research, shopped around, and found that the most cost-effective way to build it was by using 1/2″ pipe from Home Depot.

Here are the necessary supplies:

* 5 flanges ($4.98 each)
* 9 "T" fittings ($1.69 each)
* 1 cross fitting ($5.03 each)

And whatever length of pipe necessary for the desk you are working with. The most cost-effective way to buy the pipe is to pick up the 10-foot pieces and ask an employee to cut and thread them for you (which they do for free).

I was able to build this standing desk for under $80 (monitors and monitor stand not included, obviously). Keep in mind that I did reuse the top of my old desk. In any case, this was much more cost-effective than any other standing desk setup I have seen, and it has worked very well!

![standingdesk-942x1024.jpg]({{site.cdn_path}}/2012/12/30/standingdesk-942x1024.jpg)

gha_language: HTML

gha_license_id: MIT


text:
---
layout: post
title: "On False Dichotomies"
description: "How to Realize the Futility of Mutual Exclusivity"
categories: ["life"]
tags: ["work","logic","development"]
---

### Why Not Both?

In [my last post](<{{ site.url }}/posts/2017-06-21-on-unemployment-malaise.html>), I said the following:

>The dream is to [make a living] with words, through writing or speaking or teaching. <br/>However, my resume and experience indicate a person with Development and DevOps skills.

The truth of the matter is that writing is a valuable skill to have in life generally. There's no reason that one cannot be and do both.

Here are just some of the things that a developer can write:

* Technical Blog Posts
  * Failure Post-Mortems
  * Success Post-Mortems
  * Tips and Tricks
  * Tutorials
* Patch Notes
* Documentation
* Tech Talks
* Reviews
  * Conference Overview
  * Software Review

This doesn't even cover personal writing, like a book or game review, or a general opinion piece.

Like most of my writing, this is as much a message to myself as it is to anyone reading it:

>Take some time every day to express yourself with words. It's easier and more valuable than you think.


text:
# about-anshitha

About-me

## Repository Link

- [Source repository](https://github.com/anshithavelagapudi/about-anshitha)
- [Hosted Page](https://anshithavelagapudi.github.io/about-anshitha/)

## About this Repository

We have lot of tools that can be used to create a repo in easy way and also can get more knowledge by creating this kind of repositories.

## Recommended Tools

I have used the following tools till now to create web pages.
1. [Create Github Account](https://github.com/)
2. [GitClone](https://git-scm.com/docs/git-clone)
3. [TortoiseGit](https://tortoisegit.org/)
4. [Markdown](https://guides.github.com/features/mastering-markdown/)
5. [PuTTY](https://en.wikipedia.org/wiki/PuTTY)

## Recommended Resources

- [Geeksforgeeks](https://www.geeksforgeeks.org/begin-web-development-with-a-head-start/)
- [TutorialsPoint](https://www.tutorialspoint.com/internet_technologies/websites_development.htm)
- [W3 Schools](https://www.w3schools.com/whatis/)
- [Code Academy](https://www.codecademy.com/learn/paths/web-development)

## Contributors

Naga Anshitha Velagapudi
MS-ACS (Master's in Applied Computer Science)
![My Favorite Picture](https://images.pexels.com/photos/753626/pexels-photo-753626.jpeg?cs=srgb&dl=cottages-in-the-middle-of-beach-753626.jpg&fm=jpg)

repository: anshithavelagapudi/about-anshitha

gha_language: JavaScript

repo_name: anshithavelagapudi/about-anshitha


text:
# Transparency

A command-line tool for transforming a color with transparency to one without trasparency.

## Motivation

It is not possible to have transparency in iOS app icons. If one tries this, the app icon display the transparent parts of the image in black. However, for a given transparent color on a given background, one can calculate the closest color without transparency using the following formula:

```
target = opacity * original + (1 - opacity) * background
```

## Installation

### Using Mint

The easiest way to install the tool is using the Mint SPM tool.

If you have Mint installed, run the following command:

```
mint install janagrill/transparency
```

For Mint installation and additional information please refer to its GitHub page at <https://github.com/yonaskolb/Mint>.

### Manual installation

You can build the project yourself using the Xcode command-line tools like this:

```
cd /path/to/transparency
swift build
cd .build/debug
transparency -c 90:200:250 -o 0.3
```

Alternatively copy the generated binary to a folder in your $PATH so you can run the tool from everywhere. Make sure you have permissions to change the desired directory (`/usr/local/bin` in this example)

```
cd /path/to/transparency
swift build
cp .build/debug/transparency /usr/local/bin
transparency -c 90:200:250 -o 0.3
```

### Installation during development

The Xcode project has a `Copy phase` that copies the `transparency` binary to `/usr/local/bin` every time the project is built. Make sure you have permissions to change this directory.

## Usage

To print the usage help for the tool to the console, run:

```
transparency -h
```

## Dependencies

* [Swift Argument Parser](https://github.com/apple/Swift-Argument-Parser)

repository: janagrill/transparency

branch_name: refs/heads/main

repo_name: janagrill/transparency


text:
# Hardhat Tasks
This directory contains task files, written in TypeScript. Tasks in Hardhat are asynchronous JavaScript functions that get access to the Hardhat Runtime Environment, through which you get access to the configuration, parameters, programmatic access to other tasks and any objects plugins may have injected.

## Executing a Task
On a command-line terminal, run the following command (replace the placeholder with the task's name):
- Without arguments: `npx hardhat {taskName}`
- With Arguments: `npx hardhat {taskName} --{ArgumentName} {ArgumentValue}`

## Creating a Task
Please review the document [Creating a task](https://hardhat.org/guides/create-task.html) from the official documentation for details and instructions.

Note: remember to use TypeScript syntax and save it as a .ts file.

repository: calldata/hardhat-pipeline

repo_name: calldata/hardhat-pipeline


text:
## GitLab CI is an open-source continuous integration server

[![Code Climate](https://codeclimate.com/github/gitlabhq/gitlab-ci-runner.png)](https://codeclimate.com/github/gitlabhq/gitlab-ci-runner)

![Screen](https://github.com/downloads/gitlabhq/gitlab-ci/gitlab_ci_preview.png)

## This is Runner repository. This code responsible for running tests

### Requirements

**The project is designed for the Linux operating system.**

We officially support (recent versions of) these Linux distributions:

- Ubuntu Linux
- Debian/GNU Linux

### Installation

```bash
# Get code
git clone https://github.com/gitlabhq/gitlab-ci-runner.git

# Enter code dir
cd gitlab-ci-runner

# Install dependencies
gem install bundler
bundle install

# Install runner in interactive mode
bundle exec ./bin/install

# SSH into your GitLab server and confirm to add host key to known_hosts
ssh git@<your gitlab url>
```

### Run

```bash
bundle exec ./bin/runner
```

repository: Ensequence/gitlab-ci-runner

repo_name: Ensequence/gitlab-ci-runner


text:
# General Description

This is an ongoing project of a drone tracker, integrated with yolov5 and UV-Drone code by Menglaili.

## Current

1. Please refer to the yolov5 GitHub page(listed below) on training.
2. After training replace best.pt with the trained weights.
3. run tracker.py with selected webcam to detect the drones and the path after finish.

## Future Implementation
1. Replace the webcam with an Anafi drone(Supervised drone).
2. The supervised drone would be able to follow the monitored drone.
3. The monitored drone will be able to repeat tasks with the help of the supervised drone.

## Referances
1. [yolov5](https://choosealicense.com/licenses/mit/)
2. [UV-Drone](https://github.com/menglaili/UV-Drone)


text:
# CICD for PCI-GKE Blueprint

The PCI-GKE Blueprint can be deployed in a CICD pipeline using Cloud Build to continuously
deploy and validate the infrastructure on GCP. In addition to deploying the infrastructure
using Terraform, Chef InSpec is used to run a profile of compliance controls to validate
the in-scope project against the PCI-DSS benchmark (https://github.com/GoogleCloudPlatform/inspec-gcp-pci-profile).

After running the InSpec profile against the in-scope project Cloud Build will store the
report in json and html format inside a Cloud Storage bucket for review.

## Setup steps

### Inspec-gcp-pci-benchmark Container
Before setting up the pipeline in Cloud Build a container needs to be created that contains
the Inspec profile. Clone the PCI benchmark repo into a directory outside the pci-gke
blueprint:

`git clone https://github.com/GoogleCloudPlatform/inspec-gcp-pci-profile.git`

A container needs to be created which runs the InSpec profile in the pipeline.
Choose a tag for the container according to the version in the inspec.yml file
in the Inspec profile's repository. Note, that you will have to specify this tag
as substituation parameter in Cloud Build (parameter `_INSPEC_PROFILE_DOCKER_TAG`).

Build a container by running:

`docker build . -t gcr.io/<project_id>/inspec-gcp-pci-profile:<version>`

Push the Docker container to the Google Container Registry:

`docker push gcr.io/<project_id>/inspec-gcp-pci-profile:<version>`

### Prerequisites
* The Cloud Build service account requires the organization admin and folder admin on
organization level.
* The Cloud Build service account needs to have the Cloud Billing User role on the Billing account.
* The Cloud Build service account needs to have the Project Creator role on folder level.
* The Cloud Build service account needs to be a domain owner of the front-end domain that you
specify in the workstation.env file.
* Enable the Context Manager and Cloud Billing API in the project in which you create the Cloud Build
pipeline.
* If you are specifying an existing admin project in the pipeline setup (parameter `_TF_ADMIN_PROJECT`),
make sure the Cloud Build service account has the Project Owner role on the admin project.

### Cloud Build Pipeline setup
Navigate to Cloud Build in the GCP console and wait until the API is enabled (if not already done).
Connect to the repository that contains the code for the PCI-GKE-blueprint (e.g. a fork of the
upstream repository or a separate clone in Google Cloud Source Repositories).

Define a trigger for Cloud Build. For the Build configuration enter `cicd/cloudbuild.yml`.
Create the following Substitution variables and enter values according to the workstation.env file:
* _GCR_PROJECT_ID
* _GOOGLE_GROUPS_DOMAIN
* _REPORTS_BUCKET
* _TF_ADMIN_BUCKET
* _TF_ADMIN_PROJECT
* _TF_VAR_BILLING_ACCOUNT
* _TF_VAR_FOLDER_ID
* _TF_VAR_FRONTEND_ZONE_DNS_NAME
* _TF_VAR_GSUITE_ID
* _TF_VAR_ORG_ID
* _TF_VAR_PROJECT_PREFIX
* _DESTROY_INFRA_AFTER_CREATE
* _INSPEC_PROFILE_DOCKER_TAG

The variable _REPORTS_BUCKET is the GCS bucket which will contain the InSpec report files in json
and html format. Make sure that the Cloud Build service account has the Cloud Storage Admin role
on the bucket that you specify.

The variable _DESTROY_INFRA_AFTER_CREATE is boolean (`false` or `true`) and determines whether the
infrastructure should be destroyed as final step of the pipeline execution.

repository: stevewww/pci-gke-blueprint

repo_name: stevewww/pci-gke-blueprint


text:
---
layout: post
title:  "Over the Wire - Bandit Levels 15-20"
date:   2016-08-17 22:53:00
categories: pentest
tags: [pentest]
image: /assets/article_images/2016-07-27-over-the-wire-part-1/2016-07-27.jpg
---

[Over the Wire](http://overthewire.org/wargames/)'s Bandit series again, and more to go. I've been busy at work with some performance testing and performance analysis, but here's a new episode of this! So what awesome track is playing for me today? What am I listening to?

## Level 15 - 16

[Hint](http://overthewire.org/wargames/bandit/bandit16.html):

> The password for the next level can be retrieved by submitting the password of the current level to port 30001 on localhost using SSL encryption.

> Helpful note: Getting “HEARTBEATING” and “Read R BLOCK”? Use -ign_eof and read the “CONNECTED COMMANDS” section in the manpage. Next to ‘R’ and ‘Q’, the ‘B’ command also works in this version of that command…

Okay so this level is using ssl, looking up `openssl` man pages located [here](https://www-origin.openssl.org/docs/manmaster/apps/s_client.html) gives me more information about `openssl` and `s_client`.

Lets try straight up connecting to localhost on port 30001

```sh
bandit15@melinda:~$ openssl s_client -connect localhost:30001
CONNECTED(00000003)
depth=0 CN = li190-250.members.linode.com
verify error:num=18:self signed certificate
verify return:1
depth=0 CN = li190-250.members.linode.com
verify return:1
---
Certificate chain
 0 s:/CN=li190-250.members.linode.com
   i:/CN=li190-250.members.linode.com
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIC3jCCAcagAwIBAgIJAI5QiWZw4YHbMA0GCSqGSIb3DQEBCwUAMCcxJTAjBgNV
BAMTHGxpMTkwLTI1MC5tZW1iZXJzLmxpbm9kZS5jb20wHhcNMTQxMTE0MTAyODA0
...
fGPFpuPCVqVPsruei8Z/iqn3bFIhQQdmumeePZQdPMwZSWHNVYC5XODd7PvNDrDu
5MZJjkz4+6LbwwAvyew62meFN2QEsYbK2Brtbhze+IjE27FGWlSw4K3jlwa409MD
MTf4JU41ELaYY8G/LSNDJsBVhhkHzvXR9iCbXxNz3IL0dQDNj7h4LKhBy0q7hvqg
kDzwlmBO4WKSmCAuky44cXmd
-----END CERTIFICATE-----
subject=/CN=li190-250.members.linode.com
issuer=/CN=li190-250.members.linode.com
---
No client certificate CA names sent
---
SSL handshake has read 1714 bytes and written 637 bytes
---
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : SSLv3
    Cipher    : DHE-RSA-AES256-SHA
    Session-ID: D3AABB4FE2E174F2652C17D3B277D9BDFD330B480714B34DBACA64DE6E64597F
    Session-ID-ctx:
    Master-Key: 72DF2AF677BBED1AF646B10C5DCEEACB206A5F0CD51E9708969AE175CC69440EE59EF3BBCAE2579E8EB677EB7BA78E0D
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time:<PHONE_NUMBER>
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)
---
```

It paused here, so like before I'm going to input the password of the current level giving me:

```sh
BfM**************************
HEARTBEATING
read R BLOCK
read:errno=0
bandit15@melinda:~$
```
There's the hint, which means we're getting close: HEARTBLEEDING, with some R BLOCK...

Running the same command above but with a additional flag to ignore.

```sh
bandit15@melinda:~$ openssl s_client -ign_eof -connect localhost:30001
.
.
.
.
Verify return code: 18 (self signed certificate)
---
BfM**************************
Correct!
cluFn7wTiGryunymYOu4RcffSxQluehd

read:errno=0
bandit15@melinda:~$
```

There we have it!

## Level 16 - 17

[Hint](http://overthewire.org/wargames/bandit/bandit17.html):

> The credentials for the next level can be retrieved by submitting the password of the current level to a port on localhost in the range 31000 to 32000. First find out which of these ports have a server listening on them. Then find out which of those speak SSL and which don’t. There is only 1 server that will give the next credentials, the others will simply send back to you whatever you send to it.

We can just blindly send every potin that range the current password but lets not get too crazy! So lets use `nmap` and it's reference can be found [here](https://nmap.org/book/man.html). Alright lets scan networks.

```sh
bandit16@melinda:~$ nmap -sV -p 31000-32000 localhost

Starting Nmap 6.40 ( http://nmap.org ) at 2016-08-18 05:12 UTC
Nmap scan report for localhost (<IP_ADDRESS>)
Host is up (0.00054s latency).
Not shown: 996 closed ports
PORT      STATE SERVICE     VERSION
31046/tcp open  echo
31518/tcp open  msdtc       Microsoft Distributed Transaction Coordinator (error)
31691/tcp open  echo
31790/tcp open  ssl/unknown
31960/tcp open  echo
1 service unrecognized despite returning data. If you know the service/version, please submit the

Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 92.45 seconds
```

```sh
bandit16@melinda:~$ openssl s_client -ign_eof -connect localhost:31790
CONNECTED(00000003)
depth=0 CN = li190-250.members.linode.com
verify error:num=18:self signed certificate
verify return:1
depth=0 CN = li190-250.members.linode.com
verify return:1
---
Certificate chain
 0 s:/CN=li190-250.members.linode.com
   i:/CN=li190-250.members.linode.com
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIC3jCCAcagAwIBAgIJAI5QiWZw4YHbMA0GCSqGSIb3DQEBCwUAMCcxJTAjBgNV
BAMTHGxpMTkwLTI1MC5tZW1iZXJzLmxpbm9kZS5jb20wHhcNMTQxMTE0MTAyODA0
...
AQCaZdUNAj8WDEKWdoU3LNXUBJlTJwiWBrh550PbHSQORcCz2K0kiMei1A4ojK2N
dMHFGAqAeUEaxtz92p2BoFpZasAtdSa3u63tBckFhfUolIS1TC7Cj51y19ysTeep
fGPFpuPCVqVPsruei8Z/iqn3bFIhQQdmumeePZQdPMwZSWHNVYC5XODd7PvNDrDu
5MZJjkz4+6LbwwAvyew62meFN2QEsYbK2Brtbhze+IjE27FGWlSw4K3jlwa409MD
MTf4JU41ELaYY8G/LSNDJsBVhhkHzvXR9iCbXxNz3IL0dQDNj7h4LKhBy0q7hvqg
kDzwlmBO4WKSmCAuky44cXmd
-----END CERTIFICATE-----
subject=/CN=li190-250.members.linode.com
issuer=/CN=li190-250.members.linode.com
---
No client certificate CA names sent
---
SSL handshake has read 1714 bytes and written 637 bytes
---
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : SSLv3
    Cipher    : DHE-RSA-AES256-SHA
    Session-ID: 7330F183D852D3BB3515F6E28656B4EFDA1B4720FF9347D34987263FB39D1B2E
    Session-ID-ctx:
    Master-Key: 8C313C2BECBDC7C28A6C72027AE4F9EEA66C798DD1B528F8A4B47456859B3D655EE95CB49E93174697431FEE751B62E6
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time:<PHONE_NUMBER>
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)
---
cluFn7wTiGryunymYOu4RcffSxQluehd
Correct!
<REDACTED_PRIVATE_KEY>
```

Wow, we got a key, lets make it and connect it the next level via ssh

```sh
bandit16@melinda:/tmp/jxn16$ nano key.private
bandit16@melinda:/tmp/jxn16$ chmod 600 key.private
bandit16@melinda:/tmp/jxn16$ ssh -i key.private bandit17@localhost
Could not create directory '/home/bandit16/.ssh'.
The authenticity of host 'localhost (<IP_ADDRESS>)' can't be established.
ECDSA key fingerprint is 05:3a:1c:25:35:0a:ed:2f:cd:87:1c:f6:fe:69:e4:f6.
Are you sure you want to continue connecting (yes/no)? yes
...
bandit17@melinda:~$ cat .bandit16.password
cluFn7wTiGryunymYOu4RcffSxQluehd
```

and there we have it, our next level!

## Level 17 - 18

[Hint](http://overthewire.org/wargames/bandit/bandit18.html):
> There are 2 files in the homedirectory: passwords.old and passwords.new. The password for the next level is in passwords.new and is the only line that has been changed between passwords.old and passwords.new
> Commands you may need to solve this level
> `cat`, `grep`, `ls`, `diff`

extension: markdown


text:
---
layout: post
title: GSOC sprint at Paris
tag:
    - GSOC
    - Python
---

Here we go, the PYTI sprint has started today. At the end of the sprint, we should have:

-   A functional task-manager.
-   Some simples tasks (build, install).
-   A VM manager able to launch something.
-   Dependencies computing.

I'm currently working on the task-manager that is close to be functional. In a near future, I'll make a post about how the task-manager works and how you can use it (it's already a draft!). If you want to follow the development, you can watch the PYTI repository: https://bitbucket.org/swamiyeswanth/pyti\_ and the task-manager repository: https://bitbucket.org/lothiraldan/pytasks\_.


text:
# Installation
> `npm install --save @types/utif`

# Summary
This package contains type definitions for utif (https://github.com/photopea/UTIF.js).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utif.

### Additional Details
 * Last updated: Fri, 15 May 2020 13:12:51 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
 * Global values: `UTIF`

# Credits
These definitions were written by [Jan Pesa](https://github.com/smajl), [Naveen Kumar Sangi](https://github.com/nkprince007), and [Massimiliano Caniparoli](https://github.com/massic80).


text:
# clean-tag

:warning:

**NO LONGER MAINTAINED**

If you're wanting to remove style props from HTML output, see [Emotion's `shouldForwardProp` API](https://emotion.sh/docs/styled#customizing-prop-forwarding)
or check the [open issue on styled-components][sc-issue].

---

Removes unwanted style props from the underlying HTML element when using styled-components.

If you see React warnings when using styled-components, this can help.

```sh
npm i clean-tag
```

Styled-components has a [long-standing issue][sc-issue] related to how it whitelists HTML attributes when parsing props.
The whitelist method will cause certain React props to be passed to the underlying HTML element if they happen to be a valid (often legacy) HTML attribute, such as `color` or `fontSize`.

```js
import styled from 'styled-components'
import { space, width, color } from 'styled-system'
import tag from 'clean-tag'

const Box = styled(tag)`
  ${space}
  ${width}
  ${color}
`

export default Box
```

```js
// custom HTML element on component definition
const Heading = styled(tag.h2)`
  ${fontSize}
  ${fontWeight}
  ${lineHeight}
  ${space}
  ${color}
`
```

## `is` prop

Changes the underlying HTML element per component instance.

```js
<Heading is='h1' />
```

## `omitProps` prop

Provide a custom list of prop keys to remove from the backing styled component.

The default list is based on Styled System's propType definitions.

```js
<Heading
  omitProps={[
    'fontSize',
    'color'
  ]}
/>
```

## `innerRef` prop

Pass the `innerRef` prop to the styled-component.

```js
<Heading
  innerRef={ref => this.heading = ref}
/>
```

MIT License

[sc-issue]: https://github.com/styled-components/styled-components/issues/439

repository: styled-system/extras

repo_name: styled-system/extras


text:
# SF COVID Chart
This project was an effort to relieve a small amount of my anxiety about local numbers of reported cases of COVID-19 in San Francisco.

## Installation
Requires `yarn` and `node`.
1. `yarn`
1. `yarn build`
Static files are served out of the `public/` directory.

## Scraping
There is a simple script that scrapes the latest data from the SF Department of Public Health website. https://www.sfdph.org/dph/alerts/coronavirus.asp
```
node scripts/scrape.mjs
```
This will update the relevant data file at `data/sf.json`. I recommend running this and `yarn build` in a cronjob.

repository: malectro/covid-chart

repo_name: malectro/covid-chart


text:
---
layout: default
title: A simple TCP proxy in Node.js
tags: tcp proxy node nodejs
comments: true
---
# A simple TCP proxy in Node.js

A TCP proxy built with Node.js, that may be used to access a service on another network, is available at [GitHub](https://github.com/tewarid/node-tcp-proxy).

It is an extensible replacement for socat when used thus

```bash
socat TCP-LISTEN:port1,fork TCP:host:port2
```

To achieve the same with node-tcp-proxy

```bash
tcpproxy  --proxyPort [port1] --serviceHost [host] --servicePort [port2]
```

To install node-tcp-proxy using npm

```bash
sudo npm install -g node-tcp-proxy
```

To create a proxy in your own code

```javascript
var proxy = require("node-tcp-proxy");
var newProxy = proxy.createProxy(8080, "hostname", 10080);
```

To end the proxy

```javascript
newProxy.end();
```

gha_language: Ruby


text:
# PHP Sentiment Analyzer

PHP Sentiment Analyzer is a lexicon and rule-based sentiment analysis tool that is used to understand sentiments in a sentence using VADER \(Valence Aware Dictionary and sentiment Reasoner\).

[![GitHub license](https://img.shields.io/github/license/davmixcool/php-sentiment-analyzer.svg)](https://github.com/davmixcool/php-sentiment-analyzer/blob/master/LICENSE) [![GitHub issues](https://img.shields.io/github/issues/davmixcool/php-sentiment-analyzer.svg)](https://github.com/davmixcool/php-sentiment-analyzer/issues) [![Stable](https://poser.pugx.org/davmixcool/php-sentiment-analyzer/v/stable.svg)](https://poser.pugx.org/davmixcool/php-sentiment-analyzer/v/stable.svg) [![Download](https://poser.pugx.org/davmixcool/php-sentiment-analyzer/d/total.svg)](https://poser.pugx.org/davmixcool/php-sentiment-analyzer/d/total.svg) [![Twitter](https://img.shields.io/twitter/url/https/github.com/davmixcool/php-sentiment-analyzer.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fdavmixcool%2Fphp-sentiment-analyzer)

## Features

* Text
* Emoticon
* Emoji

## Requirements

* PHP 5.5 and above

## Steps:

* [Install](./#install)
* [Usage](./#usage)
* [Stargazers](./#stargazers)
* [Forkers](./#forkers)
* [License](./#license)
* [Reference](./#reference)

### Install

**Composer**

Run the following to include this via Composer

```text
composer require davmixcool/php-sentiment-analyzer
```

### Simple Usage

```php
Use Sentiment\Analyzer;
$analyzer = new Analyzer();

$output_text = $analyzer->getSentiment("David is smart, handsome, and funny.");

$output_emoji = $analyzer->getSentiment("😁");

$output_text_with_emoji = $analyzer->getSentiment("Aproko doctor made me 🤣.");

print_r($output_text);
print_r($output_emoji);
print_r($output_text_with_emoji);
```

### Simple Outputs

```text
David is smart, handsome, and funny. ---------------- ['neg'=> 0.0, 'neu'=> 0.337, 'pos'=> 0.663, 'compound'=> 0.7096]

😁 ------------------- ['neg' => 0, 'neu' => 0.5, 'pos' => 0.5, 'compound' => 0.4588]

Aproko doctor made me 🤣 ------------- ['neg' => 0, 'neu' => 0.714, 'pos' =>  0.286, 'compound' => 0.4939]
```

### Advanced Usage

You can now dynamically update the VADER \(Valence\) lexicon on the fly for words that are not in the dictionary. See the Example below:

```php
Use Sentiment\Analyzer;

$sentiment = new Sentiment\Analyzer();

$strings = [
    'Weather today is rubbish',
    'This cake looks amazing',
    'His skills are mediocre',
    'He is very talented',
    'She is seemingly very agressive',
    'Marie was enthusiastic about the upcoming trip. Her brother was also passionate about her leaving - he would finally have the house for himself.',
    'To be or not to be?',
];

//new words not in the dictionary
$newWords = [
    'rubbish'=> '-1.5',
    'mediocre' => '-1.0',
    'agressive' => '-0.5'
];

//Dynamically update the dictionary with the new words
$sentiment->updateLexicon($newWords);

//Print results
foreach ($strings as $string) {
    // calculations:
    $scores = $sentiment->getSentiment($string);
    // output:
    echo "String: $string\n";
    print_r(json_encode($scores));
    echo "<br>";
}
```

### Advanced Outputs

```text
Weather today is rubbish  ------------- {"neg":0.455,"neu":0.545,"pos":0,"compound":-0.3612}

This cake looks amazing  ------------- {"neg":0,"neu":0.441,"pos":0.559,"compound":0.5859}

His skills are mediocre  ------------- {"neg":0.4,"neu":0.6,"pos":0,"compound":-0.25}

He is very talented  ------------- {"neg":0,"neu":0.457,"pos":0.543,"compound":0.552}

She is seemingly very agressive  ------------- {"neg":0.338,"neu":0.662,"pos":0,"compound":-0.2598}

Marie was enthusiastic about the upcoming trip. Her brother was also passionate about her leaving - he would finally have the house for himself.  ------------- {"neg":0,"neu":0.761,"pos":0.239,"compound":0.765}

String: To be or not to be?  ------------- {"neg":0,"neu":1,"pos":0,"compound":0}
```

### Stargazers

[![Stargazers repo roster for @davmixcool/php-sentiment-analyzer](https://reporoster.com/stars/davmixcool/php-sentiment-analyzer)](https://github.com/davmixcool/php-sentiment-analyzer/stargazers)

### Forkers

[![Forkers repo roster for @davmixcool/php-sentiment-analyzer](https://reporoster.com/forks/davmixcool/php-sentiment-analyzer)](https://github.com/davmixcool/php-sentiment-analyzer/network/members)

### License

This package is licensed under the [MIT license](https://github.com/davmixcool/php-sentiment-analyzer/blob/master/LICENSE).

### Reference

Hutto, C.J. & Gilbert, E.E. \(2014\). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media \(ICWSM-14\). Ann Arbor, MI, June 2014.

repository: davmixcool/php-sentiment-analyzer

gha_language: PHP

repo_name: davmixcool/php-sentiment-analyzer


text:
# usps

Example of calculating shipping rate for one package.

```go
package main

import (
	"encoding/xml"
	"fmt"
	"github.com/dougkirkley/usps"
	"github.com/dougkirkley/usps/rate"
	"log"
)

func main() {
	u := &usps.USPS{
		Username: "USERID",
	}
	rates := []rate.Request{
		{
			XMLName:        xml.Name{Local: "Package"},
			ID:             "1st",
			Service:        "PRIORITY",
			ZipOrigination: "21212",
			ZipDestination: "20759",
			Pounds:         "0",
			Ounces:         "12",
			Container:      "VARIABLE",
		},
	}
	cost, err := rate.NewRate(*u).Calculate(rates)
	if err != nil {
		log.Print(err)
	}
	fmt.Print(cost)
}
```

repository: dougkirkley/usps

repo_name: dougkirkley/usps


text:
#t-tor
Quickly torrent files through your terminal. This app uses magnetic links so make sure you have a torrent client set to defualt.

# Installation
`npm install t-tor`

# Usage
`t-tor [options] [search]`

# Options
leave options and search clear to list most popular torrents.

-a Audio

-v Video

-A Applications

-g Games

-p Porn

-o Other

Use any option or combination of options to narrow a search.
# Example
`t-tor -v avatar\ last\ airbender`

repository: shesmu/t-tor

repo_name: shesmu/t-tor


text:
# Release Notes

## Version 1.2.2

Patch release with updated examples.

## Version 1.2.1

Patch release with minor enhancements and bug fixes.

## Version 1.2.0

New analysis function `mdgenspec` and changed functionality and improvements in `mdsspec` and `mdspec`.

## Version 1.1.1

Version bump to use Makie 0.19. Bugs fixed in MDObjects.jl.

## Version 1.1.0

Version bump to use DescriptorSystems 1.3. The book examples have been enhanced and
extended with scripts to generate plots with CairoMakie.

## Version 1.0.1

Version bump to use Polynomials 3.0.

## Version 1.0.0

This major release concludes the development of the package, and includes updating of documentation and example scripts. A new function is provided for the evaluation of the weak structure matrix. A filter index selection option has been implemented in the synthesis functions `emdsyn` and `amdsyn`.

## Version 0.9.0

This minor release is breaking and relies on new and simpler definitions of the fault detection related objects. All constructors, synthesis functions and tests have been updated accordingly.

## Version 0.8.0

This minor release concludes the implementation of the functions for solving synthesis problems of
model detection filters and provides a new function for the solution of the approximate model detection problem and a new function for the evaluation of the noise gaps performance.

## Version 0.7.0

This minor release provides implementations of several basic model detection related objects and their constructors, jointly with functions to perform basic analysis and performance evaluation, as well as a function for the exact solution of synthesis problems of model detection filters.

## Version 0.6.0

This minor release concludes the implementation of the functions for solving synthesis problems of _fault detection and isolation_ (FDI) filters. This release provides a new function for the approximate model-matching based synthesis of FDI filters and three new functions for the evaluation of the model-matching performance. The presented examples in Chapters 5 and 7, and the case studies in Chapter 8 of the book
"[A. Varga, Solving Fault Diagnosis Problems, Linear Synthesis Techniques, Springer 2017](https://www.springer.com/us/book/9783319515588)", can be fully reproduced using the collection of scripts provided in the `src/Examples` directory.  This release relies on the new enhanced version `v1.2` of the [DescriptorSystems.jl](https://github.com/andreasvarga/DescriptorSystems.jl) package. Several tutorials have been prepared to complement the information available in the above book.

## Version 0.5.0

This minor release provides a new function for the model-matching based synthesis of fault detection and isolation filters and two new functions for the evaluation of the model-matching performance. The series coupling of a descriptor system model and fault detection objects of type `FDIModel` and `FDFilterIF`, as well as for the component-wise series coupling of a vector of descriptor system models and a fault detection object of type `FDIFilterIF` are now supported.

## Version 0.4.0

This minor release provides a new function for the approximate synthesis of fault detection and isolation filters and three new functions for the evaluation of the achieved fault-to-noise gap and model-matching performace. The functions of the DescriptorSystems package  `gminreal` and `gpole` have been extended to cover FDIFilter objects as well.

## Version 0.3.0

This minor release provides a new function for the approximate synthesis of fault detection filters and two new functions for the evaluation of the achieved fault-to-noise gap and model-matching performace. The functions of the DescriptorSystems package  `gbalmr`, `gminreal` and `gpole` have been extended to cover FDFilter objects as well.

## Version 0.2.0

This minor release provides several new functions to define FDI filter objects and associated constructors, functions for the generation of achievable specifications and for the assessment of feasibility of a set of specifications, a synthesis function for the exact solution of synthesis problems of fault detection and isolation filters, and functions for the performance analysis of FDI filters. The functionality of functions `fditspec` and `fdisspec` to evaluate strong structure matrices has been simplified.

## Version 0.1.0

This is the initial release providing prototype implementations of several basic fault detection related objects and their constructors, jointly with functions to perform basic performance analysis and for the exact solution of synthesis problems of fault detection filters.

gha_language: Julia


text:
# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.3](https://github.com/researchgate/emailonacid/compare/v4.0.2...v4.0.3) (2020-02-11)

**Note:** Version bump only for package @researchgate/emailonacid-proxy

# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/researchgate/emailonacid/compare/v4.0.1...v4.0.2) (2019-11-26)

### Bug Fixes

- **proxy:** Fix usage of async-sema
  ([3a3530f](https://github.com/researchgate/emailonacid/commit/3a3530f55760f6da693692e81549df37af26be45))

# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.1](https://github.com/researchgate/emailonacid/compare/v4.0.0...v4.0.1) (2019-11-26)

### Bug Fixes

- **license:** Correctly set license in repository and packages
  ([1089a8b](https://github.com/researchgate/emailonacid/commit/1089a8bba0a3e66c6a72c88843c30c58a8f4aebd))

# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [4.0.0](https://github.com/researchgate/emailonacid/compare/v3.9.3...v4.0.0) (2019-11-26)

### Bug Fixes

- **deps:** update dependency commander to v4
  ([#7](https://github.com/researchgate/emailonacid/issues/7))
  ([abb6bd2](https://github.com/researchgate/emailonacid/commit/abb6bd2c8b029d4a9bd3af1e8e67801744877545))
- Use correct package names internally
  ([ff25948](https://github.com/researchgate/emailonacid/commit/ff25948159856ee6dfffe10703e204b11a175138))

### Features

- Move packages into researchgate org
  ([4557558](https://github.com/researchgate/emailonacid/commit/45575589188d7972cf4db5172f4413c702dcbb9a))

### BREAKING CHANGES

- All package names changed and are now namepsaced in the `@researchgate/`
  organization.

## 3.9.3 (2019-05-29)

**Note:** Version bump only for package emailonacid-proxy

repository: researchgate/emailonacid

repo_name: researchgate/emailonacid


text:
**Christmas (Baby Please Come Home)双手简谱** 和五线谱完全对应。

_Christmas (Baby Please Come Home)_ 是Darlene Love演唱的歌曲，收录在其1963年发行的精选专辑A
Christmas Gift for You from Phil Spector中。Darlene Love
是美国R&B和流行摇滚女歌手，1938年7月26日出生于加州洛杉矶，她是1957年成立的女子声乐团体 The Blossoms 的创建人之一。

同时，网站还为大家提供了另一首圣诞歌曲《[ **Feliz Navidad-简单版**](Music-12431-Feliz-Navidad-简单版-
圣诞歌曲.html "Feliz Navidad-简单版")》曲谱下载

歌词下方是 _Christmas (Baby Please Come Home)钢琴谱_ ，大家可以免费下载学习。

### Christmas (Baby Please Come Home)歌词：

The snow's coming down
I'm watching it fall
Lots of people around
Baby please come home
The church bells in town
All singing in song
Full of happy sounds
Baby please come home
They're singing Deck The Halls
But it's not like Christmas at all
'Cause I remember when you were here
And all the fun we had last year
Pretty lights on the tree
I'm watching them shine
You should be here with me
Baby please come home
They're singing Deck The Halls
But it's not like Christmas at all
'Cause I remember when you were here
And all the fun we had last year
If there was a way
I'd hold back this tear
But it's Christmas day
Please
Please
Please
Please
Please
Please
Baby please come home
Baby please come home
Baby please come home
Baby please come home
Oh yeah
Baby please come home
Please come home

path: /流行/Christmas Baby Please Come Home-圣诞歌曲/README.md


text:
# Sublime Text Fill CF Query

A Sublime Text plugin that takes query statements in ColdFusion debug output
and fills in CFQUERYPARAMs.

## Example
As an example let's say you have a query in your ColdFusion page that outputs
debug info that looks like this.

```sql
SELECT
	someId
FROM someTable
WHERE
	someTable.a > ?
	AND someTable.active=1
	AND someTable.noteTypeName IN (?,?)

Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 10
Parameter #2(cf_sql_varchar) = Bob
Parameter #3(cf_sql_varchar) = Joe
```

Notice that each parameter in the query is represented by a question mark. Also
note that the actual parameter values are below the query.

If you have this plugin installed you can copy the query and parameters into
Sublime, select the text and press *CTRL + ALT + F* and the parameters will be
magically filled into the question marks. Ta da!

```sql
SELECT
	someId
FROM someTable
WHERE
	someTable.a > '10'
	AND someTable.active=1
	AND someTable.noteTypeName IN ('Bob','Jo')
```

## Change History
* 01/28/2014:
   * Selected text with no line feed at the end was causing the last character to be cut off. This has been addressed. #1
   * Addressed a Python 3/Sublime Text 3 compatability issue. #2

## License
The MIT License (MIT)
Copyright (c) 2013 Adam Presley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

repository: adampresley/sublime-fillcfquery

repo_name: adampresley/sublime-fillcfquery


text:
# wabom
Web App Based On Meteor. @copy toips

# prerequisites
- Meteor
  - windows - Download and Install [Meteor](https://www.meteor.com/)
  - linux/mac - curl https://install.meteor.com/ | sh

# get started

this project is generated by
[yeoman generator](https://github.com/ndxbxrme/generator-angular-meteor).

you can also refer to our wiki for more information.
https://github.com/toips/wabom/wiki

repository: Aciosty/wabom

repo_name: Aciosty/wabom


text:
# PRA-Net
The source code of PRA-Net.

#### Requirements

- CUDA >= 10
- python = 3.7
- pytorch = 1.2.0
- numpy = 1.16.4

#### DataSet

- Classification
  - Download [ModelNet40](https://shapenet.cs.stanford.edu/media/modelnet40_ply_hdf5_2048.zip), and unzip it to `data/modelnet40_ply_hdf5_2048`
  - Download dataset from [ScanObjectNN Projcet](https://hkust-vgd.github.io/scanobjectnn/), and unzip it to
    `data/h5_files`

#### Installation

- Before running the training script, you need to compile some customized torch operators.

  ~~~
  cd _ext-src
  python setup.py install
  ~~~

### Training

##### Classification

- To train a PR-Net model on the ScanObjectNN dataset:

  ~~~
  CUDA_VISIBLE_DEVICES=0 python train_cls.py --config cfg/ScanObjectNN_train_PRANet.yaml
  ~~~

Our code is mainly based on [DGCNN](https://github.com/WangYueFt/dgcnn), [ScanobjectNN](https://github.com/hkust-vgd/scanobjectnn)
and [RSCNN](https://github.com/Yochengliu/Relation-Shape-CNN), thanks for them!


text:
# PHPdock

Docker starter for PHP projects

## Requirements

```shell
$ docker --version
Docker version 20.10.17, build 100c701
$ docker-compose --version
Docker Compose version v2.6.1
```

## 101

```shell
$ ln -s ./.devcontainer/docker-compose.override.yml .
$ docker-compose build
$ docker-compose up --detach
$ docker-compose exec app bash -ce "
    composer install
    composer run-script build
    chown -R $(id -u):$(id -g) .
    composer run-script vulnerability-scan
    composer run-script format-check
    composer run-script lint-check
    composer run-script unit-tests
    composer run-script http-api-tests
  "
$ docker-compose exec app bash
```

Go to [http://<IP_ADDRESS>:38080](http://<IP_ADDRESS>:38080)

```shell
$ docker-compose down --remove-orphans
```

license: Unlicense

repository: damlys/phpdock

gha_language: Dockerfile

gha_license_id: Unlicense

repo_name: damlys/phpdock


text:
# Churn Analysis: BCG-Virtual-Experience-Program
Open Access Data Science and Advanced Analytics Virtual Experience Program built and endorsed by BCG on Forage

## Background
`<Company Name>` is a major gas and electricity utility that supplies to corporate, SME (Small & Medium Enterprise), and residential customers. The power-liberalization of the energy market in `<Country>` has led to significant customer churn, especially in the SME segment. They have partnered with BCG to help diagnose the source of churning SME customers.

![Power_generation](Images/power_gen.jpg)

### Client's Hypothesis
One of the hypotheses under consideration is that `churn` is driven by the `customers’ price sensitivities` and that it is possible to predict customers likely to churn using a predictive model. The client also wants to try a discounting strategy, with the head of the SME division suggesting that offering customers at high propensity to churn a 20% discount might be effective.

### Scope
The Lead Data Scientist (LDS) held an initial team meeting to discuss various hypotheses, including churn due to price sensitivity.
After discussion with your team, you have been asked to go deeper on the hypothesis that the churn is driven by the customers’ price sensitivities.

## Work Breakdown

* ### [Task-1](Task-1/Task-1-Email_to_LDS.docx):
  Formulate the hypothesis as a data science problem and lay out the major steps needed to test this hypothesis.
  Communicate thoughts and findings in an email to LDS, focusing on the potential data that is required from the client and analytical models you would use to test such a hypothesis.

* ### [Task-2](Task-2/Task_2_EDA_and_Data_Cleaning.ipynb):
  Perform some exploratory data analysis. Look into the data types, data statistics, and identify any missing data or null values, and how often they appear in the data.

  Visualize specific parameters as well as variable distributions.

  Clean the data – address missing values, duplicates, data type conversions, transformations, and multicolinearity, as well as outliers.

  [Data Columns description](Task-2/data-description.pdf) can be found here.

* ### [Task-3](Task-3/Task_3_Feature_Engineering.ipynb):
  Feature Engineering: Brainstorm and build out features to uncover signals in the data that could inform the churn model.

* ### [Task-4]():
  Build churn model(s) to try to predict the churn probability of any customer, taking into account all the explanatory variables constructed in the feature engineering process.

  Evaluate the selected model, using a holdout set, and with metrics sensible for this business case.

  Interpret the results and use them to formulate your answers to the client’s hypotheses and questions

## Copyright
![Forage](Images/Forage_Logo_Icon.png) © 2020. All Rights Reserved.


text:
# snck

Lightweight shell.

## Install

To install the `snck` application, you must compile from source and copy the
generated executable to a folder that is within `PATH` enumeration.

```
git clone http://github.com/fboucher9/snck
make
sudo cp snck /bin
echo '/bin/snck' | sudo tee -a /etc/shells
chsh -s /bin/snck
```

## Usage

```
snck [options]
```

*-c*

execute command

*-x*

trace

*-l*

execute login script

*-s*

read commands from standard input

*-i*

interactive

*-n*

dry run

## Builtins

*cd*

*set*

*unset*

*shell*


text:
---
layout: default
---

# One-lightenment: one-line enlightenments (personal ones & ones I have learned from others)
- Caveat Emptor: some enlightenments might not be a one-liner; it might be more than one line, or less than one.

### 2023
#### January
- (Vladimir Lenin) All extremes are bad.
	* The idea of balance appealed to many philosophers, both eastern and western ones. See the [Confucian school of thought](https://en.wikipedia.org/wiki/Doctrine_of_the_Mean) and [Aristotle's Ethics of "The Golden Mean"](https://plato.stanford.edu/entries/aristotle-ethics/)

- (Sartre) 'Happiness is not doing what you want but wanting what you do.'

### 2022
#### December
- The less you are known to the world, the more you can do.

- (Richard Feynman) I would rather have questions that can't be answered than answers that can't be questioned.

- (Unknown) Be careful what you wish for, because you may get it.
	* I'd like to attribute this to St. Augustine, but it could be that many saints and non-saints shared this noble thought.

### Pre-2020s
- (Unknown) "For sale: Baby shoes. Never worn."
	* Popularly attributed to Ernest Hemingway, but the exact attribution is unknown.

- Everything is a social construct! (joke among sociologists)

- (Homeomorphism) https://en.wikipedia.org/wiki/Homeomorphism. A coffee mug and a donut are, homeomorphically, the same!
	* A mind-blowing realization I had in real analysis class.


text:
<!-- TITLE: Guide: External Access to VxFs for Experimenters -->
<!-- SUBTITLE: A quick summary of operations -->

# Guide: External Access to VxFs for Experimenters
Prior step to this guide is to request the VPN credentials via the ticketing tool, as stated in [5GinFIRE Experimentation Tutorial](http://wiki.5ginfire.eu/5-gin-fire-experimentation-tutorial)

Also, you need to have created your VNFs with specific interfaces destined to connect to the 5GinFIRE management plane. In 5GinFIRE, this management plane is decoupled from the data plane, and therefore demands additional interfaces.

## Windows OS
Download and install [OpenVPN client](https://openvpn.net/index.php/download/community-downloads.html) for Windows

![OpenVPN client download](/uploads/external-access-for-experimenters/openvpndownload.png "OpenVPN client download")

As a response to the Bugzilla ticket, you will receive an OpenVPN Config File (filename.ovpn) and the appropriate VPN credentials. Copy the file into the "ProgramFiles/OpenVPN/config" directory

![OpenVPN Config File location](/uploads/external-access-for-experimenters/openvpnconfigfile.png "OpenVPN Config File location")

Run “OpenVPN GUI” application (via Windows desktop icon, or “ProgramFiles/OpenVPN/bin/openvpn-gui”), click on the up arrow (for hidden icons) in the Windows notification area (step 1 in figure), and then right-click on the OpenVPN GUI hidden icon (step 2). Finally, click “connect”

![Run OpenVPN](/uploads/external-access-for-experimenters/openvpnrun.png "Run OpenVPN")

![OpenVPN Connect](/uploads/external-access-for-experimenters/openvpnconnect.png "OpenVPN Connect")

Insert your VPN credentials and click OK

![OpenVPN Credentials](/uploads/external-access-for-experimenters/openvpncredentials.png "OpenVPN Credentials")

Once connected, you can establish an SSH connection to the gateway (or jump machine): <IP_ADDRESS>, using its credentials (for security reasons you should ask your Mentor for the credentials)

![SSH to Jump Machine](/uploads/external-access-for-experimenters/jumpmachinessh.png "SSH to Jump Machine")

![Jump Machine Credentials](/uploads/external-access-for-experimenters/jumpmachinecredentials.png "Jump Machine Credentials")

Finally, from the jump machine you will be able to SSH your own VxFs, with your own credentials. Command will be “ssh [dest-IP]”, where [dest-IP] will be one of those assigned to your VxFs in the 5GinFIRE management network

![SSH to VxF](/uploads/external-access-for-experimenters/vxfssh.png "SSH to VxF")


text:
---
author<EMAIL_ADDRESS>comments: true
date: 2006-07-16 14:13:58+00:00
layout: post
slug: self-hosting-subversion-configuration
title: Self-hosting Subversion Configuration
wordpress_id: 65
categories:
- programming
---

How to configure [Subversion](http://subversion.tigris.org/) with Subversion: check out the configuration files, and have subversion automatically use the latest commited version. You do not need to have access to the repository server any more, just a subversion client and a text editor is enough. If you need to change access rights and users regularly, this can be a huge time saver.

With a bit of trickery it is possible to make the subversion configuration self-hosting, this is how it can be done:

1. First, you have to import your current subversion configuration into subversion itself. Create a folder `/admin/subversion` in your repository, check it out, copy over your repositories `conf` and `hooks` directory, and add them. Now your repositories directory layout should look somewhat like this:

   ```
   /admin/subversion/conf/svnauth
   /admin/subversion/conf/svnusers
   /admin/subversion/hooks/post-commit.tmpl
   /admin/subversion/hooks/post-revprop-change.tmpl
   ...
   ```

1. Whenever you commit something to Subversion, you have to automatically update your configuration in case you have changed it. This is possible with the Subversion's hooks. In your checked out hooks directory, create a file `post-commit`.

1. In this example I am using `/var/svn` as the repository location, so you have to change this to wherever your repository is located.

   Copy this into the file post-commit:

   ```bash
   #!/bin/sh
   # WARNING this file has to have LF as linefeed (and NOT CR+LF)
   # otherwise updating won't work!
   svn up /var/svn/hooks
   svn up /var/svn/conf
   ```

1. Add `post-commit` to subversion, but don't forget to do this:

   Give it the executable property, or otherwise it won't be executed.

   Whatever text editor you are using, the line ending has to be LF. In Windows CR+LF is the standard, so you might have to convert it. I use the [Scite editor](http://www.scintilla.org/SciTE.html) which can do this quite easily.

1. Now you can try to bootstrap the whole process. On your repository server check out the configuration using the local access method, e.g. execute something like this:

   ```bash
   svn co /var/svn/admin/subversion
   ```

   Backup your original `conf` and `hooks` directory from the repository, and move over the checked out directories.

1. Give all your files the correct permissions, e.g. if you usually use the web access change it to apache:

   ```bash
   chown -Rvf apache:apache conf hooks
   ```

   Be aware that when you commit something using the local access method, the owner any created files will be your local user and not apache. So if you did this you should execute `chown -Rvf apache:apache *` to correct the whole repository.

1. Now you should be able to check out your subversion configuration, and have it automatically updated on commit. The first thing you might want to try is to restrict access to the admin directory to only the subversion administrators, and see if the configuration has updated on the server. If that was successful, you are all clear!

This works perfectly for Subversion 1.1.4. If you have any further questions, please post them!


text:
# stock market prediction

## Developing guide:

### 1. download the repository:
```console
$ git clone https://github.com/aalarifi2016/stock_market_prediction.git
```
### 2. Install the requirements:
```console
$ pip install -r requirements.txt
```
### 3. migrate:
every time you change the code, you should use this command:
```console
$ python3 manage.py makemigration
$ python3 manage.py migrate
```

### 4. run server:

```console
$ python3 manage.py runserver
```

### 5. create a new app:
to create a new app, you have to use the command below. remember that a new app means a new module or component in the project.
```console
$ python3 manage.py startapp your_app
```


text:
# Plex Installation Notes

## Public Port

- The LAN port used by Plex (32400) is hardcoded and cannot be changed. Because of this do not change the port in the Plex app config from 32400. If you need to run Plex on a different public port you will need to setup port forwarding on a router from the public port to 32400 on your server IP. You will also need to change the public port in the remote access section of Plex settings.

## Transcode Folder

- By default the Plex transcode folder is not configured. The recommend setup is emptyDir.

:::danger Memory Requirements

Please be aware of memory requirements if you memory for emptyDir.
Plex transcode storage requirement is size of file being transcoded + 100MB per simultaneous stream.

Keep in mind that emptyDir's memory counts against the resources defined.

:::

1. Under Additional App Storage click add.
2. Setup either a Disk Transcode or Memory Transcode as shown below.

### Disk Transcode

![disk-transcode](./img/plex-disk-transcode.png)

### Memory Transcode

![memory-transcode](./img/plex-memory-transcode.png)

## Require HTTPS

![Plex App Config](img/Plex-App-Config.png)

- This option cannot be enabled until initial plex setup is complete and remote access is enabled and functioning as shown below.

![remote access](./img/plex-remote-access.png)

repository: mcowger/charts

repo_name: mcowger/charts


text:
---
date: 2013-03-13 00:42:20+00:00
slug: maui-of-the-mind
title: Maui of the mind
---

I recently read a newsletter from a writer who flew off to this tropical paradise to relax and soak up some sun. She claimed that this getaway really helped her writing - whenever it rains (and in Vancouver, it does - a lot), she closes her eyes and remembers the warmth of the sun on her face. Energized, she then writes with new vigour.

Great idea, but what if you can't afford it? How do you get to the "happy place" in your mind? What does it look like? It's all a matter of perspective. When I was in Costa Rica a long while back, I met this young guy who said he wanted to move to Canada because there was too much sand in Costa Rica. Too much sand. It gets into everything, you know.

And if you're stressed out,  I find that conjuring up some mirage of paradise doesn't really help. Dreaming about an empty beach works for a few seconds, but if you think about it, your happiest memories probably weren't on that beach.

When I tried out a yoga class once (my work was offering it, so I gave it a shot), I didn't find the downward dogs or whatever that transformative. But at one point, our instructor had us curled up in a foetal position on our yoga mats and she told us to close our eyes and think about a time when we had a good laugh with a loved one. The thought of that human moment was more invigorating than our awkward posing.

Also, I kind of like the rain.

repository: wordbit/wordbit

repo_name: wordbit/wordbit


text:
# Expresso

This is my personal project template for single page web applications on Nodejs running with Express and Mongo.
I've used this for a while to speed start some web project so it's better off here.

## The Setup

This Structure/Template project works for RESTful API web applications in mind since it let's you setup RESTful and Custom endpoint with ease.

It also let's static files be served either by endpoint or on a public folder, just in case.

## Usage

- server/config/config.json

Every important info used around the application should go here, the object is seperated into environments that you define (even thought it expects development as defuault), and according to the environment dictated on server the resulting config object will be available across the whole application through Express Locals (aka. App.locals).

- Server.js

Server.js is practically the "main" of the project itself, it basically just initialize everything needed by the Express + Mongo Application.

- app/

The app folder is the default folder for everything that will be needed on the frontend side of the application (Whatever framework used to power the frontend), it is placed here to maintain the brunch default order (since brunch is awesome and simple to use)

- server/

The server folder just holds everything needed by the server itself, from the controllers to the models schemas, its here just to separate backend from frontend properly

- server/config/routes.js

Define all your routes here in a Rails style; you can define route with handling function or 'Controller#Function' style handler; only the resource option(function) maps CRUD actions to a controllers based on the respectives model's name or if the controller/functions needed are missing map the CRUD actions to basic default managing functions.
You can also use 'ony' and 'except' array parameter to modify the generated resource endpoints.

- server/models/schema

Define all your database schema here, object by object, it accepts all restrictions and options for a Mongo database setup.

- server/controllers/

All your controllers for resources should be here, everyone of them should start with a capital letter and end with Controller or else the resource would not detect it
and the application will used a generic controller to handle the request.

- server/controllers/ApplicationController.js, server/config/plugger.js & server/models/models.js

Are files used by the application to setup.

## To Start
To Start the application after setting up all the required files you just need to:
```
npm install
bower install
brunch build
node server.js
```

### For Technologies

1. NodeJS
2. Express
3. MongoDB
4. Bower
5. Brunch

### Notice

Let me know if it is broken, create a pull request in that case. :)

### License

MIT

repository: carlo-ev/expresso

repo_name: carlo-ev/expresso


text:
# Data

This folder contains the data used for the analysis.

## Data Files

 * [`CaseStudy2-data_train.csv`](https://github.com/sjmiller8182/AttritionAnalysis/blob/master/analysis/data/CaseStudy2-data_train.csv): A complete set of data. The analysis is performed on this dataset.
 * [`CaseStudy2CompSetNoAttrition_test.csv`](https://github.com/sjmiller8182/AttritionAnalysis/blob/master/analysis/data/CaseStudy2CompSetNoAttrition_test.csv): A set of data with the response (attrition) removed. This set will be used by an external pary to access the provided model for predicting attrition.
 * [`CaseStudy2CompSetNoSalary_test.csv`](https://github.com/sjmiller8182/AttritionAnalysis/blob/master/analysis/data/CaseStudy2CompSetNoSalary_test.csv): A set of data with the response (salary) removed. This set will be used by an external pary to access the provided model for predicting attrition.

## Features

### Summary

There are three types of variables in this data set: factor, continuous, and stationary. The types of variables are listed below.

#### Factor Variables

* Attrition  (response variable)
* BusinessTravel
* Department
* Education
* EducationField
* EmployeeNumber
* EnvironmentSatisfaction
* Gender
* JobInvolvement
* JobLevel
* JobRole
* JobSatisfaction
* MaritalStatus
* Overtime
* PerformanceRating
* RelationshipSatisfaction
* StockOptionLevel
* WorkLifeBalance

#### Continuous Variables

* DailyRate
* DistanceFromHome
* Age
* HourlyRate
* MonthlyIncome (response variable)
* MonthlyRate
* NumCompaniesWorked
* PercentSalaryHike
* TotalWorkingYears
* TrainingTimesLastYear
* YearsAtCompany
* YearsInCurrentRole
* YearsSinceLastPromotion
* YearsWithCurrManager

#### Stationary Variables (Single Valued)

* EmployeeCount
* Over18
* StandardHours

### Details

**ID**: Row ID (integer)

**Age**: Employee age (integer)

**Attrition**: If employee left company; response variable (factor)

**BusinessTravel**: Frequeny of travel associated with employee's job (factor)

* Travel_Rarely
* Travel_Frequently
* Non-Travel

**DailyRate**: Unknown numeric value (integer)

**Department**: Department where employee works (factor)

**DistanceFromHome**: Some measurement of distance employee commutes from home (integer)

**Education**: Unknown measurement of education, likely a level (factor)

* 5
* 4
* 3
* 2
* 1

**EducationField**: Field of education (factor)

* Life Sciences
* Medical
* Marketing
* Technical Degree
* Other
* Human Resources

**EmployeeCount**: Number of employees in observation; always 1 (integer)

**EmployeeNumber**: Employee ID number (factor)

**EnvironmentSatisfaction**: Employee's satisfaction with environment (factor)

* 4
* 3
* 2
* 1

**Gender**: Employee gender (factor)

* Male
* Female

**HourlyRate**: Unknown numeric value (integer)

**JobInvolvement**: Measurement of employee job involvement (factor)

* 4
* 3
* 2
* 1

**JobLevel**: Seniority of employee's position (factor)

* 5
* 4
* 3
* 2
* 1

**JobRole**: Role of position (factor)

* Sales Executive
* Research Director
* Manufacturing Director
* Research Scientist
* Sales Representative
* Healthcare Representative
* Manager
* Human Resources
* Laboratory Technician

**JobSatisfaction**: Measurement of job satisfaction (factor)

* 4
* 3
* 2
* 1

**MaritalStatus**: Employee marital status (factor)

* Divorced
* Single
* Married

**MonthlyIncome**: Employee's monthly income (integer)

**MonthlyRate**: Unknown numeric value (integer)

**NumCompaniesWorked**: Number of companies employee previously worked for (integer)

**Over18**: If employee is over 18; always 'Yes'

**OverTime**: Indicator of whether employee works overtime (factor)

* No
* Yes

**PercentSalaryHike**: Percent increase in salary (integer)

**PerformanceRating**: Measurement of employee performance (factor)

* 3
* 4

**RelationshipSatisfaction**: Measurement of employee relationship satisfaction (factor)

* 4
* 3
* 2
* 1

**StandardHours**: Standard working hours; always 80

**StockOptionLevel**: Level of stock options granted to employees (factor)

* 3
* 2
* 1
* 0

**TotalWorkingYears**: Employee's number of working years (integer)

**TrainingTimesLastYear**: Measurement of employee's training times in the previous year (integer)

**WorkLifeBalance**: Measurement of employee's work-life balance (factor)

* 4
* 3
* 2
* 1

**YearsAtCompany**: Years of experience at this company (integer)

**YearsInCurrentRole**: Year of experience in current role (integer)

**YearsSinceLastPromotion**: Number of years since last promotion (integer)

**YearsWithCurrManager**: Number of years working for current manager (integer)


text:
# java2 lab

### Objective
* copy project into your own repo
* complete methods so all unit tests pass

### Run all tests
```
mvn test
```

### Run single test
```
mvn test -Dtest=LabTest#testFibonacci
```

### Topics
* Recursion
* Advanced logic

gha_language: Java


text:
# training-assistant
**Preparing running sessions made easy ✨**

This react app will help you predict the stats of your next running session according to the steps you define. Helpful when you're following a coaching program and don't really know how far and how long it is gonna take.

Built with create-react-app, redux, and emotion/styled.

[Go to live demo](https://caguy.github.io/training-assistant)

repository: caguy/training-assistant

repo_name: caguy/training-assistant


text:
# Chainake
A snake game written with rust.

![screenshot](./chainake.png)

**NOTE:** UNDER DEVELOPMENT, Not even an alpha.

## Keymap
| Keys           | Function              | Description  |
| ------------- | ---------------------- | ----- |
| 'q', 'esc'    | Quit                   | Quits from the game. |
| 'space'       | Start, Restart, Resume | Starts , restarts or resumes the game. |
| 'up', 'w'     | Up                     | Snake starts to go up direction. |
| 'down', 's'   | Down                   | Snake starts to go down direction. |
| 'left', 'a'   | Left                   | Snake starts to go left direction. |
| 'right', 'd'  | Right                  | Snake starts to go right direction. |

## Techs
* [**Termion**](https://github.com/ticki/termion) for terminal manipulation **(UI)**.

## Installation
 1. Download and install **Rust** from [here](https://www.rust-lang.org/en-US/downloads.html)
 2. Download and install **Cargo** from [here](http://doc.crates.io/)
 3. Clone and run the project.

```bash
git clone https://github.com/serayuzgur/chainake.git
cd chainake
cargo run
```

## License

The MIT License (MIT) Copyright (c) 2018 Seray Uzgur

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

repository: iCodeIN/chainake

repo_name: iCodeIN/chainake


text:
# Slot: gene_to_gene_product_relationship_subject

URI: [biolink:gene_to_gene_product_relationship_subject](https://w3id.org/biolink/vocab/gene_to_gene_product_relationship_subject)

## Domain and Range

[GeneToGeneProductRelationship](GeneToGeneProductRelationship.md) ->  REQ [Gene](Gene.md)

## Parents

 *  is_a: [sequence feature relationship➞subject](sequence_feature_relationship_subject.md)

## Children

## Used by

 * [GeneToGeneProductRelationship](GeneToGeneProductRelationship.md)

repository: biolink/biolinkml

repo_name: biolink/biolinkml


text:
# xcal

ical and jcal utilities as well as support for yaml

## Background

This work started while adding config to a tornado based web site.
yaml had been chosen for the config format and there was a requirement to add
scheduling information into the config. Rather than use a custom scheduling
definition I looked at iCalendar whilst looking at this I also came across
jcal (RFC 7265), ical represented as json. Conversion from json to yaml is
straight forawrd in python so it made sense to look at the chain::

    ical <--> icalendar <--> jcal <--> yaml

## References

* [RFC 5545](http://tools.ietf.org/html/rfc5545)
* [RFC 6321](http://tools.ietf.org/html/rfc6321)
* [RFC 5350](http://tools.ietf.org/html/rfc6350)
* [RFC 6868](http://tools.ietf.org/html/rfc6868)
* [RFC 7529](http://tools.ietf.org/html/rfc7529) (supercedes: [RFC 7265](http://tools.ietf.org/html/rfc7265))

repository: JasonCozens/CalTools

repo_name: JasonCozens/CalTools


text:
This project is sample Food Delivery App use case using Spring Boot for Altimetrik Assignment

As of now I implemented only create food option, in future will add all the methods as required by assignment

Before doing all below steps just open Mysql console and create databse as : altimetrik_delivery_app ascmentioned in application.properties file using below command:
mysql>create database altimetrik_delivery_app;

Now follow below steps:

STEP 1.run the spring-boot app

STEP 2. Go to Post Man and select Post Method and paste below url to test food-controller method createFood
http://localhost:8080/food-boot/foods

STEP 3. In post man select Body, select raw, select JSON(application/json):

STEP 4. Put below contents under body

{
  "foodCategory": "veg",
  "foodName": "paneer",
  "foodPrice": 100
}

STEP 5. Hit send but, you will receive below response with Status as 200 OK

<FoodDetailsResponse>
    <foodId>9N3vmnZ8zB6g1N2ElLI13RZPTC7o6t</foodId>
    <foodName>paneer</foodName>
    <foodPrice>100.0</foodPrice>
    <foodCategory>veg</foodCategory>
</FoodDetailsResponse>


text:
---
title: Upgrade
lang: en
---

# Upgrade

The upgrade module needs to be reinstalled according to the instructions in [Installation Guide](/guide/installation.md).

## Upgrade from 5.x.x to 6.x.x

1. Create a new empty file named `advanced` in the rules directory.

2. If the directive `waf_priority` is used, you can delete it or modify it according to the directive in the documentation.


text:
---
layout: post
title: "Artistic Enhancement and Style Transfer of Image Edges using Directional Pseudo-coloring"
date: 2019-06-19 09:12:06
categories: arXiv_CV
tags: arXiv_CV Style_Transfer
author: Shouvik Mani
mathjax: true
---

* content
{:toc}

##### Abstract
Computing the gradient of an image is a common step in computer vision pipelines. The image gradient quantifies the magnitude and direction of edges in an image and is used in creating features for downstream machine learning tasks. Typically, the image gradient is represented as a grayscale image. This paper introduces directional pseudo-coloring, an approach to color the image gradient in a deliberate and coherent manner. By pseudo-coloring the image gradient magnitude with the image gradient direction, we can enhance the visual quality of image edges and achieve an artistic transformation of the original image. Additionally, we present a simple style transfer pipeline which learns a color map from a style image and then applies that color map to color the edges of a content image through the directional pseudo-coloring technique. Code for the algorithms and experiments is available at https://github.com/shouvikmani/edge-colorizer.

##### Abstract (translated by Google)

##### URL
[http://arxiv.org/abs/1906.07981](http://arxiv.org/abs/1906.07981)

##### PDF
[http://arxiv.org/pdf/1906.07981](http://arxiv.org/pdf/1906.07981)


text:
---
layout: default
---

# 1994-09-20 - Re: On the crime bill and remailers

## Header Data

From<EMAIL_ADDRESS>(Robert Hettinga)

To<EMAIL_ADDRESS>Message Hash: ba54bf04f25cd8484eb6f47a7218f5599d75833f164dd6181a334c7eaef5a741

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1994-09-20 12:16:15 UTC

Raw Date: Tue, 20 Sep 94 05:16:15 PDT

## Raw message

```
{% raw  %}From<EMAIL_ADDRESS>(Robert Hettinga)
Date: Tue, 20 Sep 94 05:16:15 PDT
To<EMAIL_ADDRESS>Subject: Re: On the crime bill and remailers
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

At  8:29 PM 9/19/94 -0700, Anonymous wrote:

>(As for others who are as quick to damn as to praise...watch your
>cholestorol!)

Ah. Yes. Well. I seem to have been fried, now. <hyuk!>

I'd better stand back a bit. This looks like it's going to be interesting.
I may even learn something...

>SOLONg

Cheers,
Bob Hettinga

-----------------
Robert Hettinga<EMAIL_ADDRESS>"There is no difference between someone
Shipwright Development Corporation     who eats too little and sees Heaven and
44 Farquhar Street                       someone who drinks too much and sees
Boston, MA 02331 USA                       snakes." -- Bertrand Russell
(617) 323-7923

{% endraw %}
```

## Thread

+ Return to [September 1994](/archive/1994/09)

+ Return to<EMAIL_ADDRESS>(Robert Hettinga)](/authors/rah_at_shipwright_com_robert_hettinga_)"

+ 1994-09-20 (Tue, 20 Sep 94 05:16:15 PDT) - Re: On the crime bill and remailers -<EMAIL_ADDRESS>(Robert Hettinga)_


text:
RecordReplay planner nodes {#recordreplay-planner-nodes}
==========================

# Purpose / Use cases

This package provides a ROS2 node for the computational package `recordreplay_planner`. This is done to
separate the computation part from the ROS2-specific part. See the computational part for a rationale of what
the functionality is to be used for.

# Design

This is a wrapper around `recordreplay_planner`. Its behavior can be controlled via actions. It can record
the ego state of the vehicle and play back a set of recorded states at a later time. It does stop for obstacles,
from `BoundingBoxArray`, publsihed in any `tf` frame that can transform to `VehicleKinematicState`'s frame.

## Assumptions / Known limits

This node assumes that the recorded states can be played back without any `tf` changes. There is an open issue
in https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto/issues/265 to address this limitation.

See the `recordreplay_planner` design documentation for more details.

## Inputs / Outputs / API

Actions:

This node uses two actions to control its behavior:

* `RecordTrajectory.action` is used to record a trajectory. It runs until canceled. While the action is
  running, the node subscribes to a `VehicleKinematicState.msg` topic by a provided name and records all
  states that are published on that topic.
* `ReplayTrajectory.action` is used to replay a trajectory. It runs until canceled. While the action is
  running, the node subscribes to the same `VehicleKinematicState.msg` topic as when recording. When messages
  are published on that topic, the node publishes a trajectory starting approximately at that point (see the
  `recordreplay_planner` design documentation on how that point is determined).

The actions are defined in `autoware_auto_msgs`.

Inputs:

* `autoware_auto_msgs/msg/VehicleKinematicState` is the state used as recorded points for replaym, and also to prune starting point of replay trajectory
* `autoware_auto_msgs/msg/BoundingBoxArray` is list of bounding boxes of obstacle, that thre reaply trajectory stops for to avoid collision.

Outputs:

* `autoware_auto_msgs/msg/Trajectory` is the trajectory that gets published

## Complexity

See `recordreplay_planner`.

# Security considerations

TBD by a security specialist.

# Future extensions / Unimplemented parts

* Proper `tf` support

# Related issues

* #265 Extension to support `tf` properly
* #273 Fix and extend integration tests

repository: bytetok/vde

repo_name: bytetok/vde


text:
---
title: "Mindfulness"
date: 2021-08-28T22:59:37-04:00
tags:
- sapling
---

What do I do when I am stressed or overcome with anxiety about the future? What about a terrible decision I feel like I've made or some [failure](posts/a-failure-resume.md)?

I've found regular mindfulness sessions to be extremely helpful in easing my 'always-overthinking' brain.

Related: how can we be more [digitally mindful?](thoughts/digital%20mindfulness.md)

## Self-guided Mindfulness
I've tried guided [[thoughts/meditation|meditations]] like the ones on YouTube and Headspace and such but find they don't work super well for me. I really like being intentional with what I want out of the meditation session and I find it helps me focus and stay present. Here is the process I find works best for me:

1.  Start with focusing on breathing and bodily sensations. Are you comfortable? Is your head clear? Is your breath and heartbeat regular and relaxed?
2. Ask an additional level of 'why's if anything feels out of the ordinary. Reflect on life situation + most current feelings.

Then, if I am feeling stressed/anxious about anything in particular:
1. Perspective and timescales. How will current events play out a month from now? A year? A decade?
2. What doors can this open? We can choose to believe everything happens for a reason when looking back on it. Everything will play out regardless of what failures happens your way. The best I can do is make the most of my hand and make that the best possible future.

Or if things are going well:
1. What is going well right now?
2. Who am I grateful for?
3. What was beautiful today?

## Designing for busy-by-default
[Source: Fools and their time metaphors by *Aaron Z. Lewis*](https://aaronzlewis.com/blog/2019/02/11/fools-and-their-time-metaphors/)

"The subjective quality of time—how it feels from the inside—is missing entirely. If the idea of a “subjective calendar” sounds too far-out, consider the [alternative maps](https://www.theatlantic.com/entertainment/archive/2011/05/human-cartography-maps-that-define-the-mind/238416/) made by creative cartographers. They add new meaning by distorting conventional representations of geography. Why can’t our calendars follow suit?"

See also: [desire paths](thoughts/desire%20paths.md)

branch_name: refs/heads/hugo

gha_language: SCSS


text:
# algorithms
algorithm collection

## Leetcode
| #  | Title | Solution | Difficulty |
|:--:| ----- | :------: | ---------- |
| 3  | [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/#/description) | [C++](./leetcode/3.cpp) | Medium |
| 5  | [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/#/description) | [C++](/leetcode/5.cpp) | Medium|
| 6  | [ZigZag Conversion](https://leetcode.com/problems/zigzag-conversion/#/description) | [C++](./leetcode/6.cpp) | Medium |
| 7  | [Reverse Integer](https://leetcode.com/problems/reverse-integer/#/description) | [C++](./leetcode/7.cpp) | Easy |
| 8  | [atoi](https://oj.leetcode.com/problems/string-to-integer-atoi/) | [C++](./leetcode/8.cpp) | Easy |
| 9  | [Palindrome Number](https://leetcode.com/problems/palindrome-number/#/description) | [C++](./leetcode/9.cpp) | Easy |
| 11 | [Container With Most Water](https://leetcode.com/problems/container-with-most-water/#/description) | [C++](./leetcode/11.cpp) | Medium |
| 12 | [Integer to Roman](https://leetcode.com/problems/integer-to-roman/#/description) | [C++](./leetcode/12.cpp) | Easy |
| 13 | [Roman to Integer](https://leetcode.com/problems/roman-to-integer/#/description) | [C++](./leetcode/13.cpp) | Easy |
| 14 | [Longest common prefix](https://leetcode.com/problems/longest-common-prefix/#/description) | [C++](./leetcode/14.cpp) | Easy |
| 17 | [Letter combination of a phone number](https://leetcode.com/problems/letter-combinations-of-a-phone-number/#/description) | [C++](./leetcode/17.cpp) | Medium |

## Codeforces
| #  | Title | Solution | Tag |
|----| ----- | -------- | --- |
| 1A | [Theatre Square](http://codeforces.com/problemset/problem/1/A) | [C++](./cf/1A.cpp) | math |
| 1B | [Spread Sheet](http://codeforces.com/problemset/problem/1/B) | [C++](./cf/1B.cpp) | math, implementation |
| 2A | [Winner](http://codeforces.com/problemset/problem/2/A) | [C++](./cf/2A.cpp) | hashing, implementation |
| 4D | [Mysterious Present](http://codeforces.com/problemset/problem/4/D) | [C++](./cf/4D.cpp) | dp, recursion |
| 5C | [Longest Regular Bracket Sequence](http://codeforces.com/problemset/problem/5/C) | [C++](./cf/5C.cpp) | dp, greedy |
| 6C | [Alice, Bob and Chocolate](http://codeforces.com/problemset/problem/6/C) | [C++](./cf/6C.cpp) | greedy, two pointers |
| 6D | [Lizards and Basements 2](http://codeforces.com/problemset/problem/6/D) | [C++](./cf/6D.cpp) | dp |
| 6E | [Exposition](http://codeforces.com/problemset/problem/6/E) | [C++](./cf/6E.cpp) | segment tree, range query |
| 7D | [Palindrome Degree](http://codeforces.com/problemset/problem/7/D) | [C++](./cf/7D.cpp) | dp, hashing, TLE(Time Limited Error, NotFixed) |
| 7E | [Defining Macros](http://codeforces.com/problemset/problem/7/E) | [C++](./cf/7E.cpp) | recursion, dp, expression parsing |
| 8B | [Obsession With Robots](http://codeforces.com/problemset/problem/8/B) | [C++](./cf/8B.cpp) | greedy |

repository: LihuaWu/algorithms

repo_name: LihuaWu/algorithms


text:
# Crosier: **C**h**r**ome**OS** **I**ntegration/**E**2E-test **R**evamp

## Overview
Crosier is a project for running GTest-based integration tests on a ChromeOS
hardware Device Under Test (DUT) or in a ChromeOS Virtual Machine (VM). The idea
is similar to interactive_ui_tests. A runner uses GTest to launch a full browser
on DUT/VM, and the test body runs in the same process as the browser process.
Utility APIs will be provided so the test body can access Chrome classes and
objects like normal browser tests. The test can also access ChromeOS system
services/daemons via utilities (D-Bus wrappers, shell commands, etc.).

## Guidelines for using Crosier
Getting a DUT for local development is not easy for most developers and cros VM
setup is harder than using the linux-chromeos "emulator" environment. We should
limit the usage of Crosier and avoid DUT testing when possible.
Running ChromeOS integration tests on DUT is only recommended for tests
exercising hardware components (e.g. graphics tests) or testing communication
with OS daemons (e.g. Bluetooth daemon).

The preferred order when adding a new test:
- unit_tests, ash_unittests, browser_tests in linux-chromeos environment
- unit_tests, chromeos_integration_tests on a ChromeOS VM
- unit_tests, chromeos_integration_tests on a ChromeOS device (DUT)

Contacts<EMAIL_ADDRESS>

repository: chromium/chromium

repo_name: chromium/chromium