Skip to content

Instantly share code, notes, and snippets.

View dixonsiu's full-sized avatar

Dixon Siu dixonsiu

View GitHub Profile

Skill set / Profile of Personium Engineer

Refer to Preparing Personium Environment for server construction procedures.

List of Roles

For any simple PoC, you would need the following skill set corresponding to the roles listed below. If you have plans to use Personium for more complicated projects, I would suggest your build the Personium Unit with our help so that we can transfer all the knowledge to you.

Infrastructure / System engineer

A person who constructs a publicly accessible personal data store (PDS) service - Personium Unit (all-in-one or 3-tier). Please refer to this document for details. The following skills are required.

  1. Basic server knowledge: physical server, Virtualization, cloud (AWS/Azure)

Preparing Personium Environment

Refer to Personium Engineer Skill Set for what skills are needed to deliver Personium as a persondal data store (PDS) solution.

Overview

Normally it will take unexperienced personnel 13 days to build and configure, and fine tune a Personium Unit. The following is a rough estimations of man-day.

  1. Install, configure & debug Personium Unit (3-tier) on AWS/Azure – (10 man-days)
  2. Install necessary apps and scripts for demo – (3 man-days)

Prerequisites

セルのACL設定の確認

下記のコマンドを実行して、セルのACL設定を確認する。
コマンド:
curl "セルURL" -X PROPFIND -i -H "Depth:0" -H "Authorization: Bearer UnitAdminトークン"

コマンド例:
curl "https://sawami.demo.personium.io/" -X PROPFIND -i -H "Depth:0" -H "Authorization: Bearer sdxDsdfs"

出力結果例:

@dixonsiu
dixonsiu / MinimalPersoniumUnit4Testing.md
Last active February 7, 2019 02:44
Provide procedures to jump start the Vagrant version of Personium Unit to live

Why I provide this Vagrant box for Personium beginners

When you just want to try out Personium APIs or play around with the applications provided from Took a very long time to construct the Vagrant version. Basically it always failed to be installed in proxy environment.

Tested in Windows 10, no problem.
In Windows 7, powershell must be updated.
In some laptop, Bios configurations are needed to run VirtualBox.

How to install and turn on the user-friendly Personium Unit

1. How to deploy

  1. Download personium_unit_20190128.box to your computer (specify a folder).
  2. Move to the folder and execute the following command.

Personiumもくもく会 第4回

情報銀行の基盤として使用されるのPersoniumをもっと知りたい、使用したい、アプリ開発したいの方は是非参加してください。

前回資料(第三回

イベント概要

Personiumの環境構築・アプリ開発向け必要な説明と議論を行います。

開催概要

日時:2019年1月30日(水)13:00 ~ 21:00(入退場自由)

@dixonsiu
dixonsiu / MomentJS_demo.html
Created February 5, 2018 05:49
How to handle Personium Date Format
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.3/moment-with-locales.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
input[type="text"] {
margin-right: 10px;
@dixonsiu
dixonsiu / token_explanation.md
Last active February 26, 2019 08:21
Tokenの説明

Cell認証Token

  1. HomeAppにログイン時取得したユーザー token

     $.ajax({
         type: "POST",
         url: lg.rootUrl + '__token',
         processData: true,
         dataType: 'json',
         data: {
    

grant_type: "password",

@dixonsiu
dixonsiu / qr_api_bookmark.js
Last active September 26, 2017 07:09
Create a new bookmark with the following source codes and you can create a QR code image on the fly
javascript:(function(){var target = window.prompt("Enter a url or string to encode in QR code!","");if(target!=null){var url="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=" + target;var win=window.open(url, "_blank")}})()
@dixonsiu
dixonsiu / validate.js
Created September 7, 2017 02:28
Validate a field and raise error according to length, character types, etc.
function validateCheck(displayNameID, formFieldMsgId) {
var displayName = $("#" + displayNameID).val();
var MINLENGTH = 1;
var MAXLENGTH = 128;
var allowedLetters = /^[0-9a-zA-Z-_]+$/;
var lenDisplayName = displayName.length;
$("#" + formFieldMsgId).empty();
if(lenDisplayName < MINLENGTH || displayName == undefined || displayName == null || displayName == "") {
$("#" + formFieldMsgId).html(i18next.t("create_form.validate.warning.less_minimum_length", { value: MINLENGTH}));
@dixonsiu
dixonsiu / check_input.js
Created September 4, 2017 02:10
Using underscore.js methods to make validation logic simplier
function checkInput(id, msgId) {
/*
* someFieldsMissingValue is true if at least one input element's value is empty
*/
var someFieldsMissingValue = _.some(
$("form input"),
function(aDom) {
return _.isEmpty($(aDom).val());
}
);