text:
---
layout: API
title: HBridgeMotor
subtitle: Generic h-bridge motor controller driver.
---

# Info

An [h-bridge](https://www.wikiwand.com/en/H_bridge) motor controller enables a control signal to drive a much larger load in either polarity, allowing the Netduino to drive DC motors in forward or reverse from an external power supply. Using [pulse-width-modulation (PWM)](http://developer.wildernesslabs.co/Netduino/Input_Output/Digital/PWM/) as the control signal, provides not just forward or reverse control, but variable speeds in either direction.

![](HBridges.jpg)

## Sourcing

This generic driver works with standard h-bridges ICs such as the Texas Instruments [L2N93E](https://octopart.com/search?q=L293NE) or [SN754410](https://octopart.com/search?q=SN754410) chips.

It should also work with heavier duty [L298N](https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=l298n) drivers.

# Example

The following example uses a dual h-bridge chip to control two motors. Both the L293NE and NS754410 are dual h-bridge chips that can drive two motors in both forward and reverse. This is a common configuration for wheeled robots. Forward and reverse motion is obtained by setting both the motors to have the same forward or reverse speed, and turning is accomplished by setting them to different speeds.

## Sample Circuit

Though h-bridge motor controllers come in various form factors, they typically share the following pins and usages:

| Motor Controller Pin           | Description                                           |
|--------------------------------|-------------------------------------------------------|
| **1,2EN** or **ENABLE A**      | Motor 1 enable. This should be configured as `enablePin` in the constructor, and it controls whether or not the motor is powered. The `HBridgeMotor` driver will automatically set this to high (enabled) when the speed is not zero. This is also enabled when `IsNeutral` is set to false, as powering the motor will cause it to brake when the speed is set to `0`.

 On the L2N93E and SN754410 chips, this is labeled as **1,2EN**, and on the L298N, it's typically labeled as **ENABLE A**. |
| **3,4EN** or **ENABLE B**             | Motor 2 enable pin. If you are driving two motors, you'll need two `HBridgeMotor` objects, as shown in the example below. |
| **[1,2]A** or **INPUT [1,2]**  | Motor 1 control inputs. These are configured as the `a1Pin` and `a2pin` constructor parameter. These are the low-voltage control signals for motor 1 forward and reverse.

 On the L2N93E and SN754410 chips, this is labeled as **1A** and **2A**, and on the L298N chip, it's typically labeled as **INPUT 1** and **INPUT 2**. |
| **[3,4]A** or **INPUT [3,4]**   | Motor 2 control inputs.                              |
| **GROUND** or **GND**           | Common/ground. Both the motor power supply and the logic power supply should be tied together on the same common ground plane. |
| **VCC2**, **+12V**, or **Vs** | This is the positive voltage supply that drives the motors. Depending on the chip used, this may be anywhere from `4.5V` up to `50V`. |
| **VCC1**, **+5V**, or **VSS** | This is the logic voltage supply that powers the chip logic. This should be tied into the `5V` voltage pin on the netduino.    |

The following breadboard diagram illustrates connecting two motors to an h-bridge chip that uses a external power supply to drive the motors:

![](DualMotorHBridge_bb.svg)

## Code

The following code creates an h-bridge controller with the PWM controllers on pins 3 and 5, and the enable pin on pin 4. It then sets the motor speed to 100% forward, stops the motor for half a second, and then sets the motor speed to 100% reverse.

```csharp
using System.Threading;
using H = Microsoft.SPOT.Hardware;
using N = SecretLabs.NETMF.Hardware.Netduino;
using Netduino.Foundation.Motors;

namespace HBridgeMotor_Sample
{
    public class Program
    {
        public static void Main()
        {
            var motor1 = new HBridgeMotor(N.PWMChannels.PWM_PIN_D3, N.PWMChannels.PWM_PIN_D5, N.Pins.GPIO_PIN_D4);
            var motor2 = new HBridgeMotor(N.PWMChannels.PWM_PIN_D6, N.PWMChannels.PWM_PIN_D10, N.Pins.GPIO_PIN_D7);

            while (true)
            {
                // set the speed on both motors to 100% forward
                motor1.Speed = 1f;
                motor2.Speed = 1f;
                Thread.Sleep(1000);
                motor1.Speed = 0f;
                motor2.Speed = 0f;
                Thread.Sleep(500);
                // 100% reverse
                motor1.Speed = -1f;
                motor2.Speed = -1f;
                Thread.Sleep(1000);
            }
        }
    }
}
```

# API

## Properties

#### `float IsNeutral { get; set; }`

Whether or not the motor connected to the h-bridge is not enabled. If `IsNeutral` is `true`, then the motor controller is disabled and rotor spins freely. If `IsNeutral` is false, then the motor will be energized and the rotor will be "locked" into position.

#### `public float MotorCalibrationMultiplier { get; set; } = 1;`

#### `float Speed { get; set; }`

The speed, represented by a value from `-1` to `1` of the motor. `-1` means 100% reverse, and `1` means 100% forward.

## Constructors

#### `public HBridgeMotor(H.Cpu.PWMChannel a1Pin, H.Cpu.PWMChannel a2Pin, H.Cpu.Pin enablePin)`

Instantiates a new `HBridgeMotor` on the specified pins.

##### Parameters

 * `a1Pin` - The PWM channel pin that creates the forward rotation signal.
 * `a2Pin` - The PWM channel pin that creates the reverse rotation signal.
 * `enablePin` - A digital IO pin that enables and disables the h-bridge, which controls `IsNeutral`.


text:
---
layout: kanji-remain
v4: 2998
kanji: 饅
keyword: bean jam
strokes: 20
on-yomi: マン
permalink: /rtk/饅/
---

## Koohii stories:

1) [Katsuo] 20-1-2008(19): A bit of old food is stuck on one of my mandalas. What could it be? I scrape it off and taste it . . . Hmm, bean jam, I reckon.

2) [mantixen] 2-8-2009(9): Steamed bean jam dumplings were invented as a form of Chinese take-out that could be eaten while meditating on a mandala (thanks dihutenosa).

3) [abaddon] 15-6-2008(6): Old food, Mandela: During his imprisonment, Mandela was only given old food. Once per year, they gave him a treat: fresh bean jam. After this, you shouldn't visit Mandela's cell: to stinky! Old food primitive: (meeting, day, staples: The meeting took all day, do when we got out to have our dinner, only old food and the staples of the dinnerboxes were left. My colleagues are such gluttons!

4) [CasualTatsumaki] 9-2-2011(2): Sounds like the name of a hippie jam band, eating hash manju and staring at a mandala. 肉饅頭 [にくまんじゅう] manju (steamed bun) with meat filling.

5) [dihutenosa] 16-8-2008(2): For me, the old food thing on the right just makes me think of the traditional Chinese version - so it's gonna be a Chinese take-out box. [+abaddon] When Mandela was in prison, he was routinely starved and forced to go without food. Luckily, one of the guards took pity on him and would always give him the part of his lunch that he couldn't stand eating anyway - the little bean jam portion that came in the take-out box with his Panda Express meal.

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
Talk me Want It

OgarBooks Maded By Lengedore Maded Electronoob
Alert Added
Tags: wiki, Tags, Fork, Pull, Issues, Star, Help, Comment, Api, Watch and Add

# Lets Gets Started!
*requierments to windows,ubuntu,linux and other PC.*
plz download at zip or github destop

# What's New!

6ur2etk45g75g09 it means a code you update a repo . Bug fixing, reload bug, fb relogin, fix agario

Node Added
### Ogar ModPro is now Realesed!
Whats New!
Added Respawn and Menu
Added Stats
Agar Mods
And So Mod Added all
**Imange i Have A Mod**

                    :sparkle: :sparkle: sparkle :sparkle: :sparkle:

# New!
_Addon_ **Added!!**
Whats New!
***
Electronic Evergreen with Tester
RubyTree [CACHE AND DATA SAVER]
The Mod THE NEW
All Addons!
# BlobNews.me.com or com.me.BlobNews
### Breaking News:
***
||<IOS/Android>|| Realese AgarMods!
***
## What's New!
Added Websocket, Defender [Hack/glitch banner] And Updater
Name: AgarMods Pocket Edition Build 369/Endless
#CoffeeMe
1.0.0 What's New _**!**_
***
Update to Downdate
***
Connected To CoffeeScript
***
New PizzaScript
***
Do This code `npm -g coffee-script`
# Server Bar Gamemodes
**Id   | Name
-----|--------------
0    | Free For All
1    | Teams
2    | Experimental (As of 6/13/15)
10   | Tournament
11   |  Games
12   | Zombie Mode
13   | Team Z
14   | Team X
20   | Rainbow FFA - Hint: Use with "setAcid(true)"

# ☆Users☆ o_0
### 1 To 20
Id   | Name
-----|--------------
1    | Tinoy (King Agar.io)/(Mod/Owner Mod)
2    | Companion Bot (King Cloned)
3    | Inferr (Admin)
4    | Inferr's Companion Bot
5    | Companion Bot 1
6    | Companion Bot 2
7    | Companion Bot 3
8    | Companion Bot 4
9    | Companion Bot 5
10   | Guest1 (Dumbass Bot)
11   | Add Here
12   | Add Here
13   | Add Here
14   | Add Here
15   | Add Here
16   | Add Here
17   | Add Here
18   | Add Here
19   | Add Here
20   | Add Here

## How To install
***
8PC:
1. Install Zip or Rar File
2. Find AgarMods.js or AgarModsPc.bat
3. Open it(REQUIRE NODE)
4. And open Website
5. And Open AgarMod.js [TamperMonkey]
6. Enjoy!
Website:
1. Install TamperMonkey
2. Press Raw On AgarMods.js
3. Enable Script
4. Enjoy!
# Owner's twitch.tv And website
[TWITCH.TV](http://www.twitch.tv/timothyfrancisplays)

[MY WEBSITE](https://tinoyplays.weebly.com)

license: MIT

repository: timothyfrancis/IoMods-ExternalV

branch_name: HEAD

repo_name: timothyfrancis/IoMods-ExternalV


text:
## Metrics and liveness

For this exercise, we're going to be deploying a new app. One with metrics and endpoints.

So first, login:

```
[Login to ECR bits]
```

Now, we need to build our app and push it:

```
docker build -t devopsgirls-training -f Dockerfile-app .
docker tag devopsgirls-training:latest XXXXXXXXX.dkr.ecr.ap-southeast-2.amazonaws.com/devopsgirls-training:nora-lim-customapp
```

Login, and push:

```
$(aws ecr get-login --no-include-email --region ap-southeast-2)
docker push XXXXXXXXX.dkr.ecr.ap-southeast-2.amazonaws.com/devopsgirls-training:nora-lim-customapp
```

Then, change names on `metrics/deployment.yaml` and `metrics/service.yaml` the same way you changed it earlier on the files on `basic/deployment.yaml` and `basic/service.yaml.` Make sure not to change anything else!

Then, apply the image on Kubernetes:

```
kubectl apply -f metrics/deployment.yaml -n training
kubectl apply -f metrics/service.yaml -n training
```

## Liveness and Readiness checks

You can also add Liveness checks and Readiness Checks specific to your containers. All it takes is to add the following lines to your deployment:

```
              livenessProbe:
                httpGet:
                  path: /health
                  port: $((containerPort))
                initialDelaySeconds: 3
                periodSeconds: 3
              readinessProbe:
                httpGet:
                  path: /ready
                  port: $((containerPort))
                initialDelaySeconds: 3
                timeoutSeconds: 8
                periodSeconds: 10
```

Note that the two are different. These are endpoints in your app (like `/metrics`) that are probed, and Kubernetes acts accordingly.

If an app fails a `livenessProbe`, then the app is restarted.

If an app succeeds a `readinessProbe`, then traffic can flow into it.

Add the lines to your `metrics/deployment.yaml` as follows::

```
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
  name: "devopsgirls-deployment"
spec:
  replicas: 2
  selector:
    matchLabels:
      app: "devopsgirls"
  template:
    metadata:
      labels:
        app: "devopsgirls"
    spec:
      containers:
        - image: "XXXXXXXXX.dkr.ecr.ap-southeast-2.amazonaws.com/devopsgirls-training:nora-lim-customapp"
          name: nginx
          ports:
            - containerPort: 3000
          livenessProbe:
            httpGet:
              path: /health
              port: 3000
            initialDelaySeconds: 3
            periodSeconds: 3
          readinessProbe:
            httpGet:
              path: /ready
              port: 3000
            initialDelaySeconds: 3
            timeoutSeconds: 8
            periodSeconds: 10
```

Apply your changes afterwards.

```
kubectl apply -f metrics/deployment.yaml -n training
```

## Exercise

Try putting a fake URL on your `readinessProbe` - then applying the change. What happens afterwards? For example:

```
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
  name: "devopsgirls-deployment"
spec:
  replicas: 2
  selector:
    matchLabels:
      app: "devopsgirls"
  template:
    metadata:
      labels:
        app: "devopsgirls"
    spec:
      containers:
        - image: "XXXXXXXXX.dkr.ecr.ap-southeast-2.amazonaws.com/devopsgirls-training:nora-lim-customapp"
          name: nginx
          ports:
            - containerPort: 3000
          livenessProbe:
            httpGet:
              path: /health
              port: 3000
            initialDelaySeconds: 3
            periodSeconds: 3
          readinessProbe:
            httpGet:
              path: /banana
              port: 3000
            initialDelaySeconds: 3
            timeoutSeconds: 8
            periodSeconds: 10
```


text:
# Alfred My Mind [![Workflows](https://img.shields.io/badge/-more%20workflows-0a0a0a.svg?style=flat&colorA=0a0a0a)](https://github.com/learn-anything/alfred-workflows) [![Thanks](http://bit.ly/saythankss)](https://github.com/sponsors/nikitavoloboev)

> [Alfred](https://www.alfredapp.com/) workflow to search through my notes and bookmarks

<img src="https://i.imgur.com/ZbpobeM.png" width="500" alt="img">

This workflow lets you search through entirety of [my personal wiki](https://wiki.nikitavoloboev.xyz). There's over 27,000 lines of markdown with many links inside. This [video](https://www.youtube.com/watch?v=m5aFsVVknPU) showcases the workflow in action.

## Install

Download workflow from [GitHub releases](../../releases/latest).

## Contributing

See [contribution guidelines](contributing.md).

## Thank you

You can support me on [GitHub](https://github.com/sponsors/nikitavoloboev) or look into [other projects](https://nikitavoloboev.xyz/projects) I shared.

[![MIT](http://bit.ly/mitbadge)](license) [![Twitter](http://bit.ly/nikitatweet)](https://twitter.com/nikitavoloboev)

repository: izifortune/alfred-my-mind

repo_name: izifortune/alfred-my-mind


text:
# FlowBinding SwipeRefreshLayout

This module provides bindings for the **AndroidX SwipeRefreshLayout** library.

## Transitive Dependency

`androidx.swiperefreshlayout:swiperefreshlayout`

## Download

```groovy
implementation "io.github.reactivecircus.flowbinding:flowbinding-swiperefreshlayout:${flowbinding_version}"
```

## Available Bindings

```kotlin
fun SwipeRefreshLayout.refreshes(): Flow<Unit>
```

repository: ReactiveCircus/FlowBinding

branch_name: refs/heads/main

gha_language: Kotlin

repo_name: ReactiveCircus/FlowBinding


text:
# rofi-emoji-picker

Simple emoji picker for rofi written in bash, that pulls the emoji data from [http://unicode.org/reports/tr51/index.html#emoji_data](http://unicode.org/reports/tr51/index.html#emoji_data)

## Prerequisite

- `bash` as the interpreter for the script.
- `curl` to download the emoji data.
- `grep` and `cut` to process the emoji data.
- `rofi` for display and selection.
- `xclip` to copy the emoji to the clipboard.

## Installation

1. Clone this repository
2. Execute `make install` (as root)
3. Run with `rofi-emoji-picker`

repository: BorisWilhelms/rofi-emoji-picker

gha_language: Shell

gha_license_id: MIT

repo_name: BorisWilhelms/rofi-emoji-picker


text:
# MicroPython: Networking

There's plenty of other microcontrollers around: the thing which makes the ESP microcontrollers
a bit special is their built-in support for WiFi networks.

Micropython exposes this via the 'network' library.

## Configuring WiFi

The main conference network is on 5GHz, so a special workshop network has been provisioned
for this tutorial.  Details TBA.

To set up wifi:

    import network
    w = network.WLAN()
    w.active(True)
    w.connect('AP','Password')
    w.ifconfig()

That last command returns a tuple of (IP address, netmask, gateway address, DNS address).
Note down your IP address ... we'll use it when we connect between devices.

Check that you can ping the IP address from your laptop.  You may need to reconnect your
laptop to the same SSID / Password as you used for the device.

## A simple TCP/IP connection

Once you've got a wifi connection, you can use the 'socket' library to make a connection
to another machine:

    import socket
    sock = socket.socket()
    sock.connect(('example.com', 80))
    sock.write('GET / HTTP/1.0\nHost: example.com\n\n')
    sock.readline()

Prints:

    b'HTTP/1.0 200 OK\r\n'

You can also listen for inbound TCP connections, for example this FTP server:

    import socket
    sock1 = socket.socket()
    sock1.bind(('<IP_ADDRESS>', 21))
    sock1.listen(1)
    while True:
        sock2, remote = sock1.accept()
        sock2.write(b"220 Service Ready\r\n")
        print(sock2.readline())
        sock2.write(b"421 Only kidding!\r\n")
        sock2.close()

## Libraries

Writing our own client and server every time would be tedious at best,
and protocols such as HTTP are not as simple as they may at first seem.
Let's not do that.  There are several options for libraries.

Check out [Libraries](libraries.md) for details of how to install these,
but for the moment I've built images for the ESP8266 and ESP32 which
have a selection of libraries included.

### HTTP Client: requests

There's a small subset of the requests library available as
'micropython-urequests' which implements part of HTTP.  There's a much
more useful and complete library 'micropython-http.client' which is usable on the
ESP32 but it pulls in too many dependencies to be useful on the ESP8266.

### HTTP Server: picoweb

Picoweb is a small web server on top of uasyncio.  It is at https://github.com/pfalcon/picoweb/

There's also a few efforts to put web server frameworks with purely asyncronous
operations: perhaps have a look at https://github.com/nickzoic/pycose but it's a work
in progress.

### MQTT Client: umqtt.simple

MQTT is a simple message queueing protocol which is a good match for the limited
resources available to IoT devices.

There's a public server available at iot.eclipse.org or you can run your own using
packages such as mosquitto.

    import machine
    from umqtt.simple import MQTTClient

    mc = MQTTClient(machine.unique_id(), "iot.eclipse.org")
    mc.connect()
    while True:
        mc.publish("mpytut", "hello from micropython!")

# Exercises

1. Connect up to the WiFi, and copy umqtt.simple library onto your device.

2. Send some messages, and check they're arriving at the mosquitto subscriber

3. Write a MQTT subscriber which receives messages from the broker and does
   something interesting.  You can either use mosquitto\_pub to send messages,
   or team up with someone else to communicate between your devices.

repository: tehmasta/mpy-tut

repo_name: tehmasta/mpy-tut


text:
# Tensorflow stand-alone

This part will consist of the stand-alone version of Tensorflow.
This part of the git will consist out of 2 bash scripts, that will be explained later in this file.

## Installation Tensorflow (installationTensorflow.sh)

Call this script with: ./installationTensorflow.sh

### Flags

Flags that you can use for changing the python version and the support you wanne have.

* p: Python version you want to select. The versions that are supported are python2.7 and python 3.7.
   + Default stand the Python version on 2.7; Example -p "3.5"

* s: Support version you want to select. The versions that are supported are CPU or GPU.
   + Default stand the support version on CPU; Example -s "GPU"*

*Written by Jorick Triempont ([jorickjt](https://github.com/jorickjt )) & Jirry Haerinck ([JirryH](https://github.com/jirryh )) commissioned by [Big Industries - Big Data Consulting](http://www.bigindustries.be/)*

repository: reloadbrain/FakeNewsDetector

repo_name: reloadbrain/FakeNewsDetector


text:
[![Build Status](https://travis-ci.org/CNNs4QSPR/cnns4qspr.svg?branch=master)](https://travis-ci.org/CNNs4QSPR/cnns4qspr) [![Coverage Status](https://coveralls.io/repos/github/CNNs4QSPR/cnns4qspr/badge.svg?branch=master)](https://coveralls.io/github/CNNs4QSPR/cnns4qspr?branch=master) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# cnns4qspr

A package for creating rich, equivariant, structural and chemical features from protein structure data. Model code for this project is based on the [tensor field networks](https://github.com/mariogeiger/se3cnn) developed by [Riley et al.](https://arxiv.org/abs/1802.08219) and [Cohen et al.](https://arxiv.org/abs/1807.02547)

## Installation

1. `pip install git+https://github.com/AMLab-Amsterdam/lie_learn`
2. `pip install git+https://github.com/CNNs4QSPR/se3cnn.git`
3. `pip install git+https://github.com/CNNs4QSPR/cnns4qspr.git`

(If .ckpt files do not download immediately you can also find them [here](https://drive.google.com/drive/folders/1Y3Dtk72I_A6bSoPXZ0wamCXMzJeQVs6X?usp=sharing))

## Documentation

Detailed documentation for all modules can be found in `doc/README.pdf`

A component specification diagram may also be found in `doc/component_specification.jpg`

## Overview

Scientists are continually finding applications for machine learning in all branches of science, and the field of structural biology is no exception. The purpose of the cnns4qspr package is to make extraction of high quality features from 3D protein structures as easy as possible for a user. Once a user has their desired features, they may use them for whatever machine learning task they desire.

#### Who can make use of this package:

This package is great for anyone trying to investigate quantitative structure-property relationships (QSPR) in proteins. Some examples include researchers studying de novo design, protein crystal-solvent interactions, solid interactions, and protein-ligand interactions. Generally speaking, anyone wanting to map protein-crystal structures to a property may find cnns4qspr useful.

#### Feature vector:

1.	The user must input the path of the pdb file to the functions featurize or gen_feature_set from featurizer.py.
2.	The function would return a set of feature vectors based on the channels specified.

#### Uses:

Compression of protein structural data into a feature vector. This can be used to convert pdb protein data in a structural information-dense vector space. This structural information vector can be used for:
1.	Training models for structural classification prediction. (See examples, below)
2.	Reducing the computational expense for structure-to-property predictions.
3.	Decoders for identifying the features of the amino acid residues primarily responsible for protein secondary structure.
4.	Training models for structure prediction in different solutions and environments.
5.	Recommender systems for protein sequence prediction.

## Package description and contents

cnns4qspr "voxelizes" protein structure data, so that data are in a form which is acceptable as input to a 3D convolutional neural network (CNN). Voxelization simply means the atomic coordinates are transformed from descrete points in 3D space, to slightly smeared atomic densities that fill "voxels" (3D pixels) in a new 3D picture of the protein.

### 1. Voxelization of protein data: loader.py
Voxelization of all the backbone atoms in green flourescent protein (GFP). Key aspects of the molecular sctructure of GFP are maintained throughout the transformation. Thus, the network will be able to "see" key structural information unique to GFP.

#### Custom atomic channel selection
A model is only as good as the data you feed it. Loader has the ability to voxelize relevant atomic "channels" to present relevant chemical information to a model.

Available channels for a protein include:
* Atoms of a particular type (C, CA, CB, O, N, ...)
* Atoms from a canonical residue (LYS, ALA, ...)
* Backbone atoms (C, CA, O, N) or sidechain atoms
* Atoms from residues with a certain property (charged, polar, nonpolar, acidic, basic, amphipathic)

### 2. Visualization of feature data: visualizer.py
Data visualization is key for holding inuition and control over what a model is doing. The visualizer.py module enables easy visualization of what features look like before entering the CNN, and after any of the convolutional filters within the CNN.

### 3. Feature extraction: featurizer.py
A model is only as good as the data you feed it. Below is a demonstration of the differences between cnns4qspr's voxelization of 'backbone', 'polar', and 'nonpolar' atomic channel selections a user can make when voxelizing a protein. The differences in chemical information are clear.

### 4. Training on extracted features: trainer.py
Variational autoencoders (VAEs) are a versatile tool for data compression, organization, interpolation, and generation. The trainer module allows users to create custom VAEs with regression or classification capabilities built into the latent space.

## Package accomplishments

### 1. Reproduced [literature](https://arxiv.org/abs/1807.02547) accuracy for protein structure classification using VAE compressed features

### 2. Continuous latent space reoganization based on protein class

gha_language: Python


text:
# Angular Image Fullscreen Viewer

An Angular responsive image fullscreen viewer.
Also support youtube and mp4 video urls.

(Compatible with Angular Version: 11)

## Features!

  - Responsive
  - captures swipes from phones and tablets
  - Compatible with Angular Universal
  - captures keyboard next/previous arrow key event for lightbox image move
  - Support Images (jpeg, jpg, gif, png and Base64-String), Youtube url and MP4 video (url and Base64-String)

### Working Demo: https://angular-bkosu5.stackblitz.io/
### Code example: https://stackblitz.com/edit/angular-bkosu5

# Installation
`npm install ng-image-fullscreen-view`

# Setup :

**Import module in your `app.module.ts`:**
```typescript
import { NgImageFullscreenViewModule } from 'ng-image-fullscreen-view';
...

@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        NgImageFullscreenViewModule,
        ...
    ],
    providers: [],
    bootstrap: [AppComponent]
})

export class AppModule {
}

```

**Add component in your template file :**
```html
<img src="path-of-image.jpg" (click)="showLightbox(0)" />

<ng-image-fullscreen-view
    [images]="imageObject"
    [imageIndex]="selectedImageIndex"
    [show]="showFlag"
    (close)="closeEventHandler()"></ng-image-fullscreen-view>
```

**Add closeEventHanler and showFlag conditions in `your.component.ts` :**
```typescript
export class AppComponent {
    showFlag: boolean = false;
    selectedImageIndex: number = -1;

    constructor () {}

    ...

    showLightbox(index) {
        this.selectedImageIndex = index;
        this.showFlag = true;
    }

    closeEventHandler() {
        this.showFlag = false;
        this.currentIndex = -1;
    }

    ...
}

```

**ImageObject format**
```js
imageObject: Array<object> = [{
        image: 'assets/img/slider/1.jpg',
    }, {
        image: 'assets/img/slider/1.jpg',
        alt: 'alt of image', // Optional
        title: 'title of image' // Optional: Show image with description text
    }, {
        image: '.../iOe/xHHf4nf8AE75h3j1x64ZmZ//Z==', // Support base64 image
        title: 'Image title', //Optional: You can use this key if want to show image with title
        alt: 'Image alt' //Optional: You can use this key if want to show image with alt
    }
];
```

**Image, Youtube and MP4 url's object format**
 ```js
imageObject: Array<object> = [{
        video: 'https://youtu.be/6pxRHBw-k8M' // Youtube url
    },
	{
		video: 'assets/video/movie.mp4', // MP4 Video url
	},
	{
		video: 'assets/video/movie2.mp4',
        title: 'Image title' // Video with title
    },
	{
		image: 'assets/img/slider/1.jpg',
        alt: 'Image alt'
	}
    ...
];
```

## API Reference (optional) :

| Name | Type | Data Type | Description | Default |
|------|------|-----------|-------------|---------|
| images | @Input  | Array   | Images array. |  |
| imageIndex | @Input  | number   | Selected image index. | 0 |
| show | @Input  | boolean   | Image fullscreen popup visiable flag. | false |
| infinite | @Input  | boolean   | Infinite sliding images if value is **true**. | false |
| videoAutoPlay | @Input | boolean | Auto play popup video | false |
| showVideoControls | @Input | boolean | Hide Youtube and MP4 video controls if value is `false` | true |
| direction | @Input | string | Set text direction. You can pass **rtl** / **ltr** / **auto** | ltr |
| paginationShow | @Input  | boolean | Display pagination at bottom. | false |
| animationSpeed | @Input  | number | By this user can set slider animation speed. Minimum value is **0.1 second** and Maximum value is **5 second**. | 1 |
| arrowKeyMove | @Input | boolean | Disable slider and popup image left/right move on arrow key press event, if value is `false`  | true |
| close | @Output | n/a | Executes when click on close. | n/a |
| prevImage | @Output | n/a | Executes when click on previous arrow. | n/a |
| nextImage | @Output | n/a | Executes when click on next arrow. | n/a |

## License
As Angular itself, this module is released under the permissive [MIT license](http://revolunet.mit-license.org).

Your contributions and suggestions are always welcome :)

repository: sanjayV/ng-image-fullscreen-viewer

gha_language: SCSS

repo_name: sanjayV/ng-image-fullscreen-viewer


text:
# Rodent

Rodent is a BVH traversal library and renderer implemented using the AnyDSL compiler framework (https://anydsl.github.io/).

# Building

The dependencies are: CMake, AnyDSL, libpng, SDL2, and optionally the Embree sources for the benchmarking tools.
Once the dependencies are installed, use the following commands to build the project:

    mkdir build
    cd build
    # Set the OBJ file to use with the SCENE_FILE variable
    # By default, SCENE_FILE=../testing/cornell_box.obj
    cmake .. -DSCENE_FILE=myfile.obj
    # Optional: Create benchmarking tools for Embree and BVH extractor tools
    # cmake .. -DEMBREE_ROOT_DIR=<path to Embree sources>
    make

# Testing

This section assumes that the current directory is the build directory. To run rodent, just type:

    bin/rodent

You may want to change the initial camera parameters using the command line options `--eye`, `--dir` and `--up`. Run `bin/rodent --help` to get a full list of options.

When ImageMagick is found by Cmake, use the following commands to test the traversal code with the provided test scene:

    make test

This will only test the primary ray distribution with the packet, single, and hybrid variants.
To test all possible combinations, or if you do not have ImageMagick installed, use the benchmarking tool directly:

    bin/bench_traversal -bvh ../testing/sponza.bvh -ray ../testing/sponza-primary.rays --bench 50 --warmup 10 --tmax 5000 -o output-hybrid-primary.fbuf
    bin/bench_traversal -bvh ../testing/sponza.bvh -ray ../testing/sponza-primary.rays --bench 50 --warmup 10 --tmax 5000 -s -o output-single-primary.fbuf
    bin/bench_traversal -bvh ../testing/sponza.bvh -ray ../testing/sponza-random.rays --bench 50 --warmup 10 --tmax 1 -o output-hybrid-random.fbuf
    bin/bench_traversal -bvh ../testing/sponza.bvh -ray ../testing/sponza-random.rays --bench 50 --warmup 10 --tmax 1 -s -o output-single-random.fbuf
    bin/fbuf2png -n output-hybrid-primary.fbuf output-hybrid-primary.png
    bin/fbuf2png -n output-single-primary.fbuf output-single-primary.png
    bin/fbuf2png -n output-hybrid-random.fbuf output-hybrid-random.png
    bin/fbuf2png -n output-single-random.fbuf output-single-random.png

This will run the traversal on the test set, and generate images as a result. For the primary ray distribution, the _hybrid_ and _single_ variants should generate the same images. The reference images for primary and random rays are in the `testing` directory.

Running `bin/bench_traversal --help` will provide a list of additional options.

repository: gkUwen/rodent

repo_name: gkUwen/rodent


text:
# Ansible project for setting up machines running SM platform

## Installation Types Supported
* ~[Vagrant virtualbox Installation](vbox/README.md)~ (Removed in favor of Docker installations)
* [AWS Installation](aws/README.md)
* [Docker installation](../docker/README.md)

## Acknowledgements and license

[See the top-level README](../README.md#acknowledgements)

repository: keshava/metaspace

repo_name: keshava/metaspace


text:
# Gymkhana Portal ![Status active](https://img.shields.io/badge/Status-active%20development-2eb3c1.svg) ![Django 2.0.4](https://img.shields.io/badge/Django-2.0.4-green.svg) ![Python 3.6](https://img.shields.io/badge/Python-3.6-blue.svg)
[![Build Status](https://travis-ci.org/devlup-labs/gymkhana_portal.svg?branch=master)](https://travis-ci.org/devlup-labs/gymkhana_portal)
## Web portal and forum for Students' Gymkhana of IIT Jodhpur
### Purpose
Simplify the workflow of updating the gymkhana website without much knowledge on how to code. And also provide certain utility features.

This project includes:
- A main `web portal` which can be updated dynamically through an admin interface.
- A `forum/discussion` app for general purpose discussions.
- An app called `Konnekt` to find/search people with a certain required skill set.
### Installation:
Requirements:
- Python 3 runtime
- Django 2.0.4
- Other dependencies in `requirements.txt`

Procedure:
- Install [python](https://www.python.org/downloads/) in your environment(pre-installed on Ubuntu).
- Navigate to the cloned repository.
    ```
    cd <project_directory_name>     # gymkhana_portal
    ```
- Create a new virtual environment and activate it.
    ```
    sudo apt-get install -y python3-venv
    python3 -m venv gymkhana_venv
    source gymkhana_venv/bin/activate
    ```
- Use pip to install other dependencies from `requirements.txt`
    ```
    pip install -r requirements.txt
    ```
- Copy `.env.example` to `.env`
    ```
    cp .env.example .env
    ```
- Change to `src` directory
    ```
    cd src
    ```
- Make database migrations
    ```
    python manage.py makemigrations
    python manage.py migrate
    ```
- Create a superuser
    ```
    python manage.py createsuperuser
    ```
- Download the `static.zip` from `#gymkhana` on [Slack](https://iitjdg.slack.com/) and extract the contents under `src/static`
    _Note: This project uses proprietary UI assets, which cannot be shared on GitHub. However you may use free version of [mdbootstrap](https://mdbootstrap.com) as an alternative. Some things may not look as intended._
- Run development server on localhost
    ```
    python manage.py runserver
    ```
#### DummyData for Testing [OPTIONAL]:
This will populate the database with random values for testing.
```
python manage.py createfixture
```


text:
# MQTT Broker

MQTT Broker from [mosquitto](https://mosquitto.org/).

## Build Docker Image for Raspberry

docker build -t origox/mqttbroker:1 .

## Run Image(use docker volumes for persistent data)

 docker run -it -p 8883:8883 --rm --name my-broker -v broker_data:/mqtt/data -v broker_config:/mqtt/config -v broker_log:/mqtt/log origox/mqttbroker:1

docker volume ls - verify that you can find your volumes
docker inspect broker_log - check volume meta data i.e. find mount point

## Setup TSL

### Generate Certificates

See example here: http://www.steves-internet-guide.com/mosquitto-tls/

Certificate files(ca.crt, server.crt, server.key) need to be place in config/cert

Note - ca.crt shall also be used by the clients

## Systemd

### Setup the broker to be started at boot

sudo cp mqtt-broker.service /lib/systemd/system

sudo systemctl enable mqtt-broker.service

sudo systemctl start mqtt-broker.service

repository: origox/docker-files

repo_name: origox/docker-files


text:
# RoamTooth

Centrally manage your bluetooth devices. In particular, the Sony
WH1000XM3 bluetooth headsets, which can be connected to only one
device at a time.

The Linux-client—and possible the MacOS and Windows clients in the
future—is implemented in Rust. The server is in Python (using Flask,
mypy). The possible future Android client might be written in Kotlin.

## How it works

There is a server in the Internet—or local network—to which clients
attach via HTTP/HTTPS, using the SSE protocol for listening
events. Such events curently include "disconnect device", which will
disconnect the requested device from all connected clients. After this
it's available to be connected from your laptop or other supported
device.

## Does it work?

It does work, if you happen to use Linux and the Bluetooth address is
the same as mine. Also no authentiation whatsoever. And end point
address is hardcoded. And you need to send the requsts in with
ie. `curl`. So.

## License

MIT

repository: eras/roamtooth

gha_language: Rust

repo_name: eras/roamtooth


text:
# Upgrade from 2.x to 3.0

## Deprecations

All the deprecated code introduced on 2.x is removed on 3.0.

Please read 2.x upgrade guides for more information.

See also the [diff code](https://github.com/Soullivaneuh/IsoCodesValidator/compare/2.x...v3.0.0).

## Translations files move

The translations file was moved from `Resources/translations` to `translations`.

Developers using the Symfony or Silex integration should not be impacted.

## API closing

Some classes are now `final` you should not override them:

* `IsoCodesValidatorSilex1ServiceProvider`
* `SLLHIsoCodesValidatorBundle`
* `TranslationPass`
* `IsoCodesGenericValidator`
* Some test classes

repository: DamienHarper/IsoCodesValidator

repo_name: DamienHarper/IsoCodesValidator


text:
---
layout: default
---

# 1994-08-09 - Re: Digital Telephony Act

## Header Data

From: "Ian Farquhar"<EMAIL_ADDRESS>To<EMAIL_ADDRESS>(David Koontz)

Message Hash: 26d8b6814900c70772e84ca96336d5dd903b02494d22a0c750ee27f9a3aaed11

Message ID<EMAIL_ADDRESS>Reply To<EMAIL_ADDRESS>UTC Datetime: 1994-08-09 23:25:48 UTC

Raw Date: Tue, 9 Aug 94 16:25:48 PDT

## Raw message

```
{% raw  %}From: "Ian Farquhar"<EMAIL_ADDRESS>Date: Tue, 9 Aug 94 16:25:48 PDT
To<EMAIL_ADDRESS>(David Koontz)
Subject: Re: Digital Telephony Act
In-Reply-To<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

On Aug 9, 12:37pm, Timothy C. May wrote:
> And don't forget "Teledesic," the 800-satellite (or something huge)
> project of Bill Gates and McCaw Cellular. Graham Toal discussed this
> recently in a post on software key escrow and Microsoft's possible
> involvement in SKE.

One of the things which has to be worrying the spooks right now is that
communications in general is swiftly becoming an international business, and
much less susceptible to parochial arm-twisting.  The days of the Black
Chamber when the cable companies bosses could be talked into releasing
telegrams
for the good of their country are receeding into the distance, and this
really must worry the TLA's we all have come to know and love.  None of this
is news for any of us.

I have often felt that bills like Digital Telephony have a much deeper
motive, in that although they seem a lot less than justifiable now, it may be
that the spooks are trying to beat the technology and have a surveillance
infrastructure in place simply so that it's existance can either frustrate
or influence the structure of international communications infrastructure.
It would he hard for any country to demand the inclusion of monitoring
facilities in a new system, but it is MUCH easier for them to point out that
the new system really should be able to provide the same "law enforcement"
facilities as the existing infrastructure does.

Just an idle thought.

								Ian.

{% endraw %}
```

## Thread

+ Return to [August 1994](/archive/1994/08)

+ Return to<EMAIL_ADDRESS>(Dave Emery)](/authors/die_at_pig_jjm_com_dave_emery_)"
+ Return to "["Ian Farquhar" <ianf@simple.sydney.sgi.com>](/authors/ian_farquhar_ianf_at_simple_sydney_sgi_com_)"
+ Return to<EMAIL_ADDRESS>(David Koontz )](/authors/koontzd_at_lrcs_loral_com_david_koontz_)"
+ Return to "[Lyman Hazelton <lrh@crl.com>](/authors/lyman_hazelton_lrh_at_crl_com_)"
+ Return to<EMAIL_ADDRESS>(Jim McCoy)](/authors/mccoy_at_io_com_jim_mccoy_)"
+ Return to<EMAIL_ADDRESS>(Timothy C. May)](/authors/tcmay_at_netcom_com_timothy_c_may_)"

+ 1994-08-09 (Tue, 9 Aug 94 12:10:56 PDT) - [Digital Telephony Act](/archive/1994/08/008cb496a467455baf76b5145a020a15714124c276b5173cc3dcb848fc10a707) -<EMAIL_ADDRESS>(David Koontz )_
  + 1994-08-09 (Tue, 9 Aug 94 12:38:14 PDT) - [Re: Digital Telephony Act](/archive/1994/08/822c14391d43175ab4a584c33ad4e2543b515d8abf729f677f40fa4c3f361d70) -<EMAIL_ADDRESS>(Timothy C. May)_
    + 1994-08-09 (Tue, 9 Aug 94 16:25:48 PDT) - Re: Digital Telephony Act - _"Ian Farquhar"<EMAIL_ADDRESS>  + 1994-08-09 (Tue, 9 Aug 94 13:02:35 PDT) - [Re: Digital Telephony Act](/archive/1994/08/18df1e30d129038039a06b92bd4aec83dc6ff9d4528c25f6bc4e73f0661729c3) -<EMAIL_ADDRESS>(Jim McCoy)_
  + 1994-08-10 (Tue, 9 Aug 94 17:21:36 PDT) - [Direct Satellite phone service](/archive/1994/08/cec00cf95fbc86f1884df5fddf3dc69d2419ba0df9cfef962116aa1d52223f64) - _Lyman Hazelton<EMAIL_ADDRESS>  + 1994-08-10 (Tue, 9 Aug 94 23:24:53 PDT) - [Re: Satellite Cellphones](/archive/1994/08/627f1c34bad93df006b5e0c3079c40e973b36187a7a8660e2a21276007d57af3) -<EMAIL_ADDRESS>(Dave Emery)_
    + 1994-08-11 (Thu, 11 Aug 94 13:33:52 PDT) - [Re: Satellite Cellphones](/archive/1994/08/b280086d93a5f34a14721a2ee62e8aa645f6f7627bf0e21524061c5c49581055) - _Lyman Hazelton<EMAIL_ADDRESS>      + 1994-08-12 (Thu, 11 Aug 94 19:38:37 PDT) - [Re: Satellite Cellphones](/archive/1994/08/ca7687dabceec99c8fe9d5ee53d16732f904c6def501146b8bb6c85bc92a87c9) -<EMAIL_ADDRESS>(Dave Emery)_


text:
# square-parameters [![Build Status](https://travis-ci.org/rreusser/square-parameters.svg)](https://travis-ci.org/rreusser/square-parameters) [![npm version](https://badge.fury.io/js/square-parameters.svg)](http://badge.fury.io/js/square-parameters) [![Dependency Status](https://david-dm.org/rreusser/square-parameters.svg)](https://david-dm.org/rreusser/square-parameters)

Embed really simple parameters at the beginning of a string

## Introduction

For my [gulp-markdown-equations](https://github.com/rreusser/gulp-markdown-equations) module, I need a very quick and easy way to embed config at the beginning of an inline string. It needs to be kinda like a query string, not as verbose or flexible as JSON, sorta like frontmatter... but not quite any of those. Specifically it needs to satisfy these criteria:

1. Requires no encoding
2. Requires minimal escaping
3. Is easy to separate from content
4. Is very concise
5. Takes like three seconds to comprehend everything
5. Is not easily confused with any well-known format so people don't make incorrect assumptions about which syntax it does/doesn't support and so I'm not on the hook for supporting a specific format.

And so we get square-parameters. Perhaps not worthy of its own module, but I felt weird to hard-code it into another. Let me know if you have a better idea.

## Examples

```javascript
var sp = require('square-parameters')

// Pretty straightforward:
sp("[foo=bar][baz=bop]sample string")
  // => { content: "sample string", params: {foo: "bar", baz: "bop"} }

// Whitespace is fine
sp("[a parameter=some value]sample string")
  // => { content: "sample string", params: {"a parameter": "some value"} }

// Leading whitespace not allowed:
sp(" [foo=bar]sample string")
  // => { content: " [foo=bar]sample string", params: {} }
```

## API

### `require('square-parameters')( string )`
Extracts config from a string and returns two parts: `content` and `params`. `content` is a string with the parameters chopped off, and `params` is an object containing key/value pairs.

**Returns**: Content and parameters, i.e. `{content: "...", params: {...}}`

## Credits

(c) 2015 Ricky Reusser. MIT License

repository: rreusser/square-parameters

repo_name: rreusser/square-parameters


text:
# Recipe Organizer App

Recipe Organizer is a web app that allows a user to create and store their personal recipes and to categorize them as desired. Users can browse their stored recipes either all at once by title in alphabetical order or by category. Users can update and delete stored recipes as needed as well as edit their categories.

## Installation and Usage

To use this app, clone this repository, run `rake db:migrate`, run `rake db:seed` and then run `shotgun`.

Everything should be set up.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/MHirschberger/sinatra-recipe-organizer-app. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).


text:
# Data Quality

In the following, the different methods for maintaining and improving data quality are described.

## User validity check

With the *User validity check* all users assigned to the different COLID entries are checked daily for validity. A user is considered invalid if it is marked as inactive in the Active Directory. The same applies to users that are not found in the Active Directory. A distinction is made between the following types of users:

- Author
- Last Changed User
- Change Requester
- Data Steward
- Contact Person (of a Distribution Endpoint)

To fulfill this task, the Scheduler Service works together with the Reporting Service and the AppData Service. The exact sequence is shown in the following sequence diagram

![User validity check in hangfire](assets/user-validity-check_sequence.svg)

repository: ETAMN/COLID-Documentation

repo_name: ETAMN/COLID-Documentation


text:
# How to improve the performance of the Machine learning model
一个基本的思路还是观察三类表现和训练曲线，判断模型问题，比如是否过拟合，是否弱拟合，然后针对性的进行优化。

但是除此之外，还有一些基本的提升方法，比如数据方面的，和模型集合等可以尝试。

## Improve with Data
总结：创建数据，清洗数据 和 重新抽样（如果必要）。

- First of all, **Increase the data (label) quality** and **get more data** are always the first options but they are always hard to achieve.
- Invent more data with data augmentation.
- (might not good) Invent more data by filling up missing features with statistic assumption.
- Clean the data with outlier removal.
- Clean the raw data in technical way. (for example, when your raw data is signal).
- (might not good) Sample the marjority to relief label imbalance.

## Improve with Feature engineering
总结：增加或优化特征, 对多个特征进行选择或非线性变换。

Single feature:

- Rescale the data with normalization.
- Transform the data, for example, use square root inverse to decrease the skewness of the data.
- Create more feature with domain knowledge. (this requires data collection, might not be possible in real case).
- Create more features based on existed feature. for example, split the string feature, use weekday out of date feature, extract features from signal.

Multiple features:

- Project the data. for example, PCA and some other dimension reduction method.
- Feature selection.

## Improve with model
总结：更好的单个模型，或者建设模型群。

- Compare different model.
- Hyperparameter tunning.
- Model ensembling: bagging, boosting, stacking.

## Improve with Training schema
总结：让训练流程更简单，或更科（玄）学。

- Use bootstraping to balance the data.
- Narrow the target or reframe the problem.
- Combine pre-trained model with your model.
- Combine unsurpervised and supervised model.


text:
**No Sleep双手简谱** 和五线谱完全对应。

_No Sleep_ 是Martin Garrix与Bonn一同合作的单曲。此曲为progressive
house风格，将今夜无法入睡的激动的心情和感慨全部写进了这首电音里，而bonn的声音像是专门为这首电音量身定做的。Martin
Garrix的电音可以让听众立马产生抖腿摇头的冲动。电音的优势在于能模仿各种乐器，把键盘乐、打碟机和吉他运用得炉火纯青的Martin，就像操纵着一支超级豪华乐队。

同时，网站还为大家提供了《[So Far Away](Music-8766-So-Far-Away-Martin-Garrix-and-David-
Guetta.html "So Far Away")》的曲谱下载

歌词下方是 _No Sleep钢琴谱_ ，大家可以免费下载学习。

### No Sleep歌词：

Summer nights all align
As we drown in the moonlight
We collide in plain sight
Yeah I know we'll be alright
And we come alive
We run the night with strangers
'Cause in the end we're all familiar faces
We're young and wild enjoy the ride we made it
We made it
I don't need no sleep
'Cause I'm already dreaming already dreaming
Say you'll never leave because I love the feeling
I love the feeling
Found myself awake at night
See you through my lucid eyes
Oh I don't need no sleep
'Cause I'm already dreaming already dreaming
I don't need no sleep
'Cause I'm already dreaming
Already dreaming
Wide awake no time to waste
Make a mark on my timeline
We're safe and sound we come around
We are dancing the sun down
And we come alive
We run the night with strangers
'Cause in the end and we're all familiar faces
We're young and wild enjoy the ride we made it
We made it
I don't need no sleep
'Cause I'm already dreaming already dreaming
Say you'll never leave because I love the feeling
I love the feeling
Found myself awake at night
See you through my lucid eyes
Oh I don't need no sleep
'Cause I'm already dreaming already dreaming
Oh I don't need no sleep
'Cause I'm already dreaming
Already dreaming
Oh I don't need no sleep
'Cause I'm already dreaming
Already dreaming

url: https://raw.githubusercontent.com/Emptyspirit/everyonepiano-music-database/fb8ba03dd9474f049b18d9822c40a395229b7aca/流行/No Sleep-Martin Garrix ft Bonn/README.md


text:
# Helicopter carrying Bolivia president makes emergency landing

Published at: **2019-11-04T22:47:00+00:00**

Author: ****

Original: [News24](https://www.news24.com/World/News/helicopter-carrying-bolivia-president-makes-emergency-landing-20191104)

A helicopter carrying Bolivia's president Evo Morales made an emergency landing on Monday due to a mechanical fault, the military said, raising suspicions among his supporters after opponents vowed to oust him.
No one was hurt, the air force said, but the incident fuelled tensions in the country where protesters have been rallying against the leftist president for two weeks.
The EC-145 helicopter "had a mechanical fault in the tail rotor during take-off, which prompted an emergency landing," the Bolivian Air Force said in a statement.
The fault struck as the helicopter was taking off from a village in the Andes where Morales had been inaugurating a new road, it said. Videos of the incident circulated on social media.
The air force said it was investigating the causes of the fault.
On Saturday, a conservative opposition leader in the eastern Santa Cruz region, Luis Fernando Camacho, threatened to "take decisive action" on Monday night to drive Morales from power.
Former interior minister Hugo Moldiz in a Twitter message branded the helicopter incident "a criminal attack."
Morales has accused his opponents of plotting a coup against him.
Deadly unrest has gripped the South American country since Morales was named winner of an election on October 20 for a fourth term.
His opponents have branded the result a fraud, citing alleged irregularities in the vote-count.
Morales's rival in the polls, Carlos Mesa, has called for a new vote to be held.
Demonstrators returned to block roads in the capital La Paz on Monday in fresh protests.
In his address to supporters on Saturday, Camacho called on the military to "be on the side of the people."
Morales responded by accusing his opponents of seeking bloodshed.
Interior Minister Carlos Romero said Monday the government had "absolute trust" in the armed forces.
Romero alleged on Sunday that "a violent confrontation is being prepared" for Monday night near the presidential palace in La Paz.

license: Unlicense

repository: dsadlollioygjmzvcxv/tdc-exported

repo_name: dsadlollioygjmzvcxv/tdc-exported


text:
# LSST Solar System Processing test data.

Simulated LSST obervations and orbital elements of roughly 500 main belt asteroids. The LSST survey used was baseline2018b.
https://github.com/lsst-pst/survey_strategy/tree/master/baseline2018b-doc

Survey simulator:
https://github.com/eggls6/openobs

Files in this folder:
lsst_sso_534.com ... contains orbital elements of target asteroids in openorb format. Header info:
                      objId ... object ID,
                      pdes  ... primary designation of orbital element data (COM : Cometary),
                      q     ... perhelion distance [au],
                      e     ... orbital eccentricity,
                      i     ... inclination [deg],
                      om    ... longitude of the ascending node [deg],
                      w     ... argument of pericenter [deg],
                      tp_cal... time of pericenter passage in calender format,
                      H     ... absolute magnitude (mag),
                      epoch_mjd epoch of orbital elements [Modified Julian Date]

lsst_sso_534.csv ... contains the same orbital elements of target asteroids in comma separated value format
lsst_sso_534_obs.tar.gz ... simulated LSST observations of asteroids given in the .com file.


text:
# Guide

## Installation

Install LessQL via Composer, the package name is `morris/lessql`:

```json
{
    "require": {
        "morris/lessql": "~0.3"
    }
}
```

You can also download an archive from the GitHub repository.

LessQL requires PHP >= 5.3.0 and PDO.

## Database

LessQL works on existing MySQL, PostgreSQL or SQLite3 databases. There's no schema generation or migration in LessQL, use a dedicated tool like [Phinx](https://phinx.org/) for that.

The following tables are used throughout this guide:

```
user:           id, name
post:           id, title, body, date_published, is_published, user_id
categorization: category_id, post_id
category:       id, title
```

## Setup

Create a `PDO` instance and a `LessQL\Database` using it. We will also need a few hints about our database so we define them at setup.

```php
$pdo = new \PDO('sqlite:blog.sqlite3');
$db = new \LessQL\Database($pdo);

$db->setAlias('author', 'user');
$db->setPrimary('categorization', array('category_id', 'post_id'));
```

We define `author` to be a table alias for `user` and a compound primary key for the `categorization` table. See the [Conventions](conventions.md) section for more information about schema hints.

## Finding and Traversal

The most interesting feature of LessQL is easy and performant traversal of associated tables. Here, we're iterating over four tables in an intuitive way, and the data is retrieved efficiently under the hood.

```php
foreach ($db->post()
    ->orderBy('date_published', 'DESC')
    ->where('is_published', 1)
    ->paged(10, 1) as $post) {
    // Get author of post
    // Uses the pre-defined alias, gets from user where id is post.author_id
    $author = $post->author()->fetch();

    // Get category titles of post
    $categories = array();

    foreach ($post->categorizationList()->category() as $category) {
        $categories[] = $category['title'];
    }

    // render post
    $app->renderPost($post, $author, $categories);
}
```

LessQL creates only four queries to execute this example:

```sql
SELECT * FROM `post` WHERE `is_published` = 1 ORDER BY `published` DESC LIMIT 10 OFFSET 0
SELECT * FROM `user` WHERE `id` IN (...)
SELECT * FROM `categorization` WHERE `post_id` IN (...)
SELECT * FROM `category` WHERE `id` IN (...)
```

When traversing associations, LessQL always eagerly loads all references in one query. This way, the number of queries is always constant, no matter how "deep" you are traversing your database.

Let's step through the example in some detail. The first part iterates over a subset of posts:

```php
foreach ($db->post()
    ->orderBy('date_published', 'DESC')
    ->where('is_published', 1)
    ->paged(10, 1) as $post) { /* ... */ }
```

The `orderBy` and `where` calls are basic SQL, `paged(10, 1)` limits to page 1 where pages have a size of 10 posts.

Note that `Result` objects are immutable. All filter methods like `where` or `orderBy` return a new `Result` instance with the new `SELECT` information.

Inside the loop, we have access to `$post`. It is a `Row` instance which can be worked with like an associative array or object. It can be modified, saved, deleted, and you can retrieve associated rows.

## Many-To-One

```php
// Get author of post
$author = $post->author()->fetch();
```

A post has one author, a Many-To-One-Association. LessQL will look for `author_id` in the post table and find the corresponding author, if any.

Note the explicit `fetch()` to get the row. This is required because you might want to get the author using other methods (`via`).

## One-To-Many (and Many-To-Many, too)

```php
// Get category titles of post
$categories = array();

foreach ($post->categorizationList()->category() as $category) {
    $categories[] = $category['title'];
}
```

A post has many categorizations, a One-To-Many-Association. The `List` suffix in `$post->categorizationList()` tells LessQL to look for `post_id` in the `categorization` table and find all rows that point to our post.

In turn, the categorization table points to the category table. This way we model a Many-To-Many-Association between posts and categories.

Note how we directly call `->category()` without intermediate rows.

## Saving

LessQL is capable of saving deeply nested structures with a single method call.

```php
$row = $db->createRow('post', [
    'title' => 'Fantasy Movie Review',
    'author' => [
        'name' => 'Fantasy Guy'
    ],
    'categorizationList' => [
        [
            'category' => ['title' => 'Movies']
        ],
        [
            'category' => $existingFantasyCategory
        ]
    ]
]);

// wrapping this in a transaction is a good practice and more performant
$db->begin();
$row->save();
$db->commit();
```

LessQL generates all queries needed to save the structure, including references:

```sql
INSERT INTO `post` (`title`, `author_id`) VALUES ('Fantasy Movie Review', NULL)
INSERT INTO `user` (`name`) VALUES ('Fantasy Guy')
UPDATE `post` SET `user_id` = ... WHERE `id` = ...
INSERT INTO `category` (`title`) VALUES ('Movies')
INSERT INTO `categorization` (`post_id`, `category_id`) VALUES (...)
INSERT INTO `categorization` (`post_id`, `category_id`) VALUES (...)
```

For this operation to work, two things are crucial: First, `author_id` must be nullable. Second, LessQL must know about the compound primary key of the `categorization` table.

Always define required columns and compound primary keys at setup. See [Conventions](conventions.md) for more details.

repository: kabircse/lessql

repo_name: kabircse/lessql


text:
# stylelint-config-get-off-my-lawn

> A highly opinionated, [sharable config](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#extends) of [stylelint](http://stylelint.io) rules to produce beautiful, readable CSS and Sass.

![stylelint-config-get-off-my-lawn](.github/logo.jpg)

As developers, we spend more time reading code than writing it. These rules aim to make reading CSS and Sass a priority.

That means some rules will feel oppressive or "over the top" for many developers, which is fine. If you don't like it, you can get off my lawn! ... Or extend the rules and override them with the ones that bother you. Either way.

This config also comes with the following plugins, and corresponding rules, baked in.

-   [stylelint](https://www.npmjs.com/package/stylelint)
-   [stylelint-order](https://www.npmjs.com/package/stylelint-order)
-   [stylelint-scss](https://www.npmjs.com/package/stylelint-scss)

Each and every single rule has been meticulously poured over and purposefully hand picked or excluded.

## Install

```
$ npm i --save-dev stylelint-config-get-off-my-lawn
```

## Usage

Create an stylelint config in your `package.json` or `.stylelintrc.js` file.

### package.json

```json
{
    "name": "my-awesome-project",
    "stylelint": {
        "extends": "stylelint-config-get-off-my-lawn"
    }
}
```

### .stylelintrc.js

```js
module.exports = {
    extends: 'stylelint-config-get-off-my-lawn'
};
```

## Related

-   [eslint-config-get-off-my-lawn](https://www.npmjs.com/package/eslint-config-get-off-my-lawn) - A highly opinionated, [sharable config](http://eslint.org/docs/developer-guide/shareable-configs.html) of [ESLint](http://eslint.org) rules to produce beautiful, readable JavaScript.

## License

MIT © [Michael Novotny](http://manovotny.com)


text:
# Abstract

To create an API backend system that is hosted inside a Kubernetes orchastration.

This will then mimik a system that is split up into numerous backend microservices and accessed via a single public gateway.

# Requirements

- [Traefik](https://www.Traefik.io) as the reverse proxy / load balancer between the backend services. (This is the public endpoint to access everything.)
- Two different websites behind the Traefik RP.
- Each website requires a database (or some dependency).
- Each website and database are considered a single 'microservice'.
- All of this managed and handled via Kubernetes (locally on Docker Desktop or in a Cloud Provider).

# Images to use
- [RP/LB] Traefik : [traefik](https://hub.docker.com/_/traefik)
- [Web API] Some simple website: [radumatei/private-api](https://hub.docker.com/r/radumatei/private-api)
- [Some Db] Some simple db/store: [redis](https://hub.docker.com/_/redis)

# Sample urls/domains (for localhost testing)

### Public endpoints
- api.localtest.me/accounts
- api.localtest.me/orders

### Private, admin endpoints
- api.localtest.me/traefik-admin
- api.localtest.me/accounts-db

# Overall picture

![](https://i.imgur.com/oXKvB4l.png)

---

-end of readme-

repository: PureKrome/simplekubernetes

repo_name: PureKrome/simplekubernetes


text:
# FEW 2.3 - Lesson 9

# Redux Part 2

Redux has many parts the best way to own them is review!

## Learning Objectives

1. Describe the Flux Pattern
1. Describe Application State
1. Describe Actions, Actions Creators, and Reducers

## Tutorial concepts Review

Quick let's review everything. Identify the following in the tutorial projects.

1. Review and identify all of the parts of Redux
  - Actions
  - Action Creators
  - Reducers
  - Combined Reducers
  - The Store
2. Review and identify all of the parts used by React Redux
  - Provider component
  - connect()
    - mapStateToProps()
    - mapDispatchToProps()
3. Identify and describe the parts of Redux and React Redux
  - Actions
  - Store
  - Reducers
  - Immutable State
  - connected components
4. Identify and described Application State

## Challenges

Using the sample Redux project try these challenges:

- Create a component that resets all counters
- Create a component that increments all timers
- Create a component that decrements all timers
- Create a component that displays an average of all counters
- Create a component that display the min and max counter values

Sample Redux Project: https://github.com/Make-School-Labs/react-redux-counter

## Redux Review

Discuss issues and questions with tutorial projects. Write any questions you have abput the tutorial project down on the board.

## After Class

Find an issue and push a solution. Explore the issues in the projects below and find one that you are confortable working on. Develop a solution and submit a pull request.

- [Tetris Redux App](https://github.com/soggybag/tetris-redux-app)
    - [issues](https://github.com/soggybag/tetris-redux-app/issues)
- [Simple Journal](https://github.com/soggybag/simple-journal)
    - [issues](https://github.com/soggybag/simple-journal/issues)
- [Course Book React](https://github.com/soggybag/course-book-react)
    - [issues](https://github.com/soggybag/course-book-react/issues)
- [SF Public Spaces](https://github.com/soggybag/sf-public-spaces)
    - [issues](https://github.com/soggybag/sf-public-spaces/issues)


text:
# Scheduling-Algorithms-Implementation
Implementation of OS Scheduling Algorithms using webpages.
HOW TO INSTALL THE PROJECT
Steps to install the project:
1.	To install the project first download the zip file.
2.	Extract the files from the zip file
3.	Open the index.html file using any browser.
4.	After opening refer to how to use section to understand how to use the website to implement scheduling algorithms.

# HOW TO USE THE PROJECT
Steps to use the website:
1.	First add the arrival time and burst time for different processes you want to consider for the implementation of the algorithm by entering arrival time, burst time and then clicking on ADD A ROW BUTTON. (Note: Enter the processes sorted according to the arrival time)
2.	You delete entry from table if you want to by clicking on DELETE A ROW BUTTON.
3.	Then select the algorithm according to which you want schedule the processes which you have added to the table by selecting the particular radio button. (Note: For Round Robin you also have to enter the time quanta in the respective text field and for Priority scheduling enter the priority for each process in the designated column. Lower the priority prior it will be scheduled).
4.	After adding all processes and selecting the scheduling algorithm click on execute button which will find turn around time, response time, completion time and waiting time for all processes. Also, line graphs for the response time, completion time and waiting will be shown with Gantt Chart.

# HOW TO EDIT THE PROJECT
Steps to edit the project:
1.	To edit the project, you could open the folder in editor like Visual Code and then edit the particular file which you want.


text:
---
layout: projectpost
title:  "VR Sports Challenge"
date:   2017-11-11
excerpt: "<b>VR Sports Challenge</b> is a VR video game developed at Sanzaru Games"
developer: "Sanzaru Games"
feature: /assets/img/projects/vr-sports-challenge.jpg
tag:
- Sanzaru
- SanzaruGames
- GameDevelopment
- Oculus
comments: false
---

### VR Sports Challenge

<iframe width="560" height="315" src="//www.youtube.com/embed/YO_gz5l7ZB4"  frameborder="0"> </iframe>

VR Sports Challenge is a Sports based VR title. It contains Football, Baseball, Basketball and Hockey gameplays and it shipped with the Oculus Touch controllers when they were released. It was published by Oculus. I became lead at the end of the project.


text:
---
layout: default
---

# 1996-04-11 - Re: No matter where you go, there they are.

## Header Data

From: Hal<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: b8ec0a495dcf626bebaf7189e8574ca419dc6bc5a52784007649444fc6a19ff6

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1996-04-11 23:12:39 UTC

Raw Date: Fri, 12 Apr 1996 07:12:39 +0800

## Raw message

```
{% raw  %}From: Hal<EMAIL_ADDRESS>Date: Fri, 12 Apr 1996 07:12:39 +0800
To<EMAIL_ADDRESS>Subject: Re: No matter where you go, there they are.
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

I think the various comments are correct that Denning's scheme won't work
across the Internet as it currently exists.  Any network with latencies in
the multiple milliseconds and up will allow the fraud where the remote node
lies about its latency in order to allow it to move some of the received
data "forward in time", which is necessary but would not be possible if
latency were known and fixed.

Note however that Denning did not mention the Internet in her spiel.

I believe her method would be workable across lower latency networks, if such
exist or eventually exist.  Perhaps direct connections or leased lines would
provide low enough latency; I don't know.  In any case networks are likely
to become faster in the future and her method might eventually work.
Actually the issue is not just latency but whether the latency can be
lied about, and for some kinds of networks that would be harder.

The method of using authenticated devices which provide timestamped
data from satellites not visible to the authenticating site does not
need to provide that data in real time.  Even if it is delayed so it
comes in later than the data from the remote site, the verifying site
can still use it to calculate what the remote site should have been
seeing, and so get the benefit of using timings from all the satellites
visible to the remote site (again, assuming the remote site itself has
a low latency connection to the authenticating site).

They do mention that in urban or other obstructed locations a partial
view of the sky may be adequate.  But of course if all the satellites
visible to the remote site are in the south, it can move its apparently
location north by using older data.  So for the system to work there
must be satellites visible in all parts of the sky (no line you can
draw through your location which puts all satellites on one side of
that line).

Hal

{% endraw %}
```

## Thread

+ Return to [April 1996](/archive/1996/04)

+ Return to "[Hal <hfinney@shell.portal.com>](/authors/hal_hfinney_at_shell_portal_com_)"
+ Return to "[Roger Williams <roger@coelacanth.com>](/authors/roger_williams_roger_at_coelacanth_com_)"

+ 1996-04-11 (Fri, 12 Apr 1996 07:12:39 +0800) - Re: No matter where you go, there they are. - _Hal<EMAIL_ADDRESS>  + 1996-04-12 (Sat, 13 Apr 1996 00:53:16 +0800) - [Re: No matter where you go, there they are.](/archive/1996/04/6dfd5ecca721b76e05d6e4594b2a968cf730841691773a77184cb74eea85f353) - _Roger Williams<EMAIL_ADDRESS>


text:
# Map Tools

## Combine Maps

#### Use: combinemaps.py Summary

1. Navigate to main project directory.
2. Run the script using:
`python ./shmeppytools/maptools/combine_maps.py <map_path_1> <map_path_2>...<map_path_n>`
or
`./map_combiner_v0.2.3.exe <*image_file_path>`

(depending on which file you have)

* The maps can also be specified later from an input prompt.
* Uses standard python packages
* Minimum spacing between maps can be specified through a prompt.

## Collect Tokens from map(s)

#### Use: collecttokens.py Summary

1. Navigate to main project directory.
2. Run the script using:
`python ./shmeppytools/maptools/collecttokens.py <map_path_1> <map_path_2>...<map_path_n>`

* The maps can also be specified later from an input prompt.
* Spacing between tokens (and tokens from separate maps) may be specified on the command line.

This script creates a new map using all tokens from the input map(s). Tokens are grouped. Takes 1 or more `.json` map files. This can be useful to move tokens from one map to another. If run from the command line, using the `-c` flag combines tokens from multiple maps into one map. Omitting will process each map separately.  Type `python simple_map_to_tokens.py -h` for more options.

repository: essarrjay/ShmeppyImagetoJSON

repo_name: essarrjay/ShmeppyImagetoJSON


text:
---
layout: post
published: false
title: Missing host storage data in hardware tab from LSI SMI-S CIM provider
---
If you monitor your hosts using CIM you may encounter an issue where no data is gathered and the storage view of the hardware tab is blank in the ESXi web client. In such case you see the following warning message:

> The Small Footprint CIM Broker Daemon (SFCBD) is running, but no data has been reported. You may need to install a CIM provider for your storage adapter.

![wbem1.jpg]({{site.baseurl}}/img/wbem1.jpg)

After seeing this message I opened an SSH session on the host that had the issue and one on a host that was working as expected. Then I ran the following command to display the list of wbem providers:

```powershell
esxcli system wbem provider list
```

![wbem2.jpg]({{site.baseurl}}/img/wbem2.jpg)

As you can see the lsiprovider is not in the list of the host on the left. Meaning it is not presenting information from the storage controller to the wbem API.

If we look at the vibs installed on these hosts now, we see below that the lsiprovider vib is missing.

```powershell
esxcli software vib list | grep lsi
```

So what we need to do now is download the CIM provider vib and install it on the host. My host is equipped with RAID cards made by LSI so your mileage may vary here. However if you are using it, follow these instructions:

1. Navigate to the [Avago (LSI) Documents & Downloads site](https://www.broadcom.com/support/download-search).
2. Select _RAID controllers_ for Product Family and _Management Software and Tools_ for Asset Type and click _Search_.
3. Expand the view and find the version that works for you, then click on its name to download it.
4. Unzip the downloaded file and extract the .vib file.
5. Use WinSCP to connect to the ESXi host via SCP and copy the vib file somewhere.
6. Place the host in maintenance mode.
7. Now connect to the host via SSH and install the vib with the following command (adapt the path of course):

```Powershell
esxcli software vib install -v /VMWare-ESXi-Provider.zip
```

8. The output tells you that a reboot is required so... reboot.

After the host restart the storage view of the hardware tab should display whatever your storage controller agrees to give you, which is a lot better than nothing.


text:
---
title: "List of Access Keys from Output Values after ARM Template Deployment"
date: "2018-01-05"
slug: list-of-access-keys-from-output-values-after-arm-template-deployment
description: ""
author: Justin-Yoo
tags:
- arm-devops-on-azure
- azure-functions
- azure-logic-apps
- arm-templates
- azure-application-insights
- azure-service-bus
- azure-cosmos-db
- azure-storage-account
fullscreen: true
cover: https://sa0blogs.blob.core.windows.net/devkimchi/2018/01/list-of-access-keys-from-output-values-after-arm-template-deployment-00.png
---

There are many cases that we need to retrieve access keys and/or endpoints of Azure resources, as soon as they are deployed through ARM templates. Typical uses cases are:

1. To display those values in the `outputs` section of ARM templates,
2. To get a reference to the `outputs` section of nested ARM templates from their parent template,
3. To store those values to Azure Key Vault, and
4. To store those values to environment variables of Visual Studio Team Service.

Due to the nature of individual Azure resources, populating those keys through ARM template `outputs` section is not that easy. Rather it's a bit tricky and not well documented. In this post, I'm going to list up how to get those keys and endpoints using ARM template functions.

## List of Azure Resources

- [Application Insights](#app-insights)
- [Cosmos DB](#cosmos-db)
- [Service Bus](#service-bus)
- [Storage Accounts](#storage-accounts)
- [Functions](#functions)
- [Logic Apps](#logic-apps)

> **NOTE**: This is not a complete list, but the list contains ones quite frequently used. Therefore, if any of you know something not on the list, please let us know.

## Application Insights

Azure [Application Insights](https://azure.microsoft.com/en-us/services/application-insights/) has an instrumentation key for other Azure resources to use. After it is deployed, the instrumentation key is found under its properties. Therefore, we need to use the [`reference()`](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-resource#reference) function.

### Implementation

Here's a sample ARM template to see the `outputs` section:

https://gist.github.com/justinyoo/5937f12a1b7a78b1aed86e01d956962b

## Cosmos DB

Once Azure [Cosmos DB](https://azure.microsoft.com/en-au/services/cosmos-db/) instance is deployed, we might need to get at least three values – endpoint, access key and connection string. In order to get the endpoint details, the `reference()` function provides it, which is not that hard. But fetching the access keys are not that easy.

### Available Functions

In order to identify available resource functions, simply run the following Azure PowerShell cmdlet. It will show several operations that we can utilise in the `outputs` section of ARM templates.

https://gist.github.com/justinyoo/e428559b411a345dc53e4bc313157bf5

It returns two operations – `listKeys` and `listConnectionStrings`, which are corresponding to the resource functions of `listKeys()` and `listConnectionStrings()`. The [`listKeys()`](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-resource#listkeys) function returns the access key. However, the other function, `listConnectionStrings()` returns nothing. Apparently it has not been implemented yet. Therefore, in order to get the connection string, we should use the [`concat()`](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-string#concat) function to make-up the connection string. If we want to know the object structure that `listKeys()` function returns, simply run the following Azure PowerShell cmdlet:

https://gist.github.com/justinyoo/620c4945b5d82e98829481f362b23fa0

The `listKeys()` function returns `primaryMasterKey` and `secondaryMasterKey`.

### Implementation

With this information, we can implement the `outputs` section like this:

https://gist.github.com/justinyoo/90addf3243a1368133cf5c56f5e42c5b

## Service Bus

For Azure [Service Bus](https://azure.microsoft.com/en-us/services/service-bus/), we can apply a similar approach to Azure Cosmos DB. In order to pull the endpoint, we can simply use the `reference()` function, which is the same as Azure Cosmos DB. However, getting the access keys and connection strings is different. Let's have a look.

### Available Functions

In order to identify available resource functions, simply run the following Azure PowerShell cmdlet. It will show several operations that we can utilise in the `outputs` section of ARM templates.

https://gist.github.com/justinyoo/94e5ce154cf18fa8c7a541d53dc72df1

It returns one operation, `listKeys`, in three different providers – Service Bus itself, Service Bus Queue and Service Bus Topic. We're interested in the root one for now. If we want to know the object structure that `listKeys()` function returns, simply run the following Azure PowerShell cmdlet:

https://gist.github.com/justinyoo/ecc5ba5a52c27bc024093b6370ae40e4

Unlike Azure Cosmos DB, the `listKeys()` function for Azure Service Bus doesn't only return access key (`primaryKey`), but also returns connection strings (`primaryConnectionString`).

### Implementation

With this information, we can implement the `outputs` section like this:

https://gist.github.com/justinyoo/3f2590a858e4d09b0b3c4d671d8228a9

## Storage Accounts

Azure [Storage Account](https://azure.microsoft.com/en-us/services/storage/) is similar to Azure Cosmos DB, in terms of providing the result after ARM template deployment – it provides only access keys through the `listKeys()` function when it's deployed, not the connection string. Therefore, we should make this up using the `concat()` function.

### Available Functions

In order to identify available resource functions, simply run the following Azure PowerShell cmdlet. It will show several operations that we can utilise in the `outputs` section of ARM templates.

https://gist.github.com/justinyoo/cb1116a257b6ae335e029adacd438910

It returns three operation, `listKeys`, `listAccountSas` and `listServiceSas`, but we only use the `listKeys` operation for now. If we want to know the object structure that `listKeys()` function returns, simply run the following Azure PowerShell cmdlet:

https://gist.github.com/justinyoo/116f9d8e6e04f71e9e5abecf189dae91

The `listKeys()` function returns `keys` as an array value.

### Implementation

With this information, we can implement the `outputs` section like this:

https://gist.github.com/justinyoo/d92ae73916b985794bf298695f90ff74

## Functions

In my previous post, [Dynamic Access to Azure Functions Keys without KUDU Dependencies](https://blog.mexia.com.au/dynamic-access-to-azure-functions-keys-without-kudu-dependencies), we had walked through Azure REST API to get function keys from an Azure [Functions](https://azure.microsoft.com/en-us/services/functions/) app. In fact, we can also get those individual function keys through the ARM template's `outputs` section. By the way, this approach has a restriction. This can only access to individual function keys, not host key nor master key.

### Available Functions

In order to identify available resource functions, simply run the following Azure PowerShell cmdlet. It will show several operations that we can utilise in the `outputs` section of ARM templates.

https://gist.github.com/justinyoo/ee45fd41392da402ede7c72d7cd18322

It returns one operation, `listSecrets`. As mentioned above, this requires individual function names to get their respective keys. If we want to know the object structure that `listSecrets()` function returns, simply run the following Azure PowerShell cmdlet:

https://gist.github.com/justinyoo/85379f6fc4a93a0879baf317d54ffb89

The `listSecrets()` function returns `key` property.

> **NOTE**: We need to specify the API version to run this cmdlet, even though it's an optional parameter; otherwise it will throw an error.

### Implementation

With this information, we can implement the `outputs` section like this:

https://gist.github.com/justinyoo/f1d93c7412ece27e0351fef33f564926

## Logic Apps

When an Azure [Logic Apps](https://azure.microsoft.com/en-us/services/logic-apps/) instance is deployed, the instance has an endpoint URL. However, we only knows when it is created. In addition to this, the endpoint URL comes with a SAS token, which we have no idea how it's generated. Therefore, we need to identify those values. Make sure that we only get the endpoint URL, if the Logic App instance is an HTTP trigger.

### Available Functions

In order to identify available resource functions, simply run the following Azure PowerShell cmdlet. It will show several operations that we can utilise in the `outputs` section of ARM templates.

https://gist.github.com/justinyoo/ecd6d9cf87e4bca99494e89438a627ab

It returns the `listCallbackUrl` operation. If we want to know the object structure that `listCallbackUrl()` function returns, simply run the following Azure PowerShell cmdlet:

https://gist.github.com/justinyoo/d1346882cd9ae862631fae5d20593881

The `listCallbackUrl()` function returns `value`, `basePath` and `queries` properties.

> **NOTE**: We need to specify the API version to run this cmdlet, even though it's an optional parameter; otherwise it will throw an error.

### Implementation

With this information, we can implement the `outputs` section like this:

https://gist.github.com/justinyoo/2196cf52cc28b7d16726465be1db4c02

* * *

So far, we have identified how we can utilise the `outputs` sections of ARM templates using various template functions. As we can see above, Each Azure resource has all different implementations to get keys, endpoints and connection strings. Some are directly using the `reference()` function, the others are using either `listKeys()` or `listWhatever()` functions to get those values. Even worse, the object returned by `listKeys()` or `listWhatever()` has all different structure. Having a different structure is fine for each Azure resource, but they could have been documented in a better way. I hope this post would help figure out how to utilise the `outputs` section with more ease.

> ACKNOWLEDGEMENT: This post has originally been posted at [Mexia blog](https://blog.mexia.com.au/list-of-access-keys-from-output-values-after-arm-template-deployment).

repository: devkimchi/blog

branch_name: refs/heads/dev

gha_language: Vue

repo_name: devkimchi/blog


text:
# Lambda Architecture

Lambda Architecture implementation using Kafka for stream ingestion, Spark for batch and stream processing, HDFS and Cassandra for storage and querying, Dash for live visualization, and Docker for deployment.

## Setup

```
docker-compose up -d --scale spark-worker=3
```

## UI

* Dash - localhost:8050
* Spark Master - localhost:8080
* HDFS - localhost:9870

## Screenshot

![](screenshot.png)


text:
pingdom-java
============

A Java wrapper around the [Pingdom RESTful API][1] and a simple DSL for easy
interaction.

Remote services are grouped into local service objects which can be centrally
managed by a `ServiceManager` instance. The manager will act as a factory for
all of the services and will automatically initialize them with your
credentials and API key.

Each service contains methods which correspond to a remote method. Each of
these methods instantiates a class that will allow for you to build the
parameters using the Java builder pattern.

Required remote method parameters will be arguments to the service method and
all of the methods in the returned builder are optional.

When fully assembled, you can trigger the remote execution by calling the
`fire()` method. This will return a native object which represents the result
of the execution. All returned objects are immutable and should be handled
as such.

**Note**: While the Pingdom RESTful API remains in public beta all of the
released versions of this library will be in the 0.9.x series. Only when the
API is declared fully stable will version 1.0 be released. During this grace
period the wrapper API should remain relatively stable. However, this is not a
guarantee and all implementing programs should consult the change log file to
learn about any changes with new versions.

Usage
=====

Quick example:

    ServiceManager manager = new ServiceManager();
<EMAIL_ADDRESS>"your_password");
    manager.setAppKey("your_api_key");

    System.out.println("\nLast two alerts:");
    Actions actionsLimited = manager.actionsService().get().limit(2).fire();
    for (Actions.Alert alert : actionsLimited.getAlerts()) {
    	System.out.println(alert.getMessageFull());
    }

    System.out.println("\nCheck list:");
    Integer firstCheck = null;
    List<Check> checks = manager.checkService().list().fire();
    for (Check check : checks) {
    	if (firstCheck == null) {
    		firstCheck = check.getId();
    	}
    	System.out.println(check.getName() + " - " + check.getHostName());
    }

    System.out.println("\nCheck " + firstCheck + ":");
    Check check = manager.checkService().get(firstCheck).fire();
    System.out.println("- Name: " + check.getName());
    System.out.println("- Host: " + check.getHostName());
    System.out.println("- Type: " + check.getType().getNative());
    System.out.println("- Send to Email: " + check.getSendToEmail());
    System.out.println("- Send to SMS: " + check.getSendToSms());
    System.out.println("- Send to Twitter: " + check.getSendToTwitter());
    System.out.println("- Send to iPhone: " + check.getSendToIPhone());

    System.out.println("\nPingdom Server Time:");
    System.out.println(manager.serverTimeService().get().fire().getServiceTime());

    System.out.println("\nSettings:");
    Settings settings = manager.settingsService().get().fire();
    System.out.println("- Name: " + settings.getFirstName() + " " + settings.getLastName());
    System.out.println("- Email: " + settings.getEmail());
    System.out.println("- Registered: " + settings.getAccountCreated());

Real examples and tests to come soon.

Documentation
-------------

 * Javadocs are available at [jakewharton.github.com/pingdom-java/][2].
 * Repository is hosted on [github.com/JakeWharton/pingdom-java/][3].
 * Native API is documented on [pingdom.com/services/api-documentation-rest/][4].

Developed By
============

* Jake Wharton -<EMAIL_ADDRESS>

Contributors
------------

The overall package and class layout as well as approximately 50% of the code
in the `Pingdom*` classes are based on [nabeelmukhtar's github-java-sdk
library][5].

License
=======

    Copyright 2011 Jake Wharton

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

 [1]: http://www.pingdom.com/services/api/
 [2]: http://jakewharton.github.com/pingdom-java/
 [3]: https://github.com/JakeWharton/pingdom-java/
 [4]: http://www.pingdom.com/services/api-documentation-rest/
 [5]: https://github.com/nabeelmukhtar/github-java-sdk

repository: saichen/pingdom-java

repo_name: saichen/pingdom-java


text:
# datomic-spec
clojure.spec for Datomic

[![Build Status](https://travis-ci.org/lab-79/datomic-spec.svg?branch=master)](https://travis-ci.org/lab-79/datomic-spec)
[![Clojars Project](https://img.shields.io/clojars/v/lab79/datomic-spec.svg)](https://clojars.org/lab79/datomic-spec)
[![codecov](https://codecov.io/gh/lab-79/datomic-spec/branch/master/graph/badge.svg)](https://codecov.io/gh/lab-79/datomic-spec)

## Summary

This defines `clojure.spec` definitions for Datomic -- currently just for
Datomic query syntax and Datalog syntax -- and not for any `datomic.api`
functions yet.

## Getting Started

Add the following dependency to your `project.clj` file:

[![Clojars Project](https://clojars.org/lab79/datomic-spec/latest-version.svg)](https://clojars.org/lab79/datomic-spec)

## License

The MIT License (MIT)
Copyright © 2016 Lab79, Inc.

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

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

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

gha_language: Clojure


text:
# HaikuOS QEMU Script
## A Simple SH to launch HaikuOS with QEMU
A simple script to launch HaikuOS in your x86 PC with graphical acceleration.

## Dependencies
 - QEMU Virgil/qemu-system-x86/qemu-system-x86_64
 - Obviously: Interpreter SH (Bash/ZSH/sh)
 - HaikuOS ISO, obtained directly from the [official website](https://www.haiku-os.org/)

## Features
- Create a hard disk for HaikuOS
- Boot from CD
- Boot from HD without graphical acceleration
- Boot from HD with graphical acceleration

## Variables
In the haiku.sh script you will find some variables, they indicate:
- QEMU_x86_BIN => binary of QEMU to emulate 64-bit x86
- QEMU_x86_VIRGIL => binary of QEMU to emulate 64-bit x86 with Virgil Support
- SYSTEM_IMAGE => HaikuOS downloaded ISO location
- TOTAL_MEMORY => Free memory for QEMU in megabytes (I recommend 2048)

Now you can try the better system in the world.