Skip to main content

Posts

Showing posts with the label Martin Fowler

Tools for write documentation in HTML/webpage and or other format

Some sites work without JS https://www.webdesignerdepot.com/2018/01/8-sites-that-work-just-fine-without-js-thank-you/ You know what? Amazon and Twitter can work without JS! I'm not biased and not a fan of choices (please read J. Krishnamurti) or comparison. But anyway I love simple, clean way of represent knowledge, information. In college, you can see many book, especially technical book are written in a very clear and easy to understand way, event it's problem is complex and or complicated. Art or psychological, social science ... are different ? Some simple and amazing website content: https://martinfowler.com/ Tools for write HTML, XML, code (certainly with highlight)... From M. Fowler book - Patterns of EA Architecture. See Colophon section: This is the first book that I wrote using XML and related technologies. The master text was written as a series of XML documents using trusty TextPad. I also used a home-grown DTD. While I was working I used XSLT to gener...

NoSQL BASE vs SQL ACID

SQL http://www.postgresql.org/docs/8.4/static/explicit-locking.html#LOCKING-TABLES Atomicity : all or nothing (rollback) Coherence : coherent before, coherent after Isolation: not impacted by others? Durability : commit, if it's done, it's really done Atomicity: tất cả hoặc không có gì (rollback) Coherence: mạch lạc trước, mạch lạc sau Cách ly: không bị ảnh hưởng bởi những người khác? Độ bền: cam kết, nếu nó được thực hiện, nó thực sự thực hiện http://stackoverflow.com/questions/4659422/locking-mysql-tables-rows NoSQL http://www.martinfowler.com/tags/noSQL.html Basic Availability The database appears to work most of the time. Soft-state Stores don’t have to be write-consistent, nor do different replicas have to be mutually consistent all the time. Eventual consistency Stores exhibit consistency at some later point (e.g., lazily at read time). http://neo4j.com/blog/acid-vs-base-consistency-models-explained/

PHP Google API - Calendar

http://livingcode.co/index.php/tag/one-time-authorization-code/ http://martinfowler.com/articles/command-line-google.html New API doc here: https://developers.google.com/api-client-library/php/auth/web-app library: https://github.com/google/google-api-php-client index.php <?php // require_once 'google-api-php-client/autoload.php'; require_once 'google-api-php-client/src/Google/autoload.php'; session_start(); $client = new Google_Client(); $client->setAuthConfigFile('client_secrets.json'); $client->setAccessType("offline"); $client->addScope(Google_Service_Calendar::CALENDAR); if (isset($_SESSION['access_token']) && $_SESSION['access_token']) {   $client->setAccessToken($_SESSION['access_token']);   // echo $client->getAccessToken();   $cal = new Google_Service_Calendar($client); $params = array( //CAN'T USE TIME MIN WITHOUT SINGLEEVENTS TURNED ON, //IT SAYS TO TREA...