avatar
文章
366
标签
89
分类
53

Home
Archives
Tags
Categories
Link
张拓的博客
搜索
Home
Archives
Tags
Categories
Link

张拓的博客

通信协议
发表于2018-08-04|杂
4V通信协议1. 通信方式使用HTTPS的POST方式通信 2.1 POST请求基本格式123456789{ "token": "token str", //身份令牌 "request": "json string", //字符串化的JSON请求消息体 "nonce": 12345, //随机数 "timestamp": 65543216421, //请求的时间戳 "signature": "signature string", //请求的校验码 "encrypt":1, //request是否为加密串 "echostr": "echo string" //随机字符串} 2.2 请求结果的返回格式12345678{ "respons ...
TTS 文本转语音
发表于2018-04-27|c++文本转语音
文本转语音TTS 文本转语音包SpeechSDK51 SpeechSDK51LangPack 地址https://www.microsoft.com/en-us/download/details.aspx?id=10121# tts.cpp 代码块12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576// SDK下载地址 https://www.microsoft.com/en-us/download/details.aspx?id=10121// TTS.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "TTS.h"#include <sapi.h>#pragma comment(lib, "ole32.lib") //CoIniti ...
Add Two Numbers
发表于2018-01-29|algorithmc++algorithm
https://leetcode.com/problems/add-two-numbers/description/ You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.给定两个非空链表,表示两个非负整数。这些数字以相反的顺序存储,每个节点都包含一个数字。添加两个数字并将其作为一个链表返回。 You may assume the two numbers do not contain any leading zero, except the number 0 itself.你可以假设这两个数字不包含任何前导零,除了数字0本身。 12345678910111213141516171819202122232425 ...
各版本qt与qtcreator下载地址
发表于2018-01-12|qt
各版本qt与qtcreator下载地址http://download.qt.io/archive/
url一定要encode
发表于2017-11-18|杂
搭建的http文件服务器。http地址由服务端拼接,然而web开发竟然忘记了encode,导致上线后某些文件不能预览(手动滑稽)。
c++ string wstring 转换
发表于2017-07-22|c++boost
string <-> wstring123456789101112#include <boost/locale.hpp>int TestChangeWS(){ // string -> wstring std::wstring wname = boost::locale::conv::to_utf<wchar_t>(name, "GBK"); std::wcout << TEXT("wname:\t") << wname << TEXT("\n"); // wstring -> string std::string sname = boost::locale::conv::from_utf(wname, "GBK"); std::cout << "sname:\t" << sname << "\n"; ...
UTF8-GBK转换
发表于2017-07-22|c++boost
函数文档 123456std::string boost::locale::conv::between ( char const * begin,char const * end,std::string const & to_encoding,std::string const & from_encoding,method_type how = default_method ) Convert a text in range [begin,end) to to_encoding from from_encoding 将范围[begin,end)中的文本从from_encoding转为to_encoding 12345std::string boost::locale::conv::between ( char const * text,std::string const & to_encoding,std::string const & from_encoding,method_type how = default_method ...
VS通过.map文件查找异常代码的位置
发表于2016-06-15|c++dbgdbg
VS通过.map文件查找异常代码的位置一、配置VS 1.配置禁用优化 2.配置生成汇编代码 3.配置生成MAP文件 二、查找崩溃代码位置 1.查看崩溃异常偏移 此处异常偏移为000019c3 2.查看程序加载地址 3.对照.MAP文件,查找第一处大于程序加载地址(00400000)+异常偏移(000019c3)的位置 004019e0是第一处大于004019c3的位置,那么崩溃就位于CTestHtmlDlg类OnButtonOk函数中, 4.查看TestHtml.cod 崩溃代码位于OnButtonOK函数 00000+(004019c3-004019b0)=00013的位置注意部分函数起始地址不是00000; 可以看出*p=0为崩溃代码。
微信URL有效性验证
发表于2015-10-30|php
新浪sae服务器php搭建微信echostr问题搭建SAE PHP服务器时其它配置完全正确,但是微信验证服务器有效性时总是出现配置失败的问题。 在echo echostr之前需要清除文本格式代码如下: 12345if ($tmpStr == $signature) { if( !headers_sent() ) header('Content-Type: text/plain'); echo $_GET ["echostr"]; }
简单的俄罗斯方块
发表于2015-10-13|pythonpygame
简单的俄罗斯方块123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 ...
1…282930…37
avatar
张拓
多情自古空余恨,好梦由来最易醒
文章
366
标签
89
分类
53
Follow Me
公告
每天都有一个好心情
最新文章
windows编译libtorrent
windows编译libtorrent2024-05-23
windows编译boost
windows编译boost2024-05-08
vscode远程调试linux
vscode远程调试linux2023-12-21
linux服务检查进程
linux服务检查进程2023-12-01
ubuntu配置vnc服务
ubuntu配置vnc服务2023-11-03
分类
  • algorithm81
    • maze1
    • search34
    • sort33
  • aws7
  • boost7
  • build2
  • c++110
标签
database pygame samb odbc url cocos ocx rejson libzip samba 文本转语音 vs hex search thread win32 lua ffmpeg shared memory asio ssh cpp redis python TortriseGit decode quota uac .map qemu sql wordpress bitmap 杂 livecd py ustar ubuntu proxy dbg
归档
  • 五月 20242
  • 十二月 20232
  • 十一月 20231
  • 九月 20232
  • 八月 20236
  • 七月 202310
  • 六月 20234
  • 五月 202310
网站资讯
文章数目 :
366
本站访客数 :
本站总访问量 :
最后更新时间 :
©2020 - 2025 By 张拓
框架 Hexo|主题 Butterfly
京ICP备2022021138号-1
搜索
数据库加载中