YC Yc.W home Systems · C++ · AI Infrastructure
The notebook continues

Latest notes · Page 32 of 36

Fresh from the notebook

Latest notes

Browse by date →

pThreads + TCP Client

` rc:return code` API 范围: 以下按 Winsock 2.2 的 API 合约校对;SOCKET 失败值使用 INVALID_SOCKET,数据收发函数失败值使用 SOCKET_ERROR。GetResponseByCmd 片段假定调用方已经完成 InitSocket()...

Read note →

Web-Front-End Tips

调试前 确认浏览器大小 ctrl+0, 还原浏览器到100%,防止浏览器当前缩放过大或过小 &nbsp 空格占位 在html代码中&nbsp和空格的区别: 在html代码中每输入一个转义字符&nbsp就表示一个空格,输入十个&nbsp,页面中就显示10个空格位置...

Read note →

Node.js C++ Plug-In v8

几个重要的类: V8:这个是个大杂烩的工具类,从初始化到关闭平台都离不开它; ArrayBuffer是v8的数据类型; Isolate是v8中最重要的功能类,代表了一个v8引擎的实例。它不是线程安全的,如果在线程不安全情况下运行需要加锁; Local是v8中存储对象的结构,代表了被GC管理的对...

Read note →

Node.js Error

Node.js Error: Cannot find module express的解决办法 版本范围: Express 4.16.0(2017-09-28)起提供内置 express.json() 和 express.urlencoded(),Express 5 仍保留这两个 parser;...

Read note →

Node.js Forever

npm install forever -g #安装 forever start app.js #启动应用 forever stop app.js #关闭应用 forever restartall #重启所有应用 #输出日志和错误 forever start -l forever.log -o...

Read note →

Node.js PM2

安装 npm install -g pm2 使用 pm2 start app.js ``` pm2 1、 pm2需要全局安装 npm install -g pm2 2、进入项目根目录 2.1 启动进程/应用 pm2 start bin/www 或 pm2 start app.js

Read note →

Web-Express Solution

Express 中文网 Web 应用程序 Express 是一个保持最小规模的灵活的 Node.js Web 应用程序开发框架,为 Web 和移动应用程序提供一组强大的功能。

Read note →