- 博客(76)
- 资源 (14)
- 收藏
- 关注
原创 谷歌av1编码 brew安装问题
Cloning https://aomedia.googlesource.com/aom.gitCloning into '/Users/***/Library/Caches/Homebrew/aom--git'...fatal: unable to access 'https://aomedia.googlesource.com/aom.git/': Failed to connect to aomedia.googlesource.com port 443: Operation timed out
2021-05-04 12:16:22
2039
1
原创 Mac OS high Sierra 10.13.6 安装cuda
Mac OS high Sierra 10.13.6 是最后一版支持cuda 的macbook pro gt750m 显卡安装方法安装方法安装驱动https://gfe.nvidia.com/mac-updatehttps://images.nvidia.com/mac/pkg/387/WebDriver-387.10.10.10.40.140.pkg可以看到对应的mac os 版本号为 17G4042第二步 cuda 工具https://devel...
2021-04-24 00:07:45
2543
1
原创 PHP 创建腾讯视频会议
php创建视频会议,方便后台操作,发送通知和保存相关人员,比如发送到相关人员手机上curl 有问题 会提示错误{"error_info":{"error_code":400,"message":"Missing required http header 'AppId'"}}<?php/* * 腾讯会议创建视频会议 * 使用fsockopen模拟 如果使用curl header信息字段都变小写了 curl_getinfo($ch) 查看,curl错误信息如下 * {"error_.
2020-05-29 17:21:05
1664
原创 flutter sudo gem install cocoapods 升级失败
localhost:hello_world hzq$ sudo gem install cocoapodsPassword:Building native extensions. This could take a while...ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/ge...
2020-05-15 17:35:50
938
1
原创 mac os 源码编译gcc10
../configure --build=x86_64-apple-darwin18 --prefix=/usr/local/Cellar/gcc/10.0.0 --libdir=/usr/local/Cellar/gcc/10.0.0/lib/gcc/10 --disable-nls --enable-checking=release --enable-languages=c,c++ --pro...
2020-04-25 22:28:21
897
原创 gcc 源码 编译错误
onfigure: error: source directory already configured; run "make distclean" there firstMakefile:5449: recipe for target 'configure-stage1-gmp' failedmake[2]: *** [configure-stage1-gmp] Error 1make[2...
2020-03-06 10:26:25
7574
3
原创 连接mysql5.7 使用 mysql-connector-c++-1.1.13
#include <iostream>#include <map>#include <string>#include <memory>#include "mysql_driver.h"#include "mysql_connection.h"#include "cppconn/driver.h"#include "cppconn/st...
2020-01-12 16:34:11
1772
原创 mysql 安装 xdevapi mysqlx plugin
mysql> INSTALL PLUGIN mysqlx SONAME 'mysqlx.so';show plugins;
2020-01-02 14:07:35
1335
原创 MySQL中group_concat函数
mysql 结果 行转为一列select group_concat(id) from table 默认逗号隔开
2019-09-02 11:28:08
177
原创 brew install dart 安装dart 失败 改为手工安装方式
https://storage.googleapis.com/dart-archive/channels/stable/release/2.4.1/sdk/dartsdk-macos-x64-release.zip下最新版brew tap dart-lang/dartbrew edit dart进去看看最新版是什么 下面127.0.0.1 位置是你的最新版url,手工下载后你丢到那个...
2019-08-15 08:57:06
2547
原创 freetype2中文获取方式
ch=L'领'; //设置编码 FT_Select_Charmap(face, FT_ENCODING_UNICODE); FT_UInt gindex = FT_Get_Char_Index(face, ch); std::cout<<"offset:"<<gindex<<std::endl; if (FT_Lo...
2019-07-21 19:26:12
1624
原创 boost mac os project-config.jam g++-8编译
#if ! gcc in [ feature.values <toolset> ]#{# using gcc ;#}#project : default-build <toolset>gcc ;using gcc : 8.3 : /usr/local/Cellar/gcc/8.3.0_1/bin/g++-8 ;或using gcc : 9.1 : ...
2019-06-11 14:47:20
668
原创 git 推送不了,因为初始化为git init 而不是git --bare init
localhost:test hzq$ git push origin master枚举对象: 16, 完成.对象计数中: 100% (16/16), 完成.使用 4 个线程进行压缩压缩对象中: 100% (13/13), 完成.写入对象中: 100% (16/16), 2.93 KiB | 749.00 KiB/s, 完成.总共 16 (差异 1),复用 0 (差异 0)remot...
2019-03-15 12:58:47
2283
原创 vsftp3 虚拟用户配置
先说两个错误vsftpd: PAM unable to dlopen(/lib/security/pam_userdb.so): /lib/security/pam_userdb.so: cannot open shared object file: No such file or directory应该是找不到pam_userdb.so. 我们把前面目录删除或你看下pam_userdb....
2019-03-12 10:47:19
764
原创 php7.2 mysql.so extension php7 添加mysql扩展
downloadhttp://git.php.net/?p=pecl/database/mysql.git;a=summarymysql-386776d.tar.gzphpize./configure --with-php-config=php-configmakesudo make installmysql-386776d$ sudo make install...
2019-03-08 11:45:53
2357
原创 mac os 汇编helloworld
hzq$ nasm -f macho64 -o helloworld aa.asmhzq$ ld -o helloworld.o -e _start helloworldld: warning: No version-min specified on command lineld: dynamic main executables must link with libSystem.dyl...
2019-03-02 18:48:06
2523
转载 cuda 设备查询程序
checkdeviceinfor.cu 取得cuda核心数量 #include "common.h"#include <cuda_runtime.h>#include <stdio.h>/* * Display a variety of information on the first CUDA device in this system, * in...
2019-01-22 18:08:09
1091
原创 mac os g++ mysql-connector-c++ mysql
参考这个http://www.cnblogs.com/joeblackzqq/p/4332945.html#include <iostream>#include <map>#include <string>#include <memory>#include "mysql_driver.h"#include "mysql_conne...
2018-11-12 22:29:50
1064
原创 Undefined symbols for architecture x86_64: 编译出错
Undefined symbols for architecture x86_64: 编译出错其实是mac os xcode 带的c++标准库问题,如果还是老的库就会出错,要升级xcode,或用最新c++库前阵子编译php mysql就遇到这个问题,后来升级xcode后一路编译顺利。 ...
2018-10-26 10:19:27
4043
原创 STM32H743ZI Nucleo cn8 cn9中间管脚定义图
目前收到了板,但是mac os下 st-link程序还没有弄好,https://github.com/texane/stlink 上面有人提起这个问题。
2018-07-12 11:16:19
1752
原创 stm32f103 rcc时钟寄存器设置和usart寄存器
这几天把rcc时钟搞明白了。其实主要是流程 看错了计算器1到31位,结果是错位了,一直找不到原因。原来mac 自带编程计算器也是从0到31stm32中文手册讲得比较明白自己摸索下设置了串口发送数据自己用的是蓝色药丸 (blue pill )淘宝10块不到一小块 stm32f103c8t6led灯是portc 13脚本程序全部是用寄存器方式设置#include "stm32f10x_lib.h"#...
2018-07-06 23:37:18
2645
原创 mac os下st-flash写不进固件
Short the BOOT0 pin with VDDReset the boardst-flash erase网上这样说可以。 st-flash write build/iic.bin 0x080000002018-05-25T15:39:51 INFO common.c: Loading device parameters....2018-05-25T15:39:51 WARN common...
2018-05-25 15:58:23
2449
原创 multiple definition of `NMI_Handler' stm32CubeMX 生成gcc编译出错
multiple definition of `NMI_Handler'还有其它提示重复的,请检查下Makefile文件里面 是不是重复了c源文件 我的不知为何生成Src/stm32f1xx_it.c \这一行和main.c重复C_SOURCES = \Src/main.c \/Src/system_stm32f1xx.c \Src/stm32f1xx_it.c \Drivers/STM32F1...
2018-05-23 21:29:07
1650
原创 makefile 文件中取得被包含的文件的目录
有些项目共用一个公共makefile文件就会出问题,内部变量会随着谁包含就是谁的当前目录信息当被几个不同目录包含时候,我们需要一个绝对目录,就是文件当前目录$(abspath $(lastword $(MAKEFILE_LIST))) 是获得当前包含文件全路径#SELF_FILE=$(abspath $(lastword $(MAKEFILE_LIST)))$(dir filespath) 取回目...
2018-05-20 14:36:16
3484
原创 c++ 直接常量字符赋值
warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]直接 加下char * argv[1]=(char*)"1.jpg";可以消除这个警告。。...
2018-05-08 11:04:41
1332
原创 mac os 安装opencv 3.4.0 FFmpeg xcode 编译
今天安装下opencv,在官方下载最新版,我们先安装FFmpeg 安装FFmpeg之前也先安装音频解码 http://www.audiocoding.com/downloads.html下载这两个 注意,我最新版mp3lame编译没有通过,用3.99版对不熟linux同学可能比较陌生,现在linux很少有人手工编译安装了。如果你是64位可以取消i386 不然会报错,我
2018-01-05 22:34:56
2338
1
转载 超大文件编码转换
最近导数据,从gbk转到utf8,文件太大了120多M,普通编辑器无法打开网上有人用vim转换,成功率也很高,iconv有时候不能转换我是从旧的mysql导出来一个文本文件The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
2017-12-19 23:41:11
5318
原创 bind 配置记录
yum install bind bind-libs bind-chroot 或yum install bind-chroot bind -yrndc-confgen -r /dev/urandom -a service named restartoptions { listen-on port 53 { 你服务器ip; }; li
2017-12-06 23:13:02
901
原创 c++ string split分割字符串
c++原生好像没有split分割字符串内置函数#include #include #include #include #include #include #include #include using namespace std;vector split(string &str,string sp){ vector split; //string sp="age
2017-12-03 16:19:30
2780
原创 gdb调试 mac os
安装好 gdb 后 (please check gdb is codesigned - see taskgated(8))表示没有签名,需要签名才能调试,因为gdb没有权限调试别的进程方法 launchpad 其它 钥匙串访问 菜单 创建 证书助理 可以 看http://blog.youkuaiyun.com/liangguangchuan/article/details/548
2017-11-22 23:04:54
266
原创 c++ 一块内存转为二维数组
c++ 一块内存转为二维数组 因为需要连续内存,所以不用自带STL类,需要用到 ** 指针的指针。使用std::malloc分配#include #include using namespace std;int main(int argc, char** argv){ int n,j; cin>>n>>j; //输入二维数组行和列
2017-11-16 20:08:51
779
转载 React Native react-native-vector-icons 使用小记
网页可以使用很多小图标,React Native 怎么使用图标呢,网上也有人使用过,总结下http://www.cnblogs.com/moxiaoyan33/p/5482024.html 参考这个基本上会成功 ICONS是可以直接使用图片名, 就能加载图片的三方,使用很方便, 你不需要在工程文件夹里塞各种图片, 节省很多空间,下面就来看看怎么使用吧!首先打开terminal进入到我们的工程文
2016-11-13 19:30:27
13159
原创 flash 上传类 带自动压缩功能
现在相片比较大,好几M,直接上传比较麻烦package { import com.adobe.images.JPGEncoder; import com.adobe.images.PNGEncoder; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.D
2014-11-26 17:02:27
1167
原创 iis ftp 530 User cannot log in, home Directory Inaccessible
原来历史上还有一些asp程序,王水之
2014-05-14 09:46:06
7067
原创 android FileReader 读取图片资源显示预览失败解决方法
昨天用html5写一个手机上传图片问题,因为用户不可能自己剪辑图片,所以要在客户端生成缩图,不然用户没传两张把人家流量耗光了。代码如下,oImage.src="data:application/octet-stream;"+e.target.result.substr(e.target.result.indexOf("base64,"));是重点,因为发现android系统直接选择相册的话
2014-03-12 16:33:04
9156
1
原创 ubuntu virtualbox安装 笔记
前天把一台win服务器格了装ubuntu,原来的asp程序用virtualbox虚拟一个win2003运行下载最新的ubuntu 12.0.4 安装时候可以用U盘或光盘安装,如果你的cpu支持kvm虚拟主机可以直接安装时候选择virtualhost。因为我cpu是老至强,不支持vms也就是内核不支持虚拟化。所以我后期安装virtualbox。如果原来安装了kvm那要先删除
2013-01-20 14:35:24
2587
原创 htc one s 进入bootloadert和recovery方式
首先要是安装htc one s驱动把手机设置为USB调试下载adb.exe文件adb reboot-bootloader (进入bootloader)adb reboot recovery (进入recovery)建立一个bootloader.bat文件在adb.exe目录 然后输入一行命令adb rebo
2012-11-11 15:45:38
4188
PDF1.7_2008.pdf
2020-09-24
stm32f103c8t6手工设置位带,了解底层原理入门用
2020-07-24
flash swf 上传类,带自动图片缩放功能
2014-11-26
mac os x10.6.7破解文件打包 for atom凌动处理器
2013-01-15
queryphp框架使用手册2011_01_27.chm
2011-07-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人