android compose datastore protobuf

摘要: android compose datastore protobuf project gradle alias(libs.plugins.jetbrains.kotlin.serialization) id("com.google.protobuf") version "0.9.6" apply f 阅读全文
posted @ 2026-03-09 22:10 少杨 阅读(0) 评论(0) 推荐(0)

java 分割字符保留分割符

摘要: java 分割字符保留分割符 String text = "Hello@World@This@Is@A@Java@Program"; String[] splits = text.split("((?<=@))"); toklin 使用 val text = "Hello@Wo。rld@This@I 阅读全文
posted @ 2026-03-07 17:28 少杨 阅读(3) 评论(0) 推荐(0)

ERROR: Failed building wheel for pygame

摘要: pip install pygame==2.6.0 -i "http://pypi.doubanio.com/simple/" --trusted-host pypi.doubanio.com note: This error originates from a subprocess, and is 阅读全文
posted @ 2026-03-05 11:50 少杨 阅读(4) 评论(0) 推荐(0)

android compose webView js交互

摘要: android compose webView js交互 android 调用javascript 代码:evaluateJavascript("document.title") { result -> println("document.title:$result")} AndroidView( 阅读全文
posted @ 2026-02-10 23:02 少杨 阅读(2) 评论(0) 推荐(0)

vscode c/c++ 调试

摘要: main.c #include <stdio.h> int main(int argc, char const *argv[]) { int a = 10; int b = 20; int c = a +b; printf("c = %d\n",c); return 0; } Makefile # 阅读全文
posted @ 2026-02-07 10:25 少杨 阅读(3) 评论(0) 推荐(0)

android rsa 加密

摘要: android rsa 加密 import java.io.ByteArrayOutputStreamimport java.security.KeyFactoryimport java.security.KeyPairGeneratorimport java.security.PrivateKey 阅读全文
posted @ 2026-01-24 22:22 少杨 阅读(2) 评论(0) 推荐(0)

苹果电脑 pro 不显示屏幕

摘要: 苹果电脑 pro 不显示屏幕 黑屏:可以按下 右上角的 指纹按钮 阅读全文
posted @ 2026-01-24 09:50 少杨 阅读(1) 评论(0) 推荐(0)

kotlinx-serialization-json Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.

摘要: Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied. @Serializable data class PersonModel(val 阅读全文
posted @ 2026-01-21 09:32 少杨 阅读(4) 评论(0) 推荐(0)

yii2 发送邮件

摘要: yii2 发送邮件 'mailer' => [ 'class' => \yii\symfonymailer\Mailer::class, 'viewPath' => '@app/mail', //smtp://用户名:密码@smtp.qq.com:465 // 25 端口 阿里云不能发送 465 端 阅读全文
posted @ 2026-01-15 16:18 少杨 阅读(5) 评论(0) 推荐(0)

android 发送通知

摘要: android 发送 Notification import android.Manifest import android.app.NotificationChannel import android.app.NotificationManager import android.content.C 阅读全文
posted @ 2026-01-13 20:56 少杨 阅读(5) 评论(0) 推荐(0)