text:
# Markdown-Table-of-Contents
Python tool to compile hyperlinked Table of Contents into Markdown (GFM) files

![](https://img.shields.io/badge/status-In_Progress-green) ![](https://img.shields.io/github/license/Relex12/Markdown-Table-of-Contents) ![](https://img.shields.io/github/repo-size/Relex12/Markdown-Table-of-Contents) ![](https://img.shields.io/github/languages/top/Relex12/Markdown-Table-of-Contents) ![](https://img.shields.io/github/last-commit/Relex12/Markdown-Table-of-Contents) ![](https://img.shields.io/github/stars/Relex12/Markdown-Table-of-Contents)

Check out on GitHub:

[![Markdown-Table-of-Contents](https://github-readme-stats.vercel.app/api/pin/?username=Relex12&repo=Markdown-Table-of-Contents)](https://github.com/Relex12/Markdown-Table-of-Contents)

[Read in French.](https://relex12.github.io/fr/Markdown-Table-of-Contents)

---

## Summary

* [Markdown-Table-of-Contents](#markdown-table-of-contents)
    * [Summary](#summary)
    * [What is it?](#what-is-it)
    * [How does it work?](#how-does-it-work)
    * [How to use it?](#how-to-use-it)
    * [CLI arguments](#cli-arguments)
    * [Specifications](#specifications)
    * [Missing features](#missing-features)
    * [License](#license)

<!-- table of contents created by Adrian Bonnet, see https://github.com/Relex12/Markdown-Table-of-Contents for more -->

## What is it?

**Haven't you ever been frustrated by not being able to create a dynamic table of contents in Markdown?**

That's what this tool is about. Running **only one command** , your can create an **hyperlinked table of contents** directly in your Markdown file.

## How does it work?

In your Markdown file, write a **table of contents tag** where you want to add the table of contents (TOC), then run Markdown-Table-of-Contents on your file. This will delete the line containing the TOC tag, and insert the generated hyperlinked TOC instead.

A **TOC tag** is a `toc` string, uppercase or lowercase, surrounded by a simple or a double pair of brackets. That means only `[TOC]`, `[[TOC]]`, `[toc]` and `[[toc]]` are valid TOC tags.

This behavior is already used by many Markdown editors (Typora, Markdown Monster) and tools (doctoc), but this one is the first Python small easy-to-use CLI tool adding this feature to Github-Flavored-Markdown.

## How to use it?

**It's a 2 step procedure:**

1. install Markdown-Table-of-Contents by cloning the repo : `git clone https://github.com/Relex12/Markdown-Table-of-Contents.git`
2. run the script on your Markdown file : `python3 toc.py FileName.md` (locations of `toc.py` and your file can be relative to the working directory or absolute)

## CLI arguments

Here is the result of  the `python toc.py -h` command:

```
usage: toc.py [-h] [-o OUTPUT] [--depth {1,2,3,4,5,6}] [--ignore-begin]
              FileName

positional arguments:
  FileName              input Markdown file

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        output file to write in, default overwrites FileName
  --depth {1,2,3,4,5,6}
                        maximum heading depth, default is 6
  --ignore-begin        ignore headings before the TOC tag
```

## Specifications

The TOC tag line **MUST** start with `[TOC]`, `[[TOC]]`, `[toc]` or `[[toc]]`, that means there **MUST NOT** be any white space between the previous end of line and the first bracket `[`.

The entire TOC tag line will be removed, that means every character between the final bracket `]` and the next end of line will be deleted along with the TOC tag.

The TOC tag **MUST** be one of these : `[TOC]`, `[[TOC]]`, `[toc]` or `[[toc]]`. Even if `[TOC]]` and `[toc]]` **MAY** work, they **SHOULD NOT** be used.

If there is more the one TOC tag line in the whole file, only the first one will be replaced by the generated TOC. Every other TOC tag will be ignored, that means it will still be in the output file. If you want to replace each TOC tag, you **SHOULD** run the script several times.

To be interpreted as a heading, a heading line **MUST** contain a white space (at least one white space character) between the sharp(s) and the heading label. However, you **SHOULD NOT** use more than one white space character, every character between the first white space and end of line excluded are used in the link title and the link value (excluding modifications).

The heading value is modified to be correctly interpreted by GitHub as a link-to-paragraph URL: space characters are replaced by dashes `-`, question marks `?` and exclamation marks `!` are removed and not replaced. You **SHOULD NOT** use white space characters different from space characters (such as tabulations) in a heading line. Some special characters such as sharps `#`, ampersands `&` and others **MAY** cause unexpected behaviors once uploaded on GitHub. White space characters (including space characters) right before end of line **MAY** also cause unexpected behaviors. If you find any of these behaviors, please open an issue.

The indentation for the different list levels uses four space characters for each greater indent, starting from 0 space for headings level 1, 4 spaces for headings level 2, up to 24 spaces for headings level 6. After those spaces, there is a single asterisk `*` followed by a single space character and a bracket `[`. Up to the next bracket `]` is the heading line (every character from the heading line between the first white space and end of line excluded). After the bracket, a parenthesis `(` and a sharp `#`, then the modified heading line up to the final parenthesis `)`. As the end of line is removed from heading line, another end of line is added after the final parenthesis.

End of line are expected to be one character long, considered as LF (`\n`). That means only one character is removed at the end of heading lines before it is used as link title and modified as link value. However, it **MAY** work if you use CRLF end of lines. In the same way, only one LF character is inserted at the end of link lines in the generated TOC.

## Missing features

Only "sharps shaped" heading are included in the generated TOC, excluding equals `=`  and dashes `-` underline style and HTML style tag such as `<h1>...</h1>`. The implementation should also consider sharps right before end of line as part of syntax and remove then. Many other specifications are supposed to be respected and are not. See Github-Flavored-Markdown specifications [here](https://github.github.com/gfm).

Also, the exhaustive list of unexpected behaviors due to special characters doesn't exist: if something strange happens, think about special characters in the first place.

## License

The project is a small one. The code is given to the GitHub Community  for free, only under the MIT License, that is not too restrictive.


text:
# Recover data directly to the master instance {#task_yy1_g21_ydb .task}

1.  You can recover data directly to the master instance, and the specified backup data overwrites the data of the master instance, but the data generated after creation of the specified backup data is lost. We recommend that you create a temporary instance for data recovery and migration to guarantee higher security.

    **Note:**

    -   This article is applicable only to MySQL instances. To recover data directly to a SQL server instance, see [Recover data directly to the master instance](intl.en-US/User Guide/Backup and recovery/Recover SQL Server/PPAS/PostgreSQL data/Recover data directly to the master instance.md)
    -   If a read-only instance exists, the specified backup data cannot directly overwrite the original data of the master instance. You can only recover the data through a clone instance. For more information, see [Recover from a clone instance to the master instance](intl.en-US/User Guide/Backup and recovery/Recover MySQL data/Recovering from a clone or temporary instance to a primary instance.md).
2.   Log on to the [RDS console](https://rds.console.aliyun.com/) .
3.   Select the region where the target instance is located.
4.   Click the ID of the target instance to go to the Basic Information page.
5.   Select **Backup and Recovery** in the left-side menu.
6.   Select the **Backup List** tab.
7.   Select the time range and click **Query**.
8.   Find the target backup and click **Restore** in the Action column.
9.   In the displayed dialog box, select **Coverage Restoration** and click **OK**.
10.  Click **OK** again.

license: MIT

url: https://raw.githubusercontent.com/BoobooWei/mysql/ab57fd707a304fef514c395afe35966a34c9b8b9/intl.en-US/User Guide/Backup and recovery/Recover MySQL data/Recover data directly to the master instance.md

repository: BoobooWei/mysql

branch_name: refs/heads/master

extension: md

gha_license_id: MIT

license_type: permissive

repo_name: BoobooWei/mysql


text:
# http
tcp is a basic tcp echo server.

once connected a client will send a message to server.
server simply echoes back the messages it receives.

# server
usage: server port

the server binds to a specified port and will accept client connections.

# client
usage: client hostname port

the client connects to a specified host on a given port and sends a message.

repository: collinsmichael/networking

repo_name: collinsmichael/networking


text:
# SqlServerDataScienceObjects
Data Science functions coded in native SQL Server Objects

We use the tSQLt unit test framework.  The test you  find here expect and need that framework to function.
tSQLt is its own open source project
tSQLt Link:http://tsqlt.org/

repository: sfibich/SqlServerDataScienceObjects

repo_name: sfibich/SqlServerDataScienceObjects


text:
---
layout: post
title:  "It starts from Body - End of Week # 42 and 43"
date:   2019-10-22 19:00:00 +0530
categories: [journey]
image : assets/images/startfrombody.jpg

---

So I didn't write down weekly post for 42. As I mentioned in weekly post for week # 41  I ended up completing chapter of design thinking i.e. Empathy phase from interaction-design.org.

Now the blog is up and running so I thought to recap week # 42 and share whats the plan for week # 43. Week # 42 went fantastic and definetely a great plan is coming up for next month. The best part about current and last week is blogging.  During my writings I discovered that lot of things which I never planned slipped in and I started doing that.  When this realization came this made me focus on things that I planned.

When the month started I had no idea how much capacity I have and how much should I plan.  There were failures and success during monthly planning. For week # 43 I will be entirely focusing on house repair works, drawing and blogging.

One of the areas that I have never talked about in my blog is focussing on Body.  I was overweight for last 3 years and a doctor also advised to cut down by 10 kgs for healthy life.  My last two years at work were so crazy in work that I ended up gaining lot of weight.

Definetely this is the time to beat the devil. I have become a fan of putting up measurable goals and working towards it.  For this month I have achieved 50% of my goal and I feel thats the max I can achieve. I started reading this book.

![FourHourBody Book-TimFerris]({{site.baseurl}}/assets/images/fourhourbody.png)

There were mistakes I made this month however I kept following the plan.  Some of doubts around carbohydrates and cholesterol management got cleared.

The reason why I am saying that its important to focus and start from body is because:

**#1**. When body opens up there new possibilities -  My body was not flexible and I have had hard time cleaning my house.  Which means depending on some one else or may be ending up paying money to get things done.

**#2**. Connection between Body and Mind - There is a connection betwen body and mind that one has to discover themselves.  Once the body is fit it brings lot of positivity and creativity in way one thinks.

**#3**. Start with Body is easy to say and difficult to fulfill - I still remember that when I got out of my job my first focus area was on organizing the house.  I worked hard towards designing house in such a way that daily chores takes less time. Fewer interruptions especially during the morning hours when I am working.  Even though I was playing badminton I didn't pay attention to body in the beginning.  I still remember that I hired couple of nutritionist and ended up firing them.  I guess thats the hardest thing in world, to find someone who can create a diet plan according to your lifestyle.  So I was on a journey towards working on Body but it took me a while to find "4 hour body book".  I dont know if 4 hour hour body book is for everyone but I am getting good results especially from diet.

Once again Diet is one of the areas that I haven't learnt and most of the problem starts from there.  Body comes before work.  The kind of life we live is mostly focused around chasing money.  When one starts living this way, everybody around you will say that make money first than think of something else.  That's a sad reality.  I have reached to a situation that when people around me are saying NO to anything I am doing, for me it translates to I am going in right direction.

Believing in yourself and doing things, and having a mindset of failing and recovering is a skill that one learns from experiences in life.  Not an expert but still learning it.

Lets keep rocking.

repository: sumgup/mysecondlife

repo_name: sumgup/mysecondlife


text:
# cpp-stencil

This project aims to provide efficient and simple to use building blocks for
larger scale scientific computation frameworks. Work in progress.

Main features:

* Supports arbitrarily high dimensions. Most well-known frameworks are built with
physical simulations in mind, so they only support up to 3 dimensional meshes.
Nonetheless, higher dimensional applications exist in the fields of economics and
finance.

* Header-only implementation. This ensures that the compiler is able to inline
pretty much anything it wishes.

* Few external dependencies. The library itself only requires cpp-typelist
(checked in as a git submodule) and a C++11 capable compiler. Catch2 is required
for the unit tests, SDL2 and OpenMP for the demo apps.

## Usage

cpp-stencil is in a pre-alpha stage, but if you want to give it a spin
nonetheless, here's what you need to do.

First, make sure that your compiler can see `src/*.hpp` and
`dep/typelist/typelist.hpp`. The CMake build script is just for the tests and the
demo app, you can ignore it.

Right now, there's only one class of interest in `cpp-stencil`: `buffer`. It
allows you to create and manipulate an N-dimensional mesh. `buffer` takes two
template arguments: the dimensionality of the mesh, and the type of the data
stored therein. The constructor also takes two regular arguments, the size of the
mesh, passed in as an `std::array`, and the size of the halo.

```cpp
// Creates a 400x400 (or 402x402 with halo included) array of doubles
stencil::buffer<2, double> buf({400, 400}, 1);
```

To initialize the buffer, you may want to use `fill`. It sets every cell in the
buffer, halo included, to a particular value. You can also use `fill_halo` to
set the halo cells only.

```cpp
buf.fill(0.0); // set everything to 0
buf.fill_halo(1.0); // set halo to 1
```

You can perform a stencil operation using iterate:

```cpp
buf.iterate<1>([](const std::array<u64, 2>& it,
                  buffer<2, double>::accessor<1>& acc) {
                    acc.get({0, 0}) = some_func(it, acc);
                });
```

There are a couple of things to note here. The template argument of `iterate`
determines the stencil radius. Here, we use 1 which translates to a 3x3 stencil.
I could have used 0 to only operate on single cells, or 2 to have a 5x5 stencil
(although that might not be a good idea on a buffer with only one layer of halo
cells).

The sole argument of `iterate` is a callable which in turn expects two
parameters, the coordinates of the current cell and an `accessor` object. `u64`
is a type alias for `uint64_t` (there's also `u32`, `i32` etc). Cells can be
accessed via `acc` by relative coordinates. `{0, 0}` is the current cell,
`{1, 0}` is the one on its right, and so forth. Accessing cells outside the
specified stencil radius is undefined behaviour.

If you have split your data into more than one regions, as it is normal with
large scale calculations, you'll need to periodically synchronize halo cells
between different buffers. This what `copy_halo_from` is for. You need to pass
in a reference to the other buffer and an array describing the relative position.
The function will copy the edge cells of the specified buffer into the halo
appropriate halo cells.

```cpp
// {-1, 0} means that buf2 is on the left of buf1
buf1.copy_halo_from(buf2, {-1, 0});
```

## TODO

The long list of missing or inadequately implemented features:

* Efficient iteration on halo cells.
* Faster halo exchange.
* Additional halo filling strategies: mirror, wrap.
* Let a single buffer object multiple arrays of different types.
* Halo exchange between buffers with unaligned edges.
* OpenMPI support.
* Performance measurements & comparisons.
* Detailed documentation.
* Better error handling (currently tends to crash on invalid input)
* Make buffer movable.

repository: lipk/cpp-stencil

repo_name: lipk/cpp-stencil


text:
# ComputerVision

## Codes

- [Platypus – R package for object detection and image segmentation](https://github.com/maju116/platypus)
- [Spatial Power Spectrum](https://turbustat.readthedocs.io/en/latest/tutorials/statistics/pspec_example.html)

## References

- [Modelling the Power Spectra of Natural Images: Statistics and Information](https://www.sciencedirect.com/science/article/pii/0042698996000028)

repository: AstroKnights/ComputerVision

branch_name: refs/heads/main

repo_name: AstroKnights/ComputerVision


text:
# MagicMouse.js

A lightweight javascript library to create some amazing effects for the mouse (cursor) on your website - MagicMouse.js : [https://magicmousejs.web.app/](https://magicmousejs.web.app)

![One of magic-mouse effects](https://user-images.githubusercontent.com/19908411/77246772-03384880-6c5d-11ea-8074-6975bc8e3632.gif)
There's more than 4 effects and I'm keep updating now, you can try other effect on https://magicmousejs.web.app/ by changing the example and click to "Try it" button.

# Installation
MagicMouse.js is a vanilla javascript library so you DON'T need to include any other library like jQuery.
You just need to include 2 things to your HTML :

### Put the CSS file to your head tag:
````html
  <link rel="stylesheet" href="dist/magic-mouse.css" />
````

### Include the js file to the bottom of your HTML file (right before the end of body tag) :
````html
  <script type="text/javascript" src="dist/magic_mouse.js"></script>
````
### Insert your options and initialize :
````html
<script type="text/javascript">
    options = {
	"cursorOuter": "circle-basic",
	"hoverEffect": "circle-move",
	"hoverItemMove": false,
	"defaultCursor": false,
	"outerWidth": 30,
	"outerHeight": 30
      };
    magicMouse(options);
</script>
````
### Hover effect :
If you want your mouse have elegant hover effect, don't forget to add the class "magic-hover" to the element you want it have hover effect, for example :
````html
  <a class="magic-hover magic-hover__square">download</a>
````

### Disable Magicmouse on an element:
Sometime you just don't want to use Magicmouse on some specific elements? Then you just need to add `no-cursor` class to that element:
````html
<div class="no-cursor">...</div>
````

# Configuration list (updating):
| Variable name | Value |
|--|--|
| cursorOuter | Default: "circle-basic", other options : "disable" |
| hoverEffect | default: "circle-move", other options : "pointer-blur", "pointer-overlay" |

# CDN
Magicmouse.js is on the cloud now, you don't even need to download it to your server :
````html
  <link rel="stylesheet" href="https://res.cloudinary.com/veseylab/raw/upload/v1629862837/magicmouse/magic-mouse-1.2.css" />
  <script type="text/javascript" src="https://res.cloudinary.com/veseylab/raw/upload/v1629862837/magicmouse/magic_mouse-1.2.js"></script>
````

# What's next?
You should have the nice effect for your mouse now, of course you can override the CSS code to make it more elegant and suitable with your website (change color, size,..).
I'll add more effects to this libs when I have time, sure you can contribute to this repository and I'm very appreciate that ! :)

repository: rowanblub/magic-mouse-js

repo_name: rowanblub/magic-mouse-js


text:
# Creative Computing
- Spring, 2020
- Instructor: Jin Sung Yoo -<EMAIL_ADDRESS>- Teaching Assistant: Yumi Nakamura -<EMAIL_ADDRESS>
## DESCRIPTION
- This course involves an exploration of programming as a tool of visual communication and interactivity between computer and people. This is a project-based course. Students will learn computer programming through their hands-on experiences. During the semester. The p5.js will be used to illustrate fundamental of computation.

## RESOURCES
- [p5.js tutorials](https://p5js.org/learn/)
- [p5.js reference](http://p5js.org/reference)
- [The Coding Train - Shiffman's p5.js tutorials](https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA)
- [Learning Processing](http://learningprocessing.com/)

## COURSE REQUIREMENTS
* Attendance and class participation - 30%
* Assignments - 20%
* Midterm Project - 20%
* Final - 30%

## Tools
* [p5.js web editor](https://editor.p5js.org)

## SYLLABUS

### Week 1 -- Introduction
  * Hello
    * [Works](https://vimeo.com/136505838)
  * What is computer programming and why?
  * Reference works
    * [John Maeda Morisawa 10](https://maedastudio.com/morisawa-10-2016/)
    * [Eyeo 2013 - James Paterson](https://vimeo.com/69323991)
    * [Zach Liberman's Instagram](https://www.instagram.com/zach.lieberman/?hl=en)
  * [P5.js](https://p5js.org/) and [Javascript](https://en.wikipedia.org/wiki/JavaScript)
  * The history of [P5.js](https://p5js.org/) and [Processing](https://processing.org/)
  * [Editor](https://editor.p5js.org/)
  * Course Intro
    * Overview / Syllabus

### Week 2 -- Shape / Variables
  * [John Maeda Ted 2012](https://www.ted.com/talks/john_maeda_how_art_technology_and_design_inform_creative_leaders)
  * [Step-by-step approach](https://www.youtube.com/watch?v=cDA3_5982h8)
  * Programming languages
    * Low-level / high-level languages
    * Interpreted language
    * Client / Server side languages
  * [P5.js](https://p5js.org/) and [Javascript](https://en.wikipedia.org/wiki/JavaScript)
  * [Editor](https://editor.p5js.org/)
  * [Setup / Draw Functions](https://editor.p5js.org/jinsung/sketches/nbKQODiF8)
  * Canvas, Pixels and Color
    * Coordinate system
    * draw mode & color mode
    * RGBA vs HSBA
  * [Shapes](https://editor.p5js.org/jinsung/sketches/2Zf_Kuhw5)
  * [Variable](https://editor.p5js.org/jinsung/sketches/LnK1fCGxG)
  * [Mouse Position](https://editor.p5js.org/jinsung/sketches/6sEwURA2z)
  * [No Background](https://editor.p5js.org/jinsung/sketches/V6u5fiLJq)
  * [Line Drawing](https://editor.p5js.org/jinsung/sketches/-WTijUk-3)
  * Comment
  * Console.log!

### Week 3 -- Bouncing Ball!
 * Casey Reas
    * [How to draw with Code](https://www.youtube.com/watch?v=_8DMEHxOLQE)
 * [Variables](https://editor.p5js.org/jinsung/sketches/LnK1fCGxG)
    * Built-in or User-defined
    * Declare, Initialize, and Use
    * Type of the variable (Number, String, Boolean)
    * Scope
 * Debug
    * console.log
    * Javascript Debugger
 * [Boolean Operation](https://editor.p5js.org/jinsung/sketches/HYDqGeOFv)
 * [Random](https://editor.p5js.org/jinsung/sketches/OWSOiteWJ)
 * [Easing](https://editor.p5js.org/jinsung/sketches/UjXbU3Q8O)

### Week 4 -- Loop
 * Alice, Soo Ji
 * [Kyle McDonald](https://kylemcdonald.net/)
 * [Conditions](https://editor.p5js.org/jinsung/sketches/kq1Cszsja)
 * [Conditions 2](https://editor.p5js.org/jinsung/sketches/1kKTMtQS)
 * [While Loop 1](https://editor.p5js.org/jinsung/sketches/p_11LXsvK)
 * [While Loop 2](https://editor.p5js.org/jinsung/sketches/MJ1oqNRBH)
 * [For Loop 1](https://editor.p5js.org/jinsung/sketches/5Ck8nwtLc)
 * [For Loop 2](https://editor.p5js.org/jinsung/sketches/_ePNjW-0h)

### Week 5 -- Nested Loop
 * Soyoung, Sabrina
 * Zach Lieberman
 * [Manual Input Sessions](https://www.youtube.com/watch?v=3paLKLZbRY4)
    * [IQ Font](https://vimeo.com/5233789)
    * [Reflection](https://www.youtube.com/watch?v=FOV3FDbpEvI)
    * [Reflection](https://twitter.com/zachlieberman/status/1082672539464331264)
 * Debugger
 * [For Loop Again](https://editor.p5js.org/jinsung/sketches/oIg2GKphj)
 * [Nested For Loop](https://editor.p5js.org/jinsung/sketches/u5kQQvSQf)
 * [Random VS Perlin Noise](https://editor.p5js.org/jinsung/sketches/DghwXR_H)
 * [Nested For Loop](https://editor.p5js.org/jinsung/sketches/BUhPCkQM_)

### Week 6 -- 2D Transformation / Function
 * Daito Manabe
    * [Face](https://www.youtube.com/watch?v=pLAma-lrJRM)
    * [NIKE MUSIC SHOE](https://www.youtube.com/watch?v=uS1exujG3cY)
    * [discrete figures at Spiral Hall Tokyo](https://www.youtube.com/watch?time_continue=88&v=hauXQQhwbgM)
    * [Perfume Live at SXSW | STORY (SXSW-MIX)](https://www.youtube.com/watch?v=zZiPIgCtIxg)
 * [2D Transformation](https://editor.p5js.org/jinsung/sketches/fuV9qy_iZ)
    * Radians & Degrees
    * Translate / Rotate / Scale
    * Push / Pop
 * Function
    * [Modularity](https://editor.p5js.org/jinsung/sketches/l7Uf-zbeO)
    * [Reusability](https://editor.p5js.org/jinsung/sketches/HAyYTZWG7)

### Week 7 -- Function, Clock, and Object
 * Erica, Zefang
 * [three.js](https://threejs.org/)
 * Function
    * [Reusability](https://editor.p5js.org/jinsung/sketches/HAyYTZWG7)
 * [Clock](https://editor.p5js.org/jinsung/sketches/6zSA6_ZeW)
 * [Object](https://editor.p5js.org/jinsung/sketches/KtVF8apBV)

### Week 8 -- Object and Array
 * Suwon
 * [DIA Studio](http://dia.tv/)
 * [Array](https://editor.p5js.org/jinsung/sketches/cHcf9kZdc)
 * [Array with For Loop](https://editor.p5js.org/jinsung/sketches/LC-b5TInX)
 * [Object with Array](https://editor.p5js.org/jinsung/sketches/xKneEnFnW)
 * [Moving Characters 1](https://editor.p5js.org/jinsung/sketches/cJWSbuV1P2)
 * [Moving Charactors 2](https://editor.p5js.org/jinsung/sketches/SsIxIlQYa)
 * [Moving Charactors 3](https://editor.p5js.org/jinsung/sketches/aHTNv334s)

### Week 9 -- Letter Animation
 * Vivian, Nuri
 * [IBM Think Exhibit](https://www.youtube.com/watch?v=JVrXAsYd1Wk)
 * [THA LTD.](http://tha.jp/works/)
 * [Letter Animation 1](https://editor.p5js.org/jinsung/sketches/eyAyczpBO)
 * [Letter Animation 2](https://editor.p5js.org/jinsung/sketches/dUCDvAlbf)
 * [Letter Animation 3](https://editor.p5js.org/jinsung/sketches/qUrMNVhiS)
 * [Letter Animation 3-1](https://editor.p5js.org/jinsung/sketches/_j2Xx0VqV)
 * [Letter Animation 4](https://editor.p5js.org/jinsung/sketches/bcS4TW7iv)

### Week 10 -- Image
 * [ml5](https://learn.ml5js.org/docs/#/)
 * [posenet](https://medium.com/tensorflow/real-time-human-pose-estimation-in-the-browser-with-tensorflow-js-7dd0bc881cd5)
 * [Image](https://editor.p5js.org/jinsung/sketches/eH8irXDTj)
 * [Pixel](https://editor.p5js.org/jinsung/sketches/JSDPUVCmO)
 * [Pixel Animation](https://editor.p5js.org/jinsung/sketches/tdGXQhDob)
 * [Webcam](https://editor.p5js.org/jinsung/sketches/r17qhhmTm)
 * [Posenet](https://editor.p5js.org/jinsung/sketches/u59xzxU4L)

### Week 11 -- Vector / Force
 * Tavi, Lucia
 * [Matter.js](https://brm.io/matter-js/)
 * Vector (Class)
  * Vector vs Point
  * [Magnitude, Direction, Add, Subtract, Multiply and Divide](https://editor.p5js.org/jinsung/sketches/BJDUbJpa7)
 * [Force = Acceleration x Mass](https://editor.p5js.org/jinsung/sketches/K_1gJXsf_)
 * [Gravity](https://editor.p5js.org/jinsung/sketches/L7CliUcrQ)
 * [Friction](https://editor.p5js.org/jinsung/sketches/o-pAFmMop)
 * [Angry Particle?](https://editor.p5js.org/jinsung/sketches/B1d8CSJyE)

### Week 12 -- Particle System
 * [Robert Hodgin](http://roberthodgin.com/)
 * [Particle System](https://editor.p5js.org/jinsung/sketches/Gn1YNnTkn)
 * [Particle System / Noise](https://editor.p5js.org/jinsung/sketches/4wONJkuBy)

### Week 14 -- 1:1 Meeting

### Week 15 -- Particle System 2 / Final Project Presentation
 * [Particle System / Repulse](https://editor.p5js.org/jinsung/sketches/VX43gPQuD)
 * [Particle System / Pixel Data](https://editor.p5js.org/jinsung/sketches/h-D0R-3-H)

## Students with Disabilities

In order to receive academic accommodations due to a disability, a student must first register with the Office of Disability Services (ODS). Students approved for accommodations will be given an ODS Accommodation Letter to submit to their instructors. If a student does not provide an ODS Accommodation Letter to their instructor, they will not be eligible to receive accommodations in that course. All instructors are required to adhere to SVA’s policies regarding accommodations for students with disabilities. Students who have a need for academic accommodations, or suspect they may have a disability, should contact the ODS via telephone:<PHONE_NUMBER>, or visit the office: 340 East 24th Street, 1st Floor, New York, NY 10010, or email<EMAIL_ADDRESS>


text:
# CakePHP 2 Multiple Apps Same Core Valet Driver
Add CakePHP 2 with multiple apps and one core support to Laravel Valet

## Installation

This driver allows you to have several apps using the same CakePHP library.

Installation
1. Copy the file [`CakePHP2MultipleAppsSameCoreValetDriver.php`](CakePHP2MultipleAppsSameCoreValetDriver.php) to your Valet Drivers folder located at `~/.valet/Drivers` .
2. Use the `link` command to point to each of the apps inside the CakePHP library.

## Example:
Suppose we have 3 apps within the root structure of the CakePHP directory as follows:

    . 						# CakePHP root directory
    ├── app						# First app
    │   ├── Plugin
    │   ├── Vendor
    │   ├── webroot
    │   └── ...
    ├── app2					# Second app
    │   ├── Plugin
    │   ├── Vendor
    │   ├── webroot
    │   └── ...
    ├── app3					# Third app
    │   ├── Plugin
    │   ├── Vendor
    │   ├── webroot
    │   └── ...
    ├── lib
    ├── Cake
    ├── plugins
    ├── vendors
    └── ...

Then the commands to be executed would be the following:

`cd ~/cakephp-installation/app/`

`valet link app1`

`cd ~/cakephp-installation/app2/`

`valet link app2`

`cd ~/cakephp-installation/app3/`

`valet link app3`

Done!

### Documentation
* Custom  [Laravel Valet](https://laravel.com/docs/7.x/valet) Driver for [CakePHP 2](https://book.cakephp.org/2.0/en/index.html).

## License
See the [LICENSE](LICENSE) file for more info.


text:
---
layout: layout
title: Born3D
redirect-from: /born3d/
---

{{page.title}}

Published: September 5, 2017

In Barcelona there is a popular archeological site in the heart of the Born town, where you can find the rests of the old city dating from year 1700. In order to help people know about the history of the place, the goverment wanted to create this mobile app, which made it easy.

![Born3D screenshot 1](../images/born3d_1_scr.png)

There are two sections in **{{page.title}}** that I made:

One section is a realistic 3D recreation of the site, made using the latest laser scanning technology, navigatable with standard (as in Google Maps) gestures. Being my responsibility that the final model had to be easily moved by a modest phone, I had to convince the others about the needed low resolution of both geometry and textures. Coming from the excessive detail of scanned data, it always hurts to an artist to remove quality, but in the end we all saw that a drastic reduction still presented very nice quality.

Another section is a GPS enabled, kind of augmented reality interface with which the user can navigate inside the Born town, seeing a schematic view of how was the town back in the time, while really walking around the streets of today. While testing we noticed how much the surrounding buildings affected the GPS signal (Born has many narrow streets!), but obviously that was a problem that would require a solution way beyond our capabilities.

![Born3D screenshot 2](../images/born3d_2_scr.png)

In a final iteration, I also made a web version for the site section, which required an update in the navigation inputs, localization awareness and some cosmetic changes.

Features
---

- Realistic graphics for the highly detailed archeological site
- Standard "maps" touch controls
- Optimized for wide variety of mobile phones
- API to communicate with native part of the app (iOS or Android)

Downloads
---

[![Get it on AppStore](../images/badge_AppStore.png)](https://apps.apple.com/app/born-3d/id968390848)
[![Get it on GooglePlay](../images/badge_GooglePlay.png)](https://play.google.com/store/apps/details?id=cat.bcn.born3d)

Credits
---

- Programming of 3D sections by {{site.me}}
- Led and designed by {{site.creueta119}}
- Native app by {{site.dev33}}
- Scan cleaning and textures by {{site.leonardblum}}
- Geometry fix up by {{site.3dkiwi}}


text:
Auditing Workflows
========================

This page contains workflows to audit Rubrik activities.

Failed Tasks
------------------------

The activity log contains detailed information on every task. In the event of a failure, a number of options are available to the administrator - alerts, traps, logs, and so forth. If you wish to pull this data for programmatic use, the following workflow can be used:

``New-RubrikReport -ReportType daily -StatusType Failed``

The resulting data will contain a key named ``failureDescription`` that can be parsed for more information. A snippet sample value is shown below:

::

    failureDescription : Rubrik backup service at 'object' returned error: Remote call exception: object:12801 error: SSL_read: Resource temporarily unavailable
    status             : Failed
    jobType            : Backup

Storing this information into a variable, CSV file, or other object can be helpful for pushing failed task data to 3rd party systems.

CSV Export:
    ``New-RubrikReport -ReportType daily -StatusType Failed | Export-Csv -Encoding UTF8 -Path $Home\Documents\Report.CSV -NoTypeInformation``

Store to Variable:
    ``$Report = New-RubrikReport -ReportType daily -StatusType Failed``

repository: gabennett/rubrik-sdk-for-powershell

repo_name: gabennett/rubrik-sdk-for-powershell


text:
---
layout: default
---

# 1994-04-10 - ILF: What 4th Amendment?  Here Comes the Clipper Encryption Plan

## Header Data

From: Anonymous<EMAIL_ADDRESS>To<EMAIL_ADDRESS>(Cypher Punks)

Message Hash: ca54fce4462b46b359dc4b5ed344bb63acb4b9aa30e2970daf5fd956f231f490

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1994-04-10 16:33:54 UTC

Raw Date: Sun, 10 Apr 94 09:33:54 PDT

## Raw message

```
{% raw  %}From: Anonymous<EMAIL_ADDRESS>Date: Sun, 10 Apr 94 09:33:54 PDT
To<EMAIL_ADDRESS>(Cypher Punks)
Subject: ILF: What 4th Amendment?  Here Comes the Clipper Encryption Plan
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

Brought to you by the Information Liberation Front

Reproduced without permission from Communications Week

WHAT 4TH AMENDMENT?

That person sitting next to you is a criminal, too. All of
the people you work with are criminals. How do I know this? I get
it straight from the federal government.

 Not only
that, but the Clinton administration wants you to pay for
the privilege of having the government keep tabs on you. The
administration claims that it's doing all of this as a way to
fight crime, and since you're the one its targeting, apparently
the Clinton administration has decided you're a criminal. By now,
of course, you probably know what I'm writing about, but in case
you've been in a cave for a couple of weeks, here's a summary.
Earlier this month, the administration announced that the government
was going ahead with its plans to start using the infamous Clipper
chip -- that's the one that encrypts information, but includes a
government-sponsored backdoor -- for the Justice and Defense
departments. You're going to pay about $2,000 for each of the
initial 50,000 or so Clipper-encrypted phones and similar terminal
devices the government buys.

Once the government starts using Clipper equipment, the plan
is for these agencies to require anyone dealing with them to use
it also. Meanwhile, you must provide a way for the government
to listen in to your telephone system. You get to pay for the
new or modified equipment. Finally, sources tell us, the adminis-
tration plans to outlaw any form of encryption other than that
approved by the government. You get to pay for any changes
these new systems require, too. No doubt you're thinking that
the Fourth Amendment to the U.S. Constitution is supposed to
prevent your papers and effects, among other things, from un-
reasonable search and seizure. Is it reasonable to be required
to hand over materials in a form the government wishes so that
it can search you conveniently? It's not unlike being required to
carry on your phone conversations in English for the convenience
of government listeners who may not understand, say, pig latin.
I suppose we shouldn't be surprised. In his debate on the ratifiation
of the Constitution, Patrick Henry predicted that the gov-
ernment'may, unless the general government be restrained by a
Bill of Rights ". . . go into your cellars and rooms, and search,
ran sack and measure everything you eat, drink and wear. They ought
to be restrained." Of course, Henry didn't know computers would
exist, but he knew of their analogue at the time-a person's papers
and effects and that's why he fought successfully for an
amendment to restrain the government. Now it appears that the
government would slip its restraints. Apparently, in this new
world of technology and digital communications, prying into one's
affairs has become difficult. It's inconvenient to search an
office, after all. It requires work.

Instead, the government wants to read your electronic papers and
effects, and it wants you to pay for it. The Bill of Rights? I
guess that's become inconvenient, too.

 -------------
 Wayne Rash Jr. is a Washington-based networking systems integrator.
 He can be reached on MCI Mail as WRASH on CompuServe at 72205,221
 and on the Internet at<EMAIL_ADDRESS>The opinions
 expressed are his own.

{% endraw %}
```

## Thread

+ Return to [April 1994](/archive/1994/04)

+ Return to "[Anonymous <mg5n+eartdjp7xy633zeul7cwkz3c6zly7n1l98k233yemu0@andrew.cmu.edu>](/authors/anonymous_mg5neartdjp7xy633zeul7cwkz3c6zly7n1l98k233yemu0_at_andrew_cmu_edu_)"

+ 1994-04-10 (Sun, 10 Apr 94 09:33:54 PDT) - ILF: What 4th Amendment?  Here Comes the Clipper Encryption Plan - _Anonymous<EMAIL_ADDRESS>


text:
+++
Talk_date = ""
Talk_start_time = ""
Talk_end_time = ""
Title = "Adopt a painless continuous delivery culture, add more business value"
Type = "talk"
Speakers = ["geshan-manandhar"]
+++

A continuous delivery of new features definitely adds value to the business, it should be effortless to the tech team too. 5 years back our sys-admin team was in Istanbul and the dev team was in Dubai. Even then changes were shipped periodically but the process was cumbersome. A stable delivery pipeline with tests, continuous integration and small atomic deployments with github flow gives us a leading-edge. The culture of logging and monitoring ingrained in our team helps us move fast. Now, we ask a chatbot to deploy our microservices several times a day to production. In this session, I will unveil details on how you can get started with a smooth continuous delivery pipeline one step at a time.

repository: KrisBuytaert/devopsdays-web

gha_license_id: NOASSERTION

repo_name: KrisBuytaert/devopsdays-web


text:
Noid
====

Noid is an ODM (object document mapper) for MongoDB and Node.js written in CoffeeScript.

Example
-------

    class Person extends Document

      @storeIn 'people'

      @field 'name'
      @field 'title'

    Person.create { name: 'Chris }

    Person.findFirst { name: 'Chris' }, (error, person) ->
      console.log person.name()

Documentation
-------------

    npm install noid

See the [integration specs](https://github.com/chrisgibson/noid/tree/master/spec/integration) for now...

About
-----

Noid intends to provide a clean way to setup mappings (intended to be created in CoffeeScript, though not required). It is obviously inspired by Mongoid and the api will likely mirror that of Mongoid's, barring any idiomatic deviations.

Credits
-------

Chris Gibson chrislgibson at gmail dot com

repository: zikri-muhammad/belajar

repo_name: zikri-muhammad/belajar


text:
---
title: " "
multiLineDescription: ["English and Maths help for your child", "", "in Denmead, Hampshire", "", "", "", "", "", "", "", "", "" ]
---

# Why Step Up Tutors?

Some children find it difficult to concentrate in a busy classroom, and can really benefit from going over the topics with calm, patient, individual support.

Step Up Tutors:
* Is tailored to your child’s individual needs
* Builds confidence, introducing new ideas at the right time for your child
* Provides one-to-one sessions with an experienced teacher
* ... and it’s fun!

## COVID update: remote sessions via Zoom

I have specialist educational software that works well over Zoom, to provide interactive remote learning that is both rigorous and fun. As well as providing child-centred benefits, this reduces taxiing around for parents.

## About me

Based in Denmead, Hampshire, UK - I am a qualified teacher (B.Ed. Hons) with 20+ years of experience and have a specialist diploma in teaching children who have dyslexia.


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

### Description

There is an unauthorized buffer overflow vulnerability in Tenda AX12 v<IP_ADDRESS> _ cn. This vulnerability can cause the web service not to restart or even execute arbitrary code. It is a different vulnerability from CVE-2022-2414.

### POC

#### Reference
- https://github.com/bugfinder0/public_bug/tree/main/tenda/ax12/1

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

repository: trickest/cve

gha_language: HTML

repo_name: trickest/cve


text:
# logarithmic-word-cloud
Creates logarithmic sized word clouds from text files

This project uses a virtualenv with a requirements.txt file. To generate the virtualenv run:

```bash
virtualenv venv
venv/bin/pip install -r requirements.txt
```

To update the nltk data sources run the following script from the base directory with the virtualenv activated.

```bash
cloud/utils/update_nltk_data.py
```

repository: tkajder/logarithmic-word-cloud

repo_name: tkajder/logarithmic-word-cloud


text:
# Quay Development Container

The instructions below describe how to create and setup a container for working with local source changes and testing. It is meant for a developer familiar with python, javascript, and the tools associated with development.

## Quay Source

For convenience, the environment variable `QUAY_DEVEL_HOME` will be referenced for locations of the parent directory for source and other directories.

The directory `$QUAY_DEVEL_HOME/quay` is your _development_ git checkout of [quay](https://github.com/quay/quay).
```
cd $QUAY_DEVEL_HOME
git checkout github.com/quay/quay.git
```

For local storage, create the directory where images will be written to disk.
```
cd $QUAY_DEVEL_HOME
mkdir quay-storage
```

The Quay config app should be previously run and the resulting _quay-config.tar.gz_ expanded into place. This file is copied into this directory for convenience only: Keeping it available will allow upload into the config app for modifications later.
```
cd $QUAY_DEVEL_HOME
mkdir quay-config
cp ~/Downloads/quay-config.tar.gz $QUAY_DEVEL_HOME/quay-config/quay-config.tar.gz
tar xvf $QUAY_DEVEL_HOME/quay-config/quay-config.tar.gz -C $QUAY_DEVEL_HOME/quay-config
```

## Building Development Container

Build an image in a clean git checkout of master branch. It's important not to do this in your own development directory as there may be files that conflict or break a clean build.
```
cd $QUAY_DEVEL_HOME/quay
docker build -t quay:devel -f Dockerfile .
```

## Run Development Container

Note: Assumptions are that the config app has successfully run and database is available. This can be done via regular user documentation and using the `quay:devel` image built above.

```
docker run --rm --name quay \
    -v $QUAY_DEVEL_HOME/quay-config:/conf/stack \
    -v $QUAY_DEVEL_HOME/quay-storage:/datastorage \
    -v $QUAY_DEVEL_HOME/quay:$QUAY_DEVEL_HOME/quay \
    -p 8080:8080 \
    -p 8443:8443 \
    -p 9092:9092 \
    -e QUAY_DEVEL_HOME=$QUAY_DEVEL_HOME \
    quay:devel
```

This will start the quay container and be fully running. The web UI is available at port 8443.

## Switch Services to Development

### Inside the Container

When exec'ing into the development container, it is best to run under the [SCLs](https://www.softwarecollections.org) used during production. This will provide the correct paths to python and other executables.

```
docker exec --rm -it quay scl enable python27 rh-nginx112 bash
```

The following sections are perhaps easiest to run in separate `docker exec` sessions, which is how they will be described. Some or all could be run in the background and managed differently than described here.

### Stop Services

When running the quay container, all regular services are started by default. In order to run a service locally, stopping the default is important. Below are the steps for developing the web UI and web backend python service.

Stop services:
```
supervisorctl -c /quay-registry/conf/supervisord.conf stop gunicorn-web
```

Change the web resources to devel location:
```
cd /quay-registry
mv static static.bak
ln -s $QUAY_DEVEL_HOME/static
```

Build web assets:
```
cd $QUAY_DEVEL_HOME
mkdir -p static/webfonts
mkdir -p static/fonts
mkdir -p static/ldn
PYTHONPATH=. python -m external_libraries

yarn build
```

### Run Migrations

If `$QUAY_DEVEL_HOME/quay`, which presumably has your local code changes, has migrations, special care should be taken when switching between different versions of code.

To run a migration:
```
cd $QUAY_DEVEL_HOME
PYTHONPATH=. alembic upgrade 5248ddf35167
```

To revert a migration:
```
cd $QUAY_DEVEL_HOME
PYTHONPATH=. alembic downgrade -1
```

### Web UI Assets

```
cd $QUAY_DEVEL_HOME
yarn build && npm run watch
```

### Run Web Server
```
cd $QUAY_DEVEL_HOME
PYTHONPATH=. gunicorn -c conf/gunicorn_web.py web:application
```

gha_language: Python


text:
# Increasing Overall f1-score by removing features

| Name | Date |
|:-------|:---------------|
|Sebastien Church|December 1, 2019|

-----

### Resources
Your repository should include the following:

- Python script for your analysis: `project.py`
- Results figure/saved file:  `plots/`

-----

## Research Question

Can the removal (dropping) of features improve the performance of a dataset?

### Abstract

Using the Wine dataset we are trying to demonstrate that the removal of features can sometimes be useful when preparing a dataset.
By using this dataset and the SVC (linear) estimator we will try and demonstrate that this is possible.

### Introduction

The Wine dataset is from one of the sklearn dataset ([https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_wine.html](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_wine.html)), form R.A. Fisher.
It is a classification dataset with 13 features and 3 classes with 178 samples.
The graphs used vary from histograms, correlation maps and violinplots.

### Methods

As mentioned the method used for modelling the data was sklearn SVC (linear) as seen in the top left of the following figure.
We will use the f1-score as the key indicator of performance for our evaluations.

![matrix](.//plots/SVC.png)

The data points used in the evaluation of the model are based on 50 fitness tests for each features
There are 20 data points in each evaluated feature.
The initial methodology used was to do single removal of features and look at the results using a violin plot

![matrix](.//plots/Violinplots/Single_removal_features.png)

As we can see there are some notable features that seem to increase performance such as proantocyanins, alcalinity_of_ash and magnesium.
And some that drastically reduces the performance such as proline.

The next step was to automate the feature selection and removal. We chose the correlation values as the base to select the features.
First we generated the correlation heat map.

![matrix](.//plots/wine_correlation_heatmap.png)

Rather than trying to find out the best candidates directly from the heatmap, we wrote some algorithm to extract the candidate features.
We extracted the features based on a correlation score of between -0.05 and 0.05. Next we gave weight to the features based on the number of occurrence they appeared in the results.

Here are the correlations that were selected by the algorithm:

| Correlations |
|:-------|
| ash  and  proanthocyanins
| ash  and  od280/od315_of_diluted_wines
| alcalinity_of_ash  and  color_intensity
| proanthocyanins  and  color_intensity

This gave us the following results after the weight is applied

| Feature | Weight |
|:-------|:---------------|
| Ash | 2 |
| Proanthocyanins | 2 |
| color_intensity | 2 |
| alcalinity_of_ash | 1 |
| od315_of_diluted_wines | 1 |

All other features were at 0 weight.

We then proceeded to the systematic (incremental) removal of features in the dataset and measuring the performance using f1-score.

A dataframe was constructed with features, in this case 7 (5 of significance and 2 with weight of 0), filling the samples with the 20 values of fitness calculated.
For good measure the initial baseline with all features was inserted at position 0.

Here is a violinplot showing the results

![matrix](./plots/Violinplots/Incremental_removal_features.png)

As the plot shows there seems to be a increase in f1-score for the model by removing the selected features.

Further analysis indicates a positive increase in f1-score. The increase happens when we remove the following 4 features:
<b>Ash, proanthocyanins, color_intensity and alcalinity_of_ash.</b>

You can also observe the fi-score is highly affected by features not selected based on correlation. (alcohol, malic_acid)

![matrix](./plots/Histogram_mean_values.png)

### Results

Final analysis of the overall effects or feature removal can be seen in the following graph showing the percentage in variation for each feature removal.

![matrix](./plots/Histogram_percentage_variation_values.png)

We can clearly see an increase of 0.303435 percent in f1-score in regards to the 4 features that were removed. This can seem small but any improvement to the model will gain in accuracy.

Another observation is that the removal of all of the selected low correlated feature does not negatively impact the accuracy of the model.

This means that wines can be identified with less measurable features. Usefull when we are missing values for certain features.

### Discussion

The method used here does indicate that the removal of low correlated features increase the performance of the model.
It also proves that a feature set can be modified by the removal of features without affecting it's performance.

### References
None

-------


text:
---
title: "Getting Started"
linkTitle: "Getting Started"
weight: 10
anchor: "getting-started"
---

Getting started with SFM for Vortex is pretty easy: install the extension, relaunch Vortex then install mods from any archive file.

Vortex will still be responsible for the actual installation and management of mods so you’ll be able to manage your SFM mods just like any other Vortex-supported game.

repository: silveredgold/vortex-sfm

gha_language: TypeScript

repo_name: silveredgold/vortex-sfm


text:
# CH CH CH CHANGES #

## Friday the 25th of October 2013, v1.0.0 ##

* Updated backbone.js to v1.1.0.
* Moved the fallback scripts into versioned directories a la other rack-xxx libs.
* Decided that the API to this library is stable enough to move to v1.0.0 (see sermver).

----

## Saturday the 12th of October 2013, v0.1.1 ##

* Had a rogue newline since the fallback script was split. Fixed.

----

## Friday the 11th of October 2013, v0.1.0 ##

* Added option `debug` for getting the unminified version of the script, to help with debugging.

----

## Thursday the 10th of October 2013 ##

### v0.0.5 ###

* Can pass `false` to the `cdn` method to just get the fallback with no CDN, useful for working locally.
* Fixed problem with the :http_path option for the fallback route.

----

## Thursday the 19th of September 2013 ##

### v0.0.4 ###

* The source map URL given in the main script is unversioned, so the fallback map wasn't being found. Fixed.

----

### v0.0.3 ###

* The vendored scripts weren't in the gem because of a cheeky line in the .gitignore file. Maybe DHH got hold of it ;) Fixed now.

----

## Monday the 9th of September 2013 ##

### v0.0.2 ###

* Had wrong URL to Backbone project. Fixed.

----

### v0.0.1 ###

* First release.

----


text:
# Convert number to reversed array of digits
[*View on Codewars*](https://www.codewars.com/kata/convert-number-to-reversed-array-of-digits)

# Convert number to reversed array of digits

Given a random number:

C#: long;

C++: unsigned long;

You have to return the digits of this number within an array in reverse order.

## Example:

```
348597 => [7,9,5,8,4,3]
```

## Timeline
- Created: 2015-06-18
- Published: 2015-06-18
- Approved: 2015-07-03
- Completed: 2018-03-04

repository: prayatma/codewars

repo_name: prayatma/codewars


text:
# Welcome

I am Guillaume and this is my website. It contains all the information about my research.

It is divided two main section: a presentation page, based on [Elbowpatched](http://elbowpatched.com) and a blog, based on [poole](https://github.com/poole/poole).

The [website is visible here](http://www.guillaumelobet.be).


text:
---
layout: post
title: SSH tunnel script
comments: true
categories:
- dreamhost
- Scripts
- ssh
- tech
- tunnel
status: publish
type: post
published: true
meta:
  _edit_last: "1"
---
Why SSH tunneling?

Seriously, you just need to install ssh tool on your PC, (it will be much easier to setup a ssh tunnel if you are using a *nix OS), putty is a good choose if you are on Windows. I will show the script to explain what you should do on Ubuntu 9.04.

   ssh -qTfnN -D LocalPort remotehost(dreamhost)

All the added options are for a ssh session that’s used for tunneling.
-q :- be very quite, we are acting only as a tunnel.
-T :- Do not allocate a pseudo tty, we are only acting a tunnel.
-f :- move the ssh process to background, as we don’t want to interact with this ssh session directly.
-N :- Do not execute remote command.
-n :- redirect standard input to /dev/null.
In addition on a slow line you can gain performance by enabling compression with the -C option.

 Enjoy it.

extension: markdown


text:
---
layout: default
---

# 1996-02-07 - Re: Fair Credit Reporting Act and Privacy Act

## Header Data

From: Peter Conrad<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: 513c8c1260211a1639e3047c69313faf24e05c75f5e5a15f29a17185f78532bc

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1996-02-07 17:26:00 UTC

Raw Date: Thu, 8 Feb 1996 01:26:00 +0800

## Raw message

```
{% raw  %}From: Peter Conrad<EMAIL_ADDRESS>Date: Thu, 8 Feb 1996 01:26:00 +0800
To<EMAIL_ADDRESS>Subject: Re: Fair Credit Reporting Act and Privacy Act
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

-----BEGIN PGP SIGNED MESSAGE-----

Hi,

Duncan Frissell wrote:
>At 08:25 AM 2/5/96 -0500, Frank Willoughby wrote:
>
>>If the Privacy Act were rewritten to be as strict as the BDSG, businesses
>>would have a (mandatory) legal requirement to:
>>
[...]
>Unfortunately, it would also:
>
>*  Require government registration of computers and databases containing
>information about people (whether these computers are used by business or
>individuals).  This eases regulation of computers and future confiscation.

This is not true. Individuals are not required to register anything, the
BDSG simply does not apply do them (see. Par. 1 Section (2) ).
Businesses are required to register (besides their address and the kind
of business they do) a person who is responsible for any personal
information they want to keep and a general description of the kind of
data they intend to keep (see Par. 32 Sect. (2) ).
Computers are hardly mentioned anywhere in the BDSG, in fact, most of it
applies to any method of processing personal information. It doesn't
matter if a business keeps data printed on paper or stored in a computer.

>*  Reduce market efficiency by making it harder to match buyers and sellers
>(because neither could easily find out about he other) thus causing higher
>prices and poorer people.

Oh well. In the past buyers and sellers have always found each other
without keeping large databases. Most buyers are quite capable of finding
appropriate sellers (that's what advertisement and commercials are good
for).  The goal of the BDSG is to give the individual control of information
kept about him.
An example: The Deutsche Bundesbahn issues so-called 'BahnCards'. If you
buy a BahnCard you can use the Bundesbahn-trains for half the normal price.
Until a couple of months ago, the Bundesbahn gave all the information they
got from their BahnCard customers to the Citybank AG. The Citybank AG
sent their junkmail to all Bahncard customers and tried to make them get
a credit-card. This was in violation of the BDSG. And I still know where
to get a credit-card if I want one.

>*  Do nothing to protect personal information from the government which
>would get to collect more of it than ever in the course of enforcing data
>protection laws.

Oh yes it does. The same rules (or even stricter ones) that apply to
businesses apply to all government organizations. If any government
organization (even the police) violates the BDSG you have the right to
file a lawsuit against the organization (or the individual who violated
your rights).

>If you don't want people to know things about you, don't tell them.

You sometimes have no choice.
Those of you capable of understanding german might take a look at

http://www.fh-ulm.de/bvd/gesetz.html

Bye,
	Peter

NB: I subscribe to this list through a digest only. Please CC: me on
    followups.
- --
Peter Conrad    | "They say time is the fire in which we burn."
Am Heckenberg 1 |                        Dr. Soran, Star Trek - "Generations"
56727 Mayen
Germany

         Email: p_conrad<EMAIL_ADDRESS>
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAgUBMRiPe7FFskV8RCVHAQEMwQP7B6/QSo0E8bAiPcusg9+Etzx+WdIi6nuP
WVvnJ7RWrwoScnPkRJs7uaBfCpedFu3TZX7RyOm6bVAX4mwFe/dtqhBxcy8U3lQg
fqa3WUAhyBNPcr6tF38sVocKs6hWRiw+KckzvnCx9grJpqVHz6kvimAcVOIg027O
Zzk8jyopYDw=
=PBa7
-----END PGP SIGNATURE-----

{% endraw %}
```

## Thread

+ Return to [February 1996](/archive/1996/02)

+ Return to "[Peter Conrad <conrad@unix-ag.uni-kl.de>](/authors/peter_conrad_conrad_at_unixag_unikl_de_)"

+ 1996-02-07 (Thu, 8 Feb 1996 01:26:00 +0800) - Re: Fair Credit Reporting Act and Privacy Act - _Peter Conrad<EMAIL_ADDRESS>


text:
---
path: "/issues/2019/jun/14"
published: true
date: "2019-06-20"
title: "Issue #14"
contentTitle: "PWA's can be installed in so many platform today, Relearn CSS layout, How to use Guess.js with Angular CLI in ~90 seconds ..."
---

                PWA's can be installed in so many platforms today

Android, iOS, Mac, Window, Linux, Mobile Browsers like Firefox, UC, Baidu, Brave, Opera etc

twitter.com Maximiliano Firtman

                Relearn CSS layout

If you find yourself wrestling with CSS layout, it’s likely you’re making decisions for browsers they should be making themselves.

every-layout.dev Heydon Pickering & Andy Bell

                Progressive Web App to the Google Play Store

A Trusted Web Activity (TWA) displays a full screen Chrome browser inside of an Android app with no browser UI.

speakerdeck.com Henry Lim

                How to use Guess.js with Angular CLI in ~90 seconds

Data-driven prefetching optimizes a web app for speed & efficient network consumption

twitter.com Minko Gechev

                Why micro frontends might not work for you.

Micro frontends are a hot topic currently. Everyone is talking about it. People are curious about how to implement it, what are the pros and cons and so on.

medium.com Armando Magalhães

repository: code-kotis/this-week-in-web

repo_name: code-kotis/this-week-in-web


text:
This lab will require you to use **Depth First Search** and **Backtracking Search** to solve the n-Colorable problem. Therefore, we will briefly review both of these concepts.

#### Step 1: Depth First Search (DFS)

In **DFS** or **depth first search**, we start at a root node in our graph (this can be *the* root node, but also the root of any subtree), and traverse down a single branch to find our target node. If we don't find it, we traverse down the other branch. If we still don't find it, we pick one of the root's children to be the new root node and start over. We can perform our search in different orders just as with traversal, namely **preorder**, **inorder**, or **postorder**.

How do you think we can use **DFS** in our solution to the n-Colorable problem?

#### Step2: Backtracking Search

With **backtracking search**, we solve the problem recursively. However, when a solution does not satisfy the conditions of our problem, we remove it from consideration.  In other words, we try every possible attempt at finding a solution and discard all failures until we arrive at a viable answer.

Backtracking is an algorithmic-technique for solving problems recursively by attempting to build a solution incrementally, removing failures to satisfy the constraints of the problem at any point in time.

How do you think we can apply this logic of **backtracking search** into our n-Colorable solution to quicken the assignment of colors to vertices?

In this example, we first try left tree A. For node A, we have two options, C and D. Both of them are bad; root A does not satisfy the solution, so we discard this solution. Root B is the counterpart of root A, so we then try node B. We also have two choices, node E and node F. Node E is good, so we find one solution, while node F is bad, which we will discard.

repository: ShayanRiyaz/curriculum

repo_name: ShayanRiyaz/curriculum


text:
# `react-redux-wizard` [![Build Status](https://travis-ci.org/sebinsua/react-redux-wizard.png)](https://travis-ci.org/sebinsua/react-redux-wizard) [![npm version](https://badge.fury.io/js/react-redux-wizard.svg)](https://npmjs.org/package/react-redux-wizard)
> A simple wizard for React.

This component allows you to represent the flow of a wizard with JSX.

> **NOTE:** I have not worked on an integration with a React router, so if you require [deep-linking](https://en.wikipedia.org/wiki/Deep_linking) it's not quite ready. It is however completely functional for wizards within modals, and for small sign-up wizards, etc.

## Example

```js
import React from 'react'
import { Wizard, Step, match } from 'react-redux-wizard'

const StepOne = ({ name, previous, next }) =>
  <div onClick={next}>{name}</div>
const StepTwo = ({ name, previous, next }) =>
  <div onClick={next.bind(null, { formValue: Math.random() > 0.5 ? 'extra-flow' : null })}>{name}</div>
const StepThree = ({ name, previous, next }) =>
  <div onClick={previous}>{name}</div>

function SomeFormWizard () {
  return (
    <Wizard name="SomeFormWizard">
      <Step name="step-1" component={StepOne} next="step-2" />
      <Step
        name="step-2"
        component={StepTwo}
        next={match('/formValue', {
          'step-2.5': 'extra-flow', /* stepName <- value*/
          'step-3': null /* stepName <- value*/
        })}
      />
      <Step name="step-2.5" component={StepTwo} next="step-3" />
      <Step name="step-3" component={StepThree} />
    </Wizard>
  )
}

export default SomeFormWizard
```

## Install

```sh
yarn add react-redux-wizard
```

## API

### Reducer

Your root reducer should use the `reducer` exported by this module against its `wizards` key.

### Component

#### `<Wizard name={string}>{...steps}</Wizard>`

#### `<Step name={string} component={YourReactComponent} previous={string} next={string|StepPredicate|StepFn} />`

`StepPredicate` is an `Array<{ predicate: JsonPredicate, to: string }>` where `JsonPredicate` [follows the JSON Predicate spec](https://github.com/MalcolmDwyer/json-predicate). `match(string, StepNameToValues)` is just sugar for generating these predicates when given some `Step` names and the associated `values` to check for at a `pathName`.

We can pass a functions in but we really shouldn't as doing so means that the store can no longer be fully serialized. However, it is possible:

> `StepFn` has the form `(values: KeyValueObject, wizardState: KeyValueObject) => ?string`
and can be used to pick the next step depending on either the values emitted from a component,
or some of the wizard's internal state.

#### `<YourReactComponent previous={() => void} next={(values: KeyValueObject) => void} />`

`<YourReactComponent>` should receive two functions `previous` and `next`.

`previous` will take zero arguments and go to the previous step,
while `next` expects a `values` key-value object.

These are different functions from the ones you passed into `<Step>`.

license: Unlicense

repository: sebinsua/react-redux-wizard

repo_name: sebinsua/react-redux-wizard


text:
---
title: "Books"
path: "/books"
date: "2020-02-17"
coverImage: "../images/books/books.jpg"
author: "ironsoul"
excerpt: "Some books I have read in 2020 and my thoughts on them."
tags: ["life"]
---

My mom once told me that I have to read more. And then I watched a [video](https://www.youtube.com/watch?v=AYOZpDg6Oj0) of John Fish where he says that he read 100 books in 100 weeks. Crazy boy. This is how I decided to give it a try.

## Zero to One: Notes on Startups, or How to Build the Future

I guess everyone says that this is the must-read book for anyone who wants to do business. Probably, yes. I read about 30% of it and get bored. When I was ~16, I forced myself to read boring books but now there is a feeling that I can choose whatever really interests me. So I just returned this book to the library.

## Animal Farm

This one was recommended to me by my little sister Aruzhan. She is only 12 y. o. and I sometimes wonder how she can read such literature.

You read the book and draw parallels between the farm and the Soviet Union. Pretty interesting to read. Especially the end.

## The perks of being a wallflower

This one was recommended to me by my friend Akezhan when we spoke about books in our dorm room.

I read about 40% of it and so far the book is interesting. Just interesting, it is not amazing or mind-blowing. Sometimes I feel the same things as the main hero and that makes me think a lot about my life.

I feel a bit upset that this book was written by the person who was ~30 years old at the moment of writing. Is this really possible to describe feelings of 15 y. o. boy when you are 30? I do not know but I hope yes.

**13.02.2020**

I am really about to end this book but I do not have a feeling that I got the idea or message of the author. Overall, the story is very interesting and it was pretty joyful to get through all this journey with Charlie but I am a bit worried that I did not get the message. But who knows, maybe there is no message at all or I hope I will catch it when I will make it to the end.

**14.02.2020**

Finally completed reading this book. I reread the end three times and it feels **tough** because it still feels like I do not get the idea.

There are really heartwarming moments like when Bill said that Charlie is _"one of the most gifted people I've ever known"_ or when Charlie and his friends _"feel infinite"_ while riding through the tunnel. The entire story is great but I think that I did not get some points.

For example, I did not really get the idea of _"doing things"_ mentioned by Sam and her statement that _"you're not even there sometimes"_.

Anyway, I would be happy if you read this book and let us have a discussion about it. Once you read it, you will know how I chose the next book to read.

## To Kill a Mockingbird

**17.02.2020**

F*cking hard to read. Tried to understand the first two pages but no luck. I am not ready for such complex novels.

## The Alchemist

**17.02.2020**

My classmates are saying we read this one on our literature class but I guess I did not. Hope it is not late yet.

**20.02.2020**

It pissed me off that the author put spoiler in a foreword of the book. He basically said what will happen in the end.

I read about 10 pages so far and there are some quotes I found interesting.

> _And he knew that shepherds, like seamen and like traveling salesmen, always found a town where there was someone who could make them forget the joys of carefree wandering._

> _It's the possibility of having a dream come true that makes life interesting._

gha_language: JavaScript


text:
# Worker API v1

## Endpoint
Root endpoint: https://opera-park.appspot.com/worker/v1/

## Authentication

No authentication is required, but only the appengine can call the worker api
when it's executing task queues. HTTP status `302 Requires login` will be
returned if anyone else tries to call the api.

## Processing the wait list

When called, the worker will check if there are any free spots available
on the park server. If there are any it will send out push notifications to
all users registered on the wait list and clear the wait list. If the
parking is still full it will schedule itself to be run again later.
```
POST /waitList
```

### Response
```
Status: 204 No content
```

repository: nibarius/opark-backend

repo_name: nibarius/opark-backend


text:
# Ckeditor for Yii2 Framework with upload files
installation by copy/paste js file without composer

### Installation
Add the following code to the file view (e.g _form.php)

```php
$this->registerJsFile('@web/js/ckeditor/ckeditor.js');

<?= $form->field($model, 'description')->textarea(['class' => 'ckeditor']) ?>
```

### Configuration ckeditor

Configuration is file /js/ckeditor/config.js

### Configuration upload file ([kcfinder](https://github.com/sunhater/kcfinder))

Configuration is file /js/ckeditor/kcfinder/config.php


text:
---
title: "Page Cache"
id: "page-cache"
---
---

When the user navigates away from a page, the page usually gets destroyed. Instead of destroying the page, if the page instance is stored in Cache, then the page instance can be used when the user revisits the same URL. This will make page rendering instantaneous in case of revisits.

In the [10.6.0 release](/learn/wavemaker-release-notes/v10-6-0), WaveMaker implemented this strategy and introduced a new property called Cache at the page level. By default, the Cache property is disabled. Below, the Cache feature is explained in detail with a use case.

## Usecase

Let's take the case where an app has two pages:

1) `Page1`
2) `Page2`

For example, Cache is enabled on `Page1`, and Cache is disabled on `Page2`. As the user navigates in the app, states of page instances are depicted in the following table.

### Labels

**Initialized**: a new page instance is created.
**Attached**: a page instance is taken out from Cache and attached to dom.
**Detached**: a page instance is removed from DOM and is stored in the Cache for future use.
**Destroyed**: a page instance is destroyed completely.
**Page1 - n**: nth instance of page1.
**Page2 - n**: nth instance of page2.

|Step|User navigated to|Initialized|Attached|Detached|Destroyed|
|-|-|-|-|-|-|
|1|#/Page1?param=value1| Page1 - 1 ||||
|2|#/Page2| Page2 - 1 | |Page1 - 1 ||
|3|#/Page1?param=value2| Page1 - 2 | | |Page2 - 1 |
|4|#/Page2| Page2 - 2 | | Page1 - 2| |
|5|#/Page1?param=value1| | Page1 - 1 | | Page2 - 2|
|6|#/Page1?param=value2| | Page1 - 2 |Page1 - 1||

- In Cache, a page instance is mapped against the page name and its parameters (the order of parameters is not considered). As param value is changed in steps 1 and 2, two different instances of the same page are created.
- As the user moves from Page1, Page1 instances are added to the Cache (see steps 2, 4, 6). When the user comes back to the same Page1 URL, the cached page1 instance corresponding to the URL is rendered (see steps 5, 6).
- As Cache is disabled on Page2, Page2 instances are destroyed when the user navigates from the Page2 (see steps 3, 5).

## Page Instance Lifecycle

[![marked in red](/learn/assets/page-cache/page-lifecycle.png)](/learn/assets/page-cache/page-lifecycle.png)

## How to Enable Cache

1. Open the page in Design mode.
2. Select the page element. the page element can be selected by pressing 'ESC' button or from Page Structure, or from the bread crumb at the bottom of the WYSWYG editor.
3. Cache flag is shown in the properties panel on the right side.

[![marked in red](/learn/assets/page-cache/page-cache.png)](/learn/assets/page-cache/page-cache.png)

## Events

Two events including **On Attach** and **On Detach** are added. The **On Attach** event gets triggered when a page instance is retrieved from Cache and added to the DOM tree. The **On Detach** event gets triggered when a page instance is removed from DOM and added to the Cache.

In Studio, these events are visible on the page level, only if *Cache* is enabled. In case of partial or prefab, these events are always visible.

:::note
`onPageReady` is triggered only when a page instance is initialized. **On Destroy** is triggered when the page instance gets destroyed. The same applies to Partial and Prefab.
:::

## Data refresh

A cached page may have data that needs to be refreshed. You can use the following options to refresh data.

1. A property **Refresh data on attach** is added at the page level. If this flag is true, and the cached page instance is shown, then all start-up variables that have enabled **load data on page startup** of the page are invoked. If there are partials and prefabs in a page, then startup variables of partials and prefabs are also invoked. By default, this flag is set to true.

2. You can use **On Attach** event to refresh data by invoking the required variables.

## Cache Characteristics

1. A page instance is stored in the cache for a maximum of 30 minutes. Age of page instance is reset to zero after each revisit.
2. Cache can store a maximum of *10-page* instances. When the Cache is full and a new instance is added, then the page instance of the longest age is removed.
3. When the user logs out, or session expires, all cached page instances are destroyed.

## Recommended Usage

As page instances are stored in memory, the memory usage of the app increases. Eventually, the app may not respond and may crash. So, there is a limit of 10 (which can be changed in the future) page instances to store in Cache. So, you should enable cache, only on those pages that their app user frequently revisits. After enabling Cache, you should check about data getting refreshed on revisit. If required, make appropriate changes as explained in the [Data Refresh](#data-refresh) section.

repository: wavemaker/docs

repo_name: wavemaker/docs


text:
# yelpreview_text_classification_dl4j
First time to use DL4J to do a simple nlp classification task.
Couldn't try many times to make a better model without a charming GPU at home.

# 1. Objective
Create an app to predict the customers’ rating score using DL4J

## 1.1 Instructions

1. Download the datasets from [data](https://s3.amazonaws.com/fast-ai-nlp/yelp_review_full_csv.tgz).
2. Perform data preprocessing.
3. Build a model from scratch and train it with DL4J.
4. Evaluate your model and save the best model. Log down the necessary evaluation
metric score.
5. Note: create a log to log down the data preprocessing and model training step.
6. Create a separate file for inference that loads in the saved model and allows user to key
in review and predict the respective rating score.
7. Create separate .jar for model training (which includes preprocessing steps) and
inference.

## 1.2 Evaluations

1. The completion of given tasks.
2. Machine learning pipelines.
3. The accuracy of the model. (See [Results](https://github.com/jackspiderman/yelpreview_text_classification_dl4j#2-results))
4. The cleanliness and the structure of the code.

## 1.3 Submit Items
1. .jar files of your codes together with trained model. (See on [Baidu Yunpan](https://pan.baidu.com/s/1olbxijXOpF0mEhJ0WmyQZg), password:dl4j )
2. Source code (put it on [GitHub](https://github.com/jackspiderman/yelpreview_text_classification_dl4j))
3. Log files (model training logs file is required. (See [train.log](https://github.com/jackspiderman/yelpreview_text_classification_dl4j/blob/main/train.log)
and [preprocessing.log](https://github.com/jackspiderman/yelpreview_text_classification_dl4j/blob/main/preprocess.log)).

# 2. Model Performance on Dataset (10% as test set)
## 2.1 Evaluation Metrics
|  Index   | Epoch  | Accuracy  | Precision  | Recall | F1 Score |
|  ----  | ----  | ----  | ----  | ----  | ----  |
| 1  | 1 | 0.6162  | 0.6194 | 0.6162  | 0.6172 |
| 2  | 2 | 0.6238  | 0.6302 | 0.6238  | 0.6258 |
| 3  | 3 |  0.6267 | 0.6326 | 0.6267  | 0.6284 |
| 4  | 4 |  0.6318 | 0.6369 | 0.6318  | 0.6334 |

## 2.2 Confusion Matrix

## 2.2.1 1st epoch
|  0  | 1| 2 | 3  | 4 |  |
|  ----  | ----  | ----  | ----  | ----  | ----  |
| 9213  | 2873  | 374 | 56| 83 | 0 = 0|
| 2414 | 6707 | 3188  | 205 | 85  | 1 = 1|
| 455 | 2212 | 7470  | 2164 | 298 | 2 = 2|
| 160 | 317 | 2701  | 6722 | 2699  | 3 = 3|
| 195 | 132 | 484  | 3084 | 8704  | 4 = 4|

### 2.2.2 2nd epoch
|  0  | 1| 2 | 3  | 4 |  |
|  ----  | ----  | ----  | ----  | ----  | ----  |
| 9287  | 2894  | 310 | 49| 59 | 0 = 0|
| 2329 | 7250 | 2832  | 137 | 51  | 1 = 1|
| 424 | 2506 | 7591  | 1846 | 232 | 2 = 2|
| 154 | 357 | 2933  | 6819 | 2336  | 3 = 3|
| 173 | 161 | 563  | 3354 | 8348  | 4 = 4|

### 2.2.3 3th epoch
 |  0  | 1| 2 | 3  | 4 |  |
|  ----  | ----  | ----  | ----  | ----  | ----  |
| 9460  | 2726  | 324 | 35| 54 | 0 = 0|
| 2481 | 7186 | 2757  | 117 | 58  | 1 = 1|
| 461 | 2471 | 7641  | 1833 | 193 | 2 = 2|
| 145 | 354 | 2929  | 6907 | 2264  | 3 = 3|
| 179 | 160 | 543  | 3430 | 8287  | 4 = 4|

### 2.2.4 4th epoch
 |  0  | 1| 2 | 3  | 4 |  |
|  ----  | ----  | ----  | ----  | ----  | ----  |
| 9505  | 2682  | 313 | 39| 60 | 0 = 0|
| 2448 | 7224 | 2735  | 130 | 62  | 1 = 1|
| 424 | 2441 | 7669  | 1856 | 209 | 2 = 2|
| 128 | 334 | 2822  | 7003 | 2312  | 3 = 3|
| 155 | 148 | 498  | 3400 | 8398  | 4 = 4|

  # 3. Usage

  ## 3.1 Download Word2Vector
  Download Google Word2Vector pretrained model
  [GoogleNews-vectors-negative300.bin.gz](https://dl4jdata.blob.core.windows.net/resources/wordvectors/GoogleNews-vectors-negative300.bin.gz).
  Then add path of the model to the configuration file.

  ## 3.2 Edit configuration file
  following properities should be set before using.
  ```
rawDataPath=/path/yelp_review_full_csv
dataDir=/path/postprocess
trainRatio=0.9
testFactor=1.1
wordVectorsPath=/path/GoogleNews-vectors-negative300.bin.gz
modelDir=/path/bestmodel/ReviewsModel_biLstmLayers_e4.net
categoriesDir=/path/categories.txt
  ```

  ## 3.3 Prepare Training Data and Testing Data
  Download the [PrepareDataset.jar](https://pan.baidu.com/s/1vcGniK4RfO97XaaoTdrgLA) (password: dl4j)
```
java -jar PrepareDataset.jar /your/config/path
```

## 3.4 Train
Modify JVM settings to
```
-Xms1G -Xmx8G -Dorg.bytedeco.javacpp.maxbytes=14G -Dorg.bytedeco.javacpp.maxphysicalbytes=16G
```
  Download the [TrainReviews.jar](https://pan.baidu.com/s/1LertYV87IA78ZghzFINCMw) (password: dl4j)
```
java -jar TrainReviews.jar /your/config/path
```

## 3.5 Inference
Download the best [model](https://pan.baidu.com/s/1olbxijXOpF0mEhJ0WmyQZg) (password: dl4j)
 and the [TestReviews.jar](https://pan.baidu.com/s/1_gyWTb1o1koecC1H0LqGGw) (password: dl4j) , and copy [Categories.txt](https://github.com/jackspiderman/yelpreview_text_classification_dl4j/blob/main/categories.txt) to your local directory.
Then edit those paths to the configuration file.
```
java -jar TestReviews.jar /your/config/path
```
### UI Example:
Key in a sentence into the input box,
click the 'Check' button. Then it shows the category of that sentence.

![UI](imgs/Inference_UI.png?raw=true "Inference UI")

  # 4. References
  [Deeplearning examples](https://github.com/eclipse/deeplearning4j-examples) put on github
  makes this task easier, such as [ImdbReviewClassificationRNN](https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/advanced/modelling/textclassification/pretrainedword2vec/ImdbReviewClassificationRNN.java)
  and [customcorpusword2vec](https://github.com/eclipse/deeplearning4j-examples/blob/master/dl4j-examples/src/main/java/org/deeplearning4j/examples/advanced/modelling/textclassification/customcorpusword2vec/TrainNews.java)


text:
## Minty Resource Manager Application
This Repo represents the backend project for the Minty Resource Manager Application, which allow users
to search and eventually book custom resources defined by the admin in the back-office part of the application.
The reason why it's called minty is because I love mint :herb:.

## Motivation
The main reason why I wanted to create this app is that I have previously done a similar one two years ago back
when I was still in college :school:, and  I wanted to know how much I have matured since :grin:.

So you can call it a remaster version :sparkles: if you like, it still needs some additional work and improvements but overall I'm happy with it 😄 . The first application was made using (MVC Pattern with PHP, JQuery, HTML).
you can find it here.

This Version is built using .NET Core, MongoDB, and React for the client-side.
You can find the front-end project for this application [here](https://github.com/najinj/RessourceManager-Client).

## Tech/frameworks used (only for the back-end)
- [.NET Core](https://www.microsoft.com/net/core)
-  [MongoDb](https://www.mongodb.com/)
-  [Swagger](https://swagger.io/) for API documentation

## Features
#### Access to the application :
- :traffic_light: Token-based authentication and authorization.
- :mailbox: Rest passwords enabled for users using an email link.
- :lock: User Accounts require activation from the admin.

#### Features available to a normal user :
- :heavy_check_mark: As a user, I can search :mag: for available resources using a set of criteria.
- :heavy_check_mark: As a user, I  can book available resources.
- :heavy_check_mark: As a user, I  can book available resources periodiclly (eg: on Mondays,Wensdays starting 01/01/2020 to 01/03/2020 from 10:00 to 13:00).
- :heavy_check_mark: As a user, I  can view my reservations.
- :heavy_check_mark: As a user, I  cancel my reservations.
- :heavy_check_mark: As a user, I  can filter my reservations (based on resource name, resource type, date, or time).
- :heavy_check_mark: As a user, I  have a calendar view that allows me to see the availability of a resource in a calendar.
- :heavy_check_mark: As a user, I  can book a resource using the calendar view.

#### Features available to an admin :
- :heavy_check_mark: An admin can create, update, delete custom resource types (eg  resource type: Room)
- :heavy_check_mark: An admin can create, update, delete instances of those resource types  (eg Room N°15 which is an instance of Room )
- :heavy_check_mark: An admin can search for available resources using a set of criteria.
- :heavy_check_mark: An admin can book available resources.
- :heavy_check_mark: An admin can book available resources periodiclly (eg: on Mondays,Wensdays starting 01/01/2020 to 01/03/2020 from 10:00 to 13:00).
- :heavy_check_mark: An admin can view his reservations.
- :heavy_check_mark: An admin can view all reservations
- :heavy_check_mark: An admin can filter reservations (based on resource name, resource type, date, or time).
- :heavy_check_mark: An admin can cancel his reservations
- :heavy_check_mark: An admin can cancel any reservation
- :heavy_check_mark: An admin can manager users accounts (Activate/deactivate)
- :heavy_check_mark: An admin can set settings for the applications

###### Application Settings :
An admin has access to three main application settings
1. Email settings: which is the configuration for the email server that would be used to send emails to users
2. Reservation settings: which is a set of rules that applies when a user tries to book a resource
     (eg: An admin can define the maximum duration that a user can book,
      he can define the maximum date in the future :calendar: that a user is allowed to book ... and so on)
3. Calendar Settings: which controls the display of the calendar (things like min/max hour :clock730:, first day of the week :date:,12/24h hours format)

## Installation

1. Install MongoDB v4.2
2. Install [.NET Core 2.2 SDK](https://dotnet.microsoft.com/download/dotnet-core/2.2)
3. Clone the project and run it

## License

MIT © [najinj](https://github.com/najinj)

repository: najinj/RessourceManager-Server

gha_language: C#

repo_name: najinj/RessourceManager-Server


text:
# OVERVIEW

This program provides data acquisition for a Fusor.

From Wikipedia:
> A Fusor is a device that uses an electric field to heat ions to
> conditions suitable for nuclear fusion. The machine has a voltage
> between two metal cages inside a vacuum. Positive ions fall down
> this voltage drop, building up speed. If they collide in the center,
> they can fuse. This is a type of inertial electrostatic confinement device.

Refer to screenshots/screenshot1.png for data collected from a fusor.

Refer to program usage documentation in NOTES_FUSOR_SOFTWARE.

This program is designed for use with the United States Keyboard. The UK keyboard should also work. Other keyboard layouts should work but the keyboard controls may differ from the documentation.

# REFERENCES

http://www.fusor.net

http://en.wikipedia.org/wiki/Fusor

# FEATURES

* Collects image data from a Webcam, intended for viewing the hot plasma at the center of the vacuum chamber.

* Collects analog data for:
  * High Voltage Power Supply Voltage
  * High Voltage Power Supply Current
  * Gas Pressure
  * Neutron Counts Per Minute

* Display data includes:
  * Image
  * Analog Values
  * Various Graphs

* Data is recorded in a binary file so it can be viewed later.

* Print Screen

# ADDITIONAL INFO

Refer to NOTES files


text:
# Ganafus-SMS-Gateway
Ganafus PHP-Based SMS Gateway

This repo is not ready yet.

Project homepage: http://ganafus.ga/

# About

P.s. :
I am not that good in PHP, so do not expect master-type codes.
This repo is supposed to work, not to be an art masterpiece.
Thanks.

# Requirements
Ganafus SMS Gateway requires Windows (7 or above) to run. Linux and Macintosh currently not supported yet.
## Hardware
* A PC with at least dual core level processor, 1GB RAM and 300MB free disk space for MySQL and Gammu.
* A GSM Modem or GSM Phone as SMS transceiver.

## Software
* Windows 7 or above.
* Gammu SMS Gateway. To really serve SMS processing, Gammu is a must.
* MySQL 5.4/MariaDB 10.0 or newer (must support trigger)
* PHP 5.4 or newer, with MySQL support (mysqli extension)

We recommend to use Uniform Server from http://www.uniformserver.com, a repackaged Apache, PHP and MySQL that support GUI-based virtual host creation. Ganafus was
tested using Uniform Server Zero XI (UniServer Zero XI 11.7.2 and UniController XI V1.2.0)

Before Ganafus SMS Gateway installation, do server environment setup to support PHP with MySQL access capability.

# Installation

* Optional: Create virtual host for Ganafus SMS Gateway.
* Run Apache. Test your server environment and make sure PHP run well and can connect to MySQL using mysqli extension.
* Download and copy Ganafus SMS Gateway files to your Apache document root folder (or in it's sub directory) or to your virtual host document root.
* Use browser to navigate to your http URL.

# Setting Up Modem/Phone

# Hosted and Served Files
## Hosted Files
## Served Files

# Testing

# Troubleshooting

# License

repository: AndanTeknomedia/Ganafus-SMS-Gateway

repo_name: AndanTeknomedia/Ganafus-SMS-Gateway