avatar

ShīnChvën

Wants to Accomplish Wonders

avatar

ShinChven's Blog

Fixing File Permissions for Webtop on Synology: A Step-by-Step Guide
Thu Nov 09 2023

Guide to resolving file permission issues in Synology's Webtop container for improved system security and efficiency....  [read more]

React Uncaught Error: Minified React error #418 #423

Unveiling and addressing React SSR and Hydration errors #418 and #423 through a transition from `hydrateRoot` to `hydrate`....  [read more]

卸载 Pantum 奔图打印机驱动
Mon Oct 30 2023

奔图打印机的驱动兼容非常糟糕,macOS 不能自动识别,需要去官网下载驱动套件才能使用。 安装完驱动以后会有一个USBMonitor的后台进程会开机自动启动,且容易内存泄漏,导致系统卡顿。非常恶心人。 如果要完全卸载奔图打印机驱动,操作如下: 1. 卸载设备 1.1 进入/Lib...  [read more]

JavaScript OpenAI Client Notes
Sat Oct 28 2023

OpenAI offers a variety of APIs for natural language processing. Here are some notes on the JavaScript client for my own quick reference. In...  [read more]

Let's Encrypt or Commercial Certificates?
Sat Oct 28 2023

Let's Encrypt is a free, automated, and open certificate authority (CA), run for the public's benefit. It is a service provided by the Internet Security Research Group (ISRG)....  [read more]

Git 生态圈介绍
Fri Oct 27 2023

Git 是一个分布式版本控制系统,主要用于跟踪文件(尤其是代码)的更改。使用 Git,你可以轻松地保存代码的不同版本,合并多人的更改,并且回退到旧版本,如果新版本出现问题。...  [read more]

Transitioning to Safety: Converting .ckpt to .safetensors

A guide to converting .ckpt files to .safetensors for enhanced security and integrity of your tensor data....  [read more]

Preserving Memories: A Comprehensive Guide to Photo Backup on Synology

A comprehensive guide to photo backup on Synology, covering Synology Photos, Photo Station, and the Synology Drive Client....  [read more]

Bridging Dynamic Routing in Single Page Applications: A Server-Side Approach
Tue Oct 24 2023

A pragmatic solution to the challenge of dynamic routing in single page applications (SPAs) when compiled to static files....  [read more]

Unlocking Imaginative Frontiers: Introducing ChatGPT Plus and Enterprise with DALL-E 3
Fri Oct 20 2023

OpenAI recently unveiled a groundbreaking integration of DALL-E 3 into ChatGPT for its Plus and Enterprise users. This merger facilitates the creation of unique images from textual descriptions within a conversational interface, establishing a novel paradigm in visual creativity. Whether you are embarking on a website design venture, conceptualizing a business logo, or seeking visual aids for an academic endeavor, the synergistic power of ChatGPT and DALL-E 3 is poised to convert your textual vision into compelling visual narratives....  [read more]

Setting Up a Server to Convert Webpages into PDFs with WEB2PDF
Thu Oct 19 2023

In this blog post, we will walk you through the process of setting up a server using the WEB2PDF project which leverages Docker and Puppeteer for converting webpages into PDFs....  [read more]

18 Stellar Platforms for Finding Digital Nomad Jobs / Remote Work

In an era where digital reigns supreme, the traditional 9 to 5 job model is gradually becoming a relic of the past. Digital nomads are leadi...  [read more]

Enhancing Single Page Applications with Server-Side Rendering and Hydration

Server-side rendering and hydration can be used to offer a complete single page application experience....  [read more]

Tailoring Themes in Ant Design v5 with Umi Max
Mon Oct 09 2023

A step-by-step guide on personalizing the themes of Ant Design v5 and Umi Max....  [read more]

Harnessing the Power of n for Streamlined Node.js Version Management
Node.jsnnvm
Mon Oct 09 2023

Learn how to use n for Node.js version management and how it compares to nvm....  [read more]

Managing PNGInfo in Images Generated by Stable Diffusion Web UI

Explore techniques for effectively managing PNGInfo in images produced by Stable Diffusion Web UI. Dive into the intricacies of reading embedded metadata, maintaining data lineage post-edits, and a specialized Python tool to ensure metadata integrity. Perfect for users keen on optimizing their Stable Diffusion generation workflows....  [read more]

使用 Cloudflare Worker 加速 GitHub CDN 访问
Wed Sep 27 2023

本文介绍如何使用 Cloudflare Worker 来加速 GitHub CDN 访问,特别是针对 GitHub 仓库中的发布文件和原始文件。...  [read more]

Checking the Size of node_modules Directories in Your Workspace
Fri Sep 22 2023

Check the size of node_modules in your workspace...  [read more]

掌握 ChatGPT 和 LLM 的提示词工程技巧
Mon Sep 11 2023

学习如何为 ChatGPT 和其他语言模型编写有效的提示词。...  [read more]

Mastering Prompt Engineering for ChatGPT and LLMs
Mon Sep 11 2023

Learn how to write effective prompts for ChatGPT and other language models....  [read more]

PlayStation Plus 会员年费订阅涨价最多35%📈
Thu Aug 31 2023

SONY 将于2023年9月6日起调整 PlayStation Plus 会员年费订阅价格,涨价幅度最高达 35%。...  [read more]

Google Gemini:颠覆性的大语言模型,以5倍的优势击败 GPT-4
Wed Aug 30 2023

semianalysis 在其最新的报告中,深入探讨了 Google 的 Gemini 模型,以及它在与 OpenAI 的 GPT-4 竞争中的显著优势。...  [read more]

OpenAI 推出强大的 ChatGPT Enterprise 企业服务
Tue Aug 29 2023

OpenAI 最近宣布推出了 ChatGPT Enterprise,这是一项企业级的服务,提供了高级的安全和隐私保护、无限制的高速 GPT-4 访问、更长的上下文窗口以处理更长的输入,以及先进的数据分析能力、定制选项等等...  [read more]

探索 Google Chrome 刷新 2023:启用新 Google Chrome 用户界面的指南
Mon Aug 28 2023

Google Chrome 的新用户界面,也就是 Google Chrome 刷新 2023,现已可供尝试!...  [read more]

Exploring Google Chrome Refresh 2023: Guide to Enabling New Google Chrome's New UI
Mon Aug 28 2023

Google Chrome's new UI, aka Google Chrome Refresh 2023, is available to try out!...  [read more]

Phind 以细调版 CodeLlama-34B 赢得人类评估挑战,超越 GPT-4
Sun Aug 27 2023

Phind 的模型 CodeLlama-34B 和 CodeLlama-34B-Python 在 HumanEval 挑战中超越了 GPT-4,已在 Huggingface 平台发布。...  [read more]

Comprehensive Guide to Setting Up a Swap File on Ubuntu: A Step-by-Step Approach
Fri Aug 18 2023

Introduction: Exhausting memory on your Ubuntu system can result in sluggish applications or even unexpected crashes. To maintain optimal pe...  [read more]

Azure OpenAI Service GPT Model Pricing
Thu Aug 17 2023

As of 2021-08-16, the pricing for the GPT models is as follows: Model Name Prompts Completion GPT-3.5-turbo 0.0015 0.002 GPT-3.5-tu...  [read more]

使用 Express 为 Azure OpenAI Service API 编写一个兼容原版 OpenAI Service API 的代理服务

为了适配各种 GPT 第三方客户端,我们可以使用 Express.js 和 axios 来编写一个代理服务程序,以将 Azure OpenAI Service API 转换为与标准版 OpenAI Service API 兼容的格式,确保无缝集成。...  [read more]

How to Write a Blog Post with ChatGPT: A Comprehensive Guide
Thu Aug 03 2023

Explore some innovative ways to write a blog post using ChatGPT, a cutting-edge AI tool that enhances creativity, efficiency, and adaptability in content creation....  [read more]

Mars Coordinate System: A Comprehensive Guide to China's Mapping Coordinates

Use the "mars-coord" library to effortlessly convert coordinates....  [read more]

Replacing Domain Names in URLs within a MySQL Database Column

Learn how to modify domain names in URLs stored within a MySQL table using the REPLACE() function. This tutorial covers all steps, from understanding the function to implementing it, with emphasis on precautionary measures like data backup and verification....  [read more]

在 Stable Diffusion Web UI 中使用 Stable Diffusion XL 1.0 生成图像

探索 Stability AI 的 Stable Diffusion XL 1.0,一种文本到图像生成模型。本指南介绍如何通过 Stable Diffusion Web UI 使用该模型,包括生成和优化图像、了解模型流程以及优化图像大小。...  [read more]

Generate Image with Stable Diffusion XL 1.0 in Stable Diffusion Web UI

Explore Stability AI's Stable Diffusion XL 1.0, a text-to-image generation model. This guide covers using the model via the Stable Diffusion web UI, including generating and refining images, understanding the model pipeline, and optimizing image size....  [read more]

GitLab 16.1:全新的用户界面设计
Tue Jul 25 2023

GitLab 16.1的全新用户界面设计已经正式发布,这是一个基于用户反馈和深思熟虑的策略调整而做出的重大改变。这次的改变不仅仅是视觉上的调整,更是对用户体验的全面提升。让我们一起来看看这次更新都有哪些亮点。 首先,这次的更新是基于用户反馈和深思熟虑的策略调整而做出的。GitLa...  [read more]

Fixing error:0308010C:digital envelope routines::unsupported
Mon Jul 24 2023

This error occurs when using an outdated cipher in NodeJS....  [read more]

Sam Alterman 的13个成功秘诀
Mon Jul 24 2023

Sam Alterman 在他的一篇博客文章中列出了他的13个成功秘诀。...  [read more]

Fixing the GitLab RuntimeError: SMTP Configuration Settings in New GitLab Version
Mon Jul 24 2023

Learn how to quickly resolve the RuntimeError: gitlab_rails['smtp_tls'] and gitlab_rails['smtp_enable_starttls_auto'] are mutually exclusive error in the new GitLab version. This guide explains the simple steps to correctly configure your SMTP settings based on your server's configuration....  [read more]

Install Docker Compose from Binary
Thu Jul 20 2023

This following script can be used on a Ubuntu server to install the latest version of Docker Compose from the binary. ...  [read more]

Manage Plugins in LunarVim
Thu Jul 20 2023

LunarVim is a highly customizable, Lua-based Neovim configuration that provides a feature-rich programming environment with minimal setup, i...  [read more]

怎样开通订阅 ChatGPT Plus 会员
Tue Jul 18 2023

美区 AppStore 充 iTunes 礼品卡来订阅 ChatGPT Plus。...  [read more]

让 ChatGPT 使用心理学来写营销文案
Thu Jul 13 2023

最近在测试GPT-4撰写营销文案能力的时候,找到了一篇标题为《在文案中使用心理学的 26 种绝妙方法(附示例)》的文章。我尝试抄了一个效应名词,然后找 Skype Bing 写了一篇介绍产品的营销文案,得到了一篇还不错的文章。 我使用的提示词是: 请使用心理学中的新奇效应理...  [read more]

使用 ChatGPT 生产软文
Mon Jul 10 2023

提示词: 请使用<模式>写一篇面向<受众>的营销文案。 AIDA AIDA是一种常用的市场营销和广告策略模型,它代表了一系列步骤,旨在引起消费者的兴趣并促使他们采取行动。AIDA的英文缩写代表以下四个阶段: Attention(引起注意):吸引消费者的注意力,让他们对产品...  [read more]

Lemon Squeezy 数字产品销售支付平台
Wed Jul 05 2023

Lemon Squeezy 是一个用于销售数字产品的电子商务平台。 费率 它的费率是每笔订单收取 0.5 美元加上总金额的 5%,另外可能还有一些额外的费用,例如: 国际交易(美国以外):+1.5% PayPal 交易:+1% 订阅支付:+0.5% 转出方式 Lemon Sq...  [read more]

Measure the Screen Size Using react-responsive
Mon Jul 03 2023

react-responsive is a lightweight and straightforward package that enables you to do media queries by using the useMediaQuery hook. It helps...  [read more]

如何订阅 Twitter Blue
Sun Jul 02 2023

分享一下我订阅 Twitter Blue 的经验...  [read more]

第三方 ChatGPT 镜像
Fri Jun 30 2023

这是一个Awesome Free ChatGPT 的拷贝...  [read more]

Node Axios with a Proxy
Thu Jun 29 2023

Want to send http request via a proxy? Axios got you covered. import axios from 'axios'; const proxy = { protocol: 'http', host: '127.0...  [read more]

Is macOS Spotlight a Command Palette?
Thu Jun 22 2023

Yes, Spotlight can be considered a command palette. It is a system-wide search tool that allows you to find files, applications, and other i...  [read more]

GitHub 新版加入 Command Palette
Thu Jun 22 2023

GitHub 的新版加入了 Command Palette,你可以使用键盘在 GitHub 上进行快速导航、搜索和运行命令。比如,你可以输入#来搜索 issues、pull requests 和 projects ;输入/来搜索文件,输入>来运行命令。 GitHub Comman...  [read more]

OpenAI/ChatGPT 客户端报错:You exceeded your current quota, please check your plan and billing details.
Fri Jun 16 2023

您已超出当前配额,请检查您的计划和账单详情。...  [read more]

PageContainer Does Not Display Page Title and Watermark
Thu Jun 15 2023

There are acturally 2 PageContainer, the one used by Ant Design Pro is from @ant-design/pro-layout, not @ant-design/pro-components. If page ...  [read more]

快递员未经同意把包裹放到丰巢,产生了滞留保管费,怎么办?
Mon Jun 12 2023

现在很多快递员会在未经过收件人同意的情况下就把快递放入丰巢,甚至不会通知收件人快递已经入柜。稍不留神,包裹就会滞留在丰巢,导致需要支付保管费。 如果你发现快递员未经你的同意就把快递放到丰巢里,且这导致了滞留费用,你可以采取以下几种方法应对: 1. 先礼后兵 首先,你可以联系快递员...  [read more]

AntV F2 with React
Fri Jun 09 2023

F2 is a mobile-friendly, interactive and flexible charting library. It is dedicated to providing a simple, convenient and friendly data visualization solution for mobile phones....  [read more]

Online Image Optimizers
Imagejpegpngwebp
Thu Jun 08 2023

Compressing or cropping images is a common task for web developers. There are many free online tools to do so. Here are some of them: ilove...  [read more]

Geo Check In on the Browser
Thu Jun 08 2023

Browser provides location API to get the location of the user. So it is possible to do geo check-in in a web application. Here are some fund...  [read more]

Update value of ProFormDateRangePicker
Thu Jun 01 2023

If the value of ProFromDateRnagePicker isn't changed when you call form.setFieldValue({dateRange: [Moment, Moment]}). That might be because ...  [read more]

RackNerd 特价 SSD VPS $10.28/年起
Thu Jun 01 2023

现在已经是2023年6月了,但是 RackNerd 还在卖`Black Friday 2022`的特价VPS,不知道会不会直接卖到2023年的 Black Friday。...  [read more]

Convert Azure OpenAI Service API to OpenAI Service API

Azure OpenAI Service provides access to OpenAI models like GPT and DALL-E on Microsoft Azure cloud with higher performance and availability....  [read more]

Differences Between Null and Undefined in Node.js
Mon May 29 2023

In Node.js, null and undefined are both used to represent the absence of a value, but they have different meanings. undefined means that a v...  [read more]

Disable and Enable Spotlight to Rebuild Index on macOS
Mon May 29 2023

MDS is a Spotlight metadata server for macOS. It stores metadata on files and folders in a central database for Spotlight to efficiently sea...  [read more]

... Differs from Already Included ... Only in Casing
Sat May 27 2023

Got a warning in VS Code saying: ... Differs from Already Included ... Only in Casing This is caused by the framework I'm using, It actuall...  [read more]

How to Make VSCode Profile Default?
Thu May 25 2023

Export your profile settings to a file. Open the file and change the name field inside the profile json to Default. Import the profile, clic...  [read more]

How to Migrate Settings from VS Code to VS Code Insiders?
Thu May 25 2023

Answer given by Google Bard There are a few ways to migrate your VS Code settings to VS Code Insiders. Method 1: Use the Settings Sync ext...  [read more]

React Component Library With TypeScript
Tue May 23 2023

Here's a guide to create a React component library with TypeScript given by ChatGPT. To create a TypeScript React component library project...  [read more]

在 openai-translator 中配置 Azure OpenAI Service 的 API

openai-translator是一个很好用基于 GPT 浏览器翻译插件(也是桌面客户端),它可以用来翻译文本、润色语句、解释语法等。 它在支持 OpenAI 的 API的同时,也支持 Azure OpenAI Service。但是,它的 Azure OpenAI Servic...  [read more]

Backup Files on Google Colab with Cron Job
Sat May 20 2023

Google Colab is a great tool for machine learning. However, the virtual machine will be recycled once AFK for a while. If you don't save you...  [read more]

Intellij IDE Does Not Support Bundler Module Resolution Yet

I created a new UmiJS project today, getting a never seen error from Intellij IDEA. Property 'div' does not exist on type 'JSX.IntrinsicE...  [read more]

GitHub Copilot 不提示了
Mon May 08 2023

先重启网络设置。...  [read more]

Watermark Your Images from Command-line Interface
Mon May 08 2023

I wrote a bash script that can be run as a command to watermark image or images within the given directory using ImageMagick. #!/usr/bin/env...  [read more]

VSCode Launch Configuration for Node App
Mon May 08 2023

VSCode's debugging launch configurations are saved in ./vscode/launch.json. To add a launch configuration for a node app: click Run and D...  [read more]

Docker 报错:header key "exclude-patterns" contains value with non-printable ASCII characters
Sat May 06 2023

今天更新了docker-ce以后,构建镜像时报错: ERROR: rpc error: code = Internal desc = header key "exclude-patterns" contains value with non-printable ASCII cha...  [read more]

Stable Diffusion WebUI 中各个采样器的优点与缺点
Wed May 03 2023

截至2023年3月8日,AUTOMATIC1111 提供19个采样器选择。它们包括: Euler a: 优点:快速且易于使用。 缺点:不如一些新型采样器精确。 Euler: 优点:比Euler a更精确。 缺点:比Euler a慢。 LMS: 优点:设计用于生成锐利且详细的图像...  [read more]

Stable Diffusion Sampling Methods
Wed May 03 2023

As of March 8, 2023, there are 19 samplers available in AUTOMATIC1111. They are: Euler a: Strengths: Fast and easy to use. Weaknesses: Not ...  [read more]

What Does Each Model of ControlNet v1.1 Do?
Tue May 02 2023

ControlNet 1.1 includes 14 models (11 production-ready models and 3 experimental models). Here is a list of the models and their brief descr...  [read more]

ControlNet v1.1 的各个模型各有什么作用?
Tue May 02 2023

ControlNet 1.1包括14个模型(11个生产就绪的模型和3个实验性模型)。以下是这些模型及其简要描述的列表: Model Description control_v11p_sd15_canny 边缘检测。 control_v11p_sd15_mlsd ...  [read more]

使用 ChatGPT 学习语言的技巧
Tue May 02 2023

什么是 ChatGPT? ChatGPT 是一种基于人工智能技术的自然语言处理模型。它的名字中的 GPT 是“生成预训练模型”(Generative Pre-trained Transformer)的缩写。ChatGPT 是由 OpenAI 公司开发的,它能够自动学习人类语言的规...  [read more]

ChilloutMix Beauty Notes
Mon May 01 2023

My Stable Diffusion notes to created beauty image using chilloutmix...  [read more]

Manage auto start apps and services on macOS
Fri Apr 28 2023

There are two ways apps and services may start automatically on macOS: Apps in the user's login items list. Services and daemons in the lau...  [read more]

向 ChatGPT 提问的智慧
Wed Apr 26 2023

使用高质量的问题模型向AI助手提问有助于获得高质量的回答。这里有一些提问模型的例子: 4A 模型 Actor 指定角色:假设您是一名专业的健身教练。 Aim 明确目的:我想减肥。 Ask 提出请求:请为我制定详细的每周运动计划和饮食计划。 Addition...  [read more]

ChatGPT Prompt Models
Wed Apr 26 2023

4A Model Actor: Assuming you are a professional fitness coach Aim: I want to lose weight Ask: please create a detailed weekly exer...  [read more]

Azure OpenAI Service 注册申请与配置心得

Microsoft 的 Azure 上已经推出 Azure OpenAI Service 试用,在 申请 到测试资格以后便可以部署私有的 OpenAI GPT-3.5 模型 API。同时还可以 申请 GPT-4 模型 的试用资格。 私有部署的好处显而易见,它稳定可靠速度快,最重要...  [read more]

Apple 美区 iTunes 礼品卡购买攻略
Thu Apr 20 2023

想充美区 iTunes/AppStore,但害怕淘宝买到黑卡被封号? 不用怕,有很多靠谱的地方可以买到正规的 iTunes Gift Card。 Apple 美国官网 从官网 Apple iTunes Gift Card 直接购买数字卡。 卡密会通过电子邮件发送给你,可能会有短暂...  [read more]

How to Chat with Bing Chat on Google Chrome
Wed Apr 19 2023

According to Microsoft's marketing plan, Bing Chat is only available on Microsoft Edge and the Bing app, but I still want to use it with my ...  [read more]

聊天式AI助手推荐
Mon Apr 17 2023

上不了ChatGPT?来看看这些好用的替代品吧!...  [read more]

A Collection of Chat AI Assistants
Mon Apr 17 2023

Can't access ChatGPT? Here's a collection of alternatives....  [read more]

Generate High Resolution Image with Stable Diffusion WebUI

Stable Diffusion models are typically trained on 512x512 images. If you try to generate larger images of people, you may end up with two hea...  [read more]

Dolby Vision Playback on macOS
Sat Apr 15 2023

In short, I use Movist Pro, you can also use Infuse Pro if you have already bought it. Dolby Vision is commonly considered the best HDR for...  [read more]

Write Multiple lines with ChatGPT
Fri Apr 14 2023

With the uprising of Chat AI assistants like ChatGPT, we may find ourselves having many conversations with them every day. As our conversati...  [read more]

Koa Router with FeathersJS V5
Fri Apr 14 2023

New Version FeathersJS V5 is out. FeathersJS now uses KoaJS as its default application core instead of ExpressJS, with some slight differenc...  [read more]

Simple String Selector with Ant Design Mobile
Thu Apr 13 2023

Introduction Ant Design Mobile provides a Picker component to select a value from a list. However, it is not easy to use it to select a stri...  [read more]

initialValue Changed in Ant Design Form
Thu Apr 13 2023

Problem initialValue can take effect when the form is initialized, but it will not take effect when it is changed. I'm building a form that...  [read more]

Manage Custom CSS Properties in IntelliJ
Fri Apr 07 2023

I accidentally added some non-exist CSS properties to Intellij IDEA's custom CSS properties, making it unable to warn about the wrong CSS pr...  [read more]

修复 Flutter doctor 的 HTTP Host availability 问题(无需修改SDK源码)
Wed Apr 05 2023

如果你在东方墙国做软件开发,总会遇到很多人为制造的恶心问题。比如初次安装 Flutter SDK 时,运行 flutter doctor 时,在最后一步HTTP Host availability check is taking a long time...会变得很慢,最后报错:...  [read more]

Proxy Config for Git
Fri Mar 31 2023

Accessing GitHub becoming harder in less developed country these days, you might need a proxy to do that. Here is how to configure proxy for...  [read more]

Dockerized Puppeteer PDF Printer
Fri Mar 31 2023

Puppeteer provides solution to print PDF from web page. However, it requires a lot of dependencies to be installed. This post shows how to b...  [read more]

VSCode Guide: Navigating to CSS Module Definitions
Tue Mar 28 2023

Recently, I decided to transition from IDEA/WebStorm to VSCode. However, I stumbled upon a snag - the inability to navigate to the definitio...  [read more]

Pull GitLab Remote Backup Bash Script
Tue Mar 28 2023

GitLab's backup files are generated locally on the server by default, though there are a lot of remote backup provider, I still want to pull...  [read more]

Stable Diffusion Prompt Note
Fri Mar 24 2023

做个笔记记录一下生成AI女友的 prompt,供自己查找。 高清照片风格 Photo Realistic raw photo, photorealistic, masterpiece, best quality, hires, intricate details, reflect...  [read more]

Launch stable diffusion web UI with VAE

Stability release a VAE model for generating images with more details. Here's how you can launch Stable Diffusion Web UI with VAE model. Com...  [read more]

stable-diffusion-webui-apple-silicon
Sun Mar 12 2023

./webui.sh --no-half --opt-split-attention-v1...  [read more]

chilled_re_generic: Merge Your Own Chilloutmix Model

The chilloutmix model created by TASUKU2023 is highly popular for generating realistic and aesthetically pleasing images of Asian females. T...  [read more]

chilled_re_generic: 炼成你自己 ChilloutMix 模型

由TASUKU2023创建的chilloutmix模型因生成亚洲女性的像逼真而美观而备受欢迎。 该模型本身并非免费商用。幸运的是,通过其配方,您可以创建自己的模型以避免许可问题。 实际上,chilloutmix模型是从几个其他模型合并而来的。 本文将向您展示如何借助Stable ...  [read more]

Rich Text with ExcelJS
Wed Mar 08 2023

ExcelJS is a library to create Excel files in Node.js and the browser. It supports rich text formatting, such as bold, italic, underline, fo...  [read more]

React Web Page as a PDF Template: Pagination, Headers, Footers and More
Tue Mar 07 2023

A web page can be printed to PDF file with browser or puppeteer, so it is quite possible to create a PDF template with React. CSS Print Medi...  [read more]

stable-diffusion-outpaint-in-img2img

Stable diffusion Web UI can actually do outpainting in img2img mode. CFG scale: 5 Denoising strength: 0.5...  [read more]

Basic Introduction to Use Models in Stable Diffusion WebUI for Beginners

Along with the main model, there are few kinds of models we can use in Stable Diffusion Web UI to generate images. Here I will introduce how...  [read more]

Open iTerm New Tab From Command Line
Thu Feb 23 2023

I created a bash script to open a new tab in iTerm from the command line so I can open iTerm in other terminal simulators. #!/usr/bin/env ba...  [read more]

Hide Columns by Default with ProTable

ProComponents is a set of enterprise-class UI components based on Ant Design and React, it provides a lot of useful components and features ...  [read more]

静态部署 UmiJS 4
Mon Feb 20 2023

UmiJS 4.0 之后,静态部署的配置发生了很多变化,这里记录一下。 import {defineConfig} from "umi"; const publicPathBase = '/news' export default defineConfig({ publi...  [read more]

如何在 Google Colab 上部署 Stable Diffusion Web UI Colab

太长不读 点击下面这个按钮 马上 进入 Google Colab 部署 Stable Diffusion Web UI Colab。 什么是 Stable Diffusion Web UI Colab Stable Diffusion 是 Stability AI 推出的一个基...  [read more]

Introduction to Stable Diffusion Web UI Colab v2.0 for Beginners

Stable Diffusion Web UI Colab is a fork project to deploy AUTOMATIC1111's Stable Diffusion web UI on Google Colab. Colab provides virtual ma...  [read more]

Store Float in MySQL
Tue Jan 17 2023

Storing a float number in MySQL, you must specify the column's precision and scale. CREATE TABLE `test` ( `id` int(11) NOT NULL AUTO_INCRE...  [read more]

How to Play Dolby Vision Video
Mon Jan 16 2023

Dolby Vision is commonly known as the best standard for HDR. But it is not so commonly accepted by media players on your computer or mobile ...  [read more]

Security Configurations in Helmet
Tue Jan 10 2023

Helmet is a middleware to secure Express apps by setting various HTTP headers. These security policy headers will affect web pages the expr...  [read more]

使用 Ant Design ProComponents 开发表单省市区选择器
Mon Jan 09 2023

使用ProComponents中的ProFormCascader组件开发省、市、区级联选择器非常简单。 准备数据 首先我们需要准备省市区的数据,建议使用wecatch/china_regions这个仓库中的province.json、city.json、county.json三个...  [read more]

Node.js Essentials
Fri Jan 06 2023

Unlock the full potential of server-side JavaScript with our in-depth exploration of Node.js. Learn about its event-driven architecture, real-time applications, and microservices, and discover how to harness the power of Node.js for your development projects....  [read more]

Sign Git Revision to Builds to Track Down Issues
git
Wed Jan 04 2023

Write a build script to sign the git revision to the build. This way, you can track down the exact git revision that the build is based on....  [read more]

Press Home or End Button to Navigate to the Beginning or End of Line in zsh
zsh
Wed Jan 04 2023

I've been using zsh with starship prompt for a while. One small pain is that home and end button doesn't navigate the cursor to the beginnin...  [read more]

解决 Node 应用接入企业微信登录不显示二维码的问题

我在使用 Ant Design Pro 和 FeathersJS 开发一个支持企业微信二维码登录的应用。这个功能之前很顺利地完成过,而这次总是无法加载出二维码。 经过排查是 FeathersJS 使用的 helmet 库升级了安全策略,默认禁用了站外资源。 要顺利加载企业微信的二...  [read more]

Allow Everything in Page Content Security Policy
Fri Dec 30 2022

Content got blocked by Content-Security-Policy? No problem, just allow everything. And of course, this is really a bad practice. <meta http-...  [read more]

Read Video Info with FFprobe
Thu Dec 29 2022

FFprobe is a tool bundled with FFmpeg to read video info. Basic Usage ffprobe input.mp4 This command returns data in plain text. Data Forma...  [read more]

Emit and Listen to Socket.IO Events in FeathersJS
Mon Dec 12 2022

FeatherJS uses Socket.IO to build real-time applications. With it, we can push messages from server side to client side. Events for RESTful...  [read more]

Compress Image with FFmpeg
Mon Dec 05 2022

FFmpeg is a powerful tool to process video and audio files. It can also be used to compress images. Compress JPEG FFmpeg uses mjpeg as the ...  [read more]

Remove Gray Filter from Web Page
CSS
Thu Dec 01 2022

Everytime when some important person deceases, most websites put on a gray filter to mourn. Since it is a CSS trick, the filter can be remov...  [read more]

Awesome Clouds
Thu Dec 01 2022

Here's a list of awesome clouds I've ever used: Bandwagonhost recurring discount code:BWH3HYATVBJW - 6.58% BWHNCXNVXV - 6.81% Order VPS De...  [read more]

Restore do-release-upgrade Status
Thu Dec 01 2022

I accidentally interrupted an Ubuntu release upgrade, but the system status wasn't restored to the state before upgrading: it uses a sources...  [read more]

NodeJS Docx Templater
Tue Nov 29 2022

docxtemplater is a library to generate docx files from a docx template with {tag}, it is written in TypeScript. The open source version supp...  [read more]

Remove Duplicate Entries Using KnexJS
Fri Nov 25 2022

I accidentally created duplicate entries in my database, so I wrote a function to remove them. The MySQl database connector I use frequently...  [read more]

Process Spreadsheet Data with SheetJS
Tue Nov 22 2022

SheetJS, aka the xlsx package for JavaScript, is probably the most commonly used sheet processing library. Compared to ExcelJS, it supports...  [read more]

使用 NodeJS 调用金蝶管易云 C-ERP 的 openAPI
Fri Nov 18 2022

金蝶管易云ERP提供完善的数据接口,可供用于外部系统做数据对接。 获取密钥 调用C-ERP接口之前先要获取接口密钥: 登录金蝶管易云 点击左上角菜单 搜索:云ERP授权 密钥包含: appkey sessionkey secret 接口认证 参考金碟管易ERP openA...  [read more]

Reset Form Fields in Shared Ant Design Modal Form
Thu Nov 17 2022

I use shared ModelForm in my project for a selected target in multiple rows of data to keep good page rendering performance. But a shared Mo...  [read more]

Read Large XLSX File with xlsx-extract
Tue Nov 15 2022

Excel file can be large, reading or opening a large xlsx file consumes a large amount of memory, it can be slow, and it may also cause Out o...  [read more]

Create a Spreadsheet with JSON Data Using ExcelJS
Tue Nov 15 2022

ExcelJS is a great JavaScript library to read, manipulate and write spreadsheet data and styles to XLSX and JSON. I've used it multiple time...  [read more]

Auto Column Width with ExcelJS
Mon Nov 14 2022

Auto-fit column width with ExcelJS is easy, but it consumes a lot of time if your dataset is large. import ExcelJS, {Worksheet} from "excelj...  [read more]

Show Hidden Files in Finder
Mon Nov 14 2022

The shortcut is Command + Shift + . which toggles AppleShowAllFiles. defaults write com.apple.Finder AppleShowAllFiles TRUE Since shortcut ...  [read more]

Syntax Highlight Code in Markdown Posts
Wed Nov 09 2022

I wrote this TypeScript full stack blogging web app for myself serving posts written in Markdown. As a programmer, I write a lot of code in ...  [read more]

Ubuntu Jammy 22.04 源镜像
Mon Nov 07 2022

Ubuntu Jammy 22.04 阿里云镜像 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb...  [read more]

Node.js 处理16进制 Unicode 中文字符串
Wed Nov 02 2022

Nodejs 中读取到像\u6210以\u的开头字符串,这不是乱码,这是16进制Unicode编码。它很好处理。 Unescape Unicode 我们可以使用进制转换的方法,将16进制的中文转成可阅读的utf-8编码的中文。 const unescapeUnicode = (s...  [read more]

Create a CLI with Node.js

Learn to run Node.js files directly, and make your Node.js program accessible globally as a command....  [read more]

Fix MP4 Video for Final Cut Pro
Fri Oct 28 2022

Sometimes mp4 video might not be compatible with Final Cut Pro, that's because mp4 is just a container format, it's just the codec used insi...  [read more]

Fix FFmpeg Library Not Loaded: dyld
Fri Oct 28 2022

Just got macOS upgraded to Ventura and found that FFmpeg is not working and throwing the following error: dyld[54425]: Library not loaded: /...  [read more]

How to Import HEVC Video to Final Cut Pro
Fri Oct 28 2022

For some reason, HEVC video with Codec ID hev1 is not supported by Final Cut Pro according this thread on Apple's support forum. Luckily, I ...  [read more]

Install .ipa from Desktop to Devices
ipaiOSiPadOS
Wed Oct 26 2022

iOS's application packages, aka .ipa file, can be installed from desktop to devices. 爱思助手/i4.cn from Shenzhen is one of the third party devi...  [read more]

Beautiful Commandline Tools for Storage Status
Tue Oct 25 2022

dust dust is a more intuitive version of du in rust. It provides a more human-readable output than the traditional du command. duf duf is a...  [read more]

Install Fish as Your Default Shell on macOS
Tue Oct 25 2022

fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. It offers features like syntax highlighti...  [read more]

Send File From ExpressJS Response
Wed Oct 19 2022

ExpressJS is a popular web framework for NodeJS. It's lightweight and easy to use. It provides a varies of ways of sending files to the clie...  [read more]

ERR_BLOCKED_BY_RESPONSE.NotSameOrigin Helmet

If you get ERR_BLOCKED_BY_RESPONSE.NotSameOrigin error when loading resource from an express app using Helmet@^5.0.0, because the Cross-Ori...  [read more]

腾讯企业邮箱设置别名
Sat Oct 15 2022

腾讯企业邮箱可以为成员设置不同的别名,以让同一个成员可以使用多个邮箱地址收发邮件。 企业邮箱被合并到企业微信以后,不能再直接在成员的编辑页面设置邮箱别名(已失效),设置邮箱别名的功能被挪地方了: 登录企业微信而不是企业邮箱 点击协作 再点邮件中的邮箱管理 点击邮箱别名,则可为...  [read more]

自建机房响应SSL错误:SSL routines::wrong version number Unable to establish SSL connection
Tue Oct 11 2022

最近我们公司的机房在外网被使用cURL访问https链接的时候常有报错,但用浏览器访问网站又一切正常。 大概10次有9次会出现这个错误: SSL routines::wrong version number Unable to establish SSL connection ...  [read more]

使用修改 hosts 的方法修复 Google 翻译的 Chrome 插件

谷歌翻译是最后一个被中国屏蔽的 Google 服务。直到它最近被屏蔽,我才意识到以前用 Chrome 的翻译插件都是裸连。 现在比较烦人的是翻译插件不能简单地使用穿越技术。实在不行就先改Hosts吧,应该过不了多久就会进规则的。 1. 查找可访问的IP nslookup goog...  [read more]

Fix Nginx SSL Permission Denied (0200100D) error
Sat Oct 08 2022

Fix Nginx SSL Permission Denied (0200100D) error by restoring SELinux Security Contexts of the certificate files....  [read more]

阿里云推广链接
Wed Oct 05 2022

以下是我的阿里云推广链接,欢迎使用以下链接注册账号并领代金券! 你好我好大家好!😄 阿里云优惠券 最新活动 云服务器精选特惠 云小站入门级产品 爆款特惠 新人福利 CDN加速 飞天加速计划 阿里云热门产品 云服务器ECS 短信服务 云数据库RDS 云数据库MySQL SS...  [read more]

Fix TS2307: Cannot find module '*.less'
Sat Oct 01 2022

TypeScript project reads module from declaration files, when the module is not defined or broken, tslint will throw an error like below: TS2...  [read more]

Open iOS Simulator from Command Line
Thu Sep 22 2022

The Simulator.app from xcode can be opened from command line without opening the xcode itself. Open Simulator To do so is simple, just run t...  [read more]

TypeScript Exports Module for Node.js
Thu Sep 01 2022

Long Story Short const func = () => { console.log('Hello World'); } // Export for TypeScript module system export default func; // Exp...  [read more]

Copy and Paste Real Text from OneNote
Tue Aug 23 2022

One of the most annoying features of OneNote is that you can't simply copy and paste the real text from it to an input control that receives...  [read more]

Get Switch to YouTube Premium Annual Plan from Monthly Plan
Sat Aug 20 2022

I don't know when the YouTube Premium annual plan launched, and I have never seen the option to switch from the monthly plan to the annual p...  [read more]

Declare Module for JavaScript Module in TypeScript
Fri Aug 19 2022

Some JavaScript code doesn't come with type declarations. In order to use them in TypeScript project, we can declare the module ourselves in...  [read more]

Docker 天朝加速镜像
Tue Aug 16 2022

如果你在天朝拉取 Docker image遇到网络困难,可以考虑使用第三方社区或云平台提供的Docker Registry Mirror来加速。 添加配置 在 Docker 的配置文件/etc/docker/daemon.json中添加以下配置: { "registry-mi...  [read more]

Use GitLab Artifact in Chained Pipelines
Mon Aug 15 2022

Build and Download Artifact GitLab CI/CD job can archive result as an artifact that can be accessed from API. Artifact GitLab Runner Config ...  [read more]

My Frequently Used FFmpeg Commands
Sun Aug 07 2022

Compress Video with Given Encoding Parameters ffmpeg -i input.mp4 -c:v libx264 -b:v 6000k -b:a 192k -vf scale=1920:1080 output.mp4 -i: Inp...  [read more]

Microsoft Word 在界面左侧打开文档结构导航
Fri Aug 05 2022

现在流行的文字编辑器都会默认在界面左侧打开一个文档结构导航,老牌强力的Microsoft Word当然也支持这个功能。 要打开这个功能,请从菜单中勾选视图-侧栏-导航。...  [read more]

使用 Docker Compose 快速部署 Alist 和 Aria2 Pro
Wed Aug 03 2022

Alist 是一个可将多种网盘挂载成 WebDAV 的 Web 应用。 它可以使用 Docker 进行快速部署,并可对接 Aria Pro 组成一个网盘下载器。 特别适用于部署在 NAS 上用来下载网盘上的文件。 欢迎使用我的PikPak邀请链接和邀请码4796...  [read more]

Flush DNS Cache On macOS
Wed Aug 03 2022

sudo killall -HUP mDNSResponder...  [read more]

Fullscreen Centered Loading Indicator in React Root DIV
CSSHTML
Thu Jun 16 2022

I am putting a spinning progress image in the center of the react root div as the loading progress indicator. <!DOCTYPE html> <html lang="en...  [read more]

使用 docker 在 Synology 中运行 Linux 115盘电脑版
Tue May 03 2022

在群晖里面跑Linux版115盘客户端可行!...  [read more]

如何使用 +86 的手机号注册 Google 账户
Tue Apr 19 2022

如果直接使用+86的手机号注册 Google 账户,可能会提示不支持该手机号。 但是很奇怪,如果把 Chrome 浏览器里面的中文语言删除,只留英语,就可以了。 打开 Chrome 的设置:chrome://settings。 左侧找到语言。 找到首选语言,删除英语以外语言。 ...  [read more]

如何给 GitHub 账户绑定 +86 的手机
Tue Mar 29 2022

给 GitHub 绑定+86的手机号时会发现Country code里直接没有这个选项。 但你仍然可以通过手动添加下拉选项的方法来添加+86的手机号。 鼠标右键点击Country code,选择审查元素,以打开浏览器的控制台定位到该控件。 找到<select>节点,鼠标右键点击...  [read more]

Run Multiple Bash Tasks Asynchronously to Save Time
Tue Mar 01 2022

I happen to have a ci job consisting of multiple tasks that requires a lot of time. If I run all the tasks synchronously, it will absolutely...  [read more]

使用 Docker Compose 私有部署 GitLab 超简单

在这篇文章里,我将介绍 怎样使用 docker-compose 来部署一个私有部署的 GitLab 实例 设置域名反向代理 配置 gitlab-runner 实自动化流水线 配置备份与恢复 配置要求 目前版本的 gitlab-ce 需要 4-6GB 的 RAM 来运行,建议配...  [read more]

Convert VP9 video to H264 Losslessly
Mon Feb 07 2022

VP9 serves as the standard codec for YouTube, even though it's not frequently found in video editing tools. If you have a video encoded with...  [read more]

How I Remastered Legacy of the Void Opening Cinematic to 8K Dolby Vision

I've always loved watching all those epic game cinematic, but few of them are in Ultra High-Definition. Luckily, as of 2022, it is possible ...  [read more]

Access Private NPM Packages in CI/CD Jobs
Fri Jan 14 2022

NPM packages in private NPM registries can be accessed via NPM_TOKEN authentication in CI/CD jobs. Here's the official guide on how to do it...  [read more]

Access GitLab Resources in GitLab Runner Jobs
Thu Jan 13 2022

In complex CI/CD scenarios, we may need to access other resources from GitLab that is out of current project/repository, like cloning anothe...  [read more]

Gitlab Runner Environment Variables
Thu Jan 13 2022

In GitLab Runner CI/CD jobs we may need to use some environment variables, there are a few pre-defined variables like ${CIJOBTOKEN} we can ...  [read more]

Anime4K on Apple Silicon M1 Max and macOS
Thu Jan 06 2022

Failed to Load Shaders I tried to setup Anime4K on my MacBook Pro with M1 Max according to the official guide, but it didn't work. By checki...  [read more]

Telegram Language Packs
Sun Jan 02 2022

Telegram has a built-in translation system, which allows users to translate the app into their own language. The way to install language pac...  [read more]

Nodejs Store Emoji in MySQL
Thu Dec 30 2021

Everything should be set to utf8mb4 NodeJS MySQL Connection Pool Charset { "charset": "utf8mb4" } MySQL Table Character Set CREATE DATABA...  [read more]

Microsoft 365 File Locations in macOS

User can configure the path where Microsoft 365 reads user's templates. The only to do so is to configure it in Microsoft Word's preference...  [read more]

iTerm2 Hacking Notes
Sat Dec 18 2021

iTerm2 has always been my favorite terminal. I use it for everything from my development work to regular usage. Here's my note to setup my i...  [read more]

GitHub Copilot Tab Completion Conflicts in VSCode

Seeing GitHub Copilot Suggestions But You Can't TAB to Complete Them? It is obviously a matter of keybinding conflicts. How to Fix Just ope...  [read more]

Build Docker Image Concurrently with BuildKit

Docker Pipeline Taking Too Much Time to Finish? I used to build docker image step by step, that's before I found out about docker's BuildKit...  [read more]

Windows Terminal Profile Icons
Sun Nov 28 2021

User can set icon for each Windows Terminal profile, a few default profile icons are bundled with the app, whereas there is no way to previe...  [read more]

Extracting Zip File Using Synology's File Station Getting Filenames in Wrong Charset
Thu Nov 25 2021

Synology's File Station, like many other Linux file extractors, does not auto-detect zip file's charset. Extracting files using default opt...  [read more]

The term 'ts-node.exe' is not recognized as a name of a cmdlet
Tue Nov 16 2021

I wrote a command line application in TypeScript which calls ts-node through shebang. #!/usr/bin/env ts-node /// my script ... It worked fi...  [read more]

JavaScript Combine Two Arrays
Mon Nov 08 2021

Array.prototype.push() The push() method adds one or more elements to the end of an array and returns the new length of the array. Syntax pu...  [read more]

Build Android Artifact from Command-line
Wed Oct 27 2021

Theory Everything you do that builds Android artifacts from Android Studio is based on Android command-line tools, so you can just build the...  [read more]

Merge Text Files Into A Single File
Wed Oct 27 2021

find /path/to/source -type f -name '*.txt' -exec cat {} + > merged.txt...  [read more]

🚀 黑科技工具箱 Awesome Tools
Sun Oct 24 2021

上网冲浪 注意安全 风险自负 为什么 ChatGPT 上不去? 因为上网冲浪有时候会需要用上一些黑科技,这里做个简单的整理,供我自己查阅。你怎么使用与我无关。 🛬 远端服务 用这些工具之前需要有自己的远端服务来配合,否则会行不通。 JMS 服务 5.2...  [read more]

穿越
Sat Oct 09 2021

穿越分三步: 租车 获取车票 上车...  [read more]

在天朝激活 Google 设备
Sun Sep 12 2021

自觉上网技术已经很好了,于是买来一台 Chromecast with Google TV 玩,结果激活的时候死活连不上 WiFi。 要解决 Google 的问题还得用 Google,果然查到事有蹊跷。 Google 的设备在初次连接 WiFi 的时候会去访问 ntp 服务器较对时...  [read more]

Windows 微软商店加载失败
Sun Aug 29 2021

Microsoft Store / 微软商店 无法加载,大概率是网络问题,因此可以尝试使用以下操作来重置一下网络设置: 在PowerShell中运行netsh winsock reset 关闭系统代理 修改DNS...  [read more]

Gitlab Runner Could Not Lock Git Config File
Thu Aug 26 2021

I just setup a new gitlab runner, but job keep failing with an error: error: could not lock config file /root/.gitconfig: Operation not p...  [read more]

Chromium's Black Window Issue in Wine
Tue Aug 24 2021

I am trying to run a Chromium based app in wine, and it shows only black screen. Thanks to this post, I found the solution. winetricks -q dx...  [read more]

给 APT 附魔
Tue Aug 24 2021

编辑配置文件 sudo vim /etc/apt/apt.conf.d/proxy.conf 写入配置 Acquire::http::Proxy "http://user:password@proxy.server:port/"; Acquire::https::Proxy ...  [read more]

Invalid Key Resource URL
Tue Aug 24 2021

My Error While following Ubuntu installation guide of WineHQ, I encountered the following error at adding the repository key: invalid key...  [read more]

cnpm 与 npm registry 管理
Thu Aug 19 2021

长途跋涉去西方取 package 总是路途艰难,淘宝技术部开发了 cnpmjs.org 和 cnpm 这两个项目来克服这些人为的困难。 cnpmjs.org cnpmjs.org是一个基于nodejs开发、供企业/团队使用的私有npm registry,它同时也可以中继缓存np...  [read more]

Fetch YouTube Video Info Via oEmbed
Wed Aug 18 2021

oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedde...  [read more]

在 Ubuntu 上使用 ibus-rime 在 vscode 中无法输入中文的问题
Fri Aug 13 2021

我在Snap Store中安装了vscode,但是发现无法使用ibus-rime进行中文输入。 Google 了一会儿以后,看到有 blog post 提到从Snap Store中安装的vscode确实存在无法输入中文的问题,通过微软源在apt中安装可以解决这个问题。 wget ...  [read more]

Access Synology Shared Folders from Ubuntu using Samba
Wed Aug 11 2021

A step-by-step guide on how to mount Synology shared folders on Ubuntu using cifs-utils....  [read more]

Ubuntu rime 五笔拼音混合输入
Mon Aug 09 2021

ibus-rime 通过 ibus-rime 可以在 Ubuntu 上安装拼音五笔混合输入方案。 东风破 安装好ibus-rime之后,可以通 东风破 来安装 rime 的wubi和pinyin-simp 两个输入方案。 配置 ibus-rime 然后通过编辑~/.config/...  [read more]

Vim Copy to Clipboard on Ubuntu
Mon Aug 09 2021

Check Vim Version Check if register is available for your version of vim: vim --version | grep clipboard +clipboard - means it is availabl...  [read more]

libinput-gestures failed to start as a desktop application

As I tried to start the libinput-gestures after installation: libinput-gestures-setup start It failed libinput-gestures failed to start as ...  [read more]

Container Timezone
Fri Aug 06 2021

Besides setting timezone fixed inside image, I'd prefer passing it from environment variables. Dockerfile: FROM ubuntu RUN apt-get update &...  [read more]

Call Docker in Container
Fri Aug 06 2021

Theory There is no way to actually run a docker daemon in a container, but we can pass docker cli and docker daemon through volume mirroring...  [read more]

Deploy A Sonatype Nexus Repository Manager

Sonatype Nexus Repository Manager is all-in-on registry server app. It can be deployed easily via docker, here's my cookbook. Deploy Sonatyp...  [read more]

Counting Commits by Author per Day with Git
Sat Jul 17 2021

Introduction In the world of Git, sometimes it becomes necessary to know the contributions of each author over a period of time. This can he...  [read more]

Intellij IDEA Project Structure Crushed
Tue Jun 15 2021

What if opening an existing project with Intellij IDEA went wrong? Try to delete the IDE's project/workspace configuration files and reopen ...  [read more]

How Do I Survive Windows
Mon Jun 14 2021

Settings up a developer's env on Windows is complicated, so I'm leaving this memo to remind myself of what to do when my windows ENV got cru...  [read more]

Create A Custom Ant Design Form Item Component
Sat Jun 05 2021

Ant Design offers a robust and user-friendly form system, packed with an array of components for developers to utilize. Moreover, it allows ...  [read more]

在 UmiJS 中使用布局
Fri May 14 2021

UmiJS 的路由系统中对布局 (routes based layout)有着良好地支持,你可以将页面共用的组件封装在 layouts 文件中,然后通过默认或者手动配置根据路由套用在不同的页面上。 布局文件 布局文件一般存在src/layouts文件夹中,默认布局文件为src/l...  [read more]

Install Nodejs from Nodesource
Wed May 12 2021

Nodejs is a cross-platform runtime, you can install it on almost every popular OS. However, node's version managed by each OS' package manag...  [read more]

Override Domain With Nginx
Sat Apr 24 2021

You can easily override domain with simple nginx configuration, full request uri to your old domain are forwarded to your new one. server { ...  [read more]

搜索 cron 配置的正确姿势
Mon Mar 08 2021

cron/crontab 是 Linux 生态里最常用的定时任务工具,它在很多编程平台里都有实现。 如果只是偶尔用一次 cron,你并不需要熟练掌握它的配置规则。在 Google 里,我们能很容易地搜索到它的常用配置。 例如,我现在在 Google 里搜索 cron every ...  [read more]

Handling Zip Entry Name's Encoding in Nodejs
Thu Jan 28 2021

It's simple when you find the right package:compressing Install npm install compressing Unzip With Encoding const compressing = require('co...  [read more]

Set Up Nexus - The All-In-One Repository Manager In Just A Millisec

Setting up a Sonatype Nexus Repository Manager via docker-compose is far easier than you can imagine. Make a docker-compose.yml file version...  [read more]

electron-gyp 运行以后卡在某一步没有反应?
Fri Jan 15 2021

electron-gyp运行以后卡在某一步没有反应? 别慌,这是祖国特色,开全局吧。...  [read more]

babel-node With pm2-docker
Thu Jan 07 2021

CMD pm2-docker /usr/src/app/pm2.json --interpreter babel-node...  [read more]

Setup Redis with docker-compose
Tue Jan 05 2021

version: '3.5' services: redis: container_name: redis image: redis command: redis-server --appendonly yes --requirepass $REDI...  [read more]

在 UmiJS 中打包与加载自定义字体
Wed Dec 30 2020

使用 Webpack 打包字体文件的时候需要使用 file-loader 来处理打包文件,在 UmiJS 3 中可通过配置文件中的 chainWebpack 函数来自定义 Webpack 的配置。 当然首先你得先装上 file-loader npm install --sav...  [read more]

Let's Encrypt Authority X3 证书在iOS上加载缓慢是因为某个特色

最新有新的 WebApp 项目上线,发现在 Android 上打开速度很快,却在 iOS 上打开缓慢,调查下来发现是由于Let's Encrypt Authority X3证书的验证服务器域名被大防火墙认证了造成。 目前尝试下来是好的方案还是弃用Let's Encrypt Aut...  [read more]

How Do You Center Things In A Div?
Wed Nov 25 2020

FlexBox .container{ display: flex; flex-direction: row; justify-content: center; // horizontal align-items: center; // vertica...  [read more]

Move Docker data-root
Mon Nov 23 2020

Do you ever feel files in /var/lib/docker are taking so much space of your system partition's storage? That's because the directory is stori...  [read more]

PowerShellGet Install-Mode 很慢怎么办?
Fri Nov 20 2020

PowerShellGet 的 Install-Mode 可用来在 PowerShell 中安装 Module。它和很多其他的包管理器一样,并没有原生的中国CDN,你在中国用起来一定很难受,所以用它的时候一定要站得高一点: Install-Module -Name oh-my-p...  [read more]

Powershell 美化教程

macOS 和 Linux 上有令人羡慕的oh-my-zsh,它让开发者能在zsh定制炫酷的主题皮肤,在 Windows 上也有开发者开发出了Oh-My-Posh这个PowerShell的module,它配合posh-git使用时,也能对 PowerShell 的主题进行定制。 ...  [read more]

Docker 配置阿里云加速
Thu Nov 12 2020

安装 Docker 并配置阿里云加速 安装 docker-ce CentOS https://docs.docker.com/engine/install/centos/ 移除旧版本的 Docker sudo yum remove docker \ ...  [read more]

在 CentOS 上 通过阿里云源 安装 Docker
Thu Nov 12 2020

在天朝安装 Docker 可能要过五关斩六将,最大的敌人还是网络。感谢阿里云提供了 Docker 的源。 安装 docker-ce CentOS https://docs.docker.com/engine/install/centos/ 移除旧版本的 Docker sudo y...  [read more]

Indentation And Format Code In Vim
Thu Nov 12 2020

indentation basics press v to enter selection mode, then… indent indent by default configuration: > indent 4 spaces: 4 > unindent uninden...  [read more]

How to Install Certbot with Nginx on Linux
Mon Nov 09 2020

Certbot is a handy command-line tool for Let's Encrypt, enabling you to set up and update SSL certificates effortlessly via straightforward ...  [read more]

Self-managed GitLab Cookbook

I've been maintaining self-managed GitLab instances for a few years. gitlab-ce is fully dockerized, you can easily deploy a GitLab container...  [read more]

Squash Your Commits
git
Mon Nov 09 2020

Do You Commit A Lot? When I work on a project, I used to commit every little progress, so that I can feel safe to move forward. But it makes...  [read more]

阿里云ECS通过快照恢复之后修复网卡
Sat Nov 07 2020

故障 阿里云ECS(Ubuntu操作系统)在使用快照或镜像重置/恢复之后,会出现无法访问网络的问题。外网无法ping通服务器,服务器内无法解析域名。 这是因为服务器的网卡配置被重置了。 修复 可在阿里云的ECS实例详情页面使用VNC方式远程连接服务器来重新配置网卡以修复网络。 重...  [read more]

MySQL Out of Sort Memory
Mon Sep 07 2020

Error "1038 Out of sort memory, consider increasing server sort buffer size If you encountered this error when sorting over a million rows ...  [read more]

Combine Your PDFs with Ease Using pdfunite
Fri Aug 28 2020

pdfunite is a handy command-line tool that allows you to merge PDFs directly on your macOS, Linux, or Windows Subsystem for Linux (WSL)....  [read more]

Magick
Wed Aug 19 2020

If you prefer command line tool, you don't need to find a online to for convert images. Magick is THE powerful tool you deserve. I'll collec...  [read more]

Cut and Merge Videos Using FFmpeg: A Developer's Guide
Tue Aug 18 2020

A developer's guide to cutting and merging videos using FFmpeg....  [read more]

How to install Hydrogen/Oxygen OS 11 Developer Preview

Your Data is Valuable Please make sure you had your data backup. There is a built-in backup app in OnePlus phone, see the official guide abo...  [read more]

MySQL Character Set And Collation Fast Note
Thu Jul 23 2020

MySQL Instance Character Set and Collation Config via docker-compose File version: '3.5' services: mysql: image: mysql container...  [read more]

Detect Webapp Frameworks
Fri Jul 03 2020

Wappalyzer React Chrome Dev Extension Vue Chrome Dev Extension...  [read more]

Resolving VLC Subtitle Display Issue During HDR Content Playback
Wed Jun 24 2020

By modifying or replacing subtitle files, you can enjoy your HDR videos without any hitches....  [read more]

Run Windows Terminal As Administrator From Commandline

Run Windows Terminal as Administrator by Using Hotkey In the old method I tried to geek it out by run Windows Terminal as Administrator from...  [read more]

Install Authy app to get Pornhub's 2-step authentication code and my thoughts on 2FA
Sat May 30 2020

I can't get any SMS code at PornHub's 2-step authentication since last week. I am not sure if they had any issue on sending sms overseas dur...  [read more]

Reset Password on WSL2
Thu May 21 2020

It is tricky and easy to reset password on WSL2. To do that, first of all, you need to set login as root by default: ubuntu config --default...  [read more]

在公众号后台配置 WebApp 接入
Sun May 10 2020

AppID 与 AppSecret 开发 基本配置 AppID:获取 AppSecret:获取 IP白名单:填写 设置接口权限 开发 接口权限 功能服务 网页授权 网页授权获取用户基本信息 部署域名认证凭证到WebApp的public根目录 企业域名:部署 JS接口安全域名...  [read more]

Note book across the world
Sun Mar 08 2020

Evernote已被大墙认证 很久不用Evernote了,听闻最近国际版已被大墙认证,无法直连和同步。 别慌,飞机里面加条规则就行了。 找到user-rule.txt文件,添加以下内容即可。 ! Evernote Start www.evernote.com ! Evernote...  [read more]

在 Ant Design Pro 工程中删除不用的国际化文件
Fri Feb 28 2020

Ant Design Pro 的工程中内置一个npm run i18n-remove 的命令,能调用pro cli来完全移除i18n的功能。 但我们的需求通常是只移除不需要使用的Locale,而不是将i18n的功能完全移除,因为通过i18n的功能还可以实现文本的配置化,比如在打包...  [read more]

Get Real Client IP In FeathersJS
Tue Feb 25 2020

IP Address In Request Headers Are Usually Set by Nginx Your Nginx reverse proxy config should be something like this: server { listen 80...  [read more]

How I Automated Android Packaging
Thu Jan 09 2020

Why not get automated in generating an apk? Though the official guide tells us how to generate our builds by clicking one and another menu o...  [read more]

阿里云的Maven镜像
Mon Jan 06 2020

更新 阿里云镜像站上线了! 阿里的Maven镜像 在天朝开发Java怎么少得了使用阿里云的Maven镜像呢? buildscript { repositories { maven{ url 'https://maven.aliyun.com/reposit...  [read more]

PUPPETEER_DOWNLOAD_HOST
Thu Jan 02 2020

puppeteer 是一个 NodeJS 的 Chrome headless API,安装的时候会 bundle 一个Chromium。如果你很不幸身在大中华局域网内,可能无法顺利下载Chromium。 所幸官方提供了环境变量配置,可以设置一个镜像地址来下载Chromium。 配...  [read more]

Privacy Policy
Wed Jan 01 2020

Effective Date: 2020-01-01 1. Introduction Welcome to ShinChven's Blog ("we," "us," or "our"). This Privacy Policy is designed to help you u...  [read more]

AirPods Pro is mostly working fine with Androids
Tue Dec 03 2019

What is working and what is not Tl;Dr Most functions are working when you use a pair of AirPods Pro with Android, but you still need an iOS ...  [read more]

Take All Persistable Uri Permissions At A Time If You Want Them To Last Over Reboot

If I don't get it wrong, declaring for the android.permission.WRITE_EXTERNAL_STORAGE permission is bundled with android.permission.READ_EXTE...  [read more]

@ant-design/pro-layout 移动模式下点击条目以后自动关闭菜单

在Ant Design Pro工程中修改src/layouts/BasicLayout.jsx中的menuItemRender这个prop即可实现在移动模式下点击条目以后自动关闭菜单 // src/layouts/BasicLayout.jsx const BasicLayout...  [read more]

Override Properties of a CSS Class
CSS
Sat Nov 16 2019

Third party components sometimes may just not fit in, we can override its perperties to fix it. .container { // My div to surround third par...  [read more]

@ant-design/pro-layout icon 点击事件

在Ant Design Pro工程中修改src/layouts/BasicLayout.jsx中的logo和menuHeaderRender两个props即可实现icon的点击事件 // src/layouts/BasicLayout.jsx const BasicLayout ...  [read more]

Better Screenshot Tools
Sat Nov 09 2019

Taking screenshots and marking them to explain situations on your screen are quite essential and common skills in online chat. macOS and Win...  [read more]

Oracle Cloud 的羊毛
Thu Sep 19 2019

免费的羊毛刮不刮? 听闻 Oracle Cloud 出了 always free 的服务,还送300刀试用金,于是上去刮了刮羊毛。 配置 1/8个OCPU 1GB RAM 46GB HDD 直连可注册 注册地址; 填写你的信息和要注册的区域,我选的菲尼克斯; 填写手机号,接...  [read more]

Bootstrap a GitLab pipeline in no time
Tue Sep 17 2019

Requirements A VPS or Linux machine with more than 4GB RAM; Docker and docker-compose installed; Linux OS; GitLab team officially stated t...  [read more]

基于 GitLab 实现 DevOps
Fri Aug 30 2019

GitLab是我们团队的核心协作平台 在过去4年里,我们团队的整个软件开发流程(代码版本控制、开发任务管理、缺陷管理和自动化部署)都在私有部署的社区版 GitLab 上面进行,它是我们的核心协作平台。配合上 docker 和 cnpm 仓库,我们基本上实现了 JavaScript...  [read more]

Unraveling React Server-Side Rendering (SSR)

A closer look at React SSR and its benefits...  [read more]

在微信小程序中解jwt.payload
Thu Jan 10 2019

使用JWT作认证 我们部门最近正在开发的一个微信小程序将使用原有的一个项目的RESTful api,该Web Service使用JSONWebToken作认证。JWT的数据中包含一段名为payload的数据使用BASE64进行编码的payload数据,包含了一些可以在客户端中使用...  [read more]

How to solve android download pending problem
Wed Jan 02 2019

There is a built-in Download Manager in Android which was used by many system components and apps. For example, Google Play Store uses it to...  [read more]

在微信小程序中使用FeathersJS的RESTful API

前言 最近在做微信小程序开发,为已有的一个Web应用程序提供微信小程序客户端。这个Web应用程序基于FeathersJS 开发,提供RESTful API,因此也想在小程序共用大部分API。 微信小程序中的HTTP请求 微信小程序开发中使用wx.request(Object ob...  [read more]

Understand Community
Sun Dec 09 2018

I didn't correctly understand the meaning of community until I took a close look at it. As far as I know, community is a new word in Chines...  [read more]

MySQL Schema Initialization Note

Initiate MySQL Database Setting up a MySQL database for a new project, you basically have three things to do: Create a database Create a st...  [read more]

搬瓦工火力全开
Fri Nov 30 2018

搬瓦工KiwiVM管理后台取消了一键黑科技 入了一个年付27.6刀的搬瓦工黑五特别折扣版VPS(2018 Black Friday Special V3 CN2),登录以后发现不再有一键黑科技,原因是搬瓦工自己推出了专门的黑科技上网服务。原先购买的版本,还可以在KiwiVM Co...  [read more]

Print Commands in Bash Script
Sat Nov 24 2018

We can transcript and run multiple commands in one single bash script file, but it won't print the command you wrote in script by default. ...  [read more]

在React中异步设置组件的默认值
Fri Nov 09 2018

前提 在开发一个编辑功能的页面时,我们经常需要异步加载页面和待编辑的数据对象; 如果表单控件先以空数据加载好控件再异步加载异步IO的数据对象,那么像Checkbox(from antd)这样的基于状态的图形控件则无法文本输入控件一样重新初始化值(defaultChecked);...  [read more]

Use Ant Design Checkbox with getFieldDecorator
Sat Nov 03 2018

Error Form.getFieldDecorator is an Ant Design Form validation tool, it is used to wrapped input components and handle value and value valida...  [read more]

Insert, Replace or Delete Element in a JavaScript Array with Array.prototype.splice() method
Mon Oct 29 2018

The splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place. Inser...  [read more]

Dialog activity matching parent's width
Sun Sep 23 2018

Extend your theme from .Dialog.Alert <style name="YOUR_THEME_NAME" parent="@style/Theme.AppCompat.Light.Dialog.Alert"> <!--your theme he...  [read more]

Quick proxy in bash
Sat Sep 22 2018

Sometimes we need to use proxy in bash, but it is boring and inconvenient for us config and clear proxy for bash everytime when we need to u...  [read more]

终端命令行如何穿越?
Sat Sep 22 2018

开发的时候经常遇到在命令行里访问GitHub和者某些篱笆外的资源不太方便的情况,于是写了一个简单的脚本来快捷实现命令行翻篱笆,原理很简单,就是套娃。 创建一个可执行文件作为命令使用 创建一个文件,保存到/usr/local/bin,这样之后它会被添加到path中,便可以在bas...  [read more]

用hexo重新搭建了博客
Mon Sep 17 2018

为什么要搭建博客? 博客这种互联网2.0时代早期的产物,早在社交网络、移动互联网兴起的时候就已经褪去热度。现在自媒体平台大行其道,自媒体人肯定会选择一个流量平台,而不是自己搭建一个难以吸引到读者的独立博客。 而我还是选择自己动手搭建一个独立博客,无外乎有这样一些原因: 有技术上的...  [read more]

如何为 Docker 扫地
Wed Jul 11 2018

docker system prune 使用docker system prune命令是目前最便捷的清理方式 清理未被使用的containers、networks、images,可选清理volumes # 为防止数据丢失,该命令**默认不清理volumes** docker sy...  [read more]

上手NAS
NAS
Sat Mar 17 2018

移动硬盘我大概有5、6个,容量加起来超过10TB。由于有两台电脑(一台坐着用、一台躺着用~),所以经常要插拔。我不是很喜欢Windows 的文件夹共享功能,尤其是Windows 10以后,时好时坏用着有脾气。 路由器是网件WNDR4300,买的时候听说功能很强大,路由器功能还行,...  [read more]

PowerDVD 17 Ultra 和蓝光区码
Thu Mar 15 2018

PowerDVD是老牌的电影光盘播放器,功能强大,解码能力一流,还能播放蓝光菜单,十多年前看DVD的时候我就着迷这个播放器软件。那个时候的正版软件的售价和我的消费能力还有着深刻的矛盾,一直没能舍得买个正版,而现在PowerDVD 17 Ultra 在疯狂打折,只需要44.95刀,...  [read more]

Notify Item Removed Safely
Mon May 22 2017

RecyclerView's adapter provides more powerful methods for developers to animate their list like you can easily run a remove animation on one...  [read more]

Setup An IP Whitelist With Nginx
Sat Mar 11 2017

Basic Configuration Define a common IP whitelist conf to be included Edit /etc/nginx/conf.d/shared/ipwhitelist.conf deny 192.168.1.1; ...  [read more]

Goodbye Google Reader
Sat May 04 2013

已经不记得我是先用上 Twitter 还是 Google Reader,更不记得是从 Twtter 了解道 Google Reader 还是从 Google Reader 认识 Twitter的。我能记得是,我一定是从 Google Reader 开始成为 Google 重度用户...  [read more]

攻壳机动队的进化预言
Fri Oct 22 2010

《攻壳机动队》是一部在视觉、听觉和思想上给人们带来了许多震撼的伟大科幻动画电影。《攻壳机动队2.0》,它不是一次复刻,它也不是一次重新剪辑,它是2.0,它是一次进化 。藉由现代先锋动画电影制作技术,将这部受限于赛璐璐时代技术的里程碑式科幻作品进行改造,使其伟大的想象力能够在13年...  [read more]

ShinChven
Sat Oct 27 2007

Hi there 👋 I am a full stack TypeScript/JavaScript web developer also build mobile apps. Below are the open source frameworks and tools I l...  [read more]

Donate Me - 打赏我 😍
Fri Oct 27 2000

Hi, I'm ShinChven the software engineer behind this blog. If you find my articles or other works useful, please consider donating to me. ...  [read more]