摘要: 需求点:客户不接受docker部署,服务编译环境无法和客户环境对齐,需要找到办法兼容 方案:mock整套ld/so,不依赖客户环境的基础组件 1. 正常编译,编译后拷贝整套so #!/bin/bash ABS_PATH=`pwd` echo "start copy system runtime li 阅读全文
posted @ 2024-09-20 17:17 张浦 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 失败原因:打开dump文件失败,权限不足 修改rtp_h264_extractor.lua中dump文件路径为本地路径即可 阅读全文
posted @ 2022-08-04 10:30 张浦 阅读(310) 评论(0) 推荐(1) 编辑
摘要: #! /bin/bash # # drop some packets to simulate network traffic jam # Zhang junpu, 12 09 2021 # ip_arr=($@) # restore iptable rules function clean_up() 阅读全文
posted @ 2021-12-10 15:17 张浦 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 内存测试构建: 工具:gperftools/heap_checker https://gperftools.github.io/gperftools/heap_checker.html 安装google-perftools: apt-get install libunwind-dev apt-get 阅读全文
posted @ 2020-12-09 14:04 张浦 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 493. 翻转对 给定一个数组 nums ,如果 i < j 且 nums[i] > 2*nums[j] 我们就将 (i, j) 称作一个重要翻转对。 你需要返回给定数组中的重要翻转对的数量。 示例 1: 输入: [1,3,2,3,1] 输出: 2 示例 2: 输入: [2,4,3,5,1] 输出: 阅读全文
posted @ 2020-11-28 12:07 张浦 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 编译: ./configure --prefix=/usr/local --enable-ffplay --enable-shared --enable-gpl --enable-libopenh264 --enable-libx264 --enable-libopus --enable-debug 阅读全文
posted @ 2020-11-23 15:38 张浦 阅读(109) 评论(0) 推荐(0) 编辑
摘要: /*** loop_wait.c ***/ #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> // WARNING: Only signa 阅读全文
posted @ 2020-10-29 11:53 张浦 阅读(78) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/3a2df9b7c353 阅读全文
posted @ 2020-08-20 17:00 张浦 阅读(114) 评论(0) 推荐(0) 编辑
摘要: > C思路没错,下标写错了,recheck is necessary A 简单题 class Solution { public: /** * 位移后二进制串的十进制值 * @param str string字符串 二进制字符串 * @param k int整型 循环位移次数 * @return l 阅读全文
posted @ 2020-07-25 23:12 张浦 阅读(167) 评论(0) 推荐(0) 编辑
摘要: A: 字符串模拟,简单题 class Solution { public: /** * 解密密文 * @param str string字符串 密文 * @param d int整型 偏移量 * @return string字符串 */ string decode(string str, int d 阅读全文
posted @ 2020-07-24 17:45 张浦 阅读(110) 评论(0) 推荐(0) 编辑