text:
### Updates for version 2.1.3
* Deprecating functions that will be removed, renamed, or have significant changes to syntax or functionality in the forthcoming textmineR v3.0.
* Functions slated for deletion:
  - RecursiveRbind
  - Vec2Dtm
  - JSD
  - HellDist
  - GetPhiPrime
  - FormatRawLdaOutput
  - Files2Vec
  - DepluralizeDtm
  - CorrectS
  - CalcPhiPrime
* In addition: FitLdaModel is going to change significantly in its functionality and argument calls.

### Updates for version 2.1.2
* Deprecated RecursiveRbind - it depended on a deprecated function from the Matrix package. And the replacement offered by Matrix operates recursively, making this function truly superfluous.

### Updates for version 2.1.1
* Corrected some code in the vignettes that caused errors on Linux machines.

### Updates for version 2.1.0
* Added vignettes for common use cases of textmineR
* Modified averaging for `CalcProbCoherence`
* Updated documentation to `CreateTcm`

### Updates for version 2.0.6
* Back-end changes to CreateTcm in response to new `text2vec` API. Functionality is unchanged.
* Changes to how the package interfaces with Rcpp

### Updates for version 2.0.5
* Add `verbose` option to `CreateDtm` and `CreateTcm` to surpress status messages.
* Add function `GetVocabFromDtm` to get `text2vec` vocabulary object from a `dgCMatrix`
  document term matrix.

### Updates for version 2.0.4
* Patching errors introduced in version 2.0.3

### Updates for version 2.0.3

* Patches to `CreateDtm` and `CreateTcm` in response to updates to `text2vec`.
* More formal update to take advantage of `text2vec`'s latest optimizations to follow.

### Updates for version 2.0.2

* Patched `CreateDtm` and `CreateTcm`. remove_punctuation now supports non-English
  characters.
* Patched `TmParallelApply`. Added an option to declare the environment to search
  for your export list. Default to that argument just searches the local
  environment. The default should cover ~95% of use cases. (And avoids crash on
  Windows OS)
* Patched `FitLdaModel`. Use of the `...` argument now allows you to control
  `TmParallelApply`, `lda::lda.collapsed.gibbs.sampler`, and `topicmodels::LDA`
  without error.
* Patched `FitCtmModel` where the `...` argument now goes to `topicmodels::CTM`'s
  `control` argument.
* Patched `CreateTcm` to return objects of class `dgCMatrix`. This allows you to
  run functions like `FitLdaModel` on a TCM.
* Switched from irlba to RSpectra for LSA models because RSpectra's
  implementation is much faster.

### Updates for version 2.0.1

* Patched CreateDtm and CreateTcm. An error caused stopwords to not be removed

### Updates for version 2.0.0

* Vec2Dtm is now deprecated in favor of CreateDtm
* A function, CreateTcm, now exists to create term co-occurence matrices
* CreateDtm and CreateTcm are implemented with a parallel C++ back end through the text2vec library
  - the implementation is _much_ faster! I've clocked 2X - 10X speedups, depending on options
  - adds external dependencies - C++ compiler and GNU make - and takes away an external
    dependency - Java.
  - now _all_ tokens will be included, regardless of length. (tm's framework silently
    dropped all tokens of fewer than 3 characters.)
* Allow generic stemming and stopwords in CreateDtm & CreateTcm
  - Now there is only one argument for stopwords, making it clearer how to use
    custom or non-English stopwords
  - Now the stemming argument allows for passing of stem/lemmatization functions.
* Function for fitting correlated topic models
* Function to turn a document term matrix to term co-occurence matrix
* Allowed LabelTopics to use unigrams, if you want. (n-grams are still better.)
* More robust error checking for CalcTopicModelR2 and CalcLikelihood
* All function arguments use "_", not ".".
* CalcPhiPrime replaces (the now deprecated) GetPhiPrime
  - Allows you to pass an argument to specify non-uniform probabilities of each
    document
* Similarly, CalcHellingerDist and CalcJSDivergence replace HellDist and JSD.
  This is to conform to a naming convention where functions are "verbs".

### Updates for version 1.7.0

* Added modeling capability for latent semantic analysis in FitLsaModel()
* Added CalcProbCoherence() function which replaces ProbCoherence() and can calculate
  probabilistic coherence for the whole phi matrix.
* Added data from NIH research grants instead of borrowd data from tm
* Removed qcq data
* Added variational em method for FitLdaModel()
* Added function to represent document clustering as a topic model Cluster2TopicModel()

### Updates for version 1.6.0

* Add deprecation warning to ProbCoherence
* Allow for arguments of number of cores to be passed to every function that
  uses implicit parallelziation
* Allow for passing of libraries to TmParallelApply (makes this function truely
  independent of textmineR)
* For Vec2Dtm ensure that stopwords and custom stopwords are lowercased
  when lower = TRUE
* Update README example to use model caches

repository: pbronez/textmineR

repo_name: pbronez/textmineR


text:
# Vagrant minikube
Vagrant box with Minikube provisioning scripti for the VirtualBox provider.

## Usage
To start an Ubuntu 16.04.4 LTS "Xenial" virtual machine with ```minikube``` and ```kubectl```, simply run
``` bash
vagrant up
```

## Notes
To let Vagrant check if Virtualbox Extensions are up to date and automatically update them if necessary, install the ```vbguest``` plugin as follows:
``` bash
vagrant plugin install vagrant-vbguest
```

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
# Installing the Agoric SDK

To write JavaScript smart contracts using the Agoric Zoe framework, first install the Agoric Software
Development Kit (SDK). The Agoric SDK is currently supported on MacOS, Linux, and Windows Subsystem for
Linux (WSL). There is currently **no support** for native Windows 10 or native Windows 11.

After installing the Agoric SDK, you can proceed to [starting a project](./start-a-project.md) with
the Agoric CLI to create and deploy [smart contracts](./deploying.md).

## Quick Start

If you're familar with JavaScript development tools such as `node`, `yarn`, and `git`:

```shell
go version # Version 1.20.3 or higher
node --version # LTS version such as 18.16.0
npm install --global yarn # Install yarn for package management
git clone --branch community-dev https://github.com/Agoric/agoric-sdk # Clone the "community-dev" branch
cd agoric-sdk
yarn install # Asks yarn to install all the dependant node packages
yarn build # Builds the agoric-sdk packages
(cd packages/cosmic-swingset && make) # Builds the cosmic-swingset package
yarn link-cli ~/bin/agoric # Creates an executable script
agoric --version # Prints the version number of the SDK
```

Now you are ready proceed to [starting a project](./start-a-project.md).

If `agoric` is not found, then you may need to add the parent directory of where your `yarn link-cli` command created a folder. For example, if you created a folder called `Agoric` in your `~/bin` directory, you may need to add `~/bin` to your PATH.

::: tip Watch: Prepare Your Agoric Environment (November 2020)
This presentation is a good overview of the Agoric SDK setup process,
though a few details are out of date:

- node version: 12.x is too old; use the LTS version 18.16.0 or a later LTS version
- skip `git checkout hackathon-2020-11`; use the `community-dev` branch

**Note:** Video omits adding the Agoric SDK to your PATH.
:::

## Platform: Linux Shell or Equivalent

The Agoric SDK is supported on Linux, MacOS, and Windows Subsystem for Linux (WSL).

- To open a terminal on MacOS, see **Applications>Utilities>terminal** in the **Finder**.
- To launch a terminal on Linux, use the **Terminal** application.
- To access WSL from Windows, visit the [WSL documentation](https://docs.microsoft.com/en-us/windows/wsl/).

## Install Go

Download Go from [go.dev/doc/install](https://go.dev/doc/install) and follow the instructions for your platform.

```shell
go version # Version 1.20.3 or higher
```

## Install Node.js

Download Node.js from [Node.js](https://nodejs.org/) and follow the instructions for your platform.
We recommend installing the LTS version of node 18.

```shell
node --version # LTS version such as 18.16.0
```

**Note:** Agoric will support all long-term support (LTS) versions of Node.js.

## Install the Yarn Package Manager

Follow [Yarn Installation](https://classic.yarnpkg.com/en/docs/install)
instructions. For example:

```shell
npm install --global yarn
yarn --version # 1.22.10 or higher
```

## Install Git

Follow [Git installation instructions](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) or use your platform's package manager.

```shell
npm install --global git
git --version # 2.25.0 or higher
```

## Clone the Agoric SDK

```shell
git clone --branch community-dev https://github.com/Agoric/agoric-sdk
cd agoric-sdk
```

Cloning and installing the Agoric SDK can take a while. Please be patient.

## Install NPM Dependencies

```shell
yarn install
```

**Note:** If you run into errors during install or build, make sure you have the relevant developer tools installed. For example, on Debian or Ubuntu Linux, you can run `sudo apt get install build-essential` to install these tools.

## Build Packages

```shell
yarn build
```

**Note:** MacOS, Linux, and WSL are currently supported. There is currently **no support** for native Windows 10 or native Windows 11.

## Build the Cosmic Swingset Package

```shell
(cd packages/cosmic-swingset && make)
```

## Install Agoric CLI

Install the Agoric CLI (Command Line Interface) in a convenient place in your `$PATH` such as:

```shell
yarn link-cli ~/bin/agoric
```

or:

```shell
sudo yarn link-cli /usr/local/bin/agoric
```

**Note:** Run `echo $PATH` to see your current `$PATH`. Here you'll see which directory you should use for `yarn link-cli`.

## Check the Agoric Version

To check that it's installed correctly:

```shell
agoric --version # v0.18.2 "community-dev" branch
```

If the install was successful, you are ready to proceed to [starting a project](./start-a-project.md).

Should `agoric` not be found, then you may need to add the parent directory of where your `yarn link-cli` command created the "agoric-sdk" directory.

Please see the youtube video [Linux add to \$PATH: Fix "command not found" error (Linux & Mac)](https://www.youtube.com/watch?v=gkqsLRDnqlA) for more information.

repository: Agoric/documentation

branch_name: refs/heads/main

gha_language: JavaScript

repo_name: Agoric/documentation


text:
Deploying the site
====================

## Required packages

* Python 2.7.6
* pip 7.1.0
* fabric 1.10.2

e.g., on Ubuntu

    sudo apt-get install python python-pip
    sudo pip install fabric

From inside the deploy_tools directory and on your LOCAL machine run the command,

fab deploy --host=USERNAME@DOMAIN

e.g. fab deploy<EMAIL_ADDRESS>
* The USERNAME needs to be part of the sudo group or else it won't have permissions.

## Folder structure:

/var/www
   SITENAME
      database
      source
      static
      virtualenv

repository: opentrv/ors

repo_name: opentrv/ors


text:
# Bus Floating Data #

this project is a simple show case which shows how to create a streaming akka actor to ingest data from the http source to Kafka
And consume those messages either via akka or spark to push them to a cassandra table.

The project is a multi project with cross compilation due to incompatabilities with kafka spark and akka when using the latest scala akka versions.

### for a clean build from commandline:

`sbt ";clean ;test; publishLocal"`

or simply call

`sbt create`

### To run the applications

**ingest:**

`sbt ingest/run`

select the 1st entry as the simple does all steps at once
or better

`sbt runIngest`

to prepare the ingest container call:

`sbt createIngestContainer`

**akka frontend:**
`so service/run`
`sbt runService`

to prepare the service container:

`sbt createServerContainer`

**spark digest:**
The spark digest starts a local spark master.
As a spark job requires a fat jar first create that one:

`sbt createDigestUberJar`

to run the kafka->cassandra spark job:
`sbt submitKafkaCassandra`

to run the cluster spark job:
`sbt submitClusterSpark`

## Pre-conditions to run those, have

a) a cassandra running
b) a zookeeper running
c) a kafka server running

for b) and c) you can use brew to install those.
e.g. brew cask install zookeeper and brew install kafka

to run zookeper (not as a service)

zkServer start

to run kafka (not as a service)

kafka-server-start /usr/local/etc/kafka/server.properties

### Operating Kafka

to clean old data from kafka turn down the retention time in kafka for the topic

`kafka-configs --zookeeper localhost:2181 --entity-type topics --alter --add-config retention.ms=1000 --entity-name METRO-Vehicles`

this will result in a clean up afte about a minute

after that you can configure back the time to about 2 days (more isn't worth when testing)

`kafka-configs --zookeeper localhost:2181 --entity-type topics --alter --add-config retention.ms=172800000 --entity-name METRO-Vehicles`

to check the current setting do the following:

`kafka-configs --zookeeper localhost:2181 --entity-type topics --describe --entity-name METRO-Vehicles`

### Preparations for running on AWS

See also the terraform folder on how to run this on AWS.
But prior to using it on AWS with a DC/OS cluster, make sure to
create all required Docker images and deploy them to a place you have access to.
To create those artefacts just call

`sbt createAWS`

this will create all uber-jars and runnable Docker images.

repository: papesdiop/BusFloatingData

repo_name: papesdiop/BusFloatingData


text:
---
layout:     post
title:      The dishonest ABC
subtitle:   🤬ABC is the second "most politically biased media organisation in Australia"
date:       2021-07-09
author:     cattouch
header-img: img/post-bg-2015.jpg
catalog: true
tags:
    - ABC
    - Record

---

# The dishonest ABC

On the ABC's Wikipedia page, there is this statement:

> A 2004 Roy Morgan media credibility survey found that journalists regarded ABC Radio as the most accurate news source in the country and the ABC as the second "most politically biased media organisation in Australia".

Wikipedia cites this [report](https://web.archive.org/web/20090914061917/http://www.roymorgan.com/resources/pdf/papers/20040903.pdf), and on page 4 we can see the conclusion that:

        Which is the most politically
        partisan media organisation in
        Australia?

        News Ltd
        40%

        The ABC
        25%

        etc.
        etc.

The ABC is not neutral at all, nor can it remain neutral without political leanings, why?

Let's take another point:

> It is principally funded by the direct grants from the Australian Government, and is administered by a board appointed by the government of the day.

**Government-funded and government-appointed agency management, I don't believe at all that he can maintain his independence very well.**

path: /_posts/2021-07-09-The dishonest ABC.md

filename: 2021-07-09-The dishonest ABC.md


text:
# N queens II

The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

![](https://leetcode.com/static/images/problemset/8-queens.png)

Given an integer n, return the number of distinct solutions to the n-queens puzzle.

Example:
```
Input: 4
Output: 2
Explanation: There are two distinct solutions to the 4-queens puzzle as shown below.
[
 [".Q..",  // Solution 1
  "...Q",
  "Q...",
  "..Q."],

 ["..Q.",  // Solution 2
  "Q...",
  "...Q",
  ".Q.."]
]
```

和N Queens的方法一模一样，不过就是计数。

```Python
class Solution(object):
    def totalNQueens(self, n):
        """
        :type n: int
        :rtype: int
        """
        res = []
        for i in range(n):
            self._n_queens(n, [i], res)
        return len(res)

    def _n_queens(self, n, cols, res):
        m = len(cols)
        if m == n:
            res.append([''.join(['Q' if j == col else '.' for j in range(n)]) for col in cols ])
        else:
            for j in range(n):
                for row, col in enumerate(cols):
                    if abs(col-j) == m-row or j == col:
                        break
                else:
                    cols.append(j)
                    self._n_queens(n, cols, res)
                    cols.pop()
        return res
```

repository: hanleilei/leetcode

gha_license_id: MIT

repo_name: hanleilei/leetcode


text:
## Version 1.4.1

- Enable X25519 in default parameters [#265](https://github.com/vincenthz/hs-tls/pull/265)
- Checking EOF in bye [#262] (https://github.com/vincenthz/hs-tls/pull/262)
- Improving validation in DH key exchange [#256](https://github.com/vincenthz/hs-tls/pull/256)
- Handle TCP reset during handshake [#251](https://github.com/vincenthz/hs-tls/pull/251)
- Accepting hlint suggestions.

## Version 1.4.0

- Wrap renegotiation failures with HandshakeFailed [#237](https://github.com/vincenthz/hs-tls/pull/237)
- Improve selection of server certificate and use "signature_algorithms" extension [#236](https://github.com/vincenthz/hs-tls/pull/236)
- Change Bytes to ByteString and deprecate the Bytes type alias [#230](https://github.com/vincenthz/hs-tls/pull/230)
- Session compression and SNI [#223](https://github.com/vincenthz/hs-tls/pull/223)
- Deprecating ciphersuite_medium. Putting WARNING to ciphersuite_all since this includes RC4 [#153](https://github.com/vincenthz/hs-tls/pull/153) [#222](https://github.com/vincenthz/hs-tls/pull/222)
- Removing NPN [#214](https://github.com/vincenthz/hs-tls/pull/214)
- Supporting RSAPSS defined in TLS 1.3 [#207](https://github.com/vincenthz/hs-tls/pull/207)
- Supporting X25519 and X448 in the IES style. [#205](https://github.com/vincenthz/hs-tls/pull/205)
- Strip leading zeros in DHE premaster secret [#201](https://github.com/vincenthz/hs-tls/pull/201)

FEATURES:

- RSASSA-PSS signatures can be enabled with `supportedHashSignatures`.  This
  uses assignments from TLS 1.3, for example `(HashIntrinsic, SignatureRSApssSHA256)`.
- Diffie-Hellman with elliptic curves X25519 and X448: This can be enabled with
  `supportedGroups`, which also gives control over curve preference.
- ECDH with curve P-256 now uses optimized C implementation from package `cryptonite`.

API CHANGES:

- Cipher list `ciphersuite_medium` is now deprecated, users are advised to use
  `ciphersuite_default` or `ciphersuite_strong`.  List `ciphersuite_all` is kept
  for compatibility with old servers but this is discouraged and generates a
  warning (this includes RC4 ciphers, see [#153](https://github.com/vincenthz/hs-tls/pull/153)
  for reference).
- Support for NPN (Next Protocol Negotiation) has been removed. The replacement
  is ALPN (Application-Layer Protocol Negotiation).
- Data type `SessionData` now contains fields for compression algorithm and
  client SNI.  A `SessionManager` implementation that serializes/deserializes
  `SessionData` values must deal with the new fields.
- Module `Network.TLS` exports a type alias named `Bytes` which is now deprecated.
  The replacement is to use strict `ByteString` directly.

## Version 1.3.11

- Using reliable versions of dependent libraries.

## Version 1.3.10

- Selecting a cipher based on "signature_algorithms" [#193](https://github.com/vincenthz/hs-tls/pull/193)
- Respecting the "signature_algorithms" extension [#137](https://github.com/vincenthz/hs-tls/pull/137)
- Fix RSA signature in CertificateVerify with TLS < 1.2 [#189](https://github.com/vincenthz/hs-tls/pull/189)
- Fix ECDSA with TLS 1.0 / TLS 1.1 [#187](https://github.com/vincenthz/hs-tls/pull/187)
- Sending an empty server name from a server if necessary. [#175](https://github.com/vincenthz/hs-tls/pull/175)
- `Network.TLS.Extra` provides Finite Field Diffie-Hellman Ephemeral Parameters in RFC 7919 [#174](https://github.com/vincenthz/hs-tls/pull/174)
- Restore ability to renegotiate[#164](https://github.com/vincenthz/hs-tls/pull/164)

## Version 1.3.9

- Drop support for old GHC.
- Enable sha384 ciphers and provide `ciphersuite_default` as default set of ciphers for common needs [#168](https://github.com/vincenthz/hs-tls/pull/168)
- SNI late checks [#147](https://github.com/vincenthz/hs-tls/pull/147)
- Expose the HasBackend(..) class fully, so that developers can use TLS over their own channels [#149](https://github.com/vincenthz/hs-tls/pull/149)

## Version 1.3.8

- Fix older GHC builds

## Version 1.3.7

- Disable SHA384 based cipher, as they don't work properly yet.

## Version 1.3.6

- Add new ciphers
- Improve some debugging and outputs

## Version 1.3.5

- Fix a bug with ECDHE based cipher where serialization
- Debugging: Add a way to print random seed and a way to side-load a seed for replayability
- Improve tests

## Version 1.3.4

- Fix tests on 32 bits `time_t` machines (time not within bound)
- VirtualHost: Add a way to load credentials related to the hostname used by the client (Julian Beaumont)
- VirtualHost: Expose an API to query which hostname the client has contacted (Julian Beaumont)
- Add a way to disable empty packet that are use for security when
  using old versions + old CBC based cipher (Anton Dessiatov)

## Version 1.3.3

- Add support for Hans (Haskell Network Stack) (Adam Wick)
- Add support for ECDSA signature
- Add support for ECDSA-ECDHE Cipher
- Improve parsing of ECC related structure

## Version 1.3.2

- Add cipher suites for forward secrecy on more clients (Aaron Friel)
- Maintain more handshake information to be queried by protocol (Adam Wick)
- handle SCSV on client and server side (Kazu Yamamoto)
- Cleanup renegotiation logic (Kazu Yamamoto)
- Various testing improvements with the openssl test parts
- Cleanup AEAD handling for future support of other ciphers

## Version 1.3.1

- Repair DHE RSA handling on the cipher by creating signature properly

## Version 1.3.0

- modernize the crypto stack by using cryptonite.

## Version 1.2.18

- add more tests (network, local)
- cleanup cipher / bulk code, certificate verify / creation, and digitall signed handling
- fix handling of DHE ciphers with MS SSL stack that serialize leading zero.

## Version 1.2.17

- Fix an issue of type of key / hash that prevented connection with SChannel.

## Version 1.2.16

- Fix an issue with stream cipher not correctly calculating the internal state,
  resulting systematically in bad record mac failure during handshake

## Version 1.2.15

- support chain certificate in credentials

## Version 1.2.14

- adding ALPN extension
- adding support for AEAD, and particularly AES128-GCM
- Adding support for ECDH
- Do not support SSL3 by default for security reason.
- add EnumSafe8 and 16 for specific sized Enum instance that are safer
- export signatureAndHash parser/encoder
- add a "known" list of extensions
- add SignatureAlgorithms extension
- add Heartbeat extension
- add support for EC curves and point format extensions
- add preliminary SessionTicket extension
- Debug: Add the ability to choose arbitrary cipher in the client hello.

## Version 1.2.13

- Fix compilation with old mtl version

## Version 1.2.12

- Propagate asynchronous exception

## Version 1.2.11

- use hourglass instead of time
- use tasty instead of test-framework
- add travis file
- remove old de-optimisation flag as the bytestring bug is old now and it conflict with cabal check

## Version 1.2.10

- Update x509 dependencies

## Version 1.2.9

- Export TLSParams and HasBackend type names
- Added FlexibleContexts flag required by ghc-7.9
- debug: add support for specifying the timeout length in milliseconds.
- debug: add support for 3DES in simple client

## Version 1.2.8

- add support for 3DES-EDE-CBC-SHA1 (cipher 0xa)

## Version 1.2.7

- repair retrieve certificate validation, and improve fingerprints
- remove groom from dependency
- make RecordM an instance of Applicative
- Fixes the Error_EOF partial pattern match error in exception handling

## Version 1.2.6 (23 Mar 2014)

- Fixed socket backend endless loop when the server does not close connection
  properly at the TLS level with the close notify alert.
- Catch Error_EOF in recvData and return empty data.

## Version 1.2.5 (23 Mar 2014)

- Fixed Server key exchange data being parsed without the correct
  context, leading to not knowing how to parse the structure.
  The bug happens on efficient server that happens to send the ServerKeyXchg
  message together with the ServerHello in the same handshake packet.
  This trigger parsing of all the messages without having set the pending cipher.
  Delay parsing, when this happen, until we know what to do with it.

## Version 1.2.4 (23 Mar 2014)

- Fixed unrecognized name non-fatal alert after client hello.
- Add SSL3 to the supported list of version by default.
- Fix cereal lower bound to 0.4.0 minimum

## Version 1.2.3 (22 Mar 2014)

- Fixed handshake records not being able to span multiples records.

repository: berdario/hs-tls

gha_license_id: NOASSERTION

repo_name: berdario/hs-tls


text:
# Uredo epitea Kunze, 1817 SPECIES

#### Status
SYNONYM

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

#### Published in
in Kunze & Schmidt, Mykologische Hefte (Leipzig) 1: 68 (1817)

#### Original name
Uredo epitea Kunze, 1817

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Basidiomycota/Pucciniomycetes/Pucciniales/Melampsoraceae/Melampsora/Melampsora epitea/ Syn. Uredo epitea/README.md

repo_name: mdoering/backbone


text:
# Hydra / jekyll-theme-hydra

Marketing site template for Jekyll. Browse through a [live demo](https://proud-alligator.cloudvent.net/).
Increase the web presence of your brand with this configurable theme.

![Hydra template screenshot](images/_screenshot.png)

Hydra was made by [CloudCannon](http://cloudcannon.com/), the Cloud CMS for Jekyll.

Find more templates, themes and step-by-step Jekyll tutorials at [CloudCannon Academy](https://learn.cloudcannon.com/).

Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.

To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!

## Features

* Contact form
* Pre-built pages
* Pre-styled components
* Blog with pagination
* Post category pages
* Disqus comments for posts
* Staff and author system
* Configurable footer
* Optimised for editing in [CloudCannon](http://cloudcannon.com/)
* RSS/Atom feed
* SEO tags
* Google Analytics

## Installation

Add this line to your Jekyll site's `Gemfile`:

```ruby
gem "jekyll-theme-hydra"
```

And add this line to your Jekyll site's `_config.yml`:

```yaml
theme: jekyll-theme-hydra
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jekyll-theme-hydra

## Basic setup

1. Add your site and author details in `_config.yml`.
2. Add your Google Analytics and Disqus keys to `_config.yml`.
3. Get a workflow going to see your site's output (with [CloudCannon](https://app.cloudcannon.com/) or Jekyll locally).

## Usage / Editing

Hydra is already optimised for adding, updating and removing pages, staff, advice, company details and footer elements in CloudCannon.

### Posts

* Add, update or remove a post in the *Posts* collection.
* The **Staff Author** field links to members in the **Staff** collection.
* Documentation pages are organised in the navigation by category, with URLs based on the path inside the `_docs` folder.
* Change the defaults when new posts are created in `_posts/_defaults.md`.

### Contact Form

* Preconfigured to work with CloudCannon, but easily changed to another provider (e.g. [FormSpree](https://formspree.io/)).
* Sends email to the address listed in company details.

### Staff

* Reused around the site to save multiple editing locations.
* Add `excluded_in_search: true` to any documentation page's front matter to exclude that page in the search results.

### Navigation

* Exposed as a data file to give clients better access.
* Set in the *Data* / *Navigation* section.

### Footer

* Exposed as a data file to give clients better access.
* Set in the *Data* / *Footer* section.

## Contributing

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

## Development

Hydra was built with [Jekyll](http://jekyllrb.com/) version 3.3.1, but should support newer versions as well.

Install the dependencies with [Bundler](http://bundler.io/):

~~~bash
$ bundle install
~~~

Run `jekyll` commands through Bundler to ensure you're using the right versions:

~~~bash
$ bundle exec jekyll serve
~~~

Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.

When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-hydra.gemspec` accordingly.

## License

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

repository: GSI/hydra-jekyll-template

repo_name: GSI/hydra-jekyll-template


text:
---
title: "PowerShell Resources"
permalink: /powershell-resources/
tags:
  - PowerShell
---

## Video trainings

#### [Getting Started with PowerShell 3.0 Jump Start](https://www.microsoftvirtualacademy.com/en-us/training-courses/getting-started-with-powershell-30-jump-start-8276) :
A training course provided by the MVA.
It is an amazing and fun introduction to PowerShell, filled with eye-opening tips and tricks from **Jeffrey Snover**, the "inventor" of PowerShell.

#### [Advanced Tools & Scripting with PowerShell 3.0 Jump Start](https://www.microsoftvirtualacademy.com/en-us/training-courses/advanced-tools-scripting-with-powershell-30-jump-start-8277) :
The follow-up to the "Getting started" course but it goes into scripting and building flexible and reusable tools with PowerShell. Again, **Jeffrey Snover** provides invaluable behind-the-scenes insights.

#### [Getting Started with PowerShell Desired State Configuration (DSC)](https://www.microsoftvirtualacademy.com/en-us/training-courses/getting-started-with-powershell-desired-state-configuration-dsc-8672) :
Configuration management based on the principle of **infrastructure-as-code** has become very important in IT pros toolbelt. In this regard, DSC has been a crucial addition to PowerShell.
Once again, this is a free MVA course delivered by the enthusiastic **Jason Helmick** and **Jeffrey Snover**. It is pretty easy to understand and fun. Again, the participation of the "inventor" of PowerShell allows us to learn the "What" but also the "Why" of many PowerShell DSC features and components.

#### [Windows PowerShell v2-v3-v4 Ultimate Training](https://www.cbtnuggets.com/it-training/microsoft-windows-powershell-2-3-4) :
The most complete video training you can find on PowerShell, it contains dozens of hours of material. Delivered by **Don Jones**, long-time PowerShell guru and a really, really, great teacher.
What is really nice in this training is that topic by topic, it provides the differences and the new features introduced by different PowerShell versions.

## Books

#### [Learn Windows PowerShell 3 in a Month of Lunches](https://www.amazon.com/Learn-Windows-PowerShell-Month-Lunches/dp/1617291080) :
Don't worry about PowerShell version 3.0 being quite old. The fundamental principles are the same in PowerShell 5.0 and even 6.0.
This book by **Don Jones** takes your PowerShell knowledge from zero to proficient in all the fundamental concepts (and even some of the internals).
Even if you are already familiar with PowerShell, you will learn some things from this book.

#### [Learn PowerShell Toolmaking in a Month of Lunches](https://www.amazon.com/Learn-PowerShell-Toolmaking-Month-Lunches/dp/1617291161) :
Same format and same great author as the book just above.
It is more advanced because it goes into not just scripting but building flexible, highly reusable tools which behave like native PowerShell cmdlets. This book teaches widely recognized PowerShell best practices and will make you realize its elegance and its power.

## Blogs/Sites

#### [PowerShell.org](https://powershell.org/) :
Community-focused site with "how-to" articles and great to keep up with the PowerShell-related news and events.
Also, their forum is friendly to beginners and advanced users alike.

#### [Mike F Robbins](http://mikefrobbins.com/) :
A long-time PowerShell Cloud & Datacenter Management MVP and author.
He regularly provides very practical tips and knowledge on PowerShell, mostly applicable to systems administration.

#### [Kevin Marquette on PowerShell Theory](https://kevinmarquette.github.io/) :
Surprisingly, he is not an MVP (yet) but I think it's only a matter of time.
Most of his posts are pretty advanced, deep and amazingly detailed. Some of this material is trailblazing (kudos for that) and DevOps oriented.

## Conferences

#### PowerShell + DevOps Global Summit :
Comparatively to most conferences, it is small. This is a good thing because the attendees tend to be very passionate and it facilitates discussion with attendees and speakers.
Also, you get to talk to some of people who are actually building and maintaining the product.
Here are the [session recordings from the 2017 edition](https://www.youtube.com/playlist?list=PLfeA8kIs7CoeQRT1xwtH-I3cfDvm8rNlk).

#### PowerShell Conference EU :
The speaker list and the sessions are of very high quality. Some of these sessions are pretty advanced and forward-thinking.
Have a look at the [session recordings from the 2017 edition](https://www.youtube.com/playlist?list=PLDCEho7foSooHYGxYqUj2Q6C7usp4aKIQ).

gha_language: HTML


text:
# Usage
This guide explains how to download, configure and use `discord-bot-boilerplate` step by step

## Installing programs
### Git
- [Download git](https://git-scm.com/downloads)
- If you're using linux, use your package manager instead. The exact command depends on your distribution
    - Arch-based: `sudo pacman -S git`
    - Debian-based: `sudo apt-get install git`
    - ... use google

### Nodejs
- [Download Node.js](https://nodejs.org/en/download/)
- If you're using linux, use your package manager instead. The exact command depends on your distribution
    - On Arch-based systems use `sudo pacman -S nodejs`
    - On Debian-based or other systems search for `nodesource` on google

### Yarn
- If you already installed nodejs, this can be done using `npm`
    > npm install --global yarn
- Alternatively, you can [download yarn here](https://yarnpkg.com/lang/en/docs/install/)

### Build tools
- Windows:
    - Open a terminal window as the administrator
        - Right click the Windows icon
        - Windows Powershell **(admin)**
        - Run `npm install --global windows-build-tools`
            - Due to some bugs, this doesn't work with `yarn`, so use `npm`
        - This will probably take a _very, very_  long time
        - It's not done until it says `PS C:/WINDOWS/system32` again
        - Did I mention that this is going to take a very long time?
- Linux: `sudo apt-get install build-essential` (the exact command depends on your distribution)

## Setting up
- Open a terminal window
    - This can be cmd, powershell, bash or whatever else you like

- Go to the folder where you want to install the bot
    - For example on Windows: `cd C:/Users/User/Desktop`
    - On linux: `cd ~/`

- Clone the repository
    - > git clone https://gitlab.com/Wait_What_/discord-bot-boilerplate.git
    - This will create a folder called `discord-bot-boilerplate` and install the bot inside

- Go into the project directory
    > cd discord-bot-boilerplate

- Install the dependencies using `yarn`
    - > yarn install
    - If you get warnings about missing optional dependencies, ignore them
    - This will probably take a few minutes
    - If you get errors, read them and resolve them
        - Are you sure you installed build tools properly?

- Edit `config_template.js` using a text editor (like notepad, vscode, nano or something else)
    - Set the discord token. You can get the token from the
        [Discord Developer Portal](https://discordapp.com/developers/applications)
        - [How to create a discord bot account](https://anidiots.guide/getting-started/getting-started-long-version)
            - Create an application
            - Add a bot account to it
            - [Generate a bot invite](https://discordapi.com/permissions.html) and invite it to your server
        - Do not share the token with anyone. It's like your bot's password
            - Don't publish it on git either obviously
    - Set the default prefix. Example: `!`
        - The bot will respond to commands that start with the prefix you set
    - Set the owner IDs (this should probably just be you and maybe your alt)
        - Enable `Developer Mode` in your discord settings under `Appearance`
        - Right click your profile picture in a chat
        - Click `Copy ID`
        - Bot owners have access to the dev commands, which can be very dangerous. People with access to commands such as `eval` basically have full control over your computer, can access and delete all your files etc.
    - You should keep `shards` on `auto`, unless you know what you're doing
        - You'll need sharding once your bot reaches 2500 guilds
        - You need 1 shard per about 1000 guilds
    - Set the bot name
    - Set the default embed color. Example: `#ffffff`
    - Set the activity
    - Choose if you want to log command use or not
        - It's useful for debugging, but creates a mess in the console
    - Check out [Database](database.md) for more info on `dbDefaults`
        - Don't touch it for now

- Rename `config_template.js` to `config.js`
    - Windows: `rename config_template.js config.js`
        - You can just use windows explorer instead
    - Linux: `mv config_template.js config.js`

- Start the bot
    - Run `node bot`
    - If you get an error, read what it says on the first or second line. Don't give up just yet!
        - Ask someone about it if you can't figure it out yourself or use google
        - Make sure you ran `yarn install`
    - If you want the bot to restart itself when it crashes, use `pm2`
        - `npm install --global pm2`
        - `pm2 start bot.js`
        - `pm2 logs bot` / `pm2 stop bot` / `pm2 restart bot`

- Check if the bot is working by using the `!ping` command (the prefix depends on what you set in the config)

# Done!
At this point, your bot should be working. To run it 24/7 you'll probably need a VPS, unless you want to keep your computer running all day

# What's next?
Check out [Adding commands](addingCommands.md) and [Adding modules](addingModules.md)


text:
Just do the following command: `luvit bot` in the git repository

## How to use
You need to be administrator of the guild. You can wipe the banlist like this: `@Bot unban-all` where @Bot is the bot mention.

repository: AntoineJT/UnbanBot

repo_name: AntoineJT/UnbanBot


text:
jshint_check
============

> Check your JavaScript files against this JSHint config

How to
------

You are required to have *npm* and *grunt* installed.

`$ npm install`

Place your code in the 'code' folder and run:

`$ grunt develop` or `$ grunt deploy`

Settings
--------

- **browser**: *true*.
	- Expect code always to run in browser
- **esnext**: *true*.
	- This option tells JSHint that your code uses ECMAScript 6 specific syntax. Note that these features are not finalized yet and not all browsers implement them.
- **eqeqeq**: *true*.
	- Require triple equals (===) for comparison
- **forin**: *true*.
	- This option requires all for in loops to filter object's items.
- **quotmark**: *single*
	- This option enforces the consistency of quotation marks used throughout your code.
- **undef**: *true*.
	- Require all non-global variables to be declared (prevents global leaks)
- **unused**: *true*.
	- This option warns when you define and never use your variables.
- **jquery**: *true*.
	- This option defines globals exposed by the jQuery JavaScript library.
- **strict**: *true*
	- This option requires all functions to run in ECMAScript 5's strict mode.
- **globals**: All used globals
	- console
- **newcap**: *false*
	- This option requires you to capitalize names of constructor functions. Capitalizing functions that are intended to be used with new operator is just a convention that helps programmers to visually distinguish constructor functions from other types of functions to help spot mistakes when using this.
- **latedef**: *true*.
	- Require variables/functions to be defined before being used


text:
# INSTRUCTIONS

Below are the instructions of how to setup this project in your computer.

### Ensure you have rvm (or rbenv) and bundler installed and configured.

The RVM install procedure can be found here:

`https://rvm.io/rvm/install`

If you don't like rvm, you can use rbenv as your Ruby environment manager. Check this post below:

`https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04`

After that, you can install bundler using the following command:

`gem install bundler`

Finally, you need to install all the gems used for this project. You can do this by executing the following command:

`bundle install`

### Ensure you are using Vagrant 2.0.2 or newer.

This Vagrantifle was configured with Vagrant 2.0.2 or above and it uses 2.x Vagrantfile syntax. This won't work with older Vagrant versions such as Vagrant 1.8.

You can download Vagrant here:

`https://www.vagrantup.com/`

On Ubuntu machines, you can execute:

`sudo apt-get install vagrant`

### Ensure you are using Oracle VirtualBox

All the testing was done using Virtualbox. The tested version was 5.2.10. You can download it over here:

`https://www.virtualbox.org/`

On Ubuntu machines, you can execute:

`sudo apt-get install virtualbox`

### Internet connection

Vagrant will need to download the Xenial Xerus (Ubuntu 16.04 LTS) box and Chef will request additional packages as well. You will need a good internet connection for these requirements.

### Presenting the Guest Virtual Machines.

For this assignment, we have two VM's:

#### Shaw

Shaw is our app server, which is running Apache HTTP Server 2.4, Node Expoter 0.16.0 and a dummy app on Sinatra. All the Apache data is being collected by Google mtail for Prometheus
 server, which is being requested by Vickers.

Shaw name came from Elizabeth Shaw, a character from Prometheus movie. She was an archaeologist who visited LV-223 moon and was in a expedition to find out the homeworld of the Engineers.

Her IP address is `<IP_ADDRESS>`

#### Vickers

Vickers is our monitoring server, which is running Prometheus 2.4.1, Node Exporter 0.16.0 and Grafana 5.2.4, both on their latest stable version. Vickers is also running a Prometheus Node Exporter to collect data from our own server. Finally, Vickers is running a Ruby script in a 'while true' loop requesting data to Shaw.

Vickers name came from Meredith Vickers, a character from Prometheus movie. Daughter of Peter Weyland, responsible for the Prometheus voyage into LV-223 moon.

Her IP address is `<IP_ADDRESS>`

### Running the Guest Virtual Machines

Simply, just run the following command. It's important shaw became the first VM to be configured, because Vickers needs her data.

`$ vagrant up shaw vickers`

### Monitoring and checking the results

You can check the monitoring using Grafana by typing the following address in your preferred browser:

`http://<IP_ADDRESS>:3000`

Below are the credentials

```bash
login: admin
password: admin
```

After when you logged in, you have to add two custom dashboards to display our custom metrics.

### Adding the custom dashboards

On the left bar, click on the configuration icon `(Gear icon)` and then select ` Data Sources`.

Click on `Prometheus` and then on `Dashboards`.

You will see a list of the default dashboards. Two of them were customized by me. Click on `import` so you can use them. Here are their names:

- Apache Dashboard
- Prometheus - Dashboard

After that, click on the four squares icon `(Dashboard icon)` and select `home`.

On the top left, at the right side of the Grafana logo, click on `home` and select `Apache dashboard` or `Prometheus - Dashboard`.

Below are the information for each dashboards.

#### Apache Dashboard

Apache Dashboad is collecting data from our Sinatra app over Apache using Google mTail. You have a filter called "User" which is the name of the crew members from Prometheus ship whom explored the underground cave on LV-223 moon. Each user is, in reality, an User Agent string from our Ruby while true loop script. You can change which user you want to view and explore the individual metrics for each crew member.

#### Prometheus - Dashboard

Here you can check both Shaw and Vickers status. You can switch from each server at the top left combo box. You can see the most well know data usually being monitored. All these datas came from Prometheus Node Explorer installed on each Guest VM.

#### Additional dashboards

There are three adittional dashboards and they were just a practical sample of the three main topics about monitoring, which are:

- From the Google SRE book (The Four Golden Signals): Latency, Traffic, Errors, Saturation
- USE Method (from Brendan Gregg): Utilization, Saturation, Errors
- RED Method (from Tom Wilkie): Rate, Errors, and Duration

They were based on the following article below:

`https://www.infoq.com/articles/monitoring-SRE-golden-signals`

In the near future, I hope doing more work on top of them and make it more informative.

### Testing.

You can use 'rake' to run 'serverspec' test suite. It will check if everything is ok.

```bash
rake spec:shaw     # Run serverspec tests to shaw
rake spec:vickers  # Run serverspec tests to vickers
```

The test can only be run after all your guest machines are up and vagrant was able to provision them as well.

To run the Sinatra tests, you can invoke the following command

```bash
rspec spec/sinatra/shaw_spec.rb
```

The output will be something like this below:

```bash
No examples found.

Finished in 0.00045 seconds (files took 1.09 seconds to load)
0 examples, 0 failures

Loaded suite (...)/bin/rspec
Started
....

Finished in 0.047524714 seconds.
-------------------------------------------------------------------------------------
4 tests, 7 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
-------------------------------------------------------------------------------------
84.17 tests/s, 147.29 assertions/s
```

repository: neverping/prometheus-and-grafana-sample

repo_name: neverping/prometheus-and-grafana-sample


text:
# scapp

JWT Authentication & Authorization in NodeJs/Express & MongoDB REST APIs

## Introduction

This application is a REST API that will enable to create a user, log in the registered user, log out a user from a single device, and log out a user from multiple devices. Using Node.js/Express and MongoDB with MongoDB Atlas, a cloud database service that hosts MongoDB databases to store our data.

## How JWT it works?

JWT stands for JSON Web Token and is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed.

JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. [jwt.io/introduction/](https://jwt.io/introduction/)

## Start the server

In order to start the application and run the server which handles the authentication and authorization process you have to clone the repo into a directory and install the application's dependencies using npm or yarn

```
npm install
```

```
yarn
```

After the installation is complete run the server using the following command:

```
npm start
```

If everything goes as expected you will see a message in the terminal that the server is running at port 8000. You can change the server running in src/config.js file.

![alt text](https://github.com/rvpanoz/scapp/raw/master/images/start.png "Server start")

## Routes

There are five available routes:

- POST /users/create
- POST /users/login
- GET /users/profile
- POST /users/logout
- POST /users/logoutall

### Create a user

---

Creates a new user

- **URL**

  /users/create

- **Method:**

  `POST`

- **Data Params**

  username [Required]

  password [Required]

- **Success Response:**

  - **Code:** 200 OK

    **Content:**
    ```json
    {
      "user": {
        "_id": "5e249c499899e94e6dfde811",
        "name": "Goo",
        "email"<EMAIL_ADDRESS>        "tokens": [
          {
            "_id": "5e263647a4a67c5c7ff0694b",
            "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
          }
        ]
      }
    }
    ```

- **Error Response:**

  - **Code:** 400 BAD REQUEST

- **Sample Call:**

  ```javascript
    curl -i -X POST -d "{\"name\": \"Alan\", \"email\"<EMAIL_ADDRESS>\"password\": \"ohshit\"}" -H "Content-Type: application/json" http://localhost:8000/users/login
  ```

### Authenticate user

---

work in progress..

### Logout user from a device

---

work in progress..

### Logout user from all devices

---

work in progress..

repository: rvpanoz/scapp

repo_name: rvpanoz/scapp


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

### Description

An issue was discovered in Mods for HESK 3.1.0 through 2019.1.0. A privileged user can achieve code execution on the server via a ticket because of improper access control of uploaded resources. This might be exploitable in conjunction with CVE-2020-13992 by an unauthenticated attacker.

### POC

#### Reference
- https://loca1gh0s7.github.io/MFH-from-XSS-to-RCE-loca1gh0st-exercise/

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

repository: trickest/cve

repo_name: trickest/cve


text:
+++
author = "GQ Chalk"
date = "2018-01-22T16:00:00+00:00"
hero = "/images/jason-leung-27wwTHC7Zfo-unsplash.jpg"
summary = "Cheap and cheerful pastel colors of chalk."
title = "Chalk and Colors"
type = "blog"

+++
## Pastel Palette

Chalk inherently tends to produce [pastel colors](https://en.wikipedia.org/wiki/Pastel_(color)), for which it can be obtained in almost infinite variety of tones and shades. It is amazing how such a simple material can support such an artistic cornucopia.

### Model Background

![](/images/alexandra-i-vanescu-egMjqXYfs3E-unsplash.jpg)

The model is not the background, obviously, the chalk provides a model background for a dash of subdued color.

#### Image Credits

* [Chalk palette](https://unsplash.com/photos/27wwTHC7Zfo) photo by [Jason Leung](https://unsplash.com/@ninjason).
* [Model and chalk](https://unsplash.com/photos/egMjqXYfs3E) photo by [Alexandra Ișvănescu](https://unsplash.com/@concretelies_photography).

repository: biogit/brevifolia-hugo-forestry

repo_name: biogit/brevifolia-hugo-forestry


text:
[![Android](https://github.com/DimensionDev/ntge/workflows/Android/badge.svg)](https://github.com/DimensionDev/ntge/actions?query=workflow%3AAndroid)

Android wrapper for Ntge

# Getting Start
Add it in your root build.gradle at the end of repositories:
```
maven {
    name = "Github"
    url = uri("https://maven.pkg.github.com/DimensionDev/Ntge")
    credentials {
        username = <Your-Github-UserName>
        password = <Your-Github-Token>
    }
}
```
Add the dependency
```
implementation "com.github.DimensionDev:ntge:<latest-version>"
```

# Develop
## Requirement
- JDK 1.8
- Android SDK
  - Android NDK
- Rust with Android targets installed
```$ rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android```

## Build
```
./gradlew build
```

# Author

Tlaster<EMAIL_ADDRESS>
# License

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

repository: DimensionDev/ntge

branch_name: refs/heads/develop

gha_language: Rust

repo_name: DimensionDev/ntge


text:
[![Latest Stable Version](https://poser.pugx.org/tankfairies/tcrypt/v/stable)](https://packagist.org/packages/tankfairies/tcrypt)
[![Total Downloads](https://poser.pugx.org/tankfairies/tcrypt/downloads)](https://packagist.org/packages/tankfairies/tcrypt)
[![Latest Unstable Version](https://poser.pugx.org/tankfairies/tcrypt/v/unstable)](https://packagist.org/packages/tankfairies/tcrypt)
[![License](https://poser.pugx.org/tankfairies/tcrypt/license)](https://packagist.org/packages/tankfairies/tcrypt)
[![Build Status](https://travis-ci.com/tankfairies/tcrypt.svg?branch=master)](https://travis-ci.com/tankfairies/tcrypt)

# Tcrypt

This is an implemetation of part of the sodium encryption library providing the ability to do end to end encryption.

https://www.php.net/manual/en/intro.sodium.php

## Installation

Install with [Composer](https://getcomposer.org/):

```bash
composer require tankfairies/tcrypt
```

## Usage

Instantiate a copied of Keys for handing local key pairs.
```php
$keys = new Keys();
$keys->setPasswordAndSalt('yourpassword', 'a_salt__at_least_15_chars_long');
```

Encrypt the message: -

```php
$crypt = new Encrypt();
$crypt
    ->setLocalKeys($sendKeys)
    ->setForeignKey(hex2bin('the_binary_public_key_from_the_remote_receipient'));

$encryptedMessage = $crypt->enc('my secret message');
```

To Decrypt the message: -
```php
$decrypt = new Decrypt();
$decrypt
    ->setLocalKeys($keys)
    ->setForeignKey(hex2bin('the_binary_public_key_from_the_sender'));

$decryptedMessage = $decrypt->dec($encryptedMessage);
```

## Copyright and license

The tankfairies/tcrypt library is Copyright (c) 2019 Tankfairies (https://tankfairies.com) and licensed for use under the MIT License (MIT).

repository: tankfairies/tcrypt

gha_language: PHP

repo_name: tankfairies/tcrypt


text:
# Coders' Workshop: June 5, 2019

## Announcements
Next week's location: Galvanize, 3rd floor, data science classroom.

## Appetizer

> What product is the most-sold item at Walmart?

## Topic: Multidimensional Arrays

[slides](https://slides.com/bbyunis/coder-s-workshop-1-4-6-8-10)

## Problem

[Transitive Closure](https://github.com/andy-young/Coders-Workshop/blob/master/Coding-Challenges/graph-transitiveClosure/transitiveClosure.md)

repository: Masheenist/Coders-Workshop

repo_name: Masheenist/Coders-Workshop


text:
---

copyright:
  years: 2015, 2016

---

{:new_window: target="_blank"}
{:shortdesc: .shortdesc}
{:screen:.screen}
{:codeblock:.codeblock}

# Integrating with IBM DevOps
{: #integratingdevops}

*Last updated: 30 August 2016*
{: .last-updated}

You can integrate {{site.data.keyword.GlobalizationPipeline_short}} with {{site.data.keyword.jazzhub_short}} to automate the translation of your application UI, saving time and reducing manual translation management operations. See [this video](https://www.youtube.com/watch?v=sSrIUjRbXYQ) and learn how to use {{site.data.keyword.GlobalizationPipeline_short}} with {{site.data.keyword.jazzhub_short}}.

{{site.data.keyword.jazzhub_title}} uses {{site.data.keyword.GlobalizationPipeline_full}}'s default machine translation engine to translate your application into the languages you select,  unless you configure an alternative machine translation engine using the {{site.data.keyword.GlobalizationPipeline_short}} dashboard.

repository: kKronstainBrown/docs

repo_name: kKronstainBrown/docs


text:
# UnityFx.Async
Requires Unity 2018.3 or higher.

## SUMMARY
Lightweight Task-like asynchronous operations (promises) for Unity3d.

Library is designed as a lightweight [Unity3d](https://unity3d.com)-compatible [Tasks](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task) alternative. Main design goals are:
- Minimum object size and number of allocations.
- Extensibility. The library entities are designed to be easily extensible.
- Thread-safe. The library classes can be safely used from different threads (unless explicitly stated otherwise).
- [Promises](https://developers.google.com/web/fundamentals/primers/promises) support. All asyncronous operations in library support promise-like programming.
- [Task](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task)-like interface and behaviour. In many cases library classes can be used much like corresponding [TPL](https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/task-parallel-library-tpl) entities.
- [Unity3d](https://unity3d.com)-specific features and compatibility. This includes possibility to <c>yield</c> operations in coroutines, `net35`-compilance, extensions of Unity asynchronous operations etc.

The table below summarizes differences berween *UnityFx.Async* and other popular asynchronous operation frameworks:

| Stat | UnityFx.Async | [C-Sharp-Promise](https://github.com/Real-Serious-Games/C-Sharp-Promise) | [TPL](https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/task-parallel-library-tpl) |
| :--- | :---: | :---: | :---: |
| Thread-safe | ✔ | - | ✔ |
| .NET 3.5 compilance | ✔ | ✔ | - |
| Supports [SynchronizationContext](https://docs.microsoft.com/en-us/dotnet/api/system.threading.synchronizationcontext) capturing | ✔ | - | ✔ |
| Supports continuations | ✔ | ✔ | ✔ |
| Supports Unity coroutines | ✔ | - | - |
| Supports [async / await](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/index) | ✔ | - | ✔ |
| Supports [promise](https://www.promisejs.org/)-like continuations | ✔ | ✔ | - |
| Supports cancellation | ✔ | - | ✔ |
| Supports progress reporting | ✔ | ✔ | ✔ |
| Supports child operations | - | - | ✔ |
| Supports [Task-like types](https://github.com/dotnet/roslyn/blob/master/docs/features/task-types.md) (requires C# 7.2) | ✔ | - | ✔ |
| Supports [ExecutionContext](https://docs.microsoft.com/en-us/dotnet/api/system.threading.executioncontext) flow | - | - | ✔ |
| Minimum allocations per continuation | ~1 | 5+ | 2+ |

**NOTE**: As the table states [ExecutionContext](https://docs.microsoft.com/en-us/dotnet/api/system.threading.executioncontext) flow is NOT supported. Please use [Tasks](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task) if you need it.

## USAGE
Npm package is available at [npmjs.com](https://www.npmjs.com/package/com.unityfx.async). To use it, add the following line to dependencies section of your `manifest.json`. Unity should download and link the package automatically:
```json
{
  "scopedRegistries": [
    {
      "name": "Arvtesh",
      "url": "https://registry.npmjs.org/",
      "scopes": [
        "com.unityfx"
      ]
    }
  ],
  "dependencies": {
    "com.unityfx.async": "1.1.0"
  }
}
```

## USEFUL LINKS
* [Github project](https://github.com/Arvtesh/UnityFx.Async)
* [NuGet package](https://www.nuget.org/packages/UnityFx.Async)
* [Npm package](https://www.npmjs.com/package/com.unityfx.async)
* [AppVeyor](https://ci.appveyor.com/project/Arvtesh/unityfx-async)
* [Unity Asset Store](https://assetstore.unity.com/packages/tools/asynchronous-operations-for-unity-96696)
* [Unity Forums](https://forum.unity.com/threads/asynchronous-operations-for-unity-free.522989/)
* [Documentation](https://github.com/Arvtesh/UnityFx.Async/blob/master/README.md)
* [License](https://github.com/Arvtesh/UnityFx.Async/blob/master/LICENSE.md)
*<EMAIL_ADDRESS>


text:
Colors can be serialized into comma separated values (CSV) using the
output stream operator.  Input stream values are written in the
following form
    RED_VALUE, GREEN_VALUE, BLUE_VALUE, ALPHA_VALUE
For example, to write output into a std::stringstream for later
retrieval using the ofColor_ input stream operator one might use the
following:
```cpp
    std::stringstream ss;     // Create an empty std::string stream.
                              // Note: std::stringstream is just one
                              // option for an output stream.  Another
                              // popular output stream std::cout.
    ofColor myColor(255, 255, 0, 255);
                              // Create an ofColor to output.
    ss << myColor;            // Write the color to the output stream.
```

gha_language: Ruby


text:
# Download \`\`pacman'' databases and packages

## Description

This directory provides shell scripts that allow to upgrade
\`\`pacman''-based systems like [Arch Linux][2] distribution and
[MSYS2][3] environment, while their hosts are offline (lack the Internet
connection).

## Usage

First, you must download package databases using a script targetting
your platform, running it on a host connected to the Internet:

- \`\`download\_databases\_arch\_linux.sh'' if you are to upgrade Arch
Linux host;
- \`\`download\_databases\_msys2.sh'' if you are to upgrade MSYS2
environment.

```sh
./download_databases_arch_linux.sh -p <download prefix> [-t]
```

or

```sh
./download_databases_msys2.sh -p <download prefix> [-t]
```

or, for scripts synopsis:

```sh
./download_databases_arch_linux.sh -h
./download_databases_msys2.sh -h
```

Those scripts downloads package databases (\*.db files) to directory
defined by the `-p` option. If the directory specified by the `-p`
option does not exist, the scipts create it. If you specified `-t`
option, the scripts create subdirectory in directory defined by the
`-p`. That "tagged" subdirectory has name consisting of the current
date/time information.

MSYS2 targeting script also downloads GPG signature files. If executing
host has [GNU GPG][4] installed, \`\`download\_databases\_msys2.sh''
script verifies the downloaded databases using *sig* files.

After you have downloaded package databases, you must transfer all the
\`\`\*.db'' files (for MSYS2 also all the \`\`\*.db.sig'' files) to
\`\`/var/lib/pacman/sync/'' directory on your target (offline) host.
This way you emulate executing of `pacman -Sy` on your host.

Next, run "system upgrade" on your offline host using the following
command:

```sh
pacman -Sup --noconfirm
```

This gives you direct links to outdated packages basing on your
\`\`/etc/pacman.d/mirrorlist'' file and new package databases. To save
those link list into a file you may use something like this:

```sh
pacman -Sup | sed -n -e "/https:\/\//p" > package_list
```

Now, you must transfer package list file back to host connected to the
Internet, and run \`\`download\_packages.sh'' scirpt:

```sh
./download_packages.sh -f <package list file> -p <download prefix> [-t]
```

or, for script synopsis:

```sh
./download_databases.sh -h
```

Using the `-f` option you specify path to file containg links to
required packages (the one you created on your offline host). This
scirpt downloads packages to directory defined by the `-p` option. If
the directory specified by the `-p` option does not exist, this script
creates it. If you specified `-t` option, the scripts create
subdirectory in directory defined by the `-p`. That "tagged"
subdirectory has name consisting of the current date/time information.

Transfer all \`\`\*.pkg.tar.xz'' files you have downloaded to
\`\`/var/cache/pacman/pkg/'' directory on your target (offline) host,
and run system upgrade:

```sh
pacman -Su
```

## Requirements

On [FreeBSD][1] this script uses fetch(1). On other systems it uses GNU
wget(1). MSYS2-targeting script may use [GNU GPG][4] toolset.

This script is compatible with sh(1) shell.

[1]: https://freebsd.org/
[2]: https://www.archlinux.org/
[3]: https://www.msys2.org/
[4]: https://gnupg.org/

repository: Serg-Norseman/UsefulScripts

gha_language: Shell

repo_name: Serg-Norseman/UsefulScripts


text:
# By Example

## 1. Hello World

List of samples:

`#`  | Sample | Description
---- | ------ | -----------
1.1 | [Hello World Main](hello-world/hello-world-main) | Print hello world using `fmt.Println`.
1.2 | [Hello World Concurrent](hello-world/hello-world-concurrent) | Print Hello World in Concurrent mode.
1.3 | [Hello World Server](hello-world/hello-world-server) | A simple hello world http server.
1.4 | [Hello World Client](hello-world/hello-world-client) | A simple hello world http client.

## 2. Variables and Constants

List of samples:

`#`  | Sample | Description
---- | ------ | -----------
2.1 | [Explicit Variable](variables-and-constants/variable-explicit) | Explicit variable in Go.
2.2 | [Implicit Variable](variables-and-constants/variable-implicit) | Implicit variable in Go.
2.3 | [Explicit Constant](variables-and-constants/constant-explicit) | Explicit constant in Go.
2.4 | [Implicit Constant](variables-and-constants/constant-implicit) | Explicit constant in Go.

## 3. Values and Types

List of samples:

`#`  | Sample | Description
---- | ------ | -----------
3.1 | [Zero Values](values-and-types/zero-values) | Simple zero values in Go.
3.2 | [Basic Types](values-and-types/basic-types) | Basic types in Go.

repository: muharihar/go-great-go

repo_name: muharihar/go-great-go


text:
# Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space
characters `' '`, return the length of last word (last word means the last
appearing word if we loop from left to right) in the string.

If the last word does not exist, return 0.

**Note**: A word is defined as a **maximal substring** consisting of non-space
characters only.

**Example:**

Input: "Hello World"
Output:5

## Solution

Simple solution. Easy to support. Works good for short strings.

```scala
object Solution {
    def lengthOfLastWord(s: String): Int = {
        val words = s.split("\\s+")
        if (words.isEmpty) 0
        else words.last.length
    }
}
```

Fast solution. Best performance. Works way faster for long strings.

```scala
object Solution {
    def lengthOfLastWord(s: String): Int = {
        var pos = s.length - 1
        while (pos >= 0 && s(pos) == ' ') pos -= 1
        if (pos == -1) return 0
        var len = 0
        while (pos >= 0 && s(pos) != ' ') {
            pos -= 1
            len += 1
        }
        return len
    }
}
```

repository: dantonyuk/leetcode-problems

repo_name: dantonyuk/leetcode-problems


text:
# Simple CLI for testing the go-hass library

A simple CLI for running commands with the [go-hass](https://github.com/pawal/go-hass) library.
Very limited support for devices, it is basically 'on' and 'off' that is supported. No support for groups.

## Example usage

List supported devices:
```bash
$ ./hasse
light.kitchen_lights (Kitchen Lights): on
lock.kitchen_door (Kitchen Door): locked
light.ceiling_lights (Ceiling Lights): on
light.bed_light (Bed Light): off
lock.front_door (Front Door): locked
switch.decorative_lights (Decorative Lights): on
switch.ac (AC): off
```

Check status on a supported device:
```
$ ./hasse light.kitchen_lights
light.kitchen_lights state: on
```

Run on or off command on a supported device:
```
$ ./hasse light.kitchen_lights off
```

repository: pawal/hasse

repo_name: pawal/hasse


text:
# vanilla-router-js

_simple router for your singlepage app_

`vanilla-router-js` is a simple Javascript router for your singlepage application. Try it, it's awesome!

## Installation

This is a [Node.js](https://nodejs.org) module available through the [npm registry](https://www.npmjs.com/). Installation is done using the `npm install` command:

```bash
$ npm install vanilla-router-js
```

Or manually [download]() it.

## Usage

1. Include `vanilla-router-js`

Import

```javascript
import Router from 'vanilla-router-js'
```

Or link `Router.js` in your HTML:

```html
<script src="Router.js"></script>
```

2. Set up your document

Set up your pages with a `class` of `page` and an unique `id` which is used as the path.

```html
<section id="home" class="page">
    <div>I am the home page</div>
</section>

<section id="about" class="page">
    <div>I am the about page</div>
</section>
```

Create an element with a class of `nav-link` and a `data-target` attribute which refers to the page `id`.

```html
<header>
    <a href="#" data-target="home" class="nav-link">Home</a>
    <a href="#" data-target="about" class="nav-link">About</a>
</header>
```

3. Call Router init function

```javascript
Router.init()
```

## Specification

Use custom propperties to modify the Router.

```javascript
Router.init({
    pageClass: 'page',
    linkClass: 'nav-link',
    htmlAttribute: 'data-target',
    pageName: 'Vanilla Router',
    titleSpacer: '||'
})
```

## Animations

```javascript
Router.init({
    pageTransition: '',
    pageTransitionDuration: '1000',
    contentTransition: '',
    contentTransitionDuration: '600'
})
```

repository: leifarriens/js-vanilla-router

repo_name: leifarriens/js-vanilla-router


text:
#Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## [Unreleased]
### Added
- metrics-redis-graphite: add commandstats metrics (@PhilGuay)

## [1.0.0] - 2016-05-23
### Added
- Ruby 2.3.0 support

### Removed
- Ruby 1.9.3 support

### Fixed
- check-redis-memory.rb, check-redis-memory-percentage.rb: fix message output

### Changed
- Update to rubocop 0.40 and cleanup

## [0.1.0] - 2016-03-22
### Added
- added support for memory check using percentage %

## [0.0.4] - 2015-08-04
### Changed
- general clean no code changes

## [0.0.3] - 2015-07-14
### Changed
- updated sensu-plugin gem to 1.2.0

## [0.0.2] - 2015-07-05
### Added
- Add check for existance of Redis keys

### Fixed
- Fixed the gemspec to properly install the plugins to the embedded sensu bin dir

## 0.0.1 - 2015-05-31
### Added
- initial release

[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/1.0.0...HEAD
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/0.1.0...1.0.0
[0.1.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/0.0.4...0.1.0
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/0.0.3...0.0.4
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/0.0.1...0.0.2

repository: nevins-b/sensu-plugins-redis

repo_name: nevins-b/sensu-plugins-redis


text:
Neighbor Sampling Graph Convolutional Networks in PyTorch
====
Toy pytorch implementation for neighbor sampling [3] for SGD traning based on GCN for semi-supervised classification [1].

Note: original adjacent matrix is implemented by Sparse CUDA. For convenience, it is converted into dense version which significantly lowers down the training speed due to the lack of backend optimization.

For a high-level introduction to GCNs, see:

Thomas Kipf, [Graph Convolutional Networks](http://tkipf.github.io/graph-convolutional-networks/) (2016)

![Graph Convolutional Networks](figure.png)

Note: There are subtle differences between the TensorFlow implementation in https://github.com/tkipf/gcn and this PyTorch re-implementation. This re-implementation serves as a proof of concept and is not intended for reproduction of the results reported in [1].

This implementation makes use of the Cora dataset from [2].

## Installation

```python setup.py install```

## Requirements

  * PyTorch 0.4 or 0.5
  * Python 2.7 or 3.6

## Usage

```python train.py```

## References

[1] [Kipf & Welling, Semi-Supervised Classification with Graph Convolutional Networks, 2016](https://arxiv.org/abs/1609.02907)

[2] [Sen et al., Collective Classification in Network Data, AI Magazine 2008](http://linqs.cs.umd.edu/projects/projects/lbc/)

[3] [Hamilton, William L, Ying, Rex, and Leskovec, Jure. Inductive representation learning on large graphs.](https://arxiv.org/abs/1706.02216)

repository: Pengchengpcx/Neighbor-Sampling-GCN

repo_name: Pengchengpcx/Neighbor-Sampling-GCN


text:
# Goals of `actions`
The features of the library that `actions` should become.

## Eliminating side-effects
### Why
- Reduces the risk of bugs
- Code becomes **modular**!
    - An element/struct can be taken out without any issues, no worries about what it affects: **it only affects things it owns**
- Without side-effects it is much easier to **reason about the code** and what it does

### How
1.  Making sure every datastructure can **only access it's children**
    - **Updates flow down**
    - Optional **requests for more data flow back up** in the return statements

2.  Force the programmer to **return the inverse of each action** when an action is 'performed'
    - This is to make sure every action is well-defined
    - **Inverse can be tested!** Generate a random state, execute the action, then the inverse. Assert that the new state equals the initially generated state.

## Enabling the API-consumer to easily integrate *undo* and *redo* functionality
### Why
Undo and redo functionality is an essential requirement for a lot of software. Users heavily rely on it.

### How
1. Letting the API-consumer implement a function **that receives actions and does something expected based on the action**
    - This function must **return an action that sets the state exactly back** to how it was before the action was received
2. Letting the API-consumer **specify which actions should merge directly** if executed sequentially. (Example: Microsoft Word removes a whole word when undo'ing instead of removing single characters)

## Allowing the API-consumer to compress a list of actions
**Compressing**: reducing the size of the list (as much as possible) without losing changes.<br>
**This can be tested by** generating a random state, execute the action, then the inverse. The state should then match the originally generated state.

### Why
> compressing seems more like something you would want to do if you want to keep a difference-log of an application. For example, if you are writing an editor for a game-engine. Whenever the user saves, the current chain could be **compressed an stored to the drive** (where size matters). It could then be used to show the differences between saves to the user (the **minimal single actions required to get to the new state**: "You moved this object", etc.).

### How
1. Enabling the **API-consumer to implement logic for merging** actions
2. Exposing a **function in the API that compresses** a `Chain` of actions (a vector containing actions) into a `Chain` of fewer actions.

repository: actions-library/actions

repo_name: actions-library/actions


text:
---
title: Web Designer vs Website Builder and Which is Best for You
categories:
  - Web Design
  - Comparisons
  - Tips
author_staff_member:
date: 2017-07-31 00:00:00
---

You know your business needs a website. Deciding whether you try and tackle it yourself or hire a professional, can prove to be a difficult decision. The good news is, both solutions work; it just depends on your priorities.

Let's compare popular online services such as Weebly, Wix and Squarespace with professional web developers.

![](/uploads/versions/stocksnap-w13mh17022---x----4460-2973x---.jpg)

## Advantages of Website Builders

They are free! lets not kid ourselves, this is the main reason this dilemma even exists.

Besides the cost of purchasing a professional theme or plugin, you can have your site up and running without touching the bank. Perfect for small budgets and personal projects.

They are easy to use… initially. Quickly starting a site can take a matter of seconds. After that adding new text, images and even plugins can be done with the click of a button.

It's only once you need to do something beyond the scope of the tutorial, that one realizes the hidden learning curve involved.

Your website will look good, as online themes are made by experts in the field. It will however be more difficult to distinguish your site from the crowd.

They have large and active communities. If you get stuck with an issue or need a specific problem solved with a plugin, it's likely someone else has been there before. Resources are available online to help you get through it.

## Advantage of Website Designers

They do everything for you! Even with an online tool, making a website is a time consuming process. This only gets harder as the needs of your site increase.

Time is your most valuable resource, and outsourcing the work can save you 10's of hours. This can even save you money if the extra hours are put to good use improving your business.

They make superior websites. Web designers have spent years learning how to best optimize their webpages, They simply know what works. From load speeds, to user design and layout; a custom website will always out perform a packaged product if made correctly.

This is especially relevant for search engine optimisation (the art of being seen on google), and becomes even more important as your site scales in traffic.

They are also more secure, as they don't rely on bulky and easily hack-able code that is required for an online builder to work. Cyber crime is only getting worse, and older and badly maintained websites are primary targets.

They offer total customization. While builders allow you to quickly open a template and fill out some content, they look generic. Designers take your specific needs into consideration and create sites that help you differentiate your business or product.

No matter what your goal or brand identity, a developer with the right skill can craft a solution for you.

## Which is Best for You

If you need a simple webpage, and have the free time to spend learning and creating it, using a website builder can be a decent solution. Most importantly it's free, but besides that its gives you easy access to features that are complex to create manually, and there are large communities that help you work on the site. It is quick to start, and easy to create a simple site so long as you don't mind it looking pretty generic.

On the other hand a website designer is a better choice if you care about any of the following criteria:

* you're busy and need the website made without hassle.
* you require a unique design that separates itself from the limited templates online.
* your business exists in a competitive field where you need every advantage in order to be seen on google over your competitors.
* your customers might be sensitive to slow page speeds, or frequently experience bad connectivity.
* you process a large amount of customers or expect your business to scale rapidly in the future.
* you want your website to last longer, without experiencing the security risks that are innately built into older versions of website builders.

Hopefully this comparison helps you in making a decision. Remember, it all boils down to what you require.

All you need is a website that "gets the job done", and you have some time to fiddle around, a website builder is the choice for you.

However, if you require higher standards and customization; a web designer is the better option. That's exactly what I do here at [Nomad Webworks](/contact/)!

repository: TimothyMostert/Nomad-Webworks-Final

repo_name: TimothyMostert/Nomad-Webworks-Final


text:
---
versionFrom: 8.0.0
---

# Member Picker

`Alias: Umbraco.MemberPicker`

`Returns: IPublishedContent`

The member picker opens a panel to pick a specific member from the member section. The value saved is of type IPublishedContent.

## Data Type Definition Example

![Media Picker Data Type Definition](images/Member-Picker-DataType-v8.png)

## Content Example

![Member Picker Content](images/Member-Picker-Content-v8.png)

## MVC View Example

### Typed

```csharp
@{
    if(Model.HasValue("author")){
        var member = Model.Author;
            @member.Name
    }
}
```

repository: jkulker/UmbracoDocs

repo_name: jkulker/UmbracoDocs


text:
---
author: jeffatwood
comments: true
date: 2009-09-29 06:59:10+00:00
layout: post
redirect_from: /2009/09/free-trilogy-stickers-for-top-users
hero:
slug: free-trilogy-stickers-for-top-users
title: Free Trilogy Stickers for Top Users
wordpress_id: 1979
tags:
- company
- community
- serverfault.com
- superuser.com
---

If you're a top user on any of the Trilogy sites, I've got some good news for you. As a gesture of thanks for being such an involved member of the community, **we'd like to send you some [Trilogy stickers](http://blog.stackoverflow.com/2009/08/in-stickers-we-trust/) absolutely free!**

![](/images/wordpress/stickers-near-loose.jpg)

The fine print: to take advantage of this offer, **you must be on page 1 or page 2 of the /users page** of any trilogy site.

  * [stackoverflow.com/users](http://stackoverflow.com/users)

  * [serverfault.com/users](http://serverfault.com/users)

  * [superuser.com/users](http://superuser.com/users)

  * [meta.stackoverflow.com/users](http://meta.stackoverflow.com/users) (page 1 only)

 (due to strictly limited ["special edition" meta stickers](http://meta.stackoverflow.com/questions/19857/meta-stack-overflow-stickers-are-here), you must be on page 1 of meta.) If you are a top user on multiple sites, you have my most hearty congratulations, but you can only claim stickers once, not multiple times. If we have already sent you stickers for any reason, you can't request them again.

To claim your stickers, simply **[click here to enter your address](http://spreadsheets.google.com/viewform?formkey=dHJIN0FXSkE2RDJWVFNxZFVLOW9oN1E6MA)** and we'll get the stickers mailed out to you within a week or so.

Also, because not everyone reads the blog, I'll try to shoot an email tomorrow to all the relevant users to make sure they're aware of this _fabulous_ offer.

update: all stickers were mailed Tuesday, October 13th. This reflects any top user sticker requests up to October 7th, and I don't see any new ones, so I think we're complete! Enjoy your stickers -- you've earned them.

repository: bongjovi/stack-blog

extension: markdown

repo_name: bongjovi/stack-blog


text:
# Exam Preparation 70-483 Programming in C#

## Rethrowing Exceptions
What is the difference between `throw`, `throw ex` and `throw new Exception()`

## Creating custom Exception
Which class should be use as the base class for custom Exceptions?

repository: thoblerone/C-Sharp

repo_name: thoblerone/C-Sharp


text:
# json-property-filter

> JavaScript library and application to filter a JSON object by including and excluding properties.

[![MIT License][license-image]][license-url]
[![npm version][npmjs-image]][npmjs-url]
[![TypeScript][typescript-image]][typescript-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![typescript-standard-style][standard-image]][standard-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]

**json-property-filter** is a JavaScript library, developed in TypeScript, providing a function to include and/or exclude JSON properties. In addition to providing a function, an executable is available to filter a JSON file.

The library can also be from a Web page: the generated code is ES5 compatible.

## Getting Started

### Usage

To install to using [npm](https://www.npmjs.com/) package manager:

```bash
npm install json-property-filter
```

After installation, You can use the library this way:

```typescript
import * as jsonPropertyFilter from "json-property-filter";

const source = { key: "value" };
const filters = ["**"];
const result = jsonPropertyFilter.apply(source, filters);
```

If you want to have to have a quick overview of all features of this library, take a look at the [unit tests](test) or on [RunKit website](https://tonicdev.com/cyrilschumacher/json-property-filter).

### Command-Line

You have possibility to run in command-line this library without create a small TypeScript file. This executable provides all the options that are available at the code level. To see all the options, run the following line:

```bash
json-property-filter --help
```

To filter a JSON file and produce a filtered JSON file containing only `message` and `timestamp` properties, the following options are used:

```bash
json-property-filter --in "source.json" --out "destination.json" --filters "message" --filters "timestamp"
```

To filter a JSON file and display the result formatted with 4 spaces in the console, the following options are used:

```bash
json-property-filter --in "source.json" --filters "message" --filters "timestamp" --pretty --pretty-space 4
```

## License

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

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE

[npmjs-image]: https://badge.fury.io/js/json-property-filter.svg
[npmjs-url]: https://www.npmjs.com/package/json-property-filter

[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines

[travis-image]: https://travis-ci.org/cyrilschumacher/json-property-filter.svg
[travis-url]: https://travis-ci.org/cyrilschumacher/json-property-filter

[typescript-image]: https://badges.frapsoft.com/typescript/code/typescript.svg?v=101
[typescript-url]: https://github.com/ellerbrock/typescript-badges/

[snyk-image]: https://snyk.io/test/github/cyrilschumacher/json-property-filter/badge.svg
[snyk-url]: https://snyk.io/test/github/cyrilschumacher/json-property-filter

[coveralls-image]: https://coveralls.io/repos/github/cyrilschumacher/json-property-filter/badge.svg?branch=develop
[coveralls-url]: https://coveralls.io/github/cyrilschumacher/json-property-filter?branch=develop

repository: cyrilschumacher/json-property-filter

gha_language: TypeScript

repo_name: cyrilschumacher/json-property-filter


text:
---
title: Do professional certifications belong in your e-mail signature?
author: Major Hayden
type: post
date: 2010-10-16T15:53:25+00:00
url: /2010/10/16/do-professional-certifications-belong-in-your-e-mail-signature/
dsq_thread_id:
  -<PHONE_NUMBER>
categories:
  - Blog Posts
tags:
  - advice
  - certifications
  - sysadmin
  - twitter

---
After a discussion amongst coworkers about professional certifications in e-mail signatures yesterday, I decided to throw the question out to [Twitter][1] to gather some feedback:

> [rackerhacker][2]: Quick Twitter poll for the nerds: How many certification abbreviations do you put in your e-mail signature? [[Permalink][3]]

The question must have struck a nerve with folks as I had over 50 replies in less than 10-15 minutes. I expected to hear a lot of people say "zero", and there were quite a few responses that didn't surprise me:

> [minter][4]: @RackerHacker Zero

> [stwange][5]: @RackerHacker none it's pretentious

> [nickboldt][6]: @RackerHacker Zero. My cert-fu is weak.

> [scassiba][7]: @RackerHacker none, I don't feel it's necessary to fluff up an email signature with certifications

> [errr_][8]: @RackerHacker 0

> [chrstphrbrwn][9]: @RackerHacker Zero. I don't use an email signature.

> [DamianZaremba][10]: @RackerHacker none, makes you look a bit stuck up imo

> [saiweb][11]: @RackerHacker 0

> [jirahcox][12]: @RackerHacker 0. Job title only if absolutely necessary.

> [jtimberman][13]: @RackerHacker None mine are almost all expired anyway :)

> [ckeck][14]: @RackerHacker zero

> [billblum][15]: @RackerHacker None.

> [puppetmasterd][16]: @RackerHacker zero, or preferably fewer

> [ripienaar][17]: @RackerHacker zero, they dont add value. Much rather link me to your github account so I can make up my own mind :)

> [redbluemagenta][18]: @RackerHacker None. People can see for themselves through other avenues (blog, github, references) if you're any good.

> [ubuntusoren][19]: @RackerHacker none

There were a few people who disagreed:

> [bwwhite][20]: @RackerHacker Just one because that's all I have :) But I think 2 should be the limit. Pick the 2 most relevant to your current role

> [jwgoerlich][21]: Generally 2. Depends on the email topic.

> [whitenheimer][22]: @RackerHacker just one, some of them aren't worth putting

> [russjohnson][23]: @RackerHacker Currently none but have done upto 4

> [rbp1987][24]: @RackerHacker I only put the most relevant or the highest level of cert that i have. Why what do you do at the moment?

> [hotshotsphoto][25]: @RackerHacker MCP, MCP+I, CNA MCSE ITIL Practitioner….but only when I'm working in the IT field

There were quite a few that were strongly worded or humorous:

> [rjamestaylor][26]: @RackerHacker I hate them - R Taylor, SCJP, MCP, RHCP, BSci, SAG

> [mshuler][27]: .@RackerHacker I regard email signatures similar to SUVs - the size is relevant to the compensation factor

> [iota][28]: @RackerHacker zero; as number of reported certifications increase, respect for sender decreases - my law #1514

> [raykrueger][29]: @RackerHacker <http://theoatmeal.com/comics/email>

> [hjv][30]: @RackerHacker I'm Ebay A+++ Certified.

> [unixdaemon][31]: @puppetmasterd @RackerHacker I'd love to see "Failed my MCP due to realising 10 minutes in that it would taint my soul. Forever." on a CV.

> [swimsaftereatin][32]: @mshuler @RackerHacker And ASCII art is to the signature as a huge purple spoiler is to a pickup truck.

> [anoopbhat][33]: @RackerHacker none. unless there is a cert whose acronym is BADASS.

> [sarahvdv][34]: @RackerHacker None because I only have one and it's almost embarrassing to put "CompTIA Network+ Certified" in my signature.

> [0x44][35]: @RackerHacker Zero. Certifications are nerd short-hand for "Don't hire me."

I'm certainly not against certifications - they're a good way for vendors to ensure that there are trained professionals that meet a certain set of minimum knowledge levels about their product. When you hire someone with a particular certification, you should be able to assume that they have this minimum knowledge level (for most certifications).

However, a certification says absolutely nothing about how a job candidate has actually _applied these skills_ to their previous work. For example, consider a systems administrator with a CCNA. If you ask the job applicant something like "So, how much experience do you have working with Cisco" for a Cisco-heavy job position and they reply that they've set up a Cisco PIX a few times, but they mainly focus on Linux administration, then what is that certification worth to your company?

As for e-mail signatures, I'd leave out the certifications. If you're sending e-mails to coworkers that you already know, there shouldn't any reason for you to "fluff" your signature with those abbreviations. They should already be familiar with your abilities and the addition of certifications to the e-mail doesn't add anything valuable to the e-mail itself. If you're sending e-mails to people you don't know (especially for a job), it makes your e-mail look pretentious.

 [1]: http://twitter.com/rackerhacker/
 [2]: http://twitter.com/rackerhacker
 [3]: http://twitter.com/RackerHacker/status/27448088177
 [4]: http://twitter.com/minter
 [5]: http://twitter.com/stwange
 [6]: http://twitter.com/nickboldt
 [7]: http://twitter.com/scassiba/status/27448504377
 [8]: http://twitter.com/errr_
 [9]: http://twitter.com/chrstphrbrwn
 [10]: http://twitter.com/DamianZaremba
 [11]: http://twitter.com/saiweb
 [12]: http://twitter.com/jirahcox
 [13]: http://twitter.com/jtimberman
 [14]: http://twitter.com/ckeck
 [15]: http://twitter.com/billblum
 [16]: http://twitter.com/puppetmasterd
 [17]: http://twitter.com/ripienaar
 [18]: http://twitter.com/redbluemagenta
 [19]: http://twitter.com/ubuntusoren
 [20]: http://twitter.com/bwwhite
 [21]: http://twitter.com/jwgoerlich
 [22]: http://twitter.com/whitenheimer
 [23]: http://twitter.com/russjohnson
 [24]: http://twitter.com/rbp1987
 [25]: http://twitter.com/hotshotsphoto
 [26]: http://twitter.com/rjamestaylor
 [27]: http://twitter.com/mshuler
 [28]: http://twitter.com/iota
 [29]: http://twitter.com/raykrueger
 [30]: http://twitter.com/hjv
 [31]: http://twitter.com/unixdaemon
 [32]: http://twitter.com/swimsaftereatin
 [33]: http://twitter.com/anoopbhat
 [34]: http://twitter.com/sarahvdv
 [35]: http://twitter.com/0x44