Categories
Apple

Can Texture2D save images with transparent background? Can we use Texture2D with transparent background directly to achieve the effect of transparent image overlaying in Metal shade?

Texture2D can save images with a transparent background. In Texture2D, a separate alpha channel is typically used to describe the transparency of background pixels. In Metal’s fragment shader, colors and alpha values of each pixel can be obtained by sampling the texture, and they can be used for subsequent processing.

Categories
Apple iOS

In Metal Shader, how to treat a specific color in texture2d as transparent, for example, white?

In Metal Shader, you can replace the color you want to make transparent by comparing it with a literal color using the texture2d and its sampling coordinates passed to the fragment shader.

Categories
Apple iOS Mac

Comparison between AVCaptureMovieFileOutput and AVAssetWriter

AVCaptureMovieFileOutput and AVAssetWriter are both APIs for recording video on iOS / Mac devices, are both int AVFoundation, but they have some differences.

Categories
AI ChatGPT TinyStudio

How to manual download models for TinyStudio

from: https://tinystudio.ai/2023/06/03/11/

TinyStudio is a free, easy-to-use, AI-powered automatic subtitle generation Mac app. TinyStudio works with OpenAI’s open-source model called “Whisper.” And To implement the specific function, TinyStudio uses the open-source “whisper.cpp” from Georgi Gerganov. Therefore, to use it, you need to download the model files beforehand. You can either click the “Download” button when starting to generate subtitles for the first time, or you can manually download them yourself.

Categories
Apple

A Solution for Low Audio Volume on Mac Built-in Speakers

My Mac is a MacBook M1Max, and I have encountered a sporadic problem in the past few months. The headphone volume is expected, but the built-in speaker volume is very low, and it is entirely inaudible. After restarting the Mac, it will be completely back to normal.

Categories
AI ChatGPT

SEO: Using ChatGPT to do search keyword clustering analysis, methods, and examples

We can use the Google search console to find what words visitors are searching for to come to our website.

From Google’s search terms, we can see which of our content is better from the perspective of Google and the searcher. We can continue to create relevant content that reinforces Google’s understanding of which content we have more authority over, and we can better get more visits from Google.

Categories
AI ChatGPT

Using ChatGPT to helps you quickly and efficiently complete your writing tasks [ChatGPT Practical Guide Series]

Introduction to ChatGPT

ChatGPT is a pre-trained large language model developed by OpenAI that is capable of high-quality AI conversation. It can automatically generate reasonable responses based on context, and in many cases, the user may not be able to tell whether the response was given by a human or an AI.

Categories
Uncategorized

Product Type Identifier in download App Sales Report

I am making a simple code to help me download and analyze Apple app sales reports.

There is a field Product Type Identifier, but apple does not provide too many helpful documents. So I collect some article about this:

Categories
Apple iOS Mac

Four reasons why Apple finally build ARM Mac (M1)

Lately, Apple announced the M1 chip, releasing the M1, or Arm, versions of the three machines, the Macbook Air, Macbook PRO 13, and Mac mini. Apple called the M1 chip Apple Silicon.

In fact, as developers, we knew about this much earlier. Then we also got our hands on the DTK to test the compatibility of the ARM CPU for Macs and Mac OS and our own Mac software.

Categories
Apple iOS

What is LIDAR on Apple’s iPhone 12 flagship?

This year Apple’s iPhone 12 flagship model comes with LIDAR. Many people have actually heard of LIDAR, and Apple’s press conference also mentioned it, but I actually found that many people don’t understand what it’s all about.