text:
---
layout: post
title: OpenAgent
feature-img:
thumbnail-path: "/img/openagentprofilethumb.png"
short-description: Agent profile page redesign

---

> **Role:** UX/UI Design, Art Direction
> **Brief:** Redesign agent profile page
> **Tools:** Photoshop

**tl;dr:** New design looks more organised. Keeps content focused and easy to read.

Problem
------------
The old design of the profile page had made too much use of a pale-green colour. It doesn't look appealing and in my opinion cheapens the brand. I also felt that the user had no relief/breathing space between all the different sections. It is overwhelming to look at as it was information overload. The tabs `Overview`, `Reviews` and `Properties` is quite lost and hard to find amongst all the other sections.

It was also strange that the page did not show the agent's name. This must've been overlooked upon as it is quite important information. The addition of the map is a good idea however I feel that by using the OpenAgent logo makes it look too cluttered.

It is a missed opportunity by not having any call-to-action buttons to contact this agent.

Solution
------------
It was initially briefed to just redesign the page to keep it inline with the new homepage with a couple of additions, however after redesigning it, I felt that I could do better and re-do the whole page. I sent them both versions and they preferred the one I came up with :)

My thoughts were, being an agent profile, you want the essential information appear at all times (as with the original). However having it be kept at the top took up too much valuable space for everything else. The tabs, as mentioned earlier was lost, so I moved it up where it can be seen quite prominently. With this, the agent's picture is displayed on the left where it can always be seen, as well as their name and easy access call-to-actions.

With the help of white space, the content overall looks more organised and coherent. It is easy to follow and information is easier to digest.

Before
---------

![OpenAgent Profile Overview Before](/img/before-openagent-agentoverview.jpg "OpenAgent Profile Overview Before")

After
---------
![OpenAgent Profile Overview After](/img/after-openagent-agentoverview.png "OpenAgent Profile Overview After")
[(View original size)](/img/after-openagent-agentoverview.png)


text:
SocialNAuth
---
Authentication with social networking websites

Overview
----

socialNAuth is a simple application which supports authentication using social networking websites like
- Google
- Github
- Facebook

This application uses OAuth 2.0 (https://oauth.net/2/) to authenticate an user and fetch user details from the websites.

Prerequisite
----
Generate client ID and client secret pair.

The following are the instructions to generate clientID and client secret pair for:

- Google

    Please follow the instructions given in the link below :

     https://developers.google.com/adwords/api/docs/guides/authentication

- Facebook
    1. Go to https://developers.facebook.com/
    2. Click  `My Apps`  dropdown on top right of the page
    3. Click `create App`
    4. Fill in app information
    5.  Select the app we have created
    7. Copy App ID(clientID) and App Secret(clientSecret) from Settings > Basic

    For more information please refer to https://developers.facebook.com/docs/apps/

- Github
    1. Go to https://github.com/settings/developers
    2. Go to `OAuth Apps`
    3. Click `New OAuth App`
    4. Fill in the necessary details and click `Register application`
    5. After successful registration we will be able to get client ID and client Secret

Local Setup
----
1.  Install Node.js (https://nodejs.org/en/) >= 13.x.x

2. Install yarn globally

    ```
        npm i -g yarn
    ```

3.  Install mongoDB and start mongoDB server ( https://www.mongodb.com/)

4.  Set up Environment Variables

        Go to [setupEnv](/bin/setupEnv) and enter all environment variables.

        Execute the following command:
        ```
            source ./bin/setupEnv
        ```

    This will set up your environment variables and we can access them using `process.env.*`

6.  Execute `yarn` to install all dependencies

Now we are all set to run the application. Execute `yarn dev` to start the application.

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
Use the State information to decide how each scene mounts and unmounts.

## Run
Once you've cloned the repository, you can install the dependencies and start the Medley example:

    npm install
    npx react-native start
    npx react-native run-android
    npx react-native run-ios

repository: grahammendick/navigation

gha_language: TypeScript

repo_name: grahammendick/navigation


text:
# Project Light

[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)

<img src="/kerosene-lamp-1202277_1920.jpg" width="250">
Author: Amitabh Nag<EMAIL_ADDRESS>
Program/Course: University of Washington - Masters in Data Science - Data 512 - Human Centered Data Science

Revision: 1.0

## Abstract
>“Project Light” throws light upon factors affecting student performance in India

These factors will bring focus to the work of nonprofit, government and Industry. This research finds answer to the question: What are the factors that affect student's performance as measured by reading, writing and math skills in India? Hypothesis is that the two most significant factors affecting student performance in India are:
   * School type - Government vs private school
   * Parents wealth

Based on a dataset from ICPSR/IHDS and using Lasso regression, following factors are identified to have a correlation with student performance:
* Interesting factors - these are the factors that are not in the hypothesis, however are interesting as they can help inform the work of nonprofit, government and Industry
    * (-) No toilet
    * (+) Good school environment
    * (+) Household education, including the education level of 21+ female
    * (+) No Mid day meal

* Confirmed Hypothesis - these factors are a part of the research hypothesis and are indeed confirmed by Lasso regression
    * (+) Parents wealth
    * (+) Attend private school vs public school

* Directly correlated - these factors relate to student's educational achievement and hence correlate directly with the student performance
    * (+) Educational achievement

(+/-) indicate a positive or negative correlation with the student performance.

Lasso regression identified "No mid day meal" factor to have a positive correlation with student performance. Mid day meal program was launched in India ["with a view to enhancing enrollment, retention and attendance and simultaneously improving nutritional levels among children"](http://mdm.nic.in). Result found by this study is not consistent with the Mid day meal goal and needs to be investigated as a next step.

Acronyms:
* IHDS - India Human Development Survey
* ICPSR - Inter-university Consortium for Political and Social Research

## Quick start guide
* Download and extract below two zip files containing data and documentation. Note that based on ICPSR/IHDS terms of service data is not attached with this repository. Please note you have to sign in ICPSR and agree to [terms of use](http://www.icpsr.umich.edu/icpsrweb/ICPSR/studies/22626/terms), before you can download the data
    * [DS1: Individual](http://www.icpsr.umich.edu/cgi-bin/bob/zipcart2?path=DSDR&study=22626&bundle=all&ds=1&dups=yes)
    * [DS2: Household](http://www.icpsr.umich.edu/cgi-bin/bob/terms2?study=22626&ds=2&bundle=&path=DSDR)
* Ensure you have Anaconda Python 3.6 with Jupyter notebook installed from [here](https://www.anaconda.com/download/)
* Ensure you have pandas, numpy, and scikit-learn packages installed on your computer. You can check if these packages are installed using Anaconda navigator
* Run the code step by step from ProjectLight.ipynb. Ensure to update the path related variables to your computer paths in step 3 of the notebook

## Licensing
* ICPSR/IHDS 2005 data and documentation is available under following [terms of use](http://www.icpsr.umich.edu/icpsrweb/ICPSR/studies/22626/terms)
* CC0 - Project Light image from [pixabay](https://pixabay.com/en/kerosene-lamp-old-replacement-lamp-1202277)
* CC0 - Toilet image from [pixabay](https://pixabay.com/en/privy-toilet-mobile-wc-474588)
* MIT - Code for Project Light is available under MIT license. License file is available with the repository

## References
* ICPSR/IHDS 2005 [data and documentation](https://doi.org/10.3886/ICPSR22626.v11). This is the data used in this research
* Project Light image from [pixabay](https://pixabay.com/en/kerosene-lamp-old-replacement-lamp-1202277)
* Toilet image from [pixabay](https://pixabay.com/en/privy-toilet-mobile-wc-474588)
* Harvard Dataverse - Pratham Information Project - Read India [data source](https://dataverse.harvard.edu/dataset.xhtml?persistentId=hdl:1902.1/13084&version=1.0)
* Lasso regression [model](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html)

repository: amitabhnag/ProjectLight

repo_name: amitabhnag/ProjectLight


text:
## Aurora

### Aurora police violently disperse violin vigil | June 27th

On June 27th, citizens of Aurora held a violin vigil in honor of Elijah McClain. Footage shows several violinists around a fountain and a small crowd of people scattered through the park, most sitting on picnic blankets or the grass.

Aurora police arrived in riot gear to disperse the vigil. When participants refused, riot police beat them with batons and pepper-sprayed them.

tags: strike, beat, baton, pepper-spray, spray

id: co-aurora-1

**Links**

* https://www.reddit.com/r/Bad_Cop_No_Donut/comments/hhfrh8/062820_musicians_in_aurora_colorado_honoring/
* https://www.reddit.com/r/2020PoliceBrutality/comments/hhh6fe/aurora_co_during_a_vigil_with_live_violinists_for/
* https://twitter.com/ekbates4/status/1277104647690280961
* https://twitter.com/Ezret/status/1277451145418469376
* https://twitter.com/jessiedesigngir/status/1277126019246260224
* https://www.reddit.com/r/Denver/comments/hh5dbp/protestors_for_elijah_mcclain_threatened_with/

## Colorado Springs

### Multiple cops pin man to ground while repeatedly punching him | June 1st

Police officers tell a man standing in an intersection to get on the ground then shoot him (apparently with rubber bullets). He falls to the ground. He attempts to get up; an officer tackles him. At least 5 cops pin him down. Several of them punch him repeatedly even though he appears to not be resisting. At one point a bystander says "yeah, punch him again -- I'm filming you!" An officer punches the man again.

tags: arrest, beat, punch, kneel, rubber-bullets, tackle

id: co-coloradosprings-1

**Links**

* https://www.facebook.com/Shawn.R.Russ/videos/10221345617964005/
* https://www.kktv.com/content/news/Colorado-Springs-police-issue-statement-following-use-of-force-arrest-during-protest-570969681.html

## Denver

### Reporter shot with multiple pepper balls | May 28th

He states the officer aimed at him, and the pepper balls broke his press badge and drew blood

tags: journalist, shoot, pepper-ball

id: co-denver-1

**Links**

* https://www.denverpost.com/2020/05/29/denver-post-photographer-pepper-balls-george-floyd-protest/
* https://www.nytimes.com/2020/06/01/business/media/reporters-protests-george-floyd.html

### Police pepperspray people trying to record | May 29th

A man is filming police activity through his sunroof. An officer approaches, possibly strikes the person recording, and apparently peppersprays into the car, blinding the driver and passenger. The driver is then told to move his car away. The officer also peppersprays a second person recording in front of the car.

tags: pepper-spray, spray, vehicle

id: co-denver-2

**Links**

* https://twitter.com/greg_doucette/status/1266758227930333188
* https://twitter.com/Dizzle14Double/status/1266615473816260609
* https://twitter.com/SaltMagazine_/status/1266634027257098240
* [Local news coverage](https://www.9news.com/article/news/local/local-politics/denver-police-chief-wants-videos-of-force-used-on-protesters-investigated/73-127e08b7-f648-459f-9687-b67c45ab8259)

### Denver law enforcement shoot at reporters | May 29th

A reporter from Denver 7 news tweeted a photo showing one of their cameramen holding their camera with a bullet hole through its lens.  The caption states "Police just fired off paintballs and tear gas. Our photographer got hit four time and our camera got hit." (It later turned out that the projectile was a pepper ball, not a paintball.)

tags: journalist, tear-gas, projectile, shoot, pepper-ball

id: co-denver-3

**Links**

* https://twitter.com/AdiGTV/status/1266554320717099008
* https://pressfreedomtracker.us/all-incidents/photojournalist-covering-denver-protests-hit-multiple-pepper-balls/
* https://www.thedenverchannel.com/news/local-news/peaceful-protests-demanding-justice-for-george-floyd-in-denver-turn-violent-for-a-2nd-straight-day

### Denver SWAT shoot at woman trying to stop armored car | May 29th

A woman stops an armored SWAT car (marked APC01) on the corner of [Lincoln and 14th](https://www.google.com/maps/place/E+14th+Ave+%26+Lincoln+St,+Denver,+CO+80202,+USA/@39.7384949,-104.986315,18z).
Three armored police get out from back of armored car. One walks around the side and shoots some projectile, hitting the ground in front of the woman.

tags: shoot, projectile, vehicle

id: co-denver-4

**Links**

* https://twitter.com/DoughertyKMGH/status/1266560264918491138/video/1

### Police discharge tear gas into group of protesters | May 29th

An officer is seen pointing to another officer, directing towards middle of protesters. The other officer is then seen throwng a tear gas canister underhanded into group of protesters. Sounds of projectiles are heard being shot after tear gas is discharge.

tags: tear-gas, tear-gas-canister, shoot, projectile

id: co-denver-13

**Links**

* https://www.reddit.com/r/Denver/comments/gslcxb/the_moment_the_cops_tear_gassed_the_protesters_at/

### Police throw reporter into fire | May 30th

Policemen throw a reporter to the ground, apparently with little or no warning and possibly toward a fire.

tags: push, shove, throw, journalist

id: co-denver-5

**Links**

* https://twitter.com/tessrmalle/status/1266945413258653696
* https://www.reddit.com/r/2020PoliceBrutality/comments/gunfut/denver_officer_pushed_a_photographer_into_a_fire/
* https://www.youtube.com/watch?v=zhIWohJsRyM&feature=youtu.be&t=4225

### Police tear gas and shoot protestors | May 30th

Policemen turned off their body cams and started unnecessary firing of tear gas.

tags: body-cam, tear-gas, shoot

id: co-denver-6

**Links**

* https://twitter.com/moneyroe99/status/1266956171409346566

### Denver law enforcement shoot at reporter standing on the sidewalk | May 30th

A member of the press is filming from an empty sidewalk. Law enforcement shoot at him, and he yells "I'm media, we're press, we're press, don't shoot at us".

tags: journalist, shoot

id: co-denver-7

**Links**

* https://youtu.be/xNLZ7exVxq4?t=110

### Bystander claims police shoot him in the eye | May 30th

A man was blinded in one eye in a manner consistent with a rubber bullet. He claims a law enforcement officer riding on the back of a Denver Police Department truck fired a projectile at him without warning, despite the fact that he wasn't provoking the officer (or even protesting) at the time, and didn't see anyone near him doing so.

tags: shoot, projectile, rubber-bullet

id: co-denver-14

**Links**

* https://www.denverpost.com/2020/06/09/denver-protest-bystander-blinded/
* https://denver.cbslocal.com/2020/06/08/denver-protests-george-floyd-jax-feldmann-denver-police-foam-bullet/

### Police spray two people who are backing away | (believed to be) May 30th

A crowd of police officers walk towards two people on the side walk. The two people move away slowly. One of them turns, pointing a phone at the officers; an officer sprays them (probably with mace).

tags: mace, spray

id: co-denver-15

**Links**

* [Video and description from a Denver Post reporter](https://twitter.com/BySajaHindi/status/1266935262774517760)
* [Photo, allegedly of the same two people later on](https://twitter.com/ry3313/status/1267942996386828288)

### Police fire pepper balls at car with pregnant woman | May 31st

The driver steps out of a black sedan that officers have apparently hit with a pepper ball. He tells the officers repeatedly that there is a pregnant woman inside.  Shoot it again!" Officers shoot the car several more times.

tags: pregnant, pepper-ball, shoot, vehicle

id: co-denver-8

**Links**

* https://www.reddit.com/r/2020PoliceBrutality/comments/gumff6/denver_police_fire_pepper_balls_at_a_car_with_a/
* https://www.denverpost.com/2020/06/04/denver-police-investigation-pepper-balls-shot-pregnant-woman-in-car/

### Police officer fires at protestor while driving away | May 31st

Officers are on a police truck leaving the area. One officer fires a pepper ball directly at someone filming, hitting their phone.

tags: shoot, pepper-ball

id: co-denver-9

**Links**

* https://twitter.com/heyydnae/status/1267139396278661121?s=21

### Police pepper sprays peaceful protestor and fires tear gas on crowd | Believed to be May 31st or June 1st

Police officer snatches away protestor's sign and and sprays them with pepper spray. They soon begin firing tear gas on the crowd.

tags: property-destruction, pepper-spray, spray, tear-gas

id: co-denver-10

**Links**

* https://www.reddit.com/r/2020PoliceBrutality/comments/gvhisl/police_rip_sign_out_of_peaceful_protesters_hands/
* https://www.tiktok.com/@yazzdazzz/video/6832896487207243014

### Officer threatens woman who asks what will happen at curfew | May 31st

A woman films an interaction with an officer. She approaches the line and asks, "Can I ask you what's going to happen at 8, sir?"

tags: threaten, incitement

id: co-denver-16

**Links**

* https://www.tiktok.com/@yazzdazzz/video/6832908683035413766

### Footage shows effect of less-lethal round | May 31st

Footage shows woman asking protestor if he's okay. He says, "Fuck yeah."

His sweatshirt is covered in blood and he has suffered a gash of 1-2 inches across his chin, with a chunk of his chin hanging off.

tags: shoot, projectile

id: co-denver-19

**Links**

* https://www.tiktok.com/@yazzdazzz/video/6832895812771646725

### Officer incites violence on social media | June 1st

In a since-deleted post on Instagram featuring 3 DPD officers in riot gear, the poster captioned the image: "Let's start a riot."

The officer has since been fired from the Denver Police Department.

tags: incitement

id: co-denver-17

**Links**

* https://twitter.com/DenverPolice/status/1267571824054775808
* https://twitter.com/DenverPolice/status/1267933192805216256

### Police shoot protester from behind with tear gas canister | June 2nd

An activist and member of the Use of Force committee for Denver Police says officers rolled a tear gas canister toward her and shot her in the back with pepper balls as she retreated.

tags: shoot, tear-gas, tear-gas-canister, pepper-ball

id: co-denver-11

**Links**

* https://www.reddit.com/r/Denver/comments/gvhqs2/elisabeth_epps_use_of_force_committee_member_for/
* [Local news report](https://www.denverpost.com/2020/06/02/denver-protests-police-force-tear-gas-george-floyd/)
* [Local news report](https://www.greeleytribune.com/2020/06/05/denver-police-investigation-pepper-balls-shot-pregnant-woman-in-car-2/)

### Police tackle group of peaceful protesters | June 4th

Denver SWAT unit tackles group of peaceful protesters who were walking and chanting (around 12:20am).

tags: tackle, arrest

id: co-denver-12

**Links**

* https://www.reddit.com/r/Denver/comments/gwdg85/denver_swat_unit_tackles_group_of_peaceful/

### Protestor struck in head at short range with explosive projectile | (Believed to be) June 6th

Footage shows protestors walking away from police. An officer fires an explosive projectile at the ground, which then ricochets and strikes protestor in head. Protestor crumples to the ground. Title on Reddit states that the protestor suffered permanent hearing loss, but this has not been verified.

It should be noted that these rounds are intended to be shot at the ground as the officer did. However, the proximity of the shot to protestors severely increased the risk of injury, as seen here.

Footage was first posted on reddit.com/r/protest on June 6th.

tags: shoot, projectile, explosive

id: co-denver-18

**Links**

* https://www.reddit.com/r/protest/comments/gx7voh/denver_police_knocking_a_kid_out_and_losing/

gha_license_id: MIT


text:
---
layout: page
title: "Fasantauri System"
date: 2005-09-19T18:29:17+00:00
comments: true
sharing: true
footer: true
group: Macropedia
categories: ["imperium edition", "chang singh authored"]
---

Fully Autonomous Data Acquisition Personalities

Fasantauri System

Federov Assault Rifle

[Star Systems](/macropedia/star-systems) Link: [[Alpha Centauri](/star-systems/alpha-centauri)](/star-systems/alpha-centauri)

## Overview
Said to be the oldest of Old Terra's colonies, and its proximity to Sol and a wealth of historical and archaeological evidence would bear this out.  A rare system, it contains three habitable worlds.  One of the wealthiest of all the worlds in human space, its political, economic and cultural importance is second only to [Corrigan](/star-systems/epsilon-eridani).

## History

### First Expanse
According to the oldest historical records, the Fasantauri System was first colonized over 1,600 standard years ago via slowboats that took the better part of a century to reach their destination.  These earliest colonists chose the planet Terre Nouveau, with its balmy climate and largely compatible biochemistry.

Over the next few centuries, but particularly after the development of FTL technology, Terra Nouveau and the other two habitable planets; Goetel's World and Glacia saw an influx of tens of millions.

The system was the scene of much friction at this time, as the Oligarchs and their client states battled for territory and resources.  Records indicate that at least four wars were fought during this period.  A final treaty carved the system into a number of provinces, each nominally a democracy but in fact controlled by an Oligarchic family.

### First Decline
The [Decline](/chronology/first-decline) hit the Fasantauri hard, but certainly much less so than virtually any other system.  Communications with Old Terra were not completely lost, and the sheer size and wealth of the system meant that its economy, while initially strained to the breaking point, was able to survive and eventually prosper.

The heavily industrialized provinces with their Oligarchic overlords, evolved into technology-rich kingdoms, frequently at war, always maneuvering for supremacy in an ever-shifting array of alliances.

By the second half of the Decline, only a half-dozen kingdoms remained, with Glacia almost solely the territory of the [Perez Family](/macropedia/perez-family) and Goetel's World in the hands of the [Tawmeriks](/macropedia/tawmerik-dynasty)[-'^1^'-].  Terra Nouveau, with its larger populations and greater resource base, remained divided into four kingdoms, though pre-eminent among them was Krezil.  The Oligarchs initially resisted such younger clans as the Tawmeriks and Perezs, but ultimately accomodated them, though never entirely accepting their inevitable political status as equals.

In the final century of the Decline, the last great war of the Fasantauri System was fought, the so-called Fifth Patrician's War.  Though, like the others, it was fought largely to a stalemate, for Krezil it proved an economic disaster, leading to the infamous [Krezil Stock Market Crash](/macropedia/krezil-stock-market-crash).  The Tawmeriks, Perezs and the other Oligarchs (particularly the Bafiktuys), seized much of this wealthy state's assets, enriching themselves and paving the way for political unification.

### The Terran Republic and Early Imperium
With the rediscovery of hopspace techology, the Fasantauri System was thrust to the forefront.  Its wealth and its formidable technology were so great that even internal divisions could not keep the Oligarchs and the lesser families and corporations from forming a hub of worlds, united in purpose if not always in actions.

The formation of the [Terran Republic](/macropedia/terran-republic) was, in very large part, simply an extension of political, social and economic evolution of the Fasantauri System during the latter part of the Decline.  While other systems would be added, none could boast the wealth and power that the Oligarchic and younger clans of Fasantauri held.

In the end, however, the formation of the Republic and its later replacement by the Imperium must assuredly be one of the great anti-climaxes of human history.  Fasantauri was supplanted as a center of human civilization, and while its political clout remained great, its early pre-eminence faded away.

### The High Imperium
With the failure of the Tawmeriks, Fasantauri's decline accelerated.  The new dynasty, having no substantial attachments; traditionally or economically, sought to limit the power of the Oligarchs and the remnants of the Tawmeriks.

The Oligarchs of Fasantauri, however, were not so easily defeated, and while they were forced further into the shadows, they completed their takeover of Fasantauri's domestic political structure.  Their hold on power became absolute, and the [Neo Tawmeriks](/macropedia/neo-tawmeriks) and [Perez Family](/macropedia/perez-family) were evicted from the system, along with numerous minor families.

### The Late Imperium and the Interregnum
By the later Imperium, Fasantauri was little more than an Oligarch-run technocracy.  As Imperial authority began to slip, the Oligarchs exerted more direct control over surrounding systems, forming a formidable bloc that, while potentially threatening the Imperium, may have actually staved off the decline.  After the [Zenbrudi War](/macropedia/zenbrudi-war), it was Fasantauri's banking system that was essentially funding the Imperium, at a very high rate of interest.

With the failure of the Emperors and the beginning of the [Imperial Interregnum](/macropedia/imperial-interregnum), the Oligarchs were keen supporters of the new political structure with [Durin Bonish](/macropedia/durin-bonish) at the helm.  Bonish was more keen to do business with the Oligarchs, receiving large loans and key [Congressional](/macropedia/imperial-congress) votes in return.  While Bonish and his successors were vocally great champions of honest government, they were, in fact, the greatest beneficiaries of corruption, much of it stemming from the Oligarchs of Fasantauri.

### The Hundred Bloody Days
It is still too recent in time to determine the truth of Fasantauri's involvement in the [Hundred Bloody Days](/macropedia/hundred-bloody-days).  The were [Anthorph](/macropedia/anthorph)s in the system had always been a second-class populace, and bigoted attitudes never entirely faded away even during the more enlightened period of the High Imperium.  The Oligarchs, while clearly uncomfortable with the Bloody Pretender, were quite willing to profit from his brief, vicious reign, and in this more than any other act, condemned themselves as profiteers and amoral power seekers.

### The Civil War
The fall of the Bloody Pretender had swift consequences for the Fasantauri system.  Its economy collapsed as the Oligarchs found themselves financially overextended from the vast loans they had given to the [Imperial Congress](/macropedia/imperial-congress) and the Bloody Pretender.  Unemployment suddenly skyrocketed to over twenty percent, the Imperium currency so devalued now that double digit inflation became the norm.  Revolution and civil war were inevitable.

Old rivalries, nearly forgotten but still simmering, bubbled over.  The unity of the Oligarchic clans broke down, and soon they were in open conflict.  Much of the Civil War was fought on Terre Nouveau, which was ravaged.  In the midst of this the Oligarchic civil war, new leaders arose, particularly young and dynamic Solomon Quain, a commoner by birth and veteran of the wars against the Bloody Pretender's regime who had returned to find his planet in chaos.

From his home province on Glacia, Quain declared the age of the Oligarchs at an end, and raised an army of nearly ten million.  The Oligarchs, already weakened by their own war, were no match for a populist like Quain, whose greatest skill was in picking talented generals.  Glacia soon fell to him, and a popular uprising on Goetel's World lead to a government that swore fealty to him.

At this moment, the ailing [Imperial Congress](/macropedia/imperial-congress), still realing from its own disasters, sent Quain aid in the form of three heavy cruisers.  I cannot say for certain what the justification for it is, though clearly Quain has proven himself an astute military and political leader, and perhaps they are hoping that he is the man to bring order to chaos.

### Fasantauri Today
The Civil War still rages on Terre Nouveau, where the Oligarchs hang on.  Quain's new regime is in its infancy, and despite having a small navy in its hands, seems unwilling to do anything that could threaten the most populated and valuable planet in the Fasantauri System.

Both Quain's regime and the Oligarchs still dutifully declare themselves loyal subjects of the Imperium.  The Oligarchs clearly do so only for the purposes of legitimacy, but Quain's ties to the remnants of the [Imperial Congress](/macropedia/imperial-congress) are murkier, and only time will tell precisely what he and that last organ of Imperium rule are up to.

## Sites on Terre Noveau

### Krezel [-(anc. Anselle)-]
One of the earliest sites of colonization on Terre Nouveau, it has been for centuries the cultural center of the Fasantauri System.  Once also a political and economic superpower, today it is again the house of power for the Oligarchs as they fight the forces of Solomon Quain.

### Ethus
Constructed on a vast plateau some three miles above sea level, Ethus is one of the most beautiful cities in the Imperium.  Constructed entirely out of so-called Ethus marble, the city is said to shine from space.

### The Caverns of Oth
Enormous series caverns that sit beneath the small northern polar cap.  Formed some billion years ago during a period of severe vulcanism, these caverns boast a vast array of minerals, fossils and dozens of unique ecologies.  The full extent of these caverns has never been explored, and legends of various alien races or lost populations are popular.

## Sites on Glacia

### Towers of Relmentia
During the great conflicts of the First Decline, the Oligarchic Nissa family constructed dozens of towers in their main city of Relmentia, mainly to demonstrate their prestige and wealth.  Some stand as nearly four kilometers high, and are marvels of engineering.  The tallest, the Tower of Kisangalora, is 3,922 meters, now serves as the residence of Solomon Quain.

### The Sea of Ice
A vast polar sea in the southern hemisphere of Glacia.  Containing nearly thirty percent of the water on the planet, it is virtually uninhabitable, and even at the height of the Imperium's power, the natural resources beneath it are all but untapped.  Said to be the realm of a Yezza, a degenerate people, possibly related to [Anthorph](/macropedia/anthorph)s, none have been seen in seven hundred years.

### Dagor Crater
Nearly two hundred miles across, this impact crater is the source of a good deal of Glacia's mineral wealth.  An asteroid hit here nearly ninety million years ago, and is believed to have been responsible for Glacia's frigid climate.  The deepest part of the crater, Valles India, is nearly seven miles deep and is a popular tourist destination because of its numerous mineral hotsprings.

## Sites on Goetel's World

### Serebar
Third largest city in the Fasantauri System, and largest on Goetel's World.  Once the center of the pre-Imperium [Tawmerik's](/macropedia/tawmerik-dynasty) power, it is now one of the most important industrial centers in the Fasantauri system.  It was the last holdout of the Oligarchs on Goetel's World, and the scene of several battles that saw a quarter of the city destroyed.

### Temple of Kristos
An ancient place of worship, founded during the [First Expanse](/chronology/first-expanse) by an ancient Terran religion, Kristianity.  Though the religion itself faded during the First Decline, this great temple (or church as the locals call it) is a great dome, one of the largest in the Imperium.  Though now a museum, the few remaining Kristos worshippers in the Fasantauri System are permitted to worship their god here.  It boasts numerous remarkable frescoes, some said to have come from Old Terra.

### Tebis Desert
Vast equatorial desert that domintes Goetel's World's largest continent.  A difficult environment to live in, it is populated by various nomadic tribes, and the mineral wealth here has long attracted prospectors.  There are no permanent settlements in the deep desert, though there are often reports of lost cities.

[-'^1^' The early history of the [Tawmeriks](/macropedia/tawmerik-dynasty) is somewhat confused, and their own histories claim that they originated in the [Vadia System](/star-systems/vadia) as the rulers of the semi-legendary [Vadian Free Republic](/macropedia/vadian-free-republic).-]

## References
1. [Anthorph](/macropedia/anthorph)s
1. [Corrigan System](/star-systems/epsilon-eridani)
1. [Durin Bonish](/macropedia/durin-bonish)
1. [First Decline](/chronology/first-decline)
1. [First Expanse](/chronology/first-expanse)
1. [Hundred Bloody Days](/macropedia/hundred-bloody-days)
1. [Imperial Interregnum](/macropedia/imperial-interregnum)
1. [Krezil Stock Market Crash](/macropedia/krezil-stock-market-crash)
1. [Neo Tawmeriks](/macropedia/neo-tawmeriks)
1. [Perez Family](/macropedia/perez-family)
1. [Tawmerik Dynasty](/macropedia/tawmerik-dynasty)
1. [Terran Republic](/macropedia/terran-republic)
1. [Vadia System](/star-systems/vadia)
1. [Vadian Free Republic](/macropedia/vadian-free-republic)
1. [Zenbrudi War](/macropedia/zenbrudi-war)

## Related Articles

1. [Imperium Edition Index](/macropedia/imperium-edition-index)
2. [Vadian Free Republic](/macropedia/vadian-free-republic)
3. [Krezil Stock Market Crash](/macropedia/krezil-stock-market-crash)
4. [Imperial Congress](/macropedia/imperial-congress)
5. [Neo Tawmeriks](/macropedia/neo-tawmeriks)
6. [Hundred Bloody Days](/macropedia/hundred-bloody-days)
7. [Alpha Centauri](/star-systems/alpha-centauri)
8. [Durin Bonish](/macropedia/durin-bonish)
9. [Terran Republic](/macropedia/terran-republic)
10. [Imperial Interregnum](/macropedia/imperial-interregnum)
11. [Perez Family](/macropedia/perez-family)
12. [Zenbrudi War](/macropedia/zenbrudi-war)
13. [Star Systems](/macropedia/star-systems)
14. [Tawmerik Dynasty](/macropedia/tawmerik-dynasty)
15. [Starsystems/Alphacentauri](/star-systems/alpha-centauri)
16. [Anthorph](/macropedia/anthorph)
17. [First Decline](/chronology/first-decline)
18. [Congressional](/macropedia/imperial-congress)
19. [Vadia System](/star-systems/vadia)
20. [Tawmeriks](/macropedia/tawmerik-dynasty)
21. [Tawmerik'S](/macropedia/tawmerik-dynasty)
22. [Decline](/chronology/first-decline)
23. [First Expanse](/chronology/first-expanse)
24. [Corrigan](/star-systems/epsilon-eridani)
25. [Corrigan System](/star-systems/epsilon-eridani)

gha_language: HTML


text:
### Master Thesis

* Project work (main body, learning, project/problem solving) @ CNT for 3½ months
* Writing @ fesb Jun-Sept

### Possible problems
* Link classification
* Traffic estimation
* Interference prediction
* Throughput prediction

### Available data
* SEAS (Lolland): Timestamp, devid, payload, RSSI, SNR, (SF, CR, Mtype, etc)

    6 APs/GWs, 1000's of devices, 1 week of data. Devices/use-case is street-lighting. We can very likely get more data from tehse guys.

* SEAS (Svebølle): Same params

    1 AP/GW in Svebølle

* Kamstrup

* TheThingsNetwork: Do they publish data?

### Next steps

Familiarizing with data sets, LoRaWAN and ML concepts & Choosing a problem / project path.

The SEAS data can be accessed at:

1. Lolland: https://www.dropbox.com/sh/hhix3u9h5dwbeg3/AAA5YgxEeWxrTwsfkIihLwPZa?dl=1
2. Svebølle: https://www.dropbox.com/sh/yramhj65py4tsr6/AABhfGJGIagJYpCuxtVzWj_Ua?dl=1


text:
# 3DMoCap
3DMoCap is a new online physical activity learning tool that combines novel full-body sensor technologies with traditional video based learning approaches.
3DMoCap platform allows online physical activity insturcters to record their activities using full-body sensor systems, and generate a 3D agent/model of themselves.
By syncing their recorded video with the movements of the 3D model, the necesity to record training using multiple cameras, and recording the same movement/pose from several angles get elemenated.
From the students' perspective, they are given the ability to rotate this 3D model according to their wish and learn more complex movements with ease.

https://user-images.githubusercontent.com/32677026/139699966-f79287c5-a944-4156-b4a1-df02c255d426.mp4

branch_name: refs/heads/main


text:
# Hammer Shell Program
## Authors: Justin Schopick and Neal Goyal

## Project Description
This program will mimic a linux or unix terminal. The program will run by allowing the user to take in a command. The program will parse each command into different vectors based on commands and connectors. Then, we use system calls to give each command functionality.
**For example:**
```c++
 $ ls -a
 $ echo hello
 $ mkdir test
```
**Is Equal To**
```c++
 $ ls -a; echo hello; mkdir test
```
## Requirements
Need to install the boost library to run the program. To get instructions on how to install, follow the website here: https://www.pyimagesearch.com/2015/04/27/installing-boost-and-boost-python-on-osx-with-homebrew/. Also, you need to compile using C++11. In order to compile, you can either run our makefile or use the command
```c++
  $ g++ *.cpp -std=c++11
```
## Features
* "||" executes the next command if the previous command fails.
* "&&" executes the next command if the previous command succeeds.
* ";" always executes the next command.
* "#" turns everything following it into a comment.
* "<" Has a command read in input from a file instead of the command prompt.
* ">" Outputs the result of a command into a file instead of the command prompt(replaces file contents).
* ">>" Appends the result of a command into a file instead of the command prompt.
* "|" Takes the output from a command and reads it in as input for the command on the other side of the pipe.

*The test command can be executed using "test" or "[]". This will print (True) if the input exists and (False) if it does not exist. The following flags can be specified for the Test Command:*
* No flag: treat as if -e flag.
* -e flag: test if the input is a directory or regular file.
* -d flag: test if the input is a directory.
* -f flag: test if the input is a regular file.

## Scripts
In this lab, we used scripts to thoroughly test all the commands.
```c++
  single_command.sh        #tests single commands
  multi_command.sh         #tests commands with ;, &&, or ||
  commented_command.sh     #tests commands with comments
  test_test.sh             #tests the Test command
  precedence_test.sh       #tests if precedence is accounted for ()
  exit.sh                  #tests the Exit command
  input_redirect_test.sh   #tests input redirection (<)
  output_redirect_test.sh  #tests single output redirection (>)
  append_redirect_test.sh  #tests double output redirection (>>)
  pipe_test.sh             #tests piping (|)
```

## Running Hammer Shell
```c++
$ git clone https://github.com/jschopick/HammerShell.git
$ cd HammerShell
$ make
$ bin/HammerShell
```

## Known Bugs
- We currently cannot account for non bin items, such as commands like "cd"
- Issues with shell scripts running accordingly to each test
- Cannot account for quotations within the commands
- Will run with a connector at the end of the program
- Cannot account for multiple parenthesis

repository: jschopick/HammerShell

repo_name: jschopick/HammerShell


text:
---
title: Forcing a Postback
page_title: Forcing a Postback
description: Check our Web Forms article about Forcing a Postback.
slug: ajaxpanel/client-side-programming/how-to/forcing-a-postback
tags: forcing,a,postback
published: True
position: 3
---

# Forcing a Postback

##

If you want to perform a single postback instead of an AJAX request, **arguments.EnableAjax** should be **false** .

In the code-behind:

````C#
if (!RadAjaxPanel1.EnableAJAX)
	{
	     RadAjaxPanel1.ClientEvents.OnRequestStart = "OnRequestStart";
	}

````
````VB
 If Not RadAjaxPanel1.EnableAJAX Then
	    RadAjaxPanel1.ClientEvents.OnRequestStart = "OnRequestStart"
End If
````

On the client:

````JavaScript
function OnRequestStart(sender, args) {
	args.set_enableAjax(false);
}
````

This approach is useful only when you want to perform a single postback. If you want to disable AJAX because of unsupported browsers or old versions of supported ones, we suggest you to do this on the server:

````C#

RadAjaxPanel1.EnableAJAX = Page.Request.Browser.SupportsXmlHttp;

````
````VB
RadAjaxPanel1.EnableAJAX = Page.Request.Browser.SupportsXmlHttp
````

## See Also

 * [Cancel AJAX  Request]({%slug ajaxpanel/client-side-programming/how-to/cancel-ajax--request%})

 * [OnRequestStart]({%slug ajaxpanel/client-side-programming/events/onrequeststart%})

repository: telerik/ajax-docs

gha_language: C#

repo_name: telerik/ajax-docs


text:
---
title: Uninstall components
---

# MS Windows

# Macintosh

* **aws-vault**
  `brew cask uninstall aws-vault`
* **awscli**
  `pip3 uninstall awscli`
* **git**
  `brew uninstall git`
* **Angular CLI**
  `npm uninstall -g @angular/cli`
* **Typescript**
  `npm uninstall -g typescript`
* **node.js**
  `brew uninstall nodejs`
  `sudo rm -rf /usr/local/lib/node_modules`
  `sudo rm /usr/local/bin/npm`
  `sudo rm /usr/local/bin/npx`
* **Python**
  `brew uninstall python`
* **Homebrew**
  Homebrew should be kept installed. There are lots of packages available - if you
  look for some piece of software first have a look if there is a Homebrew package.
* **Forum directory**
  `rm -rf $PHOTOFOPRUM`
* **environment variable**
  Open the text editor with the following command:
  `open -e ${HOME}/.bash_profile`
  Now delete the line which contains the PHOTOFORUM setting and save the file.

repository: MiriamPapp/photo-forum

repo_name: MiriamPapp/photo-forum


text:
# Exploratory Multivariate Analysis of Geochemical Datasets

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/morganjwilliams/exploratory-geochemistry/master?urlpath=lab/tree/00_Intro.ipynb)

Executable examples in Jupyter notebooks found using Binder link above. A PDF file of the corresponding poster can be found [here](./C3DIS2018_Williams_Morgan.pdf).

**Note**: Data removed from S3 to minimise expenditure. Feel free to contact me if you're interested, or download data from EarthChem to use with copies of these notebooks (http://ecp.iedadata.org/).


text:
---
wordpress_id:<PHONE_NUMBER>
layout: post
title: "Base One Labs introduces ImpactBand: massive iPhone case"
wordpress_url: http://joshkerr.com/post/2074545993
---

Holy Batman, that is a HUGE iPhone 4 case.  If you watch the video from the website, you see a guy drop it from more than 6 feet on to concrete.  Wow.

I need my iPhone to fit into my pants pocket, so I’ll pass on this one.

Hat tip: The Unofficial Apple Weblog (TUAW)

via Base One Labs introduces ImpactBand, a beefier alternative to iPhone bumper.

repository: joshkerr/octopress

extension: markdown

gha_language: JavaScript

repo_name: joshkerr/octopress


text:
---
layout: post
title: Leetcode 121 Best Time to Buy and Sell Stock
date: 2022-08-06 12:29 -0500
categories: Leetcode-Diary
---
# Best Time to Buy and Sell Stock problem results

[Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)

![Result](/assets/images/best_time_to_buy_and_sell_stock.png)

# First Blood
```
{
    class Solution {
public:
    int maxProfit(vector<int>& prices) {
        int lessest = INT_MAX;
        int max = 0;
        int curr = 0;

        for(int i = 0; i < prices.size(); i++)
        {
            if(prices[i] < lessest)
            {
                lessest = prices[i];
            }

            curr = prices[i] - lessest;

            if(curr > max)
            {
                max = curr;
            }
        }

        return max;
    }
};
}
```

# Double Kill
```
{
class Solution {
public:
    int maxProfit(vector<int>& prices) {
        int lessest = INT_MAX;
        int max_profit = 0;

        for(int i = 0; i < prices.size(); i++)
        {
            lessest = min(lessest,prices[i]);
            max_profit = max(max_profit,prices[i] - lessest);
        }

        return max_profit;
    }
};
}
```


text:
# yarn-plugins

[![GitHub release](https://img.shields.io/github/release/crushjz/yarn-plugins.svg)](https://github.com/crushjz/yarn-plugins/releases) [![Build](https://github.com/crushjz/yarn-plugins/actions/workflows/main.yml/badge.svg)](https://github.com/crushjz/yarn-plugins/actions/workflows/main.yml)

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

Yarn plugins for Yarn 2+.

## Plugins

- [yarn-plugin-workspace-changed](packages/workspace-changed) - Run a command on changed workspaces and their dependents.

## License

MIT

repository: crushjz/yarn-plugins

repo_name: crushjz/yarn-plugins


text:
# Working with VS-Code

See VS-Code [documentation](https://code.visualstudio.com/docs).

* Managing version control from within VS Code is explained [here](https://code.visualstudio.com/docs/editor/versioncontrol) and there is a [video based on this](https://www.youtube.com/watch?v=wMqukSKYcvU) page.
* Working with GitHub from inside VS-Code is outlined [here](https://code.visualstudio.com/docs/editor/github).
* [stackoverflow: saving and loading extensions](https://stackoverflow.com/questions/35773299/how-can-you-export-the-visual-studio-code-extension-list)
* [austin_vscode.txt extension list](support_files/austin_vscode.txt)
* loading these extensions with powershell:

```
cd docs/support_files

* [saving and loading extensions](https://stackoverflow.com/questions/35773299/how-can-you-export-the-visual-studio-code-extension-list)

* [an extension list](support_files/austin_vscode.txt)

* loading the extensions with powershell:

```
cat austin_vscode.txt |% { code --install-extension $_}
```

* with bash:

```
cd docs/support_files

cat austin_vscode.txt | xargs -L 1 echo code --install-extension
```


text:
---
title: Overview
page_title: Calendar for Xamarin Android | Telerik UI for Xamarin.Android Documentation
description: An overview page of RadCalendarView for Android. This article explains the most important things you need to know before using RadCalendarView.
slug: android-calendar-overview
tags: radcalendarview, calendar, overview
position: 0
publish: true
---

# CalendarView for Xamarin.Android: Overview

**RadCalendarView** for Android is a calendar component that has been designed for the mobile environment. It offers great performance, powerful customization options and various features.
The dates in the calendar can be presented with different modes which visualize Month, Week, Year, Day, MultiDay Views and Agenda. The user can provide a selection in different selection modes - Single, Multiple or Range depending on the required results.
Different scroll modes are available including but not limited to: Sticky, Combo and Stacked.
The calendar also offers events integration.

![TelerikUI-Calendar-Overview](images/calendar-overview-1.png "Calendar Overview.")

## Display Modes

**RadCalendarView** provides different [display modes]({% slug calendar-displaymode %} "Read more about RadCalendarView's display modes"), which allow you to present dates from a month, a week or an year, depending on you preferences:

![TelerikUI-Calendar-Year](images/calendar-overview-2.png "Calendar in Year mode.")

## Selection Modes

**RadCalendarView** can be setup to provide different selection capabilities to the user. Depending on the current scenario and the required input from the user, the selection can be Single (to pick just a single date),
multiple (to pick many dates) or range (to select a range of consecutive dates, for example to choose the period of a vacation). [Here]({% slug calendar-selection %} "Read more about RadCalendarView's selection modes")
you can read more about the types of selection.

## Events

The control can present information about events related with each date. The event's information can be presented with various shapes and styles. You can read more about the events integration
[here]({% slug calendar-events %} "Read more about RadCalendarView's events").

## Disabled Dates

You can restrict the dates presented by **RadCalendarView** by setting values for min and max dates as well as marking specific dates as disabled. More about disabling dates is available [here]({% slug calendar-disableddates %} "Read more about RadCalendarView's disabled dates").

## Customizations

**RadCalendarView** provides different ways for customizing its appearance. You can disable some of the visible elements like title, day names, grid lines, cell decorations or alter the way they look. You can also apply
customizations to the calendar cells depending on the dates they represent. [Here]({% slug calendar-customizations %} "Read more about RadCalendarView's customizations")'s a more descriptive information about the customizable options.

## Gestures and Transitions

The calendar control handles different manipulations performed by the user like swiping horizontally or vertically, pinching open or close, tapping or double tapping. You can easily select which of these gestures will
be handled in a way which changes the calendar's properties with nice transitions. You can also trigger the transitions programmatically. More information is available in
[this article]({% slug calendar-gesturestransitions %} "Read more about RadCalendarView's gestures and transitions").

## Localizations

**RadCalendarView** follows the locale information provided from the user's device settings. If you want, you can easily apply locale of your choice so that the information that is displayed is translated and formatted
according to your preferences. [Here]({% slug calendar-localization %} "Read more about RadCalendarView's localization")'s more about the calendar's localizations capabilities.

## Xamarin.Android Examples

Xamarin.Android examples that show how to use RadCalendarView for Xamarin.Android are included in the Telerik UI for Xamarin zip file provided for manual installation.

Telerik_UI_for_Xamarin_[version]_[license].zip, where [version] marks the release and [license] is replaced with Dev or Trial depending on the license, is available for download from the [Downloads section of your Telerik account](https://www.telerik.com/account/product-download?product=UIXAM). Unzip the archive and go to Examples/Android folder to access our Samples Xamarin.Android solution.

repository: telerik/xamarin-forms-docs

repo_name: telerik/xamarin-forms-docs


text:
# church-blog1

https://demos.creative-tim.com/material-kit-pro-react/?_ga=2.3645170.33502328.1613209042-1227923935.1612851778#/blog-post

yarn install

# local

yarn dev
yarn build && yarn serve

# Add your code to GitHub new repo

- will use Github for auth//integration with netflify

# send to PROD

yarn build
yarn upgrade
yarn global add netlify-cli

# authenticate via the CLI

netlify login

# initialise the site

netlify init
-- during this there will ask to deploy

# RESOURCES:OpenGraph checking tools:

https://www.heymeta.com/
https://opengraphcheck.com/
https://cards-dev.twitter.com/validator
https://developers.facebook.com/tools/debug/sharing
https://www.linkedin.com/post-inspector/
Additional resources:

# The Essential Meta Tags for Social Media/ Images help

https://css-tricks.com/essential-meta-tags-social-media/

https://juliangaramendy.dev/custom-open-graph-images-in-gatsby-blog/
and the Gatsby docs: https://www.gatsbyjs.org/docs/working-with-images/

# Creating an SEO component with React Helmet

There’s a Gatsby github PR https://github.com/gatsbyjs/gatsby/issues/14125 on seo with some great notes from Andrew Welch on SEO and a link to a presentation he did back in 2017, video on YouTube.


text:
so people want a lot of things out of
life but I think more than anything else
they want happiness Aristotle called
happiness the chief good the end towards
which all other things aim according to
this view the reason we want a big house
or a nice car or a good job isn't that
these things are intrinsically valuable
it's that we expect them to bring us
happiness now in the last 50 years we
Americans have gotten a lot of the
things that we want we're richer we live
longer we have access to technology that
would have seems like science fiction
just a few years ago the paradox of
happiness is that even though the
objective conditions of our lives have
improved dramatically
we haven't actually gotten any happier
maybe because these conventional notions
of progress haven't delivered big
benefits in terms of happiness there's
been an increased interest in recent
years and happiness itself people have
been debating the causes of happiness
for a really long time in fact for
thousands of years but it seems like
many of those debates remain unresolved
why is with many other domains in life I
think the scientific method has the
potential to answer this question in
fact in the last few years there's been
an explosion in research on happiness
for example we've learned a lot about
its demographics how things like income
and education gender and marriage relate
to it
but one of the puzzles this is revealed
is that factors like these don't seem to
have a particularly strong effect yes
it's better to make more money rather
than lasts or to graduate from college
instead of dropping out but the
differences in happiness tend to be
small which leaves the question what are
the big causes of happiness I think
that's a question we haven't really
answered yet but I think something that
has the potential to be an answer is
that maybe happiness has an awful lot to
do with the contents of our
moment-to-moment experiences it
certainly seems that we're going about
our lives that what we're doing
who were with what we're thinking about
have a big influence on our happiness
and yet these are the very factors that
have been very difficult in fact almost
impossible for scientists to study a few
years ago I came up with a way to study
people's happiness moment to moment is
they're going about their daily lives on
a massive scale
all over the world something we've never
been able to do before
called track your happiness org it uses
the iPhone to monitor people's happiness
in real-time how does this work
basically I send people signals at
random points throughout the day and
then I ask them a bunch of questions
about their moment-to-moment experience
at the instant just before the signal
the idea is that if we can watch how
people's happiness goes up and down over
the course of the day minute to minute
in some cases and try to understand how
what people are doing who they're with
what they're thinking about and all the
other factors that describe our day how
those might relate to those changes in
happiness we might be able to discover
some of the things that really have a
big influence on happiness we've been
fortunate with this project to collect
quite a lot of data a lot more data of
this kind than I think has ever been
collected before over 650,000 real-time
reports from over 15,000 people and it's
not just a lot of people it's a really
diverse group people from wide range of
Ages from eighteen to late 80s a wide
range of incomes education levels people
who are married divorced widowed etc
they collectively represent every one of
eighty six occupational categories and
hail from over 80 countries what I'd
like to do with the rest of my time with
you today is talk a little bit about one
of the areas that we've been
investigating and that's mind wandering
as human beings we have this unique
ability to have our mind stray away from
the present this guy is sitting here
working on his computer and yet he could
be thinking about the vacation he had
last month wondering was going to have
for dinner maybe he's worried that he's
going bald this ability to focus our
attention on something other than the
present is really amazing it allows us
to learn and plan and reason in ways
that no other species of animal can and
yet it's not clear what the relationship
is between our use of disability and our
happiness
you've probably heard people suggest
that you should stay focused on the
present
be here now you've probably heard 100
times maybe to really be happy we need
to stay completely immersed and focused
on our experience in the moment maybe
these people right maybe mind-wandering
is a bad thing on the other hand when
our minds wander their unconstrained we
can't change the physical reality in
front of us but we can go anywhere in
our minds since we know people want to
be happy maybe when our minds wander
they're going to someplace happier than
the place that they're leaving it would
make a lot of sense in other words maybe
the pleasures of the mind allow us to
increase our happiness with
mind-wandering well since I'm a
scientist I'd like to try to resolve
this debate with some data and in
particular I'd like to present some data
to you from three questions that I asked
with track your happiness remember this
is from sort of moment-to-moment
experience in people's real lives the
three questions the first one is a
happiness question how do you feel on a
scale ranging from very bad to very good
second an activity question what are you
doing on a list of 22 different
activities including things like eating
and working and watching TV and finally
a mind wandering question are you
thinking about something other than what
you're currently doing people could say
no in other words I'm focused only on my
task or yes I am thinking about
something else and the topic of those
thoughts are pleasant neutral or
unpleasant any of those yes responses
are what we called mind wandering so
what would we find
this graph shows happiness on the
vertical axis and you can see that bar
there representing how happy people are
when they're focused on the present when
they're not mind watering as it turns
out people are substantially less happy
when their minds are wandering than when
they're not now you might look at this
result and say okay sure
on average people are less happy when
their mind wandering but surely when
their minds are straying away from
something that wasn't very enjoyable to
begin with at least then mind wandering
should be doing something good for us
nope as it turns out people are less
happy when their mind wandering no
matter what they're doing for example
people don't really like commuting to
work very much it's one of their least
enjoyable activities and yet they are
substantially happier when they're
focused only on their commute then when
their mind is go
to something else it's amazing so how
could this be happening I think part of
the reason a big part of the reason is
that when our minds wander we often
think about unpleasant things and they
are enormous ly less happy when they do
that our worries our anxieties our
regrets and yet even when people are
thinking about something neutral they're
still considerably less happy than when
they're not mind wandering at all even
when they're thinking about something
they would described as Pleasant they're
actually just slightly less happy than
when they aren't mind wandering if mind
wandering we're a slot machine would be
like having a chance to lose $50 $20 or
$1 right you'd never want to play so
I've been talking about this suggesting
perhaps that mind wandering causes
unhappiness but all I've really shown
you is that these two things are
correlated it's possible that's the case
but it might also be the case that when
people are unhappy then they mind wander
maybe that's what's really going on how
could we ever disentangle these two
possibilities well one in fact that we
can take advantage of I think a fact
you'll all agree is true is that time
goes forward not backward right the
cause has to come before the effect
we're lucky in this data we have many
responses from each person and so we can
look and see does mind-wandering tend to
precede unhappiness or does unhappiness
tend to precede mind-wandering to get
some insight into the causal direction
as it turns out there is a strong
relationship between mind wandering now
and being unhappy a short time later
consistent with the idea that mind
wandering is causing people to be
unhappy in contrast there's no
relationship between being unhappy now
and mind wandering a short time later
in other words mind wandering very
likely seems to be an actual cause and
not merely a consequence of unhappiness
a few minutes ago I likened
mind-wandering to a slot machine we'd
never want to play how often do people's
minds wander
turns out they wonder a lot in fact
really a lot forty-seven percent of the
time people were thinking about
something other than what they're
currently doing how does that depend on
what people are doing
this shows the rate of mind wandering
across 22 activities ranging from a high
of 65 percent when people are taking a
shower brushing their teeth to 50
percent when they're working to 40
percent when they're exercising all the
way down to this one short bar on the
right that I think some of you are
probably laughing at ten percent of the
time people's minds are wandering when
they're having sex but there's something
I think that's quite interesting in this
graph and that is basically with one
exception no matter what people are
doing their mind wandering at least
thirty percent of the time which
suggests I think that mind wandering
isn't just frequent it's ubiquitous it
pervades basically everything that we do
in my talk today I've told you a little
bit about mind wandering a variable that
I think turns out to be fairly important
in the equation for happiness my hope is
that over time by tracking people's
moments moment happiness and their
experiences in daily life will be able
to uncover a lot of important causes of
happiness and then in the end a
scientific understanding of happiness
will help us create a future that's not
only richer and healthier but happier as
well thank you
you

repository: prewittdavon/TEDVis

gha_language: Python

repo_name: prewittdavon/TEDVis


text:
![hsm2eth logo](logo.png)
# HSM-based Ethereum Key Management Solution
Use HSM to generate and sign Ethereum transaction

### Built With

* [SoftHSM](https://github.com/opendnssec/SoftHSMv2)
* [Graphene](https://github.com/PeculiarVentures/graphene)
* [Express - Node.js web application framework](https://expressjs.com)
* [Semantic UI](https://semantic-ui.com/)

<!-- GETTING STARTED -->
## Getting Started

### Prerequisites
* Install the SoftHSM from [https://www.opendnssec.org/softhsm/](https://www.opendnssec.org/softhsm/)
* Local or remote Ethereum Geth instance [https://geth.ethereum.org/](Geth)

### Installation

2. Clone the repo
   ```sh
   git clone https://github.com/wshbair/HSM2ETH.git
   ```
3. Install NPM packages
   ```sh
   npm install
   ```
4. Set the Web3 provider in `index.js`
   ```js
   const web3 = new Web3(new Web3.providers.HttpProvider("YOUR GETH Instance"));

   ```

5. In console panel run
   ```sh
   npm start
   ```

6. In the browser open http://localhost:8090

## Demo
[![IMAGE ALT TEXT HERE](demo.png)](https://www.youtube.com/watch?v=R0_-ZKoEGn8)

## Credit
Based on the steps given in [ethereum stackexchange question](https://ethereum.stackexchange.com/questions/73192/using-aws-cloudhsm-to-sign-transactions) about using HSM to sign ethereum transactions.

## Citation
````
@inproceedings{shbair2021hsm,
  title={HSM-based Key Management Solution for Ethereum Blockchain},
  author={Shbair, Wazen and Gavrilov, Eugene and others},
  booktitle={IEEE International Conference on Blockchain and Cryptocurrency, 3-6 May 2021},
  year={2021}
}
````


text:
## Doc Development Week-11 Summary
> I worked on the inconsistencies within the "CHAOSS History" in this week.

### Day 1
* Researched and Wrote some context under the Evolution of “CHAOSS at Open Source Summit North America” in gitbook

### Day 2
* Researched and Wrote some context under the Evolution of “Bitergia extends its hands to help CHAOSS during their origin” in gitbook

### Day 3
* Researched and Wrote some context under the Evolution of “Linux Foundation involvement during the CHAOSS evolution” in gitbook

### Day 4
* Wrote the content for the blog post of the CHAOSS History in the Google Doc

### Day 5-6
* Designed the CHAOSS History timeline

### Day 7
* Finishing the pages in the gitbook for the CHAOSS History


text:
# Recruiting Large Groups

Running social experiments often requires many users to participate at the same
 time. So when are the greatest number of workers simultaneously available on
 Mechanical Turk?

The answer to this question can help in general to guide when to post HITs,
However, social experiments often use tasks where many workers must be online at
the same time, such as for studying simultaneous interaction between many
participants and sometimes this number must be pretty large. In order to do
this, we typically schedule a time in advance and notify users to show up at
that time.

This scheduling has generally been ad hoc, but in a few cases we've collected
some extra data from workers about their availability, normalized by timezone.
The following graph shows the distribution of over 1,200 workers available in
each hour, per their reports:

![starting panel](/img/launching/starting-panel.png)

The buckets are shown from 9AM to 11PM GMT -5, but are computed from the users'
original timezones. A few caveats: the graph is for a few hundred US workers
only, and the method of collection could be biased by time of day effects (the
time of day that we collected the data will affect the time preferences of
users.) However, the pattern squares with previous anecdotal observations that
either the mid-afternoon or late evening are the best time to post group tasks,
and that people don't tend to be online as much in the morning or at
dinner time.

What happens when one starts using this panel of workers? After running a few
dozen synchronous experiments all at 2PM EDT, the distribution of the remaining
times now looks like the following, with just over 900 workers available. (For
now, we are using each worker only once.)

![remaining panel](/img/launching/remaining-panel.png)

As you can see, we've drastically reduced the number of workers available at
2PM, while not really affecting the number of workers available at 9PM. In order
to get the maximum number of workers online simultaneously for our next
synchronous batch, we'd do best to shoot for 9PM instead.

Keep in mind that there can be strong time-of-day effects here, as there are
dissimilar populations likely to be online at certain times. Because of this,
it's best to randomize over all of our possible experimental treatments
simultaneously, so that the effect hits all of them. Collecting this time-of-day
data is almost essential for overcoming the significant challenges in
scheduling a large number of unique users all online at the same time.

The graphs above were generated by the panel recruiting section of
TurkServer's admin interface.

## Example of simultaneous recruiting

The following screenshot shows a recent study we deployed using this method,
pulling out all the stops for this one, resulting in sessions with 100
participants arriving within 2 minutes of each other. They all participated for
over one hour.

![parallel](/img/launching/parallel-pixelated.png)

In our case, we randomized them into different-sized groups for [this
study][cm]. The simultaneous recruitment was necessary for all of our treatments
to experience the same population, and the biggest group of users had 32
participants.

[cm]: http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0153048

## The experiment design triangle

Perhaps you've heard of the [project management triangle][pmt]: it's often been
encapsulated as **"fast, good, or cheap: pick two"** because it's been
invariably impossible to satisfy all three in executing projects.

[pmt]: http://en.wikipedia.org/wiki/Project_management_triangle

In designing web-based behavioral experiments, there is a generally a similar
triangle of three desirable properties that are very difficult to satisfy
simultaneously:

  * **Large sample size**: desirable to increase experiment power
  * **Large number of simultaneous arrivals**: whether for synchronous
  experiments or to minimize time-of-day effects across treatments (as above)
  * **Unique participants**:i.e. those who haven't seen the study before

When running large experiments that are synchronous or require extensive
randomization, and that are constrained to unique participants, one will
naturally run into the sample size ceiling. It is feasible to recruit about 1500
to 2000 active workers on MTurk on any given week, but fewer and fewer of them
are available at the same time as you schedule your experiments.

Alternatively, this means that if you can design your experiments to be less
sensitive to repeat participation, it's possible to have a lot of people
participate and also gather a lot of data. This is possible for some
experiments, but it can be challenging to ensure that the design is answering
the right question, and that participants aren't being primed from the past
or sensitive to experience.

Finally, the vast majority of online studies that are done don't require
simultaneous arrivals because either they are for single users or they are not
scheduled consistently at the same time of day. Without this constraint,
it's possible to have many unique participants with a sample size of a
couple thousand or more, but one should be careful that region and time-of-day
effects are being controlled for.

repository: TurkServer/docs

repo_name: TurkServer/docs


text:
# NEW YORK TIMES SEACH CLI

A Command Line Interface based search of the New York Times articles
database using the NYT Search Articles API.

Allows a user to search,
open, and favorite articles, as well as favorite artcles saved
by other users.

Uses the [`tty-prompt`](https://github.com/piotrmurach/tty-prompt) gem to enhance CLI interactivity, and includes
error handling for malformed dates, internet connection interruptions,
and invalid API queries.

Data provided by [**_The New York Times_**](https://developer.nytimes.com).

[![New York times logo](./lib/poweredby_nytimes_200b.png)](https://developer.nytimes.com)

## Installation and set up instructions
1) Sign up for a NYT's api key at https://developer.nytimes.com/get-started
2) Create a file called `.keys.rb` within the config folder.
Your file structure should look as follows: `config/.keys.rb`
3) In `.keys.rb`, save your new API key to a constant `NYT_KEY`
i.e. `NYT_KEY = -insert-api-key-here-`
4) From terminal run:
- `bundle install`
- `rake db:migrate`
- `ruby bin/run.rb`

## Usage

Watch this [video](https://vimeo.com/317548183) for a brief run down on how to use the NYT CLI.

## Credits
Created by [Ezra Schwepker](https://github.com/MoreSaltMoreLemon)  and [Scott Denton](https://github.com/ScottDenton).

## License
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.

repository: ScottDenton/New-York-Times-CLI

repo_name: ScottDenton/New-York-Times-CLI


text:
# Volumizer
[![Platform](https://img.shields.io/cocoapods/p/Volumizer.svg?style=flat)](https://github.com/fxwx23/Volumizer)
[![Language](https://img.shields.io/badge/language-swift-orange.svg?style=flat)](https://developer.apple.com/swift)
[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/Volumizer.svg)](https://cocoapods.org/pods/Volumizer)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/fxwx23/Volumizer/master/license)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)

**Volumizer** replaces the system volume popup with a simple progress bar.

Before | After(No Notch) | After (With Notch)
--- | --- | ---
![good](https://raw.githubusercontent.com/fxwx23/Volumizer/master/Screenshots/before.png) | ![good](https://raw.githubusercontent.com/fxwx23/Volumizer/master/Screenshots/after.png) | ![good](https://raw.githubusercontent.com/fxwx23/Volumizer/master/Screenshots/after_iphonex.png)

### Features

- Swift 5
- Hide the system volume HUD typically displayed on volume button presses
- Show a simple progress bar like Instagram's iOS app does
- Support iPhoneX, XS, XS Max, XR
- Well easy to customize appearance
- Only support `portrait` mode

## Installation

##### [CocoaPods](https://cocoapods.org)
```ruby
platform :ios, '10.0'
use_frameworks!

pod 'Volumizer'
```
##### [Carthage](https://github.com/Carthage/Carthage)
```
github "fxwx23/Volumizer"
```

##### Manually
Drag the `Volumizer` folder into your project and link the `MediaPlayer` and `AVFoundation` frameworks to your project.

## Usage
Use of `Volumizer` is a simple way with one line. Just call `configure()` after set a window at least.

```swift
Volumizer.configure()
```

You can customize the bar's appearance with `VolumizerAppearanceOption`.

```swift
/**
public enum VolumizerAppearanceOption {
   case overlayIsTranslucent(Bool) default is `true`.
   case overlayBackgroundBlurEffectStyle(UIBlurEffectStyle) default is `.extraLight`.
   case overlayBackgroundColor(UIColor) default is `.white`.
   case sliderProgressTintColor(UIColor) default is `.black`.
   case sliderTrackTintColor(UIColor) default is `.lightGray.withAlphaComponent(0.5)`
}
*/

let options: [VolumizerAppearanceOption] = [ .overlayIsTranslucent(true),
                                             .overlayBackgroundBlurEffect( .extraLight),
                                             .overlayBackgroundColor( .white),
                                             .sliderProgressTintColor( .black)]

let volumizer = Volumizer.configure(options)

/// To change options based on view's current appearance, call `change(options:_)` .
volumizer.change(options: otherOptions)
```
If you want to release `volumizer` 's window, please call `resign()`. Once you released, the system volume popup will be shown again.

```swift
volumizer.resign()
```

## WIP
- [ ] support `landscape` mode.
- [ ] support [SPM]().
- [ ] manage window level to be below `UIWindowLevelAlert` .
- [ ] `Objective-C` compatible.

## License
This project is under the MIT license.

gha_language: Swift


text:
# Methods

This Java project which is a module of [PathwayMatcher](https://github.com/PathwayAnalysisPlatform/PathwayMatcher).
It defines the procedures to do proteoform matching, search for pathways and do pathway analysis.

## Proteoform matching

There are a set of rules to decide if a proteoform in the input sample for PathwayMatcher can be
considered the same proteoform in the reference data (Reactome).

PathwayMatcher allows the user to select multiple modes depending on the needs:
* [superset](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#superset): the input proteoform PTMs are superset of the PTMs in the reference proteoform
* [subset](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#subset): the input proteoform PTMs are subset of the PTMs in the reference proteoform
* [one](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#one): the reference proteoform has at least one input PTM; or the reference has no PTMs
* [superset_no_types](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#superset): similar to _superset_ ignoring the modification types
* [subset_no_types](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#subset): : similar to _subset_ ignoring the modification types
* [one_no_types](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#one): similar to _one_ ignoring the modification types
* [strict](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching#strict): the input and reference proteoforms must match exactly in all the attributes.

The [classes](https://github.com/PathwayAnalysisPlatform/Methods/tree/master/src/main/java/no/uib/pap/methods/matching) implementing that functionality are located [here](https://github.com/PathwayAnalysisPlatform/Methods/tree/master/src/main/java/no/uib/pap/methods/matching). For mode details on each of this modes please consult this [wiki](https://github.com/PathwayAnalysisPlatform/PathwayMatcher/wiki/Proteoform-matching) page.

## Pathway search

The [procedure](https://github.com/PathwayAnalysisPlatform/Methods/blob/master/src/main/java/no/uib/pap/methods/search/Search.java) to find the set of pathways, with their respective reactions, that contain as participants at least one of the entities(genes, proteins, proteoforms...) in the input sample.

## Pathway analysis

The java [classes](https://github.com/PathwayAnalysisPlatform/Methods/tree/master/src/main/java/no/uib/pap/methods/analysis/ora) that define methods to decide which pathways are more statistically significant to the sample. The implemented method is Over Representation Analysis<sup>[\[1\]](#references)</sup>, assuming that the input list of entities (genes, proteins,...) are differentially expressed and were selected using a cut off threshold.

This set of classes can be extended to include other methods for pathway analysis
by following a similar structure with the same input and output data structures.

## References

\[1\] [García-Campos, M. A., Espinal-Enríquez, J. & Hernández-Lemus, E. Pathway Analysis: State of the Art. Frontiers in Physiology 6, doi:10.3389/fphys.2015.00383 (2015).](https://www.frontiersin.org/articles/10.3389/fphys.2015.00383/full)

repository: PathwayAnalysisPlatform/Methods

repo_name: PathwayAnalysisPlatform/Methods


text:
Please make sure you have done the following:

- [ ] Created a folder with the name of language you code inside `/Day<n>/` directory (Where n is for nth day)
- [ ] Added your Codes
- [ ] Tested your codes
- [ ] Added credits (author and date) at the top of the code
- [ ] Updated README.md


text:
```toml
[advisory]
id = "RUSTSEC-2021-0078"
package = "hyper"
date = "2021-07-07"
url = "https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c"
keywords = ["parsing", "http"]
aliases = ["CVE-2021-32715", "GHSA-f3pg-qwvg-p99c"]

[versions]
patched = [">= 0.14.10"]
```

# Lenient `hyper` header parsing of `Content-Length` could allow request smuggling

`hyper`'s HTTP header parser accepted, according to RFC 7230, illegal contents inside `Content-Length` headers.
Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.

To be vulnerable, `hyper` must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents
but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.

gha_license_id: NOASSERTION


text:
---
description: This sample demonstrates how to use a WCF proxy to create
  and manipulate evidence locks.
keywords: Component integration
lang: en-US
title: Evidence Lock
---

# Evidence Lock

This sample demonstrates how to use a WCF proxy to create and manipulate
evidence locks.

A WCF proxy used for manipulating evidence locks is included in this
sample. However, it is easy to create one yourself. We did it by using
the svcutil.exe program that comes with Visual Studio. In order to
create your own proxy, you need to open a Visual Studio Command Prompt
and use the following command-line to create the proxy:

~~~ cmd
svcutil http://<host>/ManagementServer/ServerCommandService.svc /namespace:*,EvidenceLock.WcfProxy /targetClientVersion:Version35 /noConfig /out:<destination_dir>\ServerApiSvc.cs
~~~

If you want to create your own proxy, replace \<host\> with the hostname
of the server where the management server is running and
\<destination_dir\> with the destination where the proxy will be placed.
You can also change the namespace, if you wish. There are many other
options to this tool, and you can read more about it at
ServiceModel Metadata Utility Tool (Svcutil.exe).

After the login is successful, the sample will automatically perform
these evidence lock operations:

-   Create first evidence lock
-   Create a second evidence lock
-   Look for evidence locks using MarkedDataSearch
-   Look for the first evidence lock using MarkedDataGet
-   Delete the two newly created evidence locks using MarkedDataDelete

![](evidence_lock.png)

## The sample demonstrates

-   Use of a WCF proxy to create, get and delete evidence locks

## Using

-   Generated Server Command Service proxy

## Environment

-   MIP .NET library

## Visual Studio C\# project

-   [EvidenceLock.csproj](javascript:openLink('..\\\\ComponentSamples\\\\EvidenceLock\\\\EvidenceLock.csproj');)

## Notes

Only XProtect Corporate supports evidence locks.

repository: StudleyKansas/mipsdk-samples-component

repo_name: StudleyKansas/mipsdk-samples-component


text:
# Source Control Buttons for Visual Studio Code

Add additional buttons to the source control panel. See configuration options for full list of available buttons that can be added. Note that only git actions are supported at this time.

![](resources/preview.png)


text:
# External Plugins
This folder is meant to hold the following repositories:
- [Cloudwatch Go Plugin](https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit)
- [Kinesis Streams Go Plugin](https://github.com/aws/amazon-kinesis-streams-for-fluent-bit)
- [Firehose Go Plugin](https://github.com/aws/amazon-kinesis-firehose-for-fluent-bit)

Clone these repositories to the external-plugins folder
```
cd external-plugins
git clone https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit.git
git clone https://github.com/aws/amazon-kinesis-streams-for-fluent-bit.git
git clone https://github.com/aws/amazon-kinesis-firehose-for-fluent-bit.git
```

repository: aws/aws-for-fluent-bit

branch_name: refs/heads/mainline

gha_language: Shell

repo_name: aws/aws-for-fluent-bit


text:
### Description

vtkXMLPUnstructuredGridWriter object writes the PVTK XML UnstructuredGrid file format.

One unstructured grid input can be written into a parallel file format with any number of pieces spread across files.

The standard extension for this writer's file format is "pvtu". This writer uses vtkXMLUnstructuredGridWriter to write the individual piece files.

repository: Kitware/vtk-examples

repo_name: Kitware/vtk-examples


text:
# Streaming download {#concept_84823_zh .concept}

If you have a large object to download or it is time-consuming to download the entire object at a time, you can use streaming download. Streaming download enables you to download part of the object each time until you have downloaded the entire object.

If you do not close OssObject after it is used, connection leaks may occur. Consequently, no connection is available and the program cannot run properly. Run the following code to close OssObject:

```language-java
OSSObject ossObject = ossClient.getObject(bucketName, objectName);
ossObject.close();

```

The following code is used for streaming downloads:

```language-java
// This example uses the endpoint China East 1 (Hangzhou). Specify the actual endpoint based on your requirements.
String endpoint = "http://oss-cn-hangzhou.aliyuncs.com";
// It is highly risky to log on with AccessKey of an Alibaba Cloud account because the account has permissions on all the APIs in OSS. We recommend that you log on as a RAM user to access APIs or perform routine operations and maintenance. To create a RAM account, log on to https://ram.console.aliyun.com.
String accessKeyId = "<yourAccessKeyId>";
String accessKeySecret = "<yourAccessKeySecret>";
String bucketName = "<yourBucketName>";
String objectName = "<yourObjectName>";

// Create an OSSClient instance.
OSSClient ossClient = new OSSClient(endpoint, accessKeyId, accessKeySecret);

// ossObject includes the bucket name, key (object name), object meta (meta information), and InputStream.
OSSObject ossObject = ossClient.getObject(bucketName, objectName);

// Read the object content.
System.out.println("Object content:");
BufferedReader reader = new BufferedReader(new InputStreamReader(ossObject.getObjectContent()));
while (true) {
    String line = reader.readLine();
    if (line == null) break;

    System.out.println("\n" + line);
}
// If you do not close the reader after the data is read, connection leaks may occur. Consequently, no connection is available and the program cannot run properly.
reader.close();

//Close your OSSClient.
ossClient.shutdown();

```

For the complete code of streaming download, see [GitHub](https://github.com/aliyun/aliyun-oss-java-sdk/blob/master/src/samples/SimpleGetObjectSample.java).

repository: Hello-hao/oss

path: /intl.en-US/SDK Reference/Java/Download objects/Streaming download.md

filename: Streaming download.md

repo_name: Hello-hao/oss


text:
# Application Name
Akan Naming application website.
#### Brief description of application
This is a website application which integrates the user's input which is date of birth,Month of birth,Year of birth and the century.The app calculates finds the day of the week using the formula
Day of the week (d) = ( ( (CC/4) -2*CC-1) + ((5*YY/4) ) + ((26*(MM+1)/10)) + DD ) mod 7.
The value acquired is what the system uses  to give you an Akan name from Ghana.
#### List of contributors
Virginiah Periah
github:virginiah@894
## About author
Virginiah periah is a student at moringa school studying Software Engineering.
## BDD
(Behavior Driven Development)
This application uses javascript because the language is very lightweight and makes the calculations fast and interactive.
## Setup/Installation Requirements
The application is simple to use.
Here are instructions
* Enter your date of birth correctly
* Input the month of the birth
* Input the year and the century
* click submit and your "Akan Name" will be shown on the screen.
## Technologies Used
The application uses English Language.
It uses HTML ,css,javascript and bootstrap .
## Support and contact details
For any queries, ideas on improvement,requests for contribution ,feel free to email me on
<EMAIL_ADDRESS>### License
Copyright (c) Virginiah Periah 2019
Licensed under the Apache License, Version 3.0 (the "License");


text:
# PouchContainer Environment Set-Up and Experience

The build and experiences of running PouchContainer environment is based on `macOS High Sierra 10.13.6` as the host and `VirtualBox + Ubuntu16.04 ` as the virtual machine.

### 1. INSTALL VIRTUAL MACHINE

The author's host system is macOS, use Homebrew to install VirtualBox, please refer to Homebrew:
[https://brew.sh/](https://brew.sh/)

```shell
brew cask search virtualbox
```

Run virtualBox
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532345813010-47020fd7-5bd3-4e0c-8342-45a8bb7ea9df.png)

Create a new virtual machine
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532345846188-a4c14f90-f965-434a-8e78-b006c79fa75f.png)

Select the ubuntuPouch.vdi from DingDing group
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532345864538-dd950de1-f859-4f7f-b508-8ed90c7813a6.png)

### 2. RUN VIRTUAL MACHINE

Set up port forwarding in the virtual machine so that the host machine can create ssh conection to the virtual machine
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532345957338-86584231-8425-4c05-816e-11e3a7ec83b5.png)
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532345971592-5cd59593-d240-4e22-95e9-f8347f976bc4.png)

Run the virtual machine. The account is pouch, and the password 123456. Remind to check if the virtual machine instance opens port 22. If it is, then exit instance
and enter the following command line in the host。
```shell
ssh -l pouch -p 1111 <IP_ADDRESS>
```
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532346199103-783b7671-9b6a-490c-8ad8-792774381882.png)
Switch to root
```shell
sudo su root
```

### 3. RUN POUCH

Create pouch instance

```shell

pouch run -t -d busybox sh

```

Maintain the return value for future usage

```shell

pouch exec -it <key> sh

```
Enter into the pouch container
![undefined](https://cdn.nlark.com/lark/0/2018/png/117932/1532346347168-617f5ffe-5e1f-4519-96ae-28fccd05fbf5.png)


text:
Title: Getting started... :  Wheat setup, part 2
Author: Eric Stiles
Date: Apr 3 2013 17:30:00 GMT-0500 (CST)
Categories: node,blog,wheat,ec2,aws
Email<EMAIL_ADDRESS>
In this article I'll run through the setup of this blog on an ec2 instance with a cheap dns entry.

## PaaS

I've seen a number of articles on the use of various PaaS and spent some time, about an hour
each, reviewing them.  Ultimately, for my purposes I just directly provisioned an ec2 micro instance and within about
an hour had it updated and everything installed.  This may not be a fair assessment for other people as I had previously
spent a significant amount of time previously learning how to use the aws cli and had some simple shell scripts for
quickly setting up an instance.

I'm sure the provisioning and setup for some, most or all of the services below is easier than setting an ec2, but once I have a core
image I can use it for future provisioning.  The cost

 - [Cloudfoundry](http://cloudfoundry.com)
 - [Heroku](http://heroku.com)
 - [Nodejitsu](http://nodejitsu.com) - It's important to know that nodejitsu only allows port 80.  Great security,
   but a little lacking in flexibility
 - [Openshift](http://openshift.com)
 - [Vagrant](http://vagrant.com)

To be fair the ec2 instance is a single instance and I didn't attach an EBS to it so that if it crashes I'll will have to manually
intervene, but I can grow this out later.

## Provisioning

This isn't a tutorial on setting up an ec2 as there are excellent tutorials that can walk a user through the
steps far better than I can do here.  At a high level there are two main ways to create an instance

 - AWS UI Interface
 - Command line after installing the ec2 CLI tool set

For a small blog such as this I recommend using a the smallest cheapest instance possible (a micro-instance with 613 MB of memory) on RHEL.
The cheapest option runs about $6.44 a month over 3 years (Totaling $231.76).

A key pair is required to ssh to the server after it is running.  Amazon can create this for you or you can upload one.

## Security Groups

For the security groups open the following ports

 - 22 for SSH
 - 80 for HTTP
 - 443 for HTTPS
 - 7000 for github

Remember to modify the instance iptables configuration (or for the risk-takers disable it :-).  With Amazon's security groups iptables are not a
strict security requirement, but some sort of port forwarding will be needed later.

## Installation

With an ec2 instance a user is starting from scratch.  A complete install of [nodejs] is required.  The following
 command will get that done

    wget http:////nodejs.org/dist/node-latest.tar.gz
    tar -zxvf node-latest.tar.gz
    rm -rf node-latest.tar.gz

Switch to the unzipped node folder and build the software.

    cd node-vX.X.X
    ./configure --prefix=/usr
    make
    make install

After installing nodejs and npm the following modules need to be installed

    npm install wheat
    npm install stack
    npm install creationix

In order to run node as a child process run the following

    npm install forever

## HTTP & HTTPS

As mentioned above I actually setup SSL that forwards to port 80, but as a rule non-root users generated processes
cannot listen on ports less than 1024.  Additionally, as a best practice root users should not start processes (who
wants to accidently delete their OS because the application did something unexpected).

    sudo /usr/bin/node app.js

A work-around is to add a port forwarding rule via `iptables`.  So generally the most I do is to turn off the iptables (after spending an hour trying to figure out why I can't see the server).

Follow the following steps ([Great Gist](https://gist.github.com/kentbrew/776580))

    sudo iptables -t nat -L

**Output:**
>Chain INPUT (policy ACCEPT)
>target prot opt source destination
>
>Chain FORWARD (policy ACCEPT)
>target prot opt source destination
>
>Chain OUTPUT (policy ACCEPT)
>target prot opt source destination

No rules present so now let's add a rule forwarding from external port 80 to internal port 8000.

    sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000

Listed again there is a a new PREROUTING chain:

    sudo iptables -t nat -L

**Output:**
>Chain PREROUTING (policy ACCEPT)
>target prot opt source destination
>
>REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 8000

Check the node server to confirm it is listening on port 8000, but is writing responses to port 80.

## Start Server

The one gap in the overall solution for wheat is the approach for a production release is to use a bare repository.  The
server code must be pushed to the server another way since the bare repository does not contain any files.

Additionally the **server.js** untouched as configured code must exist within the bare git repository as a file.  It makes it easier to go ahead and
keep the **logger.js** and **hook.js** files in the same location.

Following from the reference article [http://blog.davydewaele.be/node-powered-git-blog-with-wheat](http://blog.davydewaele.be/node-powered-git-blog-with-wheat)
use the **forever** module to start a child process for gith and wheat.

The start.sh script below follows the code structure below:

    #!/bin/sh

    SCRIPTPATH="${BASH_SOURCE[0]}"
    SCRIPTDIR="$(cd "$(dirname "${SCRIPTPATH}")" ; pwd)"
    GITREPO="wheat-blog.git"
    BLOGPATH=$SCRIPTDIR/../$GITREPO

    # Invoke the Forever module to start the Github server hook.
    $BLOGPATH/server/node_modules/forever/bin/forever \
    start \
    -al github-servicehook.log \
    -ao github-servicehook-out.log \
    -ae github-servicehook-err.log \
    $BLOGPATH/server/hook.js

    # Invoke the Forever module to start our blog.
    $BLOGPATH/server/node_modules/forever/bin/forever \
    start \
    -al wheat-blog-forever.log \
    -ao wheat-blog-out.log \
    -ae wheat-blog-err.log \
    $BLOGPATH/server/server.js

The stop.sh script is more generic in that it looks for all processes, excluding the grep search that contain ".js".
From there it grabs the PID and kills them, otherwise nothing is done and the user is made aware nothing exits.

    #!/bin/sh

    array=($(ps -ef | grep .[j]s | sed 's/\s\s*/ /g' | cut -d ' ' -f 2 ))
    printf "Stopping javascript processes\n"
    if [ "${#array[@]}" -gt "0" ]; then
      for i in "${array[@]}"
      do
        printf "...killing process("$i")\n"
        kill -9 $i
      done
    else
      printf "...no processes found to kill\n"
    fi

[git]: http://git-scm.com
[haml]: http://haml.info
[node.js]: http://nodejs.org/
[Octopress]: http://octopress.org
[Wheat]: http://github.com/creationix/wheat

repository: ericstiles/wheat-blog

repo_name: ericstiles/wheat-blog