Guide to resolving file permission issues in Synology's Webtop container for improved system security and efficiency.... [read more]
Unveiling and addressing React SSR and Hydration errors #418 and #423 through a transition from `hydrateRoot` to `hydrate`.... [read more]
奔图打印机的驱动兼容非常糟糕,macOS 不能自动识别,需要去官网下载驱动套件才能使用。 安装完驱动以后会有一个USBMonitor的后台进程会开机自动启动,且容易内存泄漏,导致系统卡顿。非常恶心人。 如果要完全卸载奔图打印机驱动,操作如下: 1. 卸载设备 1.1 进入/Lib... [read more]
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 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 是一个分布式版本控制系统,主要用于跟踪文件(尤其是代码)的更改。使用 Git,你可以轻松地保存代码的不同版本,合并多人的更改,并且回退到旧版本,如果新版本出现问题。... [read more]
A guide to converting .ckpt files to .safetensors for enhanced security and integrity of your tensor data.... [read more]
A comprehensive guide to photo backup on Synology, covering Synology Photos, Photo Station, and the Synology Drive Client.... [read more]
A pragmatic solution to the challenge of dynamic routing in single page applications (SPAs) when compiled to static files.... [read more]
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]
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]
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]
Server-side rendering and hydration can be used to offer a complete single page application experience.... [read more]
答:不能。... [read more]
A step-by-step guide on personalizing the themes of Ant Design v5 and Umi Max.... [read more]
Learn how to use n for Node.js version management and how it compares to nvm.... [read more]
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 访问,特别是针对 GitHub 仓库中的发布文件和原始文件。... [read more]
urllib3 was installed by both apt and pip.... [read more]
Check the size of node_modules in your workspace... [read more]
学习如何为 ChatGPT 和其他语言模型编写有效的提示词。... [read more]
Learn how to write effective prompts for ChatGPT and other language models.... [read more]
SONY 将于2023年9月6日起调整 PlayStation Plus 会员年费订阅价格,涨价幅度最高达 35%。... [read more]
semianalysis 在其最新的报告中,深入探讨了 Google 的 Gemini 模型,以及它在与 OpenAI 的 GPT-4 竞争中的显著优势。... [read more]
OpenAI 最近宣布推出了 ChatGPT Enterprise,这是一项企业级的服务,提供了高级的安全和隐私保护、无限制的高速 GPT-4 访问、更长的上下文窗口以处理更长的输入,以及先进的数据分析能力、定制选项等等... [read more]
Google Chrome 的新用户界面,也就是 Google Chrome 刷新 2023,现已可供尝试!... [read more]
Google Chrome's new UI, aka Google Chrome Refresh 2023, is available to try out!... [read more]
Phind 的模型 CodeLlama-34B 和 CodeLlama-34B-Python 在 HumanEval 挑战中超越了 GPT-4,已在 Huggingface 平台发布。... [read more]
Introduction: Exhausting memory on your Ubuntu system can result in sluggish applications or even unexpected crashes. To maintain optimal pe... [read more]
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]
为了适配各种 GPT 第三方客户端,我们可以使用 Express.js 和 axios 来编写一个代理服务程序,以将 Azure OpenAI Service API 转换为与标准版 OpenAI Service API 兼容的格式,确保无缝集成。... [read more]
教你设置常用的 GPT 工具... [read more]
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]
Use the "mars-coord" library to effortlessly convert coordinates.... [read more]
使用“mars-coord”库轻松转换坐标。... [read more]
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]
探索 Stability AI 的 Stable Diffusion XL 1.0,一种文本到图像生成模型。本指南介绍如何通过 Stable Diffusion Web UI 使用该模型,包括生成和优化图像、了解模型流程以及优化图像大小。... [read more]
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的全新用户界面设计已经正式发布,这是一个基于用户反馈和深思熟虑的策略调整而做出的重大改变。这次的改变不仅仅是视觉上的调整,更是对用户体验的全面提升。让我们一起来看看这次更新都有哪些亮点。 首先,这次的更新是基于用户反馈和深思熟虑的策略调整而做出的。GitLa... [read more]
This error occurs when using an outdated cipher in NodeJS.... [read more]
Sam Alterman 在他的一篇博客文章中列出了他的13个成功秘诀。... [read more]
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]
This following script can be used on a Ubuntu server to install the latest version of Docker Compose from the binary. ... [read more]
LunarVim is a highly customizable, Lua-based Neovim configuration that provides a feature-rich programming environment with minimal setup, i... [read more]
美区 AppStore 充 iTunes 礼品卡来订阅 ChatGPT Plus。... [read more]
最近在测试GPT-4撰写营销文案能力的时候,找到了一篇标题为《在文案中使用心理学的 26 种绝妙方法(附示例)》的文章。我尝试抄了一个效应名词,然后找 Skype Bing 写了一篇介绍产品的营销文案,得到了一篇还不错的文章。 我使用的提示词是: 请使用心理学中的新奇效应理... [read more]
提示词: 请使用<模式>写一篇面向<受众>的营销文案。 AIDA AIDA是一种常用的市场营销和广告策略模型,它代表了一系列步骤,旨在引起消费者的兴趣并促使他们采取行动。AIDA的英文缩写代表以下四个阶段: Attention(引起注意):吸引消费者的注意力,让他们对产品... [read more]
Lemon Squeezy 是一个用于销售数字产品的电子商务平台。 费率 它的费率是每笔订单收取 0.5 美元加上总金额的 5%,另外可能还有一些额外的费用,例如: 国际交易(美国以外):+1.5% PayPal 交易:+1% 订阅支付:+0.5% 转出方式 Lemon Sq... [read more]
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 的经验... [read more]
这是一个Awesome Free ChatGPT 的拷贝... [read more]
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]
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,你可以使用键盘在 GitHub 上进行快速导航、搜索和运行命令。比如,你可以输入#来搜索 issues、pull requests 和 projects ;输入/来搜索文件,输入>来运行命令。 GitHub Comman... [read more]
您已超出当前配额,请检查您的计划和账单详情。... [read more]
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]
现在很多快递员会在未经过收件人同意的情况下就把快递放入丰巢,甚至不会通知收件人快递已经入柜。稍不留神,包裹就会滞留在丰巢,导致需要支付保管费。 如果你发现快递员未经你的同意就把快递放到丰巢里,且这导致了滞留费用,你可以采取以下几种方法应对: 1. 先礼后兵 首先,你可以联系快递员... [read more]
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]
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]
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]
If the value of ProFromDateRnagePicker isn't changed when you call form.setFieldValue({dateRange: [Moment, Moment]}). That might be because ... [read more]
现在已经是2023年6月了,但是 RackNerd 还在卖`Black Friday 2022`的特价VPS,不知道会不会直接卖到2023年的 Black Friday。... [read more]
Azure OpenAI Service provides access to OpenAI models like GPT and DALL-E on Microsoft Azure cloud with higher performance and availability.... [read more]
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]
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]
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]
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]
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]
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是一个很好用基于 GPT 浏览器翻译插件(也是桌面客户端),它可以用来翻译文本、润色语句、解释语法等。 它在支持 OpenAI 的 API的同时,也支持 Azure OpenAI Service。但是,它的 Azure OpenAI Servic... [read more]
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]
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]
先重启网络设置。... [read more]
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'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-ce以后,构建镜像时报错: ERROR: rpc error: code = Internal desc = header key "exclude-patterns" contains value with non-printable ASCII cha... [read more]
截至2023年3月8日,AUTOMATIC1111 提供19个采样器选择。它们包括: Euler a: 优点:快速且易于使用。 缺点:不如一些新型采样器精确。 Euler: 优点:比Euler a更精确。 缺点:比Euler a慢。 LMS: 优点:设计用于生成锐利且详细的图像... [read more]
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]
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 1.1包括14个模型(11个生产就绪的模型和3个实验性模型)。以下是这些模型及其简要描述的列表: Model Description control_v11p_sd15_canny 边缘检测。 control_v11p_sd15_mlsd ... [read more]
什么是 ChatGPT? ChatGPT 是一种基于人工智能技术的自然语言处理模型。它的名字中的 GPT 是“生成预训练模型”(Generative Pre-trained Transformer)的缩写。ChatGPT 是由 OpenAI 公司开发的,它能够自动学习人类语言的规... [read more]
My Stable Diffusion notes to created beauty image using chilloutmix... [read more]
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]
使用高质量的问题模型向AI助手提问有助于获得高质量的回答。这里有一些提问模型的例子: 4A 模型 Actor 指定角色:假设您是一名专业的健身教练。 Aim 明确目的:我想减肥。 Ask 提出请求:请为我制定详细的每周运动计划和饮食计划。 Addition... [read more]
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]
Microsoft 的 Azure 上已经推出 Azure OpenAI Service 试用,在 申请 到测试资格以后便可以部署私有的 OpenAI GPT-3.5 模型 API。同时还可以 申请 GPT-4 模型 的试用资格。 私有部署的好处显而易见,它稳定可靠速度快,最重要... [read more]
想充美区 iTunes/AppStore,但害怕淘宝买到黑卡被封号? 不用怕,有很多靠谱的地方可以买到正规的 iTunes Gift Card。 Apple 美国官网 从官网 Apple iTunes Gift Card 直接购买数字卡。 卡密会通过电子邮件发送给你,可能会有短暂... [read more]
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]
上不了ChatGPT?来看看这些好用的替代品吧!... [read more]
Can't access ChatGPT? Here's a collection of alternatives.... [read more]
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]
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]
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]
New Version FeathersJS V5 is out. FeathersJS now uses KoaJS as its default application core instead of ExpressJS, with some slight differenc... [read more]
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]
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]
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 SDK 时,运行 flutter doctor 时,在最后一步HTTP Host availability check is taking a long time...会变得很慢,最后报错:... [read more]
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]
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]
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]
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]
做个笔记记录一下生成AI女友的 prompt,供自己查找。 高清照片风格 Photo Realistic raw photo, photorealistic, masterpiece, best quality, hires, intricate details, reflect... [read more]
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]
./webui.sh --no-half --opt-split-attention-v1... [read more]
The chilloutmix model created by TASUKU2023 is highly popular for generating realistic and aesthetically pleasing images of Asian females. T... [read more]
由TASUKU2023创建的chilloutmix模型因生成亚洲女性的像逼真而美观而备受欢迎。 该模型本身并非免费商用。幸运的是,通过其配方,您可以创建自己的模型以避免许可问题。 实际上,chilloutmix模型是从几个其他模型合并而来的。 本文将向您展示如何借助Stable ... [read more]
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]
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 Web UI can actually do outpainting in img2img mode. CFG scale: 5 Denoising strength: 0.5... [read more]
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]
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]
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.0 之后,静态部署的配置发生了很多变化,这里记录一下。 import {defineConfig} from "umi"; const publicPathBase = '/news' export default defineConfig({ publi... [read more]
太长不读 点击下面这个按钮 马上 进入 Google Colab 部署 Stable Diffusion Web UI Colab。 什么是 Stable Diffusion Web UI Colab Stable Diffusion 是 Stability AI 推出的一个基... [read more]
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]
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]
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]
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]
使用ProComponents中的ProFormCascader组件开发省、市、区级联选择器非常简单。 准备数据 首先我们需要准备省市区的数据,建议使用wecatch/china_regions这个仓库中的province.json、city.json、county.json三个... [read more]
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]
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]
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]
我在使用 Ant Design Pro 和 FeathersJS 开发一个支持企业微信二维码登录的应用。这个功能之前很顺利地完成过,而这次总是无法加载出二维码。 经过排查是 FeathersJS 使用的 helmet 库升级了安全策略,默认禁用了站外资源。 要顺利加载企业微信的二... [read more]
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]
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]
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]
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]
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]
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]
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]
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]
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]
SheetJS, aka the xlsx package for JavaScript, is probably the most commonly used sheet processing library. Compared to ExcelJS, it supports... [read more]
金蝶管易云ERP提供完善的数据接口,可供用于外部系统做数据对接。 获取密钥 调用C-ERP接口之前先要获取接口密钥: 登录金蝶管易云 点击左上角菜单 搜索:云ERP授权 密钥包含: appkey sessionkey secret 接口认证 参考金碟管易ERP openA... [read more]
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]
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]
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-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]
The shortcut is Command + Shift + . which toggles AppleShowAllFiles. defaults write com.apple.Finder AppleShowAllFiles TRUE Since shortcut ... [read more]
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 阿里云镜像 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb... [read more]
Nodejs 中读取到像\u6210以\u的开头字符串,这不是乱码,这是16进制Unicode编码。它很好处理。 Unescape Unicode 我们可以使用进制转换的方法,将16进制的中文转成可阅读的utf-8编码的中文。 const unescapeUnicode = (s... [read more]
Learn to run Node.js files directly, and make your Node.js program accessible globally as a command.... [read more]
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]
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]
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]
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]
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]
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]
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]
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]
腾讯企业邮箱可以为成员设置不同的别名,以让同一个成员可以使用多个邮箱地址收发邮件。 企业邮箱被合并到企业微信以后,不能再直接在成员的编辑页面设置邮箱别名(已失效),设置邮箱别名的功能被挪地方了: 登录企业微信而不是企业邮箱 点击协作 再点邮件中的邮箱管理 点击邮箱别名,则可为... [read more]
最近我们公司的机房在外网被使用cURL访问https链接的时候常有报错,但用浏览器访问网站又一切正常。 大概10次有9次会出现这个错误: SSL routines::wrong version number Unable to establish SSL connection ... [read more]
谷歌翻译是最后一个被中国屏蔽的 Google 服务。直到它最近被屏蔽,我才意识到以前用 Chrome 的翻译插件都是裸连。 现在比较烦人的是翻译插件不能简单地使用穿越技术。实在不行就先改Hosts吧,应该过不了多久就会进规则的。 1. 查找可访问的IP nslookup goog... [read more]
Fix Nginx SSL Permission Denied (0200100D) error by restoring SELinux Security Contexts of the certificate files.... [read more]
以下是我的阿里云推广链接,欢迎使用以下链接注册账号并领代金券! 你好我好大家好!😄 阿里云优惠券 最新活动 云服务器精选特惠 云小站入门级产品 爆款特惠 新人福利 CDN加速 飞天加速计划 阿里云热门产品 云服务器ECS 短信服务 云数据库RDS 云数据库MySQL SS... [read more]
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]
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]
Long Story Short const func = () => { console.log('Hello World'); } // Export for TypeScript module system export default func; // Exp... [read more]
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]
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]
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 image遇到网络困难,可以考虑使用第三方社区或云平台提供的Docker Registry Mirror来加速。 添加配置 在 Docker 的配置文件/etc/docker/daemon.json中添加以下配置: { "registry-mi... [read more]
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]
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当然也支持这个功能。 要打开这个功能,请从菜单中勾选视图-侧栏-导航。... [read more]
Alist 是一个可将多种网盘挂载成 WebDAV 的 Web 应用。 它可以使用 Docker 进行快速部署,并可对接 Aria Pro 组成一个网盘下载器。 特别适用于部署在 NAS 上用来下载网盘上的文件。 欢迎使用我的PikPak邀请链接和邀请码4796... [read more]
sudo killall -HUP mDNSResponder... [read more]
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]
在群晖里面跑Linux版115盘客户端可行!... [read more]
如果直接使用+86的手机号注册 Google 账户,可能会提示不支持该手机号。 但是很奇怪,如果把 Chrome 浏览器里面的中文语言删除,只留英语,就可以了。 打开 Chrome 的设置:chrome://settings。 左侧找到语言。 找到首选语言,删除英语以外语言。 ... [read more]
给 GitHub 绑定+86的手机号时会发现Country code里直接没有这个选项。 但你仍然可以通过手动添加下拉选项的方法来添加+86的手机号。 鼠标右键点击Country code,选择审查元素,以打开浏览器的控制台定位到该控件。 找到<select>节点,鼠标右键点击... [read more]
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 实例 设置域名反向代理 配置 gitlab-runner 实自动化流水线 配置备份与恢复 配置要求 目前版本的 gitlab-ce 需要 4-6GB 的 RAM 来运行,建议配... [read more]
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]
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]
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]
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]
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]
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 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]
Everything should be set to utf8mb4 NodeJS MySQL Connection Pool Charset { "charset": "utf8mb4" } MySQL Table Character Set CREATE DATABA... [read more]
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 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]
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]
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]
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]
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]
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]
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]
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]
find /path/to/source -type f -name '*.txt' -exec cat {} + > merged.txt... [read more]
上网冲浪 注意安全 风险自负 为什么 ChatGPT 上不去? 因为上网冲浪有时候会需要用上一些黑科技,这里做个简单的整理,供我自己查阅。你怎么使用与我无关。 🛬 远端服务 用这些工具之前需要有自己的远端服务来配合,否则会行不通。 JMS 服务 5.2... [read more]
穿越分三步: 租车 获取车票 上车... [read more]
自觉上网技术已经很好了,于是买来一台 Chromecast with Google TV 玩,结果激活的时候死活连不上 WiFi。 要解决 Google 的问题还得用 Google,果然查到事有蹊跷。 Google 的设备在初次连接 WiFi 的时候会去访问 ntp 服务器较对时... [read more]
Microsoft Store / 微软商店 无法加载,大概率是网络问题,因此可以尝试使用以下操作来重置一下网络设置: 在PowerShell中运行netsh winsock reset 关闭系统代理 修改DNS... [read more]
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]
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]
编辑配置文件 sudo vim /etc/apt/apt.conf.d/proxy.conf 写入配置 Acquire::http::Proxy "http://user:password@proxy.server:port/"; Acquire::https::Proxy ... [read more]
My Error While following Ubuntu installation guide of WineHQ, I encountered the following error at adding the repository key: invalid key... [read more]
长途跋涉去西方取 package 总是路途艰难,淘宝技术部开发了 cnpmjs.org 和 cnpm 这两个项目来克服这些人为的困难。 cnpmjs.org cnpmjs.org是一个基于nodejs开发、供企业/团队使用的私有npm registry,它同时也可以中继缓存np... [read more]
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]
我在Snap Store中安装了vscode,但是发现无法使用ibus-rime进行中文输入。 Google 了一会儿以后,看到有 blog post 提到从Snap Store中安装的vscode确实存在无法输入中文的问题,通过微软源在apt中安装可以解决这个问题。 wget ... [read more]
A step-by-step guide on how to mount Synology shared folders on Ubuntu using cifs-utils.... [read more]
ibus-rime 通过 ibus-rime 可以在 Ubuntu 上安装拼音五笔混合输入方案。 东风破 安装好ibus-rime之后,可以通 东风破 来安装 rime 的wubi和pinyin-simp 两个输入方案。 配置 ibus-rime 然后通过编辑~/.config/... [read more]
Check Vim Version Check if register is available for your version of vim: vim --version | grep clipboard +clipboard - means it is availabl... [read more]
As I tried to start the libinput-gestures after installation: libinput-gestures-setup start It failed libinput-gestures failed to start as ... [read more]
Besides setting timezone fixed inside image, I'd prefer passing it from environment variables. Dockerfile: FROM ubuntu RUN apt-get update &... [read more]
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]
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]
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]
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]
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]
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 的路由系统中对布局 (routes based layout)有着良好地支持,你可以将页面共用的组件封装在 layouts 文件中,然后通过默认或者手动配置根据路由套用在不同的页面上。 布局文件 布局文件一般存在src/layouts文件夹中,默认布局文件为src/l... [read more]
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]
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/crontab 是 Linux 生态里最常用的定时任务工具,它在很多编程平台里都有实现。 如果只是偶尔用一次 cron,你并不需要熟练掌握它的配置规则。在 Google 里,我们能很容易地搜索到它的常用配置。 例如,我现在在 Google 里搜索 cron every ... [read more]
It's simple when you find the right package:compressing Install npm install compressing Unzip With Encoding const compressing = require('co... [read more]
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运行以后卡在某一步没有反应? 别慌,这是祖国特色,开全局吧。... [read more]
CMD pm2-docker /usr/src/app/pm2.json --interpreter babel-node... [read more]
version: '3.5' services: redis: container_name: redis image: redis command: redis-server --appendonly yes --requirepass $REDI... [read more]
使用 Webpack 打包字体文件的时候需要使用 file-loader 来处理打包文件,在 UmiJS 3 中可通过配置文件中的 chainWebpack 函数来自定义 Webpack 的配置。 当然首先你得先装上 file-loader npm install --sav... [read more]
最新有新的 WebApp 项目上线,发现在 Android 上打开速度很快,却在 iOS 上打开缓慢,调查下来发现是由于Let's Encrypt Authority X3证书的验证服务器域名被大防火墙认证了造成。 目前尝试下来是好的方案还是弃用Let's Encrypt Aut... [read more]
FlexBox .container{ display: flex; flex-direction: row; justify-content: center; // horizontal align-items: center; // vertica... [read more]
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 可用来在 PowerShell 中安装 Module。它和很多其他的包管理器一样,并没有原生的中国CDN,你在中国用起来一定很难受,所以用它的时候一定要站得高一点: Install-Module -Name oh-my-p... [read more]
macOS 和 Linux 上有令人羡慕的oh-my-zsh,它让开发者能在zsh定制炫酷的主题皮肤,在 Windows 上也有开发者开发出了Oh-My-Posh这个PowerShell的module,它配合posh-git使用时,也能对 PowerShell 的主题进行定制。 ... [read more]
安装 Docker 并配置阿里云加速 安装 docker-ce CentOS https://docs.docker.com/engine/install/centos/ 移除旧版本的 Docker sudo yum remove docker \ ... [read more]
在天朝安装 Docker 可能要过五关斩六将,最大的敌人还是网络。感谢阿里云提供了 Docker 的源。 安装 docker-ce CentOS https://docs.docker.com/engine/install/centos/ 移除旧版本的 Docker sudo y... [read more]
indentation basics press v to enter selection mode, then… indent indent by default configuration: > indent 4 spaces: 4 > unindent uninden... [read more]
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]
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]
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(Ubuntu操作系统)在使用快照或镜像重置/恢复之后,会出现无法访问网络的问题。外网无法ping通服务器,服务器内无法解析域名。 这是因为服务器的网卡配置被重置了。 修复 可在阿里云的ECS实例详情页面使用VNC方式远程连接服务器来重新配置网卡以修复网络。 重... [read more]
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]
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]
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]
A developer's guide to cutting and merging videos using FFmpeg.... [read more]
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 Instance Character Set and Collation Config via docker-compose File version: '3.5' services: mysql: image: mysql container... [read more]
Wappalyzer React Chrome Dev Extension Vue Chrome Dev Extension... [read more]
By modifying or replacing subtitle files, you can enjoy your HDR videos without any hitches.... [read more]
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]
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]
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]
AppID 与 AppSecret 开发 基本配置 AppID:获取 AppSecret:获取 IP白名单:填写 设置接口权限 开发 接口权限 功能服务 网页授权 网页授权获取用户基本信息 部署域名认证凭证到WebApp的public根目录 企业域名:部署 JS接口安全域名... [read more]
Evernote已被大墙认证 很久不用Evernote了,听闻最近国际版已被大墙认证,无法直连和同步。 别慌,飞机里面加条规则就行了。 找到user-rule.txt文件,添加以下内容即可。 ! Evernote Start www.evernote.com ! Evernote... [read more]
Ant Design Pro 的工程中内置一个npm run i18n-remove 的命令,能调用pro cli来完全移除i18n的功能。 但我们的需求通常是只移除不需要使用的Locale,而不是将i18n的功能完全移除,因为通过i18n的功能还可以实现文本的配置化,比如在打包... [read more]
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]
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镜像 在天朝开发Java怎么少得了使用阿里云的Maven镜像呢? buildscript { repositories { maven{ url 'https://maven.aliyun.com/reposit... [read more]
puppeteer 是一个 NodeJS 的 Chrome headless API,安装的时候会 bundle 一个Chromium。如果你很不幸身在大中华局域网内,可能无法顺利下载Chromium。 所幸官方提供了环境变量配置,可以设置一个镜像地址来下载Chromium。 配... [read more]
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]
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]
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工程中修改src/layouts/BasicLayout.jsx中的menuItemRender这个prop即可实现在移动模式下点击条目以后自动关闭菜单 // src/layouts/BasicLayout.jsx const BasicLayout... [read more]
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工程中修改src/layouts/BasicLayout.jsx中的logo和menuHeaderRender两个props即可实现icon的点击事件 // src/layouts/BasicLayout.jsx const BasicLayout ... [read more]
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 出了 always free 的服务,还送300刀试用金,于是上去刮了刮羊毛。 配置 1/8个OCPU 1GB RAM 46GB HDD 直连可注册 注册地址; 填写你的信息和要注册的区域,我选的菲尼克斯; 填写手机号,接... [read more]
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是我们团队的核心协作平台 在过去4年里,我们团队的整个软件开发流程(代码版本控制、开发任务管理、缺陷管理和自动化部署)都在私有部署的社区版 GitLab 上面进行,它是我们的核心协作平台。配合上 docker 和 cnpm 仓库,我们基本上实现了 JavaScript... [read more]
A closer look at React SSR and its benefits... [read more]
使用JWT作认证 我们部门最近正在开发的一个微信小程序将使用原有的一个项目的RESTful api,该Web Service使用JSONWebToken作认证。JWT的数据中包含一段名为payload的数据使用BASE64进行编码的payload数据,包含了一些可以在客户端中使用... [read more]
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]
前言 最近在做微信小程序开发,为已有的一个Web应用程序提供微信小程序客户端。这个Web应用程序基于FeathersJS 开发,提供RESTful API,因此也想在小程序共用大部分API。 微信小程序中的HTTP请求 微信小程序开发中使用wx.request(Object ob... [read more]
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]
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]
搬瓦工KiwiVM管理后台取消了一键黑科技 入了一个年付27.6刀的搬瓦工黑五特别折扣版VPS(2018 Black Friday Special V3 CN2),登录以后发现不再有一键黑科技,原因是搬瓦工自己推出了专门的黑科技上网服务。原先购买的版本,还可以在KiwiVM Co... [read more]
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]
前提 在开发一个编辑功能的页面时,我们经常需要异步加载页面和待编辑的数据对象; 如果表单控件先以空数据加载好控件再异步加载异步IO的数据对象,那么像Checkbox(from antd)这样的基于状态的图形控件则无法文本输入控件一样重新初始化值(defaultChecked);... [read more]
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]
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]
Extend your theme from .Dialog.Alert <style name="YOUR_THEME_NAME" parent="@style/Theme.AppCompat.Light.Dialog.Alert"> <!--your theme he... [read more]
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]
开发的时候经常遇到在命令行里访问GitHub和者某些篱笆外的资源不太方便的情况,于是写了一个简单的脚本来快捷实现命令行翻篱笆,原理很简单,就是套娃。 创建一个可执行文件作为命令使用 创建一个文件,保存到/usr/local/bin,这样之后它会被添加到path中,便可以在bas... [read more]
为什么要搭建博客? 博客这种互联网2.0时代早期的产物,早在社交网络、移动互联网兴起的时候就已经褪去热度。现在自媒体平台大行其道,自媒体人肯定会选择一个流量平台,而不是自己搭建一个难以吸引到读者的独立博客。 而我还是选择自己动手搭建一个独立博客,无外乎有这样一些原因: 有技术上的... [read more]
docker system prune 使用docker system prune命令是目前最便捷的清理方式 清理未被使用的containers、networks、images,可选清理volumes # 为防止数据丢失,该命令**默认不清理volumes** docker sy... [read more]
移动硬盘我大概有5、6个,容量加起来超过10TB。由于有两台电脑(一台坐着用、一台躺着用~),所以经常要插拔。我不是很喜欢Windows 的文件夹共享功能,尤其是Windows 10以后,时好时坏用着有脾气。 路由器是网件WNDR4300,买的时候听说功能很强大,路由器功能还行,... [read more]
PowerDVD是老牌的电影光盘播放器,功能强大,解码能力一流,还能播放蓝光菜单,十多年前看DVD的时候我就着迷这个播放器软件。那个时候的正版软件的售价和我的消费能力还有着深刻的矛盾,一直没能舍得买个正版,而现在PowerDVD 17 Ultra 在疯狂打折,只需要44.95刀,... [read more]
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]
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]
已经不记得我是先用上 Twitter 还是 Google Reader,更不记得是从 Twtter 了解道 Google Reader 还是从 Google Reader 认识 Twitter的。我能记得是,我一定是从 Google Reader 开始成为 Google 重度用户... [read more]
《攻壳机动队》是一部在视觉、听觉和思想上给人们带来了许多震撼的伟大科幻动画电影。《攻壳机动队2.0》,它不是一次复刻,它也不是一次重新剪辑,它是2.0,它是一次进化 。藉由现代先锋动画电影制作技术,将这部受限于赛璐璐时代技术的里程碑式科幻作品进行改造,使其伟大的想象力能够在13年... [read more]
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]
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]