Articles

  • Python GIL

    Introduction

    GIL Global Interprete Lock

  • C Primer

    Introduction

    This article introduces some basic skills in programming with C language.

  • System Administration - Fedora

    Fedora 24

  • Language/Encoding

    Introduction

    In this article we will discuss the merits and demerits of different language/encoding methods.

  • Knowledge Tree

    Introduction

  • MySQL Primer - Develop Rules

    Introduction

    This article described some basic rules in developing involed with MySQL Server. This is intend to help the developers and sysadms.

  • Performance Tuning - SystemTap

    Introduction

    • like dtrace
    • aims to supplement the existing suite of Linux monitoring tools
      • by providing users with the infrastructure to trake kernel activities.
      • more deeper
      • more precise
    • takes a compiler-oriented approach to generating instrumentation
    • Flexibility
    • Easy of use
  • MySQL Primer - Query Optimization

    Introduction

    This article describes query optimization.

    This article is intend for

    • Application Designer/Developer
    • Database/System Administrator
  • MySQL 性能调优分享

    摘要

    MySQL 凭借着开源社区和 Oracle 公司的支持,快速迭代变为很多公司关系型数据库的首选。

    本文着眼于 MySQL 的性能优化, 系统的介绍了性能优化的各个方面,从系统的选择,安装使用到性能测量,优化,末尾介绍了文档平台数据库优化过程中几个有代表性的例子。

    由于数据库优化设计内容众多,本文仅列出大纲,具体内容分布在对应的文章中。

  • Requests HTTP library for Python

    Table of Contents

    Make Requests

    JSON-Encoded POST/PATCH

    requests.post(url, data=json.dumps(payload))
    # or just pass to json parameter (v2.4.2+)
    requests.post(url, json=payload)
    

    Form-Encoded

    import requests
    
    r = requests.get('https://api.github.com/events')
    r = requests.post('https://api.github.com/post', data = {'key':'value'})
    r = requests.put('http://httpbin.org/put', data = {'key':'value'})
    r = requests.delete('http://httpbin.org/delete')
    r = requests.head('http://httpbin.org/get')
    r = requests.options('http://httpbin.org/get')