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 少杨 阅读(3) 评论(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 少杨 阅读(4) 评论(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 少杨 阅读(4) 评论(0) 推荐(0)

toklin 时间格式化 android toklin 时间格式化

摘要: toklin 时间格式化 android toklin 时间格式化// Date 同时包含日期和时间 val date1 = Date(); // 当前时间 val millisencond = date1.time // 时间戳,毫秒 val date2 = Date(millisencond) 阅读全文
posted @ 2026-01-12 18:57 少杨 阅读(4) 评论(0) 推荐(0)

android room migrations

摘要: 要开启 exportSchema = true 迁移测试 导入:room-testing 错误 androidx.test.ext 报错 Failed to resolve: androidx.test.ext:junit:1.3.0 去掉:androidx.test.ext 的版本号,versio 阅读全文
posted @ 2026-01-02 17:58 少杨 阅读(3) 评论(0) 推荐(0)

android room exportSchema

摘要: android room exportSchema 设置exportSchema=true 需要添加依赖 build.gradle.kts plugins {// ... val room_version = "2.8.3"id("androidx.room") version "$room_ver 阅读全文
posted @ 2025-12-31 22:44 少杨 阅读(8) 评论(0) 推荐(0)

Unable to find method ''org.gradle.api.provider.Property org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions.getJvmDefault()

摘要: Unable to find method ''org.gradle.api.provider.Property org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions.getJvmDefault() 原因:版本不兼容 更新 libs.ver 阅读全文
posted @ 2025-12-31 21:45 少杨 阅读(25) 评论(0) 推荐(0)