text:
+++
title = "Redux"

date = 2020-10-14T00:00:00
lastmod = 2020-10-14T00:00:00
draft = false
reading_time = false
authors = ["Michael W. Brady"]
+++
Redux is a predictable state management library for JavaScript applications and is the most popular State container for React applications. The core concepts of Redux are:

- **The Store (Single source of truth):** Everything that changes within your application is represented by a single JavaScript object known as the store. The store contains our state for our application.
- **Application state is immutable:** When the application state changes, we clone the state object, modify the clone, and replace the original state with the new copy. We never mutate the original object, and we never write to our store object.
- **Pure functions change our state:** Given the same input, a pure function returns the same output every time. All functions (Reducers) in Redux must be pure functions. Meaning they take in some state and a description of what changes took place and return a copy of our state.
    - Pure functions are the functions whose returned value depends solely on the values of their arguments.
    - Pure functions do not modify the values passed to them.

In a typical Redux app, there is just a single store with a single root reducing function. As your app grows, you split the root reducer into smaller reducers independently operating on the different parts of the state tree. This is exactly like how there is just one root component in a React app, but it is composed out of many small components.

The main idea is that you describe how your state is updated over time in response to action objects, and 90% of the code you write is just plain JavaScript, with no use of Redux itself, its APIs, or any magic.

## **Redux data flow:**

1. Store sets the state
2. Event occurs in the UI
3. An action that describes the event is dispatched
4. The reducer updates the state tree in a predictable way
5. The UI receives the updated state tree

![Redux%208348c2632a6545a198f82c802e99c33f/Untitled.png](Redux%208348c2632a6545a198f82c802e99c33f/Untitled.png)

Redux core principles:

1. **Single Source of truth:** Whether your app is really simple or a complex application with a lot of UI, and change of state, you are going to represent the whole state of your application as a single Javascript object.
2. **State is read only (immutable):** The second principle is that the state tree is read only. You cannot modify or write to it. Instead, anytime you want to change the state, you need to dispatch an action.
3. **Changes are made with pure functions:** To describe state mutations, you have to write a function that takes the previous state of the app, the action being dispatched, and returns the next state of the app. This function has to be pure. This function is called the "Reducer."

## Installing Redux to a React Project

```jsx
npm install react-redux redux
```

React-redux gives us a <Provider></Provider> component that wraps around our entire application. We will pass our newly created store to that component as a prop.

**Trivial example of importing and setting up a data store:**

```jsx
import { Provider } from 'react-redux';
import { createStore } from 'redux';

function reducer() {
  return {
    title: 'Hello world! I\'m in the Redux store!',
  }
}

const store = createStore(reducer);

<Provider store={store}>
  <App/>
</Provider>
```

## Connecting a React component to the Data Store

We use the connect function, where we export the component at the bottom of the file. We invoke connect twice (function currying). First with two arguments - a function and an object. Second with just the component we are trying to connect. For now, we’ll pass null and {} into the first invocation.

```jsx
import { connect } from 'react-redux';

export default connect(mapStateToProps, {})(MovieList)
```

`mapStateToProps` function tells connect which pieces of our state we want to bring in to this component. This function takes in state as a parameter, then returns an object where the properties can be passed to props, and the values are retrieved from the store for our component.

```jsx
const mapStateToProps = state => {
  return {
    movies: state.movies,
    moviesToWatch: state.moviesToWatch,
    user: state.user
  }
}
```

![Redux%208348c2632a6545a198f82c802e99c33f/Untitled%201.png](Redux%208348c2632a6545a198f82c802e99c33f/Untitled%201.png)

## Implementing Actions

Actions in redux are packets of information that describe events that have occurred in the UI. In code, an action is simply an object. Actions are dispatched to the reducers, and tell the reducers how to update the state tree.

An action is simply an object with up to two properties - a type property and an optional payload property. Each action MUST have a type property. The type property is a string that explains what interaction just happened. By convention, we use all caps and underscores for types - ie 'LOGIN_USER or TOGGLE_TODO. The payload property is data that goes along with that interaction.

Actions are “dispatched” to our reducer - aka, passed into the reducer function as an argument. When our reducer recieves an action, it will update the state according to the type and payload on the action.

- An action creator is a function that "creates" an action by returning an action object.

```jsx
export const addMovie = movieTitle => {
	return {
		type: ADD_MOVIE;
		payload: payload
	}
};
```

- An action type is created to avoid hidden bugs, and used as the type in the action

```jsx
export const ADD_MOVIE = "ADD_MOVIE";
```

- When the action creator is invoked, and the action is returned, it will be dispatched (under the hood) to the reducer

![Redux%208348c2632a6545a198f82c802e99c33f/Untitled%202.png](Redux%208348c2632a6545a198f82c802e99c33f/Untitled%202.png)

## Reducers

When an action is dispatched, it flows through every reducer in a script.

A reducer in it's simplest form is a function that returns an object. The returned object will represent the state tree.

- Reducers are pure functions
- Reducers take in the current state tree an action as arguments
- Using a switch case to check the action type of the dispatched action, create an updates state tree based on the action type and the action payload
- Each case in the switch statement returns the new, updated state tree, triggering the UI to re-render with the new data

Reducers take in two arguments, the current state from the Redux store, and the action object, sent via action creator functions. Remember that an action gives us a packet of information as an object with a type and payload field that we can use. The type tells the reducer what to do, and the payload tells the reducer what to update on state.

![Redux%208348c2632a6545a198f82c802e99c33f/Untitled%203.png](Redux%208348c2632a6545a198f82c802e99c33f/Untitled%203.png)

To connect the reducer to the rest of React, you need to import it into the root or `index.js` file and pass it into the `createStore` function. The convention is to call it `rootReducer`

```jsx
import rootReducer from './reducers/reducer';

const store = createStore(rootReducer);
```

[Practice redux reducers](https://codesandbox.io/s/j357oqxwov)

## Implementing Redux in React Workflow

1. Set up "empty" reducer and initial state
2. Set up store and provider
3. Connect components
4. Add events and event handlers in UI
5. Build action creators
6. Write the reducer logic for the actions
7. Rinse and repeat


text:
# ORACLE WebLogic on Kubernetes workshop #

### About this hands-on workshop ###

This lab demonstrates how to deploy and run WebLogic Domain on Kubernetes Cluster using [Oracle WebLogic Server Kubernetes Operator](https://github.com/oracle/weblogic-kubernetes-operator).

This lab is designed for people with no prior experience with OCI, Kubernetes, WebLogic, Container Registry, Docker and want to learn the core concepts and basics of how to run WebLogic JEE application on Kubernetes environment.

The demo application is a simple Credit Scoring application written in Java, JavaScript using Spring Boot and AngularJS frameworks. The application calculates the credit score based on name, date of birth and SSN.

Oracle services being used during the hands-on are the following:

+ **Oracle Cloud Infrastructure (OCI)** which combines the elasticity and utility of public cloud with the granular control, security, and predictability of on-premises infrastructure to deliver high-performance, high availability and cost-effective infrastructure services.
+ **Oracle Container Pipelines (OCP - former Wercker)** is a Docker-Native CI/CD  Automation platform for Kubernetes & Microservice Deployments. OCP is integrated with Docker containers, which package up application code and can be easily moved from server to server. Each build artifact can be a Docker container. The user can take the container from the Docker Hub or his private registry and build the code before shipping it. Its SaaS platform enables developers to test and deploy code often. They can push software updates incrementally as they are ready, rather than in bundled dumps. It makes it easier for coders to practice continuous integration, a software engineering practice in which each change a developer makes to the codebase is constantly tested in the process so that software doesn’t break when it goes live.
+ **Oracle Cloud Infrastructure Registry (OCIR)** is a v2 container registry hosted on OCI to store and retrieve containers.
+ **Oracle Container Engine for Kubernetes (OKE)** is an Oracle managed Kubernetes Cluster enviroment to deploy and run container packaged applications.
+ **Oracle Weblogic Kubernetes Operator** open source component to run WebLogic on Kubernetes.

The lab describes user interface available on June, 2018.

**Architecture**

![](tutorials/images/wlsonk8s.png)

### Prerequisites ###

- [Oracle Container Pipeline](tutorials/sign.up.wercker.md) account.
- [Github ](tutorials/sign.up.github.md) account.
- [Oracle Kubernetes Engine instance provisioned on Oracle Cloud Infrastructure.](tutorials/setup.oke.md)

### The topics to be covered in this hands-on session are: ###

1. [Create Oracle Container Pipeline to build WebLogic Operator](tutorials/create.weblogic.operator.md)
2. [Setup WebLogic domain on Kubernetes](tutorials/setup.weblogic.kubernetes.md)
3. [Create Oracle Container Pipeline to build sample JEE application and deploy to WebLogic running on Kubernetes ](tutorials/sample.app.pipeline.md)

### License ###
Copyright (c) 2014-2018 Oracle and/or its affiliates
The Universal Permissive License (UPL), Version 1.0

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# Shark Hack 2018 - Alexa Skill Workshop
![Setup](../images/SharkHack%202018%20Alexa%20Workshop%20Banner%20-%20Setup.png)
What we need to get going!

# AWS Account
Each participant can get an AWS login [here](https://goo.gl/forms/BzgILD0XIBlkxR5K2) - the password will be provided in the workshop!

# Alexa Account
There are 6 echo dots, one for each team! The login information for the Alexa Developer Console is taped to the bottom of the Echo Dot.

## Access AWS
Log into the [AWS console](http://console.aws.amazon.com/console?region=us-east-1).

## Team Cloud9 Environment
With your Team's AWS account, go to [Cloud9](https://us-east-1.console.aws.amazon.com/cloud9/home/shared) in the AWS Console.

Connect to your team's Sharkathon2018 environment by clicking the "Open IDE" button:

![Launch Environment](../images/Cloud9_SelectEnv.png)

Note the environment may take a couple of mins to load, but once loaded you should see a screen similar to below:

![Launch Environment](../images/Cloud9_Home.png)

## Keyboards At The Ready...
1. Head to [02_code](../02_code) to continue!


text:
## Test with Vagrant

See also https://www.vagrantup.com/docs/index.html

Start a VM.

```shellsession
vagrant up ubuntu18
```

_You can get available VMs by the following command._

```shellsession
grep config.vm.define Vagrantfile
```

(optional)You can provision again the VM via the following command if needed.

```shellsession
vagrant provision ubuntu18
```

Run tests via `vagrant ssh`

```shellsession
vagrant ssh --command 'bats /vagrant/test/' ubuntu18
```

Shutdown the VM.

```shellsession
vagrant halt ubuntu18
```

Clear the all data on the VM.

```shellsession
vagrant destroy ubuntu18
```

license: MIT

repository: pthariensflame/sbtenv

gha_license_id: MIT

repo_name: pthariensflame/sbtenv


text:
bridgesAPI
==========

Assignment visualization and data delivery API

If you want to start using BRIDGES, check out https://bridgesuncc.github.io/

Check out some visualizations at http://bridges-cs.herokuapp.com/

### Running a local version of BRIDGES

Overview:
1. Install git
2. Install mongoDB and run it in the background (Debian install [https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/#install-mongodb-community-edition](here))
3. [Install node and npm][nodenpm](node's package manager)
4. Use 'npm install' and 'bower install' to retrieve all dependencies
5. Run 'grunt' in the root directory to start the local server!

On OSX? Install mongoDB, node, npm, and yeoman using [homebrew][hbrew]
[hbrew]:http://brew.sh/

### Detailed Setup
First we need our task runner, dependency manager and scaffold generators (you don't need to know what they are)

```
npm install -g yo
```

Then we need to get BRIDGES' server code

```
git clone https://github.com/squeetus/bridgesAPI
```

We install it (bower needs --allow-root to be sudoed)

```
npm install
bower install
git submodule init
git submodule update
```

```
mongod &
grunt
```
If bower install doesn't work, try the following:
```
git config --global url."https://".insteadOf git://
```

repository: acbart/bridgesAPI

repo_name: acbart/bridgesAPI


text:
# moveo_ros
ROS packages that can be used to plan and execute motion trajectories for the BCN3D Moveo robotic arm in simulation and real-life.
### [Video Demo Here!](https://youtu.be/2RcTTqs17O8)

- **_New Feature_: Object-Specific Pick and Place** (With an ordinary webcam, Tensorflow, OpenCV, and ROS, you can 'pick and place' (or sort) objects that are detected in real-time)
	- **[Video Demo](https://youtu.be/kkUbyFa2MWc)**
	- **[How to Use](https://github.com/jesseweisberg/moveo_ros/tree/master/moveo_moveit/scripts)**

## How to Use:

### Getting the BCN3D Simulation Working with Motion Planning
![moveit_screenshot.png](/moveit_screenshot.png)

1. Make sure you have ROS installed correctly with a functioning workspace-- I used ROS Kinetic on Ubuntu 16.04 (if you have a different distro, you may need to change some things).  I currently have 'moveo_ros' in the 'src' folder of my catkin workspace.

2. To plan and execute trajectories for the Moveo in simulation (RVIZ with Moveit plugin), execute the following terminal command:
	```
	roslaunch moveo_moveit_config demo.launch
	```

3. Once the window loads, in the bottom-left corner check "Allow Approximate IK Solutions."  Then click on the "Planning" tab in the MotionPlanning panel of RVIZ.  Select a new goal state by either dragging the interactive marker (light blue ball on the end effector) or under "Select Goal State."  Once goal state is updated, "Plan and Execute" will plan and execute the trajectory from the start state to the updated goal state.

### Moving the real robot, synced with the simulated robot's trajectories.
4. Make sure you download the AccelStepper ([AccelStepper Library Download](http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.57.zip)) and ros_lib ([rosserial-arduino tutorial](http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup)) libraries into your Arduino environment.
	- If ros_lib already exists in your Arduino libraries (<Arduino sketchbook>/libraries), follow the last troubleshooting tip or you'll get an error saying "ArmJointState.h: no such file".  ROS makes you remove ros_lib and regenerate it every time you introduce a new custom message.

5. Change the pin layout between your robot and the RAMPS 1.4 in **'moveo_moveit_arduino.ino'** and upload the file to your Arduino (I'm using MEGA 2560).  Make sure the robot and the simulation are in the same position (to set the simulation upright initially-- select "Upright" from "Select Goal States" in RVIZ.

6. In 'moveit_convert.cpp' replace the stepsPerRevolution array with the steps/revolution (or microsteps/revolution) of each of your motors.  (Note: if you don't already know these values, you can experimentally get how many microsteps/revolution your motors have using the MultiStepperTest.ino and recording/eyeballing the results)

7. With the simulation already running, execute each of the following commands in it's own, separate terminal:
	- ``` rosrun rosserial_python serial_node.py /dev/ttyUSB0 ```(establishes rosserial node that communicates with Arduino)
	- ```rosrun moveo_moveit moveit_convert ``` (converts simulation joint_state rotations to steps and publishes on the /joint_steps topic, which the Arduino script subscribes to)
	- ```rostopic pub gripper_angle std_msgs/UInt16 <angle 0-180> ```(publishes gripper_angle)

**Now, whatever trajectories are planned and executed in simulation are echoed on the real robot.**

## About Directories
### moveo_urdf
Contains the URDF (Unified Robot Description File) for the BCN3D Moveo. Necessary for simulation in RVIZ and moveit configuration.

### moveo_moveit_config
Configuration for moveit, a motion planning framework that has a plugin in RVIZ, which is what we are using here.

### moveo_moveit
- _moveit_convert.cpp_: Converts simulation 'joint\_state' rotations (from the 'move\_group/fake\_controller\_joint\_states' topic) to steps and publishes on the /joint\_steps topic.  Joint\_steps is an array of 6 Int16 values (though we only have 5 joints in this case) that represent the accumulated steps executed by each joint since the moveit\_convert node has started running.

- _move\_group\_interface\_coor\_1.cpp_: Can hardcode a pose/position for the end effector in the script and plan/execute a trajectory there.  Also reads/outputs the current pose/position of the end effector.

## Troubleshooting
- After step 7, there should be 3 new topics created:
	- **/joint\_steps**: steps necessary to move each motor to desired position
	- **/joint\_steps\_feedback**: same as /joint_steps, except published back by arduino to check that information is being received by Arduino correctly
	- **/gripper\_angle**: current angle of the gripper

- **To move Moveo from the command line:**
	- ```rostopic pub joint_steps moveo_moveit/ArmJointState <Joint1 Joint2 Joint3 Joint4 Joint5 0>```
	- Change "Joint1, Joint2, etc." to the number of steps you want each joint to move.

- **Use ```rostopic list``` and search for these topics to check if they are currently running**

- **Use ```rostopic echo /<topic>``` to view the data on \<topic> in your terminal**

- If you get the following ```"error: moveo_moveit/ArmJointState.h: No such file or directory"```, perform the following steps in terminal:
	```
	cd <Arduino sketchbook>/libraries
	rm -rf ros_lib
	rosrun rosserial_arduino make_libraries.py .
	```
	- More info on the ROS wiki:
		- Section 2.2 here: (http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup)
		- (http://wiki.ros.org/rosserial/Tutorials/Adding%20Other%20Messages)

- Here is my current layout and wiring schematic for reference:
![aerialRobotSketch.pdf](/aerial_robot_sketch.png)

gha_language: Python


text:
# USBStealer PLUS SOME OTHER STEALERS
A USBStealer for Windows that steals credentials from the target machine

# Requirements:

* -> Target Machine with Windows
* -> Admin Proveleges

# Contents:

* -> USBCracker.exe (The credential grabber)(Totally Discreet)
* -> Admin Cracker.exe (Opens a cmd.exe with admin privileges, bypassing admin password)

# How to Use:

-----------
1st Method
-----------

Go to the "USBCracker" folder and open "USBCracker.exe" and wait about 10~15 seconds passwords will be exported to txt files.

-----------
2nd Method
-----------

If you need Admin password and you forget it just go to the "USBCracker" folder and open the "Admin Cracker.exe".
You will be prompt with a "cmd.exe" in Administrator Mode and then type the following:
* ->(Your Drive Letter):\
* ->cd USBCracker
* ->USBCracker.exe

------------------------------------------------------------------------------------------------------------------------------------------

license: Unlicense

repository: kampaladrake/usb-stealer

repo_name: kampaladrake/usb-stealer


text:
JBoss Fuse Applications
=======================

Level: Beginner
Technologies: Servlet, Apache Camel, Apache CXF
Summary: JBoss Fuse Quickstarts
Target Product: RH-SSO, JBoss Fuse
Source: <https://github.com/redhat-developer/redhat-sso-quickstarts>

What is it?
-----------

This is set of quickstarts, which show various kinds of web applications and services deployed on JBoss Fuse, which are secured by RH-SSO. See the individual subdirectories
for the more detailed info about particular applications and needed steps to configure and deploy them. This README contains the basic configuration steps, which
are common for all JBoss Fuse quickstarts.

System Requirements
-------------------

All you need to build this project is Java 8.0 (Java SDK 1.8) or later and Maven 3.1.1 or later.

Start and Configure the Wildfly
-------------------------------

It is assumed that you already did the basic steps from the [Base README](../README.md) from the section "Start the RH-SSO Server" .
The individual submodules will contain more specific steps for RH-SSO server for individual Fuse quickstart applications. Usually it's about setup client
and export `keycloak.json` file from it.

Start and Configure the JBoss Fuse
----------------------------------

* First step is to download JBoss Fuse 6.3.0. You need to download the ZIP distribution.

* Unzip the JBoss Fuse to some location on your filesystem.

* Start the JBoss Fuse with commands:
````
cd jboss-fuse-6.3.0.redhat-224/bin/
./fuse
````
Wait until JBoss Fuse is started and Karaf terminal shows up.

* Install the common set of RH-SSO features. First use this command to set the variable with the current RH-SSO version. The version can be seen
for example when you look at the [pom.xml](pom.xml) file of this quickstart and look at the content of element `<version>` .
````
RHSSO_VERSION="<YOUR-RHSSO-VERSION-HERE>"
````
For example:
````
RHSSO_VERSION="2.5.5.Final-redhat-1"
````
Then it's good to add your local maven repository to the Fuse. This is referred in following command with `file:///path/to/local/maven/repo` .
Typically the exact location is in `file:///home/yourusername/.m2/repository` on Linux.
````
config:edit org.ops4j.pax.url.mvn
config:propset org.ops4j.pax.url.mvn.localRepository file:///path/to/local/maven/repo
config:update
````

Then you can install the features:
````
features:addurl mvn:org.keycloak/keycloak-osgi-features/$RHSSO_VERSION/xml/features
features:install keycloak
features:install keycloak-jetty9-adapter
````

Build and Deploy the Quickstarts
--------------------------------

Look at the individual subdirectories for steps needed for concrete examples.

* [app-war](app-war/README.md) - A WAR frontend application that is deployed with [pax-war extender](https://ops4j1.jira.com/wiki/display/ops4j/Pax+Web+Extender+-+War)
* [service-camel](service-camel/README.md) - [Apache Camel](http://camel.apache.org/) endpoint running on separate Jetty engine.
* [service-cxf-jaxrs](service-cxf-jaxrs/README.md) - [Apache CXF](http://cxf.apache.org/) JAX-RS endpoint running on separate Jetty engine.
* [features](features/README.md) - [Apache Karaf feature](https://karaf.apache.org/manual/latest-2.x/users-guide/provisioning.html), which simplify deploy of all the quickstarts into the JBoss Fuse at one step.


text:
A statistic which measures the agreement between two sets of data. For
variables X and Y, with means x and y, the covariance is
Cov(X,Y)=E(XY)-xy.

The covariance of two samples of equal size $x_{i}, y_{i}$ is:
$ \mathrm{c}_{\mathrm{xy}} = \sum _{\mathrm{i}} \frac{1}{\mathrm{n}}
( \mathrm{x}_{\mathrm{i}} - \bar{\mathrm{x}} )( \mathrm{y}_{\mathrm{i}} -
\bar{\mathrm{y}} ) . $

Covariance depends on the scale used to make the measurements, unlike
correlation, which is another measure of the agreement between sets of
data.


text:
# PowerBI Tables

###### Last updated January 13, 2021

:::

##### Overview

Tables are important tools for displaying large amount of raw data referenced in visualizations and are frequently used to enable easier comparisons between related values.

Tables in the template follow the basic styling of [Cashmere HTML tables](/web/styles/table), with a few alterations to follow Power BI standards.

![Table Example](./assets/analytics/powerbi/pbi-table.png "Table Example")

:::

:::

##### Layout

Tables follow all the general standards for tiles as defined in the [Foundations section](/analytics/powerbi-foundations).
Refer to that **Tile Visual Header** and **Divider** sections of that page for specific parameters to apply to the top of the chart tile.

If a subheader or additional controls are needed for a table, they should be the next item under the header divider.
The table should leverage the remaining content area of the tile.

### Table Header Row

The content in the header row of a table should be **dark-blue** `#006d9a`, `Segoe (Bold)`, 9px.

### Table Cells

The contents of table cells should be `Segoe UI`, **offblack** `#333333`, 9px.
The Shading - Row Banding on table rows should be set to a background color of `#f9fafb` for both Panes and Headers.
The Border - Default on Cells and Headers should be set to 1px, solid, `#f1f1f1`.
This creates a minimal banding effect without being too distracting for the small font size we use on Power BI tables.

:::

:::

##### Hover States

The specific content of tooltips of the table will be dictated by the data being displayed.
But in general, they should contain a label and a value.
All text in the tooltip should be 10px, **white** `#ffffff`, `Segoe UI`.
The background should be **charcoal-blue** `#384655`.

![Table Hover Example](./assets/analytics/powerbi/pbi-table-hover.png "Table Hover Example")

:::

:::

##### Info Tooltip

Info tooltips are optional on table tiles because the data being displayed may be self explanatory.
A tooltip is useful to include if instruction is needed for additional controls on the table, or to explain the source of the data in the table.
If a tooltip is included, it should follow the formating instructions in the [Foundations section](/analytics/powerbi-foundations)

:::


text:
# dovecot

This package provides the dovecot IMAP server.

## Usage

Typically this is a run-time dependency that can be added to your
plan.sh:

    pkg_deps=(core/dovecot)

You'll also have to add your own configuration for dovecot and use a command like `dovecot -c <path to config file>` to your run hook.

repository: habitat-sh/core-plans

branch_name: refs/heads/main

gha_language: Shell

repo_name: habitat-sh/core-plans


text:
# FAQ

This topic provides answers to frequently asked questions about ARMS App Monitoring.

## Why cannot I create an app monitoring task?

This issue occurs when the maximum number of app monitoring tasks is reached. To resolve this issue, contact the DingTalk account arms160804.

repository: hglakfs/arms

path: /intl.en-US/App monitoring/FAQ.md

repo_name: hglakfs/arms


text:
# <rdar://19464151>

<http://www.openradar.me/radar?id=5347857389322240>

NSUserNotificationCenter assigns it's delegate leading to crashes.

Steps:

Set a temporary object as the NSUserNotificationCenter delegate, present
the notification, exit the scope so the object is deallocated, the app
crashes.

Expected:

The deallocation of the weak delegate should make it become nil and
messaging nil shouldn't crash the app.

Actual:

The deallocation of the assigned delegate crashes the app.

repository: keith/radars

repo_name: keith/radars


text:
---
title: Abitbol Class API
autotoc: true
menuOrder: 3
---

# Abitbol Class API

## Class Special Properties

### Class.`__`init`__`()

The constructor method.

### Class.`__`include`__`

A list of objects that contain properties to mix in the class.

```javascript
var Boat = Vehicle.$extend({
    __include__: [{
        horn: Truck.prototype.horn
    }],

    navigate: function (speed) {
        this.move(speed);
    }
});
```

### Class.`__`classvars`__`

An object containing static properties of the class.

```javascript
var MyClass = Class.$extend({
    __classvars__: {
        staticAttribute: "value",
        staticMethod: function () {}
    }
});
```

### Class.`__`preBuild`__` and Class.`__`postBuild`__`

Those static methods are hooks that are called at the beginning
(`__preBuild__`) and at the end (`__postBuild__`) of the Class building
process.

These methods can be used to mutate the generated class (modifying properties,
implementing new patterns, and so on).

Please note that those methods are inherited like any other properties. Also
note that these methods are called without the usual Abitbol context (no `this`, nor
`this.$super()`).

```javascript
var Boat = Vehicle.$extend({
    __preBuild__: function (properties, NewClass, SuperClass) {
        // Mutates the properties before they are analysed by abitbol
        properties.isNice = function () {
            return true;
        }
    }
});
```

## Static Methods and Attributes

### Class.$extend(properties)

Creates a new class that extends the current class.

### Class.$class

A reference to the current class.

### Class.$map

An object that contains the class' map (list of methods, attributes,...).

```javascript
{
    attributes: {
        attr1: true,
        attr2: true,
        // ...
    },
    methods: {
        meth1: {
            annotations: {
                key: "value"
            }
        },
        meth2: {
            annotations: {}
        },
        // ...
    },
    computedProperties: {
        prop1: {
            get: "getProp1",
            set: "setProp1",
            annotations: {
                key: "value"
            }
        },
        prop2: {
            get: "isProp2",
            annotations: {}
        },
        // ...
    }
}
```

## Instance Properties

### classInstance.$class

See [`Class.$class`](#class-class) above.

### classInstance.$map

See [`Class.$map`](#class-map) above.

## Instance Internal Methods and Properties

### this.$super()

From a method: invokes the corresponding super class' method.

### this.$name

From a method: the current method's name.

### this.$computedPropertyName

From a getter / setter method: the name of the related computed property.

### this.$data

An object to store ~~private~~ internal properties (to store computed
properties' values for example).

repository: wanadev/abitbol

gha_language: JavaScript

gha_license_id: NOASSERTION

repo_name: wanadev/abitbol


text:
# hvbench-tutorial

Tutorial on how to set-up and operate hvbench.

## Requirements

 - VirtualBox (https://www.virtualbox.org)
 - Vagrant (https://www.vagrantup.com/)
 - 5GB RAM (4 virtual machines are used)

## QUICKSTART

Clone the vagrant repository:

```bash
git clone https://github.com/csieber/hvbench-tutorial
cd hvbench-tutorial
```

Provision the virtual machines. This might take a while and a fast Internet connection is required for this, as additional files have to be downloaded to the virtual machines.

```bash
vagrant up
```

After you followed one of the tutorials under TUTORIALS, you can destroy the virtual machines with:

```bash
vagrant destroy -f
```

## Tutorials

- [[Tutorial 1]](tutorials/Tutorial1.md) Basic switch stresstest without hypervisor
- [[Tutorial 2]](tutorials/Tutorial2.md) Using hvbench with FlowVisor, hvmonitor, hvbench-log and netdata-plugin

## Boxes

The following *Ubuntu 14.04* boxes are used in the tutorial:

| VM           | IP            | Description                              |
|--------------|---------------|------------------------------------------|
| hvbench-ctrl | <IP_ADDRESS> | hvbench-api, etcd, kafka-zookeeper, logs |
| hvbench      | <IP_ADDRESS> | Docker running hvbench                   |
| hv\_fv       | <IP_ADDRESS> | FlowVisor, hvmonitor                     |
| mininet      | <IP_ADDRESS> | Mininet                                  |

The following packages are pre-configured on the boxes:

| VM           | Package(s)             | Script                                                                     |
|--------------|------------------------|----------------------------------------------------------------------------|
| hvbench-ctrl | docker, docker-compose | see [provision.sh][hvbench-ctrl prov.]                                     |
| hvbench      | docker                 | see [provision.sh][hvbench prov.]                                          |
| hv\_fv       | flowVisor              | see [provision.sh][hv_fv prov.] and [provision\_user.sh][hv_fv prov. user] |
| mininet      | Mininet                | see [provision.sh][mininet prov.]                                          |

[hvbench-ctrl prov.]: boxes/hvbench-ctrl/provision.sh
[hvbench prov.]: boxes/hvbench/provision.sh
[hv_fv prov.]: boxes/hv_fv/provision.sh
[hv_fv prov. user]: boxes/hv_fv/provision_user.sh
[mininet prov.]: boxes/mininet/provision.sh

repository: csieber/hvbench-tutorial

repo_name: csieber/hvbench-tutorial


text:
# Observed Concurrency

## Dependencies

- General knative [development requirements](https://github.com/knative/serving/blob/master/DEVELOPMENT.md#requirements)
- [wrk](https://github.com/wg/wrk)

## Instructions to run

1. Start the application the load will go against:

```
ko apply -f app.yaml
```

2. Wait until the route is accessible

3. Run the test

```
run.sh $CONCURRENCY $DURATION

ex.

run.sh 5 60s
```

## Scenario

This test reports the *observed concurrency* from the point of view of an external user. As such, this is a blackbox test that knows nothing about the innards of knative.

The application that gets deployed is a minimal http server, that will report the server-side start and finish timestamp of a request in nanoseconds. Moreover, it will sleep for a defined amount of time (defined via a query parameter `timestamp`, which takes the time to sleep in milliseconds). The application is running in single-concurrency mode to surface any scheduling inaccuracies and to be very dependent on quick autoscaling.

The *observed concurrency* is the amount of requests that ran truly parallel at any given point in time. Firing `C` concurrent requests in parallel at that app ideally results in all of those requests starting and finishing at roughly the same time and thus being ran truly parallel. In reality, they don't as the deployment needs to be scaled appropriately first.

To gain these insights, the test will run `CONCURRENCY` parallel requests for `DURATION` amount of time. It takes all responses it got from the server (all start and finish timestamps of all requests) and then computes the observed latency at any given point in time.

repository: sijie/serving

repo_name: sijie/serving


text:
# FFXIKeys
A small windower addon to automate trading Special Gobbiedial Keys for rewards

* //lua l ffxikeys  - Loads the addon
* //lua u ffxikeys  - Unloads the addon

* //keys start      - Starts using keys
* //keys stop       - Stops using keys

* //keys printlinks - Toggles printing ffxiah keys to chat
* //keys openlinks  - Toggles opening ffxiah links in your default browser

repository: GTTFFXI/addons

gha_language: Lua

repo_name: GTTFFXI/addons


text:
---
name: Damron
rarity: 4
series: ent
memory_alpha:
bigbook_tier: 6
events: 27
in_portal:
date: 21/06/2023
obtained: Event
mega: false
published: true
---

Shoutout to all the hardcore Xindi fans, holding out for years for a new card to bolster those huge numbers of....*checks notes*...7 examples in the game. Your Christmas is here in July!  Well, maybe you weren’t totally good this year, because Santa isn’t bringing you coal, but it isn’t a shiny new Red Rider Pump Action BB Gun.

Enter into the game Damron – useful to newer accounts or Nightmare Mode™ players, but otherwise from overflowing rosters to the most seasoned, this killer won’t find much use, especially at only 3 stars from his Faction Event.

Stat creep is real, and not only in the world of Legendaries. Had Damron been released Six months ago, he would be a great card for early to mid-game players to use on Voyages. Since that time, some absolutely killer Super-Rare characters have made the release pipe, pushing him down to voyage rank 83 at launch. Still, he has 4 trait seats that can increase his use. With only 2 Collections and a barely usable +6 ATK bonus to ships, you may be finding yourself using a citation to send him to the depths of your freezer.

repository: joshurtree/datacore-website

gha_language: TypeScript

repo_name: joshurtree/datacore-website


text:
# What this does
- Get hello-libs NDK working using the latest and greatest Android Studio project
- Verify that deployment via gradle works

# Reproduction steps

## Setup basic app
### Generate the App Code
- Android Studio -> New Project -> Native C++
- Add the following settings
	- Name: App
	- Package Name: com.example.app
	- Save Location: Somewhere
	- C++ Standard: C++ 11
- Wait for the gradle build to complete

### Copy the App folder to this folder here
### Verify that building from command line works
- cd to this folder here
- gradlew clean
- gradlew assembleDebug
- gradlew clean

### Read the following articles
- https://developer.android.com/studio/build/build-variants
- https://developer.android.com/studio/build
- https://developer.android.com/studio/releases/gradle-plugin#updating-plugin
- https://developer.android.com/studio/build/dependencies

### Verify that deploying the app works
- Open Android Emulator from VS
- gradlew installDebug
- Run the app


text:
# RoadSeva

- RoadSeva is an application built for both Android and iOS as to notify the required authorities if any potholes are discovered by daily pedestrians.
- This app aims to tackle unsafe roads and places that might be prone to accidents due to potholes and other road incapabilities.
- The app hence tries to provide a proper gateway for users to notify the respective authorities like the municipal corporation or the elected corporator. All the user has to do is use the app and pinpoint the location, the rest is automatically done and the authorities get notified.

## How Is It Made?

RoadSeva uses Flutter to build its core Frontend and implements Firebase’s Cloud FireStore as its backend to store and access required data.

## Installation

- Follow regular github processes and install the repoistory as your local repo.
- Then, run the code in VSCode after connecting your device.
- For iOS users, first set up the regular details in the Signing & Capabilities section of the app in Runner.xcodeproj and then run the application (Note: If you are using a free certificate, ensure that there are at max 2 apps installed that are under your certificate as this will be the third app)
- Try ```flutter clean``` if any first time error is seen
- Ensure that you are properly connected to the internet as Firebase requires it.

The following project aims to soon become open source after shifting to a proper backend rather than firebase.

## Note:
- It is preferable to use an iOS device or simulator as much of our code was developed using it.
- For dummy checks, use a simulator and enable custom location. Set the location as : latitude : 48.8584, longitude : 2.2945
- We have also created a dummy account with username as "admin" and password as "password"

## Special Thanks To
- Open Street Map
-
 App Logo made by Freepik from www.flaticon.com

- Flutter, for being an amazing platform

repository: nandanhere/RoadSeva

gha_language: Dart

repo_name: nandanhere/RoadSeva


text:
bashrc
======

Useful `.bashrc` addons.

Version
-------

This is a Omega version. That's the vesion that comes *before* Alpha, if Greek alphabet was circular.

Usage
-----

Include `helpers.sh` in your `.bashrc`:

    source /home/adam/bashrc_helpers/helpers.sh

Edit `helpers.sh` to tweak settings.


text:
# Change Log

## [1.2.0] - 2017-04-07
### Added
- add .gitattributes
- add compare view's link in changelog
- proxy\_type option.

## [1.1.2] - 2017-01-02
### Fixed
- fix proxy\_port, proxy\_login, proxy\_password options.

### Changed
- refactoring.
- update travis and scrutinizer settings.
- CHANGELOG format.

### Added
- use editorconfig.

## [1.1.1] - 2016-01-30
### Added
- support ssl\_method option.

## [1.1.0] - 2016-01-16
### Fixed
- fix CurlSoapClient::\_\_getCookies and CurlSoapClient::\_\_setCookie.

### Added
- support proxy\_host, proxy\_port, proxy\_login, proxy\_password, login, password and authentication options.

## 1.0.0 - 2014-09-25

[1.2.0]: https://github.com/aaharu/curlsoapclient/compare/1.1.2...1.2.0
[1.1.2]: https://github.com/aaharu/curlsoapclient/compare/1.1.1...1.1.2
[1.1.1]: https://github.com/aaharu/curlsoapclient/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/aaharu/curlsoapclient/compare/1.0.0...1.1.0

repository: fossabot/curlsoapclient

repo_name: fossabot/curlsoapclient


text:
# Development strategy

## `for: Header`

### `type: html` (Header)

- section with class called "header"

  - div with class called "container-header"

    - logo with class "logo"

  - div with class "header-right"

    - a with class "nav_link"

    - button with class "header-right button"

### `type: css` (Header)

- "header": overflow, background, padding

- "container_header": width, margin, padding

- "logo img" height, width, cursor

- "header a" float, color, text-align, padding, text-decoration, font-size, line-height, font-family

- "header-right" float

- "header-right a:hover" border-bottom

- "header-right button" border, font-weight, outline, background, color, padding, border-radius, cursor

## `for: Main Image`

### `type: html` (Main Image)

- section with class called "container img"

  - img with class called "img-fluid"

### `type: css` (Main Image)

- "container img" width, margin, padding

- "img-fluid" display, max-width, height, max-width, line-height, margin, word-break, font-weight, margin

## `for: Our Program`

### `type: html` (Our Program)

- section with class called "our-program"

  - div with class called "explanation-wrapper"

    - div with class called "explanation"

    - Title with h2, class called "op-title"

    - Information with p, class called "program-info"

  - div with class called "exp-img-outer"

  - div with class called "exp-img"

### `type: css`

- "our-program": display, justify-content, width, padding, position, box-shadow, background, z-index, flex

- "explanation-wrapper" : width,display,margin

- "explanation": display, flex, align-items

- "op-title": padding, font-size, line-height

- "program-info": padding, font-size, line-height

## `for: Result`

### `type: html` (Result)

- section with class called "ourResult"

  - div with class called "resultLayout"

    - div with class called "resultBox"

      - div with class called "resultInfo"

        - Title with h2, class called "title"

        - Information with p, class called "titleDefinition"

      - div with class called "tableImpact"

        - div with class called "columnOfTable"

          - Title with h1, class called "cTitle"

          - information with p, class called "cParag"

        - div with class called "columnOfTable"

          - Title with h1, class called "cTitle"

          - information with p, class called "cParag"

        - div with class called "columnOfTable"

          - Title with h1, class called "cTitle"

          - Information with p, class called "cParag"

### `type: css`(Result)

- "ourResult":display,-moz-box-pack,justify-content,width,padding,position,box-shadow,background,z-index,flex

- "resultLayout":display,flex-direction,-moz-box-pack,justify-content,-moz-box-align,align-items,width,max-width,padding,margin

- "resultBox":display,flex-direction,-moz-box-align,align-items,box-shadow,padding,margin-bottom

- "resultInfo":display,flex-direction,-moz-box-align,align-items,width,margin

- "title":font-size,line-height,margin-bottom,text-transform,font-family,font-weight,color,text-align,max-width

- "titleDefinition":color, text-align, max-width,line-height,font-size,font-family, margin,white-space,word-break,font-weight:

- "tableResult":display,width,-moz-box-pack,justify-content

- "columnOfTable": display,flex-direction,background-color,width,padding

- "cTitle":font-size,line-height,margin-bottom,text-transform,font-family,font-weight,color,text-align,max-width

- "cParag":color,text-align,max-width,line-height,font-size,font-family,margin,white-space,word-break,font-weight

- "h1": margin,margin-bottom,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

- "h2": margin,margin-bottom,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

- "div": margin,margin-bottom,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

- "section": margin,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

## `for: Core Values`

### `type: html` (Core Values)

- section with class called "padding-core-values"

  - div with class called "margin-core-values"

    - div with class called "table-core-values"

      - Title with class called "title-core-values"

      - div with class called "box-core-values"

        - div with class called "one-value one-value-2"

          - image with class called "image-one-value"

          - title with class called "title-one-value"

          - information with class called "info-one-value"

        - div with class called "one-value one-value-2"

          - image with class called "image-one-value"

          - title with class called "title-one-value"

          - information with class called "info-one-value"

        - div with class called "one-value one-value-2"

          - image with class called "image-one-value"

          - title with class called "title-one-value"

          - information with class called "info-one-value"

        - div with class called "one-value one-value-2"

          - image with class called "image-one-value"

          - title with class called "title-one-value"

          - information with class called "info-one-value"

### `type: css`(Core Values)

- "padding-core-values":display,-moz-box-pack,justify-content,width,padding,position,box-shadow,background, z-index,flex

- "margin-core-values":display, flex-direction,-moz-box-pack,justify-content,-moz-box-align,align-items,width,max-width,padding,margin

- "table-core-values": display,background-color,padding,flex-direction

- "title-core-values": font-size,line-height,margin-bottom,text-transform,font-family,font-weight,color,text-align,max-width

- "box-core-values":display,flex-wrap,-moz-box-flex,flex-grow,-moz-box-pack,justify-content

- "one-value":  display,width,flex-direction,align-items

- "image-one-value": width,height,object-fit,border-radius

- "title-one-value:font-size,line-height,margin-bottom,text-transform,font-family,font-weight,color,text-align,max-width

- "info-one-value":color,text-align,max-width,line-height,font-size,font-family,margin,white-space,word-break,font-weight

## `for: Success stories`

### `type: html` (our Success stories)

- section with class called "our successes story"

  - Title with h2, class called "Demo"

    - div with class called "gita"

    - div with class called "suc"

    - div with class called "pic"

  - Title with h4, class called "name"

  - Title with h5, class called "pos"

    - p-class called "bio"

### `type: css`(successes stories)

- h2  "demo": align:left

- "pic": width,height,margin,float,background-position,filter,float,margin-top,margin-left,border-radius

- "name": margin,font-size,color,margin-left,margin-right

- "pos": margin-left,margin-right

- "name": color,margin-left,margin-right,font-size

- "bio": margin-top,margin-left,margin-right

## `for: Our Partners`

### `type: html`(Our Partners)

- section with class called "our-partners"

- div with class called "our-partners-box"

  - div with class called "box-title"

  - h2 with class called "our-partner-title"

  - link button for "become a partner"

    - svg with class called "right-arrow"

- div with class called "partners-box"

  - *12 div with partners logos

### `type: css`(Our Partners)

- our-partners: display, justify-content, width, padding.

- our-partners-box: display, flex-direction, justify-content, max-width.

- box-title: display, width, justify-content

- h2 : margin, font-size, font-family

- logos: align-items, webkit-box-align, display

## `for: Support the developers`

### `type: html` (Support the developers)

- section with class called "section-support"

  - div with class called "outer-container"

    - div with class called "inner-container"

      - div with class called "div-support"

        - div with class called "div-content"

          - Title with h1, class called "support-title"

            - p-class called "support-paragraph"

### `type: css`(support the developers)

- "section-support": display,justify-content,width,padding,position,box-shadow,background,flex

- "outer-container": display,flex-direction,justify-content,align-items,width,max-width,padding,margin

- "inner-container": display,width,overflow

- "div-support": display,flex-direction,column,width,padding-right

- "div-content": align-items,background,box-shadow,box-sizing,display,flex-direction,height,margin,max-height,max-width,padding,width

- "support-title": font-size,color,text-align,font-family,font-weight

- "support-paragraph" : text-align,color,font-size,font-family,font-weight

## `for: donation form`

### `type: html` (donation form)

- div with class called "container-donate"

  - form with class called "form-donate"

    - div with class called "select-donate"

      - labels with class called "donate-label"

        - radio buttons with class called "radio-donate" for 'One time' and 'Monthly'

        - label with class called "donate-times"

        - div with class called "options-donate"

          - ul with class called "amount-list"

          - Multiple li with class called "amount-options"

        - label with class called "donate-times" for amount

        - input type of number with class called "input-donate"

        - label with class called "donate-times" for message

        - input type of text with class called "input-donate"

        - button with class called "donate-button"

### `type: css`(donation form)

- "container-donate": display,flex-direction,width,margin,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

- "form-donate": display,flex-direction,align-items,margin,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

- "select-donate": display,flex-direction,margin,padding,border,font-size,font-style,vertical-align,text-decoration,box-sizing,font-family

- "radio-donate": cursor,margin-right,font-size,font-style,font-family

- "donate-times": color,text-align,max-width,line-height,font-size,font-family,margin,white-space,padding,border,font-style,text-decoration,font-weight

- "amount-options": display,border,color,padding,cursor,justify-content,background-color,font-family,margin,font-size,text-decoration,font-weight

- "input-donate": width,border-color,border-style,border-width,border-image,margin,font-size,padding,box-sizing,color,background-color,outline

- "donate-button":  font-size,line-height,text-decoration,background-color,color,font-weight,border-radius,box-sizing,padding,cursor,font-family

## `for: Contact Us`

### `type: html` (contact us)

- section with class called "mainscreen"

  - div with class called "container__mainscreen"

    - div with class called "mainscreen_contactus"

      - Title h1 with class called "mainscreen__header"

        - p-class with class called "mainscreen_form"

          - form with cless called "mainscreen__form"

            - label with class called "mainscreen__form__name"

            - button with class called "mainscreen__form__button"

      - div with class called "mainscreen__center"

      - div style with class called "mainscreen__img"

### `type: css`(contact us)

- "mainscreen": display,-webkit-box-pack justify-content,width,padding,position,box-shadow,background,z-index, flex

- "container__mainscreen": display,width

- "mainscreen_contactus" : display,flex-direction, width, height, background-color, padding

-"mainscreen__header": color,text-align, max-width, font-size,line-height margin, white-space, font-family font-weight, word-break

-"mainscreen_form": font-size,line-height margin-bottom, text-transform, font-family font-weight, color, text-align, max-width

-"mainscreen__form" display, flex-direction,max-width, align-items

-"mainscreen__form__name" color, text-align, max-width, line-height, font-size, font-family, margin, white-space, word-break, font-weight

-"mainscreen__form__input" color, border, border-radius, outline, background-color, padding, width

-"mainscreen__form__message" color, border, border-radius, outline, background-color, padding, width, margin-bottom

-"mainscreen__form__button" display, font-size, line-height, text-decoration, background-color, color, font-weight, border, border-radius, box-sizing, padding, cursor, text-transform, -webkit-box-align, align-items, font-family

-"mainscreen__img"-webkit-box-align, align-items, box-shadow, box-sizing,  display, flex-direction, -webkit-box-flex, height, -webkit-box-pack, justify-content, max-height, max-weight, width, z-index, position, flex,  margin, padding

## `for: footer`

### `type: html` (footer)

- section with class called "footer"

  - div with class called "container"

  - div with class called "box"

- Title with h3, class called "demo"

  - p-class called "place"

  - a class "place1"

### `type: css`(footer)

- "footer": padding,position,box-shadow,background,flex,disply,-moz-box-pack,justtify-center,width,margin,border,font-size,font-style,vertical-align,box-sizing,font-familliy

- "container":display,flex-direction,-moz-box-pack,justify-content,-moz-box-align,align-items,max-width,padding,margin,font-size,font-style,text-decoration,box-sizing,border-box,font-family

- "box": -moz-box-align,align-items,background,box-shadow,box-sizing,border-box,flex,flex-direction,-moz-box-flex,height,-moz-box-pack,justify-content,width,position,border,font-size,font-style,vertical-align,font-family

- "demo": font-size,line-height,margin,text-transform,font-family,font-weight,color,text-align,max-width,padding,border,font-style,vertical-lign,box-sizing,font-family,

- "place": color,text-align,max-width,line-height,font-size,font-family,margin,white-space,word-break,font-weight,font-style,text-decoration,box-sizing,

- "place1": color,text-align,max-width,line-height,font-size,font-family,white-space,word-break,fontweight,fontstyle,verticalalign,text,decoration,boxsizing.

repository: yildiztugba/HYKWebsite

gha_language: CSS

repo_name: yildiztugba/HYKWebsite


text:
GeoGate Simulator
=================

GeoGate is an opensource GPS/AIS tracking server framework, that enable easy
integration of multiple GPS trackers in WEB applications. It provides data
acquisition drivers for typical tracker devices or phone's GPS apps.
It handle multiple database backend, and support GeoJSON, AIS & NMEA encoding/decoding.
It embed support for multiple classes of trackers, phone-apps, as well an NMEA & AIS simulator.

GeoGate-Simulator
==================

Is the component that support GPS/AIS receiver/transceiver emulation. It can either
emulate a single or multiple devices.

Install
=======

       npm install ggsimulator

OnLine demo
===========
       tcp://sinagot.net 5001 (one GPS/GPRMC + 10 AIS targets) in the bay of Quiberon (South Brittany, Europe)

Command line
=============
       # Standalone GPS/AIS device
       node ./bin/DevSimulator.js --verbose --gpxfile=sample/gpx-file/opencpn-sample.gpx --mmsi=0 --tic=1  # MMSI=0 force GPRMC formatting
       node ./bin/DevSimulator.js --verbose --gpxfile=sample/gpx-file/opencpn-sample.gpx --mmsi=12312345 --tic=10 --shipname='Youpi' --class='A' --speed=15 --length=150 --width=10

       # One GPS and Multiple AIS targets loop for ever
       node ./bin/HubSimulator.js --gpxdir=./sample/hub-route --port=5001 --loopwait=1 --debug=3

API Usage
============
       var GGsimulator = require("ggsimulator").Simulator;
       var config =
           { gpxfile : "../sample/gpx-file/opencpn-sample.gpx"
           , mmsi    : 1234      // my prefered fake MMSI
           , tic     : 1         // send a position every 10s
           , loopwait: 0         // stop at end of gpxfile
           , debug   : 4         // [0-9] 4= see event emit without listening to them
        };
        var simulator = new GGsimulator (config);
        simulator.event.on("position",MyEventHandler4Position);   // GPS position report
        simulator.event.on("static"  ,MyEventHandler4Statics);    // AIS static data report

        // Check ./sample/geojson for a working solution with a custom message formating

API/lib
========
   require("ggsimulator").Simulator      : parses a single GPX file, generates intermediary points and emits position/statics events
   require("ggsimulator").Dispatch       : supports TCP client/server services. Dispatches outgoing messages to connected clients
   require("ggsimulator").NmeaAisEncoder : formats outgoing messages to GPRMC/AIVDM standard as requested by chart applications like OpenCPN

Sample
======
   ./sample/geojson/GeoJsonExample.js A small application that leverages a basic custom encoding.

repository: fulup-bzh/GeoGate

repo_name: fulup-bzh/GeoGate


text:
[**Deep Learning Super Sampling (DLSS)**](https://www.nvidia.com/en-us/geforce/technologies/dlss/)
is a temporal image upscaling technology developed by Nvidia and exclusive to Nvidia graphics cards
for real-time use in select video games, using deep learning to upscale lower-resolution images to
a higher-resolution for display on higher-resolution computer monitors.


text:
---
tags: politics
layout: post
title: "What gun makers think..."
---

Gun Industry Ex-Official Describes Bond of Silence - Part of me is disgusted by this, part of me is saddened by the additional example of the death spiral we seem to have cinched ourselves in so many areas of life. If there were no lawyers itching to sue the gun industry, would they have had the following reaction? I'd like to think they wouldn't, but I'm an optimist.

The gun makers became sufficiently concerned about their potential liability, Mr. Ricker said, that they convened annual meetings from 1992 through 1997, which he attended. A major subject was whether it would be good to take voluntary action to better control the distribution of guns.

But, Mr. Ricker said, "the prevailing view was that if the industry took action voluntarily, it would be an admission of responsibility for the problem." Eventually, some of the lawyers decided that even holding the meetings was "dangerous" and they were stopped, Mr. Ricker said.


text:
Free online event with a duration of 5 days, where it focuses on presenting how a particular technology works.
In this case, start on the elixir trail looking for more knowledge about the functional language.

project aims to create an api/json that registered a restaurant, it is possible to add your supplies.
the responsibility of the API and informs each week which are the items that will lose the validity period of that week.

in the terminal, following commands to execute the project:
A) `docker-compose up -d`
B) create the bank: `mix ecto.create`
c) Perform the migrations: `mix ecto.migrate`
d) add the dependencies: `mix deps.get`
E) compile the project and start the server: `mix phx.server`
   Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

F) F) Creating a restaurant in the application:
Route: POST http: // localhost: 4000 / api / restaurants
{
"name": "restaurant teste",
"email"<EMAIL_ADDRESS>}

Adding a supply to a restaurant:
Route: Post http: // localhost: 4000 / api / supplies
{
"restaurant_id": "0fa77fc9-8a08-4db9-89dd-822a693e329c",
"descripion": "wheat",
"expiration_date": "2021-04-23",
"responsible": "Employee X"
}

## Learn more

  * Official website: https://www.phoenixframework.org/
  * Guides: https://hexdocs.pm/phoenix/overview.html
  * Docs: https://hexdocs.pm/phoenix
  * Forum: https://elixirforum.com/c/phoenix-forum
  * Source: https://github.com/phoenixframework/phoenix


text:
---
title: '[PitsLamp short] Stop motion cinemagraph'
author: Filip Bunkens
type: post
date: 2013-04-23
url: /blog/20130424_pitslamp-short-stop-motion-cinemagraph
categories:
  - Digital
  - Personal
  - Pitslamp Shorts
  - Varia
tags:
  - cinemagraph
  - fun
  - nespresso
  - personal project
  - saravdv
  - stop motion
format: gallery
---
[![stop motion cinemagraph nespresso][1]](/images/blogposts/nespresso_trieste_napoli.gif)

I like stop motion, but it takes a lot of time. Sara needed some photos of the limited edition Napoli and Trieste of Nespresso and off course I'm the one making those. However having spend way too much time working at the computer lately, I decided to do something fun and combine a cinemagraph and stop motion, 2 things I love, but rarely get around to doing. After about an hour, this is the result. Enjoy

 [1]: /images/blogposts/nespresso_trieste_napoli.gif


text:
---
versionFrom: 6.2.0
---

# MemberGroupService

:::note
Applies to Umbraco 6.2 and 7.1 and newer
:::

The MemberGroupService acts as a "gateway" to Umbraco data for operations which are related to Member groups, which are also known as Member Roles.

[Browse the API documentation for MemberGroupService](https://our.umbraco.com/apidocs/v7/csharp/api/Umbraco.Core.Services.MemberGroupService.html).

 * **Namespace:** `Umbraco.Core.Services`
 * **Assembly:** `Umbraco.Core.dll`

All samples in this document will require references to the following dll:

* Umbraco.Core.dll

All samples in this document will require the following using statements:

```csharp
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
```

## Getting the service
The MemberGroupService is available through the `ApplicationContext`, but the if you are using a `SurfaceController` or the `UmbracoUserControl` then the MemberGroupService is available through a local `Services` property.

```csharp
Services.MemberGroupService
```

Getting the service through the `ApplicationContext`:

```csharp
ApplicationContext.Current.Services.MemberGroupService
```

repository: jakob-bagterp/UmbracoDocs

repo_name: jakob-bagterp/UmbracoDocs


text:
# MySQL-Employee-Tracker
Application simulating a content management system allowing the user to add, view, remove employees

# SOURCES
* https://stackoverflow.com/questions/6561438/mysql-select-within-same-table
* https://www.mysqltutorial.org/mysql-delete-join/
* https://stackoverflow.com/questions/40116114/how-can-i-use-an-alias-for-a-concat-in-mysql
* https://www.mysqltutorial.org/mysql-delete-join/
*

repository: BrandonEJenkins/MySQL-Employee-Tracker

repo_name: BrandonEJenkins/MySQL-Employee-Tracker


text:
# Getting Started in Visual Studio Code

The OpenMCx-repository provides an easy way to get the project
compiling and running from within Visual Studio Code.
The `devcontainer.json` configuration file tells Visual Studio Code
how to provide a development environment with everything that is
needed to build and debug OpenMCx.

Follow these steps to make use of the development container:

- Load the OpenMCx repository into Visual Studio Code:

  - Open folder where you cloned the repository

  - Reopen in development container

    Visual Studio Code will recognize the `devcontainer.json` and
    offer to **Reopen in Dev Container** in a small window at the bottom
    right of Visual Studio Code.

  - When Visual Studio Code asks you to **Select a Kit for openmcx**,
    choose `GCC 9.3.0 x86_64-linux-gnu`.

- Build OpenMCx

  Run the following command from the Command Palette (`Ctrl+Shift+P`):

  > **CMake: Build**

- Run OpenMCx using the sample Launch configuration

  The folder `.vscode.sample` contains a sample `launch.json` which
  tells VS Code how to run and debug OpenMC.x

  - Copy `.vscode.sample` to `.vscode`

    The sample configuration is set up to start the currently opened
    file with OpenMCx, but you can adapt and modify the launch
    configuration to your needs.

  - Start OpenMCx with a `model.ssd`

    Open a `model.ssd` file and run **debug (gdb) Launch openmcx** from the Command
    Palette. This starts `openmcx` in the parent folder of the opened
    `model.ssd` file. The `simulation.log` and the `results` folder will
    be written to the parent folder as well.

- Optionally: Install helpful extensions

  - [joaompinto.vscode-graphviz](https://marketplace.visualstudio.com/items?itemName=joaompinto.vscode-graphviz)
    for opening `.dot` files containing the graph of the model that is
    generated when adding `-g` to the command line arguments
  - [randomfractalsinc.vscode-data-preview](https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-preview)
    for opening and plotting result `.csv` files

repository: chrbertsch/openmcx

repo_name: chrbertsch/openmcx


text:
---
layout: page
title:  FAQ
section: faq
position: 2
---

## FAQs

### Does mainecoon support algebras with extra type parameters?

Yes. e.g.

```tut:silent
import mainecoon._
import cats.~>
import util.Try

@autoFunctorK @finalAlg
trait Foo[F[_], T] {
  def a(i: Int): F[T]
}

implicit val tryFoo: Foo[Try, String] = new Foo[Try, String] {
  def a(i: Int) = Try(i.toString)
}

implicit val fk: Try ~> Option = λ[Try ~> Option](_.toOption)

import Foo.autoDerive._
```
```tut:book

Foo[Option, String].a(3)
```

### Does mainecoon support algebras with abstract type member?

Yes but with some caveats.
The `FunctorK` instance it generates does not refine to the type member. E.g.

```tut:silent
@autoFunctorK @finalAlg
trait Bar[F[_]] {
  type T
  def a(i: Int): F[T]
}

implicit val tryInt = new Bar[Try] {
   type T = String
   def a(i: Int): Try[String] = Try(i.toString)
}

import Bar.autoDerive._
```

If you try to map this tryInt to a `Bar[Option]`, the `type T` of the `Bar[Option]` isn't refined.  That is, you can do

```tut:book
Bar[Option].a(3)
```
But you can't create a `Bar[Option]{ type T = String }` from the `tryInt` using `FunctorK`.

```tut:fail
val barOption: Bar[Option] { type T = String } = tryInt.mapK(fk)
```

However, there is also `mapK` function added to the companion object of the algebra which gives you more precise type.

```tut:book
val barOption: Bar[Option] { type T = String } = Bar.mapK(tryInt)(fk)
```

Also since the `FunctorK` (or `InvariantK`) instance uses a dependent type on the original interpreter, you may run into dependent type related issues. In those cases, this `mapK` (or `imapK`) on the companion object may give better result.
Here are two examples.

#### Cannot resolve implicit defined by the dependent type

```tut:silent
import cats.Show
import cats.implicits._

@autoFunctorK
trait Algebra[F[_]] {
  type TC[T]
  def a[T: TC](t: T): F[String]
}

object tryInt extends Algebra[Try] {
  type TC[T] = Show[T]
  def a[T: TC](t: T): Try[String] = Try(t.show)
}
```
`FunctorK.mapK` will result in unusable interpreter due to scalac's difficulty in resolving implicit based on dependent type.
```tut:fail
FunctorK[Algebra].mapK(tryInt)(fk).a(List(1,2,3))
```
The `mapK` on the companion will work fine.
```tut:book
Algebra.mapK(tryInt)(fk).a(List(1,2,3))
```

#### Cannot take in argument whose type is a dependent type
```tut:silent
@autoInvariantK
trait InvAlg[F[_]] {
  type T
  def a(i: F[T]): F[T]
}

object tryInt extends InvAlg[Try] {
  type T = String
  def a(i: Try[String]): Try[String] = i.map(_ + "a")
}
implicit val rk: Option ~> Try = λ[Option ~> Try](o => Try(o.get))

```
`InvariantK.imapK` will result in unusable interpreter because method `a`'s argument type is a dependent type on original interpreter.
```tut:fail
InvariantK[InvAlg].imapK(tryInt)(fk)(rk).a(Some("4"))
```
The `imapK` on the companion will work fine
```tut:book
InvAlg.imapK(tryInt)(fk)(rk).a(Some("4"))
```

### I am seeing diverging implicit expansion for type MyAlgebra[F]

If you see error likes the following when you try to summon a specific instance of `MyAlgebra`

> diverging implicit expansion for type MyAlgebra[F]
>
> [error] starting with method autoDeriveFromFunctorK in object MyAlgebra

It probably means that necessary implicit `MyAlgebra` instance and/or the corresponding `FunctionK` is missing in scope.

repository: kailuowang/mainecoon

gha_language: Scala

repo_name: kailuowang/mainecoon


text:
# Prediction-Analysis-KNN-and-Naive-Bayes-Modelling
# Titanic Prediction K-Nearest Neighbour model.
![Titanic_image](https://data.ibtimes.sg/en/full/17883/titanic.jpg?w=800)

## Table of Contents:

* Data Set
* Result

## Data Set
Below are the features provided in the Test dataset.

Train.csv will contain the details of a subset of the passengers on board (891 to be exact) and importantly, will reveal whether they survived or not, also known as the “ground truth”.

The `test.csv` dataset contains similar information but does not disclose the “ground truth” for each passenger. It’s your job to predict these outcomes.

Using the patterns you find in the train.csv data, predict whether the other 418 passengers on board (found in test.csv) survived

### Categorical Features
*  Passenger Id: and id given to each traveler on the boat
* Pclass: the passenger class. It has three possible values: 1,2,3 (first, second and third class)
* The Name of the passenger
* Sex
* The ticket number
* The cabin number
* The embarkation. This describes three possible areas of the Titanic from which the people embark. Three possible values S,C,Q

### Numerical Features
* Age
* SibSp: number of siblings and spouses traveling with the passenger
* Parch: number of parents and children traveling with the passenger
* The ticket Fare

### Target Variable
* Survived - binomial observations (0 - not survived,1 - survived)

### Result
model type | Accuracy Score | Recall(0,1)| Precision(0,1) | F1 (0,1) | AUC curve
-----------|----------------|------------|----------------|----------|--------
RandomForest | 0.83| 0.88, 0.77| 0.86, 0.79 | 0.87, 0.78 | 0.82
KNN without Optimization | 0.77 | 0.78, 0.75 | 0.86, 0.63|0.82, 0.69| 0.75
KNN (80% training)| 0.79 | 0.82, 0.75| 0.85, 0.71| 0.84, 0.73| 0.78
KNN (70% training)|0.78 | 0.82, 0.72| 0.84, 0.70| 0.85, 0.71| 0.77
KNN (60% training)|0.78 | 0.80, 0.75| 0.86, 0.65| 0.83, 0.69|0.76


text:
# Code 102 Prerequisites

Please take a few minutes to get yourself ready to hit the ground running at the start of class!

## 10 Minutes

- Signup for a GitHub account at https://github.com/
  - Click [here](https://www.youtube.com/watch?v=2NxsjFtGjBA) for a tutorial video.

## 5 Minutes

- Ensure you have [the required course text books](https://smile.amazon.com/Web-Design-HTML-JavaScript-jQuery/dp/1119038634/) at the start of day 1.
  - JavaScript and JQuery: Interactive Front-End Web Development by Jon Duckett
  - HTML and CSS: Design and Build Websites by Jon Duckett

## Varies depending on computer setup 10 Minutes to 2 Hours

- Your computer running64-bit Operating System
  - MacOS (Catalina or Mojave required)
  - Ubuntu (latest update)
  - Windows 10 Pro (home version not sufficient at this time).
  - Fully up to date, with the latest version of the operating system and all security updates installed.
  - At least 50GB of free space on the hard drive (100GB strongly preferred).
  - At least 8GB of RAM (16GB+ RAM strongly preferred).
  - Free of viruses, and in general working order.
    - Screen working
    - Keyboard working
    - Trackpad / mouse working
    - Wireless ready and working

## 10 Minutes

- The latest version of Google Chrome installed.

## 5 Minutes

- Accept Canvas invite in email.

## 10 Minutes

- Install Slack from link [here](https://slack.com/downloads)
- Accept Slack invite in email.

## Questions?

If you have questions about any of these steps, connect with your instructor in Slack, or ask your admissions contact.

We are looking forward to seeing you in class!


text:
# The first chapter
\label{cha:a_chapter}

This is the first paragraph of the Softcover Markdown template produced with the \softcover\ command-line interface. It shows how to write a document in Markdown, a lightweight markup language, augmented with the [kramdown](http://kramdown.gettalong.org/) converter and some custom extensions, including support for embedded \PolyTeX, a subset of the powerful \LaTeX\ typesetting system.[^pronunciation] For more information, see [*The Softcover Book*](http://manual.softcover.io/book). To learn how to easily publish (and optionally sell) documents produced with Softcover, visit [Softcover.io](http://softcover.io/).

This is the *second* paragraph, showing how to emphasize text.[^sample-footnote] You can also make text **bold** or _emphasize a second way_. Via embedded \PolyTeX, Softcover also supports colored text, such as \coloredtext{red}{red}, \coloredtext{CornflowerBlue}{cornflower blue}, and \coloredtexthtml{E8AB3A}{arbitrary HTML colors}.

## A section
\label{sec:a_section}

This is a section. You can refer to it using the \LaTeX\ cross-reference syntax, like so: Section~\ref{sec:a_section}.

### Source code

This is a subsection.

You can typeset code samples and other verbatim text using four spaces of indentation:

    def hello
      puts "hello, world"
    end

Softcover also comes with full support for syntax-highlighted source code using kramdown's default syntax, which combines the language name with indentation:

{lang="ruby"}
    def hello
      puts "hello, world"
    end

Softcover's Markdown mode also extends kramdown to support so-called "code fencing" from GitHub-flavored Markdown:

```ruby
def hello
  puts "hello, world!"
end
```

The last of these can be combined with \PolyTeX's `codelisting` environment to make code listings with linked cross-references (Listing~\ref{code:hello}).

\begin{codelisting}
\codecaption{Hello, world.}
\label{code:hello}
```ruby
def hello
  puts "hello, world!"
end
```
\end{codelisting}

### Mathematics

Softcover's Markdown mode supports mathematical typesetting using \LaTeX\ syntax, including inline math, such as \( \phi^2 - \phi - 1 = 0, \) and centered math, such as
\[ \phi = \frac{1+\sqrt{5}}{2}. \]
It also supports centered equations with linked cross-reference via embedded \PolyTeX\ (Eq.~\eqref{eq:phi}).

\begin{equation}
\label{eq:phi}
\phi = \frac{1+\sqrt{5}}{2}
\end{equation}

Softcover also supports an alternate math syntax, such as {$$}\phi^2 - \phi - 1 = 0{/$$}, and centered math, such as

{$$}
\phi = \frac{1+\sqrt{5}}{2}.
{/$$}

The \LaTeX\ syntax is strongly preferred, but the alternate syntax is included for maximum compatibility with other systems.

## Images and tables

This is the second section.

Softcover supports the inclusion of images, like this:

![Some dude.](images/figures/01_michael_hartl_headshot.jpg)

Using \LaTeX\ labels, you can also include a caption (as in Figure~\ref{fig:captioned_image}) or just a figure number (as in Figure~\ref{fig:figure_number}).

![Some dude.\label{fig:captioned_image}](images/figures/01_michael_hartl_headshot.jpg)

![\label{fig:figure_number}](images/figures/01_michael_hartl_headshot.jpg)

### Tables

Softcover supports raw tables via a simple table syntax:

|**HTTP request** | **URL** | **Action** | **Purpose** |
| `GET` | /users | `index` | page to list all users |
| `GET` | /users/1 | `show` | page to show user with id `1` |
| `GET` | /users/new | `new` | page to make a new user |
| `POST` | /users | `create` | create a new user |
| `GET` | /users/1/edit | `edit` | page to edit user with id `1` |
| `PATCH` | /users/1 | `update` | update user with id `1` |
| `DELETE` | /users/1 | `destroy` | delete user with id `1` |

See [*The Softcover Book*](http://manual.softcover.io/book/softcover_markdown#sec-embedded_tabular_and_tables) to learn how to make more complicated tables.

## Command-line interface

Softcover comes with a command-line interface called `softcover`. To get more information, just run `softcover help`:

```console
$ softcover help
Commands:
  softcover build, build:all           # Build all formats
  softcover build:epub                 # Build EPUB
  softcover build:html                 # Build HTML
  softcover build:mobi                 # Build MOBI
  softcover build:pdf                  # Build PDF
  softcover build:preview              # Build book preview in all formats
  .
  .
  .
```

\noindent You can run `softcover help <command>` to get additional help on a given command:

```console
$ softcover help build
Usage:
  softcover build, build:all

Options:
  -q, [--quiet]   # Quiet output
  -s, [--silent]  # Silent output

Build all formats
```

## Miscellanea

This is the end of the template---apart from two mostly empty chapters. In fact, let’s include the last chapter in its entirety, just to see how mostly empty it is:

<<(chapters/yet_another_chapter.md, lang: text)

Visit [*The Softcover Book*](http://manual.softcover.io) to learn more about what Softcover can do.

[^sample-footnote]: This is a footnote. It is numbered automatically.

[^pronunciation]: Pronunciations of "LaTeX" differ, but *lay*-tech is the one I prefer.

repository: yasslab/softcover

gha_language: Ruby

repo_name: yasslab/softcover


text:
# Medical-Android-App

## The aim of the app is to connect Patients and Doctors.

>Goals of the app are:

1) Searching doctors using any one or a combination of the following parameters:- Disease/Condition,Specialty, Location, Insurance company

2) Enable patients to book appointments with doctors

3) Doctors can write prescriptions directly through the app

4) Patients can view prescriptions

5) Doctors have a view called "Today's Schedule" through which they can view their appointments for that day and manage patients

6) Similarly Patients too have a view called "My Appointments" where they can view all the appointments which they have booked.

(All the above features have been implemented)

>Some additional feature I have thought of:

7) Add a doctor rating system. Not something like out of 5 stars. Instead patients can "Like" a doctor. So it'll be number of likes.

8) Allow the patient to see his/her medical history with the doctor. Test reports, vaccines taken, diagnosis, etc will be part of the history.


text:
# Database

## Postgres

- Postgres has a strongly typed schema that leaves very little room for errors. You first create the schema for a table
and then add rows to the table. You can also define relationships between different tables with rules so that you can
store related data across several tables and avoid data duplication.

Companies using Postgres include: [instagram](https://instagram-engineering.com/sharding-ids-at-instagram-1cf5a71e5a5c),
[Shippable](http://blog.shippable.com/why-we-moved-from-nosql-mongodb-to-postgressql)

repository: stakater/developer-handbook

repo_name: stakater/developer-handbook


text:
# Rust FUSE ABI types

This crate contains ABI types for communicating with the FUSE kernel interface. See the [fuse crate](https://crates.io/crates/fuse) for more information.

repository: nschoellhorn/fuse-rs

repo_name: nschoellhorn/fuse-rs


text:
# card game

## description

A card game.

frontend: [enchant.js](https://github.com/wise9/enchant.js), [Socket.IO](https://socket.io/)

backend: python, [Flask](https://flask.palletsprojects.com/en/1.1.x/), [Flask-SocketIO](https://github.com/miguelgrinberg/Flask-SocketIO)

## How to setup

1. `python -m venv .env`
1. Activate the virtual env (see https://docs.python.org/3/library/venv.html)
1. `pip install -r requirements.txt`
1. `python app.py`
1. Access to http://localhost:8080
1. Input player name (anything OK) and hit login button
1. The game starts once 2 players are connected

repository: nshinya/cardgame

repo_name: nshinya/cardgame


text:
---
title: "Prepare the environment"
chapter: false
weight: 30
tags:
  - MFESummit2020
---

{{% notice info %}}
Starting from here, when you see command to be entered such as below, you will enter these commands into Cloud9 IDE. You can use the **Copy to clipboard** feature (right hand upper corner) to simply copy and paste into Cloud9. In order to paste, you can use Ctrl + V for Windows or Command + V for Mac.
{{% /notice %}}

To ensure temporary credentials aren't already in place we will also remove
any existing credentials file by executing the following command in the Terminal:
```
rm -vf ${HOME}/.aws/credentials
```

#### Save your student credentials for AWS
Execute the following command and enter the information from the user information.

Enter the following information when prompted for it:

AWS Acces Key ID

AWS Secret Access Key

Region as `us-east-1`

Output format `json`

{{% notice warning %}}
Please take extra care to not paste any whitespaces or line-breaks. If something goes wrong, then restart the command and try pasting the data again without whitespaces
{{% /notice %}}

```
aws configure
```

PLEASE NOTE: Screenshot below shows us-east-2, but make sure to choose us-east-1.

![awscliauth](/images/mfe/awscliauth.jpg?classes=border,shadow)

Due to a bug in the Code9 IDE we need to remove the line `aws_session_token=` from the AWS credential file. Either edit the file and remove the line starting with `aws_session_token=` or execute the following command:
```bash
sed -i '/aws_session_token/d' ${HOME}/.aws/credentials

```
{{% notice warning %}}
If the line starting with `aws_session_token` is in the aws credential file at ${HOME}/.aws/credentials you will not be able to authenticate correctly when using the `git`command
{{% /notice %}}

### Check Credential configuration

Then execute the following command to check that you are connected and authenticated to the AWS API backend with the correct username:

#### Check username using AWS IAM
```
aws iam get-user

```
The output will be all information about your user account from IAM and looks like this
![Cloud94](/images/mfe/cloud9_4.jpg?classes=border,shadow)

Another way to get the information about the logged in user is to execute the following command, which asks the AWS STS service:

#### Check username using AWS STS
```
aws sts get-caller-identity

```

The output will show the username and user id of the currently logged in user and look like this:
![Cloud93](/images/mfe/cloud9_3.jpg?classes=border,shadow)

To make things easier in the next steps you will define a couple of environment variables specific to your environment.

{{% notice tip %}}
We are using the ``bash_profile`` to save the variables. We can then reference them later as environment variables
{{% /notice %}}

Copy this command, then paste it into the Cloud 9 terminal, then replace ``<CODEWORD>`` with the codeword for your environment. Then execute the command.

```
echo export CODEWORD=<CODEWORD> | tee -a ~/.bash_profile
```
then execute

```
. ~/.bash_profile

```

You should also save the default regions for the the different labs and resources in this lab:
```
echo export EKS_REGION=us-east-1 | tee -a ~/.bash_profile
. ~/.bash_profile

```

And now we also need to make sure to setup the right configuration for the git command to use the aws credentials (ref: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html)

```
rm ~/.gitconfig
git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true

```

repository: jayflorawork/eks-workshop

repo_name: jayflorawork/eks-workshop


text:
# Overview

This repo exists for practice with sockets. It was made at the behest of instructor Scott Schmidt in the Advanced Software Development in Python Course at Code Fellows

## To Use
1. Clone the repo from github
2. Start two different virtual environments, one for server.py, one for client.py
3. run server.py
4. run client.py with and concatenate a string on the end of it or use the provided prompts

repository: tyler-fishbone/sockets

repo_name: tyler-fishbone/sockets


text:
+++
categories = ["functions"]
layout = "function"
modules = ["mod_proc"]
title = "exit()"

+++

## Definition

    INT exit ( [<STRING message>] , [<INT code>] )

Exits the program. It can optionally pass a message or an error code thing.

## Parameters

- [STRING message]  - A message to pass outside the program as it exits.
- [INT code]  - A code to pass outside the program as it exits.

## Returns

INT true

repository: DivHub/bennugd-website

repo_name: DivHub/bennugd-website


text:
# σεαυτοῦ, ῆς, οῦ.

<!-- Status: S2=NeedsReview -->
<!-- Lexica used for edits: BDAG LN FFM BN LSJM MM   -->

## Word data

* Strongs: G45720.

* Alternate spellings:

* Principle Parts:

* Part of speech:

[Pronoun reflexive](http://ugg.readthedocs.io/en/latest/pronoun_reflexive.html).

* Instances in the New Testatemt: 43.

* All Scriptures cited: No.

## Etymology:

* LXX/Hebrew glosses:

(in NT not contracted, [σαυτοῦ](), as in Att..),

* Time Period/Ancient Authors:

* Related words:

* Antonyms for all senses:

* Synonyms for all senses:

## Senses:

### Sense  1.0:

#### Definition:

yourself

#### Glosses:

yourself

#### Explanation:

This is the second person singular reflexive pronoun

#### Citations:

[Matt 4:6](mat 4:6), [John 8:13](jhn 8:13), [1Tim 4:16](1ti 4:16).

repository: mandolyte/uw-obsidian

repo_name: mandolyte/uw-obsidian


text:
# telemetry-framework

This repository contains a framework for internet of things telemetry solutions using Nodejs webserver, SQL database and Arduino node client.

The framework consists of hardware and software components. The first, the node client, is the remote or inaccessible environment. The node client is an Arduino microcontroller attached to sensors and actuators. It sends and receives data to the server using a GPRS internet gateway provided by SIM800A module or wifi AP via ESP8266 module. The second, the webserver, is the nearby and accessible environment. The webserver provides RESTful API endpoints to interact with node clients and a web interface to interact with web users. It is written in a web stack consisting of Nodejs, Angularjs, HTML, CSS and SQL database.

All node clients have a registered profile and a configuration for every sensor or actuator attached to them. The webserver configuration can be changed by the web user at any time and the behavior of the node client’s firmware will update itself to reflect the change. Two forms of GPS, multiple voltage levels power supply, extensible driver manager library, and modularized hardware design provide a wide range of tools for the development of derivative telemetry solutions.

The repository provides a complete source code of the webserver (/Server), set up scripts for SQL server (/Database) and the Arduino firmware (/Client).

Refer to the [wiki](https://github.com/Fujihita/telemetry-framework/wiki) for more information.

## stats
Version: 1.2.4

Project started: Thursday 13 October 2016

Project published: Wednesday 22 February 2017

Live demo: http://telemetryapp.azurewebsites.net/

repository: Fujihita/telemetry-framework

repo_name: Fujihita/telemetry-framework