PyConUS2022 announced PyScript to execute Python code in the browser, relying on pyodide (CPython for WebAssembly). It is much closer to the web development experience than pyodide. The published alpha version output Python version information is: 3.10.2 (main, Apr 9 2022, 20:52:01) [Clang 14.0.0 (https://github.com/llvm/llvm-project 78e87970af888bbbd5652c31f3a8 Install Just add HTML tags to load the files: …
Author: Perchouli
Compare Popular React Native Component Libraries
In this post I’d like to compare three popular React Native(“RN”): NativeBase, Shoutem and React Native Elements. Create an app on Expo. The app contain three screen: Make an wordpress REST API call to render list of post, rendering a post(HTML) and a login Form. To compare their UI and usage, not include quality of …
SVG of Chinese Art
Animal Shape Pattern
Index of ReactJS Source Code
React's design is often discussed, but because of the many related documents, the source code reads more tired.Just recently saw under the Hood:reactjs this project shared a flowchart of the React Core code (MIT Protocol), taking several of them as a directory index when writing this article for reading source. The article is divided into …
Creating API with GraphQL+Django
Environment: Django 1.10.4 graphene-django-1.2.0 Setup Install graphene-django,`migrate` and `createsuperuser` if it’s a new Django project:
AES Between Python, Go, Javascript(NodeJS) and PHP
AES Wikipedia: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard. AES needs Key, IV and PKCS. Use 256 bits key length, Python/Go can auto choice by key length your passed. Named `MCRYPT_RIJNDAEL_128` in PHP5, Nodejs/PHP7.1 is aes-256-cbc. Use CBC mode due to ECB no IV. Key is `AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA` (256 bits),IV is `AAAAAAAAAAAAAAAA`(128bits). Python use pycrypto(pip install pycrypto),NodeJS require crypto(npm install crypto),PHP5 need …
Why Use 960px? — An Analysis of Web Content Width
In the days before LCD screens became widespread, web design needed to consider a resolution of 800×600. However, the usage rate of 800×600 resolution is now less than 2%, making it negligible. The next higher resolution, 1024×768, has a usage rate close to 50% (2010), so many websites are designed based on a width of …