text:
# Lambda Edge

## Introduction
Lambda@Edge is a feature of Amazon CloudFront that lets you run code closer to users of your application, which improves performance and reduces latency. With Lambda@Edge, you don't have to provision or manage infrastructure in multiple locations around the world.

[Lambda Edge official Docs](https://aws.amazon.com/lambda/edge/)

[Lambda Edge CDK](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-cloudfront-readme.html#lambdaedge)

## Code Explanation
### Step 1: Setup a CDK directory
`cdk init app --language typescript`

### Step2: Install following dependencies

`npm i @aws-cdk/aws-lambda`

`npm i @aws-cdk/aws-cloudfront`

`npm i '@aws-cdk/aws-cloudfront-origins`

`npm i @aws-cdk/aws-s3`

### Step3: Setup Your lambda Edge function
Following code will create a lambda edge function.Its setup is almost same as a normal lambda function.
```javascript
 const myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {
      runtime: lambda.Runtime.NODEJS_10_X,
      handler: 'index.handler',
      code: lambda.Code.fromAsset('lambda'),
    });
```
### Step4:Create an S3 bucket
Following code will create and S3 bucket.
```javascript
    const myBucket = new s3.Bucket(this, 'myBucket');
```
### Step5:Setup cloudfront and add your lambda function
Following code will deploy our lambda function to cloudfront CDN.
```javascript

    new cloudfront.Distribution(this, 'myDist', {

      defaultBehavior: {
        origin: new origins.S3Origin(myBucket),

        edgeLambdas: [
          {
            functionVersion: myFunc.currentVersion, // Add your lambda function version here.This is the version of the Lambda function that will be invoked.
            eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,// Add your lambda edge event type here.This is the type of event in response to which should the function be invoked.
          }
        ],
      },
    });
```

[Step 25 and 26 Video in English on Facebook](https://www.facebook.com/zeeshanhanif/videos/10225866783121112)

[Step 25 and 26 Video in English on YouTube](https://www.youtube.com/watch?v=onx7b32jRcM)

[Step 25 and 26 Video in Urdu on Facebook](https://www.facebook.com/zeeshanhanif/videos/10225904417381945)

[Step 25 and 26 Video in Urdu on Facebook](https://www.youtube.com/watch?v=LfhS4kuJTaI)

repository: AreebSiddiqui/full-stack-serverless-cdk

repo_name: AreebSiddiqui/full-stack-serverless-cdk


text:
# dotfiles
Before vim works, install Vundle:
```git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim```
For centralized swapfiles, undofiles, and backups, create the following directories:
```
mkdir ~/.vim/swapfiles ~/.vim/undofiles ~/.vim/backups
```

license: MIT

repository: VeljkoDimic/dotfiles

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: VeljkoDimic/dotfiles


text:
# homebridge-rcswitch
Operate 433/315Mhz devices using the [RCSwitch](https://github.com/sui77/rc-switch) library in [homebridge](https://github.com/nfarina/homebridge) (Apple Homekit).

## Installation
```bash
$ npm install -g nikriek/homebridge-rcswitch
```

## Configuration
Add your switch as new accessory:
```json
{
  "accessories": [{
    "accessory": "RCSwitch",
    "pin": 0,
    "name": "Backlight",
    "group": 1,
    "switch": 2
  }]
}
```

repository: nikriek/homebridge-rcswitch

repo_name: nikriek/homebridge-rcswitch


text:
Lutok
=====

Lutok is a lightweight C++ API library for Lua.

Lutok provides thin C++ wrappers around the Lua C API to ease the
interaction between C++ and Lua.  These wrappers make intensive use of
RAII to prevent resource leakage, expose C++-friendly data types, report
errors by means of exceptions and ensure that the Lua stack is always
left untouched in the face of errors.  The library also provides a small
subset of miscellaneous utility functions built on top of the wrappers.

Lutok focuses on providing a clean and safe C++ interface; the drawback
is that it is not suitable for performance-critical environments.  In
order to implement error-safe C++ wrappers on top of a Lua C binary
library, Lutok adds several layers or abstraction and error checking
that go against the original spirit of the Lua C API and thus degrade
performance.

This version is slightly extended so you can use more Lua functions in your C++ project.
There is also added C++ object wrapper which is based on Luna object wrapper

Dependencies
============
To build and use Lutok successfully you need:

* A standards-compliant C++ complier. (Visual Studio 2012 is preferred)
* Lua 5.1.x, LuaJIT 2.0.x
* update lua5.1.props so that you've got correct paths for Lua header and library files

Examples
========
Examples of use are included in files:
-	example/example_object.cpp
-	example/example_object.hpp
-	example/example_object.lua

Authors
=======
* Julio Merino<EMAIL_ADDRESS>- original developer
* Mário Kašuba<EMAIL_ADDRESS>
Links for further info
======================
For general project information, please visit:

-	https://github.com/soulik/lutok.git - current github for this version of Lutok
-	http://code.google.com/p/lutok/ - original version
-	http://lua-users.org/wiki/LunaWrapper - original version of Luna wrapper by nornagon

Copying
=======
Copyright 2012, 2013 Mário Kašuba
All rights reserved.

Copyright 2011, 2012 Google Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.
* Neither the name of Google Inc. nor the names of its contributors
  may be used to endorse or promote products derived from this software
  without specific prior written permission.

repository: soulik/lutok

repo_name: soulik/lutok


text:
# Utilities

# Kata Manager

> **Warning:**
>
> - Kata Manager will not work for Fedora 31 and higher since those
>   distribution versions only support cgroups version 2 by default. However,
>   Kata Containers currently requires cgroups version 1 (on the host side). See
>   https://github.com/kata-containers/kata-containers/issues/927 for further
>   details.

> **Note:**
>
> We recommend users install Kata Containers using
> [official distribution packages](../docs/install/README.md#official-packages), where available.

The [`kata-manager.sh`](kata-manager.sh) script automatically installs and
configures Kata Containers and containerd.

This scripted method installs the latest versions of Kata Containers and
containerd. However, be aware of the following before proceeding:

- Packages will **not** be automatically updated

  Since a package manager is not being used, it is **your** responsibility
  to ensure these packages are kept up-to-date when new versions are released
  to ensure you are using a version that includes the latest security and bug fixes.

- Potentially untested versions or version combinations

  This script installs the *newest* versions of Kata Containers
  and containerd from binary release packages. These versions may
  not have been tested with your distribution version.

If you still wish to continue, but prefer a manual installation, see
[the containerd installation guide](/docs/install/container-manager/containerd/containerd-install.md).

## Install a minimal Kata Containers system

By default, the script will attempt to install Kata Containers and
containerd, and then configure containerd to use Kata Containers. However,
the script provides a number of options to allow you to change its
behaviour.

> **Note:**
>
> Before running the script to install Kata Containers, we recommend
> that you [review the available options](#show-available-options).

### Show available options

To show the available options without installing anything, run:

```sh
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/kata-containers/kata-containers/main/utils/kata-manager.sh) -h"
```

### To install Kata Containers only

If your system already has containerd installed, to install Kata Containers and only configure containerd, run:

```sh
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/kata-containers/kata-containers/main/utils/kata-manager.sh) -o"
```

### To install Kata Containers and containerd

To install and configure a system with Kata Containers and containerd, run:

```bash
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/kata-containers/kata-containers/main/utils/kata-manager.sh)"
```

repository: kata-containers/kata-containers

branch_name: refs/heads/main

gha_language: Rust

repo_name: kata-containers/kata-containers


text:
---
layout: default
---

# 1994-07-11 - RE: Mass forwards vs. pointers

## Header Data

From: Blanc Weber<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: cd69e19bdf4c6c2084a5558c0ca4f2e665d99b5ae40e8e6c790b9feff30c6d00

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1994-07-11 16:36:17 UTC

Raw Date: Mon, 11 Jul 94 09:36:17 PDT

## Raw message

```
{% raw  %}From: Blanc Weber<EMAIL_ADDRESS>Date: Mon, 11 Jul 94 09:36:17 PDT
To<EMAIL_ADDRESS>Subject: RE: Mass forwards vs. pointers
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

From: Philippe Nave

Does anyone have a FAQ (or a brainstorm) on how to route Microsoft Mail
messages to appropriate folders based on message content?
...............................................

1.  You can use the Message Finder feature in MS Mail to collect all of
the messages, say To: "cypherpunks" and then move all of these to a
folder.  You can also select all the email sent directly to your name
or to a specific alias, read these, and continue searching the inbox
this way for messages groups.

2.  There's a software program from Beyond Incorported called WinRules
1.0, which will filter incoming messages according to who the message
is From, To, CC, words in content, attachments, etc. and route them to
folders, optionally popping up a message or a sound as a folder
receives email throughout the day.  It also has some other neat
features which you can set to deal with email traffic.

Blanc

{% endraw %}
```

## Thread

+ Return to [July 1994](/archive/1994/07)

+ Return to "[Blanc Weber <blancw@microsoft.com>](/authors/blanc_weber_blancw_at_microsoft_com_)"

+ 1994-07-11 (Mon, 11 Jul 94 09:36:17 PDT) - RE: Mass forwards vs. pointers - _Blanc Weber<EMAIL_ADDRESS>

gha_license_id: MIT


text:
Resource Server Implementation in Java
======================================

Overview
--------

This is a resource server implementation in Java. It supports a
[userinfo endpoint][1] defined in [OpenID Connect Core 1.0][2] and
includes an example of a protected resource endpoint that accepts
an access token in the ways defined in [RFC 6750][3] (The OAuth 2.0
Authorization Framework: Bearer Token Usage).

This implementation is written using JAX-RS 2.0 API and
[authlete-java-jaxrs][4] library. JAX-RS is _The Java API for RESTful
Web Services_. JAX-RS 2.0 API has been standardized by [JSR 339][5]
and it is included in Java EE 7. On the other hand,
authlete-java-jaxrs library is an open source library which provides
utility classes for developers to implement an authorization server
and a resource server. authlete-java-jaxrs in turn uses
[authlete-java-common][6] library which is another open source
library to communicate with [Authlete Web APIs][7].

To validate an access token presented by a client application, this
resource server makes an inquiry to the Authlete server. This means
that this resource server expects that the authorization server which
has issued the access token uses Authlete as a backend service.
[java-oauth-server][8] is such an authorization server implementation
and it supports [OAuth 2.0][9] and [OpenID Connect][10].

License
-------

  Apache License, Version 2.0

Source Code
-----------

  https://github.com/authlete/java-resource-server

About Authlete
--------------

[Authlete][11] is a cloud service that provides an implementation of OAuth 2.0
& OpenID Connect ([overview][12]). You can easily get the functionalities of
OAuth 2.0 and OpenID Connect either by using the default implementation
provided by Authlete or by implementing your own authorization server using
[Authlete Web APIs][7] as [java-oauth-server][8] does.

To use this resource server implementation, you need to get API credentials
from Authlete and set them in `authlete.properties`. The steps to get API
credentials are very easy. All you have to do is just to register your account
([sign up][13]). See [Getting Started][14] for details.

How To Run
----------

1. Download the source code of this resource server implementation.

        $ git clone https://github.com/authlete/java-resource-server.git
        $ cd java-resource-server

2. Edit the configuration file to set the API credentials of yours.

        $ vi authlete.properties

3. Make sure that you have installed [maven][29] and set `JAVA_HOME` properly.

4. Start the resource server on [http://localhost:8081/][15].

        $ mvn jetty:run &

#### Run With Docker

If you would prefer to use Docker, just hit the following command after the step 2.

    $ docker-compose up

#### Configuration File

`java-resource-server` refers to `authlete.properties` as a configuration file.
If you want to use another different file, specify the name of the file by
the system property `authlete.configuration.file` like the following.

    $ mvn -Dauthlete.configuration.file=local.authlete.properties jetty:run &

Endpoints
---------

This implementation exposes endpoints as listed in the table below.

| Endpoint          | Path                          |
|:------------------|:------------------------------|
| UserInfo Endpoint | `/api/userinfo`               |
| Country Endpoint  | `/api/country/{country-code}` |

#### UserInfo Endpoint

The userinfo endpoint is an implementation of the requirements described in
[5.3. UserInfo Endpoint][1] of [OpenID Connect Core 1.0][2].

The endpoint accepts an access token as a Bearer Token. That is, it accepts
an access token via `Authorization: Bearer {access-token}` or by a request
parameter `access_token={access-token}`. See [RFC 6750][20] for details.

The endpoint returns user information in JSON or [JWT][18] format, depending
on the configuration of the client application. If both
`userinfo_signed_response_alg` and `userinfo_encrypted_response_alg` of
the metadata of the client application are not specified, user information
is returned as a plain JSON. Otherwise, it is returned as a serialized JWT.
Authlete provides you with a Web console ([Developer Console][19]) to manage
metadata of client applications. As for metadata of client applications, see
[2. Client Metadata][21] in [OpenID Connect Dynamic Client Registration 1.0][22].

User information returned from the endpoint contains [claims][27] of the user.
In short, _claims_ are pieces of information about the user such as a given
name and an email address. Because Authlete does not manage user data (although
it supports OpenID Connect), you have to provide claim values. It is achieved
by implementing `UserInfoRequestHandlerSpi` interface.

In this resource server implementation, `UserInfoRequestHandlerSpiImpl` is
an example implementation of `UserInfoRequestHandlerSpi` interface and it
retrieves claim values from a dummy database. You need to modify the
implementation to make it refer to your actual user database.

##### NOTE (May 1, 2022)

A userinfo endpoint was implemented in [java-oauth-server][8]. The userinfo
endpoint implemented in java-resource-server is no longer maintained.

The userinfo endpoint implementation in java-oauth-server correctly implements
the filtering rules and the data minimization policy of
[OpenID Connect for Identity Assurance 1.0][IDA] and supports Transformed Claims
defined in [OpenID Connect Advanced Syntax for Claims 1.0][ASC].

#### Country Endpoint

The country endpoint implemented in this resource server is just an example
of a protected resource endpoint. Its main purpose is to show how to validate
an access token at a protected resource endpoint. To be concrete, the purpose
is to show usage of `extractAccessToken` method and `validateAccessToken`
method defined in `BaseResourceEndpoint` class.

The path of the country endpoint is `/api/country/{country-code}` where
`{country-code}` is an [ISO 3166-1 code][23] ([alpha-2][24], [alpha-3][25],
or [numeric][26]). For example, `JP`, `JPN` and `392` are valid ISO 3166-1
codes and all of them represent Japan. Therefore, the following URL is a
valid request to the country endpoint.

    http://localhost:8081/api/country/JP?access_token={access-token}

The response from the endpoint is JSON that contains the following information
about the country identified by the `{country-code}`.

  1. Country name
  2. ISO 3166-1 alpha-2 code
  3. ISO 3166-1 alpha-3 code
  4. ISO 3166-1 numeric code
  5. Currency

The following is an example response.

```javascript
{
  "name": "Japan",
  "alpha2": "JP",
  "alpha3": "JPN",
  "numeric": 392,
  "currency": "JPY"
}
```

As for generic and Authlete-specific information regarding how to protect
Web APIs by OAuth access tokens, see [Protected Resource][16] in
[Authlete Definitive Guide][17].

Customization
-------------

The simplest way to add a new protected resource endpoint is to create a
subclass of `BaseResourceEndpoint` as `CountryEndpoint` does. However,
of course, it is okay for you to use `AccessTokenValidator` (in
[authlete-java-jaxrs][4]) or call
`AuthleteApi.introspection(IntrospectionRequest)` API (in
[authlete-java-common][6]) directly.

As you add new protected resource endpoints, you will want to add new scopes.
Use [Service Owner Console][28] to add new scopes for your Web APIs.

See Also
--------

- [Authlete][11] - Authlete Home Page
- [authlete-java-common][6] - Authlete Common Library for Java
- [authlete-java-jaxrs][4] - Authlete Library for JAX-RS (Java)
- [java-oauth-server][8] - Authorization Server Implementation

Contact
-------

| Purpose   | Email Address        |
|:----------|:---------------------|
| General   |<EMAIL_ADDRESS>  |
| Sales     |<EMAIL_ADDRESS> |
| PR        |<EMAIL_ADDRESS>    |
| Technical |<EMAIL_ADDRESS>|

[1]: https://openid.net/specs/openid-connect-core-1_0.html#UserInfo
[2]: https://openid.net/specs/openid-connect-core-1_0.html
[3]: https://tools.ietf.org/html/rfc6750
[4]: https://github.com/authlete/authlete-java-jaxrs
[5]: https://jcp.org/en/jsr/detail?id=339
[6]: https://github.com/authlete/authlete-java-common
[7]: https://docs.authlete.com/
[8]: https://github.com/authlete/java-oauth-server
[9]: https://tools.ietf.org/html/rfc6749
[10]: https://openid.net/connect/
[11]: https://www.authlete.com/
[12]: https://www.authlete.com/developers/overview/
[13]: https://so.authlete.com/accounts/signup
[14]: https://www.authlete.com/developers/getting_started/
[15]: http://localhost:8081/
[16]: https://www.authlete.com/developers/definitive_guide/protected_resource/
[17]: https://www.authlete.com/developers/definitive_guide/
[18]: https://tools.ietf.org/html/rfc7519
[19]: https://www.authlete.com/developers/cd_console/
[20]: https://tools.ietf.org/html/rfc6750
[21]: https://openid.net/specs/openid-connect-registration-1_0.html#ClientMetadata
[22]: https://openid.net/specs/openid-connect-registration-1_0.html
[23]: https://en.wikipedia.org/wiki/ISO_3166-1
[24]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
[25]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
[26]: https://en.wikipedia.org/wiki/ISO_3166-1_numeric
[27]: https://openid.net/specs/openid-connect-core-1_0.html#Claims
[28]: https://www.authlete.com/developers/so_console/
[29]: https://maven.apache.org/
[IDA]: https://openid.net/specs/openid-connect-4-identity-assurance-1_0.html
[ASC]: https://bitbucket.org/openid/ekyc-ida/src/master/openid-advanced-syntax-for-claims.md

repository: authlete/java-resource-server

gha_language: Java

repo_name: authlete/java-resource-server


text:
---
layout: post
title: "SimWeek 10"
categories: [Simulation Week]
tags: [FEA, CFD, LBM, engineering]
comments: true
image:
  feature: simweek10.png
  teaser: simweek10-teaser.png
  credit:
  creditlink:
---

# Finite Element Analysis

- The Critical Plane Analysis is an algorithm implemented in all modern fatigue analysis softwares. Here, people from Endurica try to explain its idea [MOV]

- Implosion of bottle modelled using hyperelastic material model - looks like highly complicated numerical analysis! [MOV]

- Something for the students - Altair Learning Certification Program [ART.]

# Computational Fluid Dynamics

- This is why parametric models are so great. One can show a script how search for the best solution and user can sit, watch and decide which result is the best [ART.]

- The Belgian students have built an electric race which hit 100km/h in 2.6s. None of this would be possible without CFD of course! [ART.]

- The last video from NASA. Outstanding! [MOV]

Launching a rocket from a rocket! 🚀Advanced simulations & complex visualizations help engineers analyze the physics involved with @NASA_Orion's launch abort vehicle, designed to carry astronauts to safety if a problem occurs during launch or ascent. #HPC https://t.co/zdUrX2eYf2 pic.twitter.com/4u4cNsdFZC
— NAS Supercomputing (@NASA_NAS) 6 March 2018

- This is how I hope to check my mesh in near future! [MOV]

# Other types of simulation

- This is how Pharmacy is taking advantage of Discrete Element Method [MOV]

# Engineering

- The article can be very useful for everyone who would like to more about 3D-printing. It explains the residual stresses which appear in printed item and shows how to avoid them [ART.]

- 16 Cylinder Gas Powered Stirling Engine [MOV]

- Augmented Reality used as Medical Device [MOV]

This surgery software uses mixed reality to minimize errors in the OR pic.twitter.com/zYkNqqJsMO
— Interesting Engineering (@IntEngineering) 2 March 2018

- The only type of snake I can bear [MOV]

- Celebrating International Women's day, Ms. Engineer Agnieszka reveal some secrets about her work in Siemens [MOV]

repository: spolanski/blog

repo_name: spolanski/blog


text:
---
title: Rule PEQZoneDebuff1
searchTitle: Lua Rule PEQZoneDebuff1
weight: 1
hidden: true
menuTitle: Rule PEQZoneDebuff1
---
## PEQZoneDebuff1

This represents a PEQZoneDebuff1 Rule
```lua
Rule.PEQZoneDebuff1
```

repository: xackery/eqquestapi

repo_name: xackery/eqquestapi


text:
    PlazarJS

    <img<EMAIL_ADDRESS>alt="downloads" />

A versatile framework built to enrich the developer experience in terms of simplicity and speed of application development.

## Table of Contents

- :hammer: [Installation](#installation)
- :loudspeaker: [Introduction](#introduction)
- :book: [Getting Started and Documentation](#getting-started-and-documentation)
- :electric_plug: [Bootstrap Integration](#bootstrap-integration)
- :thumbsup: [Contribution](#contribution)
- :signal_strength: [Browser Support](#browser-support)
- :clipboard: [Plans](#plans)

## Installation

Run the following npm command:
```bash
$ npm install @plazarjs/core
```
Or, place the script tag on your page:
```html
<script src="https://cdn.jsdelivr.net/npm/@plazarjs/core"></script>
```
Check out the list of available dependant packages.

## Introduction

PlazarJS is a un-opinionated framework for JavaScript. It has no dependencies and by leaning on Object-Oriented-Principles (OOP) it can easily be used to create a large Single-Page Application or it can be integrated to a portion of a web page where dynamic workflow is required. It's built to be flexible and designed to help you build the application the way you want it without forcing you to follow a path you don't think is suitable for the application you are developing. The main focus is on good old trio, HTML, CSS and JavaScript.

##### TL;DR

1. Can define components, mixins or classes by invoking `pz.define`, `pz.component.extend` or `pz.class.extend`. Mixins are not extendable.
2. Reuse each type later in the app as much as needed. One type, multiple instances.
3. Extend each type with another by setting the `ownerType`. Note that this config is not required when using the `extend` approach. The `ownerType` is automatically recognized.
4. Override parent method implementation.
5. Each method overridden in a child type can call its parent by invoking `this.base(arguments)`.

##### Core Features

1. Modularity
2. Components
3. Mixins
4. Classes
5. Inheritance
6. Bindings and Templating (inline, pre-rendered, async templates)

## Getting Started and Documentation

A quick example:

```javascript
// define the component
import pz from '@plazarjs/core';

const helloWorld = {
  ownerType: 'component',
  template: '<div>Hello from {fw}</div>',
  renderTo: 'body',
  autoLoad: true,
  viewModel: {
    fw: 'plazarjs'
  }
};

export default pz.define('hello-world', helloWorld);

// create the component where required
import helloWorld from 'my-path/helloWorld';
helloWorld.create();
```

The equivalent of the code above written with the extend API looks like this:

```javascript
// define the component
import pz from '@plazarjs/core';

const helloWorld = {
  type: 'hello-world',
  template: '<div>Hello from {fw}</div>',
  renderTo: 'body',
  autoLoad: true,
  viewModel: {
    fw: 'plazarjs'
  }
};

export default pz.component.extend(helloWorld);

// create the component where required
import helloWorld from 'my-path/helloWorld';
helloWorld.create();
```
Detailed documentation can be found here.

Live demo can be found here.

## Bootstrap Integration

Checkout the module integration here.

## Contribution

Please read the Contributing Guide before making a pull request.

## Browser Support

PlazarJS supports all ECMAScript 5 compliant browsers. Check out the compatibility table.

#### IE Browser Support

Every implementation/change is done in a way to ignore IE version 9 and lower.

## Plans

Some of the next major releases will contain:

1. TypeScript support.
2. Core plazar-ui (set of controls out of the box). This will eliminate the need for any external CSS framework integration. Of course, you would still be able to integrate any of them if you choose so.

## License

MIT

repository: ProticM/plazar-js

gha_language: JavaScript

repo_name: ProticM/plazar-js


text:
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) > [@firebase/performance-types](./performance-types.md) > [PerformanceTrace](./performance-types.performancetrace.md)

## PerformanceTrace interface

<b>Signature:</b>

```typescript
export interface PerformanceTrace
```

## Methods

|  Method | Description |
|  --- | --- |
|  [getAttribute(attr)](./performance-types.performancetrace.getattribute.md) | Retrieves the value which a custom attribute is set to. |
|  [getAttributes()](./performance-types.performancetrace.getattributes.md) | Returns a map of all custom attributes of a trace instance. |
|  [getMetric(metricName)](./performance-types.performancetrace.getmetric.md) | Returns the value of the custom metric by that name. If a custom metric with that name does not exist will return zero. |
|  [incrementMetric(metricName, num)](./performance-types.performancetrace.incrementmetric.md) | Adds to the value of a custom metric. If a custom metric with the provided name does not exist, it creates one with that name and the value equal to the given number. The value will be floored down to an integer. |
|  [putAttribute(attr, value)](./performance-types.performancetrace.putattribute.md) | Set a custom attribute of a trace to a certain value. |
|  [putMetric(metricName, num)](./performance-types.performancetrace.putmetric.md) | Sets the value of the specified custom metric to the given number regardless of whether a metric with that name already exists on the trace instance or not. The value will be floored down to an integer. |
|  [record(startTime, duration, options)](./performance-types.performancetrace.record.md) | Records a trace from given parameters. This provides a direct way to use trace without a need to start/stop. This is useful for use cases in which the trace cannot directly be used (e.g. if the duration was captured before the Performance SDK was loaded). |
|  [removeAttribute(attr)](./performance-types.performancetrace.removeattribute.md) | Removes the specified custom attribute from a trace instance. |
|  [start()](./performance-types.performancetrace.start.md) | Starts the timing for the trace instance. |
|  [stop()](./performance-types.performancetrace.stop.md) | Stops the timing of the trace instance and logs the data of the instance. |

repository: WeilerWebServices/Firebase

repo_name: WeilerWebServices/Firebase


text:
**P**latform for \
**I**ntegrated \
**L**anduse \
**A**nd \
**T**ransportation \
**E**xperiments and \
**S**imulation

PILATES is designed to facilitate the integration of various containerized microsimulation applications that together fully model the co-evolution of land use and transportation systems over time for the purpose of long-term regional forecasting.

The PILATES Python library is comprised primarily of the following:
1. **run.py** -- An executable python script responisble for orchestrating the execution of all containerized applications and data-transformation steps.
2. **settings.yaml** -- A configuration file for managing and defining high-level system parameters (e.g. geographic region, local data paths, simulation time horizon, etc.)
3. **application-specific dirs** -- The subdirectories of `pilates/` contain application-specific I/O directories for mounting to their respective container images, as well as application-specific Python modules responsible for transforming and archiving I/O data generated/used by other component applications.
4. **utils/** -- A subdirectory of `pilates/` containing various Python modules that might be relevant to any or all of the component applications (e.g. common geographic data transformations or http requests to the US Census API.)

## 1. Setting up your environment
1. Make sure docker is running on your machine and that you've either pre-downloaded the required container images (specified in `settings.yaml`) or that you've signed into a valid docker account with dockerhub access.
2. Change other relevant parameters in `settings.yaml` (probably only [L7-31](https://github.com/ual/PILATES/blob/v2/settings.yaml#L7-L30))
   - UrbanSim settings of note:
      - `region_to_region_id` must have an entry that corresponds to the name of the input HDF5 datastore (see below)
   - ActivtySim settings of note:
      - num_processors: adjust this number to take full advantage of multi-threaded data processing in Python. Number should be close to the total number of virtual CPUs available on your machine (threads X cores x processors per core or something like that).
      - chunk_size: adjust this number to take full advantage of the available RAM on your machine. Trying making this number bigger until the activitysim container segfaults or is killed due to a memory error.
4. Make sure your Python environment has `docker-py`, and `pyyaml` installed.

## 2. I/O
PILATES only needs two local data files in order to run: 1) an archive of land use and population tables corresponding to base year data for the specified region; and 2) a table of base-year travel skims in the format of the specified travel model. Currently, these two files are organized as follows:
1. **pilates/urbansim/data/custom_mpo_\<xxxxxxxx\>_model_data.h5** - an UrbanSim-formatted HDF5 datastore where `<xxxxxxxx>` is an 8-digit region ID corresponding to one of the IDs in the settings [L40](https://github.com/ual/PILATES/blob/master/settings.yaml#L40).
2. **pilates/\<travel model\>/\<travel model data dir\>/\<skims filename\>** - the input skims file, where `<skims filename>` is the name of the skims file specified in settings [L30](https://github.com/ual/PILATES/blob/master/settings.yaml#L31). Currently `polaris` and `beam` are the only supported travel models/skim formats.

With those two files in those two places, PILATES should handle the rest.

NOTE: currently all input data is overwritten in place throughout the course of a multi-year PILATES run. To avoid data loss please store a local copy of the input data outside of PILATES.

## 3. Executing the full workflow
```
usage: ipython [-v] [-p] [-h HOUSEHOLD_SAMPLE_SIZE] [-s] [-w] [-d DISABLE_MODEL] [-c CONFIG]

optional arguments:
  -v, --verbose         print docker stdout
  -p, --pull_latest     pull latest docker images before running
  -h HOUSEHOLD_SAMPLE_SIZE, --household_sample_size HOUSEHOLD_SAMPLE_SIZE
                        household sample size (only works if land use models are disables)
  -s, --static_skims    bypass traffic assignment altogether (i.e. use base year skims for every run)
  -w, --warm_start_skims
                        generate full activity plans for the base year only. useful for generating warm start skims.
  -d DISABLE_MODEL, --disable_model DISABLE_MODEL
                        "l" for land use, "a" for activity demand, "t" for traffic assignment. Can specify multiple (e.g. "at")
  -c CONFIG, --config CONFIG
                        Specify different config .yaml (other than "settings.yaml")
```

## Miscellany

### ActivitySim BEAM integration
In order to have BEAM to run correctly one needs to set the following settings:

1. **skims_fname**: `gemini/10.activitySimODSkims.UrbanSim.TAZ.Full.csv.gz` The full skim file that contains all Origin Destinations pairs with ActivitySim path types.
2. **beam_config**: `gemini/activitysim-base-from-60k-input.conf` Path to beam config. This path must be relative to `beam_local_input_folder` and `region`. The BEAM docker container is provided with this config as an input.
3. **beam_scenario_folder**: `gemini/activitysim-plans-base-2010-cut-60k` Folder with BEAM scenario where ActivitySim output goes. Files from this folder are a scenario input for BEAM.
4. **beam_local_input_folder**: `pilates/beam/production/` Path to BEAM input folder. This folder is going to be mapped to the BEAM container input folder.
5. **beam_local_output_folder**: `pilates/beam/beam_output/` The BEAM output is going to be saved here. In order to have a clean run this directory should be empty before start.

#### BEAM Config: saves ASIM skims, enables BEAM to reuse the previous BEAM output plans, linkstats.

BEAM config should be set in the way so that BEAM saves ActivitySim skims, linkstats and loads people plans and linkstats from the previous runs.

This is the BEAM config options that enables it.

```hocon
# most of the time we need a single iteration
beam.agentsim.firstIteration = 0
beam.agentsim.lastIteration = 0

beam.router.skim = {
  # This allows to write skims on each iteration
  writeSkimsInterval = 1
}

beam.exchange{
  output {
    # this enables saving activitySim Skims
    activitySimSkimsEnabled = true
    # geo level different than TAZ (in beam taz-centers format)
    geo.filePath = ${beam.inputDirectory}"/block_group-centers.csv.gz"
  }
}

# This loads linkStats from the last found BEAM runs
beam.warmStart.type = "linkStatsFromLastRun"

# For subsequential beam runs (some data will be laoded from the latest found run in this directory)
beam.input.lastBaseOutputDir = ${beam.outputs.baseOutputDirectory}
# This prefix is used to find the last run output directory within beam.input.lastBaseOutputDir direcotry
beam.input.simulationPrefix = ${beam.agentsim.simulationName}

# fraction of input plans to be merged into the latest output plans (taken from the beam.input.lastBaseOutputDir)
beam.agentsim.agents.plans.merge.fraction = 0.2
```

#### Executing the simulation
```shell
nohup python run.py -v
```
nohup keeps the script working in case the user session is closed. The output is saved to nohup.out file by default.

repository: ual/PILATES

gha_language: Python

repo_name: ual/PILATES


text:
---
layout: post
title: 修改ubuntu源为阿里源
date: 2020-07-02
categories:
    - linux
comments: true
permalink: ubuntu-source.html
---

```
# 更新软件源为阿里源并用它更新软件
cp /etc/apt/sources.list /etc/apt/sources.list.bak_`date "+%y_%m_%d"`
sed -i 's/http:\/\/.*.ubuntu.com/https:\/\/mirrors.aliyun.com/g' /etc/apt/sources.list
apt update
apt upgrade
```

参考

https://developer.aliyun.com/mirror/


text:
```
_________________________________________________/\/\___________________
_/\/\/\/\/\__/\/\__/\/\____/\/\/\/\__/\/\__/\/\__/\/\________/\/\/\/\___
_____/\/\______/\/\/\____/\/\________/\/\__/\/\__/\/\/\/\____/\/\__/\/\_
___/\/\________/\/\/\____/\/\__________/\/\/\____/\/\__/\/\__/\/\__/\/\_
_/\/\/\/\/\__/\/\__/\/\____/\/\/\/\______/\______/\/\/\/\____/\/\__/\/\_
________________________________________________________________________
```

`zxcvbn`, named after a crappy password, is a JavaScript password strength
estimation library. Use it to implement a custom strength bar on a
signup form near you!

`zxcvbn` attempts to give sound password advice through pattern matching
and conservative entropy calculations. It finds 10k common passwords,
common American names and surnames, common English words, and common
patterns like dates, repeats (aaa), sequences (abcd), and QWERTY
patterns.

For full motivation, see:

http://tech.dropbox.com/?p=165

# Installation

``` html
<script type="text/javascript" src="zxcvbn-async.js">
</script>
```

is the best way to add `zxcvbn` to your site. Host `zxcvbn.js` and
`zxcvbn-async.js` somewhere on your web server, and make the hardcoded
path inside `zxcvbn-async.js` point to `zxcvbn.js`. A relative path works
well.

`zxcvbn-async.js` is a tiny 350 bytes. On `window.load`, after your page
loads and renders, it'll fetch `zxcvbn.js`, which is more like 700k (330k
gzipped), most of which is a series of dictionaries.

I haven't found 700k to be too large -- especially because a password
isn't the first thing a user typically enters on a registration form.

`zxcvbn.js` can also be included directly:

``` html
<script type="text/javascript" src="zxcvbn.js">
</script>
```

But this isn't recommended, as the 700k download will block your
initial page load.

`zxcvbn` adds a single function to the global namespace:

``` javascript
zxcvbn(password, user_inputs)
```

It takes one required argument, a password, and returns a result object.
The result includes a few properties:

``` coffeescript
result.entropy            # bits

result.crack_time         # estimation of actual crack time, in seconds.

result.crack_time_display # same crack time, as a friendlier string:
                          # "instant", "6 minutes", "centuries", etc.

result.score              # [0,1,2,3,4] if crack time is less than
                          # [10**2, 10**4, 10**6, 10**8, Infinity].
                          # (useful for implementing a strength bar.)

result.match_sequence     # the list of patterns that zxcvbn based the
                          # entropy calculation on.

result.calc_time          # how long it took to calculate an answer,
                          # in milliseconds. usually only a few ms.
````

The optional `user_inputs` argument is an array of strings that `zxcvbn`
will add to its internal dictionary. This can be whatever list of
strings you like, but is meant for user inputs from other fields of the
form, like name and email. That way a password that includes the user's
personal info can be heavily penalized. This list is also good for
site-specific vocabulary.

When `zxcvbn` loads (after the async script fetch is complete), it'll
check if a function named `zxcvbn_load_hook` is defined, and run it with
no arguments if so. Most sites shouldn't need this.

# Development

Bug reports and pull requests welcome!

`zxcvbn` is written in CoffeeScript and Python. `zxcvbn.js` is built with
`compile_and_minify.sh`, which compiles CoffeeScript into JavaScript,
then JavaScript into efficient, minified JavaScript.

For development, include these scripts instead of `zxcvbn.js`:

``` html
<script type="text/javascript" src="adjacency_graphs.js">
</script>
<script type="text/javascript" src="frequency_lists.js">
</script>
<script type="text/javascript" src="matching.js">
</script>
<script type="text/javascript" src="scoring.js">
</script>
<script type="text/javascript" src="init.js">
</script>
```

Data lives in the first two scripts. These get produced by:

```
scripts/build_keyboard_adjacency_graph.py
scripts/build_frequency_lists.py
```

`matching.coffee`, `scoring.coffee`, and `init.coffee` make up the rest of the
library.

`init.js` needs to come last, otherwise script order doesn't matter.

I recommend setting up coffee-mode in emacs, or whatever equivalent, so
that CoffeeScript compiles to js on save. Otherwise you'll need to
repetitively run `compile_and_minify.js`

# Acknowledgments

Dropbox, thank you in so many ways, but in particular, for supporting
independent projects both inside and outside of hackweek.

Many thanks to Mark Burnett for releasing his 10k top passwords list:

http://xato.net/passwords/more-top-worst-passwords

and for his 2006 book,
"Perfect Passwords: Selection, Protection, Authentication"

Huge thanks to Wiktionary contributors for building a frequency list
of English as used in television and movies:
http://en.wiktionary.org/wiki/Wiktionary:Frequency_lists

Researchers encourage others to model their strength meters after this one: http://www.concordia.ca/cunews/main/stories/2015/03/25/does-your-password-pass-muster.html

Last but not least, big thanks to xkcd :)
https://xkcd.com/936/

branch_name: refs/heads/dev


text:
Open beautifier.io to try it out. Options are available via the UI.

https://www.npmjs.com/package/js-beautify
---
# Install globally

```shell
$ npm -g install js-beautify
```

---
# Commandline Usage

```shell
$ js-beautify foo.js
```

---
# Install as a Package
```shell
$ npm install js-beautify
```

---
# External references

Use directly from a CDN:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.8.9/beautify.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.8.9/beautify-css.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.8.9/beautify-html.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.8.9/beautify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.8.9/beautify-css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.8.9/beautify-html.min.js"></script>

<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.8.9/js/lib/beautify.js"></script>
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.8.9/js/lib/beautify-css.js"></script>
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.8.9/js/lib/beautify-html.js"></script>
```
---

repository: DappDevs/DeckBuilder

repo_name: DappDevs/DeckBuilder


text:
# rocambole-token

Helpers to manipulate [rocambole](https://github.com/millermedeiros/rocambole)
AST tokens.

## Why?

Created mainly to be used by
[esindent](https://github.com/millermedeiros/esindent/) and
[esformatter](https://github.com/millermedeiros/esformatter/).

## Important Notes

Right now all methods ignores the `loc` and `range` info of the tokens, this is
*by design* since updating the range and loc info on a large JS program
multiple times can be very expensive. It's *better* to write a separate tool to
*sanitize* this info and that can be executed as a separate step.

Also important to note that right now rocambole doesn't add any reference on
the token itself to the nodes that contain that token, so if you remove a token
that happens to be the `startToken` or `endToken` of any node you might have
some conflict if you start manipulating the tokens based on the `nodes`,
instead of the `token` LinkedList. - the `node.startToken` might be *detached*
from the LinkedList.

Test coverage is pretty low so far, but since it was mostly extracted from
esformatter the methods should work as expected. I started to write some tests
just to show how I would do it but did not had the time to finish it...
(ideally tests should be written before the implementation).

## License

Released under the MIT License.

repository: bensaadmucret/Loki-Plugin

repo_name: bensaadmucret/Loki-Plugin


text:
#### Parser Content
```Java
{
Name = json-4624-1
  DataType = "windows-4624"
  Conditions = [ """"event-id":4624""", """"message":"An account was successfully logged on""", """"user":""" ]
  Fields = ${WinParserTemplates.json-windows-events.Fields}[
    """"target-logon-id":"({logon_id}[^"]+)"""
  ]
}
```

repository: ansell/Content-Doc

repo_name: ansell/Content-Doc


text:
# CRA Example

Minimal demo of loading spinners with create-react-app using ESM bundle.

```sh
# Install dependecies
yarn install

# Start the server
yarn start
```

repository: philwamba/react-css-loading

repo_name: philwamba/react-css-loading


text:
# Change Log

All notable changes to the "silver-gray" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [0.2.2]

- Redefine workbench colors of Primer Theme
## [Unreleased]

- Initial release


text:
A quick tool for getting basic statistics on logs from https://www.pokernow.club/

Usage:

python3 log_processor.py <log_filename.csv>

Warnings may be emitted when new log formats are introduced, which can prevent results from being printed. At this point, you have two options:

1) Update the tool to handle the new log format. This would be greatly appreciated on my end :)
2) Use the flag --ignore_warnings. This will ignore any lines in the log that haven't been explicitly handled. Of course, if these lines related to the stats, you'll get more inaccurate results.

If you want to help extend capabilities, have bug reports, or feature requests, let me know. I will do my best to address these in the time that I have.


text:
# Cancel

In this demo we intend to show that we can use a syscall to terminate a thread and release the resources owned by it.

To illustrate the mechanism, we must introduce the following:

* `thread_wait` (in `src/user/thread.c`)
* `thread_cancel` (in `src/user/thread.c`)

## `thread_wait`

This function sets the state of the current thread to `waiting` and yields.

Since the scheduler will not pick a thread in `waiting` state, the thread will remain idle until another thread changes its state.

## `thread_cancel`

When we call this function, it will cancel the thread specified by the `tid`.

If `tid` is given as `CURRENT_THREAD`, the current thread will be terminated. The scheduler will choose another thread to run.

If we apply `cancel()` to a valid thread, the memory space it uses will be released. Then we can create another thread using the released memory space.

When we call the function to cancel an invalid thread, it will return `false`. No thread will be terminated.

## Walkthrough

In the beginning, the `setup()` function creates a thread called `cancel_self` which cancels itself after it starts to run.

When the scheduler chooses `setup` thread to run again, it creates another 3 threads.

The `tid` of each thread and their corresponding routines are listed below:

| tid | routine   | usage                  |
| --- | --------- | ---------------------- |
| 1   | work      | thread to be cancelled |
| 2   | canceller | execute cancelling     |
| 3   | work      | thread to be cancelled |

The `setup` thread then sets its state to `waiting` and yields. The scheduler chooses thread 1 to run next. It prints out the message `"foo"` and yields.

The `canceller` thread starts by checking that you can't cancel an invalid thread, then cancelling thread 3. Then `canceller` adds a new thread. We will place the new thread into space that used to store the thread we cancelled. As a result, the `tid` of the new thread will be `3`. We cancel the new thread 3 when we end up checking.

After that, the `canceller` thread terminates thread 1. We see that its state is `cancelled` when we use `thread_join()` to join thread 1.

Finally, the `canceller` cancels thread 0 (which is still in the `waiting` state) and returns. The demo now ends because there are no valid threads left.


text:
---
layout: post
permalink: blog/blog42/
categories: [Extra, Deep Learning]
---

![Photo by [Will B](https://unsplash.com/@willbro?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)](https://cdn-images-1.medium.com/max/12000/0*XfosbY2xJCLpQlCC) Photo by [Will B](https://unsplash.com/@willbro?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)

# Stacked Capsule Autoencoders

## A look into the future of object detection in images and videos using Unsupervised Learning and a limited amount of training data.

## Introduction

During the last few years, [Geoffrey Hinton](https://en.wikipedia.org/wiki/Geoffrey_Hinton) and a team of researchers started working on a revolutionary new type of neural network based on Capsules.

Some of the main motivations behind this study are that current neural networks like [Convolutional Neural Networks (CNNs)](https://en.wikipedia.org/wiki/Convolutional_neural_network) are able to achieve the state of the art accuracy in [computer vision](https://towardsdatascience.com/roadmap-to-computer-vision-79106beb8be4) tasks such as object detection only if provided a large amount of data.

One of the main reason why models like CNNs require such a large amount of data is their inability to capture orientational and spatial relationships between the different elements which compose an image. In fact, one of the main techniques used in order to improve CNNs performances is Data Augmentation. When applying Data Augmentation, we help our model learn more in-depth and in a more general way what characterises different objects by creating additional data from the original one by for example rotating, cropping, flipping, etc… the original images. In this way, our model will more likely be able to recognise the same object even if seen from a different perspective (Figure 1).

![Figure 1: Viewing the same object from a different perspective can cause misconception [1].](https://cdn-images-1.medium.com/max/2000/1*raMNsT7H947BObauwCRttQ.png)

Figure 1: Viewing the same object from a different perspective can cause misconception [1].

CNNs are able to detect objects by first identifying edges and shapes in an image and then combining them together. This approach although does not take into account spacial hierarchies which construct the overall image, and therefore leading to the need of creating large datasets in order to perform well (increasing therefore also the computational cost necessary in order to train the model).

## Capsules

Geoffrey Hinton approach of using Capsules closely follow instead the principle of Inverse Graphic. In fact, according to Hinton, every time our brain processes a new object, its representation does not depend on the viewing angle. Therefore, in order to create models able to perform object recognition as good as our brain can do, we need to be able to capture the hierarchical relationship of the different parts which compose an object and relate them with respect to a frame of coordinates.

This can be achieved by basing our network on a structure called Capsule. A capsule is a data structure incorporating in a vector form all the main information of the feature we are detecting. Its main constituents are:

 1. A logistic unit which represents if a shape exists in an image.

 2. A matrix representing the [pose](http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MARBLE/high/pose/express.htm) of the shape.

 3. A vector embedding other information such as colour, deformations, etc…

Different approaches have been proposed by Hinton research team during the last few years in order to create Capsule Network such as:

* 2017: [Dynamic Routing](https://arxiv.org/abs/1710.09829) (discriminative learning and part-whole relationships).

* 2018: [Expectation–maximization Algorithm](https://www.cs.toronto.edu/~hinton/absps/EMcapsules.pdf) (discriminative learning and part-whole relationships).

* 2019: [Stacked Capsule Networks](https://arxiv.org/abs/1906.06818) (unsupervised Learning, whole parts relationships).

In Capsule Networks, the different neurons compete with each other in order to find agreeing parts which compose objects in images. Three different approaches can be used in order to measure agreements between different capsules:

* Using cosine distance as a measure of agreement.

* Expectation-Maximization.

* Mixture Models.

As shown in Figure 2, basing our system on understanding objects on the grounds of geometric relationships we can then enable our model to be able to reliably detect an object (even if captured from a different point of view or under different light conditions) providing just one instance of it during training (no Data Augmentation needed).

![Figure 2: Object Detection from different points of view [2]](https://cdn-images-1.medium.com/max/2000/1*gHnUO-A3vYj0qtqHXSkGPw.png)

Figure 2: Object Detection from different points of view [2]

## Stacked Capsule Networks

One of the additions to the 2019 approach to create capsule networks, is the ability to perform object detection in an unsupervised way therefore not having the need to label our data.

This model architecture can be divided into 3 main different stages such as:

* Constellation Autoencoder (CCAE): at this stage, an autoencoder model is trained in an unsupervised way to maximise part capsules likelihood.

* Part Capsule Autoencoder (PCAE): our input images are divided into constituent parts in order to infer objects poses.

* Object Capsule Autoencoder (OCAE): the created parts get organised together with their corresponded poses to recreate objects.

Combining these three stages together we can then get our final Stacked Capsule Network. The whole process can be summarised in the workflow in Figure 3.

![Figure 3: Stacked Capsule Networks General Workflow [3]](https://cdn-images-1.medium.com/max/2400/1*W_mGUOZzEYyeZnUchnq0WQ.jpeg)

Figure 3: Stacked Capsule Networks General Workflow [3]

If you are interested in finding out more about Stacked Capsule Networks, additional information about the topic is provided in the following video presentation by Geoff Hinton at the AAAI 2020 Turing Awards from around minute 3 till minute 34.

Video 1: AAAI 2020 Turing Awards

*****
*I hope you enjoyed this article, thank you for reading!*

## Bibliography

[1] 10 Certainties About the Truth, KOET, Lisa Beebe. Accessed at: [https://www.kcet.org/arts-entertainment/10-certainties-about-the-truth](https://www.kcet.org/arts-entertainment/10-certainties-about-the-truth)

[2] Matrix Capsules with EM routing, Geoffrey Hinton, Sara Sabour, Nicholas Frosst — Google Brain. Accessed at: [https://openreview.net/pdf?id=HJWLfGWRb](https://openreview.net/pdf?id=HJWLfGWRb)

[3] Stacked Capsule Autoencoders, Adam Kosiorek. Accessed at: [http://akosiorek.github.io/ml/2019/06/23/stacked_capsule_autoencoders.html](http://akosiorek.github.io/ml/2019/06/23/stacked_capsule_autoencoders.html)

gha_language: HTML


text:
***Week 7 (Outline)***

:hurtrealbad::hurtrealbad:

7.1 What you've learned so far

        - Continue Week 6 Mobile sensors
        - Continue https://spark.apache.org/docs/latest/streaming-programming-guide.html
        - Good example: https://sparkbyexamples.com/pyspark/pyspark-flatmap-transformation/

7.2 Spark Streaming Machine Learning (Traditional way)

        - Introduce MLlib
        - Twitter sentiment analysis https://github.com/lakshay-arora/PySpark/tree/master/spark_streaming

7.3 Scikit-learn Multiflow

        - Batch Learning VS Stream Learning
        - Decision tree
        - Concept drift
        - Evaluation
        - Scikit-learn Multiflow
        - https://scikit-multiflow.github.io/
        - Paper: https://jmlr.org/papers/volume19/18-251/18-251.pdf


text:
---
layout: layout.pug
navigationTitle:  Secrets
title: Secrets
menuWeight: 7
excerpt:
enterprise: true
---

The Secrets tab provides secret and certificates management. For more information, see the [secrets](/1.10/security/ent/secrets/) and [certificate](/1.10/security/ent/tls-ssl/) documentation.

![Secrets](/1.10/img/secrets-ee.png)

repository: ShaunDeng/dcos-docs-site

repo_name: ShaunDeng/dcos-docs-site


text:
---
layout: post
title: "iPhone development at Jax Code Camp tomorrow"
category: "Blog"
date: 2011-01-17
---

The annual Jacksonville [code camp](http://www.jaxcodecamp.com) is tomorrow. I will be giving a presentation on iPhone and COCOA development. There will be a lot of presentations on SQL Server and .NET as well. I am looking forward to seeing some of the .NET 4 presentations.

extension: markdown


text:
---
layout: post
title: 'Daily Forums News 2/9/20'
author: [ORAN]
tags: ['Daily Forums News']
image: ../img/thumb/daily-forums-news.jpg
date: '2020-09-02T10:46:37.121Z'
draft: false
excerpt: Networth Change? DeaLer dealt 50b? oofRG?
---

##### _[go here](../../tags/daily-forums-news/) to read all forums news_

###### Daily Forums News is a Segment where we cover things that happen in Torn forums and sometimes elsewhere. FAQs and addition information on how you can receive this daily on your own discord server can be found at the bottom of this page

--

Yesterday was patch Tuesday, there was a slight 10 minutes downtime but site quickly returned back to normal with some new updates, firstly a new daily login / activity streak probably to keep you coming back, Minigun was changed from Heavy Artillery to Machine gun the properties value in networth was changed to sellback value and a new Infrastructure Engineer was added to the Developers Team (not to be confused with Chris Wolf the economy guy.)

[Here's](https://www.torn.com/forums.php#/p=threads&f=2&t=16183146&b=0&a=0) a Painful HRG Reminder from Rum4nyby who's stocks I ended up accidentally selling. (Disclaimer: content might cause PTSD if you bought HRG in the 3rd last dump.)

HealingBot was wondering why no one was [talking about Elimination](https://www.torn.com/forums.php#/p=threads&f=2&t=16182947&b=0&a=0)
>Just 5 more days to, why one is talking about Elimination '20, am not that active and just came back to see the buzz. Last year I join a team but I lost the chance to even see how it goes.

Kidnapped sums it up nicely,
>every year is carnage and betrayal most people know what to expect already

To open or not open. [This is the question...](https://www.torn.com/forums.php#/p=threads&f=2&t=16183073&b=0&a=0)

H3110's friendly rant thread about the [new activity streak](https://www.torn.com/forums.php#/p=threads&f=2&t=16182990&b=0&a=0)

Properties Networth Change [Megathread.](https://www.torn.com/forums.php#/p=threads&f=2&t=16182814&b=0&a=0) DeaLer confirmed [down close to 50B](https://www.torn.com/forums.php#/p=threads&f=2&t=16182814&b=0&a=0&start=80&to=20729140)

Andyman's Thread about the [Minigun change](https://www.torn.com/forums.php#/p=threads&f=2&t=16182992&b=0&a=0) (warning no graphs)

Becareful what you [Wishy for](https://www.torn.com/forums.php#/p=threads&f=2&t=16182881&b=0&a=0)
>So basically everyone on Torn talks about happiness playing a big impact in gym gains. If youre a noob, the firs thing ppl tell you about is hj, not to be confused with bj. On Ishaan's guide it says hj is "totally worth it".
Anyways, yesterday I oded and today with 10x less happy i got 60% of what i normally got as gym gains.

SB21's LSC [Crash Thread](https://www.torn.com/forums.php#/p=threads&f=2&t=16183139&b=0&a=0)
>So as most people know the lsc bb crashed and went down quite low. How many of you guys think that it will rise back to its normal price ? And if you have invested in it , i would also like to know how much money have you lost? I have lost around 20m. Not much , but as a nub it still hurts lol. Not a rant post tho.

Erk Created a 10/10 Thread about the fairytale called Crimes 2.0
> I would like to suggest releasing Crimes 2.0.
Thank you.

![](https://i.gyazo.com/3ce1e14fc27d756a29cf45aeb106a660.png)

Another crimes 2.0 [Thread](https://www.torn.com/forums.php?p=threads&f=2&t=16183141&b=0&a=0)

Paul shows his sweet [365 days progress](https://www.torn.com/forums.php#/p=threads&f=16&t=16182952&b=0&a=0)

Big Boi Riot went from [Inactive to Competitive](https://www.torn.com/forums.php?p=threads&f=16&t=16183155&b=0&a=0)

Deadringers went from 1 Plushie trade to [900 Xanax in 1 day.](https://www.torn.com/forums.php#/p=threads&f=16&t=16183022&b=0&a=0)

**Forums Quality; Noice**

**Today's Forum news was Brought to you by The TornHub Project go read more about it [here](https://torn.oran.pw/welcome-to-tornhub/)**

_Just FYI: We've made our [discord](https://discord.gg/yvNCTXB) a "community discord" so you can follow the #Articles-Release channel into your own server or a channel that you manage so you can keep up with the news and articles daily, if you need Help setting it up feel free to PM ORAN in torn or Discord.*_

If you wish to Discuss anything Please [use this thread](https://www.torn.com/forums.php#/p=threads&f=2&t=16166542)

**See you Tomorrow :)**

__

FAQs:
1: why did you miss about x talking about y?
A: Cause they irrelevant or i missed it
2: why did you not cover about the recent x event?
A: Probably missed it
3: why are you such a ****?
A: Moms Spaghetti
4: do you buy my stuff?
A; Yes

## and here's the obligatory _[go here](../../tags/daily-forums-news/) to read all forums news_

repository: OranWeb/TornHub

gha_language: TypeScript

repo_name: OranWeb/TornHub


text:
# HelloProtocols

A playground to accompany a blogpost I wrote about Protocols in Swift 1.2

[The blogpost can be found here](http://blog.donnywals.com/my-take-on-protocols-in-swift/)

repository: donnywals/HelloProtocols

repo_name: donnywals/HelloProtocols


text:
# Adopta Panama Core Admin API Services

[![Build Status](https://travis-ci.org/adoptapanama/admin-api.svg?branch=master)](https://travis-ci.org/adoptapanama/admin-api)

Adopta Panama Core Backend Services. This application serves the website, the admin ui and the mobile app. Although it can run natively in a server, it is better suited to run within docker containers.

### Requirements
-   Node 8+
-   Docker >= 1.10 : [Installation Instructions Linux](https://docs.docker.com/linux/step_one/) - [Installation Instructions Mac](https://docs.docker.com/mac/step_one/)
-   Docker Compose >= 1.6.2 [Installation Instructions](https://docs.docker.com/compose/install/)

## Development
This repository includes scripts to enable easier development and testing of the application. To start the whole application ecosystem for development in the api service, run the following command

```shell
npm run docker:start
```

This will start all services in production mode except the api service, which will  start in development mode.

To access the api container and start developingm you can use the following command

```shell
npm run docker:bash
```

When a service starts in development mode, it mounts the current repository into the container so that you can write code in your preferred IDE locally, and the changes reflect automatically within the container.

However, the service in development must be run within the container to ensure that the code developed will run in the image built in Docker hub.

Same applies to installing packages with `npm install`. This has to be done within the container itself.

Finally, all development is done via feature branches in your forked repository, and then a PR is made into the develop branch in adoptapanama/admin-api.git repository. Releases are made into the master branch.

### Requirements
-   Docker >= 1.10 : [Installation Instructions Linux](https://docs.docker.com/linux/step_one/) - [Installation Instructions Mac](https://docs.docker.com/mac/step_one/)
-   Docker Compose >= 1.6.2 [Installation Instructions](https://docs.docker.com/compose/install/)

### Installing the app

You must first fork the admin api repository from Adopta Panama's Github into your Github account:

[https://github.com/adoptapanama/admin-api.git](https://github.com/adoptapanama/admin-api.git)

Next, clone the repository from your Github account

```shell
git clone git@github.com:{your github account}/admin-api.git
```

Next make sure you set the proper upstream to keep your code up to date.

```shell
git remote add upstream git@github.com:adoptapanama/admin-api.git
```

Once you've downloaded the files, change to the develop branch where the latest development code is.

Please remember you will be running your code within the container, so any npm packages you need to install, you should do it within the container. This will help you determine if you need to install additional dependencies in the container.

### Running the app

The application will download a Docker Compose file that will allow simple application execution. It will pull all the necessary containers where you will be running the app. It will also automatically mount the app folder.

#### Launching the containers

First make sure you are within the api root directory as the following command will mount the present working directory into the container, and execute the following command:

```shell
npm run docker:start
```

This will launch all the containers used for development and testing. It will launch a production environment with the api container running in development mode.

Access the api container by executing the following command:

```shell
npm run docker:bash
```

The app will not start automatically. You can start it with the `npm start` command.

Right at the bottom you should se an IPAddress property. This is the IP address of the container. In your browser hit `http://{docker ip}:3000` and you should be able to hit the application within the container.

In case you are in a Mac, you can check the IP by typing the following

```shell
docker-machine ip
```

### Stopping the containers

To stop the containers and the whole app ecosystem, run the following command:

```shell
npm run docker:kill
```

### Updating the ecosystem

Since Adopta Panama is running in a microservice oriented architecture, services get developed asynchronously so many times the docker images you have will be outdated. To update the ecosystem (except api since it is running in development mode therefore you should update it via git).

To update the ecosystem, run the following command:

```shell
npm run docker:update
```

This will update all images for containers running in production mode. Please note that after and update is imperative you stop and start the containers to ensure the code is up to date in each one by runnin `npm run docker:kill` and then `npm run docker:start`.

### Running tests

To run the tests, make sure you are in the `/app` directory within the container (this should be the default) and type:

```shell
npm test
```

Test results will show in the terminal. You can only run tests within your container. If you run them outside the container, they will fail.

### Checking Code Coverage and Linting

You can also perform code coverage and linting using Lab. To create the coverage report, type in the container

```shell
npm run coverage
```

To view the results, in your machine (not your container), in the root of the app directory, type

```shell
npm run coverage:open
```

This will open up the code coverage results in your default browser.

### Running License check

Every time you add a new package from npm or other source, run this command to make sure all licenses are compatible:

```shell
npm run licenses
```

You'll need to check by yourself within the results if the package and its dependencies licensing is compatible with the app's MIT license.

### Running Migrations

To run pending database migrations simply type:

```shell
npm run db:migrate
```

You can also run down a migration by using the command

```shell
npm run db:migrate:down
```

## Documentation

The application has Swagger built in, so you are able to view the service's documentation easily. Just start the application as explained above and hit the `http://{container's ip}:3000/documentation` url in your browser.

The Swagger client will allow you to view the documentation and make actual requests to the services provided by the api as it provides a REST client for making requests to the app.

repository: adoptapanama/admin-api

branch_name: refs/heads/develop

repo_name: adoptapanama/admin-api


text:
# [River Place](http://alexa.amazon.com/#skills/amzn1.echo-sdk-ams.app.b0e505d4-7042-42fb-9c74-55d00d582129)
![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 River Place skill, try saying...

* *Alexa, tell River Place to book me a tennis court*

This skill allows you to book tennis court at River Place Condo. Simply tell Alexa the time and day you'd like to play and she'll do the rest.

***

### Skill Details

* **Invocation Name:** river place
* **Category:** null
* **ID:** amzn1.echo-sdk-ams.app.b0e505d4-7042-42fb-9c74-55d00d582129
* **ASIN:** B01HKQV2OY
* **Author:** Colin Harris
* **Release Date:** October 4, 2016 @ 02:42:17
* **Privacy Policy:** https://riverplace.colharris.com/privacy
* **Terms of Use:** https://riverplace.colharris.com/terms
* **Account Linking Domains:** www.colharris.com, riverplace.colharris.com
* **In-App Purchasing:** No


text:
CMOD
---------------------

( Comments on Maritime Officers Database )

## Introduction

  I created this web app to serve as a basic data entry system for a local company. The idea is to provide an easy interface for creating, reading, updating and deleting entries in a performant database.

  While it can be adapted to any hierarchical data easily, this flavour is meant to accommodate data entry regarding personnel, and notes about their respective briefings, evaluations etc.

  The app was built using **Django 2.1.5** and **jQuery 2.2.1** .

## Quick Start

  1. Clone the repository
    `git clone https://github.com/joshuanazareth97/cmod`
  2. Change working directory to repository
    `cd cmod`
  3. Install the requirements
    `pip install requirements.txt`
  4. Run the development server
    `python manage.py runserver`

## To Do:
  - Starring of candidates
  - Document uploads
  - Reminders

## Features

  - ### Overview Page

  ![](screenshots/overview.jpg)

  Check out your most recent actions, search for candidates by name or ID, see upcoming reminders and recently uploaded documents (coming soon), and more!

  - ### Add, Edit and Delete candidates

  Add Candidates (Level 1 items) with names, ID and optional designations.

  - ### View all candidates at a glance

  - ### Comments for each candidate
  Choose from the dropdown to select the type of comment you want, `notes`, `briefings`, or `evaluations`, and add a comment with text.

  Edit, star or delete comments in place.


text:
---
title: Keep devices always up to date
contexts: office365,microsoft365
copyright: Microsoft
translations: en
tools: Windows 10
areas:
color: #777777
icon: https://jumpto365.com/resources/images/app/jumpto365-Icon-white.png
externalref: https://www.microsoft.com/en-us/microsoft-365/success/productivitylibrary/keep-devices-always-up-to-date
---
Windows as a service enables Windows 10 to keep itself up to date for the lifetime of your devices through simple, always-improving updating processes, with high levels of application compatibility, minimal effort and cost, and most importantly no more big deployment projects.

## Test for application compatibility

Application compatibility testing has historically been a burden when an enterprise organization has approached a Windows upgrade. With Windows 10, you can migrate with confidence, because Windows 10 is the most compatible Windows ever, with 99% compatibility with Windows 7.*  The latest tools help ensure that apps stay compatible in the future.

**Windows Analytics Upgrade Readiness** provides insights and recommendations about the computers, applications, and drivers in your organization.  These insights allow application owners and IT teams to identify compatibility issues that can block an upgrade, implement fixes that are known to Microsoft, and accelerate deployment of Microsoft 365.

*  Based on data from customers who opted to share telemetry with Microsoft

[View Training](https://docs.microsoft.com/windows/deployment/upgrade/manage-windows-upgrades-with-upgrade-readiness)

[IFRAME](https://www.microsoft.com/en-us/videoplayer/embed/RE1XYOe)

## Keep Windows and Office up to date

New feature updates for **Windows 10** and **Office 365 ProPlus** follow a predictable semi-annual release cadence, allowing organizations to use new innovations and security enhancements quickly. **System Center Configuration Manager** supports this aligned update model for Office 365 ProPlus and Windows 10, making both easier to deploy and keep up to date.

In addition, lightweight mobile device management (MDM) capabilities are built into Windows 10 devices and provide an alternative to traditional PC management processes.  No matter how you decide to manage your devices, Windows provides a consistent set of configurations across device form factors through a common MDM layer.

[View Training](https://docs.microsoft.com/windows/deployment/update/index)

[IFRAME](https://www.microsoft.com/en-us/videoplayer/embed/RE1UCrR)

## Monitor update deployments for compliance

For devices already running Windows 10, **Windows Analytics Update Compliance** provides a holistic view of operating system update compliance, update deployment progress, and failure troubleshooting for Windows 10 devices to help ensure that your devices are properly updated. Windows Analytics Update Compliance uses telemetry data, including installation progress and Windows Update configuration, to provide insights. It can be used with **Windows Update for Business** or other management tools to ensure that your devices are secure and up to date.

[View Training](https://docs.microsoft.com/windows/deployment/update/update-compliance-monitor)

[IFRAME](https://www.microsoft.com/en-us/videoplayer/embed/RE1UPrP)

url: https://raw.githubusercontent.com/Hexatown/docs/8baa1eb908c9182449d094b697dd50d197a8a0a1/microsoft/usecases/microsoft365/keep devices always up to date/index.md

repository: Hexatown/docs

gha_language: PowerShell

repo_name: Hexatown/docs