string(2) "33" Development | Marco Nie
分类 Development 下的文章

2020-02-27T01:06:24.png

boost 是很流行的一个 c++ 库,他的部分模块使用只需要引用 head 文件即可,部分需要编译链接库才能使用。下面介绍如何编译模块的静态链接库。

官方网站:https://www.boost.org/
开始教程:https://www.boost.org/doc/libs/1_72_0/more/getting_started/windows.html
官方编译教程:https://www.boost.org/doc/libs/1_72_0/more/getting_started/windows.html#prepare-to-use-a-boost-library-binary
关于 B2 编译系统:https://boostorg.github.io/build/
关于 Microsoft Visual C++(MSVC) 版本号:https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering
关于静态库和动态库:https://blog.csdn.net/qq_41979948/article/details/129693847

阅读全文


今天在测试 telegram Bot 的时候,发现 keyboard 不能正确弹出来,后台查看发现报错了,提示 Bad Request: BUTTON_DATA_INVALID

反复检查代码没有发现语法错误,查找之后了解到 InlineKeyboardButton 响应后返回的 Callback Data 有大小限制,最大64位:

2020-02-01T10:02:48.png

的确我想返回的内容长度的确超过了大小限制,优化源码后问题解决了。

参考链接:
https://core.telegram.org/bots/api#inlinekeyboardbutton
https://stackoverflow.com/questions/46389040/inlinekeyboardbutton-are-limited-in-inlinekeyboardmarkup-telegram-bot-c-sharp



一些特殊符号需要显示在 HTML 上时,需要使用符号实体来表示:

常用符号转义

符号含义转义实体转义号
空格  
<小于号&lt;&#60;
>大于号&gt;&#62;
&&amp;&#38;
"双引号&quot;&#34;
'单引号&apos;&#39;
¢&cent;&#162;
£&pound;&#163;
¥&yen;&#165;
欧元&euro;&#8364;
©版权&copy;&#169;
®注册商标&reg;&#174;

更多符号

w3 教程:https://www.w3schools.com/HTML/html_entities.asp
希腊字符:https://www.w3schools.com/charsets/ref_utf_greek.asp
货币字符:https://www.w3schools.com/charsets/ref_utf_currency.asp
箭头符号:https://www.w3schools.com/charsets/ref_utf_arrows.asp
数学符号:https://www.w3schools.com/charsets/ref_utf_math.asp
更多杂类:https://www.w3schools.com/charsets/ref_utf_symbols.asp


选择特定元素内部的某个元素,需要使用加号 + 来进行选择。

2019-12-17T01:37:54.png

<!DOCTYPE html>
<html>
<head>
<style>
div + p {
  background-color: yellow;
}
</style>
</head>
<body>

<h1>Welcome to My Homepage</h1>

<div>
  <h2>My name is Donald</h2>
  <p>I live in Duckburg.</p>
</div>

<p>My best friend is Mickey.</p>

<p>I will not be styled.</p>

</body>
</html>