text:
# Reloader

[![GoDoc](https://godoc.org/gitlab.com/stop.start/go-chrome-remote-reload?status.svg)](https://godoc.org/gitlab.com/stop.start/go-chrome-remote-reload)
[![Go Report Card](https://goreportcard.com/badge/gitlab.com/stop.start/go-chrome-remote-reload)](https://goreportcard.com/report/gitlab.com/stop.start/go-chrome-remote-reload)

This library uses Chrome's remote debugging which allows to reload tabs remotely.

## Installation

Make sure you have a correctly configured Go environment. See [here](http://golang.org/doc/install.html) for instructions.

Then, to install:

```shell
go get gitlab.com/stop.start/go-chrome-remote-reload
```

## Getting started

RemoteConfig structure configures Chrome's remote debugging protocol and is used to open a new window as well as reload and close tabs.
The remote debugging protocol can be used also with Chromium or any Chrome-like browser supporting this protocol.
See [documetation](https://godoc.org/gitlab.com/stop.start/go-chrome-remote-reload#RemoteConfig) for details on the configuration.

The following will get the default config and open the browser on localhost:8080:

```go
package main

import(
    "gitlab.com/stop.start/go-chrome-remote-reload"
)

rc := NewRemoteConfig()
rc.RemoteChrome()
```

To reload the only opened tab ReloadAllTabs is the easiest:

```go
rc.ReloadAllTabs()
```

## Examples

Use chromium instead of chrome:

```go
rc := RemoteConfigDefault()
rc.ExecName = "chromium"
rc.RemoteChrome()
```

Open two tabs and reload one of them:

```go
rc := reloader.NewRemoteConfig()

rc.Addr = "google.com"
rc.Port = 80
rc.RemoteChrome()

rc.Addr = "github.com"
rc.Port = 80 // not required since already set but more readable.
rc.RemoteChrome()

rc.ReloadTab("github.com/")
```

Reload tabs under same path:
Here only github.com/golang/go won't reload.

```go
rc := reloader.NewRemoteConfig()

rc.Addr = "github.com"
	rc.Port = 80
	rc.Route = "/golang/go"
	rc.RemoteChrome()

	rc.Addr = "github.com"
	rc.Port = 80
	rc.Route = "/golang/go/tree/master/misc"
	rc.RemoteChrome()

	rc.Addr = "github.com"
	rc.Port = 80
	rc.Route = "/golang/go/tree/master/test"
	rc.RemoteChrome()

rc.ReloadTab("tree/")
```

Close all tabs which also means closing Chrome :

```go
rc.CloseAllTabs()
```

repository: stop-start/go-chrome-remote-reloader

repo_name: stop-start/go-chrome-remote-reloader


text:
# cutlass
convenient knot database

Technologies used:
  * MySQL -- database backend
  * Nginx -- proxy server
  * hunchentoot -- Lisp web-server, doing all the heavy work

Nginx + hunchentoot is setup using various files in /auxfiles/ subdirectory,
more or less as explained at https://zaries.wordpress.com/2010/11/09/lisp-web-server-from-scratch-using-hunchentoot-and-nginx/

license: MIT

repository: mabragor/cutlass

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: mabragor/cutlass


text:
# pystatping

[![image][]][1]

[![image][2]][3]

[![Documentation Status][]][4]

Statping API client library. Built on top of [ApiDocs][]

-   Free software: Apache Software License 2.0
-   Documentation: <https://pystatping.readthedocs.io>.

## Features

-   TODO

## Credits

This package was created with [Cookiecutter][] and the
[audreyr/cookiecutter-pypackage][] project template.

  [image]: https://img.shields.io/pypi/v/pystatping.svg
  [1]: https://pypi.python.org/pypi/pystatping
  [2]: https://img.shields.io/travis/danielpalstra/pystatping.svg
  [3]: https://travis-ci.com/danielpalstra/pystatping
  [Documentation Status]: https://readthedocs.org/projects/pystatping/badge/?version=latest
  [4]: https://pystatping.readthedocs.io/en/latest/?badge=latest
  [ApiDocs]: https://documenter.getpostman.com/view/1898229/SzmfXwi4
  [Cookiecutter]: https://github.com/audreyr/cookiecutter
  [audreyr/cookiecutter-pypackage]: https://github.com/audreyr/cookiecutter-pypackage

repository: danielpalstra/pystatping

repo_name: danielpalstra/pystatping


text:
# vampire
Theme Ghost Responsive

## How to use
clone this theme
```
git clone https://github.com/creativefull/vampire
```
then paste on your ghost project in directory content/themes/

repository: creativefull/vampire

repo_name: creativefull/vampire


text:
# Secure Wallet
        A smart contract that handles ERC20 compatible tokens and ether with owner access control.
    Contract functionality can be secured further with a basic commitment scheme using a hash that only permits
    the owner to execute functions/value transfers provided that they prove they know the key (pre-image) that creates
    the hash (image).  Once the key is exposed to verify the hash in the locked script and execute the contract,
    a new hash must be provided from a new, unknown key in order to ensure a locked contract state.

        In terms of practicality, the use of a commitment scheme to further restrict access to funds is
    used here as an extra security measure if a user's private key is compromised.  Private blockchains with
    trusted human interaction can deploy biometrics or 2FA to supply the commit/reveal key material on top
    of the computer/machine holding the signing key.

        Furthermore, quantum computers will eventually break current asymmetric algorithms.  If asymmetric keys can be
    factored decentralization becomes irrelavent because trust is broken at the most fundamental level.

        Accounts associated to asym key pairs can still be drained of funds(gas) which need to fuel signed contract
    transactions for commit/reveal schemes. We need the ability for wallet contracts to pay for gas so that a signed
    transaction can signal an embedded fee to miners/node operators.  Private keys would not need to control any ETH to pay
    for fees on signed contract transactions.

repository: blackboxsystems/Ethereum

path: /Secure Wallet/README.md

repo_name: blackboxsystems/Ethereum


text:
---
layout: post
category: blog
tags:  [entrepreneurship]
title: "In a nutshell how does your startup win?"

firstpublished:     "tumblr"
firstpublishedlink: "http://richardjordan.tumblr.com"
---
{% include JB/setup %}

Just reposting a comment I made on the Lean Startup Circle. In a nutshell the writer was asking how you you build a solid startup that can come out on top when barriers to starting companies are so low, leading to increased competition. The context being assuming one is following a Lean Startup / Customer Development / Agile Development methodology, or similar. My thoughts:

I think what you’re asking about comes down to execution. There are very rarely truly unique start-up ideas. One always has competitors.

> You win by…
>
> …not having a team that flames out due to internal squabbles (big
> …having a specific well-seeded route-to-market ("something viral" doesn’t cut it)
> …building a corporate culture that attracts the best talent for above
>
> Note - I don’t mention features and functionality because that’s
> something I think you learn from your customers as you nail down your product/market fit.


text:
{% capture api_resource %}{% include api-resource.md %}{% endcapture %}

{% if api_resource == "paymentorders" %}
    {% assign product="Payment Menu" %}
{% else %}
    {% assign product="Seamless View" %}
{% endif %}

## {{ product }} Events

During operation in the {{ product }}, several events can occur. They are
described below.

{% include alert.html type="warning" icon="info" header="Event Overrides"
body="Adding an event handler to one of the following events **overrides** the
default event handler, meaning your custom event handler will have to do what
the default event handler did. If you don’t, the behavior of the event is going
to be undefined. Just adding an event handler for logging purposes is therefore
not possible, the event handler will have to perform some functionality similar
to the event handler you are overriding." %}

### `OnAborted`

This event triggers when the payer clicks "Abort" on the redirect page link in
the Payment Menu. It will be raised with the following event argument object:

{:.code-view-header}
**onAborted event object**

```json
{
    "event": "OnAborted",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "redirectUrl": "https://example.com/cancelled"
}
```

{:.table .table-striped}
| Field         | Type     | Description                                                     |
| :------------ | :------- | :-------------------------------------------------------------  |
| `event`       | `string` | The name of the event raised.                                   |
| `paymentOrder`          | `string` | {% include field-description-id.md %}                 |
| `redirectUrl` | `string` | The URL the user will be redirect to after a cancelled payment. |

### `onCheckoutLoaded`

This event triggers when the payment menu is rendered after being opened. If no
callback method is set, no handling action will be done. It will be raised with
the following event argument object:

{:.code-view-header}
**onCheckoutLoaded event object**

```json
{
    "event": "onCheckoutLoaded",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "bodyHeight": "[clientHeight of iframe content]"
}
```

{:.table .table-striped}
| Field        | Type     | Description                                                           |
| :----------- | :------- | :--------------------------------------                               |
| `event`      | `string` | The name of the event raised.                                         |
| `paymentOrder`         | `string` | {% include field-description-id.md %}                       |
| `bodyHeight` | `string` | The height of the client's iframe content.                            |

### `onCheckoutResized`

This event triggers every time a reconfiguration leads to resizing of the
payment menu.  If no callback method is set, no handling action will be done. It
will be raised with the following event argument object:

{:.code-view-header}
**onCheckoutResized event object**

```json
{
    "event": "onCheckoutResized",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "bodyHeight": "[clientHeight of iframe content]"
}
```

{:.table .table-striped}
| Field        | Type     | Description                                                           |
| :----------- | :------- | :--------------------------------------                               |
| `event`      | `string` | The name of the event raised.                                         |
| `paymentOrder`     | `string` | {% include field-description-id.md %}                           |
| `bodyHeight` | `string` | The height of the client's iframe content.                            |

### `onError`

This event triggers during terminal errors or if the configuration fails
validation. If no callback method is set, no handling action will be done. It
will be raised with the following event argument object:

{:.code-view-header}
**onError event object**

```json
{
    "event": "onError",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "details": "English descriptive text of the error"
}
```

{:.table .table-striped}
| Field       | Type     | Description                                                            |
| :---------- | :------- | :-------------------------------------------------------------         |
| `event`     | `string` | The name of the event raised.                                          |
| `paymentOrder`        | `string` | {% include field-description-id.md %}                        |
| `details`   | `string` | A human readable and descriptive text of the error.                    |

### `onEventNotification`

This event triggers whenever any other public event is called. It does not
prevent their handling. `onEventNotification` is raised with the
following event argument object:

{:.code-view-header}
**onEventNotification event object**

```json
{
    "event": "OnEventNotification",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "sourceEvent": "OnCheckoutLoaded | OnCheckoutResized | OnError |
     OnPayerIdentified | OnInstrumentSelected | OnPaid | OnAborted |
     OnOutOfViewRedirect | OnTermsOfServiceRequested | OnOutOfViewOpen"
}
```

{:.table .table-striped}
| Field         | Type     | Description                                                |
| :--------     | :------- | :--------------------------------------------------------- |
| `event`     | `string` | The name of the event raised.                                |
| `paymentOrder`        | `string` | {% include field-description-id.md %}              |
| `sourceEvent` | `string` | A human readable and descriptive text with the event name. |

### `onInstrumentSelected`

This event triggers when a user actively changes payment instrument in the
Payment Menu. If no callback method is set, no handling action will be done. It
will be raised with the following event argument object:

{:.code-view-header}
**onInstrumentSelected event object**

```json
{
    "event": "onInstrumentSelected",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "instrument": "creditcard | vipps | swish | invoice",
}
```

{:.table .table-striped}
| Field        | Type     | Description                                                           |
| :----------- | :------- | :--------------------------------------                               |
| `event`     | `string` | The name of the event raised.                                          |
| `paymentOrder`        | `string` | {% include field-description-id.md %}                        |
| `instrument` | `string` | `Creditcard`, `vipps`, `swish`, `invoice`. The instrument selected by
the user.                                                                                |

### `onOutOfViewRedirect`

This event triggers when a user is redirected to a separate web page, like
3D-Secure or BankID signing. If no callback method is set, you will be
redirected to the relevant url. It will be raised with the following event
argument object:

{:.code-view-header}
**onOutOfViewRedirect event object**

```json
{
    "event": "onOutOfViewRedirect",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "redirectUrl": "https://example.com/external"
}
```

{:.table .table-striped}
| Field        | Type     | Description                                                           |
| :----------- | :------- | :--------------------------------------                               |
| `event`      | `string` | The name of the event raised.                                         |
| `paymentOrder`         | `string` | {% include field-description-id.md %}                       |
| `redirectUrl` | `string` | The external URL where the user will be redirected.                  |

### `onOutOfViewOpen`

This event triggers when another tab is opened in the browser, like the
information page for onboarding of stored cards, or Swedbank Pay's owner TOS. It
cannot be opened as a modal since the payer needs to see that this is a link on
Swedbank Pay's domain. If no callback method is set, the url will be opened in a
new tab. It will be raised with the following event argument object:

{:.code-view-header}
**onOutOfViewRedirect event object**

```json
{
    "event": "onOutOfViewRedirect",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "openUrl": "https://example.com/external"
}
```

{:.table .table-striped}
| Field        | Type     | Description                                                           |
| :----------- | :------- | :--------------------------------------                               |
| `event`      | `string` | The name of the event raised.                                         |
| `paymentOrder`         | `string` | {% include field-description-id.md %}                       |
| `openUrl`    | `string` | The external URL where the user will be redirected.                   |

### `OnPaid`

This event triggers when the payer successfully completes or cancels the
payment. It will be raised with the following event argument object:

{:.code-view-header}
**onPaid event object**

```json
{
    "event": "OnPaid",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "redirectUrl": "https://example.com/success"
}
```

{:.table .table-striped}
| Field         | Type     | Description                                                         |
| :------------ | :------- | :-------------------------------------------------------------      |
| `event`       | `string` | The name of the event raised.                                       |
| `paymentOrder`          | `string` | {% include field-description-id.md %}                     |
| `redirectUrl` | `string` | The URL the user will be redirect to after completing the payment.  |

{% if documentation_section contains "checkout-v3/starter" %}

### `onPayerIdentified`

This event triggers when a payer has been identified. It will be raised with the
following event argument object:

{:.code-view-header}
**onPayerIdentified event object**

```json
{
    "event": "OnPayerIdentified",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
    "payer": "/psp/paymentorders/{{ page.payment_id }}/payers",
}
```

{:.table .table-striped}
| Field       | Type     | Description                                                            |
| :---------- | :------- | :-------------------------------------------------------------         |
| `event`     | `string` | The name of the event raised.                                          |
| `paymentOrder`        | `string` | {% include field-description-id.md %}                        |
| `payer`     | `string` | The `url` of the resource containing information about the payer.      |

### `onPayerUnidentified`

This event triggers when a payer clicks "Not you" when identified with Remember
Me. It will be raised with the following event argument object:

{:.code-view-header}
**onPayerUnidentified event object**

```json
{
    "event": "OnPayerUnidentified",
    "paymentOrder": { "id": "/psp/paymentorders/{{ page.payment_id }}" },
}
```

{:.table .table-striped}
| Field           | Type     | Description                                                  |
| :-------------  | :------- | :------------------------------------------------------      |
| `event`         | `string` | The name of the event raised.                                |
| `paymentOrder`  | `string` | {% include field-description-id.md %}                          |

{% endif %}

### `OnTermsOfServiceRequested`

This event triggers when the user clicks on the "Display terms and conditions"
link. If no callback method is set, terms and conditions will be displayed in an
overlay or a new tab. It will be raised with the following event argument
object:

{:.code-view-header}
**onTermsOfServiceRequested event object**

```json
{
    "origin": "owner",
    "termsOfServiceUrl": "https://example.com/terms-of-service"
}
```

{:.table .table-striped}
| Field     | Type     | Description                                                                             |
| :-------- | :------- | :-------------------------------------------------------------------------------------- |
| `origin`  | `string` | `owner`, `merchant`. The value is always `merchant` unless Swedbank Pay hosts the view. |
| `termsOfServiceUrl` | `string` | The URL containing Terms of Service and conditions.                                     |

branch_name: refs/heads/develop

gha_language: Shell

gha_license_id: MIT


text:
I think it is more interesting to build a system that works for hundreds of millions of people

http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-August/009902.html

repository: eragmus/quotes

repo_name: eragmus/quotes


text:
# fcs-platform

This is the platform support for my Raspberry Pi-based flight controller.

Hardware:

 - Raspberry Pi Model B
 - Pololu Micro Maestro serial servo controller
 - CH Robotics UM-6 and Pololu GPS GP-9 via Pololu USB-to-serial adapter

# TODO

 - Get CMake to export a statically linkable library
 - Delete `main.c`
 - Get sending commands to the IMU to work properly
 - Get IMU health report to be more meaningful (ensure has GPS lock at least)
 - Write some kind of tests

# DONE

 - Add Rpi tools repository as a submodule rather than cloning it into toolchain Docker image
 - Connect to and read from IMU
 - Create C API for driving servos
 - Create C API for reading IMU
 - Get Rpi to wiggle a servo using Maestro example bash script
 - Ship source code from laptop to Rpi
 - Set up cross compiler
 - Cross-compile, deploy binary, and run on Rpi in one command
 - Get Rpi to wiggle a servo using Maestro example C code
 - Bring `platform/src` to root
 - Move `src/maestro` to `src/platform/servo_controller`

# MISTAKES

 - Get Docker on Rpi *dumb idea*
 - Build minimal development container with compiler *needed a cross-compiler instead*
 - Compile and run source code within development container *run a binary on the Rpi natively*

# Setup

## Put Linux on Rpi

Install Arch Linux on an SD card. Make sure to resize the partition to take up the available space. (Use `fdisk` to rewrite the partition table and `resize2fs` to do the actual resizing. Google it.)

## Put Docker on your laptop

Make sure you've got Docker on your laptop and your `docker` command is set up to talk to a Docker daemon. On OS X, I use `boot2docker`. Ensure `boot2docker` is up and running;

    $ boot2docker up

## Use the cross-compiler

The core build script builds a Docker container with a compiler toolchain that targets the Rpi and then invokes compiler.

    $ ./build.sh

The first time you run this it will take a while to build the docker image. Successive runs will be faster.

## Run the program

We `scp` the resulting binary onto the Rpi (make sure your public key is on the Rpi so you don't have to type your password) and then run it.

    ./deploy.sh<EMAIL_ADDRESS>
Congratulations, you're hacking!

For some reason the program doesn’t always die on the Pi when you expect it to. You might need to:

    $ ssh<EMAIL_ADDRESS>killall fcs-platform

# Notes about connecting to the Pi on OS X

I wanted to be able to work on the Pi without having to plug it into a router, rather, I wanted to plug it into my Macbook Air directly via ethernet and the Thunderbolt ethernet adapter. OS X Internet Sharing was being a contrarian as I attempted to do this. After much wailing and gnashing of teeth I arrived at this process:

 1. Disable Internet Sharing
 1. Delete the following files:
    `/Library/Preferences/SystemConfiguration/com.apple.nat.plist`
    `/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist`
    `/Library/Preferences/SystemConfiguration/com.apple.network.identification.plist`
    `/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist`
  1. Reboot.
  1. Re-enable Internet Sharing.
  1. It worked!

Create `/etc/bootptab` to cause the Pi to always get the same IP address:

    %%
    raspberry-pi 1 b8:27:eb:c:45:4f <IP_ADDRESS>

Do not go about trying to hand-edit `/etc/bootpd.plist`, because the Internet Sharing dialog in System Preferences is meant to stomp on that file. Tailing `/var/log/system.log` was instructive.

I also modified `/System/Library/LaunchDaemons/bootps.plist` to add the `-dv` flag so `bootpd` would emit more interesting log messages:

    ...
    <key>ProgramArguments</key>
    <array>
        <string>/usr/libexec/bootpd</string>
        <string>-dv</string>
    </array>
    ....

# Notes about talking to the GPS

TIL that this is useful for `cat`-ing the raw output from the GPS:

    $ stty -F /dev/ttyUSB0 57600 raw

repository: bvanderveen/fcs-platform

repo_name: bvanderveen/fcs-platform


text:
# Docker image for http://www.sql-ex.ru/ exercises
This repository contains Dockerfile to build an image based on microsoft/mssql-server-linux and apply sql-ex database creation scripts. It allows you to solve sql-ex exercises locally and get benefits from syntax highlighting in your IDE and so on.

## Prerequisites
You need to install [Docker](https://www.docker.com/)

## How to build an image
1. Clone this repository.
2. Build an image:
```
$ cd sql-ex-docker
$ docker build --rm --tag sql-ex .
```
You have to build it once and then you may use it on daily basis.

## How to run and connect to SQL Server in the container
1. You have to run the container first:
```
$ docker run --rm -p 14330:1433 --name sql-ex -d sql-ex
```
2. Now you can connect to SQL Server:
- Host: localhost
- Port: 14330
- Login: sa
- Password: Pa$$w0rd

To stop the running container with SQL Server you may use command:
```
$ docker stop sql-ex
```

repository: rkinwork/sql-ex-docker

repo_name: rkinwork/sql-ex-docker


text:
---
title:  "Database(8) -- Design Theory"
tags: Database
---

## Closing Sets of Functional Dependencies

If we are given a set of FD's S, then any set of FD's equivalent to S is said to be a **basis** for S.

A minimal basis:

1. All the FD's in B have singleton right sides.
2. If any FD is removed from B, the result is no longer a basis.
3. If for any FD in B we remove one or more attributes from the left side of F, the result is no longer a basis.

## Design of Relational Database Schemas

### Anomalies

Problems such as redundancy that occur when we try to cram too much into a single relation are called anomalies.

1. Redundancy
2. Update Anomalies
3. Deletion Anomalies

### Decomposing Relations

Given a relation R(A1,A2,...,An), we may decompose R into two relations S(B1,B2,...,Bm) and T(C1,C2,...,Ck) such that:

1. {A1,A2,...,An} = {B1,B2,...,Bm} U {C1,C2,...,Ck}
2. S = π_B1,B2,...,Bm(R)
3. T = π_C1,C2,...,Ck(R)

### Boyce-Codd Normal Form (BCNF)

A relation R is in BCNF if and only if: whenever there is a nontrivial FD A1,A2,...,An -> B1B2...Bm for R, it is the case that {A1, A2,..., An} is a superkey for R.

That is, the left side of every nontrivial FD must be a superkey.

Any two-attribute relation is in BCNF.

### Decomposition into BCNF

Look for a nontrivial FD A1A2...An -> B1B2...Bm that violates BCNF; i.e., {A1A2...An} is not a superkey.

#### Algorithm 3.20: BCNF Decomposition Algorithm

INPUT: A relation R0 with a set of functional dependecies S0.

OUTPUT: A decomposition of R0 into a collection of relations, all of which are in BCNF.

METHOD: The following steps can be applied recursively to any relation R and set of FD's S. Initially, apply them with R = R0 and S = S0.
1. Check whether R is in BCNF. If so, nothing more needs to be done. Return {R} as the answer.
2. If there are BCNF violations, let one be X -> Y. Use Algorithm 3.7(closure of a Set of Attributes) to compute X+. Choose R1 = X+ as one relation schema and let R2 have attributes X and those attributes of R that are not in X+. 如果某一组属性不是superkey，但它们决定了另外一组属性，即构成了不应该存在的依赖关系，则先算出这组属性的closure，作为第一张表；再把这组属性和其他所有非closure属性放在一起作为第二张表。
3. Use Algorithm 3.12 to compute the sets of FD's for R1 and R2; let these be S1 and S2, respectively.
4. Recursively decompose R1 and R2 using this algorithm. Return the union of the results of these decompositions.

#### Algorithm 3.12: Projecting a Set of Functional Dependencies.

INPUT: A relation R and a second relation R1 computed by the projection R1 = π_L(R). Also, a set of FD's S that hold in R.

OUTPUT: The set of FD's that hold in R1.

METHOD:
1. Let T be the eventual output set of FD's. Initially, T is empty.
2. For each set of attributes X that is a subset of the attributes of R1, compute X+. This computation is performed with respect to the set of FD's S, and may involve attributes that are in the schema of R but not R1. Add to T all nontrivial FD's X -> A such that A is both in X+ and an attribute of R1.
3. Now, T is a basis for the FD's that hold in R1, but may not be a minimal basis. We may construct a minimal basis by modifying T as follows:

* If there is an FD F in T that follows from the other FD's in T, remove F from T.
* Let Y -> B be an FD F in T, with at least two attributes in Y, and let Z be Y with one of its attributes removed. If Z -> B follows from the FD's in T (including Y -> B), then replace Y -> B by Z -> B.
* Repeat the above steps in all possible ways until no more changes to T can be made.

gha_language: HTML


text:
# [Unoffiical GoT Trivia](http://alexa.amazon.com/#skills/amzn1.ask.skill.20c36fcb-b140-40b8-aecc-35f7d6e55613)
![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png) 0

To use the Unoffiical GoT Trivia skill, try saying...

* *Alexa launch fan trivia*

* *start new game*

* *I don't know that one*

Challenge yourself with some unofficial Game of Thrones trivia.
To start a game, you say, "Alexa launch fan trivia" and the game will start.
You will be asked a question and will be provided with options to choose as answer.
Respond with the number of the answer.
For example, say one, two, three, or four.

***

### Skill Details

* **Invocation Name:** fan trivia
* **Category:** null
* **ID:** amzn1.ask.skill.20c36fcb-b140-40b8-aecc-35f7d6e55613
* **ASIN:** B01M1M7H70
* **Author:** student
* **Release Date:** October 27, 2016 @ 02:45:46
* **In-App Purchasing:** No


text:
---
layout: default
---

# 1998-11-03 - IP: Privacy: Dangers of security measures

## Header Data

From: "Vladimir Z. Nuri"<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: aa42119bf8fa8c683d5fe0e0ac1ecfabb5b3e510fe710cdfc2b1792362d03514

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1998-11-03 00:21:07 UTC

Raw Date: Tue, 3 Nov 1998 08:21:07 +0800

## Raw message

```
{% raw  %}From: "Vladimir Z. Nuri"<EMAIL_ADDRESS>Date: Tue, 3 Nov 1998 08:21:07 +0800
To<EMAIL_ADDRESS>Subject: IP: Privacy: Dangers of security measures
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

From<EMAIL_ADDRESS>Subject: IP: Privacy: Dangers of security measures
Date: Sat, 31 Oct 1998 09:38:16 -0600
To<EMAIL_ADDRESS>
Source:  Federal Computer Week
http://www.fcw.com/pubs/fcw/1998/1026/web-epic-10-26-98.html

 OCTOBER 26, 1998 . . . 16:35 EST

 Privacy watchdog group warns about dangers of
 security measures

 BY HEATHER HARRELD<EMAIL_ADDRESS>
 The recommendations of a presidential commission for protecting the
nation's critical computer systems -- many of which are being launched by
various federal entities -- would expand government authority and lead to
civil liberty violations, according to a report released today by a privacy
think tank.

 The report, authored by the Electronic Privacy Information Center, asserts
that the expanded role of the Defense Department and the FBI required to
ward off perceived information warfare threats to the nation's critical
infrastructures would infringe upon various civil liberties, such as
freedom of speech, privacy protections and the Freedom of Information Act.

 Specifically, Wayne Madsen, senior fellow at EPIC and author of the
report, noted that the National Security Agency and other intelligence
agencies would have their roles expanded from collecting international
intelligence data to focusing efforts on domestic computer security.

 Traditionally, the NSA has been prohibited from playing a role in the
protection of unclassified computer security data. But because
infrastructure protection involves working closely with the private-sector
owners and operators of infrastructure, such as telecommunications
companies and banks, this role would be expanded.

 The report from the President's Commission on Critical Infrastructure
Protection supported the use of key-recovery encryption, a technology
mechanism strongly supported by the NSA that would allow law enforcement
officials to descramble encrypted data with a court order or other
authorization.

 It also suggests that the federal government create new classifications
for government information and provide federal agencies with expanded
latitude for classifying information, according to Madsen.

 "The intelligence community...has had its sights set on restricting access
to public information for years," Madsen said. "There's been a struggle
between NSA and civilian agencies over who will be responsible for
protecting unclassified information. NSA [in commission recommendations]
will become the de facto information security czar."

 But Jeffrey Hunker, director of the Critical Infrastructure Assurance
Office, which was created by President Clinton to carry out many of the
recommendations in the commission's report, said his office places First
Amendment and civil liberty concerns foremost in its work.

 "We are dealing with a new and evolving threat environment," Hunker said.
"Discussions about civil liberties need to recognize the fact that there
are new threats that pose real risks to Americans at home...and their way
of life."

Mail questions to<EMAIL_ADDRESS>Copyright 1998 FCW Government Technology Group
-----------------------
NOTE: In accordance with Title 17 U.S.C. section 107, this material is
distributed without profit or payment to those who have expressed a prior
interest in receiving this information for non-profit research and
educational purposes only. For more information go to:
http://www.law.cornell.edu/uscode/17/107.shtml
-----------------------

****************************************************
To subscribe or unsubscribe, email:
<EMAIL_ADDRESS>with the message:
     (un)subscribe ignition-point email@address

or (un)subscribe ignition-point-digest email@address
****************************************************
www.telepath.com/believer
****************************************************

{% endraw %}
```

## Thread

+ Return to [November 1998](/archive/1998/11)

+ Return to "["Vladimir Z. Nuri" <vznuri@netcom.com>](/authors/vladimir_z_nuri_vznuri_at_netcom_com_)"

+ 1998-11-03 (Tue, 3 Nov 1998 08:21:07 +0800) - IP: Privacy: Dangers of security measures - _"Vladimir Z. Nuri"<EMAIL_ADDRESS>


text:
# CAPS

## Description

CAPS Phase 1: Begin the build of an application for a company called CAPS - The Code Academy Parcel Service. In this sprint, we’ll build out a system that emulates a real world supply chain.

Tactically, this will be an event driven application that “distributes” the responsibility for logging to separate modules, using only events to trigger logging based on activity.

CAPS Phase 2 :
make socket connection .

CAPS Phase 3:
make queue msg

## Links

Pull Request: https://github.com/qusaiqeisi/CAPS/pull/2

Github Actions: https://github.com/qusaiqeisi/CAPS/runs/3393476593?check_suite_focus=true

Pull Request: https://github.com/qusaiqeisi/CAPS/pull/1

## test

![](img/testcaps.PNG)

![queue](img/labqueue.PN)

![queue](img/lab13.PNG)

## UML
![UML](img/uml.png)

repository: qusaiqeisi/CAPS

branch_name: refs/heads/main

gha_language: JavaScript

repo_name: qusaiqeisi/CAPS


text:
## Definition

A subset $S \subset M$ is called a *submanifold* of dimension $k$ if, for all $p \in S$, there exists a chart $(U,\varphi)$ such that $p \in (U,\varphi)$ and
$$
\varphi(U \cap S)=\varphi(U)\cap\mathbb{R}^k
$$

### Remarks

1. Charts $(U,\varphi)$ of $M$ with this property is called *submanifold charts* for $S$.
2. Here we have $k \leq m$, while $M$ is a manifold of dimension $m$.

path: /1. Manifolds/2.2 Submanifold.md

filename: 2.2 Submanifold.md


text:
---
hrs_structure:
  division: '1'
  volume: '5'
  title: '17'
  chapter: 291C
  section: 291C-24
type: hrs_section
tags:
  - Government
menu:
  hrs:
    identifier: HRS_0291C-0024
    parent: HRS0291C
    name: 291C-24 Persons riding animals or driving animal-drawn
weight: 48105
title: Persons riding animals or driving animal-drawn
full_title: 291C-24 Persons riding animals or driving animal-drawn
---
**[§291C-24] Persons riding animals or driving animal-drawn vehicles.** Every person riding an animal or driving any animal-drawn vehicle upon a roadway shall be granted all of the rights and shall be subject to all of the duties applicable to the driver of a vehicle by this chapter, except those provisions of this chapter which by their very nature can have no application. [L 1971, c 150, pt of §1]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby


text:
### [CVE-2017-12447](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-12447)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)

### Description

GdkPixBuf (aka gdk-pixbuf), possibly 2.32.2, as used by GNOME Nautilus 3.14.3 on Ubuntu 16.04, allows attackers to cause a denial of service (stack corruption) or possibly have unspecified other impact via a crafted file folder.

### POC

#### Reference
- https://github.com/hackerlib/hackerlib-vul/tree/master/gnome

#### Github
No PoCs found on GitHub currently.

repository: trickest/cve

repo_name: trickest/cve


text:
**Note:** Change logs for individual libraries are no longer maintained. For the most recent changes, reference the `CHANGELOG.md` file located at the workspace root.

---

# 5.0.3 (2022-02-04)

- Removed an outdated reference to entry components. [#90](https://github.com/blackbaud/skyux-tiles/pull/92)

# 5.0.2 (2022-01-27)

- Fixed the tile controls to have proper accessibility attributes. [#89](https://github.com/blackbaud/skyux-tiles/pull/89)

# 5.0.1 (2021-11-18)

- Added support for Prettier code formatting and updated the builder to support StackBlitz. [#87](https://github.com/blackbaud/skyux-tiles/pull/87)

# 5.0.0 (2021-10-01)

### New features

- Added support for Angular 12. [#81](https://github.com/blackbaud/skyux-tiles/pull/81)

### Breaking changes

- Removed `BrowserAnimationsModule` from the `imports` section of `SkyTilesModule` to support lazy-loading. Consumers of `SkyTilesModule` must now import `BrowserAnimationsModule` into their application's root module. [#78](https://github.com/blackbaud/skyux-tiles/pull/78)

# 5.0.0-beta.2 (2021-09-14)

- Added support for "partial" Ivy compilation mode. [#83](https://github.com/blackbaud/skyux-tiles/pull/83)
- Updated the peer dependencies. [#83](https://github.com/blackbaud/skyux-tiles/pull/83)

# 5.0.0-beta.1 (2021-08-27)

- Migrated to Angular CLI. [#81](https://github.com/blackbaud/skyux-tiles/pull/81)

# 5.0.0-beta.0 (2021-07-14)

- Initial `5.0.0-beta` release.
- Added support for `5.0.0-beta.*` versions of SKY UX component libraries. [#79](https://github.com/blackbaud/skyux-tiles/pull/79)

# 5.0.0-alpha.0 (2021-05-24)

- Added support for `@angular/core@^12`. [#78](https://github.com/blackbaud/skyux-tiles/pull/78)
- Removed `BrowserAnimationsModule` from the `imports` section of `SkyTilesModule` to support lazy-loading. Consumers of `SkyTilesModule` must now import `BrowserAnimationsModule` into their application's root module. [#78](https://github.com/blackbaud/skyux-tiles/pull/78)

# 4.1.0 (2021-03-25)

- Added modern theme styles to the tile component. [#75](https://github.com/blackbaud/skyux-tiles/pull/75)

# 4.0.2 (2020-08-07)

- Added support for `<EMAIL_ADDRESS>and `<EMAIL_ADDRESS>[#68](https://github.com/blackbaud/skyux-tiles/pull/68)

# 4.0.1 (2020-06-11)

- Fixed the tile dashboard component to update tiles using `OnPush` change detection when it receives messages from the message stream. [#59](https://github.com/blackbaud/skyux-tiles/pull/59)

# 4.0.0 (2020-05-15)

### New features

- Added support for `@angular/core@^9`. [#49](https://github.com/blackbaud/skyux-tiles/pull/49)
- Updated the pipeline to transpile to the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview). [#49](https://github.com/blackbaud/skyux-tiles/pull/49)

### Breaking changes

- Dropped support for `rxjs@5`. Consumers may install `rxjs-compat@^6` to support older versions of `rxjs`. [#49](https://github.com/blackbaud/skyux-tiles/pull/49)

# 4.0.0-rc.2 (2020-02-22)

- Updated Angular and SKY UX package peer dependencies. [#51](https://github.com/blackbaud/skyux-tiles/pull/51)

# 4.0.0-rc.1 (2020-02-22)

- Removed the deep imports to `ng2-dragula` to support the Angular Ivy compiler. [#50](https://github.com/blackbaud/skyux-tiles/pull/50)

# 4.0.0-rc.0 (2020-02-21)

### New features

- Added support for `@angular/core@^9`. [#49](https://github.com/blackbaud/skyux-tiles/pull/49)
- Updated the pipeline to transpile to the [Angular Package Format](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview). [#49](https://github.com/blackbaud/skyux-tiles/pull/49)

### Breaking changes

- Dropped support for `rxjs@5`. Consumers may install `rxjs-compat@^6` to support older versions of `rxjs`. [#49](https://github.com/blackbaud/skyux-tiles/pull/49)

# 3.3.0 (2020-01-21)

- Added support for the SKY UX default theme to the tile dashboard. This ensures the tile dashboard will display the correct background color and padding for the default theme's white page background. [#45](https://github.com/blackbaud/skyux-tiles/pull/45)

# 3.2.0 (2019-11-25)

- Added a tile dashboard message stream to allow other components to remotely control its functions. [#42](https://github.com/blackbaud/skyux-tiles/pull/42)

# 3.1.2 (2019-07-17)

- Fixed the tile dashboard service to no longer cause undefined errors in a flyout component. [#38](https://github.com/blackbaud/skyux-tiles/pull/38) (Thanks @Blackbaud-KrisMahon)
- Fixed the tile dashboard service to better handle errors when loading user configuration settings. [#38](https://github.com/blackbaud/skyux-tiles/pull/38) (Thanks @Blackbaud-KrisMahon)

# 3.1.1 (2019-07-15)

- Fixed `SkyTileModule` to import the missing `BrowserAnimationsModule`. [#32](https://github.com/blackbaud/skyux-tiles/pull/32)

# 3.1.0 (2019-05-17)

- Added the ability to trigger responsive styles based on a parent component. [#29](https://github.com/blackbaud/skyux-tiles/pull/29)

# 3.0.1 (2019-01-18)

- Fixed the tile header component to align the title on the baseline in Microsoft Edge and IE 11. [#25](https://github.com/blackbaud/skyux-tiles/pull/25)

# 3.0.0 (2019-01-14)

- Major version release.

# 3.0.0-rc.6 (2018-12-06)

- Fixed the tile component's help button to display by default when the consumer provides `helpClick` listener. [#18](https://github.com/blackbaud/skyux-tiles/pull/18)

# 3.0.0-rc.5 (2018-12-04)

- Added UI config service hooks to the tile dashboard service. [#11](https://github.com/blackbaud/skyux-tiles/pull/11)

# 3.0.0-rc.4 (2018-12-03)

- Added an optional help button to the tile component's header. [#14](https://github.com/blackbaud/skyux-tiles/pull/14)

# 3.0.0-rc.3 (2018-11-08)

- Added support for `<EMAIL_ADDRESS>which addresses some internationalization issues. [#12](https://github.com/blackbaud/skyux-tiles/pull/12)

# 3.0.0-rc.2 (2018-10-25)

- Updated the drag handle to have a more reliable click target. [#9](https://github.com/blackbaud/skyux-tiles/pull/9)

# 3.0.0-rc.1 (2018-10-18)

- Added support for `<EMAIL_ADDRESS>[#8](https://github.com/blackbaud/skyux-tiles/pull/8)

# 3.0.0-rc.0 (2018-10-02)

- Initial release candidate.

# 3.0.0-alpha.0 (2018-10-01)

- Initial alpha release.

repository: blackbaud/skyux

repo_name: blackbaud/skyux


text:
# tetris

双人俄罗斯方块游戏客户端

# 编译web端

flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true

flutter build web --release --dart-define=FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT=true

> 如使用--dart-define=FLUTTER_WEB_USE_SKIA=true可以提高性能，但中文会乱码
> --dart-define=FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_TEXT=true 可以提高性能，不会中文会乱码

# macos可执行文件

joy_tetris_flutter_macos.zip 是macos可执行文件，解压后即可使用，拷贝两份可同时打开两个客户端

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

repository: liangdas/joy-tetris-flutter

repo_name: liangdas/joy-tetris-flutter


text:
# ChatApp-Socket.io
A simple Node.js chat application running on socket.io and express.js. Uses websockets to send messages from browser.
 It will allow multiple users to signup to the service and also does not allow duplicate users from signing up

## Student Id: 8667968
## Student Name : Swathi Korrapatti

# Instructions to build application

1. Make sure Node.js is installed in your Local system
2. Clone the git repository and extract the zip file
3. Navigate to the directory
4. Open your terminal or command prompt and type npm install package.json
5. Type node server.js in your terminal or command prompt window.
6. Open your webbrowser and go to the url http://localhost:3000/
7. The app runs on the browser

Dependencies used : Express.js, Socket.io

Technology used : Node.js,Html,Express.js,Socket.io,Jquery

# SCREENSHOTS

![1](https://github.com/swathiravi10695/ChatApp-Socket.io/blob/main/Screenshots/1.JPG)

![2](https://github.com/swathiravi10695/ChatApp-Socket.io/blob/main/Screenshots/2.JPG)

![3](https://github.com/swathiravi10695/ChatApp-Socket.io/blob/main/Screenshots/3.JPG)

![4](https://github.com/swathiravi10695/ChatApp-Socket.io/blob/main/Screenshots/4.JPG)


text:
# Formotion

[![Build Status](https://travis-ci.org/clayallsopp/formotion.png)](https://travis-ci.org/clayallsopp/formotion)
[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=clayallsopp/formotion)](http://clayallsopp.github.io/readme-score?url=clayallsopp/formotion)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fclayallsopp%2Fformotion.svg?size=small)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fclayallsopp%2Fformotion?ref=badge_small)

Make this:

![Complex data form](http://i.imgur.com/TMwXI.png)

using this:

```ruby
@form = Formotion::Form.new({
  sections: [{
    title: "Register",
    rows: [{
      title: "Email",
      key: :email,
      placeholder<EMAIL_ADDRESS>      type: :email,
      auto_correction: :no,
      auto_capitalization: :none
    }, {
      title: "Password",
      key: :password,
      placeholder: "required",
      type: :string,
      secure: true
    }, {
      title: "Password",
      subtitle: "Confirmation",
      key: :confirm,
      placeholder: "required",
      type: :string,
      secure: true
    }, {
      title: "Remember?",
      key: :remember,
      type: :switch,
    }]
  }, {
    title: "Account Type",
    key: :account_type,
    select_one: true,
    rows: [{
      title: "Free",
      key: :free,
      type: :check,
    }, {
      title: "Basic",
      value: true,
      key: :basic,
      type: :check,
    }, {
      title: "Pro",
      key: :pro,
      type: :check,
    }]
  }, {
    rows: [{
      title: "Sign Up",
      type: :submit,
    }]
  }]
})

@form_controller = Formotion::FormController.alloc.initWithForm(@form)
@window.rootViewController = @form_controller
```

And after the user enters some data, do this:

```ruby
@form.render
=><EMAIL_ADDRESS>:password=>"password",
    :confirm=>"password", :remember=>true, :account_type=>:pro}
```

## Installation

`gem install formotion`

In your `Rakefile`:

`require 'formotion'`

## Usage

### Initialize

You can initialize a `Formotion::Form` using either a hash (as above) or the DSL:

```ruby
form = Formotion::Form.new

form.build_section do |section|
  section.title = "Title"

  section.build_row do |row|
    row.title = "Label"
    row.subtitle = "Placeholder"
    row.type = :string
  end
end
```

Then attach it to a `Formotion::FormController` and you're ready to rock and roll:

```ruby
@controller = Formotion::FormController.alloc.initWithForm(form)
self.navigationController.pushViewController(@controller, animated: true)
```

### Data Types

See [the visual list of support row types](https://github.com/clayallsopp/formotion/blob/master/LIST_OF_ROW_TYPES.md).

To add your own, check [the guide to adding new row types](https://github.com/clayallsopp/formotion/blob/master/NEW_ROW_TYPES.md).

`Formotion::Form`, `Formotion::Section`, and `Formotion::Row` all respond to a `::PROPERTIES` attribute. These are settable as an attribute (ie `section.title = 'title'`) or in the initialization hash (ie `{sections: [{title: 'title', ...}]}`). Check the comments in the 3 main files (`form.rb`, `section.rb`, and `row.rb` for details on what these do).

### Setting Initial Values

Forms, particularly edit forms, have default initial values. You can supply these in the `:value` attribute for a given row. So, for example:

```ruby
{
  title: "Email",
  key: :email,
  placeholder<EMAIL_ADDRESS>  type: :email,
  auto_correction: :no,
  auto_capitalization: :none,
  value<EMAIL_ADDRESS>}
```

Setting values for non-string types can be tricky, so you need to watch what the particular field expects. In particular, date types require
the number of seconds from the beginning of the epoch as a number.

### Retrieve

You have `form#submit`, `form#on_submit`, and `form#render` at your disposal. Here's an example:

```ruby
class PeopleController < Formotion::FormController
  def viewDidLoad
    super

    self.navigationItem.rightBarButtonItem = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemSave, target:self, action:'submit')
  end

  def submit
    data = self.form.render

    person.name = data[:name]
    person.address = data[:address]
  end
end
```

Why would you use `form#on_submit`? In case you want to use `type: :submit`. Ex:

```ruby
@form = Formotion::Form.new({
  sections: [{
  ...
  }, {
    rows: [{
      title: "Save",
      type: :submit
    }]
  }]
})

@form.on_submit do |form|
  # do something with form.render
end
```

`form#submit` just triggers `form#on_submit`.

### Persistence

You can easily synchronize a `Form`'s state to disk using the `persist_as` key in form properties. When your user edits the form, any changes will be immediately saved. For example:

```ruby
@form = Formotion::Form.new({
  persist_as: :settings,
  sections: ...
})
```

This will load the form if it exists, or create it if necessary. If you use remove the `persist_as` key, then the form will not be loaded and any changes you make will override existing saved forms.

Your form values and state are automatically persisted across application loads, no save buttons needed.

To reset the form, call `reset`, which restores it to the original state.

View the [Persistence Example](./examples/Persistence) to see it in action.

### Callbacks

`Row` objects support the following callbacks:

```ruby
row.on_tap do |row|
  p "I'm tapped!"
end

row.on_delete do |row|
  p "I'm called before the delete animation"
end

row.on_begin do |row|
  p "I'm called when my text field begins editing"
end

row.on_enter do |row|
  p "I'm called when the user taps the return key while typing in my text field"
end
```

## Forking

Feel free to fork and submit pull requests! And if you end up using Formotion in your app, I'd love to hear about your experience.

## License

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fclayallsopp%2Fformotion.svg?size=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fclayallsopp%2Fformotion?ref=badge_large)

## Todo

- Not very efficient right now (creates a unique reuse idenitifer for each cell)
- Styling/overriding the form for custom UITableViewDelegate/Data Source behaviors.

repository: clayallsopp/formotion

gha_language: Ruby

gha_license_id: NOASSERTION

repo_name: clayallsopp/formotion


text:
### [CVE-2022-27666](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27666)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)

### Description

A heap buffer overflow flaw was found in IPsec ESP transformation code in net/ipv4/esp4.c and net/ipv6/esp6.c. This flaw allows a local attacker with a normal user privilege to overwrite kernel heap objects and may cause a local privilege escalation threat.

### POC

#### Reference
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.15

#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/Albocoder/cve-2022-27666-exploits
- https://github.com/CVEDB/PoC-List
- https://github.com/CVEDB/awesome-cve-repo
- https://github.com/CVEDB/top
- https://github.com/Ch4nc3n/PublicExploitation
- https://github.com/JERRY123S/all-poc
- https://github.com/JlSakuya/Linux-Privilege-Escalation-Exploits
- https://github.com/Metarget/metarget
- https://github.com/Mr-xn/Penetration_Testing_POC
- https://github.com/SYRTI/POC_to_review
- https://github.com/WhooAmii/POC_to_review
- https://github.com/bsauce/kernel-exploit-factory
- https://github.com/bsauce/kernel-security-learning
- https://github.com/cyberanand1337x/bug-bounty-2022
- https://github.com/hktalent/TOP
- https://github.com/j4k0m/really-good-cybersec
- https://github.com/kdn111/linux-kernel-exploitation
- https://github.com/khanhdn111/linux-kernel-exploitation
- https://github.com/khanhdz-06/linux-kernel-exploitation
- https://github.com/khanhdz191/linux-kernel-exploitation
- https://github.com/khanhhdz/linux-kernel-exploitation
- https://github.com/khanhhdz06/linux-kernel-exploitation
- https://github.com/khanhnd123/linux-kernel-exploitation
- https://github.com/manas3c/CVE-POC
- https://github.com/nomi-sec/PoC-in-GitHub
- https://github.com/plummm/CVE-2022-27666
- https://github.com/ssr-111/linux-kernel-exploitation
- https://github.com/trhacknon/Pocingit
- https://github.com/weeka10/-hktalent-TOP
- https://github.com/xairy/linux-kernel-exploitation
- https://github.com/xuetusummer/Penetration_Testing_POC


text:
# Json2Tree
## JSON data to Tree View

This library is mainly created to easily visualize JSON data/string into Object tree.
It was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.5.

## Installation

`npm install json2-tree`

To save this in dependencies:
`npm install json2-tree --save`

## Usage

In your parent module, Import `Json2TreeModule`

```html
@NgModule({
  ...,
  imports: [
    ...,
    Json2TreeModule,
    ...
  ],
  ...
})
export class AppModule { }
```

In your component:
`<json2-tree [data]="data"></json2-tree>`

To expand all nodes:
`<json2-tree [data]="data" [expandAllNodes]=true></json2-tree>`

To expand only 2 levels:
`<json2-tree [data]="data" [expandLevel]=2></json2-tree>`

## Example

An example for this project can be found at [github-pages](https://github.com/jeganathpv/json2tree) of this repository

## Properties

Name | Type | Default | Description
----|----|----|----
data|any|null| JSON Object or string to display
expandAllNodes|boolean| false| Set this to `true` to expand all the nodes(If available)
expandLevel|number|-1|To expand nodes for given levels
separator|string|:|To change the separator
style|any|null|Inline style of the component

## Styles Used
Name|Element
----|----
jtree-node| Node element
jnode-toggler| Toggle element
jnode-key| Node key element
jnode-separator| Separator element
jnode-value| Node value element
child-jnode| Children (or) Nested Node element

## Dependencies
None.

## Changelog

> v1.0.0

- Initial Release

## Development

Want to contribute? Great!

Make a change in your file and instantaneously see your updates!

## Credits
A credit to [JSON formatter](https://jsonformatter.org/) where I got the idea to develop this.

## Further help

To get more on this, go and check out the [json2-tree](https://github.com/jeganathpv/json2tree) github page.

### Reach out to me
> [Jeganath PV](https://jeganathpv.github.io/)

*Thank you!*


text:
# gsuitemdm Cloud Function `directory` #

A [cloud Function](https://cloud.google.com/functions/) component of the [gsuitemdm](https://github.com/rickt/gsuitemdm) package providing an API used to search for phone number data (name, phone number) among all tracked/configured mobile devices using name or email address as a search key.

This API might be useful for orgs who want a handy way to search for phone numbers among their company mobile device-using staff. With `directory` you have an always up-to-date, automatically-updated mobile phone directory API that searches all device data in all configured G Suite domains.

The `directory` API is used by the [`mdmtool`](#mdmtool) command line utility.

## HOW-TO Configure `directory` ##
`directory` uses a `.yaml` file containing several environment variables the cloud function reads during app startup. These environment variables point the app to the shared master cloud function configuration and API key that are stored as [Secret Manager secrets](https://cloud.google.com/secret-manager/docs/managing-secrets). An example `.yaml` file for `directory`:

```yaml
APPNAME: directory
SM_APIKEY_ID: projects/12334567890/secrets/gsuitemdm_apikey
SM_CONFIG_ID: projects/12334567890/secrets/gsuitemdm_conf
```

## HOW-TO Deploy `directory` ##
```
$ gcloud functions deploy Directory \
  --runtime go111 \
  --trigger-http \
  --env-vars-file env_directory.yaml
```

## HOW-TO Use `directory` ##

### API ###
Example expected JSON to search for phone numbers including the name "doe":

```json
{
	"key": "0123456789",
	"q": "doe",
	"qtype": "name"
}
```

Example expected JSON to search for phone numbers associated with the email address<EMAIL_ADDRESS>```json
{
	"key": "0123456789",
	"q"<EMAIL_ADDRESS>	"qtype": "email"
}
```

Example command line using `curl` and the above JSON that searches for phone numbers including the name "doe":

```
$ curl -X POST -d '{"key": "0123456789", "qtype": "name", "q": "doe"}' \
  https://us-central1-<YOURGCPPROJECTNAME>.cloudfunctions.net/Directory
[
   {
      "name": "John Doe",
      "email"<EMAIL_ADDRESS>      "phonenumbner": "(213) 555-1212"
   },
   {
      "name": "Jane Doe",
      "email"<EMAIL_ADDRESS>      "phonenumbner": "(213) 555-1313"
   }
]
```

Example command line using `curl` and the above JSON that searches for phone numbers associated with the email address<EMAIL_ADDRESS>
```
$ curl -X POST -d '{"key": "0123456789", "qtype": "email", "q"<EMAIL_ADDRESS>\
  https://us-central1-<YOURGCPPROJECTNAME>.cloudfunctions.net/Directory
[
   {
      "name": "John Doe",
      "email"<EMAIL_ADDRESS>      "phonenumbner": "(213) 555-1212"
   }
]
```

### `mdmtool` ###
Example command line using `mdmtool` to search for phone numbers including the name "doe":
```
$ mdmtool dir -n doe
----------------------+----------------+------------------------------------------
Name                  | Phone Number   | Email
----------------------+----------------+------------------------------------------
Jane Doe              |<PHONE_NUMBER> |<EMAIL_ADDRESS>John Doe              |<PHONE_NUMBER> |<EMAIL_ADDRESS>----------------------+----------------+------------------------------------------
Search returned 2 results.
```

Example command line using `mdmtool` to search for phone numbers associated with the email address<EMAIL_ADDRESS>```
$ mdmtool dir -e<EMAIL_ADDRESS>----------------------+----------------+------------------------------------------
Name                  | Phone Number   | Email
----------------------+----------------+------------------------------------------
John Doe              |<PHONE_NUMBER> |<EMAIL_ADDRESS>----------------------+----------------+------------------------------------------
Search returned 1 results.
```

repository: rickt/gsuitemdm

repo_name: rickt/gsuitemdm


text:
# Documentation

The full documentation of Tracee-eBPF is available at
[https://aquasecurity.github.io/tracee/dev/docs/tracing/](https://aquasecurity.github.io/tracee/dev/docs/tracing/).
You can use the version selector on top to view documentation for a specific
version of Tracee.

repository: aquasecurity/tracee

gha_language: Go

repo_name: aquasecurity/tracee


text:
# Chat Room Demo

A demo implementation of a chat room that is using websockets protocol with socket.io, firebase, React and Redux

# Commands

- `yarn server` to start server
- `yarn startDev` for both client and server. Then visit demo app in `http://localhost:1234/demo/`
- `yarn build` to build client
- `yarn visualize` to build graph

# Internal stucture

Here is a chart of how the package is set up:

- info `https://www.netlify.com/blog/2018/08/23/how-to-easily-visualize-a-projects-dependency-graph-with-dependency-cruiser/`

# Steps

- yarn
- Try `yarn visualize`. If it fails install system dependency `sudo apt install graphviz` and try again.
- Create graph folder in `./graph` path
- dependencygraph.svg is generated in ./graph folder

![Graph](./graph/dependencygraph.svg)

# Env variables

If you want to use it in your machine you have to configure firebase settings with environment variables. Please see the example below.
The values have to be replaced by the values of your app. Place these values in ~/.profile files and restart your machine to activate.

- export APIKEY=`XXXXXXXXXXXXXXXX`
- export AUTHDOMAIN=`XXXXXXXXXXXXXXXX`
- export DATABASEURL=`XXXXXXXXXXXXXXXX`
- export PROJECTID=`XXXXXXXXXXXXXXXX`
- export STORAGEBUCKET=`XXXXXXXXXXXXXXXX`
- export MESSANGINSSENDERID=`XXXXXXXXXXXXXXXX`

# Puppeteer and CircleCI

- `https://github.com/xfumihiro/jest-puppeteer-example`

### TODOS

- [x] Keep messages on refresh
- [x] Keep login status on refresh
- [x] Add validation
- [x] Tests -- puppeteer
  - [x] Setup
  - [x] Add tests
- [x] Deploy to server
- [x] Automation / CI--> Add Circle CI
- [x] Filter and enable small emoticons
- [x] Add which user is typing info in a layer
- [x] Use it with electron --> this may not be implemented
- [x] Storybook
- [x] Add firebase database and a sidebar list of users in chat room
  - [x] Model user in DB. User will have firstname, lastname, status (active/away/inactive). Status will be configured through a small pop up from list. Status will be configured only by the matching user that has the permission to do it
  - [x] Save user in firebase DB on login
  - [x] Get all users on display rendering and show them in BS table
  - [x] Delete User from Database on logout
  - [x] setup node env for firebase and production
  - [x] bug fix for build files with firebase --> removed package dependency and added it as external one with injecting scripti in index.html
- [x] Logout after an amount of time where the system is idle
  - [x] Detect no key and no mouse interaction
  - [x] Detect no focus
- [x] Attach files / images etc --> this may not be implemented
- [ ] Add more stories

# NOTES

- To start client and server with single command: `https://kb.iu.edu/d/afnz`
- Online Demo: `https://chatroomsimpledemo.herokuapp.com/`
- Firebase tutorials: `https://www.robinwieruch.de/react-firebase-realtime-database/`
- `https://www.npmjs.com/package/firebase`
- `https://howtofirebase.com/save-and-query-firebase-data-ed73fb8c6e3a`
- `https://gist.github.com/anantn/4325082`

repository: myapos/chatRoom

gha_language: CSS

repo_name: myapos/chatRoom


text:
---
sidebar_label: QKeySequence
title: QKeySequence
---

> The QKeySequence class encapsulates a key sequence as used by shortcuts. .

**This class is a JS wrapper around Qt's [QKeySequence class](https://doc.qt.io/qt-5/qkeysequence.html)**

**QKeySequence inherits from [Component](api/Component.md)**

### Example

```javascript
const { QKeySequence } = require("@nodegui/nodegui");

const keySequence = new QKeySequence(`Ctrl+L`);
```

### `new QKeySequence(sequence?)`

- `sequence` string (_optional_). String representation of the key sequence. For example: `Ctrl+M`

## Static Methods

QKeySequence can access all the static methods defined in [Component](api/Component.md)

## Instance Properties

QKeySequence can access all the instance properties defined in [Component](api/Component.md)

## Instance Methods

QKeySequence can access all the instance methods defined in [Component](api/Component.md)
Additionally it also has the following instance methods:

### `keySequence.count()`

Returns the number of keys in the key sequence. The maximum is 4. It calls the native method [QKeySequence: count](https://doc.qt.io/qt-5/QKeySequence.html#count).

repository: bundyo/nodegui

repo_name: bundyo/nodegui


text:
# webpack-cli Packages

## Description

webpack CLI hosts several standalone packages apart from the main package that focuses on the solving respective smaller use cases.
This folder is the collection of those packages.

## Packages

1. [add](https://github.com/webpack/webpack-cli/tree/master/packages/add)
2. [generate-loader](https://github.com/webpack/webpack-cli/tree/master/packages/generate-loader)
3. [generate-plugin](https://github.com/webpack/webpack-cli/tree/master/packages/generate-plugin)
4. [generators](https://github.com/webpack/webpack-cli/tree/master/packages/generators)
5. [info](https://github.com/webpack/webpack-cli/tree/master/packages/info)
6. [init](https://github.com/webpack/webpack-cli/tree/master/packages/init)
7. [make](https://github.com/webpack/webpack-cli/tree/master/packages/make)
8. [migrate](https://github.com/webpack/webpack-cli/tree/master/packages/migrate)
9. [remove](https://github.com/webpack/webpack-cli/tree/master/packages/remove)
10. [serve](https://github.com/webpack/webpack-cli/tree/master/packages/serve)
11. [update](https://github.com/webpack/webpack-cli/tree/master/packages/update)
12. [utils](https://github.com/webpack/webpack-cli/tree/master/packages/utils)
13. [webpack-scaffold](https://github.com/webpack/webpack-cli/tree/master/packages/webpack-scaffold)

## Generic Installation

1. Standalone installation of packages

```shell
npm install @webpack-cli/<package>
```

2. Installation of respective `package` with `webpack-cli` [Recommended]

```shell
npm install webpack-cli @webpack-cli/<package>
```

---

[Back to webpack-cli](https://github.com/webpack/webpack-cli)

repository: dhruvdutt/webpack-cli

gha_language: TypeScript

repo_name: dhruvdutt/webpack-cli


text:
#  SST-Inc-iOS-Assessment-2020 Results

## 🎉 Congratulations

Congratulations on completing your Swift Assessment, and *hopefully* your journey in the SST Inc Swift Course. Regrettably, those who have failed this assessment will require further learning before moving on. An email will be sent to you separately with more details should you *qualify*.

Refer to the mark sheet if you are  doubtful of the accuracy of marking. If you believe we made a mistake (not impossible, we are humans too 💩), feel free to email us or add a private comment in Google Classroom.

## 👀 Feedback

>
> Good attempt, remember to keep working hard to conquer swift
>

## 🤡 Your Results

**Total Score: 28/70**

### Section A

A1. Variables and Constants • [5/5]

1. Create a variable, called `rickrolls`, and set it to the number of times you have been rick-rolled by your fellow iOS teachers (any number works). `[1m]`

```swift
var rickrolls = 10
```

> 1m

---

2. Create a constant of the type `Double`, called `magicNumber`, and set it to `3`. `[2m]`

```swift
let magicNumber : Double = 3
```

> 2m

---

3. What is the difference between a variable and a constant? `[2m]`

```txt
"""
Answer: variables can be changed whereas constants cannot
"""
```

> 2m

A2. Manipulation of Values • [0/3]

1. `(x + x)` as a `String`. `[1m]`

```swift

```

> 0m

---

2. `x`²¹. `[1m]`

```swift

```

> 0m

---

3. Last digit of `x`. `[1m]`

```swift
var lastDigit = x%69420
print(lastDigit)
```

> 0m

A3. Collections and Objects • [2/6]

1. Define a structure (struct) called `Teacher` with the properties: `name`, `wearsGlasses`, and an **optional** value: `watchColor`, with the most appropriate types based on the table above. `[2m]`

```swift
struct Teacher{
    var name
}
```

> 1m Teacher structure created, variables not declared properly

---

2. Create an array called `teachers` containing multiple instances of `Teacher` using the details provided in the table above. `[2m]`

```swift
var teachersArray = ["Ryan"]
```

> 1m Array created, not instantiated with collect details

---

3. For each `name` in the array declared previously, add `" is the best"` to the end of the `name`, and print it out individually. `[2m]`

```swift

```

> 0m

A4. FizzBuzz • [2/6]

1. Create a function called `fizzBuzz` which takes a parameter `number` of type `Int` and returns a `String` ("Fizz", "Buzz", "FizzBuzz", or the number itself) based on the conditions above. Refer to the sample Input/Output. `[4m]`

```swift
var number = 12
func fizzBuzz(_: Int) {

    if number % 3 == 0 && number % 4 == 0{
        print("fizzBuzz")
    }
    else{
        if number % 3 == 0{
            print("fizz")
        }
        if number % 4 == 0{
            print("buzz")
        }
    }

    if number % 3 != 0 && number % 4 != 0{
        print(number)
    }

}
```

> 1m Correctly identifies all cases

---

2. Hence, **using the function you created above**, print out the corresponding values when the numbers 1 to 50 are input, each on a new line. `[2m]`

```swift
for i in 1 ... 50 {
    number = 0
    number += 1
    fizzBuzz(1)
}
```

> 1m For loop used

A5. A Thousand Words • [0/3]

1. Given an image view, `imageView`, and an image called `wheres_waldo` in `Assets.xcassets`, display the image. `[1m]`

```swift
var wheres_waldo :String = "wheres_waldo"
```

>  0m

---

2. Adjust the `contentMode` value of the image such that the entire image can be viewed, without getting cropped, while keeping the aspect ratio (not stretched/squashed). `[1m]`

```swift

```

> 0m

---

3. What is the difference between `UIImageView` and `UIImage`? Why are we unable to use them interchangeably? `[1m]`

```txt
"""
Answer: UIImageView can show a series of images as an animation whereas UIImage cannot
"""
```

> 0m

### Section B

B1. School Gate • [2/10]

1. Given the variables above, write a set of conditions that tell the gate whether or not to unlock. `[5m]`

```swift
let withinOperatingHours = false
let isStudentPass = false
let isTeacherPass = false
let isFire = false
var isUnlocked = false
if isFire == false {
    isUnlocked = false
    if isTeacherPass == false {
        isUnlocked = false
    }

    if withinOperatingHours == true {
        isUnlocked = false
        if isStudentPass == false {
            isUnlocked = false
        }

    }
}
```

> 1m if condition used

---

2. Assuming the day starts when the program runs, write a program to keep track of the number of seconds elapsed (passed), printing the value every second. `[5m]`

```swift
Timer.scheduledTimer(timeInterval: 1, invocation: nil
```

> 1m any usage of Timer closure

B2. Leap Years • [5/9]

1. Kesler's bugged code is shown below. There are **5 errors** present. Fix them. `[5m]`

```swift
func isLeap(year: Int) -> Bool { // 1m

    // 1m
    var isLeap : Bool = true // 0m

    if year / 4 == 0 { // 0m

        isLeap = true

        if year % 100 == 0 {

            isLeap = false
            if year % 400 == 0{ // 1m
                isLeap = true
            }

        }
    }

    return isLeap
}
```

> 2m

---

2. What is this feature called? How is it useful? How can Kesler get rid of it? `[2m]`

```txt
"""
Answer: The feature is called breakpoints. You can use it to test sections of your app and to remove it, right click the breakpoint then click delete the breakpoint
"""
```

> 2m

---

3. What might have caused the SIGABRT error, assuming that the app ran fine before he edited his Storyboard? Is a SIGTERM error the same as a SIGABRT error? When does a SIGTERM error occur. `[2m]`

```txt
"""
Answer: He likely deleted something on the storyboard that was connected to his code, and SIGTERM error is not the same as a SIGABRT error. A SIGTERM error occurs because idk
"""
```

> 1m SIGTERM does not occur because idk

B3. iClicker Pro Max Plus Ultra 5GS+ • [3/9]

1. Label is to be set to your name when the program runs initially. `[1m]`
2. Border radius of the button is to be set to `15`. `[1m]`
3. Background color of the button should change to a random color each time the button is pressed. `[2m]`
4. Label should display the number of times the button has been clicked whenever the button is tapped. `[1m]`
5. Every 17 clicks,
    * Label should be set to the time in seconds since the first click, e.g. `"30s"`. `[2m]`
    * Text on the button is to be set to `"Yay"` (Hint: The correct answer requires setting text for the `.normal` state). `[1m]`
    * Reset the text on the button back to +1 after the next click. `[1m]`

```swift
/// You may declare any variables you may require here.
var Alone : String = "Alonzo"
var points = 0
// type code here
if points == 17 {
    <#code#>
} // 0m

public func viewDidLoad() {
    /// Treat this function as your typical `viewDidLoad()`.
    // type code here
    // 0m
}

public func viewDidAppear(_ animated: Bool) {
    /// Treat this function as your typical `viewDidAppear(_:)`.
    // type code here
    label.text = Alone
}

public func onButtonPress() {
    /// Treat this function as your typical `@IBAction` which is linked to the button.
    // type code here

    // 0m

    points += 1
    label.text = String(points) // 1m

}

// 3m

```

> 3m

B4. RickTube • [9/19]

1. Create a new iOS App (use Swift and Storyboard) with `Xcode.app`. Save it in the test directory you previously downloaded. `[1m]`
2. Open `Main.storyboard` and create the user interface based on the specifications below. `[18m]`

```txt
Save the App (1m)
Create an Xcode iOS App with Swift and Storyboard (2m)
Embed UINavigationController (0m)
Make it initial view controller (0m)
Add UINavigationBar right bar button item (0m)
Add UIImageView (2m)
Add UIStackView (0m)
Add UIButton's in UIStackView (0m, Not in Stack View)
Add UITableView (2m)
Add UITableViewCell (2m)
```


text:
# Data Science Goals, Components, Processes, and Deliverables - Data Science, Data Mining, Machine Learning, AI, Advanced Analytics, and Big Data

## Data Science, Artificial Intelligence, Statistics, Advanced Analytics, Big Data, and IoT Fields
- Data/text mining and data exploration
- Data/text analytics
- Descriptive, predictive, and descriptive analytics
- Machine learning
- Recommendations
- Real-time stream processing and computing (spot opportunities and risks)
- Pattern Matching
- Forecasting
- Visualization
- Semantic analysis
- Statistical analysis
- Network and cluster analysis
- Multivariate statistics
- Graph analysis
- Simulation
- Optimization
- Experimental design
- Complex event processing
- Autonomous systems
- Smart machines and devices
- Neural networks and deep learning
- Real-time scoring
- Entity analytics
- Business intelligence
- Streaming media analytics
- Cognitive IoT
- Cognitive chatbots
- Embedded deep learning
- Embodied robotic cognition
- Computer vision
- Virtual and augmented reality
- Knowledge management
- Fraud detection

## Typical data science goals
* Derive discoveries, insights, and value from data collections
* Turning data into actions, including real-time
* Build data products providing actionable information while abstracting away technical details, data, and analytics
* Question discovery
* Improving products for user benefit and experience
* Driving business decisions and solutions
* Improving the decisions your business makes
    - Decision science uses data to analyze business metrics — such as growth, engagement, profitability drivers, and user feedback — to inform strategy and key business decisions.
    - Decision science uses data analysis and visualization to inform business and product decisions.
* Automated decision making, predictions, recommendations, and deeper insights
* Inform strategic decisions
* Inform product changes and drive company KPIs
* Shift from HiPPO decision making to data-driven decision making
* Competitive advantage, differentiation, future-proofing, and opportunity costs
* Complement business intelligence functions
* Predict and advise
* Grow data economy wealth
* Increase ROI and ROA
* Shifting between deductive (hypothesis-based) and inductive (pattern- based) reasoning (ref. Booz, Allen, Hamilton)
    - Deductive
        + Formulate hypotheses about relationships and underlying models
        + Carry out experiments with the data to test hypotheses and models
    - Inductive
        + Exploratory data analysis to discover or refine hypotheses
        + Discover new relationships, insights and analytic paths from the data

## Data Science Components and Considerations
- Data types
    + Structured data
    + Unstructured data
    + Semi-structured data
    + Streaming data
    + Batch data
- Analytic classes
    + Transforming analytics
        * Aggregation
        * Enrichment
        * Processing
    + Learning analytics
        * Regression
        * Clustering
        * Classification
        * Recommend
    + Predictive analytics
        * Simulation
        * Optimization
    + Descriptive analytics
    + Prescriptive analytics
- Learning models
    + Learning style
        * Supervised
        * Unsupervised
        * Semi-supervised
    + Training style
        * Reinforcement learning
        * Online learning
        * Offline learning
- Execution models
    + Sequencing
        * Serial execution
        * Parallel execution
    + Scheduling
        * Streaming execution
        * Batch execution
- Key considerations
    + Curse of dimensionality

## Analytics Toolbox
- Mathematical
- Computational
- Visual
- Analytic
- Statistical
- Experimental
- Problem definition
- Model building
- Validation

## Data Science Process (non-linear, iterative, and cyclical)
- Domain discovery, goal identification, and question development
    + Understanding the goal of the project and define objectives
    + Drives mapping the problem space to the solution space
- Determine the type of problem and type of solution required
- Data instrumentation, acquisition, collection, extraction, merging/joining, ETL, storage, and pipeline architecture/development
    + Data sources: raw data, real time measurement, events, IoT, and so on
    + Data warehouse or data lake
        * Data lake eliminates need for ETL according to Booz, Allen, and Hamilton
    + Note that more data is almost always better
- Data munging/wrangling
    - Data parsing, cleaning, and tidying
    - Data processing, transformation, and aggregation
        + Includes feature scaling, normalization, and/or standardization
        + Categorical feature transformation and dummy variables
            * One-hot encoding
            * Note: For large number of categorical features, a good technique is to encode only the most important features (e.g., 95% of the importance) and then assign the rest to an 'others' class
        + Deduplication
        + Data conversions
            * Character dates to dates
            * Numerics to strings and vice versa
        + Format conversion
        + Frequency space
            * Fast fourier transform (FFT)
            * Discrete wavelet transform
        + Euclidian space
            * Coordinate transform
        + Transposition if needed
        + Sorting as needed
    - Data filtering
        + Outlier detection and removal
        + Exponential smoothing
        + Gaussian filter
        + Median filter
        + Noise handling and reduction
    - Find and handle missing values
        + Imputation
            * Generate values for other observations in dataset
                - Random sampling
                - Markov chain monte carlo
            * Without other observations
                - Mean
                - Statistical distributions
                - Regression models
        + Data deletion
- Data consumption, exploratory data analysis (EDA), statistical analysis, descriptive analytics, and visualization
    + General plots
        * Histogram
        * Scatter
        * Box
    + Generate frequency table
    + Target variable distribution
    + Distributiont and outlier detection via box and scatter plots for numeric features
    + Correlation analysis and pairwise distribution plots
    + Plots with point color as label for classification tasks
    + Aggregations and analysis
        * Group for counts, sums, and averages
- Feature extraction, feature selection, and feature engineering
    + Purpose
        * Simpler and faster training
        * Less computationally expensive
        * Find feature interactions to use as new features
    + Techniques
        * Wrapper methods
        * Sensitivity analysis
        * PCA
        * Random forests
            - Mean decrease impurity
            - Mean decrease accuracy
        * Text-based
            - Stemming
            - Tokenizing
            - Synonym substitutions
- Performance metric selection. Examples:
    + MSE and RMSE
    + R squared (aka explained variance)
    + Accuracy
    + Precision
    + Recall (aka sensitivity)
    + Receiver operator characteristic (ROC)
    + Area under the ROC curve (AUC)
    + F-score
    + Per Kaggle
        * LB: Score you get is calculated on a subset of testing set
        * CV: Score you get by local cross validation is commonly referred to as a CV score.
- Data splitting
- Model selection, training, evaluation, validation, complexity reduction, and tuning
    + Iterative process and involves revisiting previous stages, including model selection
    + Model complexity reduction via subset selection, shrinkage methods, regularization (e.g., ridge regression and lasso), and dimensionality reduction
        * Dimensionality reduction
            - PCA
            - Factor analysis
            - K-means clustering
            - Canopy clustering
            - Feature hashing
            - Wrapper methods
            - Sensitivity analysis
            - Self organizing maps
            - Text data
                + Term frequency (TF)
                + Inverse document frequency (IDF)
    + Ensemble methods exploration and implementation as needed for performance goals
        * Techniques
            - Bagging
            - Boosting
            - Model averaging
            - Weak learner theory
            - Random forests
            - Blending
            - Stacking
            - ...
        * Benefits
            - Bias and variance reduction, thus reduced overfitting risk
            - Increased performance
    + Model validation, resampling methods, and selection
        + Cross-validation
        + Hyperparameter optimization
        + Bootstrap
        + Mallow’s Cp
        + Akaike information criterion (AIC)
        + Bayesian information criterion (BIC)
    + Model tuning: bias variance tradeoff and model complexity
        * Validation curve
        * Learning curve
        * Residual sum of squares
        * Goodness-of-fit metrics
        * Grid search
    + Error analysis and tradeoffs
        * Type 1
        * Type 2
    + Kaggle notes
        * Tree-based (top for Kaggle)
            - Gradient Boosted Trees
            - Random Forest
            - Extra Randomized Trees
        * Lower performance
            - SVM
            - Linear Regression
            - Logistic Regression
            - Neural Networks
    + Model tuning goals
        * Performance
        * Accuracy
        * Robustness
        * Speed
- Deliverables, deployment, and results communication (see below)

## Tips
- Random forest usually reach optimum when max_features is set to the square root of the total number of features.
- [How to Rank 10% in Your First Kaggle Competition](https://dnc1994.com/2016/05/rank-10-percent-in-first-kaggle-competition-en/)
    + Ensemble methods
        * Base models should be as unrelated as possibly. This is why we tend to include non-tree-based models in the ensemble even though they don’t perform as well. The math says that the greater the diversity, and less bias in the final ensemble.
        * Performance of base models shouldn’t differ to much.
    + Cross-validation
        * Usually 5-fold CV is good enough
        * We shouldn’t use too many folds if our training data is limited. Otherwise we would have too few samples in each fold to guarantee statistical significance.
        * More folds, the CV score would become more reliable, but the training takes longer to finish as well.
    + Automated pipeline
        * - Modularized feature transformations. We only need to write a few lines of codes (or better, rules / DSLs) and the new feature is added to the training set.
        * Automated grid search. We only need to set up models and parameter grid, the search will be run and the best parameters will be recorded.
        * Automated ensemble selection. Use K best models for training the ensemble as soon as we put another base model into the pool.

## Data Science Deliverables
- Automated decision making, predictions, recommendations, and insights
- Deep and actionable insights
    + Story telling
    + Writing
    + Speaking
    + Reports
    + Dashboards
    + Visualizations
    + Presentation
- Statistical analysis
    + Sensitivity
    + Correlation
    + Variance and standard deviation
    + Mean, median, and mode
    + Skew and kurtosis
    + Quartiles
    + Distribution
    + Count
    + Range
    + Plots
- Asynchronous messaging, notifications, insights, and alerts
- Deployed batch and/or real-time solution (e.g., analytics models and algorithms), potentially including monitoring, performance measurement, analytics, dashboards, and reporting
- Analytics
    + Descriptive analytics - What happened and why?
        * Visualization
        * Exploratory data analysis
    + Predictive analytics - What is the probability of something happening?
        * Machine learning
        * Artificial intelligence
        * Forecasting
    + Prescriptive analytics - What specific recommendations will drive business decisions and help achieve business goals (i.e., what to do if 'X' happens)
- Machine learning and Artificial intelligence specific
    + Supervised learning and prediction
        * Classification
            - Binary (two class) and multi-class
        * Regression
            - Univariate and multivariate
        * Anomoly detection
    + Unsupervised learning
        * Clustering, grouping, and characterizations
        * Anomoly detection
    + Recommendation systems (aka recommendation engine)
    + Recognition
        * Image
        * Speech
        * Video
        * Text and optical character
        * Pattern
        * Audio
        * Facial
        * Handwriting
    + Text analytics
        * Sentiment analysis
        * Word clouds
        * NLP, NLG, NLU
        * Text categorization
        * Text processing
        * N-grams
        * Entity extraction (e.g., phone numbers, addresses, ...)
        * Levenshtein distance
    + Reinforcement learning
    + Probability estimates and likelihoods
    + Graph analytics (e.g., social network analysis)
    + Health diagnosis
    + Process improvements
- Optimization
    + Minimum
    + Maximun
    + Optimal value or optimal combination
- Segmentation
    + Behavioral
    + Demographic
    + Geographic
- Targeted advertising
- Forecasts
- Risk analysis
- Optimization and response surface models (RSM) for design of experiments (DOE) projects

## Process Models
- [Ask, Get, Explore, Model, Communicate and visualize results](http://www.datascientists.net/what-is-data-science)
- [Sample, Explore, Modify, Model, and Assess - SEMMA](https://en.wikipedia.org/wiki/SEMMA)
- [Acquire, Prepare, Analyze, Act (Booz, Allen, Hamilton)](https://www.boozallen.com/content/dam/boozallen/documents/2015/12/2015-FIeld-Guide-To-Data-Science.pdf)
    + Analyze stage (iterate evaluation)
        * Setup
        * Try
        * Do
- [The Data Science Maturity Model: Collect, Describe, Discover, Predict, Advise (Booz, Allen, Hamilton)](https://www.boozallen.com/content/dam/boozallen/documents/2015/12/2015-FIeld-Guide-To-Data-Science.pdf)
- [Balancing the Five Analytic Dimensions (Booz, Allen, Hamilton)](https://www.boozallen.com/content/dam/boozallen/documents/2015/12/2015-FIeld-Guide-To-Data-Science.pdf)
    + Speed
    + Analytic complexity
    + Accuracy and precision
    + Data size
    + Data complexity
- [Implementation Constraints (Booz, Allen, Hamilton)](https://www.boozallen.com/content/dam/boozallen/documents/2015/12/2015-FIeld-Guide-To-Data-Science.pdf)
    + Computational frequency
    + Solution timeliness
    + Implementation speed
    + Computational resource limitations
    + Data storage limitations
- [Fractal Analytic Model (Booz, Allen, Hamilton)](https://www.boozallen.com/content/dam/boozallen/documents/2015/12/2015-FIeld-Guide-To-Data-Science.pdf)
    + Goal
        * Describe
        * Discover
        * Predict
        * Advise
    + Data
    + Computation
        * Aggregation
        * Enrichment
        * Clustering
        * Classification
    + Action
        * Productization
        * Data monetization
        * Insights and relationships
- [Cross Industry Standard Process for Data Mining - CRISP-DM](https://en.wikipedia.org/wiki/Cross_Industry_Standard_Process_for_Data_Mining)
    + [CRISP Visual Guide](https://exde.files.wordpress.com/2009/03/crisp_visualguide.pdf)
- [Knowledge Discovery in Databases - KDD](https://en.wikipedia.org/wiki/Data_mining#Process)
    + [Overview of the KDD Process](http://www2.cs.uregina.ca/~dbd/cs831/notes/kdd/1_kdd.html)
    + [From Data Mining to Knowledge Discovery in Databases](http://www.kdnuggets.com/gpspubs/aimag-kdd-overview-1996-Fayyad.pdf)
- [Team Data Science Process (TDSP)](https://docs.microsoft.com/en-us/azure/machine-learning/data-science-process-overview) and [Interactive graphic](https://azure.microsoft.com/en-us/documentation/learning-paths/data-science-process/)
- [Acquire, Prepare, Analyze, Report, Act](https://www.coursera.org/learn/big-data-introduction/lecture/Fonq2/steps-in-the-data-science-process)
- [The REASON Method: Relating, Explaining, Selecting, Outlining, and Navigating](http://www.datasciencecentral.com/m/blogpost?id=6448529%3ABlogPost%3A369943)

## Data Mining
Coming soon...

## References
- [The Field Guide to Data Science (Booz, Allen, Hamilton)](https://www.boozallen.com/content/dam/boozallen/documents/2015/12/2015-FIeld-Guide-To-Data-Science.pdf)

url: https://raw.githubusercontent.com/bozzmob/data-science-machine-learning-ai-big-data-resources/97cc75b8f5dfdb17bbb89365742664400e766e4c/Data Science Goals, Components, Processes, and Deliverables.md

gha_language: Jupyter Notebook


text:
### [CVE-2023-23504](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-23504)
![](https://img.shields.io/static/v1?label=Product&message=iOS%20and%20iPadOS&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=macOS&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=tvOS&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=watchOS&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=unspecified%3C%2013.2%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Version&message=unspecified%3C%2016.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Version&message=unspecified%3C%209.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=An%20app%20may%20be%20able%20to%20execute%20arbitrary%20code%20with%20kernel%20privileges&color=brighgreen)

### Description

The issue was addressed with improved memory handling. This issue is fixed in macOS Monterey 12.6.3, macOS Ventura 13.2, watchOS 9.3, iOS 15.7.3 and iPadOS 15.7.3, tvOS 16.3, iOS 16.3 and iPadOS 16.3. An app may be able to execute arbitrary code with kernel privileges.

### POC

#### Reference
No PoCs from references.

#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/adamdoupe/adamd-pocs
- https://github.com/houjingyi233/macOS-iOS-system-security
- https://github.com/nomi-sec/PoC-in-GitHub
- https://github.com/zeroc00I/CVE-2023-23504


text:
---
title: iDeviceApi.idevice_connection_get_fd method
---

Get the underlying file descriptor for a connection

```csharp
public virtual iDeviceError idevice_connection_get_fd(iDeviceConnectionHandle connection,
    ref int fd)
```

| parameter | description |
| --- | --- |
| connection | The connection to get fd of |
| fd | Pointer to an int where the fd is stored |

## Return Value

IDEVICE_E_SUCCESS if ok, otherwise an error code.

## See Also

* enum [iDeviceError](../iDeviceError.md)
* class [iDeviceConnectionHandle](../iDeviceConnectionHandle.md)
* class [iDeviceApi](../iDeviceApi.md)
* namespace [iMobileDevice.iDevice](../../iMobileDevice-net.md)

<!-- DO NOT EDIT: generated by xmldocmd for iMobileDevice-net.dll -->

repository: qmfrederik/docsy-perf

repo_name: qmfrederik/docsy-perf


text:
[Webshims Lib](http://aFarkas.github.com/webshim/demos/index.html) - The polyfilling, capability based loading JavaScript Library
================================

Features
------------------

General Principles:

* HTML5 compliant: correctly and accurately implemented (HTML5) Markup-, JS- and DOM-APIs
* capability based loading: extremely lightweight in modern browsers
* cross-browser support: All A-Graded browsers including latest version of Opera are tested
* extendable: if we have not implemented a feature you want, you can easily implement it on your own

Implemented Features:

* HTML5 shiv and innerShiv solution including basic CSS-support
* canvas
* HTML5 form features including: constraint validation and form widgets (input[type="range"], input[type="date"], input[type="number"], input[type="time"], input[type="month"], output, progress, input[list]/datalist)
* HTML5 audio/video/track implementation
* interactive elements: summary/details
* JSON (stringify and parse)
* localStorage/sessionStorage
* geolocation
* ECMAScript 5 / JavaScript 1.8.5 features

How To Use
------------------

* Simply [download Webshims Lib](http://corrupt-system.de/webshims-stable.zip) and put the js-webshim-folder in your project
* Include the JavaScript:

---------------
	<script src="js/jquery.js"></script>
	// Simple change
	<script src="js-webshim/minified/extras/modernizr-custom.js"></script>
	// 'Use your own' variant
	<script src="js/Modernizr-custom.js"></script>

	<script src="js-webshim/minified/polyfiller.js"></script>

	<script>
		//load and implement all unsupported features
		$.webshims.polyfill();

		//or only load a specific feature
		//$.webshims.polyfill('geolocation json-storage');
	</script>
---------------

* Wait till everything has been loaded and then use it:

--------------
	<script>
		$(function(){
			//work with JSON and localStorage
			var userData = JSON.parse(localStorage.getItem('userData')) || {visits: 0};
			$('#visits').html(userData.visits);
			//...
		});
	</script>
--------------

More information and demos [here](http://aFarkas.github.com/webshim/demos/index.html).

License
---------------------------------------

The Webshims Lib core is licensed under the [MIT-License](http://aFarkas.github.com/webshim/MIT-LICENSE.txt). Note: Webshims Lib uses many great third party scripts.

Questions?
----------

If you have any questions, please feel free to ask them on [stackoverflow.com/questions/tagged/webshim](http://stackoverflow.com/questions/tagged/webshim).

**Please tag your questions with 'webshim'.**

upcomming Release 1.10.10
----------

- improved positioning support of popover (datalist, datepicker etc.) (if jQuery UI position utility is detected)
- re-added width: auto/height: auto support for mediaelement flash fallback [demo](http://afarkas.github.io/webshim/demos/demos/mediaelement/responsive-mediaelement.html)
- added media attribute support for mediaelement flash fallback
- updated regular expression for type="email"
- optional IDN support for type="email" for polyfilled browsers ([punycode](https://github.com/bestiejs/punycode.js) has to be included)

Release 1.10.9
----------

- fixed regression introduced in 1.10.8 with input[type="month"] [see Issue #258](https://github.com/aFarkas/webshim/issues/258)

Release 1.10.8
----------

- improved input event for input widgets (date, time, number)
- added en-AU locale (thx to @tomascassidy)
- Browserify compatibility (thx to @joeybaker)
- improved mediaelement error- and flashblock handling
- added mediaelement width/height content attribute support (deprecated, but used too much in the wild)
- use polyfilled input widgets in old Android stock browser (there are simply too much small bugs)
- tested jQuery 1.10.1 and 2.0.2 compatibility

Release 1.10.7
----------

- fixed several localization date formatting issues
- much improved french localization  (thx to @jls2933)

Release 1.10.6
----------

- fixed regression from 1.10.5 (selectedOption not implemented in all browsers)
- added Lithuanian (lt-LT) translations (thx @Gamesh)
- small style tweaks for input[type="color"] [demo](http://jsfiddle.net/trixta/sYVEd/)

Release 1.10.5
----------

- input[type="color"]
- Instant Form Validation helper (enhances the HTML5 UI for much better UX) [demo](http://jsfiddle.net/trixta/XqPhQ/)
- FileReader API
- improved range UI styleability
- lazy load mostly everything (performance)

Release 1.10.4
----------

- override IE10's type="number" UI
- improved styleability of input[type="range"]
- improved loading of mediaelement/track support
- improved performance for dynamic content (i.e.: updatePolyfill)
- optional override of IE10's placeholder
- new fix for placeholder orientationchange bug on Safari iOS

Release 1.10.3
----------

- tested support for jQuery 2.0.0
- fixed invisible native audio controls in IE9 in case of preload="none"
- improved datepicker type="date"/type="number"
- fixed flash encoding vars for special charakters in video path
- check initially invalid inputs in Firefox
- removed unused packages (jQuery UI, swfobject, jwplayer)

Release 1.10.2
----------

- improved list/datalist options [demo](http://jsfiddle.net/trixta/7DETa/)
- small improvements to type="range" and type="date" [demo](http://jsfiddle.net/trixta/VNuct/)
- fixed animate bug in jQuery 1.8.3
- fixed dutch language

repository: joeybaker/webshim-browserify-example

repo_name: joeybaker/webshim-browserify-example