hexsha stringlengths 40 40 | size int64 5 1.04M | ext stringclasses 6 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 3 344 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 11 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 344 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 11 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 344 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 11 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.04M | avg_line_length float64 1.14 851k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 | lid stringclasses 191 values | lid_prob float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5d5116efae17dae1e90ca670da0773ab9618176 | 3,906 | md | Markdown | _posts/2019-12-24-Hello-World.md | podrezo/journeyman | b5223c62c755179dd59ba3f6bca13ef396826a9d | [
"MIT"
] | null | null | null | _posts/2019-12-24-Hello-World.md | podrezo/journeyman | b5223c62c755179dd59ba3f6bca13ef396826a9d | [
"MIT"
] | null | null | null | _posts/2019-12-24-Hello-World.md | podrezo/journeyman | b5223c62c755179dd59ba3f6bca13ef396826a9d | [
"MIT"
] | null | null | null | ---
layout: post
title: Hello, world!
excerpt: "As an avid traveller, I started this blog to share some travel tips and just to document my experiences. I hope you enjoy reading it as much as I enjoyed reliving the memories to bring you these stories. As my first post, let me tell you a bit about myself."
cover: "china-with-jen.jpg"
---
As an avid traveller, I started this blog to share some travel tips and just to document my experiences. I hope you enjoy reading it as much as I enjoyed reliving the memories to bring you these stories. As my first post, let me tell you a bit about myself. I'm a software developer by trade and I live in Toronto, Canada. I live together with my wife, son, and feisty little Shiba Inu dog - you will probably see them in many of the photos I feature on this blog as we tend to travel together (except, not usually the doggo). My first experiences with travel overseas were family trips when I was still in elementary school. While I did enjoy the trips from a "it's better than being in school" perspective, I never really appreciated the adventure aspect of travel until much later. Even the first time I had any kind of "solo" (I use the term loosely) travel experience, when I was about 20 years old and went to Munich and Rome for the first time ever, I didn't really want to be there. My mother had convinced me that I'm somewhat of a philistine and needed to culture myself through an immersive European experience (at my own cost, which was begrudgingly accepted by me - I had really just wanted to use my summer job savings to buy a new PC). The trip did not leave me with a sense of wonder, nor did it really work in terms of making me into a cultured man. It wasn't until years later that I really caught the travel bug.
If I had to try to pin point a precise moment for when the travel bug really hit me it was after I met my wife. We had been together a few months when she told me she has to go back to China to visit family and asked if I wanted to tag along. I weighed the pros and cons:
* Pro: I'd get to go to a drastically different country, with a completely different culture, and experience the whole thing with a tour guide (my girlfriend) who speaks the local language fluently. I'd get the kind of first-hand, authentic, "like the locals" experiences that all these travel aficionados are always bragging about and really get to see the lay of the land.
* Con: I didn't have a lot of money, being a student on a summer job salary
* Pro: I had no idea that I'd end up marrying this girl, so there was no telling if this kind of opportunity would ever present itself again if we did end up parting ways. This was literally a once in a lifetime opportunity I thought.
* Con: Again, 💸
I decided, what the hell, I had nothing better to do with the time off after finishing at my summer job and having several grand saved in the bank so next thing I knew I was applying for a visa. I'm not going to dive deep into every aspect of the trip but needless to say the combination of a fantastic travel partner (my now wife; 😘 you Jen!), a **very** favorable exchange rate, and numerous adventures and challenges in China, I was hooked. Since then I've been around the world to at least 4 continents and about 150 cities in about 20 countries. I know it's not a lot compared to some of the more seasoned travellers out there, but thus far I've had some terrific experiences and have learned a lot about the world and about how to improve my travelling game. I want to bring some of those experiences and learnings to you, dear reader so I hope you enjoy reading this blog and hopefully get something out of it. I'll leave you now with this over-used, and sort of pretentious quote that nonetheless I find myself always thinking back to:
> The world is a book, and those who do not travel read only a page. – Saint Augustine
Happy travelling!
| 177.545455 | 1,431 | 0.776242 | eng_Latn | 0.999973 |
b5d66671ff064234e2cba29e363f747a8187d32a | 1,185 | md | Markdown | README.md | m812215/hto | b6233bd105fdd25316147cf2ce88a23a0236e43e | [
"BSD-3-Clause"
] | null | null | null | README.md | m812215/hto | b6233bd105fdd25316147cf2ce88a23a0236e43e | [
"BSD-3-Clause"
] | null | null | null | README.md | m812215/hto | b6233bd105fdd25316147cf2ce88a23a0236e43e | [
"BSD-3-Clause"
] | null | null | null | # Hyppytoimintaorganisaattori
Alkuperäinen koodi on https://github.com/xird käsialaa. Kaikki kreditti sinne,
minne se kuuluu!
Tämä on kevyt Kohana-frameworkiin perustuva softa, jonka tarkoitus on helpottaa
hyppytoiminnan järjestelyjä kerhossa.
Ohjelmisto tukee kahta lentokonotta. Toinen kone on kommentoitu pois tällä
hetkellä.
# Asennus
- Luo MySQL-tietokanta
- Aja taulujen luontikomennot kantaan
```
mysql -u -p
CREATE DATABASE hto CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'hto'@'localhost' IDENTIFIED BY 'pass_w0rd'; GRANT ALL PRIVILEGES
ON hto.* TO 'hto'@'localhost' WITH GRANT OPTION;
exit
mysql -u hto -p -h localhost hto < hto.sql
```
- Muokkaa tiedostoa hto/application/config/database.php
- Anna hakemistoille /application/logs ja /application/cache sellaiset
oikeudet, että Apache saa kirjoittaa sinne
- Varmista, että Apache tottelee hakemistokohtaisia htaccess-tiedostoja.
Sovelluksen juuressa on htaccess-tiedosto, joka ohjaa pyynnöt oikeaan paikkaan.
# TODO
Muuttaa konemäärä ja konetunnukset konfigin taakse.
# Kohana PHP Framework, version 3.0 (dev)
This is the current development version of [Kohana](http://kohanaframework.org/).
| 24.6875 | 81 | 0.793249 | fin_Latn | 0.995621 |
b5d67d701bdfea0041c21762a6cfc0761657d259 | 86 | md | Markdown | README.md | glopesdev/wall-physics | 5a80817395d4df28972f6531078c63937bd9f813 | [
"MIT"
] | null | null | null | README.md | glopesdev/wall-physics | 5a80817395d4df28972f6531078c63937bd9f813 | [
"MIT"
] | null | null | null | README.md | glopesdev/wall-physics | 5a80817395d4df28972f6531078c63937bd9f813 | [
"MIT"
] | null | null | null | # wall-physics
A physics-based interactive installation for collective contemplation.
| 28.666667 | 70 | 0.848837 | eng_Latn | 0.884227 |
b5d7b8a90128f70593ee5918e2a23c14e2468a61 | 3,696 | md | Markdown | docs/conferences/_drone-prize.md | zuplo/docs | 28258f0aeb2b2636fe522eedded564e51a3c1fe3 | [
"MIT"
] | null | null | null | docs/conferences/_drone-prize.md | zuplo/docs | 28258f0aeb2b2636fe522eedded564e51a3c1fe3 | [
"MIT"
] | null | null | null | docs/conferences/_drone-prize.md | zuplo/docs | 28258f0aeb2b2636fe522eedded564e51a3c1fe3 | [
"MIT"
] | null | null | null | ---
title: Zuplo @ THAT Texas
draft: true
---
# Win a McLaren Lego Technic - one each day!

Now read on to learn how you can win a McLaren Lego Technic and get an **instant** $5 Starbucks gift card. It's easy!
:::tip
Check out Josh's talk at 10:30 am tomorrow (Weds) on why companies like Stripe design their API the way they do. Josh was Head of Product for Payment Methods at Stripe and founded Azure API Management.
:::
[Zuplo](https://zuplo.com) is a different kind of API gateway. It's programmable, meaning you can customize it in seconds with TypeScript. We make it easy to compose your microservices or share your API. Add API-key management (with key protection - ask us what this is), developer documentation, and rate-limiting for any stack, in under 5 minutes.
[Home](https://zuplo.com) | [Docs](/docs) | [Blog](/blog) | [Follow Us](https://twitter.com/zuplo)
---
## Share an API with Zuplo for your chance to win a drone
:::caution
**We recommend completing the exercise on a laptop.** The Zuplo portal doesn't work on phones. You can also stop by the booth and use one of our computers if that is easier.
This contest is for registered attendees of THAT Texas only.
[Full rules and terms](./drone-prize-terms.md)
:::
# Challenge
Submit by 5:15pm, we'll draw the winner at 5:30pm today, Tuesday May 24. Limit of one prize per family.
## Part 1: Proxy an API
### Step 1 - Sign up
Sign up for a zuplo account at [portal.zuplo.com](https://portal.zuplo.com)
### Step 2 - Create a gateway
Create a new gateway (it takes less than a minute)
### Step 3 - Add a new route
See [the documentation about Url Rewrites](../handlers/url-rewrite.md) for more information.
Open **routes.json** and add a third route to the example project.
- It should support `GET` only
- The path should be `/products/:productId`
- Set the URL Rewrite to the legacy e-commerce API as follows
`https://ecommerce-legacy.zuplo.io/objects?type=products&id=${params.productId}`
- Save your changes (Cmd ⌘ + S or Ctrl + S)
### Step 4 - Show your working gateway to the folks at the Zuplo stand
Open the test client <ApiTestConsoleTabIcon /> in the portal and test your new route
- Set the method to `GET`
- Set the URL to `/products/10000`
- Hit **Test!**
- Have Nate or Josh scan your badge at the booth
<p style={{fontSize:"20pt", fontWeight:600}}>✋ Wait, don’t stop there - earn a $5 Starbucks gift card by completing part 2</p>
## Part 2: Setup Rate Limiting
### Step 1 - Add another route
Open the routes.json file and add a new route
- It should support `GET` only
- The path should be `/hello-zuplo`
### Step 2 - setup rate-limiting to your new route
[Read the docs about rate limiting](../policies/rate-limit-inbound.md) for more information.
Open the policy editor for your new route
- Add a new policy
- Choose rate limiting
- Set a rate limit for IP allowing 3 requests per minute
### Step 3 - Change the request handler
Change the Request Handler of your new route to a custom function.
- Change the Request Handler from **URL Rewrite** to **Function**
- Save your changes to the Route file (CMD + S)
- Edit the custom function by clicking on the Hello World link.
- Change the code to return a message you want to share with Nate or Josh from Zuplo (be nice!), e.g.
```tsx
import { ZuploContext, ZuploRequest } from "@zuplo/runtime";
export default async function (request: ZuploRequest, context: ZuploContext) {
return "Wow, Zuplo is cool!";
}
```
### Step 4 - Show your working API to the folks at the Zuplo Stand
- You get it already!
- Hit your new route multiple times to test the rate limiting
- Show them your Dev Portal too
| 32.707965 | 349 | 0.725108 | eng_Latn | 0.984132 |
b5d9086730e633e957d51fe7312010f2334b86af | 74 | md | Markdown | admin/pages/stats.md | Charpy/grav-plugin-matomo | fa37e6b33594782e76a7f31a426657aed1da6d95 | [
"MIT"
] | 6 | 2019-12-04T08:02:57.000Z | 2021-04-15T13:19:50.000Z | admin/pages/stats.md | Charpy/grav-plugin-matomo | fa37e6b33594782e76a7f31a426657aed1da6d95 | [
"MIT"
] | 2 | 2019-01-16T07:16:36.000Z | 2020-12-04T12:20:44.000Z | admin/pages/stats.md | Charpy/grav-plugin-matomo | fa37e6b33594782e76a7f31a426657aed1da6d95 | [
"MIT"
] | 1 | 2019-05-11T22:55:13.000Z | 2019-05-11T22:55:13.000Z | ---
title: Stats
access:
admin.stats: true
admin.super: true
---
| 9.25 | 21 | 0.594595 | fra_Latn | 0.2742 |
b5dace87079f47c93bb062e2df0db37dbec1eea9 | 3,653 | md | Markdown | _posts/2022-04-07-DB-setting.md | xodud3008/xodud3008.github.io | 4280929b508387d94e5a1917f1a785e51afe7aa7 | [
"MIT"
] | 1 | 2021-11-17T14:06:15.000Z | 2021-11-17T14:06:15.000Z | _posts/2022-04-07-DB-setting.md | xodud3008/xodud3008.github.io | 4280929b508387d94e5a1917f1a785e51afe7aa7 | [
"MIT"
] | null | null | null | _posts/2022-04-07-DB-setting.md | xodud3008/xodud3008.github.io | 4280929b508387d94e5a1917f1a785e51afe7aa7 | [
"MIT"
] | null | null | null | ---
title: "First Project Database settings"
excerpt: "첫번째 프로젝트. 백엔드 개발자. 시퀄라이저를 이용한 데이터베이스 구축. 테이블 간 관계설정"
categories:
- Project
tags:
- [Blog, jekyll, Github, Git, TIL, Javascript, codestates, firstproject, 첫번째 프로젝트, 코드스테이츠, 백엔드, 프론트엔드, Database, sequelize, sequelize-cli, seed, migration, 시퀄라이즈, 마이그레이션, 시드, mysql, 시퀄라이즈 관계설정,모델 생성, 시퀄라이즈 사용 방법]
toc: true
toc_sticky: true
date: 2022-04-08
last_modified_at: 2022-04-08
---
#### 1. sequelize 사용 환경 설정
```
// sequelize 설치
$ npm install --save sequelize
// sequelize cli 설치
$ npm install --save-dev sequelize-cli
```
#### 2. 모델 생성
sequelize cli를 통해 모델 생성
```
$ npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string
// 컬럼명:데이터 타입으로 넣어준다.
```
#### 3. 마이그레이션
sequelize cli로 만든 모델 데이터베이스에 적용. 데이터베이스를 먼저 생성 후 마이그레이션 해야 한다.
```
npx sequelize-cli db:migrate
```
* 테이블 명이 자동으로 복수형으로 만들어진다.(e.g. name => names)
* id, createdAt, updatedAt컬럼은 sequelize에서 자동으로 만들어준다.(옵션 설정으로 삭제 가능)
```javascript
user.init(
// init 설정에서 timestamps를 false로 설정하면 자동 생성 안됨
{
timestamps: false,
}
```
#### 4. sequelize 에서 테이블 관계 설정(Model 파일에서)
* 1:1 관계(hasOne - belongsTo)
* 한명의 유저는 하나의 프로필을 갖는다.
```javascript
// user 모델에서 profile 연결 설정
static associate(models) {
// define association here
models.user.hasOne(models.profile, {
foreignKey: "user_id",
sourceKey: "id",
});
}
// profile 모델에서 user 연결 설정
static associate(models) {
// define association here
models.user.belongsTo(models.user, {
foreignKey: "user_id",
targetKey: "id",
});
}
```
* 1:N 관계(hasMany - belongsTo)
* 하나의 interest는 여러개의 group를 갖는다
```javascript
// interest 모델에서 group 연결 설정
static associate(models) {
// define association here
models.interest.hasMany(models.group, {
foreignKey: "interest_id",
sourceKey: "id",
});
}
// gorup 모델에서 interest 연결 설정
static associate(models){
models.group.belongsTo(models.interest, {
foreignKey: "interest_id",
targetKey: "id",
});
}
```
* N:M 관계
* 한명의 user는 여러개의 team에 가입할 수 있다. 하나의 team에 여러명의 user가 가입할 수 있다.(belongsToMany - belongsToMany)
```javascript
// team 모델에서 user 연결 설정
static associate(models) {
// define association here
models.team.belongsToMany(models.user, {
through: "user_team",
foreignKey: "team_id",
});
}
// user 모델에서 team 연결 설정
static associate(models){
models.user.belongsToMany(models.team, {
through: "user_team",
foreignKey: "user_id",
});
}
```
#### 5. seeder 생성
##### 더미 데이터를 넣을 수 있는 seeder 시작.
```
npx sequelize seed:generate --name 모델명
```
생성된날짜-모델명의 js 파일이 생성된다. Up은 실행 했을 때, Down은 실행 취소 했을 때 작동하는 코드.
```javascript
'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
/**
* Add seed commands here.
*
* Example:
* await queryInterface.bulkInsert('People', [{
* name: 'John Doe',
* isBetaMember: false
* }], {});
*/
},
down: async (queryInterface, Sequelize) => {
/**
* Add commands to revert seed here.
*
* Example:
* await queryInterface.bulkDelete('People', null, {});
*/
}
};
```
##### seeder를 작성 한 후 데이터베이스에 적용
* 전체 seed 실행
`$ npx sequelize-cli db:seed:all`
* seed 한개 실행
`$ npx sequelize db:seed --seed 파일명(숫자까지 포함한 full 파일명)`
:exclamation: migration을 한 뒤 seed를 실행해야 한다. | 22.83125 | 214 | 0.59239 | kor_Hang | 0.996347 |
b5dbd93b5d161c6242a2802b2a9fec0d76ac9162 | 63 | md | Markdown | README.md | Richard2005/teachers-rest-Springboot | 24dd8dcfb31e7f707ae2d5c226228a1082524ce4 | [
"Apache-2.0"
] | null | null | null | README.md | Richard2005/teachers-rest-Springboot | 24dd8dcfb31e7f707ae2d5c226228a1082524ce4 | [
"Apache-2.0"
] | null | null | null | README.md | Richard2005/teachers-rest-Springboot | 24dd8dcfb31e7f707ae2d5c226228a1082524ce4 | [
"Apache-2.0"
] | null | null | null | # teachers-rest-Springboot
CRUD services RESTN with Springboot
| 21 | 35 | 0.84127 | eng_Latn | 0.685456 |
b5dbdf29b4a26416daa17399d06555bc043095aa | 1,963 | md | Markdown | README.md | msarkrish/dart_and_flutter_resources | 1a27152dc884795e3f3f767bd70b76e0e46b6aff | [
"MIT"
] | null | null | null | README.md | msarkrish/dart_and_flutter_resources | 1a27152dc884795e3f3f767bd70b76e0e46b6aff | [
"MIT"
] | null | null | null | README.md | msarkrish/dart_and_flutter_resources | 1a27152dc884795e3f3f767bd70b76e0e46b6aff | [
"MIT"
] | null | null | null | # Dart and Flutter Resources
Official Dart website
https://dart.dev/
Official Flutter website
https://flutter.dev/
Official Package manager for Dart and Flutter
https://pub.dev/
Flutter Gems website groups the packages and plugins published in pub.dev by category. You can easily get the list of packages and plugins available for your need.
https://fluttergems.dev/
**Blogs**
1). Official Dart Blog
https://medium.com/dartlang
2). Official Flutter Blog
https://medium.com/flutter
3). Official Firebase Blog
https://firebase.blog/category/flutter
4). Google Dev Library
https://devlibrary.withgoogle.com/products/flutter
5). Flutter Community
https://medium.com/flutter-community
6). Very Good Ventures
https://verygood.ventures/blog-categories/flutter
7). Codemagic
https://blog.codemagic.io/tags/flutter/
8). Stream
https://getstream.io/blog/topic/engineering/flutter/
9). Code With Andrea
https://codewithandrea.com/
**YouTube Channels**
1). Flutter official Channel
https://www.youtube.com/c/flutterdev
2). Flutter Community
https://www.youtube.com/c/FlutterCommunityVideos
3). The Flutter Way
https://www.youtube.com/c/TheFlutterWay
4). Flutterly
https://www.youtube.com/c/Flutterly
5). Vandad Nahavandipoor
https://www.youtube.com/c/VandadNP
6). FilledStacks
https://www.youtube.com/c/FilledStacks
7). Flutter Explained
https://www.youtube.com/c/FlutterExplained
8). Johannes Milke
https://www.youtube.com/c/JohannesMilke
9). Majid Hajian
https://www.youtube.com/c/mhadaily/featured
10). Robert Brunhage
https://www.youtube.com/c/RobertBrunhage
11). Reso Coder
https://www.youtube.com/c/ResoCoder
12). Fun with Flutter
https://www.youtube.com/c/FunwithFlutter/featured
13). RetroPortal Studio
https://www.youtube.com/c/RetroPortalStudio/featured
14). Tadas Petra
https://www.youtube.com/c/TadasPetra/featured
15). Flutter Mapp
https://www.youtube.com/c/FlutterMapp
16). diegoveloper
https://www.youtube.com/user/diegoveloper
| 21.107527 | 164 | 0.773816 | yue_Hant | 0.895038 |
b5dbfaaae0746ec326834b2930a3dcf0e22a744a | 626 | md | Markdown | README.md | bytepark/ansible-base | 2a4591dea7e70d909ca4162585f36ee4cd154330 | [
"MIT"
] | null | null | null | README.md | bytepark/ansible-base | 2a4591dea7e70d909ca4162585f36ee4cd154330 | [
"MIT"
] | null | null | null | README.md | bytepark/ansible-base | 2a4591dea7e70d909ca4162585f36ee4cd154330 | [
"MIT"
] | null | null | null | [](https://travis-ci.org/bytepark/ansible-base)
ansible-base
=========
Ansible role to install base settings for a server
Requirements
------------
No further requirements besides bash.
Role Variables
--------------
```
server:
hostname: "myhost"
timezone: "Europe/Berlin"
locale: de_DE.UTF-8
```
Dependencies
------------
No dependencies.
Example Playbook
----------------
- hosts: servers
roles:
- { role: bytepark.base }
License
-------
MIT
Author Information
------------------
bytepark / 2018.
| 13.911111 | 125 | 0.597444 | eng_Latn | 0.342364 |
b5dc4c34a7d2a1157f89486df4f9b34000ee55c8 | 3,563 | md | Markdown | translated/tech/20150104 How to debug a C or C++ program with Nemiver debugger.md | mtunique/TranslateProject | ec2d46c27797200f5615b98da8700bf5af35f1ae | [
"Apache-2.0"
] | null | null | null | translated/tech/20150104 How to debug a C or C++ program with Nemiver debugger.md | mtunique/TranslateProject | ec2d46c27797200f5615b98da8700bf5af35f1ae | [
"Apache-2.0"
] | null | null | null | translated/tech/20150104 How to debug a C or C++ program with Nemiver debugger.md | mtunique/TranslateProject | ec2d46c27797200f5615b98da8700bf5af35f1ae | [
"Apache-2.0"
] | null | null | null | 使用Nemiver调试器找出C/C++程序中的bug
================================================================================
如果你读过[my post on GDB][1],你就会明白我认为一个调试器对一段C/C++程序来说意味着多么的重要和有用。然而,如果一个像GDB的命令行对你而言听起来更像一个问题而不是一个解决方案,那么你也许会对Nemiver更感兴趣。[Nemiver][2] 是一款基于GTK+的独立图形化用于C/C++程序的调试器,同时它以GDB作为其后端。最令人佩服的是其速度和稳定性,Nemiver时一个非常可靠,具备许多优点的调试工具。
### Nemiver的安装 ###
基于Debian发行版,它的安装时非常直接简单如下:
$ sudo apt-get install nemiver
在Arch Linux中安装如下:
$ sudo pacman -S nemiver
在Fedora中安装如下:
$ sudo yum install nemiver
如果你选择自己变异,[GNOME website][3]中最新源码包可用。
最令人欣慰的是,它能够很好地与GNOME环境像结合。
### Nemiver的基本用法 ###
启动Nemiver的命令:
$ nemiver
你也可以通过执行一下命令来启动:
$ nemiver [path to executable to debug]
你会注意到如果在调试模式下执行编译(-g标志表示GCC)将会更有帮助。
还有一个优点是Nemiver的快速加载,所以你应该可以马上看到主屏幕的默认布局。

默认情况下,断点通常位于主函数的第一行。这样就可以空出时间让你去认识调试器的基本功能:

- Next line (mapped to F6)
- Step inside a function (F7)
- Step out of a function (Shift+F7)
- 下一行 (映射到F6)
- 执行内部行数(F7)
- 执行外部函数(Shift+F7) ## 我不确定这个保留哪个都翻译出来了 ##
但是由于我个人的喜好是“Run to cursor(运行至光标)”,该选项使你的程序运行精确至你光标下的行,并且默认映射到F11.
下一步,断点通常是容易使用的。最快捷的方式是使用F8设置一个断点在相应的行。但是Nemiver也有一个更富在的菜单在“Debug”项,这允许你在一个特定的函数,行数,二进制位置文件的位置,或者类似一个异常,分支或者exec的事件。

你也可以通过追踪来查看一个变量。在“Debug”选项,你可以通过命名来匹配一个表达式来检查。然后也可以通过将其添加到列表中以方便访问。这可能是最有用的一个功能虽然我从未因为浓厚的兴趣将鼠标悬停在一个变量来获取它的值。值得注意的是,将鼠标放置在相应位置时不生效的。如果想要让它更好地工作,Nemiver是可以看到结构并给所有成员的变量赋值。

谈到方便地访问信息,我也非常欣赏这个程序的平面布局。默认情况下,代码在上个部分,标签在下半部分。这授予你访问中断输出、文本追踪、断点列表、注册地址、内存映射和变量控制。但是注意到在“Edit”“Preferences”“Layout”下你可以选择不同的布局,包括动态修改。


自然而然,一旦你设置了所有短点,观察点和布局,您可以在“File”下很方便地保存以免你不小心关掉Nemiver。
### Nemiver的高级用法 ###
到目前为止,我们讨论的都是Nemiver的基本特征,例如,你马上开始喝调试一个简单的程序需要什么。如果你有更高的药求,特别是对于一些更佳复杂的程序,你应该会对接下来提到的这些特征更感兴趣。
#### 调试一个正在运行的进程 ####
Nemiver允许你连接到一个正在运行的进程进行调试。在“File”菜单,你可以过滤出正在运行的进程,并连接到这个进程。

#### 通过TCP连接远程调试一个程序 ####
Nemiver支持远程调试,当你在一台远程机器设置一个轻量级调试服务器,你可以通过调试服务器启动Nemiver从另一台机器去调试承载远程服务器上的目标。如果出于某些原因,你不能在远程机器上吗很好地驾驭Nemiver或者GDB,那么远程调试对于你来说将非常有用。在“File”菜单下,指定二进制文件、共享库的地址和端口。

#### 使用你的GDB二进制进行调试 ####
如果你想自行通过Nemiver进行编译,你可以在“Edit(编辑)”“Preferences(首选项)”“Debug(调试)”下给GDB制定一个新的位置。如果你想在Nemiver使用GDB的定制版本,那么这个选项对你来说是非常实用的。
#### 循序一个子进程或者父进程 ####
Nemiver是可以兼容一个子进程或者附近成的。想激活这个功能,请到“Debugger”下面的“Preferences(首选项)”。

总而言之,Nemiver大概是我最喜欢的没有IDE的调试程序。在我看来,它甚至可以击败GDB,并且[命令行][4]程序对我本身来说更接地气。所以,如果你从未使用过的话,我会强烈推荐你使用。我只能庆祝我们团队背后给了我这么一个可靠、稳定的程序。
你对Nemiver有什么见解?你是否也考虑它作为独立的调试工具?或者仍然坚持使用IDE?让我们在评论中探讨吧。
--------------------------------------------------------------------------------
via: http://xmodulo.com/debug-program-nemiver-debugger.html
作者:[Adrien Brochard][a]
译者:[disylee](https://github.com/disylee)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:http://xmodulo.com/author/adrien
[1]:http://xmodulo.com/gdb-command-line-debugger.html
[2]:https://wiki.gnome.org/Apps/Nemiver
[3]:https://download.gnome.org/sources/nemiver/0.9/
[4]:http://xmodulo.com/recommend/linuxclibook
| 28.055118 | 216 | 0.756666 | yue_Hant | 0.742026 |
b5de3fef526115f2d8c5b4f1c775772ecc0949d6 | 7,078 | md | Markdown | README.md | hvorovk/flask-lab-example | 58929fa7b3e1268a9c90d5ea43f80c2ad55e0d07 | [
"MIT"
] | null | null | null | README.md | hvorovk/flask-lab-example | 58929fa7b3e1268a9c90d5ea43f80c2ad55e0d07 | [
"MIT"
] | null | null | null | README.md | hvorovk/flask-lab-example | 58929fa7b3e1268a9c90d5ea43f80c2ad55e0d07 | [
"MIT"
] | null | null | null | # Инструменты и ссылки
## Ссылки на скачивание инструментов и примеров
- [Простой пример лабораторной](https://github.com/hvorovk/flask-lab-example)
- [Ссылка на скачивание Python](https://www.python.org/downloads/)
## Ссылки на документацию
- [Документация по языку Python3](https://docs.python.org/3/)
- [Документация по Flask](http://flask.pocoo.org/docs/0.12/)
## Учебники (дополнительная литература)
- [Викиучебник по Flask](https://ru.wikibooks.org/wiki/Flask)
- [Самоучитель по Python](https://pythonworld.ru/samouchitel-python)
- [Мега-учебник по Flask](https://habrahabr.ru/post/346306/)
- [Перевод официальной документации по Flask(версия 0.10.1)](http://flask-russian-docs.readthedocs.io/ru/latest/quickstart.html)
- [Памятка по virtualenv](https://eax.me/python-virtualenv/)
- [Документация по Jinja](http://jinja.pocoo.org/docs/2.10/)
- [Русская документация по Jinja](http://xgu.ru/wiki/Jinja2)
- [Небольшой самоучитель по Jinja](http://lectureswww.readthedocs.io/6.www.sync/2.codding/3.templates/jinja2.html)
- [Документация по Flask-SQLAlchemy](http://flask-sqlalchemy.pocoo.org/2.3/)
- [Установка virtualevwwrapper](http://virtualenvwrapper.readthedocs.io/en/latest/install.html)
# Краткая теория
**Python** - высокоуровневый язык программирования общего назначения, ориентированный на повышение производительности разработчика и читаемости кода. Синтаксис ядра Python минималистичен. В то же время стандартная библиотека включает большой объём полезных функций.
**Python** поддерживает несколько парадигм программирования, в том числе структурное, объектно-ориентированное, функциональное, императивное и аспектно-ориентированное. Основные архитектурные черты — динамическая типизация, автоматическое управление памятью, полная интроспекция, механизм обработки исключений, поддержка многопоточных вычислений и удобные высокоуровневые структуры данных. Код в Python организовывается в функции и классы, которые могут объединяться в модули (они в свою очередь могут быть объединены в пакеты).
**Flask** - фреймворк для создания веб-приложений на языке программирования Python, использующий набор инструментов Werkzeug, а также шаблонизатор Jinja2. Относится к категории так называемых микрофреймворков — минималистичных каркасов веб-приложений, сознательно предоставляющих лишь самые базовые возможности.
**Jinja2** - это шаблонизатор для языка программирования Python. Он подобен шаблонизатору Django, но предоставляет Python-подобные выражения, обеспечивая исполнение шаблонов в песочнице. Это текстовый шаблонизатор, поэтому он может быть использован для создания любого вида разметки, а также исходного кода.
**SQLAlchemy** - это программная библиотека на языке Python для работы с реляционными СУБД с применением технологии ORM. Служит для синхронизации объектов Python и записей реляционной базы данных. SQLAlchemy позволяет описывать структуры баз данных и способы взаимодействия с ними на языке Python без использования SQL.
### Hello World! на Flask
``` Python
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
```
Для запуска нам всего лишь нужно выполнить данный скрипт интерпретатором Python с установленными зависимостями.
```bash
python3 hello.py
```
Первой строчкой мы импортируем основной модуль микрофреймворка Flask, следующей строчкой создаем экзепляр класса, далее с помощью декоратора **@app.route("%path%")** мы указываем, что по данному адресу мы должны вызывать нашу функцию. Далее функция которая возвращает строку "Hello World!". И наконец вызываем запуск сервера.
Данный фреймворк можно спокойно использовать для маленьких сайтов, блогов. Когда например не охото тянуть Django (Гораздо больший фреймворк). Или когда нужно выводить статистику по программе в веб.
### Пример шаблона Jinja2
```html
<html>
<head>
<title>{{ title }}</title>
</head>
<body>
<h1>Hello, {{ user.username }}!</h1>
</body>
</html>
```
Для того чтобы вместо {{ user.username }}, появилось имя, нам необходимо вызвать функцию render'a у шаблонизатора, а так же передать в render, словарь с именем **user**, с ключом username, и значением %UserName%. После этого мы получим готовую html страничку(или любого другого формата, который поддерживает шаблонизатор).
Пример для вызова render'а из Flask
```python
from flask import Flask
app = Flask(__name__)
from flask import render_template
@app.route('/')
@app.route('/index')
def index():
user = {'username': 'Goose'}
return render_template('index.html', title='Home', user=user)
if __name__ == "__main__":
app.run()
```
# Порядок выполнения
1. Скачать и установить Python3 последней версии.
- Для Windows необходимо с сайта скачать нужный исполняемый файл и установить Python
- для Linux нужно воспользоваться пакетным менеджером системы и установить Python
2. Создать папку для будущего проекта.
3. Настраиваем виртуальное окружение с помощью virtualenvwrapper. [инструкция](http://virtualenvwrapper.readthedocs.io/en/latest/install.html)
4. В виртуальном окружении необходимо установить зависимости. Из данного репозитория нужно скачать файл requirements.txt. Даллее выполняем команду:
```bash
pip3 install -r requirements.txt
```
5. Необходимо импортировать существующую базу. Для этого выполняем команду:
```bash
flask-sqlacodegen --flask --outfile models.py mysql+pymysql://user-name:password@host:port/db-schema
```
- models.py - название файла в котором будут размещены модели.
- user-name - имя юзера для входа в систему
- password - пароль для этого пользователя
- host - адрес хоста на котором поднят mysql
- port - порт хоста на котором поднят mysql
- db-schema - нужная база данных
Пример модели:
```python
class Flat(db.Model):
__tablename__ = 'Flat'
id = db.Column(db.Integer, primary_key=True)
size = db.Column(db.Integer, nullable=False)
owner_id = db.Column(db.ForeignKey('Owner.id', ondelete='SET NULL', onupdate='CASCADE'), index=True)
house_id = db.Column(db.ForeignKey('House.id', ondelete='SET NULL', onupdate='CASCADE'), index=True)
num = db.Column(db.Integer, nullable=False)
house = db.relationship('House', primaryjoin='Flat.house_id == House.id', backref='flats')
owner = db.relationship('Owner', primaryjoin='Flat.owner_id == Owner.id', backref='flats')
```
6. Созадим необходимую структуру:
```bash
mkdir static/
mkdir templates/
```
7. Создадим основной файл приложения. Назовем его **app.py**
В нем необходимо написать:
```python
from flask import render_template
from flask import Flask
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index():
user = {'username': 'name'}
return render_template('index.html', title='Home', user=user)
if __name__ == "__main__":
app.run()
```
8. Создадим прстой шаблон в папку templates
```jinja
<html>
<head>
<title>{{ title }} - Microblog</title>
</head>
<body>
<h1>Hello, {{ user.username }}!</h1>
</body>
</html>
```
9. Запускаем наше приложение.
| 41.635294 | 528 | 0.755863 | rus_Cyrl | 0.824337 |
b5df1f69c84ac8ea5384ec22dcbf4d530e114910 | 8,279 | md | Markdown | packages/plugin-phone/README.md | ctg-api/spark-js-sdk | bcc9482f839d0cc159c05f1515bdf990e1bd23b5 | [
"Apache-2.0"
] | null | null | null | packages/plugin-phone/README.md | ctg-api/spark-js-sdk | bcc9482f839d0cc159c05f1515bdf990e1bd23b5 | [
"Apache-2.0"
] | null | null | null | packages/plugin-phone/README.md | ctg-api/spark-js-sdk | bcc9482f839d0cc159c05f1515bdf990e1bd23b5 | [
"Apache-2.0"
] | 1 | 2020-05-13T12:28:22.000Z | 2020-05-13T12:28:22.000Z | # Call
**Extends SparkPlugin**
## localMediaStream
Returns the local MediaStream for the call. May initially be `null`
between the time @{Phone#dial is invoked and the media stream is
acquired if [Phone#dial](#phonedial) is invoked without a `localMediaStream`
option.
This property can also be set mid-call in which case the streams sent to
the remote party are replaced by this stream. On success, the
[Call](#call)'s <localMediaStream:change> event fires, notifying any
listeners that we are now sending media from a new source.
## localMediaStreamUrl
Object URL that refers to [Call#localMediaStream](#calllocalmediastream). Will be
automatically deallocated when the call ends
## remoteMediaStream
Access to the remote party’s `MediaStream`. `null` before connected.
## remoteMediaStreamUrl
Object URL that refers to [Call#remoteMediaStream](#callremotemediastream). Will be
automatically deallocated when the call ends
## sendingAudio
Indicates if the client is sending audio
## sendingVideo
Indicates if the client is sending video
## receivingAudio
Indicates if the client is receiving audio
## receivingVideo
Indicates if the client is receiving video
## status
<b>initiated</b> - Offer was sent to remote party but they have not yet accepted <br>
<b>ringing</b> - Remote party has acknowledged the call <br>
<b>connected</b> - At least one party is still on the call <br>
<b>disconnected</b> - All parties have dropped <br>
## answer
Answers an incoming call. Only applies to incoming calls. Invoking this
method on an outgoing call is a noop
**Parameters**
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
- `options.constraints` **MediaStreamConstraints**
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## acknowledge
Use to acknowledge (without answering) an incoming call. Will cause the
initiator's Call instance to emit the ringing event.
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## hangup
Disconnects the active call. Applies to both incoming and outgoing calls.
This method may be invoked in any call state and the SDK should take care
to tear down the call and free up all resources regardless of the state.
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## decline
Alias of [Call#reject](Call#reject)
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## oneFlight
Rejects an incoming call. Only applies to incoming calls. Invoking this
method on an outgoing call is a no-op.
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## startSendingAudio
Starts sending audio to the Cisco Spark Cloud
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## startSendingVideo
Starts sending video to the Cisco Spark Cloud
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## toggleReceivingAudio
Toggles receiving audio to the Cisco Spark Cloud
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## toggleReceivingVideo
Toggles receiving video to the Cisco Spark Cloud
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## toggleSendingAudio
Toggles sending audio to the Cisco Spark Cloud
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## toggleSendingVideo
Toggles sending video to the Cisco Spark Cloud
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## sendFeedback
Sends feedback about the call to the Cisco Spark cloud
**Parameters**
- `feedback` **[Types~Feedback](#typesfeedback)**
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## stopSendingAudio
Stops sending audio to the Cisco Spark Cloud. (stops broadcast immediately,
even if renegotiation has not completed)
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## stopSendingVideo
Stops sending video to the Cisco Spark Cloud. (stops broadcast immediately,
even if renegotiation has not completed)
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
# Types~Feedback
Payload for [Call#sendFeedback](#callsendfeedback)
**Properties**
- `userRating` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Number between 1 and 5 (5 being best) to let
the user score the call
- `userComments` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Freeform feedback from the user about the
call
- `includeLogs` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** set to true to submit client logs to the
Cisco Spark cloud. Note: at this time, all logs, not just call logs,
generated by the sdk will be uploaded to the Spark Cloud. Care has been taken
to avoid including PII in these logs, but if you've taken advantage of the
SDK's logger, you should make sure to avoid logging PII as well.
# mediaDirection
Indicates the direction of the specified media type for the specified
participant
**Parameters**
- `mediaType` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `participant` **Types~LocusParticipant**
Returns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** One of `sendonly`, `recvonly`, `sendrecv`, or `inactive`
# Phone
**Extends SparkPlugin**
## connected
connected Indicates whether or not the WebSocket is connected
## registered
indicates whether or not the client is registered with the Cisco Spark
cloud
## register
Registers the client with the Cisco Spark cloud and starts listening for
WebSocket events.
Subsequent calls refresh the device registration.
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## deregister
Disconnects from WebSocket and unregisters from the Cisco Spark cloud.
Subsequent calls will be a noop.
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
## createLocalMediaStream
Create a MediaStream to be used for video preview.
Note: You must explicitly pass the resultant stream to [Call#answer()](Call#answer())
or [Phone#dial()](Phone#dial())
**Parameters**
- `options` **([Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | MediaStreamConstraints)**
- `options.constraints` **MediaStreamConstraints**
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<MediaStream>**
## \_onLocusEvent
Determines if the <call:incoming> event should be emitted for the
specifed [Types~MercuryEvent](Types~MercuryEvent)
**Parameters**
- `event` **Types~MercuryEvent**
Returns **[undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)**
## dial
Place a call to the specified dialString. A dial string may be an email
address or sip uri.
**Parameters**
- `dialString` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
- `options.constraints` **MediaStreamConstraints**
- `options.localMediaStream` **MediaStream** if no stream is specified, a
new one will be created based on options.constraints
Returns **[Call](#call)**
| 32.984064 | 166 | 0.766638 | eng_Latn | 0.791 |
b5dfa3470b2df0c34e587d4de2ab674cf7cc7966 | 240 | md | Markdown | README.md | aaarkadev/send_token_to_amazon | fb040350f6ec9e1a267644fb165a90983e343f9b | [
"MIT"
] | null | null | null | README.md | aaarkadev/send_token_to_amazon | fb040350f6ec9e1a267644fb165a90983e343f9b | [
"MIT"
] | null | null | null | README.md | aaarkadev/send_token_to_amazon | fb040350f6ec9e1a267644fb165a90983e343f9b | [
"MIT"
] | null | null | null | # send_token_to_amazon
very simple php call amazon api AWS4-HMAC-SHA256
example:
$ret=send_token_to_amazon('12312312304DC75B8D6E8200DFF12356E8DAEACEC428B427E9518741C92C6123','arn:aws:sns:us-west-2:012380123123:app/GCM/test_Android');
| 30 | 152 | 0.833333 | yue_Hant | 0.307017 |
b5dfb90968fa1d2bbb8e0235e373cf57ce8b9cd0 | 6,645 | md | Markdown | 2015/proposals/banaszkiewicz-piotr-server.md | colour-science/GSoC-NumFOCUS | 46637f6e132b75f176a0dcb929a00dbfceb248c3 | [
"BSD-3-Clause"
] | 390 | 2015-03-06T13:56:45.000Z | 2022-03-18T20:21:29.000Z | 2015/proposals/banaszkiewicz-piotr-server.md | GenevieveBuckley/gsoc | 318f864f1342f918adba0ee01290948caa80dde7 | [
"BSD-3-Clause"
] | 314 | 2015-03-07T03:40:59.000Z | 2022-03-08T08:08:04.000Z | 2015/proposals/banaszkiewicz-piotr-server.md | GenevieveBuckley/gsoc | 318f864f1342f918adba0ee01290948caa80dde7 | [
"BSD-3-Clause"
] | 333 | 2015-03-07T20:34:39.000Z | 2022-03-27T15:41:28.000Z | # Installation-test scripts: aggregation server, script enhancements
## Abstract
While Software Carpentry workshops gather a lot of feedback regarding
instructors' teaching, not much attention was drawn to students' computers and
their issues with installation of open source software used during workshops.
This project will focus on bringing a working server for aggregating of
Software Carpentry installation testing scripts with additional goal of
providing easier and better experience for students using the script itself.
## Features
The server should be able to aggregate incoming (via REST API) data from
installation testing script.
The server should allow Software Carpentry admins to view statistics from
uploaded data.
Installation script should upload diagnostic data consisting of:
* operating system information
* installed packages and their versions
* failed packages checks and error messanges
Additionally, the data may be matched against workshop
[reference package list](https://github.com/wking/swc-setup-installation-test/issues/2).
## Technical Details
The server will be implemented using [Django](https://www.djangoproject.com/)
and [SQLite](https://docs.djangoproject.com/en/1.7/ref/databases/) database
for lower footprint and easier maintainance (and because I feel comfortable
using them).
API, in a RESTful fashion, will be implemented using
[django-tastypie](http://tastypieapi.org/).
Rough database structure:
* system information table
* operating system family (Windows / MacOSX / Linux / Other)
* OS version (8.1 / 10.9 / Ubuntu 14.04 / ?)
* Hardware architecture (x86_64 / x86 / Other)
* package checks table
* package name
* requested package version
* found package version
* failed check?
* fail reason
Every entry in both tables will be additionally assigned a
[universally unique identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier).
Every single UUID will correspond to one diagnostic data upload.
Additionally we might want to store workshop-specific data, ie.:
* track submissions from specific workshops
* track packages requested for specific workshop.
Enhancements to the installation testing script will use standard tools
available in Python Standard Library and on students' systems (like, for
example, `uname`).
I want to use Mozilla's
[Metrics-Graphics](https://github.com/mozilla/metrics-graphics) for charts and
graphs, because this JavaScript graphing seems actively developed.
## Schedule of Deliverables
A word on my availability:
In the month of June I have to prepare for exams. I'll make sure to be
spending at least 20hrs per week on this project.
My exams are not scheduled yet, but the timeslot for them is
**June 23rd - July 7th**. In this time I won't be able to work on the project.
However, most likely I'll be over with the exams by the end of June - in that
case I'll resume working on the project as soon as I pass everything.
First I want to start by editing the installation testing script. I want to
enhance its capabilities in collecting diagnostic data from the system.
Currently, diagnostic output from the script on my system looks like this:
```
==================
System information
==================
os.name : posix
os.uname : ('Linux', 'zenbook', '3.13.0-46-generic', '#79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015', 'x86_64', 'x86_64')
platform : linux2
platform+ : Linux-3.13.0-46-generic-x86_64-with-debian-jessie-sid
linux_distribution : ('debian', 'jessie/sid', '')
prefix : /home/piotr/workspace/anaconda
exec_prefix : /home/piotr/workspace/anaconda
executable : /home/piotr/workspace/anaconda/bin/python
version_info : sys.version_info(major=2, minor=7, micro=9, releaselevel='final', serial=0)
version : 2.7.9 |Anaconda 2.1.0 (64-bit)| (default, Dec 15 2014, 10:33:51)
```
It's very close to what I suggest in the database layout, but it's not entirely
the same. To cover differences:
* for operating system family I'd use `platform.system()` instead of `os.name`
or `platform.name()` (to avoid matching, for example, "posix" to "Linux")
* to discover exact system version I'd use `platform.linux_distribution()` or
`platform.release()` unless a better way exists)
* to discover CPU architecture: `platform.processor()` instead of
`platform.uname()`.
### May 25th - June 7th
Implement gathering of operating system diagnostic data. Start testing that
script on at least one MacOSX machine, couple Windows boxes, and as many Linux
boxes as possible.
### June 8th - June 21st
Continue testing. Implement sending diagnostic data in the installation testing
script. Change the database schema if required.
### June 22nd - July 5th
I'm unavailable due to exams.
### July 6th - July 19th
Implement the REST API. Provide good (100%) test coverage. Start working on
a front end for Software Carpentry admins. Most likely graphs, charts, and so
on will take the biggest amount of work at this point.
### July 20th - August 2nd
Finish up UI, probably have a round of UX testing with Software Carpentry admins.
### August 3rd - August 16th
Finish up automated testing and UX-testing. Write documentation.
### August 17th - August 21st 19:00 UTC
In case the project finishes up earlier, I want to spend my time working on
installation script (see
https://github.com/wking/swc-setup-installation-test/issues/2).
## Future works
I've been involved with Software Carpentry for almost a year now. I'm
a Software Carpentry instructor, Software Carpentry Foundation member and
I don't plan to leave.
## Open Source Development Experience
2010-2012: cooperation with
[Oregon State University Open Source Lab](http://osuosl.org/):
[Ganeti Web Manager](http://ganeti-webmgr.readthedocs.org/en/latest/) project
(during two GSoCs and one Google Code-In).
GSoC 2014: [Peer instruction](https://github.com/pbanaszkiewicz/pitt) project
for Mozilla Science Lab (and Software Carpentry).
Since January 2015: [Amy](https://github.com/swcarpentry/amy) for Software
Carpentry.
## Academic Experience
I'm studying Automatics Control and Robotics at
[AGH-UST](http://www.agh.edu.pl/en) in Krakow, Poland. I know understand quite
a bit of Mathematics, including optimization theory, control theory,
probability, and others. Additionally I've got to know many industrial
automatics systems (PLCs, robots, etc.), I'm also good at Matlab. I posses a
LabView certificate (CLAD).
## Why this project?
Because I liked it. :) And I know the resulting server will be quite useful
for Software Carpentry.
| 36.916667 | 129 | 0.756358 | eng_Latn | 0.980548 |
b5e0a5fcbf0f22966fd0c0fc7dea8a61a08b4a1f | 28 | md | Markdown | README.md | ozansener/watchemall | 333cc9db0f98bda22670d8680b1e51520c1be89c | [
"MIT"
] | 1 | 2015-12-22T23:09:52.000Z | 2015-12-22T23:09:52.000Z | README.md | ozansener/watchemall | 333cc9db0f98bda22670d8680b1e51520c1be89c | [
"MIT"
] | null | null | null | README.md | ozansener/watchemall | 333cc9db0f98bda22670d8680b1e51520c1be89c | [
"MIT"
] | null | null | null | # watchemall
Wathch 'Em All
| 9.333333 | 14 | 0.75 | eng_Latn | 0.746229 |
b5e0ba2ec8f2644c4b7ff8da1afc8963564188f0 | 27 | md | Markdown | screenshot/README.md | xinye83/rpi-playground | d4165d9c4a6f08f7a0b1f2346bc58af6a18bd2ca | [
"MIT"
] | null | null | null | screenshot/README.md | xinye83/rpi-playground | d4165d9c4a6f08f7a0b1f2346bc58af6a18bd2ca | [
"MIT"
] | null | null | null | screenshot/README.md | xinye83/rpi-playground | d4165d9c4a6f08f7a0b1f2346bc58af6a18bd2ca | [
"MIT"
] | null | null | null | ## v0.7

| 6.75 | 17 | 0.444444 | vie_Latn | 0.620504 |
b5e0f46e20c5ac8084dd831a2c72542a45812a31 | 2,775 | md | Markdown | docs/about/about.md | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | docs/about/about.md | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | docs/about/about.md | dominic-dev/pyformsd | 23e31ceff2943bc0f7286d25dd14450a14b986af | [
"MIT"
] | null | null | null | # About
## License
***************************
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## Rationale behind the framework
***************************
The development of this library started with the necessity of allowing users with low programming skills to edit parameters of my python scripts.
The idea was to transform scripts which had already been developed into GUI applications with a low effort and in a short time.
For example in my computer vision applications in the majority of the times there were variables that had to be set manually in the scripts for each video, to adjust the thresholds, blobs sizes, and other parameters to the environment light conditions... To test each set of parameters the script had to be executed.
With GUI applications, users would be able to set the parameters using a GUI interface and visualize the results instantly without the need of restarting the script. That was the idea.
After looking into the several python options for GUI interfaces, PyQt was the one that seemed the best tool for a fast development with the QtDesigner, but after a while developing in Qt, switching between the designer and the python IDE was becoming too costly in terms of time, because the interfaces were constantly evolving, and it was tedious, because GUI controls were repeated several times.
Being a Django developer, I did get inspiration on it for this framework. In the [Django](https://www.djangoproject.com/) Models we just need to define the type of variables and their disposition in the form (in ModelAdmin) to generate a HTML form for data edition.
For the GUIs that I wanted to build for my python scripts, I would like to have the same simplicity, because I did wanted to focus on the algorithms and not on GUIs developing. | 73.026316 | 399 | 0.788108 | eng_Latn | 0.996245 |
b5e23f91f2cc1147863355bfbc5c47da6952ce57 | 1,416 | md | Markdown | assets/docs/md/SGGS/Ang 133.md | bogas04/SikhJS | 234290bbb9a873593e5d2952eba98e49ed16ffe1 | [
"MIT"
] | 31 | 2015-09-26T14:22:26.000Z | 2020-09-30T14:35:48.000Z | assets/docs/md/SGGS/Ang 133.md | bogas04/SikhJS | 234290bbb9a873593e5d2952eba98e49ed16ffe1 | [
"MIT"
] | 126 | 2015-09-26T14:28:10.000Z | 2018-06-02T19:39:40.000Z | assets/docs/md/SGGS/Ang 133.md | bogas04/SikhJS | 234290bbb9a873593e5d2952eba98e49ed16ffe1 | [
"MIT"
] | 17 | 2015-09-26T15:45:09.000Z | 2020-11-14T13:10:52.000Z | # Œ 133 ‰
---
AwvY pwrbRhm kI qw iPir kwhy Jury ]2] crn syv sMq swD ky sgl mnorQ
pUry ]3] Git Git eyku vrqdw jil Qil mhIAil pUry ]4] pwp ibnwsnu
syivAw pivqR sMqn kI DUry ]5] sB CfweI Ksim Awip hir jip BeI TrUry
]6] krqY kIAw qpwvso dust muey hoie mUry ]7] nwnk rqw sic nwie hir
vyKY sdw hjUry ]8]5]39]1]32]1]5]39]
bwrh mwhw mWJ mhlw 5 Gru 4
<> siqgur pRswid ]
ikriq krm ky vICuVy kir ikrpw mylhu rwm ] cwir kuMt dh ids BRmy Qik
Awey pRB kI swm ] Dynu duDY qy bwhrI ikqY n AwvY kwm ] jl ibnu swK
kumlwvqI aupjih nwhI dwm ] hir nwh n imlIAY swjnY kq pweIAY
ibsrwm ] ijqu Gir hir kMqu n pRgteI BiT ngr sy gRwm ] sRb sIgwr
qMbol rs sxu dyhI sB Kwm ] pRB suAwmI kMq ivhUxIAw mIq sjx siB jwm
] nwnk kI bynµqIAw kir ikrpw dIjY nwmu ] hir mylhu suAwmI sMig pRB
ijs kw inhcl Dwm ]1] cyiq goivMdu ArwDIAY hovY Anµdu Gxw ] sMq jnw
imil pweIAY rsnw nwmu Bxw ] ijin pwieAw pRBu Awpxw Awey iqsih gxw
] ieku iKnu iqsu ibnu jIvxw ibrQw jnmu jxw ] jil Qil mhIAil pUirAw
rivAw ivic vxw ] so pRBu iciq n AwveI ikqVw duKu gxw ] ijnI rwivAw
so pRBU iqMnw Bwgu mxw ] hir drsn kMau mnu locdw nwnk ipAws mnw ]
cyiq imlwey so pRBU iqs kY pwie lgw ]2] vYswiK DIrin ikau vwFIAw ijnw
pRym ibCohu ] hir swjnu purKu ivswir kY lgI mwieAw Dohu ] puqR klqR n
sMig Dnw hir AivnwsI Ehu ] plic plic sglI mueI JUTY DMDY mohu ]
ieksu hir ky nwm ibnu AgY leIAih Koih ] dXu ivswir ivgucxw pRB ibnu
Avru n koie ] pRIqm crxI jo lgy iqn kI inrml soie ]
####
| 52.444444 | 69 | 0.740819 | lmo_Latn | 0.87763 |
b5e2420dad4fe740bd17023f844ec258753073ff | 1,895 | md | Markdown | _posts/TIL/2018-07-19-TIL.md | Oraindrop/Oraindrop.github.io | a4a1fbb112e84eb6297655bd5c2646ccd556f4c4 | [
"MIT"
] | null | null | null | _posts/TIL/2018-07-19-TIL.md | Oraindrop/Oraindrop.github.io | a4a1fbb112e84eb6297655bd5c2646ccd556f4c4 | [
"MIT"
] | 1 | 2020-06-20T01:23:22.000Z | 2020-06-20T01:23:22.000Z | _posts/TIL/2018-07-19-TIL.md | Oraindrop/oraindrop.github.io | 4d687286cc301e8ae70d2b3f2c8690b7d4b54a0c | [
"MIT"
] | null | null | null | ---
layout: post
title: "TIL(20180718)"
author : choising
categories: TIL
tags: TIL slack git sourcetree editor jekyll githubpage js
---
# 20180718
## Today I Learned
- Slack
+ 파일 공유 및 메신저 역할을 하는 협업 도구. 검색이 정말 잘되어 있고, 다양한 어플들(예를들면 구글드라이브)과 연동이 우수한 것으로 알고 있음.
+ 차후 Slack에 대해서도 좀 더 알아보자.
+ 2016년 졸업프로젝트 할 때 파일 공유 목적으로 간단하게 사용해봤었는데 잘 기억이 안난다.
+ 윈도우 데스크탑용 어플을 설치했고, 아이폰에는 이미 설치가 되어 있었다.
- git / github
+ 강력하고 아주 세상 유명한 코드 관리 및 협업 도구.
+ 여태 깃, 깃허브 사용도 못하는 건 말이 안된다. 자극 받아야 한다.
+ 레파지토리 생성하고 소스트리를 통한 커밋, 푸쉬해봤다.
+ git-scm 에서 윈도우 데스크탑용 앱 설치하고 git bash로 뭔가 해보려고 했는데 엄청 안된다.
- Sourcetree
+ git client GUI.
+ 커맨드로 하는 것 보다 세상 편하게 느껴진다. 일단 이것부터 익숙해지는게 우선.
- Visual Studio Code
+ MS가 개발한 에디터.
+ 울트라 에디터, 아크로 에디터에서 제공하던 강력한 기능 일부가 지원되는 걸로 보이고 무척 가벼운 느낌을 받음.(실제로 그런지는 모름)
- jekyll을 이용한 github 블로그 생성
+ jekyll을 설치했다. 블로그를 돕는 도구같음 정확히 뭔지 모르겠다.
+ 로컬에 띄우고, 이후에 github랑 연동까지는 완료. 테마 바꾸는건 아직 못했다. 해야지.
+ Ruby 도 설치했다.
+ `마크다운` 문법 아주 조금 공부했다. 얘도 꽤 강력한 것 같아 보인다. 사용에 익숙해 지자.
+ 좀 더 공부해서 뭔지 좀 알면 설치 과정 및 github 연동과정을 포스팅 해보자. 다른 windows 도구 설치도 마찬가지고. 왜냐면 내가 무지해서 그런지 무척 힘들었음.
- Code Rules
+ 앞으로도 한참은 코딩 표준, 룰 등을 접하게되면 그런게 없으니 자유로이 코딩이 가능하다고 궤변을 늘어놓던 이전 회사가 떠오를 것 같다.
+ `블록 깊이 2단계 이하` 이거 지키기 엄청 어려울 것 같다 신난다. else if 남발도 안좋다고 하셨는데, 어떻게 대체해야 하지.
- javascript
+ 객체지향, 스크립트 언어, 웹페이지의 동적 자원을 담당.
+ java랑 아무 관련이 없으며 그 당시 java가 인기가 있었기 때문에 javascript 라는 사실은 놀랍군.
+ 또, 인상깊었던 건 변수 선언 시 var / let / const 사용하지 않았음에도 error가 안난걸 본 것.
+ js는 진짜 이상해서 어렵다. 나도 처음 배울땐 엄청 쉬운지 알았는데. 비동기식으로 동작하는 것, Callback 이거 진짜 어려웠다.
+ 나의 js 스킬은 2016년 웹프로그래밍1 수강할 때 보다도 분명하게 퇴화했다. 분명 회사에서 가장 많이 접한게 js 랑 jquery 였던 것 같은데, else if 남발해서그런가.
- TIL (Today I Learned)
+ TIL을 시작했다. 꾸준함이 제일 중요.
+ 시간이 안되면 짧게라도. 이걸 쓰는 시간도 반드시 고려하는 습관을 들이는게 중요할 것 같다.
## TO-DO
- 구구단 다양하게 구현.
- 모래시계 다양하게 구현.
- 온라인 (git, html/css, js, java) 강의 듣기.
- 부스트코스 다시 시작.
| 33.245614 | 107 | 0.642744 | kor_Hang | 1.00001 |
b5e3b5d55114bbd2895c8ca88a8a557b273cf89a | 449 | md | Markdown | catalog/elf-yome-to-hajimeru-isekai-ryoushu-seikatsu/en-US_elf-yome-to-hajimeru-isekai-ryoushu-seikatsu-light-novel.md | htron-dev/baka-db | cb6e907a5c53113275da271631698cd3b35c9589 | [
"MIT"
] | 3 | 2021-08-12T20:02:29.000Z | 2021-09-05T05:03:32.000Z | catalog/elf-yome-to-hajimeru-isekai-ryoushu-seikatsu/en-US_elf-yome-to-hajimeru-isekai-ryoushu-seikatsu-light-novel.md | zzhenryquezz/baka-db | da8f54a87191a53a7fca54b0775b3c00f99d2531 | [
"MIT"
] | 8 | 2021-07-20T00:44:48.000Z | 2021-09-22T18:44:04.000Z | catalog/elf-yome-to-hajimeru-isekai-ryoushu-seikatsu/en-US_elf-yome-to-hajimeru-isekai-ryoushu-seikatsu-light-novel.md | zzhenryquezz/baka-db | da8f54a87191a53a7fca54b0775b3c00f99d2531 | [
"MIT"
] | 2 | 2021-07-19T01:38:25.000Z | 2021-07-29T08:10:29.000Z | # Elf Yome to Hajimeru Isekai Ryoushu Seikatsu

- **type**: light-novel
- **original-name**: エルフ嫁と始める異世界領主生活
- **start-date**: 2016-01-09
## Tags
- fantasy
## Authors
- Nardack (Art)
- Washinomiya
- Daijin (Story)
## Links
- [My Anime list](https://myanimelist.net/manga/95753/Elf_Yome_to_Hajimeru_Isekai_Ryoushu_Seikatsu)
| 20.409091 | 102 | 0.703786 | fin_Latn | 0.086819 |
b5e43aa55e2c1daaee7654621b080890eb6d28e3 | 6,827 | md | Markdown | _posts/2019-02-06-Download-teamviewer-70-manual.md | Ozie-Ottman/11 | 1005fa6184c08c4e1a3030e5423d26beae92c3c6 | [
"MIT"
] | null | null | null | _posts/2019-02-06-Download-teamviewer-70-manual.md | Ozie-Ottman/11 | 1005fa6184c08c4e1a3030e5423d26beae92c3c6 | [
"MIT"
] | null | null | null | _posts/2019-02-06-Download-teamviewer-70-manual.md | Ozie-Ottman/11 | 1005fa6184c08c4e1a3030e5423d26beae92c3c6 | [
"MIT"
] | null | null | null | ---
layout: post
comments: true
categories: Other
---
## Download Teamviewer 70 manual book
Not that I'm making her life is on the line, her hand tightened painfully on her sister's hand. But it's customary to go armed when teamviewer 70 manual not in places like Franklin. They were forbidden to enter Roke "All right," he agreed, where he had taken to shaving teaching. A cover in the top of Wellington's chest slid aside to reveal a small display screen on which the figures of Sirocco and Colman appeared, and broke in pieces the boats in teamviewer 70 manual to obtain the iron "What makes you think that women are a natural resource. Tall and lanky indicated one of two identical orange-and-brown-striped couches facing each other across a football-field-size marble-and-glass cocktail table. Come on, 509; "My aunt Lilly didn't think so. The Two Sharpers who cheated each teamviewer 70 manual Fellow dccccxi " teamviewer 70 manual Tom?' I asked and went cold, and how is yourself, took out therefrom six bags full of gold and said to me, the thought of teamviewer 70 manual trying to escape would teamviewer 70 manual enter his mind seriously, her self-infatuation, and by the Stockholm Workman's Union to the crew! "Toast done twice. ] So does Curtis. Maybe you're another within a minute of their first encounter, and when El Merouzi saw him, thou killest me and killest my family, almost an awesome, i, a intensity. pace. the coast of Finmark since 1864 belongs to quite another species, although such intimate contact would make his stomach churn. He was looking back at Lassinius he attempted, the lamp hit the wall were 17 lodias of the Kerils company who tooke his part, some clearвhad been fixed to the flanking walls and to the ceiling, the more chance we'll have of figuring teamviewer 70 manual all the teamviewer 70 manual Their expression seemed oddly out of character with the monologue she'd just delivered. "While my driver harnessed the dogs for the journey home, just held on pleasantly but firmly, press my face to her naked shoulder in moderation, let them tell us how it happened otherwise, and she stars. Perhaps because by now I know you a little! She read aloud the name of the exhibition, chilled and sweet. Now it of the _tjufjo_. All the people "At least we don't give out orders for other people to take our risks for us," Nanook said, Polly heard a fusillade that originated nearer than the first. frozen mould, ' Let each of you confess his sins. Bindles, there, they might never have been more than clients to me, "You must return to your ship," they insist, she shoved and shook it out of her way, since you know mine, by the ordinance of God the Most High, not as it is half species with a high degree of luxuriance, he scheduled more time every day with the phone books, for instance, the wedding should be news, not really know every clutched in the other! 451 Most of the natives who have come into close contact with the that of any other country, but to Micky this time. Had he ever thought he could get away with this? She looked at her vanilla "When?" When at last teamviewer 70 manual arrived, Leilani's experience tiger. "No idea. The following year a new attempt was made, so that we had teamviewer 70 manual wind in our faces. Everything that can happen does happen, but in a different spirit from when Amstelodamensium Historia_ (Amst. teamviewer 70 manual was Maddoc's playpen. " He moves faster and more boldly, you serve me. In 1637 he came to the western mouth-arm of the Lena, even teamviewer 70 manual I'm agreeable to it, learning teamviewer 70 manual their on the Ed Sullivan Show, but be didn't die every place I am. You don't have other symptoms of Teamviewer 70 manual disease. braking; on board, the twins remind him of his lost mother, close to the floor. This good way into Siberia, and a number of growths not known in their natural "Oh; not a lot, barely audible above the wind. aliens. " D! magnetical and meteorological observations. Brit is not milk. She found it inconceivable. the underside of the vehicles on the upper platform of this double-deck automobile carrier. searched her dresser drawers and turned out the contents of teamviewer 70 manual purse, an upper lip long enough to countries of Europe. " I fled. For this the Government fitted out two vessels, the tears flow ever, Anieb spoke with his voice, so no one would suspect. " middle of April, as for dust-frosted windows. She sank teamviewer 70 manual kneeling. prove to be a relentless haunting presence that gave him no peace. Shame. But it takes some effort to remember you're a priest, 1879. ate it. We'll do all we can to minimize social competition among the women for the men. 405 "You provide rationality?" Micky rinsed the last of the dishes. For another, "All right," and walked to the door, the Master Hand, and of sorrow that had impressed her before. Like a foxtail bramble, shouldn't we help teamviewer 70 manual old green gal in single self-dead seal is to be found in the "rookery," where there of this scene and seems to trail the whole world behind her as if it were but a cloak. I'll see you out. _The Three Voyages of William Barents_, a favourite haunt for ptarmigan attained. "The bullet didn't actually penetrate her head," Teamviewer 70 manual said. inspired a measure of optimism, i, incompatible in their habits and desires, clean out, possibly blue. This time they wintered in 1834-35 on the south side of Matotschkin many cities, she listened to the leaves when the wind rustled them or stormed in the I killed time earlier tonight reading the promo teamviewer 70 manual on this place, which teamviewer 70 manual that and five-hundred-foot tidal waves would rock and swamp the coast, and Old Yeller began to paw through these, it resists his muscle and his mind. sister-becoming. 2, it father would sooner teamviewer 70 manual later come, "The king biddeth thee in weal. Fossil Plant teamviewer 70 manual Mogi--Leaf of _Zelkova Keakii_, the twins remind him of his lost mother. Even keeping his eyes open was tiring. "Hell, you've led a clean. In the course of the day we had physician preferred to use. but then freedom? "Yes, or Constance Tavenall-no doubt soon to cleanse herself of the name Sharmer-stared wings. It's a thinly teamviewer 70 manual deportation order. "Gift's taking whatever comes. They crossed a courtyard with a well in it. I did have one, because this is the answer they expect and the only one "How do you like it?" which brought him to 78 deg, see what you can do, as it appears the brig, which must mean this was a single-occupant john, "Of him who gave thee the wine, and of sorrow that had impressed her before, thus in quite a different way had foure and twentie men in them, i. such quantity that it was an obstacle to our voyage. | 758.555556 | 6,733 | 0.787169 | eng_Latn | 0.999909 |
b5e50948cdc544db5a4c0338628aee476efff931 | 1,110 | md | Markdown | src/posts/2018-09-27-react-init.md | cristofer-dev/cristofer.io.v3 | 1f06f7f45ba62c7e0c263ec41f1a4adf4a86e046 | [
"MIT"
] | null | null | null | src/posts/2018-09-27-react-init.md | cristofer-dev/cristofer.io.v3 | 1f06f7f45ba62c7e0c263ec41f1a4adf4a86e046 | [
"MIT"
] | 6 | 2018-04-10T22:34:21.000Z | 2019-01-05T00:48:56.000Z | src/posts/2018-09-27-react-init.md | cristofer-dev/cristofer.io.v3 | 1f06f7f45ba62c7e0c263ec41f1a4adf4a86e046 | [
"MIT"
] | null | null | null | ---
path: '/react-init'
date: '2018-09-22'
title: 'React init'
image: react.svg
---
Configuración inicial de react app
## Instrucciones
```bash
# Babel
npm i -D @babel/core @babel/cli @babel/preset-env
# React
npm i -S react react-dom
npm i -D @babel/preset-react
# React router
npm i -S react-router-dom
# webpack
npm i -D webpack webpack-cli
npm i -D webpack-dev-server
# html-webpack-plugin
npm i -D html-webpack-plugin
# mini-css-extract-plugin
npm i -D mini-css-extract-plugin
# babel-loader
npm i -D babel-loader
# css-loader
npm i -D css-loader
# file-loader
npm i -D file-loader
```
* [babeljs](https://babeljs.io/docs/en/usage)
* [webpack](https://webpack.js.org/guides/getting-started/)
* [html-webpack-plugin](https://webpack.js.org/plugins/html-webpack-plugin/)
* [mini-css-extract-plugin](https://webpack.js.org/plugins/mini-css-extract-plugin/)
* [babel-loader](https://webpack.js.org/loaders/babel-loader/)
* [css-loader](https://webpack.js.org/loaders/css-loader/)
* [file-loader](https://webpack.js.org/loaders/file-loader/)
## Extras
* i18next
* Linter
* fontAwesome
* Gráficos
| 19.473684 | 84 | 0.712613 | kor_Hang | 0.444353 |
b5e69c5ea444d791aa1949db52b6bef5362e42b5 | 315 | md | Markdown | README.md | Suomm/dormitory-management-system | 341c296be4350b5fdf10d2a37e26ee715d899598 | [
"Apache-2.0"
] | 2 | 2020-12-11T01:50:41.000Z | 2020-12-23T14:05:53.000Z | README.md | Suomm/dormitory-management-system | 341c296be4350b5fdf10d2a37e26ee715d899598 | [
"Apache-2.0"
] | null | null | null | README.md | Suomm/dormitory-management-system | 341c296be4350b5fdf10d2a37e26ee715d899598 | [
"Apache-2.0"
] | 1 | 2020-12-23T14:05:58.000Z | 2020-12-23T14:05:58.000Z | 天津师范大学化学学院权益保障部宿舍管理系统
==================================
# 项目介绍 #
简单易用、操作方便的部门事务系统。
# 主要功能 #
* 部门成员、宿舍、任务、公告管理。
* 发布并记录每周的查宿任务。
* 自动分析宿舍成绩生成汇总文件。
* 根据文本内容生成指定格式的查宿周报。
# 使用说明 #
> 会随着版本的发布更新到百度云盘,敬请期待!
# 捐赠支持 #
开源项目不容易,希望可以得到你们的好评,如果觉得项目对您有所帮助,不妨捐赠支持作者持续开发与维护。
 | 13.695652 | 49 | 0.650794 | yue_Hant | 0.837072 |
b5e790c1abed57b51c2e0068bef04162b1782384 | 15 | md | Markdown | README.md | Lucasdvs10/Dark-House | 086dfea1cc79a31d28df1296ee3fa068eb94afd2 | [
"MIT"
] | 1 | 2022-01-14T14:16:44.000Z | 2022-01-14T14:16:44.000Z | README.md | GameDevMaua/Dark-House | 48bb47101777d60b641e2040b6dcddaf627f821e | [
"MIT"
] | null | null | null | README.md | GameDevMaua/Dark-House | 48bb47101777d60b641e2040b6dcddaf627f821e | [
"MIT"
] | 1 | 2022-01-13T22:27:09.000Z | 2022-01-13T22:27:09.000Z | # Dark-House
| 5 | 12 | 0.6 | glg_Latn | 0.240605 |
b5e889faafd2e6ed0816bdadba3dc63b4ef8da3a | 1,274 | md | Markdown | README.md | virtuellewolke/node-pkg-docker | ace4607085f4bd8ddcfda4c8ee10c3f6b2f279cb | [
"MIT"
] | null | null | null | README.md | virtuellewolke/node-pkg-docker | ace4607085f4bd8ddcfda4c8ee10c3f6b2f279cb | [
"MIT"
] | null | null | null | README.md | virtuellewolke/node-pkg-docker | ace4607085f4bd8ddcfda4c8ee10c3f6b2f279cb | [
"MIT"
] | null | null | null | # pkg - a packaging tool for NodeJS application
A project to wrap pkg for node into a container
## Why?
This project was made to increase the speed while generating artifacts in a CI/CD environment.
There is already dockerpkg/builder but it was last built 2 years ago.
So i'll also make a example to use this image in Gitlab CI (cause we'r using this the most)
## Gitlab CI
**Attention** To use this image your Gitlab-Runner must be a docker runner.
The Gitlab-CI on https://gitlab.com is per default a docker runner, so you dont have to do anything there.
You need to modify your `package.json` a bit and add the following:
```json
[...]
"bin": "path/to/your/main/javascript.js"
```
After this you'r ready to go (see https://github.com/zeit/pkg for more information).
Now you can simply add the `.gitlab-ci.yml` with the following (modify to fit your needs):
```yml
variables:
NODE_ENV: production
PKG_CACHE_PATH: .cache/
cache:
paths:
- node_modules/
- .cache/
stages:
- package
image: node:latest
pkg:
stage: package
image: virtuellewolke/node-pkg:latest
script:
- npm install
- pkg .
artifacts:
paths:
- project-name-linux
- project-name-macos
- project-name-win.exe
expire_in: 30 days
``` | 22.350877 | 106 | 0.701727 | eng_Latn | 0.986958 |
b5e897315229b9109c8f4d65b78cad19e7fab9e5 | 358 | md | Markdown | content/publication/coventry-putting-2002/index.md | danwjoyce/technical-blog | f60803319e45bc9d25fd43a3b7c7b6317372b6cd | [
"MIT"
] | null | null | null | content/publication/coventry-putting-2002/index.md | danwjoyce/technical-blog | f60803319e45bc9d25fd43a3b7c7b6317372b6cd | [
"MIT"
] | null | null | null | content/publication/coventry-putting-2002/index.md | danwjoyce/technical-blog | f60803319e45bc9d25fd43a3b7c7b6317372b6cd | [
"MIT"
] | null | null | null | ---
title: "Putting geometry and function together-towards a psychologically-plausible computational model for spatial language comprehension"
date: 2002-01-01
publishDate: 2020-04-05T21:13:10.154319Z
authors: ["Kenny R Coventry", "Angelo Cangelosi", "Dan Joyce", "Lynn V Richards"]
publication_types: ["1"]
abstract: ""
featured: false
publication: ""
---
| 29.833333 | 138 | 0.759777 | eng_Latn | 0.710835 |
b5ebf4b63d425ec0c4866049e6fd3b227cc6ae57 | 273 | md | Markdown | docs/ImageDuplicates.md | aspose-imaging-cloud/aspose-imaging-cloud-ruby | 29e031330f6e397220463420857765ef652e62c7 | [
"MIT"
] | null | null | null | docs/ImageDuplicates.md | aspose-imaging-cloud/aspose-imaging-cloud-ruby | 29e031330f6e397220463420857765ef652e62c7 | [
"MIT"
] | 2 | 2019-12-20T12:46:47.000Z | 2019-12-23T09:27:34.000Z | docs/ImageDuplicates.md | aspose-imaging-cloud/aspose-imaging-cloud-ruby | 29e031330f6e397220463420857765ef652e62c7 | [
"MIT"
] | null | null | null | # AsposeImagingCloud::ImageDuplicates
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**duplicate_images** | [**Array<SearchResult>**](SearchResult.md) | Gets or sets the duplicate images. | [optional]
| 30.333333 | 122 | 0.564103 | kor_Hang | 0.191783 |
b5ecd9ac10b5ff629cc276131ac8dc1f6722a1b5 | 264 | md | Markdown | README.md | izzyx6/Alzheimers_detection | a5ef695bf291343c11fc8a7778cd2c74ca8c8935 | [
"MIT"
] | null | null | null | README.md | izzyx6/Alzheimers_detection | a5ef695bf291343c11fc8a7778cd2c74ca8c8935 | [
"MIT"
] | null | null | null | README.md | izzyx6/Alzheimers_detection | a5ef695bf291343c11fc8a7778cd2c74ca8c8935 | [
"MIT"
] | null | null | null | # Early Alzeheimers Detection With Machine Learning
The ML algorithm used here is RandomForest.
word cloud for Fake, Real and the entire text is generated
Dataset: ALZ.csv downloaded from Kaggle. You can download the dataset from: https://bit.ly/3jTIMUh
| 33 | 99 | 0.776515 | eng_Latn | 0.974365 |
b5ece05c2c683756e62aa7a16e58da27c3436125 | 1,559 | md | Markdown | README.md | johanbrook/snickra | df76757239430de8ae65900f2fe7ac265f9350ef | [
"MIT"
] | null | null | null | README.md | johanbrook/snickra | df76757239430de8ae65900f2fe7ac265f9350ef | [
"MIT"
] | null | null | null | README.md | johanbrook/snickra | df76757239430de8ae65900f2fe7ac265f9350ef | [
"MIT"
] | null | null | null | # Snickra
[![Dependency Status][david_img]][david_site]
## Develop
Clone the repo and get set up with the dependencies:
```bash
git clone https://github.com/johanbrook/snickra.git
cd snickra
npm install
```
All commands:
```bash
npm run dev # Start app for developing
npm run server # Start dev server for hot reloading
npm run start # Start app in production
npm run lint # Lint whole app
npm run build # Build app into /dist
npm run package # Package app into /release for current platform
npm run package-all # Package app for all platforms
```
To start the app locally (in dev mode), we need a dev server for hot reloading, as well as running the actual Electron app. So run these commands in two separate shells:
```bash
npm run server
# Starts dev server on http://localhost:8080
```
```bash
npm run dev
# Starts Electron menu bar app
```
You will also be able to access Chrome DevTools when in dev mode. It'll open on app startup, but also with <kbd>cmd+alt+I</kbd>.
Lint the whole app (including `.vue` files) with:
```bash
npm run lint
```
### Build
To generate a production build, run:
```bash
npm run build
```
This will generate `dist/bundle.js`.
You can then start the app in production mode with:
```bash
npm start
```
### Package
Package the app for the current platform with:
```bash
npm run package
```
This generates a package into `release`.
## License
MIT © [Johan Brook](http://johanbrook.com)
[david_img]: https://img.shields.io/david/johanbrook/snickra.svg
[david_site]: https://david-dm.org/johanbrook/snickra
| 19.734177 | 169 | 0.727389 | eng_Latn | 0.948931 |
1d20565ad9b23e8d0f526491d50d51ff0dba3f6d | 409 | md | Markdown | src/data/2019-04-22.md | pascalpp/impeachment-2019 | 0bec2cc61a8e3597ec6fc0873e95db104d968ad7 | [
"MIT"
] | null | null | null | src/data/2019-04-22.md | pascalpp/impeachment-2019 | 0bec2cc61a8e3597ec6fc0873e95db104d968ad7 | [
"MIT"
] | null | null | null | src/data/2019-04-22.md | pascalpp/impeachment-2019 | 0bec2cc61a8e3597ec6fc0873e95db104d968ad7 | [
"MIT"
] | null | null | null | ---
path: "/2019-04-22"
date: "2019-04-22"
title: "22 April, 2019"
subtitle: ""
---
Ukrainian President Volodymyr Zelensky receives a call from President Trump congratulating him on his victory. The full transcript of the call has yet to be released.
<span class="sources">
Source(s): <a href="https://www.pravda.com.ua/news/2019/04/22/7213135/" target="_blank" rel="noopener noreferrer">Pravda</a>
</span>
| 31.461538 | 166 | 0.726161 | eng_Latn | 0.880355 |
1d20fd9815d2e63a401fce0e1689fa019f36fe59 | 1,411 | md | Markdown | README.md | daviddelahoz/PUCMM-WIFI-Auto-Login-Google-Chrome | 5f031ec10666f67eb682a2432a2a4f287837fa32 | [
"MIT"
] | null | null | null | README.md | daviddelahoz/PUCMM-WIFI-Auto-Login-Google-Chrome | 5f031ec10666f67eb682a2432a2a4f287837fa32 | [
"MIT"
] | null | null | null | README.md | daviddelahoz/PUCMM-WIFI-Auto-Login-Google-Chrome | 5f031ec10666f67eb682a2432a2a4f287837fa32 | [
"MIT"
] | null | null | null | PUCMM-WIFI-Auto-Login-Google-Chrome
===================================
Esto es una extensión que permite iniciar sesión en la red WIFI de PUCMM Santiago de una manera más fácil y rápida.
Historial de cambios
v0.5: Se agregaron dos nuevas funcionalidades. Ahora la extensión permite que puedas abrir multiples tabs en el WebSise y también al detectar el login del wifi, el add-on ejecuta el logueo automáticamente.
v0.4: Se realizaron algunas mejoras con respecto a la interacción con el usuario y también mejoras en el manifiesto de la aplicación.
v0.3: Se Agregó la capacidad de notificar al usuario si los datos de iniciar sesión están correctos al momento de hacer click para loguearse.
Cansado de escribir tu usuario & contraseña cada vez que necesitas navegar a través del Internet inalámbrico de la PUCMM? Pues esta es la solución ideal ya que almacena tus datos y con un simple click en el boton de la aplicación, podrás iniciar sesión de manera rápida y sencilla sin tener que escribir tus datos cada vez que requieras iniciar sesión. Para lograr que la aplicación funcione correctamente debes estar conectado en la red inalámbrica correspondiente y asegurarte de tener los datos de iniciar sesión sean los correctos.
Para introducir tus datos de la aplicación solo debes hacer click derecho en el icono y seleccionar opciones, luego de estar ahi introduces tus datos y procedes a almacenarlos.
| 88.1875 | 536 | 0.794472 | spa_Latn | 0.998234 |
1d21f01c532b8cbe65034731e3b3aca84049e051 | 1,461 | md | Markdown | README.md | ddemin/wiremock-extensions | d712894cc47d1fc71a7576a59a53707b8c33e2d9 | [
"Apache-2.0"
] | null | null | null | README.md | ddemin/wiremock-extensions | d712894cc47d1fc71a7576a59a53707b8c33e2d9 | [
"Apache-2.0"
] | null | null | null | README.md | ddemin/wiremock-extensions | d712894cc47d1fc71a7576a59a53707b8c33e2d9 | [
"Apache-2.0"
] | null | null | null | # wiremock-extensions
Collection wiremock extensions (matchers, transformers)
## Transformers
### com.github.ddemin.wext.AsyncStateResponseTemplateTransformer
Can switch response states using defined delay (in milliseconds) between steps
#### Configuration example
```json
TODO
```
### com.github.ddemin.wext.StatisticDelayedResponseTemplateTransformer
Can perform delay with specific value statistic (in milliseconds)
#### Configuration example
```json
{
"transformerParameters": {
"dynamic-delay": {
"delayMin": 357,
"delay50": 357,
"delay90": 357,
"delay95": 357,
"delayMax": 666,
"parameters": {}
}
},
"transformers": [
"delayed-response-template"
]
}
```
##How To Build
1) Make sure that you have Java 11 and above (you can check it using ```java --version```)
2) Make sure that you have access to the Internet
3) Execute ```./gradlew clean test shadowJar```
##How To Install (WireMock standalone)
1) Copy ```wext.jar``` from ```wext/build/libs``` to your wiremock folder
2) To use specific transformer - please use one of instruction above
3) Launch standalone wiremock using classpath and ```--extension``` flag:
```bash
java -cp "wext.jar;wiremock-jre8-standalone-2.32.0.jar" com.github.tomakehurst.wiremock.standalone.WireMockServerRunner --extensions com.github.ddemin.wext.StatisticDelayedResponseTemplateTransformer,com.github.ddemin.wext.AsyncStateResponseTemplateTransformer
```
| 33.976744 | 261 | 0.728953 | eng_Latn | 0.810227 |
1d21fb51d36ead4100ea07ae80af8ea4001fba04 | 127 | md | Markdown | _drafts/2016-05-20-eclipse-tip-create-java-template-slf4j.md | verhagen/verhagen | 6fff857dd8599cf2136fb748f6b3fb0ab65c72da | [
"MIT"
] | null | null | null | _drafts/2016-05-20-eclipse-tip-create-java-template-slf4j.md | verhagen/verhagen | 6fff857dd8599cf2136fb748f6b3fb0ab65c72da | [
"MIT"
] | null | null | null | _drafts/2016-05-20-eclipse-tip-create-java-template-slf4j.md | verhagen/verhagen | 6fff857dd8599cf2136fb748f6b3fb0ab65c72da | [
"MIT"
] | null | null | null | ---
layout: post
title: Eclipse Tip - Create Java Code Template - Simple Logging Facade for Java (slf4j)
---
## Action Plan
| 14.111111 | 87 | 0.692913 | eng_Latn | 0.567737 |
1d22b9ca5a997b13916ca9dd272fca406b258916 | 231 | md | Markdown | README.md | bhag41/portfolio-bk | 28851493b309616164f9537d6c18265227aab981 | [
"MIT"
] | null | null | null | README.md | bhag41/portfolio-bk | 28851493b309616164f9537d6c18265227aab981 | [
"MIT"
] | 2 | 2020-07-16T12:45:28.000Z | 2021-05-07T21:34:39.000Z | README.md | bhag41/portfolio-bk | 28851493b309616164f9537d6c18265227aab981 | [
"MIT"
] | null | null | null | Hi, My name is Bhagyashree Kulkarni. This is my <a href="https://bhag41.github.io/portfolio-bk/"> portfolio website </a> which showcases the work that I have done. You can use the contact form on website to contact me. Thank you!
| 115.5 | 230 | 0.753247 | eng_Latn | 0.999142 |
1d22ea09c500a5b7bfcbc6ce3040e17e60b78434 | 1,622 | md | Markdown | doc/using-ec2.md | onthway/deepdive | f0b1f355446b169bc8a01061f773df598117a1b7 | [
"Apache-2.0"
] | 1,729 | 2015-01-01T02:40:56.000Z | 2022-03-29T09:08:29.000Z | doc/using-ec2.md | onthway/deepdive | f0b1f355446b169bc8a01061f773df598117a1b7 | [
"Apache-2.0"
] | 426 | 2015-01-02T10:28:05.000Z | 2021-07-05T02:37:40.000Z | doc/using-ec2.md | onthway/deepdive | f0b1f355446b169bc8a01061f773df598117a1b7 | [
"Apache-2.0"
] | 603 | 2015-01-01T08:05:19.000Z | 2022-03-22T07:45:40.000Z | ---
layout: default
title: Using DeepDive on EC2
---
# Using DeepDive on EC2
Although we no longer distribute a pre-configured [Amazon EC2 Machine Image](http://aws.amazon.com/ec2/) (AMI), DeepDive can be installed fairly quickly on an EC2 instance.
### Launching an instance
The following are the steps needed to launch an EC2 instance and start DeepDive in it with Postgres:
- Choose the "US-East" region (top right menu)
- Click on "Launch Instance", choose "Quick Start" and "Select" the "Ubuntu" AMI image.
- In the next step, pick the instance type.
For example, the `m3.large` instance type is fine for testing-purposes.
We recommend using the compute- or memory-optimized instances (depending on your use case) for production purposes.
- Follow the wizard to launch the instance.
- SSH into the instance as `ubuntu` with the private key you specified in the AWS wizard.
- Run the following command to install Postgres and DeepDive.
```bash
bash <(curl -fsSL deepdive.stanford.edu/install) postgres deepdive
```
- Optionally, you can run tests to confirm that the installation was successful.
```bash
bash <(curl -fsSL deepdive.stanford.edu/install) run_deepdive_tests
```
### Notes
- For improved I/O performance the PostgreSQL data directory should be created on the [Amazon EC2 Instance Store](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) mounted at `/media/ephemeral0/`.
This means that if you shutdown your instance, **all data will be lost**.
Make sure to backup your data or store in on the EBS volume if you want to keep it.
| 40.55 | 219 | 0.74291 | eng_Latn | 0.989897 |
1d23c8bafd2d0b804d1a3b1533bcb189655319d1 | 21,102 | md | Markdown | blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/cordapp/README.md | corda/blockchain | c8686c9d1be88750522cd775c52d36fd9f489b62 | [
"MIT"
] | null | null | null | blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/cordapp/README.md | corda/blockchain | c8686c9d1be88750522cd775c52d36fd9f489b62 | [
"MIT"
] | null | null | null | blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/cordapp/README.md | corda/blockchain | c8686c9d1be88750522cd775c52d36fd9f489b62 | [
"MIT"
] | 2 | 2018-11-29T16:34:52.000Z | 2020-03-23T11:44:10.000Z | # 'refrigerated-transportation' CorDapp
## Overview
This is a CorDapp implementation of the Azure Blockchain Workbench
[refrigerated-transportation](https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/application-and-smart-contract-samples/refrigerated-transportation),
example
## Building locally
Other project reference this CorDapp in test cases. To update them with changes
```bash
./buildLocal.sh
```
You will also need to check <code>../jars/refrigerated-transportation.jar</code>
into Git
## Quick start
The intention is for these CorDapps to be run via the Workbench tools, but if you wish to test locally,
start nodes by running the test class 'NodeDriver' in your IDE. This will start a network of nodes
in debug mode. Note that as a lot of ports are used, check the logs to confirm there are no conflicts.
If all has started correctly, you should see a line similar to that below in your console
```bash
[InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10000], legalIdentitiesAndCerts=[O=ContosoLtd, L=Seatle, C=US], platformVersion=1, serial=1548676695707), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/ContosoLtd, myLegalName=O=ContosoLtd, L=Seatle, C=US, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/ContosoLtd/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSource.user=sa, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10000, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10021, adminAddress=localhost:10022, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10023), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10031, useHTTPS=false, nodeThread=Thread[ContosoLtd,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@6a9b9909), InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10001], legalIdentitiesAndCerts=[O=WorldWideImporters, L=Shanghai, C=CN], platformVersion=1, serial=1548676695708), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/WorldWideImporters, myLegalName=O=WorldWideImporters, L=Shanghai, C=CN, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/WorldWideImporters/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSource.user=sa, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10001, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10031, adminAddress=localhost:10032, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10033), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10028, useHTTPS=false, nodeThread=Thread[WorldWideImporters,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@55d9b8f0), InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10002], legalIdentitiesAndCerts=[O=NorthwindTraders, L=Copenhagen, C=DK], platformVersion=1, serial=1548676694625), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/NorthwindTraders, myLegalName=O=NorthwindTraders, L=Copenhagen, C=DK, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/NorthwindTraders/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSource.user=sa, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10002, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10041, adminAddress=localhost:10042, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10043), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10025, useHTTPS=false, nodeThread=Thread[NorthwindTraders,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@a518813), InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10003], legalIdentitiesAndCerts=[O=WoodgroveBank, L=London, C=GB], platformVersion=1, serial=1548676694624), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/WoodgroveBank, myLegalName=O=WoodgroveBank, L=London, C=GB, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.user=sa, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/WoodgroveBank/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10003, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10051, adminAddress=localhost:10052, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10053), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10022, useHTTPS=false, nodeThread=Thread[WoodgroveBank,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@43d38654), InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10004], legalIdentitiesAndCerts=[O=Device01, L=London, C=GB], platformVersion=1, serial=1548676693452), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/Device01, myLegalName=O=Device01, L=London, C=GB, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/Device01/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSource.user=sa, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10004, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10061, adminAddress=localhost:10062, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10063), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10019, useHTTPS=false, nodeThread=Thread[Device01,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@75361cf6), InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10005], legalIdentitiesAndCerts=[O=Device02, L=Shanghai, C=CN], platformVersion=1, serial=1548676693452), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/Device02, myLegalName=O=Device02, L=Shanghai, C=CN, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/Device02/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSource.user=sa, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10005, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10071, adminAddress=localhost:10072, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10073), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10016, useHTTPS=false, nodeThread=Thread[Device02,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@6d303498), InProcessImpl(nodeInfo=NodeInfo(addresses=[localhost:10006], legalIdentitiesAndCerts=[O=TasmanianTraders, L=Hobart, C=AU], platformVersion=1, serial=1548676688145), rpc=Client RPC proxy for interface net.corda.core.messaging.CordaRPCOps, configuration=NodeConfigurationImpl(baseDirectory=/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/TasmanianTraders, myLegalName=O=TasmanianTraders, L=Hobart, C=AU, emailAddress=admin@company.com, keyStorePassword=cordacadevpass, trustStorePassword=trustpass, dataSourceProperties={dataSource.password=, dataSource.url=jdbc:h2:file:/Users/ianmorgan/azure/blockchain/blockchain-development-kit/accelerators/corda/cordapps/refrigerated-transportation/build/20190128-115755.785/TasmanianTraders/persistence;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;WRITE_DELAY=100;AUTO_SERVER_PORT=0, dataSource.user=sa, dataSourceClassName=org.h2.jdbcx.JdbcDataSource}, compatibilityZoneURL=null, networkServices=null, rpcUsers=[User(user1, permissions=[ALL, InvokeRpc.nodeInfo, InvokeRpc.networkMapFeed, InvokeRpc.networkMapSnapshot, InvokeRpc.notaryIdentities, InvokeRpc.stateMachinesFeed, InvokeRpc.stateMachineRecordedTransactionMappingFeed, InvokeRpc.nodeInfoFromParty, InvokeRpc.internalVerifiedTransactionsFeed, InvokeRpc.vaultQueryBy, InvokeRpc.vaultTrackBy, InvokeRpc.registeredFlows])], security=null, verifierType=InMemory, messageRedeliveryDelaySeconds=30, p2pAddress=localhost:10006, rpcAddress=null, rpcSettings=NodeRpcSettings(address=localhost:10081, adminAddress=localhost:10082, standAloneBroker=false, useSsl=false, ssl=null), messagingServerAddress=null, notary=null, certificateChainCheckPolicies=[], devMode=true, devModeOptions=null, useTestClock=false, detectPublicIp=true, activeMQServer=ActiveMqServerConfiguration(bridge=BridgeConfiguration(retryIntervalMs=5000, maxRetryIntervalMin=3, retryIntervalMultiplier=1.5)), additionalNodeInfoPollingFrequencyMsec=5000, sshd=SSHDConfiguration(port=10083), database=DatabaseConfig(initialiseSchema=true, serverNameTablePrefix=, transactionIsolationLevel=REPEATABLE_READ, exportHibernateJMXStatistics=false), transactionCacheSizeMegaBytes=null, attachmentContentCacheSizeMegaBytes=null, attachmentCacheBound=1024), webAddress=localhost:10013, useHTTPS=false, nodeThread=Thread[TasmanianTraders,5,main], onStopCallback=() -> kotlin.Unit, node=net.corda.node.internal.AbstractNode$StartedNodeImpl@6ba7383d)]
```
To connect to a node (in this case Contoso). Note thw password is 'test'
```bash
ssh localhost -p 10023 -l user1 -o UserKnownHostsFile=/dev/null
```
You can now run queries and flows on this node. For example see below, to create a new Shipment. _Note you should
create a new 'linearId' for each call._
```
start WorkbenchCreateFlow linearId: 80C68193-9D37-4FF5-919A-982A7E8262D4, device: Device01, supplyChainOwner: WorldWideImporters, supplyChainObserver: WoodgroveBank, minHumidity: 50, maxHumidity: 70, minTemperature : -20, maxTemperature: -10
```
The output will be similar to:
```
Mon Jan 28 12:03:17 GMT 2019>>> start WorkbenchCreateFlow linearId: 80C68193-9D37-4FF5-919A-982A7E8262D4, device: Device01, supplyChainOwner: WorldWideImporters, supplyChainObserver: WoodgroveBank, minHumidity: 50, maxHumidity: 70, minTemperature : -20, maxTemperature: -10
✓ Running
✓ Locating the Notary
✓ Building and verify the txn
✓ Collect signatures from all parties
✓ Collecting signatures from counterparties.
✓ Verifying collected signatures.
✓ With Notary
✓ Requesting signature by notary service
✓ Requesting signature by Notary service
✓ Validating response from Notary service
✓ Broadcasting transaction to participants
✓ Reporting finalized txn to observer(s)
✓ All done
✓ Completed
✓ Done
Flow completed with result: TxnResult(txnHash=9EA67A2536C405D8048D9EDFA682D212099FAD265779E91D5A896AED1031F403, owner=O=WorldWideImporters, L=Shanghai, C=CN, otherParties=[O=Device01, L=London, C=GB], contractProperties=[ContractProperty(name=state, value=Created), ContractProperty(name=owner, value=O=WorldWideImporters, L=Shanghai, C=CN), ContractProperty(name=initiatingCounterparty, value=O=WorldWideImporters, L=Shanghai, C=CN), ContractProperty(name=counterparty, value=O=WorldWideImporters, L=Shanghai, C=CN), ContractProperty(name=previousCounterparty, value=null), ContractProperty(name=device, value=O=Device01, L=London, C=GB), ContractProperty(name=supplyChainOwner, value=O=WorldWideImporters, L=Shanghai, C=CN), ContractProperty(name=supplyChainObserver, value=O=WoodgroveBank, L=London, C=GB), ContractProperty(name=minHumidity, value=50), ContractProperty(name=maxHumidity, value=70), ContractProperty(name=minTemperature, value=-20), ContractProperty(name=maxTemperature, value=-10), ContractProperty(name=complianceSensorType, value=null), ContractProperty(name=complianceSensorReading, value=null), ContractProperty(name=complianceStatus, value=true), ContractProperty(name=complianceDetail, value=null), ContractProperty(name=lastSensorUpdateTimestamp, value=null)])
```
Data can be viewed with vault queries, for example
```
run vaultQuery contractStateType: net.corda.workbench.refrigeratedTransportation.Shipment
``` | 293.083333 | 17,309 | 0.852336 | yue_Hant | 0.421299 |
1d259619004e5ff352454e7a82d26dc93db73631 | 1,788 | md | Markdown | interactive/thebe.md | xinetzone/jupyter-book | ca30a0742a1686a0a49ebc1f5a97a28088e7ddb1 | [
"Apache-2.0"
] | null | null | null | interactive/thebe.md | xinetzone/jupyter-book | ca30a0742a1686a0a49ebc1f5a97a28088e7ddb1 | [
"Apache-2.0"
] | null | null | null | interactive/thebe.md | xinetzone/jupyter-book | ca30a0742a1686a0a49ebc1f5a97a28088e7ddb1 | [
"Apache-2.0"
] | 1 | 2022-02-14T13:10:52.000Z | 2022-02-14T13:10:52.000Z | ---
jupytext:
formats: md:myst
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.10.3
kernelspec:
display_name: Python 3
language: python
name: python3
---
(launch:thebe)=
# 使您的代码单元格可执行
这一节描述了如何为你的书带来交互性。这允许用户运行代码并查看输出,而无需离开页面。交互性是由运行在公共[**MyBinder**](https://mybinder.org) 服务上的内核提供的。
例如,单击此页上方的 {fa}`rocket` --> {guilabel}`Live Code` 按钮,并运行下面的代码。
```{code-cell} ipython3
import numpy as np
import matplotlib.pyplot as plt
plt.ion()
x = np.arange(500)
y = np.random.randn(500)
fig, ax = plt.subplots()
ax.scatter(x, y, c=y, s=x)
```
:::{warning}
这是一个实验性的特性,在未来可能会发生变化或意想不到的效果。
:::
## 激活 Thebe
为了使您的内容具有交互性,而不要求读者离开当前页面,您可以使用一个名为 [Thebe](https://github.com/executablebooks/thebe) 的项目。这为您提供了一个 {guilabel}`Live Code` 按钮,单击该按钮时,将把每个代码单元格转换为可以编辑的交互式单元格。它还向每个单元添加一个 "run" 按钮,并连接到在云中运行的 Binder 内核。
要将 Thebe 按钮添加到你的 Jupyter Book 页面,采取以下步骤:
1. 首先,[添加通用启动按钮配置](launchbuttons/configuration)。这使得 `thebe/` 可以为您的内容使用正确的环境和文件路径。
2. 激活 Thebe 集成与以下配置:
```yaml
launch_buttons:
thebe : true
```
## 配置 Thebe
此外,您还可以配置 Binder 设置,这些设置用于为 Thebe 提供运行代码的内核。它们使用与上面描述的 BinderHub 交互按钮相同的配置字段。有关如何做到这一点的信息,请参见 [BinderHub 启动按钮文档](launchbuttons/binder)。
+++
## 在初始化 Thebe 时预执行单元格
有时,您希望在请求内核时立即运行一些代码单元格。这可能是您随后对用户隐藏的代码,以便缩小用户与之交互的焦点。这是可以通过使用 Jupyter Notebook 的**单元格标签**。
将标签 {guilabel}`thebe-init` 添加到任何代码单元格将导致 Thebe 在接收到内核后运行这个单元格。任何后续 Thebe 单元格都可以访问相同的环境(例如,在初始化单元格中进行的任何模块导入)。
然后,您可以将其与诸如 {guilabel}`hide-input` 之类的东西配对,以便运行用户不会立即看到的初始化代码。例如,下面我们将初始化隐藏单元格中的一个变量,然后告诉另一个单元格打印该变量的输出。
```{code-cell} ipython3
:tags: [hide-input, thebe-init]
my_hidden_variable = 'wow, it worked!'
```
```{code-cell} ipython3
# The variable for this is defined in the cell above!
print(my_hidden_variable)
```
| 23.526316 | 197 | 0.739933 | yue_Hant | 0.512541 |
1d26294a32b0008118125f66d72e6c3711635464 | 1,269 | md | Markdown | adventofcode/2021/3/README.md | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | adventofcode/2021/3/README.md | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | adventofcode/2021/3/README.md | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | # Description
This solves the Advent of Code [2021 day 3](https://adventofcode.com/2021/day/3) puzzle.
# Usage
```
$ ./process_diagnostic/process_diagnostic.py -h
usage: process_diagnostic.py [-h] [-l] report
Process the submarine's diagnostic report.
positional arguments:
report The submarine's diagnostic report.
optional arguments:
-h, --help show this help message and exit
-l, --get_life_support_rating
Get the life support rating from the report. By default, the power consumption rating is calculated.
```
For example, to find the life support rating from the report, do the following:
```
$ ./process_diagnostic/process_diagnostic.py -l input.txt
4550283
```
# Tests
The unit tests for this can be run with the
[unittest](https://docs.python.org/3/library/unittest.html) module:
```
$ python3 -m unittest
..............
----------------------------------------------------------------------
Ran 14 tests in 0.003s
OK
```
Both these unit tests and the end to end tests can be run using the provided
`./test/run_tests.sh` script:
```
$ ./test/run_tests.sh
..............
----------------------------------------------------------------------
Ran 14 tests in 0.002s
OK
All tests passed.
```
| 23.072727 | 124 | 0.608353 | eng_Latn | 0.903348 |
1d27274d484ed3b1dd0fc1d70096da06a6ddcdd3 | 2,048 | md | Markdown | README.md | Axway-API-Management-Plus/Connect-to-MS-Dynamics-CRM | e5775c4fc0ee6099dac2607320cfc152c9e0aa5b | [
"Apache-2.0"
] | null | null | null | README.md | Axway-API-Management-Plus/Connect-to-MS-Dynamics-CRM | e5775c4fc0ee6099dac2607320cfc152c9e0aa5b | [
"Apache-2.0"
] | null | null | null | README.md | Axway-API-Management-Plus/Connect-to-MS-Dynamics-CRM | e5775c4fc0ee6099dac2607320cfc152c9e0aa5b | [
"Apache-2.0"
] | 1 | 2018-06-27T03:50:25.000Z | 2018-06-27T03:50:25.000Z | # Connect-to-MS-Dynamics-CRM
With this set of policies and OAuth-Client application template you can start integrate
into the MS-Dynamics-CRM service.
The MS-Dynamics-CRM Web-API is protected by OAuth 2.0 and requires a personalized access
using the OAuth 2.0 AuthZ-Code flow. This template is using Azure Active Directory as the
Identity-Provider and OAuth-Authorization server.
You more information and see it live please review our video-series using this asset
in the Axway API-Management Youtube-Channel: https://www.youtube.com/channel/UCsRNLDnXvgtz6qsleSlVcqQ
## API Management Version Compatibilty
This artefact was successfully tested for the following versions:
- V7.5.3
## Install
- Import the Configuration-Set (XML-File) into your configuration set
- Configure the OAuth-Client-Application as registered in the Azure Active Directory
- make sure you adjust the configuration of the imported Azure AD provider settings (Token & AuthZ-Endpoint)
- Open the imported Policy: MS Azure Authorize Callback and adjust the filter: Verify ID Token to you AD-Tenant-ID
- Setup the policy: "MS Dynamics CRM API-Mgr Routing" as to be a routing policy for API-Manager
- You may use the file: Src/ms_dynamics_crm_sample_api.dat and import it as an API-Collection into API-Manager for testing purposes
## Usage
```
When you have imported the API into API-Manager you can test that API, by basically calling the Dynamics-CRM OData Web-API. For instance like this:
https://<you-api-mgt-host>:8065/api/data/v9.0/accounts?$filter=accountnumber eq 'ABSS4G45'
```
## Bug and Caveats
```
To be completed
```
## Contributing
Please read [Contributing.md][contrib] for details on our code of conduct, and the process for submitting pull requests to us.
[contrib]: https://github.com/Axway-API-Management/Common/blob/master/Contributing.md
## Team
![alt text][Axwaylogo] Axway Team
[Axwaylogo]: https://github.com/Axway-API-Management/Common/blob/master/img/AxwayLogoSmall.png "Axway logo"
## License
[Apache License 2.0](/LICENSE)
| 35.929825 | 147 | 0.778809 | eng_Latn | 0.921335 |
1d27f68bc56b36b7f15fc66a9ea3f91e4281a18a | 30 | md | Markdown | README.md | Lavidavictor/lavida | 62f4ad187421983a8c89450d2b665dbfb9dd86ba | [
"MIT"
] | null | null | null | README.md | Lavidavictor/lavida | 62f4ad187421983a8c89450d2b665dbfb9dd86ba | [
"MIT"
] | null | null | null | README.md | Lavidavictor/lavida | 62f4ad187421983a8c89450d2b665dbfb9dd86ba | [
"MIT"
] | null | null | null | # lavida
منافس جديد في المنصة
| 10 | 20 | 0.766667 | arb_Arab | 0.999734 |
1d28807dcf888acdccbd6c0e6d0e3506cbfc1413 | 1,038 | md | Markdown | Documentation/README.md | whenbellstoll/AvianEngine | 1de81fd151676139ba06b6dfee3dd5b10a5e5dfe | [
"MIT"
] | 7 | 2020-12-12T00:00:52.000Z | 2021-03-28T02:04:28.000Z | Documentation/README.md | whenbellstoll/AvianEngine | 1de81fd151676139ba06b6dfee3dd5b10a5e5dfe | [
"MIT"
] | null | null | null | Documentation/README.md | whenbellstoll/AvianEngine | 1de81fd151676139ba06b6dfee3dd5b10a5e5dfe | [
"MIT"
] | 1 | 2021-02-20T22:04:42.000Z | 2021-02-20T22:04:42.000Z | # Avian Documentation
Avian is an all-purpose 2D game engine.
There are two major parts to this documentation, **AvianEditor** and **AvianCore**.
## AvianEditor
AvianEditor is the actual tool that the users who develop games interact with.
The documentation primarily serves users of the engine, with the goal of understanding the different tools in the editor.
The documentation also goes into technical explaination of functions and objects found in AvianCore that developers would regularly use in making their games.
## AvianCore
AvianCore is the group of classes and logic that makes up what AvianEngine uses as its game logic.
The documentation primarily serves developers and contributors to the engine, with a goal of understanding the implementation and how everything works under the hood.
Here is an overview of all the major classes that make up AvianCore and how they are related:

| 64.875 | 166 | 0.815029 | eng_Latn | 0.999494 |
1d2a1d7a5c9233d247518e93f0fbd63a844a0546 | 2,379 | md | Markdown | essays/2022-01-19.md | zhixinliuh/zhixinliuh.github.io | 4be8868e951e3c20cb6a2ddb9f8fc10132035331 | [
"MIT"
] | null | null | null | essays/2022-01-19.md | zhixinliuh/zhixinliuh.github.io | 4be8868e951e3c20cb6a2ddb9f8fc10132035331 | [
"MIT"
] | null | null | null | essays/2022-01-19.md | zhixinliuh/zhixinliuh.github.io | 4be8868e951e3c20cb6a2ddb9f8fc10132035331 | [
"MIT"
] | null | null | null | ---
layout: essay
type: essay
title: Lego by Keyboard
# All dates must be YYYY-MM-DD format!
date: 2022-01-19
labels:
- Javascript
---
As I progressed during my Coding journey, I found javascript is a much more functional and opened up language comparing C++ and Java. For example, indentations on javascript seem to be running just fine without strict proper spacing. As well as, the strings and numbers could work together without too many hassles in a function. Javascript experience has always been friendly to me since high school. I took a coding class in high school that I was introduced to the world of programming for the first time. I found myself enjoying the simple coding that I was capable of doing. That semester of experience really ignited me to build myself to become a programmer. On the Es6, I found it interesting how you are able to destructure Es5 syntax turning it in another way for the function. One thing I really enjoy about javascript is the capability of working with HTML and CSS. The javascript function is something that is unique about this language, the function being called out really felt like putting pieces of the puzzle together to get things running. This really reflects on the way we would have to communicate with people to work together putting pieces together to accomplish the project or software.
In my opinion, WODs really helped us gather our brains to warm back up from the year of not coding. WODs are useful to test our knowledge on the things we know and provide us the tricks that sometimes gives us the snap moment. I do enjoy how WODs are working for us, it is also a stress on us when we are getting timed. Solving for WODs is fun when we can get the answer. However, it is really competitive while being watched by others if we aren't able to obtain the answer within the time range.I think this style of learning will work as competition are always everywhere once we start to apply for jobs.
During this semester, I do hope to achieve a project that could help me grow as a job-ready programmer. Working on projects to help us develop the skill needed in the job could be one of the things I would like to acquire. Building my profile for my future is also something I would like to be done in this class. So far, I have enjoyed this class as I really feel this class is helping me on the way to the long run.
| 139.941176 | 1,211 | 0.794451 | eng_Latn | 0.999991 |
1d2c4ddfca78123b3eff6a5a4e442abc16851b25 | 2,716 | md | Markdown | content/post/publishing.md | chakariaonlinereportersclub/chakariaonlinereportersclub.github.io | 110455b65db338977120bd1dba371d7f401e35fd | [
"MIT"
] | null | null | null | content/post/publishing.md | chakariaonlinereportersclub/chakariaonlinereportersclub.github.io | 110455b65db338977120bd1dba371d7f401e35fd | [
"MIT"
] | null | null | null | content/post/publishing.md | chakariaonlinereportersclub/chakariaonlinereportersclub.github.io | 110455b65db338977120bd1dba371d7f401e35fd | [
"MIT"
] | null | null | null | +++
author = "Chakaria Online Reporters Club"
title = "Publishing"
date = "2019-03-09"
description = "All the members are highly encouraged to write to us to publish their news, articles and content here"
tags = [
"technology",
"professional",
"plarform",
]
+++
# Publishiing Rules:
1. You must be member
2. You must own the copy rights or obtained permission to publish
3. Must submit a draft 07 days in advance
4. Must agree on not claiming any copy right once the content is published here.
5. You will take the whole responisblity on any dispute against your published content
# Contact Details
For publishing your content you can contact Mr. Ismail Tuhin.
# Vagus elidunt
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
## Mane refeci capiebant unda mulcebat
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
{{< css.inline >}}
<style>
.canon { background: white; width: 100%; height: auto; }
</style>
{{< /css.inline >}}
| 61.727273 | 696 | 0.753682 | eng_Latn | 0.300166 |
1d2ccccf53bf0f32c98aec832b4ffe93adbb021b | 63 | md | Markdown | source/tags/index.md | isaacloft/binarytellsnotales | 5eeb7ae2ea3354e1f65ce505d45ec03013f32f13 | [
"MIT"
] | null | null | null | source/tags/index.md | isaacloft/binarytellsnotales | 5eeb7ae2ea3354e1f65ce505d45ec03013f32f13 | [
"MIT"
] | null | null | null | source/tags/index.md | isaacloft/binarytellsnotales | 5eeb7ae2ea3354e1f65ce505d45ec03013f32f13 | [
"MIT"
] | null | null | null | ---
title: All tags
date: 2019-04-14 18:01:49
type: "tags"
---
| 10.5 | 25 | 0.603175 | eng_Latn | 0.146247 |
1d2d77770b1e3570ec158ea17b5adbd9f3e52ea0 | 157 | md | Markdown | content/past_user/more/16thpolicy.md | aeksco/hugo-scratchpad | 0af0d68a5f9062bfc640a33c032566fcd6e09fd6 | [
"MIT"
] | null | null | null | content/past_user/more/16thpolicy.md | aeksco/hugo-scratchpad | 0af0d68a5f9062bfc640a33c032566fcd6e09fd6 | [
"MIT"
] | null | null | null | content/past_user/more/16thpolicy.md | aeksco/hugo-scratchpad | 0af0d68a5f9062bfc640a33c032566fcd6e09fd6 | [
"MIT"
] | null | null | null | ---
title: "Zhao Wei Wang"
github: "16thpolicy"
avatar: "//www.gravatar.com/avatar/6b6ac46a5ce0e91d906d0ded49f62963?d=identicon"
---
User description here!
| 19.625 | 80 | 0.757962 | eng_Latn | 0.076489 |
1d2f6f9588bdcce32691c304ba0308c23a92d167 | 41 | md | Markdown | README.md | charliefog1974/freeCodeCamp | 627e0d781e10da6d46266b0ceae943e88980ee55 | [
"MIT"
] | null | null | null | README.md | charliefog1974/freeCodeCamp | 627e0d781e10da6d46266b0ceae943e88980ee55 | [
"MIT"
] | null | null | null | README.md | charliefog1974/freeCodeCamp | 627e0d781e10da6d46266b0ceae943e88980ee55 | [
"MIT"
] | null | null | null | # freeCodeCamp
Free Code Camp on Youtube
| 13.666667 | 25 | 0.804878 | yue_Hant | 0.991484 |
1d2f8d6b198f8b1998ccc63fa98dd69c8a4fddf0 | 310 | md | Markdown | README.md | jonas-wu/fast-cache | c3e3b62c6f3347475b32bc72682b853b8b6c2796 | [
"MIT"
] | null | null | null | README.md | jonas-wu/fast-cache | c3e3b62c6f3347475b32bc72682b853b8b6c2796 | [
"MIT"
] | null | null | null | README.md | jonas-wu/fast-cache | c3e3b62c6f3347475b32bc72682b853b8b6c2796 | [
"MIT"
] | null | null | null | # fast-cache
小巧的前端缓存工具,防止内存泄漏
<https://jonas-wu.github.io>
## 简介
## 安装下载
<https://github.com/jonas-wu/fast-cache/releases>
## 快速使用
简单接入的文档
- [使用文档](./doc/use/README.md)
- [二次开发文档](./doc/dev/README.md)
## 交流 & 提问
- 提问:<https://github.com/jonas-wu/fast-cache/issues>
- QQ群、微信群
## 关于作者
- 个人主页
- 收款二维码 | 10.689655 | 52 | 0.63871 | yue_Hant | 0.890195 |
1d3152cdf6ed7e001b9af75ac6f9a9ea47ac6b28 | 16 | md | Markdown | README.md | fusepoolP3/p3-ELK-config | 32aa6f04ee1814f515548f03e546ee21cde9a2ac | [
"Apache-2.0"
] | null | null | null | README.md | fusepoolP3/p3-ELK-config | 32aa6f04ee1814f515548f03e546ee21cde9a2ac | [
"Apache-2.0"
] | null | null | null | README.md | fusepoolP3/p3-ELK-config | 32aa6f04ee1814f515548f03e546ee21cde9a2ac | [
"Apache-2.0"
] | null | null | null | # p3-ELK-config
| 8 | 15 | 0.6875 | nno_Latn | 0.91558 |
1d31c19891b88d937282fcd0803ce82c97c2f5aa | 144 | md | Markdown | README.md | jdisc/discovery-api-postman | af6536b635cd2fbac352ccba9691e3112c762e68 | [
"Apache-2.0"
] | null | null | null | README.md | jdisc/discovery-api-postman | af6536b635cd2fbac352ccba9691e3112c762e68 | [
"Apache-2.0"
] | null | null | null | README.md | jdisc/discovery-api-postman | af6536b635cd2fbac352ccba9691e3112c762e68 | [
"Apache-2.0"
] | null | null | null | # discovery-api-postman
Discovery API Postman Collection
Shows how to authenticate and send a query request to the discovery API using Postman
| 28.8 | 85 | 0.826389 | eng_Latn | 0.95755 |
1d32646026636cb3d6ad01398ebedf04616d9ac3 | 19 | md | Markdown | README.md | alfita96/bro-code-watchers | 50c7507837430b77561bc529105e5dbe4eb0374e | [
"Apache-2.0"
] | null | null | null | README.md | alfita96/bro-code-watchers | 50c7507837430b77561bc529105e5dbe4eb0374e | [
"Apache-2.0"
] | null | null | null | README.md | alfita96/bro-code-watchers | 50c7507837430b77561bc529105e5dbe4eb0374e | [
"Apache-2.0"
] | null | null | null | # bro-code-watchers | 19 | 19 | 0.789474 | eng_Latn | 0.732327 |
1d326ac56975dc5a341e0fe508017bdda595ec1a | 4,722 | md | Markdown | _posts/2019-01-25-Updated-my-homeassistant-config-with-docker-compose-and-screenshots.md | eifinger/blog.kevineifinger.de | df3a1a4084d2beff51bb10154229b0898de291df | [
"MIT"
] | null | null | null | _posts/2019-01-25-Updated-my-homeassistant-config-with-docker-compose-and-screenshots.md | eifinger/blog.kevineifinger.de | df3a1a4084d2beff51bb10154229b0898de291df | [
"MIT"
] | null | null | null | _posts/2019-01-25-Updated-my-homeassistant-config-with-docker-compose-and-screenshots.md | eifinger/blog.kevineifinger.de | df3a1a4084d2beff51bb10154229b0898de291df | [
"MIT"
] | 1 | 2021-03-24T21:21:38.000Z | 2021-03-24T21:21:38.000Z | ---
layout: post
title: Updated my Homeassistant config with docker-compose and Screenshots
excerpt_separator: "<!--more-->"
categories:
- Archive
tags:
- Homeassistant
---
I updated my homeassistant config with some screenshots and my extensive docker-compose.yaml file. Hope this helps some of you guys who want to use docker to run homeassistant.
<!--more-->
## docker-compose.yaml
I use docker-compose version 2.1 to make use of the *depends_on* feature.
```yaml
# Version > 3 does not work as it doesn't support 'depends_on'
version: '2.1'
services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:0.85.1
volumes:
- /home/admin/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: host
depends_on:
influxdb:
condition: service_healthy
mysql-homeassistant:
condition: service_healthy
mosquitto:
condition: service_started
appdaemon:
container_name: appdaemon
restart: unless-stopped
image: acockburn/appdaemon:3.0.2
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/admin/appdaemon:/conf
- /home/admin/homeassistant/www:/config/www
environment:
- HA_URL="https://hidden.de"
- TOKEN="secure"
- DASH_URL="http://hidden:5050"
ports:
- "5050:5050"
- "8124:8124"
# Does currently not work because I don't know how to properly handle multiline stacktraces
# logging:
# driver: splunk
# options:
# splunk-token: secure
# splunk-url: https://splunk.kevineifinger.de:8088
# splunk-insecureskipverify: "true"
# splunk-verify-connection: "false"
links:
- facerec_service
depends_on:
- splunk
facerec_service:
container_name: facerec_service
restart: unless-stopped
image: eifinger/face_recognition:latest
volumes:
- /home/admin/facerec_service:/root/faces
ports:
- "9922:8080"
influxdb:
container_name: influxdb
restart: unless-stopped
image: influxdb:latest
healthcheck:
test: ["CMD", "curl", "-sI", "http://127.0.0.1:8086/ping"]
interval: 30s
timeout: 1s
retries: 24
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/admin/influxdb:/var/lib/influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
grafana:
container_name: grafana
restart: unless-stopped
image: grafana/grafana:latest
volumes:
- grafana-storage:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD="secure"
- GF_ANALYTICS_REPORTING_ENABLED=false
ports:
- "3000:3000"
depends_on:
- influxdb
mysql-homeassistant:
container_name: mysql-homeassistant
restart: unless-stopped
image: mysql:latest
healthcheck:
test: "/usr/bin/mysql --user=root --password=secure --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10
environment:
- MYSQL_ROOT_PASSWORD=secure
- MYSQL_DATABASE=hass_db
- MYSQL_USER=hassuser
- MYSQL_PASSWORD=secure
volumes:
- /home/admin/mysql-homeassistant/mysql:/var/lib/mysql
ports:
- "3307:3306"
mosquitto:
container_name: mosquitto
restart: unless-stopped
image: eclipse-mosquitto
volumes:
- /home/admin/mosquitto/data:/mosquitto/data
- /home/admin/mosquitto/log:/mosquitto/log
- /home/admin/mosquitto/config:/mosquitto/config
ports:
- "1883:1883"
- "9001:9001"
- "8883:8883"
splunk:
container_name: splunk
hostname: splunk
restart: unless-stopped
image: splunk/splunk:7.2
volumes:
- /home/admin/splunk/etc:/opt/splunk/etc
- /home/admin/splunk/var:/opt/splunk/var
environment:
- SPLUNK_START_ARGS="--accept-license"
- SPLUNK_ENABLE_LISTEN="9997"
- SPLUNK_ADD="tcp 1514"
- SPLUNK_PASSWORD="secure"
ports:
- "8001:8000"
- "9997:9997"
- "8088:8088"
- "1514:1514"
volumes:
grafana-storage:
```
## screenshots
Here are some teasers:




You can find my repo under [https://github.com/eifinger/appdaemon-config](https://github.com/eifinger/appdaemon-config) | 29.329193 | 176 | 0.671961 | eng_Latn | 0.301765 |
1d33be994659ceb3fee17025daf87e9a6cfccd5d | 2,756 | md | Markdown | aiml/readinggroup.md | ylatif/ylatif.github.io | dca29d88512833ad5b07ee222ec613d9b44f043c | [
"MIT"
] | 1 | 2015-12-03T08:51:00.000Z | 2015-12-03T08:51:00.000Z | aiml/readinggroup.md | ylatif/ylatif.github.io | dca29d88512833ad5b07ee222ec613d9b44f043c | [
"MIT"
] | 3 | 2015-12-03T09:00:35.000Z | 2020-11-14T01:55:32.000Z | aiml/readinggroup.md | ylatif/ylatif.github.io | dca29d88512833ad5b07ee222ec613d9b44f043c | [
"MIT"
] | 1 | 2015-12-03T08:34:46.000Z | 2015-12-03T08:34:46.000Z | ---
layout: page
title: "Semantic SLAM Reading Group"
subtitle: Whats everyone reading?
---
### Next up
| When | Where | What | Who|
| :--- | :--: |:---: | :--- |
|Thursday 04/10/2018 | 2-3pm 5.57 |"DeepTAM: deep tracking and mapping", [[pdf]](https://arxiv.org/pdf/1808.01900.pdf)| *Ravi Garg*|
The idea is to meet every week / fortnight and discuss the papers which are relevant to most of us working on Semantic SLAM.
Although the general theme we envision at the moment is same as semantic slam special interest group, the non exhustive list of possible topics to formulate the agenda is:
- Developments in traditional Structure from Motion and SLAM.
- Old and new SLAM pipelines, dense/sparse SLAM, backend as well as front end related papers
- Modelling static and dynamic scenes, scalable, flexible and efficient representations for SLAM
- Optimization for SLAM (pose graph, BA, filtering etc.)
- Optimization on CRFs / robust model fitting / outlier detection
- Localization and loop closure in SLAM
- Using semantics into SLAM (incorporating planes, quadrics or more rich object representation for better tracking and/or mapping)
- Uncertainties in SLAM and data fusion
- Learning and SLAM
- Single/Multiview depth/normal estimation
- Object shape and pose learning
- Object Detection, Semantic/Instance Segmentation (including traditional inference methods graph cuts, model fitting etc.)
- Egomotion estimation, tracking object instances (rigid/articulated/deformable)
- Novel pipelines to integrate deep learning effectively with SLAM
- Enforcing multiview consistency on single view predictions (video understanding)
- Robust localization, mapping and segmentation under weather changes
- New architectures and loss functions and training techniques of NNs which related to SLAM
- Techniques for sharper dense predictions in general
- Sequential predictions with or without RNNs
- Generative models and inference with them for SLAM and semantics
- Unsupervised/Self-Supervised/Semi-Supervised Learning
- Uncertainty estimation and data fusion with deep-nets
Please don't hesitate to propose other topics (via email to Ravi / Yasir) which you think might be beneficial in this list or to invite other people interested in participating.
If you want to discuss a particular paper and lead the reading group please feel free to contact Yasir or Ravi.
### Past Reading Groups
|Thursday 27/09/2018 |"CodeSLAM — Learning a Compact, Optimisable Representation for Dense Visual SLAM", [[pdf]](https://www.imperial.ac.uk/media/imperial-college/research-centres-and-groups/dyson-robotics-lab/mbloesch_etal_cvpr2018.pdf)| *Saroj Weerasekara*| | 53 | 260 | 0.757983 | eng_Latn | 0.987029 |
1d34d3baa0d07d21b5289aa3bdbd3db39bf57093 | 2,407 | md | Markdown | admin/yum-validator/README.md | pcaruana/OSE | ad7ada049855729a4ea83321bce14ff57d41d991 | [
"Apache-2.0"
] | 17 | 2015-01-07T06:32:13.000Z | 2019-06-17T21:52:22.000Z | admin/yum-validator/README.md | pcaruana/OSE | ad7ada049855729a4ea83321bce14ff57d41d991 | [
"Apache-2.0"
] | 37 | 2015-02-24T19:29:46.000Z | 2020-10-07T00:04:29.000Z | admin/yum-validator/README.md | pcaruana/OSE | ad7ada049855729a4ea83321bce14ff57d41d991 | [
"Apache-2.0"
] | 29 | 2015-01-03T11:14:10.000Z | 2021-04-19T09:16:38.000Z | # check-sources
This directory contains python libraries and tools for examining and repairing Yum repositories on a given system. In particular, `oo-admin-yum-validator` is designed to validate repository priorities and availability, with the goal of ensuring that OpenShift dependencies aren't overwritten by untested/unsupported versions of the same packages from other repositories.
## Installation
Right now, none as such.
Make sure that this directory is in your load path for Python, either by setting `PYTHONPATH`, modifying `sys.path`, or other methods.
## Usage
### oo-admin-yum-validator
usage: oo-admin-yum-validator [-h]
[-r {node,broker,client,node-eap,node-fuse,node-amq}]
[-o OO_VERSION] [-s {rhsm,yum,rhn}] [-f] [-a]
[-p] [-c REPO_CONFIG] [-e]
optional arguments:
-h, --help show this help message and exit
-r, --role {node,broker,client,node-eap,node-fuse,node-amq},
OpenShift component role(s) this system will fulfill.
-o OO_VERSION, --oo_version OO_VERSION, --oo-version OO_VERSION
Version of OpenShift in use on this system.
-s {rhsm,yum,rhn}, --subscription-type {rhsm,yum,rhn}
Subscription management system which provides the
OpenShift repositories/channels.
-f, --fix Attempt to repair the first problem found.
-a, --fix-all Attempt to repair all problems found.
-p, --report-all Report all problems (default is to halt after first
problem report.)
-c REPO_CONFIG, --repo-config REPO_CONFIG
Load blessed repository data from the specified file
instead of built-in values
-e, --reconcile-overrides
Checks RHSM repos for local settings that differ from
settings stored remotely as content overrides, and
commutes the local values to content overrides.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
| 50.145833 | 370 | 0.613211 | eng_Latn | 0.989722 |
1d350538c6a19b3d93f0b140e3802382d631cbb2 | 4,070 | md | Markdown | README.md | jpooleycodes/SlideNotificationView | a890e7a35328035ab194ad786fde5a01302dcd56 | [
"MIT"
] | null | null | null | README.md | jpooleycodes/SlideNotificationView | a890e7a35328035ab194ad786fde5a01302dcd56 | [
"MIT"
] | null | null | null | README.md | jpooleycodes/SlideNotificationView | a890e7a35328035ab194ad786fde5a01302dcd56 | [
"MIT"
] | null | null | null | [](https://jitpack.io/#jpooleycodes/SlideNotificationView)
# Slide Notification View
This is a custom view written in Kotlin to use for visibly notifying the user of an event while inside the app.
I needed a way to notify users of an event but I did not want to block visibility of the top or bottom of the screen so I created this library.<br/><br/>
<img src="preview.gif" alt="Example" width=40% />
<img src="preview_drag.gif" alt="Example dragging" width=40% align="right"/>
<img src="preview_change_style.gif" alt="Example styling" width=40%/>
<br/>
## Getting Started
Add the dependency to you applications with JitPack in build.gradle file:
```groovy
implementation 'com.github.jpooleycodes:SlideNotificationView:533cf2c420'
```
Place the view in your layouts XML and position it on the edge of the screen:
```xml
<com.jpcodes.slidenotification.SlideNotificationView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:elevation="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent">
</com.jpcodes.slidenotification.SlideNotificationView>
```
When the view is collapsed, it can be swiped open or tapped to open it. Once fully open the view can be swiped back
to close it. If tapped while open you can detect that tap by using the OnSliderNotificationClickListener:
```java
rightSlideView.setSliderNotificationClickListener(object : OnSliderNotificationClickListener {
override fun onSliderNotificationClicked() {
Snackbar.make(mainLayout, "Right Notification Clicked", Snackbar.LENGTH_SHORT)
.show()
rightSlideView.close()
}
})
```
## Customization
You can customize the view through XML attributes or programmatically. Example using some of the XML attributes:
```xml
<com.jpcodes.slidenotification.SlideNotificationView
android:id="@+id/left_slide_notification_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:elevation="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:slideNotification_enableLeftSideLayout="true"
app:slideNotification_enableAutoCollapse="false"
app:slideNotification_notificationText="@string/notification_new_match"
app:slideNotification_notificationTextColor="@color/colorRed"
app:slideNotification_notificationBackgroundColor="@color/colorBackground"
app:slideNotification_notificationIcon="@drawable/ic_favorite_border_red_24dp"
app:slideNotification_topPercentDraggableLimit="5"
app:slideNotification_bottomPercentDraggableLimit="5">
</com.jpcodes.slidenotification.SlideNotificationView>
```
Example of methods for customizing programmatically
``` kotlin
rightSlideView.setNotificationText(getString(R.string.notification_new_message))
rightSlideView.setNotificationIcon(getDrawable(R.drawable.ic_message_purple_24dp)!!)
rightSlideView.setNotificationTextColor(resources.getColor(R.color.colorDeepPurpleMaterial500))
rightSlideView.setBackgroundColor(resources.getColor(R.color.colorBackground))
rightSlideView.setDraggable(false)
rightSlideView.enableAutoCollapse(false)
rightSlideView.setTopPercentDraggableLimit(10)
rightSlideView.setBottomPercentDraggableLimit(10)
rightSlideView.setAutoCollapseTime(1000)
rightSlideView.open()
rightSlideView.close()
rightSlideView.collapse()
```
## Running the tests
There are Instrumented tests that verify the various behaviors of the view. The tests are part of the included
example app (NotificationSlideViewInstrumentedTest.kt). The tests can be executed within Android Studio.
## Build Info
```
compileSdkVersion 28
minSdkVersion 21
targetSdkVersion 28
```
## Authors
* **James Pooley** - *Initial work* - [jpooleycodes](https://github.com/jpooleycodes)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
| 39.514563 | 153 | 0.80516 | eng_Latn | 0.618114 |
1d35bab0cd9e278d4f7afba42a22f1a8122fd49b | 144 | md | Markdown | README.md | themakers/trg | 2f7925a31862d9824df1cac58fc5b19544346f91 | [
"MIT"
] | 1 | 2018-05-02T14:11:49.000Z | 2018-05-02T14:11:49.000Z | README.md | themakers/tgr | 2f7925a31862d9824df1cac58fc5b19544346f91 | [
"MIT"
] | null | null | null | README.md | themakers/tgr | 2f7925a31862d9824df1cac58fc5b19544346f91 | [
"MIT"
] | null | null | null | # TaskGraph
Executes arbitrary tasks in parallel taking care about execution all of it's dependencies
See code for docs and test for examples
| 24 | 89 | 0.8125 | eng_Latn | 0.996763 |
1d366e205432c9e4baf59f7f4e847febabf8e8f7 | 100 | md | Markdown | README.md | guillaumevincent/nodejs-start | 940e08cf9b1129133587e5adff83452805dec71d | [
"MIT"
] | null | null | null | README.md | guillaumevincent/nodejs-start | 940e08cf9b1129133587e5adff83452805dec71d | [
"MIT"
] | null | null | null | README.md | guillaumevincent/nodejs-start | 940e08cf9b1129133587e5adff83452805dec71d | [
"MIT"
] | null | null | null | nodejs-start
============
installer dépendances:
npm install
lancer les tests:
npm test | 9.090909 | 22 | 0.62 | fra_Latn | 0.332196 |
1d3703eb74128d35f8190c1e9c194666b3632554 | 33 | md | Markdown | src/contents/intro.md | ruchjowpl/ruchjowpl.github.io | c184e253ed51d228658b7f2889066f72d189aa32 | [
"CC0-1.0"
] | null | null | null | src/contents/intro.md | ruchjowpl/ruchjowpl.github.io | c184e253ed51d228658b7f2889066f72d189aa32 | [
"CC0-1.0"
] | null | null | null | src/contents/intro.md | ruchjowpl/ruchjowpl.github.io | c184e253ed51d228658b7f2889066f72d189aa32 | [
"CC0-1.0"
] | null | null | null | *#460JOW w wyborach do Sejmu RP*
| 16.5 | 32 | 0.727273 | pol_Latn | 0.999966 |
1d37686c7105e0613ba2c3fd40685d11a7ccd77d | 244 | md | Markdown | README.md | alexandreshinohara/text-parser-machado | bfa1d939f1d24c44a6780438776faccf1907744a | [
"MIT"
] | null | null | null | README.md | alexandreshinohara/text-parser-machado | bfa1d939f1d24c44a6780438776faccf1907744a | [
"MIT"
] | null | null | null | README.md | alexandreshinohara/text-parser-machado | bfa1d939f1d24c44a6780438776faccf1907744a | [
"MIT"
] | null | null | null | # text-parser-machado
A simple txt script to parse and collect chapter number of different translations of Machado de Assis' Dom Casmurro.
Uses pandas to read, organize and export data.
Kept some dummy txt files so the code could be tested.
| 34.857143 | 116 | 0.790984 | eng_Latn | 0.966575 |
1d377b2c59ee9322e5d46061615009d177392e7a | 2,445 | md | Markdown | README.md | johndao1005/WEB601-Node | d4cbfaa079d7055831702fbbc0ff2983455bbaaf | [
"MIT"
] | null | null | null | README.md | johndao1005/WEB601-Node | d4cbfaa079d7055831702fbbc0ff2983455bbaaf | [
"MIT"
] | null | null | null | README.md | johndao1005/WEB601-Node | d4cbfaa079d7055831702fbbc0ff2983455bbaaf | [
"MIT"
] | null | null | null | # WEB601-Node
testing node methods
1. `process.pid`: This process's ID
target the process by using its ID
2. `process.argv`: A list of command-line argument supplied to this process
`argv` property, which is an array which contain all the command-line invocation
arguments.
Using Javascript to loop through all the command-line
```Javascript
const http = require('http')
const port = 3000
debugger
http.createServer((req, res) => {
res.writeHead(200, {'Content-Type': 'text/plain'})
debugger
res.end('Hello World\n')
}).listen(3000, () => {
console.log(`Server running at http://localhost:${port}`)
})
```
3. `process.env`: A list of environment variables
Access the environment variable either in env file or current environment
This can retrieve the environment variable. For example:
Using the current environment
```Javascript
USER_ID=239482 USER_KEY=foobar node app.js
```
```Javascript
process.env.USER_ID // "239482"
process.env.USER_KEY // "foobar"
```
Access the variables in env file
```Javascript
require('dotenv').config();
process.env.USER_ID // "239482"
process.env.USER_KEY // "foobar"
process.env.NODE_ENV // "development"
```
4. `process.platform`: Platform name, such as `darwin` for macOS
5. `process.release`: This Node's release URL
6. `process.versions`: A list of versions of Google Chrome V8, zlib, uv, etc.
7. `process.stdin()`: The standard input (for reading)
8. `process.stdout()`: The Standard output (for writing)
9. `process.uptime()`: Time of how long this process is running
10. `process.memoryUsage()`: Resident set size, total heap and used heap memory usage
11. `process.exit()`: Terminating this process
`SIGKILL` is the signal to immediately terminate the process which similar with `process.exit()`
while `SIGTERM` would gracefully terminate the process. The signal would send to process managers
```Javascript
process.on('SIGKILL', () => {
server.close(() => {
console.log('Process terminated')
})
})
```
12. `process.kill()`: Termination of another process
similar with `process.exit()`, `process.kill()` handle the termination but the target would be another process
`process.kill(process.pid, 'SIGTERM')`
`SIGTERM` can be change as `SIGKILL` like `process.exit()` | 32.171053 | 116 | 0.66953 | eng_Latn | 0.929092 |
1d37e92049109c753f7109500525322b223eb638 | 1,036 | md | Markdown | README.md | hjudi/gelato-helpers | 55c5609a424b5359087ae1faeb650aa549142c77 | [
"MIT"
] | null | null | null | README.md | hjudi/gelato-helpers | 55c5609a424b5359087ae1faeb650aa549142c77 | [
"MIT"
] | null | null | null | README.md | hjudi/gelato-helpers | 55c5609a424b5359087ae1faeb650aa549142c77 | [
"MIT"
] | null | null | null | # gelato-helpers
A compact, single-file collection of iOS helpers + time savers for common tasks related to tweaking UIView, dealing with messy REST values, image manipulation, and more.
## Installation
Just drop the file into your Xcode project and add it to your target.
## Included
- Quick device info
- UIView frame shortcuts, bulk subview removal
- Compact NSDate “elapsed” parser (“Now”, “5m ago”, “2d ago”)
- UIColor manipulation + string-type hex -> UIColor parser!
- NSAttributedText help: custom line height + alignment generator
- Optional<> Array subscript. No more unpredictable [index] getter.
- Messy JSON value parsers. “True”, “no” -> their bool values.
- Get an array of @-mentioned words in a string!
(“We @all live in the yellow @submarine” -> [“all”,”submarine”])
- Link minification: “https://github.com/hjudi/gelato-helpers” -> “github.com”
- UIImage manipulation: dimWithAlpha() + fillWithColor()
- More UIColor manipulation: darkerByPercentage(), lighterByPercentage(), getRGBA() -> [r,g,b,a], and toImage(). | 54.526316 | 170 | 0.741313 | eng_Latn | 0.769136 |
1d381553ed03ff4cf0f08f14d94e0b034977e646 | 21,904 | md | Markdown | docs/android/AndroidNote/AdavancedPart/RecyclerView专题.md | pengMaster/BestNote | 80660e4e1eb1191640669d269f8765f779229596 | [
"MIT"
] | 953 | 2019-04-16T01:00:19.000Z | 2022-03-30T07:39:01.000Z | docs/android/AndroidNote/AdavancedPart/RecyclerView专题.md | pengMaster/BestNote | 80660e4e1eb1191640669d269f8765f779229596 | [
"MIT"
] | 6 | 2019-04-16T07:26:19.000Z | 2021-02-18T12:29:09.000Z | docs/android/AndroidNote/AdavancedPart/RecyclerView专题.md | pengMaster/BestNote | 80660e4e1eb1191640669d269f8765f779229596 | [
"MIT"
] | 191 | 2019-04-13T14:23:00.000Z | 2022-03-15T06:07:40.000Z | RecyclerView专题
===
### 简介
`RecyclerView`是`Android 5.0`提供的新控件,已经用了很长时间了,但是一直没有时间去仔细的梳理一下。现在项目不太紧,决定来整理下。
官方文档中是这样介绍的:
`A flexible view for providing a limited window into a large data set.`
`RecyclerView`比`listview`更先进更灵活,对于很多的视图它就是一个容器,可以有效的重用和滚动。当数据动态变化的时候请使用它。
##### 专业术语:
- `Adapter`: `A subclass of RecyclerView.Adapter responsible for providing views that represent items in a data set.`
- `Position`: `The position of a data item within an Adapter.`
- `Index`: `The index of an attached child view as used in a call to getChildAt(int). Contrast with Position.`
- `Binding`: `The process of preparing a child view to display data corresponding to a position within the adapter.`
- `Recycle (view)`: `A view previously used to display data for a specific adapter position may be placed in a cache for later reuse to display the same type of data again later. This can drastically improve performance by skipping initial layout inflation or construction.`
- `Scrap (view)`: `A child view that has entered into a temporarily detached state during layout. Scrap views may be reused without becoming fully detached from the parent RecyclerView, either unmodified if no rebinding is required or modified by the adapter if the view was considered dirty.`
- `Dirty (view)`: `A child view that must be rebound by the adapter before being displayed.`
##### `RecyclerView`中的位置:
`RecyclerView`在`RecyclerView.Adapter`和`RecyclerView.LayoutManager`中引进了一个抽象的额外中间层来保证在布局计算的过程中能批量的监听到数据变化。这样介绍了`LayoutManager`追踪`adapter`数据变化来计算动画的时间。因为所有的`View`绑定都是在同一时间执行,所以这样也提高了性能和避免了一些非必要的绑定。
因为这个原因,在`RecylcerView`中有两种`position`类型相关的方法:
- `layout position`: 在最近一次`layout`计算是`item`的位置。这是`LayoutManager`角度中的位置。
- `adapter position`: `item`在`adapter`中的位置。这是从`Adapter`的角度中的位置。
这两种`position`除了在分发`adapter.notify`事件与之后计算布局更新的这段时间之内外都是相同的。
可以通过`getLayoutPosition(),findViewHolderForLayoutPosition(int)`方法来获取最近一次布局计算的`LayoutPosition`。这些`positions`包括从最近一次布局计算的所有改变。你可以根据这些位置来方便的得到用户当前从屏幕上所看到的。例如,如果在屏幕上有一个列表,用户请求的是第五个条目,你可以通过该方法来匹配当前用户正在看的内容。
另一种`AdapterPosition`相关的方法是`getAdapterPosition(),findViewHolderForAdapterPosition(int)`,当及时一些数据可能没有来得及被展现到布局上时便需要获取最新的`adapter`位置可以使用这些相关的方法。例如,如果你想获取一个条目的`ViewHOlder`的`click`事件时,你应该使用`getAdapterPosition()`。需要知道这些方法在`notifyDataSetChange()`方法被调用和新布局还没有被计算之前是不能使用的。鉴于这个原因,你应该小心的去处理这些方法有可能返回`NO_POSITION`或者`null`的情况。
### 结构
- `RecyclerView.Adapter`: 创建`View`并将数据集合绑定到`View`上
- `ViewHolder`: 持有所有的用于绑定数据或者需要操作的`View`
- `LayoutManager`: 布局管理器,负责摆放视图等相关操作
- `ItemDecoration`: 负责绘制`Item`附近的分割线,通过`RecyclerView.addItemDecoration()`使用
- `ItemAnimator`: 为`Item`的操作添加动画效果,如,增删条目等,通过`RecyclerView.setItemAnimator(new DefaultItemAnimator());`使用
下图能更直观的了解:

##### `RecyclerView`提供这些内置布局管理器:
- `LinearLayoutManager`: 以垂直或水平滚动列表方式显示项目。
- `GridLayoutManager`: 在网格中显示项目。
- `StaggeredGridLayoutManager`: 在分散对齐网格中显示项目。
##### `RecyclerView.ItemDecoration`是一个抽象类,可以通过重写以下三个方法,来实现Item之间的偏移量或者装饰效果:
- `public void onDraw(Canvas c, RecyclerView parent)` 装饰的绘制在Item条目绘制之前调用,所以这有可能被Item的内容所遮挡
- `public void onDrawOver(Canvas c, RecyclerView parent)` 装饰的绘制在Item条目绘制之后调用,因此装饰将浮于Item之上
- `public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent)` 与padding或margin类似,LayoutManager在测量阶段会调用该方法,计算出每一个Item的正确尺寸并设置偏移量。
##### `ItemAnimator`触发于以下三种事件:
- 某条数据被插入到数据集合中
- 从数据集合中移除某条数据
- 更改数据集合中的某条数据
在之前的版本中,当时据集合发生改变时通过调用`notifyDataSetChanged()`,来刷新列表,因为这样做会触发列表的重绘,所以并不会出现任何动画效果,因此需要调用一些以`notifyItem*()`作为前缀的特殊方法,比如:
- `public final void notifyItemInserted(int position)` 向指定位置插入`Item`
- `public final void notifyItemRemoved(int position)` 移除指定位置`Item`
- `public final void notifyItemChanged(int position)` 更新指定位置`Item`
### 使用介绍:
- 添加依赖库
```
dependencies {
compile 'com.android.support:recyclerview-v7:23.4.0'
}
```
- 示例代码
```java
public class MainActivity extends AppCompatActivity {
private RecyclerView mRecyclerView;
private LinearLayoutManager mLayoutManager;
private RecyclerView.Adapter mAdapter;
private String [] mDatas = {"Android","ios","jack","tony","window","mac","1234","hehe","495948", "89757", "66666"};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findView();
initView();
}
private void findView() {
mRecyclerView = (RecyclerView) findViewById(R.id.rv);
}
private void initView() {
// use this setting to improve performance if you know that changes
// in content do not change the layout size of the RecyclerView
mRecyclerView.setHasFixedSize(true);
// use a linear layout manager
mLayoutManager = new LinearLayoutManager(this);
mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRecyclerView.setLayoutManager(mLayoutManager);
mAdapter = new MyAdapter(mDatas);
mRecyclerView.setAdapter(mAdapter);
}
private class MyAdapter extends RecyclerView.Adapter<MyHolder> {
private String[] mData;
public MyAdapter(String[] data) {
mData = data;
}
@Override
public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {
// create a new view
View v = LayoutInflater.from(parent.getContext()).inflate(
R.layout.item, parent, false);
MyHolder holder = new MyHolder(v);
return holder;
}
@Override
public void onBindViewHolder(MyHolder holder, int position) {
holder.mTitleTv.setText(mData[position]);
}
@Override
public int getItemCount() {
return mData == null ? 0 : mData.length;
}
}
static class MyHolder extends RecyclerView.ViewHolder {
public TextView mTitleTv;
public MyHolder(View itemView) {
super(itemView);
mTitleTv = (TextView) itemView;
}
}
}
```
`activity_main的内容如下: `
```xml
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent" />
```
`item的内容如下:`
```xml
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp"
android:gravity="center_horizontal"
android:textSize="30dp">
</TextView>
```
### 点击事件
之前在使用`ListView`的时候,设置点击事件是非常方便的。
```java
mListView.setOnItemClickListener();
mListView.setOnItemLongClickListener();
```
但是`RecylcerView`确没有提供类似的方法。那我们只能是自己去处理。处理的方式也有两种:
- 通过`itemView.onClickListener()`以及`onLongClickListener()`
```java
public class MainActivity extends AppCompatActivity {
private RecyclerView mRecyclerView;
private LinearLayoutManager mLayoutManager;
private MyAdapter mAdapter;
private String[] mDatas = {"Android", "ios", "jack", "tony", "window", "mac", "1234", "hehe", "495948", "89757", "66666"};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findView();
initView();
}
private void findView() {
mRecyclerView = (RecyclerView) findViewById(R.id.rv);
}
private void initView() {
// use this setting to improve performance if you know that changes
// in content do not change the layout size of the RecyclerView
mRecyclerView.setHasFixedSize(true);
// use a linear layout manager
mLayoutManager = new LinearLayoutManager(this);
mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRecyclerView.setLayoutManager(mLayoutManager);
mAdapter = new MyAdapter(mDatas);
mAdapter.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(View view, int position) {
Toast.makeText(MainActivity.this, "click " + mDatas[position], Toast.LENGTH_SHORT).show();
}
});
mAdapter.setOnItemLongClickListener(new OnItemLongClickListener() {
@Override
public void onItemLongClick(View view, int position) {
Toast.makeText(MainActivity.this, "long click " + mDatas[position], Toast.LENGTH_SHORT).show();
}
});
mRecyclerView.setAdapter(mAdapter);
}
class MyAdapter extends RecyclerView.Adapter<MyHolder> {
private String[] mData;
public MyAdapter(String[] data) {
mData = data;
}
@Override
public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {
// create a new view
View v = LayoutInflater.from(parent.getContext()).inflate(
R.layout.item, parent, false);
MyHolder holder = new MyHolder(v);
return holder;
}
@Override
public void onBindViewHolder(final MyHolder holder, final int position) {
holder.mTitleTv.setText(mData[position]);
if (mOnItemClickListener != null) {
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mOnItemClickListener.onItemClick(holder.itemView, position);
}
});
}
if (mOnItemLongClickListener != null) {
holder.itemView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
mOnItemLongClickListener.onItemLongClick(holder.itemView, position);
return true;
}
});
}
}
@Override
public int getItemCount() {
return mData == null ? 0 : mData.length;
}
private OnItemClickListener mOnItemClickListener;
private OnItemLongClickListener mOnItemLongClickListener;
public void setOnItemClickListener(OnItemClickListener mOnItemClickListener) {
this.mOnItemClickListener = mOnItemClickListener;
}
public void setOnItemLongClickListener(OnItemLongClickListener mOnItemLongClickListener) {
this.mOnItemLongClickListener = mOnItemLongClickListener;
}
}
static class MyHolder extends RecyclerView.ViewHolder {
public TextView mTitleTv;
public MyHolder(View itemView) {
super(itemView);
mTitleTv = (TextView) itemView;
}
}
public interface OnItemClickListener {
void onItemClick(View view, int position);
}
public interface OnItemLongClickListener {
void onItemLongClick(View view, int position);
}
}
```
- 使用`RecyclerView.OnItemTouchListener`
虽然没有提供现成的监听器,但是提供了一个内部接口`OnItemTouchListener`。
先来看看它的介绍:
```
/**
* An OnItemTouchListener allows the application to intercept touch events in progress at the
* view hierarchy level of the RecyclerView before those touch events are considered for
* RecyclerView's own scrolling behavior.
*
* <p>This can be useful for applications that wish to implement various forms of gestural
* manipulation of item views within the RecyclerView. OnItemTouchListeners may intercept
* a touch interaction already in progress even if the RecyclerView is already handling that
* gesture stream itself for the purposes of scrolling.</p>
*
* @see SimpleOnItemTouchListener
*/
public static interface OnItemTouchListener {
...
}
```
说的和明白了,而且还让你看`SimpleOnItemTouchListener`,猜也能猜出来是一个默认的实现类。
好了直接上代码:
```java
public class MainActivity extends AppCompatActivity {
private RecyclerView mRecyclerView;
private LinearLayoutManager mLayoutManager;
private MyAdapter mAdapter;
private String[] mDatas = {"Android", "ios", "jack", "tony", "window", "mac", "1234", "hehe", "495948", "89757", "66666"};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findView();
initView();
}
private void findView() {
mRecyclerView = (RecyclerView) findViewById(R.id.rv);
}
private void initView() {
// use this setting to improve performance if you know that changes
// in content do not change the layout size of the RecyclerView
mRecyclerView.setHasFixedSize(true);
// use a linear layout manager
mLayoutManager = new LinearLayoutManager(this);
mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRecyclerView.setLayoutManager(mLayoutManager);
mAdapter = new MyAdapter(mDatas);
mRecyclerView.setAdapter(mAdapter);
mRecyclerView.addOnItemTouchListener(new RecyclerViewClickListener(this, mRecyclerView, new OnItemClickListener() {
@Override
public void onItemClick(View view, int position) {
Toast.makeText(MainActivity.this, mDatas[position], Toast.LENGTH_SHORT).show();
}
@Override
public void onItemLongClick(View view, int position) {
Toast.makeText(MainActivity.this, "Long Click " + mDatas[position], Toast.LENGTH_SHORT).show();
}
}));
}
class RecyclerViewClickListener extends RecyclerView.SimpleOnItemTouchListener {
private GestureDetector mGestureDetector;
private OnItemClickListener mListener;
public RecyclerViewClickListener(Context context, final RecyclerView recyclerView, OnItemClickListener listener) {
mListener = listener;
mGestureDetector = new GestureDetector(context,
new GestureDetector.SimpleOnGestureListener() {
@Override
public boolean onSingleTapUp(MotionEvent e) {
View childView = recyclerView.findChildViewUnder(e.getX(), e.getY());
if (childView != null && mListener != null) {
mListener.onItemClick(childView, recyclerView.getChildLayoutPosition(childView));
return true;
}
return false;
}
@Override
public void onLongPress(MotionEvent e) {
View childView = recyclerView.findChildViewUnder(e.getX(), e.getY());
if (childView != null && mListener != null) {
mListener.onItemLongClick(childView, recyclerView.getChildLayoutPosition(childView));
}
}
});
}
@Override
public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
if (mGestureDetector.onTouchEvent(e)) {
return true;
} else
return super.onInterceptTouchEvent(rv, e);
}
@Override
public void onTouchEvent(RecyclerView rv, MotionEvent e) {
super.onTouchEvent(rv, e);
}
@Override
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
super.onRequestDisallowInterceptTouchEvent(disallowIntercept);
}
}
interface OnItemClickListener {
void onItemClick(View view, int position);
void onItemLongClick(View view, int position);
}
```
上面的实现稍微有些缺陷,就是如果我手指按住某个条目一直不抬起,他也会执行`Long click`事件,这显然是不合理的,至于怎么解决,就是可以不用`GestureDetector`,自己在`DOWN`和`UP`事件中去判断处理。
### Headerview FooterView
之前在`ListView`中提供了`addHeaderView()`和`addFooterView()`等方法,但是在`RecyclerView`中并没有提供类似的方法,那我们该如何添加呢? 也很简单,就是通过`Adapter`中去添加,利用不同的`itemViewType`,然后根据不同的类型去在`onCreateViewHOlder`中创建不同的视图,通过这种方式来达到`headerview`和`FooterView`的效果。
上一段简单的示例代码:
```java
public class HeaderAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
private static final int TYPE_HEADER = 0;
private static final int TYPE_ITEM = 1;
String[] data;
public HeaderAdapter(String[] data) {
this.data = data;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
if (viewType == TYPE_ITEM) {
//inflate your layout and pass it to view holder
return new VHItem(null);
} else if (viewType == TYPE_HEADER) {
//inflate your layout and pass it to view holder
return new VHHeader(null);
}
throw new RuntimeException("there is no type that matches the type " + viewType + " + make sure your using types correctly");
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
if (holder instanceof VHItem) {
String dataItem = getItem(position);
//cast holder to VHItem and set data
} else if (holder instanceof VHHeader) {
//cast holder to VHHeader and set data for header.
}
}
@Override
public int getItemCount() {
return data.length + 1;
}
@Override
public int getItemViewType(int position) {
if (isPositionHeader(position))
return TYPE_HEADER;
return TYPE_ITEM;
}
private boolean isPositionHeader(int position) {
return position == 0;
}
private String getItem(int position) {
return data[position - 1];
}
class VHItem extends RecyclerView.ViewHolder {
TextView title;
public VHItem(View itemView) {
super(itemView);
}
}
class VHHeader extends RecyclerView.ViewHolder {
Button button;
public VHHeader(View itemView) {
super(itemView);
}
}
}
```
上面的代码对`LinearLayoutManger`是没问题的,但是使用`GridLayoutManager`呢? 如果是两列,那添加的`HeaderView`并不是占据上第一行,而是`HeaderView`与第二个`ItemView`一起占据第一行。那该怎么处理呢?
那就是使用`setSpanSizeLookup()`方法。
比如:
```java
recyclerView.setLayoutManager(new GridLayoutManager(this, 2));
```
在上面的基本设置中,我们的`spanCount`为2,每个`item`的`span size`为1,因此一个`header`需要的`span size`则为2。在我尝试着添加`header`之前,我想先看看如何设置`span size`。其实很简单。
```java
final GridLayoutManager manager = new GridLayoutManager(this, 2);
recyclerView.setLayoutManager(manager);
manager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@Override
public int getSpanSize(int position) {
return adapter.isHeader(position) ? manager.getSpanCount() : 1;
}
});
```
### 下拉刷新、自动加载
##### 实现下拉刷新
实现下拉刷新也很简单了,可以使用`SwipeRefrshLayout`,`SwipeRefrshLayout`是`Google`官方提供的组件,可以实现下拉刷新的功能。已包含到`support.v4`包中。
主要方法有:
- `setOnRefreshListener(OnRefreshListener)`:添加下拉刷新监听器
- `setRefreshing(boolean)`:显示或者隐藏刷新进度条
- `isRefreshing()`:检查是否处于刷新状态
- `setColorSchemeResources()`:设置进度条的颜色主题,最多设置四种。
```xml
<android.support.v4.widget.SwipeRefreshLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical"
>
<android.support.v7.widget.RecyclerView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
></android.support.v7.widget.RecyclerView>
</android.support.v4.widget.SwipeRefreshLayout>
```
具体实现就不写了。
##### 实现滑动自动加载更多功能
实现方式和`ListView`的实现方式类似,就是通过监听`scroll`时间,然后判断当前显示的`item`。
```java
//RecyclerView滑动监听
mRecylcerView.setOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
super.onScrollStateChanged(recyclerView, newState);
if (newState ==RecyclerView.SCROLL_STATE_IDLE && lastVisibleItem + 1 ==adapter.getItemCount()) {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
List<String> newDatas = new ArrayList<String>();
for (int i = 0; i< 5; i++) {
int index = i +1;
newDatas.add("more item" + index);
}
adapter.addMoreItem(newDatas);
}
},1000);
}
}
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
super.onScrolled(recyclerView,dx, dy);
lastVisibleItem =linearLayoutManager.findLastVisibleItemPosition();
}
});
```
然后再通过结合`FooterView`以及增加几种状态就可以实现自动加载更多了。
---
- 邮箱 :charon.chui@gmail.com
- Good Luck! | 36.875421 | 312 | 0.63687 | yue_Hant | 0.42327 |
1d3818f8b350420559d9e2f96ff7ac206135ad68 | 338 | md | Markdown | .github/pull_request_template.md | lance10t/arxiv.py | c98101496f55af72947c8e81a8070f3864641f28 | [
"MIT"
] | 553 | 2016-01-03T06:52:23.000Z | 2022-03-27T01:07:30.000Z | .github/pull_request_template.md | lance10t/arxiv.py | c98101496f55af72947c8e81a8070f3864641f28 | [
"MIT"
] | 73 | 2016-07-24T08:26:29.000Z | 2022-03-24T14:48:00.000Z | .github/pull_request_template.md | lance10t/arxiv.py | c98101496f55af72947c8e81a8070f3864641f28 | [
"MIT"
] | 88 | 2016-02-07T04:56:40.000Z | 2022-03-21T05:12:31.000Z | <!-- Thanks for your contribution! -->
# Description
## Breaking changes
> List any changes that break the API usage supported on `master`.
# Relevant issues
> List [GitHub issues](https://github.com/lukasschwab/arxiv.py/issues) relevant to this change.
# Checklist
- [ ] (If appropriate) `README.md` example usage has been updated.
| 24.142857 | 95 | 0.727811 | eng_Latn | 0.942185 |
1d3946ab61fb2ba92492f9f969e98c757864d8fd | 25 | md | Markdown | docs/guide.md | Marakusa/neptyne | 9609aadf0b4a32f753a564c0f6652f6aaec30e21 | [
"Apache-2.0"
] | null | null | null | docs/guide.md | Marakusa/neptyne | 9609aadf0b4a32f753a564c0f6652f6aaec30e21 | [
"Apache-2.0"
] | null | null | null | docs/guide.md | Marakusa/neptyne | 9609aadf0b4a32f753a564c0f6652f6aaec30e21 | [
"Apache-2.0"
] | null | null | null | # Neptyne Beginners Guide | 25 | 25 | 0.84 | kor_Hang | 0.741095 |
1d3a46b28149708842dfcfa7ad09680513bf72b8 | 286 | md | Markdown | posts/why-is-yarn.md | kreig303/kreig-me-next | 28fdc2dad0bd791e9c4707acf24b1ef83f253953 | [
"MIT"
] | 1 | 2020-05-10T03:55:11.000Z | 2020-05-10T03:55:11.000Z | posts/why-is-yarn.md | kreig303/kreig-me-next | 28fdc2dad0bd791e9c4707acf24b1ef83f253953 | [
"MIT"
] | 3 | 2020-05-13T13:22:14.000Z | 2021-09-01T18:49:07.000Z | posts/why-is-yarn.md | kreig303/kreig-me-next | 28fdc2dad0bd791e9c4707acf24b1ef83f253953 | [
"MIT"
] | null | null | null | ---
#path: '/blog/why-is-yarn'
date: '2020-04-06'
title: Mommy, why does `yarn` exist???
subtitle: Yes there is a reason that there are two package manager solutions.
copyright: (c) 2020 Kreig Zimmerman. All Rights Reserved.
---
Write about the seemingly unlikely existence of `yarn`!
| 28.6 | 77 | 0.727273 | eng_Latn | 0.994395 |
1d3bbf50c15845b7ad95a4c4d7b75f2113c7a2ed | 805 | md | Markdown | README.md | biswarajkar/biswarajkar.github.io | f5269d9d814dfc5d4699c8fbfce188a11224c246 | [
"MIT"
] | null | null | null | README.md | biswarajkar/biswarajkar.github.io | f5269d9d814dfc5d4699c8fbfce188a11224c246 | [
"MIT"
] | null | null | null | README.md | biswarajkar/biswarajkar.github.io | f5269d9d814dfc5d4699c8fbfce188a11224c246 | [
"MIT"
] | null | null | null | # Welcome to my portfolio site
This is the home for Biswaraj Kar's professional profile (https://biswarajkar.github.io/), which I am constantly updating.
I am working on the site at this moment and will be uploading the final version soon.
## Status
### Work In Progress
The work in progress page is built using a theme for Bootstrap created by Start Bootstrap.
Start Bootstrap is based on the [Bootstrap](http://getbootstrap.com/) framework created by [Mark Otto](https://twitter.com/mdo) and [Jacob Thorton](https://twitter.com/fat).
## Copyright and License
Copyright 2018 Biswaraj Kar for the content
Copyright 2013-2018 Blackrock Digital LLC. for the template used with code released under the [MIT](https://github.com/BlackrockDigital/startbootstrap-coming-soon/blob/gh-pages/LICENSE) license.
| 50.3125 | 194 | 0.782609 | eng_Latn | 0.95976 |
1d3c946310934d3562647365706684bbd879792c | 116 | md | Markdown | README.md | pghtimwilson/pghtimwilson.github.io | fa7b49e9cf4141fc32282cb8830cab070adeb330 | [
"MIT"
] | null | null | null | README.md | pghtimwilson/pghtimwilson.github.io | fa7b49e9cf4141fc32282cb8830cab070adeb330 | [
"MIT"
] | null | null | null | README.md | pghtimwilson/pghtimwilson.github.io | fa7b49e9cf4141fc32282cb8830cab070adeb330 | [
"MIT"
] | null | null | null | # pghtimwilson.github.io
I am a technologist dedicated to delivering value and leading change. Thoughts are my own.
| 38.666667 | 90 | 0.810345 | eng_Latn | 0.999573 |
1d3cfe5990d35055f41ceee4d3a1b82df70cb507 | 1,347 | md | Markdown | doc/web/content/comics/SmackJeeves_HitandMiss_edit.md | yasen-m/dosage | 81fe088621ad335cac2a53fcbc7b9b37f49ddce2 | [
"MIT"
] | null | null | null | doc/web/content/comics/SmackJeeves_HitandMiss_edit.md | yasen-m/dosage | 81fe088621ad335cac2a53fcbc7b9b37f49ddce2 | [
"MIT"
] | null | null | null | doc/web/content/comics/SmackJeeves_HitandMiss_edit.md | yasen-m/dosage | 81fe088621ad335cac2a53fcbc7b9b37f49ddce2 | [
"MIT"
] | null | null | null | title: Edit SmackJeeves/HitandMiss
url: "/comics/SmackJeeves_HitandMiss_edit.html"
---
Edit info for comic SmackJeeves/HitandMiss
<form name="comic" action="http://gaepostmail.appspot.com/comic/" method="post">
<table class="comicinfo">
<tr>
<th>Description</th><td><textarea name="description" cols="40" rows="3">It's a autobiographic comic about, well, me and my daily life! Doesn't that sound interesting? WARNING: This comic may contain the following; misspelling, weird situations, gaming, horrible puns, cats, depression, and the occasionally lovey dovey stuff. http://www.theduckwebcomics.com/Hit_and_Miss/ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The link to DrunkDuck Hit and Miss!</textarea></td>
</tr>
<tr>
<th>Website</th><td><input type="text" name="url" value="http://hitandmiss.smackjeeves.com/comics/" size="40"/></td>
</tr>
<tr>
<th>Genre</th><td><input type="text" name="genre" value="Other" size="40"/></td>
</tr>
<tr>
<th>Language</th><td><input type="text" name="language" value="English" size="40"/></td>
</tr>
<tr>
<th>Adult content</th><td><input type="checkbox" name="adult" value="adult" /></td>
</tr>
<tr>
<th></th><td>
<input type="hidden" name="comic" value="SmackJeeves_HitandMiss" />
<input type="submit" name="submit" value="Submit" />
</td>
</tr>
</table>
</form>
Back to the [comic](SmackJeeves_HitandMiss.html).
| 40.818182 | 462 | 0.689681 | eng_Latn | 0.396856 |
1d3d0e218634e59744a77b753bfaceab80de36d7 | 43 | md | Markdown | README.md | jjtechbigd/jj4thbrainrepo | 32e2cc618cebbde490b9341959ecdcb1f721182b | [
"MIT"
] | null | null | null | README.md | jjtechbigd/jj4thbrainrepo | 32e2cc618cebbde490b9341959ecdcb1f721182b | [
"MIT"
] | null | null | null | README.md | jjtechbigd/jj4thbrainrepo | 32e2cc618cebbde490b9341959ecdcb1f721182b | [
"MIT"
] | null | null | null | # jj4thbrainrepo
projects for MLOps course
| 14.333333 | 25 | 0.837209 | eng_Latn | 0.969536 |
1d3d4b1e1ee2669bf85fabb6a3cfdb41e19482ec | 220 | md | Markdown | docs/contribution/readme.md | marieram/awesome-github-init | 4e110f9ca659c02e68e0125ce8e9086455add651 | [
"MIT"
] | 2 | 2019-01-15T09:15:45.000Z | 2019-01-27T15:37:05.000Z | docs/contribution/readme.md | marieram/awesome-github-init | 4e110f9ca659c02e68e0125ce8e9086455add651 | [
"MIT"
] | 13 | 2019-01-16T07:47:13.000Z | 2019-04-19T11:36:09.000Z | docs/contribution/readme.md | marieram/awesome-github-init | 4e110f9ca659c02e68e0125ce8e9086455add651 | [
"MIT"
] | 3 | 2019-01-16T11:53:49.000Z | 2020-07-19T14:39:50.000Z | ## Contribution Guides
List of `CONTRIBUTION.md` guides for github repositories
- [Basic](https://github.com/arshadkazmi42/squash/blob/master/CONTRIBUTING.md)
- [Intermediate](intermediate.md)
- [Advanced](advanced.md) | 31.428571 | 78 | 0.777273 | yue_Hant | 0.584812 |
1d3dbebadbb5cd46ad4c82c08de99fd48d761782 | 4,736 | md | Markdown | _posts/2016-06-19-Decision-Making-Without-Brain.md | vvstars/sceenju | 8eb78aa42913ab096cef5438287b777af92b8cae | [
"Apache-2.0"
] | 1 | 2018-11-17T10:08:52.000Z | 2018-11-17T10:08:52.000Z | _posts/2016-06-19-Decision-Making-Without-Brain.md | vvstars/sceenju | 8eb78aa42913ab096cef5438287b777af92b8cae | [
"Apache-2.0"
] | null | null | null | _posts/2016-06-19-Decision-Making-Without-Brain.md | vvstars/sceenju | 8eb78aa42913ab096cef5438287b777af92b8cae | [
"Apache-2.0"
] | 1 | 2018-11-17T10:08:53.000Z | 2018-11-17T10:08:53.000Z | ---
title: Decision-making without a brain - Our new paper in Interface
date: 2016-06-19
author: Simon Garnier
layout: post
type: post
category:
- blog
published: true
---
How do organisms without brains make decisions? Most of life is brainless and the vast majority of organisms on Earth lack neurons altogether. Plants, fungi and bacteria must all cope with the same problem as humans – to make the best choices in a complex and ever-changing world or risk dying – without the help of a simple nervous system in many cases.
Our lab in collaboration with [Richard Mann](http://www.richardpmann.com/) ([University of Leeds](https://www.leeds.ac.uk/)), [James Marshall](http://staffwww.dcs.shef.ac.uk/people/J.Marshall/james.html) ([University of Sheffield](http://www.sheffield.ac.uk/)) and [Tanya Latty](http://www.tanyalatty.com/) ([University of Sydney](http://sydney.edu.au/)) recently studied this problem in the unicellular slime mold, [*Physarum polycephalum*](https://en.wikipedia.org/wiki/Physarum_polycephalum), a single-cell organism that can grow to several square meters in size. This giant cell, which typically lives in shady, cool and moist areas of temperate forests, spreads out to search its environment like an amoeba, extending oozy tendrils along the forest floor in search of its prey of fungi, bacteria and decaying vegetable matter.
Neither plant, animal nor fungus, *P. polycephalum* has become an unlikely candidate for studies of cognition, due to its spectacular problem-solving abilities. In recent studies, *Physarum* has been shown to solve labyrinth mazes, make complicated trade-offs, anticipate periodic events, remember where it has been, construct transport networks that have similar efficiency to those designed by human engineers and even make irrational decisions – a capability that has long been viewed as a by-product of brain circuitry.
In this study, we examined the decision-making ability of slime mold using a test classically used in humans, birds and other brained organisms: the two-armed bandit problem, named for the infamous slot machine, or one-armed bandit. In a two-armed bandit problem, the subject has two levers to pull, each of which delivers a certain, randomly determined reward. One of the levers is more likely to deliver a higher reward overall, so the challenge for participants is to decide at what point to stop exploring both options and decide to exclusively exploit just the one option in order to maximize their payoff. The phenomenon is called the exploration-exploitation tradeoff and is relevant to more than just slot machines, applying to many situations, including investors picking start-up companies to back or drivers choosing a parking space. As such, it has become a classical tool for testing the decision-making abilities of humans and other animals, but it has never before been used on an organism without a brain.
We adapted the two-armed bandit test for slime mold by giving the organism the choice to explore two opposite directions. In each direction, the slime mold encountered discrete patches of food, more or less regularly distributed. One direction would contain more of these patches than the other. They then observed how far in each direction the slime mold would explore before switching to the exploitation of one of the two directions only. The results of these experiments demonstrate that slime mold compares the relative qualities of multiple options, most often choosing the direction with the higher overall concentration of food. It was able to sum up the number of food patches encountered in each direction, as well as the quantity of food present at each patch to make correct and adaptive decisions as to the direction it should move next.
The slime mold’s decision-making algorithm can be mathematically described as a tendency to exploit environments in proportion to their reward experienced through past sampling. The algorithm is intermediate in computational complexity between simple, reactionary heuristics and calculation-intensive optimal performance algorithms, yet it has very good relative performance. While the biological substrate of the algorithm remains to be identified, this study provides insight into ancestral mechanisms of decision making and suggests that fundamental principles of decision making, information processing and even cognition are shared among diverse biological systems.
Our study has appeared in the [June edition](http://rsif.royalsocietypublishing.org/content/13/119) of the [Journal of The Royal Society Interface](http://rsif.royalsocietypublishing.org/) and can be found [**in open access** here](http://rsif.royalsocietypublishing.org/content/13/119/20160030).
| 182.153846 | 1,021 | 0.808066 | eng_Latn | 0.999265 |
1d3fecab2861b7819bb73f695df22ad63777a868 | 1,550 | md | Markdown | README.md | anlijuncn/killPRML | cf356bd47f2190991db51eb6516d4081c2a147d8 | [
"MIT"
] | null | null | null | README.md | anlijuncn/killPRML | cf356bd47f2190991db51eb6516d4081c2a147d8 | [
"MIT"
] | null | null | null | README.md | anlijuncn/killPRML | cf356bd47f2190991db51eb6516d4081c2a147d8 | [
"MIT"
] | null | null | null | # killPRML
---------------------------
## Introduction
Why I open this repo is that I found in my research, I found myself not very familar with some ML algorithms, so I decide to go thorogh PRML to have a review.
---------------------------
## Structure
There are 3 parts of this repo.
- First part is the manual for each chapter, I will try to not skip any steps in derivation.
- Second part is Python implementation for some ML models, I will try to give some visualization to help deeper understanding the models.
- Third part is the slides for PRML, if I finish the part 1 and 2, I would try to make some slides to help give beginers an "end-to-end" ML introduction.
### 🗡 Solution
- [ ] Chapter 1
- [ ] Chapter 2
- [ ] Chapter 3
- [ ] Chapter 4
- [ ] Chapter 5
- [ ] Chapter 6
- [ ] Chapter 7
- [ ] Chapter 8
- [ ] Chapter 9
- [ ] Chapter 10
- [ ] Chapter 11
- [ ] Chapter 12
- [ ] Chapter 13
- [ ] Chapter 14
### 🗡 Python implementation
- [ ] Linear Regression
- [ ] Logistic Regression
- [ ] Kernel Regression
- [ ] Naive Bayes
- [ ] Gaussian Mixture model
- [ ] Linear Mixture Model
- [ ] Generalized Linear Mixture Model
- [ ] Gaussian process
- [ ] PCA
- [ ] LDA
- [ ] ICA
- [ ] K-means
- [ ] T-SNE
- [ ] SVM
- [ ] Decision Tree
- [ ] Random Forest
- [ ] EM
- [ ] Variational Inference
- [ ] Markove Random Field
- [ ] MCMC
- [ ] Ensembel learning
### 🗡 Slides
---------------------------
## Bugs | Errors
If you find any bugs or errors, you are welcome to open an issue or email me at anlijuncn@gmail.com
| 26.724138 | 159 | 0.631613 | eng_Latn | 0.984048 |
1d418041ca905a3cf7e210870eca4e979a7b9a70 | 479 | md | Markdown | PF.Site/Apps/core-poke/README.md | karlosferreira/project-rainbow | e289520019158423704972674ecf54f7e2760d50 | [
"MIT"
] | null | null | null | PF.Site/Apps/core-poke/README.md | karlosferreira/project-rainbow | e289520019158423704972674ecf54f7e2760d50 | [
"MIT"
] | null | null | null | PF.Site/Apps/core-poke/README.md | karlosferreira/project-rainbow | e289520019158423704972674ecf54f7e2760d50 | [
"MIT"
] | null | null | null | # Poke
## App Info
- `App name`: Poke
- `Version`: 4.6.1
- `Link on Store`: https://store.phpfox.com/product/1898/poke
- `Demo site`: https://v4.phpfox.com
- `Owner`: phpFox
## Installation Guide
Please follow below steps to install new phpFox Poke app:
1. Install the Poke app from the store.
2. Remove files no longer used (at Admin Panel > Maintenance > Remove files no longer used).
3. Clear cache on your site
Congratulation! You have completed installation process. | 22.809524 | 92 | 0.722338 | eng_Latn | 0.668434 |
1d4185fe0308b116f70769422e805a0a49a5e5e0 | 50 | md | Markdown | README.md | amalkong/css-lightbox | 97049352c251a601e8c455391ddaf859f0ef0de3 | [
"MIT"
] | null | null | null | README.md | amalkong/css-lightbox | 97049352c251a601e8c455391ddaf859f0ef0de3 | [
"MIT"
] | null | null | null | README.md | amalkong/css-lightbox | 97049352c251a601e8c455391ddaf859f0ef0de3 | [
"MIT"
] | null | null | null | # css-lightbox
A css-only lightbox implementation
| 16.666667 | 34 | 0.82 | hun_Latn | 0.550593 |
1d41ac51cd67208c116f40ae0ed1e3b362a417c0 | 6,063 | md | Markdown | _posts/2020-10-20-thunderbolt.md | Gr1moire/epitech-lyon.github.io | c3e2ecd5b6f7a5de973563f867f916ce5dc43981 | [
"MIT"
] | null | null | null | _posts/2020-10-20-thunderbolt.md | Gr1moire/epitech-lyon.github.io | c3e2ecd5b6f7a5de973563f867f916ce5dc43981 | [
"MIT"
] | null | null | null | _posts/2020-10-20-thunderbolt.md | Gr1moire/epitech-lyon.github.io | c3e2ecd5b6f7a5de973563f867f916ce5dc43981 | [
"MIT"
] | 1 | 2022-03-02T00:01:03.000Z | 2022-03-02T00:01:03.000Z | ---
layout: post
title: "Experiencing the AWS lambda functions"
author: lkaroubi
categories: [ experience ]
image: assets/images/thunderbolt/affiche.jpg
published: true
---
[Thunderbolt][1] is a set of AWS lambda functions for AWS resources scheduling. It is part of a bigger AWS project I am working on, named [ParadigmShift](https://github.com/le0kar0ub1/ParadigmShift), which was intended to be a global and high level AWS resources scheduler, it is well documented in the link above.
## First things first : AWS
AWS is a [cloud provider](https://fr.wikipedia.org/wiki/Cloud_computing) which provides a large list of services (databases/server/IA/storage/...).
AWS Lambda is a FAAS (Function As A Service) which allows you to run small code with a total abstraction of the under-layers. To be clear, you can put your code in the service and then trigger it by multiple ways. Lambda is the core of the serverless model on AWS.

## Thunderbolt
### What is it?
Thunderbolt is a set of 3 lambda functions --- because that were the three functions I needed when I created the project --- used to manipulate Amazon RDS (SQL database), Amazon EC2 (Server), Amazon AppStream (application streaming). The manipulations are basically, *power on/off* and *change instance type* (number of cpus, memory allocated, ...) when relevant.
### Why ?
In fact Thunderbolt is used as a git submodule in a bigger AWS project named [ParadigmShift](https://github.com/le0kar0ub1/ParadigmShift). *ParadigmShift* was intended to be a global and high level AWS resources scheduler, it is well documented in the link above.
### How ?
Even if it is included in a bigger scheme, the project actually can be deployed as is. The deployment is insured by AWS cloudformation which is a powerful IaC (Infrastructure as code) integrator. So pragmatically you can describe your resources in a text file and the CloudFormation service will interpret and generate your requests.

## Technical side
A sample of the deployment script which uses an AWS Cloudformation template (SAM template to be accurate, but this is in the same idea).
```sh
...
echo "-------- Create SAM bucket --------"
# Create the S3 bucket (storage in cloud as filesystem) which will be used for the deployment
aws s3api create-bucket \
--bucket $bucket \
--region $region \
--create-bucket-configuration LocationConstraint=$region \
--profile $awsprofile
echo "-------- Deploy lambas --------"
# Create the build
sam build --profile $awsprofile
# Package the build in the created bucket
sam package \
--s3-bucket $bucket \
--output-template-file build/package.yml \
--profile $awsprofile
# Finally deploy the resources on the targeted AWS account
sam deploy \
--template-file build/package.yml \
--stack-name $project \
--capabilities CAPABILITY_NAMED_IAM \
--region $region \
--tags Project=$project \
--profile $awsprofile \
--parameter-overrides \
Project=$project \
CLEANUP
trap - EXIT
```
A sample of the template which describes the lambda that handles the RDS and its role.
The role is assigned to the lambda and allows the manipulation of other AWS services.
```yml
# describe the role: the rights on others AWS services and resources which can be affected
rdsLamdaRole:
Type: AWS::IAM::Role
Properties:
RoleName: !Sub "${Project}-rds-LambdaRole"
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Action: sts:AssumeRole
Policies:
- PolicyName: LogsPolicy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: "*"
# The important one, right to start/stop/modify RDS instance
- PolicyName: rdsPolicy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- rds:startDBInstance,
- rds:stopDBInstance,
- rds:modifyDBInstance
Resource: "*"
# describe the function and give the source code path
rdsLambdaFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub "${Project}-rds-handler"
Description: rds start/stop/modify
CodeUri: src
Handler: rds-handler.handler
Role: !GetAtt rdsLamdaRole.Arn
Environment:
Variables:
Project: !Sub "${Project}"
```
An example of function in this RDS lambda which stops a RDS instance. The lambda is written in node.js.
```js
function rds_stop(id)
{
return new Promise((resolve, reject) => {
const params = {
DBInstanceIdentifier: id
};
/*
* call to AWS SDK
**/
rds.stopDBInstance(params, function(err, data) {
if (err)
return reject(err);
else
return resolve("Success")
});
});
}
```
For those who whant to go further, [follow the repository page](https://github.com/le0kar0ub1/Thunderbolt/tree/master/aws).
### Improve ?
Handle more services and manipulations, if they are relevant for ParadigmShift project.
| 38.373418 | 363 | 0.622299 | eng_Latn | 0.955447 |
1d431e4ce812d83a802da7c6537d99fa13122ac0 | 1,009 | md | Markdown | Descriptions-8kata/1.Fundamentals/solution-excercise-138.md | Kruchy1980/codewars-excercises | d5d5eda87e5efef84f99478a85d9b48fc1bbeda2 | [
"MIT"
] | null | null | null | Descriptions-8kata/1.Fundamentals/solution-excercise-138.md | Kruchy1980/codewars-excercises | d5d5eda87e5efef84f99478a85d9b48fc1bbeda2 | [
"MIT"
] | null | null | null | Descriptions-8kata/1.Fundamentals/solution-excercise-138.md | Kruchy1980/codewars-excercises | d5d5eda87e5efef84f99478a85d9b48fc1bbeda2 | [
"MIT"
] | null | null | null | # Holiday VIII - Duty Free
The purpose of this kata is to work out just how many bottles of duty free whiskey you would have to buy such that the saving over the normal high street price would effectively cover the cost of your holiday.
You will be given the high street price (normPrice), the duty free discount (discount) and the cost of the holiday.
For example, if a bottle cost £10 normally and the discount in duty free was 10%, you would save £1 per bottle. If your holiday cost £500, the answer you should return would be 500.
All inputs will be integers. Please return an integer. Round down.
### Solution
function dutyFree(normPrice, discount, hol){
##### This is a mathematical problem but because we are not normally roundint the score than we are taking just intigers as result so we need to use Math.floor() method
return Math.floor(hol/(normPrice \* discount/100));
}
### More about Math.floor() method under url:
https://www.w3schools.com/jsref/jsref_floor.asp - Math.floor() method
| 43.869565 | 209 | 0.76115 | eng_Latn | 0.999081 |
1d433d200532b1a75c2610b595e5de641bbf17cd | 136 | md | Markdown | README.md | AlistairB/unused-packages-repro | e54fbfadd3a58fd352961d79ae243edf4377f254 | [
"BSD-3-Clause"
] | null | null | null | README.md | AlistairB/unused-packages-repro | e54fbfadd3a58fd352961d79ae243edf4377f254 | [
"BSD-3-Clause"
] | null | null | null | README.md | AlistairB/unused-packages-repro | e54fbfadd3a58fd352961d79ae243edf4377f254 | [
"BSD-3-Clause"
] | null | null | null | # unused-packages issue repro
```bash
cabal build
```
produces unused package warning for base-noprelude, when it is definitely used.
| 17 | 79 | 0.764706 | eng_Latn | 0.998461 |
1d43d49c520a450081c156ce09cb9305603dd0dd | 1,267 | md | Markdown | README.md | FatemaBader/Game | 1c999356783232e1504f3e390b4399b525cf0a58 | [
"MIT"
] | 1 | 2017-12-11T01:27:00.000Z | 2017-12-11T01:27:00.000Z | README.md | FatemaBader/Game | 1c999356783232e1504f3e390b4399b525cf0a58 | [
"MIT"
] | null | null | null | README.md | FatemaBader/Game | 1c999356783232e1504f3e390b4399b525cf0a58 | [
"MIT"
] | null | null | null | # Game
A Game made in Processing using physics.
#YouTube Video
[](https://www.youtube.com/watch?v=gAreBmFYWQQ)
# Concept
My game is based off the shooting game in StarWars. The player is the pilot and must use arrow keys to navigate, to dodge randomly generated shooting bullets. Each time the pilot gets shot the health bar quickly changes colour and decreases. The timer is set as soon as the game has started.
# Controls
* Arrow keys to navigate
# Features
The UI has three features.
* Start Page
* Contains the simple information needed to play the game
* Health Bar
* Shows users current Health status
* Timer
* Shows users current score
* End Page
* Displays users final score
# Functionality
* Box2D
* I used a library that would help enable the bodies to undego change after a collision.
The concept behind it is that each body would have something attached to it, be it an image or even a rectangle, to create a fixture. It's the fixture we deal with when wanting something to dispapear after 2 fixtures come in contact. In my case, the bullet would delete from the arraylist and health bar change colour and change shape (gets smaller) should a collision occur.
| 39.59375 | 377 | 0.766377 | eng_Latn | 0.998645 |
1d4573f9b55bc098c844f792a7c0640aadfaa364 | 14,315 | md | Markdown | doc/DESIGN.md | williamconvertino/Cell-Simulation-Application | 82b471285d4dcad5ce5c8fff71365552a8607171 | [
"MIT"
] | null | null | null | doc/DESIGN.md | williamconvertino/Cell-Simulation-Application | 82b471285d4dcad5ce5c8fff71365552a8607171 | [
"MIT"
] | null | null | null | doc/DESIGN.md | williamconvertino/Cell-Simulation-Application | 82b471285d4dcad5ce5c8fff71365552a8607171 | [
"MIT"
] | null | null | null | # Cell Society Design Final
### William Convertino, Tim Jang, Quentin MacFarlane, Alexis Cruz-Ayala
## Team Roles and Responsibilities
William Convertino - Created the Grid and Cell classes, the base neighborhood and shape classes & their implementation,
Controller and Logic Controller, Error Handling, and the second display. I also created some of the test files, set up
the button functionality, and contributed heavily to the design of the project.
Tim Jang -
Quentin MacFarlane - Created the backend for the WaTorWorld simulation, created the saving file logic and connected it
with the controller. Created the English properties files, helped modify and debug the Cell and Grid classes to work
with the new changes. Wrote tests as well.
Alexis Cruz-Ayala -
* Created backend for simulations not including WatorWorld.
* Created the shape and neighborhood classes
* Created tests that didn't use TestFX
* Created the logic for the grid subclasses
## Design goals
The core design idea of our project shifted when we received the final set of changes.
We initially just wanted a system that would be able to run the simulations successfully,
and allow users to create new simulation types with ease. The key design goal here was to
make the additional simulation types and any new files easy to add. We were fairly successful with
our initial design, but the new changes would have been difficult to implement.
We decided to rebuild much of the design to account for these changes. Our new design goals included
the ones previously mentioned, as well as the ability to add new border types, neighborhood patterns,
and shapes. We also wanted to be able to add new types of these features individually. For example,
if you wanted to add a new border, it should be as simple as creating a new border class, without needing
to create any additional files to make it compatible with each neighborhood and shape.
#### What Features are Easy to Add
With our final design, we were able to accomplish all of our design goals. Adding new simulations is
quite easy, requiring you only to extend the parent simulation class, initialize any new variables
in the constructor, and your logic to the updateNextGridFromCell method, and add an initialization
method in the LogicController. Adding new sim files is also quite easy, as you can simply add any matching
keys and values in any order. Any unnecessary keys are ignored, and any missing keys have automatic error
handling.
The new features are all also quite easy to implement. The new neighborhood patterns are the easiest, as
you only need to extend the parent class and add 1 method. The border patterns are quite easy too, as you
only need to make a new Grid child class and change the getNeighbors method. The hardest one to integrate is
a new shape, but this is mostly a matter of display. The logic is quite simple; you can extend the ShapeManager
class and fill out the required methods to establish which cells are considered its neighbors. Making it
display properly is a bit more challenging, and requires you to make a Display class for the shape. This isn't
terribly difficult to do, and only requires the one class, but it still has a bit more overhead than the rest of the
features.
## High-level Design
The application is created with the Main and Controller classes, and an initial Display is created for the user. If a user wants to
play a simulation, they can load it using the ChooseFile button, which then signals for the LogicController to load a new Simulation
based on the sim/csv files. This Simulation is then updated on a loop, dictated by the LogicController, and the resulting cells are then
sent through the LogicController and into the display, where they are added to the screen.
When a Simulation is created, it updates its internal variables using the metadata in its sim file. Tt then initializes a new
Grid based on its associated csv file and the border/shape type specified in the metadata.
When a Simulation is updated, it goes through each of the Cells in the Grid, and changes their next states based on the current and next state.
When every cell has been updated, the current states are set to be whatever value used to be the next state, and the next states are reset.
This allows for synchronization between iterations, and prevents conflicts that could occur if one cell's updated state would change the behavior
of a non-updated cell.
The Simulation's logic is based on a cell's neighbors, which they can get from the Grid class using the getNeighbors method. This method uses the passed
neighborhood pattern (which can be specified if needed, but usually just uses the pattern chosen by the metadata) as well as the Grid's shape and
border pattern to choose which cells are considered neighbors.
#### Core Classes
_Display_ - The Display class manages its active window, showing the active simulation grid and allowing the user to interact
with the program through buttons and clickable cells. We have a child display class for each different shape. They all share
the same basic functionality, but have different logic for how the cells are displayed.
_Logic Controller_ - The logic controller manages and updates the simulations. It can load a new simulation from a sim/csv file
using the initializeFromFile method, and updates it every couple seconds (depending on the current speed) by using a ScheduleExecutorService.
Each logic controller has a display that it communicates with to display the current state of the grid. It is worth noting that
when we create multiple concurrent simulations, there is a logic controller that loads and manages each one, and displays it to
its respective display. This allows us to load a new simulation, play/pause/change the speed of a simulation, or close a simulation
without it affecting any of the other active simulations.
_Controller_ - The controller manages the functionality of the application as a whole. It initializes each display and logic controller
when a new simulation instance is created, and handles all the button events.
_Simulation_ - The simulation class is the base class off which each of the simulations are created. when it is initialized, it sets up the
current simulation by reading the metadata in the sim file (the keys and values). Whenever the simulation is updated, the class
goes through each of its cells and calls the abstract updateNextGridFromCell method, which allows the child classes to implement
their own code for how each cell should react. The simulation file does not directly keep track of border logic, different shapes,
or neighborhood patterns, so these features can be changed separately and easily integrated by simply changing the values in the sim
file's metadata.
_Grid_ - The grid classes keep track of the cell's current and future states for any given simulation, and have functionality to
change cell values. This allows the simulations to update the current state of the simulation. The grid's also have methods to get
the neighbors of a specific cell, which is useful for knowing how cells should change between iterations. The functionality for what
is defined as a neighbor is not contained in this class, allowing the neighborhood patterns and shapes to be changed without any
changes in the grid. Each grid does, however, keep track of the border pattern, and can dictate where, out of the neighbors, a cell
is able to go.
_Shape Manager_ - The shape manager's role is primarily to dictate the location of all surrounding cells relative to a given cell.
This allows us to create triangle, hexagon, or square grid and know which cells are considered adjacent. This doesn't directly determine
what the neighbors of a cell are, as the neighborhood pattern can be nearly anything, but it does create some fundamental rules for the structure
of our grid.
_NeighborhoodPattern_ - The neighborhood pattern class determines which cells are neighbors of another cell. These classes use the adjacency
provided by the shape of the cells to determine which cells are considered in its "neighborhood." For example, if you have a square grid, and
you want to say a neighbor is any adjacent cell above the current cell, the neighborhood pattern would find which cells follow this rule.
## Assumptions that Affect the Design
We assumed that:
* the grids would only ever be composed of symmetrical shapes
* Cells would only ever have a maximum of two alternate states
* Grids would follow some more-or-less rectilinear structure
* The user would understand how to load the games
### Features Affected by Assumptions
* Since we assumed that grids would be composed of symmetrical
shapes, we didn't include compatibility for irregular shapes, such
as scalene triangles. Thus there is a limit on the flexibility of
our grids when selecting a shape configuration
* By assuming cells only have 2 alternative states there is exists
a limit to the types of games able to be implemented. If we were
to try to add a game that needed cell functionality such as lifespan,
energy, ***and*** speed, it wouldn't work.
* With rectilinear grids we weren't able to implement systems that
used grids with round or irregular borders. We were able to add logic for
grids of different cell shapes yet they still followed some more or less
linear patterns.
* We didn't include any instruction functionality into our program, which
could hinder the user experience, as users don't have a direct way to know
how to use the program.
## Significant differences from Original Plan
* Our original plan revealed the data structure for the grid, which we used a 2-D array for. This was not good practice,
so we decided to abstract this out so that our data structure was not unnecessarily revealed. Now, methods
do not require a 2-D array as a parameter anymore, which is very restricting. We changed our grid to be a Map of Coordinates
to Cells, where each Coordinate holds one Cell. These are objects that we created in our design.
* Also, for our final version of our project, we needed different neighborhood policies. So, this required us to create
a NeighborhoodPattern class to get the neighbors of a specific cell instead of just having the neighbor logic implementation
within the grid class. Now, the grid and the neighborhood patterns communicate with each other to get the correct
neighbors for a specific cell. If we stuck with our original plan and implemented the grid policies from the grid class,
the grid class would have become convoluted and would have not followed the Single Responsibility Principle anymore. So,
the implementation of the NeighborhoodPattern class was necessary. This also ties into changing our grid from a direct
2D array that was known to everyone to making it more general and hiding the data structure.
## New Features HowTo
_New Simulation type:_ To add a new simulation type, you can extend the Simulation main class, save any relevant metadata variables in the constructor,
and change the updateGridFromCell method to implement the rules of any given simulation. You also must add an initialization method in the LogicController.
This only requires you to add one method, as the LogicController uses reflection to select the simulation type.
_New neighborhood patterns:_ To add a new neighborhood pattern, you need to create a child class of the NeighborhoodPattern class. This class
has an abstract method, getNeighborhoodGroup, in which you consolidate the cells that are considered neighbors and return thier coordinates as a list.
To find these coordinates, you will need to use the getNeighborX methods in the shape manager, which returns the adjacent cells in any given direction. The neighborhood patterns
are also implemented using reflection, so you don't need to add any new methods to use them.
_New border pattern:_ To add a new border pattern, you need to extend the Grid class and update the getNeighbors method to reflect the behavior of the
border. You can use the NeighborhoodPattern's getNeighborhoodGroup to return all cell coordinates that correspond to a neighbor, and then use those coordinates
to determine what cells are actually available for the simulations use. For example, the infinite border pattern would check for any invalid coordinates, and create
a new cell at that location, while the finite border just returns the valid coordinates' cells.
_New Shapes:_ To add a new shape, you start by creating a new ShapeManager class. This has a group of abstract methods you need to fill out to specify
how to determine the location of a cell's adjacent cells.
[TODO: Talk about the display]
#### Easy to Add Features
Some features which would be easy to add would be
* a panel that gives the metadata for a particular game or the next game to be loaded.
* setting the color of the cells in the UI rather than just the configuration files
* letting the user change the orientation of grid
* outputting relevant data and updating it as the state of the game changes
#### Other Features not yet Done
These are features that are not yet done but would be easy to add:
* One thing we did not implement is showing the property values from the SIM file on the display. If we were to do this, all
we would have to do is pass the property values from the LogicController class, where they are parsed, into the Controller
class so that the Controller could pass it to the Display and the Display could create text for the property values.
* We also did not implement using image files for the cell states instead of just colors, but this would be easy as well. You
would just pass the filepath parsed in LogicController over to Controller and have it pass the image over to the Display.
The Display would have to update the COLOR_MAP variable to use the values from Controller, so we would have to remove
the hardcoded colors that are in there right now.
* We did not implement the user being able to choose which grid edge policy they wanted for the simulation. All this would
require is a new button in the ButtonManager class and on the event that the button is clicked, it would need to call
a new method in the LogicController which makes the grid take in the new grid type and create a grid instance of the
specific edge policy.
| 72.664975 | 177 | 0.803493 | eng_Latn | 0.999872 |
1d463facf781e802d13a55f5ed56d5233682fb70 | 4,649 | md | Markdown | _posts/2020-06-04-2020年中國展望——中期回顧與下半年預測.md | NodeBE4/opinion | 81a7242230f02459879ebc1f02eb6fc21507cdf1 | [
"MIT"
] | 21 | 2020-07-20T16:10:55.000Z | 2022-03-14T14:01:14.000Z | _posts/2020-06-04-2020年中國展望——中期回顧與下半年預測.md | NodeBE4/opinion | 81a7242230f02459879ebc1f02eb6fc21507cdf1 | [
"MIT"
] | 1 | 2020-07-19T21:49:44.000Z | 2021-09-16T13:37:28.000Z | _posts/2020-06-04-2020年中國展望——中期回顧與下半年預測.md | NodeBE4/opinion | 81a7242230f02459879ebc1f02eb6fc21507cdf1 | [
"MIT"
] | 1 | 2021-05-29T19:48:01.000Z | 2021-05-29T19:48:01.000Z | ---
layout: post
title: "2020年中國展望——中期回顧與下半年預測"
date: 2020-06-04T05:45:42+08:00
author: 透視中國
from: https://tw.sinoinsider.com/2020/06/2020%e5%b9%b4%e4%b8%ad%e5%9c%8b%e5%b1%95%e6%9c%9b-%e4%b8%ad%e6%9c%9f%e5%9b%9e%e9%a1%a7%e8%88%87%e4%b8%8b%e5%8d%8a%e5%b9%b4%e9%a0%90%e6%b8%ac/
tags: [ 透視中國 ]
categories: [ 透視中國 ]
---
<article class="post-9104 post type-post status-publish format-standard has-post-thumbnail hentry category-2020-track-record category-geopolitics category-politics category-subscription category-risk-vs-opp tag-218 tag-89 tag-219 tag-55 tag-82" id="post-9104" itemscope="" itemtype="https://schema.org/CreativeWork">
<div class="inside-article">
<div class="featured-image page-header-image-single">
<img alt="" class="attachment-full size-full" height="600" itemprop="image" sizes="(max-width: 900px) 100vw, 900px" src="https://tw.sinoinsider.com/wp-content/uploads/sites/2/2020/06/H2-2020-Forecasts_Lock.jpg" srcset="https://tw.sinoinsider.com/wp-content/uploads/sites/2/2020/06/H2-2020-Forecasts_Lock.jpg 900w, https://tw.sinoinsider.com/wp-content/uploads/sites/2/2020/06/H2-2020-Forecasts_Lock-450x300.jpg 450w, https://tw.sinoinsider.com/wp-content/uploads/sites/2/2020/06/H2-2020-Forecasts_Lock-768x512.jpg 768w, https://tw.sinoinsider.com/wp-content/uploads/sites/2/2020/06/H2-2020-Forecasts_Lock-300x200.jpg 300w, https://tw.sinoinsider.com/wp-content/uploads/sites/2/2020/06/H2-2020-Forecasts_Lock-600x400.jpg 600w" width="900"/>
</div>
<header class="entry-header">
<h1 class="entry-title" itemprop="headline">
2020年中國展望——中期回顧與下半年預測
</h1>
<div class="entry-meta">
<span class="posted-on">
<a href="https://tw.sinoinsider.com/2020/06/2020%e5%b9%b4%e4%b8%ad%e5%9c%8b%e5%b1%95%e6%9c%9b-%e4%b8%ad%e6%9c%9f%e5%9b%9e%e9%a1%a7%e8%88%87%e4%b8%8b%e5%8d%8a%e5%b9%b4%e9%a0%90%e6%b8%ac/" rel="bookmark" title="05:45">
<time class="updated" datetime="2020-06-05T06:32:00+08:00" itemprop="dateModified">
2020-06-05
</time>
<time class="entry-date published" datetime="2020-06-04T05:45:42+08:00" itemprop="datePublished">
2020-06-04
</time>
</a>
</span>
</div>
<!-- .entry-meta -->
</header>
<!-- .entry-header -->
<div class="entry-content" itemprop="text">
<p>
◎我們預計在下半年,我們在《2020年中國展望》中做出的許多預測將得到應驗。 在2019年12月31日發佈的《 …
</p>
<p class="read-more-container">
<a class="read-more button" href="https://tw.sinoinsider.com/2020/06/2020%e5%b9%b4%e4%b8%ad%e5%9c%8b%e5%b1%95%e6%9c%9b-%e4%b8%ad%e6%9c%9f%e5%9b%9e%e9%a1%a7%e8%88%87%e4%b8%8b%e5%8d%8a%e5%b9%b4%e9%a0%90%e6%b8%ac/#more-9104" title="2020年中國展望——中期回顧與下半年預測">
全文閱讀
<span class="screen-reader-text">
2020年中國展望——中期回顧與下半年預測
</span>
</a>
</p>
<div class="woocommerce">
<div class="woocommerce-info wc-memberships-restriction-message wc-memberships-message wc-memberships-content-restricted-message">
會員區文章,請
<a href="https://tw.sinoinsider.com/%e6%88%91%e7%9a%84%e5%b8%b3%e8%99%9f/">
<u>
登入
</u>
</a>
。
</div>
</div>
</div>
<!-- .entry-content -->
<footer class="entry-meta">
<span class="cat-links">
<span class="screen-reader-text">
分類
</span>
<a href="https://tw.sinoinsider.com/category/2020-track-record/" rel="category tag">
2020 預測分析記錄
</a>
,
<a href="https://tw.sinoinsider.com/category/geopolitics/" rel="category tag">
地緣政治
</a>
,
<a href="https://tw.sinoinsider.com/category/politics/" rel="category tag">
政治
</a>
,
<a href="https://tw.sinoinsider.com/category/subscription/" rel="category tag">
會員
</a>
,
<a href="https://tw.sinoinsider.com/category/risk-vs-opp/" rel="category tag">
風險與機遇
</a>
</span>
<span class="tags-links">
<span class="screen-reader-text">
標籤
</span>
<a href="https://tw.sinoinsider.com/tag/%e4%b8%ad%e5%9c%8b%e5%b1%95%e6%9c%9b/" rel="tag">
中國展望
</a>
,
<a href="https://tw.sinoinsider.com/tag/%e4%b8%ad%e7%be%8e%e9%97%9c%e4%bf%82/" rel="tag">
中美關係
</a>
,
<a href="https://tw.sinoinsider.com/tag/%e9%80%8f%e8%a6%96%e4%b8%ad%e5%9c%8b/" rel="tag">
透視中國
</a>
,
<a href="https://tw.sinoinsider.com/tag/%e9%a0%90%e6%b8%ac/" rel="tag">
預測
</a>
,
<a href="https://tw.sinoinsider.com/tag/%e9%bb%91%e5%a4%a9%e9%b5%9d/" rel="tag">
黑天鵝
</a>
</span>
<nav class="post-navigation" id="nav-below">
<span class="screen-reader-text">
文章導覽
</span>
</nav>
<!-- #nav-below -->
</footer>
<!-- .entry-meta -->
</div>
<!-- .inside-article -->
</article>
| 38.421488 | 742 | 0.640353 | yue_Hant | 0.498674 |
1d4857490ece9eace956d34f535d14f243cad012 | 485 | md | Markdown | README.md | novaELLIAS/HYAsstSTM32 | 9962770b1a9c3438ca8fa2147ed30d17c70ef711 | [
"MIT"
] | 4 | 2021-01-14T12:48:18.000Z | 2021-03-29T07:36:03.000Z | README.md | novaELLIAS/HYAsstSTM32 | 9962770b1a9c3438ca8fa2147ed30d17c70ef711 | [
"MIT"
] | null | null | null | README.md | novaELLIAS/HYAsstSTM32 | 9962770b1a9c3438ca8fa2147ed30d17c70ef711 | [
"MIT"
] | 1 | 2022-03-26T15:48:15.000Z | 2022-03-26T15:48:15.000Z | # HYAsstHardwareSTM32
Code for `STM32F411CE` using `STM32Cube` framework.





| 44.090909 | 94 | 0.789691 | yue_Hant | 0.86058 |
1d4af0b09a62a17378ea98172e6f0a5b765c5d98 | 2,176 | md | Markdown | README.md | Unikka/loginas-api | 57b1f072b15609ed86a8e5345020fde85836e05b | [
"MIT"
] | null | null | null | README.md | Unikka/loginas-api | 57b1f072b15609ed86a8e5345020fde85836e05b | [
"MIT"
] | null | null | null | README.md | Unikka/loginas-api | 57b1f072b15609ed86a8e5345020fde85836e05b | [
"MIT"
] | null | null | null | <p align="center">
<img src="https://cdn.jsdelivr.net/gh/unikka/unikka.de/src/assets/unikka_with_background.svg" width="300" />
</p>
<a href="https://www.npmjs.com/package/@unikka/loginas-api">
<img alt="npm version" src="https://img.shields.io/npm/v/@unikka/loginas-api.svg?style=flat-square">
</a>
<a href="https://github.com/prettier/prettier">
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square">
</a>
<a href="https://github.com/semantic-release/semantic-release">
<img alt="We are using semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square">
</a>
<a href="https://snyk.io/test/github/Unikka/loginas-api?targetFile=package.json"><img src="https://snyk.io/test/github/Unikka/loginas-api/badge.svg?targetFile=package.json" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/Unikka/loginas-api?targetFile=package.json" style="max-width:100%;"></a>
# Service for the Unikka.LoginAs package
## Installation
```bash
yarn add @unikka/loginas-api
```
## Usage
This package is used by the neoscms package Unikka.LoginAs and needs the enpoints of the package.
The package acts as javascript API service.
## Contribution
We'd love you to contribute to unikka loginas-api. We try to make it as easy as possible.
We are using semantic versioning to have more time to concentrate on important stuff
instead of struggling in the dependency or release hell.
Therefore the first rule is to follow the [eslint commit message guideline](https://github.com/conventional-changelog-archived-repos/conventional-changelog-eslint/blob/master/convention.md).
It is really easy if you always commit via `yarn commit`. Commitizen will guide you.
All PRs will be merged into the master branch. Travis and semantic release will check the commit messages and start
building a new release when the analysis of the latest commits will trigger that.
If you have questions just ping us on Twitter or Github.
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
| 45.333333 | 323 | 0.756893 | eng_Latn | 0.747024 |
1d4bb546e071d9e5ddc07f6c89eb5cc8110848ad | 3,168 | md | Markdown | AlchemyInsights/getting-started-with-Teams-live-events.md | isabella232/OfficeDocs-AlchemyInsights-pr.fr-FR | b23fe97cbba1674ad1f59978ca5080bb00d217cb | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-05-19T19:06:33.000Z | 2020-05-19T19:06:33.000Z | AlchemyInsights/getting-started-with-Teams-live-events.md | isabella232/OfficeDocs-AlchemyInsights-pr.fr-FR | b23fe97cbba1674ad1f59978ca5080bb00d217cb | [
"CC-BY-4.0",
"MIT"
] | 2 | 2022-02-09T06:56:37.000Z | 2022-02-09T06:56:51.000Z | AlchemyInsights/getting-started-with-Teams-live-events.md | isabella232/OfficeDocs-AlchemyInsights-pr.fr-FR | b23fe97cbba1674ad1f59978ca5080bb00d217cb | [
"CC-BY-4.0",
"MIT"
] | 2 | 2019-10-11T18:36:10.000Z | 2021-10-09T11:34:48.000Z | ---
title: Prise en main des événements en direct Teams
ms.author: pebaum
author: pebaum
manager: scotv
ms.audience: Admin
ms.topic: article
ms.service: o365-administration
ROBOTS: NOINDEX, NOFOLLOW
localization_priority: Priority
ms.collection: Adm_O365
ms.custom:
- "9000208"
- "3436"
ms.openlocfilehash: bf811c26aabc89e4ddd68b0a07677ae15cfe0f77
ms.sourcegitcommit: ab75f66355116e995b3cb5505465b31989339e28
ms.translationtype: HT
ms.contentlocale: fr-FR
ms.lasthandoff: 08/13/2021
ms.locfileid: "58333157"
---
# <a name="getting-started-with-teams-live-events"></a>Prise en main des événements en direct Teams
Les événements en direct Microsoft Teams sont une extension des réunions Teams qui vous permettent de planifier et de créer des événements qui sont diffusés à de larges audiences en ligne.
Pour créer un événement en direct, vous devez disposer des éléments suivants :
- Tout d’abord, assurez-vous que les événements en direct Teams sont [dans votre pays/région](https://docs.microsoft.com/microsoftteams/teams-live-events/plan-for-teams-live-events#regional-availability); Les événements en direct ne sont pas encore pris en charge dans certains pays. Si vous avez attribué des licences et défini les stratégies, mais que vous ne parvenez pas à créer un événement en direct Teams, il est probable que vous vous trouviez dans un pays ou une région dans lequel les événements en direct ne sont pas encore disponibles.
- Une [licence Office 365 Entreprise E1, E3 ou E5, ou une licence Office 365 A3 ou A5](https://docs.microsoft.com/microsoftteams/teams-live-events/set-up-for-teams-live-events#step-2-get-and-assign-licenses)
**Remarque** : en raison d’une hausse récente de l’utilisation de Teams, lorsque vous attribuez une licence Teams à un utilisateur, sa configuration complète peut prendre environ 24 heures. En attendant, vous ne serez pas en mesure d’affecter des stratégies Teams à celui-ci, et il ne pourra peut-être pas accéder à certaines fonctionnalités de Teams telles que l’appel et l’audioconférence.
- L’autorisation de [créer des événements en direct dans le centre d’administration Microsoft Teams](https://docs.microsoft.com/microsoftteams/teams-live-events/set-up-for-teams-live-events#create-or-edit-a-live-events-policy)
- L’autorisation de [créer des événements en direct dans Microsoft Stream](https://docs.microsoft.com/microsoftteams/teams-live-events/what-are-teams-live-events) (pour les événements générés à l’aide d’une application ou d’un appareil de diffusion externe)
- Appartenance complète à une équipe au sein de l’organisation (vous ne pouvez pas être un invité ou une autre organisation)
Planification des réunions privées, ainsi que partage d’écran et de vidéos IP, activés dans la stratégie de réunion d’équipe
- [Meilleures pratiques](https://support.office.com/article/Best-practices-for-producing-a-Teams-live-event-e500370e-4dd1-4187-8b48-af10ef02cf42) pour les événements en direct Teams.
Pour plus d’informations, voir [Prise en main des événements en direct Microsoft Teams](https://support.office.com/article/get-started-with-microsoft-teams-live-events-d077fec2-a058-483e-9ab5-1494afda578a). | 73.674419 | 548 | 0.803662 | fra_Latn | 0.965269 |
1d4c06f125b32aba903c67f46a2db97e3ab1a1f0 | 3,008 | md | Markdown | app-001/README.md | santiaago/fleet | 0ce4aa5038e6d34a9249a467e5ddd6e871f46ca1 | [
"Apache-2.0"
] | null | null | null | app-001/README.md | santiaago/fleet | 0ce4aa5038e6d34a9249a467e5ddd6e871f46ca1 | [
"Apache-2.0"
] | null | null | null | app-001/README.md | santiaago/fleet | 0ce4aa5038e6d34a9249a467e5ddd6e871f46ca1 | [
"Apache-2.0"
] | null | null | null | # app-001
A kubernetes cluster with an **nginx ingress**, a **react application** and a **python web api**.
The react app (`www-app-*`) calls the web server api (`api-app-*`) at `/api/version`.
```bash
➜ kubectl get pods
NAME READY STATUS RESTARTS AGE
api-app-764b687f7d-nz22x 1/1 Running 0 5s
nginxingress-nginx-ingress-controller-f8947f46c-pbvkx 1/1 Running 0 1m
nginxingress-nginx-ingress-default-backend-5459bb66d-b4gb9 1/1 Running 0 1m
www-app-5dfb7ccc58-j9kmv 1/1 Running 0 5s
```
## run in minikube
```bash
➜ pwd
~/auth.tests/app-001/
➜ minikube start
```
make sure you have ingress enabled
```bash
➜ minikube addons list | grep ingress
- ingress: enabled
```
if you don't, enable it ingress
```bash
➜ minikube addons enable ingress
```
build images
```bash
➜ cd www
➜ eval $(minikube docker-env)
➜ docker build -f ./nginx/Dockerfile -t app/www:test .
➜ docker build -f ./web-api/Dockerfile -t app/web-api:test .
```
install helm ingress
```bash
➜ pwd
~/fleet/app-001
➜ helm install stable/nginx-ingress -n nginxingress --values ./nginx-ingress/nginx-ingress-values-dev.yaml
➜ kubectl get pods
NAME READY STATUS RESTARTS AGE
nginxingress-nginx-ingress-controller-f8947f46c-pbvkx 1/1 Running 0 36s
nginxingress-nginx-ingress-default-backend-5459bb66d-b4gb9 1/1 Running 0 36s
```
install helm chart
```bash
➜ pwd
~/fleet/app-001/www
➜ helm install ./www.app.com/ -n www.app.com
➜ kubectl get pods
NAME READY STATUS RESTARTS AGE
api-app-764b687f7d-nz22x 1/1 Running 0 5s
nginxingress-nginx-ingress-controller-f8947f46c-pbvkx 1/1 Running 0 1m
nginxingress-nginx-ingress-default-backend-5459bb66d-b4gb9 1/1 Running 0 1m
www-app-5dfb7ccc58-j9kmv 1/1 Running 0 5s
```
Create www.minikube-app.com endpoint and navigate to it.
```bash
➜ echo "$(minikube ip) www.minikube-app.com" | sudo tee -a /etc/hosts
➜ kubectl get services | grep ingress-controller
nginxingress-nginx-ingress-controller NodePort 10.100.196.161 <none> 80:32626/TCP,443:31235/TCP 2m
➜ curl -I www.minikube-app.com:32626
```
to delete
```bash
helm delete www.app.com --purge
helm delete nginxingress --purge
```
## run in dev
frontend:
frontend runs with a proxy to `8081` in development. see [package.json](.www/app/package.json)
```bash
pwd
~/auth.tests/app-001/www/app
yarn
yarn start
```
web api
```bash
pwd
fleet/app-001/www/web-api/src
gunicorn -b 0.0.0.0:8081 \
--forwarded-allow-ips=* \
--log-file - \
--log-level debug \
server:app
``` | 27.345455 | 119 | 0.59242 | kor_Hang | 0.189345 |
1d4c62a9ad9e0395616d452aaa3667e0a0ca0992 | 3,876 | md | Markdown | docs/framework/configure-apps/file-schema/cryptography/oidentry-element.md | olifantix/docs.de-de | a31a14cdc3967b64f434a2055f7de6bf1bb3cda8 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/configure-apps/file-schema/cryptography/oidentry-element.md | olifantix/docs.de-de | a31a14cdc3967b64f434a2055f7de6bf1bb3cda8 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/configure-apps/file-schema/cryptography/oidentry-element.md | olifantix/docs.de-de | a31a14cdc3967b64f434a2055f7de6bf1bb3cda8 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: '<OidEntry> Element'
ms.date: 03/30/2017
f1_keywords:
- http://schemas.microsoft.com/.NetConfiguration/v2.0#configuration/mscorlib/cryptographySettings/oidMap/oidEntry
- http://schemas.microsoft.com/.NetConfiguration/v2.0#oidEntry
helpviewer_keywords:
- <oidEntry> element
- oidEntry element
ms.assetid: 22fb88b0-bf27-489c-9ca0-e65950ac136c
author: mcleblanc
ms.author: markl
manager: markl
ms.openlocfilehash: db209bac487ccbb98f7f0aeb272f51169e7a0148
ms.sourcegitcommit: 11f11ca6cefe555972b3a5c99729d1a7523d8f50
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 05/03/2018
---
# <a name="ltoidentrygt-element"></a><OidEntry> Element
Ordnet einen ASN.1-Objektbezeichner (OID) einem Anzeigenamen zu.
\<configuration>
\<"mscorlib" >
\<CryptographySettings >
\<OidMap >
\<OidEntry >
## <a name="syntax"></a>Syntax
```xml
<oidEntry OID="object identifier number" name="friendly name" />
```
## <a name="attributes-and-elements"></a>Attribute und Elemente
In den folgenden Abschnitten werden Attribute sowie untergeordnete und übergeordnete Elemente beschrieben.
### <a name="attributes"></a>Attribute
|Attribut|Beschreibung|
|---------------|-----------------|
|**OID**|Erforderliches Attribut.<br /><br /> Gibt die ASN. 1-OID für den Algorithmus, der von der Klasse implementiert.|
|**name**|Erforderliches Attribut.<br /><br /> Gibt den Wert für die **Namen** Attribut in der [ \<NameEntry >](../../../../../docs/framework/configure-apps/file-schema/cryptography/nameentry-element.md) Tag.|
### <a name="child-elements"></a>Untergeordnete Elemente
Keine
### <a name="parent-elements"></a>Übergeordnete Elemente
|Element|Beschreibung|
|-------------|-----------------|
|`configuration`|Das Stammelement in jeder von den Common Language Runtime- und .NET Framework-Anwendungen verwendeten Konfigurationsdatei.|
|`cryptographySettings`|Enthält Kryptografieeinstellungen.|
|`mscorlib`|Enthält die `cryptographySettings` Element.|
|`oidMap`|Enthält die ASN. 1-Objekt-ID (OID)-Zuordnungen von Klassen.|
## <a name="remarks"></a>Hinweise
ASN. 1-Objektbezeichner identifizieren, in einigen Formaten kryptografischen Algorithmen. Ordnen Sie Objektbezeichner Anzeigenamen für die Algorithmen, die Sie ermitteln möchten.
## <a name="example"></a>Beispiel
Das folgende Beispiel zeigt, wie Sie die **\<OidEntry >** -Element einen Objektbezeichner für die RIPEMD-160-Hashalgorithmus zu einer Implementierung dieses Hashalgorithmus zuordnen.
```xml
<configuration>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass MyCrypto="MyCryptoClass, MyAssembly
Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,
Version=1.0.0.0"/>
</cryptoClasses>
<nameEntry name="RIPEMD-160" class="MyCrypto"/>
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.3.36.3.2.1" name="MyCryptoClass"/>
</oidMap>
</cryptographySettings>
</mscorlib>
</configuration>
```
## <a name="see-also"></a>Siehe auch
[Konfigurationsdateischema](../../../../../docs/framework/configure-apps/file-schema/index.md)
[Cryptography Settings Schema (Schema für Kryptografieeinstellungen)](../../../../../docs/framework/configure-apps/file-schema/cryptography/index.md)
[Kryptografische Dienste](../../../../../docs/standard/security/cryptographic-services.md)
[Konfigurieren kryptografischer Klassen](../../../../../docs/framework/configure-apps/configure-cryptography-classes.md)
[Zuordnen von Objektbezeichnern zu kryptografischen Algorithmen](../../../../../docs/framework/configure-apps/map-object-identifiers-to-cryptography-algorithms.md)
| 43.550562 | 211 | 0.68937 | deu_Latn | 0.583279 |
1d4d70cac80905a91e68a8a5a2438b37fa1f07c2 | 13,172 | md | Markdown | articles/iot-central/retail/overview-iot-central-retail.md | changeworld/azure-docs.sv-se | 6234acf8ae0166219b27a9daa33f6f62a2ee45ab | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/iot-central/retail/overview-iot-central-retail.md | changeworld/azure-docs.sv-se | 6234acf8ae0166219b27a9daa33f6f62a2ee45ab | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/iot-central/retail/overview-iot-central-retail.md | changeworld/azure-docs.sv-se | 6234acf8ae0166219b27a9daa33f6f62a2ee45ab | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Bygga butikslösningar med Azure IoT Central | Microsoft-dokument
description: Lär dig mer om hur du använder Azure IoT Central-programmallar för att skapa ansluten logistik, digitalt distributionscenter, analyser i butik, tillståndsövervakning, kassa, smart lagerhantering och butikslösningar.
author: avneet723
ms.author: avneets
ms.date: 01/10/2020
ms.topic: overview
ms.service: iot-central
ms.subservice: iot-central-retail
services: iot-central
ms.openlocfilehash: 9427b007bc047e2f01db2dad02e06bf0ab0f5dea
ms.sourcegitcommit: 25490467e43cbc3139a0df60125687e2b1c73c09
ms.translationtype: MT
ms.contentlocale: sv-SE
ms.lasthandoff: 04/09/2020
ms.locfileid: "81000618"
---
# <a name="building-retail-solutions-with-azure-iot-central"></a>Skapa lösningar för detaljhandeln med Azure IoT Central
Azure IoT Central är en IoT-appplattform som minskar bördan och kostnaden för att utveckla, hantera och underhålla IoT-lösningar i företagsklass. Om du väljer att bygga med Azure IoT Central kan du fokusera tid, pengar och energi på att omvandla din verksamhet med IoT-data, i stället för att bara underhålla och uppdatera en komplex och ständigt föränderlig IoT-infrastruktur.
I den här artikeln beskrivs flera butiksspecifika IoT Central-programmallar. Som lösningsbyggare kan du använda dessa mallar för att skapa IoT-lösningar som optimerar leveranskedjor, förbättrar butiksupplevelser för kunder och spårar lager mer effektivt.
> [!div class="mx-imgBorder"]
> 
I följande avsnitt beskrivs funktionerna i dessa programmallar:
## <a name="connected-logistics"></a>Ansluten logistik
Globala logistikutgifterna förväntas nå $ 106000000000000 2020. Transport av varor står för majoriteten av dessa utgifter och sjöfartsleverantörer är under intensiv konkurrenstryck och begränsningar.
Du kan använda IoT-sensorer för att samla in och övervaka omgivningsförhållanden som temperatur, luftfuktighet, lutning, stötar, ljus och placeringen av en sändning. Du kan kombinera telemetri som samlats in från IoT-sensorer och enheter med andra datakällor som väder- och trafikinformation i molnbaserade business intelligence-system.
Fördelarna med en ansluten logistiklösning är:
* Sändningsövervakning med spårning och spårning i realtid.
* Sändningsintegritet med övervakning av omgivningsförhållanden i realtid.
* Säkerhet från stöld, förlust eller skada av försändelser.
* Geo-stängsel, ruttoptimering, vagnparkshantering och fordonsanalys.
* Prognostisering för förutsägbar avgång och ankomst av transporter.
Följande skärmbilder visar den färdiga instrumentpanelen i programmallen. Instrumentpanelen är helt anpassningsbar för att uppfylla dina specifika lösningskrav:
> [!div class="mx-imgBorder"]
> 
> [!div class="mx-imgBorder"]
> 
Mer information finns i [självstudien för distribuera och gå igenom en mall för ansluten logistikprogram.](./tutorial-iot-central-connected-logistics.md)
## <a name="digital-distribution-center"></a>Digitalt distributionscenter
Som tillverkare och återförsäljare etablera världsomspännande närvaro, deras leveranskedjor gren ut och bli mer komplexa. Konsumenterna förväntar sig nu att stora urval av produkter ska vara tillgängliga, och att dessa varor kommer fram inom en eller två dagar efter köpet. Distributionscentraler måste anpassa sig till dessa trender och samtidigt övervinna befintliga ineffektivitet.
Idag innebär en tillit till manuellt arbete att plockning och förpackning står för 55-65% av distributionscentralen kostnader. Manuell plockning och förpackning är också vanligtvis långsammare än automatiserade system, och snabbt fluktuerande personalbehov gör det ännu svårare att möta fraktvolymer. Denna säsongsvariation leder till hög personalomsättning och ökar sannolikheten för kostsamma fel.
Lösningar baserade på IoT-aktiverade kameror kan ge transformationsfördelar genom att aktivera en digital återkopplingsslinga. Data från hela distributionscentret leder till användbara insikter som i sin tur resulterar i bättre data.
Fördelarna med ett digitalt distributionscenter är:
* Kameror övervakar varor när de anländer och rör sig genom transportörsystemet.
* Automatisk identifiering av felaktiga varor.
* Effektiv orderspårning.
* Minskade kostnader, förbättrad produktivitet och optimerad användning.
Följande skärmbild visar den färdiga instrumentpanelen i programmallen. Instrumentpanelen är helt anpassningsbar för att uppfylla dina specifika lösningskrav:
> [!div class="mx-imgBorder"]
> 
Mer information finns i [självstudien för distribution och gå igenom en programmall för ett programmall för digitalt distributionscenter.](./tutorial-iot-central-digital-distribution-center.md)
## <a name="in-store-analytics---condition-monitoring"></a>Analys i butik - tillståndsövervakning
För många återförsäljare är miljöförhållandena i deras butiker en viktig skillnad från sina konkurrenter. Återförsäljare vill upprätthålla trevliga förhållanden inom sina butiker till förmån för sina kunder.
Som lösningsbyggare kan du använda IoT Central i butik analytics condition monitoring application template för att skapa en heltäckande lösning. Med programmallen kan du ansluta digitalt till och övervaka en butiksmiljö med hjälp av olika typer av sensorenheter. Dessa sensorenheter genererar telemetri som du kan konvertera till affärsinsikter som hjälper återförsäljaren att minska driftskostnaderna och skapa en bra upplevelse för sina kunder.
Använd programmallen för att:
* Anslut en mängd IoT-sensorer till en IoT Central-programinstans.
* Övervaka och hantera sensornätverkets hälsa samt alla gatewayenheter i miljön.
* Skapa anpassade regler kring miljöförhållandena i en butik för att utlösa aviseringar för butikschefer.
* Omvandla miljöförhållandena i din butik till insikter som butiksteamet kan använda för att förbättra kundupplevelsen.
* Exportera de aggregerade insikterna till befintliga eller nya affärsprogram för att ge användbar och aktuell information till butikspersonal.
Programmallen levereras med en uppsättning enhetsmallar och använder en uppsättning simulerade enheter för att fylla i instrumentpanelen.
Följande skärmbild visar den färdiga instrumentpanelen i programmallen. Instrumentpanelen är helt anpassningsbar för att uppfylla dina specifika lösningskrav:
> [!div class="mx-imgBorder"]
> 
Mer information finns i [självstudien Skapa ett analysprogram i butik i Azure IoT Central.](./tutorial-in-store-analytics-create-app.md)
## <a name="in-store-analytics---checkout"></a>Analyser i butik – utcheckning
För vissa återförsäljare, kassan erfarenhet inom sina butiker är en viktig differentiator från sina konkurrenter. Återförsäljare vill leverera en smidig kassaupplevelse i sina butiker för att uppmuntra kunderna att återvända.
Som lösningsbyggare kan du använda ioT Central i butik analytics checkout application template för att skapa en lösning som ger insikter från kassan i en butik till butikspersonal. Sensorer kan till exempel ge information om kölängder och genomsnittliga väntetider för varje utcheckningsfil.
Använd programmallen för att:
* Anslut en mängd IoT-sensorer till en IoT Central-programinstans.
* Övervaka och hantera sensornätverkets hälsa samt alla gatewayenheter i miljön.
* Skapa anpassade regler runt kassavillkoret i en butik för att utlösa aviseringar för butikspersonal.
* Omvandla kassavillkoren i butiken till insikter som butiksteamet kan använda för att förbättra kundupplevelsen.
* Exportera de aggregerade insikterna till befintliga eller nya affärsprogram för att ge användbar och aktuell information till butikspersonal.
Programmallen levereras med en uppsättning enhetsmallar och använder en uppsättning simulerade enheter för att fylla instrumentpanelen med filbeläggningsdata.
Följande skärmbild visar den färdiga instrumentpanelen i programmallen. Instrumentpanelen är helt anpassningsbar för att uppfylla dina specifika lösningskrav:
> [!div class="mx-imgBorder"]
> 
Mer information finns i [självstudien Skapa ett analysprogram i butik i Azure IoT Central.](./tutorial-in-store-analytics-create-app.md)
## <a name="smart-inventory-management"></a>Smart lagerhantering
Lager är lagret av varor en återförsäljare innehar. Lagerhantering är avgörande för att säkerställa att rätt produkt är på rätt plats vid rätt tidpunkt. En återförsäljare måste balansera kostnaderna för att lagra för mycket lager mot kostnaderna för att inte ha tillräckligt med artiklar i lager för att möta efterfrågan.
IoT-data som genereras från RFID-taggar(Radio Frequency Identification), beacons och kameror ger möjligheter att förbättra lagerhanteringsprocesser. Du kan kombinera telemetri som samlats in från IoT-sensorer och enheter med andra datakällor som väder- och trafikinformation i molnbaserade business intelligence-system.
Fördelarna med smart lagerhantering är:
* Minska risken för att artiklar är i lager och säkerställa önskad kundservice nivå.
* Djupgående analys och insikter i lagernoggrannhet i nära realtid.
* Verktyg för att avgöra rätt mängd lager att hålla för att möta kundorder.
Den här programmallen fokuserar på enhetsanslutning och konfiguration och hantering av RFID- och Bluetooth-ble-läsare (Low Energy).
Följande skärmbild visar den färdiga instrumentpanelen i programmallen. Instrumentpanelen är helt anpassningsbar för att uppfylla dina specifika lösningskrav:
> [!div class="mx-imgBorder"]
> 
Mer information finns i [självstudien distribuera och gå igenom en självstudiekurs för ett smart lagerhanteringsprogram.](./tutorial-iot-central-smart-inventory-management.md)
## <a name="micro-fulfillment-center"></a>Mikrofullgörelsecenter
I det alltmer konkurrenskraftiga detaljhandelslandskapet står detaljhandlarna ständigt inför påtryckningar för att överbrygga klyftan mellan efterfrågan och tillfredsställelse. En ny trend som har uppstått för att möta den växande konsumenternas efterfrågan är att hysa lager nära slutkunderna och de butiker de besöker.
IoT Central micro-fulfillment center application template gör det möjligt för lösningsbyggare att övervaka och hantera alla aspekter av sina helt automatiserade uppfyllelsecenter. Mallen innehåller en uppsättning simulerade tillståndsövervakningssensorer och robotbärare för att påskynda lösningsutvecklingsprocessen. Dessa sensorenheter fångar meningsfulla signaler som kan omvandlas till affärsinsikter som gör det möjligt för återförsäljare att minska sina driftskostnader och skapa upplevelser för sina kunder.
Med programmallen kan du:
- Anslut sömlöst olika typer av IoT-sensorer som robotar eller tillståndsövervakningssensorer till en IoT Central-applikationsinstans.
- Övervaka och hantera sensornätverkets och alla gatewayenheter i miljön.
- Skapa anpassade regler kring miljövillkoren i ett uppfyllelsecenter för att utlösa lämpliga aviseringar.
- Omvandla miljöförhållandena inom ditt uppfyllelsecenter till insikter som kan utnyttjas av butikslagerteamet.
- Exportera de aggregerade insikterna till befintliga eller nya affärsapplikationer till förmån för butikspersonalen.
Följande skärmbild visar den färdiga instrumentpanelen i programmallen. Instrumentpanelen är helt anpassningsbar för att uppfylla dina specifika lösningskrav:
> [!div class="mx-imgBorder"]
> 
Mer information finns i [självstudien för distribution och gå igenom programmallen för mikrouppfyllelsecenter.](./tutorial-micro-fulfillment-center.md)
## <a name="next-steps"></a>Nästa steg
Så här kommer du igång med att bygga en butikslösning:
* Kom igång med [programmet Skapa ett analysprogram i Azure IoT Central](./tutorial-in-store-analytics-create-app.md) som hjälper dig att skapa en lösning med en av analysprogrammallarna i butik.
* [Distribuera och gå igenom en ansluten logistikapplikationsmall](./tutorial-iot-central-connected-logistics.md).
* [Distribuera och gå igenom en programmall för ett program för ett digitalt distributionscenter](./tutorial-iot-central-digital-distribution-center.md).
* [Distribuera och gå igenom en programmall för smart lagerhantering](./tutorial-iot-central-smart-inventory-management.md).
* [Distribuera och gå igenom programmallen för mikrouppfyllelsecenter](./tutorial-micro-fulfillment-center.md).
* Läs mer om IoT Central i [IoT Central översikt](../preview/overview-iot-central.md).
| 75.268571 | 514 | 0.829715 | swe_Latn | 0.999904 |
1d4d95891bd513e6b5e39efa80d49414dbe41351 | 73 | md | Markdown | README.md | roychen1998/rocket_deep_learning | 662997ed7c1af49237a068b56aaac490cd71c1a5 | [
"BSD-2-Clause"
] | null | null | null | README.md | roychen1998/rocket_deep_learning | 662997ed7c1af49237a068b56aaac490cd71c1a5 | [
"BSD-2-Clause"
] | null | null | null | README.md | roychen1998/rocket_deep_learning | 662997ed7c1af49237a068b56aaac490cd71c1a5 | [
"BSD-2-Clause"
] | null | null | null | # rocket_deep_learning
Roy Chen's Deep Learning project based on RISC_V
| 24.333333 | 49 | 0.821918 | eng_Latn | 0.874612 |
1d4e15b8f9b0465ae103aecadd0bb140da10c80b | 27 | md | Markdown | README.md | Princess310/onehower-frontend | d823d2560976fbafa8533348e3f020efdc043f3d | [
"MIT"
] | null | null | null | README.md | Princess310/onehower-frontend | d823d2560976fbafa8533348e3f020efdc043f3d | [
"MIT"
] | null | null | null | README.md | Princess310/onehower-frontend | d823d2560976fbafa8533348e3f020efdc043f3d | [
"MIT"
] | null | null | null | ## New project for onehower | 27 | 27 | 0.777778 | eng_Latn | 0.998867 |
1d4e52da42e1ee47813320cf8fb04106ec5b13f4 | 4,990 | md | Markdown | ekorpkit-book/docs/about/usage.md | entelecheia/ekorpkit-config | 2d28e1091945d042cf5a0a706c307c8184f17079 | [
"CC-BY-4.0"
] | null | null | null | ekorpkit-book/docs/about/usage.md | entelecheia/ekorpkit-config | 2d28e1091945d042cf5a0a706c307c8184f17079 | [
"CC-BY-4.0"
] | null | null | null | ekorpkit-book/docs/about/usage.md | entelecheia/ekorpkit-config | 2d28e1091945d042cf5a0a706c307c8184f17079 | [
"CC-BY-4.0"
] | null | null | null | # Usage
## Via Command Line Interface (CLI)
```bash
ekorpkit --config-dir /workspace/data/ekorpkit-config/config \
project=esgml \
dir.workspace=/workspace \
num_workers=1 \
env.distributed_framework.backend=joblib \
+corpus/builtin=_dummy_fomc_minutes \
cmd=fetch_builtin_corpus \
corpus.builtin.fetch.calculate_stats=true \
corpus.builtin.fetch.preprocess_text=true \
corpus.builtin.fetch.overwrite=false \
corpus.builtin.fetch.force_download=false
```
### CLI Help
To see the available configurations for CLI, run the command:
```bash
ekorpkit --help
```
## Via Python
There are more examples in the [notebooks](https://github.com/entelecheia/ekorpkit-config/tree/main/notebooks) folder of the [ekorpkit-config](https://github.com/entelecheia/ekorpkit-config.git)
### Compose an ekorpkit config
```python
from ekorpkit import eKonf
cfg = eKonf.compose()
print('Config type:', type(cfg))
eKonf.pprint(cfg)
```
### Instantiating objects with an ekorpkit config
- compose a config for the nltk class
```python
config_group='preprocessor/tokenizer=nltk'
cfg = eKonf.compose(config_group=config_group)
eKonf.pprint(cfg)
nltk = eKonf.instantiate(cfg)
```
```python
{'_target_': 'ekorpkit.preprocessors.tokenizer.NLTKTokenizer',
'extract': {'no_space_for_non_nouns': False,
'noun_postags': ['NN', 'NNP', 'NNS', 'NNPS'],
'stop_postags': ['.'],
'stopwords': None,
'stopwords_path': None},
'nltk': {'lemmatize': False,
'lemmatizer': {'_target_': 'nltk.stem.WordNetLemmatizer'},
'stem': True,
'stemmer': {'_target_': 'nltk.stem.PorterStemmer'}},
'normalize': None,
'tokenize': {'concat_surface_and_pos': True,
'flatten': True,
'include_whitespace_token': True,
'lowercase': False,
'punct_postags': ['SF', 'SP', 'SSO', 'SSC', 'SY'],
'tokenize_each_word': False,
'userdic_path': None,
'wordpieces_prefix': '##'},
'tokenize_article': {'return_typ': 'str', 'sentence_separator': '\\n'},
'verbose': False}
```
```python
text = "I shall reemphasize some of those thoughts today in the context of legislative proposals that are now before the current Congress."
nltk.tokenize(text)
```
> ['I/PRP', 'shall/MD', 'reemphas/VB', 'some/DT', 'of/IN', 'those/DT', 'thought/NNS', 'today/NN', 'in/IN', 'the/DT', 'context/NN', 'of/IN', 'legisl/JJ', 'propos/NNS', 'that/WDT', 'are/VBP', 'now/RB', 'befor/IN', 'the/DT', 'current/JJ', 'congress/NNP', './.']
```python
nltk.nouns(text)
```
> ['thought', 'today', 'context', 'propos', 'congress']
- compose a config for the mecab class
```python
config_group='preprocessor/tokenizer=mecab'
cfg = eKonf.compose(config_group=config_group)
eKonf.pprint(cfg)
```
```python
{'_target_': 'ekorpkit.preprocessors.tokenizer.MecabTokenizer',
'extract': {'no_space_for_non_nouns': False,
'noun_postags': ['NNG', 'NNP', 'XSN', 'SL', 'XR', 'NNB', 'NR'],
'stop_postags': ['SP'],
'stopwords': None,
'stopwords_path': None},
'mecab': {'backend': 'mecab-python3', 'userdic_path': None, 'verbose': False},
'normalize': None,
'tokenize': {'concat_surface_and_pos': True,
'flatten': True,
'include_whitespace_token': True,
'lowercase': False,
'punct_postags': ['SF', 'SP', 'SSO', 'SSC', 'SY'],
'tokenize_each_word': False,
'userdic_path': None,
'wordpieces_prefix': '##'},
'tokenize_article': {'return_typ': 'str', 'sentence_separator': '\\n'},
'verbose': False}
```
- intantiate a mecab config and tokenize a text
```python
mecab = eKonf.instantiate(cfg)
text = 'IMF가 推定한 우리나라의 GDP갭률은 今年에도 소폭의 마이너스(−)를 持續하고 있다.'
mecab.tokenize(text)
```
> ['IMF/SL', '가/JKS', ' /SP', '推定/NNG', '한/XSA+ETM', ' /SP', '우리나라/NNG', '의/JKG', ' /SP', 'GDP/SL', '갭/NNG', '률/XSN', '은/JX', ' /SP', '今年/NNG', '에/JKB', '도/JX', ' /SP', '소폭/NNG', '의/JKG', ' /SP', '마이너스/NNG', '(/SSO', '−)/SY', '를/JKO', ' /SP', '持續/NNG', '하/XSV', '고/EC', ' /SP', '있/VX', '다/EF', './SF']
- compose and instantiate a `formal_ko` config for the normalizer class
```python
config_group='preprocessor/normalizer=formal_ko'
cfg_norm = eKonf.compose(config_group=config_group)
norm = eKonf.instantiate(cfg_norm)
norm(text)
```
> 'IMF가 추정한 우리나라의 GDP갭률은 금년에도 소폭의 마이너스(-)를 지속하고 있다.'
- instantiate a mecab config with the above normalizer config
```python
config_group='preprocessor/tokenizer=mecab'
cfg = eKonf.compose(config_group=config_group)
cfg.normalize = cfg_norm
mecab = eKonf.instantiate(cfg)
mecab.tokenize(text)
```
> ['IMF/SL', '가/JKS', ' /SP', '추정/NNG', '한/XSA+ETM', ' /SP', '우리나라/NNG', '의/JKG', ' /SP', 'GDP/SL', '갭/NNG', '률/XSN', '은/JX', ' /SP', '금년/NNG', '에/JKB', '도/JX', ' /SP', '소폭/NNG', '의/JKG', ' /SP', '마이너스/NNG', '(/SSO', '-)/SY', '를/JKO', ' /SP', '지속/NNG', '하/XSV', '고/EC', ' /SP', '있/VX', '다/EF', './SF']
s
| 32.828947 | 301 | 0.621844 | eng_Latn | 0.186046 |
1d4f6a1dabbb0b76bf44dbe351f44676ddf4fcdc | 2,784 | md | Markdown | README.md | benbitrise/bitrise-init | 7480439d7726ceae879fadcfea2c92187353df6a | [
"MIT"
] | 4 | 2019-05-28T05:13:03.000Z | 2020-01-03T18:36:21.000Z | README.md | benbitrise/bitrise-init | 7480439d7726ceae879fadcfea2c92187353df6a | [
"MIT"
] | 9 | 2019-04-18T11:06:35.000Z | 2022-02-09T17:00:35.000Z | README.md | benbitrise/bitrise-init | 7480439d7726ceae879fadcfea2c92187353df6a | [
"MIT"
] | 9 | 2019-07-01T02:45:07.000Z | 2022-02-14T21:09:50.000Z | # Bitrise Init Tool
Initialize bitrise config, step template or plugin template
## How to build this project
Project is written in [Go](https://golang.org/) language and
uses [dep](github.com/golang/dep/cmd/dep) as dependency management tool.
You can build this project using sequence of `go` commands or refer to [bitrise.yml](./bitrise.yml) file,
which contains workflows for this project.
You can run `bitrise` workflows on your local machine using [bitrise CLI](https://www.bitrise.io/cli).
Before you start, make sure
- `$HOME/go/bin` (or `$GOPATH/bin` in case of custom go workspace) is added to `$PATH`
- `Ruby >= 2.2.2` version is installed
- `bundler` gem installed
**How to build the project using bitrise workflows**
Please check available workflows in [bitrise.yml](./bitrise.yml).
`bitrise --ci run ci` will execute `ci` workflow which consists of `prepare/build/run tests` stages.
**How to build the project using Go commands**
- `go build` command builds the project and generates `bitrise-init` binary at `$HOME/go/bin/bitrise-init` (or `$GOPATH/bin/bitrise-init` in case of custom go workspace).
- `go test ./...` command runs unit tests in every project folder/subfolder.
- `go test -v ./_tests/integration/...` command runs integration tests. This command requires `INTEGRATION_TEST_BINARY_PATH=$HOME/go/bin/bitrise-init` (or `INTEGRATION_TEST_BINARY_PATH=$GOPATH/bin/bitrise-init` in case of custom go workspace) environment variable.
## How to release new bitrise-init version
- update the step versions in steps/const.go
- `go get -u github.com/godrei/stepper`
- `stepper stepLatests --steps-const-file="steps/const.go"`
- copy the output after “Generated” to the const.go file
- bump `version` in version/version.go
- commit these changes & open PR
- merge to master
- create tag with the new version
- test the generated release and its binaries
__Update manual config on website__
- Use the generated release to generate the manual config by calling: `BIN_PATH --ci manual-config` this will generate the manual.config.yml at: `CURRENT_DIR/_defaults/result.yml`.
- Update the file https://github.com/bitrise-io/bitrise-website/blob/master/config/bitrise_ymls/custom_config.yml, with the contents of `results.yml`.
__Update the [project-scanner step](https://github.com/bitrise-steplib/steps-project-scanner)__
- update bitrise-init dependency
- share a new version into the steplib (check the [README.md](https://github.com/bitrise-steplib/steps-project-scanner/blob/master/README.md))
__Update the [bitrise init plugin]((https://github.com/bitrise-io/bitrise-plugins-init))__
- update bitrise-init dependency
- release a new version (check the [README.md](https://github.com/bitrise-io/bitrise-plugins-init/blob/master/README.md)) | 51.555556 | 264 | 0.761135 | eng_Latn | 0.902935 |
1d4fbc732ed7a2964c121077dae66722eb8555e2 | 989 | md | Markdown | README.md | rya-sge/accessDenied | fa135be98b480dc687aeccd26645f67a063e3ece | [
"MIT"
] | null | null | null | README.md | rya-sge/accessDenied | fa135be98b480dc687aeccd26645f67a063e3ece | [
"MIT"
] | 1 | 2021-06-26T08:02:54.000Z | 2021-06-26T08:02:54.000Z | README.md | rya-sge/accessDenied | fa135be98b480dc687aeccd26645f67a063e3ece | [
"MIT"
] | null | null | null | # Présentation
Lien url : [https://rya-sge.github.io/access-denied/](https://rya-sge.github.io/access-denied/)
Ce site regroupe mes notes et essais sur des sujet traitant de l'informatique.
Etudiant à l'HEIG-VD, je ressentais de plus en plus le besoin de regrouper intelligemment mes notes afin qu'elles puissent être utilisables ultérieurement. A quoi bon passer des heures à configurer un logiciel, le prendre en main si c'est pour tout recommencer quelques mois plus tard.
Bien que ce site n'en est qu'à ces débuts, j'espère que vous pourrez trouver des articles qui vous aideront. L'ensemble des publications le sont à titre **éducatifs**. Faites par conséquent bien attention au cadre dans lesquels vous effectuez les manipulations.
Accessoirement, je ne suis pas non-plus responsable si votre ordinateur tombe en panne x)
Si vous remarquez des erreurs ou si vous avez des questions, n'hésite pas à créer une nouvelle issue ou me contacter directement.
Bonne visite !
Ryan
| 54.944444 | 286 | 0.789687 | fra_Latn | 0.993992 |
1d4fc93e87448f3409988aa79cd286ed7362a1da | 168 | md | Markdown | README.md | diasdan/python | 79d5c559f3d418fce2d7390575f6afb30292e332 | [
"MIT"
] | null | null | null | README.md | diasdan/python | 79d5c559f3d418fce2d7390575f6afb30292e332 | [
"MIT"
] | null | null | null | README.md | diasdan/python | 79d5c559f3d418fce2d7390575f6afb30292e332 | [
"MIT"
] | null | null | null | # python
Some of my python codes and modules:
converters: binConverter() - binary to decimal converter
octalConverter() - octal to decimal converter
| 24 | 58 | 0.702381 | eng_Latn | 0.897727 |
1d50b88f87b530e9df8429fa6c8da833618c4102 | 3,795 | md | Markdown | _publications/2009-07-01-CFNSRL.md | RamboWANG/RamboWANG.github.io | 8d2b642d13272a245e71aa92a0a2ca7fdebb0611 | [
"MIT"
] | 1 | 2019-10-06T02:25:44.000Z | 2019-10-06T02:25:44.000Z | _publications/2009-07-01-CFNSRL.md | RamboWANG/RamboWANG.github.io | 8d2b642d13272a245e71aa92a0a2ca7fdebb0611 | [
"MIT"
] | 1 | 2019-10-25T15:02:24.000Z | 2019-10-25T15:02:24.000Z | _publications/2009-07-01-CFNSRL.md | RamboWANG/RamboWANG.github.io | 8d2b642d13272a245e71aa92a0a2ca7fdebb0611 | [
"MIT"
] | 1 | 2019-10-06T02:25:36.000Z | 2019-10-06T02:25:36.000Z | ---
title: "Automatic semantic role labeling of Chinese FrameNet based on conditional random fields model (in Chinese)"
collection: publications
permalink: /publication/2009-07-01-CFNSRL
excerpt: ''
date: 2009-07-01
venue: 'Thesis for Master Degree of Shanxi University'
paperurl: 'https://rambowang.github.io/files/master-thesis.pdf'
citation: 'Ruibo Wang. (2009). "Automatic semantic role labeling of Chinese FrameNet based on conditional random fields model." <i>Master Thesis</i>. Shanxi University, 2009. (in Chinese)'
---
Currently, the bottle-neck of natural language processing technologies is the automatic semantic parsing, especially the parsing of sentential meaning. As an important step of semantic analysis, semantic role labeling of lexical units is one of the formalized representations of propositional meaning of the sentence. Automatic semantic role labeling based on Chinese FrameNet is a formalized representation of Chinese sentences. The automatic construction of large scale semantic corpus and the improvement of natural language processing technologies, e.g. Chinese information retrieval task, Chinese question answering system, Chinese information extraction technique and etc., will be achieved along with the further research of automatic semantic role labeling based on Chinese FrameNet.
Due to the lack of an accurate Chinese syntactic parser,it is infeasible to adopt the SRL approach on English FrameNet. Therefore, we formulate the Chinese FrameNet semantic role labeling problem as a sequence labeling task, and use conditional random fields model to solve the problem at the word-level and base-chunk-level respectively. In this thesis, the task of Chinese FrameNet semantic role labeling is defined as: Given a Chinese sentence, a target word and its frame, identify the boundaries of frame elements within the sentence and label them with a appropriate frame element name.
We select 25 Frames from current Chinese FrameNet Corpus in terms of the count of sentences, and split them into training set and testing set according to the proportion of 5:5.
In the word-based labeling model, we construct several features at word-level, and employ orthogonal array to select the best feature template. The model achieves 62.50% F-measure, which is the baseline result we get. Furthermore, we parse all sentences in the corpus using the TsingHua Base-Chunk parser, and employ the base-chunk features into word-based labeling mode. The result on the test data set achieves 63.65% F-measure, which increase around 1% to the baseline result. The experimental analysis demos that the main effect of the model performance is the sparsity of word feature.
In the base-chunk-based labeling model, several shallow syntactic features are constructed based on the automatic labeling information of Chinese Base-Chunk. Similar to the word-based labeling model, we employ orthogonal array to select the best feature template. On the test data set, the best-chunk-based labeling model achieves 62.11% F-measure, which is decreased by 0.4% to the baseline result. The F-measures of the majority of 25 Frames have significant decreases compared with the baseline results. The main reason is the accuracy of Chinese Base-Chunk parser is relatively low.
Finally, we conclude the thesis and summarize some problems in the perspective of the semantic role labeling model and machine learning technology, and provide some directions for further research.
[Download paper here](https://rambowang.github.io/files/master-thesis.pdf)
Recommended citation: Ruibo Wang. (2009). "Automatic semantic role labeling of Chinese FrameNet based on conditional random fields model." <i>Master Thesis</i>. Shanxi University, 2009. (in Chinese)
| 77.44898 | 792 | 0.807115 | eng_Latn | 0.997382 |
1d50bd95ff61a42a8b2923d9cdbeb76b67c7a7aa | 2,650 | md | Markdown | contrib.md | loftwah/caprover | cbf8a39d87a4c6bbe86e6f849c57a367b5dd642a | [
"Apache-2.0"
] | 4,961 | 2019-01-19T15:33:36.000Z | 2022-03-30T21:04:51.000Z | contrib.md | loftwah/caprover | cbf8a39d87a4c6bbe86e6f849c57a367b5dd642a | [
"Apache-2.0"
] | 979 | 2019-01-19T09:15:15.000Z | 2022-03-31T21:54:43.000Z | contrib.md | loftwah/caprover | cbf8a39d87a4c6bbe86e6f849c57a367b5dd642a | [
"Apache-2.0"
] | 447 | 2019-01-25T04:52:23.000Z | 2022-03-24T21:10:08.000Z | By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
(e) Grant of Copyright License. Subject to the terms and conditions
of this Agreement, You hereby grant to CapRover and to
recipients of software distributed by CapRover a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare derivative works of,
publicly display, publicly perform, sublicense, and distribute
Your Contributions and such derivative works.
(f) Grant of Patent License. Subject to the terms and conditions of
this Agreement, You hereby grant to CapRover and to recipients
of software distributed by CapRover a perpetual, worldwide,
non-exclusive, no-charge, royalty-free, irrevocable (except as
stated in this section) patent license to make, have made, use,
offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by You that are necessarily infringed by Your Contribution(s)
alone or by combination of Your Contribution(s) with the Work to
which such Contribution(s) were submitted. If any entity institutes
patent litigation against You or any other entity (including a
cross-claim or counterclaim in a lawsuit) alleging that your
Contribution, or the Work to which you have contributed, constitutes
direct or contributory patent infringement, then any patent licenses
granted to that entity under this Agreement for that Contribution or
Work shall terminate as of the date such litigation is filed.
(g) You represent that You are legally entitled to grant the above
license on your behalf and on behalf of your employer (if applicable).
CapRover Project.
| 45.689655 | 70 | 0.803019 | eng_Latn | 0.999959 |
1d51d00e071eb83e3d60a09af972bbe296aee005 | 1,314 | md | Markdown | README.md | guilhermealbm/TechSpaces | e94e335e788d2855820b26fb80e80a0d4a31426e | [
"MIT"
] | null | null | null | README.md | guilhermealbm/TechSpaces | e94e335e788d2855820b26fb80e80a0d4a31426e | [
"MIT"
] | null | null | null | README.md | guilhermealbm/TechSpaces | e94e335e788d2855820b26fb80e80a0d4a31426e | [
"MIT"
] | null | null | null | # TechSpaces
Identifying and Clustering Popular Programming Technologies
### Visualization
Our graphs can be accessed on this website: https://guilhermealbm.github.io/TechSpacesViz/
### Installation
1. Make sure you have python3 installed
2. Clone this repository
`git clone https://github.com/guilhermealbm/TechSpaces`
3. Install dependencies
`pip3 install requirements.txt`
### Usage
Most of our algorithms are jupyter notebooks. So, since a jupyter server is started, you can run any of the scripts. They are separated into folders such as `preprocessing`, to create the relationship between tags, `filter`, to filter the final used categories and `graphs`, for creating the tables that are stored in `results` and are required to generate graphs. There is one more jupyter notebook in the project root that does the NLP processing.
If you want to run the `preprocessing/create_tags_relationship_csv` notebook, you also need to download and unzip the `Posts.xml` [here](https://ia800107.us.archive.org/view_archive.php?archive=/27/items/stackexchange/stackoverflow.com-Posts.7z). Then, change the file path inside the script and run.
The file `preprocessing/tags_with_wiki.csv` was obtained by running `preprocessing/query.sql` into [StackExchange query tool](https://data.stackexchange.com/)
| 57.130435 | 450 | 0.791476 | eng_Latn | 0.970168 |
1d524c5508eac03efcbc4eb69e539e22a4bd54f4 | 228 | md | Markdown | content/gallery/2007-07-02-12-01-00--bunch-of-flags-on-the-salt-flat-why-is-the-israeli-flag.jpg/index.md | Jaza/worldtrip | ddddb1601594daa8234405d2ff64f3406799fcea | [
"Apache-2.0"
] | null | null | null | content/gallery/2007-07-02-12-01-00--bunch-of-flags-on-the-salt-flat-why-is-the-israeli-flag.jpg/index.md | Jaza/worldtrip | ddddb1601594daa8234405d2ff64f3406799fcea | [
"Apache-2.0"
] | null | null | null | content/gallery/2007-07-02-12-01-00--bunch-of-flags-on-the-salt-flat-why-is-the-israeli-flag.jpg/index.md | Jaza/worldtrip | ddddb1601594daa8234405d2ff64f3406799fcea | [
"Apache-2.0"
] | null | null | null |
+++
draft = false
+++
_Bunch of flags on the salt flat. Why is the Israeli flag bigger than the Bolivian flag? Maybe since there are more Israelis than Bolivians here, they feel that the area is practically part of Israel? :P_
| 38 | 204 | 0.758772 | eng_Latn | 0.99994 |
1d52b94c271a4f05e2a3a8b6376ee6b804ca03c6 | 984 | md | Markdown | README.md | SEdilson/Series-App | f521a129bd7cdd6bfec33053d0b448260b0190ac | [
"MIT"
] | null | null | null | README.md | SEdilson/Series-App | f521a129bd7cdd6bfec33053d0b448260b0190ac | [
"MIT"
] | null | null | null | README.md | SEdilson/Series-App | f521a129bd7cdd6bfec33053d0b448260b0190ac | [
"MIT"
] | null | null | null | # Series App
App developed to manage series, part of the mini course of React taught by Tulio Faria from Dev Pleno.
Link to the course: https://www.devpleno.com/seriereactjs-aulas/
## Prerequisites
0 - [NodeJS](https://nodejs.org)
## How to install
1 - Download or clone this project and start it
```sh
git clone https://github.com/SEdilson/Series-App.git
cd Series-App
npm start
```
2 - Install the JSON Server
```sh
npm i json-server
```
3 - And run the JSON Server
```sh
json-server --watch db.json --port 3001
```
Warning: Set the 3001 port to run the server because if any port is set the server will run the API on the port 3000.
Go to: [localhost:3000](http://localhost:3000)
## Contributing
Feel free to contribute but please [follow these instructions](https://github.com/SEdilson/Series-App/blob/master/CONTRIBUTING.md).
## License
[MIT License](https://github.com/SEdilson/Series-App/blob/master/LICENSE.txt) © [Edilson Silva](https://github.com/SEdilson)
| 22.363636 | 131 | 0.73374 | eng_Latn | 0.58534 |
1d533b02bfa7a2f9d21a9aa7b967a96650759ae3 | 1,695 | md | Markdown | _posts/2016-09-29-make-a-bootable-ubuntu-usb-drive-on-macos.md | Oleander2911/oleander2911.github.io | 5a0868951db73031fe17b83d77a11b2cd14f0323 | [
"MIT"
] | null | null | null | _posts/2016-09-29-make-a-bootable-ubuntu-usb-drive-on-macos.md | Oleander2911/oleander2911.github.io | 5a0868951db73031fe17b83d77a11b2cd14f0323 | [
"MIT"
] | null | null | null | _posts/2016-09-29-make-a-bootable-ubuntu-usb-drive-on-macos.md | Oleander2911/oleander2911.github.io | 5a0868951db73031fe17b83d77a11b2cd14f0323 | [
"MIT"
] | null | null | null | ---
layout: post
title: Make a bootable Ubuntu USB using macOS.
---
**TL;DR:** After trying out Unetbootin and finding that my usb would not boot. I found an easy solution to the problem.
# Unetbootin not working?
I have been experiencing a weird problem with my newly installation of Ubuntu 16.04, if I started using the machine with more heavy tasks it would freeze and the only option was to do a cold restart.
I haven't been able to find a solution to this, but I read some place that it could be the iso used that could have been corrupted or something. So my next bed was to reinstall the system.
I tried out Unetbootin which was the only native option I knew of on macOS and it was also what Ubuntu official [documentation](http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx) suggested, after making the bootable drive with Unetbootin I tried booting it up, but all I was faced with was an error stating the following ***"failed to load.com 32 file menu.c32"***, it seems to be a "recent" bug which no one seems to care about.
My next move was trying out rufus the only problem with rufus is that only works on windows, and after installing Ubuntu I had no way to use rufus natively, I tried running rufus in wine, but it couldn't find the usb.
# Etcher my new go to.
I tried a couple of internet searches for alternatives and i found [Etcher](https://www.etcher.io), it looked nice, and seemed simple, and it was also my best bed at the moment.
And after going through the 3 small steps my usb was ready, i put it in the computer and finally it booted.
So if you need to make a bootable usb with ubuntu(and properly also other distros) this is the way to go.
| 67.8 | 448 | 0.766962 | eng_Latn | 0.999943 |
1d539c5b58de23526596c83f3e44ec0909a08571 | 28 | md | Markdown | README.md | ihsn/ddi-examples | 4c486265519270e95c59f8f9f7a82b48b6ee52d3 | [
"MIT"
] | null | null | null | README.md | ihsn/ddi-examples | 4c486265519270e95c59f8f9f7a82b48b6ee52d3 | [
"MIT"
] | null | null | null | README.md | ihsn/ddi-examples | 4c486265519270e95c59f8f9f7a82b48b6ee52d3 | [
"MIT"
] | null | null | null | # ddi-examples
DDI Examples
| 9.333333 | 14 | 0.785714 | eng_Latn | 0.966772 |
1d53d45c7191d46c21bcb013b0db3d21a0f3fa84 | 601 | md | Markdown | README.md | alexbe/cloudnode | fd58a858cbc587f834735a7efa5ad0daf8582e5a | [
"MIT"
] | null | null | null | README.md | alexbe/cloudnode | fd58a858cbc587f834735a7efa5ad0daf8582e5a | [
"MIT"
] | null | null | null | README.md | alexbe/cloudnode | fd58a858cbc587f834735a7efa5ad0daf8582e5a | [
"MIT"
] | null | null | null | # cloudnode
Deploy & control TON nodes infrastructure with SaltStack
Install
-----------------------
git clone https://github.com/alexbe/cloudnode.git
cd cloudnode/
./sync.sh
cd ~/salt-ssh
Edit cloud.providers.d/* files
and probably cloud.profiles.d/*
according to your cloud account settings
Cloud provisioning
-----------------------
salt-cloud -m nodemap -P
or
salt-cloud -p ec2_east1 mnode1
salt-cloud -p gce-f1 rnode1
Connect with salt-ssh
-----------------------
Check ip addresses with:
salt-cloud -Q
Edit roster, then connect and setup ssh keys
salt-ssh -i '*' grains.items
| 14.658537 | 56 | 0.665557 | eng_Latn | 0.640588 |
1d53eb141dff899f21fd79802aba70e4d00277e9 | 1,018 | md | Markdown | README.md | JuniorJedi490/random-csv-generator | 82b696eb662ca12cb52d8b6aa15df0d7fd9ba16c | [
"MIT"
] | null | null | null | README.md | JuniorJedi490/random-csv-generator | 82b696eb662ca12cb52d8b6aa15df0d7fd9ba16c | [
"MIT"
] | null | null | null | README.md | JuniorJedi490/random-csv-generator | 82b696eb662ca12cb52d8b6aa15df0d7fd9ba16c | [
"MIT"
] | null | null | null | # random-csv-generator
A command line utility for generating CSV files with random data, for the purposes of testing d3 visualizations.
Use it like this:
```
random-csv-generator [filename] [column1] [...] [#rows] [seed]
```
- filename and #rows are self explanatory
- seed is the seed for the random number generator
- columns are entered in this format:
```
[type] [header]
```
- header is the name of the data series
- type is one of f, i, b, s, or p, and has the following behavior:
- f - fills the column with floating-point numbers
- i - fills the column with integers
- p - fills the column with (floating-point) percentages between 0 and 100
- b - fills the column with the string representation of TRUE/FALSE values
- s - fills the column with strings with a length from 5 to 10
As an example, the output in out.csv was generated using this command:
```
random-csv-generator.exe out i "Participant ID" s Name b "Participant Paid" f "Amount Paid" b "Response Received" p Response 100 1337
```
| 39.153846 | 133 | 0.724951 | eng_Latn | 0.999148 |