Wujingquan | 搞搞震

MongoDB – aggregate query

document https://www.mongodb.com/docs/manual/aggregation/ Operators for aggregation queries https://www.mongodb.com/docs/manual/reference/operator/aggregation/ Classification of Aggregate Query Operators arithmetic expression operator array expression operator boolean expression operator comparison expression operator conditional expression operator … Common Mongo aggregation operations are compared with mysql queries SQL Aggregate where $match group by $group having $match select $project order by $project limit $limit sum() $sum …

MongoDB – aggregate query Read More »

MikroORM and MongoDB

Use aggregation query Use EntityRepository from the @mikro-orm/mongodb package instead of the @mikro-orm/core package. // import { EntityRepository } from ‘@mikro-orm/core’; import { EntityRepository } from ‘@mikro-orm/mongodb’ ; class User { constructor ( @InjectRepository (User) private readonly userRepository: EntityRepository<User>, ) {} @Get () find ( ) { return this . userRepository . aggregate ([]); }} …

MikroORM and MongoDB Read More »

Small skin panel (phpStudy)

9000 port occupation problem Open the resource monitor , find the process name: xp.cn_cgi.exe , and you will see the occupied port. If you have 4 versions of PHP installed on your machine, then there will be 4 corresponding xp.cn_cgi.exe processes and Occupies 4 ports: increase from 9000. Executing netstat -ano | findstr 9000 will …

Small skin panel (phpStudy) Read More »

Small skin panel (phpStudy) about pseudo-static settings

configuration Configuration path: “Website” on the left menu bar => click the “Management” button of the website to be configured => click the “pseudo-static” button, enter the pseudo-static code, and restart Nginx . example if (!-e $request_filename ) { rewrite ^(.*)$ /index.php?s= $1 last ; break;} The above is the Nginx pseudo-static code of Thinkphp. …

Small skin panel (phpStudy) about pseudo-static settings Read More »

Puppeteer – Deploy to Alibaba Cloud Function Compute

refer to https://gitee.com/devsapp/start-puppeteer This article is transferred from https://www.wujingquan.com/posts/8446521e.html This site is only for collection, and the copyright belongs to the original author.

Puppeteer – use of Docker version

Puppeteer’s official documentation on Docker https://pptr.dev/guides/docker Push the official Puppeteer Docker image to Alibaba Cloud There is no official image maintained by Puppeteer on hub.docker.com, because the official image is hosted on Github. So we need to pull down the image, and then push it to the mirror service in the country to increase the …

Puppeteer – use of Docker version Read More »

Cesium Heatmap heat map source code reading

Specifically, it is to use heatmap.js to create a heat map, how to get the canvas of the heat map and paste it on Cesium. parameter: noLisenerCamera?: boolean//Do not monitor the camera cameraHeightDistance?: number//The difference between camera heights, re-render the basemap when it is greater than this value renderType?: RenderType//rendering type points: HeatmapPoint[] bounds?: number[] …

Cesium Heatmap heat map source code reading Read More »

Node.js file read and write

Module: fs https://nodejs.org/dist/latest-v18.x/docs/api/fs.html This article is transferred from https://www.wujingquan.com/posts/e312012c.html This site is only for collection, and the copyright belongs to the original author.

Puppeteer

document https://pptr.dev/ Common Error Handling UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_TIMED_OUT (node:40940) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_TIMED_OUT at https://developer.chrome.com/ Network problem, make sure the target address can be accessed. This article is transferred from https://www.wujingquan.com/posts/cab35e09.html This site is only for collection, and the copyright belongs to the original author.

Nuxt 3

Nuxt3 + vant https://vant-contrib.gitee.io/vant/#/zh-CN/quickstart#zai-kuang-jia-zhong-shi-yong https://github.com/vant-ui/vant-demo/tree/master/vant/nuxt3 This article is transferred from https://www.wujingquan.com/posts/6285a84b.html This site is only for collection, and the copyright belongs to the original author.

The Cesium map server cannot connect to the downgrade solution

const viewer = new Cesium.Viewer()const imageryLayers = viewer.imageryLayers;const provider = new Cesium.SuperMapImageryProvider({ url: ”,})Cesium.when(provider.readyPromise,(res) => { console.log(‘provider.readyPromise success’, res) this.$emit(‘mapServerConnect’, true)}, (err) => { console.error(‘provider.readyPromise error’, err) this.$emit(‘mapServerConnect’, false)}) This article is transferred from https://www.wujingquan.com/posts/6012cd61.html This site is only for collection, and the copyright belongs to the original author.

Docker time zone settings

This article is transferred from https://www.wujingquan.com/posts/c5a6cda8.html This site is only for collection, and the copyright belongs to the original author.