AlexSJC 的博客

Xamarin.Android 请求忽略电池优化

<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> if (Build.VERSION.SdkInt >= BuildVersionCodes.M) { Powe

AlexSJC AlexSJC 发布于 2023-11-12

Xamarin.Android 前台服务

public const string CHANNEL_ID = "default_channel"; public const string CHANNEL_NAME = "Default Channel"; public const int NOTIFICATION_ID = 10000; p

AlexSJC AlexSJC 发布于 2023-11-10

C# 通配符

请使用最新的 NuGet 包:https://www.nuget.org/packages/Asjc.Wildcard

AlexSJC AlexSJC 发布于 2023-10-23

C# 异步 Ping 多个 IP

public static async Task<List<string>> PingIPs(List<string> ips, int timeout = 1000) { var tasks = ips.Select(ip => new Ping().SendPingAsync(ip, t

AlexSJC AlexSJC 发布于 2023-10-21

WPF 应用的 .csproj 建议

<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net8.0-windows</TargetFramework> <Nu

AlexSJC AlexSJC 发布于 2023-10-18

WPF 重写语言实现本地化

添加这段代码(Application_Startup): FrameworkElement.LanguageProperty.OverrideMetadata( typeof(FrameworkElement), new FrameworkPropertyMetadata(

AlexSJC AlexSJC 发布于 2023-10-17

Xamarin 使用数据库

public class Database { private const string file = "database.db"; public static SQLiteConnection Connection { get; private set; } stati

AlexSJC AlexSJC 发布于 2023-09-26

WordPress 解决使用 CDN 导致的访客 IP 问题

在 wp-config.php 添加这段代码: if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $list = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); $_SERVER['REMOT

AlexSJC AlexSJC 发布于 2023-09-21

通用漏洞评分系统(CVSS)

https://www.first.org/cvss/ 简介 通用漏洞评分系统 (CVSS) 是一种用于提供严重性定性衡量的方法。 CVSS 由三个指标组组成:基本指标、时间指标和环境指标。基本指标产生 0 到 1

AlexSJC AlexSJC 发布于 2023-09-16

疯狂动物园 存档备份

这个解决方案有很大的局限性,只有安装了修改签名后的版本才能正常备份存档。 这可能是唯一有效的非 Root 备份方式。 此方法也同样适用于几乎所有的单机游戏。 对于普通用户,请跳过此教程的部分内容。 STEP 1

AlexSJC AlexSJC 发布于 2023-08-26

YOURLS 安装

https://yourls.org/docs/guide/install 下载 从

AlexSJC AlexSJC 发布于 2023-08-24

Visual Studio 中 Xamarin.Android 设计器显示异常解决方式

打开选项页面。 取消勾选“启用加速渲染”。

AlexSJC AlexSJC 发布于 2023-08-15

Xamarin.Android 绑定服务

https://www.nuget.org/packages/Asjc.Android.ServiceHelper

AlexSJC AlexSJC 发布于 2023-08-12

Crack Tasker

tasker.joaoapps.com/index.html play.google.com/store/apps/details?id=net.dinglisch.android.taskerm [A] FakeStore 下载 Google Play 上的 Tasker(镜像:APKMirror

AlexSJC AlexSJC 发布于 2023-07-15

GitHub 镜像

网址 状态 kgithub.com

AlexSJC AlexSJC 发布于 2023-06-29

C# 模拟按键

public class KeySim { [DllImport("user32.dll")] private static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);

AlexSJC AlexSJC 发布于 2023-06-24

C# MiniTimer

https://www.nuget.org/packages/Asjc.MiniTimer

AlexSJC AlexSJC 发布于 2023-06-19

Spy++

https://learn.microsoft.com/zh-cn/visualstudio/debugger/using-spy-increment

AlexSJC AlexSJC 发布于 2023-06-18

VSCode: XHR failed

首先检查系统和软件的代理服务器设置,若无效请参考以下方式解决。 从 code.visualstudio.com 下载根证书(DigiCert Global Root G2.crt)。

AlexSJC AlexSJC 发布于 2023-06-17

网盘直链下载助手

下载:https://www.youxiaohou.com/install.html alert(`暗号:${pan.num}`);

AlexSJC AlexSJC 发布于 2023-05-20

C# AesHelper

using System; using System.Security.Cryptography; using System.Text; public class AesHelper { public static string Encrypt(string text, string ke

AlexSJC AlexSJC 发布于 2023-04-30

WPF 自定义属性

<Window x:Name="window" ...> <Grid> <TextBlock Text="{Binding Text, ElementName=window}" /> </Grid> </Window> public static readonly D

AlexSJC AlexSJC 发布于 2023-04-24

C# JsonConfig

https://www.nuget.org/packages/Asjc.JsonConfig

AlexSJC AlexSJC 发布于 2023-04-21

Electron 快速入门

参考资料 https://www.electronjs.org/zh/docs/latest/tutorial/quick-start https://www.electronjs.org/zh/docs/latest/tutorial/tutorial-first-app 创建

AlexSJC AlexSJC 发布于 2023-04-15

Git(分布式版本控制系统)

官网:https://git-scm.com/ 下载:CNPM Binaries Mirror

AlexSJC AlexSJC 发布于 2023-04-14

用户脚本模板

文档 | Tampermonkey // ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description

AlexSJC AlexSJC 发布于 2023-04-11

JavaScript 调用谷歌翻译

let text = 'Hello, World!'; let source = 'en'; let target = 'zh-CN'; fetch(`https://translate.googleapis.com/translate_a/single?client=gtx&sl=${sourc

AlexSJC AlexSJC 发布于 2023-04-11

Visual Studio Code

官网:https://code.visualstudio.com/ 可使用“vscode.cdn.azure.cn”替换“az764295.vo.msecnd.net”加速下载。 扩展 Extensions for Visual

AlexSJC AlexSJC 发布于 2023-04-11

WordPress 教程:关于 URL 的问题

概述 您可在设置>常规中修改关于 URL 的设置。 若页面无法访问,请修改数据库(wp_options>siteurl/home)。 指南 HTTPS 与 SSL

AlexSJC AlexSJC 发布于 2023-04-10