text:
# DynamicsScheduledTask
Dynamics CRM Scheduled Task Console Application

Customizations:

Create new Entity Registration Status
•	Text field called Name - required
•	Create record with Name “Open”
•	Create record with Name “Cancelled”
•	Create record with Name “Closed”

Create new Entity Called Registration SubStatus
•	Text field called “Name” - required
•	Create record with name “Registered”
•	Crete record with name “Cancelled by Task”

Create new Entity Called Registrations
•	Text field called “Name” - required
•	Lookup field called Registration status, linked to registration Status entity
•	Lookup field called Registration substatus, that is linked to registration SubStatus entity
•	Lookup field that called account, that is linked to the account entity
•	Number field called “Priority”
•	Lookup field called “Modified By” that is linked to the User entity
•	Date time field called “Modified On”

Add Date field to the System rule entity you created in the previous task called “Date to Run”.
Create new record in the system rule called Date to run registration scheduled task (with a slug)
and fill the date to be the day you want the task to run (update it every day you want to run the task)
Create new record in the system rule called “Registration scheduled task owners” with rule value = “email1, email2, email3, etc.”

Task Logic:

•	The task will run daily but will continue only if today's date matches the date in the “date to run” system rule record
•	The task shall load data offline before execution and minimize connections to the database.
•	Get all of the contacts that have account linked to them, that have at least one registration
with Open status and Registered sub status
•	For each account found, find a case that is with case type = Request and case title  = Cancel one registration
•	For each case found Update a registration with the lowest priority,
if two registrations found with the same priority take the last created one

The update will be:
•	Registration status to be cancelled
•	Registration sub status to be cancelled by task
•	Modified by - the user you are using to run the task
•	Modified on - current time

Resolve the related case
Send email template to the related contact with the registrations updated
Send a report to the emails found in the system rule called Registration scheduled task owners with the following data:
 • Total number of registrations updated
 • Total number of issues found (for example issue on update the registration, issue on sending the email etc.)
 • Table of registration updated successfully with the following data: Account name, Registration name, Case name
 • Table of issues with the following data: Account name, Registration name, Issue description

Please note that account entity might have more than 5000 records.

repository: bubdm/DynamicsScheduledTask

repo_name: bubdm/DynamicsScheduledTask


text:
# Change Log

## [0.3.3](https://github.com/dldevinc/variations/tree/v0.3.3) - 2024-04-25

### Features

-   Add support for Python 3.11.

## [0.3.2](https://github.com/dldevinc/variations/tree/v0.3.2) - 2022-10-25

### Features

-   `Scaler` class now supports `float` values for image dimensions.

## [0.3.1](https://github.com/dldevinc/variations/tree/v0.3.1) - 2022-01-31

-   Fixed missing image drivers

## [0.3.0](https://github.com/dldevinc/variations/tree/v0.3.0) - 2022-01-11

-   Added support for Python 3.10
-   Dropped support for Python 3.6

## [0.2.1](https://github.com/dldevinc/variations/tree/v0.2.1) - 2021-11-24

-   Update tests

## [0.2.0](https://github.com/dldevinc/variations/tree/v0.2.0) - 2021-06-06

-   Dropped Python 3.5
-   Support Python 3.9
-   Test against `Pillow` 8.2.0

## [0.1.2](https://github.com/dldevinc/variations/tree/v0.1.2) - 2020-10-20

-   Remove Pillow 7.2.0 restriction

## [0.1.1](https://github.com/dldevinc/variations/tree/v0.1.1) - 2020-07-27

-   Fixed `save()` method with `io` object as output

## [0.1.0](https://github.com/dldevinc/variations/tree/v0.1.0) - 2020-07-16

-   Updated development environment
-   Added `pathlib` support
-   Refactored tests

## [0.0.17](https://github.com/dldevinc/variations/tree/v0.0.17) - 2020-03-19

-   Add more tests

## [0.0.16](https://github.com/dldevinc/variations/tree/v0.0.16) - 2020-03-05

-   Migrate from `unittest` to `pytest`
-   Added some type annotations
-   Fixed tests for `Pillow` v7

repository: dldevinc/variations

branch_name: refs/heads/main

extension: md

license_type: permissive

repo_name: dldevinc/variations


text:
# Date types

The templates for rendering website pages (via genpages and servepages) need to
accommodate various date types in "dates" fields.

## single

```
    "dates": [
        {
          "date_type": "single",
          "label": "creation",
          "expression": "1757-01-01",
          "lock_version": 0,
          "jsonmodel_type": "date",
          "created_by": "admin",
          "last_modified_by": "admin",
          "user_mtime": "2015-10-19T22:45:20Z",
          "system_mtime": "2015-10-19T22:45:20Z",
          "create_time": "2015-10-19T22:45:20Z"
        }
    ]
```

## inclusive

```
    "dates": [
        {
          "date_type": "inclusive",
          "label": "creation",
          "expression": "Date Created",
          "begin": "1804-01-01",
          "end": "1804-12-31",
          "lock_version": 0,
          "jsonmodel_type": "date",
          "created_by": "admin",
          "last_modified_by": "admin",
          "user_mtime": "2015-10-19T22:45:20Z",
          "system_mtime": "2015-10-19T22:45:20Z",
          "create_time": "2015-10-19T22:45:20Z"
        }
    ]
```

## bulk

```
    "dates": [
        {
          "date_type": "bulk",
          "label": "creation",
          "certainty": "approximate",
          "begin": "1940",
          "end": "1941",
          "lock_version": 0,
          "jsonmodel_type": "date",
          "created_by": "mariella",
          "last_modified_by": "mariella",
          "user_mtime": "2016-03-02T23:57:58Z",
          "system_mtime": "2016-03-02T23:57:58Z",
          "create_time": "2016-03-02T23:57:58Z"
        }
    ]
```

## Finding records with date types

If you have [jq](https://stedolan.github.io/jq) and installed then it is easy
to scan the dataset directory for examples in your accessions.

### Finding all single dates entries

```shell
    find dataset/repositories/2/accessions -type f |\
    while read ITEM; do
        jq '{"accession_id": .id, "dates":.dates}| select(.dates[].date_type == "single")' "$ITEM";
    done
```

### Finding all inclusive dates entries

```shell
    find dataset/repositories/2/accessions -type f |\
    while read ITEM; do
        jq '{"accession_id": .id, "dates":.dates}| select(.dates[].date_type == "inclusive")' "$ITEM";
    done
```

### Finding all bulk dates entries

```shell
    find dataset/repositories/2/accessions -type f |\
    while read ITEM; do
        jq '{"accession_id": .id, "dates":.dates}| select(.dates[].date_type == "bulk")' "$ITEM";
    done
```

## Interesting fields

+ label
+ expression (free text)
+ date_type
    + inclusive
    + single
    + bulk
+ begin
    + formats: YYYY, YYYY-MM, YYYY-MM-DD
+ end
    + formats: YYYY, YYYY-MM, YYYY-MM-DD
+ certainty
    + ""
    + approximate
    + inferred
    + questionable
+ era
    + ""
    + ce
+ calendar
    + ""
    + Georgian

repository: caltechlibrary/cait

branch_name: refs/heads/master

repo_name: caltechlibrary/cait


text:
---
title: I.T week 13
layout: post
author: rhys.evans
permalink: /i.t-week-13/
source-id: 1LceXRSuNZtbMjHfw73ogUj9N9egz0wZaKeEUFqlstkM
published: true
---

    Title
    I.T week 13
    Date
    18/1/17

    Starting point:

    Target for this lesson?
    To do 20 exercises on python

    Did I reach my target?
(add details to "Lesson Review")
     Yes. I did 26.

    Lesson Review

    How did I learn? What strategies were effective?

    I read the instructions thoroughly, as Mr Keen told us to. This was effective as it ensured I did the work right and therefore I went fast enough to do the amount of  exercises I wanted to do. I did the same whilst I did the homework exercises as well When I did the homework I referred to the glossary or the hints.

    What limited my learning? Which habits do I need to work on?

    Now I need to work on my coding ability so I can remember to make the computer do maths for example, as the further you go into the exercises the smaller the hints get and the instructions become more vague so you have to figure it out by yourself more often than in the earlier exercises.

    What will I change for next time? How will I improve my learning?

    Next time I will remember more of how to perform a function eg. making python answer a number equation. This will improve my learning as I will be able to go faster and then I will be able to get more work done and I can therefore learn more in the lesson and also in homework time

license: MIT


text:
# Sliding Window Maximum

## Problem：

  Given an array

   nums

  , there is a sliding window of size

   k

  which is moving from the very left of the array to the very right. You can only see the

   k

  numbers in the window. Each time the sliding window moves right by one position.

  For example,

  Given

   nums

  =

   [1,3,-1,-3,5,3,6,7]

  , and

   k

  = 3.

Window position                Max
---------------               -----
[1  3  -1] -3  5  3  6  7       3
 1 [3  -1  -3] 5  3  6  7       3
 1  3 [-1  -3  5] 3  6  7       5
 1  3  -1 [-3  5  3] 6  7       5
 1  3  -1  -3 [5  3  6] 7       6
 1  3  -1  -3  5 [3  6  7]      7

  Therefore, return the max sliding window as

   [3,3,5,5,6,7]

  .

   Note:

  You may assume

   k

  is always valid, ie: 1 ≤ k ≤ input array's size for non-empty array.

   Follow up:

  Could you solve it in linear time?

   How about using a data structure such as deque (double-ended queue)?

   The queue size need not be the same as the window’s size.

   Remove redundant elements and the queue should store only elements that need to be considered.

## Source:
[Leetcode](https://leetcode.com/problems/sliding-window-maximum/)

repository: Dragon-lake/leetcode

gha_language: JavaScript

repo_name: Dragon-lake/leetcode


text:
# Ray's new webpage learning

## Things to do

1. Get github accound setup
2. Learn how to use github (basic)
3. Install jekyll using tutorial [here](https://learn.cloudcannon.com/jekyll/install-jekyll-on-os-x/)
4. Select Theme
5. Learn to use markdown [here](http://wowubuntu.com/markdown/)

repository: halosernuf/rayspage

repo_name: halosernuf/rayspage


text:
# Time Boots

[![Gem Version](https://badge.fury.io/rb/time_boots.svg)](http://badge.fury.io/rb/time_boots)
[![Dependency Status](https://gemnasium.com/zverok/time_boots.svg)](https://gemnasium.com/zverok/time_boots)
[![Code Climate](https://codeclimate.com/github/zverok/time_boots/badges/gpa.svg)](https://codeclimate.com/github/zverok/time_boots)
[![Build Status](https://travis-ci.org/zverok/time_boots.svg?branch=master)](https://travis-ci.org/zverok/time_boots)
[![Coverage Status](https://coveralls.io/repos/zverok/time_boots/badge.svg?branch=master)](https://coveralls.io/r/zverok/time_boots?branch=master)

**TimeBoots** is a small, no-dependencies library attemting to make time
steps easier. It provides you with simple, easy-to-remember API, without
any monkey-patching of core Ruby classes, so it can be used alongside
Rails or without it, for any purpose.

Install it like always:

```
gem install time_boots
```

or add to your Gemfile

```
gem 'time_boots'
```

## Simple time math

### Floor, ceil and round:

```ruby
TimeBoots.steps
# => [:sec, :min, :hour, :day, :week, :month, :year]

tm = Time.parse('2015-03-05 10:08')
# => 2015-03-05 10:08:00 +0200

TimeBoots.floor(:hour, tm)
# => 2015-03-05 10:00:00 +0200

TimeBoots.floor(:month, tm)
# => 2015-03-01 00:00:00 +0200

# or
TimeBoots.month.floor(tm)
# => 2015-03-01 00:00:00 +0200

TimeBoots.month.ceil(tm)
# => 2015-04-01 00:00:00 +0300
# Note the timezone change: our (Ukraine) DST was in March,
# and TimeBoots plays perfectly well with it.

TimeBoots.month.round(tm)
# => 2015-03-01 00:00:00 +0200

TimeBoots.month.round?(tm)
# => false

TimeBoots.min.round?(tm)
# => true
```

### Moving in time forwards and backwards

```ruby
TimeBoots.month.advance(tm)
# => 2015-04-05 10:08:00 +0300

TimeBoots.month.advance(tm, 4)
# => 2015-07-05 10:08:00 +0300

TimeBoots.month.advance(tm, -4)
# => 2014-11-05 10:08:00 +0200

# or
TimeBoots.month.decrease(tm, 4)
# => 2014-11-05 10:08:00 +0200
```

Also abstracted as time **jump**, which you can store in variables and
pass to other methods:

```ruby
jump = TimeBoots.month.jump(4)
# => #<TimeBoots::Jump(month): +4>

jump.before(tm)
# => 2014-11-05 10:08:00 +0200

jump.after(tm)
# => 2015-07-05 10:08:00 +0300
```

### Creating time ranges

```ruby
TimeBoots.hour.range(tm, 5)
# => 2015-03-05 10:08:00 +0200...2015-03-05 15:08:00 +0200
TimeBoots.hour.range_back(tm, 5)
# => 2015-03-05 05:08:00 +0200...2015-03-05 10:08:00 +0200
```

## Measuring time periods

```ruby
# My real birthday, in fact!
birthday = Time.parse('1983-02-14 13:30')

# How many days have I lived?
TimeBoots.day.measure(birthday, Time.now)
# => 11764

# And how many weeks (with reminder)?
TimeBoots.week.measure_rem(birthday, Time.now)
# => [1680, 2015-04-27 12:30:00 +0300]
# the thing is "birthday plus 1680 weeks == reminder"

# My full age
TimeBoots.measure(birthday, Time.now)
# => {:years=>32, :months=>2, :weeks=>2, :days=>3, :hours=>6, :minutes=>59, :seconds=>7}

# NB: you can use this output with String#format or String%:
puts "%{years}y %{months}m %{weeks}w %{days}d %{hours}h %{minutes}m %{seconds}s" % TimeBoots.measure(birthday, Time.now)
# "32y 2m 2w 3d 7h 2m 50s"

# Option: measure without weeks
TimeBoots.measure(birthday, Time.now, weeks: false)
# => {:years=>32, :months=>2, :days=>17, :hours=>7, :minutes=>5, :seconds=>11}

# My full age in days, hours, minutes
TimeBoots.measure(birthday, Time.now, max_step: :day)
# => {:days=>11764, :hours=>8, :minutes=>6, :seconds=>41}
```

## Time series generation: "laces"

I'm a real fan of funny names in gems. Here we have time **boots** for working
with time **steps**. So, something continuous will be called **lace**.

I hope, next examples are pretty self-explanatory.

```ruby
from = Time.parse('2015-03-05 10:08')
to = Time.parse('2015-03-09 11:07')

lace = TimeBoots.month.lace(from, to)
# => #<TimeBoots::Lace(2015-03-05 10:08:00 +0200 - 2015-03-09 11:07:00 +0200)>

# or
TimeBoots.lace(:month, from, to)
# => #<TimeBoots::Lace(2015-03-05 10:08:00 +0200 - 2015-03-09 11:07:00 +0200)>

lace.pull
# => [2015-03-05 10:08:00 +0200,
#     2015-03-06 10:08:00 +0200,
#     2015-03-07 10:08:00 +0200,
#     2015-03-08 10:08:00 +0200,
#     2015-03-09 10:08:00 +0200]
```

So, we have just a series of times, each day, from `from` until `to`.
Note, there is a same time of the day (10:08), as it was in `from`.

The `pull` method has an optional argument, when it is `true`, the
method returns `floor`-ed times (e.g. midnights for daily lace):

```ruby
lace.pull(true)
# => [2015-03-05 10:08:00 +0200,
#     2015-03-06 00:00:00 +0200,
#     2015-03-07 00:00:00 +0200,
#     2015-03-08 00:00:00 +0200,
#     2015-03-09 00:00:00 +0200]
```

Note the first value still at 10:08: we don't want to go before `from`.
Lace also can "expand" your period for you (`floor` the beginning and
`ceil` the end):

```ruby
lace.expand
# => #<TimeBoots::Lace(2015-03-05 00:00:00 +0200-2015-03-10 00:00:00 +0200)>

# or
lace.expand!

# or start with expanded:
TimeBoots.month.lace(from, to, expanded: true)
```

Another useful lace's functionality is generating periods.
It can be useful for filtering daily data from database, for example:

```ruby
lace.pull_ranges
# => [2015-03-05 10:08:00 +0200...2015-03-06 10:08:00 +0200,
#     2015-03-06 10:08:00 +0200...2015-03-07 10:08:00 +0200,
#     2015-03-07 10:08:00 +0200...2015-03-08 10:08:00 +0200,
#     2015-03-08 10:08:00 +0200...2015-03-09 10:08:00 +0200,
#     2015-03-09 10:08:00 +0200...2015-03-09 11:07:00 +0200]

# Now, you can do something like:

lace.pull_ranges.map{|range| dataset.where(timestamp: range).count}
# ...and have your daily stats with one line of code

```

## Got it, what else?

TimeBoots also play well when included into other classes or modules:

```ruby
class MyModel
  include TimeBoots

  def next_day
    day.advance # Here!
  end
end
```

And there are some plans for the future:
* `TimeBoots.resample`, which would do resampling (take daily data and
  group it monthly, and so on) easy task;
* optional `core_ext`, providing methods like `4.months.ago` for the
  (Rails-less) rest of us;
* your ideas?..

## Alternatives

There's pretty small and useful [AS::Duration](https://github.com/janko-m/as-duration)
by Janko Marohnić, which is time durations, extracted from ActiveSupport,
but without any ActiveSupport bloat.


text:
---
description:
  zh-CN: "距离窗口顶部达到指定偏移量后触发"
  en-US: "Pixels to offset from top when calculating position of scroll"
---

```html
[nzOffsetTop]="$1"
```

repository: hidoos/ng-zorro-vscode

gha_license_id: MIT

repo_name: hidoos/ng-zorro-vscode


text:
---
title: Java friendly Kotlin - static functions
slug: java-friendly-kotlin-static-functions
date: "2020-03-18"
published: true
tags: [kotlin, java]
series: Java friendly Kotlin
cover_image: blog-card.png
---

In this post, we will look at writing static functions in Kotlin that treat Java callers as first-class citizens.

## Recap

There are three ways to define static functions in Kotlin:

- Directly in a Kotlin file:

    ```kotlin
    fun execute() {
      println("Executing from inside a kotlin file")
    }
    ```

  Called by:

    ```kotlin
    execute()
    ```

- Inside a `Companion` object:

    ```kotlin
    class StaticFunctions {
      companion object {
        fun execute() {
          println("Executing from inside a companion object")
        }
      }
    }
    ```

  Called by:

    ```kotlin
    StaticFunctions.execute()
    StaticFunctions.Companion.execute() // If you really wanted to...
    ```

- Inside a static object:

    ```kotlin
    object StaticFunctions {
      fun execute() {
        println("Executing from inside a static object")
      }
    }
    ```

    Called by:

    ```kotlin
    StaticFunctions.execute()
    ```

## Non-friendly static functions

The functions defined above are not _friendly_. This is how you would call each of them from Java:

- Directly in a Kotlin file:

    ```java
    StaticFunctionsKt.execute();
    ```

- Inside a `Companion` object:

    ```java
    StaticFunctions.Companion.execute();
    ```

- Inside a static object:

    ```java
    StaticFunctions.INSTANCE.execute();
    ```

They all look pretty bad. I would use more vulgar words if I wasn't writing...

- `StaticFunctionsKt.execute` is not too bad, it is relatively close to a standard Java static function. Except, that it's clear that it came from a Kotlin file/library due to the `Kt` stuck onto the end.

- `StaticFunctions.Companion.execute` is much worse as you have to reference the `Companion` object directly to access the function. Furthermore, mentioning the `Companion` object doesn't bring any extra clarity to the code, so even more reason to try and remove it.

- `StaticFunctions.INSTANCE.execute` has the same problem as the `Companion` version.

## Writing Java friendly static functions

The three ways of defining static functions in Kotlin can each have their Java interoperability improved through different routes.

### JvmName

The `@file:JvmName` annotation can be added to the top of a Kotlin file to allow you to manually specify the file's name:

```kotlin
@file:JvmName("StaticFunctions")

package dev.lankydan

fun execute() {
  println("Executing from inside a kotlin file")
}
```

This allows a function to be called from Java using the specified file name rather than the original name. Any name can be chosen for the file, but most of the time, giving it the same name as the original file will suffice (the `Kt` part is dropped from the end).

This can then be called as such:

```java
StaticFunctions.execute();
```

### JvmStatic

The `@JvmStatic` annotation can be added to functions found in `Companion` and static objects:

  - Inside a `Companion` object:

    ```kotlin
    class StaticFunctions {
      companion object {
        @JvmStatic
        fun execute() {
          println("Executing from inside a companion object")
        }
      }
    }
    ```

  - Inside a static object:

    ```kotlin
    object StaticFunctions {
      @JvmStatic
      fun execute() {
        println("Executing from inside a static object")
      }
    }
    ```

`@JvmStatic` generates a new version of a function that is more suitable for Java callers.

You can then access the function just like any normal Java static function (both `Companion` and static objects can be called in the same way):

```java
StaticFunctions.execute();
```

## Which one should you use

This is a question I am still trying to answer myself.

I currently believe that if you are writing a purely static function, you should add the function directly to the file (not inside a `Companion` or static object). The inclusion of the class clutters things up.

On the other hand, you should use a `Companion` or static object if you need to fulfil the following criteria:

- A class/object must be directly referenced (such as passing an instance into another function)
- Provide static functions

## Summary

By using the `@file:JvmName` and `@JvmStatic` annotations, you can write static Kotlin functions that can be used from Java in a nice and friendly way. It doesn't matter how you define your static functions, as you have methods to make them all play better with Java.

----

If you enjoyed this post or found it helpful (or both) then please feel free to follow me on Twitter at [@LankyDanDev](https://twitter.com/LankyDanDev) and remember to share with anyone else who might find this useful!

repository: lankydan/lankydanblog-jamstack

repo_name: lankydan/lankydanblog-jamstack


text:
# propagate-license

Insert license snippet into each source file in the given folder

LICENSE_SNIPPET is taken from environment variable

```
export LICENSE_SNIPPET="Copyright 2020 PRQST Ltd. All rights reserved.\nBy using this code without written permission you agree to burn in hell."
```

# To replace LICENSE file in the root foler

also set up `LICENSE_URL`
```
export LICENSE_URL=https://raw.githubusercontent.com/your-company/your-repo/master/LICENSE.md
```

repository: wcrbrm/propagate-license

repo_name: wcrbrm/propagate-license


text:
# Bitfinex-MoneyMoney

Fetches balances from Bitfinex API and returns them as securities

## Setup

* Download Bitfinex extension bitfinex.lua
* In MoneyMoney app open “Help” Menu and hit “Show database in finder” (https://moneymoney-app.com/extensions/#installation)
* Copy bitfinex.lua in extensions folder
* In MoneyMoney app open “Preferences” > “Extensions” and make sure “bitfinex” show up (to use unsigned extension uncheck “verify digital signatures of extensions” at the bottom)
* Login to bitfinex.com
* To get an API key, go to "Account" > "API" (https://www.bitfinex.com/api)
* Allow permission “READ Wallets” and hit “Generate key”
* Finally in MoneyMoney add new Bitfinex account and use your Bitfinex API key and API secret

### MoneyMoney

Add a new account (type Bitfinex Account”)

## Known Issues and Limitations

* Always assumes EUR as base currency
* Fetches current USD to Euro conversions from fixer.io

repository: beanieboi/moneymoney-bitfinex

gha_language: Lua

repo_name: beanieboi/moneymoney-bitfinex


text:
# Peter Moss COVID-19 AI Research Project
## COVID-19 xDNN Python Classifier
[![GeniSysAI Server](../../Media/Images/covid-19-ai-research-xdnn.png)](https://github.com/COVID-19-AI-Research-Project/xDNN)

# Table Of Contents

- [Introduction](#introduction)
- [Required Hardware](#required-hardware)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Contributing](#contributing)
    - [Contributors](#contributors)
- [Versioning](#versioning)
- [License](#license)
- [Bugs/Issues](#bugs-issues)

# Introduction
The following guide will take you through setting up and installing the  [ COVID-19 xDNN Python Classifier](https://github.com/COVID-19-AI-Research-Project/xDNN/Projects/Python " COVID-19 xDNN Python Classifier").

# Required Hardware

# Prerequisites

# Installation

# Contributing

Peter Moss COVID-19 AI Research Project encourages and welcomes code contributions, bug fixes and enhancements from the Github.

Please read the [CONTRIBUTING](../../CONTRIBUTING.md "CONTRIBUTING") document for a full guide to forking your repositories and submitting your pull requests. You will also find information about your code of conduct on this page.

## Contributors

- [Adam Milton-Barker](https://www.leukemiaresearchassociation.ai.com/team/adam-milton-barker "Adam Milton-Barker") - [Peter Moss Leukemia AI Research](https://www.leukemiaresearchassociation.ai "Peter Moss Leukemia AI Research") Founder & Intel Software Innovator, Sabadell, Spain

- [Aniruddh Sharma](https://www.leukemiaresearchassociation.ai/team/aniruddh-sharma "Aniruddh Sharma") - [Peter Moss Leukemia AI Research](https://www.leukemiaresearchassociation.ai "Peter Moss Leukemia AI Research") R&D Junior, Ahmedabad, Gujarat, India

- [Nitin Mane](https://www.leukemiaresearchassociation.ai/team/nitin-mane "Nitin Mane") - [Peter Moss Leukemia AI Research](https://www.leukemiaresearchassociation.ai "Peter Moss Leukemia AI Research") AI R&D, Aurangabad, India

# Versioning

You use SemVer for versioning. For the versions available, see [Releases](../../releases "Releases").

# License

This project is licensed under the **MIT License** - see the [LICENSE](../../LICENSE "LICENSE") file for details.

# Bugs/Issues

You use the [repo issues](../../issues "repo issues") to track bugs and general requests related to using this project. See [CONTRIBUTING](../../CONTRIBUTING.md "CONTRIBUTING") for more info on how to submit bugs, feature requests and proposals.


text:
---
layout: second
title: STEADY Notes - Genius-Android
id: second-notes
root: ../
---

## Permission

{% highlight xml %}

<!-- Internet permission -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Log file permission -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- getDeviceId permission -->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

{% endhighlight %}

## Developer

Download the project, the project can be imported into `Android Studio`, Android Studio >= 1.0

Project which contains a library and a test project, the library can be imported into your own project use.

`Eclipse` Cannot import directly in the program, please create a project in accordance with the corresponding category replacement to their projects.

repository: haojuwang/Genius-Android

repo_name: haojuwang/Genius-Android


text:
---
layout: page
title: Credits
---

---

## Acknowledgments

As many open source projects, Ed is the work of community. The project starts with the open web, and everything in between leading to [Jekyll](https://jekyllrb.com/) and the wonderful team who wrangled that Ruby in our favor. The theme stylesheets are built on top of [Lanyon](https://github.com/poole/lanyon), a Jekyll theme based on [Poole](http://getpoole.com), "the Jekyll butler," both created by [Mark Otto](https://github.com/mdo) and distributed with an MIT license. Thanks, Mark, for your helpful streamlining! Special hat tips to brother-in-markdown-arms, [Chris Forster](https://github.com/c-forster), and the generous [Sylvester Keil](https://github.com/inukshuk/) for his work on Jekyll Scholar.

We are strongly indebted to the research work and conversations stemming out of our [Columbia's Group for Experimental Methods in the Humanities](http://xpmethod.plaintext.in/)—or as we like to call it: #xpmethod; the wonderful international comradery of [GO::DH](http://www.globaloutlookdh.org/); and of course, the support of our [Columbia University Libraries](http://library.columbia.edu/) and its cozy [Studio@Butler](https://studio.cul.columbia.edu/).

...and to the writers that inspire us to scribble notes on the margins we protect with our work. Thank you.


text:
## TODO

1. Read library version to Gradle build from `org.aurinkopg.GlobalConstants.LIBRARY_VERSION`.
1. Upload to some public Maven repository.
---
1. Initialize the database state in the beginning of test runs, before running a single test. Use Docker for this.
1. Test the Docker workflows.
1. Create a database for Aurinko metadata so that snapshots can be tracked.
1. Test with Java 9.
1. Write some simple usage instructions.
1. Create a Continuous Integration setup (Travis?)
1. Set the "template" attribute on for snapshots, so that they cannot be accidentally used as ordinary databases.
1. Try "cancel" before "terminate" when killing connections - maybe some connection pools (like dbcp2 used by Play framework) can recover from that better.

repository: vpeurala/aurinko-pg

repo_name: vpeurala/aurinko-pg


text:
---
title: Andrew Kim
summary: Designer, dog lover
date: 2012-07-17
categories:
- designer
- mac
---

### Who are you, and what do you do?

I'm Andrew Kim, a lover of dogs and designer. I study product design but I don't let that define what I work on. I'm currently in school and I share my work and thoughts on my site, [Minimally Minimal](http://www.minimallyminimal.com/ "Andrew's website."). I dream of living in tomorrow.

### What hardware do you use?

A setup starts with the work machine. I use a Mid 2010 15-inch [MacBook Pro][macbook-pro] daily to get all of my work done. It's got an i7 with 8GB of RAM and a 750GB Seagate Momentus XT hybrid drive. I've also removed the obsolete superdrive and added a second 500GB drive using a HDD caddy. Most of the time, my Mac is hooked up to a [27" Cinema Display][cinema-display], which is easily the best display I've come across. I type on a standard [Wireless Keyboard][keyboard] and use a [Magic Trackpad][magic-trackpad] for all of my work. People usually think that I use a Wacom tablet but I despise them. Apple's trackpads are brilliant and more than enough for most design work. I have a [Kanto SYD 5][syd-5] and a pair of [Shure SRH 840][srh840] that I use to listen to music while I work.

I also use my [retina iPad][ipad-3] and [iPhone 4s][iphone-4s] heavily. The iPad has been a great canvas to sketch with (I use a Wacom Bamboo stylus) and has become my primary mode of reading and research for my work.

My blog has made me become a hobby photographer and I use a [Fuji X100][finepix-x100] for all of my photos. I get to the various locations of my photos in my Nissan Cube.

### And what software?

For most of my standard operations, I use the default Apple apps like [Mail][], [iCal][], [iWork][] and [Safari][]. I've also started using the brilliant [Fantastical][] to enter calendar information and use [YoruFukurou][] to go through my tweets. On my iOS devices, I live in [Tweetbot][tweetbot-ios], [Instapaper][instapaper-ios], [Paper][paper-ios] and [Evernote][evernote-ios]. [1Password][] is an app that I use across all of my devices and cannot live without.

For my design work, most of my time is spent in [Adobe's Creative Suite][creative-suite]. My layouts and renderings are finished in [Photoshop][] and the videos I have on the site are done with [After Effects][after-effects]. The 3D modeling of my product designs are done in [SolidWorks][] and rendered in there too.

Photos from my X100 usually don't go through much post processing but this is all done in [Aperture][].

### What would be your dream setup?

I dream of using a 13" [MacBook Air][macbook-air] as my main machine.  Sadly, it's simply not powerful enough for the work I do. I get so jealous when I sit at a coffee shop watching people on their Airs and iPads.

[1password]: https://1password.com "Password management software for Mac OS X."
[after-effects]: https://www.adobe.com/products/aftereffects.html "Motion graphics and video editing software."
[aperture]: https://en.wikipedia.org/wiki/Aperture_(software) "Photo editing and management software for Mac OS X."
[cinema-display]: https://en.wikipedia.org/wiki/Apple_Cinema_Display "An LCD display."
[creative-suite]: https://www.adobe.com/creativecloud.html "A collection of design tools."
[evernote-ios]: https://apps.apple.com/us/app/evernote/id281796108 "An iPhone client for the Evernote web service."
[fantastical]: https://flexibits.com/fantastical "A calendaring app for the Mac."
[finepix-x100]: https://finepix-x100.com/ "A 12.3 megapixel digital camera."
[ical]: https://en.wikipedia.org/wiki/Calendar_(Apple) "The calendar software included with macOS."
[instapaper-ios]: http://web.archive.org/web/20221221083204/https://www.instapaper.com/iphone "An iPhone app for reading Instapaper saved pages."
[ipad-3]: https://www.apple.com/ipad/ "A tablet device with a retina display."
[iphone-4s]: https://en.wikipedia.org/wiki/IPhone_4S "A smartphone."
[iwork]: https://en.wikipedia.org/wiki/IWork "An office suite for the Mac."
[keyboard]: https://www.apple.com/us/shop/goto/mac/accessories "The keyboard."
[macbook-air]: https://www.apple.com/macbook-air/ "A very thin laptop."
[macbook-pro]: https://www.apple.com/macbook-pro/ "A laptop."
[magic-trackpad]: https://en.wikipedia.org/wiki/Magic_Trackpad "A trackpad for desktop machines."
[mail]: https://en.wikipedia.org/wiki/Mail_(application) "The default Mac OS X mail client."
[paper-ios]: http://web.archive.org/web/20230815030158/https://wetransfer.com/paper "A notebook/drawing app."
[photoshop]: https://www.adobe.com/products/photoshop.html "A bitmap image editor."
[safari]: https://www.apple.com/safari/ "A fast web browser."
[solidworks]: https://www.3ds.com/products/solidworks "Modelling/CAD software."
[srh840]: http://web.archive.org/web/20150715225409/http://www.shure.com/americas/products/earphones-headphones/headphones/srh840-professional-monitoring-headphones "Studio quality headphones."
[syd-5]: http://web.archive.org/web/20190509030909/https://www.amazon.com/Kanto-SYD-Powered-Speakers-Black/dp/B001DZVS52 "A large iPod/iPhone dock/speaker system."
[tweetbot-ios]: https://tapbots.com/tweetbot/ "A Twitter client for iOS."
[yorufukurou]: http://web.archive.org/web/20230503120602/https://sites.google.com/site/yorufukurou/ "A Twitter client for the Mac."

repository: waferbaby/usesthis

extension: markdown

gha_language: HTML

repo_name: waferbaby/usesthis


text:
---
layout: study--newsletter
title: 'Roads'
number: '153'
date: '2020-08-09 12:00:00'
published: true
---

Yesterday was a driving day, so naturally I’m thinking about roads.

---

Antidote, my dictionary app of choice, tells me that “road” is “from the native lexical stock; from Old English rād, ‘journey, trip’; from Germanic raidō, ‘a journey’.” So the infrastructure is named for its purpose. Neat.

---

[Highway 599 is Ontario’s northernmost provincially-maintained highway](https://en.wikipedia.org/wiki/Ontario_Highway_599), connecting the community of Pickle Lake to the rest of Ontario’s road system. I heard Pickle Lake mentioned on the news—it was hot there yesterday, or something—and fell down the Wikipedia rabbit hole.

---

The Middle Road was a significant historical highway in Ontario. It set an example for what highways could be, combining utility—a straight road, largely uninterrupted—with a concern for aesthetics (tree-filled medians and the like).

While the road itself has mostly been superseded by more significant constructions, like the QEW (Queen Elizabeth Way), small hints of its past remain. [A concrete truss bridge over Etobicoke Creek](https://www.google.com/maps/place/43%C2%B036'25.5%22N+79%C2%B033'52.1%22W/@43.607084,-79.5650092,200m/data=!3m2!1e3!4b1!4m6!3m5!1s0x0:0x0!7e2!8m2!3d43.6070844!4d-79.5644625)—[Canada’s first such bridge, according to a 1909 edition of _The Canadian Engineer_](https://ia800504.us.archive.org/0/items/canadianengineer17toro/canadianengineer17toro.pdf#page=546)—remains in place today, the former roadway now a pedestrian path.

([The Middle Road Wikipedia page is a good one, as they go.](https://en.wikipedia.org/wiki/The_Middle_Road))

---

A good transportation system demands a good signage system. And a good signage system is a design system.

- [Ontario’s highways have seen a number of different sign styles over the years.](http://www.thekingshighway.ca/signs.htm) An attentive eye will notice a bewildering mishmash of surviving styles if you drive just a hundred kilometres.
- [These design styles are regulated—as best as possible—by the Ontario Traffic Manual.](https://stinson.ca/ontario-traffic-manual-pdf-downloads.html) As far as typefaces go, [there’s a mix in Ontario, between FHWA typefaces, developed by the American Federal Highway Administration (hence the typeface name, though it also goes by Highway Gothic), and Clearview, a newer alternative](https://stinson.ca/amfile/file/download/file/8/product/2581/#page=21).
- You can [read a short profile on the City of Windsor’s transition from Helvetica to Highway Gothic, including a behind-the-scenes look at the city’s signage shop](https://www.cbc.ca/news/canada/windsor/city-of-windsor-street-name-signs-get-a-gothic-makeover-1.4511316).

---

Anyhow driving is fun for some (like me), but not great for the planet in the long run. More bikeways and railways, please, or roadways dedicated to public transit. That’s it from me for today—all the best for the week ahead!

Lucas


text:
![](https://img.shields.io/badge/Microverse-blueviolet)

# Project Name: Sneak Peak Project

> This project is Mainly focused in Building the repleca of New York Times Article page. to build this project Html and css languges were used.

![screenshot](./NYT_screenshoot.png)

## Built With

- Major languages: HTML & CSS

## Live Demo

[Live Demo Link](https://addis0943.github.io/Sneak-peak-project/)

### Prerequisites

- Computer
- Internet Connection
- basic Knowledge of Html and css

### Setup

- Vs Code
- Git
- github

### Install

- VS code
- Git
- Github

## To get local copy up and running follow these simple example steps

- git clone git@github.com:Addis0943/Sneak-peak-project.git
- cd Sneak-peak-project
- git checkout -bg

### Linters.

Install some dependencies by running the following command

npm install --save-dev<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>stylelint-csstree-validator

Run the following command to check linters

npx stylelint "\*_/_.{css,scss}"

### Deployment

Install and run a live server plugin on your Text editor.

## Authors

👤 **Author1**

- GitHub: [@githubAddis0943](https://github.com/Addis0943) -[LinkedIn](https://www.linkedin.com/in/addis-belete-134b98191/)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

## Show your support

Give a ⭐ if you like this project!

## Acknowledgments

- Hat tip to [Microverse](https://www.microverse.org/) for their readme template

## 📝 License

This project is [MIT](https://opensource.org/licenses/MIT) licensed.


text:
# Docent Base

> The front end application built with ionic.

----
## Dependencies

* Android studio
* Ionic
* Cordova
* Node.js
* TypeScript
* npm
* java jdk 8

----
## Installation
1. git clone https://github.com/EktaFlow/docent-base.git cd docent-base
2. npm install
3. npm install -g cordova ionic (alternative use system package manager for installing these system wide.)
4. Install Android studio + jdk8

### For local testing purposes

> Configure src/services/constants.js:

> 1. export const DocentStorageAccount = "example-storage-account"
> 2. export const SAS = "example-connecting-string"
> 3. export const BackUrl = "http://localhost:4000/"

> Configure config.xml

> Modify config.xml: widget id="com.ionic.docent"

### E2E Testing

> run: npm run cypress

----

## Preparation
> 1. Restore any modifications to config.xml

## Usage
### Build for android

> Read: https://ionicframework.com/docs/v3/intro/deploying/

### Build for Desktop Electron
> 1. Navigate to  docent-base project folder.
> 2. Run ionic build which will generate new static files in docent-base/www
> 3. Download: https://docentpublic.blob.core.windows.net/desktop-docent/docent201.zip
> 5. Unzip into location of choice.
> 6. copy & overwrite content of docent-base/www into unzipped electron app docent/resources/app/www

### Run
> ionic serve

----
## Additional Notes
* Active dev branch -> add/2018-deskbook
* add/2018-deskbook is the branch used for ios build & android.
* desktop builds require a different branch.

repository: EktaFlow/docent-base

gha_language: TypeScript

repo_name: EktaFlow/docent-base


text:
# Hello, web!

We now have a web framework installed.  We need to respond to requests.  Kemal has
[restful web services](http://kemalcr.com/docs/rest/) to make this easy.  We'll
just respond to a request to "hello":

We go back to `/src/stpete_crystal.cr`, and change it up a little:

```crystal
require "./stpete_crystal/*"
require "kemal"

module StpeteCrystal
  # TODO Put your code here
  get "/hello" do |context|
    "Hello, web!"
  end
  Kemal.run

end
```
Notice that we've also `require "kemal"` on the second line to use the shard we installed.

Start the app again `crystal src/stpete_crystal.cr`. You'll notice that, like Puma or Rainbow
for Ruby, the app is now serving http on port 3000.  So you go your browser and take a look
at http:://localhost:3000/hello and see what you get.


text:
---
category: living document
date: 2023-06-24
filename: recs.html
type: post
---

# Recommendations

There are a small number of products or behaviors in my life that, in little ways, are
life-changing. These are them.

## 5.11 Belt

I wear a belt every day. I used to replace them every 1–2 years, then I got [this
belt](https://amzn.to/3ptyErI). That was 10 years ago. I have worn it > 95% of days
since then and it shows nearly no signs of wear. I expect I will never buy another belt.

[Amazon](https://amzn.to/3ptyErI) /
[5.11](https://www.511tactical.com/tdu-belt-15-plastic-buckle.html)

## Micro Four Thirds

Micro Four Thirds is a camera + lens conector and system (like Canon EF or Fujifilm X).
It's an open standard with many companies participating, although the de facto flagships
are OM System (formerly Olympus) and Panasonic.

Its biggest advantage is its high `photo quality : bag space required` ratio. My general
photography archenemy is not having my camera with me; every time I have to settle for
my phone camera I question the point of continuing my photography hobby at all.

Since I switched to micro 4/3 I can bring roughly 2x the gear per bag volume. Or put
another way, I can travel with half the bag volume. For me this means a larger setup
fits in a 20L backpack, a camera + couple lenses fits in a 6L sling, and a camera + lens
squeezes into a 2L chest pouch.

I'm using the Olympus OM-D E-M5 Mark III ([Amazon](https://amzn.to/3PtUO81) / [OM
System](https://explore.omsystem.com/us/en/om-d-e-m5-mark-iii))

## Any Giant Mountable Power Strip

Mounting one of these on the bottom of every desk in the house, paired with [any
cheap](https://amzn.to/3XAxIPa) cable basket, was the easiest form of cable management
I've ever leveraged. Using a skinny frame and allowing for ~double the number of outlets
you actually need means every cable can plug in _where it is_, instead of routing all
cables to a central rat's nest whose residents constantly play musical chairs.

[Amazon](https://amzn.to/44e4c3W) /
[KungFuKingSocket](https://kungfukingsocket.com/products/power-strip-6)

## Noctua Fans

As a [noise-sensitive](autism.html) person whose major hobbies are mostly in front of
computers, silence is important to me in a gaming machine. Noctua makes giant, silent,
brown fans. That's it.

Once I got one I could never switch back. My next build was centered around the giant
fan-based heatsink. That build in that exact state has been purring for six years now. I
haven't even opened it up for cleaning in three. I expect to reuse the same fans for my
next build, whenever it is.

[Amazon](https://amzn.to/3pyrIJU)

## Jetz Scrubz Sponges

These lil buddies are easily a 10x–100x improvement over your traditional yellow and
green sponges in all of these categories: lifespan before being damaged, lifespan before
being permanently gross, tendancy to get temporarily gross, ease of cleaning once
temporarily gross.

They're pricier, but I've found in the long run the life span makes them cheaper.

[Amazon](https://amzn.to/46nSjKq)

# In Search Of

I'm in search of a life-changing product for these categories. Please [email
<EMAIL_ADDRESS>if you have recommendations.

## Water Bottle

I am in search of a reusable water bottle that can last 10+ years with the following
qualities:

- Can last a week of no washing without getting funky
- Is less than ~9cm in diameter (i.e. a comfortable size for a Peak Design Everyday
  Backpack V1 20L cup holder)
- Holds about 1L
- Unlosable lid (i.e. attached to body, even when off)
- Ability to stay cold ~1 day preferred

The closest I ever came was the [Thermos Element 5 32 oz](https://amzn.to/42XJaoR), but
I lost mine and the product has since discontinued.

gha_language: Go


text:
# Python code for the 4th China Physiological Signal Challenge 2021

## What's in this repository?

We implemented a ResNet DNN architecture to classify AF and PAF events from ECG lead signals.

## How do I run these scripts?

The pre-trained model was saved as 'ecg_ResNet.h5'. You can run this baseline method by installing the requirements

    pip install requirements.txt

and running

    python entry_2021.py <data_path> <result_save_path>

where <data_path> is the folder path of the test set, <result_save_path> is the folder path of your detection results.

## How do I run my code and save my results?

 The results will be saved as ‘.json’ files by record. The format is as {‘predict_endpoints’: [[s0, e0], [s1, e1], …, [sm-1, em-2]] }. The name of the result file should be the same as the corresponding record file.

After obtaining the test results, you can evaluate the scores of your method by running

    python score_2021.py <ans_path> <result_save_path>

where <ans_path> is the folder save the answers, which is the same path as <data_path> while the data and annotations are stored with 'wfdb' format. <result_save_path> is the folder path of your detection results.


text:
# Ficus gigantosyce Dugand SPECIES

#### Status
ACCEPTED

#### According to
International Plant Names Index

#### Published in
Caldasia 4:47, fig. 4-5. 1942

#### Original name
null

### Remarks
null

repository: mdoering/backbone

repo_name: mdoering/backbone


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

### Description

In Ericsson BSCS iX R18 Billing & Rating iX R18, MX is a web base module in BSCS iX that is vulnerable to stored XSS via an Alert Dashboard comment. In most test cases, session hijacking was also possible by utilizing the XSS vulnerability. This potentially allows for full account takeover, or exploiting admins' browsers by using the beef framework.

### POC

#### Reference
- http://the-it-wonders.blogspot.com/2020/01/ericsson-bscs-ix-r18-billing-rating.html

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

repository: trickest/cve

repo_name: trickest/cve


text:
---
layout: "alicloud"
page_title: "Alicloud: alicloud_ram_groups"
sidebar_current: "docs-alicloud-datasource-ram-groups"
description: |-
    Provides a list of ram groups available to the user.
---

# alicloud\_ram\_groups

This data source provides a list of RAM Groups in an Alibaba Cloud account according to the specified filters.

## Example Usage

```
data "alicloud_ram_groups" "groups_ds" {
  output_file = "groups.txt"
  user_name = "user1"
  name_regex = "^group[0-9]*"
}

output "first_group_name" {
  value = "${data.alicloud_ram_groups.groups_ds.groups.0.name}"
}
```

## Argument Reference

The following arguments are supported:

* `name_regex` - (Optional) A regex string to filter the returned groups by their names.
* `user_name` - (Optional) Filter the results by a specific the user name.
* `policy_type` - (Optional) Filter the results by a specific policy type. Valid items are `Custom` and `System`. If you set this parameter, you must set `policy_name` as well.
* `policy_name` - (Optional) Filter the results by a specific policy name. If you set this parameter without setting `policy_type`, it will be automatically set to `System`.
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`).

## Attributes Reference

The following attributes are exported in addition to the arguments listed above:

* `groups` - A list of groups. Each element contains the following attributes:
  * `name` - Name of the group.
  * `comments` - Comments of the group.

repository: alibaba/terraform-provider

repo_name: alibaba/terraform-provider


text:
# Administrator Guide

This section provides information on managing and maintaining a staging or
production deployment of JupyterHub. It has considerations for managing
cloud-based deployments and tips for maintaining your deployment.

```{toctree}
:maxdepth: 2
:caption: Administrator Guide

architecture
debug
authentication
services
optimization
security
upgrading/index
../../jupyterhub/customization
troubleshooting
advanced
cost
```

gha_language: Python

gha_license_id: NOASSERTION


text:
# Sheep(Kotlin)
[![CircleCI](https://circleci.com/gh/nEdAy/Sheep.svg?style=svg)](https://circleci.com/gh/nEdAy/Sheep)
[![Cravis-CI](https://travis-ci.org/nEdAy/Sheep.svg?branch=master)](https://travis-ci.org/nEdAy/Sheep)
[![ktlint](https://img.shields.io/badge/code%20style-%E2%9D%A4-FF4081.svg)](https://ktlint.github.io/)
[![Codebeat](https://codebeat.co/badges/da3a4cf5-9f6e-4b43-b635-41f27de23491)](https://codebeat.co/projects/github-com-neday-sheep-master)
[![CodeFactor](https://www.codefactor.io/repository/github/neday/sheep/badge)](https://www.codefactor.io/repository/github/neday/sheep)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d4a5688847884ef3ad8f2b10ca3e9585)](https://www.codacy.com/app/nEdAy/Sheep?utm_source=github.com&utm_medium=referral&utm_content=nEdAy/Sheep&utm_campaign=Badge_Grade)
[![Maintainability](https://api.codeclimate.com/v1/badges/f122c6a7532347c2c64a/maintainability)](https://codeclimate.com/github/nEdAy/Sheep/maintainability)
[![Codecov](https://codecov.io/gh/nEdAy/Sheep/branch/master/graph/badge.svg)](https://codecov.io/gh/nEdAy/Sheep)

[![Join the chat at https://gitter.im/nEdAy/community](https://badges.gitter.im/nEdAy/community.svg)](https://gitter.im/nEdAy/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
![](https://img.shields.io/badge/platform-android-lightgrey.svg)
![](https://img.shields.io/badge/language-kotlin-orange.svg)
![](https://img.shields.io/github/license/nEdAy/Sheep)
[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21)
![](https://img.shields.io/github/issues/nEdAy/Sheep)
![](https://img.shields.io/github/forks/nEdAy/Sheep)
![](https://img.shields.io/github/stars/nEdAy/Sheep)

Sheep, A pure shopping guide App based on Kotlin + MVVM + Retrofit + Coroutines + Coil + LiveData + Lifecycle + Koin

口袋快爆，一款纯粹的电商导购App，基本涵盖了当前 Android 开发最新的主流框架，其基于纯 Kotlin 语言开发，采用 MVVM 架构模式（LiveData + Lifecycle + ViewModel），网络组件依赖 Retrofit、Coroutines的DSL模式、图片加载框架基于 Coil，依赖注入基于 Koin，同时集成配置了 UI 控件、版本更新、网络请求、图片加载、性能监控、日志统计、异常控制等常用依赖库，简单修改定制即可灵活快速的进行 Android 项目研发。

- [Shepherd](https://github.com/nEdAy/Sheep/tree/master) —— Go(Gin)

### English Documentation | [中文文档](https://github.com/nEdAy/Shepherd)

## ScreenShots

## 下载体验

## 技术要点

## 模块说明

## Libraries

### Android Jetpack

* [Lifecycle: Create a UI that automatically responds to lifecycle events.](https://developer.android.com/topic/libraries/architecture/lifecycle)

* [LiveData: Build data objects that notify views when the underlying database changes.](https://developer.android.com/topic/libraries/architecture/livedata)

* [ViewModel: Store UI-related data that isn't destroyed on app rotations. Easily schedule asynchronous tasks for optimal execution.](https://developer.android.com/topic/libraries/architecture/viewmodel)

* ~~[Room: Access your app's SQLite database with in-app objects and compile-time checks.]~~(https://developer.android.com/topic/libraries/architecture/room)

* ~~[Navigation: Handle everything needed for in-app navigation.]~~(https://developer.android.com/topic/libraries/architecture/navigation/)

* ~~[Paging: Makes it easier for you to load data gradually and gracefully within your app's RecyclerView.]~~(https://developer.android.com/topic/libraries/architecture/paging/)

### Http

* [Retrofit2: Type-safe HTTP client for Android and Java by Square, Inc.](https://github.com/square/retrofit)

* [OkHttp: An HTTP+HTTP/2 client for Android and Java applications.](https://github.com/square/okhttp)

### DI

* [KOIN - a pragmatic lightweight dependency injection framework for Kotlin](https://github.com/InsertKoinIO/koin)

* ~~[Kodein-DI: Painless Kotlin Dependency Injection]~~(https://github.com/Kodein-Framework/Kodein-DI)

### ReactiveX

* ~~[RxKotlin: RxJava bindings for Kotlin]~~(https://github.com/ReactiveX/RxKotlin)

* ~~[RxJava2: A library for composing asynchronous and event-based programs using observable sequences for the Java VM]~~(https://github.com/ReactiveX/RxJava)

* ~~[RxAndroid: RxJava bindings for Android]~~(https://github.com/ReactiveX/RxAndroid)

* ~~[RxBinding: RxJava binding APIs for Android's UI widgets.]~~(https://github.com/JakeWharton/RxBinding)

* ~~[RxPermissions: Android runtime permissions powered by RxJava2.]~~(https://github.com/tbruyelle/RxPermissions)

* ~~[RxWeaver: A lightweight and flexible error handler tools for RxJava2.]~~(https://github.com/qingmei2/RxWeaver)

* ~~[AutoDispose: Automatic binding+disposal of RxJava 2 streams.]~~(https://github.com/uber/AutoDispose)

### Functional

* ~~[Arrow: Functional companion to Kotlin's Standard Library.]~~(https://arrow-kt.io/)

### UI

* Constraintlayout

* Material

### Others

* [Kotlinx Coroutines: Library support for Kotlin coroutines.](https://github.com/Kotlin/kotlinx.coroutines)

* [Glide: An image loading and caching library for Android focused on smooth scrolling](https://github.com/bumptech/glide)

* [Flexbox Layout:A library project which brings the similar capabilities of CSS Flexible Box Layout Module to Android.](https://github.com/google/flexbox-layout)

* [MMKV: An efficient, small mobile key-value storage framework developed by WeCha.](https://github.com/Tencent/MMKV)

* [Moshi: A modern JSON library for Kotlin and Java.](https://github.com/square/moshi)

* [Chuck: An in-app HTTP inspector for Android OkHttp clients](https://github.com/jgilfelt/chuck)

* [Doraemonkit: A full-featured App (iOS & Android) development assistant.](https://github.com/didi/DoraemonKit)

* [Android Debug Database: A library for debugging android databases and shared preferences.](https://github.com/amitshekhariitbhu/Android-Debug-Database)

* Bugly CrashReport & Upgrade

* Umeng Analytics

* 阿里百川

## Update Log

## About Me

## Thanks To

- 感谢所有优秀的开源项目

## 声明

**项目中的 API 均来自大淘客联盟-开放平台，纯属学习交流使用，不得用于商业用途！**

## LICENSE

Copyright <2019> <nEdAy>

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.

repository: nEdAy/Sheep

gha_language: Kotlin

repo_name: nEdAy/Sheep


text:
# Learning Terraform
Use terraform to provision AWS infrastructure

The link on the headings wil take you to the branch or tag for the lab.

For official terraform information goto https://www.terraform.io/docs/

In particular the [Get Started Guide](https://learn.hashicorp.com/terraform/getting-started/build) is a good place to start.

# [LAB-01](../../tree/LAB-01) - Set up terraform in Virtualbox
## Install Terraform
* Install Virtualbox
* Install Vagrant
* Have a look at the Vagrant file
    * The provisioner sets up terraform in Ubuntu
* Run vagrant
```
vagrant up
```
* ssh to terraform box
```
vagrant ssh terraform
terraform
```
You should see the terraform usage page :)

## Setup AWS keys
### Create AWS Access keys
* Log into the AWS console.
* Click on your username in the top menu bar
* Select `My Security Credentials`
* On the `AWS IAM Credentials` tab
* Click the `Create Access Key` button
* Copy the `Access Key Id` and the `Secret access key` (You will need to show it first)
  * Alternatively download the .csv file
* Please keep these safe and do not share with anyone
### Create an SSH Keypair
* Use the AWS console to create a new keypair (if you don't have one already)
* Download the .pem and remember the key pair name

### Setup secrets file
Create a file called `secrets.auto.tfvars` in this folder
(note use this name exactly, it has been excuded from git in the .gitignore file)

Add the following lines to it (ensure you surround the values with quotes)
```
# secrets.auto.tfvars
aws_access_key_id = "your access key id"
aws_secret_access_key = "your secret access key"
key_pair_name = "your key pair name"
```

## Run Terraform
In this section you will run terraform initialisation, plan, apply and destroy.

Have a look at the `main.tf` file.

Please change the `Name` and `Creator` tags

Now run the following noting the output from each terraform command.
``` bash
# Make sure you are in the src directory
cd src
terraform init
terraform plan
terraform apply #type yes when prompted
```
Check the EC2 instances in the AWS console your instance should be created in the defauklt VPC.

When you are done please destroy the instance
``` bash
terraform destroy # type yes
```

---
Free to use under [MIT Licence](./LICENCE)

Copyright (c) Mike Scott 2020

repository: MikeAScott/terraform-tutorials

repo_name: MikeAScott/terraform-tutorials


text:
# play-with-sqlite3
Play with sqlite3 and knex.

SEE: [play-with-pg](https://github.com/subuta/play-with-pg) also :)

#### How to setup

```
# Install dependencies
npm i

# Migrate database
npm run migrate

# Seed database
npm run seed

# Run concurrent tests
npm test

# Run serial tests(slower)
npm test-serial
```

#### DB related commands

```
# Generate seed
npx knex seed:make seed_name

# Generate migration
npx knex migrate:make migration_name
```


text:
# SLICKSHOES

On February 14th, 2020 the U.S. Department of Homeland Security (DHS) released a
Malware Analysis Report (MAR-10265965-2.v1) which provided information about a
trojan they referred to as SLICKSHOES. DHS attributed the trojan to a threat
group based in North Korea, often referred to as Hidden Cobra or the Lazarus
Group. SLICKSHOES provides backdoor functionality allowing the attackers remote
access to compromised systems using a custom C2 protocol.

## Network Setup

The dropper and backdoor binaries are Themida packed. Set up two virtual
machines and configure them to be on the same virtual network. Give the mock C2
server the C2 IP address from the malware.

## Links

* [https://www.us-cert.gov/ncas/analysis-reports/ar20-045b](https://www.us-cert.gov/ncas/analysis-reports/ar20-045b)

## IOCs

| Indicator                                                        | Type   | Context             |
|------------------------------------------------------------------|--------|---------------------|
| fdb87add07d3459c43cfa88744656f6c00effa6b7ec92cb7c8b911d233aeb4ac | SHA256 | SLICKSHOES Dropper  |
| 7250ccf4fad4d83d087a03d0dd67d1c00bf6cb8e7fa718140507a9d5ffa50b54 | SHA256 | SLICKSHOES Backdoor |
| 6fa550e835f796a2c95c2d8f2b4db88941cbc7a888e934478e88a274c70acca7 | SHA256 | SLICKSHOES Backdoor |
| <IP_ADDRESS>                                                   | TCP/80 | SLICKSHOES C2       |


text:
---
id: 51
title: Damn you, SElinux!
date: 2012-02-26T01:30:00+09:30
author: James Young
layout: post
guid: http://wordpress/wordpress/?p=51
permalink: /2012/02/damn-you-selinux/
blogger_blog:
  - coding.zencoffee.org
blogger_author:
  - DW
blogger_permalink:
  - /2012/02/damn-you-selinux.html
categories:
  - Technical
tags:
  - linux
---
SElinux is a major security feature in CentOS (and Red Hat).  By default it's in Enforcing mode, which means it enforces all sorts of security restrictions on what processes are allowed to do.  On my Microserver, I've intentionally been running in Enforcing mode so that I can get used to dealing with it, as well as for increased security.

Anyway, my MRTG configuration used to work just fine with CentOS, then when I did an update one day (I think when it went to CentOS 6.1), some parts of my MRTG config broke.  Specifically, the parts that ran scripts which executed commands like 'curl', 'ping' and so on.  The scripts that fetched data from my Mosquitto instance worked just fine.

This was pretty weird, so I left it alone since I didn't hugely need those counters anyway.  Pushing ahead to now, I decided to really have a look at why it wasn't working.  Eventually I worked out that it looks like MRTG has been added to the targeted SElinux setup, and this is what broke it!

To check that, if you have an application that just can't do certain things, doing a "setenforce 0" will temporarily switch SElinux over to Permissive mode.  If the application suddenly starts working, you've got an SElinux problem.  In this case, MRTG needed extra permissions that it doesn't have.

To find out what I needed, I did the following;

  1. Add 'audit=1' to the kernel options in /boot/grub/grub.conf and then reboot.  This causes some pretty verbose logging from SElinux to happen, which is what we want.
  2. Do a 'setenforce 0' to switch to Permissive mode.
  3. 'tail /var/log/audit/audit.log' and look for the timestamp for the setenforce message.  Record it (we'll call it TIMESTAMP from here)
  4. Wait for your MRTG to try and do its thing. Wait until it's completely finished.
  5. 'grep -A 1000 TIMESTAMP /var/log/audit/audit.log > ~/audit.output' .  This will drop out all the SElinux log messages since you changed to Permissive mode.
  6. Read the audit.output file.  Remove any lines that are obviously not related to MRTG.  In my case, there was a heap of stuff about df, ping, and curl.  These are all parts of the scripts that MRTG runs.
  7. Use audit2allow to generate a custom SElinux module with 'cat ~/audit.output | audit2allow -M mrtg_local'
  8. Read mrtg_local.te and make sure that it's sane  It should only be talking about stuff that's MRTG related.
  9. Insert the module into SElinux with 'semodule -i mrtg_local.pp' .
 10. Look at your audit.log and get the timestamp from when the new module was inserted.
 11. Wait for MRTG to run again.  This time you should see nothing appear in the audit log.  If you did, you'll need to strip out the existing module with 'semodule -r mrtg_local' and start again.
 12. Change SElinux to Enforcing mode with 'setenforce 1'.  Wait for MRTG to run and this time it should work AND you should see nothing in the audit log.  If it still doesn't work, start again.
 13. Remove audit=1 from grub.conf and reboot

  So there we have it.  The above generated a custom SElinux module that fits my MRTG configuration and got it all working.  Now I have all my graphs again.

  It's a good security feature, but it does tend to make programs break in weird and wonderful ways when it blocks access.


text:
# MLPerf Inference Benchmarks for Medical Image 3D Segmentation

This is the reference implementation for MLPerf Inference benchmarks for Medical Image 3D Segmentation.

The chosen model is 3D-Unet in [nnUnet](https://github.com/MIC-DKFZ/nnUNet) performing [BraTS 2019](https://www.med.upenn.edu/cbica/brats2019/data.html) brain tumor segmentation task.

## Prerequisites

- [nvidia-docker](https://github.com/NVIDIA/nvidia-docker)
- Any NVIDIA GPU supported by TensorFlow or PyTorch

## Supported Models

| model | framework | accuracy | dataset | model link | model source | precision | notes |
| ----- | --------- | -------- | ------- | ---------- | ------------ | --------- | ----- |
| 3D-Unet | PyTorch | mean = 0.82400, whole tumor = 0.8922, tumor core = 0.8158, enhancing tumor = 0.7640 | last 20% of BraTS 2019 Training Dataset (67 samples) | [from zenodo](???) | Trained in PyTorch using codes from [nnUnet](https://github.com/MIC-DKFZ/nnUNet) on the first 80% of BraTS 2019 Training Dataset. | fp32 | |
| 3D-Unet | ONNX | mean = 0.82400, whole tumor = 0.8922, tumor core = 0.8158, enhancing tumor = 0.7640 | last 20% of BraTS 2019 Training Dataset (67 samples) | [from zenodo](???) | Converted from the PyTorch model using ??? script. | fp32 | |

## Disclaimer
This benchmark app is a reference implementation that is not meant to be the fastest implementation possible.

## TODO

[ ] Update the models (PyTorch and ONNX) to the final volume size (160, 224, 224).
[ ] Upload the models to Zenodo, and fill in Zenodo link, and modify Makefile so that it downloads models from Zenodo.
[ ] Update the accuracy metric.
[ ] Add PyTorch -> ONNX script.
[ ] Update the onnxruntime in the docker container to a version which supports 3D ConvTranspose op.

## Commands

Please download [BraTS 2019](https://www.med.upenn.edu/cbica/brats2019/data.html) separately and unzip the dataset.

Please run the following commands:

- `export DOWNLOAD_DATA_DIR=<path/to/MICCAI_BraTS_2019_Data_Training>`: point to location of downloaded BraTS 2019 Training dataset.
- **Temporary:** Download the (192, 224, 192) PyTorch model named `fold_4.zip` to `build/result/`.
- **Temporary:** Download the (192, 224, 192) ONNX model named `192_224_192.onnx` to `build/`.
- `make setup`: initialize submodule and download models.
- `make build_docker`: build docker image.
- `make launch_docker`: launch docker container with an interaction session.
- `make preprocess_data`: preprocess the BraTS 2019 dataset.
- `python3 run.py --backend=[pytorch|onnxruntime] --scenario=[Offline|SingleStream|MultiStream|Server] [--accuracy]`: run the harness inside the docker container. Performance or Accuracy results will be printed in console.

## Details

- SUT implementations are in [pytorch_SUT.py](pytorch_SUT.py) and [onnxruntime_SUT.py](onnxruntime_SUT.py). QSL implementation is in [brats_QSL.py](brats_QSL.py).
- The script [brats_eval.py](brats_eval.py) parses LoadGen accuracy log, post-processes it, and computes the accuracy.
- Preprocessing and evaluation (including post-processing) are not included in the timed path.
- The input to the SUT is a volume of size `[4, 192, 224, 192]`. The output from SUT is a volume of size `[4, 192, 224, 192]` with predicted label logits for each voxel.

## License

Apache License 2.0


text:
## Update Azure Inventory and Configuration Connections

To update a default connection to v1.9.6, execute the following SQL:

~~~
ALTER TABLE azure_collect_sql_servers_auditing_settings DROP COLUMN subscription_id;
~~~

repository: snowflakedb/SnowAlert

repo_name: snowflakedb/SnowAlert


text:
## code 128 barcode in C# using ByteScout Barcode SDK

### code 128 barcode in C#

On this page you will learn from code samples for programming in C#. ByteScout Barcode SDK was made to help with code 128 barcode in C#. ByteScout Barcode SDK is the robost SDK that generates high quality barcode images and pdf. Can generate all popular types of barcodes from QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix to more exotic barcode types. Fully customizable fonts, colors, print sizes. Includes special functions to ensure output quality, and tools for adding barcodes to new or existing pdf files and images.

This rich sample source code in C# for ByteScout Barcode SDK includes the number of functions and options you should do calling the API to implement code 128 barcode. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Use of ByteScout Barcode SDK in C# is also explained in the documentation included along with the product.

Free trial version of ByteScout Barcode SDK is available on our website. Get it to try other samples for C#.

## Get In Touch

[Click here to get in touch](https://bytescout.zendesk.com/hc/en-us/requests/new?subject=ByteScout%20Barcode%20SDK%20Question)

or send email to [support@bytescout.com](mailto:support@bytescout.com?subject=ByteScout%20Barcode%20SDK%20Question)

## Free Trial Download

[Get Your 60 Day Free Trial](https://bytescout.com/download/web-installer?utm_source=github-readme)

## Web API (On-demand version)

[Get your free API key](https://pdf.co/documentation/api?utm_source=github-readme)

## API Documentation and References

[Explore ByteScout Barcode SDK Documentation](https://bytescout.com/documentation/index.html?utm_source=github-readme)

[Explore Web API Documentation](https://pdf.co/documentation/api?utm_source=github-readme)

[Check Free Training Sessions for ByteScout%20Barcode%20SDK](https://academy.bytescout.com/)

## Video Review

[https://www.youtube.com/watch?v=REnj3A-oSPI](https://www.youtube.com/watch?v=REnj3A-oSPI)

repository: repohoarder/ByteScout-SDK-SourceCode

path: /BarCode SDK/C#/Code 128 Barcode/README.md

repo_name: repohoarder/ByteScout-SDK-SourceCode


text:
---
layout: post
title: OpenFlow Version RoadMap
categories: SDN
tags:
- SDN
---

Currently I'm preparing for **ONF Certified Network Associate** exam. One of the impotant topic for this exam is to understand **OpenFlow** protocol.
OpenFlow is the *defacto* standard to interface OpenFlow controller & OpenFlow enabled network elements.

However, this **OpenFlow** protocol had undergone number of changes since its inception. While the differences b/w each version and the features introduced / depreciated in each version can be readily available by reading the OpenFlow specificiations, it would be well understood / recollected, if presented in a pictorial format.

Hence in this post, I'm attaching 2 pics that depicts the comparison of different OpenFlow versions along with their timeline.

* ## Feature-set comparison

* ## Time-line


text:
![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)

# IEat

## Description

An application that lets users input their dietary restrictions, calories, and diet to generate a weekly meal plan with recipe instructions and list of all ingredients needed to go shopping.

## Table of Contents

- [Application](#application)
- [Technologies Used](#technologies-used)
- [Installation](#installation)
- [Questions](#questions)
- [License](#license)

## Application

To view the deployed application on Heroku, visit:
https://ieat-jk.herokuapp.com/

## Technologies Used

- MySQL
- Node.js
- Express
- Sequelize
- UIkit
- Spoonacular API
- Passport npm

## Installation

Download all files and open server.js to initiate the server.
The application is invoked with the following command:

```sh
node server.js
```

Make sure to install the dependencies included in the package.json file.
Installation of these dependencies can be completed with the following command:

```sh
npm i
```

## Questions

If you have any questions, feel free to reach out!

 GitHub: airazabal92

 GitHub: jekwanjk

 GitHub: CodeGirl0511

## License

Licensed under the [MIT](https://github.com/microsoft/vscode/blob/master/LICENSE.txt) license.


text:
# Multiple View Geometry

This section is heavily based on the contents of @hartley2003multiple.

## Epipolar geometry

The projections of a 3D point $\mathbf{x}$ over images are always related by the fundamental matrix $\mathbf{F}$.

$$ \mathbf{x'^T}\mathbf{F}\mathbf{x} = 0 $$

![](../figures/epipolar.svg "Epipolar constraints between two camera view")

Adding intrinsic parameters with $\mathbf{K}$ to the fundamental matrix gives a metric "object" such that the image points can be related by the essential matrix $\mathbf{E}$.

$$ \mathbf{\hat{x}'^T}\mathbf{E}\mathbf{\hat{x}} = 0 $$
$$ \mathbf{\hat{x}} = \mathbf{K}\mathbf{x} $$
$$ \mathbf{E} = \mathbf{K}^T\mathbf{F}\mathbf{K} $$

This matrix links the relative position of the cameras to the fundamental matrix. Camera poses can be recovered using SVD decomposition.

$$ \mathbf{E} = \mathbf{U} \mathbf{\Sigma} \mathbf{V}^T $$

where $\mathbf{U}, \mathbf{V}, \mathbf{\Sigma} \in \mathbb{R}_{3 \times 3}$. The first two matrices are orthogonal while the last one is a diagonal matrix with the diagonal entries as the singular values of $\mathbf{E}$ which, according to the internal constraints of the essential matrix, must consist of two identical and one zero value.

$$ \mathbf{\Sigma} = \begin{pmatrix} s & 0 & 0 \\ 0 & s & 0 \\ 0 & 0 & 0 \end{pmatrix} $$

By defining a helper matrix $\mathbf{W}$ as

$$ \mathbf{W} = \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix} \rightarrow \mathbf{W}^{-1} = \mathbf{W}^T = \begin{pmatrix} 0 & 1 & 0 \\ -1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix} $$

the rotation matrix $\mathbf{R}$ and translation vector $[\mathbf{t}]_{\times}$ can be computed as

$$ \mathbf{R} = \mathbf{U} \mathbf{W}^{-1} \mathbf{V}^{T} $$
$$ [\mathbf{t}]_{\times} = \mathbf{V} \mathbf{W} \mathbf{\Sigma} \mathbf{V}^{T} $$

In some cases an alternative formulation of the translation vector can be used if $\mathbf{\Sigma}$ does not completely fulfill the constraints of real world data:

$$ [\mathbf{t}]_{\times} = \mathbf{V} \mathbf{W}^{-1} \mathbf{V}^{T}$$

If the scene is planar ($\mathbf{T} = 0$) the points are related by a simple homography $H$ such that $\mathbf{x}'=\mathbf{H}\mathbf{x}$

## Triangulation

The triangulation problem consists of computing the 3D point $\mathbf{X}$ from two point $\mathbf{x}, \mathbf{x}'$ and the camera projection $\mathbf{P}, \mathbf{P}'$ from two different views. The problem is that in the presence of noise back projected rays do not intersect. There are different solutions according to @hartley1997triangulation

![](../figures/triangulation.svg "The triangulation problem")

- Compute the mid-point of the shortest line between the two projection rays using vector
- Compute the **linear** triangulation using linear algebra, where $X$ can be solved up to scale. However the value being minimized has no geometric meaning and multiplying the equations by some weights will change the solution. The **iterative** approach reweights the linear equations adaptively so that this equations correspond to errors in point coordinates. The main advantage of these methods is that they are easy to implement but convergence is not always guaranteed. The iterations can be applied over two different linear methods:
    * **Eigen**: find $\mathbf{x}$ which minimize $||Ax||, ||x|| = 1$. The solution is the unit eigenvector corresponding to the smallest eigenvector of the matrix $A^TA$ computed using SVD.
    * **Least-Squares**: representing $x = (x, y, z, 1)$ the set of homogeneous equations $\mathbf{A}\mathbf{x} = 0$ can be reduced to 4 non-homogeneous equations in 3 unknowns. SVD or pseudo-inverses can be used to solve this problem.
- Minimizing a statistical error (optimization): the aim is to estimate a $\mathbf{\hat{X}}$ from $\mathbf{x}$, \mathbf{x}'$ which minimizes the reprojection error using $d$ as the euclidean distance between two points.

$$ C(\mathbf{x}, \mathbf{x}') = d(\mathbf{x}, \hat{\mathbf{x_i}})^2 + d(\mathbf{x}', \hat{\mathbf{x_i}'})^2 $$

Even when minimization appears to be over the three parameters of $\mathbf{X}$, it can be reduced to just a single parameter.

### Direct Linear Transform

Triangulation can be applied from two to $n$ views so that there are more equations to overdetermine the linear system. In such case, the Direct Linear Transform (DLT) algorithm can be applied:

![](../figures/triangulation-n.svg "Triangulation of a point seen from multiple views")

1. For each correspondence $(\mathbf{x},\mathbf{x}')$ build matrix $\mathbf{A}_i$ with at least the first two rows
2. Join $2n \times 9$ matrices $\mathbf{A}_i$ into a single $\mathbf{A}$
3. Compute the $SVD(\mathbf{A})$
4. The solution for $\mathbf{h}$ is the last column of $V$
5. Determine $\mathbf{H}$ from $\mathbf{h}$

In order to guaranteed method stability since DLT is not invariant, it is recommended to normalize coordinates in both images independently before applying DLT and denormalize after.

1. Translate centroid to the origin
2. Scale to a $\sqrt{2}$ average distance to the origin

The resulting matrix to apply will be:

$$ \mathbf{T}_{norm} = \left[ \begin{matrix} w \times h & 0 & w/2 \\ 0 & w \times h & h/2 \\ 0 & 0 & 1 \end{matrix} \right]$$

repository: fradelg/phd-thesis

repo_name: fradelg/phd-thesis


text:
# RLSpinner

[![CI Status](https://img.shields.io/travis/Rflpz/RLSpinner.svg?style=flat)](https://travis-ci.org/Rflpz/RLSpinner)
[![Version](https://img.shields.io/cocoapods/v/RLSpinner.svg?style=flat)](https://cocoapods.org/pods/RLSpinner)
[![License](https://img.shields.io/cocoapods/l/RLSpinner.svg?style=flat)](https://cocoapods.org/pods/RLSpinner)
[![Platform](https://img.shields.io/cocoapods/p/RLSpinner.svg?style=flat)](https://cocoapods.org/pods/RLSpinner)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

## Installation

RLSpinner is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'RLSpinner'
```

## Author

Rflpz, rflpzde

## License

RLSpinner is available under the MIT license. See the LICENSE file for more info.

repository: Rflpz/RLSpinner

repo_name: Rflpz/RLSpinner


text:
# OpenCVColor

[Built with :yellow_heart: and :coffee: in San Francisco](http://getmingle.io)

OpenCV is a great library for writing Computer Vision software. However, OpenCV's HSV format is different than what you would expect! This gem trys to learn HSV color range from sample images for your OpenCV program to detect color.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'opencv-color'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install opencv-color

## Usage

    Usage: opencv-color [options] <sample images directory path>
        -f, --format [FORMAT]            Output format 'yaml' or 'objc', default is yaml
        -h, --help                       Show this message

Put your color sample images into the following structure:

* color samples root directory
  * color name
    * color sample image files

See color-samples directory as example.

Run opencv-color command to extract color range data:

    opencv-color <color samples root directory> > color-data.yml

The output data is a YAML dump of a Ruby Hash object:

    {color name => {low: HSV color CvScalar array format, high: HSV color CvScalar array format}}

Use the data in your application, the following example uses ruby-opencv gem:

    include OpenCV

    colors = YAML.load(File.read('color-data.yml'))
    low = CvScalar.new(*colors['blue']['low'])
    high = CvScalar.new(*colors['blue']['high'])

    image = IplImage.load('picture.png', CV_LOAD_IMAGE_ANYCOLOR | CV_LOAD_IMAGE_ANYDEPTH)
    image.BGR2HSV.in_range(low, high)
    ....

## Contributing

1. Fork it ( https://github.com/xli/opencv-color/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

repository: xli/opencv-color

repo_name: xli/opencv-color


text:
# RequestsCombine

Requests is a set of protocols and Combine publishers that makes integrating network requests easy. It uses a declarative style of defining a request, its result type, error type, as well as constructing the `URLRequest` and processing the data received, all in a single file. These requests can then be instantiated, configured, and will vend a publisher to execute the network request.

This enables testing the construction of a network request separately from how it is executed. The `URLRequest` construction, data processing, and error mapping can all be tested separately without a network connection or mocked `URLSession`.

---

## Installation

Install using the Swift Package Manager.

---

## Documentation

### Request

`Request` is the base protocol, which defines the `Success`/`Failure` types, a factory method to construct a `URLRequest`, and a function to map any upstream `Error`s to the `Request`'s `Failure` type.

`DataRequest` returns the raw data received by the network request. Implementors are free to do whatever they need to in order to transform the data to the desired `Success` type.

`DecodableRequest` allows for direct deserialization of `Decodable` objects, and also declares a `makeDecoder()` func to provide a custom `JSONDecoder`.

---

## Usage

* Create a request type that conforms to `DataRequest` or `DecodableRequest`
* Specify the `Success`/`Failure` typealiases
* Implement `makeURLRequest()`
* If you are implementing `DataRequest` directly, implement `processData()`, otherwise `DecodableRequest` provide a default implementation of this method

Example:

    struct Recipe: Decodable {
        let name: String
        let ingredients: [String]
        let steps: [String]
    }

    struct RecipeRequest: DecodableRequest {
        typealias Success = Recipe
        typealias Failure = Error

        let recipeId: String

        func makeURLRequest() -> Void {
            let url = URL(string: "https://recipes.com/fakeapi/recipe/\(recipeId)")!
            let urlRequest = URLRequest(url: url)
            return urlRequest
        }
    }

Now you have a `RecipeRequest` that returns a `Recipe` on success, execute it by creating a publisher and calling `sink()`:

    var cancellables: Set<AnyCancellable> = []

    let request = RecipeRequest(recipeId: "1")
    request.publisher().sink { result in
        if case let .failure(error) = result {
            print(error)
        }
    } receiveValue: { recipe in
        print("Recipe name: \(recipe.name)")
    }.store(in: &cancellables)

repository: danielbyon/RequestsCombine

repo_name: danielbyon/RequestsCombine


text:
---
layout: post
cover: 'assets/images/a_fingerprint.png'
navigation: True
title: The hash functions
date: 2016-06-14 10:30:00
tags: cryptography
subclass: 'post tag-cryptography'
logo: 'assets/images/innovea-tech-white.svg'
author: sebastien
categories: sebastien
disqus: true
---

# What is a hash function ?

A hash function takes any string as input and computes a fixed size fingerprint.

The hashes of two equal messages are equal. If the hashes of two strings are equal, it does not imply that the two strings are equal.

When the hashes of two different strings are equal, it is called a collision.

# What the hash functions are used for ?

The hash functions are used to generate a fingerprint of a string, which is easier to manipulate than the initial string. If the two hashes are different, then the two input strings are different.

For example, if we want to check if two big files are different, it is easier to compare their hashes. If their hashes are different, it means the two files are different.

# What are the properties of a secure hash function (from a cryptographic point of view) ?

The properties of a secure hash function from a cryptographic point of view are the following:

- the function must be collision free, ie nobody can find two different string having the same hash value;
- the function must have the hiding property, ie given a hash, it is infeasible to find the initial string having this hash;
- the function must be puzzle-friendly, ie given a hash, it is infeasible to build a string having the same hash;

For more details, please refer to:
- [wikipedia](https://en.wikipedia.org/wiki/Cryptographic_hash_function),
- [the excellent following course](https://www.coursera.org/learn/cryptocurrency) from Princeton University

# Examples of hash

We will use the md5 algorithm for the following examples.

Let's create first a file hello-world.txt, with the text "Hello World !!!".

To compute the hash, we execute the following command:

```
openssl dgst -md5 hello-world.txt
```

The result is:

```
MD5(hello-world.txt)= feee1b4f67bef56d54b39b3e5bf5ce85
```

If we change the text in the file hello-world.txt from "Hello World !!!" to "hello World !!!", the hash becomes:

```
MD5(hello-world.txt)= be5d0c1c01d30347d47253ef183bb4a0
```

The md5 algorithm is no more used in cryptography, because it is possible to create collisions.

repository: sebastien-attia/sebastien-attia-notes

repo_name: sebastien-attia/sebastien-attia-notes


text:
# Multiple Capture Re-Capture Power Analysis

This application assists with power analysis for multiple capture recapture studies. It does this by simulating many study samples from a posited true population. The distribution of the estimates calculated from those studies provides information about the bias and variability of the estimates.

The full manual is available at: [Manual](https://fellstat.github.io/shinyrecap/)

repository: fellstat/shinyrecap

repo_name: fellstat/shinyrecap


text:
# Auto-M365-ATP

This script automates a lot of the set up process of M365 ATP and Exchange Online. This is not the first itteration of this script, and I have been making steady adjustments to it for a few months now based on customer feedback. I beleive it is safe to deploy just about anywhere and is a great place to start with M365 ATP.
This script is safe to run after communicating what ATP is to the client and setting expectations. It's not majorly disruptive, but it'd a good idea to let the customer know.

# Prerequisites
- Make sure you have all powershell modules installed and updated.
- Make sure you have an alerting mailbox you would like to use for receiving alerts from your customer's tenant.
- Make sure you modify the script variables (in the begining of script) to include your MSP's Domain and add any email addresses which should be whitelisted by default.
- Make sure your Customer's Global Admin account is licensed for a mailbox. (Not required, but highly recomended to receive alerts) We like to use M365 F3 that way we can join computers to AAD with all the sweet Intune features, AAD P1, and the account gets a small mailbox for forwarding. (Cost for CSP MSP's.. something like $6.80 a month? Worth it!)

# The following items will be configured automatically:

- Mail Forwarding to MSP from the Customers Admin Mailbox
  - Disable Junk folder on mailbox
  - Create 'Allowed Outbound Forwarding' policy for only this mailbox
  - Automatically forward all received mail

- Anti-Mailware
  - Block certain file types in attachments (Adds Unique file-types instead of overwriting the existing.)
  - Enable ZAP
  - Send policyTips to users and external senders when their mail is found to contain malware

- Anti-Phishing
  - Ingest the current default whitelist / blacklist and apend it to the script. (No need to recreate your whitelisted senders list)
  - Block all external senders with names matching internal users
  - Protect all customer domains
  - Move Suspected phishing to quarantine
  - Set Anti-Phish agressiveness to level 2 (out of 4)

- Anti-Spam (Inbound and Outbound + Admin vs Everyone Else)
  - It's easier to review the actual script if you interested in the configuration for this policy. It has been tuned to what I find is most impactful and least disruptive to clients so it is NOT agressive.
  - WILL NOT DELETE your current whitelists or blocklists under the default Anti-Spam. Will only add values to it.
  - This policy is super easy to adjust in the GUI after the deployment in case customer finds it too aggressive or too lax.
  - Inbound mail policy includes default values I found work well to protect users across the organization, Including the following:
    - Bulk-Mail threshold set to 6. Ths is the sweet spot for us becuase it blocks the badly behaving bulk mail, but anything above 6 will also block SendGrid.
    - No limits set on outbound for end usrs, but alerting is enabled when thresholds are reached.
    - Admin have absolutely no limits. Both incoming and outgoing mail is unmolested. (Except link-requiting. This is set by org level)
    - Very trigger happy with the quarantine. I prefer to not deliver mail to a customer by default, and let them decide if it needs to be delivered.
  - Outbound policy will not stop users from sending outbound mail, but will trigger an alert when over 100 recepients are emailed in a short period of time. This can be great for identifying suspicious behavior but not getting in the way of users who occasionally send bulk mail.

  - Disable all filtering and rules for Global Admin Mailbox - Inbound and Outbound.

- Safe Attachments
  - Scan and Dynamically Deliver attachments in E-Mail messages. ( This policy will deliver the email, but hold the attachment until the scan is complete. It doesn't take long, but some customers may find this annoying. If that's the case, just change the setting [ 'Action' =  "DynamicDelivery"; ] to "Block". I quite enjoy the dynamic delivery, and it lets you preview the attachment in web view in a sandbox.

- Safe Links
  - Scan and re-write links with M365 ATP platform
  - Track user clicks and generate reports of sus websites

!! Be sure to adjust the Default whitelisted domains and senders, as well as your MSP's Alerts Address before deploying this script. !!

I do this in my free time and do not benifit from this, other than knowing customers around the world will miss a few phishing emails and therefore be safer becuase of my work. If I ended up saving your MSP some time and energy, or even brought you the solution you've been looking for, buy me a beer! I like hazy IPA's ;D

paypal.me/aivantsov

license: Unlicense


text:
# Cython image

Create a Cython image needed to compile pythond code from uuid.py to a static binary: `[DOCKER_USER=...] ./build.sh`

# Compilation

Do the actual compilation: `[DOCKER_USER=...] ./compile.sh`.

# TODO

The final binary *is* indeed static, but seems to be broken using `alpine` image, so this needs more investigation.

This is probably due to missing Python data files, that are needed by this static binary.

repository: sitedata/da-ds

repo_name: sitedata/da-ds


text:
# GMDB (Galvanize Movie Database)

**Movie** = { id | title | yearReleased | genre | runtime | rating | *reviews* | *ratings* }

**Review** = { id | title | creationDate | text | *user* }

**Rating** = { id | score | *user* }

**User** = { id | username | password | roles | *watchList* | *watched* }

## Http Requests

### Visitor

* **/movies - GET**
List of all movies

* **/movies/{movieid} - GET**
Details/Information about each movie and list of reviews

* **/reviewer/{username} - GET**
Reviewer details and list of their reviews and ratings

### Reviewer

* **/movies/{id}/reviews - POST**
Write a review

* **/reviews - PUT**
Update a review

* **/movies/{movieId}/reviews/{reviewId} - DELETE**
Delete review

* **/movies/{id}/ratings - POST**
Write a review

* **/ratings - PUT**
Update a rating

* **/movies/{movieId}/ratings/{ratingId} - DELETE**
Delete rating

* **/user/{username}/watchlist/ - POST**
Add movie to user movie list

* **/user/{username}/watchlist/{id} - DELETE**
Add movie to user movie list

* **/user/{username}/watched/ - POST**
Add movie to user watched list

* **/user/{username}/watched/{id} - DELETE**
Add movie to user watched list

### ADMIN

* **/movies/{id} - DELETE**
Delete movie

* **/signup - POST**
Register for an account

* **/token/authenticate - POST**
Generate Json Web Token

repository: TheRealCoolKids/GMDB

repo_name: TheRealCoolKids/GMDB


text:
---
title:  The Universality of the Gospel
date:   20/05/2018
---

`Read Revelation 14:6, Matthew 24:14, 28:19. What is the similar theme found in these texts? How do these texts together help us understand how important outreach and witness are to our purpose as a church?`

In a sense, one can say that the first angel’s message is the Great Commission (Matt. 28:19) now given in the context of the last days. It is, indeed, “present truth”.

Notice that all three texts place an emphasis on outreach to all the world, to “all the nations”, and to “every nation, tribe, tongue, and people”. In other words, this message is universal in scope. Every person needs to hear it.

`Read Galatians 3:22. What does this text say that helps us understand why all the world needs to hear the gospel?`

The universality of sin explains the universality of our mission and calling. “Every nation, tribe, tongue, and people” has done wrong, has violated God’s law, and has been “confined under sin”. Adam’s fall in Eden has impacted every human being; no nation or tribe or people has been immune. We all face the immediate consequences of sin, and unless a remedy was provided, we all would face the ultimate consequence: eternal death.

That remedy, of course, has been provided: the life, death, resurrection, and heavenly sanctuary ministry of Jesus, who is the only solution to the sin problem. Everyone needs to know the great hope of what God has offered them in Jesus Christ. This is why Seventh-day Adventists have gone throughout all the world, seeking to bring the message of Jesus to those who have not yet heard it.

`Why is spreading the gospel message to others so spiritually beneficial for those doing it? That is, why is reaching out to others one of the best ways to be prepared for the coming of Jesus?`

repository: Adventech/sabbath-school-lessons

branch_name: refs/heads/stage

repo_name: Adventech/sabbath-school-lessons


text:
Paul is a simple commandline tool to push notifications to your iOS device that has Prowl.app installed

[Prowl](http://www.prowlapp.com)
[Prowl.app for iOS](https://itunes.apple.com/de/app/prowl-easy-push-notifications/id320876271?l=en&mt=8)

# Install
```
python3 setup.py install
```

# Usage

```
paul -h
```

```
echo "apikeyhere" > ~/.paul
paul -e "event name" -d "description"
```

```
paul -k "apikeyhere" -e "event name" -d "description"
```

repository: trytuna/paul

repo_name: trytuna/paul


text:
# Ctest

This bash script is used for comparing the output from the program written in C with the correct output.

# Why I created this?

I needed to automate the testing process, while I was doing my homeworks in the subject [PA1](https://github.com/MartinTam/PA1) (Programming and algorithmic 1) at [FIT CTU Prague](https://fit.cvut.cz/cs).

# How to use it:

  1. Put this script inside the directory next to your program and the compiled file of your program.

  2. Make sure that inside this directory there is another directory called 'data', where you've got all your
     correct input and output files with the same name and ending with either '.in' or '.ref'.

  3. Execute this script with the compiled file of your program as an argument.

# Example

    bash Ctest.sh compiledFile.out

# How it looks like:

![Screenshot](/images/screenshot.png)

# License

The code is available under the [MIT](https://github.com/MartinTam/Ctest/blob/master/LICENSE) license.

repository: MartinTam/Ctest

repo_name: MartinTam/Ctest