惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
The Hacker News
The Hacker News
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
IT之家
IT之家
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
AI
AI
罗磊的独立博客
B
Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Check Point Blog
D
DataBreaches.Net
T
Threat Research - Cisco Blogs
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
MongoDB | Blog
MongoDB | Blog
P
Privacy & Cybersecurity Law Blog
Cisco Talos Blog
Cisco Talos Blog
P
Privacy International News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园_首页
I
Intezer
云风的 BLOG
云风的 BLOG
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
美团技术团队
Simon Willison's Weblog
Simon Willison's Weblog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
腾讯CDC
T
Troy Hunt's Blog
Know Your Adversary
Know Your Adversary
U
Unit 42

粥里有勺糖

分享一下最近 VibeCoding 的项目部署工具:Kite | 粥里有勺糖 个人作品 | 粥里有勺糖 分享一下笔者的 Mac 装机必备软件 | 粥里有勺糖 🚀 VitePress 插件开发计划 | 粥里有勺糖 视野修炼第129期 | 上一次古法编程是什么时候 | 粥里有勺糖 🧧 红包封面来了 | 粥里有勺糖 2025年度总结 | 粥里有勺糖 心得总结 | 粥里有勺糖 开发一个美观的 VitePress 图片预览插件 | 粥里有勺糖 心外“天花板”手术经历 | 粥里有勺糖 又双叒住院了 | 粥里有勺糖 视野修炼第128期 | Bun 被收购 | 粥里有勺糖 视野修炼第127期 | Valdi | 粥里有勺糖 视野修炼第126期 | TypeScript #1 | 粥里有勺糖 离开上海回家啦 | 粥里有勺糖 第三次到上海 | 粥里有勺糖 又生病住院了 | 粥里有勺糖 视野修炼第124期 | 终端艺术字 | 粥里有勺糖 视野修炼第123期 | 你在用Node几? | 粥里有勺糖 视野修炼第122期 | 发光图片制作 | 粥里有勺糖 用Trae做了个公众号小工具 | 粥里有勺糖 视野修炼第121期 | Rolldown-Vite | 粥里有勺糖 视野修炼第120期 | NoCode | 粥里有勺糖 视野修炼第119期 | 终端调色 | 粥里有勺糖
视野修炼第125期 | nano-banana | 粥里有勺糖
粥里有勺糖 · 2025-08-31 · via 粥里有勺糖

欢迎来到第 125 期的【视野修炼 - 技术周刊】,下面是本期的精选内容简介

近期因为身体原因,上机时间较少,码内容断断续续😋,断更了一段时间。

🔥强烈推荐 ​

1. nano-banana

这周超火的图片编辑模型,谷歌出品的 Gemini Flash,"直接替代 PS"。

可直接上 Google Gemini Web 段体验。

下面给2个案例和提示词(来源于 X 上大佬 @ZHO_ZHO_ZHO 分享)

  1. 桌面 3D 手办

md

Use the nano-banana model to create a 1/7 scale commercialized figure of thecharacter in the illustration, in a realistic style and environment. Place the figure on a computer desk, using a circular transparent acrylic base without any text.On the computer screen, display the ZBrush modeling process of the figure. Next to the computer screen, place a BANDAI-style toy packaging box printed with the original artwork.

  1. Cos 生成

md

Generate a highly detailed photo of a girl cosplaying this illustration, at Comiket. Exactly replicate the same pose, body posture, hand gestures, facial expression, and camera framing as in the original illustration. Keep the same angle, perspective, and composition, without any deviation

大家也可以参考文章 实测谷歌Nano Banana,探索更多玩法!

2. 现代 Nodejs 开发姿势

挑一些实用的点:

  1. 使用 ESM 替代CJS

  2. 导入内置模块使用 node: 前缀以区分第三方模块 ,如 node:fs

js

import { readFile } from 'node:fs/promises';
  1. 顶层 await

js

import { readFile } from 'node:fs/promises';
const config = JSON.parse(await readFile('config.json', 'utf8'));
  1. 使用内置 fetch 替代第三方外部 HTTP 请求库

js

const response = await fetch('https://api.example.com/data');
const data = await response.json();
  1. 使用 AbortController 终止请求

js

const controller = new AbortController();

setTimeout(() => controller.abort(), 10000);

try {
  const data = await fetch('https://slow-api.com/data', {
    signal: controller.signal
  });
  console.log('Data received:', data);
} catch (error) {
  if (error.name === 'AbortError') {
    console.log('Request was cancelled');
  } else {
    console.error('Unexpected error:', error);
  }
}
  1. 内置测试模块node:test

js

// test/math.test.js
import { test, describe } from 'node:test';
import assert from 'node:assert';
import { add, multiply } from '../math.js';

describe('Math functions', () => {
  test('adds numbers correctly', () => {
    assert.strictEqual(add(2, 3), 5);
  });
});

sh

# Run all tests with built-in runner
node --test

# Watch mode for development
node --test --watch

# Coverage reporting (Node.js 20+)
node --test --experimental-test-coverage
  1. 监听自动重启和环境管理

js

{
  "name": "modern-node-app",
  "type": "module",
  "engines": {
    "node": ">=20.0.0"
  },
  "scripts": {
    "dev": "node --watch --env-file=.env app.js",
    "test": "node --test --watch",
    "start": "node app.js"
  }
}
  1. 导入映射

这个吊,之前都没了解到👍🏻,完美替代 alias

package.json 中添加 imports 字段

json

{
  "imports": {
    "#config": "./src/config/index.js",
    "#utils/*": "./src/utils/*.js",
    "#db": "./src/database/connection.js"
  }
}

js

import config from '#config';
import { logger, validator } from '#utils/common';
import db from '#db';

3. PongHub - 开源服务监控平台 ​

基于 GitHub Action 基础能力,自动部署GitHub Pages和定时数据更新。

下面是笔者部署的自己的!

https://health.sugarat.top/

🔧开源工具&技术资讯 ​

4. SSR 渲染 Check工具

一个简单的工具,可帮助检查目标 URL 页面,哪部分内容是服务端渲染哪部分是CSR渲染。

5. difit - Diff CLI ​

GitHub风格本地 Diff 工具

6. image-js - 图像处理库 ​

支持在 Node.js 和浏览器中运行,用于调整大小、裁剪、过滤、颜色调整以及许多其他高级操作的库。

👍🏻比较高级

7. 免费HTTPS证书申请 - 90天 ​

收藏!

8. 图片转成像素画

9. 国内SVG Logo资源

10. 各种定价页的设计参考

收藏!迟早有一天会用上。

⭐️强力推荐关注 ​

周刊部分内容来源如下渠道,推荐大家关注。