2024年4月23日

js常见问题

摘要: Chrome 88后更新了更为激进的省电策略[1],导致后台非活动页面中setInterval、setTimeout回调的执行间隔拉长到1分钟以上。 这里有一种很巧妙的方法可以强制标签页不进入非活动状态(利用了播放视频时标签页不会休眠的机制),而且不需要改动业务代码,只需要将下面的代码放到页面JS脚 阅读全文

posted @ 2024-04-23 13:42 heysong 阅读(1) 评论(0) 推荐(0) 编辑

2024年4月15日

C的常用实现

摘要: 可变参数 stdarg.h 参考 https://www.tutorialspoint.com/c_standard_library/stdarg_h.htm 阅读全文

posted @ 2024-04-15 09:53 heysong 阅读(2) 评论(0) 推荐(0) 编辑

2024年3月25日

vscode常用

摘要: 自动定位到文件 settings中查找auto reveal,将设置为true 阅读全文

posted @ 2024-03-25 09:43 heysong 阅读(7) 评论(0) 推荐(0) 编辑

2024年3月21日

nvm的使用

摘要: 常用问题 <!-- Newer Node.js requires the following to avoid an "ERR_OSSL_EVP_UNSUPPORTED" error when WebPack attempts to use its default hash (MD4) for co 阅读全文

posted @ 2024-03-21 09:39 heysong 阅读(2) 评论(0) 推荐(0) 编辑

2024年2月6日

cygwin编译memcached

摘要: 编译 cygwin安装make,gcc-core,gcc-g++, libgcc1, libgccpp1, pkg-config, vim, nano, wget, curl 依赖libevent,安装libevent 下载memcached源码,./configure --prefix=/usr/ 阅读全文

posted @ 2024-02-06 22:54 heysong 阅读(3) 评论(0) 推荐(0) 编辑

2024年1月30日

nextjs

摘要: 重要,讲page.tsx和layout.tsx的角色和作用 page.tsx是内容,如果没有这个文件,会404没显示内容 layout.tsx可以将layout上的组件共享给下面所有pages(比如link可以给下面所有pages共用),其中的children是下面所有的page.tsx或layou 阅读全文

posted @ 2024-01-30 11:30 heysong 阅读(11) 评论(0) 推荐(0) 编辑

2024年1月29日

Angular

摘要: 参考:https://angular.io/tutorial/first-app 阅读全文

posted @ 2024-01-29 23:18 heysong 阅读(2) 评论(0) 推荐(0) 编辑

2024年1月19日

tomcat远程调试

摘要: catalina.bat上面加 SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 或者修改<!t 阅读全文

posted @ 2024-01-19 14:02 heysong 阅读(2) 评论(0) 推荐(0) 编辑

2024年1月2日

SSH相关

摘要: 证书登录 CA 生成user_ca和user_ca.pub和host_ca和host_ca.pub CA根据就是一对密钥,用user_ca来生成客户端证书,用host_ca来生成服务端证书 生成用户端CA,会生成user_ca和user_ca.pub密钥对 # 生成 CA 签发用户证书的密钥 $ s 阅读全文

posted @ 2024-01-02 17:10 heysong 阅读(4) 评论(0) 推荐(0) 编辑

2023年12月31日

GCC在windows上

摘要: 引用 Cygwin 和MinGW 的区别与联系是怎样的 GCC on Windows 在 msys2 中的 mingw64 、 ucrt64 、 clang64 的区别与相同点有啥 mingw-w64 Cygwin msys2 msys2不同环境(MSYS,UCRT64,MINGW64,...)的区 阅读全文

posted @ 2023-12-31 08:58 heysong 阅读(5) 评论(0) 推荐(0) 编辑

导航