怪奇物语

怪奇物语

首页 新随笔 联系 管理
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页

2023年11月21日 #

摘要: python fastapi schema和model的区别 To avoid confusion between the SQLAlchemy models and the Pydantic models, we will have the file model...... 来自 fastapi 阅读全文
posted @ 2023-11-21 22:01 超级无敌美少男战士 阅读(567) 评论(0) 推荐(0)

摘要: macOS 如何设置 .sh 文件能够双击运行 一、如何实现双击运行 例如写了一个 test.sh 脚本文件 修改后缀名,把test.sh 把名字改为 test.command 添加其可执行的属性 chmod +x test.command 二、将执行目录定位到该执行文件的目录 这样双击是能打开的, 阅读全文
posted @ 2023-11-21 21:57 超级无敌美少男战士 阅读(1619) 评论(0) 推荐(0)

2023年11月20日 #

摘要: mac linux 将文件玩隐藏到图片中 隐藏 有一个图像文件 image.jpg ,以及一个叫做 secret.zip 的文件,其包含有加密信息,也是我们将要嵌入到 image.jpg 中的文件。 最终,我将使用 cat 命令将 secret.zip 文件与图像文件 (image.jpg) 复合在 阅读全文
posted @ 2023-11-20 22:43 超级无敌美少男战士 阅读(79) 评论(0) 推荐(0)

2023年11月13日 #

摘要: mac node 卸载 如果是通过source或者binaries 方式安装 Nodejs , 需要手动删除 Node executables和其他resources, 另外就是使用 Homebrew的方法 、nvm 方法 。 1. 手动方法: 需要按如下步骤卸载node + npm : 从/usr 阅读全文
posted @ 2023-11-13 22:21 超级无敌美少男战士 阅读(345) 评论(0) 推荐(0)

摘要: npm的配置文件,及其路径问题 如何快捷修改.npmrc配置文件? .npmrc文件,就是npm的配置文件所在位置。 当然,寻找这个文件的目的,多数是为了修改.npmrc文件内容。 但npm提供了方便快捷的修改方式,不知道这个文件的位置,其实也是可以修改的。 .npmrc配置文件在哪里? 如果你还是 阅读全文
posted @ 2023-11-13 22:09 超级无敌美少男战士 阅读(9127) 评论(0) 推荐(0)

摘要: MacOS 安装 NodeJS 配置全局安装路径 a. 输入以下命令,创建一个用于存储全局安装的文件夹(例如,/usr/local/lib/npm): sudo mkdir -p /usr/local/lib/npm 这将创建一个名为 npm 的文件夹,并将其放置在 /usr/local/lib 目 阅读全文
posted @ 2023-11-13 21:47 超级无敌美少男战士 阅读(1853) 评论(0) 推荐(0)

2023年11月5日 #

摘要: event source backend # -*- coding: utf-8 -*- # 这段代码是使用FastAPI框架创建一个简单的服务器端事件(Server-Sent Events,SSE)的示例。以下是对代码的详细解析: # 1. `import json, random, ...`:这 阅读全文
posted @ 2023-11-05 09:22 超级无敌美少男战士 阅读(82) 评论(0) 推荐(0)

2023年10月26日 #

摘要: 一、下载 Node.js Node.js 下载地址:nodejs.org/en/download… 选择 Windows 二进制文件 (.zip) 这个版本进行下载,选择适合电脑配置的 64 位或者 32 位。 二、配置 npm 安装目录 新版的Node.js已自带npm,就在Node.js下载完成 阅读全文
posted @ 2023-10-26 19:58 超级无敌美少男战士 阅读(1165) 评论(0) 推荐(0)

2023年10月19日 #

摘要: gasp动画控制相机的位置变换 关键代码threejs/Cameras.ts //通过gsap 动画移动相机,从而实现看似物体在运动的效果 // 1.添加动画 private changePerspectiveCameraPosition() { // 添加一个动画 gsap.to(this.per 阅读全文
posted @ 2023-10-19 21:28 超级无敌美少男战士 阅读(834) 评论(0) 推荐(0)

2023年10月11日 #

摘要: 插件推荐网址 https://duckly.com/blog/best-plugins-for-rider-2022/ https://www.josephguadagno.net/2022/06/23/my-jetbrains-rider-plugins-june-2022-edition 阅读全文
posted @ 2023-10-11 22:06 超级无敌美少男战士 阅读(2519) 评论(0) 推荐(0)

2023年10月10日 #

摘要: " = Extensions Plug 'tpope/vim-surround' Plug 'preservim/nerdtree' " = Basic settings set clipboard+=unnamed set ignorecase set scrolloff=30 set histo 阅读全文
posted @ 2023-10-10 23:30 超级无敌美少男战士 阅读(69) 评论(0) 推荐(0)

2023年9月23日 #

摘要: keybindings.json // Place your key bindings in this file to override the defaultsauto[] [ // terminal // 切换到terminal终端 { "key": "ctrl+,", "command": " 阅读全文
posted @ 2023-09-23 23:56 超级无敌美少男战士 阅读(94) 评论(0) 推荐(0)

2023年9月21日 #

摘要: React的todolist的拆分项目 TodoList.jsx import Todo from "./Todo" export default function TodoList({ todos, toggleTodo, deleteTodo }) { return <> <ul> { todo 阅读全文
posted @ 2023-09-21 21:12 超级无敌美少男战士 阅读(19) 评论(0) 推荐(0)

摘要: React的todolist src/main.jsx import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' import './index.css' ReactDO 阅读全文
posted @ 2023-09-21 21:11 超级无敌美少男战士 阅读(17) 评论(0) 推荐(0)

摘要: C#获取当前的类名,函数,命名空间 dotnet 命令行创建项目 dotnet new console -n <项目名称> dotnet new console -n LogOut Program.cs using LogOut.Utils; var res = Calculator.Add(20, 阅读全文
posted @ 2023-09-21 11:28 超级无敌美少男战士 阅读(1047) 评论(0) 推荐(0)

2023年9月17日 #

摘要: react todo list todolist/src/main.jsx import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' import './index.cs 阅读全文
posted @ 2023-09-17 11:35 超级无敌美少男战士 阅读(34) 评论(0) 推荐(0)

2023年9月12日 #

摘要: 安装支持 GPU 版本的 Pytorch 首先安装 ultraytics python -m venv venv source venv/Scripts/activate pip install ultralytics python main.py 首先安装上面的 ultralytics,但是无法调 阅读全文
posted @ 2023-09-12 20:13 超级无敌美少男战士 阅读(5167) 评论(0) 推荐(0)

摘要: CUDA 安装教程(手把手) 一、简单了解 CUDA 与 CUDNN 1、什么是 CUDA CUDA(ComputeUnified Device Architecture),是显卡厂商 NVIDIA 推出的运算平台。CUDA 是一种由 NVIDIA 推出的通用并行计算架构,该架构使 GPU 能够解决 阅读全文
posted @ 2023-09-12 20:07 超级无敌美少男战士 阅读(27637) 评论(1) 推荐(2)

2023年9月8日 #

摘要: # `F:\song_csharp\MagicVilla_API-master\MagicVilla_VillaAPI\MappingConfig.cs` ```cs using AutoMapper; using MagicVilla_VillaAPI.Models; using MagicVi 阅读全文
posted @ 2023-09-08 20:24 超级无敌美少男战士 阅读(45) 评论(0) 推荐(0)

摘要: # C# 定时器 ```cs using System.Timers; internal class Program { private static DateTime startTime; private static void Main(string[] args) { // 定义一个变量来存储 阅读全文
posted @ 2023-09-08 19:07 超级无敌美少男战士 阅读(100) 评论(0) 推荐(1)

2023年9月7日 #

摘要: # `YOLO v8 on mac m1/classes.txt` ```txt person bicycle car motorbike airplane bus train truck boat traffic light fire hydrant stop sign parking meter 阅读全文
posted @ 2023-09-07 22:45 超级无敌美少男战士 阅读(1452) 评论(0) 推荐(0)

2023年9月5日 #

摘要: # 0 ![img](./%E6%88%AA%E5%B1%8F2023-09-05%2022.31.06.png) # 1 ![img](./%E6%88%AA%E5%B1%8F2023-09-05%2022.43.14.png) # 2 ![img](./%E6%88%AA%E5%B1%8F202 阅读全文
posted @ 2023-09-05 23:26 超级无敌美少男战士 阅读(12) 评论(0) 推荐(0)

2023年9月3日 #

摘要: # `MagicVilla_VillaAPI/MagicVilla_VillaAPI.csproj` ```csproj net7.0 enable enable ..\packages runtime; build; native; contentfiles; analyzers; buildtr 阅读全文
posted @ 2023-09-03 17:39 超级无敌美少男战士 阅读(45) 评论(0) 推荐(0)

摘要: # sqlite触发器 我看到你在使用 Entity Framework Core 和 SQLite 数据库,想让别墅实体的 `UpdatedDate` 属性在更新时自动生成。这是一个使用 Code First 的问题,关于如何配置实体属性的值生成策略(Value Generation Strate 阅读全文
posted @ 2023-09-03 16:26 超级无敌美少男战士 阅读(259) 评论(0) 推荐(0)

摘要: # 基本命令 EF Core的迁移(Migration)是一种用于管理数据库架构变化的功能,它可以根据你的数据模型自动生成和执行数据库创建或者更新的SQL语句。EF Core提供了一些命令行工具,让你可以方便地操作迁移。以下是一些常用的迁移命令: - `dotnet ef migrations ad 阅读全文
posted @ 2023-09-03 16:26 超级无敌美少男战士 阅读(333) 评论(0) 推荐(0)

2023年9月2日 #

摘要: ![image](https://img2023.cnblogs.com/blog/1222814/202309/1222814-20230902224059928-1057701596.png) 阅读全文
posted @ 2023-09-02 22:42 超级无敌美少男战士 阅读(20) 评论(0) 推荐(0)

摘要: ```cs [HttpPost] [ProducesResponseType(StatusCodes.Status201Created)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(St 阅读全文
posted @ 2023-09-02 22:31 超级无敌美少男战士 阅读(13) 评论(0) 推荐(0)

摘要: # `SeerAGV_2/SeerMessage.cs` ```cs using System.Reflection; using System.Runtime.InteropServices; namespace SeerAGV { public struct SeerMessageHead { 阅读全文
posted @ 2023-09-02 15:22 超级无敌美少男战士 阅读(273) 评论(0) 推荐(0)

2023年8月9日 #

摘要: # idea的vim配置 ``` " " = Extensions " Plug 'tpope/vim-surround' Plug 'preservim/nerdtree' " " = Basic settings " set clipboard+=unnamed set ignorecase s 阅读全文
posted @ 2023-08-09 11:11 超级无敌美少男战士 阅读(190) 评论(0) 推荐(0)

摘要: # vsvimv配置 分割线之下的暂时还没有配置好 ``` set ai "自动缩进宽度 set sw=4 set ts=4 "关闭高亮显示 set nohlsearch set is set ignorecase set backspace=indent,eol,start set clipboa 阅读全文
posted @ 2023-08-09 11:10 超级无敌美少男战士 阅读(118) 评论(0) 推荐(0)

2023年8月4日 #

摘要: ``` set ai "自动缩进宽度 set sw=4 set ts=4 "关闭高亮显示 set nohlsearch set is set ignorecase set backspace=indent,eol,start set clipboard=unnamed set number :nno 阅读全文
posted @ 2023-08-04 15:39 超级无敌美少男战士 阅读(153) 评论(0) 推荐(0)

2023年8月1日 #

摘要: # 树莓派设置开机启动 ## 前言 树莓派设置开机自启,看了好多教程都没有成功. 我是要设置树莓派开机运行一个 fastapi 或者 flask 的服务,要求该程序在后台运行 ## 创建一个 bash 脚本运行 python 程序 1. 很关键,一定要使用 bash 脚本去运行 python 程序, 阅读全文
posted @ 2023-08-01 16:28 超级无敌美少男战士 阅读(189) 评论(0) 推荐(0)

2023年7月22日 #

摘要: # babylonjs_uv贴图_瞬间秒懂 ![image](https://img2023.cnblogs.com/blog/1222814/202307/1222814-20230722155324919-447386828.png) ![image](https://img2023.cnblo 阅读全文
posted @ 2023-07-22 15:55 超级无敌美少男战士 阅读(177) 评论(0) 推荐(0)

2023年7月16日 #

摘要: # 设置uuid ```cs namespace EF6SQLiteTutorial.Models { public class People { public int Id { get; set; } // 设置uuid public Guid Uuid { get; set; } = Guid. 阅读全文
posted @ 2023-07-16 11:16 超级无敌美少男战士 阅读(36) 评论(0) 推荐(0)

摘要: # `EF6SQLiteTutorial/Program.cs` ```cs using EF6SQLiteTutorial.Data; using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(a 阅读全文
posted @ 2023-07-16 10:25 超级无敌美少男战士 阅读(97) 评论(0) 推荐(0)

摘要: # Entity Framework Core的使用 如果您想要根据模型创建数据库表,可以使用Entity Framework Core的迁移功能。迁移允许您在模型更改时更新数据库架构,而无需手动创建或修改表。 要使用迁移,您需要执行以下步骤: 1. 安装 `Microsoft.EntityFram 阅读全文
posted @ 2023-07-16 10:21 超级无敌美少男战士 阅读(357) 评论(0) 推荐(0)

2023年7月15日 #

摘要: # `dotnet_learn/appsettings.json` ```json { "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts" 阅读全文
posted @ 2023-07-15 20:59 超级无敌美少男战士 阅读(76) 评论(0) 推荐(0)

摘要: > 了解 Entity Framework (EF) Core 的定义,以及如何将其与 API 一起使用。 大多数重要的 Web 应用程序都需要对数据可靠地运行操作,如创建、读取、更新和删除 (CRUD)。 它们还需要在应用程序重启之间保留这些操作所做的任何更改。 尽管有各种选项可用于在 .NET 阅读全文
posted @ 2023-07-15 19:51 超级无敌美少男战士 阅读(51) 评论(0) 推荐(0)

2023年7月10日 #

摘要: # async ensuer_future 和 add_done_callback 的用法 ```py import os from loguru import logger logger.add(os.path.join(os.path.dirname(__file__) , os.path.ba 阅读全文
posted @ 2023-07-10 21:57 超级无敌美少男战士 阅读(40) 评论(0) 推荐(0)

摘要: # bat脚本 ```bat @echo off setlocal enabledelayedexpansion rem 获取当前目录下的.zip文件 for %%f in (*.zip) do ( set "zipfile=%%f" ) rem 获取.zip文件的文件名(不带扩展名) for %% 阅读全文
posted @ 2023-07-10 15:45 超级无敌美少男战士 阅读(457) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页