<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Ecust_applied_math的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Ecust_applied_math</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Ecust_applied_math]]></copyright><item><title><![CDATA[python 异步ORM包推荐]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/107642457</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/107642457</guid><author>Ecust_applied_math</author><pubDate>Wed, 29 Jul 2020 00:12:03 +0800</pubDate><description><![CDATA[异步ORM技术
python的异步框架在高并发的情况下能够非常好的提升系统的性能来开发。可惜的是，拥有最精美的ORM框架的Django目前还不支持异步的ORM。我在使用FastAPI开发软件的时候在github上找到了一些异步ORM的包。
1 sqlalchemy + alembic + databases的解决方案
1.1 sqlalchemy
sqlalchemy提供生成SQL语句的功能。
1.2 alembic
alembic提供数据库版本管理功能，即保持数据库中表的结构和models.py中定义的一]]></description><category></category></item><item><title><![CDATA[fastapi执行异步任务实例]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/107437984</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/107437984</guid><author>Ecust_applied_math</author><pubDate>Sun, 19 Jul 2020 01:02:43 +0800</pubDate><description><![CDATA[from fastapi import FastAPI
import asyncio

app = FastAPI()


async def log_to_data_base():
    await asyncio.sleep(3)
    print("log in database")


@app.get("/")
async def main():
    asyncio.create_task(log_to_data_base())
    # 创建一个新的可以调度的协程，负责向数据库写入数据]]></description><category></category></item><item><title><![CDATA[图解Java的参数传递机制]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/105851835</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/105851835</guid><author>Ecust_applied_math</author><pubDate>Thu, 30 Apr 2020 00:21:21 +0800</pubDate><description><![CDATA[Java中所有函数的参数传递方式都是传值，不存在传引用的，理解这句话首先要理解Java中所有对象都是指针，传递指针当然是传值了。
Java定义对象的方式和C++以下方式相同
//JAVA
Person a = new Person("name",14)

//C++
Person * a = new Person("name",14)

下面以swap函数为例来解释Java的参数传递机制，解释为什...]]></description><category></category></item><item><title><![CDATA[VMware——访问同一局域网(以太网)中其他主机中的虚拟机]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103865380</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103865380</guid><author>Ecust_applied_math</author><pubDate>Mon, 06 Jan 2020 21:45:57 +0800</pubDate><description><![CDATA[文章目录1.目的图2.设置方式3.注意事项
1.目的图

希望客户机能够以SSH的方式连接到虚拟机1上去
2.设置方式
VMWare的NAT模式架构图如下

核心是设置宿主机中的转发表。
设置如下：



3.注意事项

事先要确保两台实际存在的主机能连接，使用Ping命令，如果Ping不通，检查一下防火墙，为了方便也可以直接关闭防火墙。（危险）


...]]></description><category></category></item><item><title><![CDATA[操纵系统实践7-实现共享内存系统调用]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103543706</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103543706</guid><author>Ecust_applied_math</author><pubDate>Sun, 15 Dec 2019 20:08:04 +0800</pubDate><description><![CDATA[文章目录一、 目标二、伪代码分析三、 步骤3.1 编写sharemem.c3.2 注册系统调用3.3 编译四、 测试结果五、 总结
一、 目标
Linux在2.2版本后实现了共享内存的系统调用(shm.h)，但是在Linux-0.11是没有共享内存的系统调用的。本次实践的目标如下：
1、实现2个系统调用
int create_shm(int key,unsigned long size,int f...]]></description><category></category></item><item><title><![CDATA[深入理解段页式内存管理]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103436741</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103436741</guid><author>Ecust_applied_math</author><pubDate>Sat, 14 Dec 2019 21:02:01 +0800</pubDate><description><![CDATA[文章目录1. 程序重定位1.1 为什么要进行重定位1.2 编译时重定位与载入时重定位1.3 运行时重定位1.4 MMU(Memory Management Unit)2. 以进程的角度——分段机制3. 以内存的角度——分页机制4. 以虚拟内存为桥梁的、分段和分页结合的段页式内存管理5. 换入/换出
1. 程序重定位
1.1 为什么要进行重定位
1.2 编译时重定位与载入时重定位
1.3 运行时重定...]]></description><category></category></item><item><title><![CDATA[操作系统实践-5 在Linux-0.11上基于内核栈完成进程切换(附源代码)]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103287474</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103287474</guid><author>Ecust_applied_math</author><pubDate>Fri, 29 Nov 2019 17:52:59 +0800</pubDate><description><![CDATA[1 内核级线程模型
1.1 内核级线程概念、图示

用户级线程的缺点：如果一个用户级线程在内核中阻塞，则这个进程的所有用户级线程将全部阻塞。这就限制了用户级线程的并发程度，从而限制了由并发性带来的计算机硬件工作效率的提升。
内核级线程由更好的并发性。
内核级线性与多核CPU很契合
如果只把

1.2 内核级线程的切换五段论
1.3 内核级线程的创建
1.4 Linux操作系统中的多进程视图
2 L...]]></description><category></category></item><item><title><![CDATA[用户级线程的设计和实现]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103144255</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103144255</guid><author>Ecust_applied_math</author><pubDate>Mon, 25 Nov 2019 11:43:59 +0800</pubDate><description><![CDATA[文章目录1 用户级线程的概念2 用户级线程的设计和实现2.1 用户级线程切换Yield()2.1.1 为什么先设计Yield()而不是ThreadCreate()2.1.2 Yield的第一个版本和缺陷xianran2.1.2 Yield的第二个版本和缺陷2.1.3 Yield的第三个版本2.2 用户级线程创建函数ThreadCreate()2.3 总结
1 用户级线程的概念
线程是在一个地址空间...]]></description><category></category></item><item><title><![CDATA[栈帧的概念以及图示]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103117737</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/103117737</guid><author>Ecust_applied_math</author><pubDate>Tue, 19 Nov 2019 10:19:11 +0800</pubDate><description><![CDATA[文章目录1、用户级线程的概念和实现方式2、内核级线程的概念及其在Linux-0.11版本上的实现2.1 内核栈2.2
1、用户级线程的概念和实现方式
2、内核级线程的概念及其在Linux-0.11版本上的实现
2.1 内核栈
2.2

...]]></description><category></category></item><item><title><![CDATA[操作系统实践-3 添加系统调用]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/102730987</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/102730987</guid><author>Ecust_applied_math</author><pubDate>Fri, 25 Oct 2019 21:20:19 +0800</pubDate><description><![CDATA[操作系统实践-3 添加系统调用
文章目录操作系统实践-3 添加系统调用1. 在Linux 0.11中添加系统调用1.1 在kernel下编写所添加系统调用的源码1.2 在include/linux/sys.h中注册所添加的系统调用1.3 修改kernel/system_call.s中的系统调用数量1.4 修改include/unistd.h,让用户程序能够调用1.5 修改Makefile文件并编译...]]></description><category></category></item><item><title><![CDATA[操作系统实践-2 从硬盘中读取代码并执行]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/102689257</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/102689257</guid><author>Ecust_applied_math</author><pubDate>Tue, 22 Oct 2019 20:10:27 +0800</pubDate><description><![CDATA[操作系统实践2 - 从硬盘中读取代码并跳转执行
1.从硬盘中读取数据的中断介绍
使用0x13号中断时，寄存器作用见下表




寄存器
数字
作用




AH
0x02
方向:磁盘 &gt; 内存


AL
Num
读入Num个扇区


CH
Num
第Num个柱面


CL
Num
第Num号扇区


DH
Num
磁头号


DL
Num
驱动器号


ES

段


BX

偏移


标志...]]></description><category></category></item><item><title><![CDATA[操作系统实践-1 引导扇区的编写]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/102683916</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/102683916</guid><author>Ecust_applied_math</author><pubDate>Tue, 22 Oct 2019 16:15:51 +0800</pubDate><description><![CDATA[操作系统实践-1 引导扇区的编写
1.IBM PC的启动过程
CPU加电以后，把CS置为0xFFFF，IP置为0x0000，此时PC = CS &lt;&lt; 4 + IP = 0XFFFF0。在IBM PC中，0xFFFF0指向写在ROM中的BIOS，当BIOS完成硬件检测后，会做两件事。

把启动磁盘上的0柱面，0磁头，1扇区中的512个字节程序读入到RAM的0x7c00
设定CS = 0x...]]></description><category></category></item><item><title><![CDATA[Python函数参数传递]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/84667764</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/84667764</guid><author>Ecust_applied_math</author><pubDate>Fri, 30 Nov 2018 20:49:51 +0800</pubDate><description><![CDATA[
    def f(**c):
        t = 0
        for key,value in c.items():
            t = t + value
        return t
    dic = {'a':3,'b':4}
    t = f(a = 3,b = 4)
    print(t)

7]]></description><category></category></item><item><title><![CDATA[C语言中二叉树先序遍历的改进(传递当前递归层序号)]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/80032884</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/80032884</guid><author>Ecust_applied_math</author><pubDate>Sat, 21 Apr 2018 20:13:22 +0800</pubDate><description><![CDATA[在二叉树的先序遍历中，传递的函数很可能需要知道当前递归的层数(比如文件目录的打印)参考书上并未考虑到这一问题，下面对这一问题进行解决。#include&amp;lt;stdio.h&amp;gt;
#include&amp;lt;malloc.h&amp;gt;
#define ElemType char
#define status int
#define success 1
#define fail 0
#define bo...]]></description><category></category></item><item><title><![CDATA[在阿里ECS上采用Nginx+UWSGI部署Django项目]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/79357462</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/79357462</guid><author>Ecust_applied_math</author><pubDate>Fri, 23 Feb 2018 23:01:09 +0800</pubDate><description><![CDATA[1.工作原理    web客户端(浏览器)&amp;lt;--&amp;gt;Nginx&amp;lt;--&amp;gt;UWSGI(处理动态网页)&amp;lt;--&amp;gt;Django2.软件版本    Django==2.0.2    Python==3.6    UWSGI==2.0.16    Nginx == 1.10.33.小项目梗概    部署过程1.阿里ECS安全组配置 入方向开放80/80 8000/8001端口，...]]></description><category></category></item><item><title><![CDATA[Mariadb编码问题]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/78588394</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/78588394</guid><author>Ecust_applied_math</author><pubDate>Tue, 21 Nov 2017 00:52:40 +0800</pubDate><description><![CDATA[关于Mariadb用Navicat导入中文显示??的问题]]></description><category></category></item><item><title><![CDATA[Python OS常用函数总结]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/77108401</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/77108401</guid><author>Ecust_applied_math</author><pubDate>Sat, 12 Aug 2017 09:45:29 +0800</pubDate><description><![CDATA[OS常用函数总结]]></description><category></category></item><item><title><![CDATA[Python爬内蒙古大学教务处并自动计算绩点（小窗体版）]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/76696396</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/76696396</guid><author>Ecust_applied_math</author><pubDate>Fri, 04 Aug 2017 23:28:25 +0800</pubDate><description><![CDATA[直接上代码(可参考以前爬ecust的备注)from tkinter import *
from time import ctime
import requests as rq
from pyquery import PyQuery as pq
def gpa(i):#定义绩点
    if i=="优":
        return 3.7
    if i=='合格':
        retu]]></description><category></category></item><item><title><![CDATA[Matlab简单绘图笔记]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/76210026</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/76210026</guid><author>Ecust_applied_math</author><pubDate>Thu, 27 Jul 2017 17:16:21 +0800</pubDate><description><![CDATA[1.二维图1.1由二维曲线的参数方程来绘图syms t %设定参数（下文同）
ezplot(x(t),y(t),[tmin,tmax]) %指定定方程，参数范围例:syms t
ezplot(sin(t),cos(t),[0,2*pi])1.2由二维曲线的一般方程来绘图syms x y %设定变量
ezplot(f(x,y),[xmin,xmax,ymin,ymax])%设定函数，变量的取值范围例:]]></description><category></category></item><item><title><![CDATA[HTML CSS简单了解笔记]]></title><link>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/76064138</link><guid>https://blog.youkuaiyun.com/Ecust_applied_math/article/details/76064138</guid><author>Ecust_applied_math</author><pubDate>Tue, 25 Jul 2017 11:51:12 +0800</pubDate><description><![CDATA[HTML 和 CSS 的关系和区别HTMLHTML(HyperText Markup Language，注意HTML必须大写，行业规范)-超文本标记语言，一个HTML文档（比如win平台下的.html文件）是构成网页的主体。CSSCSS(Cascading Style Sheets) 层叠样式表 ,CSS文档定义了如何显示 HTML 元素 
。对构成网页的元素（如字体，内容位置等）作出视觉上的设计效]]></description><category></category></item></channel></rss>