自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 1617 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 2319 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 1533

原创 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 897 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 827

原创 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 6138 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 1605

原创 mysql 安装 xdevapi mysqlx plugin

mysql> INSTALL PLUGIN mysqlx SONAME 'mysqlx.so';show plugins;

2020-01-02 14:07:35 1281

原创 MySQL中group_concat函数

mysql 结果 行转为一列select group_concat(id) from table 默认逗号隔开

2019-09-02 11:28:08 133

原创 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 2459

原创 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 1511

原创 c++ 读写excel xlsx 文件

https://github.com/brechtsanders/xlsxio需要安装Minizip

2019-06-18 13:51:11 7280

原创 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 621

原创 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 2054

原创 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 678

原创 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 2308

原创 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 2438

转载 cuda 设备查询程序

checkdeviceinfor.cu 取得cuda核心数量 #include "common.h"#include &lt;cuda_runtime.h&gt;#include &lt;stdio.h&gt;/* * Display a variety of information on the first CUDA device in this system, * in...

2019-01-22 18:08:09 1015

原创 mac os g++ mysql-connector-c++ mysql

参考这个http://www.cnblogs.com/joeblackzqq/p/4332945.html#include &lt;iostream&gt;#include &lt;map&gt;#include &lt;string&gt;#include &lt;memory&gt;#include "mysql_driver.h"#include "mysql_conne...

2018-11-12 22:29:50 1001

原创 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 3963

原创 STM32H743ZI Nucleo cn8 cn9中间管脚定义图

目前收到了板,但是mac os下 st-link程序还没有弄好,https://github.com/texane/stlink  上面有人提起这个问题。

2018-07-12 11:16:19 1629

原创 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 2536

原创 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 2371 1

原创 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 1512

原创 makefile 文件中取得被包含的文件的目录

有些项目共用一个公共makefile文件就会出问题,内部变量会随着谁包含就是谁的当前目录信息当被几个不同目录包含时候,我们需要一个绝对目录,就是文件当前目录$(abspath $(lastword $(MAKEFILE_LIST))) 是获得当前包含文件全路径#SELF_FILE=$(abspath $(lastword $(MAKEFILE_LIST)))$(dir filespath) 取回目...

2018-05-20 14:36:16 3382

原创 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 1275

原创 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 2233 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 5084

原创 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 817

原创 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 2741

原创 gdb调试 mac os

安装好 gdb 后  (please check gdb is codesigned - see taskgated(8))表示没有签名,需要签名才能调试,因为gdb没有权限调试别的进程方法 launchpad  其它 钥匙串访问 菜单 创建 证书助理  可以 看http://blog.csdn.net/liangguangchuan/article/details/548

2017-11-22 23:04:54 227

原创 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 707

转载 React Native react-native-vector-icons 使用小记

网页可以使用很多小图标,React Native 怎么使用图标呢,网上也有人使用过,总结下http://www.cnblogs.com/moxiaoyan33/p/5482024.html 参考这个基本上会成功 ICONS是可以直接使用图片名, 就能加载图片的三方,使用很方便, 你不需要在工程文件夹里塞各种图片, 节省很多空间,下面就来看看怎么使用吧!首先打开terminal进入到我们的工程文

2016-11-13 19:30:27 13092

原创 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 1136

原创 微软会不会是下一个诺基亚式沦落

微软今天发布了windows 10,不过我没有看过技术细节,现在只是看看

2014-10-01 22:18:23 942

原创 iis ftp 530 User cannot log in, home Directory Inaccessible

原来历史上还有一些asp程序,王水之

2014-05-14 09:46:06 6987

原创 vsftpd 500 OOPS: cannot change directory:/home/***

这是新版 vsftpd加了安全认证引

2014-04-28 17:31:09 5513

原创 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 8941 3

原创 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 2537

原创 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 4125

PDF1.7_2008.pdf

2008 版pdf结构文档 英文,备份使用 2008 版pdf文档 英文,备份使用2008 版pdf文档 英文,备份使用2008 版pdf文档 英文,备份使用

2020-09-24

第17章移动语义.pdf

讲的很详细的std::move使用方法,什么时候用move什么时候不用,还有编译器怎么优化代码的,网上不知道找不到了

2020-09-24

stm32f103c8t6手工设置位带,了解底层原理入门用

RCC->APB2ENR|=1<APB2ENR|=1<CRH&=0XFFFFF00F;//IO状态设置 GPIOA->CRH|=0X000008B0;//IO状态设置 RCC->APB2RSTR|=1<APB2RSTR&=~(1<BRR=0x271;//0x1d4c;//0x271; // 波特率设置 直接固化 如果总线是36 那波特率是57600 USART1->CR1|=0x200C; //1位停止,无校验位. USART1->CR1|=1<<5; //1位停止,无校验位.

2020-07-24

mac os gcc stm32f103 编译测试项目

网上下载了一个测试文件,这个可以在mac os gcc ( arm-none-eabi-gcc )编译 点亮一个led灯

2018-05-18

caffe2-0.81

不知道官方下载很慢,这个是官方下载的,0.81版,希望有同样下载不了的可以在这里下载

2018-01-27

MediaTek_MT7681_Datasheet_v1_0.pdf

MT7681 Datasheet 主要用于物联网开发

2015-11-10

flash swf 上传类,带自动图片缩放功能

带压缩功能上传图片,因为有人经常拍完就上传,几MB太大小,老是说慢 本swf在客户端自动压缩图片,图片质量为80; 有源码可以自己修改 也可以直接使用,里面有演示代码和php代码

2014-11-26

mac os x10.6.7破解文件打包 for atom凌动处理器

OSInstall文件放入安装盘(打开隐藏文件和保护文件)的如下位置: /System/Library/PrivateFrameworks/Install.framework/Frameworks/OSInstall.framework/Versions/A OSInstall.mpkg位置 /System/Installation/Packages 10.6.6的只需要替换osinstall,10.6.7的两者都必须替换!!

2013-01-15

ActionScript.3.0.Cookbook.中文完整版

书好像没有卖了,as3入门非常好,我也是看这个入门

2011-09-08

queryphp框架使用手册2011_01_27.chm

queryphp是一个微型框架 可以实现MVC方式 也可以单独使用数据库模型,当作数据类使用就可以了。 也方便嵌入你现有的项目中。本数据库操作强大 单独使用本ORM内核,文中后面有具体介绍。

2011-07-12

MYSQL5.1 简体中文参考文档.chm

mysql5.1手册

2007-03-25

php_ajaxGrid数据编辑

php ajax 表格编辑

2007-01-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除