Showing posts with label Advanced Trending Concepts. Show all posts
Showing posts with label Advanced Trending Concepts. Show all posts

Friday, 7 May 2021

PHP Composer Library FormBuilder (can be used in Laravel) generate form building array suitable for vue-element, ivue font-end

 https://packagist.org/packages/xaboy/form-builder


PHP composer library form builder will take SQL result and product a form building array in format of

{"status":200,"msg":"ok","data":{"rules":[{"type":"select","field":"pid","value":0,"title":"父级","props":{"multiple":false,"placeholder":"请选择父级","filterable":true,"disabled":true},"options":[{"value":0,"label":"顶级菜单"},{"value":1,"label":"家用电器"},{"value":2,"label":"电视影音"},{"value":3,"label":"家具家装"},{"value":4,"label":"居家餐厨"},{"value":6,"label":"美妆个护"},{"value":7,"label":"户外出行"},{"value":8,"label":"3C数码"},{"value":9,"label":"日用文创"},{"value":49,"label":"时尚服装"},{"value":53,"label":"运动专柜"}]},{"type":"input","field":"cate_name","value":"运动专柜","title":"分类名称","props":{"type":"text","placeholder":"请输入分类名称","maxlength":30},"validate":[{"message":"请输入分类名称","required":true,"type":"string","trigger":"change"}]},{"type":"frame","field":"big_pic","value":"http:\/\/test.net\/uploads\/attach\/2020\/10\/20201013\/c7db457f59ee2a87612c9c1e23adb2ad.png","title":"分类大图(468*340)","props":{"type":"image","maxLength":1,"title":"请选择分类大图(468*340)","src":"\/admin\/widget.images\/index.html?fodder=big_pic","icon":"ios-add","width":"950px","height":"420px"}},{"type":"inputNumber","field":"sort","value":999,"title":"排序","props":{"placeholder":"请输入排序","min":0}},{"type":"radio","field":"is_show","value":1,"title":"状态","props":{},"options":[{"label":"显示","value":1},{"label":"隐藏","value":0}]}],"title":"编辑分类","action":"\/product\/category\/53","method":"PUT","info":"","status":true}}



So front end can use this returned value to generate/build form dynamically

Tuesday, 9 February 2021

OpenStack

 Openstack

- cloud VM management system on redhat

- open source aws

https://www.masterdc.com/blog/openstack-explained-how-does-openstack-work-advantages-reasons-for-cloud/


meetadata:

https://docs.ukcloud.com/articles/openstack/ostack-how-use-instance-metadata.html


command line

https://docs.openstack.org/install-guide/launch-instance-provider.html


cli cheat sheet

https://docs.openstack.org/ocata/user-guide/cli-cheat-sheet.html

Monday, 20 January 2020

OPEN ID, OAuth, OPEN ID Connect, Laravel Framework

Simple Terms

  1. OpenID is about verifying a person's identity (authentication). (usually returns ID_TOKEN)
  2. OAuth is about accessing a person's stuff (authorization). (NO ID_TOKEN but information got pulled)
  3. OpenID Connect does both.
All three let a person give their username/password (or other credential) to a trusted authority instead of to a less trusted app.

OAuth 2.0 is an authorization framework, not an authentication protocol. You can think of this framework as a common denominator for authorization. ... The big difference between OpenID Connect and OAuth2 is the id_token . There is no id_token defined in OAuth2 because the id_token is specific to federated authentication


Laravel Framework 
Open ID Connect implementation :

Tuesday, 18 December 2018

Micro Services && RPC

.Net Core is open source:
https://github.com/dotnet/coreclr

MS stack:
IIS (Internet Information Service) ----- Apache equivalent
ASP.net(.net MVC framework with module to SQL db, ASP scripting language)  -------- PHP euqiavalent

IIS && APS.net can be replaced by .net core which runs on windows and Linux like GO replaces Apache and PHP on ubunutu

Micro Services:


Remote procedure call :
Used to connect micro services instead of REST(faster):

Remote procedure call

From Wikipedia, the free encyclopedia
https://upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/50px-Question_book-new.svg.png
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (November 2009)(Learn how and when to remove this template message)
In distributed computing, a remote procedure call (RPC) is when a computer program causes a procedure (subroutine) to execute in a different address space (commonly on another computer on a shared network), which is coded as if it were a normal (local) procedure call, without the programmer explicitly coding the details for the remote interaction. That is, the programmer writes essentially the same code whether the subroutine is local to the executing program, or remote.[1] This is a form of client–server interaction (caller is client, executor is server), typically implemented via a request–response message-passing system. In the object-oriented programming paradigm, RPC calls are represented by remote method invocation (RMI). The RP