text:
---
title: "Move"
slug: "move"
description: "Manually move your FarmBot \n[Open this panel in the app](https://my.farm.bot/app/designer/controls)"
---

* toc
{:toc}

The controls at the top of the panel allow you to view FarmBot's current position, manually move it in real-time, take photos, and go to home or find home.

![Screen Shot 2020-06-30 at 10.51.06 AM.png](_images/Screen_Shot_2020-06-30_at_10.51.06_AM.png)

# Viewing the current position
The current position of your FarmBot (**MOTOR COORDINATES (MM)**) is shown in the gray fields directly below the **X-AXIS**, **Y-AXIS**, and **Z-AXIS** labels. This information is updated in real-time.

If your FarmBot has encoders (Genesis kits only), you can also view **SCALED ENCODER (MM)** data, as well as **RAW ENCODER DATA** for each axis. Toggle the display of this additional information from the  menu in the top right of the panel.

![Screen Shot 2019-05-06 at 3.20.00 PM.png](_images/Screen_Shot_2019-05-06_at_3.20.00_PM.png)

# Movements
There are three types of movements you can perform in this panel: **relative movements**, **absolute movements**, and **finding home**.

## Relative movements
Move FarmBot a **relative distance** from the current location in any direction by using the     arrow buttons. The default **MOVE AMOUNT** is `100mm`, though you can also select `1`, `10`, `1000`, and `10000mm` amounts.

Depending on your [hardware settings](../settings.md), you may not be able to move to negative coordinates or past the specified axis maximums. When this is true, some arrow buttons may be disabled. In the example below, because FarmBot is at the home position (0, 0, 0), half of the arrow buttons are disabled to allow only movements *away* from the home position and not *through* it.

![Screen Shot 2019-05-06 at 3.29.57 PM.png](_images/Screen_Shot_2019-05-06_at_3.29.57_PM.png)

### Matching the virtual controls to your real-life perspective
Depending on how you usually view your FarmBot, you may need to change which direction each arrow button sends your FarmBot so that the virtual controls match your real-life perspective. For example, if you usually view your FarmBot from the front (looking at the FarmBot logo on the tool head), you would want the  button to send FarmBot in the `negative Y` direction. If you usually view your FarmBot from the side with the electronics box, you would want the  button to send FarmBot in the `negative X` direction.

You can change the direction along each axis that the arrow buttons send your FarmBot by using the Invert Jog Button toggles in the  menu in the top right of the panel. You can also swap the X and Y axis buttons, which will also rotate the map in the farm designer by 90 degrees.

![Screen Shot 2020-06-30 at 11.18.21 AM.png](_images/Screen_Shot_2020-06-30_at_11.18.21_AM.png)

### Sequence based relative movements
You can also perform relative movements from [sequences](../sequences.md) by using the Move Relative command. For more information, see the [move relative command documentation](../sequences/sequence-commands.md#move-relative).

## Absolute movements
Move FarmBot to an **absolute position** by typing in new coordinates to the white input fields for the **X-AXIS**, **Y-AXIS**, and **Z-AXIS** and then pressing GO.

{%
include callout.html
type="info"
title=""
content="FarmBot will operate all axes at once to get to the new position as fast as possible."
%}

![Screen Shot 2019-05-06 at 4.00.10 PM.png](_images/Screen_Shot_2019-05-06_at_4.00.10_PM.png)

If you do not type in a new value for any of the axes, then FarmBot will maintain its current position along that axis and only move the needed axis or axes.

### Sequence based absolute movements
You can also perform absolute movements from [sequences](../sequences.md) by using the Move To command. For more information, see the [move to command documentation](../sequences/sequence-commands.md#move-to).

## Finding home
The  button will instruct FarmBot to **automatically find the home position** for all axes in the order Z, Y, X.

{%
include callout.html
type="info"
title=""
content="FarmBot must have [home-finding hardware](../../FarmBot-OS/arduino-firmware/stall-detection.md) such as encoders, stall-detecting stepper drivers, or limit switches in order to automatically find the home position."
%}

If you do not have home-finding hardware, you can change the behavior of the  button to instead instruct FarmBot to **go to the home position**. This will instruct FarmBot to go to `(0, 0, 0)` as though you had used the move absolute input fields. Change the home button behavior by setting the **PERFORM HOMING (FIND HOME)** setting to OFF in the  menu of the panel. Note that the _go to home_ behavior will move all three axes at once.

### Sequence based homing
You can also perform homing from [sequences](../sequences.md) by using the Find Home command. For more information, see the [find home command documentation](../sequences/sequence-commands.md#find-home).

## Motor position plot
To view a graph of motor positions over time, toggle ON the motor position plot in the  menu of the panel.

![Screen Shot 2020-06-30 at 11.53.25 AM.png](_images/Screen_Shot_2020-06-30_at_11.53.25_AM.png)

# Other controls

## Take photo
The  button will take a photo at FarmBot's current location. Photos can be viewed in the [photos panel](../photos.md).

### Sequence based photo taking
You can also take photos from [sequences](../sequences.md) by using the Take Photo command. For more information, see the [take photo command documentation](../sequences/sequence-commands.md#take-photo).

# What's next?

 * [Peripherals](peripherals.md)


text:
## January 17, 2023

| Name               | affiliation| username         |
| -------------------| -----------| -----------------|
| Jason Weill        | AWS        | @JasonWeill      |
| Matthias Bussonnier| Quansight  | @carreau         |
| Rollin Thomas      | NERSC      | @rcthomas        |
| Jason Grout        | Databricks | @jasongrout      |

- Security email addresses
	-<EMAIL_ADDRESS>— Google Group, limited membership.
	    - This is a limited-membership list, if someone ask to be put on it, we do a cursory check they are a real person and add them it is mostly meant for advance warning we are going to publish a release that fix a CVE and minor sec discussion.
	    - 75 members now
	-<EMAIL_ADDRESS>	    - This is a forward email maintained by XXXX, that only allow up to 10 members, it is meant for security reports.
	- Action items:
		- Formalize policy around who gets on these lists
		- Maybe set up new<EMAIL_ADDRESS>reporting email?
		- widen the<EMAIL_ADDRESS>receivers to spread the load

- Bug bounty recommendation (intigrity, etc)
	- Jupyter as a software may not be a good fit for Intigrity. What Intigrity is offering is that if you have a service you sell with an API, we ask our researchers to pentest your service. If it's software that you install on your machine, it doesn't really fit the Intigriti model, which seems to
	- What services do we actually run?
		- nbviewer - no authentication, purely displays content, so not really applicable
		- binder
	- A difficulty is that some people we are talking with are in the European Union, others are from Intigriti
	- Action item:
		- Jason G to email Intigriti, to confirm whether this is a good fit, based on previous conversations
		- If it is a good fit, Jason G to email SSC to see what subprojects are interested, then forward that on to Intigriti

- Recent reports
	- How do we manage security reports coming in?
	- Several options:
		- Security reports per subproject
		- Security reports in a centralized Project Jupyter repo
		- Security reports in a repo per subproject

repository: jupyter/security

branch_name: refs/heads/main

extension: md

license_type: permissive

repo_name: jupyter/security


text:
# PubSub Redis Driver (PHP)

* * *

## Requirements
- PHP `^8.0`
- [ext-phpredis](https://github.com/phpredis/phpredis) - For Redis extension and `PhpRedisConnector` (__RECOMMENDED__)
- [predis/predis](https://github.com/predis/predis) - For `PredisConnector`

* * *

## Installation

There are two (2) types for Redis client, that needs to install, see [Requirements](#requirements)
- [ext-phpredis](https://github.com/phpredis/phpredis) - PHP Extension for Redis, need to build PHP
- [predis/predis](https://github.com/predis/predis) - Pure PHP client for Redis

As soon you have any of the client, you may:

```sh
composer require sevenlinx/pubsub-redis-php
```

* * *

## Implement your own Redis connector

You may implement your own Redis client decorator, by implementing `\SevenLinX\PubSub\Redis\Contracts\ConnectorContract`

```php
use SevenLinX\PubSub\Redis\Contracts\ConnectorContract;

class MyOwnConnector implements ConectorContract
{
    ...
    public function publish(ChannelContract $channel, MessageContract $message): int
    {
        return $this->client->publish($channel->name(), $message->payload());
    }

    public function subscribe(ChannelContract|array $channels, Closure $handler): void
    {
        $this->client->subscribe($channels->name(), [$handler, 'handle']);
    }
}

// subscribe.php
$driver = new RedisDriver(new MyOwnConnector());
$driver->subscribe(new GenericChannel(), function(GenericPayload $payload, redis) {
    var_dump($payload);
});
```
* * *

## Example

You can check on `examples/` directory

__/!\\ NOTE: This requires an existing redis server /!\\__

* * *

## Testing
```shell
composer run testing
```
* * *
###### Created under [Seven LinX Incorporated](https://sevenlinx.tech)

license: MIT


text:
# ELK
Ansible- ELK Stack

## Application Log file with its location

For ElasticSearch- /opt/elasticsearch/log/current
For Kibana- /opt/kibana/log/current

## Configuration

Currently ElasticSearch and Kibana are hosted in WebServer02 instance and the IP address associated with it is exposed to be accesssible from your workstation.

### Configurable variables for ElasticSearch
elasticsearch_host_address: "<IP_ADDRESS>"
elasticsearch_host_port: "9200"

### Configurable variables for Kibana
kibana_host_address: "<IP_ADDRESS>"
kibana_elasticsearch_url: "http://<IP_ADDRESS>:9200"

## Running elk playbook
Linux/Centos - ELK services monitored by runit
```
- hosts: linux
  roles:
    - {role: runit, become: true, become_method: su, become_user: root}
    - {role: elasticsearch, become: true, become_method: su, become_user: root}
    - {role: kibana, become: true, become_method: su, become_user: root}
```

## Command for setting up ELK
If the above Running ELK Playbook command is added to elk.yml file, use the below command for executing playbook
```
ansible-playbook elk.yml --ask-become-pass
```

To run this ELK Playbook against the virtual instances using a different Login
```
ansible-playbook -i inventories/elk/dev/hosts playbooks/elk.yml --ask-become-pass -e "ansible_ssh_pass=PWD"
```

## Checking the Service status
```
sudo sv status elasticsearch
sudo sv status kibana
sudo sv status logstash
sudo sv status elastalert
```

## Curator
This curator does the cleanup of older indices within Elasticsearch and has been scheduled to run through a cron job.

The cron job file is available in the path- /etc/cron.d/elasticsearch-curator

branch_name: refs/heads/master

gha_language: Shell

gha_license_id: MIT


text:
---
authorName: Robin Gaskell
canDelete: false
contentTrasformed: false
from: Robin Gaskell<EMAIL_ADDRESS>headers.inReplyToHeader: PDcwLjMwZTI2ZGI4LjJjNjNmNGRjQGFvbC5jb20+
headers.messageIdInHeader: PDMuMC4xLjMyLjIwMDMwODEwMTI0MDUzLjAwNmEyMjY0QHBhY2lmaWMubmV0LmF1Pg==
headers.referencesHeader: .nan
layout: email
msgId: 175
msgSnippet: Plu Karo Amika, ... as ... **  I sympatise with Sid, and some time ago,
  for the sake of African Glosa-pe, who asked for some Guidance on sentence construction,
nextInTime: 176
nextInTopic: 0
numMessagesInTopic: 2
postDate: '1060483253'
prevInTime: 174
prevInTopic: 172
profile: bliminus_107_ssaass
replyTo: LIST
senderId: U1bZmlXzd9u9mcBHkKZEvWUkcF0WNMCeI1i4Wx0aS5EkYhw4nAXUW46hfWDSU4WC20zY3Ez0qGpNHGVsOqAvJ-bTEz4nzv_QWEE9NTMDeKl2_Zrcmg
spamInfo.isSpam: false
spamInfo.reason: '0'
systemMessage: false
title: 'Re: [glosalist] roberti5 and captaon bligh'
topicId: 172
userId: 147970330
---

Plu Karo Amika,
At 02:30 PM 8/7/03 EDT, Sid Pidd wrote:
>Roberti was written a few years ago when I was decidedly vague about Glosa
>syntax so there will be plenty of things to criticise - I plead not guilty
as
>grammar was a nasty word in those days.
**  I sympatise with Sid, and some time ago, for the sake of African
Glosa-pe, who asked for some Guidance on sentence construction, I wrote
Seminars #1 & #2.
    In frustration, and with the determination of the loner, who thinks
that if no-one else is going to do it, then, perhaps, I ought to, I
subsequently summarised the rules of Glosa's sentence construction .. as I
observed them .. and wrote a Draft Grammar for Glosa.
    These are all on the  http://www.zeta.org.au/~rgaskell  website.

>Glosa is often difficult to read because
>we have not really grasped the grammar nettle.
**  As with recent discussion of the Passive Voice, those interested in
deriving a "text-book" grammar for Glosa could Net together to produce a
result, which is agreeable to all.  However, there is a serious possibility
of such discussion bogging down in detail; possibly, to keep the two
strands, of practice and theory, separate, an alternative Yahoo List might
be needed.

>when I was looking at episode 2 of Gary's captain bligh, I accidentally
>pfessed "delete" and lost the Glosa. Would Garry repeat it for me?
>sid
>
**  And another sidelight on this loss of information is the simple fact
that the bare-bones, Ron Clark plan for Glosa was as a language without
"redundancy."  Now, as most of us would agree, 'redundancy' is built into
most natural languages; and, if part of an utterance is lost, then, often,
the remainder of the message gives us the full story - because of inbuilt
redundancy.
   Not so in Glosa: obliterate one key word, and you are likely to have to
refer to the utterer to replace the lost information.  This could be seen
as a valid criticism of Glosa, or even as an area for future R&D.
   Example of one case of redundancy in English:-
  A cat.   VS    Many cats.  (Note: the "s" gives 'agreement' in number)

And in Glosa:-
  U feli.        Poli feli.   (No agreement)

Or:
 Uno feli.       Plu poli feli.   UNO = one particular
                                  PLU - agreement with the plurality of POLI

Saluta,

Robin Gaskell

  To help with usage, I use:-
     _GLOSA 6000 - 6000 Greek and Latin Words and Roots_, 1992, Glosa
     Download (144pp) Glosa Internet Dictionary (GID): English - Glosa,
         2000, Glosalist [now updated on Marcel's website]
     Greek dictionary
     Latin Dictionary
     & common sense, inherent language ability, and the idea of Chomsky's
         "Universal Language"

repository: fiasinstitute/glosa

gha_language: HTML

repo_name: fiasinstitute/glosa


text:
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/frjf14/cflashmessage/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/frjf14/cflashmessage/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/frjf14/cflashmessage/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/frjf14/cflashmessage/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/frjf14/cflashmessage/badges/build.png?b=master)](https://scrutinizer-ci.com/g/frjf14/cflashmessage/build-status/master)

Flash messages - Anax MVC
=========================

cflashmessage handles error, success, notice and warning messages, which can be used to give the user feedback.

License
-------

This software is free software and carries a MIT license.

How to use flash messages
-------------------------

Adding it as shared service in the frontcontroller.

`$di->setShared('flashmessage', function() {
    $flashmessage = new \frjf14\FlashMessage\CFlashMessage();
    return $flashmessage;
});`

From the package Copy the css file: frjf14/cflashmessage/src/css/flashmessage.css to the webroot css folder: webroot/css/ then add the css to the frontcontroller `$app->theme->addStylesheet('css/flashmessage.css');` or just link directly to the CSS file within the package `$app->theme->addStylesheet('../vendor/frjf14/cflashmessage/src/css/flashmessage.css');`

Now you can add flash messages as an example error message: `$app->flashmessage->addError('An error message.');` and to display the message use `$app->flashmessage->getFlashMessages();` to retrive the message(s) as html.


text:
## AGC App Linking Xamarin Android Plugin - Demo

##  Introduction

This demo project is an example to demonstrate the features of the AGC App Linking Xamarin Android Plugin.

<img src="../.docs/mainPageAndroid.jpg" width = 40% height = 40% style="margin:1.5em">

## Installation

**Huawei.Agconnect.Applinking** is available on [NuGet](https://www.nuget.org/packages/Huawei.Agconnect.Applinking).

In the Solution Explorer panel, right click on the solution name and select Manage NuGet Packages. Search for [Huawei.Agconnect.Applinking](https://www.nuget.org/packages/Huawei.Agconnect.Applinking) and install the package into your Xamarin.Android projects.

### Enabling App Linking

**Step 1:** Sign in to [AppGallery Connect](https://developer.huawei.com/consumer/en/service/josp/agc/index.html) and select your project from **My Projects**.  Then go to **Grow > App Linking** tab. On the page that is displayed, click Enable now in the upper right corner.

**Step 2:** The App Linking service uses HUAWEI Analytics to automatically collects and analyzes data about users' taps on App Linking. As long as your app integrates HUAWEI Analytics Kit and the App Linking SDK, you can view all relevant analytical data in AppGallery Connect. For details, please refer to [Enabling HUAWEI Analytics](#https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-enabling-0000001050745155).

### Place your agconnect-services.json file inside the project

**Step 1:** Sign in to [AppGallery Connect](https://developer.huawei.com/consumer/en/service/josp/agc/index.html) and select your project from **My Projects**.
Then go to **Project Settings** tab. On the page that is displayed, click `agconnect-services.json` button.

**Step 2:** Once you download your `agconnect-services.json` file, place it under the **Assets** folder of the demo project.

**Step 3:** Package name in the `agconnect-services.json` and the package name in the **AndroidManifest.xml** file should be same

## Configuration

### Android Manifest Merging

In AGConnect Services, we were seeing AndroidManifest.xml files from multiple .aar's which contained ```<application><service android:name><metadata ... /></service></application>``` elements where the service name was the same in different files but each contain their own metadata elements. The ending result is need to be a single service element with all the metadata elements from each aar's manifest file. Otherwise AGConnect Services cannot work properly.

Xamarin.Android includes an option to use the same Android manifest merger tool that Android Studio uses to merge AndroidManifest.xml files.

To enable this for your project, set the $(AndroidManifestMerger) MSBuild property to manifestmerger.jar in the .csproj file:

```xml
<PropertyGroup>
  <AndroidManifestMerger>manifestmerger.jar</AndroidManifestMerger>
</PropertyGroup>
```

So when building your app, the  **AndroidManifestMerger** property  merges all manifest files into a single manifest file that's packaged into your APK.

### Using Deep Link

To use deep links to receive data, you need to add the following configuration to the activity for processing links. Set android:host to the domain name in the deepLink and android:scheme to the custom scheme. When a user taps a link containing this deep link, your app uses this activity to process the link.

```xml
<activity android:name="com.company.app.ACTIVITY_NAME" android:launchMode="singleTask">
 <intent-filter android:autoVerify="true">
   <action android:name="android.intent.action.VIEW" />
   <category android:name="android.intent.category.DEFAULT" />
   <category android:name="android.intent.category.BROWSABLE" />
   <data android:host="<DeepLink_Host>" android:scheme="https" />
   <data android:host="<DeepLink_Host>" android:scheme="http" />
 </intent-filter>
</activity>
```

### Run & debug your application
You can now run your application and it should automatically start up on your mobile device.

## 4. Licensing and Terms
AGC App Linking Xamarin Android Plugin - Demo uses the Apache 2.0 license.

repository: Dmlulutas/agc-demos

repo_name: Dmlulutas/agc-demos


text:
“…Some people might call that noble. Some people call that heroic. But you can call me Benedict. [chuckle] Seriously, though. I’m a big deal." - Benedict

<img src="bb_blog_20150806-pic1.jpg">

It’s a toss-up about what’s more offensive: Benedict’s rocket arsenal and combat prowess…or his ego. The high-flying Hawk-man sure thinks highly of himself – and before you get a chance to question it, he will drop a payload of rockets on your head.

**ARCHETYPE:** Assassin

**WEAPONS:**
- TalonJet: It’s a rocket launcher. That you fire. Do we really need to break this down for you?
 Benedict can go vertical for a birds-eye view of the battlefield or glide in to cover distance in a hurry.

**ABILITIES:**
- Hawkeye: Do some extra damage with your rockets – then lock in on your enemy. For the next three seconds, subsequent rockets home in on your target….so unload as many shots as you can!
- Liftoff: With a strong flap, Benedict can propel himself way above the battle. On one hand, it’s a great strategic advantage. On the other, it’s a great escape plan when Benedict is getting swarmed. Fight or…well…flight.
- Boomsday: Benedict is about to set you up the bomb. A massive player-guided missile that can deliver its heavy-damage payload across the map. Just make sure to hit your target before the missile runs out of fuel.

**BENEDICT’S DEAL:**
Bennedict is a decorated war hero.

He fought bravely to defend his homeworld, Madan, when the Varelsi arrived. As a result of the battle, we was gravely wounded: His left wing was utterly shattered, rendering him incapable of unassisted flight.

Benedict and what remained of his people – called, “Aviants” by those in the Solus system – evacuated as their home star was plunged into darkness.

Since then, Benedict’s been outfitted with an Aviary Exosuit that grants him limited flight capabilities. And he’ll be the first to remind you of how awesome he is in battle. So, yeah, while he is an accomplished solider, he doesn’t have many friends. Or any.

**DEVELOPER NOTES:**
“Benedict's liftoff skill is great for jumping up into the air to get an overhead view of what’s happening throughout the map... and then launch rockets down from above. He's REALLY handy for scouting ahead and communicating back to the rest of the team.” – Steve Gibson, VP of marketing for Gearbox

repository: lowlines/lowlidev-battleborn

repo_name: lowlines/lowlidev-battleborn


text:
---
title: Other API/Classes
redirect_from: "docs/v1.0.0-beta/other-api-classes/"
---

## Changing log colors

The color of log messages (i.e. when running with `--verbose`) can be customized either by passing the following command line options:

```
ember deploy --log-info-color=yellow --log-error-color=green
```

Or by setting the configuration in `.ember-cli`

```javascript
// .ember-cli
{
  "ember-cli-deploy": {
    log-info-color: 'blue',
    log-error-color: 'red'
  }
}
```

Default values are `blue` for log messages and `red` for errors.

repository: ember-cli-deploy/ember-cli-deploy

gha_language: JavaScript

repo_name: ember-cli-deploy/ember-cli-deploy


text:
# DigitalClock
A digital clock to show current time in 12-hour format.

Web technologies: HTML5, CSS3 and Vanilla JavaScript

Click the link in **About** section to use the digital clock

## A sample screenshot of Project
![Screesshot of Default](https://github.com/Dev-Daljeet/DigitalClock/blob/main/screenshots/default.jpg?raw=true)

## Run

### How to use the app:

   This webpage doesn't require any active action from user. However, please enable JavaScript in your browser if it is disabled.

### How to run/download:

1. Clone the project or download the zip file and unzip it
2. Click on index.html and open it with any compatible web browser like Chrome, Edge, Opera or Firefox
3. You will see the web page with time in centre.

## License
MIT License
Copyright (c) 2020 Dev-Daljeet

Refer to **LICENSE** file for full information.

repository: Dev-Daljeet/DigitalClock

repo_name: Dev-Daljeet/DigitalClock


text:
# Quiz: What is JavaScript?

<quiz name="">
    <question>

JavaScript is what kind of language?

        <answer>Typed</answer>
        <answer>Static</answer>
        <answer correct>Dynamic</answer>
        <answer>Processed</answer>
        <explanation>JavaScript does not require variables to be declared with a Data Type, making it a "dynamic" language.</explanation>
    </question>
    <question>

Who wrote the first version of JavaScript?

        <answer correct>Brendan Eich</answer>
        <answer>Katherine Johnson</answer>
        <answer>Jesse James Garrett</answer>
        <answer>Tim Berners-Lee</answer>
        <explanation>Brendan Eich wrote the first version of JavaScript at Netscape.</explanation>
    </question>
    <question>

What programming language(s) can be interpreted directly in the web browser?

        <answer>Python</answer>
        <answer correct>JavaScript</answer>
        <answer>Ruby</answer>
        <answer>Java</answer>
        <explanation>JavaScript does not require variables to be declared with a Data Type, making it a "dynamic" language.</explanation>
    </question>
    <question>

Which of these is a non-browser-based JavaScript engine?

        <answer>CouchDB</answer>
        <answer correct>Node.js</answer>
        <answer>Backbone</answer>
        <answer>React.js</answer>
        <explanation>Node.js is one of the most popular non-browser-based JavaScript engines.</explanation>
    </question>
    <question>

What is the name of the organization that creates the standard upon which JavaScript is based?

        <answer>World Wide Web Consortium</answer>
        <answer correct>Ecma International</answer>
        <answer>Mozilla</answer>
        <answer>Electronic Freedom Foundation</answer>
        <explanation>Ecma International is the organization that creates the standard upon which JavaScript is based.</explanation>
    </question>
    <question>

What is the name of the standard upon which JavaScript is based?

        <answer>Web Script</answer>
        <answer>JavaScript</answer>
        <answer correct>ECMAScript</answer>
        <answer>JScript</answer>
        <explanation>The standard upon which JavaScript is based is ECMAScript.</explanation>
    </question>
    <question multiple>

Which two frameworks are JavaScript application frameworks?

        <answer>Django</answer>
        <answer correct>Meteor.js</answer>
        <answer>Rails</answer>
        <answer correct>Express.js</answer>
        <explanation>Express.js and Meteor.js are both JavaScript application frameworks.</explanation>
    </question>
    <question>

Which of the following is a very popular data visualization library?

        <answer>Pixi.js</answer>
        <answer correct>D3.js</answer>
        <answer>Backbone</answer>
        <answer>CouchDB</answer>
        <explanation>D3.js is a popular data visualization library used on many websites.</explanation>
    </question>
</quiz>

Visit Quiz Online

         The quiz on this page has been removed from your PDF
         or ebook format. You may take the quiz by visiting
         this book online.

repository: shawnr/practical-javascript

gha_language: CSS

repo_name: shawnr/practical-javascript


text:
---
layout: kanji
v4: 2029
v6: 2185
kanji: 箇
keyword: item
elements: item, bamboo, harden, pent in, old, tombstone, gravestone, church, ten, needle, mouth
strokes: 14
image: E7AE87
on-yomi: カ、コ
permalink: /rtk/箇/
prev: 雰
next: 錬
---

1) [fuaburisu] 19-1-2006(195): You've entered in a chinese shop where apparently the only item in sale is old, dusty, hardened bamboo (for construction for example). It looks like these items have been there forever. Asking the clerk if anything else is available, he doesn't understand and instead asks - "Two items? Three items?" (the kanji is a counter for items) - thinking you want to buy something.

3) [joesan] 2-1-2008(23): When I checked the items on the shopping list my wife gave me, I did a double take when i saw hardened bamboo. What the hell kind of item is that and what could she want with it?

4) [dtcamero] 22-9-2010(18): When she saw my BAMBOO HARDEN we became an ITEM.

5) [BooBooQ88] 20-12-2009(9): Bamboo ITEMS will become hard and brittle over time.


text:
---
layout: post
published: true
title: How to Control Your Desires and Live a Life of Self-Control
---

![Illustration by Sílvia Leo Silva on [Behance](https://www.behance.net/leolimao)](https://cdn-images-1.medium.com/max/2800/0*gjAqN-flz8RsWG3v.jpg)*Illustration by Sílvia Leo Silva on [Behance](https://www.behance.net/leolimao)*
### Learn to control the desires that draw the happiness out of you.

> “What is it that draws me, even against my will, into delusion? What is that force?”

…Arjuna desperately asks Krishna in the Bhagavad Gita. That, in fact, is a question that we all would like to know the answer to. After all, we all are good human beings that want to do well for ourselves and others.

Then why is it so that the outcomes don’t match our intention? Why is it that even if we try to succeed, we’re pulled downward by a force? What is that force?

Krishna replies, “It is the power of desire and anger, impelled by rajo guna.” A “guna” means a quality. According to the yogic teachings and that of the Gita, everything in this world is endowered with the presence of the three gunas.

The first is Sattva guna. It’s the quality that leads us to aspire for truth, encourage in our inner search, and moves us closer to inner happiness. The second is Rajo guna, the activating force in our nature. It keeps us restless to always reach someplace. It leads us to focus outward to get the happiness we need — through the mind and the senses. The third is Tamo guna, the downward-pulling energy that darkens our consciousness and hinds us to anger, greed, lust, violence, etc.

In this context, every person has the three Gunas imbibed in their nature. The attitude of the person is determined by which guna has a stronger influence. If the Sattva guna is more active, you’ll be peaceful, calm, and moving happily on the path of Self-realisation. If the Tamo guna is active, you’ll indulge in activities that lower your [consciousness](https://medium.com/mind-cafe/the-answer-to-the-hard-problem-of-consciousness-3c706e1410ce).

Rajo guna further has two aspects — the Sattva-Rajo and the Tamo-Rajo. As the name states, when the Rajo guna creates a desire in a person to aspire for truth and be more Sattvic, it’s the play of the Sattva-Rajo.

However, it can very well lead you in the opposite direction of Tamo-Rajo. This is where the rajo guna creates desires that push you downward and commit deeds that you know you shouldn’t.

Since we’re being pulled by desires all day long, we need to pay attention to how we can effectively control them. The price of poor desire management can be enormous. Public health [statistics](https://galileo.seas.harvard.edu/images/material/2800/1140/McGinnis_ActualCausesofDeathintheUnitedStates.pdf) show that 40 percent of deaths in the U.S. each year are associated with unhealthy behaviors, such as unhealthy food, smoking, alcohol, unprotected sex, and illicit drugs.

It’s a moment-to-moment conflict between our higher nature and our lower nature. Between our immediate desires (e.g., tasty food, alcoholic drinks, sexual interactions) and upholding virtue through self-control (e.g., maintaining one’s weight, not driving drunk, staying faithful).

## How Do Desires Emerge?

Scientifically speaking, desires emerge in a relatively automatic manner. The brain’s reward systems evaluate external stimuli against the background of internal need states (e.g., hunger, craving, or feeling lonely) and an individual’s learning history.

 Consequently, you felt better. Whether it was the taste itself or the sugar rush it gave you, doesn’t matter. The desire has been planted.

 The more you repeat this, the harder it becomes to break the loop. Also, the more automatic your desire becomes. The time between feeling sad and reaching out for chocolate will keep on decreasing.

If the desire is strong enough, it can play havoc on your mind. Tell me if this sounds familiar — “*I’ve not had a dessert in a long time. This is the last one I allow myself to have, before I start my diet.”* In this case, the desire for the chocolate was so strong that all the other goals went for a toss.

The ability to resist desires simply depends on two things — **the strength of the desire and the strength of your self-control**. Both these variables are different for everyone. Empirically, the stronger the desire gets, the stronger your self-control and willpower should be to overcome it. (Yes, there are ways to hack willpower, but a baseline level of self-control is required in any case).

That said, the question is how can we tackle these desires to ensure that we move in the right direction? Here are a few ways that can help.

## The Number One Willpower Hack of All Time

“Out of sight, out of mind” is the rule I follow religiously whenever I set to eradicate a bad habit from my life. Most desires emerge from our environment and visual cues.

So the goal is simple — **do everything to limit your exposure to temptations. **Avoid it like a plague and don’t touch it even with a ten-foot pole. This strategy works brilliantly for tons of scenarios.

Let me take a personal example. I don’t watch TV a lot. I may watch it once a day while having lunch. But the problem, as you know, is it can quickly turn into 30 minutes or even an hour if I’m seeing something exciting. Now, **if I hire you as a personal habit coach, what would you do?** Think hard before you read on.

Done brainstorming? Great. Here’s what I’d do:

* Forget all Wi-Fi connections in my TV so I’d have to connect to them again.

* Take the cells out of the remote. Keep the cells and the remote at two different places.

* Mount the TV off or keep it in some other room.

* Give the remote to someone in my family who’s headed out for the day.

* Cancel my OTT subscriptions to Amazon Prime, Netflix, Sony Liv (in India), etc.

* Block the same websites on my laptop using [Cold Turkey Blocker](https://getcoldturkey.com/)

After implementing some or all of these, I’d replace that with a podcast, audiobook, informational videos, or just have my lunch in peace while I savor every bite like it’s the last one.

If you’re struggling with a bad habit of having sweetmeats, throw them out of the house. Don’t linger over cooking channels and/or watch others eat them! Maybe unsubscribe from all the dessert-related Instagram profiles and YouTube channels.

All this might seem a little extreme. But what can I say? Desires often crop up without us knowing. By the time they surface in our working memory or our conscious mind, they’ve gained substantial strength.

You may say, “There’s no harm in thinking!” but there’s every harm. The thought is how everything in the Universe begins. Today you think about it. Tomorrow you’ll think about how. And the day after the deed will be done! Beware.

## Look Out for the ‘Rebound Effect’

Often when faced with desires, we try to suppress them or the thought that leads us to it. It’s the act of trying to force the unwanted information out of your awareness. By doing this, however, **you’re only giving that thought more energy, even if it’s in the form of denial**. It’s like sinking a cork in water — the issue won’t go away.

In a classic [experiment](https://www.apa.org/monitor/2011/10/unwanted-thoughts), when the subjects were asked not to think about a white bear for a few minutes, they failed to suppress their thought about a white bear. The white bear doesn’t go away. It keeps intruding into your thought, a phenomenon the researchers referred to as a **rebound effect**.

Or you can simply understand this by the age-old adage — “**what you resist not only persists but will grow in size.**” The more you think about not having the cookie, the more you’d want to have it.

**The solution is to accept**. Cravings and temptations are just temporary states of mind. Accepting, insteaad of suppressing them helps you detach from the desire.

 I don’t have to act on it.” Naturally, your mind will find something else to think about if you don’t cling to the thought of the cookie by suppressing it.

## Conscious Redirection

Just as the name suggests, as soon as you become aware of an unwanted desire, direct your attention somewhere else. If you want to eat the cookie, listen to some music instead. Call up a friend. Talk to someone. Watch a movie. Whatever it is that you do, try to distract yourself from that thought. Be conscious of not suppressing it though. Accept it, and then turn away.

## Cognitive Reframing

The reason a temptation seems tempting is your reaction to it. The cookie may make a person vomit. But you like it because you think it will give you satisfaction.

Since this attraction is the deed of your mind, you can engage in an **abstract de-valuation of the temptation**. For instance, in [*On Desire: Why We Want What We Want](https://www.amazon.com/Desire-Why-We-Want-What/dp/0195327071/)*, William Irvine (2006) relates advice provided by a Buddhist monk on how to deal with tantalizing sexual desire by thinking about the human body in less favorable terms: “Don’t think about her full breasts and flaxen hair; think instead about her lungs,… phlegm, pus, spittle.” (p187).

Consider what Marcus Aurelius has to [say](https://www.goodreads.com/quotes/8395175-how-good-it-is-when-you-have-roast-meat-or) on the same lines:
> “And in sexual intercourse that it is no more than the friction of a membrane and a spurt of mucus ejected. **How good these perceptions are at getting to the heart of the real thing and penetrating through it, so you can see it for what it is!**
> “This should be your practice throughout all your life: when things have such a plausible appearance, **show them naked, see their shoddiness, strip away their own boastful account of themselves**.
> “Vanity is the greatest seducer of reason: when you are most convinced that your work is important, that is when you are most under its spell.”

You can similarly focus on the negative side of eating the cookie — consuming too many calories, not reaching your fitness goal, being shamed by others, letting yourself down in your own eyes, etc. You can exaggerate it as much as you like for the act of liking or disliking both exist in our minds alone.

Cognitive reframing is an indispensable tool to disarm the temptation of its enticing benefits.

## Watch Your Thoughts

Desires, as I said, emerge secretly. You don’t know when they plant a seed in your subconscious mind.  This is the best time to counter the desire.

When the desire for breaking your diet emerges, tell yourself — “The dessert tastes good, but I have different goals that I’m aspiring towards. I’d rather be healthy than giving in to momentary pleasure.” Kill the desire as close to its roots as possible

The only challenge with this exercise is the awareness and mindfulness it requires. Don’t fret, this can also be cultivated with a regular practice of meditation and other mindful exercises like [mindful eating](https://medium.com/the-ascent/mindful-eating-101-the-complete-beginners-guide-fc85ec8d5afe), walking, and so on.

## Simplify Your Life

Desires for name, fame, power, money, material possessions are just a few that tempt all of us into misery. To reduce the overall number of desires in your life, simplify.

The process of simplification, for me, is an affirmation that I don’t need the “unnecessary necessities” to live a happy life. I don’t need a car to impress others, the shiny shoes that attract attention, or the best hair product that makes my hair glow.

When you start to live a simple life, you get clear on what you want from life. You can finally make time to focus on the Sattva-Rajasic desires that help you [grow as a human being](https://medium.com/the-ascent/why-minimalism-makes-people-happy-and-grows-exponentially-81ca808a944).

## Train Your Concentration

Half the trouble with desires is caused by [constant mind-wandering](https://medium.com/the-ascent/harvard-psychologists-tell-us-how-were-killing-our-happiness-94e0e478eea2). To stop this, we’ve to learn to train the mind to concentrate fully on what we’re doing on a moment-to-moment basis.

Instead of thinking about having the left-over cake in your refrigerator, focus on writing that draft, finishing that presentation, or finalizing that design.

The more you can train your concentration, the easier it becomes to tackle desires. For concentration is nothing but being able to focus on something one-pointedly. Once you have the ability to do that, you can do wonders in a world of distracted zombies (let’s be honest!)

## Raise Your Consciousness
> He who forsakes desires for lesser enjoyments, unattached to sense objects, devoid of the consciousness of ‘me and mine,’ receives the lasting joy of God-peace
> — Krishna, Bhagvad Gita

Raising your consciousness is the surest way to eliminate desires. Desires keep our energy focused on delusion. By desiring something we say, “I’ll be happy when I have X.” Well if you’re not happy in the process, how are you going to get whatever you want? And even when you get there, you’ll find that the happiness gained is transient.

Then you’ll have another desire. This cycle continues for lifetimes until we consciously break it. When you [raise your consciousness](https://medium.com/the-ascent/how-to-raise-your-consciousness-with-the-spiritual-eye-e1588b5ac0cf) and find happiness *within*, you’re less and less affected by the outcome of what happens *without*. Your desires reduce.

You may still have preferences. But you stop placing conditions on your happiness. Unplugging yourself from those desires is what true freedom is about.

## Final Thoughts

Controlling desires is a practice of a lifetime. You can’t expect to get good at it instantly. Even though you’ll be able to have fewer desires, they will emerge endlessly.

You have to constantly be on the lookout. Don’t merely think that controlling a few desires here and there makes you a master of self-control. Attack them from all directions — meditation, concentration, change in environment, etc — and you’ll surely find success.

Here are all the different ways you can use to control your desires:

1. **Change your environment to prevent relapse**. Remember — “Out of sight, out of mind”

1. **Accept the temptations, don’t resist them**, for they’d only rebound to come back stronger

1. **Consciously redirect your attention** to something else

1. Strip the desire off of its attraction by **cognitive reframing**

1. Start the practice of **watching your thoughts** and kill desires when they arise

1. **Simplify your life** to avoid developing new, useless desires for material objects

1. **Train your concentration **to focus one-pointedly on anything you’re doing

1. **Raise your consciousness** to find happiness within therefore making desires less enticing

I’ll end with a quote by [Swami Sri Yukteswar](https://en.wikipedia.org/wiki/Swami_Sri_Yukteswar_Giri) in [Autobiography of a Yogi](https://www.goodreads.com/book/show/639864.Autobiography_of_a_Yogi):
> “The forceful activating impulse of wrong desire is the greatest enemy of the happiness of man. Roam in the world as a lion of self-control, see that the frogs of weakness don’t kick you around.”


text:
# Maps JS API with deck.gl Example App

This example app shows how you can use the Maps Javascript API with the [Deck.gl](https://deck.gl) OSS framework to render high-quality 3D data visualizations on top of Google Maps.

## Running the demo

To see the demo running live, go to https://goo.gle/deckgl-demos. Please be patient while the data loads for each layers. In some cases, hundreds of thousands of data points are being fetched over http.

To run it on localhost, do the following:

1. Download the repo.

2. Set your [API key](https://developers.google.com/maps/documentation/javascript/get-api-key) in a `GoogleMapsAPIKey` environment variable or at the top of `app.js` in the `GOOGLE_MAPS_API_KEY` constant.

3. Run `npm install` to download dependencies.

4. Run `npm start`.

Your browser will open to `http://localhost:8080`.

### The demo won't run!

Make sure that your API key is valid and doesn't have any restrictions that would prevent it making calls to the Maps JS API, Directions API, or Places API on localhost.

Also, the URIs for some of the city open data sources sometimes change. We try to keep them updated but if you find them out of date a quick search of one of the datasources below can get you an updated URI to plug into the demo.

## Project structure

There are three main pieces to this project, all located in `/src`:

- The `/example-layers` directory is where all the different layer types and their accompanying logic are defined. Each layer is handled in the correspondingly named directory.

- `GoogleMapsWithDeckGL.js` is where the logic for instantiating the Google base map and applying the deck.gl overlay to it happens.

- `app.js` supplies the logic for the UI of the example app.

Primarily what you'll want to look at is `/example-layers` and `GoogleMapsWithDeckGL`, which are the pieces that show how deck.gl support works with the Maps JS API.

## Documentation & resources

- [This example app running live](https://goo.gle/deckgl-demos)
- [Google Maps JS API docs](https://developers.google.com/maps/documentation/javascript/)
- [`GoogleMapsOverlay` deck.gl submodule docs](https://deck.gl/#/documentation/submodule-api-reference/deckgl-google-maps/overview)
- [deck.gl docs](https://deck.gl/#/documentation/overview/introduction)

## Datasources

This demo uses a mix of open data from different cities, and Google Maps Platform APIs

### Open data

- [Chicago Data Portal](https://data.cityofchicago.org/)
- [Los Angeles Open Data](https://data.lacity.org/)
- [NYC Open Data](https://data.cityofnewyork.us/)

### Google Maps Platform

- [Maps JS API directions service](https://developers.google.com/maps/documentation/javascript/directions)
- [Maps JS API Places library](https://developers.google.com/maps/documentation/javascript/places)


text:
collectd-unbound
================

Collectd [Python plugin](http://collectd.org/documentation/manpages/collectd-python.5.shtml) for gathering metrics from [unbound](unbound.net).

This plugin is based heavily on the [Elasticsearch Collectd Python plugin](https://github.com/phobos182/collectd-elasticsearch) written by [phobos182](https://github.com/phobos182).

Install
-------
 1. Place unbound.py in collectd'opt/collectd/lib/collectd/plugins/python (assuming you have collectd installed to /opt/collectd).
 2. Configure the plugin (see below).
 3. Restart collectd.

Configuration
-------------
 * See unbound.conf

Requirements
------------
 * collectd 4.9+

repository: tarnfeld/collectd-unbound

gha_language: Python

repo_name: tarnfeld/collectd-unbound


text:
# Contributing to the Aragon documentation

Would you like to help improve these Aragon developer docs? Awesome! Feel welcome and read the following sections in order to know how to ask questions and how to work on something.

All members of our community are expected to follow our [Code of Conduct](https://wiki.aragon.org/documentation/Code_of_Conduct/). Please make sure you are welcoming and friendly in all of our spaces.

## Ways to contribute

### File an issue
If you see a problem with the docs that should be improved, you can simply report it in our [issue tracker](https://github.com/aragon/hack/issues).  Please take a quick look to see if the issue doesn't already exist before filing yours.

Do your best to include as many details as needed in order for someone else to fix the problem and resolve the issue.

### Fix an issue
You can browse our [issue tracker](https://github.com/aragon/hack/issues) and choose an issue to fix.  Or, if you spot something in the docs that needs fixing, you can go right in and fix it without creating an issue first.  The development process follows one typical of open source contributions. Here's a quick rundown:

1. [Find an issue](https://github.com/aragon/hack/issues) that you are interested in addressing or a feature that you would like to add.
2. Fork the repository to your local GitHub organization. This means that you will have a copy of the repository under ```your-GitHub-username/hack```.
3. Clone the repository to your local machine using ```git clone https://github.com/github-username/hack.git```.  You can follow the instructions in the [readme](https://github.com/aragon/hack/blob/master/readme.md) file to run the docs locally.
4. Create a new branch for your fix using ```git checkout -b branch-name-here```.
5. Make the appropriate changes for the issue you are trying to address or the feature that you want to add.
6. Use ```git add insert-paths-of-changed-files-here``` to add the file contents of the changed files to the "snapshot" git uses to manage the state of the project, also known as the index.
7. Use ```git commit -m "Insert a short message of the changes made here"``` to store the contents of the index with a descriptive message.
8. Push the changes to the remote repository using ```git push origin branch-name-here```.
9. Submit a pull request in github to the upstream repository.
10. Title the pull request with a short description of the changes made and the issue or bug number associated with your change. For example, you can use a title like "Added more log outputting to resolve #4352".
11. In the description of the pull request, explain the changes that you made, any issues you think exist with the pull request you made, and any questions you have for the maintainer. It's OK if your pull request is not perfect (no pull request is). The reviewer will be able to help you fix any problems and improve it!
12. Wait for the pull request to be reviewed by a maintainer.
13. Make changes to the pull request if the maintainer recommends them.
14. Celebrate your success after your pull request is merged!

Besides this method of setting up a local instance of the docs for editing, you can also edit a page directly through your browser.  Start this process by clicking the "EDIT" link in the top-right corner of any page and then clicking the pencil icon in the github copy of the page.

## Documentation guidelines
In our efforts to keep the docs clear and consistent throughout and as useful as possible for people, please make sure any contributions adhere to the following guidelines:

1. Follow [Strunk and White](http://www.jlakes.org/ch/web/The-elements-of-style.pdf) for grammar and punctuation.
2. Don’t include closing “;” at the end of statements in JS code blocks.
3. Use single quotes in JS code blocks.
4. “JS” should be capitalized.
5. Pay attention to the correct naming for parts of the Aragon stack.  For example, it's "aragonOS" not "Aragon OS".

## Getting help
If you need help, please reach out to Aragon core contributors and community members in the [#dev-help channel](https://aragon.chat/channel/dev-help) on the Aragon Chat.  We'd love to hear from you and know what you're working on!

repository: delfipolito/hack

repo_name: delfipolito/hack


text:
# POKT-ROKT

![Rocket](/ROKT2.png)
Format: ![Alt Text](url)

![Rocket](/ROKT1.png)
Format: ![Alt Text](url)

V1.0.1 =Certificate error fixed.

Release notes: POKT-ROKT  Version 1.0

This is the last release of the ROKT in Bash.  All future development will be done in GO.

Cool stuff this release:
1.) A mini-wallet which allows for transfer of funds from the local validator to any address in the external list.  Command = "SEN"
2.) SSH connect from inside the ROKT to any device on the external list. Command = "T##"
3.) Round-trip latency report between local validator and 0001 & 0021 data sources. Command = "DIR"
4.) Show expiry date of security certificate of local node.  Command = "CER"

Other semi-cool.

1.) supress warnings for timed out querys.  Keeps the screen clean.

Enjoy.
Backup your old copy or the validator list before putting this script on top of it.

NOTE: format of external validators has changed slightly, "username" filed added.  Just put "none" or whatever if you don't plan on using the SSH connect feature.

Version 9.C  2020/09/28
- fixed intermittant issue causing external nodes to appear
  unjailed when they were jailed.
- several display field size adjustments
- other minor display fixes

Install instructions:  It is a single bash script with no dependencies.
copy paste the commands below:

cd ~
git clone https://github.com/BenVanGithub/pokt-rokt.git
cd pokt-rokt
chmod 755 ./*.sh
cd ~
cp ~/pokt-rokt/rokt.sh ~
./rokt.sh

repository: BenVanGithub/POKT-ROKT

repo_name: BenVanGithub/POKT-ROKT


text:
# Contributing of website

Thanks for taking the time to join our community and start contributing!

## Quick guide to working with a GitHub repo

Here's a quick guide to a fairly standard GitHub workflow. This section is handy
for people who don't use git or GitHub often, and just need a quick guide to
get going:

1. Fork the kubeEdge/website repo:

    * Go to the [kubeEdge/website repo][kubeedge-website-repo] on GitHub.
    * Click **Fork** to make your own copy of the repo. GitHub creates a copy
      at `https://github.com/<your-github-username>/website`.

2. Open a command window on your local machine.

3. Clone your forked repo, to copy the files down to your local machine.
  This example creates a directory called `kubeedge` and uses SSH cloning to
  download the files:

    ```
    mkdir kubeedge
    cd kubeedge/
    git clone git@github.com:<your-github-username>/kubeedge-website.git
    cd kubeedge-website/
    ```

4. Add the upstream repo as a git remote repo:

    ```
    git remote add upstream https://github.com/kubeedge/website.git
    git remote set-url --push upstream no_push
    ```

5. Check your remotes:

    ```
    git remote -v
    ```

    You should have 2 remote repos:

      -  `origin` - points to your own fork of the repo on gitHub -
         that is, the one you cloned my local repo from.
      -  `upstream` - points to the actual repo on gitHub.

6. Create a branch. In this example, replace `doc-updates` with any branch name
  you like. Choose a branch name that helps you recognise the updates you plan
  to make in that branch:

    ```
    git checkout -b doc-updates
    ```

7. Ensure you are in your target branch.

    ```
    git branch
    ```

    The branch mark with `*` is your branch now.

8. Add and edit the files as you like. The doc pages are in the
  `/kubeedge-website/content/docs/` directory.

9. Run `git status` at any time, to check the status of your local files.
  Git tells you which files need adding or committing to your local repo.

10. Commit your updated files to your local git repo(`-s` flag add the sign-off to the commit message). Example commit:

    ```
    git commit -a -s -m "Fixed some doc errors."
    ```

    Or:

    ```
    git add add-this-doc.md
    git commit -s -m "Added a shiny new doc."
    ```

11. Push from your branch (for example, `doc-updates`) to **the relevant branch
  on your fork on GitHub:**

    ```
    git checkout doc-updates
    git push origin doc-updates
    ```

12. When you're ready to start the review process, create a pull request (PR)
  **in the branch** on **your fork** on the GitHub UI, based on the above push.
  The PR is auto-sent to the upstream repo - that is, the one you forked from.

13. If you need to make changes to the files in your PR, continue making them
  locally in the same branch, then push them again in the same way. GitHub
  automatically sends them through to the same PR on the upstream repo!

14. **Hint:** If you're authenticating to GitHub via SSH, use `ssh-add` to add
  your SSH key passphrase to the managing agent, so that you don't have to
  keep authenticating to GitHub. You need to do this again after every reboot.

Please remember read and observe the [Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). and
the [Contributor Guide](docs.kubeedge.io/en/latest/contributing/contribute.html) on website provides more detailed instructions on how to get your ideas and bug fixes seen and accepted.

[kubeEdge-website-repo]: https://github.com/kubeedge/website

repository: kubeedge/website

gha_language: MDX

repo_name: kubeedge/website


text:
# Work in Progress
## Angular2 Reactive Starter [![Join the chat at https://gitter.im/angular-class/angular2-reactive-starter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-class/angular2-reactive-starter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### Todo
* everything

# Starter Kit Support and Questions
> Contact us anytime for anything about this repo

* [Gitter: angular-class/angular2-reactive-starter](https://gitter.im/angular-class/angular2-reactive-starter)
* [Twitter: @AngularClass](https://twitter.com/AngularClass)

___

enjoy -- **AngularClass**

[![AngularClass](https://angularclass.com/images/ng-crown.svg  "Angular Class")](https://angularclass.com)
##[AngularClass](https://angularclass.com)
> Learn Angular in 2 days from the best


text:
## Download unitypackage
[SpriteGlow.unitypackage](https://github.com/Elringus/SpriteGlow/releases/download/v2.2a-release/SpriteGlow.unitypackage)

## Description
The glow effect is achieved using sprite outline in HDR colors (applied via shader) and bloom post-processing.

![Glow Intensity](https://i.gyazo.com/698f7d444d334b41657f056fb1ac94c7.gif)
![Glow Color](https://i.gyazo.com/c8f8ec8a276aa4781b52732c521691db.gif)

For the bloom effect [KinoBloom](https://github.com/keijiro/KinoBloom) is used. You can replace it with similar 3rd-party solutions.

Master branch aims to be on par with the latest Unity version. See [releases](https://github.com/Elringus/SpriteGlow/releases) for previous versions support.

Character sprite by [Mikhail Pigichka](https://www.facebook.com/hundewache).

## FAQ

### Why the glow doesn't appear?
Make sure:

* HDR is enabled for target platform and tier (Edit > Project Settings > Graphics):

![](https://i.gyazo.com/3523e3174080dce3347874e59539e58c.png)

* Camera 'Allow HDR' is enabled:

![](https://i.gyazo.com/e5f67d94e6ed1e5e3652d6ee52668b85.png)

* You've set 'Glow Brightness' high enough:

![](https://i.gyazo.com/94fe6e143e310a526b3428c6c62b45bf.png)

### Why the glow appears on the whole image?
Make sure 'Threshold' value of the bloom image effect is set high enough. It's usually 1 to 1.5, depending on the bloom solution.

![](https://i.gyazo.com/bd3961f0efbceddca9c4a077d7b9a6d4.png)

### Why I get a NullReferenceException in build?
Most likely the outline shader is not included to the build (it happens when none of the included assets reference SpriteGlow component directly). You can force-include the shader by assigning it to the "Always Included Shaders" in Edit -> Project Settings -> Graphics.

### It's still not working
Please check the active [issues](https://github.com/Elringus/SpriteGlow/issues).

repository: kultie/UnityGames

repo_name: kultie/UnityGames


text:
---
layout: post
title:  "Passed the 700 tests mark"
date:   2013-10-14 13:46:07
tags: [jbj, State]
category: jbj
---

jbj has eventually passed the "700 successful testcases" marks.

Though, this is mostly due to the fact that it now also incorporates the testsuite of the Zend-Engine itself, which increased the overall number of "tests to be transfered" by a significant amount. Apart from the obvious reason "most tests is always better", it primarily stared because the PHP core tests do not cover some features of the more modern PHP interpreter.

A short summary of the overall state can now be found [here]({{ BASE_PATH }}/projects/jbj.html).

The good news is, that jbj now supports heredoc, nowdoc, namespaces and closures. Even crazy stuff like this is working as intended:

{% highlight php %}
<?php

$a = function(&$a) { $a = 1; };

$a($a);

?>
{% endhighlight %}

... I really like this little one.

BTW: The intended behavior is to throw a fatal error ... obviously ... right?


text:
# Steganography

Here you can find useful references about steganography.

1. [Steganography: Hiding an image inside another](https://towardsdatascience.com/steganography-hiding-an-image-inside-another-77ca66b2acb1)

repository: hqxsn/Awesome-Bookmarks-From-Globe

repo_name: hqxsn/Awesome-Bookmarks-From-Globe


text:
[![Travis CI](https://travis-ci.org/fizmo/ember-cli-emblem.svg?branch=master)](https://travis-ci.org/fizmo/ember-cli-emblem)
[![Dependencies Status](https://david-dm.org/fizmo/ember-cli-emblem/status.svg)](https://david-dm.org/fizmo/ember-cli-emblem)
[![devDependencies Status](https://david-dm.org/fizmo/ember-cli-emblem/dev-status.svg)](https://david-dm.org/fizmo/ember-cli-emblem?type=dev)

# Ember-cli-emblem

This is an ember-cli add-on that brings support for
[Emblem.js](http://emblemjs.com) templates.

This printer is based on version 0.9.1+ of Emblem. It compiles `.embl`,
`.emblem` and `.em` templates into Handlebars-syntax templates which
will then be compiled as standard `.hbs` templates by ember-cli.

## Compatibility

This add-on is currently tested with Ember 2.8 LTS, 2.12 LTS, as well
as the current release, beta, and canary profiles. The replacement
generators for component, route, and template are tested against
Node 4.x, 6.x, and 8.x.

## Installation

If you are using the `broccoli-emblem-compiler` it should be removed
before using this add-on: `npm uninstall --save-dev broccoli-emblem-compiler`.

* `ember install @fizmo/ember-cli-emblem`

## Blueprints

ember-cli-emblem supports blueprint generation for routes, components,
and templates. Use the `ember generate` command to add new Emblem templates.

## Options

ember-cli-emblem exposes a few instrumentation options for Emblem:

  - `blueprints: false` if true, will disable blueprint generation.  (default: false);
  - `quiet: false` if true, will quiet Emblem's deprecation notices.  (default: false)
  - `debugging: false`  if true, will output the handlebars output of Emblem to STDOUT. (default: false)

Simply add these to your `config/environment.js`:

```
ENV.emblemOptions {
  blueprints: false
}
```

repository: fizmo/ember-cli-emblem

repo_name: fizmo/ember-cli-emblem


text:
# Online shoppers purchasing intention prediction

An analysis of a shoppers purchasing intention dataset. Contains a Python Notebook with visualizations, data pre-processing and machine/deep learning models for supervised learning. A model is then exported to a Django application to be used with a REST API. Requests can be made with cURL or every request senders to make predictions on a new observation on his intention to purchase or not.

## Context

ESILV Project - Python for data analysis course 2020

TU Klarissa, THIOL Antoine

[Github](https://github.com/klarissa3)

## Dataset description

The dataset used is the "Online Shoppers Purchasing Intention Dataset".

It's a dataset regrouping online sessions and for each one, whether or not it ended with shopping. Of the 12,330 sessions in the dataset, 84.5% (10,422) were negative class samples that did not end with shopping, and the rest (1908) were positive class samples ending with shopping.

The dataset consists of 10 numerical and 8 categorical attributes.
The 'Revenue' attribute is a boolean feature indicating if the session ended with shopping or not.

[Dataset Link](https://archive.ics.uci.edu/ml/datasets/Online+Shoppers+Purchasing+Intention+Dataset#)

Citations: Sakar, C.O., Polat, S.O., Katircioglu, M. et al. Neural Comput & Applic (2018)

## Data analysis

### Study objectives

Our objective is, for a given observation, to be able to predict whether or not the session will end with shopping. As the target is a boolean variable, it's a binary classification problem. Using the multiple features of a session, we will implement data-driven models to predict the shopper intention.

### Data-driven models

For this dataset, we used and studied multiple machine/deep learning models. We showed an evolution of our models, the advantages and disadvantages and we compared them.
The three models used are:
- a Decision Tree
- a Multi-layer Perceptron
- a Random Forest Classifier

## Django application and REST API

The Django application allows to use the exported model with a REST API. We can store session information, display, modify or delete them. We can also predict the "Revenue" class of our dataset which will tell us if, given the session information, the user will purchase or not.

### Technologies

- Python 3.8
- Django, Jupyter Notebook
- pandas, numpy, scikit-learn, keras, matplotlib, seaborn, joblib

### User installation

First, we have to start the Django Web application.

```sh
❯ cd /path/to/project/apirest
❯ python manage.py runserver
```

### REST endpoints

#### `GET /shoppers/`

Fetch the database population.

```sh
❯ curl localhost:8000/shoppers/
```
![movies](./img/get_shopperss.PNG)

#### `POST /shoppers/`

Save a new shopper in the database.

```sh
> curl -X POST -H "Content-Type: application/json" localhost:8000/shoppers/ -d
"{\"Administrative\":0,
  \"Administrative_Duration\":0.0,
  \"Informational\":0,
  \"Informational_Duration\":0.0,
  \"ProductRelated\":1,
  \"ProductRelated_Duration\":0.0,
  \"BounceRates\":0.2,
  \"ExitRates\":0.2,
  \"PageValues\":0.0,
  \"SpecialDay\":0.0,
  \"Month\":\"Feb\",
  \"OperatingSystems\":1,
  \"Browser\":1,
  \"Region\":1,
  \"TrafficType\":1,
  \"VisitorType\":\"Returning_Visitor\",
  \"Weekend\":false,
  \"Revenue\":null}"
```

#### `GET /shopper/:id`

Fetch a specific shopper.

```sh
❯ curl -H "Accept: application/json" localhost:8000/shopper/1/
{
  "Administrative":0,
  "Administrative_Duration":0.0,
  "Informational":0,
  "Informational_Duration":0.0,
  "ProductRelated":1,
  "ProductRelated_Duration":0.0,
  "BounceRates":0.2,
  "ExitRates":0.2,
  "PageValues":0.0,
  "SpecialDay":0.0,
  "Month":"Feb",
  "OperatingSystems":1,
  "Browser":1,
  "Region":1,
  "TrafficType":1,
  "VisitorType":"Returning_Visitor",
  "Weekend":false,
  "Revenue":null
}
```
#### `PUT /shopper/:id`

Modify a specific shopper.

```sh
> curl -X PUT -H "Content-Type: application/json" localhost:8000/shopper/4/ -d
"{\"Administrative\":123456,
  \"Administrative_Duration\":0.0,
  \"Informational\":0,
  \"Informational_Duration\":0.0,
  \"ProductRelated\":1,
  \"ProductRelated_Duration\":0.0,
  \"BounceRates\":0.2,
  \"ExitRates\":0.2,
  \"PageValues\":0.0,
  \"SpecialDay\":0.0,
  \"Month\":\"Feb\",
  \"OperatingSystems\":1,
  \"Browser\":1,
  \"Region\":1,
  \"TrafficType\":1,
  \"VisitorType\":\"Returning_Visitor\",
  \"Weekend\":false,
  \"Revenue\":null}"
```

#### `DELETE /shopper/:id`

Delete a specific shopper.

```sh
> curl -X DELETE localhost:8000/shopper/4/
```

#### `POST /predict/`

Predict the purchasing intention for a given session.

```sh
> curl -X POST -H "Content-Type: application/json" localhost:8000/predict/ -d
"{\"Administrative\":0,
  \"Administrative_Duration\":0.0,
  \"Informational\":0,
  \"Informational_Duration\":0.0,
  \"ProductRelated\":1,
  \"ProductRelated_Duration\":0.0,
  \"BounceRates\":0.2,
  \"ExitRates\":0.2,
  \"PageValues\":0.0,
  \"SpecialDay\":0.0,
  \"Month\":\"Feb\",
  \"OperatingSystems\":1,
  \"Browser\":1,
  \"Region\":1,
  \"TrafficType\":1,
  \"VisitorType\":\"Returning_Visitor\",
  \"Weekend\":false,
  \"Revenue\":null}"

{
  "Administrative": 123456,
  "Administrative_Duration": 0.0,
  "Informational": 0,
  "Informational_Duration": 0.0,
  "ProductRelated": 1,
  "ProductRelated_Duration": 0.0,
  "BounceRates": 0.2,
  "ExitRates": 0.2,
  "PageValues": 0.0,
  "SpecialDay": 0.0,
  "Month": "Feb",
  "OperatingSystems": 1,
  "Browser": 1,
  "Region": 1,
  "TrafficType": 1,
  "VisitorType": "Returning_Visitor",
  "Weekend": false,
  "Revenue": false
}
```

## License

[MIT](https://choosealicense.com/licenses/mit/)


text:
# gRPC client/server communication tests v.1.0.0

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

=============================

This project shows some gRPC examples.

Summary features
-------

- A simple gRPC client/server communication without authentication.
- A gRPC client/server communication based on TLS authentication mechanism.

Usage
-------

- Define all .proto files in src/main/proto

- Compile .proto files through maven plugins via: `mvn clean install`

- Take compiled .proto files in target/protobuf

License
-------

  Copyright (C) 2019 lucapompei

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

repository: lucapompei/gRPC

repo_name: lucapompei/gRPC


text:
# How to Create or Renew Automatically a Lets Encrypt Certificate and Install it on OpenVPN

The following script will try to create or renew a certificate with Lets Encrypt and install it on OpenVPN.

Must be executed as root.

````
sudo bash renew.sh
````

## Script

**File: renewcert.sh**
```bash
#!/bin/bash
# -----------------------------------------------------------------------------
# -- OpenVPN SSL Certificate Renewal
# --
# --
# -- @author Pablo Viquez<EMAIL_ADDRESS># -----------------------------------------------------------------------------

CUSER=$(whoami)
DOMAIN="domain_here.com"
ADMIN_EMAIL="DevOps Admin Email<EMAIL_ADDRESS>
echo "****************************************************************"
echo "**"
echo "** OpenVPN SSL Certificate Renewal Script"
echo "**"
echo -n "** Executing @ "
date
echo "**"
echo "** Domain to renew: ${DOMAIN}"
echo "** User running script: ${CUSER}"
echo "**"
echo "****************************************************************"
echo ""

if [ ${CUSER} != "root" ]; then
  echo "Error :: Must be executed using root"
  echo "Cannot continue, will not continue"
  exit
fi

echo "Switching directory"
cd /usr/local/openvpn_as/scripts

echo "Stop apache web server"
service apache2 stop

echo "Renewing certificate"
certbot certonly --standalone -n -d ${DOMAIN} --agree-tos --email ${ADMIN_EMAIL}

echo "Restart certificate"
service apache2 restart

echo "Installing certificate"
./sacli --key "cs.cert" --value_file "/etc/letsencrypt/live/${DOMAIN}/cert.pem" ConfigPut
./sacli --key "cs.ca_bundle" --value_file "/etc/letsencrypt/live/${DOMAIN}/chain.pem" ConfigPut
./sacli --key "cs.priv_key" --value_file "/etc/letsencrypt/live/${DOMAIN}/privkey.pem" ConfigPut

echo "Restarting OpenVPN"
./sacli start

```

## Renew and Install Certificate Automatically

If you want to have an automatic schedule to update the cert automatically, you could run a CronJob:

```
# Open VPN Cert Renewal
# Every 1st of Feb/May/Aug/Nov at 15:00
# Min  Hour   Day   Month     DayWeek  Command
0      15     1     2,5,8,11  *        /bin/bash /root/renewcert.sh >> /tmp/cert-renewal.log 2>&1
```

repository: pabloviquez/til

repo_name: pabloviquez/til


text:
# BlockSkillz

## Team Members
- Kelly Domico
- Bryn Lloyd-Davies
- Michael Garcia

## Links
- [Smart Contract](contracts/BlockSkillz.sol)
- [dApp Code](frontend/blockskillz)
- [API Code for Keypair Generator](api/main.py)
- [Demo Notebook](demo.ipynb)

## Description

This dApp lets you track your diplomas, certifications, endorsed skills and work history on the blockchain. Employers and other users can use this dApp to verify your qualifications.

## Objectives

1. Create a smart contract to allow academic institutions to mint certificates/diplomas as NFTs.
2. Add functionality to the contract to expand/limit "owner" institutions that are allowed to mint NFTs.
3. Build a friendly user interface to interact with the smart contracts.
4. Demo the dApp end-to-end using our class as an example.

**Nice to Have**
1. Users can book a 1:1 time slot with other users to get help, to bounce ideas, for mentorship or just to chat.

## Data Sources

- OpenZeppelin

## How It Works

![BlockSkillz flow](images/BlockSkillz_Flow.png)

## Rough Breakdown of Tasks

1. Figure out creating certificates for institutions (i.e. public keys). Look at letsencrypt or self-signed certs. These are the keys that users will use to verify the authenticity of the certificate/diploma.
2. Create a private certificate authority where institutions can generate keys.
3. Draft an outline of features/functions to implement in the smart contract.
4. Create the smart contract.
    a. Add institution to a list of allowable minters.
    b. Add mint NFT functionality.
    c. Additional functions TBD.
5. Deploy the contract to the Ropsten or test network.
6. Create the UI/dApp that will interact with the smart contract.
7. Create a demo for the final presentation.
8. Extra: Figure out how to get transaction history in dApp so users can view their certificates/diplomas and verify authenticity.

repository: meowyen/BlockSkillz

gha_language: TypeScript

repo_name: meowyen/BlockSkillz


text:
# MTProto-storage-fs
Save `telegram-mtproto` session into plain json file

[![npm version][npm-image]][npm-url]

## Installation

```bash
$ npm install --save mtproto-storage-fs
```

[npm-image]: https://badge.fury.io/js/mtproto-storage-fs.svg
[npm-url]: https://www.npmjs.org/package/mtproto-storage-fs

**Authored By [@zerobias]( https://github.com/zerobias )**

**Updated By [@godliked]( https://github.com/godliked )**

repository: godliked/mtproto-storage-fs

repo_name: godliked/mtproto-storage-fs


text:
# httpd-restart-xampp

To sum up:

Restart apache on XAMPP every 30 minutes. Easy utility to free up your server RAM every 30 minutes.

The main idea of this code was a one click solution for those who doesn't want to mess up with tasks and windows schedules.

How to use:

Just drop the EXE to C:/XAMPP/AutoResetHTTPD.EXE and run it as administrator.

repository: LiLPandemio/httpd-restart-xampp

repo_name: LiLPandemio/httpd-restart-xampp


text:
# time

[![codecov](https://codecov.io/gh/SpineEventEngine/time/branch/master/graph/badge.svg)](https://codecov.io/gh/SpineEventEngine/time)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6c8b20d9a39149708b6a607615c8b1be)](https://www.codacy.com/app/SpineEventEngine/time_2?utm_source=github.com&utm_medium=referral&utm_content=SpineEventEngine/time&utm_campaign=Badge_Grade)
[![license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)

Multi-language date/time types and utilities.

repository: codacy-badger/time

repo_name: codacy-badger/time


text:
<!-- README.md is generated from README.Rmd. Please edit that file -->

# xplrrr

<!-- badges: start -->
![Release](https://github.com/UBC-MDS/xplrrr/workflows/R-CMD-check/badge.svg)  [![codecov](https://codecov.io/gh/UBC-MDS/xplrrr/branch/master/graph/badge.svg)](https://codecov.io/gh/UBC-MDS/xplrrr)
<!-- badges: end -->

### Overview

`xplrrr` is an R package to make exploratory data analysis (EDA) simple and seamless. EDA is a crucial phase of the data science workflow as it allows us get a fist glimpse of the data. It is important to identify statistical characteristics of the data so that researchers can properly set up the rest of the analysis. This package will provide the tools required to conduct a thorough EDA.

### Installation:

Once the package is approved and released to CRAN, you will be able to install it like this:
[CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("xplrrr")
```

For now, install the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("UBC-MDS/xplrrr")
```

### Functions:

- `explore_summary` will display a table with basic summary statistics and wholistic information about the data including column names for both categorical and numerical columns.
- `explore_outliers` will provide a thorough method of identifying outliers in the data based on standard deviation.
- `explore_missing` will show exactly where there is missing data and how much data is missing.
- `explore_feature_map` will generate a faceted plot on pairwise feature relationships and correlations as well as individual feature distributions.

### Usage:

This is a basic example which shows you how to solve a common problem:

``` r
library(xplrrr)

explore_summary(airquality)
#>         min. 1st Qu. median 3rd Qu.  max.       mean         var
#> Ozone    1.0   18.00   31.5   63.25 168.0  42.129310 1088.200525
#> Solar.R  7.0  115.75  205.0  258.75 334.0 185.931507 8110.519414
#> Wind     1.7    7.40    9.7   11.50  20.7   9.957516   12.411539
#> Temp    56.0   72.00   79.0   85.00  97.0  77.882353   89.591331
#> Month    5.0    6.00    7.0    8.00   9.0   6.993464    2.006536
#> Day      1.0    8.00   16.0   23.00  31.0  15.803922   78.579721

explore_outliers(airquality)
#>         outlier_count
#> Ozone               6
#> Solar.R             0
#> Wind                5
#> Temp                3
#> Month               0
#> Day                 0

missing <- explore_missing(airquality, type = "location")
head(missing)
#>    Ozone Solar.R Wind Temp Month Day   Index
#> 5     NA      NA 14.3   56     5   5       5
#> 6     28      NA 14.9   66     5   6       6
#> 10    NA     194  8.6   69     5  10      10
#> 11     7      NA  6.9   74     5  11      11
#> 25    NA      66 16.6   57     5  25      25
#> 26    NA     266 14.9   58     5  26      26

explore_missing(airquality, type = "count")
#>         Number.of.missing.values Proportion.of.missing.data
#> Ozone                         37                 0.24183007
#> Solar.R                        7                 0.04575163
#> Wind                           0                 0.00000000
#> Temp                           0                 0.00000000
#> Month                          0                 0.00000000
#> Day                            0                 0.00000000

explore_feature_map(iris)
```
![](/imgs/feature_map.png)

### R Ecosystem

This R package is built using the [`tidyverse`](https://www.tidyverse.org/) ecosystem that will help first time data science users more easily get started with their data projects. A similar package, [`DataExplorer`](https://cran.r-project.org/web/packages/DataExplorer/vignettes/dataexplorer-intro.html) is another EDA tool available. There are not many EDA packages that exist because the `tidyverse` ecosystem allows full control of data wrangling and visualization, however users who are not experts with these packages will find `xplrrr` very useful.

### Dependencies

- [`ggplot2 3.2.1`](https://github.com/tidyverse/ggplot2)
- [`purrr 0.3.3`](https://github.com/tidyverse/purrr)
- [`gridExtra 2.3`](https://github.com/cran/gridExtra)
- [`testthat 2.3.1`](https://github.com/r-lib/testthat)
- [`matrixStats 0.55.0`](https://github.com/HenrikBengtsson/matrixStats)

## Documentation

Please find up-to-date official documentation at [https://ubc-mds.github.io/xplrrr](https://ubc-mds.github.io/xplrrr/index.html)

## Contributions

Contributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given. See [CONTRIBUTING.md](CONTRIBUTING.md) for further details.

### Contributors

Name     | Github ID
------- | -------
Braden Tam   | [bradentam](https://github.com/bradentam)
Furqan Khan  | [fkhan72](https://github.com/fkhan72)
Serhiy Pokrovskyy | [pokrovskyy](https://github.com/pokrovskyy)
Yu Fang | [lori94](https://github.com/lori94)

For the complete list of project contributors, see [CONTRIBUTORS.md](CONTRIBUTORS.md)

repository: UBC-MDS/xplrrr

gha_language: R

gha_license_id: NOASSERTION

repo_name: UBC-MDS/xplrrr


text:
1. I got hooked on [Kakuro](https://steemit.com/kakuro/@billstclair/kakuro).
2. @good-karma's work on [Steem Mobile](https://steemit.com/created/steemmobile) introduced me to the [Ionic app framework](http://ionicframework.com/), which enables easy creation of iOS and Android apps from a single HTML and JavaScript codebase.
3. As I was attempting to go to sleep, it occurred to me that generating a Kakuro board isn't really very hard.
4. I've done a number of other JavaScript projects, so I'm pretty good at it.

![Zen Master](https://billstclair.com/steemit/kakuro-master/ZenMaster-450x635.jpg)

I bought the domain [Kakuro-Master.com](http://Kakuro-Master.com/), created a web site for it on my [Digital Ocean](https://www.digitalocean.com/) machine, and wrote enough code to generate a board and display it in a table. I'm not done with that, but having gotten this far in a few hours of hacking, I'm motivated to keep going.

What I have written so far is live at [Kakuro-Master.com](http://Kakuro-Master.com/). All you can do with it at present is fill in a number from 2 to 9 (the maximum run length) and press the "Generate" button.

[![Kakuro Board](https://billstclair.com/steemit/kakuro-master/kakuro-board.png)](http://Kakuro-Master.com/)

The code is [on GitHub](https://github.com/billstclair/kakuro-master).

Keep your eyes on the [kakuro-master](https://steemit.com/created/kakuro-master) tag for future reports.

Nice to have another personal project. Maybe I'll make some money with this one.

repository: billstclair/billstclair-steemit-blog

repo_name: billstclair/billstclair-steemit-blog


text:
---
layout: post
comments: true
author:
  name: Igor Cicimov
  email<EMAIL_ADDRESS>description: 'Activemq locks with OCFS2'
keywords: 'activemq,ocfs2'
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)'
title: ActiveMQ Master/Slave KahaDB on OCFS2 shared file system
category: Server
tags: [activemq, ocfs2]
---

During my tests of shared storage clusters I wondered if ActiveMQ supports file locking on OCFS2 file system which I used on couple of occasions. While looking into it I came accross the following warning on the [Apache project site](http://activemq.apache.org/shared-file-system-master-slave.html):

> **OCFS2 Warning**
>
> Was testing using OCFS2 and both brokers thought they had the master lock - this is because OCFS2 only supports locking with `fcntl` and not `lockf and flock`, therefore mutex file locking from Java isn't supported.

From [RedHat faq](http://sources.redhat.com/cluster/faq.html#gfs_vs_ocfs2) :

> OCFS2: No cluster-aware flock or POSIX locks
>
> GFS: fully supports Cluster-wide flocks and POSIX locks and is supported.

See this JIRA for more discussion: [AMQ-4378](https://issues.apache.org/jira/browse/AMQ-4378)

And true enough, when tested ActiveMQ-5.11.1 on one of the OCFS2 clusters, what happened is that both servers started as master due to lack of lock file on the share. Investigating further it came up that some good man created a patch that Apache never bothered to apply from some unknown reason. The case link [AMQ-4694](https://issues.apache.org/jira/browse/AMQ-4694). The patch was attached to the ticket so thought I would try it and apply to latest 5.11.4 version.

Downloaded the source:

```
root@drbd01:~# aptitude install zip
root@drbd01:~# wget http://mirror.ventraip.net.au/apache/activemq/5.11.4/activemq-parent-5.11.4-source-release.zip
root@drbd01:~# unzip activemq-parent-5.11.4-source-release.zip
root@drbd01:~# cd activemq-parent-5.11.4/
```
and applied the patch:

```
root@drbd01:~/activemq-parent-5.11.4# vi ocfs2-locks.patch
root@drbd01:~/activemq-parent-5.11.4# patch -p0 -i ocfs2-locks.patch
patching file NOTICE
Hunk #1 succeeded at 45 with fuzz 2 (offset -4 lines).
patching file activemq-broker/pom.xml
patching file activemq-broker/src/main/java/org/apache/activemq/store/AbstractResourceLocker.java
patching file activemq-broker/src/main/java/org/apache/activemq/store/SharedFileLocker.java
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file activemq-broker/src/main/java/org/apache/activemq/store/SharedFileLocker.java.rej
patching file activemq-broker/src/main/java/org/apache/activemq/store/SharedNativeFileLocker.java
patching file activemq-broker/src/main/java/org/apache/activemq/util/LockFile.java
patching file activemq-broker/src/main/java/org/apache/activemq/util/LockResource.java
patching file activemq-broker/src/main/java/org/apache/activemq/util/NativeLockFile.java
patching file activemq-unit-tests/src/test/java/org/apache/activemq/util/NativeLockFileTest.java
patching file assembly/pom.xml
Hunk #1 succeeded at 342 (offset 14 lines).
patching file assembly/src/main/descriptors/common-bin.xml
Hunk #1 succeeded at 191 (offset -9 lines).
patching file pom.xml
Hunk #1 succeeded at 881 with fuzz 1 (offset 44 lines).
```

Ok, so all good except it failed for the SharedFileLocker.java file. Easily fixed by applying that part of the patch manually:

```
root@drbd01:~/activemq-parent-5.11.4# vi activemq-broker/src/main/java/org/apache/activemq/store/SharedFileLocker.java
/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.activemq.store;

import java.io.File;
import org.apache.activemq.util.LockFile;
import org.apache.activemq.util.LockResource;

/**
 * An {@link AbstractResourceLocker} that utilizes a {@link LockFile}.
 *
 * @org.apache.xbean.XBean element="shared-file-locker"
 *
 */
public class SharedFileLocker extends AbstractResourceLocker {

    @Override
    protected LockResource newLockResource(File lockFileName) {
        return new LockFile(lockFileName, true);
    }
}
```

Next installed Maven:

```
root@drbd01:~# wget http://apache.uberglobalmirror.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
root@drbd01:~# tar -xzvf apache-maven-3.3.9-bin.tar.gz
root@drbd01:~# mv apache-maven-3.3.9 /usr/local/
root@drbd01:~# export PATH=/usr/local/apache-maven-3.3.9/bin:$PATH
```

Back to AMQ directory and build the project:

```
root@drbd01:~/activemq-parent-5.11.4# mvn -Dtest=false -DfailIfNoTests=false clean install -e -X
```

Install the built binaries:

```
root@drbd01:~# tar -xzvf /root/.m2/repository/org/apache/activemq/apache-activemq/5.11.4/apache-activemq-5.11.4-bin.tar.gz -C /opt/
```

and copy the setup from the previous AMQ version into the new one:

```
root@drbd01:/opt# cp -a apache-activemq-5.11.1/conf/{log4j.properties,jmx.access,jmx.password,jetty.xml,encompass-activemq.xml,star_encompasshost_com.jks} apache-activemq-5.11.4/conf/
root@drbd01:/opt# chown -R activemq\: apache-activemq-5.11.4
root@drbd01:/opt# rm activemq
root@drbd01:/opt# ln -s apache-activemq-5.11.4 activemq
```

The last bit is modifying the KahaDB locker to use the newly introduced shared-native-file-locker one:

```
root@drbd01:/opt# vi activemq/conf/activemq.xml
[...]
    <persistenceAdapter>
        <kahaDB directory="/share/activemq-data"
               indexCacheSize="40000"
               checkForCorruptJournalFiles="true">
               <locker>
                  <shared-native-file-locker lockAcquireSleepInterval="5000"/>
               </locker>
         </kahaDB>
    </persistenceAdapter>
[...]
```

After copying over the binary tarball to the other server, installing and performing the above steps, I started the server and the lock file was indeed created this time:

```
root@drbd01:/opt# ls -ltr /share/activemq-data/
total 160
drwxr-xr-x 3 activemq activemq     3896 Mar 17 15:27 com.broker.name
-rw-r--r-- 1 root     root            5 Mar 17 15:30 test
-rw-r--r-- 1 activemq activemq        0 Mar 17 18:16 lock
-rw-r--r-- 1 activemq activemq 33030144 Mar 17 18:17 db-1.log
-rw-r--r-- 1 activemq activemq    12304 Mar 17 18:17 db.redo
-rw-r--r-- 1 activemq activemq    12288 Mar 17 18:17 db.data
```

and the other server can see it:

```
root@drbd02:/opt# start activemq && tail -f /opt/activemq/data/activemq.log | grep -i lock
2016-03-18 10:00:15,375 | INFO  | Database /share/activemq-data/lock is locked... waiting 5 seconds for the database to be unlocked. Reason: java.io.IOException: failed to acquire lock: [11] ( | org.apache.activemq.store.SharedNativeFileLocker | main
...
```


text:
---
hrs_structure:
  division: '1'
  volume: '5'
  title: '17'
  chapter: '286'
  section: 286-305
type: hrs_section
tags:
  - Government
menu:
  hrs:
    identifier: HRS_0286-0305
    parent: HRS0286
    name: 286-305 Contents and characteristics; form
weight: 38965
title: Contents and characteristics; form
full_title: 286-305 Contents and characteristics; form
---
**§286-305** **Contents and characteristics; form.** (a) Each identification card issued by the examiner of drivers shall display a distinguishing number assigned to the cardholder, and shall display the following inscription:

"STATE OF HAWAII IDENTIFICATION CARD"

(b) The examiner of drivers, after obtaining the fingerprint of the applicant as provided in this part and after obtaining the information required by or pursuant to this part, shall issue to each applicant an identification card in a form and with identifying information that the director deems necessary and appropriate, including a notation of veteran status, if desired by the applicant, on the front of the card where applicable; provided that such notation shall not include any designation other than the term "veteran". As used in this subsection, "veteran" means any person who served in any of the uniformed services of the United States and was discharged under conditions other than dishonorable.

(c) The identification card shall not display the cardholder's social security number.

(d) The identification card shall be designed to prevent its reproduction or alteration without ready detection.

(e) The identification card for individuals under twenty-one years of age shall have characteristics prescribed by the examiner distinguishing it from that issued to a individual who is twenty-one years of age or older. [L 2012, c 310, pt of §2; am L 2014, c 6, §4]

repository: SamMade/BlueAndKrabby

repo_name: SamMade/BlueAndKrabby


text:
## Web-app generating patent abstract like text using a Recurrent Neural Net (RNN)

### Requirements
* [Flask](http://flask.pocoo.org/)
* [Keras](http://keras.io/)
* TensorFlow
* Numpy
* [wtforms](https://wtforms.readthedocs.io/en/stable/)
* json
* [Jinja](http://jinja.pocoo.org/)

---

### How to run
I assume that you already have Python 3.6+ installed on your machine.<br>
Clone/copy all the files in this folder into a single folder on your computer.

**`$ pip install requirements.txt`**

Then type,

**`$ python keras_server.py`**

After this the server should start and be available at `http://localhost:5000`. Open your browser and go to this address to see the model output.

### Source
["Deploying a Keras Deep Learning Model as a Web Application in Python"](https://towardsdatascience.com/deploying-a-keras-deep-learning-model-as-a-web-application-in-p-fc0f2354a7ff) by [Will Kohersen](https://willk.online/)

repository: swdreams/Machine-Learning-with-Python

repo_name: swdreams/Machine-Learning-with-Python


text:
![Test](https://github.com/HCLonely/auto-task/workflows/Test/badge.svg)
![OSSAR](https://github.com/HCLonely/auto-task/workflows/OSSAR/badge.svg)

Automatically complete giveaway tasks.

[Document](https://auto-task-doc.js.org/)

## Installation

1. Before: Please install [Tampermonkey](https://www.tampermonkey.net/) extension before installing this script
2. Installation: [Test version](https://auto-task-test.hclonely.com/auto-task-test.user.js)  [Official version](https://auto-task.hclonely.com/auto-task.user.js)

PS: New features and new website additions will be tested in the test version first.

## Usage

1. If you are using it for the first time, please set it up first: [Settings page of the test version](https://auto-task-test.hclonely.com/setting.html)  [Settings page of the official version](https://auto-task.hclonely.com/setting.html)
2. Open the corresponding giveaway website. If you see a few more buttons in the upper right corner, you can use it. The function of each button can be set in the setting page of the previous step.

Important:

1. Do not use version 2.0+ and version 3.0+ at the same time
2. The settings of the 2.0+ version and the 3.0+ version are not synchronized, and the 3.0+ version must be set for the first time
3. To implement discord related functions, additional auxiliary scripts need to be installed: [Test version](https://auto-task-test.hclonely.com/auto-task-helper.user.js)  [Official version](https://auto-task.hclonely.com/auto-task-helper.user.js)

## Reference

|  |
| ----- |
| [jQuery](https://github.com/jquery/jquery) |
| [Bootstrap](https://github.com/twbs/bootstrap) |
| [jQuery UI](https://jqueryui.com/) |
| [sweetalert2](https://github.com/sweetalert2/sweetalert2) |
| [overhang](https://github.com/paulkr/overhang.js) |
| [Gulp](https://github.com/gulpjs/gulp) |
| [rollup](https://github.com/rollup/rollup) |
| [babel](https://github.com/babel/babel) |
| [chalk](https://github.com/chalk/chalk) |
| [clean-css](https://github.com/jakubpawlowicz/clean-css) |
| [fs-extra](https://github.com/jprichardson/node-fs-extra) |
| [standard](https://github.com/standard/standard) |
| [keyjokerScript](https://github.com/jiyeme/keyjokerScript) |

## License

[MIT © HCLonely](https://github.com/HCLonely/auto-task/blob/master/LICENSE)

repository: HCLonely/auto-task

repo_name: HCLonely/auto-task


text:
# Lox*
An implementation of the Lox programming language written in modern JavaScript. Unlike most implementations this isn't based on the book "Crafting interpreters" by Bob Nystrum. Instead it is an independent implementation based on the Pratt parser design. Inspiration for this comes from the excellent article "[Pratt Parsers: Expression Parsing Made Easy](http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/)" which is also written by Bob Nystrum.

Behaviour wise it is intended to match the reference implementation. At the moment it is passing nearly the entire test suite, with only minor variance in some of the error messages.

In addition to the standard syntax of Lox I have also implemented the following suggested extensions:
- comma operator
- tail call optimisation
- ternary conditional operator
- function expressions

Intend to implement the following suggested extensions:
- static class methods

Considering a few additional extensions:
- module system
- foreign interface
- collections

repository: shortercode/Lox

repo_name: shortercode/Lox


text:
Graph is a collection of object called as Vertices and together with relationship between them called as Edges.

Each edge in the graph joins two vertices.
Vertices V = {A,B,C, D}
Edges E = {A -> B, A -> D, B -> C, B -> D, C -> D}

Types of Edges:
1. Directed edges : An edge (u,v) is directed if pair (u,v) is ordered,
    with u preceding v.
2. Undirected edges: An edge (u, v) is undirected if pair (u, v ) is not ordered.

3. Weighted edge: Cost associated with each edge.
    Both weighted directed/ undirected graph are possible.

End Vertices: Two vertices joined by an edge.
Adjacent vertices: Two vertices are adjacent if there is an edge between them.
Incident edge: If vertex is one of the end points.
Incoming edge: destination is the vertex
Outgoing Edge origin is the vertex.
self loop : if the two end points are same
Parellel edges: Edge from u -> v and v -> u exists.

Degree of vertex: number of edges to a vertex.
indegree of vertex: number of incoming edges
outdegree : number of outgoing edges.

Sub graph:  Whose vertices and edges are a subset of another graph.

Connected components: Connected sub graphs are known as connected components.
Articulation point: Vertex whose removal results in connected components.
Bi-connected components : components connected by two edges, removing an edge wont lead to seperate components.
Strongly connected graphs : all the vertices are reachable from any vertex.

repository: iamlmn/PyDS

repo_name: iamlmn/PyDS


text:
---
title: Button control in SOLIDWORKS property Manager Page
caption: Button
description: Creating button control in the Property Manager Page using xCAD framework
image: button.png
order: 10
---
![Button control](button.png)

In order to create a button in the property manager page, it is required to declare the property of delegate type [Action](https://docs.microsoft.com/en-us/dotnet/api/system.action?view=netframework-4.8).

The pointer to void function assigned to this property is a handler of the button:

{% code-snippet { file-name: ~PropertyPage\Controls\Button.* } %}

Visit [bitmap button](../bitmap-button#button) for more information of how to create button with image.

repository: xarial/xcad

gha_language: C#

repo_name: xarial/xcad