>>> YieldNull
  • /blog
  • /archives
  • /github
  • /about

Blog Entries all / by tag / by year

  • log4j-rce 复现

    2021-12-11 16:15:26 / Java /399 hits

    Read more...


  • PostgreSQL字段对齐规则

    2021-10-16 20:16:49 / PostgreSQL /764 hits

    PostgreSQL在存储一行数据时,会对各个字段进行对齐。在设计表结构时,需要合理安排字段顺序,减少磁盘空间占用。

    postgres=# select typname, typalign, typlen from pg_type where typname in ('int4', 'int8', 'bool', 'float4', 'float8', 'bytea', 'text', 'timestamptz', 'serial', 'json', 'int8[]');
       typname   | typalign | typlen
    -------------+----------+--------
     bool        | c        |      1
     bytea       | i        |     -1
     int8        | d        |      8
     int4        | i        |      4
     text        | i        |     -1
     json        | i        |     -1
     float4      | i        |      4
     float8      | d        |      8
     timestamptz | d        |      8
    (9 rows)postgres=#
    

    Read more...


  • Java客户端软件破解方法-以KafkaTool为例

    2021-04-11 14:01:10 / Java /1418 hits

    最近在使用kafkatool 作为查看Kafka消息的工具,但是只支持text、json、xml等常见格式。若想支持自定义的消息格式,例如protobuf,则需要自己编写插件。辛辛苦苦写好一个插件后,发现需要付费才能使用。向来都是白嫖的我,想到它既然是用Java写的,那么反编译一下,是不是有希望绕过付费呢?

    Read more...


  • Kafka原理与概念介绍

    2020-12-08 22:26:43 / Kafka /793 hits

    Read more...


  • 使用Python子进程,你处理这两种情况了吗?

    2019-10-27 20:33:04 / Python /2638 hits

    CPython由于GIL的存在,Python服务端程序通常在子进程中处理请求。使用子进程时,可能会遇到以下两种情况:

    • 子进程结束后变成僵尸进程,占用进程号。
    • 子进程占用父进程LISTEN的端口号,导致父进程重启时失败。

    下文将在docker python:2.7环境下,模拟一种服务端场景,以复现这两个问题,并提出解决方案。

    Read more...


  • Spark files 传输流程

    2018-07-14 18:49:37 / Spark /3204 hits

    在编写Spark应用时,有时需要使用到一些额外的jar包、额外的资源文件,因此在每个Executor上都需要一份files的拷贝。那么files是怎么被复制到各个Executor上的呢?本文将基于Spark 1.1.1来分析Spark files的传输流程。

    Read more...


  • « Previous
  • Next 2 / 11 »

About this site © YieldNull, . 鄂ICP备16003391号