text:
# Report from Digitalocean managed [Kubernetes cluster](https://www.digitalocean.com/products/kubernetes/).

Cluster size: 3 Nodes CPU Optimized droplet - 8 vCPU 16 GB RAM

Estimated droplet cost's for cluster: $480/month

Mainflux services scaled to 3 instances:

* Mqtt adapter
* Authn
* Things
* Redis-things
* Envoy
* Nats

## Fan-in Scenario

Publisher pool: 3000

Subscriber pool: 1

Test durition: 5min

RPS: 1

QoS Level: 2

In Fan-in test 3000 clients publishing to exclusive channel subtopic, and single subscriber consuming all sent messages.
Both publishers and subcriber are connected with QoS 2, which is the safest and most demanding quality of service level that guarantees that each message is received exactly once by the intended recipients by using a four-part handshake.

No message loss was detected.

**NOTE:** Graphs Time unit is microsecond.

![DO fan-in 3k QoS 2 Total connections](assets/DO/fan-in-3k-qos2-totalconn.png "DO fan-in 3k QoS 2 Total connections")

*We see total number of connections during test is constant*

---

![DO fan-in 3k QoS 2 Total messages PRS](assets/DO/fan-in-3k-qos2-totalmsg.png "DO fan-in 3k QoS 2 Total sent messages")
![DO fan-in 3k QoS 2 Total received messages](assets/DO/fan-in-3k-qos2-totalmsg-rec.png "DO fan-in 3k QoS 2 Total received messages")

*We see total number of published and consumed messages is the same*

---

![DO fan-in 3k QoS 2 Total messages RPS](assets/DO/fan-in-3k-qos2-totalmsg-rps.png "DO fan-in 3k QoS 2 Total messages RPS")

*We see total number of messages per second (RPS) is 3000 for both publishing and receiving*

---

![DO fan-in 3k QoS 2 Publish to Pubrec latency](assets/DO/fan-in-3k-qos2-publishers-pub-pubrec-latency.png "DO fan-in 3k QoS 2 Pub to Sub latency")

*Pub to Pubrec latency in microseconds (100k microseconds are 100 milliseconds) *

---
> Useful facts:
>* 95% of clients had latency up to 85ms
>* Max latency was up to 292ms

---

![DO fan-in 3k QoS 2 Pub to Sub latency](assets/DO/fan-in-3k-qos2-pub-sub-lat.png "DO fan-in 3k QoS 2 Pub to Sub latency")

*Pub to sub latency in microseconds (100k microseconds are 100 milliseconds) *

---
> Useful facts:
>* 95% of clients had latency up to 1660ms
>* Max latency was up to 1829ms

---

Results metrics
![DO fan-in 3k QoS 2 Publish reveived ACK latency](assets/DO/fan-in-3k-qos2-results.png "DO fan-in 3k QoS 2 Publish reveived ACK")

*Results metrics are generated by mzbench tool*

---

### Kubernetes Cluster resources insights
![DO fan-in 3k QoS 2 - CPU usage on namespace](assets/DO/fan-in-3k-qos2-cpu-usage-namespace-wo-jaeger.png "DO fan-in 3k QoS 2 - CPU usage on namespace")

*Kubernetes CPU usage in whole Mainflux namespace during testing*

---

![DO fan-in 3k QoS 2 - Memory usage on namespace](assets/DO/fan-in-3k-qos2-mem-usage-namespace-wo-jaeger.png "DO fan-in 3k QoS 2 - Memory usage on namespace")

*Kubernetes Memory usage in whole Mainflux namespace during testing*

---

![DO fan-in 3k QoS 2 - CPU usage on MQTT statefulset](assets/DO/fan-in-3k-qos2-cpu-mqtt-adapters.png "DO fan-in 3k QoS 2 - CPU usage on MQTT statefulset")

*Kubernetes CPU usage in MQTT statefulset during testing*

---

![DO fan-in 3k QoS 2 - Memory usage on MQTT statefulset](assets/DO/fan-in-3k-qos2-mem-usage-mqtt.png "DO fan-in 3k QoS 2 - Memory usage on MQTT statefulset")

*Kubernetes Memory usage in MQTT statefulset during testing*

---

![DO fan-in 3k QoS 2 - Networking on MQTT statefulset](assets/DO/fan-in-3k-qos2-networking-mqtt.png "DO fan-in 3k QoS 2 - Networking on MQTT statefulset")

*Kubernetes Network receive/transmit bandwidth in MQTT statefulset during testing*

repository: zjdyzww/benchmark

repo_name: zjdyzww/benchmark


text:
---
layout: "unit"
title: "Guide Entry 80.07.01"
path: "/curriculum/guides/1980/7/80.07.01.x.html"
unitTitle: "Incorporating Word Problems into Basic Skills Development"
unitAuthor: "Gerald A. Baldino"
keywords: "Word Problems Basic Skills Mathematics"
recommendedFor: "Recommended for 6th grade General Mathematics."
---

Guide Entry to 80.07.01:

This unit is concerned with practical approaches to achieving satisfaction, both among teachers and students, in the area of problem solving at the elementary mathematical level.  It presents concepts and ideas calculated to encourage educators to concentrate on and deal with the everyday aspects of problem solving facing our students today.  It is intended to be a “how to” unit.  The materials and suggestions are drawn from experiences and activities of the author. Teaching word problems and methods of solution to remedial fifth and sixth grade youngsters is a frustrating yet rewarding experience.  The unit itself may be covered in as little as three weeks, or drawn out over a longer period of time.  After the initial unit is completed, it is hoped the teacher will continue to dedicate at least one math period per week to the development of problem solving.

(Recommended for 6th grade General Mathematics.)

Key Words

Word Problems Basic Skills Mathematics

license: MIT

branch_name: refs/heads/master

extension: md

gha_language: HTML

gha_license_id: MIT

license_type: permissive


text:
# Overdue instructions {#concept_i5b_yl3_vdb .concept}

If an EIP bill is overdue, your service may be affected. Renew your EIP in time to avoid service interruption.

1.  If an EIP bill is overdue, or if your payment isn't received, you will get an email.
2.  The EIP functions normally within15 days after the bill is overdue.
3.  The EIP service will be suspended after the bill is overdue more than 15 days.
4.  If the account is recharged with a sufficient amount of money in the 15 days before the EIP is released, the system will pay the overdue bill immediately and resume the EIP service. Otherwise, the EIP address will be released. The account owner will receive an email notification.

filename: Overdue instructions.md


text:
# The Minute Pitcher

#### This is an application designed to display the most trending news articles
#### By **Caiseyann Mwangi **
## Description
This is an application that stores displays the most trending news topics at the moment of viewing the site
## Setup/Installation Requirements
* Open the link
* Sign up
* login
* Add/view your pitches
## Known Bugs
There are no known bugs
## Technologies Used
* Python
* Mako
* HTMl
* JavaScript
### To visit the app click on this link below
https://theminuteapp.herokuapp.com/
## Support and contact details
In case of any questions email me at<EMAIL_ADDRESS>* Also feel free to fork, clone this project and make any necessary changes.
### License
*MIT*
Copyright (c) 2020 **Caiseyann Mwangi**

repository: Caiseyann/seconds

repo_name: Caiseyann/seconds


text:
# Pathetic Object Oriented Platform (poop)

> Beware, shitty macro magic awaits -- Gandalf

So this is a... thing. It uses macros for at least encapsulating methods + data in the same structure. You can technically have polymorphism and inheritance in here (ducktyped, because macros), but it doesn't have a good way of doing it (I'm looking for a way for defining classes better).

## How to use

You define a struct with the name of the class (for this example it is `Object`), this will have a pointer to its vtable struct (methods defined for that class). It has to be called `m`.

All classes also have a method called `delete`, that takes a `<class>**`, frees all memory and resources, and nullifies the given pointer.

You halso have to have a global function called `Init<class>` that receives a `<class>*` and initializes it (giving default values, but most important, it sets the `m` and `delete` member).

Example usage:

```

typedef struct { ...; ObjectVT* m; } Object;
typedef struct { ...; void(*delete)(Object**); } ObjectVT;
InitObject(Object* self) { ... }

int main() {
    Object* obj = new(Object); // This mallocs and calls ObjectInit
    call(obj, someMethod, someArg); // You can also do obj->m->someMethod(obj, someArg)
    delete(obj) // This will call destructor
    ...
}

```

## TODO

* Less shitty dynamic dispatch
* Common steps of inialization (VTable setting, nullifying) abstracted.
* Finding a block library for simplicity
* Inheritance
* Private members


text:
# ortools-java

Packages [Google OR-Tools](https://github.com/google/or-tools) as a self-extracting jar file at Maven coordinates `com.skaggsm.ortools:ortools-natives-all:7.5.7467`.

## How to Use

1. Add my Bintray repository at `https://dl.bintray.com/magneticflux/maven` to resolve the artifacts
2. Add a dependency on `com.skaggsm.ortools:ortools-natives-all:7.5.7467` in your build tool of choice
3. Write code:
```java
// Somewhere before using OR-Tools classes
OrToolsHelper.loadLibrary();
```

Before using, ensure the system meets the [minimum requirements for installing OR-Tools](https://developers.google.com/optimization/install).

## Details

This library is divided into several modules:
- `ortools-loader`
  - Handles extracting the relevant binaries from the classpath and loading them for JNI.
- `ortools-natives-all`
  - Meta-dependency that resolves all possible native dependencies.
- `ortools-natives-linux`
  - Packages the "Ubuntu 16.04" binary distribution
- `ortools-natives-macos`
  - Packages the "Mac OS X binary" distribution
- `ortools-natives-windows`
  - Packages the "Windows with Visual Studio 2019" binary distribution

Native library lifecycle:
1. JVM startup
2. `OrToolsHelper.loadLibrary();` called
    - Native binaries are extracted to a temp directory
    - Native binaries are loaded by the system
3. JVM shutdown
    - Native binaries are deleted

repository: thedarkcder/ortools-java

repo_name: thedarkcder/ortools-java


text:
# react-dream-experiments

Experiments for testing out features of [React Dream](https://github.com/xaviervia/react-dream). Continuation of [https://github.com/xaviervia/playing-react-fantasy-land-types](https://github.com/xaviervia/playing-react-fantasy-land-types)

To try it out:

```
git clone git@github.com:xaviervia/react-dream-experiments
npm install
npm start
```

Then go to `http://localhost:3000`

repository: xaviervia/react-dream-experiments

gha_language: JavaScript

repo_name: xaviervia/react-dream-experiments


text:
# OmniAuth WIP Demo

A simple Ruby on Rails app to test WIP OmniAuth strategy.

Based on

## Usage

Edit the `Gemfile` to switch between the hosted gem or a local install.

And then execute:

```shell
$ bundle
```

Configure the strategy in `config/initializers/omniauth.rb`:

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :wip, "APPLICATION_UID', "SECRET"
end
```

Start this test application:

```shell
$ rails server
```

## Authors

Created by Marc Köhlbrugge. Based on [omniauth-test-harness](https://github.com/PracticallyGreen/omniauth-test-harness) authored by [Rajiv Aaron Manglani](http://www.rajivmanglani.com/).

repository: marckohlbrugge/omniauth-wip-demo

repo_name: marckohlbrugge/omniauth-wip-demo


text:
# RingSig

The library implements a ring signature scheme in Swift. The algorithm is based on "How to leak a secret" (2001) by Rivest et al.

# What is a ring signature scheme?

When using RSA for message authentication the author of the message creates a signature using their private key. The verifier obtains the signer's public key and checks whether the received message matches the signature. Thus the verifier knows that only someone witch access to the signer's private key could have been creating the signature.

Ring signatures enable the signer to create a signature that doesn't reveal their identity. More precisely the signer bundles their public key alongside the public keys of entities that are not involved at all and uses them for creating the signature. The signature then proves the the verifier that the corresponding message was signed by one of the owners of the public keys. Nevertheless the virifier is not able to tell who exactly is the signer.

## Installation

### Swift Package Manager
`.Package(url: "https://github.com/FabioTacke/RingSig.git", majorVersion: 1)`

### CocoaPods
`pod 'RingSig', '~> 1.0'`

## Usage
```swift
import RingSig

// Generate the signer's RSA keypair
let signerKeyPair = RSA.generateKeyPair()

// Generate keypairs for the other participants in the ring signature scheme (i.e. the non-signers)
let nonSignerKeyPairs = [RSA.generateKeyPair(), RSA.generateKeyPair(), RSA.generateKeyPair()]
let nonSignersPublicKeys = nonSignerKeyPairs.map { $0.publicKey }

// The message to be signed
let message = "Hello, World!"

// Sign the message
let signature = RingSig.ringSign(message: message.data(using: .utf8)!, nonSignersPublicKeys: nonSignersPublicKeys, signerKeyPair: signerKeyPair)

// Everybody can now verify that the message was signed by someone of those whose public keys were included in the signature. Still the verifier is not able to tell who of them is the actual signer.
let verified = RingSig.ringSigVerify(message: message.data(using: .utf8)!, signature: signature)
assert(verified)
```

## Disclaimer
The library uses a very basic RSA implementation and therefore shouldn't be considered to offer high crypto security. Furthermore performance was not a design goal when creating the library.

repository: FabioTacke/RingSig

gha_language: Swift

repo_name: FabioTacke/RingSig


text:
# Inflect

Way to handle the pluralization/singularization of words in php.

Formerly this was just a library written by [Sho Kuwamoto](http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/), updated in order to work as a composer package.

repository: harmstyler/Inflect

repo_name: harmstyler/Inflect


text:
# SwiftDisas
swiftdisas is a script relying on lldb to disassemble Swift binaries

Usage:

```
swiftdisas.py  binary functioname
```

It works, but it is currently a hack. Ideally, we would like
something better.

repository: VolodymyrPavliukevych/SwiftDisas

repo_name: VolodymyrPavliukevych/SwiftDisas


text:
# FixCache

- [Introduction](#Introduction)
- [Installation](#Installation)
- [Permissions](#Permissions)
- [Configuration](#Configuration)
- [Deploying your own FixCache](#Deploying-your-own-FixCache)

## Introduction

**FixCache** is a github app implementation of [FixCache](https://people.csail.mit.edu/hunkim/images/3/37/Papers_kim_2007_bugcache.pdf) with git commit history.

FixCache can be useful for prioritizing verification, validation and testing resources on the most fault-prone files.

It keeps track of bug fix commits pushed to a [configurable](#Configuration) `tracked branch` of a repository and maintains a fix-sized cache of file entities most prone to bugs. The bug fix commits are identified by the `fix keywords` provided in the [configuration](#Configuration).

On pull requests, it fetches the cache and updates the pull requests with information about the files present in the cache if the pull request updates these files.
- it adds a label `fix cache` to the pull request.
- it adds a comment with the filenames present in the cache and the respective number of cache hits.

![screenshot](assets/screenshot.png)

The algorithm is executed over the commit history of the project. The paper assumes four kinds of localities that bugs occur in:

- *Changed-entity locality* : if an entity was changed recently, it will tend to introduce faults soon
- *New-entity locality*: if an entity has been added recently, it will tend to introduce faults soon
- *Temporal locality*: if an entity introduced a fault recently, it will tend to introduce other faults soon
- *Spatial locality*: if an entity introduced a fault recently, "nearby" entities will also tend to introduce faults soon

## Installation

- Install it to your repositories from [here](https://github.com/apps/fixcache)

## Permissions

### Repository permissions

The app has access to the following repository permissions:

- *Contents*: `Read-only`
- *Metadata* : `Read-only`
- *Pull requests*: `Read & write`

### Events

The app is subscribed to the following events:

- `Pull request`
- `Push`

## Configuration

The app (for now) uses a `.env` file for configuration. A sample config is shown in `env.sample`.

### Github config

- `GITHUB_APP_ID` : the github application id
- `PRIVATE_KEY_PATH`: the path to the private key
- `WEBHOOK_SECRET`: the webhook secret for the app's webhook

### Fix cache config

- `CACHE_SIZE`: the size of the fix cache i.e number of files stored in the cache
- `HISTORY_SIZE`: the number of days to load commit history from on installation
- `FIX_KEY_WORDS`: Keywords in a fix commit eg. fix,fixed
- `TRACKED_BRANCH`: the main branch to track pushes on
- `SKIP_PATHS`: paths to skip/not store in the fix cache like test files

### Default

Following default values are used in the current version of the app:

- `CACHE_SIZE`: `25`
- `HISTORY_SIZE`: `30`
- `FIX_KEY_WORDS`: `fix`
- `TRACKED_BRANCH`: `master`
- `SKIP_PATHS`: `test,.md`

If this configuration is not suitable for your repositories, you can [deploy your own FixCache](#Deploying-your-own-FixCache) with the required configuration.

## Deploying your own FixCache

FixCache is deployed on [Deta micros](https://deta.sh). The following steps show how to deploy your own FixCache as a github app with custom configuration.

### Clone the repository

- Clone the repository with `git clone https://github.com/aavshr/fixCache.git`.

### Deploy on Deta

This deployment is for [Deta micros](https://deta.sh). You will need to have signed up for deta and the deta cli installed.

If you want to deploy on another platform, you will need to modify the code slightly and then set up the respective configuration for deployment to other platforms.

- After you have cloned the repository, change the directory to the cloned directory and enter in your terminal

```shell
$ deta new
```

You should see the output that the application has been created and the dependencies have been installed.

- After installing the app, enter

```shell
$ deta details
```

You should see details about your application in your output. The `endpoint` shown will be needed later to add as the webhook url in our github app.

- Lastly disable auth by entering:

```shell
$ deta auth disable
```

We will use a webhook secret to verify that the events are coming from github on our webhook endpoint.

### Create a github app

A comprehensive guide on creating a github app is available [here](https://docs.github.com/en/developers/apps/building-github-apps).

- Go to your *developer settings* (it's under *settings* on the dropdown menu when you click your profile on github) and create a new github app. Provide a name (and description if you want).

### Setting up the webhook

In *Webhook URL*, type the *endpoint* from the output to `deta details`.

Generate a long secure random string (there are services online that do this) and use that as the *Webhook Secret*. Keep hold of this secret as you will need it to [set up the configuration](#Configure-the-app) later.

### Permissions and Events

When choosing the permissions for the app, you will need to provide the app with following *repository permissions*:

- *Contents*: `Read-only`
- *Metadata* : `Read-only`
- *Pull requests*: `Read & write`

The app is subscribed to the following events:

- `Pull request`
- `Push`

### Generate the private key

After creating the github app, go to your app's *General* settings and generate a private key.

Save the private key in the your cloned directory in a file. This is required for authentication.

Make sure you **do not commit** this file to a public repository.

### Configure the app

App configuration (for now) is simply done through environment variables. Create a new file `.env` in the cloned directory and provide it with the following variables.
A sample `env.sample` is present in the repository to see the format of the file. Make sure you **do not expose** your `.env` file publicly.

- `GITHUB_APP_ID` : the github app id, you can find this in your github app's general settings.
- `PRIVATE_KEY_PATH`: the path to the private key file you saved in the earlier step.
- `WEBHOOK_SECRET`: the webhook secret for the app's webhook
- `CACHE_SIZE`: the size of the fix cache i.e number of files stored in the cache
- `HISTORY_SIZE`: the number of days to load commit history from on installation
- `FIX_KEY_WORDS`: Keywords in a fix commit separated by commas eg. fix,fixed
- `TRACKED_BRANCH`: the main branch to track pushes on
- `SKIP_PATHS`: paths to skip/not store in the fix cache like test files

### Deploy the changes and the configuration

First change the directory to the root of the cloned directory (if you are not there already) and deploy the changes with,

```shell
$ deta deploy
```

Next, deploy the configuration in the `.env` with,

```shell
$ deta update -e .env
```

You should see that the environment variables have been successfully updated.

### Install

The FixCache should be now be deployed completely and ready to function. You can install the app to your repositories in the *Install App* page of your github app.

repository: aavshr/fixCache

repo_name: aavshr/fixCache


text:
# Rogo.js
An javascript sdk for interacting with Rogo

## Opportunity
With new Rogo rest API, we can retrieve information from Rogo more easily than ever before. Our new OKRs focus on increasing transparency into and spreading knowledge about ustwo’s inner workings. We can achieve those OKRs by creating applications that leverage the new rest API. The studio.ustwo.com project is an example of one of those applications and it needs an sdk like this. Since the Rogo rest api is new, we have yet to set a standard of how client-side applications interact with Rogo.

## Hypothesis
We’ll create many applications that need Rogo’s data in the future. Having a javascript sdk will improve this process.

## Audience

- ustwo tech team

## Value

- Increased efficiency in consuming Rogo’s data in client-side applications.
- Reduced development time for internal apps that need rogo’s data.
- Keeps our project’s DRY with respect to the ustwo tech team.

## Objectives to reach value

- Build and release a javascript sdk for interacting with Rogo’s rest api

## Validation Plan

- Developers will be able to use Rogo.js easily.

## What does MVP look like?

- A javascript sdk
- Detailed Documentation
- Thorough test coverage
- Private npm package

## Casting / Human Resource needs

- ( 1 ) Developer

## Timeline estimation to MVP

3 weeks to get to MVP.

## Accountability / Stakeholders

- Simon Lindsay
- Tech Director
- Rogo Team

## New skills utilized

- ES6 & ES7 specifciaions

repository: agconti/roadmap

repo_name: agconti/roadmap


text:
---
layout: post
title: Installing MongoDB in Mac OS
---
For this I will be using [Homebrew](http://brew.sh/) (a very useful package manager for Mac OS), if you don't know this you should head over to their homepage and get it installed right now, or just enter the following command:

	ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

## Removing an existing MongoDB installation

A year ago I installed MongoDB and used it in a small node.js project and haven't used it since, in the meantime I have (of course) lost the passwords for the local development database, so the first step is to completely remove the existing installation of MongoDB.

First I removed MongoDB through Homebrew:

	brew remove mongodb

Then I ensured that the `mongod` binary was shutdown through the Activity Monitor. After that I removed the possible left-overs (data-files, etc.) located by inspecting the [Brew-formula for MongoDB](https://github.com/Homebrew/homebrew/blob/master/Library/Formula/mongodb.rb#L69). These files were located in `/usr/local/var/mongodb`, so this folder was completely removed:

	rm -r /usr/local/var/mongodb

## Installing MongoDB

After that I just installed MongoDB again:

	brew update
	brew install mongodb
	launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

And verified that it worked:

	mongo

Giving the output:

	MongoDB shell version: 2.4.9
	connecting to: test
	>

For easy listing of databases, collections and data the the [MongoHub GUI](http://docs.mongodb.org/ecosystem/tools/administration-interfaces/#mongohub) is strongly recommended.

The next blog post will be about creating users with appropriate permissions.


text:
cassertion
==========

Simple C test framework

In the very thin layer between supersimple and _just what you want_ C unit
test framework is CASSERTION.

* You can very easily set which of your test suites will run.
* All assertions are clearly logged in a log file.
* You can measure time of testing operations very easily.
* You can have any structure of your test suites.

Example
==========

Go to the examples direcotry and run:
$ make cassertion

You will need OMP library (or set up USE_OMP to zero in cassertion.h)

repository: nesro/cassertion

repo_name: nesro/cassertion


text:
# IGR HOEMWORK - Exchange Rate
[![Author](http://img.shields.io/badge/author-@zhufangda-blue.svg?style=flat-square)](https://www.linkedin.com/in/fangda-zhu-953296118/)

## How to use it!

This program allow us to get the exchange rate in real time and perform the currency conversion automatically.

You type the amount in the text editor, the program will performe the currency conversion automatically and show the resultat in the right side. If you want to change the direction de conversion, just click the exchange button ![exchange](image/exchange.png).

If you want to change the currency type, you can click the country flag, then you will get into the following activity.

This activity show all the available currency in our application. If your network is availble, our application will retrieve currency exchange rates from [openexchangerates](https://openexchangerates.org).
If not, our application will ues the off-line data.

## Attention
I have no time to add the code in order to get the permission dynamically in my application. So the apps maybe encounters some problem when it run in a android 6 ou 7 mobile.

repository: zhufangda/Telecom-Paristech

repo_name: zhufangda/Telecom-Paristech


text:
---
layout:     post
title:      Using LAPACK in C on Linux
subtitle:
date:       2018-10-11
author:     Ke Liu
header-img: img/post-bg-re-vs-ng2.jpg
catalog: true
tags:
    - LAPACK
    - LAPACKE
    - Linux
---

>Instruction for using LAPACK in c on Linux.

## Installation
* Install BLAS
     * Download latest version from [http://www.netlib.org/blas/](URL 'http://www.netlib.org/blas/').
     * Untar
     * `$cd BLAS-*/`
     * `$make`
     * get lib `blas*.a`
* Download latest version from [http://www.netlib.org/lapack/](URL 'http://www.netlib.org/lapack/').
* Untar
* `$cd lapack-*/`
* `$cp make.inc.example make.inc` and change line 81 to point to `blas*.a`
* `$make lib`
* `$make lapackelib`
* `$make cblaslib`
* Move files in `LAPACKE/include/` and `CBLAS/include/` to some `include/` you are familiar with.
* Move 'lapacke', 'lapack', 'blas', 'cblas' librarys to some `lib/` you are familiar with, and rename them as `liblapacke.a`, `liblapack.a`, `libblas.a`, `libcblas.a`.

## Test
* Get test program from [http://www.netlib.org/lapack/lapacke.html](URL 'http://www.netlib.org/lapack/lapacke.html').
* Compile with `$gcc test_lapack.c -L lib/ -llapacke -llapack -lcblas -lblas -lgfortran -lm -I include/ -o test_lapack`

## Documentation
* [http://www.netlib.org/lapack/explore-html/index.html](URL 'http://www.netlib.org/lapack/explore-html/index.html')
* This documentation have specific defination for all lapack functions. But, if you want to use some function `f()` in lapack, you should use `LAPACKE_f()` or `cblas_f()`, you can see parameters of `LAPACKE_f()` or `cblas_f()` in this documentation as well, but there are no details.

## Functions
`#include <lapacke.h>`for lapacke functions, `#include <cblas.h>`for cblas functions
### cblas_dtrsm
`void cblas_dtrsm (const CBLAS_LAYOUT layout, const CBLAS_SIDE Side, const CBLAS_UPLO Uplo, const CBLAS_TRANSPOSE TransA, const CBLAS_DIAG Diag, const int M, const int N, const double alpha, const double \*A, const int lda, double \*B, const int ldb)`

- `layout`: `CblasRowMajor` or `CblasRowMajor`
- `Side`: `CblasLeft` or `CblasRight`, same meaning as `SIDE` in `dtrsm()`
- `Uplo`: `CblasLower` or `CblasUpper`, same meaning as `UPLO` in `dtrsm()`
- `TransA`: `CblasNoTrans` or `CblasTrans`, same meaning as `TRANSA` in `dtrsm()`
- `Diag`: `CblasNonUnit` or `CblasUnit`, same meaning as `DIAG` in `dtrsm()`
- `alpha`: same meaning as `ALPHA` in `dtrsm()`
- `A`: same meaning as `A` in `dtrsm()`
- `B`: same meaning as `B` in `dtrsm()`

If you are using `CblasRowMajor`, and `A` is a square matrix:

- `M`: length of each edge of `A`
- `N`: number of columns in `B`
- `LDA`: the same as `M`
- `LDB`: the same as `N`

## FAQ
### What is LDA?
([http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=1897](URL 'http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=1897'))
> On LDA, the doc says:
> - LDA (input) INTEGER
> - The leading dimension of the array A. LDA >= max(1,N).
>
> Now N is the number of columns in the input matrix. But the input matrix is symmetric, so we'd expect it to be N x N, right? In that case LDA = N. The ">=" part in the comment just allows for the possibility that the input matrix A is in fact part of a larger array, with a greater number of rows than are actually used in this function. But unless you're doing something tricksy, "LDA" is just the rows of A, and equals N.

  Understunding of mine: While storing a matrix `A` in memory, the jth element of ith row `A[i][j]` can also be `A[i*n+j]`, which means the (i\*n+j)th element in `A`, where `n` is the number of elements in each row. However, while you are using part of a matrix to compute, for example part of `A`, `A'`, `A'[i][j]` is the (i\*n+j)th element of `A'`, but `n` is no longer the number of elements in each row of `A'`. As a result, you need to tell the computer `A'` is part of a larger matrix `A` using `LDA=n`.

  In conclution, `LDA` is the number of elements in each row of the matrix you stored in memory.


text:
# Angular Grant Block WFE

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.1.1.

## Getting Started

1. Clone this repository using the git command `git clone https://github.com/ed-is-on/grantblock-wfe.git`
1. Navigate into the created folder using `cd grantblock-wfe`
1. Run the following command to install all dependencies `npm install`

## Development server

Run `npm start` for a dev server. Navigate to [`http://localhost:4200/`](http://localhost:4200) to view the application. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.

repository: ed-is-on/grantblock-wfe

branch_name: refs/heads/demo-one

gha_language: TypeScript

repo_name: ed-is-on/grantblock-wfe


text:
# improv-web

[![](https://img.shields.io/travis/improv-ee/improv-web.svg)](https://travis-ci.org/improv-ee/improv-web)
[![Maintainability](https://api.codeclimate.com/v1/badges/54f0ebd5a83319def11a/maintainability)](https://codeclimate.com/github/improv-ee/improv-web/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/54f0ebd5a83319def11a/test_coverage)](https://codeclimate.com/github/improv-ee/improv-web/test_coverage)
[![](https://img.shields.io/docker/pulls/improv/improv-web.svg)](https://cloud.docker.com/u/improv/repository/registry-1.docker.io/improv/improv-web)

This is the source code for https://improv.ee, a website dedicated to listing information and events about improvised theatre.

## Development

Configuration instructions are provided for a Linux (Ubuntu) based development environment.

### Needs to be installed

- [Docker][] (latest)
- [Docker Compose][] (latest)
- `openssl` (`apt-get install openssl`)
- [Composer][]
- [npm][]

### Setup

Install vendor packages:

```bash
cd src
composer install
npm install
```

Run the setup script:

```bash
./setup.sh
```

This will generate a new self-signed CA and certificates for local development. You need to
install your new Certificate Authority into your web browser. [Here is how](https://wiki.wmtransfer.com/projects/webmoney/wiki/Installing_root_certificate_in_Mozilla_Firefox)
to do it for Firefox (`Settings -> Certificate Authorities -> Add`). The CA file for importing
is `docker/lb/certs/ca.crt`. If done correctly, this will make `https://` "green" for our dev domains:

`web.local.improv.ee` will be the frontend webserver
`api.local.improv.ee` will be the API

DNS entries are already configured in global DNS to point to `<IP_ADDRESS>`.

Review settings in `src/.env` - this will be your local conf.

Bring up services:

```bash
docker-compose up
```

You need to bootstrap the database (once) and set up Laravel.

```bash
docker-compose run webserver bash
php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan passport:install
```

If all goes well you should have Docker containers running, database bootstrapped and webpages
(with green HTTPS) opening on `web.local.improv.ee` and `api.local.improv.ee`.

## API documentation

API documentation is generated from API source code using [apidoc-generator](https://github.com/mpociot/laravel-apidoc-generator).
To change it, change PHP code comments on API controllers (`src/app/Http/Controllers/Api/`).

### Regenerate documentation

Run:

```bash
$ php artisan apidoc:generate
```

Open `public/doc/index.html` with a local webbrowser.

## External services in use

### AWS S3

S3 buckets are used for data storage (ex: uploaded images). See `config/filesystems.php` for more.

### Google Cloud

Google Translate is used for translating text - see `config/googletranslate.php` for more.

Google Places is used for fetching Place information.

## Contributing

Want to help? Great - submit a pull request or an issue.

## License

Licensed under Apache-2.0 license.

[Docker]: https://docs.docker.com/install/linux/docker-ce/ubuntu/
[Docker Compose]: https://docs.docker.com/compose/install/
[Composer]: https://getcomposer.org/download/
[npm]: https://www.npmjs.com/get-npm

repository: uacode/improv-web

repo_name: uacode/improv-web


text:
# Event Support Mixin

[![Build Status](https://travis-ci.com/logstash-plugins/logstash-mixin-event_support.svg?branch=master)](https://travis-ci.com/logstash-plugins/logstash-mixin-event_support)

## Usage

1. Add this gem as a runtime dependency of your Logstash plugin's `gemspec`:

    ~~~ ruby
    Gem::Specification.new do |s|
      # ...

      s.add_runtime_dependency 'logstash-mixin-event_support'
    end
    ~~~

2. In your plugin code, require this library and include it into your plugin class
   that already inherits `LogStash::Plugin`:

    ~~~ ruby
    require 'logstash/plugin_mixins/event_support/event_factory_adapter'

    class LogStash::Codecs::Bar < Logstash::Codecs::Base

      include LogStash::PluginMixins::EventSupport::EventFactoryAdapter

      # an optional mixin to provide `events_from_json` using the factory :
      #include LogStash::PluginMixins::EventSupport::FromJsonHelper

      def decode(data, &block)
        payload = extract_bar(data) # ...
        yield event_factory.new_event(payload)
      end

      # def extract_bar(data) ...

    end
    ~~~

## Development

This gem:
 - *MUST* remain API-stable at 1.x
 - *MUST NOT* introduce additional runtime dependencies


text:
# kdb-ls(1) -- List keys in the key database

## SYNOPSIS

`kdb ls <path>`

Where `path` is the path in which the user would like to list keys below.

## DESCRIPTION

This command will list the name of all keys below a given path.

## OPTIONS

- `-H`, `--help`:
  Show the man page.
- `-V`, `--version`:
  Print version info.
- `-p`, `--profile <profile>`:
  Use a different kdb profile.
- `-C`, `--color <when>`:
  Print never/auto(default)/always colored output.
- `-m`, `--min-depth <min-depth>`:
  Specify the minimum path depth of the output (0 by default), exclusive
  and relative to the name to list.
- `-M`, `--max-depth <max-depth>`:
  Specify the maximum path depth of the output (unlimited by default, 1
  to show only the next level), inclusive and relative to the name to list.
- `-v`, `--verbose`:
  Explain what is happening. Prints additional information in case of errors/warnings.
- `-d`, `--debug`:
  Give debug information. Prints additional debug information in case of errors/warnings.
- `-0`, `--null`:
  Use binary 0 termination.

## EXAMPLES

```sh
# Backup-and-Restore: user:/tests/examples

# We use `dump` as storage format here, since storage plugins such as INI
# automatically add keys between levels (e.g. `user:/tests/examples/kdb-ls/test/foo`).
sudo kdb mount ls.ecf user:/tests/examples dump

# Create the keys we use for the examples
kdb set user:/tests/examples/kdb-ls/test val1
kdb set user:/tests/examples/kdb-ls/test/foo/bar val2
kdb set user:/tests/examples/kdb-ls/test/fizz/buzz fizzbuzz
kdb set user:/tests/examples/kdb-ls/tost val3
kdb set user:/tests/examples/kdb-ls/tost/level lvl

# list all keys below /tests/examples/kdb-ls
kdb ls /tests/examples/kdb-ls
#> user:/tests/examples/kdb-ls/test
#> user:/tests/examples/kdb-ls/test/fizz/buzz
#> user:/tests/examples/kdb-ls/test/foo/bar
#> user:/tests/examples/kdb-ls/tost
#> user:/tests/examples/kdb-ls/tost/level

# list the next level of keys below /tests/examples/kdb-ls
# note that if the search key ends with a /, it lists the next level
kdb ls /tests/examples/kdb-ls/ --max-depth=1
#> user:/tests/examples/kdb-ls/test
#> user:/tests/examples/kdb-ls/tost

# list the current level of keys below /tests/examples/kdb-ls
# note the difference to the previous example
kdb ls /tests/examples/kdb-ls --max-depth=1
# this yields no output as /tests/examples/kdb-ls is not a key

# list all keys below /tests/examples/kdb-ls with are minimum 1 level (inclusive) away from that key
# and maximum 2 levels away (exclusive)
kdb ls /tests/examples/kdb-ls --min-depth=1 --max-depth=2
#> user:/tests/examples/kdb-ls/test
#> user:/tests/examples/kdb-ls/tost

# list all keys below /tests/examples/kdb-ls/test
kdb ls /tests/examples/kdb-ls/test
#> user:/tests/examples/kdb-ls/test
#> user:/tests/examples/kdb-ls/test/fizz/buzz
#> user:/tests/examples/kdb-ls/test/foo/bar

# list all keys under /tests/examples/kdb-ls in verbose mode
kdb ls /tests/examples/kdb-ls/ -v
#> size of all keys in mount point: 5
#> size of requested keys: 5
#> user:/tests/examples/kdb-ls/test
#> user:/tests/examples/kdb-ls/test/fizz/buzz
#> user:/tests/examples/kdb-ls/test/foo/bar
#> user:/tests/examples/kdb-ls/tost
#> user:/tests/examples/kdb-ls/tost/level

kdb rm -r user:/tests/examples
sudo kdb umount user:/tests/examples
```

## SEE ALSO

- If the user would also like to see the values of the keys below `path` then you should
  consider the [kdb-export(1)](kdb-export.md) command.
- [elektra-key-names(7)](elektra-key-names.md) for an explanation of key names.

repository: ElektraInitiative/libelektra

gha_language: C

repo_name: ElektraInitiative/libelektra


text:
# Portfolio
#### Portfolio is a website that describes about someone. That is the 'curriculum vitae'.It was created on 26/09/2020.
## Author
By  Francis Gacheru.
## Description of my portfolio
 A portfolio is used as a curriculum  vitae and purposely for letting  people who want to offer job get more information about the person. The website will act as a template/guide for those people who want to offer their curriculum  vitae as a live link rather than documented hard/soft copy curriculum vitae.
The website is all about my description.
## project Set up Instructions
* Ctrl + alt + t to open the terminal
* now git clone https://github.com/FGacheru/Portfolio
* cd portfolio
* you can use code . or atom . to open it.
## Known Bugs
## Technologies Used
* HTML5
* CSS
* Git and Github
## Support and contact details
I would like to give credit to my Technical mentor for the guidance he gave me towards the development of this web.
### License
* Licensed under the MIT license
Copyright (c) [2020] (Francis Gacheru)

repository: FGacheru/Portfolio

repo_name: FGacheru/Portfolio


text:
---
layout:     post
title:      "Leetcode  (39, 40) Combination Sum I, II"
category:   Leetcode
tags:		Leetcode Recursion
---
* content
{:toc}

Combination Sum

## Leetcode 39. Combination Sum

* [Leetcode 39. Combination Sum](https://leetcode.com/problems/combination-sum/)

Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

The same repeated number may be chosen from C unlimited number of times.

Note:
* All numbers (including target) will be positive integers.
* The solution set must not contain duplicate combinations.

For example, given candidate set [2, 3, 6, 7] and target 7, A solution set is:
[[7],[2, 2, 3]]

```cpp
class Solution {
public:
    vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
        vector<vector<int>> res;
        vector<int> curr;
        sort(candidates.begin(), candidates.end());
        helper(res, curr, candidates, target, 0);
        return res;
    }

    void helper(vector<vector<int>> &res, vector<int>& curr, vector<int>& candidates, int target, int pos) {
        if (target==0) {
            res.push_back(curr);
            return;
        }
        for (int i=pos; i<candidates.size() && target>0; i++) {
            curr.push_back(candidates[i]);
            helper(res, curr, candidates, target-candidates[i], i);
            curr.pop_back();
        }
    }
};
```

## Leetcode 40. Combination Sum II

* [Leetcode 40. Combination Sum II](https://leetcode.com/problems/combination-sum-ii/)

Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

Each number in C may only be used once in the combination.

Note:

* All numbers (including target) will be positive integers.
* The solution set must not contain duplicate combinations.

For example, given candidate set [10, 1, 2, 7, 6, 1, 5] and target 8, A solution set is:
[[1, 7],[1, 2, 5],[2, 6],[1, 1, 6]]

```cpp
class Solution {
public:
    vector<vector<int>> combinationSum2(vector<int>& candidates, int target) {
        vector<vector<int>> res;
        vector<int> curr;
        sort(candidates.begin(), candidates.end());
        helper(res, curr, candidates, target, 0);
        return res;
    }

    void helper(vector<vector<int>> &res, vector<int>& curr, vector<int>& candidates, int target, int pos) {
        if (target==0) {
            res.push_back(curr);
            return;
        }
        for (int i=pos; i<candidates.size() && target>0; i++) {
            curr.push_back(candidates[i]);
            helper(res, curr, candidates, target-candidates[i], i+1);
            curr.pop_back();
            while (i<candidates.size() && candidates[i]==candidates[i+1])   i++;
        }
    }
};
```

## Leetcode 77. Combinations

* [Leetcode 77. Combinations](https://leetcode.com/problems/combinations/)

Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.

For example, If n = 4 and k = 2, a solution is:

```
[
  [2,4],
  [3,4],
  [2,3],
  [1,2],
  [1,3],
  [1,4],
]
```

```cpp
class Solution {
public:
    vector<vector<int>> combine(int n, int k) {
        vector<vector<int>> res;
        vector<int> curr;
        if (n<k)    return res;
        helper(res, curr, 1, n, k);
        return res;
    }

    void helper(vector<vector<int>> &res, vector<int> &curr, int pos, int n, int k) {
        if (k==0) {
            res.push_back(curr);
            return;
        }
        for (int i=pos; i<=n && k>0; i++) {
            curr.push_back(i);
            helper(res, curr, i+1, n, k-1);
            curr.pop_back();
        }
    }

};
```


text:
![ioio.js animated logo](https://github.com/insideout10/ioiojs/raw/master/images/ioiojs-animated-logo.gif)

## IOIO.JS Overview

Welcome to **ioio.js**, a semantic UI framework developed in connection with [WordLift](http://wordlift.insideout.io).

**New** in version 0.9.6, we added **Scrollify** to support easy to use fully customizable vertical scrollbars.

The framework consists of several components:

* **ActiveElement**: informs other components when the current active element has changed, useful to determine the active section.
* **ArrowScroller**: takes an scrollable element and draws two arrows on the sides to allow horizontal scrolling similar to the YouTube videos bar.
* **Fillify**: creates a layout composed of stretchable background image, an overlayed container divided into a fixed height header and a variable height content, all controlled via stylesheets.
* **Mapify**: eases the implementation of 3rd geomap libraries (OpenLayers) by providing a simplified façade, and allows easy integration of GeoRSS feeds with custom icons.
* **Menufy**: creates a dynamic menu from a simple list and automatically moves the current selected menu item on the top of the list. Can be combined with ActiveElement to automatically update itself when the user scrolls the browser.
* **PlayerToolbar**: creates a 100% reusable HTML toolbar to manage a video player actions and events created via 3rd party libraries (LongTailVideo).
* **Scrollbars**: creates non-obstrusive horizontal scrollbars that work just anywhere (Firefox included) and don't break your existing CSS.
* **Scrollify**: creates vertical scrollbars that work in any browser and **do not break your existing stylesheets**!
* **SlidingMenu**: updates the 2nd level navigation menu according to the current section, in combination with ActiveElement, optionally using animations to show the menu.

### Announcements

Read the **WordLift** and **IOIO.JS** announcement on the IKS Project web site: [http://blog.iks-project.eu/wordlift-powers-enel-tv-semantic-tv-example/](http://blog.iks-project.eu/wordlift-powers-enel-tv-semantic-tv-example/).

### Requirements

Requires jQuery 1.7.x and jQuery UI. Tested with jQuery 1.7.2 and jQuery UI 1.8.21.

### How to use

Current version is **0.9.6**: to use it, get a copy of the library from here:

* **minified** version: [https://raw.github.com/insideout10/ioiojs/master/lib/ioio-0.9.6.min.js](https://raw.github.com/insideout10/ioiojs/master/lib/ioio-0.9.6.min.js),
* **non-minified** version: [https://raw.github.com/insideout10/ioiojs/master/lib/ioio-0.9.6.js](https://raw.github.com/insideout10/ioiojs/master/lib/ioio-0.9.6.js),
* **non-minified debug** version: [https://raw.github.com/insideout10/ioiojs/master/lib/ioio-0.9.6.debug.js](https://raw.github.com/insideout10/ioiojs/master/lib/ioio-0.9.6.debug.js).

For the **debug version** in order to see the debug messages, the following library is required:

* **ba-debug.js**: [https://raw.github.com/cowboy/javascript-debug/master/ba-debug.min.js](https://raw.github.com/cowboy/javascript-debug/master/ba-debug.min.js).

### How to build

You need *cake* to build and minify the library:

* build:

```sh
cake build
```

* minify:

```sh
cake minify
```

### How to test

**IOIO.JS** uses **JsTestDriver** for testing purposes. To run the automated test, clone the code then start the JsTestDriver by running from the project root folder:

```sh
java -jar bin/JsTestDriver-1.3.4.b.jar \
 --config jsTestDriver.conf \
 --port 4224 \
 --browser /Applications/Firefox.app,/Applications/Google\ Chrome.app,/Applications/Safari.app
 ```

Be sure to point at your browsers locations with the ```--browser``` switch.

Then run ```cake test``` to run the automated tests.

### How to report issues

Please use GitHub to report issues: [https://github.com/insideout10/ioiojs/issues](https://github.com/insideout10/ioiojs/issues).

### Special thanks and contributors

**ioio.js** is *Open Source* software started as an initiative of InsideOut10 for the [WordLift plug-in](http://wordlift.insideout.io).

![Logos Banner](https://github.com/insideout10/ioiojs/raw/master/images/banner-ioiojs.png)

We would like to thank its contributors and supporters:

* IKS Consortium for allowing as to join the [Early Adopter Programme](http://www.iks-project.eu/community/partners/insideout10) and for awarding WordLift 2.0 at the [Semantic UX Contest in 2011](http://wordlift.insideout.io/what-does-it-mean-to-win-the-iks-semantic-ux-contest/).
* [Enel Spa](http://www.enel.com) for investing on semantic web technologies, start-ups and open innovation.
* [JetBrains](http://www.jetbrains.com/) for providing [Open Source](http://www.jetbrains.com/phpstorm/buy/buy.jsp#openSource) licenses of their IDE products, PhpStorm and WebStorm, for the development of this project.

## Components

### ActiveElement

ActiveElement listens for *scroll events* in the browser window and checks for the position of children elements inside the container. The first visible child element is considered the active element:

```
   ____________ #sections ____________
  | ___________ .section ____________ |
  ||                                 ||
  ||     (previous active section)   ||
  ||                                 ||
  ||                                 ||
 ╔═════════════ [viewport] ════════════╗
 ║||_________________________________||║
 ║| ___________ .section ____________ |║
 ║||                                 ||║
 ║||  (this is the active section)   ||║
 ║||                                 ||║
 ║||                                 ||║
 ╚═════════════════════════════════════╝
  ||_________________________________||
  | ___________ .section ____________ |
  ||                                 ||
  ||                                 ||
  ||      (next active section)      ||
  ||                                 ||
  ||                                 ||
  ||_________________________________||
  :                                   :
  :                                   :
  .                                   .

```

In order to set-up ActiveElement, you can configure it on the container element (```#sections``` in our example) with two parameters:

* **selector**: the selector for children elements,
* **tolerance**: an optional tolerance to be applied to the top of the child elements:

```javascript
$('#sections').activeElement({
  selector: '.section',
  tolerance: 20
});
```

One ActiveElement is set-up, you can listen for ```activify.newActiveElement``` events on the container:

```javascript
$('#sections').on('activify.newActiveElement', function(event, active) {
	// your code here...
};
```

The event will pass two parameters:

* **event**: a jQuery event instance,
* **active**: the DOM element of the active section.

### ArrowScroller

ArrowScroller makes it easy to create horizontally scrollable elements by adding a left and a right arrow at the side of the contents and acts as a complete replacement for the standard horizontal scrollbars:

```
before:

    ____________ .container ____________
   | ___________ .content _____________ |
   ||                                  ||
   ||                                  ||
   ||__________________________________||
   |____________________________________|

after:

  _ ____________ .container ____________ _
 | | ___________ .content _____________ | |
 | ||                                  || |
 |<||                                  ||>|
 | ||__________________________________|| |
 |_|____________________________________|_|

```

To set-up ArrowScroller, call the ```arrowscrollers``` method on any container element (```#container``` in our example), by passing the **arrow.width** parameter with the width of the arrows:

```javascript
$('.container').arrowscrollers({
   settings: {
     arrow: {
       width:36
     }
   }
});
```

#### Stylesheets

The following stylesheets are required:

```css
.arrowscroller.left, .arrowscroller.right {
  height: height-of-the-container;
}

.arrowscroller.left {
  background: url('url-to-the-left-arrow-image') center center no-repeat;
}

.arrowscroller.right {
  background: url('url-to-the-right-arrow-image') center center no-repeat;
}

```

The **container** must have the following styles applied:

```css
.container {
  overflow-x: scroll;
  width: width-of-the-container;
}
```

The **content** must have the following styles applied:

```css
.container .content {
    width: width-of-the-content;
    height: height-of-the-content;

    white-space: nowrap;
}
```

Elements inside the **content** must have the following styles applied:

```css
.container .content > * {
      display: inline-block;
}
```

### Fillify

Fillify sets the geometry of the different elements of a layout that consists of:

* a **background** which must be stretched according to the size of the viewport, while respecting defined constraints and maintaining the background aspect ratio,
* a **container** which is split in a:
  * a **header** of predefined height,
  * a **content** that must fill the remaining available space.

```
 _______________ .section ________________
|    ___________ .background ___________  |
|   /                                  /| |
|  /____________ .container __________/ | |
| | ____________ .header ____________ | | |
| ||                                 || | |
| ||                                 || | |
| ||_________________________________|| | |
| | ____________ .content ___________ | | |
| ||                                 || | |
| ||                                 || | |
| ||                                 || | |
| ||                                 || | |
| ||                                 || | |
| ||                                 || | |
| ||_________________________________|| / |
| |___________________________________|/  |
|_________________________________________|
:                                         :
:                                         :
.                                         .

```

To set-up Fillify, call the ```fillify``` method on a container.

```javascript
$(".section").fillify();
```

The ```fillify``` method takes the following parameters to customize the element selectors:
```javascript
$(".section").fillify({
  selectors: {
    background: ".background",
    container: ".container",
    content: ".content",
    header: ".header"
  }
});
```

### Mapify

Mapify greatly simplifies the task of embedding geomaps on a Web page by hiding the underlying complexity of 3rd party libraries such as OpenLayers. With Mapify you can virtually embed any kind of geomap provider, from Google to Bing, from OpenStreetMap to WMS.

To create a map on a ```#container``` element, call the ```mapify``` method with the following parameters:

* **openLayersURL** (default ```http://openlayers.org/api/OpenLayers.js```): the URL to the OpenLayers JavaScript file,
* **cache** (default ```true```): whether to cache the OpenLayer.js file or not,
* **projection** (default ```EPSG:4326```): the projection to use to translate coordinates,
* **elementId** (default ```map```): the id of the element that will be created to hold the map,
* **zoom** (default ```0```): the starting zoom level for the map,
* **title** (default ```Map```): the map's title,
* **location**: the starting point of the map expressed as latitude and longitude (i.e. ```{latitude:41.91613, longitude:12.503052}```),
* **layerSwitcher** (default ```true```): whether to display the layer switcher on the map.

```javascript
$('#container').mapify({
  elementId: 'map',
  openLayersURL: 'http://dev.openlayers.org/releases/OpenLayers-2.11/OpenLayers.js',
  cache: true,
  zoom: 5,
  title: 'World Map',
  location: {latitude:41.91613, longitude:12.503052}
});
```

#### Methods

A mapified element supports different methods:

* **geoRSS**: to load a remote GeoRSS file and show its points as markers on the map, it supports the following parameters:
  * **url** (*required*, default *none*): the URL to the GeoRSS file,
  * **title** (default ```GeoRSS```): the layer's title,
  * **className** (default *none*): the name of the element and attribute that define the stylesheets class name that will be used for later use (in Popup Controls),
  * **radius** (default ```{default: 15, select: 25}```): the size of the marker when unselected and selected,
  * **externalGraphic**: the configuration for the markers graphic, can contain placeholders that will be filled with data loaded from the GeoRSS file, ex: ```{url: 'wp-content/uploads/img/marker.png', width: 9, height: 17, select: { width: 14, height: 26 } }```.

```javascript
$('#container').mapify( 'geoRSS', {
  url: 'wp-admin/admin-ajax.php?action=weeotv.geo_rss&categories=' + value,
  title: key,
  className: {
    tag: 'category',
    attribute: 'term'
  },
  externalGraphic: {
    url: 'wp-content/uploads/img/marker_' + value + '.png',
    width: 9,
    height: 17,
    select: {
   	    width: 14,
  	    height: 26
   	}
  }
});
```

* **popupControl**: to configure a customized popup control that will appear when the user clicks on a marker on the map; it accepts the following parameters:
  * **layer** (*required*, default *none*): the layer to which to bind the popup control,
  * **size** (default ```{width: 230, height: 250}```): the size of the popup,
  * **content** (*required*, default *none*): the HTML contents of the popup control, placeholders can be used here.

```javascript
$('#container').mapify('popupControl', {
  layer: layer,
  size: {
    width: 210,
    height: 250
  },
  content: '<div class="{className}"><a href="{link}">{title}<img src="{thumbnail}" /></a></div>'
});
```

#### Events

Mapify supports several events that allow to load the different layers (maps, GeoRSS feeds and popup controls) in connection one to the other:

* **mapify.create**: a new map has been created,

Load a GeoRSS feed once the map has been created:

```javascript
$('#container').on('mapify.create', function (event) {

  var that = this;

  $.each( geoRSS, function (key, value) {

    $(that).mapify( 'geoRSS', {
      url: 'wp-admin/admin-ajax.php?action=weeotv.geo_rss&categories=' + value,
      title: key,
      className: {
        tag: 'category',
        attribute: 'term'
      },
      externalGraphic: {
        url: 'wp-content/uploads/img/marker_' + value + '.png',
        width: 9,
        height: 17,
        select: {
          width: 14,
          height: 26
        }
      }
    });

  });

});
```

* **mapify.loadStart**: a layer is loading data,

Update a status message while the layers are loading:
```javascript
$('#container').on('mapify.loadStart', function (event) {

  loads = $('#map-status').data('loads') || 0;

  $('#map-status .message').html('Loading (' + ++loads + ')...');
  $('#map-status').show();
  $('#map-status').data({
    loads: loads
  });

});
```

* **mapify.loadEnd**: a layer finished loading data,

Update and finally hide the status message when the loading is complete:

```javascript
$('#container').on('mapify.loadEnd', function (event) {

  loads = $('#map-status').data('loads') || 1;

  $('#map-status .message').html('Loading (' + --loads + ')...');

  if (0 === loads)
    $('#map-status').hide();

  $('#map-status').data({
    loads: loads
  });
});
```

* **mapify.georss**: a GeoRSS layer has been loaded, the event will deliver the related layer as a parameter to the event.

Load the popup control once the GeoRSS layer has been loaded:

```javascript
$('#container').on('mapify.georss', function (event, layer) {

  $(this).mapify('popupControl', {
    layer: layer,
    size: {
      width: 210,
      height: 250
    },
    content: '<div class="{className}"><a href="{link}">{title}<img src="{thumbnail}" /></a></div>'
  });

});
```

### Menufy

Menufy creates a dynamic menu out of a list. The selectors.item parameter specifies the selector for the menu items.

```javascript
$('#container').menufy({
  selectors: {
    item: '.item'
  }
});
```

The menu items in the HTML must define the selectors where to scroll the viewport when the user selects a menu item:

* **data-section-selector**: the selector used to get the element that the viewport shall scroll to,
* **data-menu-selector**: the selector used to identify and highlight the menu item when the user scrolls the viewport.

```html
<nav id="container">
  <ul>
    <li class="item hideable section-1"
      data-section-selector=".section.section-1"
      data-menu-selector=".section-1">Section 1</li>
    <li class="item hideable section-2"
      data-section-selector=".section.section-2"
      data-menu-selector=".section-2">Section 2</li>
    <li class="item hideable section-3"
      data-section-selector=".section.section-3"
      data-menu-selector=".section-3">Section 3</li>
  </ul>
</nav>
```

#### Use in combination with ActiveElement

When used in combination with ActiveElement, the current menu item can be highlighted automatically:

```javascript
$('#sections').on('activify.newActiveElement', function(event, active) {

  var menuSelector = $(active).data('menu-selector');

  if (undefined == menuSelector)
    return;

   var activeMenu = $('#container ' + menuSelector);

   $('#container').menufy('select', activeMenu);

});
```

### PlayerToolbar

Creates an HTML toolbar for the video player embedded on the Web page that will take care of these functions:

* start/stop,
* progress,
* volume mute and intensity,
* screen size (normal, larger, full-screen),
* quality (SQ, HQ and HD),
* sharing.

These are the parameters:

* **player**: the player instance must be passed as first parameter,
* **screens**: the size (```{width: xxx, height: xxx}```) of the screens:
  * **normal** screen size (default ```normal: { width:640, height:380 }```),
  * **larger** screen size (default ```larger: { width:960, height:470 }```).
* **urls**: an array of URLs for the standard quality, high quality and high definition streams.

```javascript
$("#video-player").playertools(
  jwplayer('video-player'),{
    screens: {
	  normal: {
	    width:640,
        height:380
      },
	  larger: {
        width:960,
        height:470
      }
	},
	urls: {
	'hd':'http://server/points/to/the/file/at/high/definition.mp4',
	'hq':'http://server/points/to/the/file/at/high/quality.mp4',
	'sq':'http://server/points/to/the/file/at/standard/quality.mp4'
  }
});
```

### Scrollbars

Create horizontal scrollbars on any element:

```javascript
  $('#container').scrollbars();
```

The look of the scrollbars is 100% customizable using few lines of stylesheets (Firefox included):

```css
::-webkit-scrollbar {
  width:0;
  height:0;
}

.container {
  position:relative;
  overflow:auto; /* this must be 'hidden' for non-touch based devices; 'auto' for touch-based devices. */
}

.scrollbar {
  position:absolute; /* required */

  left:0px; /* required */
  bottom:0px; /* required */

  background-image: url('img/scrollbar-1px.png');
  background-position: center center;
  background-repeat: repeat-x;
  background-size: 100% 4px;
  height: 14px;
  margin-bottom: 4px;
}

.scrollbar .scroller {
    position:relative; /* required */

    width:110px;
    height:14px;

    background-image: url('img/scroller-regular.png');
}
```

### Scrollify

![Scrollify banner](https://github.com/insideout10/ioiojs/raw/master/images/scrollify.png)

The **Scrollify** use case is when you have a content that needs to be scrolled and you want to fully customize the look-n-feel of the scrollbars, including Firefox. Many solutions are already out there but they severe your existing stylesheets. Scrollify if 100% stylesheets friendly.

```
   ____________ .content ____________
  |                                  |
 ╔═════════════ #container ════════════╗
 ║|                                  |▲║
 ║|                                  ||║
 ║|                                  ||║
 ║|                                  ||║
 ║|                                  ||║
 ║|                                  |▓║
 ║|__________________________________|▼║
 ╚═════════════════════════════════════╝
  :                                   :
  :                                   :
  .                                   .

```

**Scrollify** is so easy to use that it does not require any custom setting:

```javascript
  $('.container').scrollify();
```

#### Stylesheets

Scrollbars are controlled and customized via stylesheets:

```css
::-webkit-scrollbar {
  width:0;
  height:0;
}

.content-container {
  overflow-x: none;
  overflow-y: scroll;
}

.content-container .content {
  padding-right: 24px; /* make space for the scrollbar. */

  font-size: 14px;
  line-height: 20px;
}

.content-container .scrollbar {
  width: 20px;

  background: url('a/link/to/the/scrollbar/guide/as/image.png') repeat-y center;
}

.content-container .scrollbar .scroller {
  width: 12px;
  height: 50px;

  margin: 0 4px; /* to center the scroller in the scrollbar guide. */

  background: url('a/link/to/the/scroller/image.png) center center no-repeat;
}
```

### SlidingMenu

Creates a sliding menu on the ```#container``` element with specified menu items selector ```#container .item``` and optionally set the minimum width of the menu:

```javascript
var slidingMenu = window.slidingMenu('#container', '#container .item', 1000);
```

SlidingMenu will automatically re-center the menu when the viewport is resized.

#### Use in combination with ActiveElement

When used in combination with ActiveElement, the menu bar can be automatically changed according to the active section:

```javascript
$('#sections').on('activify.newActiveElement', function(event, active) {

  var menuIndex = $(active).data('menu-index');
  slidingMenu.slideTo(menuIndex);

});
```

## RoadMap

### ActiveElement

#### ActiveElement strategy

Users should be able to choose the strategy used by ActiveElement to determine the active element. In addition to the current (checking for the vertical position of the children elements), a new strategy should be implemented that checks over the visible area of children elements in the viewport. The most visible element should be defined as the active element, and its visibility should be passed as well.

#### Auto-positioning

ActiveElement should smoothly scroll the viewport to show the whole active element if configured to do so.

### Scrollbars

Support vertical scrolling as well.

### jQuery best-practices

Reorganize the code of ActiveElement, PlayerToolbar, Scrollbars and SlidingMenu to follow the jQuery best practices in plug-in development.

### ActiveElement support

Plugins with predefined patterns should automatically bind themselves to ActiveElement if it is loaded and configured.

## License

Copyright (c) 2012 InSideOut10 srl [www.insideout.io](http://www.insideout.io)

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.


text:
---
title: Videos/GIFs/Lottie
platform: sketch
sidebarSorting: 3
type: prototype
order: 10
---
<iframe width="864" height="486" src="https://www.youtube.com/embed/z1QxfAWpHD0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

## Introduction

With Anima, you can embed  **Videos**, **GIFs**, and **Lottie** files in your Anima websites and prototype right in Sketch.

**Videos** can be in the form of a video player or simply a cover/hero video without any control buttons.

Supported **Video** links are:

* YouTube
* Vimeo
* MP4
* GIF
* Lotie JS files

The embedded video player can have these settings:

* Auto Play
* Loop
* No Control Buttons
* Cover (rect)

![Video/GIF Interface](https://s3.amazonaws.com/animaapp/docs/sketch/Prototype%20%E2%80%93%20Video%20-%20Presets.png)

>- Learn how you can upload your own [Video/GIF/Lottie files](/v3/sketch/prototype-link/project-settings.html#Files) to your design.
>

## How To Embed Videos, GIFs, or Lottie files:

To embed a video to your website:

 1. Select the layer that will become the video
 2. Go to **Prototype**, expand the **Smart Layers** section, and select **Video/GIF**
 3. Paste your video's URL
 4. Choose the Playback Settings: Auto Play, Loop, No Controls, Cover
 5. Save

To see it, click **Preview in Browser** in the Anima Panel.

## Files

If you want to embed locally stored files, go to your **Project Settings**, and in the **Files** tab, you can upload your videos/GIFs files from your computer and Anima will create a direct .mp4, .gif url that you can embed in the **Video/GIF** Smart Layer in Sketch.

![Files](https://s3.amazonaws.com/animaapp/docs/web-app/Anima%204%20-%20Files.png)

## Examples

**Landing Page Demo**

Full-width cover video for a landing page:

* Live website [Open](https://launchpad.animaapp.com/video-mp4-example)
* Sketch file [Download](https://www.dropbox.com/s/xv6hyryqvst823t/video-example.sketch?dl=0)
* Video by [Coverr](https://www.coverr.co)

![Video/GIF in Sketch](https://s3.amazonaws.com/animaapp/docs/sketch/Prototype%20-%20Video%20sample%20cover.png)

**Video Players Demo**

Test all the different video sources, YouTube, Vimeo, mp4, GIF:

* Live website [Open](https://launchpad.animaapp.com/video-demo)
* Sketch file [Download](https://www.dropbox.com/s/ae4ub1wxjpoum8n/video-demo.sketch?dl=0)

<!---
**Lotties Files**

![Lotties animation](https://cdn-images-1.medium.com/max/1600/1*v7MQeZIg07wCMPnPMIa5ew.gif)
This cool cat was designed by Diane Soko
--->

repository: AnimaApp/docs

repo_name: AnimaApp/docs


text:
(Complimentary to game Code.)

**Website**:           A place where the server website code goes. (This handles accounts and login.)

In order to view the project in Unity, simply open the Unity project browser and click "Open".

Navigate to this base directory (repository base) and click open.  Game scenes and Objects should be viewable!

Feel free to play around with the engine, but if you want to commit, please do so on a separate branch for review!

**A readme for Server operation is found within the Server directory.**

**A readme for Website operation is found within the Website directory.**

#### Please contact me immediately if you see any bugs or want to contribute.  I need help developing the game!

repository: davidlukerice/Oldentide

repo_name: davidlukerice/Oldentide


text:
# Mountaincar-v0
Mountaincar is a simulation featuring a car on a one-dimensional track, positioned between two “mountains”. The. Goal is to drive up the mountain on the right; however, the car’s engine is not strong enough to scale the mountain in a single pass. Therefore, the only way to succeed is to drive back and forth to build up momentum.
This was solved using Q-learning; a model-free reinforcement learning algorithm which allows the agent to derive an optimal policy directly from interactions with the environment without building a model.
Agent found a reliable and efficient policy for completing the task, reaching peak performance after approximately 23,000 games. This process was visualized by plotting the reward function as a function of number of games played.

## Training

## Success!

## Progress Plot

branch_name: refs/heads/main


text:
# GeoJSON
GeoJSON geospatial data can be exposed as a feature service through configuration.

Assuming your data looks similiar to the following:

```
{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "name": "Dinagat Islands"
  }
}
```
Reference: https://geojson.org/

## Add Geospatial Data Services to your Gradle Project
Create a schema's database for your application.
Add the marklogic-geo-data-services mlBundle. See the project README

```
dependencies {
  mlBundle "com.marklogic:marklogic-geo-data-services-modules:1.1.0"
}
```

## Define your Feature Service
You first define your feature service.

```
{
  "info": {
    "name": "MyGeoData",
    "description": "My GeoJSON data"
  },
  "layers": [
    {
      "id": 0,
      "name": "GeoJSON Data",
      "description": "My data in GeoJSON",
      "geometryType": "Polygon",
      "idField": "OBJECTID",
      "extent": {
        "xmin": -127.923437,
        "ymin": 17.068659,
        "xmax": -63.939062,
        "ymax": 51.242184,
        "spatialReference": {
          "wkid": 4326,
          "latestWkid": 4326
        }
      },
      "schema": "GeoLocation",
      "view": "GeoJSON",
      "geometry": {
        "type": "Polygon",
        "format": "geojson",
        "coordinateSystem": "wgs84",
        "source": {
          "xpath": "/envelope/instance/boundary"
        }
      }
    }
  ]
}
```

A few notes on the Feature Service configuration:

* You can have multiple layers, each layer must have a unique incrementing `id`
* If you are supporting Esri products, uou must identify an idField with a unique number for each document's data points. See the README for more information.
* The Schema and View will identify your TDE

## Define your Template (TDE)
The Template Driven Extraction (TDE)

## Deploy your application
Using mlGradle, deploy to your MarkLogic system.

```
gradle mlDeploy -PenvironmentName=local
```

## Ingest your data

## Test your data

repository: grtjn/marklogic-geo-data-services

gha_license_id: NOASSERTION

repo_name: grtjn/marklogic-geo-data-services


text:
---
title: AWS Summit Manila 2017
published: true
tags: aws, summit, manila
---
AWS Summit Manila is just one leg of AWS Global Summit that promotes Amazon Web Services. Their goal is to educate both new and existing customers around the world to be more successful with AWS.

### Registration

An hour before the registration desk opened, the venue was already full-packed. There was already a queue for the early-birds. I was lucky to be one of the first 100 delegates because FREE AWS SHIRT YAY! AWS Summit Manila surely received an overwhelming response from their invitation.

### Freebies & AWS Passport

After registration, we are instructed to get our summit kit and the __FREE SHIRT__. We also got our AWS Summit Manila Passport, it was like a stamp album, we had to collect stamps from the booths (summit sponsors and partners that uses AWS) and complete the album to redeem prizes at the passport redemption counter.

### Booths Exhibition

There were a lot of exciting booths out there. There's Intel, Github, Globe Telecom, Telstra, WingArc, etc. Each of them has their own product that uses AWS. There are softwares for Big Data, there's one that is for Business Intelligence, there's another for AI or Machine Learning. The booths really had a lot to offer.

After the exhibition, Amazon Web Services Managing Director Nick Walton gave his warm welcome to the delegates of the summit. And the welcoming remarks proceeded to the opening keynote of the  Vice President and General Manager Amazon S3, Amazon Web Services, Mai-Lan Tomsen Bukovec discussing the super powers the amazon web services have. Along the opening keynote, local companies that uses AWS had the chance to tell the story and the success they got after migrating to AWS.

### Lunch Time

Not sure if AWS Summit Manila or AWS Food Summit hahaha. We never got hungry althroughout the summit because of the food counters.

### Breakout Sessions

AWS Summit had two tracks for their breakout sessions. There are Business Transformation and Cloud Innovation tracks that run simultaneously so we had to pick just one. We went to the Cloud Innovation track since that was the track that piqued our interest. So each track had these breakout sessions, the track started with Internet of Things with AWS which is a great start. In just the beginning, they have already showcased bits of the cool things their platform can offer. There were topics also for DevOps, Automation, Application Migration, Serverless Solutions, Big Data, that they solved using AWS.

### The End

I completed my passport just before the summit ended and proceeded immediately to the redemption counter, sadly I didn't get the grand prize. What I got instead was the happy tummy, the freebies, the stickers, the knowledge, the fun, and the experience provided by this one-day summit.

repository: zorexsalvo/jekyll-blog-site

repo_name: zorexsalvo/jekyll-blog-site


text:
# page-auth

# note

> This Module is part of [glintcms](http://glintcms.com/).
> Please see the [documentation](https://github.com/glintcms/glintcms) for more info.io:node_modules andineck$

This Authentication Module is mainly extracted from the great [Hackathon Starter Project](https://github.com/sahat/hackathon-starter).
It is a server only implementation.

 > Authentication is the process of ascertaining that somebody really is who he claims to be.

## usage
```js
var pageAuth = require('page-auth');
// add as middleware to the main express app.
app.use(pageAuth);
```

## usage notes
 - `wrap-layout` it depends on `wrap-layout`, but doesn't have it declared as `dependencies`.
 - `express-flash` needs to be setup on the main express app.


text:
# Application-Insights-Logs-Exporter
A tool to export logs from Application Insights.

Tool has three versions:
* Standalone
* Window PowerShell
* Sitecore PowerShell Extension

# Installation and Usage
To use the tool you have to generate REST API Key. Here is a [link to a documentation](https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID) where you can read how to do it.

## Standalone
To use a standalone version, go to the [releases page](https://github.com/bartlomiejmucha/Application-Insights-Logs-Exporter/releases) and download standalone version of the tool, unzip it and then execute AILogsExporter.exe file, provide settings and click Export.

![Standalone application image](https://raw.githubusercontent.com/bartlomiejmucha/Application-Insights-Logs-Exporter/master/images/standalone.jpg "Standalone application image")

## Windows PowerShell
To use the windows powershell version, go to the [releases page](https://github.com/bartlomiejmucha/Application-Insights-Logs-Exporter/releases) and download powershell version of the tool, open it in text editor, provide parameters and then execute in Windows Powershell.

## Sitecore PowerShell Extension
To use the SPE version, go to the [releases page](https://github.com/bartlomiejmucha/Application-Insights-Logs-Exporter/releases) and download SPE version of the tool. Its a sitecore package that creates a new item `/sitecore/system/Modules/PowerShell/Script Library/SPE/Maintenance/System Maintenance/Tasks/Export Application Inisghts Logs`.
Open PowerShell ISE in Sitecore, open script installed by the package and execute.

![SPE image](https://raw.githubusercontent.com/bartlomiejmucha/Application-Insights-Logs-Exporter/master/images/spe.jpg "SPE image")


text:
# Presets

A preset is a blueprint that allows the system to know the specifics about how to save the game. It contains all possible options and customizations the system can use.
That includes when, how and what to save, asset names, multithreading, custom logic,  etc.

## How-To

### Creating a preset

From the content browser, we can create a normal blueprint inheriting **USavePreset**, or just click *Save Extension -> Save Preset*

![Create Preset](img/content_browser_preset.png)

### Setting the active preset

To set the preset that the system will use when starting up, go to *Project Settings -> Game -> Save Extension*

![image-20201027234636490](img/default-preset.png)

Then we assign our preset class we want to use in **Preset**.

#### In Blueprints

The preset can also be changed from blueprints in runtime by calling:

![Set Active Preset](img/set-preset-bp.png)

## Settings

![Preset Details](img/preset-details.png)

?> All settings have **tooltips** describing what they are used for. Check them by moving your mouse over the property.

A brief overview of the settings available:

* **Gameplay**: Configures the runtime behavior of the plugin. Debug settings are also inside Gameplay. [Check Saving & Loading](saving&loading.md)
* **Serialization**: Toggle what to save from the world.
  * **Compression**: This settings can heavily reduce saved file sizes, but add an small extra cost to performance.
* **Asynchronous**: Should save & load be [asynchronous](asynchronous.md)?
* **Level Streaming**: Configures [Level Streaming](level-streaming.md) serialization

## Filters

Filters allow us to select which classes will be saved and which classes won't.
This applies to actors and components and can be edited from the Preset.

### Allowing classes

If a class is added to a filter, that class and all its children will be allowed, meaning they will be considered for saving, their properties will be saved, etc.

![Class allowed](img/filter_class_allowed.png)

*In the image: We allow Character, so all children character classes will be saved.*

### Rejected classes

We can also reject classes from a filter, meaning they wont be considered for saving.
?> Only children classes of allowed classes will be allowed to be rejected.

![Rejected class](img/filter_class_rejected.png)

*In the image: We reject TutorialCharacter from the previous image, essentially saving all characters except TutorialCharacters.*

repository: PipeRift/SaveExtension

repo_name: PipeRift/SaveExtension


text:
---
title: "Metrics"
description: "Metrics in Astronomer Enterprise."
date: 2018-10-12T00:00:00.000Z
slug: "ee-metrics"
menu: ["Enterprise Edition"]
position: [6]
---

We've built out a robust monitoring stack for Airflow that helps you keep track of your Airflow deployments.

On Enterprise Edition, go to `grafana.{your basedomain here}` to access the monitoring overview.

- All of our dashboards provide live, up-to-date information on the status of Airflow, from the Kubernetes level right to the container level.

- Queries  for dashboards are written in PromQL

- Dashboards are dynamic, so you can pick and choose what specific Airflow deployments you want to track.

## Grafana dashboards

- **Airflow Containers**: Monitor every running container's CPU and memory usage, alongside network I/O.

- **Airflow Database Activity**: High level status overview of Airflow's database.

- **Airflow Deployments**: Drill down into the overall status of every deployment.

- **Airflow Scheduler**: Displays Airflow's core metrics, from the scheduler's perspective.

- **Airflow State**: Monitor all of your deployments from the Kubernetes level, including a birds-eye view of resource usage and system stress levels.

- **Platform Overview**: Overall platform memory and disk usage.

- **Prometheus**: Status and resource usage of the Prometheus database backend.

repository: maxivak/astronomer

repo_name: maxivak/astronomer


text:
# :microscope: Microapps

Playground to experiment with modern tech and showcase small PoCs.

## Index

- [(WIP) Material-UI + Emotion dashboard](./dashboard)
- [Express + Mongoose REST API](./movies-api)
- [React + PDF.js eReader](./pdf-viewer)
- [(WIP) Passport + Express auth](./socials)
- [Context API + useReducer](./todo-list)

## Tech

- postgres + sqorn + hapi + joi/celebrate
- passport auth + ts + mongoose rels
- redux app
- vue.js front-end
- ejs, handlebars, pug
- jest TDD
- react + storybook + emotion ui lib (babel)
  - /example with tree shaking
- jwt auth (access/refresh tokens, short lived)
- fe + be api + db = docker compose
  - manage diff ports with [nginx](https://gist.github.com/soheilhy/8b94347ff8336d971ad0)?
- infinite scroll
- hyperapp v2

## Ideas

- movie reviews
- electronics store
- chat app
- book store / library
- bank
- blog
- forum
- airport
- animal species
- transformers
- TWD

## Other

- video streaming platform
- social media platform
- news website
- reddit-like site
- instagram clone

## Inspiration

- [awesome-app-ideas](https://github.com/tastejs/awesome-app-ideas)
- [flaviocopes](https://flaviocopes.com/sample-app-ideas/)


text:
[Home](./index.md) > [prosemirror-suggest](./prosemirror-suggest.md) > [SuggestStateMatchParams](./prosemirror-suggest.suggeststatematchparams.md)

## SuggestStateMatchParams interface

A parameter builder interface describing match found by the suggest plugin.

Signature:

```typescript
export interface SuggestStateMatchParams
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [match](./prosemirror-suggest.suggeststatematchparams.match.md) | SuggestStateMatch | The match that will be triggered. |

repository: tomas-c/remirror

repo_name: tomas-c/remirror


text:
# No Longer Supported

# Flask-Angular-ES6-Webpack-Boilerplate
This is a boilerplate project for starting an application with flask and angular using webpack and es6

To start the project, clone this repo and run:
```text
pip install -r requirements.txt
```
This will install flask.

Then run:
```text
"npm install"
```
in the project root directory, this will allow webpack to compile and concatenate all the dependencies and listen to all the changes you make. Make sure you have webpack exposed globally so the command can be accessed through the command line.

In a separate terminal, run:
```text
python server.py
```
This will fire up the flask server.


text:
---
title: .sqliterc
category: sqlite
tags:
- databases
- sqlite
output: dot_sqliterc
---

# ~/.sqliterc

> Default configurations imported by sqlite3 sessions

## .headers on

By enabling headers, all queries that return data will include column names, instead of just unlabelled data.

```bash
.headers on
```

## .mode line

By defaulting to line mode, results will be returned with a newline between each result.

Without this, results will be returned squished into one long line. For large tables, this can be borderline unreadable.

```bash
.mode line
```

repository: marcus-crane/dotfiles

gha_language: Shell

repo_name: marcus-crane/dotfiles


text:
# Errors

<aside class="notice">This error section is stored in a separate file in `includes/_errors.md`. Slate allows you to optionally separate out your docs into many files...just save them to the `includes` folder and add them to the top of your `index.md`'s frontmatter. Files are included in the order listed.</aside>

The Kittn API uses the following error codes:

Error Code | Meaning
---------- | -------
400 | Bad Request -- Your request is inconsistent
401 | Unauthorized -- Your username/password of cookie is wrong
403 | Forbidden -- You don't have the rights to perform this action
404 | Not Found -- The requested resource doesn't exist
405 | Method Not Allowed -- You tried to access a resource with an invalid method
406 | Not Acceptable -- You requested a format that is not supported?
418 | I'm a teapot -- The all time classic :-)
500 | Internal Server Error -- We had a problem with our server. Try again later.
503 | Service Unavailable -- We're temporarially offline for maintenance. Please try again later.

repository: mebster/slate

repo_name: mebster/slate


text:
---
author: slowe
comments: true
date: 2007-04-27 10:27:24+00:00
layout: post
slug: vmworld-2007-proposal-submitted
title: VMworld 2007 Proposal Submitted
wordpress_id: 448
categories: Information
tags:
- Virtualization
- VMware
---

I just finished submitting my proposal for a VMworld 2007 presentation. When I first came up with the idea for this presentation, I thought it was a great idea, but the more that I worked with it the less enamored I became of it. So instead of the presentation being a "how to" on how to use this specific functionality, it became more of a discussion of advantages versus disadvantages of going down that route. I have no idea how the proposal will be received by the VMworld presentation committee, but I figured I should at least give it a try. After all, the worse that can happen is for them to say No, right?

repository: piyush-imad/gitTutorial

repo_name: piyush-imad/gitTutorial


text:
[Tiny Tiny RSS](https://git.tt-rss.org/git/tt-rss) is a self-hosted web-based RSS feed reader.

This docker config uses [this image](https://hub.docker.com/r/linuxserver/tt-rss/) from [LinuxServer.io](https://LinuxServer.io)

# Setup

This relies on my [base docker services](https://github.com/StarlitGhost/selfhost-base) and
[postgres](https://github.com/StarlitGhost/selfhost-postgres).
You'll want to symlink selfhost-base's .env file into this project's directory.

With postgres running you'll want to run the following to create an empty database:

`docker exec -it postgres createdb -U docker ttrss`

Once that's done you can just spin it up with `docker-compose up -d`. The remainder of the setup is done online at `rss.${DOMAIN_BASE}`

repository: StarlitGhost/selfhost-ttrss

repo_name: StarlitGhost/selfhost-ttrss


text:
# s2i-java-maven-example

This S2I example is intentionally NOT using Spring Boot, Vert.x, Dropwizard, Wildfly Swarm or whatever other simple "fat JAR" (non-WAR/EAR) Java
server framework, but for clarity simply uses the simplest possible Java server application with a main() class.  You can easily apply this example to whatever standalone Java application you want to container-ize with S2I.  (We're using the Java built-in com.sun.net.httpserver.HttpServer; *JUST* for illustration of S2I.)

## Local

For local building, install s2i either from source https://github.com/openshift/source-to-image/releases/ or e.g. via:

    sudo dnf install source-to-image

Now to build the simplest possible Java server with OpenShift Source-To-Image (S2I) using the fabric8io-images/s2i builder:

    s2i build https://github.com/vorburger/s2i-java-example fabric8/s2i-java vorburger:s2i-java-example

or

    git clone https://github.com/vorburger/s2i-java-example ; cd s2i-java-example
    s2i build --copy . fabric8/s2i-java vorburger:s2i-java-example

_NB The `--copy` ensures that the latest content of the current directory and not only it's commited .git content is used ([see S2I #418](https://github.com/openshift/source-to-image/issues/418))._

Now run it like this:

    docker run -p 8080:8080 vorburger:s2i-java-example

and see "hello, world" when accessing http://localhost:8080 - it works!

## OpenShift

To do the same as above directly inside your OpenShift instance like this:

    oc new-app fabric8/s2i-java~https://github.com/fabric8io-images/s2i --context-dir=java/examples/maven
    oc expose svc/s2i-java-example --port=8080
    oc status
    minishift openshift service s2i-java-example --in-browser

_NB that you cannot really build from "the latest sources from the local filesystems", because there is no `s2i build --copy` equivalent; attempting to do e.g. `oc new-app fabric8/s2i-java~.` just fetches from the first git remote of `./.git` ... :-(_

## Advanced

### Container options

All JVM options documented on https://github.com/fabric8io-images/s2i/tree/master/java/images/centos
are typically specified in [`.s2i/environment`](.s2i/environment), but  for quick testing can obviously also be specified on the `docker run` CLI like so:

    docker run -e "JAVA_MAIN_CLASS=ch.vorburger.openshift.s2i.example.Server" -p 8080:8080 vorburger:s2i-java-example

### fabric8io-images/s2i self build locally and in OpenShift

If you want to use latest fabric8/s2i-java from source instead of an older image on hub.docker.com, then you can do that.  Here's how for local Docker:

    docker build https://github.com/fabric8io-images/s2i.git#master:java/images/centos

or:

    git clone https://github.com/fabric8io-images/s2i.git
    cd java/images/centos
    docker build . -t fabric8/s2i-java

and inside OpenShift:

    oc new-build https://github.com/fabric8io-images/s2i.git --context-dir=java/images/centos

_NB As above, you cannot really build from "the latest sources from the local filesystems", but you can push in-development changes to a remote and test that, like this:_

    oc new-build https://github.com/YOURID/s2i.git#GITBRANCH --context-dir=java/images/centos

and then test using that like this:

    oc new-app s2i~https://github.com/vorburger/s2i-java-example

### How to clean up

    oc delete imagestream s2i-java
    oc delete imagestream s2i-java-example
    oc delete build s2i-java-example-1
    oc delete buildconfig s2i-java-example
    oc delete deploymentconfig s2i-java-example
    oc delete service s2i-java-example

## TODO points

* Why isn't it incremental?  Keeps re-downloading Maven basics, every time..
* Support Gradle!
* Monitoring..
* Sources should not be runtime container?!

## More background

* https://github.com/fabric8io-images/s2i
* https://github.com/fabric8io-images/s2i/tree/master/java/images/centos
* https://github.com/fabric8io-images/s2i/issues/112
* https://github.com/openshift/source-to-image


text:
n# WinJS-Win8.1-App
This project consists of a [WinJS](https://github.com/winjs/winjs) demonstration application for Windows and Windows Phone 8.1 (or better), the PowerPoint presentation from the San Antonio .NET User Group session where the demo app was used, and instructions for getting everything working on your local machine.

## Project Notes
This demo application was built using [Visual Studio 2015](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx) and is intended for use within that environment.  Also, the samples use a WebAPI service as an interface to Microsoft's sample Adventure Works database.  While it's possible to get the application to build and run without Visual Studio or the Adventure Works database, doing so is beyond the scope of this README file.

## Installation
You'll need to do a couple things to get the sample application working in your environment.

#### 1. Close the project repository:
```
git clone https://github.com/Zer0fluX/WinJS-Win8.1-App.git
```

#### 2. Grab the AdventureWorksLT2012 sample database from CodePlex:
```
http://msftdbprodsamples.codeplex.com/
```
To restore the database locally open SQL Server Management Studio, right-click on the *Databases* node, and choose **Restore Database**.

#### 3. Configure the application:
Open the AWDemo solution, expand the AWDemo.Web.API, and edit the connection string in the project's **Web.config** file.  Add your SQL Server UserID and Password:
```XML
<connectionStrings>
    <add name="AWDemoContext"
      connectionString="data source=localhost;initial catalog=AdventureWorksLT2012;persist security info=True;user id=<YourUserID>;password=<YourPassword>;MultipleActiveResultSets=True;App=EntityFramework"
      providerName="System.Data.SqlClient" />
</connectionStrings>
```

## Build and Run
You need to start the web service before you run the WinJS applications.

1. First, build the entire solution (**ctrl+shift+B**)
2. Set the AWDemo.Web.API project as the startup project
3. Run the WebAPI service (**ctrl+F5**)

Run the Windows app:

1. Set the AWDemo.Windows project as the startup project
2. Run the application with either **ctrl+F5** or **F5**

Run the Windows Phone app:

1. Set the AWDemo.WindowsPhone project as the startup project
2. Run the application with either **ctrl+F5** or **F5**

gha_language: C#


text:
# IQA Metric to Sow Information

What do the different IQA metrics actually tell us about the differences in snow cover between two years? What are the ramifications of the similarity analysis? To determine what these IQA metrics are telling us we will examine two landscape endmembers from our subsets: the CLPX Outcrops and HV Watertrack zones. We will look at IQA results from the least similar pairs of years for each zone.

###### Figure 1. Least Similar Snow Depth Pattern Pair for CLPX Outcrops
![alt text](../subsets/clpx_outcrops/results/iqa/2012_v._2018.png)

###### Figure 2. Least Similar Snow Depth Pattern Pair for HV Watertracks
![alt text](../subsets/hv_watertrack/results/iqa/2018_v._2016.png)

## Normalized Root Mean Square Error (NRMSE)

NRMSE will ping the maxima of the differences between the two patterns. In more dissected environments, these are usually where the amount of snow in nonfillling drifts are in disagreement. The nonfilling drift traps tend to be steep cutbanks or rocky outcrops where corniced drift ends are typical. When the flux of two different winters are substantially the different, you can get a very deep drift in one year, but in the next year that flux is not adequate and there is very little drift snow. The result is a strong (or in our case, actually a weak) NRMSE signal. We see that NRMSE is biased towards the nonfilling drifts, but does tell us the location and magntiude of the differences within these drifts. NRMSE won't tell us if different structures, or drift/scour units, do exist in each scene.

###### Figure with Profiles
###### 10 least similar (NRMSE) points.
![alt text](../subsets/clpx_outcrops/results/iqa/2012_v._2018_nrmse_pts.png)

###### 10 least similar (NRMSE) points.
![alt text](../subsets/hv_watertrack/results/iqa/2018_v._2016_nrmse_pts.png)

## Structural SIMilarity Index (SSIM)
SSIM was created under the assumption that the human visual system very tuned in to structural information in scenes - and tundra snow patterns of drift and scour are highly structured. Snow depths are locally correlated within the drift and scour units. SSIM is a technique of comparing these structures, rather than a point-wise comparison like NRMSE. Structural information are the attributes that represent the structure of objects in a scene, independent of the local average luminance and contrast. In the world of snow depth patterns, luminance is the mean depth, and contrast is the standard deviation of depth. Snow pattern structures are locally compared after the input substracting the mean local depth and normalizing by the mean local standard deviations.

###### 10 least similar (SSIM) points.
![alt text](../subsets/clpx_outcrops/results/iqa/2012_v._2018_ssim_pts.png)
![alt text](../subsets/hv_watertrack/results/iqa/2018_v._2016_ssim_pts.png)

## CW-SSIM

###### 10 least similar (SSIM) points.
![alt text](../subsets/clpx_outcrops/results/iqa/2012_v._2018_cwssim_pts.png)
![alt text](../subsets/hv_watertrack/results/iqa/2018_v._2016_cwssim_pts.png)

## GMS

###### 10 least similar (GMS) points.
![alt text](../subsets/clpx_outcrops/results/iqa/2012_v._2018_gms_pts.png)
![alt text](../subsets/hv_watertrack/results/iqa/2018_v._2016_gms_pts.png)

repository: charparr/parr-thesis

repo_name: charparr/parr-thesis