text:
# Cold_Sun

Cold_Sun is a single column Jekyll theme built using [Foundation 6](http://foundation.zurb.com/) by Zurb, for your personal site, blog, portfolio.

## Features

 - JS & SCSS compiled using webpack

## File Sturcture

 - **_includes** Repeatable bits of HTML snippets
 - **_layouts** html layouts of pages
 - **_posts** Blog posts

## Asset files
 - **js** Add site JavaScript to app.js. Vendor libraries are added as minified where available.
 - **css** Includes compiled css file from the **_scss** folder

## Demo

<https://kaz-yamada.github.io/Cold_Sun>

## Credits

### Creator

**Kazuki Yamada***

- <https://kaz-yamada.github.io>

**Foundation 6**

- <http://foundation.zurb.com/>

## License

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


text:
---
title: How It Works
---

### Internals

The process that I outline in the [Why]({% link _docs/why.md %}) about clicking around is close to the logic that actually takes place in the tool. Here's an overview of what actually happens internally for those who are interested.

Steps:

1. list-tasks: list all the tasks for their task_arns (scoped to service).  this is all tasks on the service.  We already know the service name!
2. describe-tasks: Using the task_arns from list-tasks. This will provide the container instance scoped the service since list-tasks was scoped to service.  Keep the task arn for step 7. Also describe-task-definition and capture env vars and image for step 8b.
3. describe-container-instances: Using container\_instance\_arn from step 2. This will provide the instance_id to ssh into.
4. ec2 describe-instances to get the dns name or IP address.
5. Copy over files with required info over to the server with scp.
6. ssh into the machine with IP address.
7. Use the ecs metadata and pass it the task_arn from step 2. This will provide the map to the container id.
8. Run docker command
    1. docker exec -ti CONTAINER_ID `options[:command]`
    2. docker run -ti IMAGE `options[:command]`

In order to pass info over from your local machine to the container instance a file is generated and copied in step 5. The file contains:

* Options all the way from the original cli call like command to run. This is in json form.
A bash script is also copied.
* Bash script gets the container id using the task_arn. It also will run the docker exec or run command.
* So bash script does steps 7 and 8.1 or 8.2.

NOTE: I thought it would be possible to map the container instance info from `aws ecs describe-services` but it is not possible. But we can map to the container instance DNS name starting from `aws ecs list-tasks`.

Back
Next Step

Pro tip: Use the <- and -> arrow keys to move back and forward.

license: MIT

repository: boltops-tools/sonic

branch_name: refs/heads/master

extension: md

gha_language: Ruby

gha_license_id: MIT

license_type: permissive

repo_name: boltops-tools/sonic


text:
---
title: "IBM Cloud for AWS professionals"
description: "This article will hopefully help anyone coming from the AWS ecosystem translate their workloads into IBM Cloud. "
date: "2017-07-17"
tags:
    - "tools"
---

## IBM Cloud for AWS professionals
This article will hopefully help anyone coming from the AWS ecosystem translate their workloads into IBM Cloud.

## Basic Concepts
[IBM Cloud](https://console.ng.bluemix.net/docs/overview/whatisbluemix.html#bluemixoverview) has three main silos. [Infrastructure](https://console.ng.bluemix.net/catalog/?category=infrastructure) , [Applications](https://console.ng.bluemix.net/catalog/?category=applications) , and [Services](https://console.ng.bluemix.net/catalog/?category=services).

_Infrastructure_ is built on [SoftLayer](htts://www.softlayer.com) and is available in over 30 [SoftLayer Datacenters](http://www.softlayer.com/data-centers) across the world. All of which are interconnect with our unmetered [private network](http://www.softlayer.com/network).

_Applications_ can be either [Cloud Foundry](https://www.ibm.com/cloud-computing/bluemix/runtimes), [Docker](https://console.ng.bluemix.net/docs/containers/container_index.html), or [Open Whisk](https://console.ng.bluemix.net/openwhisk/)

[_Services_](https://console.ng.bluemix.net/catalog/?category=services) contain a huge catalog of pay as you go addons to your application, such as Watson, Databases and Analytics to name a few.

## [Network](http://www.softlayer.com/network)
On IBM Cloud Infrastructure (SoftLayer) you are only charged for bandwidth that leaves your account. Incoming traffic, and everything on the private network is unmetered, allowing you to take full advantage of our worldwide private network for shipping data between locations. For more information on bandwidth costs see our [pricing page](http://www.softlayer.com/info/pricing).

See [Deconstructing SoftLayer's Three Tiered Network](http://blog.softlayer.com/2013/deconstructing-softlayers-three-tiered-network) for some more information on how it all works.

## [Bare Metal](http://www.softlayer.com/bare-metal-servers)
Standard-configuration servers available within 20-30 minutes, and fully customizable servers available within 4 hours. [Power8 servers](http://www.softlayer.com/power-servers) are available as well, built on IBM OpenPOWER architecture. [GPU](http://www.softlayer.com/GPU%20) cards and [SAP certified servers](https://www.ibm.com/cloud-computing/bluemix/sap-bare-metal-servers) are also available

## [Watson](https://www.ibm.com/cloud-computing/bluemix/watson)
With Watson on IBM Cloud, you have access to the widest range of cognitive technologies available today to quickly and securely build smart applications. From analyzing images and video to understanding sentiment, keywords and entities from text, our Watson services enable cognitive within your applications.

## API
Everything in IBM Cloud can be managed with an API, for infrastructure this is done through the [SoftLayer API](http://sldn.softlayer.com/) and IBM Cloud Apps and Services can be managed through the [IBM Cloud CLI](https://console.ng.bluemix.net/docs/cli/reference/cfcommands/index.html) which is an implementation of the [Cloud Foundry API](https://apidocs.cloudfoundry.org/247/)

## [Pricing](https://www.ibm.com/cloud-computing/bluemix/pricing)
Most IBM Cloud services have a very aggressive free trail / tier to get you started, and transparent pricing plans for when you need to scale up. More information on [IBM Cloud Pricing](https://console.ng.bluemix.net/docs/pricing/index.html#pricing) and [SoftLayer Pricing Calculator](http://www.softlayer.com/tco/)

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

What follows is a rough comparison between IBM Cloud, AWS and Azure. Not all of these services will line up 1:1, but most of them are fairly close. Of course, if you have questions about anything in here, please [Contact Us](https://www.ibm.com/cloud-computing/bluemix/contact-us)

## Infrastructure
### Compute

IBM Cloud | AWS | Azure
 ------ | ----- | -----
 [Virtual Server](https://console.ng.bluemix.net/catalog/infrastructure/virtual-server-hourly/) | EC2   |  Virtual Machines
 [Dedicated Virtual Serviers](https://www.ibm.com/cloud-computing/bluemix/virtual-servers) | Dedicated EC2 | N/A
 [Bare Metal Server](https://console.ng.bluemix.net/catalog/infrastructure/bare-metal-server-monthly/) |  N/A | N/A
 [nVidia GPU](http://www.softlayer.com/gpu) | EC2 Elastic GPUs | N/A
 [Vmware Solution](https://www.ibm.com/cloud-computing/solutions/ibm-vmware/console/) | VMware on AWS Cloud| N/A
 [SAP HANA](https://www.ibm.com/cloud-computing/bluemix/sap-bare-metal-servers) | SAP HANA | SAP HANA
 [Hardware Security Module](https://www.ibm.com/cloud-computing/bluemix/hardware-security-module) | Cloud HSM | Azure Key Vault
 [Intel TXT](https://www.ibm.com/cloud-computing/bluemix/intel-txt) | N/A | N/A
 [IBM CloudPrivate Cloud](https://www.ibm.com/cloud-computing/bluemix/bluemix-private-cloud) | N/A | N/A

### Storage
IBM Cloud | AWS | Azure
 ------ | --- | -----
 [Block Storage](https://console.ng.bluemix.net/catalog/infrastructure/block-storage---performance/) | Elastic Block Storage|  Page Blog Premium Storage
 [File Storage](https://console.ng.bluemix.net/catalog/infrastructure/file-storage---performance/) | Elastic File System | File Storage
 [Content Delivery Network](https://console.ng.bluemix.net/catalog/infrastructure/content-delivery-network/) | CloudFront | Content Delivery Network
 [IBM Cloud Object Storage](https://console.ng.bluemix.net/catalog/infrastructure/ibm-cloud-object-storage--s3-api-open-trial/) | S3 | Blob Storage
 [Mass Storage Servers](https://www.ibm.com/cloud-computing/bluemix/mass-storage-servers) | N/A | N/A
 [Quantastor](https://www.ibm.com/cloud-computing/bluemix/quantastor) | N/A | N/A

### Backup
IBM Cloud| AWS | Azure
------ | --- | -----
 [Veeam](https://www.ibm.com/cloud-computing/bluemix/veeam) | N/A | N/A
 [Evault](https://knowledgelayer.softlayer.com/topic/evault-backup) | Backup and Recovery | Cloud Backup
 [r1soft](https://knowledgelayer.softlayer.com/topic/r1soft-cdp) | N/A | N/A

### Network
IBM Cloud| AWS | Azure
------ | --- | -----
[Local Load Balancing](https://console.ng.bluemix.net/catalog/infrastructure/local-load-balancing/) | Elastic Load Balancing | Load balancer Application Gateway
[Dedicated Netscaler VPX/MPX](https://console.ng.bluemix.net/catalog/infrastructure/citrix-netscaler-vpx-dedicated-load-balancer/)| N/A | N/A
[DNS](https://console.ng.bluemix.net/catalog/infrastructure/domain-name-service/) | Route 53 | DNS (preview) traffic manager
[Direct Link](https://console.ng.bluemix.net/catalog/infrastructure/direct-link-cloud-exchange/) | Direct Connect | Express Route
[Vyatta Gateway Appliance](https://console.ng.bluemix.net/catalog/infrastructure/vyatta-gateway-appliance/) | N/A | N/A
[Private Network ](https://console.ng.bluemix.net/catalog/infrastructure/vlan-spanning/)| Virtual Private Cloud | Virtual Network

### Network Security

IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Fortigate Security Appliance](https://console.ng.bluemix.net/catalog/infrastructure/fortigate-security-appliance/) | N/A  | N/A
 [Dedicated Hardware Firewall](https://console.ng.bluemix.net/catalog/infrastructure/hardware-firewall-dedicated/) | N/A  | N/A
 [Hardware Firewall](https://console.ng.bluemix.net/catalog/infrastructure/fortigate-security-appliance/) | Security Groups  | Network Security Groups
 [SSL Certificates](https://console.ng.bluemix.net/catalog/infrastructure/ssl-certificates/) | N/A | N/A

## Applications

IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Cloud Foundry](https://console.ng.bluemix.net/catalog/?category=runtimes)| Elastic Beanstalk | Web Apps Cloud Services
 [Kubernetes](https://console.ng.bluemix.net/docs/containers/container_index.html) | EC2 Container Service/ Blox  | Container Service
 [OpenWhisk ](https://console.ng.bluemix.net/openwhisk/)| Lambda | Functions Web Jobs Logic Apps

### Mobile
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Mobile Foundation](https://console.ng.bluemix.net/catalog/services/mobile-foundation/) | Mobile Hub | Mobile Apps
 [Mobile Analytics](https://console.ng.bluemix.net/catalog/services/mobile-analytics/) |Mobile Analytics | Mobile Engagement
 [Push Notifications](https://console.ng.bluemix.net/catalog/services/push-notifications/) | Simple Notification Service  | Notification Hubs
 [App ID](https://console.bluemix.net/catalog/services/app-id) | IAM | Azure Active Directory

## Services

### Data and Analytics
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Apache Spark ](https://console.ng.bluemix.net/catalog/services/apache-spark/)| N/A | N/A |
 [BigInsights for Hadoop](https://console.ng.bluemix.net/catalog/services/biginsights-for-apache-hadoop/) | N/A |N/A
 [Cloudant NoSQL ](https://console.ng.bluemix.net/catalog/services/cloudant-nosql-db/) | DynamoDB | DocumentDB
 [Compose Enterprise](https://console.bluemix.net/catalog/services/compose-enterprise) | N/A | N/A
 [Compose Elasticsearch ](https://console.ng.bluemix.net/catalog/services/compose-for-elasticsearch/) | Elasticsearch Service | Search
 [Compose etcd](https://console.ng.bluemix.net/catalog/services/compose-for-etcd/) | N/A | N/A
 [Compose MongoDB](https://console.ng.bluemix.net/catalog/services/compose-for-mongodb/) |  DynamoDB | DocumentDB
 [Compose MySQL](https://console.bluemix.net/catalog/services/compose-for-mysql) | Amazon RDS | Azure Database for MySQL
 [Compose PostgreSQL](https://console.ng.bluemix.net/catalog/services/compose-for-postgresql/) | RDS | SQL Database
 [Compose RabbitMQ ](https://console.ng.bluemix.net/catalog/services/compose-for-rabbitmq/) | Simple Queue Service | Queue Storage
 [Compose Redis](https://console.ng.bluemix.net/catalog/services/compose-for-redis/) | ElastiCache |Azure Redis Cache
 [Compose RethinkDB](https://console.ng.bluemix.net/catalog/services/compose-for-rethinkdb/) |  N/A | N/A
 [Compose ScyllaDB](https://console.bluemix.net/catalog/services/compose-for-scylladb) | N/A | N/A
 [dashDB](https://console.ng.bluemix.net/catalog/services/dashdb/) | Redshift | SQL Data Warehouse (Preview)
 [dashDB for Transactions](https://console.ng.bluemix.net/catalog/services/dashdb-for-transactions-sql-database/) |Redshift | SQL Data Warehouse (Preview)
 [Data connect](https://console.ng.bluemix.net/catalog/services/data-connect/) |N/A | N/A
 [Data Science Experience](https://console.bluemix.net/catalog/services/data-science-experience) | N/A | N/A
 [Decision Optimization](https://console.ng.bluemix.net/catalog/services/decision-optimization/) | N/A | N/A
 [Geospatial Analytics](https://console.ng.bluemix.net/catalog/services/geospatial-analytics/)  | Earth on AWS | N/A
 [IBM DB2 CLOUD](https://console.ng.bluemix.net/catalog/services/ibm-db2-on-cloud/) |N/A | N/A
 [IBM Graph](https://console.ng.bluemix.net/catalog/services/ibm-graph/) | N/A | N/A
 [IBM Master Data Management](https://console.ng.bluemix.net/catalog/services/ibm-master-data-management-on-cloud/) | N/A | N/A
 [IBM Watson Machine Learning](https://console.ng.bluemix.net/catalog/services/ibm-master-data-management-on-cloud/) |  Machine Learning | Machine Learning
 [Information Server](https://console.ng.bluemix.net/catalog/services/information-server-on-cloud/) | N/A | N/A
 [Informix](https://console.ng.bluemix.net/catalog/services/informix-on-cloud/) | N/A | N/A
 [Lift](https://console.ng.bluemix.net/catalog/services/lift/) | Data Pipeline | Data Factory
 [Master Data Management](https://console.bluemix.net/catalog/services/master-data-management-on-cloud) | N/A | N/A
 [Streaming Analyics ](https://console.ng.bluemix.net/catalog/services/streaming-analytics/) |  Kinesis Analytics (Preview) | Data Lake Analytics (Preview)
 [Weather Company Data](https://console.ng.bluemix.net/catalog/services/weather-company-data/) | N/A | N/A
 [API Connect](https://console.ng.bluemix.net/catalog/services/api-connect/) |API Gateway | API Management

### Watson
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Conversation](https://console.ng.bluemix.net/catalog/services/conversation/)  | Lex | Bing Speech API
 [Discovery](https://console.bluemix.net/catalog/services/discovery) | N/A | Bing Autosuggest API
 [Document Conversion](https://console.ng.bluemix.net/catalog/services/document-conversion/) | N/A | N/A
 [Language Translator](https://console.ng.bluemix.net/catalog/services/language-translator/) | Polly | Translator API
 [Natural Language Classifier](https://console.ng.bluemix.net/catalog/services/natural-language-classifier/)  | Polly | Speech Recognition API
 [Personality Insights ](https://console.ng.bluemix.net/catalog/services/personality-insights/) | N/A | N/A
 [Retrieve and Rank](https://console.ng.bluemix.net/catalog/services/retrieve-and-rank/)  | N/A | N/A
 [Speech to Text](https://console.ng.bluemix.net/catalog/services/speech-to-text/) | Polly | Bing Speech API
 [Text to Speech](https://console.ng.bluemix.net/catalog/services/text-to-speech/) | Polly | Bing Speech API
 [Tone Analyzer](https://console.ng.bluemix.net/catalog/services/tone-analyzer/)  | Polly | Linguistic Analysis API
 [Visual Recognition](https://console.ng.bluemix.net/catalog/services/visual-recognition/) | Rekognition | Computer Vision API

### Internet of Things (IoT)
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [IoT Platform ](https://console.ng.bluemix.net/catalog/services/internet-of-things-platform/) | IoT (Preview)/ Kinesis Firehose | IoT Hub / Event Hubs
 [Context Mapping](https://console.ng.bluemix.net/catalog/services/context-mapping/) | N/A | N/A
 [Driver Behavior](https://console.ng.bluemix.net/catalog/services/driver-behavior/) | N/A | N/A
 [IoT for Electronics](https://console.ng.bluemix.net/catalog/services/iot-for-electronics/) | N/A | N/A
 [IoT for Insurance](https://console.ng.bluemix.net/catalog/services/iot-for-insurance/) | N/A | N/A

### Application Security
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Activity Tracker](https://console.bluemix.net/catalog/services/activity-tracker) | N/A | N/A
 [App ID](https://console.bluemix.net/catalog/services/app-id) | Identity and Access Management  | Azure AD/Role-based access control
 [Application security](https://console.ng.bluemix.net/catalog/services/application-security-on-cloud/) | Inspector (Preview) | Security Center (Preview)
 [Key Protect ](https://console.ng.bluemix.net/catalog/services/key-protect/) |Key Management Service | Key Vault
 [Single Sign On](https://console.ng.bluemix.net/catalog/services/single-sign-on/) | Directory Service | Azure Active Directory

### DevOps
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Auto-Scaling](https://console.ng.bluemix.net/catalog/services/auto-scaling/) | Autoscaling | Autoscaling
 [Availability Monitoring](https://console.ng.bluemix.net/catalog/services/availability-monitoring/) | CloudWatch / CloudTrail | Log Analytics Application Insights
 [Continuous Delivery](https://console.ng.bluemix.net/catalog/services/continuous-delivery/) | AWS CodeDeploy / OpsWorks CloudFormation< |Resource Manager Automation
 [Continous Release](https://console.bluemix.net/catalog/services/continuous-release) | AWS Config | N/A
 [DevOps Insights](https://console.bluemix.net/catalog/services/devops-insights?env_id=ibm:yp:us-south) | N/A | N/A
 [Globalization Pipeline](https://console.ng.bluemix.net/catalog/services/globalization-pipeline/) | N/A | N/A
 [IBM Alert Notification](https://console.ng.bluemix.net/catalog/services/ibm-alert-notification/) | N/A | N/A
 [Monitoring and Analytics](https://console.ng.bluemix.net/catalog/services/monitoring-and-analytics/) | CloudWatch / CloudTrail | Log Analytics Application Insights

### Application Services
IBM Cloud| AWS | Azure
 ------ | --- | -----
 [Blockchain](https://console.ng.bluemix.net/catalog/services/blockchain/) | N/A | Blockchain as a Service
 [Business Rules](https://console.ng.bluemix.net/catalog/services/business-rules/) | N/A | N/A
 [Cloud Automation Manager](https://console.bluemix.net/catalog/services/cloud-automation-manager) | N/A | N/A
 [Message Hub](https://console.ng.bluemix.net/catalog/services/message-hub/) | Simple Queue Service| Queue Storage
 [WebSphere Application Server](https://console.ng.bluemix.net/catalog/services/websphere-application-server/) | N/A | N/A
 [Workload Scheduler](https://console.ng.bluemix.net/catalog/services/workload-scheduler/) | N/A | N/A

## Helpful Links
+ https://ibm-bluemix.github.io/
+ https://softlayer.github.io/
+ https://console.ng.bluemix.net/catalog/
+ https://mycatalog.mybluemix.net/
+ https://github.com/softlayer/
+ https://github.com/IBM-Bluemix/
+ https://www.ibm.com/cloud-computing/bluemix/

gha_language: HTML

gha_license_id: NOASSERTION


text:
# Setup

To begin, you're probably going to want to create a git repo to track your changes. Go ahead and do this.

The first thing you're going to want to do is install Java. Scala is a JVM language, which means that its compiler emits bytecode, which runs on a JVM. If you're on a Mac, you can probably just open a shell & type `java`. Though it's probably better to download from [the source](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). You will need a JDK (not a JRE), as of the time of writing this is "Java SE Development Kit 8u144". There is also [documentation](http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html) available (handy for linking into your IDE).

Then, you're going to want to download & install [sbt](http://www.scala-sbt.org). If you're on Mac, the easiest way is probably to `brew install sbt`, or you may wish to copy a version of [this runner](https://github.com/paulp/sbt-extras) locally (which is my preference) to the root of your project. Or, you can [follow the instructions](http://www.scala-sbt.org/0.13/docs/Setup.html).

So the first thing you're going to want to do is get a basic build going. You can follow along to the [documentation](http://www.scala-sbt.org/0.13/docs/Hello.html) to do this (ensure you have the correct path), but it will be something like:

```
$ ./sbt new sbt/scala-seed.g8
...
Minimum Scala build.

name [My Something Project]: Take Home Test

Template applied in ./take-home-test
```

What this will do is bootstrap sbt by downloading the latest version, then create a new project using the values you've given it. You will also get some supporting code, such as the Scala runtime (to run sbt).

Note that the `./take-home-test` may generate a directory with a different name, feel free to rename it.

You will now have a basic project structure:

```
$ ls -l take-home-test
total 8
-rw-rw----  1 tom  staff  282 Aug  9 20:58 build.sbt
drwxrwx---  4 tom  staff  136 Aug  9 20:58 project
drwxrwx---  4 tom  staff  136 Aug  9 20:58 src
```

These do the following:

* `build.sbt` - This is the project build file, it contains information about the project, etc.
* `project` - This directory contains supporting files for the build, including configuring the build itself (e.g. sbt plugins that give your build additional functionality).
* `src` - This is where your source code goes, including your tests. If you're familiar with Java, sbt uses the Maven style of directory structure (by default).

Let's go ahead & edit the build file, and update the Scala version to 2.12.3.

`sbt` can run both as a command or interactively (REPL). It's up to you how you want to use it, the REPL is quite nice, and allows you to interactively (with tab completion, etc.) run commands.

Let's run the app in the sbt console (sbt might do some building of things the first time):

```
$ cd take-home-test
$ ./sbt
> run
[info] Updating {file:/Users/tom/src/test/take-home-test/}root...
[info] Resolving jline#jline;2.14.1 ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/tom/src/test/take-home-test/target/scala-2.12/classes...
[info] Running example.Hello
hello
[success] Total time: 5 s, completed 09/08/2017 9:40:27 PM
> exit
```

Yay!

So this has tried to run the app, in order to do this it's compile the app first.

OK, you've just got yourself a basic Scala app up & running!

repository: tomjadams/scala-workshop

gha_language: Shell

repo_name: tomjadams/scala-workshop


text:
# README

Some test files:
- sp.xml looks like a Shibboleth SP's automatically-generated metadata
- idp.xml looks like a Shibboleth IdP's metadata

How to test
- copy the test file to `${UKF-DATA}/entities/import.xml`
- run `import.metadata` ant target

The comments should not be copied into `imported.xml`

I have not included examples of the output
because that would break when we update the
content of `import.xsl`

repository: ukf/ukf-meta

repo_name: ukf/ukf-meta


text:
# StructuralEngineering 2D Frames and Trusses (Raamwerken en vakwerken)
This is a small package for python 3. With it you can solve 2D Frames and Trusses calculations. Determine the bending moment, shear force, normal force and the displacements.

### Don't feel like coding?
Try it online: [www.laizen.nl](http://www.laizen.nl)

### See the wiki for some examples.

* __[Read the docs!](https://github.com/ritchie46/structural_engineering/wiki)__

## Installation

For the latest version download this repository and unzip the file. Open the command box in the unzipped file location and run:
```
$ python setup.py install
```

## 2D FEM Frames and Trusses
![](images/rand/structure.png)

## Concrete M-kappa diagram

M-kappa of a concrete cross section:

```python
import StructuralEngineering.concrete as se
# Define the concrete material
g_concrete = se.MaterialConcrete(
    fck=20,  # characteristic compression stress capacity
    fctk=1.545,  # characteristic tensile stress capacity
)

# Create the stress-strain-diagram
g_concrete.det_bi_linear_diagram()

# Define the rebar material
g_rebar = se.MaterialRebar(
    fyk=500,
)

# Define the reinforced concrete cross section
# beam 300 * 500
cs = se.ReinforcedConcrete(
    coordinate_list=[[0, 0], [0, 500], [300, 500], [300, 0], [0, 0]],
    materialConcrete=g_concrete,
    materialRebar=g_rebar)

# add rebar
cs.add_rebar(
    n=2,  # number of bars
    diam=12,  # diameter of the bars
    d=400)  # distance from the top of the cross section

cs.plot_M_Kappa()
```


text:
# Convert HTML to PDF
Install html-to-pdf
```sh
npm install -g puppeteer-html-to-pdf
```
Convert HTML to PDF
```sh
html-to-pdf < $HTML_FILE > $PDF_FILE
```

repository: Xervon/html-to-pdf

repo_name: Xervon/html-to-pdf


text:
---
layout: default
---

# 1995-07-29 - Re: what the military does and why (re: cryptography)

## Header Data

From: Alan Horowitz<EMAIL_ADDRESS>To: "Dr. Frederick B. Cohen"<EMAIL_ADDRESS>Message Hash: e64dbdb8a35a68ba058c1c88fdb727eddf665b043742dd8f23d5d53f3f8a0fc3

Message ID: \<Pine.3.89.9507291333.A17374-0100000@larry\>

Reply To<EMAIL_ADDRESS>UTC Datetime: 1995-07-29 17:24:47 UTC

Raw Date: Sat, 29 Jul 95 10:24:47 PDT

## Raw message

```
{% raw  %}From: Alan Horowitz<EMAIL_ADDRESS>Date: Sat, 29 Jul 95 10:24:47 PDT
To: "Dr. Frederick B. Cohen"<EMAIL_ADDRESS>Subject: Re: what the military does and why (re: cryptography)
In-Reply-To<EMAIL_ADDRESS>Message-ID: <Pine.3.89.9507291333.A17374-0100000@larry>
MIME-Version: 1.0
Content-Type: text/plain

On Sat, 29 Jul 1995, Dr. Frederick B. Cohen wrote:

> some of my writings and look through the citations I use as a basis for
> my opinions.  If you would like a reading list, look under Management
> Analytics in my W3 site:

Doc, how much actual workaday classified traffic have you laid eyes upon?
Never seen a E-2's orders to alcohol-rehabilitation school classified Top
Secret? Never seen extracts from Janes _Ships of the World_ classified as
Secret?

Management Analytics. That's what the world needs.

{% endraw %}
```

## Thread

+ Return to [July 1995](/archive/1995/07)

+ Return to "[Alan Horowitz <alanh@infi.net>](/authors/alan_horowitz_alanh_at_infi_net_)"
+ Return to<EMAIL_ADDRESS>(Dr. Frederick B. Cohen)](/authors/fc_at_all_net_dr_frederick_b_cohen_)"

+ 1995-07-29 (Sat, 29 Jul 95 04:37:31 PDT) - [NO reasno whatsoever for the MILITARY to use an intentionally WEAK encryption system. (fwd)](/archive/1995/07/82f32bb0e91c07f42fab26a78465847cc43cdfaa2187ad6a0986ca24155ae475) -<EMAIL_ADDRESS>(Dr. Frederick B. Cohen)_
  + 1995-07-29 (Sat, 29 Jul 95 07:19:04 PDT) - [Re: NO reasno whatsoever for the MILITARY to use an intentionally WEAK encryption system. (fwd)](/archive/1995/07/30e6ab59fa1d8f9fbeb8d95984539b6b562c04c06dd0835c6bb58aa477bfe1f9) - _Alan Horowitz<EMAIL_ADDRESS>    + 1995-07-29 (Sat, 29 Jul 95 08:41:42 PDT) - [what the military does and why (re: cryptography)](/archive/1995/07/c147383d2303fc839a7563b13140b49fd1960bb834a94fb01dcc051f693fedde) -<EMAIL_ADDRESS>(Dr. Frederick B. Cohen)_
      + 1995-07-29 (Sat, 29 Jul 95 10:24:47 PDT) - Re: what the military does and why (re: cryptography) - _Alan Horowitz<EMAIL_ADDRESS>        + 1995-07-29 (Sat, 29 Jul 95 10:43:24 PDT) - [Re: what the military does and why (re: cryptography)](/archive/1995/07/647cbe4e9fccdc0a78ce5c7bf2fa7417561cc9c0cdca69b243e7c53dc011198a) -<EMAIL_ADDRESS>(Dr. Frederick B. Cohen)_


text:
Ulam Spiral
====

A Javascript based Ulam Spiral generator. I created it with pure javascript.
A demo can be found on this: **[Github Page](http://alisentas.github.io/Ulam-Spiral)**

Usage
====

You can use it on your projects in three steps.

1.
Add our script to your website.
```html
<script src="ulam.js"></script>
```

2. Add a container div
```html
<div id="container"></div>
```

3. Call ulam function at bottom
```javascript
ulam(opts);
/**
		opts are:
		[Name]     [Type]         [Description]
		container: DOM elemment   container element, in our case: document.getElementById("container")
		width:     int            canvas width
		height:    int            canvas.height
		cubeWidth: int            prime number cube width
		color:     string         fill color
		startNum:  int            number to start
		count:     int            number amount to check
	*/
```

Function will add your div a canvas, which is our spiral.

License
====

Ulam spiral project is licensed under MIT License.

repository: alisentas/Ulam-Spiral

repo_name: alisentas/Ulam-Spiral


text:
# Crypto portal

A portal for cryptography (for now, in Slovene) for the purposes of a summer school in cryptography and beyond.

Written in python-flask, allowing both local test runs and Apache integration through WSGI.
To run locally, copy `auth.py.template` to `auth.py` (actual login data is not needed for the majority of the site) and run `crypto.py`.

The *work* branch should contain the current working version, without specifics needed for deploying (see below). Any subprojects should start by branching off *work*, and any finished subprojects shall be merged into *work* before being deployed.

The *devel* branch is automatically pushed to the live version at https://lkrv.fri.uni-lj.si/crypto-devel (access restricted to collaborators). Merging work in progress is permitted, but please do not merge *devel* into *master*.

The *master* branch is automatically pushed to the live version at https://lkrv.fri.uni-lj.si/crypto-portal .

repository: jaanos/crypto-portal

gha_language: JavaScript

repo_name: jaanos/crypto-portal


text:
---
layout: resource
title: SIMLab's program design considerations
author: SIMLab
category: resources
permalink: /resources/programdesign/
type: "Type"
---
Experiment: Program Design Considerations
This document takes you through some of the project design considerations that we’ve found help people to make their project a success. We have left it as a Microsoft Word document so that you can use it as a working document to inform your thinking and adjust to your own needs and context, in [English](http://simlab.org/resources/coursem4cso/files/SIMLab%20Program%20Design%20Considerations_Eng.docx), [French](http://simlab.org/resources/coursem4cso/files/SIMLab%20Program%20Design%20Considerations_FR.doc), and [Spanish](http://simlab.org/resources/coursem4cso/files/SIMLab%20Program%20Design%20Considerations_Spa.docx) and Spanish graphic [here](http://simlab.org/resources/coursem4cso/files/Use%20Case%20Map%20Graphic_SPA.docx).


text:
# PopupQueue
A manager for showing popup in order

If you have create some popup ui in your page, you may encounter multi-popup show up at the same time then the page is messed up. I create this tool for manage all the incoming popup and then control them show up one by one.

And then, I also add some grouping idea in the manager so you could manage parent-child popups avoid to writing lots of code for each case.

For hook this library to your system more easily, this library does not contain any popup ui. You just set some show/hide entry points to manager just tell it how to control your popups.

## Usage
Before you start, you should make a hidden link for open popup
```
<a href="javascript:void(0);" data-target="foo" id="popup_trigger-foo" style="visibility:hidden;"></a>
```
Your popup target is called foo, and you should add a onClick on this link to open your popup.

If you do not like this, you can modify the source code to fit your requirement.

When your popup close, you should tell the manager you has been closed
```
$(window).trigger('close_popup');
```
OK, when everything is ready, you could start to push the popup into the manager.
```
$(window).trigger('show_popup', {
    trigger_id  : "popup_trigger-" + identifier,
    callback    : function (target) {...}
});
```
In the callback parameter, you could add some code which will run after the popup shows.

Beside the callback parameter, I also add some parameter for grouping. You could check them in code.

After there are lots of popup calls $(window).trigger(), the manager will only let one to show up. The next popup will show automatically only when the first one is closed. The order in the manager is FIFO.

## License
Released under the [MIT license](http://www.opensource.org/licenses/MIT).


text:
# :shirt:Trode

## Description

Trode, the app to search, find, and exchange clothes!

## Scope

This application aims at helping users search, find, and exchange either used or new clothes.

By visiting this website, the user will be able to:

- Register or login.
- Upload a profile image.
- Upload clothes or accessories he or she no longer uses.
- Like, dislike or superlike a piece of clothe.
- Chat with users by WhatsApp when there is a match.
- Edit user or clothes information.

## **Getting Started**

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

## Mock Ups

- [Wireframes & MockUps](https://www.figma.com/file/TxD8bIGgXi1UTRwy9BVsA7/Trode?node-id=24%3A3)

## Installing

1. Download or clone the repository
2. install in your local machine

```jsx
git clone https://github.com/MasterSecondChance/Trode-Front.git
git clone https://github.com/MasterSecondChance/SecondChance_Back.git
```
```jsx
npm install
```
We highly recommend scanning the project for vulnerabilities and automatically install updates to vulnerable dependencies:
```jsx
npm fix audit
```

### Running
```jsx
npm run start
```

### Testing
```jsx
npm test
```

## Stack

### Frontend
- React
- Webpack
- Sass

### Backend
- Express
- Passport
- MongoDB
- UUID
- Cloudinary

## Demo

You can see the demo live [here](https://trode.netlify.app/).

### Preview

![preview.png](preview.png)

## Authors

- Alexander Alvarez
- Andrés Felipe Carrión
- Andrés Felipe Chávez
- Felipe Merchán
- Luis Ruiz

## **License**

This project is licensed under the MIT License - see the [LICENSE.md](https://gist.github.com/PurpleBooth/LICENSE.md) file for more details.

[![Netlify Status](https://api.netlify.com/api/v1/badges/1615fde3-6155-4136-9aab-ab6f500f34aa/deploy-status)](https://app.netlify.com/sites/trode/deploys)

repository: MasterSecondChance/Troud-Front

repo_name: MasterSecondChance/Troud-Front


text:
---
title: "Information Disclosure - Suspicious Comments"
alertid: 10027
alertindex: 1002700
alerttype: "Passive"
alertcount: 1
status: release
type: alert
risk: Informational
solution: "Remove all comments that return information that may help an attacker and fix any underlying problems they refer to."
cwe: 200
wasc: 13
alerttags:
  - OWASP_2021_A01
  - OWASP_2017_A03
code: https://github.com/zaproxy/zap-extensions/blob/main/addOns/pscanrules/src/main/java/org/zaproxy/zap/extension/pscanrules/InformationDisclosureSuspiciousCommentsScanRule.java
linktext: org/zaproxy/zap/extension/pscanrules/InformationDisclosureSuspiciousCommentsScanRule.java
date: 2021-12-01 12:19:21.667Z
lastmod: 2021-12-01 12:19:21.667Z
---
The response appears to contain suspicious comments which may help an attacker. Note: Matches made within script blocks or files are against the entire content not only comments.

repository: zapbot/zaproxy-website

repo_name: zapbot/zaproxy-website


text:
# C++ HTTP library

## About
This library contains the implementation of HTTP in C++ inspired by
[NodeJS HTTP](https://nodejs.org/api/http.html) module. It is tempting bo be
easy in use (like NodeJS one does) and extensible. The current roadmap
only includes [expresscpp](https://github.com/arsdever/expresscpp) module implementation, which, as you
might have guessed, will be based on [NodeJS Express](https://expressjs.com/)
module

## Build
This library contains only headers. But an additional third-party library
[sockpp](https://github.com/fpagliughi/sockpp) is required when building
your application or library.

## Usage
You should just include `<http.h>` header and start using it. Here is
a very simple example of its usage:
```c++
#include <http.h>
#include <thread>

using namespace events;
using namespace http;

int main()
{
	server svr;
	bool finished;
	svr.on_request += [&finished](incoming_message& req, server_response& res) {
		res.end("Hello world");
		finished = true;
	};

	svr.listen();
	while (!finished)
		std::this_thread::sleep_for(std::chrono::milliseconds(200));

	svr.close();
	return 0;
}
```

## Notes

I try to keep the interface of the library very close to
the one existing on NodeJS. So, anybody with knowledge
in NodeJS HTTP can easily understand this library and
vice-versa.

repository: arsdever/httpcpp

repo_name: arsdever/httpcpp


text:
# Notes concerning Ubuntu (18.04 and later)

## Profile creation for first time installation

* Create a profile using the **HPE - Foundation 1.0 - create empty OS Volume** OS Deployment Plan.

* As best practice, the minimum is to have two iSCSI connections (primary and secondary) on the Image Streamer network and at least one management network.

## First time installation

* Mount the [Ubuntu traditional installer](http://cdimage.ubuntu.com/releases/19.04/release/ubuntu-19.04-server-amd64.iso) in the **iLO Virtual Media**. Prefer the traditional server installer to the new Live installer.

* Boot from the **iLO Virtual Media** and step through the install for the first items Keyboard, location, locales, keyboard layout, language...

* In the Network Setup select a non-iSCSI NIC for your management interface. If you defined two iSCSI connections in the profile, you should select the third (i.e. `ens3f4`) connection in the list.

* You can postpone the configuration for a later time.

* Set up hostname, users and passwords

* By default the Ubuntu installer is not configured to detect iSCSI disks. Hence it will only propose visible non-iSCSI disks if any. Select **`<Go Back>`** button (lower left corner) to configure iSCSI target detection.

* From the Installer main menu, select **`Execute a shell`** at the **bottom** of the step list. Read and acknowledge the pop-up message.

* From the BusyBox shell configure the `ens3f0` NIC with the **Initiator IP address** found in the **first** network Connection of the Server Profile. Ping the iSCSI target to validate your network connection. The iSCSI target IP address is also present in the first connection of the server profile:

    ```bash
    ~ # ip addr add <IP_ADDRESS>/24 dev ens3f0
    ~ # ip link set ens3f0 up
    ~ # ping <IP_ADDRESS>
    ~ # exit
    ```

* Detect disks again and select `Configure iSCSI volumes`  or `Login to iSCSI targets` depending whether you have local disks or not.

* Supply the initiator iqn (i.e. `iqn.2015-02.com.hpe:oneview-vcg3m2x028`) and iSCSI Target IP address.You can find this info in the details of the first network connection of the OneView server profile.

* No username needed: select **`<Continue>`**

* You should now see the iSCSI target with a `lefthand` string in its iqn name. Hit `space` to select it and then <Continue>.

* Select a `Guided` or the `Manual` partitioning menu depending on your needs. The only important thing is that, for some reason guestfish in Image Streamer v4.10 and 4.20 does not recognize the Ubuntu `ext4` root (`/`) file system (not tested with 5.0 yet), which is the default. Hence, to use the [Legacy paradigm](docs/ImageStreamer-LegacyAndUefiParadigms.pdf), it is mandatory to switch to `ext3`. The UEFI paradigm works with all types of `/` file system. In this example we go through the `Guided - use entire disk and setup LVM` menus to explain how to modify the root file system type from `ext4` to something else. We assume as well that the OS volume has not been partitioned previously.

* Select the `LEFTHAND iSCSIDisk`

* Write the changes to disk and configure LVM ? `<Yes>`

* Adjust (or not) the amount of volume group and `<Continue>`

* Write the changes to disk ? **`<No>`**

* Select the line below the first `LVM` line and change `ext4` to `ext3 journaling file system` if you want to use the Legacy paradigm or something else if you want to use the UEFI paradigm.

* Hit the `Done setting up the file system` line

* `Finish partitioning and write changes to disk`: `<Yes>`

* Choose your favorite update method

* Select needed software (i.e. OpenSSH Server)

* Reboot. Make sure that the **iLO Virtual Media** has been disconnected.

* As soon as the green HPE logo appears, hit the `e` key to edit the grub configuration file. Since  the boot process goes very fast, you may want to stop first at the `One Time boot Options (F11)` to avoid missing this step.

* Append the `iscsi_auto` kernel option to the `linux` line so it looks like:

   ```bash
   linux ... iscsi_auto
    ```

* Hit `Ctrl-x` to save the modification and exit the editor

* Login and add the `iscsi_auto` option to the `GRUB_CMDLINE_LINUX`  variable of the `grub` configuration file:

    ```bash
    sudo vi /etc/default/grub
    ...
    GRUB_CMDLINE_LINUX="iscsi_auto"
    ...
    :wq!

    sudo update-grub

   ```

* If you intend to use the [UEFI paradigm](docs/ImageStreamer-LegacyAndUefiParadigms.pdf), create and insert the following lines to `/etc/rc.local` and add to it the execute protection in order to start the compatibility `rc-local` service during boot time.

```bash
echo '#!/usr/bin/bash' > /etc/rc.local
echo '/usr/bin/bash /boot/efi/EFI/HPE/isdeploy/HPE-ImageStreamer.bash' >> /etc/rc.local
chmod a+x /etc/rc.local
```

* Perform other customization at will

* Shutdown the server

## Golden Image capture

* From the OneView server profile used for the initial Ubuntu  installation, in the `OS Deployment` section, identify the OS volume that was created to hold this Ubuntu OS. This is the OS volume to use to capture the golden image.

* If the Image Streamer GUI is not already active, click on this OS-Volume to start it.

* In the Image Streamer GUI, select the `Golden images` page and then `Create golden image`

* Fill-up the `Name`, OS volume and optionally supply a description. A good practice is to append a suffix `-UEFI`or `Legacy` to mention which paradigm will be used by this Golden Image

* Select the appropriate `LinuxCapture-CaptureBP-HPE-[UEFI|Legacy]` Build Plan contained in the corresponding `LinuxMultiDistro-AB*` artifact bundle

* Click on the `Create` icon

* In case of problem, select `Activity` section from the pull down menu next to the Golden Image name and download the capture logs.

## Deployment Plan tips

TBD

gha_language: TypeScript


text:
## Through web view
To modify the page content through the browser login to /admin
Edit the different State Information
Ethnicities
State Guidelines
State Instructions

## Rake tasks
You can modify the different state specific information through different rake tasks

All
`bundle exec rake load_states:all` this should only be run once during the initial setup

State Deadlines - this updates the state deadlines
Modify the file `/data/state_deadlines.json`
`bundle exec rake load_states:deadlines` this is an update statement

State Instructions - this adds the state instructions, currently and insert not an update
Modify the file `/data/instructions.yml`
`bundle exec rake load_states:instructions` this is currently an insert statement

State Guidelines - this adds the state guidelines information, currently an insert statement
Modify the file `/data/state_info_en.yml`
`bundle exec rake load_states:instructions` defaults to the above file
You can pass in arguments to load in different files an locales
`bundle exec rake load_states:instructions[state_info_es.yml,es]`

repository: seawolff/voter-registration

repo_name: seawolff/voter-registration


text:
# China’s National Digital Currency is Anything but Decentralized says Ethereum Co-Founder

Published at: **2019-11-06T07:00:39+00:00**

Author: **Anthonia Isichei**

Original: [BTC Manager](https://btcmanager.com/chinas-national-digital-currency-ethereum-co-founder/)

        China’s national digital currency is in the works, which would monitor transactions and curb money laundering. However, according to a recent

          interview

         with

          CNBC

         on November 5, 2019, Ethereum co-founder, Joseph Lubin, believes that China’s central bank digital currency (CBDC) lacks a key component of blockchain technology, which is decentralization.

According to an earlier report by BTCManager, China revealed its plans to launch a central bank digital currency (CBDC), a project led by the country’s central bank. The move by China seemed like a turnaround from its previous negative stance against bitcoin and cryptocurrency in general.
But Lubin, who is also the founder of ConsenSys opined China’s CBDC is just a digital currency and nothing more.
Lubin added that the only way China’s national currency would adapt the full characteristics of distributed ledger technology (DLT) is if there are other stakeholders apart from the People’s Bank of China (PBoC) involved in the project. The Chinese government earlier stated that it was in no hurry to launch its CBDC.
The Ethereum co-founder when answering questions on whether the country’s CBDC would give the government and the PBoC more power and control stated that the Chinese government and the apex bank already considerable control.
Instead, the country’s national virtual currency would just enable the government to maintain control.
In Lubin’s words:
China is particularly known for its high level of censorship and monitoring — namely “the great firewall of China.” Decentralization does seem antithetical to the ethos espoused and maintained by authorities in Beijing.
Despite China’s previous history with cryptocurrency, it appears the country could be gradually embracing the nascent technology. According to a recent report, the country was looking to launch a Digital Currency Electronic Payment System (DCEP) before the end of 2019.
Also, amid enlightening the public about DLT and cryptocurrency, the Chinese government passed the “Cryptographic Law” which would be implemented at the beginning of the year 2020.

license: Unlicense

repository: dsadlollioygjmzvcxv/tdc-exported

repo_name: dsadlollioygjmzvcxv/tdc-exported


text:
## KrameWork\Utils\StringUtil

***Table of Contents***
* **Overview** - Information about the class.
* **Functions** - Comprehensive list of all functions in the class.

___
### Overview
The `StringUtil` class provides static methods for common string manipulation tasks that are used by some other components provided by KW7 but benefit from being contained in their own transportable class.
___
### Functions
##### > startsWith() : `bool`
Check if a string starts with another string.

parameter | type | description
--- | --- | ---
`$haystack` | `string` | String to search.
`$needle` | `string` | What the string should start with.
##### > endsWith() : `bool`
Check if a string ends with another string. Adapted from http://stackoverflow.com/a/834355/6997644

parameter | type | description
--- | --- | ---
`$haystack` | `string` | String to search.
`$needle` | `string` | What the string should end with.
##### > formatDirectorySlashes() : `string`
Convert all slashes in a string to match the environment directory separator.

parameter | type | description
--- | --- | ---
`$path` | `string` | Path to clean.
`$trimTrail` | `bool` | If true, trailing spaces/slashes will be trimmed.
##### > namespaceBase() : `string`
Get the base class-name from a namespace string.

parameter | type | description
--- | --- | ---
`$namespace` | `string` | Namespace path.
##### > variableAsString() : `string`
Represent a variable as a pretty string.

parameter | type | description
--- | --- | ---
`$var` | `mixed` | Variable to represent.

gha_language: PHP


text:
# Summary—core thoughts and principles

## 10.1 Looking back (page 279)

model elements, the domain vocabulary, and the boundaries of the subsystems before you start implementing the solution model

## 10.2 Rehashing core principles for functional domain modeling (page 280)

### 10.2.1 Think in expressions (page 280)

### 10.2.2 Abstract early, evaluate late (page 281)

### 10.2.3 Use the least powerful abstraction that fits (page 281)

### 10.2.4 Publish what to do, hide how to do within combinators (page 282)

andThen on Kleisli

### 10.2.5 Decouple algebra from the implementation (page 282)

- traits and modules
- type classes
- free monad

### 10.2.6 Isolate bounded contexts (page 283)

### 10.2.7 Prefer futures to actors (page 283)

## 10.3 Looking forward (Page 283)

dependent typing

Shapeless

reactive

streams

separation of concerns


text:
---
title: "Vincent van Gogh - The Letters"
date: 2017-11-10T08:54:57-06:00
tags:
- art
- vincent-van-gogh
- quotes
---

[Vincent van Gogh - The Letters](http://www.vangoghletters.org) is an amazing archive of documents. Searchable, with facsimiles, translations, and including even the original sketches. Van Gogh seems like a fascinating person and the letters contain some gems.

> Someone has a great fire in his soul and nobody ever comes to warm themselves at it, and passers-by see nothing but a little smoke at the top of the chimney and then go on their way.
>
> -- Vincent van Gogh, [Letter no. 155 (June 1880)](http://www.vangoghletters.org/vg/letters/let155/letter.html)

{{% img src="/2017/vgletter.jpg" caption="Facsimile of a letter from Vincent van Gogh" %}}

> What am I in the eyes of most people? A nonentity or an oddity or a disagreeable person — someone who has and will have no position in society, in short a little lower than the lowest.
>
> Very well — assuming that everything is indeed like that, then through my work I’d like to show what there is in the heart of such an oddity, such a nobody.
>
> This is my ambition, which is based less on resentment than on love in spite of everything, based more on a feeling of serenity than on passion.
>
> Even though I’m often in a mess, inside me there’s still a calm, pure harmony and music. In the poorest little house, in the filthiest corner, I see paintings or drawings. And my mind turns in that direction as if with an irresistible urge. As time passes, other things are increasingly excluded, and the more they are the faster my eyes see the picturesque. Art demands persistent work, work in spite of everything, and unceasing observation.
>
> -- Vincent van Gogh, [Letter to Theo van Gogh from The Hague (21 July 1882)](http://www.vangoghletters.org/vg/letters/let249/letter.html)


text:
---
title: Preventing `git commit` on keyword detection
date: 2014-12-21 17:44:50+00:00
summary: Having used [Git](http://git-scm.com/) to maintain my codebases for a while now, I've started fine-tuning my workflow and I've come across a number of features that I think would be interesting as part of the suite of tools already available.
draft: false
featured: false
tags: ["git","software","version control"]
# Featured image
# To use, place an image named `featured.jpg/png` in your page's folder.
# Placement options: 1 = Full column width, 2 = Out-set, 3 = Screen-width
# Focal point options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
# Set `preview_only` to `true` to just use the image for thumbnails.
image:
  placement: 3
  caption: "Preventing git commit on keyword detection"
  focal_point: "Smart"
  preview_only: false
  alt_text: Preventing git commit on keyword detection
---

Having used [Git](http://git-scm.com/) to maintain my codebases for a while now, I've started fine-tuning my workflow and I've come across a number of features that I think would be interesting as part of the suite of tools already available.

<!-- more -->

The latest one I thought about was triggered by my own experiences and discussions on [Hacker News](https://news.ycombinator.com). In particular, this [comment](https://news.ycombinator.com/item?id=8760714#up_8760977) resonated with me. It's startling to think how easy it is to commit sensitive data to a public repository on a platform as widely used and scoured as [Github](https://github.com). It's somewhat perplexing that Github hasn't addressed this themselves in some way, by, at the very least warning users that they might be potentially exposing passwords, authentication tokens etc. Github does provide a [guide](href="https://help.github.com/articles/remove-sensitive-data) as to how you can remove sensitive data from your repository by using the `git filter-branch` feature, but this doesn't stop you from committing the error in the first place and doesn't mitigate the fact that you might already have been compromised.

My use case for a warning of that nature is somewhat less critical, but nevertheless a feature that I think might be worthwhile having. I routinely find myself making errors when committing, which I have to subsequently correct with small commits immediately after. This of course means that my repository history is littered with commit spurts, as I hastily attempt to correct things. Of course, you can go into the history and [rewrite](https://www.atlassian.com/git/tutorials/rewriting-history) things, by squashing, squishing, flattening and whatever other adjective you can think ok, but this after-the-fact strategy is wholly unsatisfactory in my mind, mostly because it tackles the effect and not the cause of the problem.

So, I've been wondering if it would be simple to implement a feature that would prevent you from executing `git commit` if a given keyword, phrase etc. is found in your codebase. Admittedly, for large codebases, this is likely to incur significant overhead, as each commit would require a text scan, but perhaps this could be reduced by ensuring that only files staged for commit are scanned. To clarify the use case, consider the following:

    <code class="bash">$ git commit -m "Commit yet another brick in the wall."
    Commit aborted due to keyword detection:

    File: hello.cpp
    Line 12: contains keyword "password"

    File: byebye.h
    Line 34: contains keyword "auth_token"

    Keyword list defined in /Users/me/hello_world/.git_keyword_filter
    </code>

In my case, the problem I often come up against is the fact that I have example config files that I create for my projects, e.g., [config example for D2D](https://github.com/kartikkumar/d2d/blob/master/config/config.json.example). When I'm testing things and playing around with adding new settings to my application, I often work in the same config file that I end up committing to the repository, with all my local settings (I guess this is probably a mistake in itself, but humour me). It would be great if I could define a keyword filter, perhaps even including filters on a per-file basis.

Maybe this is a silly idea, or maybe there's an existing solution. I think though that as a general feature, this could be something useful to have. I'd love to hear your thoughts!

repository: kartikkumar/personal-website

repo_name: kartikkumar/personal-website


text:
addonSample
============
### Node.js sample native addon

The purpose of this repository is to demonstrate building a native addon for
node that is more involved than the usual "Hello World" sample.  The addon
itself doesn't really do anything, but it does strive to illustrate the
following:

* How to wrap a C++ function so it can be called from javascript
* How to accept arguments to a javascript function and pass them along to a
C++ function.
* How to expose an EXISTING C++ class to javascript.  One that the addon
developer does not control, and can't modify to extend node::ObjectWrap.

Building
--------
There is a build-time dependency on
[node-gyp](https://github.com/TooTallNate/node-gyp) 0.3.5+.  If node-gyp
is not on the path, make will install it (via npm) into the `node_modules`
directory.

To build just run `make` (GNU make).  It has been tested on Mac OS X Lion and
will likely work on other *nix flavors.  With any luck, you'll get output that
looks like the following:

```
$ make
info it worked if it ends with ok
spawn python [ '/Users/matt/.node-gyp/0.6.13/tools/gyp_addon',
  'binding.gyp',
  '-I/Users/matt/projects/addonSample/build/config.gypi',
  '-f',
  'make' ]
info done ok
/Users/matt/local/bin/node-gyp build
info it worked if it ends with ok
spawn make [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/bindings/src/binding.o
  CXX(target) Release/obj.target/bindings/src/native_object_wrapper.o
  CXX(target) Release/obj.target/bindings/src/library.o
  SOLINK(target) Release/bindings.node
  SOLINK(target) Release/bindings.node: Finished
info done ok
[ { id: 1 },
  { id: 2 },
  { id: 3 },
  { id: 4 },
  { id: 5 },
  { id: 6 },
  { id: 7 },
  { id: 8 },
  { id: 9 },
  { id: 10 } ]
```

License
-------

(The MIT License)

Copyright (c) 2012 Matt Gollob

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

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

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

repository: mattness/addonSample

repo_name: mattness/addonSample


text:
## Test suite for Kubernetes

This test suite consists of two Helm charts for network bandwith testing and load testing a Kuberntes cluster.
The structure of the included charts looks a follows:
````
k8s-testsuite/
- load-test/
|____Chart.yaml
|____values.yaml
|____.helmignore
|____templates/
- network-test/
|____Chart.yaml
|____values.yaml
|____.helmignore
|____templates/
````

You can install a test by running:
````
> git clone https://github.com/mrahbar/k8s-testsuite.git
> cd k8s-testsuite
> helm install --namespace load-test ./load-test
> helm install --namespace network-test ./network-test
````

----------

### Load test

This Helm chart deployes a full load test suite in Kubernetes. It consists of the 3 microservices:
1. A webserver based on [simple-webserver](https://github.com/mrahbar/simple-webserver)
2. A loadbot client which is based on [this](https://github.com/kubernetes/contrib/tree/master/scale-demo/vegeta) and [that](https://github.com/tsenart/vegeta)
3. An [aggregator](https://github.com/mrahbar/kubespector/tree/master/resources/scaletest) which orchestrates the test run

##### Aggregator

Since the webservers and the loadbots work autonomic the task of the aggregator ist to orchestrate the test run.
It does this by useing the Kubernetes api via [client-go](https://github.com/kubernetes/client-go) library to talk set up the desires replicas of each unit.
The test run consists of the following tests scenarios:

| Szenario | Loadbots | Webserver |
| ------------- |:-------------:| -----:|
|Idle|1|1|
|Under load | 1|10|
|Equal load| 10|10|
|Over load|100|10|
|High load|100|100|

The maximum count of replicas (default 100) can be set with `--set aggregator.maxReplicas=...`.

##### Loadbots
The loadbots have the task to run a predefined level of queries per second. Vegeta publishes [detailed statistics](https://github.com/tsenart/vegeta#json) which will be fetched and evaluated by the aggregator. This metrics are:
 - Queries-Per-Second (QPS)
 - Success-Rate
 - Mean latency
 - 99th percentile latency

#### Test results
When all tests are finishes the aggregator will print the following summary to its logs:

> GENERATING SUMMARY OUTPUT
> Summary of load scenarios:
> 0. Idle      : QPS: 10037    Success: 100.00  % Latency: 949.82µs (mean) 3.004154ms (99th)
> 1. Under load: QPS: 10014    Success: 100.00  % Latency: 965.549µs (mean) 1.985838ms (99th)
> 2. Equal load: QPS: 50078    Success: 100.00  % Latency: 982.519µs (mean) 7.213018ms (99th)
> 3. Over load : QPS: 501302   Success: 100.00  % Latency: 198.21451ms (mean) 859.504601ms (99th)
> 4. High load : QPS: 502471   Success: 100.00  % Latency: 239.26364ms (mean) 1.018523444s (99th)
> END SUMMARY DATA

##### Configuration

The following table lists the configurable parameters of the chart and their default values.

Parameter | Description | Default
--------- | ----------- | -------
`cpuRequests.webserver` | Memory request of each webserver pod | 100m
`cpuRequests.loadbot` | Memory request of each loadbots  pod | 100m
`aggregator.maxReplicas` | Maximum replicas for ReplicationController| 100
`loadbot.rate` | QPS of each loadbot. [Docs](https://github.com/tsenart/vegeta#-rate) | 1000
`loadbot.workers` | Initial number of workers used in the attack. [Docs](https://github.com/tsenart/vegeta#-workers) | 10
`loadbot.duration` | Duration of each attack. [Docs](https://github.com/tsenart/vegeta#-duration) | 1s
`images.*Version` | Image version for *loadbot*, *webserver* and *aggregator* | 1.0
`imagePullPolicy` | Whether to Always pull imaged or only IfNotPresent | IfNotPresent
`rbac.create` | Create rbac rules for aggregator | true
`rbac.serviceAccountName` | rbac.create should be false to use this serviceAccount |

----------

### Network test

This Helm chart deployes a network test suite in Kubernetes. It consists of the 2 microservices:
1. An orchestrator
2. A worker launched three times

Both services are run from the same image either as `--mode=orchestrator` or `--mode=worker`. The services are bases on [k8s-nptest](https://github.com/mrahbar/k8s-nptest) and use iperf3 and netperf-2.7.0 internally.

##### Orchestrator
The orchestrator pod coordinates the worker pods to run tests in serial order for the 4 scenarios described below. Using pod affinity rules Worker Pods 1 and 2 are placed on the same Kubernetes node, and Worker Pod 3 is placed on a different node. The nodes all communicate with the orchestrator pod service using simple golang rpcs and request work  items. **A minimum of two Kubernetes worker nodes are necessary for this test.**

##### Test scenario
Five major network traffic paths are combination of Pod IP vs Virtual IP and whether the pods are co-located on the same node versus a remotely located pod.

1. Same VM using Pod IP: Same VM Pod to Pod traffic tests from Worker 1 to Worker 2 using its Pod IP.

2. Same VM using Cluster/Virtual IP: Same VM Pod to Pod traffic tests from Worker 1 to Worker 2 using its Service IP (also known as its Cluster IP or Virtual IP).

3. Remote VM using Pod IP: Worker 3 to Worker 2 traffic tests using Worker 2 Pod IP.

4. Remote VM using Cluster/Virtual IP: Worker 3 to Worker 2 traffic tests using Worker 2 Cluster/Virtual IP.

5. Same VM Pod Hairpin: Worker 2 to itself using Cluster IP

For each test the MTU (MSS tuning for TCP and direct packet size tuning for UDP) will be linearly increased from 96 to 1460 in steps of 64.

#### Output Raw CSV data
The orchestrator and worker pods run independently of the initiator script, with the orchestrator pod sending work items to workers till the testcase schedule is complete. The iperf output (both TPC and UDP modes) and the netperf TCP output from all worker nodes is uploaded to the orchestrator pod where it is filtered and the results are written to the output file as well as to stdout log. Default file locations are `/tmp/result.csv` and `/tmp/output.txt` for the raw results.

**All units in the csv file are in Gbits/second**
```console
ALL TESTCASES AND MSS RANGES COMPLETE - GENERATING CSV OUTPUT
the output for each MSS testpoint is a single value in Gbits/sec
MSS , Maximum, 96, 160, 224, 288, 352, 416, 480, 544, 608, 672, 736, 800, 864, 928, 992, 1056, 1120, 1184, 1248, 1312, 1376, 1460
1 iperf TCP. Same VM using Pod IP ,24252.000000,22650,23224,24101,23724,23532,23092,23431,24102,24072,23431,23871,23897,23275,23146,23535,24252,23662,22133,,23514,23796,24008,
2 iperf TCP. Same VM using Virtual IP ,26052.000000,26052,0,25382,23702,0,22703,22549,0,23085,22074,0,22366,23516,0,23059,22991,0,23231,22603,0,23255,23605,
3 iperf TCP. Remote VM using Pod IP ,910.000000,239,426,550,663,708,742,769,792,811,825,838,849,859,866,874,883,888,894,898,903,907,910,
4 iperf TCP. Remote VM using Virtual IP ,906.000000,0,434,546,0,708,744,0,791,811,0,837,849,0,868,875,0,888,892,0,903,906,0,
5 iperf TCP. Hairpin Pod to own Virtual IP ,23493.000000,22798,21629,0,22159,21132,0,22900,21816,0,21775,21425,0,22172,21611,21869,22865,22003,22562,23493,22684,217872,
6 iperf UDP. Same VM using Pod IP ,6647.000000,6647,
7 iperf UDP. Same VM using Virtual IP ,6554.000000,6554,
8 iperf UDP. Remote VM using Pod IP ,1877.000000,1877,
9 iperf UDP. Remote VM using Virtual IP ,1695.000000,1695,
10 netperf. Same VM using Pod IP ,7003.430000,7003.43,
11 netperf. Same VM using Virtual IP ,0.000000,0.00,
12 netperf. Remote VM using Pod IP ,908.460000,908.46,
13 netperf. Remote VM using Virtual IP ,0.000000,0.00,
END CSV DATA
```

##### Configuration

The following table lists the configurable parameters of the chart and their default values.

Parameter | Description | Default
--------- | ----------- | -------
`imagePullPolicy` | Whether to Always pull imaged or only IfNotPresent | IfNotPresent
`images.orchestratorVersion` | Image version for the orchestrator | 1.1
`images.workerVersion` | Image version for the worker | 1.1
`debug.orchestrator` | Debug mode for the orchestrator  | false
`debug.worker` | Debug mode for the worker| false

repository: slpcat/docker-images

gha_language: Go

repo_name: slpcat/docker-images


text:
---
title: Deprecated Features - Codeunits | Al
---
# Deprecated Features - Codeunits

| Object | Type | Name | Reason | Deprecated since |
| ------ | ---- | ---- | ------ | ---------------- |
| [Public Test Codeunit](codeunit-nab-public-test-codeunit/index.md) | Procedure | TestDeprecatedMethod | Testing deprecation | 20.0 |

repository: jwikman/nab-al-tools

repo_name: jwikman/nab-al-tools


text:
# CommanDo 2
![alt text] (https://.shravanj.com/files/commando2/img2.png)

A command line interpreter for Java, reborn.

CommanDo is back and better than ever with greatly improved handling thanks to better functions, cleaner syntax, and now its open to easy modifications.

![alt text] (https://escher.shravanj.com/files/commando2/img1.jpg)

#NEW FEATURES
-Static functions

-Coherent syntax

-Command List

-Improved handling

-comments!

#IMPROVEMENTS
-loopcount++ actually works now

-print no longer displays a blank string if you run "print print"

-a lot of other minor improvements

#COMING SOON
-more functions

-CommanDo 3???

-I have no idea when (or if) I will actually finish this


text:
# Gatekeeper
Openstack Registration Site

## Workflow

```
[Dashboard] -> [Shibboleth] -> [SAFIRE] -> [IDP] -> [SAFIRE] -> [Shibboleth] -> [Gatekeeper] -> [Keystone] -> [Dashboard]
```

```
+----------------+          +-----------------+              +------------------+
|     User       |  YES     |   User Signed   |     YES      |    Redirect To   |
|     Exists     +--------->+   Terms         +------------->+    Openstack     |
+------------+---+          +----+------------+              +-------------+----+
             |                   |                                         ^
             |NO                 |                                         |
             |                   |                                         |
             v                   v                                         |
+------------+---+          +----+-------+            +---------------+    |
| User Account   |   YES    |   Present  |  Agree     | Display Create|    |
| Create Allowed +--------->+   Terms    +----------->+ Temp Project  |    |
+------------+---+          +---+--------+            +---+-----------+    |
             |                  |                         |                |
             |                  |                         |                |
             |NO                |Disagree                 |                |
             |                  |                         v                |
             v                  v                     +---+-----------+    |
+------------+------------------+--------+            | Display Join  |    |
|         Display Sorry Page             |            | Project       +----+
+----------------------------------------+            +---------------+

```

### Roles
* PrincipleInvestigator (Project)
* TermsSigned (Domain)
* AllocationApprover (Domain)

### Project Metadata
Project metadata will be stored as JSON in the project description field, so besides the project name which is already stored in keystone the following fields will be added:
* ResearchField
* PrimaryInstitution
* Description
* CreatationTime
* ExpirationTime (-1 for a permanent project)

### Project Create Steps
* Create Project & Metadata
* Set Quotas
* Create Private Network
* Create Subnet
* Create Router
* Attach Router to Net & Subnet

### Agreeing to Terms
When agreeing to terms, the system will email the user & a mailbox where we'll store all "signed" copies of terms.
We'll include some metadata from the shibboleth environment as well as a copy of the terms agreed to.

repository: AfricanResearchCloud/gatekeeper

repo_name: AfricanResearchCloud/gatekeeper


text:
# ansible-docker

An Ansible Docker image based on Alpine Linux.

## Selecting an Ansible version

The Ansible development snapshot is available as `latest` via:

    docker pull gesellix/ansible:latest

You should choose an explicit tag to select your desired version. Available are e.g.:

    docker pull gesellix/ansible:1.9.4
    docker pull gesellix/ansible:<IP_ADDRESS>

The complete and up to date list of available tags can be found on the [Docker Hub](https://hub.docker.com/r/gesellix/ansible/tags/).

_Note_: The image for Ansible 1.9.4 is based on Ubuntu instead of Alpine and it contains a patched Docker module which essentially applies the
changes from [ansible-modules-core#2258](https://github.com/ansible/ansible-modules-core/pull/2258).

## Usage

You can use the Ansible image in your Dockerfile:

    FROM gesellix/ansible:<IP_ADDRESS>

    ADD . /ansible
    WORKDIR /ansible

    CMD ["ansible", "--version"]

The example Dockerfile assumes that your Ansible roles and playbooks are in the same directory.

repository: gesellix/ansible-docker

repo_name: gesellix/ansible-docker


text:
# Robot Motion Planning Project

### Table of Contents
1. [Installation](#installation)
2. [File Structure](#file-structure)
3. [Project Motivation](#project-motivation)
4. [Project Details](#project-details)
5. [Licensing](#licensing)

## Installation
The project uses Python version 2.7.16 and numpy library.

To run the tester, use the following command:
`python tester.py test_maze_01.txt`

And to run the maze visualization use this command:
`python showmaze.py test_maze_01.txt`
The script uses the turtle module to visualize the maze. You can click on the window with the visualization after drawing is complete to close the window.

## File Structure
The project contains these files:

    robot.py - This script establishes the robot class.
    maze.py - This script contains functions for constructing the maze and for checking for walls upon robot movement or sensing.
    tester.py - This script will be run to test the robot’s ability to navigate mazes.
    showmaze.py - This script can be used to create a visual demonstration of what a maze looks like.
    test_maze_##.txt - These files provide three sample mazes upon which to test your robot.
    free_form_maze.txt - This file has an additional maze used for evaluation purpose.

## Project Motivation
Navigation is a major task for mobile robots. In real applications, this task can be really complicated with a lot of elements such as obstacle avoidance, object recognition and path planning. Handling all of these tasks at once is quite tough. In this project, we only deal with finding the optimum path which could be integrated later with a more complex project.

## Project Details
I encourge you to read this article for more details about the project: https://medium.com/@yasirghunaim/plot-and-navigate-a-virtual-maze-capstone-project-9c21bb4f2698

## Licensing
MIT License

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

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

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


text:
---
title: IComposedCollectionBuilder<TCollection,TItem>
description: API reference for IComposedCollectionBuilder<TCollection,TItem> in Umbraco Commerce
---
## IComposedCollectionBuilder<TCollection,TItem>

```csharp
public interface IComposedCollectionBuilder<out TCollection, TItem> : IComposedCollectionBuilder
    where TCollection : IComposedCollection<TItem>
```

**Inheritance**

* interface [IComposedCollectionBuilder](icomposedcollectionbuilder.md)

**Namespace**
* [Umbraco.Commerce.Common.Composing](README.md)

### Methods

#### CreateCollection

```csharp
public TCollection CreateCollection(IServiceProvider factory)
```

<!-- DO NOT EDIT: generated by xmldocmd for Umbraco.Commerce.Common.dll -->

repository: umbraco/UmbracoDocs

branch_name: refs/heads/main

repo_name: umbraco/UmbracoDocs


text:
---
layout: post
published: true
title: Reason 938 to Make Sure Your Test Fails Before It Passes
category: news
---

Here's a quick example showing why you want to see your test fail
before you see it pass.  This verifies that you're actually testing
what you think you're testing.  This rspec test was passing just fine
before I realised I didn't even test to see if the result was true:

    it "detects normal zip" do
      Geomancer.zip_code_only?("15217").should
    end

I only noticed it when I wrote the next test which also passed when
it should have failed.

    it "doesn't detect bad zip" do
      Geomancer.zip_code_only?("123456").should
    end

(`x.should` is perhaps even more enigmatic than `x.should be`, which is
actually valid and useful rspec syntax.)

I was honestly a little surprised that this didn't fail with some sort
of runtime error, but rspec works in mysterious ways.  I still haven't
decided if this is a feature or a bug, but I think it would probably
be nice if this threw a runtime error.  I can't think of a case where
the above syntax would be useful.


text:
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

 The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
=
### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

Now the most essential thing ihave added two folder named as mongoDB.js and index.js

Index.js is simply a javascript file that will read the api and fetch all thge details and can be used to update delete and add data easily.

I have done it thrrough postman you can also install and get all the details of your api.

simply provide the port number whatever you want like 8000 or 8080 etc.

Now the Next Essential thing is MongoDB.js.

here again the use of express and mongo db will come.

for that you have to install ->.

npm install nodemon.

npm install express.
and then for mongodb to run in react go throgh following details.

make cluster in mongo db

add data

npm install mongoclient

npm install mongoose

and just connect it throgh the database and simply run the following command

nodemon mongodb.js

and then if the atlas compass is installed in your computer

use local host https://localhost:27017

or if you are through cloud

connect it with the desired link in cloud

get the database hope you will like it

Thanks !!


text:
# website

### My Old WebSite

It was created by referring to the following site.

[Let's create a blog site with Django](https://medium.com/@kjmczk/blogsite-django-747046b453f9)


text:
### [CVE-2016-7042](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-7042)
![](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

The proc_keys_show function in security/keys/proc.c in the Linux kernel through 4.8.2, when the GNU Compiler Collection (gcc) stack protector is enabled, uses an incorrect buffer size for certain timeout data, which allows local users to cause a denial of service (stack memory corruption and panic) by reading the /proc/keys file.

### POC

#### Reference
No PoCs from references.

#### Github
- https://github.com/thdusdl1219/CVE-Study

repository: trickest/cve

repo_name: trickest/cve


text:
# project-gauss

I originally created this project to work on the problems of [Project Euler](https://projecteuler.net).

As a joke, I named the project **project-gauss** in tribute to the other great mathematician.

Given that the authors of [Project Euler](https://projecteuler.net) ask not to share the solutions
publicly, I decided to respect that request and not to submit them.

However, this project contains some of the functions/utilities developed to solve the challenges.

Additionally, over time I have added stuff unrelated to [Project Euler](https://projecteuler.net) like coding challenges.


text:
---
layout: blog_post
nav: blog
---

I have released intercooler v0.9.2, available on the main site, as well as through bower.

<http://intercoolerjs.org/download.html>

The big change in this release is that intercooler now has support for file upload.

<http://intercoolerjs.org/release/CHANGES.html#0_9_2>

I also made a slight tweak to the semantics of the ic-action attribute to make it more compatible with jQuery
actions:

<http://intercoolerjs.org/attributes/ic-action.html>

**The Road to 1.0**

I'm hoping to be able to find some time today to finish my last pre-1.0 item:

  * [https://github.com/LeadDyno/intercooler-js/issues/60](https://github.com/LeadDyno/intercooler-js/issues/60) - an option for a data-prefix

When I'm done with that I will release a v0.9.3, which will be intercooler 1.0-alpha1.

**A Blog!**

Finally, I'm happy to announce that I have set up a blog on the intercooler website:

<http://intercoolerjs.org/blog.html>

I'd love to have intercooler users contribute posts (particularly about how to user intercooler on various server-side
platforms).  If you'd like to contribute, simply fork the intercooler codebase and add a markdown file here:

[https://github.com/LeadDyno/intercooler-js/tree/master/www/_posts](https://github.com/LeadDyno/intercooler-js/tree/master/www/_posts)

Then issue a pull request and I'll merge it and publish it out.

Happy New Year!

Carson
[@carson_gross](https://twitter.com/carson_gross)

repository: StevenBlack/intercooler-js

repo_name: StevenBlack/intercooler-js


text:
* https://wiki.jenkins.io/display/JENKINS/Pipeline+Stage+View+Plugin

When you have complex builds Pipelines, it is useful to be able to see the progress of each stage.  The Pipeline Stage View plugin includes an extended visualization of Pipeline build history on the index page of a flow project, under Stage View. (You can also click on Full Stage View to get a full-screen view.)
To take advantage of this view, you need to define stages in your flow. You can have as many stages as you like, in a linear sequence. (They may be inside other steps such as 'node' if that is convenient.) Give each a short name that will appear in the GUI.
```groovy
node {
  stage ('Checkout') {
    svn 'https://svn.mycorp/trunk/'
    stage 'Build'
    sh 'make all'
    stage 'Test'
    sh 'make test'
  }
}
```
When you run some builds, the stage view will appear with Checkout, Build, and Test columns, and one row per build. When hovering over a stage cell you can click the Logs button to see log messages printed in that stage: after the preceding stage step and before the next one.
Other important events are also indicated with special buttons, either in a stage cell or for the build as a whole. If a build is waiting in an input step, you will be able to tell it to proceed (or not). Download can be used to obtain any artifacts archived by a build.
Each row also records the build number, date it was started, and any changelog entries from a version control system. Progress bars also indicate how long each stage is taking and how long it might still be expected to take, based on historical averages.
Usage Notes/Limits:
Block-scoped stages (stages that take a closure, see below) may occur in parallels but are not displayed in parallel.
stage('name'){ echo 'steps here' }
Dynamic stages: in general, if you want to visualize dynamically changing stages, make it conditional to execute the stage contents, not conditional to include the stage** Stage view can handle a limited subset of cases where you're appending additional stages, but the cell-based view is not matched to changing stage structures
Configurable limits are provided for the REST API that drives stage view -- these may be overridden though (see below).
The pipeline stage view uses caching internally for performance: even if the first viewing is slow, following ones should be quite fast
Configurable Properties:
At runtime or startup, you may turn off Jenkins user lookup for changesets with property  com.cloudbees.workflow.rest.external.ChangeSetExt.resolveCommitAuthors
This is a workaround for rare cases where you are relying on an external security realm for user information and have performance issues with many calls:
In the script console this setting may be changed at runtime (with immediate impact):
System.setProperty("com.cloudbees.workflow.rest.external.ChangeSetExt.resolveCommitAuthors","false");
To turn user lookup back on:
System.setProperty("com.cloudbees.workflow.rest.external.ChangeSetExt.resolveCommitAuthors","true");
Hardcoded API limits that may be overridden by setting the properties at startup (requires restarting Jenkins to see the change):
Characters in each step's log entry (default: 10240 or 10kB) - com.cloudbees.workflow.rest.external.FlowNodeLogExt.maxReturnChars
Runs displayed per job (default: 10) - com.cloudbees.workflow.rest.external.JobExt.maxRunsPerJob
Artifacts shown per run (default: 100) - com.cloudbees.workflow.rest.external.RunExt.maxArtifactsCount
Steps displayed per stage (default: 100) - com.cloudbees.workflow.rest.external.StageNodeExt.maxChildNodes - note: this may have a very large performance impact with complex builds.

repository: reymont/ReadAndLearn

gha_language: Jupyter Notebook

repo_name: reymont/ReadAndLearn


text:
## _**Little Big Tips**_ ![Joystick](https://raw.githubusercontent.com/alissin/alissin.github.io/master/images/joystick.png) > Patterns / Algorithms > state pattern

> ![The Dungeon](./../../_images/the_dungeon/component_and_state.png)

Feel free to try this behaviour on the playable demonstration / prototype: [The Dungeon](https://simmer.io/@alissin/the-dungeon).

_Note:_ The purpose of this demonstration is to evaluate this gameplay mechanic. The FPS shooter gameplay mechanic itself, the scenario and the props are free assets from the Asset Store.

#### Problem description
How to deal with so many states of the enemy skeleton? For example, if the current state is walk, which state could be the next one? How they are related with each other? As a classic example (not this case), if the character is jumping, how to avoid the crouch of the character in the air?

Well, we could use a `switch` case to deal with it. But, imagine how many variables and flags we are supposed to have in our class to control it...

#### Solution simplified concept
Based on the _finite state machines_ (or _"FSMs"_) concept, this pattern has each state implemented as an individual and separated class. It makes your code much more clear, organized and easier to deal with.

#### Solution suggestion
In this case, our enemy skeleton has the following states: Resurrection, Idle, Hit, Walk, Attack and Death.

_Note:_ To keep this example simple, we will implement only 3 states: Idle, Walk, Attack. After that, you will get the idea and will be able to implement the other states with no problem.

In the hierarchy, create a game object and name it as `Enemy`:

```
Hierarchy:
- Enemy
```

Create a C# script `EnemyStateController.cs` and attach this script to the `Enemy` game object:

_Note:_ In this case, I'm using the `NavMesh` system. So make sure to bake the navigation, attach an `Animator` and an `NavMeshAgent` components to the `Enemy` game object.

```csharp
public class EnemyStateController : MonoBehaviour
{
    ...
```

Create a C# script `IEnemyState.cs`. This will be our interface which each state (class) will implement:

```csharp
public interface IEnemyState
{
    void Start(EnemyStateController enemyController);

    IEnemyState Update();
}
```

Create the class of each state and implement the `IEnemyState.cs` interface. You can use the same file (`IEnemyState.cs`):

```csharp
public interface IEnemyState
{
    ...
}

public class IdleState : IEnemyState
{
    public void Start(EnemyStateController enemyController)
    {
        // TODO: implement
    }

    public IEnemyState Update()
    {
        // TODO: implement
        return null;
    }
}

public class WalkState : IEnemyState {

    public void Start(EnemyStateController enemyController)
    {
        // TODO: implement
    }

    public IEnemyState Update()
    {
        // TODO: implement
        return null;
    }
}

public class AttackState : IEnemyState
{
    public void Start(EnemyStateController enemyController)
    {
        // TODO: implement
    }

    public IEnemyState Update()
    {
        // TODO: implement
        return null;
    }
}
```

In the `EnemyStateController.cs` script, define the fields and properties:

```csharp
IEnemyState state;

Animator animator;
public Animator Animator
{
    get => animator;
}

NavMeshAgent navMeshAgent;
public NavMeshAgent NavMeshAgent
{
    get => navMeshAgent;
}
```

The `state` field will be responsible to keep the current state.

Now, let's start the process:

```csharp
void Start()
{
    animator = GetComponent<Animator>();
    navMeshAgent = GetComponent<NavMeshAgent>();

    state = new IdleState();
    state.Start(this);
}
```

And here is how this system works:

```csharp
void Update()
{
    IEnemyState newState = state.Update();
    if (newState != null)
    {
        state = newState;
        state.Start(this);
    }
}
```

As you can see, when the `state.Update()` method returns a new state, the current state is changed. The `state.Start()` method is like a "setup" or "pre-settings" method of the state.

Let's implement our first state:

```csharp
public class IdleState : IEnemyState
{
    EnemyStateController enemyController;
    RaycastHit hit;
    float distance = 5.0f;

    public void Start(EnemyStateController enemyController)
    {
        this.enemyController = enemyController;
    }

    public IEnemyState Update()
    {
        // check if the Player was seen, via raycast for example
        Ray ray = new Ray(enemyController.transform.position, enemyController.transform.forward);
        Debug.DrawRay(ray.origin, ray.direction * distance, Color.yellow);
        if (Physics.Raycast(ray, out _hit, distance))
        {
            if (hit.transform.CompareTag("Player"))
            {
                return new WalkState();
            }
        }
        return null;
    }
}
```

_Note:_ To keep this example simple and focused on the state mechanism, the `Enemy` is looking directly to its front. The [raycast patrol detection](../../general-tips/raycast-patrol-detection) can help to make it more interesting.

The `IdleState` keeps the `Enemy` patrolling and when the `Player` comes close, it changes the state to the `WalkState`.

Let's implement the `WalkState`:

```csharp
public class WalkState : IEnemyState
{
    EnemyStateController enemyController;

    public void Start(EnemyStateController enemyController)
    {
        this.enemyController = enemyController;
    }

    public IEnemyState Update()
    {
        // TODO: get access to the Player position
        enemyController.NavMeshAgent.SetDestination(GameManager.Instance.Player.transform.position);
        // in this case, I'm using the Blend Tree to control the animations of the Enemy
        enemyController.Animator.SetFloat("Speed", enemyController.NavMeshAgent.velocity.magnitude);

        // if the distance of the Enemy and the Player is less than the radius + stoppingDistance of the NavMeshAgent, start the attack!
        if (Vector3.Distance(GameManager.Instance.Player.transform.position, enemyController.transform.position) <= (enemyController.NavMeshAgent.stoppingDistance + enemyController.NavMeshAgent.radius))
        {
            return new AttackState();
        }

        return null;
    }
}
```

_Note:_ In this case, I'm using the [singleton pattern](../singleton) to access the `Player` position. With the `NavMesh` system and the `NavMeshAgent`, we can set the direction of the agent and make it move.

Finally, let's implement the `AttackState`:

```csharp
public class AttackState : IEnemyState {

    EnemyStateController enemyController;
    float rotationSpeed = 5.0f;

    public void Start(EnemyStateController enemyController)
    {
        enemyController = enemyController;
        enemyController.Animator.SetTrigger("Attack");
    }

    public IEnemyState Update()
    {
        // to face the Player smoothly on attack:

        // TODO: get access to the Player position
        Vector3 attackDirection = (GameManager.Instance.Player.transform.position - enemyController.transform.position).normalized;
        // in this case, we don't want to affect the Y rotation, we only care about the direction from X and Z
        Quaternion lookRotation = Quaternion.LookRotation(new Vector3(attackDirection.x, 0, attackDirection.z));
        enemyController.transform.rotation = Quaternion.Slerp(enemyController.transform.rotation, lookRotation, Time.deltaTime * rotationSpeed);

        // in this case, I'm using the Blend Tree to control the animations of the Enemy. Check if the animation is NOT the Attack animation
        if (enemyController.animator.GetCurrentAnimatorStateInfo(0).IsName("Blend Tree"))
        {
            return new WalkState();
        }

        return null;
    }
}
```

As you can see, I'm using the `Animator` to control the current animation from the `Enemy`. So, when the attack animation is finished, the state is changed to the `WalkState` and it tests the distance again. If the `Enemy` is close to the `Player`, it attacks again, otherwise, the mechanism keeps the `WalkState` untill the `Enemy` reachs the `Player`.

#### Scripts:
[EnemyStateController.cs](./EnemyStateController.cs), [IEnemyState.cs](./IEnemyState.cs)

Again, feel free to try the behaviour of this _**Little Big Tip**_ on [The Dungeon](https://simmer.io/@alissin/the-dungeon).

More _**Little Big Tips**_? Nice, [let's go](https://github.com/alissin/little-big-tips)!

repository: alissin/little-big-tips

repo_name: alissin/little-big-tips


text:
---
layout: post
title: Grilled Romaine with Tahini Drizzle
---

Proof that when I deviate from the recipe I come up with crappy results.

The original recipe from
[The Whole 30 Cookbook](https://www.amazon.com/Whole30-Cookbook-Delicious-Totally-Compliant/dp/0544854411/)
calls for halves of Romaine lettuce to be grilled on a ...grill.

I took the easy way out and grilled them in a pan on the stove top.
Also didn't grill halves but already chopped.

As a result the flavor was there but texture wise it was a flop - literally.

![Grilled Romaine with Tahini Drizzle](/assets/2018-grilled_romaine.jpg)

The spicy tahini was pretty spot on with this lettuce -
the charred flavored came through and didn't get drowned.

As a further deviation, I used walnuts instead of the sliced
almonds the recipe called for because I had them left over
from the [bulgur salad](/triple_whammy.html). I'm sure someone
with a better palate would be able to tell the difference
but to me it was about the hard texture of the nuts
and walnuts, almonds - they're all the same.

Theme-wise, I feel the tahini allows this recipe to fall
in the *Middle East and Africa* theme, although I'm not really
sure there's an actual dish made in the area.

Might do again - maybe when I'm grilling something else.


text:
# Option

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Aead** | **bool** | Whether AEAD (Authenticated Encryption with Associated Data) is supported. | [optional] [readonly]
**Default** | **bool** | Whether the option is a default configuration. | [optional] [readonly]
**Description** | **string** | The description. | [optional] [readonly]
**Unsafe** | **bool** | Whether the option is considered unsafe. | [optional] [readonly]
**Value** | **string** | The name. | [optional] [readonly]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

repository: pureport/pureport-sdk-go

branch_name: refs/heads/develop

repo_name: pureport/pureport-sdk-go


text:
# Myriotrema schizostomum (Tuck.) Hale SPECIES

#### Status
SYNONYM

#### According to
Index Fungorum

#### Published in
Mycotaxon 11(1): 135 (1980)

#### Original name
Thelotrema schizostomum Tuck.

### Remarks
null

repository: mdoering/backbone

path: /life/Fungi/Ascomycota/Lecanoromycetes/Ostropales/Graphidaceae/Stegobolus/Stegobolus schizostomus/ Syn. Myriotrema schizostomum/README.md

repo_name: mdoering/backbone